i7core_edac: Properly discover the first QPI device
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 30 Jun 2010 04:41:35 +0000 (01:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 2 Jul 2010 21:04:05 +0000 (18:04 -0300)
commitbda142890e6bdd9b1115715e50b0276ea4b9978a
tree41b885fc4e9bb14eb7f7c57d93318acd2cdb4453
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02
i7core_edac: Properly discover the first QPI device

On Nehalem/Nehalem-EP/Westmere, the first QPI device is the last PCI bus.
The last bus is generally at 0x3f or 0xff, but there are also other systems
using different setups. For example, HP Z800 has 0x7f as the last bus.

This patch adds a logic to discover the last bus, dynamically detecting it
at runtime.

Acked-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c