starfive-tech / JH7100_secondBoot

Other
14 stars 9 forks source link

Clear 0x7c1 CSR #8

Closed pdp7 closed 3 years ago

pdp7 commented 3 years ago

Now that the BeagleV Starlight board is moving to OpenSBI generic platform, we need to clear 0x7c1 CSR in secondboot or ddrinit while still in m-mode. This improves the performance of the SiFive U74 cores

pdp7 commented 3 years ago

cc @atishp04 @davidlt @lbmeng

MichaelZhuxx commented 3 years ago

@pdp7 please check this commit https://github.com/starfive-tech/beagle_secondBoot/commit/f5b3e894a2a9a4c13d087d3210a694285a803eb0

pdp7 commented 3 years ago

@pdp7 please check this commit f5b3e89

@MichaelZhuxx thank you

@davidlt does that look correct to you?

davidlt commented 3 years ago

Yup, should work. I can recheck benchmark once a new SPI Flash image is available.

pdp7 commented 3 years ago

@davidlt here is the binary that I built and flash ok bootloader-BEAGLEV-buildroot.zip

pdp7 commented 3 years ago

@davidlt did you get to do the benchmark yet?

davidlt commented 3 years ago

no yet, do we have instructions how to flash it? I kinda forgot that it's not u-boot so probably not via a menu.

davidlt commented 3 years ago

seems the debug header is missing and I need to solder it on for recover to work.

MichaelZhuxx commented 3 years ago

no yet, do we have instructions how to flash it? I kinda forgot that it's not u-boot so probably not via a menu.

@davidlt please refer to this guideline https://wiki.seeedstudio.com/BeagleV-Update-bootloader-ddr-init-boot-uboot-Recover-bootloader/ image

MichaelZhuxx commented 3 years ago

seems the debug header is missing and I need to solder it on for recover to work.

you can update the secondboot binary over 40pin header not debug header

davidlt commented 3 years ago

I used U-Boot built by Akira which has L2 fully enabled. Did a few runs, coremark is consistently at 5.13+. LGTM.