[PATCH 1/3] drm/radeon: return an error if there is nothing to wait for

Alex Deucher alexdeucher at gmail.com
Tue Jul 17 06:10:42 PDT 2012


On Tue, Jul 17, 2012 at 5:42 AM, Christian König
<deathsimple at vodafone.de> wrote:
> Otherwise the sa managers out of memory
> handling doesn't work.
>
> Signed-off-by: Christian König <deathsimple at vodafone.de>

For the series:

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/radeon/radeon_fence.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c
> index 76c5b22..7a181c3 100644
> --- a/drivers/gpu/drm/radeon/radeon_fence.c
> +++ b/drivers/gpu/drm/radeon/radeon_fence.c
> @@ -331,7 +331,7 @@ static int radeon_fence_wait_any_seq(struct radeon_device *rdev,
>
>         /* nothing to wait for ? */
>         if (ring == RADEON_NUM_RINGS) {
> -               return 0;
> +               return -ENOENT;
>         }
>
>         while (!radeon_fence_any_seq_signaled(rdev, target_seq)) {
> --
> 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