]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: replace endian-specific types with native ones
authorSteven Price <steven.price@arm.com>
Mon, 17 Oct 2022 10:46:02 +0000 (11:46 +0100)
committerSteven Price <steven.price@arm.com>
Thu, 20 Oct 2022 10:02:11 +0000 (11:02 +0100)
commit8029a928bc44570c874baaa6324341f3218f6516
tree403f3899ce1cfd8bea438ca4e145f0e1eedeeba3
parentd7674fa1c1c57a8b0e200256d5e0bb93a3daf18f
drm/panfrost: replace endian-specific types with native ones

__le32 and __le64 types aren't portable and are not available on
FreeBSD (which uses the same uAPI).

Instead of attempting to always output little endian, just use native
endianness in the dumps. Tools can detect the endianness in use by
looking at the 'magic' field, but equally we don't expect big-endian to
be used with Mali (there are no known implementations out there).

Bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7252
Fixes: 81b828bfee4b ("drm/panfrost: Add support for devcoredump")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221017104602.142992-3-steven.price@arm.com
drivers/gpu/drm/panfrost/panfrost_dump.c
include/uapi/drm/panfrost_drm.h