drm/panfrost: perfcnt: Reserve/use the AS attached to the perfcnt MMU context
commitdde2bb2da01e96c17f0a44b4a3cf72a30e66e3ef
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 6 Feb 2020 14:13:27 +0000 (6 15:13 +0100)
committerRob Herring <robh@kernel.org>
Wed, 12 Feb 2020 20:27:29 +0000 (12 14:27 -0600)
tree6238a4f5c71a2e81bd2adec0e5a67e2bcffc30d4
parentfe154a2422333c4cd87bb0d8a19fb2df066cc6ee
drm/panfrost: perfcnt: Reserve/use the AS attached to the perfcnt MMU context

We need to use the AS attached to the opened FD when dumping counters.

Reported-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Fixes: 7282f7645d06 ("drm/panfrost: Implement per FD address spaces")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Tested-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200206141327.446127-1-boris.brezillon@collabora.com
drivers/gpu/drm/panfrost/panfrost_mmu.c
drivers/gpu/drm/panfrost/panfrost_perfcnt.c