Re: [PATCH 0/4] PCI/PM: PCI D3cold support fixes for 3.6-rc1

2012-08-21 Thread Bjorn Helgaas
On Sun, Aug 19, 2012 at 6:09 PM, huang ying wrote: > Hi, Bjorn, > > Could you please merge this patchset? They fix real bugs. I assume you wanted the updated "[PATCH 3/4] PCI/PM: Fix config reg access ..." patch posted Aug 15. I merged these (with the updated 3/4 patch) to my "for-linus" branc

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-22 Thread Bjorn Helgaas
On Mon, Aug 20, 2012 at 9:40 PM, Cui, Dexuan wrote: > Bjorn Helgaas wrote on 2012-08-21: >> I am still concerned about reset_intel_82599_sfp_virtfn(). It looks >> wrong and possibly unnecessary. It looks wrong because it sets >> PCI_EXP_DEVCTL_BCR_FLR and blindly cle

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-22 Thread Bjorn Helgaas
er bits when setting the > NOSNOOP flag. I think you're right. I propose the following patch on top of your original one: commit 300ef7967e87467656b0fe24270edba66bce45e4 Author: Bjorn Helgaas Date: Wed Aug 22 10:29:42 2012 -0600 r8169: Preserve other Device Control bits when settin

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-22 Thread Bjorn Helgaas
On Wed, Aug 22, 2012 at 12:49 AM, Feng Tang wrote: > Hi Fengguang, > > > On Wed, 22 Aug 2012 10:50:08 +0800 > Fengguang Wu wrote: > >> Feng, >> >> > I think it's pci_get_subsys() triggered this assert: >> > >> > /* >> > * Oi! Can't be having __GFP_FS allocations with IRQs disable

Re: Unable to mount NFSROOT: pcie change breaks e1000?

2012-08-23 Thread Bjorn Helgaas
On Thu, Aug 23, 2012 at 9:03 AM, Jiang Liu wrote: > Hi Bjorn, > Could you please help to fold this small patch into > "[5/40] PCI/core: Use PCI Express Capability accessors"? > It fixes a bug reported by Fengguang. Thanks, I folded it in. I looked briefly at whether a similar fix is need

Re: [PATCH 1/2] PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too

2012-08-23 Thread Bjorn Helgaas
On Thu, Aug 23, 2012 at 12:28:23AM -0700, Olof Johansson wrote: > Hi, > > On Mon, Jul 9, 2012 at 11:20 AM, Bjorn Helgaas wrote: > > After 253d2e5498, we disable MEM and IO decoding for most devices while we > > size 32-bit BARs. However, we restore the original COMMAND r

Re: [PATCH V3 1/4] EFI: Stash ROMs if they're not in the PCI BAR

2012-08-23 Thread Bjorn Helgaas
On Thu, Aug 23, 2012 at 10:36 AM, Matthew Garrett wrote: > EFI provides support for providing PCI ROMs via means other than the ROM > BAR. This support vanishes after we've exited boot services, so add support > for stashing copies of the ROMs in setup_data if they're not otherwise > available. -

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-24 Thread Bjorn Helgaas
On Mon, Aug 20, 2012 at 9:26 AM, Jiang Liu wrote: > Hi Bjorn, > I have made following changes according to your suggestions, > 1) get rid of the "pci_" prefix for access functions. > 2) rename pci_pcie_capability_change_{word|dword}() to > pcie_capability_clear_and_

Re: [PATCH 2/2] PCI: Provide a default pcibios_update_irq()

2012-09-15 Thread Bjorn Helgaas
On Sat, Sep 15, 2012 at 1:53 AM, Thierry Reding wrote: > On Sat, Sep 15, 2012 at 09:32:10AM +0200, Geert Uytterhoeven wrote: >> On Fri, Sep 14, 2012 at 10:44 PM, Thierry Reding >> wrote: >> > --- a/drivers/pci/setup-irq.c >> > +++ b/drivers/pci/setup-irq.c >> > @@ -17,6 +17,14 @@ >> > #include

Re: [PATCH 2/2] PCI: Provide a default pcibios_update_irq()

2012-09-15 Thread Bjorn Helgaas
On Sat, Sep 15, 2012 at 1:53 AM, Thierry Reding wrote: > On Sat, Sep 15, 2012 at 09:32:10AM +0200, Geert Uytterhoeven wrote: >> On Fri, Sep 14, 2012 at 10:44 PM, Thierry Reding >> wrote: >> > --- a/drivers/pci/setup-irq.c >> > +++ b/drivers/pci/setup-irq.c >> > @@ -17,6 +17,14 @@ >> > #include

Re: [PATCH 0/5] Simplify code by using hotplug safe pci_get_domain_bus_and_slot()

2012-09-17 Thread Bjorn Helgaas
On Tue, Aug 28, 2012 at 9:43 AM, Jiang Liu wrote: > Following code has a race window between pci_find_bus() and pci_get_slot() > if PCI hotplug operation happens between them which removes the pci_bus. > So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead, > which also reduces

Re: [RFC 1/3] PCI/PM: Fix kexec for D3cold and bridge suspending

2012-09-17 Thread Bjorn Helgaas
+cc Eric and kexec list On Mon, Sep 17, 2012 at 2:54 AM, Huang Ying wrote: > If PCI devices are put into D3cold before kexec, because the > configuration registers of PCI devices in D3cold are not accessible. > > And if PCI bridges are put into low power state before kexec, > configuration regist

