[PATCH] drm/radeon: fix "force the UVD DPB into VRAM as well"

Christian König deathsimple at vodafone.de
Thu May 18 12:24:01 UTC 2017


From: Christian König <christian.koenig at amd.com>

The DPB must be in VRAM, but not in the first segment.

Signed-off-by: Christian König <christian.koenig at amd.com>
Tested-by: Arthur Marsh <arthur.marsh at internode.on.net>
---
 drivers/gpu/drm/radeon/radeon_uvd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c
index fad4a11..0cd0e7b 100644
--- a/drivers/gpu/drm/radeon/radeon_uvd.c
+++ b/drivers/gpu/drm/radeon/radeon_uvd.c
@@ -621,7 +621,7 @@ static int radeon_uvd_cs_reloc(struct radeon_cs_parser *p,
 	}
 
 	/* TODO: is this still necessary on NI+ ? */
-	if ((cmd == 0 || cmd == 1 || cmd == 0x3) &&
+	if ((cmd == 0 || cmd == 0x3) &&
 	    (start >> 28) != (p->rdev->uvd.gpu_addr >> 28)) {
 		DRM_ERROR("msg/fb buffer %LX-%LX out of 256MB segment!\n",
 			  start, end);
-- 
2.7.4



More information about the amd-gfx mailing list