[INSTRM-1209] Run SMB code as SCHED_FIFO. Created: 16/Mar/21  Updated: 21/Apr/21  Resolved: 21/Apr/21

Status: Done
Project: Instrument control development
Component/s: ics_xcu_smb
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Done Votes: 0
Labels: SPS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 1
Sprint: SM1PD-2021 A 5, SM1PD-2021 A 6, SM1PD-2021 A7

 Description   

Especially since the DAC SPI traffic is done by GPIO bit-banging, make sure to run the controller in the SCHED_FIFO class.

This should be safe: the code is a select loop waiting for TCP command packets and breaking out for a 1Hz update loop. Components of the steps of that loop are what need to be made non-interruptable; there is plenty of idle time after the step for us to do it all in one single step.

Will abuse sudo, since I am not energetic enough to figure out robust use of linux capabilities, etc.



 Comments   
Comment by cloomis [ 21/Apr/21 ]

Merged at 8ceb8f1, tagged 1.4.1

Generated at Sat Feb 10 16:33:00 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.