* [PATCH] docs: driver-api: firmware: clarify userspace requirements
@ 2025-03-14 10:01 Jacek Lawrynowicz
2025-03-14 12:34 ` Bagas Sanjaya
2025-03-17 22:53 ` Jonathan Corbet
0 siblings, 2 replies; 5+ messages in thread
From: Jacek Lawrynowicz @ 2025-03-14 10:01 UTC (permalink / raw)
To: corbet
Cc: linux-doc, dri-devel, linux-kernel, simona.vetter, airlied,
Jacek Lawrynowicz
The guidelines mention that firmware updates can't break the kernel,
but it doesn't state directly that they can't break userspace programs.
Make it explicit that firmware updates cannot break UAPI.
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
---
.../driver-api/firmware/firmware-usage-guidelines.rst | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/driver-api/firmware/firmware-usage-guidelines.rst b/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
index fdcfce42c6d28..5f8f13e2ee510 100644
--- a/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
+++ b/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
@@ -42,3 +42,8 @@ then of course these rules will not apply strictly.)
deprecating old major versions, then this should only be done as a
last option, and be stated clearly in all communications.
+* Firmware files that affect the User API (UAPI) shall not introduce
+ changes that break existing userspace programs. Updates to such firmware
+ must ensure backward compatibility with existing userspace applications.
+ This includes maintaining consistent interfaces and behaviors that
+ userspace programs rely on.
\ No newline at end of file
--
2.45.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: driver-api: firmware: clarify userspace requirements
2025-03-14 10:01 [PATCH] docs: driver-api: firmware: clarify userspace requirements Jacek Lawrynowicz
@ 2025-03-14 12:34 ` Bagas Sanjaya
2025-03-17 22:53 ` Jonathan Corbet
1 sibling, 0 replies; 5+ messages in thread
From: Bagas Sanjaya @ 2025-03-14 12:34 UTC (permalink / raw)
To: Jacek Lawrynowicz, corbet
Cc: linux-doc, dri-devel, linux-kernel, simona.vetter, airlied
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
On Fri, Mar 14, 2025 at 11:01:36AM +0100, Jacek Lawrynowicz wrote:
> +* Firmware files that affect the User API (UAPI) shall not introduce
> + changes that break existing userspace programs. Updates to such firmware
> + must ensure backward compatibility with existing userspace applications.
> + This includes maintaining consistent interfaces and behaviors that
> + userspace programs rely on.
Is it implied that the firmware UAPI MUST be designed to be right in the
first time (attempt) as it MUST be supported indefinitely?
Anyway, the wording LGTM.
Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: driver-api: firmware: clarify userspace requirements
2025-03-14 10:01 [PATCH] docs: driver-api: firmware: clarify userspace requirements Jacek Lawrynowicz
2025-03-14 12:34 ` Bagas Sanjaya
@ 2025-03-17 22:53 ` Jonathan Corbet
2025-03-17 22:56 ` Dave Airlie
1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2025-03-17 22:53 UTC (permalink / raw)
To: Jacek Lawrynowicz
Cc: linux-doc, dri-devel, linux-kernel, simona.vetter, airlied,
Jacek Lawrynowicz
Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> writes:
> The guidelines mention that firmware updates can't break the kernel,
> but it doesn't state directly that they can't break userspace programs.
> Make it explicit that firmware updates cannot break UAPI.
>
> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
> ---
> .../driver-api/firmware/firmware-usage-guidelines.rst | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/driver-api/firmware/firmware-usage-guidelines.rst b/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
> index fdcfce42c6d28..5f8f13e2ee510 100644
> --- a/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
> +++ b/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
> @@ -42,3 +42,8 @@ then of course these rules will not apply strictly.)
> deprecating old major versions, then this should only be done as a
> last option, and be stated clearly in all communications.
>
> +* Firmware files that affect the User API (UAPI) shall not introduce
> + changes that break existing userspace programs. Updates to such firmware
> + must ensure backward compatibility with existing userspace applications.
> + This includes maintaining consistent interfaces and behaviors that
> + userspace programs rely on.
> \ No newline at end of file
This ^^^^^^^^^^^^^^^^^^^^^^^^ is a good thing to avoid. That can be
fixed up at apply time.
Dave, you're the only one with fingerprints on this document; is the
change OK with you?
Thanks,
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: driver-api: firmware: clarify userspace requirements
2025-03-17 22:53 ` Jonathan Corbet
@ 2025-03-17 22:56 ` Dave Airlie
2025-03-17 23:06 ` Jonathan Corbet
0 siblings, 1 reply; 5+ messages in thread
From: Dave Airlie @ 2025-03-17 22:56 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Jacek Lawrynowicz, linux-doc, dri-devel, linux-kernel,
simona.vetter
On Tue, 18 Mar 2025 at 08:53, Jonathan Corbet <corbet@lwn.net> wrote:
>
> Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> writes:
>
> > The guidelines mention that firmware updates can't break the kernel,
> > but it doesn't state directly that they can't break userspace programs.
> > Make it explicit that firmware updates cannot break UAPI.
> >
> > Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
> > ---
> > .../driver-api/firmware/firmware-usage-guidelines.rst | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/Documentation/driver-api/firmware/firmware-usage-guidelines.rst b/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
> > index fdcfce42c6d28..5f8f13e2ee510 100644
> > --- a/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
> > +++ b/Documentation/driver-api/firmware/firmware-usage-guidelines.rst
> > @@ -42,3 +42,8 @@ then of course these rules will not apply strictly.)
> > deprecating old major versions, then this should only be done as a
> > last option, and be stated clearly in all communications.
> >
> > +* Firmware files that affect the User API (UAPI) shall not introduce
> > + changes that break existing userspace programs. Updates to such firmware
> > + must ensure backward compatibility with existing userspace applications.
> > + This includes maintaining consistent interfaces and behaviors that
> > + userspace programs rely on.
> > \ No newline at end of file
>
> This ^^^^^^^^^^^^^^^^^^^^^^^^ is a good thing to avoid. That can be
> fixed up at apply time.
>
> Dave, you're the only one with fingerprints on this document; is the
> change OK with you?
LGTM,
Acked-by: Dave Airlie <airlied@redhat.com>
Dave.
>
> Thanks,
>
> jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: driver-api: firmware: clarify userspace requirements
2025-03-17 22:56 ` Dave Airlie
@ 2025-03-17 23:06 ` Jonathan Corbet
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2025-03-17 23:06 UTC (permalink / raw)
To: Dave Airlie
Cc: Jacek Lawrynowicz, linux-doc, dri-devel, linux-kernel,
simona.vetter
Dave Airlie <airlied@gmail.com> writes:
>> Dave, you're the only one with fingerprints on this document; is the
>> change OK with you?
>
> LGTM,
>
> Acked-by: Dave Airlie <airlied@redhat.com>
OK, applied - thanks.
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-17 23:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14 10:01 [PATCH] docs: driver-api: firmware: clarify userspace requirements Jacek Lawrynowicz
2025-03-14 12:34 ` Bagas Sanjaya
2025-03-17 22:53 ` Jonathan Corbet
2025-03-17 22:56 ` Dave Airlie
2025-03-17 23:06 ` Jonathan Corbet
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.