From: Dave Airlie Date: Sun, 2 Nov 2008 23:51:57 +0000 (+1000) Subject: radeon: disable AGP for certain chips if not specified until we figure it out X-Git-Tag: submit/1.0/20121108.012404~642^2~20^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b9a7d5381534122858dc6e407794e8cd5c04d3e;p=profile%2Fivi%2Flibdrm.git radeon: disable AGP for certain chips if not specified until we figure it out --- diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index 1c187b1..7191478 100644 --- a/shared-core/radeon_cp.c +++ b/shared-core/radeon_cp.c @@ -2669,9 +2669,16 @@ int radeon_driver_load(struct drm_device *dev, unsigned long flags) DRM_DEBUG("%s card detected\n", ((dev_priv->flags & RADEON_IS_AGP) ? "AGP" : (((dev_priv->flags & RADEON_IS_PCIE) ? "PCIE" : "PCI")))); - if ((dev_priv->flags & RADEON_IS_AGP) && (radeon_agpmode == -1)) { - DRM_INFO("Forcing AGP to PCI mode\n"); - dev_priv->flags &= ~RADEON_IS_AGP; + if (dev_priv->flags & RADEON_IS_AGP) { + + /* disable AGP for any chips after RV280 if not specified */ + if ((dev_priv->chip_family > CHIP_RV280) && (radeon_agpmode == 0)) + radeon_agpmode = -1; + + if (radeon_agpmode == -1) { + DRM_INFO("Forcing AGP to PCI mode\n"); + dev_priv->flags &= ~RADEON_IS_AGP; + } }