… > +++ b/drivers/gpu/drm/loongson/loongson_drv.c > @@ -0,0 +1,298 @@ … > +static int loongson_drm_freeze(struct drm_device *ddev) > +{ … > + /* unpin all of buffers in the VRAM */ > + mutex_lock(&ldrm->gem.mutex); … > + mutex_unlock(&ldrm->gem.mutex); > + > + lsdc_bo_evict_vram(ddev); … Under which circumstances would you become interested to apply a statement like “guard(mutex)(&ldrm->gem.mutex);”? https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/mutex.h#L196 Regards, Markus