diff options
author | 2022-08-15 17:19:11 -0400 | |
---|---|---|
committer | 2023-06-09 09:59:35 -0400 | |
commit | d425c6f48b189f0a5a7c7d26980fd7a2114fb35d (patch) | |
tree | ddf3e38e41d1480a9953b623035b79fbb4670111 /drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | |
parent | drm/amdgpu: update header to support partition scheduling (diff) | |
download | linux-d425c6f48b189f0a5a7c7d26980fd7a2114fb35d.tar.gz linux-d425c6f48b189f0a5a7c7d26980fd7a2114fb35d.tar.bz2 linux-d425c6f48b189f0a5a7c7d26980fd7a2114fb35d.zip |
drm/amdgpu: add partition scheduler list update
Add partition scheduler list update in late init
and xcp partition mode switch.
Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c index 9b627a8b1d5c..78fce5aab218 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c @@ -118,6 +118,7 @@ static void __amdgpu_xcp_add_block(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode) { + struct amdgpu_device *adev = xcp_mgr->adev; struct amdgpu_xcp_ip ip; uint8_t mem_id; int i, j, ret; @@ -153,6 +154,7 @@ int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode) } xcp_mgr->num_xcps = num_xcps; + amdgpu_xcp_update_partition_sched_list(adev); return 0; } |