WIP: read idle kernel config after experiment end #310
No reviewers
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#310
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "srenblad/artiq-zynq:consistent_idle_kernel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I expect that this PR will be superseded by implementing idle kernel reading on flash, hence the WIP label.
Read idle kernel from flash after experiment ends
Currently, the idle kernel is only read once on startup. This PR allows updating idle kernels by flashing -> running an experiment. The new idle kernel will start as expected on experiment finish. This is consistent with the current idle kernel behavior on RISC-V devices.
Testing
[x] Tested on Kasli-SOC v1.1 with demo firmware, new idle kernel starts as expected
@ -806,3 +805,2 @@
mgmt::start(cfg);
let cfg: Rc<Config> = Rc::new(cfg);
Should Rc be passed to main() rather than created here?
This would also necessitate changing the signatures of
rtio_mgt::startup
andksupport::setup_device_map
(orborrow()
into the calls). Additionally, should this be the case forsoft_panic_main
? Still, I am happy to change it, if you have a preference for it.On second thought, this is unnecessary here, and this would be fine. I was thinking of RISC-V firmware that does this in that way. Here it wouldn't do much except add a bunch of unnecessary borrows.
That's not what I would expect. I would expect it to either start on boot (simplest code probably) or right after it is flashed. Running an experiment to trigger it sounds like an obscure workaround.
Consistent but looks broken.
read idle kernel config after experiment endto WIP: read idle kernel config after experiment endSuperseded by #325, closing.
Pull request closed