Re: [RFC/PATCH] ia64, SR870, EFI bug breaks ata_piix, uninitialized ICH4 IDE EXBAR mem resource

2012-09-17 Thread Bjorn Helgaas
On Sun, Sep 16, 2012 at 10:39 AM, Stephan Schreiber wrote: > [0.065516] pci :00:1f.1: [8086:24cb] type 0 class 0x000101 > [0.065530] pci :00:1f.1: reg 10: [io 0x-0x0007] > [0.065541] pci :00:1f.1: reg 14: [io 0x-0x0003] > [0.065552] pci :00:1f.1: reg 18:

Re: [PATCH] pci: rewrite pci_call_probe() to use workqueue instead of work_on_cpu()

2012-09-17 Thread Bjorn Helgaas
On Mon, Sep 17, 2012 at 3:41 PM, Tejun Heo wrote: > On Fri, Sep 14, 2012 at 12:13:21PM -0600, Bjorn Helgaas wrote: >> On Thu, Aug 23, 2012 at 3:35 PM, Tejun Heo wrote: >> > pci_call_probe() uses work_on_cpu(), which creates and tears down a >> > full kthread on each c

Re: [PATCH part2 4/6] x86, PCI: Separate rom resource claim out

2012-09-17 Thread Bjorn Helgaas
On Sun, Sep 2, 2012 at 3:50 PM, Yinghai Lu wrote: > So could use it with hot-added root bus. > > Signed-off-by: Yinghai Lu > --- > arch/x86/pci/i386.c | 58 > --- > 1 files changed, 41 insertions(+), 17 deletions(-) > > diff --git a/arch/x86/pci

Re: [PATCH part2 6/6] PCI: Claim hw/fw allocated resources in hot add path.

