drm/amdgpu: cleanup CS pass2 v6
authorChristian König <christian.koenig@amd.com>
Thu, 24 Feb 2022 09:22:16 +0000 (10:22 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:18:09 +0000 (15:18 -0400)
commitf4b92fcd740d7c90eb7b011f22deab6192ffe44c
tree196c2ab6d41779d823bd3807d5c34c32f18d2e06
parenta6ad27cec585fe715b95fcc930cbc460c678080f
drm/amdgpu: cleanup CS pass2 v6

Cleanup the coding style and function names to represent the data
they process for pass2 as well.

Go over the chunks only twice now instead of multiple times.

v2: fix job initialisation order and use correct scheduler instance
v3: try to move all functional changes into a separate patch.
v4: separate reordering, pass1 and pass2 change
v5: fix va_start calculation
v6: fix user fence check

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c