mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 00:10:12 +01:00
xf86/platform: scan pci after probing devices
This solves a race if we are trying to dynamically power off secondary GPUs. Its not the greatest fix ever but it probably as good as we can do for now. The GPU probing causes the devices to be powered up, then when we scan the PCI bus we get the correct information from the kernel, rather than a bunch of 0xff due to the device being powered off. drop gratuitous '&'. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
22746df15b
commit
10672a5abe
1 changed files with 2 additions and 1 deletions
|
|
@ -213,11 +213,12 @@ xf86platformProbe(void)
|
|||
int i;
|
||||
Bool pci = TRUE;
|
||||
|
||||
config_odev_probe(xf86PlatformDeviceProbe);
|
||||
|
||||
if (!xf86scanpci()) {
|
||||
pci = FALSE;
|
||||
}
|
||||
|
||||
config_odev_probe(&xf86PlatformDeviceProbe);
|
||||
for (i = 0; i < xf86_num_platform_devices; i++) {
|
||||
char *busid = xf86_get_platform_attrib(i, ODEV_ATTRIB_BUSID);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue