[Openchrome-devel] drm-openchrome: drivers/gpu/drm

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Mar 30 07:19:00 UTC 2016


 drivers/gpu/drm/via/via_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5fe39db5a18918b591fcfb822c3dc3e7e4072fdf
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Wed Mar 23 17:46:56 2016 -0700

    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: Huang, Ran <huangran at iscas.ac.cn>
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

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)


More information about the Openchrome-devel mailing list