From aed803f742db28d900adf775bae65f39d6c0c251 Mon Sep 17 00:00:00 2001 From: Kevin Brace Date: Wed, 23 Mar 2016 17:46:56 -0700 Subject: [PATCH] Fix VIA Technologies DRM AGP detection error message Limit AGP detection to VIA Technologies UniChrome IGP to avoid DRM error message, "[drm:via_driver_load [via]] *ERROR* Failed acquiring AGP device." Chrome9 IGP will display this error message since it is a PCI Express device. Verified this fix on P4M890, VX800, and VX900 chipsets. Signed-off-by: Haung, Ran Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c index aee3a0c..f4562d8 100644 --- a/drivers/gpu/drm/via/via_drv.c +++ b/drivers/gpu/drm/via/via_drv.c @@ -349,7 +349,7 @@ via_driver_load(struct drm_device *dev, unsigned long chipset) chip_revision_info(dev); #if __OS_HAS_AGP - if ((dev_priv->engine_type > VIA_ENG_H2) || + if ((dev_priv->engine_type <= VIA_ENG_H2) || (dev->agp && drm_pci_device_is_agp(dev))) { ret = via_detect_agp(dev); if (!ret) -- 1.7.9.5