From: Greg KH <gregkh@linuxfoundation.org>
To: Lukas Wunner <lukas@wunner.de>
Cc: Alistair Francis <alistair23@gmail.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
bhelgaas@google.com, linux-pci@vger.kernel.org,
alex.williamson@redhat.com, christian.koenig@amd.com,
kch@nvidia.com, logang@deltatee.com,
linux-kernel@vger.kernel.org,
Alistair Francis <alistair.francis@wdc.com>
Subject: Re: [PATCH v2] PCI/DOE: Expose the DOE protocols via sysfs
Date: Sat, 5 Aug 2023 07:59:51 +0200 [thread overview]
Message-ID: <2023080553-daringly-raider-0135@gregkh> (raw)
In-Reply-To: <20230804160542.GA19120@wunner.de>
On Fri, Aug 04, 2023 at 06:05:42PM +0200, Lukas Wunner wrote:
> On Fri, Aug 04, 2023 at 11:17:59AM -0400, Alistair Francis wrote:
> > On Wed, Aug 2, 2023 at 6:52???PM Lukas Wunner <lukas@wunner.de> wrote:
> > > I kind of like the approach of exposing a list which can be grep'ed,
> > > even though it may go against the rule of having just one datum per
> > > attribute. I'd prefer a representation that's human-readable though,
> > > e.g. "0001:01" for CMA-SPDM.
> >
> > Yeah, it's my preferred method as well, but it's not going to be
> > accepted upstream
>
> How about procfs instead of sysfs?
No, procfs is for "processes", not devices.
> No "single datum per file" rule over there.
> PCI content goes into /proc/bus/pci/.
> Already used by lspci to access config space.
And that is old legacy stuff, please, let us learn from our past
mistakes in api creation, sysfs was created this way for a reason (i.e.
large files in procfs do not work well over time.)
thanks,
greg k-h
prev parent reply other threads:[~2023-08-05 5:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 12:18 [PATCH v2] PCI/DOE: Expose the DOE protocols via sysfs Alistair Francis
2023-08-01 13:25 ` Greg KH
2023-08-01 13:28 ` Greg KH
2023-08-01 13:48 ` Alistair Francis
2023-08-01 16:07 ` Jonathan Cameron
2023-08-01 18:24 ` Alistair Francis
2023-08-02 22:52 ` Lukas Wunner
2023-08-04 15:17 ` Alistair Francis
2023-08-04 16:05 ` Lukas Wunner
2023-08-05 5:59 ` Greg KH [this message]
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=2023080553-daringly-raider-0135@gregkh \
--to=gregkh@linuxfoundation.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=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