login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
28
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Eric Dumazet
Subject:
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
Date: Tuesday, October 28, 2008 - 1:38 am
Yu Zhao a écrit :
quoted text
> On Tue, Oct 28, 2008 at 02:21:19PM +0800, Eric Dumazet wrote: >> Benjamin Li a écrit : >>> Hi Eric, >>> >>> It looks like the same problem again: we are reading past a valid VPD >>> address. >>> >>> After some initial debugging, it looks like dev->vpd is NULL when the >>> Broadcom 5706C/5706S/5708C/570S/5709 quirk is called. Because of this >>> dev->vpd->len is never set to the proper length to limit the VPD reads. >>> I will debug further to determine what has changed. >>> >>> Thanks again for pointing out the problem. >>> >> I did a git bisect this morning : >> >> $ git bisect good >> 201de56eb22f1ff3f36804bc70cbff220b50f067 is first bad commit >> commit 201de56eb22f1ff3f36804bc70cbff220b50f067 >> Author: Zhao, Yu <yu.zhao@intel.com> >> Date: Mon Oct 13 19:49:55 2008 +0800 >> >> PCI: centralize the capabilities code in probe.c >> >> This patch centralizes the initialization and release functions of >> various PCI capabilities in probe.c, which makes the introduction >> of new capability support functions cleaner in the future. >> >> Signed-off-by: Yu Zhao <yu.zhao@intel.com> >> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> >> > > Yes, the VPD initialization code has been moved to a later stage that is > after the pci_fixup_header. Can you please try following fix? >
Yes, this patch corrects the problem, thanks Yu. Tested-by: Eric Dumazet <dada1@cosmosbay.com>
quoted text
> Thanks, > Yu > > VPD quirks needs to be called after the capability is initialized. Since > VPD initialization is move to after pci_fixup_header, VPD quirks should > be done at pci_fixup_final stage correspondingly. > > Signed-off-by: Yu Zhao <yu.zhao@intel.com> > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index bbf66ea..5049a47 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -1692,24 +1692,24 @@ static void __devinit quirk_brcm_570x_limit_vpd(struct pci_dev *dev) > } > } > > -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM, > - PCI_DEVICE_ID_NX2_5706, > - quirk_brcm_570x_limit_vpd); > -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM, > - PCI_DEVICE_ID_NX2_5706S, > - quirk_brcm_570x_limit_vpd); > -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM, > - PCI_DEVICE_ID_NX2_5708, > - quirk_brcm_570x_limit_vpd); > -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM, > - PCI_DEVICE_ID_NX2_5708S, > - quirk_brcm_570x_limit_vpd); > -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM, > - PCI_DEVICE_ID_NX2_5709, > - quirk_brcm_570x_limit_vpd); > -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM, > - PCI_DEVICE_ID_NX2_5709S, > - quirk_brcm_570x_limit_vpd); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, > + PCI_DEVICE_ID_NX2_5706, > + quirk_brcm_570x_limit_vpd); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, > + PCI_DEVICE_ID_NX2_5706S, > + quirk_brcm_570x_limit_vpd); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, > + PCI_DEVICE_ID_NX2_5708, > + quirk_brcm_570x_limit_vpd); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, > + PCI_DEVICE_ID_NX2_5708S, > + quirk_brcm_570x_limit_vpd); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, > + PCI_DEVICE_ID_NX2_5709, > + quirk_brcm_570x_limit_vpd); > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, > + PCI_DEVICE_ID_NX2_5709S, > + quirk_brcm_570x_limit_vpd); > > #ifdef CONFIG_PCI_MSI > /* Some chipsets do not support MSI. We cannot easily rely on setting > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] PCI: Limit VPD length for Broadcom 5708S
, Eric Dumazet
, (Thu Jul 31, 11:27 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Jesse Barnes
, (Thu Jul 31, 12:39 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Eric Dumazet
, (Mon Oct 27, 3:27 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Benjamin Li
, (Mon Oct 27, 8:26 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Eric Dumazet
, (Mon Oct 27, 11:21 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Yu Zhao
, (Mon Oct 27, 11:44 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Eric Dumazet
, (Tue Oct 28, 1:38 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Benjamin Li
, (Tue Oct 28, 9:25 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Jesse Barnes
, (Thu Oct 30, 9:14 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S
, Jesse Barnes
, (Mon Nov 3, 3:37 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate