[PATCH] drm/radeon: fix UVD 256MB check

Alex Deucher alexdeucher at gmail.com
Fri Dec 20 09:10:49 PST 2013


On Fri, Dec 20, 2013 at 11:48 AM, Christian König
<deathsimple at vodafone.de> wrote:
> From: Christian König <christian.koenig at amd.com>
>
> Otherwise the kernel might reject our decoding requests.

Applied to my fixes tree.

>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> Cc: stable at vger.kernel.org
> ---
>  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 373d088..b9c0529 100644
> --- a/drivers/gpu/drm/radeon/radeon_uvd.c
> +++ b/drivers/gpu/drm/radeon/radeon_uvd.c
> @@ -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
>


More information about the dri-devel mailing list