-
Notifications
You must be signed in to change notification settings - Fork 63
net: pcie-vdm: Support non-zero Instance IDs #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: aspeed-master-v6.6
Are you sure you want to change the base?
net: pcie-vdm: Support non-zero Instance IDs #3
Conversation
Currently MCTP Control message handler assumes that 'Instance ID' field in the message header is equal zero which is not always the case. Update code to support MCTP Control messages with non-zero Instance ID. Signed-off-by: Konstantin Aladyshev <[email protected]>
|
Hi @Kostr, Thanks for the PR! Just a quick note—this function is planned to be deprecated in the next version. We originally implemented it for two main reasons:
However, after further discussion with the MCTP core maintainer, we reached the following conclusions:
You can find the full discussion in the email thread here: As for this PR—since the driver no longer needs to update the route type or maintain the route table, we can simplify things by removing this function and sending the packet directly. |
|
I thought that the need for the table was the fact that aspeed MCTP hardware doesn't receive full PCIe headers, but only some parts of it. /* TODO: PCI Requester ID: HW didn't get this information */
hdr[6] = 0;
hdr[7] = 5;And if we put it as-is in the VDM driver (https://github.com/AspeedTech-BMC/linux/blob/aspeed-master-v6.6/drivers/net/mctp/mctp-pcie-vdm.c#L427) cb = __mctp_cb(skb);
cb->halen = 2; // BDF size is 2 bytes
memcpy(cb->haddr, &vdm_hdr->pci_req_id, cb->halen);the packet would be routed incorrectly. What would change regarding this case? Will |
|
Hi @Kostr, Currently, the May I ask if you're using an AST2500 platform for development? |
|
@aspeedyh you are correct. In my case I'm using a custom server board with the Intel CPU and AST2500. I had to make several tweaks to the |
|
@aspeedyh So what is the plan regarding AST2500? Would it still support messaging via I have some other changes for AST2500, but with the information above, I don't really understand if you still want to support this chip. |
|
Hi @Kostr |
Currently MCTP Control message handler assumes that 'Instance ID' field in the message header is equal zero which is not always the case. Update code to support MCTP Control messages with non-zero Instance ID.