]> 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)
commit1fce39aa42b9564427f7116d39b9e861c3409fc7
tree403f3899ce1cfd8bea438ca4e145f0e1eedeeba3
parent99cafce6daa02469ce6e79d10e3fa0f51bfa65d8
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: d9bceec707c5 ("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