From: Shiwu Zhang Date: Tue, 6 Jan 2026 08:50:01 +0000 (+0800) Subject: drm/amdgpu: use the ASP command for partition switch X-Git-Tag: v7.2-rc1~141^2~24^2~96 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ff6ffeb5740a8826f058f08b67787e81a5de404b;p=thirdparty%2Flinux.git drm/amdgpu: use the ASP command for partition switch Pass the compute partition mode to ASP. v2: Squash fixes (Alex) Reviewed-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Shiwu Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c b/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c index 8e33ffcdfa4cc..fe20cf2b94545 100644 --- a/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c @@ -140,16 +140,12 @@ static int imu_v12_1_switch_compute_partition(struct amdgpu_device *adev, int ret; if (adev->psp.funcs) { - /*TODO: revisit asp interface once it's avaialble */ - ret = psp_spatial_partition(&adev->psp, - NUM_XCC(adev->gfx.xcc_mask) / - num_xccs_per_xcp); + ret = psp_spatial_partition(&adev->psp, compute_partition_mode); if (ret) return ret; } adev->gfx.num_xcc_per_xcp = num_xccs_per_xcp; - return 0; }