Re: [PATCH v3] Create pci slot files for SMBIOS Type 9 entries

2016-04-12 Thread Jordan Hargrave
s will create a /sys/bus/pci/slots/XXX file for each Type 9 entry. This >> will be \ >> used for systemd enumeration of NICs. >> >> Only build if CONFIG_DMI is set >> >> Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> >> --- >> arch/

Re: [PATCH v3] Create pci slot files for SMBIOS Type 9 entries

2016-04-12 Thread Jordan Hargrave
us/pci/slots/XXX file for each Type 9 entry. This >> will be \ >> used for systemd enumeration of NICs. >> >> Only build if CONFIG_DMI is set >> >> Signed-off-by: Jordan Hargrave >> --- >> arch/x86/pci/common.c | 21 + >>

Re: [PATCH] Create sysfs entries for PCI VPDI and VPDR tags

2016-02-19 Thread Jordan Hargrave
On Fri, Feb 19, 2016 at 4:00 AM, Hannes Reinecke <h...@suse.de> wrote: > > On 02/18/2016 09:04 PM, Jordan Hargrave wrote: > > The VPD-R is a readonly area of the PCI Vital Product Data region. > > There are some standard keywords for serial number, manufacturer, > &

Re: [PATCH] Create sysfs entries for PCI VPDI and VPDR tags

2016-02-19 Thread Jordan Hargrave
On Fri, Feb 19, 2016 at 4:00 AM, Hannes Reinecke wrote: > > On 02/18/2016 09:04 PM, Jordan Hargrave wrote: > > The VPD-R is a readonly area of the PCI Vital Product Data region. > > There are some standard keywords for serial number, manufacturer, > > and vendor-specific v

[PATCH 2/2] Create sysfs entries for PCI VPDI and VPDR tags

2016-02-18 Thread Jordan Hargrave
Number SN = Serial Number MN = Manufacturer ID Vx = Vendor-specific (x=0..9 A..Z) This creates a sysfs subdirectory in the pci device: vpdattr with 'info', 'EC', 'SN', 'V0', etc. files containing the tag values. Added pci.h patch Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.

[PATCH 2/2] Create sysfs entries for PCI VPDI and VPDR tags

2016-02-18 Thread Jordan Hargrave
Number SN = Serial Number MN = Manufacturer ID Vx = Vendor-specific (x=0..9 A..Z) This creates a sysfs subdirectory in the pci device: vpdattr with 'info', 'EC', 'SN', 'V0', etc. files containing the tag values. Added pci.h patch Signed-off-by: Jordan Hargrave --- include/linux/pci.h | 3

[PATCH] Create sysfs entries for PCI VPDI and VPDR tags

2016-02-18 Thread Jordan Hargrave
Number SN = Serial Number MN = Manufacturer ID Vx = Vendor-specific (x=0..9 A..Z) This creates a sysfs subdirectory in the pci device: vpdattr with 'info', 'EC', 'SN', 'V0', etc. files containing the tag values. Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/pci/pci-s

[PATCH] Create sysfs entries for PCI VPDI and VPDR tags

2016-02-18 Thread Jordan Hargrave
Number SN = Serial Number MN = Manufacturer ID Vx = Vendor-specific (x=0..9 A..Z) This creates a sysfs subdirectory in the pci device: vpdattr with 'info', 'EC', 'SN', 'V0', etc. files containing the tag values. Signed-off-by: Jordan Hargrave --- drivers/pci/pci-sysfs.c | 240

[PATCH] Limit VPD length on Atheros wifi cards

2015-12-29 Thread Jordan Hargrave
Attempt to read VPD on these cards causes kernel hang or delay Signed-off-by: Jordan Hargrave --- drivers/pci/quirks.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index e6376f6..a72667f 100644 --- a/drivers/pci

[PATCH] Limit VPD length on Atheros wifi cards

2015-12-29 Thread Jordan Hargrave
Attempt to read VPD on these cards causes kernel hang or delay Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/pci/quirks.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index e6376f6..a

[PATCH] Create sysfs entries for VPD-R keys

2015-12-08 Thread Jordan Hargrave
for determining Network partitioning and port numbers for NIC cards Signed-off-by: Jordan Hargrave --- drivers/pci/pci-sysfs.c | 216 +++ include/linux/pci.h |2 + 2 files changed, 218 insertions(+), 0 deletions(-) diff --git a/drivers/pci/pci-sysfs.c b

[PATCH] Create sysfs entries for VPD-R keys

2015-12-08 Thread Jordan Hargrave
for determining Network partitioning and port numbers for NIC cards Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/pci/pci-sysfs.c | 216 +++ include/linux/pci.h |2 + 2 files changed, 218 insertions(+), 0 deletions(-) diff

