diff options
author | Christian König <christian.koenig@amd.com> | 2013-12-20 17:48:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-09 12:24:22 -0800 |
commit | 85724fa134d1d059e4f38b141c65c42fca7a8d05 (patch) | |
tree | be98fce2b00407e622518ca29e984f3773abb323 /drivers/gpu/drm/radeon | |
parent | 6f02958728dec12eb99715893e057bfdad8bed90 (diff) | |
download | lwn-85724fa134d1d059e4f38b141c65c42fca7a8d05.tar.gz lwn-85724fa134d1d059e4f38b141c65c42fca7a8d05.zip |
drm/radeon: fix UVD 256MB check
commit bae651dbd7ade3c5d6518f89599ae680a2fe2b85 upstream.
Otherwise the kernel might reject our decoding requests.
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_uvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c index a809b1733e7b..21d2d5280fc1 100644 --- a/drivers/gpu/drm/radeon/radeon_uvd.c +++ b/drivers/gpu/drm/radeon/radeon_uvd.c @@ -460,7 +460,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; |