1017 Commits

Author SHA1 Message Date
e02b56b709 flake: update dependencies 2025-07-16 12:39:09 +08:00
8223d263f6 libconfig: remove Config struct
Replaced with module level functions.
2025-07-16 12:39:01 +08:00
1c64f4488a update cargo lockfile 2025-07-15 16:05:27 +08:00
67d79c81a5 satman: return rtio init reply in subkernels 2025-07-14 11:22:04 +08:00
9e6b06250a cargo fmt 2025-07-11 17:09:13 +08:00
58e54ec7af rtio init: wait for comms to acknowledge the reset 2025-07-11 17:03:51 +08:00
089f3cb664 cxp_camera_setup: support async read/write
cxp_camera_setup: change u32&u64 read/write functions to be async
2025-07-04 16:38:25 +08:00
b0f508f675 cxp_packet: support u64 async read/write
cxp_packet: refactor get_ctrl fns for reuse
cxp_packet: remove gating on async fns for cxp_camera_setup
cxp_packet: change u64 read/write fns to be async
cxp_packet: keep u32 read/write sync fn for cxp syscalls
2025-07-04 16:38:25 +08:00
89f22883e5 comms: suppress warning 2025-07-04 14:47:06 +08:00
160132a858 si5324: fix zc706 switch clock error 2025-07-04 10:55:53 +08:00
eeda17bbb5 rtio_mgt: don't panic if master not found 2025-07-04 10:16:10 +08:00
b7588ed629 rtio_mgt: do not assume master is at destination 0 2025-07-04 10:16:10 +08:00
7fc7e971f7 core1: don't assume 0 is the master's destination 2025-07-04 10:16:10 +08:00
aacf22211b rtio_mgt: move local rtio setup to link thread beginning 2025-07-04 10:16:10 +08:00
8769439d60 flake: update dependencies 2025-07-03 19:47:41 +08:00
7fb596e803 satman main: add CXP grabber thread and phy setup 2025-07-03 17:42:46 +08:00
137fb5375e satman: handle CXP drtio aux packet
satman main: gate drtiosat_cxp.rs behind has_cxp_grabber
drtiosat_cxp: spawn separate async task for read and write CXP operation
drtiosat_cxp: reply error if camera is not detected
drtiosat_cxp: process cxp roi viewer setup and data request
drtiosat_aux: forward and handle cxp aux packets
2025-07-03 17:42:46 +08:00
23af88157e si5324: fix no ack error with coaxpress_sfp led
si5324: select i2c mux ports when changing recovery clock
2025-07-03 17:42:46 +08:00
37cdc02b66 kasli_soc satellite: add coaxpress_sfp support
kasli_soc: remove error message when using coaxpress_sfp with satellite
satellite: use sfp slot 0 for coaxpress_sfp
satellite: connect the right virtual led bits when drtio_ch < 4
2025-07-03 17:42:46 +08:00
74a1ff2bc7 satellite json: add coaxpress_sfp 2025-07-03 17:42:46 +08:00
54d494e6ec kernel cxp: add CXP satellite support
api: compile cxp.rs with DRTIO using cfg gating
cxp: refactor xml helper fns to accept read byte closure
cxp: support non-local destination CXP syscall
cxp: pass satellite read, write, roi viewer request to core0
cxp: raise error when local has no cxp_grabber and no drtio
cxp: pass CXP error from satellite as CXPError
2025-07-03 17:42:46 +08:00
871de86e18 comms: handle CXP kernel message
kernel: add CXP error, read, write, roi viewer kernel messages
comms: send roi viewer setup to satellite
comms: support polling for roi viewer data, read, write request
comms: printout drtio aux and unexpected packet via error macro
comms: pass CXP error to kernel
2025-07-03 17:42:46 +08:00
fcb668dd23 drtioaux_proto: add CXP packets
proto: add CXP payload size in u8 and u64
proto: add CXP err, wait, read, write, roi viewer packets
2025-07-03 17:33:06 +08:00
7478ff4967 cxp_packet: add async CXP read/write operations 2025-07-03 17:33:06 +08:00
d9b5bb83c2 cxp_grabber: use async mutex to prevent deadlock 2025-07-03 17:33:06 +08:00
2defdc13bd cxp_grabber: move roi viewer setup from syscall 2025-07-03 17:33:06 +08:00
bb8bc269a2 cxp_grabber: move CXP thread from runtime main 2025-07-03 17:33:06 +08:00
c03d3c500b cargo fmt 2025-07-02 15:18:49 +08:00
23512254d4 cxp syscall: clear roi viewer ready CSR 2025-07-02 14:35:31 +08:00
e8b73e45fb cxp syscall: move to kernel directory 2025-07-02 14:35:31 +08:00
a5b46ca948 flake: update dependencies 2025-06-26 18:45:05 +08:00
eace3e9fb7 runtime: fix import warns 2025-06-26 15:39:02 +08:00
f2462b28e6 remove GlobalTimer, CountDown 2025-06-26 12:35:33 +08:00
ba3eec7154 flake: update dependencies 2025-06-26 12:35:25 +08:00
0c216c86ae flake: cleanup ramda python dep 2025-06-25 21:36:03 +08:00
ea3b6141c4 flake: update dependencies 2025-06-25 21:06:50 +08:00
955283eea4 cargo fmt 2025-06-19 10:54:31 +08:00
e4800e1343 libboard_artiq: remove unnecessary libsupport_zynq dep 2025-06-17 16:54:03 +08:00
6124937da0 update cargo lock 2025-06-16 15:14:10 +08:00
32b91027fd comms: remove Sockets::run 2025-06-16 15:14:10 +08:00
5afc1d4296 flake: update dependencies 2025-06-16 15:14:04 +08:00
1b012fd708 Shrink the DMA buffer after recording
We have to be careful here to ensure the DMA buffer is 512-bit
aligned. We used to do this by reserving space for padding, and then
adding it afterwards. Now we add it all up-front.
2025-06-16 12:35:44 +08:00
81baed1231 cargo fmt 2025-06-11 15:25:23 +08:00
bc80454c8d subkernel: async port
cargo: add async-recursion for rpc_async.rs
satman: add rpc_async.rs for subkernel
subkernel: Manager now take RefCell for config for async
subkernel: use async_send and async recv_w_timeout to prevent blocking
satman main: init config with RefCell
satman main: add awiat to async fn
dma, drtiosat_aux: add await to async fn
2025-06-11 15:25:23 +08:00
23d92f1cc2 routing: async port
drtiosat_aux: add await to routing async fn
2025-06-11 15:25:23 +08:00
9093ee9350 repeater: async port
repeater: use async delay and drtioaux_async to prevent blocking
drtiosat_aux and satman: add await to repeater async fn
2025-06-11 15:25:23 +08:00
c34779c20c drtiosat_aux: async port
drtiosat: use drtioaux_async to prevent blocking
satman main: add await for process_aux_packets
2025-06-11 15:25:23 +08:00
192f8b24fd satman main: main loop async port
main: use block_on on async main loop
main loop: use drtio_async to prevent blocking
main loop: refactor linkup_service into a separate function
grabber: spawn as separate async task instead of in the loop as hw tick
drtiosat_process_error: spawn as async task instead of in the loop
2025-06-11 15:25:23 +08:00
724ba885b0 satman: move process_aux_packet to drtiosat_aux 2025-06-11 15:24:49 +08:00
2340b44dae cargo fmt 2025-06-11 11:17:54 +08:00