[PATCHv2 2/2] Create sysfs attribute 'slot' for mapping PCI device to SMBIOS slot

2015-11-30 Thread Jordan Hargrave
related patch Signed-off-by: Jordan Hargrave --- drivers/pci/pci-label.c | 96 - include/linux/pci.h | 2 ++ 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci-label.c b/drivers/pci/pci-label.c index 024b5c1..45ead2a

[PATCHv2 2/2] Create sysfs attribute 'slot' for mapping PCI device to SMBIOS slot

2015-11-30 Thread Jordan Hargrave
related patch Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/pci/pci-label.c | 96 - include/linux/pci.h | 2 ++ 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci-label.c b/drivers/pci/pci-l

[PATCHv3] Save SMBIOS Type 9 System Slots during DMI Scan

2015-11-27 Thread Jordan Hargrave
commit fdf6d7e7cf448b9482062d73a48895afaf38a458 Author: Jordan Hargrave Date: Fri Nov 27 20:39:59 2015 -0600 Fix spacing Check invalid slot entry according to spec commit 8a7fe87241b93c72cfd6ef818a680a2c7fc2f1c7 Author: Jordan Hargrave Date: Thu Nov 26 15:57:24 2015 -0600 Save

[PATCHv3] Save SMBIOS Type 9 System Slots during DMI Scan

2015-11-27 Thread Jordan Hargrave
commit fdf6d7e7cf448b9482062d73a48895afaf38a458 Author: Jordan Hargrave <jordan_hargr...@dell.com> Date: Fri Nov 27 20:39:59 2015 -0600 Fix spacing Check invalid slot entry according to spec commit 8a7fe87241b93c72cfd6ef818a680a2c7fc2f1c7 Author: Jordan Hargrave <jor

Re: [PATCH] Save SMBIOS Type 9 System Slots during DMI Scan

2015-11-26 Thread Jordan Hargrave
PCI address of onboard devices is currently saved but not for slots. Created common onboard/slot save function. Verify that bus address is not invalid. Signed-off-by: Jordan Hargrave --- drivers/firmware/dmi_scan.c | 53 +++-- include/linux/dmi.h

Re: [PATCH] Save SMBIOS Type 9 System Slots during DMI Scan

2015-11-26 Thread Jordan Hargrave
PCI address of onboard devices is currently saved but not for slots. Created common onboard/slot save function. Verify that bus address is not invalid. Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/firmware/dmi_scan.

[PATCH 2/2] Create sysfs attribute 'slot' for mapping PCI device to SMBIOS slot

2015-11-18 Thread Jordan Hargrave
This patch will use the saved SMBIOS Type 9 values to map a PCI device to a system slot. This includes devices under a bridge/switch on an add-in card. Signed-off-by: Jordan Hargrave --- drivers/pci/pci-label.c | 93 + include/linux/pci.h

[PATCH 1/2] Save SMBIOS Type 9 System Slots during DMI Scan

2015-11-18 Thread Jordan Hargrave
PCI address of onboard devices is currently saved but not for slots. Signed-off-by: Jordan Hargrave --- drivers/firmware/dmi_scan.c | 39 +++ include/linux/dmi.h | 1 + 2 files changed, 40 insertions(+) diff --git a/drivers/firmware/dmi_scan.c b

[PATCH 2/2] Create sysfs attribute 'slot' for mapping PCI device to SMBIOS slot

2015-11-18 Thread Jordan Hargrave
This patch will use the saved SMBIOS Type 9 values to map a PCI device to a system slot. This includes devices under a bridge/switch on an add-in card. Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/pci/pci-label.

[PATCH 1/2] Save SMBIOS Type 9 System Slots during DMI Scan

