drm/amdgpu: cleanup CS init/fini and pass1
authorChristian König <christian.koenig@amd.com>
Wed, 7 Sep 2022 09:37:06 +0000 (11:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:33:01 +0000 (14:33 -0400)
commit88c98d54b220dfec0b8e4a4400f6822aea5a383d
treefc70d710e41496a179358fc5a6e375ae25b928d6
parent4247084057cffcd8f9897110d8d827d550858dc6
drm/amdgpu: cleanup CS init/fini and pass1

Cleanup the coding style and function names to represent the data
they process. Only initialize and cleanup the CS structure in
init/fini.

Check the size of the IB chunk in pass1.

v2: fix job initialisation order and use correct scheduler instance
v3: try to move all functional changes into a separate patch.
v4: move reordering and pass2 out of this patch as well

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