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)
commit72655fb942c1e3d9e71e48e87ee439abe52f3a90
tree403f3899ce1cfd8bea438ca4e145f0e1eedeeba3
parent7228d9d79248bd0c8af56a7667a88a875c674e0c
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: 730c2bf4ad39 ("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