ARM: keystone2: enable initrd fixup for LPAE addressing
PATCH 1/1 ARM: keystone2: enable initrd fixup for LPAE addressing
From: Tero Kristo <[email protected]>
Keystone2 u-boot loads the initrd image into non-LPAE addressed memory but linux kernel is running in LPAE. This causes a conflict as kernel detects that non-memory address is passed and kernel ignores initrd. There is an existing fixup logic to modify the address in the proper configuration, but this is disabled at the moment. Enable the fixup by setting the env variable for this so that initrd can be used properly.
---
- This fixes boot on k2g platforms.
include/configs/ti_armv7_keystone2.h | 1 + 1 file changed, 1 insertion(+)
include/configs/ti_armv7_keystone2.h +1 -0
@@ -213,6 +213,7 @@"tftp_root=/\0" \"nfs_root=/export\0" \"mem_lpae=1\0" \ +"uinitrd_fixup=1\0" \"addr_ubi=0x82000000\0" \"addr_secdb_key=0xc000000\0" \"name_kern=zImage\0" \
Signature · 1 line
2.23.0
PATCH 1/1 ARM: keystone2: enable initrd fixup for LPAE addressing
Quoted 23 lines · Lokesh Vutla
From: Tero Kristo <[email protected]>
Keystone2 u-boot loads the initrd image into non-LPAE addressed memory but linux kernel is running in LPAE. This causes a conflict as kernel detects that non-memory address is passed and kernel ignores initrd. There is an existing fixup logic to modify the address in the proper configuration, but this is disabled at the moment. Enable the fixup by setting the env variable for this so that initrd can be used properly.
Signed-off-by Tero Kristo <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>---
- This fixes boot on k2g platforms.include/configs/ti_armv7_keystone2.h | 1 + 1 file changed, 1 insertion(+)include/configs/ti_armv7_keystone2.h +0
-0
include/configs/ti_armv7_keystone2.h line 219
Quoted 7 lines
include/configs/ti_armv7_keystone2.h +1
-0@@ -213,6 +213,7 @@"tftp_root=/\0" \"nfs_root=/export\0" \"mem_lpae=1\0" \ +"uinitrd_fixup=1\0" \"addr_ubi=0x82000000\0" \"addr_secdb_key=0xc000000\0" \"name_kern=zImage\0" \
OK, hold up. Why is any of this code needed and can't the normal bootm_size / bootm_low / etc as documented in the README enforce these constraints? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200211/c7c29fe8/attachment.sig>
PATCH 1/1 ARM: keystone2: enable initrd fixup for LPAE addressing
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 18 lines · Lokesh Vutla
From: Tero Kristo <[email protected]>
Keystone2 u-boot loads the initrd image into non-LPAE addressed memory but linux kernel is running in LPAE. This causes a conflict as kernel detects that non-memory address is passed and kernel ignores initrd. There is an existing fixup logic to modify the address in the proper configuration, but this is disabled at the moment. Enable the fixup by setting the env variable for this so that initrd can be used properly.
Signed-off-by Tero Kristo <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>---
- This fixes boot on k2g platforms.include/configs/ti_armv7_keystone2.h | 1 + 1 file changed, 1 insertion(+)
Quoted 17 lines
include/configs/ti_armv7_keystone2.h line 219
Quoted 12 lines
include/configs/ti_armv7_keystone2.h +1
-0@@ -213,6 +213,7 @@"tftp_root=/\0" \"nfs_root=/export\0" \"mem_lpae=1\0" \ +"uinitrd_fixup=1\0" \"addr_ubi=0x82000000\0" \"addr_secdb_key=0xc000000\0" \"name_kern=zImage\0" \OK, hold up. Why is any of this code needed and can't the normal
bootm_size/bootm_low/ etc as documented in the README enforce these constraints? Thanks!
K2 platforms has a special scenario. DDR view for U-Boot is starting from 0x8000_0000 - 0xFFFF_FFFF. Wheres as for kernel, the DDR view gets shifted to 0x8_0000_0000 - 0x8_7FFF_FFFF. This is a hardware limitation to ensure coherency among different master in the SoC. In kernel all the page tables are fixed up by the Kconfig CONFIG_ARM_PV_FIXUP. But the expectation is to pass the right information in DTB. U-Boot already fixes up the memory address nodes in ft_board_setup() but missed updating the linux-initrd. This patch enables the fixup for initrd.
Thanks and regards,
Lokesh
PATCH 1/1 ARM: keystone2: enable initrd fixup for LPAE addressing
Quoted 41 lines · Lokesh Vutla
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 18 lines · Lokesh Vutla
From: Tero Kristo <[email protected]>
Keystone2 u-boot loads the initrd image into non-LPAE addressed memory but linux kernel is running in LPAE. This causes a conflict as kernel detects that non-memory address is passed and kernel ignores initrd. There is an existing fixup logic to modify the address in the proper configuration, but this is disabled at the moment. Enable the fixup by setting the env variable for this so that initrd can be used properly.
Signed-off-by Tero Kristo <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>---
- This fixes boot on k2g platforms.include/configs/ti_armv7_keystone2.h | 1 + 1 file changed, 1 insertion(+)Quoted 17 lines
include/configs/ti_armv7_keystone2.h line 219
Quoted 12 lines
include/configs/ti_armv7_keystone2.h +1
-0@@ -213,6 +213,7 @@"tftp_root=/\0" \"nfs_root=/export\0" \"mem_lpae=1\0" \ +"uinitrd_fixup=1\0" \"addr_ubi=0x82000000\0" \"addr_secdb_key=0xc000000\0" \"name_kern=zImage\0" \OK, hold up. Why is any of this code needed and can't the normal
bootm_size/bootm_low/ etc as documented in the README enforce these constraints? Thanks!
Quoted 8 lines
K2 platforms has a special scenario. DDR view for U-Boot is starting from 0x8000_0000 - 0xFFFF_FFFF. Wheres as for kernel, the DDR view gets shifted to 0x8_0000_0000 - 0x8_7FFF_FFFF. This is a hardware limitation to ensure coherency among different master in the SoC. In kernel all the page tables are fixed up by the
KconfigCONFIG_ARM_PV_FIXUP. But the expectation is to pass the right information in DTB. U-Boot already fixes up the memory address nodes inft_board_setup()but missed updating the linux-initrd. This patch enables the fixup for initrd.
OK, thanks.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200212/7b289eec/attachment.sig>
PATCH 1/1 ARM: keystone2: enable initrd fixup for LPAE addressing
In reply to Lokesh VutlaQuoted 10 lines · Lokesh Vutla
From: Tero Kristo <[email protected]>
Keystone2 u-boot loads the initrd image into non-LPAE addressed memory but linux kernel is running in LPAE. This causes a conflict as kernel detects that non-memory address is passed and kernel ignores initrd. There is an existing fixup logic to modify the address in the proper configuration, but this is disabled at the moment. Enable the fixup by setting the env variable for this so that initrd can be used properly.
Quoted 2 lines
Signed-off-by Tero Kristo <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Merged into u-boot-ti.
Thanks and regards,
Lokesh