On 10/12/26 11:24, Sunil Khatri wrote: > Set vm_manager.spm_vmid to the top GFXHUB VMID so the SPM reservation > path hands out a fixed, isolated VMID on gfx7 instead of borrowing one > from the graphics pool. > > Signed-off-by: Sunil Khatri <[email protected]>
Patches #4-#9 are Reviewed-by: Christian König <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c > b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c > index 4199300eab177..c09f5153679ea 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c > @@ -1008,6 +1008,10 @@ static int gmc_v7_0_sw_init(struct amdgpu_ip_block > *ip_block) > * amdkfd/MES user queues will use VMIDs 8-15 > */ > vmid_mask = GENMASK(7, 1); > + > + /* Reserve the last VMID for SPM */ > + adev->vm_manager.spm_vmid = AMDGPU_NUM_VMID - 1; > + > amdgpu_vmid_mgr_set_vmid_mask(adev, vmid_mask, vmid_mask); > amdgpu_vm_manager_init(adev); >
