roms/opensbi: Upgrade from v0.8 to v0.9
PATCH 1/1 roms/opensbi: Upgrade from v0.8 to v0.9
From: Bin Meng <[email protected]>
Upgrade OpenSBI from v0.8 to v0.9 and the pre-built bios images.
The v0.9 release includes the following commits:
35bc810 docs/platform: Update QEMU parameter for fw_payload
78afe11 config.mk: Update QEMU run command for generic and sifive fu540 platforms ec3e5b1 docs/platform: sifive_fu540: Update U-Boot instructions 7d61a68 README.md: fix markdown link formatting
a5f9104 lib/utils: fdt: Update FDT expand size to 1024 for reserved memory node ec1abf6 include: sbi_bitops: Remove dead shift assignment in ffs/fls 8e47649 lib: Add sbi_strncmp implementation
2845d2d lib: utils: Add a macro in libfdt_env.h for strncmp
2cfd2fc lib: utils: Use strncmp in fdt_parse_hart_id()
937caee lib: sbi_misaligned_ldst: Determine transformed instruction length correctly 4b18a2a firmware: fw_base: Improve exception stack setup in trap handler 9d56961 lib: sbi_trap: Fix hstatus.SPVP update in sbi_trap_redirect() d7f87d9 platform: kendryte/k210: fixup FDT
e435ba0 lib: sbi_init: Avoid thundering hurd problem with coldboot_lock 4f3bad6 lib: sbi: Handle the case where MTVAL has illegal instruction address 7b0b289 lib: sbi: Remove redundant SBI_HART_HAS_PMP feature
74d1db7 lib: sbi: Improve PMP CSR detection and progamming
2c341f7 lib: sbi: Detect and print MHPM counters at boot-time
162d453 include: sbi: Few cosmetic changes in riscv_encoding.h
ebc8ebc lib: sbi: Improve HPM CSR read/write emulation
dcb10c0 lib: sbi: Don't handle VS-mode ecall in sbi_trap_handler() bef63d6 include: Rename ECALL defines to match latest RISC-V spec c1c7c3e lib: sbi_trap: Allow M-mode to M-mode ECALLs
6734304 lib: sbi: Allow specifying start mode to sbi_hsm_hart_start() API 7ccf6bf lib: sbi: Allow specifying mode in sbi_hart_pmp_check_addr() API 9f935a4 lib: utils: Improve fdt_cpu_fixup() implementation
172fa16 lib: sbi: Ensure coldboot HART supports next privilege mode aaeca7e platform: generic: Don't mark non-MMU HARTs as invalid
7701ea1 lib: sbi: Fix PMP CSR detection
79bf80b lib: sbi_scratch: typo scatch
a04c465 makefile: fix clean directive
af4b50f Makefile: Build ELF, BIN and LD script in platform build directory 6ca0969 firmware: Add common FW_FDT_PATH compile-time option
9c07c51 firmware: Remove FW_PAYLOAD_FDT_PATH compile-time option e9a4bfb Makefile: Allow padding zeros when converting DTB to C source a0f2d4a platform: kendryte/k210: Add some padding for FDT fixups dbeeacb include: sbi: Remove redundant includes from sbi_platform.h a12d46a include: sbi: Remove pmp_region callbacks from sbi_platform_operations a126886 lib: sbi: Configure PMP late in coldboot and warmboot path f81d6f6 lib: sbi: Remove redundant hartid parameter from sbi_hart_init() 8b65005 include: sbi: Make hartmask pointer const in sbi_hartmask_test_hart() b1678af lib: sbi: Add initial domain support
e73b92d lib: sbi: Extend sbi_hsm_hart_started_mask() for domains 3a30d2c lib: sbi: Extend sbi_hsm_hart_start() for domains
530e95b lib: sbi: Optimize sbi_hsm_hart_started_mask() implementation 3e20037 lib: sbi: Extend sbi_system_reset() for domains
5edbb7c lib: utils: Update fdt_reserved_memory_fixup() to use current domain 5fd99db lib: utils: Update fdt_cpu_fixup() to use current domain e856462 lib: sbi: Remove redundant sbi_hart_pmp_xyz() functions c10c30b lib: sbi: Configure PMP based on domain memory regions
c347408 lib: sbi: Display domain details in boot prints
fdf5d5c docs: Add initial documentation for domain support
74c0ea1 lib: utils: Implement "ranges" property parsing
bf21632 lib: sbi: Detect PMP granularity and number of address bits a809f40 lib: sbi: Improve boot time print with additional PMP information 914f81f Makefile: Add option to use toolchain default ABI and ISA string 48616b3 lib: sbi: Improve boot prints in cold boot sequence
781cafd docs: fix a typo error
54a7734 include: sbi: Add SBI SRST extension related defines
c4acc60 include: sbi: Remove opensbi specific reset type defines da07479 platform: Remove dummy system reset functions
5c429ae lib: sbi: Improve system reset platform operations
548d03e lib: sbi: Implement System Reset (SRST) SBI extension
2677324 firmware: fw_base: Optimize trap handler for RV32 systems 8d2edc4 lib: sbi: Fix sbi_hart_switch_mode() for u-mode
3d921fa lib: sbi: Fix typo in sbi_domain_finalize()
4e37022 lib: sbi: Fix domain_count check in sbi_domain_finalize() c709d40 lib: sbi: Auto start domain only if boot HART within limits c1f6d89 include: sbi: Use lower bits for domain memory region permissions 62ea4f4 lib: sbi: Override domain boot HART when coldboot HART assigned to it 555e737 lib: sbi: Add error prints in sbi_domain_finalize()
9b65dca include: sbi: Add domains_init() platform operation
c0d2baa docs: Add domain device tree binding documentation
ba741ea lib: utils: Add helper routines to populate domains from FDT 4fffb53 platform: generic: Populate domains from FDT
e7da0b4 lib: utils/libfdt: Upgrade to v1.6.0 release
2179777 lib: utils: Allow FDT domain iteration functions to fail 7baccfc lib: sbi: Add function to register new domain
6fc1986 lib: utils: Remove fdt_domain_get() function
a029bd9 lib: sbi: Remove domain_get() platform callback function 7dcb1e1 lib: sbi: Fix sign-extension in sbi_misaligned_load_handler() 80bc506 lib: sbi: Replace args with trap registers in ecall handler b7df5e4 lib: sbi: Introduce sbi_trap_exit() API
12394a2 lib: sbi: Allow custom local TLB flush function
0d49c3b lib: utils: Fix shakti uart implementation
db56341 lib: sbi: Allow platforms to provide root domain memory regions e884416 include: sbi: No need to pack struct sbi_trap_regs
386eba2 include: sbi: No need to pack struct sbi_scratch
1bbf361 include: sbi: Don't pack struct sbi_platform and sbi_platform_operations da5293f platform: template: Fix compile error
234ed8e include: Bump-up version to 0.9
---
- please pull the full contents from https://github.com/lbmeng/qemu/
opensbi branch
.../opensbi-riscv32-generic-fw_dynamic.bin | Bin 62144 -> 78680 bytes .../opensbi-riscv32-generic-fw_dynamic.elf | Bin 558668 -> 727464 bytes .../opensbi-riscv64-generic-fw_dynamic.bin | Bin 70792 -> 75096 bytes .../opensbi-riscv64-generic-fw_dynamic.elf | Bin 620424 -> 781264 bytes roms/opensbi | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-)
pc-bios/opensbi-riscv32-generic-fw_dynamic.bin binary +0 -0
pc-bios/opensbi-riscv32-generic-fw_dynamic.elf binary +0 -0
pc-bios/opensbi-riscv64-generic-fw_dynamic.bin binary +0 -0
pc-bios/opensbi-riscv64-generic-fw_dynamic.elf binary +0 -0
roms/opensbi +1 -1
@@ -1 +1 @@ -Subproject commit a98258d0b537a295f517bbc8d813007336731fa9 +Subproject commit 234ed8e427f4d92903123199f6590d144e0d9351
Signature · 1 line
2.25.1
Quoted 99 lines · Bin Meng
From: Bin Meng <[email protected]>
Upgrade OpenSBI from v0.8 to v0.9 and the pre-built bios images.
The v0.9 release includes the following commits:
35bc810 docs/platform: Update QEMU parameter for
fw_payload
78afe11 config.mk: Update QEMU run command for generic and sifive fu540 platforms ec3e5b1 docs/platform:sifive_fu540: Update U-Boot instructions 7d61a68 README.md: fix markdown link formatting
a5f9104 lib/utils: fdt: Update FDT expand size to 1024 for reserved memory node ec1abf6 include:sbi_bitops: Remove dead shift assignment in ffs/fls 8e47649 lib: Addsbi_strncmpimplementation
2845d2d lib: utils: Add a macro inlibfdt_env.hfor strncmp
2cfd2fc lib: utils: Use strncmp infdt_parse_hart_id()
937caee lib:sbi_misaligned_ldst: Determine transformed instruction length correctly 4b18a2a firmware:fw_base: Improve exception stack setup in trap handler 9d56961 lib:sbi_trap: Fix hstatus.SPVP update insbi_trap_redirect()d7f87d9 platform: kendryte/k210: fixup FDT
e435ba0 lib:sbi_init: Avoid thundering hurd problem withcoldboot_lock4f3bad6 lib: sbi: Handle the case where MTVAL has illegal instruction address 7b0b289 lib: sbi: Remove redundantSBI_HART_HAS_PMPfeature
74d1db7 lib: sbi: Improve PMP CSR detection and progamming
2c341f7 lib: sbi: Detect and print MHPM counters at boot-time
162d453 include: sbi: Few cosmetic changes inriscv_encoding.h
ebc8ebc lib: sbi: Improve HPM CSR read/write emulation
dcb10c0 lib: sbi: Don't handle VS-mode ecall insbi_trap_handler()bef63d6 include: Rename ECALL defines to match latest RISC-V spec c1c7c3e lib:sbi_trap: Allow M-mode to M-mode ECALLs
6734304 lib: sbi: Allow specifying start mode tosbi_hsm_hart_start()API 7ccf6bf lib: sbi: Allow specifying mode insbi_hart_pmp_check_addr()API 9f935a4 lib: utils: Improvefdt_cpu_fixup()implementation
172fa16 lib: sbi: Ensure coldboot HART supports next privilege mode aaeca7e platform: generic: Don't mark non-MMU HARTs as invalid
7701ea1 lib: sbi: Fix PMP CSR detection
79bf80b lib:sbi_scratch: typo scatch
a04c465 makefile: fix clean directive
af4b50fMakefile: Build ELF, BIN and LD script in platform build directory 6ca0969 firmware: Add commonFW_FDT_PATHcompile-time option
9c07c51 firmware: RemoveFW_PAYLOAD_FDT_PATHcompile-time option e9a4bfbMakefile: Allow padding zeros when converting DTB to C source a0f2d4a platform: kendryte/k210: Add some padding for FDT fixups dbeeacb include: sbi: Remove redundant includes fromsbi_platform.ha12d46a include: sbi: Removepmp_regioncallbacks fromsbi_platform_operationsa126886 lib: sbi: Configure PMP late in coldboot and warmboot path f81d6f6 lib: sbi: Remove redundant hartid parameter fromsbi_hart_init()8b65005 include: sbi: Make hartmask pointer const insbi_hartmask_test_hart()b1678af lib: sbi: Add initial domain support
e73b92d lib: sbi: Extendsbi_hsm_hart_started_mask()for domains 3a30d2c lib: sbi: Extendsbi_hsm_hart_start()for domains
530e95b lib: sbi: Optimizesbi_hsm_hart_started_mask()implementation 3e20037 lib: sbi: Extendsbi_system_reset()for domains
5edbb7c lib: utils: Updatefdt_reserved_memory_fixup()to use current domain 5fd99db lib: utils: Updatefdt_cpu_fixup()to use current domain e856462 lib: sbi: Remove redundantsbi_hart_pmp_xyz()functions c10c30b lib: sbi: Configure PMP based on domain memory regions
c347408 lib: sbi: Display domain details in boot prints
fdf5d5c docs: Add initial documentation for domain support
74c0ea1 lib: utils: Implement "ranges" property parsing
bf21632 lib: sbi: Detect PMP granularity and number of address bits a809f40 lib: sbi: Improve boot time print with additional PMP information 914f81fMakefile: Add option to use toolchain default ABI and ISA string 48616b3 lib: sbi: Improve boot prints in cold boot sequence
781cafd docs: fix a typo error
54a7734 include: sbi: Add SBI SRST extension related defines
c4acc60 include: sbi: Remove opensbi specific reset type defines da07479 platform: Remove dummy system reset functions
5c429ae lib: sbi: Improve system reset platform operations
548d03e lib: sbi: Implement System Reset (SRST) SBI extension
2677324 firmware:fw_base: Optimize trap handler for RV32 systems 8d2edc4 lib: sbi: Fixsbi_hart_switch_mode()for u-mode
3d921fa lib: sbi: Fix typo insbi_domain_finalize()
4e37022 lib: sbi: Fixdomain_countcheck insbi_domain_finalize()c709d40 lib: sbi: Auto start domain only if boot HART within limits c1f6d89 include: sbi: Use lower bits for domain memory region permissions 62ea4f4 lib: sbi: Override domain boot HART when coldboot HART assigned to it 555e737 lib: sbi: Add error prints insbi_domain_finalize()
9b65dca include: sbi: Adddomains_init()platform operation
c0d2baa docs: Add domain device tree binding documentation
ba741ea lib: utils: Add helper routines to populate domains from FDT 4fffb53 platform: generic: Populate domains from FDT
e7da0b4 lib: utils/libfdt: Upgrade to v1.6.0 release
2179777 lib: utils: Allow FDT domain iteration functions to fail 7baccfc lib: sbi: Add function to register new domain
6fc1986 lib: utils: Removefdt_domain_get()function
a029bd9 lib: sbi: Removedomain_get()platform callback function 7dcb1e1 lib: sbi: Fix sign-extension insbi_misaligned_load_handler()80bc506 lib: sbi: Replace args with trap registers in ecall handler b7df5e4 lib: sbi: Introducesbi_trap_exit()API
12394a2 lib: sbi: Allow custom local TLB flush function
0d49c3b lib: utils: Fix shakti uart implementation
db56341 lib: sbi: Allow platforms to provide root domain memory regions e884416 include: sbi: No need to pack structsbi_trap_regs
386eba2 include: sbi: No need to pack structsbi_scratch
1bbf361 include: sbi: Don't pack structsbi_platformandsbi_platform_operationsda5293f platform: template: Fix compile error
234ed8e include: Bump-up version to 0.9
Quoted 1 line
Signed-off-by Bin Meng <[email protected]>
Alistair
Quoted 35 lines
---
- please pull the full contents from https://github.com/lbmeng/qemu/
opensbi branch.../opensbi-riscv32-generic-fw_dynamic.bin | Bin 62144 -> 78680 bytes .../opensbi-riscv32-generic-fw_dynamic.elf | Bin 558668 -> 727464 bytes .../opensbi-riscv64-generic-fw_dynamic.bin | Bin 70792 -> 75096 bytes .../opensbi-riscv64-generic-fw_dynamic.elf | Bin 620424 -> 781264 bytes roms/opensbi | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-)pc-bios/opensbi-riscv32-generic-fw_dynamic.bin binary +0
-0pc-bios/opensbi-riscv32-generic-fw_dynamic.elf binary +0
-0pc-bios/opensbi-riscv64-generic-fw_dynamic.bin binary +0
-0pc-bios/opensbi-riscv64-generic-fw_dynamic.elf binary +0
-0roms/opensbi +1
-2@@ -1 +1 @@ -Subproject commit a98258d0b537a295f517bbc8d813007336731fa9 +Subproject commit 234ed8e427f4d92903123199f6590d144e0d9351 --2.25.1
Alistair Francis
AppliedQuoted 99 lines · Bin Meng
From: Bin Meng <[email protected]>
Upgrade OpenSBI from v0.8 to v0.9 and the pre-built bios images.
The v0.9 release includes the following commits:
35bc810 docs/platform: Update QEMU parameter for
fw_payload
78afe11 config.mk: Update QEMU run command for generic and sifive fu540 platforms ec3e5b1 docs/platform:sifive_fu540: Update U-Boot instructions 7d61a68 README.md: fix markdown link formatting
a5f9104 lib/utils: fdt: Update FDT expand size to 1024 for reserved memory node ec1abf6 include:sbi_bitops: Remove dead shift assignment in ffs/fls 8e47649 lib: Addsbi_strncmpimplementation
2845d2d lib: utils: Add a macro inlibfdt_env.hfor strncmp
2cfd2fc lib: utils: Use strncmp infdt_parse_hart_id()
937caee lib:sbi_misaligned_ldst: Determine transformed instruction length correctly 4b18a2a firmware:fw_base: Improve exception stack setup in trap handler 9d56961 lib:sbi_trap: Fix hstatus.SPVP update insbi_trap_redirect()d7f87d9 platform: kendryte/k210: fixup FDT
e435ba0 lib:sbi_init: Avoid thundering hurd problem withcoldboot_lock4f3bad6 lib: sbi: Handle the case where MTVAL has illegal instruction address 7b0b289 lib: sbi: Remove redundantSBI_HART_HAS_PMPfeature
74d1db7 lib: sbi: Improve PMP CSR detection and progamming
2c341f7 lib: sbi: Detect and print MHPM counters at boot-time
162d453 include: sbi: Few cosmetic changes inriscv_encoding.h
ebc8ebc lib: sbi: Improve HPM CSR read/write emulation
dcb10c0 lib: sbi: Don't handle VS-mode ecall insbi_trap_handler()bef63d6 include: Rename ECALL defines to match latest RISC-V spec c1c7c3e lib:sbi_trap: Allow M-mode to M-mode ECALLs
6734304 lib: sbi: Allow specifying start mode tosbi_hsm_hart_start()API 7ccf6bf lib: sbi: Allow specifying mode insbi_hart_pmp_check_addr()API 9f935a4 lib: utils: Improvefdt_cpu_fixup()implementation
172fa16 lib: sbi: Ensure coldboot HART supports next privilege mode aaeca7e platform: generic: Don't mark non-MMU HARTs as invalid
7701ea1 lib: sbi: Fix PMP CSR detection
79bf80b lib:sbi_scratch: typo scatch
a04c465 makefile: fix clean directive
af4b50fMakefile: Build ELF, BIN and LD script in platform build directory 6ca0969 firmware: Add commonFW_FDT_PATHcompile-time option
9c07c51 firmware: RemoveFW_PAYLOAD_FDT_PATHcompile-time option e9a4bfbMakefile: Allow padding zeros when converting DTB to C source a0f2d4a platform: kendryte/k210: Add some padding for FDT fixups dbeeacb include: sbi: Remove redundant includes fromsbi_platform.ha12d46a include: sbi: Removepmp_regioncallbacks fromsbi_platform_operationsa126886 lib: sbi: Configure PMP late in coldboot and warmboot path f81d6f6 lib: sbi: Remove redundant hartid parameter fromsbi_hart_init()8b65005 include: sbi: Make hartmask pointer const insbi_hartmask_test_hart()b1678af lib: sbi: Add initial domain support
e73b92d lib: sbi: Extendsbi_hsm_hart_started_mask()for domains 3a30d2c lib: sbi: Extendsbi_hsm_hart_start()for domains
530e95b lib: sbi: Optimizesbi_hsm_hart_started_mask()implementation 3e20037 lib: sbi: Extendsbi_system_reset()for domains
5edbb7c lib: utils: Updatefdt_reserved_memory_fixup()to use current domain 5fd99db lib: utils: Updatefdt_cpu_fixup()to use current domain e856462 lib: sbi: Remove redundantsbi_hart_pmp_xyz()functions c10c30b lib: sbi: Configure PMP based on domain memory regions
c347408 lib: sbi: Display domain details in boot prints
fdf5d5c docs: Add initial documentation for domain support
74c0ea1 lib: utils: Implement "ranges" property parsing
bf21632 lib: sbi: Detect PMP granularity and number of address bits a809f40 lib: sbi: Improve boot time print with additional PMP information 914f81fMakefile: Add option to use toolchain default ABI and ISA string 48616b3 lib: sbi: Improve boot prints in cold boot sequence
781cafd docs: fix a typo error
54a7734 include: sbi: Add SBI SRST extension related defines
c4acc60 include: sbi: Remove opensbi specific reset type defines da07479 platform: Remove dummy system reset functions
5c429ae lib: sbi: Improve system reset platform operations
548d03e lib: sbi: Implement System Reset (SRST) SBI extension
2677324 firmware:fw_base: Optimize trap handler for RV32 systems 8d2edc4 lib: sbi: Fixsbi_hart_switch_mode()for u-mode
3d921fa lib: sbi: Fix typo insbi_domain_finalize()
4e37022 lib: sbi: Fixdomain_countcheck insbi_domain_finalize()c709d40 lib: sbi: Auto start domain only if boot HART within limits c1f6d89 include: sbi: Use lower bits for domain memory region permissions 62ea4f4 lib: sbi: Override domain boot HART when coldboot HART assigned to it 555e737 lib: sbi: Add error prints insbi_domain_finalize()
9b65dca include: sbi: Adddomains_init()platform operation
c0d2baa docs: Add domain device tree binding documentation
ba741ea lib: utils: Add helper routines to populate domains from FDT 4fffb53 platform: generic: Populate domains from FDT
e7da0b4 lib: utils/libfdt: Upgrade to v1.6.0 release
2179777 lib: utils: Allow FDT domain iteration functions to fail 7baccfc lib: sbi: Add function to register new domain
6fc1986 lib: utils: Removefdt_domain_get()function
a029bd9 lib: sbi: Removedomain_get()platform callback function 7dcb1e1 lib: sbi: Fix sign-extension insbi_misaligned_load_handler()80bc506 lib: sbi: Replace args with trap registers in ecall handler b7df5e4 lib: sbi: Introducesbi_trap_exit()API
12394a2 lib: sbi: Allow custom local TLB flush function
0d49c3b lib: utils: Fix shakti uart implementation
db56341 lib: sbi: Allow platforms to provide root domain memory regions e884416 include: sbi: No need to pack structsbi_trap_regs
386eba2 include: sbi: No need to pack structsbi_scratch
1bbf361 include: sbi: Don't pack structsbi_platformandsbi_platform_operationsda5293f platform: template: Fix compile error
234ed8e include: Bump-up version to 0.9
Quoted 1 line
Signed-off-by Bin Meng <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 35 lines
---
- please pull the full contents from https://github.com/lbmeng/qemu/
opensbi branch.../opensbi-riscv32-generic-fw_dynamic.bin | Bin 62144 -> 78680 bytes .../opensbi-riscv32-generic-fw_dynamic.elf | Bin 558668 -> 727464 bytes .../opensbi-riscv64-generic-fw_dynamic.bin | Bin 70792 -> 75096 bytes .../opensbi-riscv64-generic-fw_dynamic.elf | Bin 620424 -> 781264 bytes roms/opensbi | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-)pc-bios/opensbi-riscv32-generic-fw_dynamic.bin binary +0
-0pc-bios/opensbi-riscv32-generic-fw_dynamic.elf binary +0
-0pc-bios/opensbi-riscv64-generic-fw_dynamic.bin binary +0
-0pc-bios/opensbi-riscv64-generic-fw_dynamic.elf binary +0
-0roms/opensbi +1
-2@@ -1 +1 @@ -Subproject commit a98258d0b537a295f517bbc8d813007336731fa9 +Subproject commit 234ed8e427f4d92903123199f6590d144e0d9351 --2.25.1