]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit357e2fef8354860e47a37d9ce205ef7737b4e7ea
tree952fe4b5db4fcf193e13f3995c5c77593a12f172
parent9561f07c45e19b9f7c5cbb8eb4ad1e12244e5ff5
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: 3632e1f26296 ("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