* [PATCH V2 1/6] net/ethernet/atl1c: Disable ASPM on various chipsets
2011-11-11 16:14 [V2] Disable ASPM on various devices Matthew Garrett
@ 2011-11-11 16:14 ` Matthew Garrett
2011-11-14 5:30 ` David Miller
2011-11-11 16:14 ` [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM Matthew Garrett
` (4 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, netdev, jcliburn, chris.snook
The Windows driver disables ASPM support for various chipsets supported
by atl1c. This adds the same set of logic to the Linux driver. ASPM is
disabled on l1c, l2c, l2cb and l2cb2 devices except for those in Toshiba
or Lenovo devices. Data taken from
http://www.atheros.cz/atheros-inf-file.php?inf=199&chipset=51&system=6
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: netdev@vger.kernel.org
Cc: jcliburn@gmail.com
Cc: chris.snook@gmail.com
---
drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index 02c7ed8..d91dabd 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -19,6 +19,7 @@
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <linux/pci-aspm.h>
#include "atl1c.h"
#define ATL1C_DRV_VERSION "1.0.1.0-NAPI"
@@ -2652,6 +2653,20 @@ static int __devinit atl1c_probe(struct pci_dev *pdev,
int err = 0;
+ switch (pdev->device) {
+ case PCI_DEVICE_ID_ATTANSIC_L1C:
+ case PCI_DEVICE_ID_ATTANSIC_L2C:
+ case PCI_DEVICE_ID_ATHEROS_L2C_B:
+ case PCI_DEVICE_ID_ATHEROS_L2C_B2:
+ if (pdev->subsystem_vendor == PCI_VENDOR_ID_TOSHIBA ||
+ pdev->subsystem_vendor == PCI_VENDOR_ID_LENOVO)
+ break;
+ pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S |
+ PCIE_LINK_STATE_L1 |
+ PCIE_LINK_STATE_CLKPM);
+ break;
+ }
+
/* enable device (incl. PCI PM wakeup and hotplug setup) */
err = pci_enable_device_mem(pdev);
if (err) {
--
1.7.7.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM
2011-11-11 16:14 [V2] Disable ASPM on various devices Matthew Garrett
2011-11-11 16:14 ` [PATCH V2 1/6] net/ethernet/atl1c: Disable ASPM on various chipsets Matthew Garrett
@ 2011-11-11 16:14 ` Matthew Garrett
2011-11-14 5:31 ` David Miller
2011-11-11 16:14 ` [PATCH V2 3/6] net/ethernet/jme: " Matthew Garrett
` (3 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, netdev, jcliburn, chris.snook
http://www.atheros.cz/atheros-inf-file.php?inf=209&chipset=45&system=6
indicates that ASPM is disabled on all L1E hardware. Duplicate for sanity.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: netdev@vger.kernel.org
Cc: jcliburn@gmail.com
Cc: chris.snook@gmail.com
---
drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
index 95483bc..fc74dd1 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
@@ -2264,6 +2264,9 @@ static int __devinit atl1e_probe(struct pci_dev *pdev,
int err = 0;
+ pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
+ PCIE_LINK_STATE_CLKPM);
+
err = pci_enable_device(pdev);
if (err) {
dev_err(&pdev->dev, "cannot enable PCI device\n");
--
1.7.7.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM
2011-11-11 16:14 ` [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM Matthew Garrett
@ 2011-11-14 5:31 ` David Miller
2011-11-14 5:33 ` David Miller
0 siblings, 1 reply; 18+ messages in thread
From: David Miller @ 2011-11-14 5:31 UTC (permalink / raw)
To: mjg; +Cc: linux-kernel, netdev, jcliburn, chris.snook
From: Matthew Garrett <mjg@redhat.com>
Date: Fri, 11 Nov 2011 11:14:20 -0500
> http://www.atheros.cz/atheros-inf-file.php?inf=209&chipset=45&system=6
> indicates that ASPM is disabled on all L1E hardware. Duplicate for sanity.
>
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Applied.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM
2011-11-14 5:31 ` David Miller
@ 2011-11-14 5:33 ` David Miller
0 siblings, 0 replies; 18+ messages in thread
From: David Miller @ 2011-11-14 5:33 UTC (permalink / raw)
To: mjg; +Cc: linux-kernel, netdev, jcliburn, chris.snook
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=iso-8859-7, Size: 1341 bytes --]
From: David Miller <davem@davemloft.net>
Date: Mon, 14 Nov 2011 00:31:13 -0500 (EST)
> From: Matthew Garrett <mjg@redhat.com>
> Date: Fri, 11 Nov 2011 11:14:20 -0500
>
>> http://www.atheros.cz/atheros-inf-file.php?inf=209&chipset=45&system=6
>> indicates that ASPM is disabled on all L1E hardware. Duplicate for sanity.
>>
>> Signed-off-by: Matthew Garrett <mjg@redhat.com>
>
> Applied.
Ummm, -ENOBUILDTESTING?!??!
drivers/net/ethernet/atheros/atl1e/atl1e_main.c: In function ¡atl1e_probe¢:
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:2: error: implicit declaration of function ¡pci_disable_link_state¢ [-Werror=implicit-function-declaration]
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:31: error: ¡PCIE_LINK_STATE_L0S¢ undeclared (first use in this function)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:31: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:53: error: ¡PCIE_LINK_STATE_L1¢ undeclared (first use in this function)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2268:11: error: ¡PCIE_LINK_STATE_CLKPM¢ undeclared (first use in this function)
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM
@ 2011-11-14 5:33 ` David Miller
0 siblings, 0 replies; 18+ messages in thread
From: David Miller @ 2011-11-14 5:33 UTC (permalink / raw)
To: mjg; +Cc: linux-kernel, netdev, jcliburn, chris.snook
From: David Miller <davem@davemloft.net>
Date: Mon, 14 Nov 2011 00:31:13 -0500 (EST)
> From: Matthew Garrett <mjg@redhat.com>
> Date: Fri, 11 Nov 2011 11:14:20 -0500
>
>> http://www.atheros.cz/atheros-inf-file.php?inf=209&chipset=45&system=6
>> indicates that ASPM is disabled on all L1E hardware. Duplicate for sanity.
>>
>> Signed-off-by: Matthew Garrett <mjg@redhat.com>
>
> Applied.
Ummm, -ENOBUILDTESTING?!??!
drivers/net/ethernet/atheros/atl1e/atl1e_main.c: In function ‘atl1e_probe’:
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:2: error: implicit declaration of function ‘pci_disable_link_state’ [-Werror=implicit-function-declaration]
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:31: error: ‘PCIE_LINK_STATE_L0S’ undeclared (first use in this function)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:31: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2267:53: error: ‘PCIE_LINK_STATE_L1’ undeclared (first use in this function)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c:2268:11: error: ‘PCIE_LINK_STATE_CLKPM’ undeclared (first use in this function)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM
2011-11-14 5:33 ` David Miller
(?)
@ 2011-11-14 15:44 ` Matthew Garrett
-1 siblings, 0 replies; 18+ messages in thread
From: Matthew Garrett @ 2011-11-14 15:44 UTC (permalink / raw)
To: David Miller; +Cc: linux-kernel, netdev, jcliburn, chris.snook
Sorry, I screwed up there - it looks like I tested atl1c twice. Still
inexcusable, and apologies for the wasted time.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH V2 3/6] net/ethernet/jme: Disable ASPM
2011-11-11 16:14 [V2] Disable ASPM on various devices Matthew Garrett
2011-11-11 16:14 ` [PATCH V2 1/6] net/ethernet/atl1c: Disable ASPM on various chipsets Matthew Garrett
2011-11-11 16:14 ` [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM Matthew Garrett
@ 2011-11-11 16:14 ` Matthew Garrett
2011-11-14 5:31 ` David Miller
2011-11-11 16:14 ` [PATCH V2 4/6] block/cciss: " Matthew Garrett
` (2 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, netdev, cooldavid
http://driveragent.com/archive/30421/7-0-14 indicates that ASPM is
disabled on the 250 and 260. Duplicate for sanity.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: netdev@vger.kernel.org
Cc: cooldavid@cooldavid.org
---
drivers/net/ethernet/jme.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c
index 7becff1..88e7ce1 100644
--- a/drivers/net/ethernet/jme.c
+++ b/drivers/net/ethernet/jme.c
@@ -27,6 +27,7 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
+#include <linux/pci-aspm.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
@@ -2860,6 +2861,9 @@ jme_init_one(struct pci_dev *pdev,
/*
* set up PCI device basics
*/
+ pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
+ PCIE_LINK_STATE_CLKPM);
+
rc = pci_enable_device(pdev);
if (rc) {
pr_err("Cannot enable PCI device\n");
--
1.7.7.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH V2 4/6] block/cciss: Disable ASPM
2011-11-11 16:14 [V2] Disable ASPM on various devices Matthew Garrett
` (2 preceding siblings ...)
2011-11-11 16:14 ` [PATCH V2 3/6] net/ethernet/jme: " Matthew Garrett
@ 2011-11-11 16:14 ` Matthew Garrett
2011-11-11 16:15 ` Mike Miller
2011-11-11 16:14 ` [PATCH V2 5/6] scsi/hpsa: " Matthew Garrett
[not found] ` <1321028064-644-1-git-send-email-mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
5 siblings, 1 reply; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, mike.miller, iss_storagedev, axboe
The Windows driver .inf disables ASPM on all cciss devices. Do the same.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: mike.miller@hp.com
Cc: iss_storagedev@hp.com
Cc: axboe@kernel.dk
---
drivers/block/cciss.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 486f94e..92d8a2f 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -24,6 +24,7 @@
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/pci.h>
+#include <linux/pci-aspm.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
@@ -4319,6 +4320,10 @@ static int __devinit cciss_pci_init(ctlr_info_t *h)
dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
return -ENODEV;
}
+
+ pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S |
+ PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
+
err = pci_enable_device(h->pdev);
if (err) {
dev_warn(&h->pdev->dev, "Unable to Enable PCI device\n");
--
1.7.7.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH V2 4/6] block/cciss: Disable ASPM
2011-11-11 16:14 ` [PATCH V2 4/6] block/cciss: " Matthew Garrett
@ 2011-11-11 16:15 ` Mike Miller
2011-11-11 21:06 ` Jens Axboe
0 siblings, 1 reply; 18+ messages in thread
From: Mike Miller @ 2011-11-11 16:15 UTC (permalink / raw)
To: Matthew Garrett
Cc: linux-kernel@vger.kernel.org, ISS StorageDev, axboe@kernel.dk
On 11/11/2011 10:14 AM, Matthew Garrett wrote:
> The Windows driver .inf disables ASPM on all cciss devices. Do the same.
>
> Signed-off-by: Matthew Garrett<mjg@redhat.com>
> Cc: mike.miller@hp.com
> Cc: iss_storagedev@hp.com
> Cc: axboe@kernel.dk
> ---
> drivers/block/cciss.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
> index 486f94e..92d8a2f 100644
> --- a/drivers/block/cciss.c
> +++ b/drivers/block/cciss.c
> @@ -24,6 +24,7 @@
> #include<linux/interrupt.h>
> #include<linux/types.h>
> #include<linux/pci.h>
> +#include<linux/pci-aspm.h>
> #include<linux/kernel.h>
> #include<linux/slab.h>
> #include<linux/delay.h>
> @@ -4319,6 +4320,10 @@ static int __devinit cciss_pci_init(ctlr_info_t *h)
> dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
> return -ENODEV;
> }
> +
> + pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S |
> + PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
> +
> err = pci_enable_device(h->pdev);
> if (err) {
> dev_warn(&h->pdev->dev, "Unable to Enable PCI device\n");
Acked-by: Mike Miller <mike.miller@hp.com>
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH V2 4/6] block/cciss: Disable ASPM
2011-11-11 16:15 ` Mike Miller
@ 2011-11-11 21:06 ` Jens Axboe
0 siblings, 0 replies; 18+ messages in thread
From: Jens Axboe @ 2011-11-11 21:06 UTC (permalink / raw)
To: Mike Miller; +Cc: Matthew Garrett, linux-kernel@vger.kernel.org, ISS StorageDev
On 2011-11-11 17:15, Mike Miller wrote:
> On 11/11/2011 10:14 AM, Matthew Garrett wrote:
>> The Windows driver .inf disables ASPM on all cciss devices. Do the same.
>>
>> Signed-off-by: Matthew Garrett<mjg@redhat.com>
>> Cc: mike.miller@hp.com
>> Cc: iss_storagedev@hp.com
>> Cc: axboe@kernel.dk
>> ---
>> drivers/block/cciss.c | 5 +++++
>> 1 files changed, 5 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
>> index 486f94e..92d8a2f 100644
>> --- a/drivers/block/cciss.c
>> +++ b/drivers/block/cciss.c
>> @@ -24,6 +24,7 @@
>> #include<linux/interrupt.h>
>> #include<linux/types.h>
>> #include<linux/pci.h>
>> +#include<linux/pci-aspm.h>
>> #include<linux/kernel.h>
>> #include<linux/slab.h>
>> #include<linux/delay.h>
>> @@ -4319,6 +4320,10 @@ static int __devinit cciss_pci_init(ctlr_info_t *h)
>> dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
>> return -ENODEV;
>> }
>> +
>> + pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S |
>> + PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
>> +
>> err = pci_enable_device(h->pdev);
>> if (err) {
>> dev_warn(&h->pdev->dev, "Unable to Enable PCI device\n");
>
> Acked-by: Mike Miller <mike.miller@hp.com>
Applied for 3.2, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH V2 5/6] scsi/hpsa: Disable ASPM
2011-11-11 16:14 [V2] Disable ASPM on various devices Matthew Garrett
` (3 preceding siblings ...)
2011-11-11 16:14 ` [PATCH V2 4/6] block/cciss: " Matthew Garrett
@ 2011-11-11 16:14 ` Matthew Garrett
2011-11-11 16:16 ` Mike Miller
[not found] ` <1321028064-644-1-git-send-email-mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
5 siblings, 1 reply; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, scameron, iss_storagedev, linux-scsi
The Windows driver .inf disables ASPM on hpsa devices. Do the same.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: scameron@beardog.cce.hp.com
Cc: iss_storagedev@hp.com
Cc: linux-scsi@vger.kernel.org
---
drivers/scsi/hpsa.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index e76107b..865d452 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -23,6 +23,7 @@
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/pci.h>
+#include <linux/pci-aspm.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
@@ -3922,6 +3923,10 @@ static int __devinit hpsa_pci_init(struct ctlr_info *h)
dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
return -ENODEV;
}
+
+ pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S |
+ PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
+
err = pci_enable_device(h->pdev);
if (err) {
dev_warn(&h->pdev->dev, "unable to enable PCI device\n");
--
1.7.7.1
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH V2 5/6] scsi/hpsa: Disable ASPM
2011-11-11 16:14 ` [PATCH V2 5/6] scsi/hpsa: " Matthew Garrett
@ 2011-11-11 16:16 ` Mike Miller
0 siblings, 0 replies; 18+ messages in thread
From: Mike Miller @ 2011-11-11 16:16 UTC (permalink / raw)
To: Matthew Garrett
Cc: linux-kernel@vger.kernel.org, scameron@beardog.cce.hp.com,
ISS StorageDev, linux-scsi@vger.kernel.org
On 11/11/2011 10:14 AM, Matthew Garrett wrote:
> The Windows driver .inf disables ASPM on hpsa devices. Do the same.
>
> Signed-off-by: Matthew Garrett<mjg@redhat.com>
> Cc: scameron@beardog.cce.hp.com
> Cc: iss_storagedev@hp.com
> Cc: linux-scsi@vger.kernel.org
> ---
> drivers/scsi/hpsa.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
> index e76107b..865d452 100644
> --- a/drivers/scsi/hpsa.c
> +++ b/drivers/scsi/hpsa.c
> @@ -23,6 +23,7 @@
> #include<linux/interrupt.h>
> #include<linux/types.h>
> #include<linux/pci.h>
> +#include<linux/pci-aspm.h>
> #include<linux/kernel.h>
> #include<linux/slab.h>
> #include<linux/delay.h>
> @@ -3922,6 +3923,10 @@ static int __devinit hpsa_pci_init(struct ctlr_info *h)
> dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
> return -ENODEV;
> }
> +
> + pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S |
> + PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
> +
> err = pci_enable_device(h->pdev);
> if (err) {
> dev_warn(&h->pdev->dev, "unable to enable PCI device\n");
Acked-by: Mike Miller <mike.miller@hp.com>
^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <1321028064-644-1-git-send-email-mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* [PATCH V2 6/6] infiniband/nes: Disable ASPM
2011-11-11 16:14 [V2] Disable ASPM on various devices Matthew Garrett
@ 2011-11-11 16:14 ` Matthew Garrett
2011-11-11 16:14 ` [PATCH V2 2/6] net/ethernet/atl1e: Disable ASPM Matthew Garrett
` (4 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: Matthew Garrett, faisal.latif-ral2JQCrhuEAvxtiuMwx3w,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
The Windows driver .inf disables ASPM on hpsa devices. Do the same.
Signed-off-by: Matthew Garrett <mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---
drivers/infiniband/hw/nes/nes.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index 5965b3d..ea320f5 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -45,6 +45,7 @@
#include <linux/if_arp.h>
#include <linux/highmem.h>
#include <linux/slab.h>
+#include <linux/pci-aspm.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
@@ -463,6 +464,9 @@ static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_i
printk(KERN_INFO PFX "NetEffect RNIC driver v%s loading. (%s)\n",
DRV_VERSION, pci_name(pcidev));
+ pci_disable_link_state(pcidev, PCIE_LINK_STATE_L0S |
+ PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
+
ret = pci_enable_device(pcidev);
if (ret) {
printk(KERN_ERR PFX "Unable to enable PCI device. (%s)\n", pci_name(pcidev));
--
1.7.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH V2 6/6] infiniband/nes: Disable ASPM
@ 2011-11-11 16:14 ` Matthew Garrett
0 siblings, 0 replies; 18+ messages in thread
From: Matthew Garrett @ 2011-11-11 16:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Matthew Garrett, faisal.latif, linux-rdma
The Windows driver .inf disables ASPM on hpsa devices. Do the same.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: faisal.latif@intel.com
Cc: linux-rdma@vger.kernel.org
---
drivers/infiniband/hw/nes/nes.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index 5965b3d..ea320f5 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -45,6 +45,7 @@
#include <linux/if_arp.h>
#include <linux/highmem.h>
#include <linux/slab.h>
+#include <linux/pci-aspm.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
@@ -463,6 +464,9 @@ static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_i
printk(KERN_INFO PFX "NetEffect RNIC driver v%s loading. (%s)\n",
DRV_VERSION, pci_name(pcidev));
+ pci_disable_link_state(pcidev, PCIE_LINK_STATE_L0S |
+ PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
+
ret = pci_enable_device(pcidev);
if (ret) {
printk(KERN_ERR PFX "Unable to enable PCI device. (%s)\n", pci_name(pcidev));
--
1.7.7.1
^ permalink raw reply related [flat|nested] 18+ messages in thread