Re: [PATCH] PCI: PCI_PROBE_ONLY clean-up

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

 



On 06/24/2016 11:50, Ralf Baechle wrote:
> On Thu, Jun 23, 2016 at 05:16:47PM -0500, Bjorn Helgaas wrote:
> 
>> Lorenzo is changing the PCI_PROBE_ONLY case so the BARs and windows remain
>> immutable, but we insert the resources into the iomem_resource tree.
>>
>> The ideal thing would be to remove the use of PCI_PROBE_ONLY completely,
>> and allow Linux to program BARs as necessary.  If the firmware *has*
>> programmed the BARs, we don't change them unless we find something broken,
>> so in most cases PCI_PROBE_ONLY is unnecessary.
>>
>> There are several MIPS platforms (bcm1480, ip27, sb1250, virtio_guest, xlp,
>> xlr) that set PCI_PROBE_ONLY for reasons I don't know.  These were added
>> by:
>>
>>   bcm1480
>>     Andrew Isaacson <adi@xxxxxxxxxxxx>
>>     dc41f94f7709 ("Support for the BCM1480 on-chip PCI-X bridge.")
>>
>>   ip27
>>     Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
>>     96173a6c4ebc ("[MIPS] IP27: misc fixes")
> 
> Afair  I did originally implement the IP27 use of PCI_PROBE_ONLY.  The
> problem is that it was not possible for the kernel to assign resources
> properly on an IP27.  Also that would invalidate firmware configuration
> information, so we had to live with whatever the firmware (mis)configured
> for us.  Afair - it's a darn long time ...  I think the reasoning for
> the BCM1480 was similar but Andy will hopefully recall the details.

I'm not onto 4.7 yet, but I've got some major rework of the BRIDGE code that's
solved the resource assignment bit in IP27 (including being able to kzalloc the
bridge_controller struct now).  Can try this change out with the changes I've
done to see if everything still works, or if IP27 (and maybe IP30) still
require this flag, or if it can be implemented in another way.


-- 
Joshua Kinard
Gentoo/MIPS
kumba@xxxxxxxxxx
6144R/F5C6C943 2015-04-27
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943

"The past tempts us, the present confuses us, the future frightens us.  And our
lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux