From: "H. Peter Anvin" <hpa@zytor.com>
To: Petr Vandrovec <petr@vandrovec.name>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
x86@kernel.org, Jacob Pan <jacob.jun.pan@intel.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: [PATCH 2.6.34-rcX] Do not expect PCI devices to return zeroes in PCIe space
Date: Fri, 14 May 2010 11:37:33 -0700 [thread overview]
Message-ID: <4BED986D.1010403@zytor.com> (raw)
In-Reply-To: <20100501025423.GA10671@vana.vc.cvut.cz>
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
On 04/30/2010 07:54 PM, Petr Vandrovec wrote:
> Hello,
> openSUSE11.3 32bit kernels hang when installed to the VMware's VMs because Moorestown
> fixed capabilities detection code enters endless loop on Intel's AGP bridges (with
> device ID=7191). See https://bugzilla.kernel.org/show_bug.cgi?id=15888 for additional
> details. arch/x86/pci/mrst.c was introduced after 2.6.33, so only 2.6.34-rcX are
> affected.
> Thanks,
> Petr Vandrovec
Hi Petr,
Could you check if this patch fixes your problem, and if so let me know
as soon as possible?
Sorry for the delay.
Thanks,
-hpa
[-- Attachment #2: mrst-pci.patch --]
[-- Type: text/x-patch, Size: 520 bytes --]
diff --git a/arch/x86/pci/mrst.c b/arch/x86/pci/mrst.c
index 8bf2fcb..1cdc02c 100644
--- a/arch/x86/pci/mrst.c
+++ b/arch/x86/pci/mrst.c
@@ -247,6 +247,10 @@ static void __devinit pci_fixed_bar_fixup(struct pci_dev *dev)
u32 size;
int i;
+ /* Must have extended configuration space */
+ if (dev->cfg_size < PCIE_CAP_OFFSET + 4)
+ return;
+
/* Fixup the BAR sizes for fixed BAR devices and make them unmoveable */
offset = fixed_bar_cap(dev->bus, dev->devfn);
if (!offset || PCI_DEVFN(2, 0) == dev->devfn ||
next prev parent reply other threads:[~2010-05-14 18:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-01 2:54 [PATCH 2.6.34-rcX] Do not expect PCI devices to return zeroes in PCIe space Petr Vandrovec
2010-05-04 6:21 ` Pan, Jacob jun
2010-05-04 7:31 ` Petr Vandrovec
2010-05-14 18:37 ` H. Peter Anvin [this message]
2010-05-14 20:51 ` Petr Vandrovec
2010-05-14 21:39 ` [tip:x86/urgent] x86, mrst: Don't blindly access extended config space tip-bot for H. Peter Anvin
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=4BED986D.1010403@zytor.com \
--to=hpa@zytor.com \
--cc=akpm@linux-foundation.org \
--cc=jacob.jun.pan@intel.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=petr@vandrovec.name \
--cc=tglx@linutronix.de \
--cc=x86@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