2012-09-17 Thread Bjorn Helgaas
On Sun, Sep 2, 2012 at 3:50 PM, Yinghai Lu wrote: > During testing remove/rescan root bus 00, found > [ 338.142574] bus: 'pci': really_probe: probing driver ata_piix with device > :00:01.1 > [ 338.146788] ata_piix :00:01.1: device not available (can't reserve [io > 0x01f0-0x01f7]) > [

Re: [PATCH 1/2] ARM: pci: Keep pci_common_init() around after init

2012-09-18 Thread Bjorn Helgaas
On Fri, Sep 14, 2012 at 3:11 PM, Thierry Reding wrote: > When using deferred driver probing, PCI host controller drivers may > actually require this function after the init stage. > > Signed-off-by: Thierry Reding > --- > arch/arm/kernel/bios32.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 de

Re: [PATCH 2/2] ARM: pci: Allow passing per-controller private data

2012-09-18 Thread Bjorn Helgaas
On Fri, Sep 14, 2012 at 3:11 PM, Thierry Reding wrote: > In order to allow drivers to specify private data for each controller, > this commit adds a private_data field to the struct hw_pci. This field > is an array of nr_controllers pointers that will be used to initialize > the private_data field

Re: [PATCH 2/2] ARM: pci: Allow passing per-controller private data

2012-09-18 Thread Bjorn Helgaas
On Tue, Sep 18, 2012 at 12:34 PM, Thierry Reding wrote: > On Tue, Sep 18, 2012 at 11:21:21AM -0600, Bjorn Helgaas wrote: >> On Fri, Sep 14, 2012 at 3:11 PM, Thierry Reding >> wrote: >> > In order to allow drivers to specify private data for each controller, >> >

Re: [PATCH] PCI, x86: fix default vga ref_count

2012-09-18 Thread Bjorn Helgaas
On Fri, Sep 14, 2012 at 6:48 PM, Yinghai Lu wrote: > when __ARCH_HAS_VGA_DEFAULT_DEVICE is not defined, aka EFIFB is not used, > > for static path, vga_default setting is through vga_arbiter_add_pci_device. > and for x86 pci_fixup_video, will skip that. > because subsys_initcall(vga_arb_device_ini

Re: [PATCH] PCI, x86: clear initial value for root info resources

2012-09-18 Thread Bjorn Helgaas
On Fri, Sep 14, 2012 at 6:48 PM, Yinghai Lu wrote: > Found one system one root bus hot remove get panic. > Panic happens when try to release hostbridge resource. > > It turns out that resource get reject during put into resource tree > because of conflicts. > Also that resource parent pointer have

Re: [PATCH] PCI: Use correct type when freeing bus resource list

2012-09-18 Thread Bjorn Helgaas
On Fri, Sep 14, 2012 at 6:48 PM, Yinghai Lu wrote: > Should use struct pci_bus_resource instead of struct pci_host_bridge_window Looks good, and this is all my fault, sorry. Applied to a pci/yinghai-misc branch. > Signed-off-by: Yinghai Lu > > --- > drivers/pci/bus.c |6 +- > 1 file c

Re: [PATCH] PCI, x86: clear initial value for root info resources

2012-09-19 Thread Bjorn Helgaas
On Tue, Sep 18, 2012 at 5:49 PM, Yinghai Lu wrote: > On Tue, Sep 18, 2012 at 3:46 PM, Bjorn Helgaas wrote: >> On Fri, Sep 14, 2012 at 6:48 PM, Yinghai Lu wrote: >>> Found one system one root bus hot remove get panic. >>> Panic happens when try to release hostbridge

Re: [PATCH v2 1/2] PCI: Keep pci_fixup_irqs() around after init

2012-09-19 Thread Bjorn Helgaas
On Mon, Sep 17, 2012 at 5:34 AM, Greg Kroah-Hartman wrote: > On Mon, Sep 17, 2012 at 01:22:53PM +0200, Thierry Reding wrote: >> Remove the __init annotations in order to keep pci_fixup_irqs() around >> after init (e.g. for hotplug). This requires the same change for the >> implementation of pcibio

Re: [RFC/PATCH v2] ia64, SR870, EFI bug breaks ata_piix, uninitialized ICH4 IDE EXBAR mem resource

2012-09-20 Thread Bjorn Helgaas
On Thu, Sep 20, 2012 at 8:16 AM, Stephan Schreiber wrote: > description of the symptoms which you have already read on the initial > RFC/PATCH==> > > > Kernel 3.2.23 with Debian patches (Debian Wheezy, testing) > Debian bug#679545 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679545) > > M

Re: RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

2012-09-20 Thread Bjorn Helgaas
On Thu, Sep 20, 2012 at 11:28 AM, Thanasis wrote: > I have an Acer Aspire One notebook, and it has a NIC as shown below: > > # lspci |grep -i Realtek > 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. > RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) > > The driver modu

Re: RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

2012-09-20 Thread Bjorn Helgaas
On Thu, Sep 20, 2012 at 12:10 PM, Thanasis wrote: > on 09/20/2012 08:47 PM Bjorn Helgaas wrote the following: >> On Thu, Sep 20, 2012 at 11:28 AM, Thanasis wrote: >>> I have an Acer Aspire One notebook, and it has a NIC as shown below: >>> >>> # lspci |

Re: [PATCH 4/5] PCI/IOV: simplify code by hotplug safe pci_get_domain_bus_and_slot()

2012-09-20 Thread Bjorn Helgaas
On Thu, Sep 20, 2012 at 2:38 PM, Yinghai Lu wrote: > On Tue, Aug 28, 2012 at 8:43 AM, Jiang Liu wrote: >> Following code has a race window between pci_find_bus() and pci_get_slot() >> if PCI hotplug operation happens between them which removes the pci_bus. >> So use PCI hotplug safe interface pci

Re: [PATCH] pci: Account for virtual buses in pci_acs_path_enabled

2012-08-07 Thread Bjorn Helgaas
On Tue, Aug 7, 2012 at 2:50 PM, Don Dutile wrote: > On 08/06/2012 04:47 PM, Bjorn Helgaas wrote: >> >> On Sun, Aug 5, 2012 at 11:55 PM, Alex Williamson >> wrote: >>> >>> On Sun, 2012-08-05 at 23:30 -0600, Bjorn Helgaas wrote: >>>> &g

Re: [RFC PATCH v2 00/16] ACPI based system device hotplug framework

2012-08-08 Thread Bjorn Helgaas
On Wed, Aug 8, 2012 at 8:44 AM, Jiang Liu wrote: > On 08/08/2012 07:38 AM, Toshi Kani wrote: >> It is nice to see redundant ACPI namespace walks removed from the ACPI >> drivers. But why do you need to add a new enumerator to create the >> acpihp_slot tree, in addition to the current acpi_device

Re: PROBLEM: snd_hda_intel bug during boot

2012-08-09 Thread Bjorn Helgaas
If you can collect complete dmesg logs from the working kernel and the broken kernel and post them, the differences might have a clue. You might also collect /proc/iomem and "lspci -vv" for both cases while you're at it. On Wed, Aug 8, 2012 at 10:38 PM, Alexei Kornienko wrote: > Hi, > > Yes it u

[patch 0/3] simplify initcall & quirk debug output

2008-02-18 Thread bjorn . helgaas
print_fn_descriptor_symbol() prints the address if we don't have a symbol, so no need to print both. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Pleas

[patch 2/3] PNP: Simplify quirk debug output

2008-02-18 Thread bjorn . helgaas
print_fn_descriptor_symbol() prints the address if we don't have a symbol, so no need to print both. Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Index: work6/drivers/pnp/quirks.c === --- work6.orig/drivers/pnp/quirks

[patch 3/3] PCI: Simplify quirk debug output

2008-02-18 Thread bjorn . helgaas
print_fn_descriptor_symbol() prints the address if we don't have a symbol, so no need to print both. Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Index: work6/drivers/pci/quirks.c === --- work6.orig/drivers/pci/quirks

[patch 1/3] Simplify initcall debug output

2008-02-18 Thread bjorn . helgaas
tcall pci_mmcfg_late_insert_resources+0x0/0x50() returned 1 after 0 msecs initcall pci_mmcfg_late_insert_resources+0x0/0x50() returned with error code 1 Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Index: work6/init/main.c === --- work

Re: pnp_bus_resume(): inconsequent NULL checking

2008-02-20 Thread Bjorn Helgaas
not a real problem since the tests > are also the first things done inside the blocks they protect -- if > pnp_dev->protocol isn't set here, we're dead anyway therefore. > > That probably means we can just delete the pnp_dev->protocol tests but this > would need a

Re: pnp_bus_resume(): inconsequent NULL checking

2008-02-21 Thread Bjorn Helgaas
On Wednesday 20 February 2008 10:47:21 pm Rene Herman wrote: > On 20-02-08 17:59, Bjorn Helgaas wrote: > > I agree with you that we can just delete the dev->protocol tests > > completely. So I'd rather see something like this (built but untested): > > > > > &

PNP: skip dev->protocol NULL checks

2008-02-21 Thread Bjorn Helgaas
Every PNP device should have a valid protocol pointer. If it doesn't, something's wrong and we should oops so we can find and fix the problem. [This fixes a Coverity warning, but does not need to be in 2.6.25. I'd rather have it in -mm for a while and put it in 2.6.26.] Signe

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-13 Thread Bjorn Helgaas
On Wed, Aug 1, 2012 at 8:54 AM, Jiang Liu wrote: > From: Jiang Liu > > As suggested by Bjorn Helgaas and Don Dutile in threads > http://www.spinics.net/lists/linux-pci/msg15663.html, we could improve access > to PCIe capabilities register in to way: > 1) cache content of

Re: [Resend with Ack][PATCH v1] PCI: allow acpiphp to handle PCIe ports without native PCIe hotplug capability

2012-08-15 Thread Bjorn Helgaas
On Mon, Jun 4, 2012 at 1:44 AM, Jiang Liu wrote: > Commit 0d52f54e2ef64c189dedc332e680b2eb4a34590a (PCI / ACPI: Make acpiphp > ignore root bridges using PCIe native hotplug) added code that made the > acpiphp driver completely ignore PCIe root complexes for which the kernel > had been granted cont

Re: [PATCH] PCI: EHCI: fix crash during hibernation on ASUS computers

2012-08-15 Thread Bjorn Helgaas
On Sun, Aug 12, 2012 at 3:26 PM, Rafael J. Wysocki wrote: > > Commit dbf0e4c (PCI: EHCI: fix crash during suspend on ASUS > computers) added a workaround for an ASUS suspend issue related to > USB EHCI and a bug in a number of ASUS BIOSes that attemt to shut > down the EHCI controller during syste

Re: [Resend][PATCH] PCI / PM: Fix messages printed by acpi_pci_set_power_state()

2012-08-15 Thread Bjorn Helgaas
On Sat, Aug 4, 2012 at 3:27 PM, Rafael J. Wysocki wrote: > > If a PCI device is put into D3_cold by acpi_bus_set_power(), > the message printed by acpi_pci_set_power_state() says that its > power state has been changed to D4, which doesn't make sense. > In turn, if the device is put into D3_hot, t

Re: [PATCH] PCI / ACPI: Do not request control of ASPM if the BIOS has disabled it

2012-08-15 Thread Bjorn Helgaas
On Thu, May 24, 2012 at 2:45 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > We want to report that the kernel supports ASPM to the BIOS even if > the BIOS signals us that it doesn't. So, we need the flags to include > (OSC_ACTIVE_STATE_PWR_SUPPORT | OSC_CLOCK_PWR_CAPABILITY_SUPPORT)

Re: [PATCH v1] PCI,IA64: free associated resources when removing host bridges

2012-08-15 Thread Bjorn Helgaas
On Fri, May 25, 2012 at 1:23 AM, Jiang Liu wrote: > There are some resources associated with PCI host bridges on > IA 64 platforms, they should be released when removing host > bridges. Otherwise it will cause memory leak and other strange > behavior. > > For example, PCI IO port address space are

Re: [RFC PATCH v1 1/6] PCI: change PCI device management logic to better follow device model

2012-08-15 Thread Bjorn Helgaas
On Sun, Jun 3, 2012 at 11:16 PM, Jiang Liu wrote: > From: Jiang Liu > > According to device model documentation, the way to add/remove device > object should be symmetric. I think this 6-patch series has been folded into your "[RFC PATCH v1 00/22] introduce PCI bus lock to serialize PCI hotplug

Re: [PATCH 4/5] PCI, MSI: Enable multiple MSIs with pci_enable_msi_block_auto()

2012-08-16 Thread Bjorn Helgaas
On Thu, Aug 16, 2012 at 8:49 AM, Alexander Gordeev wrote: > The new function pci_enable_msi_block_auto() tries to allocate maximum > possible number of MSIs up to the number the device supports. It > generalizes a pattern when pci_enable_msi_block() contiguously called > until it succeeds or fails

Re: a7839e96 (PNP: increase max resources) breaks my ALSA intel8x0 sound card

2008-02-05 Thread Bjorn Helgaas
On Tuesday 05 February 2008 11:15:12 am Linus Torvalds wrote: > > On Tue, 5 Feb 2008, Bjorn Helgaas wrote: > > > > > > - PnP/ACPI resource allocation *after* it, but before driver loading > > >(which wll cause new resources to be allocated). This could be

Re: [PATCH for review] ACPI: Create /sys/firmware/acpi/interrupts/ counters

2008-02-05 Thread Bjorn Helgaas
On Tuesday 05 February 2008 04:12:09 pm Len Brown wrote: > is there > a version of cat that prints the file name before > the contents of each file? I use "grep . *" for this sort of thing. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAI

[GIT PULL] PCI changes for v3.6

2012-07-24 Thread Bjorn Helgaas
Dynamic resource management - Track bus number allocation (struct resource tree per domain) (Yinghai Lu) - Make P2P bridge 1K I/O windows work with resource reassignment (Bjorn Helgaas, Yinghai Lu) - Disable decoding while updating 64-bit BARs (Bjorn Helgaas) Power management

Re: [PATCH] tilegx pci: fix semantic merge conflict with 3527ed81c

2012-07-25 Thread Bjorn Helgaas
s commit b918c62e for all other architectures. > > Signed-off-by: Chris Metcalf Acked-by: Bjorn Helgaas You pushed the other tile changes, so I assume you'll do the same with this one. But let me know if you want me to push it to Linus. > --- > arch/tile/kernel/pci_gx.c |2

Re: [PATCH 4/5] PCI, MSI: Enable multiple MSIs with pci_enable_msi_block_auto()

2012-08-17 Thread Bjorn Helgaas
On Fri, Aug 17, 2012 at 2:19 AM, Alexander Gordeev wrote: > On Thu, Aug 16, 2012 at 10:00:39AM -0600, Bjorn Helgaas wrote: >> On Thu, Aug 16, 2012 at 8:49 AM, Alexander Gordeev >> wrote: >> > -4.2.3 pci_disable_msi >> > +4.2.3 pci_enable_msi_block_auto >>

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-20 Thread Bjorn Helgaas
On Mon, Aug 20, 2012 at 9:26 AM, Jiang Liu wrote: > On 08/14/2012 12:25 PM, Bjorn Helgaas wrote: >> On Wed, Aug 1, 2012 at 8:54 AM, Jiang Liu wrote: >>> From: Jiang Liu >>> >>> As suggested by Bjorn Helgaas and Don Dutile in threads >>> http://www.

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-20 Thread Bjorn Helgaas
On Mon, Aug 20, 2012 at 9:47 AM, Jiang Liu wrote: > On 08/20/2012 11:35 PM, Bjorn Helgaas wrote: >> On Mon, Aug 20, 2012 at 9:26 AM, Jiang Liu wrote: >>> On 08/14/2012 12:25 PM, Bjorn Helgaas wrote: >>>> On Wed, Aug 1, 2012 at 8:54 AM, Jiang Liu wrote: >>

Re: [PATCH v3 00/32] provide interfaces to access PCIe capabilities registers

2012-08-20 Thread Bjorn Helgaas
On Mon, Aug 20, 2012 at 10:10 AM, Bjorn Helgaas wrote: > So I'll try pulling your branch (I'll do something about the tsi721.c > stuff myself). I pulled this into git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/jiang-pcie-cap with the following changes: - Dr

[GIT PULL] PCI updates for v3.6

2012-08-20 Thread Bjorn Helgaas
rnate path. The other fixes D3/D3cold/D4 messages related to the D3cold support we merged in v3.6-rc1. We'd like both to be included in v3.6. -------- Bjorn Helgaas (1): Merge branch 'pci/rafael-3.6-fixes' into for-li

Re: [Resend with Ack][PATCH v1] PCI: allow acpiphp to handle PCIe ports without native PCIe hotplug capability

2012-07-09 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 4:05 AM, Jiang Liu wrote: > Hi Bjorn and Yinghai, > What's the policy to export a symbol by EXPORT_SYMBOL() > or EXPORT_SYMBOL_GPL()? I know the legal difference, but don't > know when I should mark a symbol as GPL. >From Documentation/DocBook/kernel-hacking.tmpl,

Re: [Bug 43331] Re: Bug on bootup of Linux kernel on Panasonic Toughbook S10

2012-07-09 Thread Bjorn Helgaas
> looks like they do not bios update for S10 yet. > > http://www.panasonic.com/business/toughbook/computer-support-bios.asp#CF-U1 > > maybe you can try to email or call their support. Please stop suggesting a BIOS upgrade. The BIOS is totally out of our control, and if the current BIOS works with

[PATCH 0/2] PCI: decode disable fixes

2012-07-09 Thread Bjorn Helgaas
ire two writes and the half-written state is a potential problem. I'm considering these changes for the 3.6 merge window, which is approaching fast, so let me know if you see issues with either of these. --- Bjorn Helgaas (2): PCI: leave MEM and IO decoding disabled during 64-bit BAR si

[PATCH 1/2] PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too

2012-07-09 Thread Bjorn Helgaas
27;re completely finished sizing the BAR. Reference: https://lkml.org/lkml/2007/8/25/154 Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 658ac97..66b3a6f 100644

[PATCH 2/2] PCI: disable MEM decoding while updating 64-bit MEM BARs

2012-07-09 Thread Bjorn Helgaas
, disable MEM decoding while updating such BARs. This uses the same safety test as 253d2e5498, which disables both MEM and IO while sizing BARs, namely, we don't disable decoding for host bridge devices. Signed-off-by: Bjorn Helgaas --- drivers/pci/setup-res.c | 18 ++ 1

[PATCH 0/3] PCI: P2P bridge window fixes

2012-07-09 Thread Bjorn Helgaas
reassignment of the window after FINAL quirks. Fix that. And also replace the sparc pci_cfg_fake_ranges() with the functionally equivalent generic version. --- Bjorn Helgaas (3): PCI: allow P2P bridge windows starting at PCI bus address zero PCI: reimplement P2P bridge 1K I/O windows (Intel

[PATCH 1/3] PCI: allow P2P bridge windows starting at PCI bus address zero

2012-07-09 Thread Bjorn Helgaas
f] pci :01:00.0: reg 10: [mem 0x1-0x100ff] CC: Yinghai Lu Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 658ac97..9c5d2a9 100644 --- a/drivers/p

[PATCH 3/3] sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()

2012-07-09 Thread Bjorn Helgaas
24d051 and is no longer necessary (it probably was just cloned from x86 and was never useful on sparc). CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Bjorn Helgaas --- arch/sparc/kernel/pci.c | 89 +-- 1 files changed, 1 i

[PATCH 2/3] PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)

2012-07-09 Thread Bjorn Helgaas
gnment code, e.g., pbus_size_io(), should pay attention to dev->io_window_1k, too, but I didn't fix that. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 25 ++--- drivers/pci/quirks.c | 39 +-- drivers

Re: Build regressions/improvements in v3.5-rc6

2012-07-09 Thread Bjorn Helgaas
Hi Geert, There are some PCI-related regressions here that I'd like to fix, but I don't know where to start. For example, these: > + drivers/pci/quirks.c: error: implicit declaration of function 'ioread32' > [-Werror=implicit-function-declaration]: => 3154:2 > + drivers/pci/quirks.c: error

Re: [PATCH 2/3] PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)

