drm/amdgpu: move cs dependencies front a bit
cs dependencies handling doesn't need in vm resv Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
433ca05494
commit
7e7bf8de43
@@ -1285,6 +1285,12 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
|
|||||||
if (r)
|
if (r)
|
||||||
goto out;
|
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);
|
r = amdgpu_cs_parser_bos(&parser, data);
|
||||||
if (r) {
|
if (r) {
|
||||||
if (r == -ENOMEM)
|
if (r == -ENOMEM)
|
||||||
@@ -1296,12 +1302,6 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
|
|||||||
|
|
||||||
reserved_buffers = true;
|
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++)
|
for (i = 0; i < parser.job->num_ibs; i++)
|
||||||
trace_amdgpu_cs(&parser, i);
|
trace_amdgpu_cs(&parser, i);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user