Skip to content

drm/panfrost: Fix UAPI for C++/BSD compatibility

Steven Price dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/panfrost: Remove type name from internal structsinclude/uapi/drm/panfrost_drm.h+2 -20 replies
2/2drm/panfrost: replace endian-specific types with native onesdrivers/gpu/drm/panfrost/panfrost_dump.c include/uapi/drm/panfrost_drm.h+38 -340 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlyssa Rosenzweig
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] drm/panfrost: Fix UAPI for C++/BSD compatibility

The Panfrost DRM interface to user space is uesd in Mesa for targets other than C/Linux. Specifically the header file needs to compile in C++ code and for FreeBSD which shares the same UABI.

The first patch fixes the C++ compilation issue by removing the (unnecessary) type name from internal structs which is invalid in C++.

The second patch technically changes the UABI by changing the header values in the dump format to be native endian rather than fixed little-endian. Since (a) there are no known big-endian Mali systems, and
(b) this has only appeared in -rc1, this shouldn't break user space. Tools can use the 'magic' field to identify the endianness of the dump if they want to support big-endian.

This is effectively a 'v2' of Adrián's series here [1].

[1] https://lore.kernel.org/r/20220920211545.1017355-1-adrian.larumbe%40collabora.com

Steven Price (2):
drm/panfrost: Remove type name from internal structs drm/panfrost: replace endian-specific types with native ones

 drivers/gpu/drm/panfrost/panfrost_dump.c | 36 ++++++++++++------------
 include/uapi/drm/panfrost_drm.h          | 36 +++++++++++++-----------
 2 files changed, 38 insertions(+), 34 deletions(-)
Signature · 1 line
2.34.1