All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasily Averin <vvs@parallels.com>
To: linux-scsi@vger.kernel.org,
	Adaptec OEM Raid Solutions <aacraid@adaptec.com>
Cc: Matthew Garrett <mjg@redhat.com>,
	James Bottomley <jbottomley@parallels.com>,
	Mark Salyzyn <mark_salyzyn@us.xyratex.com>
Subject: [patch] aacraid: controller hangs if kernel uses non-default ASPM policy
Date: Fri, 11 Nov 2011 13:42:16 +0400	[thread overview]
Message-ID: <4EBCEDF8.2090403@parallels.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

Patch from RHEL6 kernel
- [scsi] aacraid: Disable ASPM by default (Matthew Garrett) [599735]
aacraid controller hangs if kernel uses non-default ASPM policy

Signed-off-by:	Vasily Averin <vvs@sw.ru>
CC: Matthew Garrett <mjg@redhat.com>

[-- Attachment #2: diff-v31-aacraid-aspm-disable-20111110 --]
[-- Type: text/plain, Size: 656 bytes --]

diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 3382475..c7b6fed 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -38,6 +38,7 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/pci.h>
+#include <linux/pci-aspm.h>
 #include <linux/slab.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
@@ -1108,6 +1109,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
 		unique_id++;
 	}
 
+	pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
+			       PCIE_LINK_STATE_CLKPM);
+
 	error = pci_enable_device(pdev);
 	if (error)
 		goto out;

             reply	other threads:[~2011-11-11  9:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11  9:42 Vasily Averin [this message]
2011-11-11 12:36 ` [patch] aacraid: controller hangs if kernel uses non-default ASPM policy Achim Leubner
2011-11-11 14:12 ` 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=4EBCEDF8.2090403@parallels.com \
    --to=vvs@parallels.com \
    --cc=aacraid@adaptec.com \
    --cc=jbottomley@parallels.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mark_salyzyn@us.xyratex.com \
    --cc=mjg@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.