2012-07-09 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 3:43 PM, Yinghai Lu wrote: > On Mon, Jul 9, 2012 at 1:32 PM, Bjorn Helgaas wrote: >> >> Note that the bridge window assignment code, e.g., pbus_size_io(), should >> pay attention to dev->io_window_1k, too, but I didn't fix that. > > Pl

Re: Build regressions/improvements in v3.5-rc6

2012-07-09 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 3:31 PM, Geert Uytterhoeven wrote: > Hi Bjorn (or Björn?), > > On Mon, Jul 9, 2012 at 11:20 PM, Bjorn Helgaas wrote: >> There are some PCI-related regressions here that I'd like to fix, but >> I don't know where to start. For example

Re: [PATCH -v2 0/8] PCI: Add 'pci_fixup_final' quirks into hot-plug paths

2012-07-09 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 3:35 PM, Myron Stowe wrote: > PCI's final quirks (pci_fixup_final) are currently invoked by > pci_apply_final_quirk() which traverses the platform's list of PCI > devices. The calling mechanism, and to some point the use of the device > list, limits the quirk invocations to

Re: [PATCH 0/2] PCI: decode disable fixes

2012-07-09 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 12:20 PM, Bjorn Helgaas wrote: > Since 2.6.36 (253d2e5498), we've disabled MEM & IO decoding while we size > BARs (except for host bridge devices). These patches tweak this in two > ways: > > 1) We only kept decoding disabled while sizing the low

