#
c38cb227 |
|
14-Dec-2023 |
Tom Rini <trini@konsulko.com> |
efi_loader: Remove <common.h> We largely do not need <common.h> in these files, so drop it. The only exception here is that efi_freestanding.c needs <linux/types.h> and had been getting that via <common.h>. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
1de1a034 |
|
12-Nov-2023 |
Simon Glass <sjg@chromium.org> |
boot: Drop size parameter from image_setup_libfdt() The of_size parameter is not used, so remove it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> |
#
d9d7c20b |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
treewide: Drop bootm_headers_t typedef This is not needed and we should avoid typedefs. Use the struct instead. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a2f1482f |
|
03-Jan-2022 |
Ilias Apalodimas <ilias.apalodimas@linaro.org> |
efi_loader: Get rid of kaslr-seed if EFI_RNG_PROTOCOL is installed U-Boot, in some occasions, injects a 'kaslr-seed' property on the /chosen node. That would be problematic in case we want to measure the DTB we install in the configuration table, since it would change across reboots. The Linux kernel EFI-stub completely ignores it and only relies on EFI_RNG_PROTOCOL for it's own randomness needs (i.e the randomization of the physical placement of the kernel). In fact it (blindly) overwrites the existing seed if the protocol is installed. However it still uses it for randomizing it's virtual placement. So let's get rid of it in the presence of the RNG protocol. It's worth noting that TPMs also provide an RNG. So if we tweak our EFI_RNG_PROTOCOL slightly and install the protocol when a TPM device is present the 'kaslr-seed' property will always be removed, allowing us to reliably measure our DTB. Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> |
#
9ff9f4b4 |
|
14-Mar-2021 |
Mark Kettenis <kettenis@openbsd.org> |
efi_loader: fix memory type for memory reservation block The (yet unreleased version of the) devicetree specification clearly states that: As with the /reserved-memory node, when booting via UEFI entries in the Memory Reservation Block must also be listed in the system memory map obtained via the GetMemoryMap() toi protect against allocations by UEFI applications. The memory reservation block entries should be listed with type EfiReservedMemoryType. This restores the behaviour that was changed by commit 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory"). Fixes: 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory") Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
2ae80437 |
|
15-Feb-2021 |
Tom Rini <trini@konsulko.com> |
Merge branch '2021-02-02-drop-asm_global_data-when-unused' - Merge the patch to take <asm/global_data.h> out of <common.h>
|
#
1bc9fc34 |
|
01-Feb-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: only check size if EFI_DT_APPLY_FIXUPS In the implementation of the EFI_DT_FIXUP_PROTOCOL: * Only check the buffer size when EFI_DT_APPLY_FIXUPS is set. * In this case the field totalsize of the device-tree may not exceed the buffer size. * Install device-tree only if EFI_DT_INSTALL_TABLE is set. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
401d1c4f |
|
30-Oct-2020 |
Simon Glass <sjg@chromium.org> |
common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
d9d7c20b |
|
06-Sep-2022 |
Simon Glass <sjg@chromium.org> |
treewide: Drop bootm_headers_t typedef This is not needed and we should avoid typedefs. Use the struct instead. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
a2f1482f |
|
03-Jan-2022 |
Ilias Apalodimas <ilias.apalodimas@linaro.org> |
efi_loader: Get rid of kaslr-seed if EFI_RNG_PROTOCOL is installed U-Boot, in some occasions, injects a 'kaslr-seed' property on the /chosen node. That would be problematic in case we want to measure the DTB we install in the configuration table, since it would change across reboots. The Linux kernel EFI-stub completely ignores it and only relies on EFI_RNG_PROTOCOL for it's own randomness needs (i.e the randomization of the physical placement of the kernel). In fact it (blindly) overwrites the existing seed if the protocol is installed. However it still uses it for randomizing it's virtual placement. So let's get rid of it in the presence of the RNG protocol. It's worth noting that TPMs also provide an RNG. So if we tweak our EFI_RNG_PROTOCOL slightly and install the protocol when a TPM device is present the 'kaslr-seed' property will always be removed, allowing us to reliably measure our DTB. Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> |
#
9ff9f4b4 |
|
14-Mar-2021 |
Mark Kettenis <kettenis@openbsd.org> |
efi_loader: fix memory type for memory reservation block The (yet unreleased version of the) devicetree specification clearly states that: As with the /reserved-memory node, when booting via UEFI entries in the Memory Reservation Block must also be listed in the system memory map obtained via the GetMemoryMap() toi protect against allocations by UEFI applications. The memory reservation block entries should be listed with type EfiReservedMemoryType. This restores the behaviour that was changed by commit 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory"). Fixes: 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory") Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
2ae80437 |
|
15-Feb-2021 |
Tom Rini <trini@konsulko.com> |
Merge branch '2021-02-02-drop-asm_global_data-when-unused' - Merge the patch to take <asm/global_data.h> out of <common.h>
|
#
1bc9fc34 |
|
01-Feb-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: only check size if EFI_DT_APPLY_FIXUPS In the implementation of the EFI_DT_FIXUP_PROTOCOL: * Only check the buffer size when EFI_DT_APPLY_FIXUPS is set. * In this case the field totalsize of the device-tree may not exceed the buffer size. * Install device-tree only if EFI_DT_INSTALL_TABLE is set. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
401d1c4f |
|
30-Oct-2020 |
Simon Glass <sjg@chromium.org> |
common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
a2f1482f |
|
03-Jan-2022 |
Ilias Apalodimas <ilias.apalodimas@linaro.org> |
efi_loader: Get rid of kaslr-seed if EFI_RNG_PROTOCOL is installed U-Boot, in some occasions, injects a 'kaslr-seed' property on the /chosen node. That would be problematic in case we want to measure the DTB we install in the configuration table, since it would change across reboots. The Linux kernel EFI-stub completely ignores it and only relies on EFI_RNG_PROTOCOL for it's own randomness needs (i.e the randomization of the physical placement of the kernel). In fact it (blindly) overwrites the existing seed if the protocol is installed. However it still uses it for randomizing it's virtual placement. So let's get rid of it in the presence of the RNG protocol. It's worth noting that TPMs also provide an RNG. So if we tweak our EFI_RNG_PROTOCOL slightly and install the protocol when a TPM device is present the 'kaslr-seed' property will always be removed, allowing us to reliably measure our DTB. Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> |
#
9ff9f4b4 |
|
14-Mar-2021 |
Mark Kettenis <kettenis@openbsd.org> |
efi_loader: fix memory type for memory reservation block The (yet unreleased version of the) devicetree specification clearly states that: As with the /reserved-memory node, when booting via UEFI entries in the Memory Reservation Block must also be listed in the system memory map obtained via the GetMemoryMap() toi protect against allocations by UEFI applications. The memory reservation block entries should be listed with type EfiReservedMemoryType. This restores the behaviour that was changed by commit 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory"). Fixes: 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory") Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
2ae80437 |
|
15-Feb-2021 |
Tom Rini <trini@konsulko.com> |
Merge branch '2021-02-02-drop-asm_global_data-when-unused' - Merge the patch to take <asm/global_data.h> out of <common.h>
|
#
1bc9fc34 |
|
01-Feb-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: only check size if EFI_DT_APPLY_FIXUPS In the implementation of the EFI_DT_FIXUP_PROTOCOL: * Only check the buffer size when EFI_DT_APPLY_FIXUPS is set. * In this case the field totalsize of the device-tree may not exceed the buffer size. * Install device-tree only if EFI_DT_INSTALL_TABLE is set. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
401d1c4f |
|
30-Oct-2020 |
Simon Glass <sjg@chromium.org> |
common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
9ff9f4b4 |
|
14-Mar-2021 |
Mark Kettenis <kettenis@openbsd.org> |
efi_loader: fix memory type for memory reservation block The (yet unreleased version of the) devicetree specification clearly states that: As with the /reserved-memory node, when booting via UEFI entries in the Memory Reservation Block must also be listed in the system memory map obtained via the GetMemoryMap() toi protect against allocations by UEFI applications. The memory reservation block entries should be listed with type EfiReservedMemoryType. This restores the behaviour that was changed by commit 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory"). Fixes: 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory") Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
2ae80437 |
|
15-Feb-2021 |
Tom Rini <trini@konsulko.com> |
Merge branch '2021-02-02-drop-asm_global_data-when-unused' - Merge the patch to take <asm/global_data.h> out of <common.h>
|
#
1bc9fc34 |
|
01-Feb-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: only check size if EFI_DT_APPLY_FIXUPS In the implementation of the EFI_DT_FIXUP_PROTOCOL: * Only check the buffer size when EFI_DT_APPLY_FIXUPS is set. * In this case the field totalsize of the device-tree may not exceed the buffer size. * Install device-tree only if EFI_DT_INSTALL_TABLE is set. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
401d1c4f |
|
30-Oct-2020 |
Simon Glass <sjg@chromium.org> |
common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
2ae80437 |
|
15-Feb-2021 |
Tom Rini <trini@konsulko.com> |
Merge branch '2021-02-02-drop-asm_global_data-when-unused' - Merge the patch to take <asm/global_data.h> out of <common.h>
|
#
1bc9fc34 |
|
01-Feb-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: only check size if EFI_DT_APPLY_FIXUPS In the implementation of the EFI_DT_FIXUP_PROTOCOL: * Only check the buffer size when EFI_DT_APPLY_FIXUPS is set. * In this case the field totalsize of the device-tree may not exceed the buffer size. * Install device-tree only if EFI_DT_INSTALL_TABLE is set. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
401d1c4f |
|
30-Oct-2020 |
Simon Glass <sjg@chromium.org> |
common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1bc9fc34 |
|
01-Feb-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: only check size if EFI_DT_APPLY_FIXUPS In the implementation of the EFI_DT_FIXUP_PROTOCOL: * Only check the buffer size when EFI_DT_APPLY_FIXUPS is set. * In this case the field totalsize of the device-tree may not exceed the buffer size. * Install device-tree only if EFI_DT_INSTALL_TABLE is set. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
4cb07d8d |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: make EFI_DT_FIXUP_PROTOCOL configurable Allow EFI_DT_FIXUP_PROTOCOL to be disabled via configuration. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
535c473e |
|
16-Jan-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fixup protocol, avoid forward declaration Avoid a forward declaration. Add a missing function description. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
94686f60 |
|
13-Dec-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: implement EFI_DT_FIXUP_PROTOCOL A boot manager like GRUB can use the protocol to * apply U-Boot's fix-ups to the a device-tree * let U-Boot make memory reservations according to the device-tree * install the device-tree as a configuration table Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |