From: Jeremy Kerr <jk@codeconstruct.com.au>
To: Khang D Nguyen <khangng@amperemail.onmicrosoft.com>,
YH Chung <yh_chung@aspeedtech.com>,
"matt@codeconstruct.com.au" <matt@codeconstruct.com.au>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
BMC-SW <BMC-SW@aspeedtech.com>
Cc: Hieu Le <lhieu@os.amperecomputing.com>
Subject: Re: [PATCH] net: mctp: Add MCTP PCIe VDM transport driver
Date: Fri, 18 Jul 2025 14:03:58 +0800 [thread overview]
Message-ID: <59d6a0ee7f47346d8beb0283ee79a493c76dbb45.camel@codeconstruct.com.au> (raw)
In-Reply-To: <5182407d-c252-403a-bb62-ebd11b0f126a@amperemail.onmicrosoft.com>
Hi Khang,
Thanks for the input, I appreciate it.
> > Khang: any inputs from your side there?
>
> I believe segment 0 is a common valid segment and is not reserved.
0 would not have a special meaning in flit mode (ie, when we're using
the segment number); this was more a reference to being optional in
non-flit mode.
> If we want to combine, we might need another bit in the first byte to
> represent if it is flit-mode or not. But I am not sure if it is worth
> the effort, rather than just separate them.
Yep, had the same line of thinking here too.
I agree that it would make sense to have the address format reflect the
actual hardware transport. Having variation across the binding
identifier should not be a problem.
> It should be safer and easier to get the format right for each Physical
> Medium Identifier, rather than for each Physical Transport Binding.
>
>
> So my opinion:
>
> - 3-byte for non-Flit (0x08-0x0E medium type)
> 4-byte for Flit Mode (0x40 medium type)
> - Drivers should be able to advertise their Physical Medium Identifier
> alongside the existing Physical Transport Binding Identifier.
> - We can document a stable lladdr / Linux kernel physical format used
> for sockets for each Physical Medium Identifier, not Physical
> Transport Binding.
Agreed, sounds like a good plan. I'll look at options for the physical
medium identifier.
YH: so we would just have the three-byte format for your proposed
driver:
[0]: routing type (bits 0:2, others reserved)
[1]: bus
[2]: device / function
- assuming you're only handling non-flit mode for now.
Cheers,
Jeremy
next prev parent reply other threads:[~2025-07-18 6:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-14 6:25 [PATCH] net: mctp: Add MCTP PCIe VDM transport driver aspeedyh
2025-07-14 8:54 ` Jeremy Kerr
2025-07-14 12:37 ` YH Chung
2025-07-15 1:08 ` Jeremy Kerr
2025-07-17 3:07 ` YH Chung
2025-07-17 5:37 ` Jeremy Kerr
2025-07-17 7:17 ` YH Chung
2025-07-17 7:31 ` Jeremy Kerr
2025-07-17 8:21 ` YH Chung
2025-07-17 21:40 ` Adam Young
2025-07-18 3:24 ` Jeremy Kerr
2025-07-17 21:43 ` Adam Young
2025-07-18 5:48 ` Khang D Nguyen
2025-07-18 6:03 ` Jeremy Kerr [this message]
2025-07-18 11:05 ` YH Chung
2025-07-15 2:26 ` kernel test robot
2025-07-17 10:39 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59d6a0ee7f47346d8beb0283ee79a493c76dbb45.camel@codeconstruct.com.au \
--to=jk@codeconstruct.com.au \
--cc=BMC-SW@aspeedtech.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=khangng@amperemail.onmicrosoft.com \
--cc=kuba@kernel.org \
--cc=lhieu@os.amperecomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=yh_chung@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).