drm/panfrost: Add support for devcoredump
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Fri, 29 Jul 2022 14:46:10 +0000 (15:46 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 8 Aug 2022 11:39:55 +0000 (12:39 +0100)
commit730c2bf4ad395acf0aa0820535fdb8ea6abe5df1
treec21c905d62e8d187250263be9e710152bf4dd74a
parent6a3aaa2bc03ea7ecb93741d2f55aa9064e95d528
drm/panfrost: Add support for devcoredump

In the event of a job timeout, debug dump information will be written into
/sys/class/devcoredump.

Inspired by etnaviv's similar feature.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220729144610.2105223-3-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/Kconfig
drivers/gpu/drm/panfrost/Makefile
drivers/gpu/drm/panfrost/panfrost_dump.c [new file with mode: 0644]
drivers/gpu/drm/panfrost/panfrost_dump.h [new file with mode: 0644]
drivers/gpu/drm/panfrost/panfrost_job.c
include/uapi/drm/panfrost_drm.h