From: Alyssa Rosenzweig <alyssa@collabora.com>
To: Steven Price <steven.price@arm.com>
Cc: Adri??n Larumbe <adrian.larumbe@collabora.com>,
alyssa.rosenzweig@collabora.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/panfrost: Give name to anonymous coredump object union
Date: Tue, 20 Sep 2022 10:58:08 -0400 [thread overview]
Message-ID: <YynVAAaQPIPhuN55@maud> (raw)
In-Reply-To: <4dad1be9-fd0c-a745-a3a5-91f12c1d97d2@arm.com>
On Tue, Sep 20, 2022 at 02:26:52PM +0100, Steven Price wrote:
> On 19/09/2022 07:44, Adri??n Larumbe wrote:
> > Hi Steven,
> >
> > On 13.09.2022 09:45, Steven Price wrote:
> >> On 12/09/2022 17:44, Adri??n Larumbe wrote:
> >>> Building Mesa's Perfetto requires including the panfrost drm uAPI header in
> >>> C++ code, but the C++ compiler requires anonymous unions to have only
> >>> public non-static data members.
> >>>
> >>> Commit 730c2bf4ad39 ("drm/panfrost: Add support for devcoredump")
> >>> introduces one such union, breaking the Mesa build.
> >>>
> >>> Give it a name, and also rename pan_reg_hdr structure because it will
> >>> always be prefixed by the union name.
> >>>
> >>> Bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7195
> >>>
> >>> Signed-off-by: Adri??n Larumbe <adrian.larumbe@collabora.com>
> >
> >> Ouch! It's frustrating how C++ isn't quite a superset of C. However I
> >> think we can solve this with a simpler patch, I'd appreciate testing
> >> that this does indeed fix the build issues with Mesa with all supported
> >> compilers (I'm not so familiar with C++):
> >
> > I just tested your changes on Mesa and they do fix the build.
>
> Thanks Adri??n!
>
> Alyssa: Could you give your R-b if you're happy with this change? It
> would be good to get this fixed before it hits -rc1.
R-b, however the issue isn't totally gone: in a separate but related
issue, apparently the __le types aren't portable and the devcoredump
support has now broken the panfrost (mesa) build for FreeBSD, which has
a UAPI-compatible reimplementation of panfrost.ko ...
Do we maybe want to change all the __le to u at the same time? If we
have to break UAPI, better do it before the UAPI is actually merged.
Panfrost is probably broken in far worse ways on big endian anyway. Or
maybe we want to keep doing little-endian but in u32 containers and have
conversions in the kernel for big-endian CPUs. Or maybe we want to just
"we don't care about big endian, because you'll have worse problems", at
a GPU level Mali hasn't supported big endian since Midgard so I doubt
the recent DDKs would work on BE either.
Anyway, ideally we'd solve both at once, and soon, so we don't have to
revert the devcoredump stuff from mesa.
Thanks,
Alyssa
next prev parent reply other threads:[~2022-09-20 14:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-12 16:44 [PATCH] drm/panfrost: Give name to anonymous coredump object union Adrián Larumbe
2022-09-12 22:59 ` Alyssa Rosenzweig
2022-09-13 8:45 ` Steven Price
2022-09-19 6:44 ` Adrián Larumbe
2022-09-20 13:26 ` Steven Price
2022-09-20 14:58 ` Alyssa Rosenzweig [this message]
2022-09-20 21:15 ` [PATCH 1/2] drm/panfrost: Remove type name from internal structs Adrián Larumbe
2022-09-20 21:15 ` [PATCH 2/2] drm/panfrost: replace endian-specific types with generic ones Adrián Larumbe
2022-09-20 22:13 ` Alyssa Rosenzweig
2022-09-21 8:48 ` Steven Price
2022-09-21 9:55 ` Robin Murphy
2022-09-21 12:26 ` Alyssa Rosenzweig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YynVAAaQPIPhuN55@maud \
--to=alyssa@collabora.com \
--cc=adrian.larumbe@collabora.com \
--cc=alyssa.rosenzweig@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=steven.price@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.