Re: "shpchp: Cannot reserve MMIO region" error during boot (linux 3.0)

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

 



Thanks!  These tests:

        if ((dev->vendor == PCI_VENDOR_ID_AMD) || (dev->device ==
                                                PCI_DEVICE_ID_AMD_GOLAM_7450))

are clearly wrong.  I suspect "&&" was intended instead of "||", but
this code seems to have been that  way since the beginning, so I don't
know how to verify that.

In any event, it would be perfectly legal for any other (non-AMD)
manufacturer to make a PCI bridge that uses the 0x7450 device ID, and
this code would do the wrong thing with it.

I think we should change that "||" to "&&".  That will fix your
message and avoid any conflicts with non-AMD devices.  It's possible
that it will break shpchp on some non-7450 AMD bridges, but we'll just
have to deal with those as we discover them.

I cc'd a couple AMD folks in case they have comments [see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638863].
--
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