From: Matthew Garrett <mjg@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Matthew Garrett <mjg@redhat.com>,
mike.miller@hp.com, iss_storagedev@hp.com, axboe@kernel.dk
Subject: [PATCH 4/6] block/cciss: Disable ASPM
Date: Fri, 11 Nov 2011 11:05:09 -0500 [thread overview]
Message-ID: <1321027511-31229-5-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 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 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 486f94e..7e43ad3 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -4319,6 +4319,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
next prev parent reply other threads:[~2011-11-11 16:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 16:05 Disable ASPM on various devices Matthew Garrett
2011-11-11 16:05 ` [PATCH 1/6] net/ethernet/atl1c: Disable ASPM on various chipsets Matthew Garrett
2011-11-11 16:05 ` [PATCH 2/6] net/ethernet/atl1e: Disable ASPM Matthew Garrett
2011-11-11 16:05 ` [PATCH 3/6] net/ethernet/jme: " Matthew Garrett
2011-11-11 16:05 ` Matthew Garrett [this message]
2011-11-11 16:05 ` [PATCH 5/6] scsi/hpsa: " Matthew Garrett
2011-11-11 16:05 ` [PATCH 6/6] infiniband/nes: " Matthew Garrett
2011-11-11 17:31 ` Roland Dreier
2011-11-11 19:27 ` Matthew Garrett
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-5-git-send-email-mjg@redhat.com \
--to=mjg@redhat.com \
--cc=axboe@kernel.dk \
--cc=iss_storagedev@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.miller@hp.com \
/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
all inboxes | Powered by JetHome®