From: "Ard Biesheuvel" <ardb@kernel.org>
To: "Màxim Pedraza Padilla" <maximpedraza@gmail.com>,
"Jani Nikula" <jani.nikula@linux.intel.com>
Cc: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>,
"Francesco Valla" <francesco@valla.it>,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Javier Martinez Canillas" <javierm@redhat.com>,
"Jocelyn Falempe" <jfalempe@redhat.com>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-efi@vger.kernel.org, linux-doc@vger.kernel.org,
linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC v4 02/13] efi: bgrt: export the BGRT table and image size
Date: Fri, 02 Oct 2026 12:43:43 +0200 [thread overview]
Message-ID: <9cf259a5-6083-433c-8544-ca3f6286334e@app.fastmail.com> (raw)
In-Reply-To: <CAEUXW=GKRstrsZniQSU0un6r--a2VrRjpZCe5meUyyxunJ-E7w@mail.gmail.com>
On Fri, 2 Oct 2026, at 12:31, Màxim Pedraza Padilla wrote:
> Hi Jani,
>
> On Fri, 02 Oct 2026, Jani Nikula wrote:
>> Data is not an interface.
>>
>> If these will be used more, perhaps it would be better to wrap access to
>> them in functions? I think most of the time it will help with
>> maintenance.
>>
>> And you can add stubs for CONFIG_ACPI_BGRT=n where they belong,
>> i.e. include/linux/efi-bgrt.h instead of drm_splash.c like in patch 11
>> of this series.
>
> Agreed, and the same goes for your comment on patch 3. For v5 I would
> replace the export with accessors in efi-bgrt.c, stubbed in
> efi-bgrt.h for CONFIG_ACPI_BGRT=n:
>
> bool efi_bgrt_has_image(void);
> phys_addr_t efi_bgrt_image_address(void);
> size_t efi_bgrt_image_size(void);
> u8 efi_bgrt_status(void);
> u32 efi_bgrt_image_offset_x(void);
> u32 efi_bgrt_image_offset_y(void);
>
> The splash client then drops its own wrappers and stubs, and the
> "static inline" in drm_splash.c go as well.
>
> drivers/acpi/bgrt.c is the only other user of bgrt_tab and
> bgrt_image_size. I can move it to the accessors too, so that both
> variables become static, if that is wanted; otherwise they stay
> global for it and are no longer exported.
>
> Ard, this changes the patch you acked, so I will not carry your
> Acked-by unless the above works for you. Both variables become
> __ro_after_init either way, as you asked.
>
This sounds good to me - please cc me again on the result and
I'll take another look.
next prev parent reply other threads:[~2026-10-02 10:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 19:58 [PATCH RFC v4 00/13] Add splash DRM client Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 01/13] drm/clients: Kconfig: indent DRM_CLIENT_DEFAULT with tabs Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 02/13] efi: bgrt: export the BGRT table and image size Màxim Pedraza Padilla
2026-10-02 7:44 ` Ard Biesheuvel
2026-10-02 9:37 ` Jani Nikula
2026-10-02 10:31 ` Màxim Pedraza Padilla
2026-10-02 10:43 ` Ard Biesheuvel [this message]
2026-10-01 19:58 ` [PATCH RFC v4 03/13] drm: client: add splash client Màxim Pedraza Padilla
2026-10-02 9:41 ` Jani Nikula
2026-10-01 19:58 ` [PATCH RFC v4 04/13] MAINTAINERS: add entry for DRM " Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 05/13] drm: docs: remove bootsplash from TODO Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 06/13] dt-bindings: display: add a boot logo node under /chosen Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 07/13] drm/client: splash: add a device tree image source Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 08/13] drm/client: splash: place the device tree image where it asks Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 09/13] drm/client: splash: turn the device tree image as " Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 10/13] drm/client: splash: take the background colour from the image source Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 11/13] drm/client: splash: turn the BGRT image on panels mounted turned Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 12/13] drm/client: splash: prefer what the command line asks for Màxim Pedraza Padilla
2026-10-01 19:58 ` [PATCH RFC v4 13/13] drm/client: splash: document the image sources and parameters Màxim Pedraza Padilla
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=9cf259a5-6083-433c-8544-ca3f6286334e@app.fastmail.com \
--to=ardb@kernel.org \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=francesco@valla.it \
--cc=ilias.apalodimas@linaro.org \
--cc=jani.nikula@linux.intel.com \
--cc=javierm@redhat.com \
--cc=jfalempe@redhat.com \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mario.limonciello@amd.com \
--cc=maximpedraza@gmail.com \
--cc=mripard@kernel.org \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=sam@ravnborg.org \
--cc=simona@ffwll.ch \
--cc=skhan@linuxfoundation.org \
--cc=tzimmermann@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®