summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-11-10 15:25:12 +1000
committerDave Airlie <airlied@redhat.com>2008-11-10 15:25:12 +1000
commit758376e6eb2155605ad502d0dc5147c74f3c47a6 (patch)
treea5961d96711920f046824eac9fc38dc7662cc359 /shared-core
parent08ef5b5e677579892a454d44a96a12dc771b56ac (diff)
radeon: disable HDP read cache for now
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_cp.c3
-rw-r--r--shared-core/radeon_drv.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c
index 73192d03..a087829e 100644
--- a/shared-core/radeon_cp.c
+++ b/shared-core/radeon_cp.c
@@ -2519,6 +2519,9 @@ int radeon_modeset_cp_init(struct drm_device *dev)
r300_init_reg_flags(dev);
+ /* turn off HDP read cache for now */
+ RADEON_WRITE(RADEON_HOST_PATH_CNTL, RADEON_READ(RADEON_HOST_PATH_CNTL) | RADEON_HP_LIN_RD_CACHE_DIS);
+
#if __OS_HAS_AGP
if (dev_priv->flags & RADEON_IS_AGP)
radeon_modeset_agp_init(dev);
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index 828ad3f9..cd683795 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -791,8 +791,10 @@ int radeon_resume(struct drm_device *dev);
# define R500_DISPLAY_INT_STATUS (1 << 0)
#define RADEON_HOST_PATH_CNTL 0x0130
-# define RADEON_HDP_SOFT_RESET (1 << 26)
# define RADEON_HDP_APER_CNTL (1 << 23)
+# define RADEON_HP_LIN_RD_CACHE_DIS (1 << 24)
+# define RADEON_HDP_SOFT_RESET (1 << 26)
+# define RADEON_HDP_READ_BUFFER_INVALIDATED (1 << 27)
#define RADEON_NB_TOM 0x15c