From: Matthew Garrett <mjg@redhat.com>
To: mjg@redhat.com
Cc: Mike Miller <mike.miller@hp.com>,
iss_storagedev@hp.com, linux-scsi@vger.kernel.org
Subject: [PATCH 2/2] cciss: Disable ASPM
Date: Wed, 9 Feb 2011 13:07:11 -0500 [thread overview]
Message-ID: <1297274831-10405-2-git-send-email-mjg@redhat.com> (raw)
In-Reply-To: <1297274831-10405-1-git-send-email-mjg@redhat.com>
https://bugzilla.redhat.com/show_bug.cgi?id=618612 indicates that current
hpsa hardware has problems if ASPM is enabled. Disable it to avoid crashes.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: Mike Miller <mike.miller@hp.com>
Cc: iss_storagedev@hp.com
Cc: linux-scsi@vger.kernel.org
---
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 516d5bb..bb77666 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>
@@ -4561,6 +4562,9 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
InquiryData_struct *inq_buff;
ctlr_info_t *h;
+ pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
+ PCIE_LINK_STATE_CLKPM);
+
rc = cciss_init_reset_devices(pdev);
if (rc)
return rc;
--
1.7.4
next prev parent reply other threads:[~2011-02-09 18:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 18:07 [PATCH 1/2] hpsa: Disable ASPM Matthew Garrett
2011-02-09 18:07 ` Matthew Garrett [this message]
2011-02-09 20:35 ` [PATCH 2/2] cciss: " Miller, Mike (OS Dev)
2011-02-09 20:45 ` Matthew Garrett
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=1297274831-10405-2-git-send-email-mjg@redhat.com \
--to=mjg@redhat.com \
--cc=iss_storagedev@hp.com \
--cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).