diff options
| author | Pali Rohár <[email protected]> | 2022-09-14 13:37:46 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-10-06 21:05:17 -0400 |
| commit | ae17910117f3ae5957eb1d7498710f881a091155 (patch) | |
| tree | d3cef53917c4b702a6631862ce71885122a7b061 /include/linux/linux_string.h | |
| parent | 3c29c0fce0fea675a78d51b10a233d496065618a (diff) | |
armv8: cache_v8: Fix pgtables setup when MMU is already enabled
When MMU is already enabled then dcache_enable() does not call mmu_setup()
and so setup_all_pgtables() is also never called.
In this situation when some driver calls mmu_set_region_dcache_behaviour()
function then U-Boot crashes with error message:
Emergency page table not setup.
Fix this issue by explicitly calling setup_all_pgtables() in dcache_enable()
function near condition for mmu_setup().
This change fixes chainloading U-Boot from U-Boot on Turris Mox board which
uses mvneta ethernet driver which calls mmu_set_region_dcache_behaviour().
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