Re: [PATCH 0/3] PCI: P2P bridge window fixes

2012-07-09 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 2:31 PM, Bjorn Helgaas wrote: > Two fixes here: > > 1) Zero is a legal P2P bridge window base and BAR value and is likely to > occur when there is an offset between bus addresses and CPU addresses. > Stop disallowing it. > > 2) The Intel-specific 1K I

Re: [PATCH 0/3] PCI: P2P bridge window fixes

2012-07-10 Thread Bjorn Helgaas
On Mon, Jul 9, 2012 at 9:24 PM, Bjorn Helgaas wrote: > On Mon, Jul 9, 2012 at 2:31 PM, Bjorn Helgaas wrote: >> Two fixes here: >> >> 1) Zero is a legal P2P bridge window base and BAR value and is likely to >> occur when there is an offset between bus addresses

Re: [RFC PATCH 05/14] PCI: add access functions for PCIe capabilities to hide PCIe spec differences

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > Introduce four configuration access functions for PCIe capabilities to > hide difference among PCIe Base Spec versions. With these functions, > we can remove callers responsible for using pci_pcie_cap_has_*(). > > pci_pcie_ca

Re: [RFC PATCH 06/14] PCI: use PCIe cap access functions to simplify PCI core implementation

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > Use PCIe cap access functions to simplify PCI core implementation. > > Signed-off-by: Jiang Liu > --- > drivers/pci/pci.c| 237 > ++ > drivers/pci/probe.c | 19 ++-- >

