drm/gma500: Move GTT locking into GTT helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 8 Mar 2022 19:52:13 +0000 (20:52 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 16 Mar 2022 16:42:18 +0000 (17:42 +0100)
commit14e92dd104cde77db5612b111baf2f41f1eba127
treef62c5d64a05adeeb9f21a939cad374bf982d226e
parent16dad99de8f2abfcec9836e2031613a713e339d2
drm/gma500: Move GTT locking into GTT helpers

Acquire the GTT mutex in psb_gtt_{insert,remove}_pages(). Remove
locking from callers. Also remove the GTT locking around the resume
code. Resume does not run concurrently with other GTT operations.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220308195222.13471-4-tzimmermann@suse.de
drivers/gpu/drm/gma500/gem.c
drivers/gpu/drm/gma500/gtt.c