review FSBL boot #118

Closed
opened 2021-01-15 11:35:09 +08:00 by sb10q · 8 comments
Owner
  • FPU enable
  • L2 cache enable
* FPU enable * L2 cache enable
Contributor

It seems that FSBL would enable FPU but the L2 cache is not enabled. Unit tests passed, the performance is not as good as when L2 cache is enabled but should be acceptable...
I wonder if we should enable the L2 cache in artiq-zynq rather than zynq-rs, as I'm not sure what would happen if you enable L2 cache twice...

Another workaround would be to boot szl with FSBL, and use netboot as network bootloader for artiq-zynq. But it may require adding some config for szl to prevent it from loading itself indefinitely.

It seems that FSBL would enable FPU but the L2 cache is not enabled. Unit tests passed, the performance is not as good as when L2 cache is enabled but should be acceptable... I wonder if we should enable the L2 cache in `artiq-zynq` rather than `zynq-rs`, as I'm not sure what would happen if you enable L2 cache twice... Another workaround would be to boot szl with FSBL, and use netboot as network bootloader for `artiq-zynq`. But it may require adding some config for `szl` to prevent it from loading itself indefinitely.
Author
Owner

It seems that FSBL would enable FPU

OK, and SZL does the same, and ARTIQ does not re-enable it - correct?

I wonder if we should enable the L2 cache in artiq-zynq rather than zynq-rs

This sounds like the correct solution for FSBL compatibility/consistency.

> It seems that FSBL would enable FPU OK, and SZL does the same, and ARTIQ does not re-enable it - correct? > I wonder if we should enable the L2 cache in artiq-zynq rather than zynq-rs This sounds like the correct solution for FSBL compatibility/consistency.
Collaborator

What's the impetus here? Being able to cross-check with ARTIQ booted from FSBL in case of any issues?

What's the impetus here? Being able to cross-check with ARTIQ booted from FSBL in case of any issues?
Contributor

It seems that FSBL would enable FPU

OK, and SZL does the same, and ARTIQ does not re-enable it - correct?

ARTIQ would re-enable it for core1. Maybe we should just drop that, and enable fpu for both cores in szl.

I wonder if we should enable the L2 cache in artiq-zynq rather than zynq-rs

This sounds like the correct solution for FSBL compatibility/consistency.

OK

What's the impetus here? Being able to cross-check with ARTIQ booted from FSBL in case of any issues?

See #94, currently there are some issues with the RAM initialization for a board, and it has to use FSBL for initialization. Still need some time to fix the issue.

> > It seems that FSBL would enable FPU > > OK, and SZL does the same, and ARTIQ does not re-enable it - correct? ARTIQ would re-enable it for core1. Maybe we should just drop that, and enable fpu for both cores in szl. > > I wonder if we should enable the L2 cache in artiq-zynq rather than zynq-rs > > This sounds like the correct solution for FSBL compatibility/consistency. OK > What's the impetus here? Being able to cross-check with ARTIQ booted from FSBL in case of any issues? See #94, currently there are some issues with the RAM initialization for a board, and it has to use FSBL for initialization. Still need some time to fix the issue.
Author
Owner

Maybe we should just drop that, and enable fpu for both cores in szl.

Yes, if FSBL enables it on both cores.

> Maybe we should just drop that, and enable fpu for both cores in szl. Yes, if FSBL enables it on both cores.
Author
Owner

What's the impetus here? Being able to cross-check with ARTIQ booted from FSBL in case of any issues?

Also make SZL more general and able to boot non-ARTIQ payloads.

> What's the impetus here? Being able to cross-check with ARTIQ booted from FSBL in case of any issues? Also make SZL more general and able to boot non-ARTIQ payloads.
Contributor

Maybe we should just drop that, and enable fpu for both cores in szl.

Yes, if FSBL enables it on both cores.

Sorry, no.
Currently both FSBL and SZL would not enable fpu on core1.

> > Maybe we should just drop that, and enable fpu for both cores in szl. > > Yes, if FSBL enables it on both cores. Sorry, no. Currently both FSBL and SZL would not enable fpu on core1.
Contributor

Also, apart from L2 cache, SZL would also some CPU options that improves performance. I'm not sure if FSBL would enable those.

E.g. prefetch, branch prediction, etc.

Also, apart from L2 cache, SZL would also some CPU options that improves performance. I'm not sure if FSBL would enable those. E.g. prefetch, branch prediction, etc.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#118
No description provided.