Re: [RFC PATCH 07/14] hotplug/PCI: use PCIe cap access functions to simplify implementation

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > Use PCIe cap access functions to simplify pcihp_slot.c > > Signed-off-by: Jiang Liu > --- > drivers/pci/hotplug/pcihp_slot.c | 17 + > 1 file changed, 9 insertions(+), 8 deletions(-) > > diff --git a/drive

Re: [RFC PATCH 00/14] improve PCIe capabilities registers handling

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > As suggested by Bjorn Helgaas and Don Dutile in threads > http://www.spinics.net/lists/linux-pci/msg15663.html, we could improve access > to PCIe capabilities register in to way: > 1) cache content of

Re: [RFC PATCH 04/14] PCI: refine and move pcie_cap_has_*() macros to include/linux/pci.h

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:54 AM, Jiang Liu wrote: > From: Jiang Liu > > Move pcie_cap_has_*() macros to include/linux/pci.h, so they can be shared. > Since pcie_flags was introduced, rework these macros to take a struct pci_dev > * > and use pcie_flags insead of type and flags. > > Signed-off-by

Re: [RFC PATCH 05/14] PCI: add access functions for PCIe capabilities to hide PCIe spec differences

2012-07-10 Thread Bjorn Helgaas
On Tue, Jul 10, 2012 at 9:07 PM, Jiang Liu wrote: > On 2012-7-11 2:35, Bjorn Helgaas wrote: >>> diff --git a/drivers/pci/access.c b/drivers/pci/access.c >>> index ba91a7e..80ae022 100644 >>> --- a/drivers/pci/access.c >>> +++ b/drivers/pci

Re: [RFC PATCH 05/14] PCI: add access functions for PCIe capabilities to hide PCIe spec differences

