]> 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)
commit12b177feb0df5d87b93f1f081e281c1a3edab447
tree5554c87507fdb841bbb2e5de6bdef5a143dc5f0c
parent5a0a00c7c8f3e668aaf39daaef2eb13df51426c8
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: 30baf6fe10cf ("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