[PATCH] xf86: don't add gpus from udev if autoAddGPU is set
Hans de Goede
hdegoede at redhat.com
Mon Sep 14 05:11:20 PDT 2015
Hi,
On 12-09-15 23:45, Dave Airlie wrote:
> At startup the server wasn't adding devices, but nothing
> was blocking hotplug devices by the look of it.
>
> bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91388
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Makes sense, and this also seems the right place to it:
Reviewed-by: Hans de Goede <hdegoede at redhat.com>
Regards,
Hans
> ---
> hw/xfree86/common/xf86platformBus.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
> index f1e9423..96895a6 100644
> --- a/hw/xfree86/common/xf86platformBus.c
> +++ b/hw/xfree86/common/xf86platformBus.c
> @@ -477,6 +477,9 @@ xf86platformAddDevice(int index)
> screenLayoutPtr layout;
> static const char *hotplug_driver_name = "modesetting";
>
> + if (!xf86Info.autoAddGPU)
> + return -1;
> +
> /* force load the driver for now */
> xf86LoadOneModule(hotplug_driver_name, NULL);
>
>
More information about the xorg-devel
mailing list