2012-07-11 Thread Bjorn Helgaas
On Wed, Jul 11, 2012 at 12:40 AM, Jiang Liu wrote: > On 2012-7-11 11:40, Bjorn Helgaas wrote: > >>> Good point. Return success when reading unimplemented registeres, that >>> may simplify code. For we still should return -EINVAL when writing >>> unimplemented regi

Re: [PATCH] pci: support alignments upto 8Gb in pbus_size_mem()

2012-07-11 Thread Bjorn Helgaas
On Mon, Jun 25, 2012 at 2:54 PM, Nikhil P Rao wrote: > On Sat, 2012-06-23 at 12:15 -0600, Bjorn Helgaas wrote: >> On Thu, Jun 21, 2012 at 5:47 PM, Nikhil P Rao wrote: >> > I ran into the "disabling BAR .." error message when >> > trying to use a 8Gb PCIe c

Re: [PATCH] pci: 64bit resource fix in setup-res.c

2012-07-11 Thread Bjorn Helgaas
On Wed, Jun 20, 2012 at 1:56 PM, Nikhil P Rao wrote: > size parameter of _pci_assign_resource() needs to be > of type resource_size_t rather than int > > Signed-off-by: Nikhil P Rao > --- > drivers/pci/setup-res.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/dr

Re: [PATCH v2] resource: make sure requested range is included in the root range

2012-07-12 Thread Bjorn Helgaas
On Thu, Jul 12, 2012 at 11:27 AM, Octavian Purdila wrote: > When the requested range is outside of the root range the logic in > __reserve_region_with_split will cause an infinite recursion which > will overflow the stack as seen in the warning bellow. I think reserve_region_with_split() is a dub

Re: [PATCH] pci: support alignments upto 8Gb in pbus_size_mem()

2012-07-12 Thread Bjorn Helgaas
On Wed, Jul 11, 2012 at 6:13 PM, Yinghai Lu wrote: > On Wed, Jul 11, 2012 at 3:53 PM, Bjorn Helgaas wrote: >> On Mon, Jun 25, 2012 at 2:54 PM, Nikhil P Rao wrote: >>> On Sat, 2012-06-23 at 12:15 -0600, Bjorn Helgaas wrote: >>>> On Thu, Jun 21, 2012 at 5:47 PM, Nik

Re: [RFC PATCH 05/14] PCI: add access functions for PCIe capabilities to hide PCIe spec differences

2012-07-12 Thread Bjorn Helgaas
On Wed, Jul 11, 2012 at 8:56 PM, Jiang Liu wrote: > On 2012-7-12 1:52, Bjorn Helgaas wrote: >>> Hi Bjorn, >>> Seems it would be better to return error code for unimplemented >>> registers, otherwise following code will becomes more complex. A special &g

[GIT PULL] PCI updates for v3.8

2013-01-22 Thread Bjorn Helgaas
pci_dev_put() PCI: remove depends on CONFIG_EXPERIMENTAL Betty Dall (1): PCI/AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put() Bjorn Helgaas (4): PCI: shpchp: Make shpchp_wq non-ordered PCI

Re: Abysmal HDD/USB write speed after sleep on a UEFI system

