[PATCH v5 1/2] drm/loongson: Introduce component framework support
Markus Elfring
Markus.Elfring at web.de
Mon Jul 29 06:15:12 UTC 2024
…
> +++ 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
More information about the dri-devel
mailing list