OSDN Git Service

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)
committerRob Herring <robh@kernel.org>
Tue, 25 Feb 2020 20:16:04 +0000 (14:16 -0600)
commiteb9d8ddbc107d02e489681f9dcbf93949e1a99a4
tree952fe4b5db4fcf193e13f3995c5c77593a12f172
parentfbb30168c7395b9cfeb9e6f7b0c0bca854a6552d
drm/panfrost: Don't try to map on error faults

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
drivers/gpu/drm/panfrost/panfrost_mmu.c