2013-02-12 Thread Bjorn Helgaas
[+cc linux-pci, Rafael, Alan] [https://bugzilla.kernel.org/show_bug.cgi?id=53551] On Tue, Feb 12, 2013 at 1:13 PM, Artem S. Tashkinov wrote: > Feb 13, 2013 01:32:53 AM, Linus Torvalds wrote: > On Tue, Feb 12, 2013 at 10:29 AM, Artem S. Tashkinov wrote: >>> Feb 12, 2013 11:30:20 PM, Linus Torvald

Re: [3.8-rc7] PCI hotplug wakeup oops

2013-02-13 Thread Bjorn Helgaas
On Wed, Feb 13, 2013 at 7:32 AM, Daniel J Blueman wrote: > On 12 February 2013 03:49, Rafael J. Wysocki wrote: >> On Monday, February 11, 2013 08:27:49 PM Rafael J. Wysocki wrote: >>> On Monday, February 11, 2013 12:01:37 PM Bjorn Helgaas wrote: >>> > [+cc Rafa

Re: Uhhuh. NMI received for unknown reason 2c on CPU 0.

2013-02-14 Thread Bjorn Helgaas
On Thu, Feb 14, 2013 at 7:39 AM, Borislav Petkov wrote: > On Sun, Feb 03, 2013 at 03:46:56PM +0100, Borislav Petkov wrote: >> On Sun, Feb 03, 2013 at 12:04:46AM +0100, Rafael J. Wysocki wrote: >> > The [2/5] is at: https://patchwork.kernel.org/patch/2001211/ >> > >> > The other two are attached.

[GIT PULL] PCI update for v3.8

2013-02-14 Thread Bjorn Helgaas
Hi Linus, This is another fix for v3.8. It fixes an oops that happens when a Thunderbolt adapter is unplugged (remove device, poll for PME events on no-longer-existing device, oops). Bjorn The following changes since commit 444ee9bd3d0fa78317c6127c961af5accf50038b: PCI: remove depends on CO

Re: [PATCH] pci: Disable slot presence detection around bus reset

2013-02-14 Thread Bjorn Helgaas
On Thu, Feb 14, 2013 at 11:37 AM, Alex Williamson wrote: > A bus reset can trigger a presence detection change and result in a > suprise hotplug. This is generally not what we want to happen when > trying to reset a device. Disable the presence detection control on > on bridges around bus reset.

Re: [PATCH] pci: Fix pcie access for PCI_EXP_FLAGS

2013-02-15 Thread Bjorn Helgaas
On Thu, Feb 14, 2013 at 11:35 AM, Alex Williamson wrote: > PCI_EXP_FLAGS_TYPE is a mask, not an offset. Fix it. > > Signed-off-by: Alex Williamson I applied this to pci/misc so it will appear in v3.9 and marked it for stable for v3.7+. Thanks! > --- > drivers/pci/access.c |2 +- > 1 file

Re: [PATCH] ACPI, PCI: Get PRT entry during acpi_pci_enable_irq()

2013-02-15 Thread Bjorn Helgaas
ble a PCI >>> device's IRQ, we should search up the PCI device tree looking for a >>> _PRT associated with each node, and applying normal PCI bridge >>> swizzling when we don't find a _PRT. I think this can be done without >>> using PCI bus numbers at

Re: [PATCH] ACPI / PCI: Initialize PCI root drivers after PCI bus enumeration

2013-02-15 Thread Bjorn Helgaas
On Wed, Feb 13, 2013 at 5:59 AM, Rafael J. Wysocki wrote: > On Tuesday, February 12, 2013 05:54:08 PM Yinghai Lu wrote: >> On Tue, Feb 12, 2013 at 4:16 PM, Rafael J. Wysocki wrote: >> > From: Rafael J. Wysocki >> > >> > After commit 1aeae82 (ACPI / PCI: avoid building pci_slot as module) >> > th

Re: linux-next: manual merge of the pm tree with the pci tree

2013-01-10 Thread Bjorn Helgaas
On Thu, Jan 10, 2013 at 6:12 AM, Rafael J. Wysocki wrote: > Hi, > > On Thursday, January 10, 2013 11:28:36 AM Stephen Rothwell wrote: >> Hi Rafael, >> >> Today's linux-next merge of the pm tree got a conflict in >> drivers/acpi/pci_root.c between commit 3c449ed00759 ("PCI/ACPI: Reserve >> firmware

Re: [PATCH v3 3/6] ACPI/pci_slot: update PCI slot information when PCI hotplug event happens

2013-01-11 Thread Bjorn Helgaas
On Thu, Jan 10, 2013 at 4:59 PM, Rafael J. Wysocki wrote: > On Thursday, January 10, 2013 03:40:45 PM Yinghai Lu wrote: >> On Thu, Jan 10, 2013 at 3:39 PM, Rafael J. Wysocki wrote: >> > On Thursday, January 10, 2013 03:03:53 PM Yinghai Lu wrote: >> >> On Thu, Jan 10, 2013 at 1:50 PM, Rafael J. Wy

[PATCH v7 0/4] PCI: pciehp, shpchp deadlock fixes

2013-01-13 Thread Bjorn Helgaas
ngelogs. I propose to push the entire series for inclusion in v3.8, since it fixes an easy-to-cause deadlock with Thunderbolt adapters. --- Bjorn Helgaas (3): PCI: shpchp: Make shpchp_wq non-ordered PCI: shpchp: Handle push button event asynchronously PCI: shpchp: Use per-slot

[PATCH v7 2/4] PCI: shpchp: Make shpchp_wq non-ordered

2013-01-13 Thread Bjorn Helgaas
;pciehp: update workqueue usage"). Signed-off-by: Bjorn Helgaas CC: Tejun Heo --- drivers/pci/hotplug/shpchp_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index b6de307..59ca86c 100644 --- a

[PATCH v7 4/4] PCI: shpchp: Use per-slot workqueues to avoid deadlock

2013-01-13 Thread Bjorn Helgaas
code inspection, since we don't have hardware with this topology. Based-on-patch-by: Yijing Wang Signed-off-by: Bjorn Helgaas CC: sta...@vger.kernel.org --- drivers/pci/hotplug/shpchp.h |2 +- drivers/pci/hotplug/shpchp_core.c | 26 ++ drivers/pci/hotplug/

[PATCH v7 1/4] PCI: pciehp: Use per-slot workqueues to avoid deadlock

2013-01-13 Thread Bjorn Helgaas
eviewed-by: Kenji Kaneshige Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas CC: sta...@vger.kernel.org --- drivers/pci/hotplug/pciehp.h |2 +- drivers/pci/hotplug/pciehp_core.c | 11 ++- drivers/pci/hotplug/pciehp_ctrl.c |8 drivers/pci/hotplug/pciehp_hpc

[PATCH v7 3/4] PCI: shpchp: Handle push button event asynchronously

2013-01-13 Thread Bjorn Helgaas
ously") made the same change to pciehp. I split this out from a patch by Yijing Wang so we fix one thing at a time and to make the shpchp history correspond more closely with the pciehp history. Signed-off-by: Bjorn Helgaas CC: Kenji Kaneshige --- drivers/pci/hotplug/shpchp.h |1

Re: [PATCH] ia64: sn/pci/pcibr/pcibr_reg.c: check null pointer dereference

2013-01-14 Thread Bjorn Helgaas
On Mon, Jan 14, 2013 at 10:53 AM, Cong Ding wrote: > we should ensure the pointer is not null before the first use, rather than > after it. These changes look technically correct, but the whole pcibr_reg.c file is ridiculously defensive programming. For example, the first two hunks are for pcire

<    3   4   5   6   7   8   9   10   11   12   >