2015-11-18 Thread Jordan Hargrave
PCI address of onboard devices is currently saved but not for slots. Signed-off-by: Jordan Hargrave <jordan_hargr...@dell.com> --- drivers/firmware/dmi_scan.c | 39 +++ include/linux/dmi.h | 1 + 2 files changed, 40 insertions(+) diff --git a/d

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-11-10 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 10:11 PM, Jordan Hargrave wrote: > On Thu, Jul 23, 2015 at 9:31 PM, Jordan Hargrave wrote: >> On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas wrote: >>> [+cc Matthew for PCIe-SSD perspective] >>> >>> On Wed, Jul 22, 2015 at 03:

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-11-10 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 10:11 PM, Jordan Hargrave <jhar...@gmail.com> wrote: > On Thu, Jul 23, 2015 at 9:31 PM, Jordan Hargrave <jhar...@gmail.com> wrote: >> On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas <bhelg...@google.com> wrote: >>> [+cc Matthew for PCIe-

Re: [PATCH] Remove check for SAS expander when querying bay/enclosure IDs.

2015-08-31 Thread Jordan Hargrave
On Tue, Jul 14, 2015 at 6:23 AM, Hannes Reinecke wrote: > On 07/13/2015 04:27 PM, Jordan Hargrave wrote: >> Dell Server backplanes can report bay/enclosure IDs without an >> expander present. This patch allows the bay/enclosure IDs to be >> propagaged to sysfs.we >&g

Re: [PATCH] Remove check for SAS expander when querying bay/enclosure IDs.

2015-08-31 Thread Jordan Hargrave
On Tue, Jul 14, 2015 at 6:23 AM, Hannes Reinecke <h...@suse.de> wrote: > On 07/13/2015 04:27 PM, Jordan Hargrave wrote: >> Dell Server backplanes can report bay/enclosure IDs without an >> expander present. This patch allows the bay/enclosure IDs to be >> propagaged t

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-23 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 9:31 PM, Jordan Hargrave wrote: > On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas wrote: >> [+cc Matthew for PCIe-SSD perspective] >> >> On Wed, Jul 22, 2015 at 03:07:46PM -0500, Jordan Hargrave wrote: >>> On Tue, Jul 21, 2015 at

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-23 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas wrote: > [+cc Matthew for PCIe-SSD perspective] > > On Wed, Jul 22, 2015 at 03:07:46PM -0500, Jordan Hargrave wrote: >> On Tue, Jul 21, 2015 at 8:09 PM, Bjorn Helgaas wrote: >> > On Tue, Jul 21, 2015 at 12:31:35PM -050

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-23 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 9:31 PM, Jordan Hargrave jhar...@gmail.com wrote: On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas bhelg...@google.com wrote: [+cc Matthew for PCIe-SSD perspective] On Wed, Jul 22, 2015 at 03:07:46PM -0500, Jordan Hargrave wrote: On Tue, Jul 21, 2015 at 8:09 PM, Bjorn

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-23 Thread Jordan Hargrave
On Thu, Jul 23, 2015 at 12:24 PM, Bjorn Helgaas bhelg...@google.com wrote: [+cc Matthew for PCIe-SSD perspective] On Wed, Jul 22, 2015 at 03:07:46PM -0500, Jordan Hargrave wrote: On Tue, Jul 21, 2015 at 8:09 PM, Bjorn Helgaas bhelg...@google.com wrote: On Tue, Jul 21, 2015 at 12:31:35PM

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-22 Thread Jordan Hargrave
On Tue, Jul 21, 2015 at 8:09 PM, Bjorn Helgaas wrote: > On Tue, Jul 21, 2015 at 12:31:35PM -0500, Jordan Hargrave wrote: >> On Tue, Jul 21, 2015 at 11:57 AM, Bjorn Helgaas wrote: >> > On Mon, Jul 13, 2015 at 09:57:32AM -0500, Jordan Hargrave wrote: >> >> On Mon,

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-22 Thread Jordan Hargrave
On Tue, Jul 21, 2015 at 8:09 PM, Bjorn Helgaas bhelg...@google.com wrote: On Tue, Jul 21, 2015 at 12:31:35PM -0500, Jordan Hargrave wrote: On Tue, Jul 21, 2015 at 11:57 AM, Bjorn Helgaas bhelg...@google.com wrote: On Mon, Jul 13, 2015 at 09:57:32AM -0500, Jordan Hargrave wrote: On Mon, Jul

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-21 Thread Jordan Hargrave
On Tue, Jul 21, 2015 at 1:09 PM, Bjorn Helgaas wrote: > On Fri, Jul 10, 2015 at 05:02:46PM -0500, Jordan Hargrave wrote: >> From: Jordan Hargrave >> >> There currently isn't an easy way to determine which PCI devices belong to >> system slots. This patch adds su

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-21 Thread Jordan Hargrave
On Tue, Jul 21, 2015 at 11:57 AM, Bjorn Helgaas wrote: > On Mon, Jul 13, 2015 at 09:57:32AM -0500, Jordan Hargrave wrote: >> On Mon, Jul 13, 2015 at 2:35 AM, Jean Delvare wrote: >> >> > Hi Jordan, >> > >> > On Fri, 10 Jul 2015 17:02:46 -0500, Jordan Ha

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-21 Thread Jordan Hargrave
On Tue, Jul 21, 2015 at 11:57 AM, Bjorn Helgaas bhelg...@google.com wrote: On Mon, Jul 13, 2015 at 09:57:32AM -0500, Jordan Hargrave wrote: On Mon, Jul 13, 2015 at 2:35 AM, Jean Delvare jdelv...@suse.de wrote: Hi Jordan, On Fri, 10 Jul 2015 17:02:46 -0500, Jordan Hargrave wrote: From

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-21 Thread Jordan Hargrave
On Tue, Jul 21, 2015 at 1:09 PM, Bjorn Helgaas bhelg...@google.com wrote: On Fri, Jul 10, 2015 at 05:02:46PM -0500, Jordan Hargrave wrote: From: Jordan Hargrave jordan_hargr...@dell.com There currently isn't an easy way to determine which PCI devices belong to system slots. This patch adds

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-13 Thread Jordan Hargrave
On Mon, Jul 13, 2015 at 2:35 AM, Jean Delvare wrote: > > Hi Jordan, > On Fri, 10 Jul 2015 17:02:46 -0500, Jordan Hargrave wrote: > From: Jordan Hargrave > > > > There currently isn't an easy way to determine which PCI devices belong > > to > > system slo

[PATCH] Remove check for SAS expander when querying bay/enclosure IDs.

2015-07-13 Thread Jordan Hargrave
Dell Server backplanes can report bay/enclosure IDs without an expander present. This patch allows the bay/enclosure IDs to be propagaged to sysfs.we Signed-off-by: Jordan Hargrave --- drivers/scsi/scsi_transport_sas.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/scsi

[PATCH] Remove check for SAS expander when querying bay/enclosure IDs.

2015-07-13 Thread Jordan Hargrave
Dell Server backplanes can report bay/enclosure IDs without an expander present. This patch allows the bay/enclosure IDs to be propagaged to sysfs.we Signed-off-by: Jordan Hargrave jordan_hargr...@dell.com --- drivers/scsi/scsi_transport_sas.c | 10 -- 1 file changed, 10 deletions

Re: [PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-13 Thread Jordan Hargrave
On Mon, Jul 13, 2015 at 2:35 AM, Jean Delvare jdelv...@suse.de wrote: Hi Jordan, On Fri, 10 Jul 2015 17:02:46 -0500, Jordan Hargrave wrote: From: Jordan Hargrave jordan_hargr...@dell.com There currently isn't an easy way to determine which PCI devices belong to system slots

[PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-10 Thread Jordan Hargrave
From: Jordan Hargrave There currently isn't an easy way to determine which PCI devices belong to system slots. This patch adds support to read SMBIOS Type 9 (System Slots). Signed-off-by: Jordan Hargrave --- drivers/firmware/dmi_scan.c | 39 drivers/pci/pci-label.c

[PATCH] Add support for reading SMBIOS Slot number for PCI devices

2015-07-10 Thread Jordan Hargrave
From: Jordan Hargrave jordan_hargr...@dell.com There currently isn't an easy way to determine which PCI devices belong to system slots. This patch adds support to read SMBIOS Type 9 (System Slots). Signed-off-by: Jordan Hargrave jordan_hargr...@dell.com --- drivers/firmware/dmi_scan.c | 39

[PATCH] Add MODULE_ALIAS for autoloading ipmi driver on ACPI systems

2012-07-26 Thread jordan hargrave
The latest versions of the kernel drivers for ipmi can use ACPI to determine the type of BMC device used in the system. The following patch adds a module alias so that udev will autoload the ipmi_si driver. Signed-off-by: Jordan Hargrave --- drivers/char/ipmi/ipmi_si_intf.c |2 ++ 1 files

Add MODULE_ALIAS to autoload ipmi drivers on ACPI systems

2012-07-26 Thread jordan hargrave
The latest versions of the kernel drivers for ipmi can use ACPI to determine the type of BMC device used in the system. The following patch adds a module alias so that udev will autoload the ipmi_si driver. --- drivers/char/ipmi/ipmi_si_intf.c.orig 2012-07-26 09:18:58.0 -0500 +++

Add MODULE_ALIAS to autoload ipmi drivers on ACPI systems

2012-07-26 Thread jordan hargrave
The latest versions of the kernel drivers for ipmi can use ACPI to determine the type of BMC device used in the system. The following patch adds a module alias so that udev will autoload the ipmi_si driver. --- drivers/char/ipmi/ipmi_si_intf.c.orig 2012-07-26 09:18:58.0 -0500 +++

[PATCH] Add MODULE_ALIAS for autoloading ipmi driver on ACPI systems

2012-07-26 Thread jordan hargrave
The latest versions of the kernel drivers for ipmi can use ACPI to determine the type of BMC device used in the system. The following patch adds a module alias so that udev will autoload the ipmi_si driver. Signed-off-by: Jordan Hargrave jordan_hargr...@dell.com --- drivers/char/ipmi