Skip to content

mctpd: handle Discovery Notify (DSP0236 command 0x0D) - #176

Closed
FXN-Bruce wants to merge 2 commits into
CodeConstruct:mainfrom
FXN-Bruce:discovery-notify
Closed

mctpd: handle Discovery Notify (DSP0236 command 0x0D)#176
FXN-Bruce wants to merge 2 commits into
CodeConstruct:mainfrom
FXN-Bruce:discovery-notify

Conversation

@FXN-Bruce

Copy link
Copy Markdown

mctpd currently falls through to handle_control_unsupported() for an
incoming Discovery Notify, replying with an unsupported-command error
and taking no other action.

Add a handler that acknowledges the message (using physical
addressing, since the sender may not have a valid EID yet) and emits
a "DiscoveryNotify" D-Bus signal on the sender's interface object
(au.com.codeconstruct.MCTP.BusOwner1 at
/au/com/codeconstruct/mctp1/interfaces/). The handler does not
otherwise inspect or modify peer/EID state itself - reconciling what
a Discovery Notify implies for a given peer is bus-owner policy, left
to whatever subscribes to the signal.

@FXN-Bruce FXN-Bruce changed the title Discovery notify mctpd: handle Discovery Notify (DSP0236 command 0x0D) Aug 28, 2026
mctpd currently falls through to handle_control_unsupported() for an
incoming Discovery Notify, replying with an unsupported-command error
and taking no other action.

Add a handler that acknowledges the message (using physical
addressing, since the sender may not have a valid EID yet) and emits
a "DiscoveryNotify" D-Bus signal on the sender's interface object
(au.com.codeconstruct.MCTP.BusOwner1 at
/au/com/codeconstruct/mctp1/interfaces/<ifname>). The handler does not
otherwise inspect or modify peer/EID state itself - reconciling what
a Discovery Notify implies for a given peer is bus-owner policy, left
to whatever subscribes to the signal.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Bruce Hung <bruce.jy.hung@fii-foxconn.com>
Cover the new Discovery Notify handler: mctpd should ack the command
and emit a DiscoveryNotify signal on the sending interface's
BusOwner1 object, both before and after the sender has an assigned
EID.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Bruce Hung <bruce.jy.hung@fii-foxconn.com>
@jk-ozlabs

Copy link
Copy Markdown
Member

Please sync with #165.

@FXN-Bruce

Copy link
Copy Markdown
Author

Please sync with #165.

I see. Thank you. Withdrawing.

@FXN-Bruce FXN-Bruce closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants