From: yxlraid@gmail.com
To: bhelgaas@google.com
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
Xiangliang Yu <yuxiangl@marvell.com>
Subject: [PATCH 2/2] PCI: fix system hang issue of Marvell SATA host controller
Date: Thu, 7 Mar 2013 22:29:16 +0800 [thread overview]
Message-ID: <1362666556-10036-1-git-send-email-yxlraid@gmail.com> (raw)
From: Xiangliang Yu <yuxiangl@marvell.com>
Fix system hang issue: if first accessed resource file of BAR0 ~
BAR4, system will hang after executing lspci command
---
drivers/pci/quirks.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 0369fb6..d49f8dc 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -44,6 +44,21 @@ static void quirk_mmio_always_on(struct pci_dev *dev)
DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_ANY_ID, PCI_ANY_ID,
PCI_CLASS_BRIDGE_HOST, 8, quirk_mmio_always_on);
+/* The BAR0 ~ BAR4 of Marvell 9125 device can't be accessed
+* by IO resource file, and need to skip the files
+*/
+static void quirk_marvell_mask_bar(struct pci_dev *dev)
+{
+ int i;
+
+ for (i = 0; i < 5; i++)
+ if (dev->resource[i].start)
+ dev->resource[i].start =
+ dev->resource[i].end = 0;
+}
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9125,
+ quirk_marvell_mask_bar);
+
/* The Mellanox Tavor device gives false positive parity errors
* Mark this device with a broken_parity_status, to allow
* PCI scanning code to "skip" this now blacklisted device.
--
1.7.5.4
next reply other threads:[~2013-03-07 14:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 14:29 yxlraid [this message]
2013-03-07 16:28 ` [PATCH 2/2] PCI: fix system hang issue of Marvell SATA host controller Bjorn Helgaas
2013-03-08 3:07 ` Xiangliang Yu
2013-03-08 4:19 ` Bjorn Helgaas
2013-03-08 6:51 ` Xiangliang Yu
2013-03-08 17:01 ` Bjorn Helgaas
2013-03-09 14:49 ` Xiangliang Yu
2013-03-09 23:24 ` Myron Stowe
[not found] ` <F766E4F80769BD478052FB6533FA745D25F440A64D@SC-VEXCH4.marvell.com>
2013-03-11 21:19 ` Myron Stowe
[not found] ` <F766E4F80769BD478052FB6533FA745D25F440A9C6@SC-VEXCH4.marvell.com>
2013-03-12 16:21 ` Bjorn Helgaas
2013-03-13 9:40 ` Xiangliang Yu
2013-03-14 15:03 ` Myron Stowe
2013-03-17 0:13 ` Myron Stowe
2013-03-21 16:00 ` Myron Stowe
2013-03-09 3:18 ` Myron Stowe
2013-03-14 4:16 ` Robert Hancock
2013-03-14 15:02 ` Myron Stowe
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=1362666556-10036-1-git-send-email-yxlraid@gmail.com \
--to=yxlraid@gmail.com \
--cc=bhelgaas@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yuxiangl@marvell.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).