drm/radeon/kms: fix a regression on r7xx AGP due to the HDP flush fix
Subsystems (2)
PATCH 1/1 drm/radeon/kms: fix a regression on r7xx AGP due to the HDP flush fix
commit: 812d046915f48236657f02c06d7dc47140e9ceda drm/radeon/kms/r7xx: add workaround for hw issue with HDP flush breaks on AGP boards since there is no VRAM gart table.
This patch fixes the issue by creating a VRAM scratch page so that can be used on both AGP and PCIE.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=29834
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/r600.c | 2 +- drivers/gpu/drm/radeon/radeon.h | 6 ++++ drivers/gpu/drm/radeon/rv770.c | 52 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/r600.c +1 -1
@@ -3541,7 +3541,7 @@ void r600_ioctl_wait_idle(struct radeon_device *rdev, struct radeon_bo *bo)* rather than write to HDP_REG_COHERENCY_FLUSH_CNTL */ if ((rdev->family >=CHIP_RV770 ) && (rdev->family <=CHIP_RV740 )) { -void __iomem *ptr = (void *)rdev->gart.table.vram.ptr; +void __iomem *ptr = (void *)rdev->vram_scratch.ptr;u32 tmp;WREG32 (HDP_DEBUG1 ,0 );
drivers/gpu/drm/radeon/radeon.h +6 -0
@@ -1013,6 +1013,11 @@ int radeon_gem_set_tiling_ioctl(struct drm_device *dev, void *data,int radeon_gem_get_tiling_ioctl (struct drm_device *dev,void *data,struct drm_file *filp); +/* VRAM scratch page for HDP bug */ +struct r700_vram_scratch { +struct radeon_bo *robj; +volatile uint32_t *ptr; +};/* * Core structure, functions and helpers.
@@ -1079,6 +1084,7 @@ struct radeon_device {const struct firmware *pfp_fw;/* r6/700 PFP firmware */ const struct firmware *rlc_fw;/* r6/700 RLC firmware */ struct r600_blit r600_blit; +struct r700_vram_scratch vram_scratch;int msi_enabled;/* msi enabled */ struct r600_ih ih;/* r6/700 interrupt ring */ struct workqueue_struct *wq;
drivers/gpu/drm/radeon/rv770.c +52 -0
70 lines not on this page · raw message
Signature · 1 line
1.7.1.1