On Fri, Feb 14, 2020 at 10:57 AM Sasha Levin <[email protected]> wrote: > > From: "Pan, Xinhui" <[email protected]> > > [ Upstream commit bd0522112332663e386df1b8642052463ea9b3b9 ] > > Initialize notifier_lock. > > Bug: https://gitlab.freedesktop.org/drm/amd/issues/1016 > Reviewed-by: Feifei Xu <[email protected]> > Reviewed-by: Christian König <[email protected]> > Signed-off-by: xinhui pan <[email protected]> > Signed-off-by: Alex Deucher <[email protected]> > Signed-off-by: Sasha Levin <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > index 332b9c24a2cd0..a2f788ad7e1c6 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > @@ -2797,6 +2797,7 @@ int amdgpu_device_init(struct amdgpu_device *adev, > mutex_init(&adev->notifier_lock); > mutex_init(&adev->virt.dpm_mutex); > mutex_init(&adev->psp.mutex); > + mutex_init(&adev->notifier_lock); >
This patch is not relevant here. The same mutex is already initialized 3 lines above. Alex > r = amdgpu_device_check_arguments(adev); > if (r) > -- > 2.20.1 > > _______________________________________________ > amd-gfx mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
