[PATCH] drm/amdgpu: move cs dependencies front a bit
Christian König
ckoenig.leichtzumerken at gmail.com
Tue Sep 11 09:27:21 UTC 2018
Am 11.09.2018 um 11:24 schrieb Chunming Zhou:
> cs dependencies handling doesn't need in vm resv
>
> Signed-off-by: Chunming Zhou <david1.zhou at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> index 57550c7d77d9..5b174b2bdd2f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> @@ -1353,6 +1353,12 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
> if (r)
> goto out;
>
> + r = amdgpu_cs_dependencies(adev, &parser);
> + if (r) {
> + DRM_ERROR("Failed in the dependencies handling %d!\n", r);
> + goto out;
> + }
> +
> r = amdgpu_cs_parser_bos(&parser, data);
> if (r) {
> if (r == -ENOMEM)
> @@ -1364,12 +1370,6 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
>
> reserved_buffers = true;
>
> - r = amdgpu_cs_dependencies(adev, &parser);
> - if (r) {
> - DRM_ERROR("Failed in the dependencies handling %d!\n", r);
> - goto out;
> - }
> -
> for (i = 0; i < parser.job->num_ibs; i++)
> trace_amdgpu_cs(&parser, i);
>
More information about the amd-gfx
mailing list