This is v5 for a previous patch series being discussed at: https://lore.kernel.org/dri-devel/20220622143616.1265405-1-adrian.larumbe@xxxxxxxxxxxxx/T/#t Mesa MR under review can be found at: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14034 Changes with respect to v4 of the same patch: - Added MMU and JS base and stride macros for range checks within panfrost_core_dump_registers - Fixed dereference-before-assignment BO pointer bug - Chose the right-sized endianness conversion function for header's valid bit Adrián Larumbe (2): drm/panfrost: Add specific register offset macros for JS and MMU AS drm/panfrost: Add support for devcoredump drivers/gpu/drm/panfrost/Kconfig | 1 + drivers/gpu/drm/panfrost/Makefile | 3 +- drivers/gpu/drm/panfrost/panfrost_dump.c | 249 +++++++++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_dump.h | 12 ++ drivers/gpu/drm/panfrost/panfrost_job.c | 3 + drivers/gpu/drm/panfrost/panfrost_regs.h | 42 ++-- include/uapi/drm/panfrost_drm.h | 47 +++++ 7 files changed, 338 insertions(+), 19 deletions(-) create mode 100644 drivers/gpu/drm/panfrost/panfrost_dump.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_dump.h -- 2.37.0