Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tegra: Fix assert on mapping memory regions #1269

Closed
wants to merge 1 commit into from

Conversation

dhewg
Copy link

@dhewg dhewg commented Feb 15, 2018

The tegra memory controller driver uses the "xlat_tables_v2.h" include.

See:
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v1.c
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c

But other tegra specific parts use "xlat_tables.h".

Use the same include in common tegra code.

This fixes:
ERROR: mmap_add_region_check() failed. error -22
ASSERT: lib/xlat_tables_v2/xlat_tables_internal.c:752:0

Signed-off-by: Andre Heider a.heider@gmail.com

The tegra memory controller driver uses the "xlat_tables_v2.h" include.

See:
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v1.c
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c

But other tegra specific parts use "xlat_tables.h".

Use the same include in common tegra code.

This fixes:
ERROR:   mmap_add_region_check() failed. error -22
ASSERT: lib/xlat_tables_v2/xlat_tables_internal.c:752:0

Signed-off-by: Andre Heider <a.heider@gmail.com>
@ssg-bot
Copy link

ssg-bot commented Feb 15, 2018

Can one of the admins verify this patch?

@afaerber
Copy link
Contributor

Just seeing this now - I submitted #1271, which covers t132 and t186, too.

@davidcunado-arm
Copy link
Contributor

jenkins: test this please

@afaerber
Copy link
Contributor

@davidcunado-arm So, are you planning to merge this one? Then at least the commit message should be amended to refer to the issue I opened. I would then need to rebase my pull onto this one to cover the missing parts.
Does your Jenkins check whether this partial fix causes any warnings or errors for t132 and t186?

@davidcunado-arm
Copy link
Contributor

@afaerber
Nope - was going to merge yours as this PR does cause breaks in the t132 and t186.

@davidcunado-arm
Copy link
Contributor

@dhewg
Closing this PR as it is covered by #1271, which has now been merged.

@dhewg
Copy link
Author

dhewg commented Feb 20, 2018

@afaerber's patch is more complete, so all good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants