drm/panfrost: Don't try to map on error faults
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 12 Feb 2020 20:22:36 +0000 (14:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 12:00:26 +0000 (13:00 +0100)
commit95e0c61d7f665ce184fed07ca7d91128dbddd0a1
tree0671df921ad5bcb74c084370eb4222f24bec8070
parent2ce46334cc87144d3e92d95d960d7f0745276b9f
drm/panfrost: Don't try to map on error faults

commit eb9d8ddbc107d02e489681f9dcbf93949e1a99a4 upstream.

If the exception type isn't a translation fault, don't try to map and
instead go straight to a terminal fault.

Otherwise, we can get flooded by kernel warnings and further faults.

Fixes: 187d2929206e ("drm/panfrost: Add support for GPU heap allocations")
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200212202236.13095-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/panfrost/panfrost_mmu.c