drm/radeon: fix UVD 256MB check
Subsystems (2)
PATCH 1/1 drm/radeon: fix UVD 256MB check
From: Christian König <[email protected]>
Otherwise the kernel might reject our decoding requests.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_uvd.c +1 -1
@@ -473,7 +473,7 @@ static int radeon_uvd_cs_reloc(struct radeon_cs_parser *p,return -EINVAL ; } -if ((start >>28 ) != (end >>28 )) { +if ((start >>28 ) != ((end -1 ) >>28 )) {DRM_ERROR ("reloc %LX-%LX crossing 256MB boundary!\n" , start, end);return -EINVAL ;
Signature · 6 lines
1.8.1.2 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 3 lines · Christian König
From: Christian König <[email protected]>
Otherwise the kernel might reject our decoding requests.
Applied to my fixes tree.
Quoted 23 lines
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_uvd.c +1
-2@@ -473,7 +473,7 @@ static int radeon_uvd_cs_reloc(struct radeon_cs_parser *p,return -EINVAL ; } -if ((start >>28 ) != (end >>28 )) { +if ((start >>28 ) != ((end -1 ) >>28 )) {DRM_ERROR ("reloc %LX-%LX crossing 256MB boundary!\n" , start, end);return -EINVAL ; --1.8.1.2