From 38a4e22ba9f2185a08279ed59d05c1cf70299b67 Mon Sep 17 00:00:00 2001 From: HuangRan Date: Tue, 22 Mar 2016 14:17:20 +0800 Subject: [PATCH] Fix the drm AGP detection error message issue. limit the AGP detect condition to VIA chips using DMA engine name before Chrome9 to avoid drm error message "[drm:via_driver_load [via]] *ERROR* Failed acquiring AGP device.". Verify this on old H1/H2 chip and VX800/VX900 chips. --- 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