mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-05 16:35:05 +07:00
drm/amdgpu: Let KFD use more VMIDs on Arcturus
When there is no graphics support, KFD can use more of the VMIDs. Graphics VMIDs are only used for video decoding/encoding and post processing. With two VCE engines, there is no reason to reserve more than 2 VMIDs for that. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
40111ec229
commit
81659b2022
@ -1245,10 +1245,15 @@ static int gmc_v9_0_sw_init(void *handle)
|
||||
/*
|
||||
* number of VMs
|
||||
* VMID 0 is reserved for System
|
||||
* amdgpu graphics/compute will use VMIDs 1-7
|
||||
* amdkfd will use VMIDs 8-15
|
||||
* amdgpu graphics/compute will use VMIDs 1..n-1
|
||||
* amdkfd will use VMIDs n..15
|
||||
*
|
||||
* The first KFD VMID is 8 for GPUs with graphics, 3 for
|
||||
* compute-only GPUs. On compute-only GPUs that leaves 2 VMIDs
|
||||
* for video processing.
|
||||
*/
|
||||
adev->vm_manager.first_kfd_vmid = 8;
|
||||
adev->vm_manager.first_kfd_vmid =
|
||||
adev->asic_type == CHIP_ARCTURUS ? 3 : 8;
|
||||
|
||||
amdgpu_vm_manager_init(adev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user