Public > -----Original Message----- > From: Sunil Khatri <[email protected]> > Sent: Monday, October 5, 2026 8:56 AM > To: Deucher, Alexander <[email protected]>; Koenig, Christian > <[email protected]>; Joshi, Mukul <[email protected]> > Cc: [email protected]; Khatri, Sunil <[email protected]> > Subject: [PATCH v1] drm/amdgpu: exclude npa_vmid from the userq vmids > too > > On IP_VERSION(12, 1, 0), we are excluding vmid 15 from the available vmids > in kernel queues for mmhub but its not exluded from the userqueues mmhub > vmids and it is a problem. >
In practice it's not a problem because all of the queues MES manages are connected to GFXHUB so we wouldn't get a conflict, but still worth fixing. Reviewed-by: Alex Deucher <[email protected]> > Signed-off-by: Sunil Khatri <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c > b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c > index ab707b1c7867c..fcc1d580fa946 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c > @@ -1014,6 +1014,9 @@ static int gmc_v12_0_sw_init(struct > amdgpu_ip_block *ip_block) > > amdgpu_vm_manager_init(adev); > > + if (adev->vm_manager.npa_vmid) > + adev->vm_manager.vmid_uq_mask_mmhub &= > +~BIT(adev->vm_manager.npa_vmid); > + > r = amdgpu_gmc_ras_sw_init(adev); > if (r) > return r; > -- > 2.34.1
