Re: [PATCH] PCI: update bridge resources to get bigger ranges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 2, 2011 at 4:38 PM, Ram Pai <linuxram@xxxxxxxxxx> wrote:
> On Fri, Apr 29, 2011 at 11:14:07AM -0600, Bjorn Helgaas wrote:
>> On Wed, Apr 27, 2011 at 2:09 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
>> > On 04/27/2011 01:05 PM, Bjorn Helgaas wrote:
>> >>
>> >> Is that true for all PCIe hotplug topologies?  What about other
>> >> hotplug drivers that might eventually use
>> >> pci_assign_unassigned_bridge_resources()?  If we *know* all the
>> >> devices under the bridge, why don't we just remove their resources
>> >> explicitly?  That would protect us when this assumption changes.
>> >
>> > no, in this case, those devices do not get resources allocated yet.
>> >
>> > other pci hotplug could use this function too. test case could be pcie bridge to card bus etc.
>>
>> I'm trying to make the point that in general, we may have to change
>> bridge windows in order assign device resources.  That bridge may have
>> other devices below it that already have drivers bound.
>>
>> I think you're saying that in the special cases we deal with today,
>> the bridge has no other devices below it, and it is safe to blindly
>> release the resources of the device we're trying to assign.  That may
>> be true, but (a) it won't be true in the future, when we deal with
>> more general situations, and (b) if we already know the device below
>> the bridge, we can easily release its resources explicitly rather than
>> using release_child_resources().
>
> Bjorn,
>
> The patch in question has not added anything to aggrevate the situation. Your
> concern is valid, but should'nt that concern be addressed through a different
> patch?
>
> Should we hold this patch because of a issue that could potentially effect us in
> the future?
>
> BTW: This patch has been blocked for almost a year. Some unrelated kernel bug
> reverted it when in fact this patch had exposed the bug in the first place.
>
> No I am not trying to push this patch and run away, I will address your concern
> in a different patch. But lets keep these two issues separate.

All right, I give up.  I think the patch in question adds more code
that will have to be reworked when we make release_child_resources()
better, but I'll stop complaining until I can actually start bringing
patches to the party.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux