From: Filippo Sironi <sironi@amazon.de>
To: helgaas@kernel.org, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Filippo Sironi <sironi@amazon.de>
Subject: [PATCH v2] pci: Expose offset, stride, and VF device ID via sysfs
Date: Mon, 9 Oct 2017 01:09:10 +0200 [thread overview]
Message-ID: <1507504151-16179-1-git-send-email-sironi@amazon.de> (raw)
In-Reply-To: <1503927530-26076-1-git-send-email-sironi@amazon.de>
Testing done:
$ ls -l /sys/bus/pci/devices/0000\:03\:00.0/
total 0
-rw-r--r-- 1 root root 4096 Oct 9 00:48 broken_parity_status
-r--r--r-- 1 root root 4096 Oct 9 00:48 class
-rw-r--r-- 1 root root 4096 Oct 9 00:46 config
-r--r--r-- 1 root root 4096 Oct 9 00:48 consistent_dma_mask_bits
-r--r--r-- 1 root root 4096 Oct 9 00:48 current_link_speed
-r--r--r-- 1 root root 4096 Oct 9 00:48 current_link_width
-rw-r--r-- 1 root root 4096 Oct 9 00:48 d3cold_allowed
-r--r--r-- 1 root root 4096 Oct 9 00:46 device
-r--r--r-- 1 root root 4096 Oct 9 00:48 dma_mask_bits
lrwxrwxrwx 1 root root 0 Oct 9 00:46 driver -> ../../../../bus/pci/drivers/igb
-rw-r--r-- 1 root root 4096 Oct 9 00:48 driver_override
-rw-r--r-- 1 root root 4096 Oct 9 00:48 enable
lrwxrwxrwx 1 root root 0 Oct 9 00:48 firmware_node -> ../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4b/device:4c
-r--r--r-- 1 root root 4096 Oct 9 00:46 irq
-r--r--r-- 1 root root 4096 Oct 9 00:48 local_cpulist
-r--r--r-- 1 root root 4096 Oct 9 00:48 local_cpus
-r--r--r-- 1 root root 4096 Oct 9 00:48 max_link_speed
-r--r--r-- 1 root root 4096 Oct 9 00:48 max_link_width
-r--r--r-- 1 root root 4096 Oct 9 00:48 modalias
-rw-r--r-- 1 root root 4096 Oct 9 00:48 msi_bus
drwxr-xr-x 2 root root 0 Oct 9 00:48 msi_irqs
drwxr-xr-x 3 root root 0 Oct 9 00:46 net
-rw-r--r-- 1 root root 4096 Oct 9 00:48 numa_node
drwxr-xr-x 2 root root 0 Oct 9 00:48 power
drwxr-xr-x 3 root root 0 Oct 9 00:46 ptp
--w--w---- 1 root root 4096 Oct 9 00:48 remove
--w--w---- 1 root root 4096 Oct 9 00:48 rescan
--w------- 1 root root 4096 Oct 9 00:48 reset
-r--r--r-- 1 root root 4096 Oct 9 00:46 resource
-rw------- 1 root root 131072 Oct 9 00:48 resource0
-rw------- 1 root root 4194304 Oct 9 00:48 resource1
-rw------- 1 root root 32 Oct 9 00:48 resource2
-rw------- 1 root root 16384 Oct 9 00:48 resource3
-r--r--r-- 1 root root 4096 Oct 9 00:48 revision
-rw-rw-r-- 1 root root 4096 Oct 9 00:48 sriov_drivers_autoprobe
-rw-rw-r-- 1 root root 4096 Oct 9 00:48 sriov_numvfs
-r--r--r-- 1 root root 4096 Oct 9 00:48 sriov_offset
-r--r--r-- 1 root root 4096 Oct 9 00:48 sriov_stride
-r--r--r-- 1 root root 4096 Oct 9 00:48 sriov_totalvfs
-r--r--r-- 1 root root 4096 Oct 9 00:48 sriov_vf_device
lrwxrwxrwx 1 root root 0 Oct 9 00:46 subsystem -> ../../../../bus/pci
-r--r--r-- 1 root root 4096 Oct 9 00:48 subsystem_device
-r--r--r-- 1 root root 4096 Oct 9 00:48 subsystem_vendor
-rw-r--r-- 1 root root 4096 Oct 9 00:46 uevent
-r--r--r-- 1 root root 4096 Oct 9 00:46 vendor
$ cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_offset
128
$ cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_stride
2
$ cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_vf_device
10ca
Filippo Sironi (1):
pci: Expose offset, stride, and VF device ID via sysfs
drivers/pci/pci-sysfs.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
--
2.7.4
next prev parent reply other threads:[~2017-10-08 23:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 13:38 [PATCH 1/2] pci: Cache the VF device ID in the SR-IOV structure Filippo Sironi
2017-08-28 13:38 ` [PATCH 2/2] pci: Expose offset, stride, and VF device ID via sysfs Filippo Sironi
2017-09-25 18:55 ` Bjorn Helgaas
2017-09-29 7:53 ` Sironi, Filippo
2017-10-03 19:31 ` Bjorn Helgaas
2017-10-03 19:48 ` Bjorn Helgaas
2017-10-04 17:32 ` Sironi, Filippo
2017-10-03 19:33 ` [PATCH 1/2] pci: Cache the VF device ID in the SR-IOV structure Bjorn Helgaas
2017-10-08 23:09 ` Filippo Sironi [this message]
2017-10-08 23:09 ` [PATCH v2] pci: Expose offset, stride, and VF device ID via sysfs Filippo Sironi
2017-10-11 0:15 ` Bjorn Helgaas
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=1507504151-16179-1-git-send-email-sironi@amazon.de \
--to=sironi@amazon.de \
--cc=helgaas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
/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).