Verify parallel slave FSM execution for parallel-slave-config branch#162
Closed
Copilot wants to merge 1 commit intoparallel-slave-configfrom
Closed
Verify parallel slave FSM execution for parallel-slave-config branch#162Copilot wants to merge 1 commit intoparallel-slave-configfrom
Copilot wants to merge 1 commit intoparallel-slave-configfrom
Conversation
Copilot
AI
changed the title
[WIP] Fix slave FSM execution for parallel configuration
Verify parallel slave FSM execution for parallel-slave-config branch
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the
parallel-slave-configbranch,ec_master_exec_slave_fsms()was architecturally mismatched with the new per-slave embedded datagram design: it still usedec_master_get_external_datagram(), passed external datagrams toec_fsm_slave_exec(), advancedext_ring_idx_fsmfor slots never used, and dereferencedfsm->datagram->stateas a pointer when it became an embedded struct — meaning the per-slave FSM datagrams were never transmitted.Changes verified in base branch (merged via PR #161)
master/master.c—ec_master_exec_slave_fsms()ec_master_get_external_datagram()usage; slave FSMs now use their own embeddedfsm->datagramec_fsm_slave_exec(fsm)callec_master_queue_datagram(master, &fsm->datagram)after execfsm->datagram.state(struct member, not pointer dereference)ext_ring_idx_fsmadvancement in slave FSM pathreturn→continueso one in-flight datagram doesn't stall all other slave FSMsmaster/fsm_master.c—ec_fsm_master_action_configure()fsm->fsm_slave_configpath withec_fsm_slave_request_config(&slave->fsm)for all slaves needing configec_fsm_master_state_wait_configstate instead of blocking on one slave at a timemaster/fsm_master.c—ec_fsm_master_state_wait_config()(new state)config_requested || config_runningacross all slave FSMsforce_config, clearsconfig_busy, wakesconfig_queue, then advances master FSMmaster/fsm_slave.c/master/fsm_slave.h— per-slave config FSMconfig_requested/config_runningflags and embeddedfsm_slave_config,fsm_change,fsm_coe_config,fsm_soe_config,fsm_pdosub-FSMs toec_fsm_slave_tec_fsm_slave_exec()now handles config internally: onconfig_requested, startsec_fsm_slave_configand drives it; regular request handling resumes after config completesec_fsm_slave_request_config()added as the public entry pointec_fsm_master_state_configure_slave()is retained (now unused by the master FSM) for potential future sequential-path use.Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.