diff options
| author | Hawking Zhang <[email protected]> | 2025-06-16 09:07:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-06-24 14:03:41 +0000 |
| commit | 4dbc17b45532968c1baa5c5af4625eea5ee55150 (patch) | |
| tree | 963bc058a290b4fc12c869f7cea402e9dc239ee3 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amdgpu: Convert select_sched into a common helper v3 (diff) | |
| download | kernel-4dbc17b45532968c1baa5c5af4625eea5ee55150.tar.gz kernel-4dbc17b45532968c1baa5c5af4625eea5ee55150.zip | |
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 <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 94db61c75fff..36b3893bfbd6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3012,7 +3012,8 @@ static int amdgpu_device_init_schedulers(struct amdgpu_device *adev) } } - amdgpu_xcp_update_partition_sched_list(adev); + if (adev->xcp_mgr) + amdgpu_xcp_update_partition_sched_list(adev); return 0; } |
