Re: [PATCH 0/3] PCI/sparc: Fix booting with T5-8

From: Bjorn Helgaas
Date: Thu Apr 02 2015 - 18:15:04 EST


On Thu, Apr 2, 2015 at 5:07 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
> On Thu, Apr 2, 2015 at 1:37 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
>> From: Yinghai Lu <yinghai@xxxxxxxxxx>
>> Date: Tue, 31 Mar 2015 19:57:46 -0700
>>
>>> Fix regression by commit d63e2e1f3df9 ("sparc/PCI: Clip bridge windows to
>>> fit in upstream windows").
>>>
>>> That cause bridge bar get clipped wrongly.
>>>
>>> The sparc64 dma_addr_t is 32-bit, we can not use it to check if we can
>>> use 64bit bar, introduce pci_bus_addr_t.
>>>
>>> sparc ofpci does not parse 64bit mem for root bus, add code to
>>> make sure that we get correct resource for root.
>>>
>>> Also there are device 64-bit res does not have pref bit flag, but bridges
>>> do have pref bit set, that cause extra "no compatible window".
>>> Set pref bit for them according to the errata.
>>
>> Just to be clear, who is going to merge this? :-)
>>
>
> Should be you or Bjorn, but one should get ack from another.

I'm just getting back from vacation and would like to have a chance to
look over this.

One first reaction is that if we add a pci_bus_addr_t,
Documentation/DMA-API-HOWTO.txt needs to be updated. It currently
says a dma_addr_t "can hold any valid DMA or bus address."

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