drm/amdgpu: Convert update_partition_sched_list into a common helper v3
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 16 Jun 2025 09:07:26 +0000 (17:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 14:03:41 +0000 (10:03 -0400)
commit4dbc17b45532968c1baa5c5af4625eea5ee55150
tree963bc058a290b4fc12c869f7cea402e9dc239ee3
parentbf587417ffb5ed86b07b65ca9f928915477273c0
drm/amdgpu: Convert update_partition_sched_list into a common helper v3

The update_partition_sched_list function does not
need to remain as a soc specific callback. It can
be reused for future products.

v2: bypass the function if xcp_mgr is not available (Likun)

v3: Let caller check the availability of xcp_mgr (Lijo)

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c