[PATCH v3 3/3] ACPI/device_sysfs: Clean up checkpatch errors

2016-04-30 Thread Betty Dall
Cleaning up two existing checkpatch errors (and 2 warnings) in device_sysfs.c since the file is being changed. The change in acpi_device_setup_files() is changing spaces to a tab. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.c | 16 +---

[PATCH v3 3/3] ACPI/device_sysfs: Clean up checkpatch errors

2016-04-30 Thread Betty Dall
Cleaning up two existing checkpatch errors (and 2 warnings) in device_sysfs.c since the file is being changed. The change in acpi_device_setup_files() is changing spaces to a tab. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 16 +--- 1 file changed, 9 insertions

[PATCH v3 2/3] ACPI/device_sysfs: Change _SUN and _STA show functions error return to EIO

2016-04-30 Thread Betty Dall
xists or there wouldn't be a sysfs file. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index 49cc0cb..e556a3e 100644 --- a/d

[PATCH v3 0/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-30 Thread Betty Dall
Left some of the checkpatch warnings in place. Betty Dall (3): ACPI/device_sysfs: Add sysfs support for _HRV hardware revision ACPI/device_sysfs: Change _SUN and _STA show functions error return to EIO ACPI/device_sysfs: Clean up checkpatch errors drivers/acpi/device_sysfs.

[PATCH v3 1/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-30 Thread Betty Dall
'hrv' file. It is most useful for non-PCI devices because lspci can list the hardware version for PCI devices. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/acpi/device_sys

[PATCH v3 2/3] ACPI/device_sysfs: Change _SUN and _STA show functions error return to EIO

2016-04-30 Thread Betty Dall
xists or there wouldn't be a sysfs file. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index 49cc0cb..e556a3e 100644 --- a/drivers/acpi/device_sysfs.c

[PATCH v3 0/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-30 Thread Betty Dall
Left some of the checkpatch warnings in place. Betty Dall (3): ACPI/device_sysfs: Add sysfs support for _HRV hardware revision ACPI/device_sysfs: Change _SUN and _STA show functions error return to EIO ACPI/device_sysfs: Clean up checkpatch errors drivers/acpi/device_sysfs.

[PATCH v3 1/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-30 Thread Betty Dall
'hrv' file. It is most useful for non-PCI devices because lspci can list the hardware version for PCI devices. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi

[PATCH v2 2/3] ACPI/device_sysfs: Change _SUN and _STA show functions error return to EIO

2016-04-29 Thread Betty Dall
xists or there wouldn't be a sysfs file. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index 49cc0cb..e556a3e 100644 --- a/d

[PATCH v2 3/3] ACPI/device_sysfs: Clean up checkpatch errors

2016-04-29 Thread Betty Dall
Cleaning up five existing checkpatch errors in device_sysfs.c since the file is being changed. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/acpi/device_sys

[PATCH v2 2/3] ACPI/device_sysfs: Change _SUN and _STA show functions error return to EIO

2016-04-29 Thread Betty Dall
xists or there wouldn't be a sysfs file. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c index 49cc0cb..e556a3e 100644 --- a/drivers/acpi/device_sysfs.c

[PATCH v2 3/3] ACPI/device_sysfs: Clean up checkpatch errors

2016-04-29 Thread Betty Dall
Cleaning up five existing checkpatch errors in device_sysfs.c since the file is being changed. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi

[PATCH v2 1/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-29 Thread Betty Dall
'hrv' file. It is most useful for non-PCI devices because lspci can list the hardware version for PCI devices. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/acpi/device_sys

[PATCH v2 1/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-29 Thread Betty Dall
'hrv' file. It is most useful for non-PCI devices because lspci can list the hardware version for PCI devices. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi

[PATCH v2 0/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-29 Thread Betty Dall
'hrv' file. It is most useful for non-PCI devices because lspci can list the hardware version for PCI devices. Betty Dall (3): ACPI/device_sysfs: Add sysfs support for _HRV hardware revision Change _SUN and _STA show functions error return to EIO Clean up checkpatch errors drivers/acpi

[PATCH v2 0/3] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-29 Thread Betty Dall
'hrv' file. It is most useful for non-PCI devices because lspci can list the hardware version for PCI devices. Betty Dall (3): ACPI/device_sysfs: Add sysfs support for _HRV hardware revision Change _SUN and _STA show functions error return to EIO Clean up checkpatch errors drivers/acpi

[PATCH] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-13 Thread Betty Dall
The ACPI _HRV object on the device is used to supply Linux with the device's hardware revision. This is an optional object. Add sysfs support for the _HRV object if it exists on the device. Signed-off-by: Betty Dall <betty.d...@hpe.com> --- drivers/acpi/device_sysfs.

[PATCH] ACPI/device_sysfs: Add sysfs support for _HRV hardware revision

2016-04-13 Thread Betty Dall
The ACPI _HRV object on the device is used to supply Linux with the device's hardware revision. This is an optional object. Add sysfs support for the _HRV object if it exists on the device. Signed-off-by: Betty Dall --- drivers/acpi/device_sysfs.c | 24 1 file changed

[PATCH] Check return from pci_find_ext_capability() in atl1c_reset_pcie()

2013-12-19 Thread Betty Dall
The function atl1c_reset_pcie() does not check the return from pci_find_ext_cabability() where it is getting the postion of the PCI_EXT_CAP_ID_ERR. It is possible for the return to be 0. Signed-off-by: Betty Dall --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c |8 +--- 1 files

[PATCH] Check return from pci_find_ext_capability() in atl1c_reset_pcie()

2013-12-19 Thread Betty Dall
The function atl1c_reset_pcie() does not check the return from pci_find_ext_cabability() where it is getting the postion of the PCI_EXT_CAP_ID_ERR. It is possible for the return to be 0. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c |8

Re: [PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-17 Thread Betty Dall
On Mon, 2013-12-16 at 12:51 -0700, Bjorn Helgaas wrote: > On Fri, Dec 13, 2013 at 4:16 PM, Betty Dall wrote: > > On Fri, 2013-12-13 at 15:35 -0700, Bjorn Helgaas wrote: > >> On Fri, Dec 13, 2013 at 8:41 AM, Betty Dall wrote: > >> > There are three functions exported

Re: [PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-17 Thread Betty Dall
On Mon, 2013-12-16 at 12:51 -0700, Bjorn Helgaas wrote: On Fri, Dec 13, 2013 at 4:16 PM, Betty Dall betty.d...@hp.com wrote: On Fri, 2013-12-13 at 15:35 -0700, Bjorn Helgaas wrote: On Fri, Dec 13, 2013 at 8:41 AM, Betty Dall betty.d...@hp.com wrote: There are three functions exported from

Re: [PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-16 Thread Betty Dall
On Fri, 2013-12-13 at 16:06 -0700, Bjorn Helgaas wrote: > I should have thought longer before hitting send. I think it's worthwhile > to use the same helper in aer_hest_parse_aff(), and once I did that, it > became more obvious that aer_hest_parse() and aer_hest_parse_aff() are > essentially

Re: [PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-16 Thread Betty Dall
On Fri, 2013-12-13 at 16:06 -0700, Bjorn Helgaas wrote: I should have thought longer before hitting send. I think it's worthwhile to use the same helper in aer_hest_parse_aff(), and once I did that, it became more obvious that aer_hest_parse() and aer_hest_parse_aff() are essentially

Re: [PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-13 Thread Betty Dall
On Fri, 2013-12-13 at 15:35 -0700, Bjorn Helgaas wrote: > On Fri, Dec 13, 2013 at 8:41 AM, Betty Dall wrote: > > There are three functions exported from aerdrv_core.c that could be > > called when the system is in firmware first mode: > > pci_enable

Re: [PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-13 Thread Betty Dall
On Fri, 2013-12-13 at 15:16 -0700, Bjorn Helgaas wrote: > On Fri, Dec 13, 2013 at 08:23:16AM -0700, Betty Dall wrote: > > aer_hest_parse() could pass a non-AER HEST error source to the function > > hest_match_pci(). hest_match_pci() assumes that the HEST error sou

[PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-13 Thread Betty Dall
dev, "pci_cleanup_aer_uncorrect_error_status failed 0x%0x\n", err); /* non-fatal, continue */ } That error message is how I found this problem, and it is not applicable for the firmware first recovery path. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/

[PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-13 Thread Betty Dall
error sources where hest_match_pci() was trying to access the structure as if it had the acpi_hest_aer_common fields. aer_hest_parse() is only ever interested in the AER type HEST error sources. Add a check on the type of the error souce at the beginning of aer_hest_parse(). Signed-off-by: Betty Dall

[PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-13 Thread Betty Dall
error sources where hest_match_pci() was trying to access the structure as if it had the acpi_hest_aer_common fields. aer_hest_parse() is only ever interested in the AER type HEST error sources. Add a check on the type of the error souce at the beginning of aer_hest_parse(). Signed-off-by: Betty Dall

[PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-13 Thread Betty Dall
-dev, pci_cleanup_aer_uncorrect_error_status failed 0x%0x\n, err); /* non-fatal, continue */ } That error message is how I found this problem, and it is not applicable for the firmware first recovery path. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer

Re: [PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-13 Thread Betty Dall
On Fri, 2013-12-13 at 15:16 -0700, Bjorn Helgaas wrote: On Fri, Dec 13, 2013 at 08:23:16AM -0700, Betty Dall wrote: aer_hest_parse() could pass a non-AER HEST error source to the function hest_match_pci(). hest_match_pci() assumes that the HEST error source is type

Re: [PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-13 Thread Betty Dall
On Fri, 2013-12-13 at 15:35 -0700, Bjorn Helgaas wrote: On Fri, Dec 13, 2013 at 8:41 AM, Betty Dall betty.d...@hp.com wrote: There are three functions exported from aerdrv_core.c that could be called when the system is in firmware first mode: pci_enable_pcie_error_reporting

Re: [BUG] Re: [PATCH v10 1/3] aerdrv: Trace Event for AER

2013-12-05 Thread Betty Dall
could be safely ignored by error handling software." The ghes code uses the CPER record's severity and always calls the function ghes_severity() to convert to the GHES_SEV value. Since the ACPI spec defines the GHES severity, it makes sense to maintain an enum for it and use the ghes_severity() to conver

[PATCH] PCI/ACPI: Use PCIe segment in the ACPI HEST AER error sources

2013-12-05 Thread Betty Dall
se multiple PCI segment groups, bits 8-31 must be zero. If the GLOBAL flag is specified, this field is ignored." This patch makes use of the new definition in the only place in the kernel that uses the acpi_hest_aer_common's bus field. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/

[PATCH] PCI/ACPI: Use PCIe segment in the ACPI HEST AER error sources

2013-12-05 Thread Betty Dall
segment groups, bits 8-31 must be zero. If the GLOBAL flag is specified, this field is ignored. This patch makes use of the new definition in the only place in the kernel that uses the acpi_hest_aer_common's bus field. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer

Re: [BUG] Re: [PATCH v10 1/3] aerdrv: Trace Event for AER

2013-12-05 Thread Betty Dall
record's severity and always calls the function ghes_severity() to convert to the GHES_SEV value. Since the ACPI spec defines the GHES severity, it makes sense to maintain an enum for it and use the ghes_severity() to convert where necessary. This is what I am thinking: Author: Betty Dall betty.d

[PATCH v3 0/6] PCI/ACPI: Fix firmware first error recovery with root port in reset

2013-06-06 Thread Betty Dall
nk function for both Downstream Ports and Root Ports. Signed-off-by: Betty Dall --- Betty Dall (6): PCI/AER: Don't parse HEST table for non-PCIe devices PCI/AER: Factor out HEST device type matching PCI/AER: Set dev->__aer_firmware_first only for matching devices PCI/ACPI: Move AER severity

[PATCH v3 1/6] PCI/AER: Don't parse HEST table for non-PCIe devices

2013-06-06 Thread Betty Dall
. Signed-off-by: Bjorn Helgaas Tested-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_acpi.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_acpi.c b/drivers/pci/pcie/aer/aerdrv_acpi.c index 5194a7d..4f798ab 100644 --- a/drivers/pci/pcie

[PATCH v3 3/6] PCI/AER: Set dev->__aer_firmware_first only for matching devices

2013-06-06 Thread Betty Dall
Previously, we always updated info->firmware_first, even for HEST entries that didn't match the device. Therefore, if the last HEST descriptor was a PCIe structure that didn't match the device, we always cleared dev->__aer_firmware_first. Signed-off-by: Bjorn Helgaas Tested-by: Bett

[PATCH v3 5/6] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-06-06 Thread Betty Dall
to AER_FATAL whenever the CPER error record indicates that the bus has been reset. Changes since v1: Fixed a typo in comment. Changes since v2: Set the aer_severity to AER_FATAL rather than using cper_severity_to_aer(). Simplified the comment. Signed-off-by: Betty Dall --- drivers/acpi/apei

[PATCH v2 4/6] PCI/ACPI: Move AER severity defines to aer.h

2013-06-06 Thread Betty Dall
The function aer_recover_queue() is a public interface and the severity argument uses #defines that are in the private header pci/pcie/aer/aerdrv.h. This patch moves the #defines from pci/pcie/aer/aerdrv.h to include/linux/aer.h. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv.h

[PATCH v3 6/6] PCI/AER: Provide reset_link for firmware first root port

2013-06-06 Thread Betty Dall
for a Downstream Link. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_core.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 8ec8b4f..cb29c04 100644 --- a/drivers/pci/pcie/aer

[PATCH v3 2/6] PCI/AER: Factor out HEST device type matching

2013-06-06 Thread Betty Dall
This factors out the matching of HEST structure type and PCIe device type to improve readability. No functional change. Signed-off-by: Bjorn Helgaas Tested-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_acpi.c | 35 +-- 1 files changed, 17 insertions

[PATCH v3 6/6] PCI/AER: Provide reset_link for firmware first root port

2013-06-06 Thread Betty Dall
for a Downstream Link. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_core.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 8ec8b4f..cb29c04 100644 --- a/drivers

[PATCH v3 2/6] PCI/AER: Factor out HEST device type matching

2013-06-06 Thread Betty Dall
This factors out the matching of HEST structure type and PCIe device type to improve readability. No functional change. Signed-off-by: Bjorn Helgaas bhelg...@google.com Tested-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_acpi.c | 35

[PATCH v2 4/6] PCI/ACPI: Move AER severity defines to aer.h

2013-06-06 Thread Betty Dall
The function aer_recover_queue() is a public interface and the severity argument uses #defines that are in the private header pci/pcie/aer/aerdrv.h. This patch moves the #defines from pci/pcie/aer/aerdrv.h to include/linux/aer.h. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci

[PATCH v3 3/6] PCI/AER: Set dev-__aer_firmware_first only for matching devices

2013-06-06 Thread Betty Dall
-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_acpi.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_acpi.c b/drivers/pci/pcie/aer/aerdrv_acpi.c index e7ea573..cf611ab 100644 --- a/drivers/pci/pcie/aer/aerdrv_acpi.c

[PATCH v3 5/6] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-06-06 Thread Betty Dall
to AER_FATAL whenever the CPER error record indicates that the bus has been reset. Changes since v1: Fixed a typo in comment. Changes since v2: Set the aer_severity to AER_FATAL rather than using cper_severity_to_aer(). Simplified the comment. Signed-off-by: Betty Dall betty.d...@hp.com

[PATCH v3 1/6] PCI/AER: Don't parse HEST table for non-PCIe devices

2013-06-06 Thread Betty Dall
. Signed-off-by: Bjorn Helgaas bhelg...@google.com Tested-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_acpi.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_acpi.c b/drivers/pci/pcie/aer/aerdrv_acpi.c index 5194a7d

[PATCH v3 0/6] PCI/ACPI: Fix firmware first error recovery with root port in reset

2013-06-06 Thread Betty Dall
Ports and Root Ports. Signed-off-by: Betty Dall betty.d...@hp.com --- Betty Dall (6): PCI/AER: Don't parse HEST table for non-PCIe devices PCI/AER: Factor out HEST device type matching PCI/AER: Set dev-__aer_firmware_first only for matching devices PCI/ACPI: Move AER severity defines

Re: [PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-06-05 Thread Betty Dall
On Tue, 2013-06-04 at 16:15 -0600, Bjorn Helgaas wrote: > On Tue, Jun 4, 2013 at 3:38 PM, Betty Dall wrote: > > On Tue, 2013-06-04 at 04:36 -0400, Chen Gong wrote: > >> On Thu, May 30, 2013 at 08:39:29AM -0600, Betty Dall wrote: > >> > Date: Thu, 30 May 2

Re: [PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-06-05 Thread Betty Dall
On Tue, 2013-06-04 at 16:15 -0600, Bjorn Helgaas wrote: On Tue, Jun 4, 2013 at 3:38 PM, Betty Dall betty.d...@hp.com wrote: On Tue, 2013-06-04 at 04:36 -0400, Chen Gong wrote: On Thu, May 30, 2013 at 08:39:29AM -0600, Betty Dall wrote: Date: Thu, 30 May 2013 08:39:29 -0600 From

Re: [PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-06-04 Thread Betty Dall
On Tue, 2013-06-04 at 04:36 -0400, Chen Gong wrote: > On Thu, May 30, 2013 at 08:39:29AM -0600, Betty Dall wrote: > > Date: Thu, 30 May 2013 08:39:29 -0600 > > From: Betty Dall > > To: r...@sisk.pl, bhelg...@google.com > > Cc: ying.hu...@intel.com, linux-a...@

Re: [PATCH v2 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-06-04 Thread Betty Dall
On Tue, 2013-06-04 at 03:53 -0400, Chen Gong wrote: > On Thu, May 30, 2013 at 08:39:28AM -0600, Betty Dall wrote: > > Date: Thu, 30 May 2013 08:39:28 -0600 > > From: Betty Dall > > To: r...@sisk.pl, bhelg...@google.com > > Cc: ying.hu...@intel.com, linux-a...@

Re: [PATCH v2 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-06-04 Thread Betty Dall
On Tue, 2013-06-04 at 03:53 -0400, Chen Gong wrote: On Thu, May 30, 2013 at 08:39:28AM -0600, Betty Dall wrote: Date: Thu, 30 May 2013 08:39:28 -0600 From: Betty Dall betty.d...@hp.com To: r...@sisk.pl, bhelg...@google.com Cc: ying.hu...@intel.com, linux-a...@vger.kernel.org

Re: [PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-06-04 Thread Betty Dall
On Tue, 2013-06-04 at 04:36 -0400, Chen Gong wrote: On Thu, May 30, 2013 at 08:39:29AM -0600, Betty Dall wrote: Date: Thu, 30 May 2013 08:39:29 -0600 From: Betty Dall betty.d...@hp.com To: r...@sisk.pl, bhelg...@google.com Cc: ying.hu...@intel.com, linux-a...@vger.kernel.org

Re: [PATCH v2 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-06-03 Thread Betty Dall
On Sat, 2013-06-01 at 18:38 -0600, Bjorn Helgaas wrote: > [+cc Bob for ACPI HEST spec questions] > > On Thu, May 30, 2013 at 8:39 AM, Betty Dall wrote: > > The function aer_hest_parse() is called to determine if the given > > PCI device is firmware first or not. The co

Re: [PATCH v2 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-06-03 Thread Betty Dall
On Sat, 2013-06-01 at 18:38 -0600, Bjorn Helgaas wrote: [+cc Bob for ACPI HEST spec questions] On Thu, May 30, 2013 at 8:39 AM, Betty Dall betty.d...@hp.com wrote: The function aer_hest_parse() is called to determine if the given PCI device is firmware first or not. The code loops through

[PATCH v2 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-05-30 Thread Betty Dall
to AER_FATAL whenever the CPER error record indicates that the bus has been reset. Changes since v1: Fixed a typo in comment. Signed-off-by: Betty Dall --- drivers/acpi/apei/ghes.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/apei

[PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-05-30 Thread Betty Dall
for the default_downstream_reset_link(). The firmware first default reset_link brings the root port out of SBR if firmware left it in SBR. Changes since v1: Removed incorrect setting of p2p_ctrl after the read. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_core.c | 36

[PATCH v2 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-05-30 Thread Betty Dall
once the info.firmware_first variable is set. This is similar to how the function aer_hest_parse_aff() stops the iteration. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_acpi.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/pci/pcie/aer

[PATCH v2 0/3] PCI/ACPI: Fix firmware first error recovery with root port in reset

2013-05-30 Thread Betty Dall
an recover. The changes have been tested on systems with firmware first that set the "reset" bit by injecting various hardware errors. The errors successfully recover. Changes since v1: Fixed a typo in the comment of patch 2. Removed incorrect setting of reset bit in patch 3. Signed-off-by: Betty

[PATCH v2 0/3] PCI/ACPI: Fix firmware first error recovery with root port in reset

2013-05-30 Thread Betty Dall
have been tested on systems with firmware first that set the reset bit by injecting various hardware errors. The errors successfully recover. Changes since v1: Fixed a typo in the comment of patch 2. Removed incorrect setting of reset bit in patch 3. Signed-off-by: Betty Dall betty.d...@hp.com

[PATCH v2 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-05-30 Thread Betty Dall
once the info.firmware_first variable is set. This is similar to how the function aer_hest_parse_aff() stops the iteration. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_acpi.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/pci

[PATCH v2 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-05-30 Thread Betty Dall
for the default_downstream_reset_link(). The firmware first default reset_link brings the root port out of SBR if firmware left it in SBR. Changes since v1: Removed incorrect setting of p2p_ctrl after the read. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_core.c | 36

[PATCH v2 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-05-30 Thread Betty Dall
to AER_FATAL whenever the CPER error record indicates that the bus has been reset. Changes since v1: Fixed a typo in comment. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/acpi/apei/ghes.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-05-29 Thread Betty Dall
On Wed, 2013-05-29 at 09:42 -0600, Pearson, Greg wrote: > On 05/28/2013 12:48 PM, Betty Dall wrote: > > The CPER error record has a reset bit that indicates that the platform > > has reset the bus. The reset bit can be set for any severity error > > including recoverable. Fro

Re: [PATCH 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-05-29 Thread Betty Dall
On Wed, 2013-05-29 at 09:42 -0600, Pearson, Greg wrote: > On 05/28/2013 12:48 PM, Betty Dall wrote: > > The firmware first path does not install the aerdrv root port > > service driver, so the firmware first root port does not have > > a reset_link callback. When a firmware

Re: [PATCH 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-05-29 Thread Betty Dall
On Wed, 2013-05-29 at 09:42 -0600, Pearson, Greg wrote: On 05/28/2013 12:48 PM, Betty Dall wrote: The CPER error record has a reset bit that indicates that the platform has reset the bus. The reset bit can be set for any severity error including recoverable. From the AER code path's

Re: [PATCH 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-05-29 Thread Betty Dall
On Wed, 2013-05-29 at 09:42 -0600, Pearson, Greg wrote: On 05/28/2013 12:48 PM, Betty Dall wrote: The firmware first path does not install the aerdrv root port service driver, so the firmware first root port does not have a reset_link callback. When a firmware first root port does not have

[PATCH 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-05-28 Thread Betty Dall
once the info.firmware_first variable is set. This is similar to how the function aer_hest_parse_aff() stops the iteration. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_acpi.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/pci/pcie/aer

[PATCH 0/3] PCI/ACPI: Fix firmware first error recovery with root port in reset

2013-05-28 Thread Betty Dall
an recover. The changes have been tested on systems with firmware first that set the "reset" bit by injecting various hardware errors. The errors successfully recover. --- Betty Dall (3): PCI/AER: Fix incorrect return from aer_hest_parse() ACPI/APEI: Force fatal AER severity when bus has

[PATCH 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-05-28 Thread Betty Dall
for the default_downstream_reset_link(). The firmware first default reset_link brings the root port out of SBR if firmware left it in SBR. Signed-off-by: Betty Dall --- drivers/pci/pcie/aer/aerdrv_core.c | 37 1 files changed, 37 insertions(+), 0 deletions(-) diff --git

[PATCH 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-05-28 Thread Betty Dall
to AER_FATAL whenever the CPER error record indicates that the bus has been reset. Signed-off-by: Betty Dall --- drivers/acpi/apei/ghes.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index

[PATCH 2/3] ACPI/APEI: Force fatal AER severity when bus has been reset

2013-05-28 Thread Betty Dall
to AER_FATAL whenever the CPER error record indicates that the bus has been reset. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/acpi/apei/ghes.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei

[PATCH 3/3] PCI/AER: Provide reset_link for firmware first root port

2013-05-28 Thread Betty Dall
for the default_downstream_reset_link(). The firmware first default reset_link brings the root port out of SBR if firmware left it in SBR. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_core.c | 37 1 files changed, 37 insertions(+), 0 deletions

[PATCH 0/3] PCI/ACPI: Fix firmware first error recovery with root port in reset

2013-05-28 Thread Betty Dall
have been tested on systems with firmware first that set the reset bit by injecting various hardware errors. The errors successfully recover. --- Betty Dall (3): PCI/AER: Fix incorrect return from aer_hest_parse() ACPI/APEI: Force fatal AER severity when bus has been reset PCI/AER: Provide

[PATCH 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-05-28 Thread Betty Dall
once the info.firmware_first variable is set. This is similar to how the function aer_hest_parse_aff() stops the iteration. Signed-off-by: Betty Dall betty.d...@hp.com --- drivers/pci/pcie/aer/aerdrv_acpi.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/pci

[PATCH] PCI AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()

2012-12-03 Thread Betty Dall
The function aer_recover_queue() makes a call to pci_get_domain_bus_and_slot(). That function is documented to require that the caller decrement the reference count by calling pci_dev_put(). This patch adds the missing call to pci_dev_put(). Signed-off-by: Betty Dall --- drivers/pci/pcie/aer

[PATCH] PCI AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()

2012-12-03 Thread Betty Dall
The function aer_recover_queue() makes a call to pci_get_domain_bus_and_slot(). That function is documented to require that the caller decrement the reference count by calling pci_dev_put(). This patch adds the missing call to pci_dev_put(). Signed-off-by: Betty Dall betty.d...@hp.com

[PATCH] PCI: add PCIe 8.0 GT/s supported link speed define

2012-11-20 Thread Betty Dall
tream Port must report the same value in this field for all Functions." Signed-off-by: Betty Dall --- include/uapi/linux/pci_regs.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 20ae747..0cf8

[PATCH] PCI: add PCIe 8.0 GT/s supported link speed define

2012-11-20 Thread Betty Dall
Port must report the same value in this field for all Functions. Signed-off-by: Betty Dall betty.d...@hp.com --- include/uapi/linux/pci_regs.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 20ae747

Re: turbostat tool update for Linux-3.8

2012-11-15 Thread Betty Dall
On Wed, 2012-11-14 at 15:43 -0500, Len Brown wrote: > Here are some turbostat patches I have staged. > The 1st two I've requested be pulled into 3.7, > the rest are for 3.8 > > The final patch allows turbostat to print Watts > as measured by hardware RAPL counters -- something > that people have

Re: [PATCH 7/7] tools/power turbostat: print Watts

2012-11-15 Thread Betty Dall
On Wed, 2012-11-14 at 15:43 -0500, Len Brown wrote: > From: Len Brown ... > @@ -1644,7 +1967,7 @@ int main(int argc, char **argv) > cmdline(argc, argv); > > if (verbose > 1) > - fprintf(stderr, "turbostat v2.1 October 6, 2012" > + fprintf(stderr, "turbostat

Re: [PATCH 7/7] tools/power turbostat: print Watts

2012-11-15 Thread Betty Dall
On Wed, 2012-11-14 at 15:43 -0500, Len Brown wrote: From: Len Brown len.br...@intel.com ... @@ -1644,7 +1967,7 @@ int main(int argc, char **argv) cmdline(argc, argv); if (verbose 1) - fprintf(stderr, turbostat v2.1 October 6, 2012 + fprintf(stderr,

Re: turbostat tool update for Linux-3.8

2012-11-15 Thread Betty Dall
On Wed, 2012-11-14 at 15:43 -0500, Len Brown wrote: Here are some turbostat patches I have staged. The 1st two I've requested be pulled into 3.7, the rest are for 3.8 The final patch allows turbostat to print Watts as measured by hardware RAPL counters -- something that people have been

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-13 Thread Betty Dall
On Sat, 2012-08-11 at 03:43 -0700, Andi Kleen wrote: > On Fri, Aug 10, 2012 at 04:57:02PM -0700, H. Peter Anvin wrote: > > On 08/09/2012 03:34 PM, Betty Dall wrote: > > > > > > I thought this should be a break instead of a continue since the code > > > doe

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-13 Thread Betty Dall
On Sat, 2012-08-11 at 03:43 -0700, Andi Kleen wrote: On Fri, Aug 10, 2012 at 04:57:02PM -0700, H. Peter Anvin wrote: On 08/09/2012 03:34 PM, Betty Dall wrote: I thought this should be a break instead of a continue since the code does a break if the class is 0x. If the function

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-09 Thread Betty Dall
Hi Andi, On Wed, 2012-08-08 at 15:17 -0700, Andi Kleen wrote: > From: Andi Kleen > > According to the Intel PCI experts it's not safe to check any > other field than vendor ID for 0x when doing PCI scans > to see if the device exists. > > Several of the early PCI scans violated this. I

Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor ID first

2012-08-09 Thread Betty Dall
Hi Andi, On Wed, 2012-08-08 at 15:17 -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com According to the Intel PCI experts it's not safe to check any other field than vendor ID for 0x when doing PCI scans to see if the device exists. Several of the early PCI scans

Re: [PATCH] ene_ub6250: Use macros for firmware names

2012-07-24 Thread Betty Dall
Hi Tim, I reviewed this patch and it looks good. Once small suggestion you can take or leave... On Tue, 2012-07-24 at 14:31 -0600, Tim Gardner wrote: > Advertise firmware files using MODULE_FIRMWARE macros. > > Cc: Greg Kroah-Hartman > Cc: linux-...@vger.kernel.org > Cc:

Re: [PATCH 5/5] block: genhd: add an interface to set disk's poll interval

2012-07-24 Thread Betty Dall
Hi Aaron, On Tue, 2012-07-24 at 07:52 +0800, Aaron Lu wrote: > On Mon, Jul 23, 2012 at 12:43:34PM -0600, Betty Dall wrote: > > Hi Aaron, > > Hi, > > > > > On Mon, 2012-07-23 at 14:49 +0800, Aaron Lu wrote: > > > Set the ODD's in kernel poll interval to

Re: [PATCH 5/5] block: genhd: add an interface to set disk's poll interval

2012-07-24 Thread Betty Dall
Hi Aaron, On Tue, 2012-07-24 at 07:52 +0800, Aaron Lu wrote: On Mon, Jul 23, 2012 at 12:43:34PM -0600, Betty Dall wrote: Hi Aaron, Hi, On Mon, 2012-07-23 at 14:49 +0800, Aaron Lu wrote: Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old

Re: [PATCH] ene_ub6250: Use macros for firmware names

2012-07-24 Thread Betty Dall
Hi Tim, I reviewed this patch and it looks good. Once small suggestion you can take or leave... On Tue, 2012-07-24 at 14:31 -0600, Tim Gardner wrote: Advertise firmware files using MODULE_FIRMWARE macros. Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: linux-...@vger.kernel.org Cc:

Re: [PATCH 5/5] block: genhd: add an interface to set disk's poll interval

2012-07-23 Thread Betty Dall
Hi Aaron, On Mon, 2012-07-23 at 14:49 +0800, Aaron Lu wrote: > Set the ODD's in kernel poll interval to 2s for the user in case the > user is using an old distro on which udev will not set the system wide > block parameter events_dfl_poll_msecs. Why did you pick 2 seconds? > > Signed-off-by:

Re: [PATCH 5/5] block: genhd: add an interface to set disk's poll interval

2012-07-23 Thread Betty Dall
Hi Aaron, On Mon, 2012-07-23 at 14:49 +0800, Aaron Lu wrote: Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old distro on which udev will not set the system wide block parameter events_dfl_poll_msecs. Why did you pick 2 seconds? Signed-off-by: Aaron

Re: [PATCH] checkpatch: Add checks for do {} while (0) macro misuses

2012-07-20 Thread Betty Dall
Hi Joe, Joe Perches perches.com> writes: > > These types of macros should not be used for either a > single statement nor should the macro end with a semi-colon. > > Add tests for these conditions. > > Signed-off-by: Joe Perches perches.com> > --- > scripts/checkpatch.pl | 39

Re: [PATCH] checkpatch: Add checks for do {} while (0) macro misuses

2012-07-20 Thread Betty Dall
Hi Joe, Joe Perches joe at perches.com writes: These types of macros should not be used for either a single statement nor should the macro end with a semi-colon. Add tests for these conditions. Signed-off-by: Joe Perches joe at perches.com --- scripts/checkpatch.pl | 39

Re: [PATCH] [Trivial] qib: fix an incorrect message

2012-07-19 Thread Betty Dall
Hi Joe, Thanks for the comment Joe. It looks like Roland already accepted the trivial change. On Thu, 2012-07-19 at 11:03 -0700, Joe Perches wrote: > On Thu, 2012-07-19 at 13:34 -0600, Betty Dall wrote: > > There is a cut and paste typo in the function qib_pci_slot_reset() where >

[PATCH] [Trivial] qib: fix an incorrect message

2012-07-19 Thread Betty Dall
There is a cut and paste typo in the function qib_pci_slot_reset() where it prints that the "link_reset" function is called rather than the "slot_reset" function. This makes the message misleading. Signed-off-by: Betty Dall --- drivers/infiniband/hw/qib/qib_pcie.c |2 +-

  1   2   >