[PATCH] Fix the drm AGP detection error message issue.

HuangRan huangran at iscas.ac.cn
Wed Mar 23 03:35:22 UTC 2016


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




More information about the dri-devel mailing list