From: Randy Dunlap <rdunlap@infradead.org>
To: Alistair Francis <alistair23@gmail.com>,
bhelgaas@google.com, linux-pci@vger.kernel.org,
Jonathan.Cameron@huawei.com, lukas@wunner.de
Cc: alex.williamson@redhat.com, christian.koenig@amd.com,
kch@nvidia.com, gregkh@linuxfoundation.org, logang@deltatee.com,
linux-kernel@vger.kernel.org,
Alistair Francis <alistair.francis@wdc.com>
Subject: Re: [PATCH v3] PCI/DOE: Expose the DOE protocols via sysfs
Date: Wed, 9 Aug 2023 16:43:51 -0700 [thread overview]
Message-ID: <fa02c06c-11f7-0900-1cee-21c491f929fd@infradead.org> (raw)
In-Reply-To: <20230809232851.1004023-1-alistair.francis@wdc.com>
Hi--
On 8/9/23 16:28, Alistair Francis wrote:
> The PCIe 6 specification added support for the Data Object Exchange (DOE).
> When DOE is supported the Discovery Data Object Protocol must be
> implemented. The protocol allows a requester to obtain information about
> the other DOE protocols supported by the device.
>
> The kernel is already querying the DOE protocols supported and cacheing
> the values. This patch exposes the values via sysfs. This will allow
> userspace to determine which DOE protocols are supported by the PCIe
> device.
>
> By exposing the information to userspace tools like lspci can relay the
> information to users. By listing all of the supported protocols we can
> allow userspace to parse and support the list, which might include
> vendor specific protocols as well as yet to be supported protocols.
>
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
> v3:
> - Expose each DOE feature as a separate file
>
> Documentation/ABI/testing/sysfs-bus-pci | 10 +++
> drivers/pci/doe.c | 107 ++++++++++++++++++++++++
> drivers/pci/pci-sysfs.c | 7 ++
> include/linux/pci-doe.h | 1 +
> 4 files changed, 125 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci
> index ecf47559f495..e754b8efdb69 100644
> --- a/Documentation/ABI/testing/sysfs-bus-pci
> +++ b/Documentation/ABI/testing/sysfs-bus-pci
> @@ -500,3 +500,13 @@ Description:
> console drivers from the device. Raw users of pci-sysfs
> resourceN attributes must be terminated prior to resizing.
> Success of the resizing operation is not guaranteed.
> +
> +What: /sys/bus/pci/devices/.../doe_proto
Should this be doe_protos
? like this:
+ .name = "doe_protos",
> +Date: July 2023
> +Contact: Linux PCI developers <linux-pci@vger.kernel.org>
> +Description:
> + This diectory contains a list of the supported Data Object Exchange (DOE)
directory
> + features. Each feature is a single file.
The feature values are in the file name; the files have no contents.
?
> + The value comes from the device and specifies the vendor and
> + data object type supported. The lower byte is the data object type and the next
> + two bytes are the vendor ID.
--
~Randy
next prev parent reply other threads:[~2023-08-09 23:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 23:28 [PATCH v3] PCI/DOE: Expose the DOE protocols via sysfs Alistair Francis
2023-08-09 23:43 ` Randy Dunlap [this message]
2023-08-10 0:13 ` Chaitanya Kulkarni
2023-08-10 5:05 ` Greg KH
2023-08-10 7:44 ` Lukas Wunner
2023-08-10 7:48 ` Greg KH
2023-08-10 7:34 ` Lukas Wunner
2023-08-10 15:34 ` Alistair Francis
2023-08-12 8:15 ` Lukas Wunner
2023-08-12 8:26 ` Greg KH
2023-08-15 13:44 ` Alistair Francis
2023-08-15 15:11 ` Greg KH
2023-08-15 19:50 ` Alistair Francis
2023-08-15 20:10 ` Greg KH
2023-08-17 19:41 ` Alistair Francis
2023-08-17 20:21 ` Greg KH
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=fa02c06c-11f7-0900-1cee-21c491f929fd@infradead.org \
--to=rdunlap@infradead.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=alex.williamson@redhat.com \
--cc=alistair.francis@wdc.com \
--cc=alistair23@gmail.com \
--cc=bhelgaas@google.com \
--cc=christian.koenig@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=kch@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=logang@deltatee.com \
--cc=lukas@wunner.de \
/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).