Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Matthew Garrett <mjg@redhat.com>,
	faisal.latif@intel.com, linux-rdma@vger.kernel.org
Subject: [PATCH 6/6] infiniband/nes: Disable ASPM
Date: Fri, 11 Nov 2011 11:05:11 -0500	[thread overview]
Message-ID: <1321027511-31229-7-git-send-email-mjg@redhat.com> (raw)
In-Reply-To: <1321027511-31229-1-git-send-email-mjg@redhat.com>

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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index 5965b3d..2737b7a 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -463,6 +463,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

       reply	other threads:[~2011-11-11 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1321027511-31229-1-git-send-email-mjg@redhat.com>
2011-11-11 16:05 ` Matthew Garrett [this message]
     [not found]   ` <1321027511-31229-7-git-send-email-mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-11-11 17:31     ` [PATCH 6/6] infiniband/nes: Disable ASPM Roland Dreier
     [not found]       ` <CAL1RGDWw7zceDcZZaS7C3YeADR5-py5Roz_CdSeZ4N3yH4uJnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-11 19:27         ` Matthew Garrett
     [not found]           ` <20111111192753.GA19111-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2011-11-11 19:37             ` Roland Dreier

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=1321027511-31229-7-git-send-email-mjg@redhat.com \
    --to=mjg@redhat.com \
    --cc=faisal.latif@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@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