]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/a6xx: Track current ctx by seqno
authorRob Clark <robdclark@chromium.org>
Thu, 30 Sep 2021 17:43:20 +0000 (10:43 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 1 Oct 2021 20:10:20 +0000 (13:10 -0700)
commitd674f1b52a22475e807694fdf36405676d79d839
tree8acd1a8f32cb4abbd00c26a1a286cf60cda46ee9
parentf6de3654d7e07c3f19bbe5023d70eb960c2c002f
drm/msm/a6xx: Track current ctx by seqno

In theory a context can be destroyed and a new one allocated at the same
address, making the pointer comparision to detect when we don't need to
update the current pagetables invalid.  Instead assign a sequence number
to each context on creation, and use this for the check.

Fixes: abf5edf4ea29 ("drm/msm/a6xx: Add support for per-instance pagetables")
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.h
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h