Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1635713

Re: [PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs

From Bjorn Helgaas <bhelgaas@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs
Date 2017-05-04 15:00 +0200
Message-ID <tDowq-3yX-19@gated-at.bofh.it> (permalink)
References <tx7RD-5kx-3@gated-at.bofh.it> <txh4B-2pM-1@gated-at.bofh.it> <tDjQ6-um-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 4, 2017 at 2:32 AM, Vee Khee Wong <vee.khee.wong@ni.com> wrote:
>
>
> On Mon, 2017-04-17 at 10:41 -0500, Bjorn Helgaas wrote:
>> On Mon, Apr 17, 2017 at 12:50 AM, Wong Vee Khee <vee.khee.wong@ni.com
>> > wrote:
>> >
>> > From: vwong <vee.khee.wong@ni.com>
>> >
>> > Export the PCIe link attributes of PCI bridges to sysfs.
>> This needs justification for *why* we should export these via sysfs.
>>
>> Some of these things, e.g., secondary/subordinate bus numbers, are
>> already visible to non-privileged users via "lspci -v".
>>
> We need to expose these attributes via sysfs due to several reasons
> listed below:
>
> 1) PCIe capabilities info such as Maximum/Actual link width and link speed only visible to privileged users via "lspci -vvv". The software that my team is working on need to get PCIe link information as non-root user.
>
> 2) From a client perspective, it require a lot of overhead parsing output of lspci to get PCIe capabilities. Our application is only interested in getting PCIe bridges but lspci print info for all PCIe devices.

I'm looking for a revised patch that incorporates the justification in
the changelog and addresses the code comments I made.

Bjorn

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs Vee Khee Wong <vee.khee.wong@ni.com> - 2017-05-04 10:00 +0200
  Re: [PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs Bjorn Helgaas <bhelgaas@google.com> - 2017-05-04 15:00 +0200

csiph-web