[AMD Official Use Only - General] Tested-by: Candice Li <[email protected]>
Thanks, Candice -----Original Message----- From: Alex Deucher <[email protected]> Sent: Saturday, January 14, 2023 12:48 AM To: Christian König <[email protected]> Cc: [email protected]; Li, Candice <[email protected]> Subject: Re: [PATCH] drm/amdgpu: fix cleaning up reserved VMID on release On Fri, Jan 13, 2023 at 11:35 AM Christian König <[email protected]> wrote: > > We need to reset this or otherwise run into list corruption later on./ Drop the / above. Reviewed-by: Alex Deucher <[email protected]> > > Fixes: 16be3e9f6f03 ("drm/amdgpu: rework reserved VMID handling") > Signed-off-by: Christian König <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c > index 6481b43ffe25..a0545d51b6bd 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c > @@ -499,6 +499,7 @@ void amdgpu_vmid_free_reserved(struct amdgpu_device *adev, > !--id_mgr->reserved_use_count) { > /* give the reserved ID back to normal round robin */ > list_add(&id_mgr->reserved->list, &id_mgr->ids_lru); > + id_mgr->reserved = NULL; > } > vm->reserved_vmid[vmhub] = false; > mutex_unlock(&id_mgr->lock); > -- > 2.34.1 >
