[PATCH 2/8] drm/radeon: fix VA overlap check

Jerome Glisse j.glisse at gmail.com
Tue Sep 11 09:14:55 PDT 2012


On Tue, Sep 11, 2012 at 10:09 AM, Christian König
<deathsimple at vodafone.de> wrote:
> Signed-off-by: Christian König <deathsimple at vodafone.de>

Reviewed-by: Jerome Glisse <jglisse at redhat.com>

> ---
>  drivers/gpu/drm/radeon/radeon_gart.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
> index 614e31a..5694421 100644
> --- a/drivers/gpu/drm/radeon/radeon_gart.c
> +++ b/drivers/gpu/drm/radeon/radeon_gart.c
> @@ -736,7 +736,7 @@ int radeon_vm_bo_add(struct radeon_device *rdev,
>                         /* bo can be added before this one */
>                         break;
>                 }
> -               if (bo_va->soffset >= tmp->soffset && bo_va->soffset < tmp->eoffset) {
> +               if (bo_va->eoffset > tmp->soffset && bo_va->soffset < tmp->eoffset) {
>                         /* bo and tmp overlap, invalid offset */
>                         dev_err(rdev->dev, "bo %p va 0x%08X conflict with (bo %p 0x%08X 0x%08X)\n",
>                                 bo, (unsigned)bo_va->soffset, tmp->bo,
> --
> 1.7.9.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list