[PATCH 3/6] drm: tegra: protect DC register access with mutex
Lucas Stach
dev at lynxeye.de
Thu Dec 20 00:28:25 PST 2012
Am Donnerstag, den 20.12.2012, 10:36 +0800 schrieb Mark Zhang:
> OK, you add a mutex in a tegra_dc structure. But I think there is no
> parallel scenario while we operate on a dc. AFAIK, the functions which
> you add mutex protection are called by drm sequentially(except for
> function "tegra_crtc_load_lut" I'm not very clear about that).
>
> So could you give us an example?
>
You are right, I looked this up again. I thought cursor actions are
async to other modeset actions, but in fact they are also protected by
the mode_config.mutex. So really no need to have another mutex in our dc
code.
Sorry for the noise.
Lucas
More information about the dri-devel
mailing list