]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Rework page table flushing and runtime PM interaction
authorRob Herring <robh@kernel.org>
Mon, 26 Aug 2019 22:33:13 +0000 (17:33 -0500)
committerRob Herring <robh@kernel.org>
Fri, 30 Aug 2019 14:53:07 +0000 (09:53 -0500)
commit22458244e31c01f93868c7fdd32b6f5e8024b419
tree5554c87507fdb841bbb2e5de6bdef5a143dc5f0c
parent692640dd76b2e89a85e6c829a897c6dd1cceef42
drm/panfrost: Rework page table flushing and runtime PM interaction

There is no point in resuming the h/w just to do flush operations and
doing so takes several locks which cause lockdep issues with the shrinker.
Rework the flush operations to only happen when the h/w is already awake.
This avoids taking any locks associated with resuming which trigger
lockdep warnings.

Fixes: 9fbf9ddf49d3 ("drm/panfrost: Add madvise and shrinker support")
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190826223317.28509-5-robh@kernel.org
drivers/gpu/drm/panfrost/panfrost_mmu.c