[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAE9FiQW4+6hSXyaupKAJP2vDc2RzuyQFV0P9dZdGpbtX92gYZw@mail.gmail.com>
Date: Tue, 7 May 2013 15:36:13 -0700
From: Yinghai Lu <yinghai@...nel.org>
To: Bjorn Helgaas <bhelgaas@...gle.com>
Cc: David Bulkow <David.Bulkow@...atus.com>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] PCI: move down pci_fixup_final for hotplug path
On Tue, May 7, 2013 at 2:38 PM, Bjorn Helgaas <bhelgaas@...gle.com> wrote:
> On Tue, May 7, 2013 at 2:32 PM, Bjorn Helgaas <bhelgaas@...gle.com> wrote:
>>
>> PCI: Delay final fixups until resources are assigned
>>
>> Commit 4f535093cf "PCI: Put pci_dev in device tree as early as possible"
>> moved final fixups from pci_bus_add_device() to pci_device_add(). But
>> pci_device_add() happens before resource assignment, so BARs may not be
>> valid yet.
>>
>> Typical flow for hot-add:
>>
>> pciehp_configure_device
>> pci_scan_slot
>> pci_scan_single_device
>> pci_device_add
>> pci_fixup_device(pci_fixup_final, dev) # previous location
>> # resource assignment happens here
>> pci_bus_add_devices
>> pci_bus_add_device
>> pci_fixup_device(pci_fixup_final, dev) # new location
>>
>> [bhelgaas: changelog, move fixups to pci_bus_add_device()]
Yes, that is right fix.
Thanks
Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists