Re: Regression: bug 85491: radeon 0000:01:00.0: Fatal error during GPU init

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

 



[+cc Guo, Ben]

On Wed, Dec 3, 2014 at 3:15 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:
> There's a bugzilla for this, so this email is to make the bugzilla
> more discoverable and to have a more public discussion about it.
>
>   https://bugzilla.kernel.org/show_bug.cgi?id=85491
>
> I think this regression is caused by 5b28541552ef ("PCI: Restrict
> 64-bit prefetchable bridge windows to 64-bit resources").
> ...

> In v3.16 (which does contain 5b28541552ef), when pbus_size_mem() sizes
> the 64-bit prefetchable window, it only looks for downstream 64-bit
> resources.  Since the radeon at 01:00.0 has none, we size the window
> to 0 + 0x200000 (the 0x200000 part is pci_hotplug_mem_size, to
> accommodate future hot-added devices).
> ...

> I don't know what the best fix is, but I think it's probably too
> aggressive to *never* use a 64-bit prefetchable window for downstream
> 32-bit prefetchable resources.  This configuration from BIOS should
> just work without us changing anything (although we probably should
> trim the window to start at 0xc0000000, which would still work).
>
> In this case, I think we certainly want the radeon BAR 0 in the
> prefetchable window.  In general, it seems wrong that a device with
> 32-bit BARs will work fine below a bridge with a 32-bit prefetchable
> window, but it won't work (or will work slower) below a bridge with a
> 64-bit prefetchable window.  A more capable bridge should make things
> work *better*, not worse.

5b28541552ef was added to fix https://bugzilla.kernel.org/show_bug.cgi?id=74151

In that case, there was a bridge with a 64-bit prefetchable window,
and downstream devices had 64-bit prefetchable BARs as well as
prefetchable 32-bit ROMs:

    pci 0006:00:00.0: PCI bridge to [bus 01]
    pci 0006:00:00.0:   bridge window [mem 0x3d24800000000-0x3d248007fffff]
    pci 0006:00:00.0:   bridge window [mem
0x3d24008000000-0x3d2400fffffff 64bit pref]

    pci 0006:01:00.0: reg 0x10: [mem 0x3d2400e000000-0x3d2400e007fff 64bit pref]
    pci 0006:01:00.0: reg 0x20: [mem 0x3d2400e030000-0x3d2400e030fff 64bit pref]
    pci 0006:01:00.0: reg 0x30: [mem 0x00000000-0x0007ffff pref]

The problem was that we used to put all the prefetchable BARs in the
prefetchable window, which meant we had to put the window below 4GB
because the ROM BAR is only 32 bits.  But there wasn't enough space
below 4GB for all the other 64-bit BARs.

I think another way to fix the bug 74151 problem would have been to
put the ROMs in the non-prefetchable window and the 64-bit BARs in the
64-bit prefetchable window.

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