Re: git: 863fe7ae5152 - main - LinuxKPI: re-implement pm_runtime.h

From: Mark Johnston <markj_at_freebsd.org>
Date: Mon, 19 Oct 2026 16:44:55 UTC
On Sat, Oct 10, 2026 at 06:29:02PM +0000, Bjoern A. Zeeb wrote:
> The branch main has been updated by bz:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=863fe7ae5152926fab0380a78ba26b6ba4a2d65f
> 
> commit 863fe7ae5152926fab0380a78ba26b6ba4a2d65f
> Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
> AuthorDate: 2026-07-11 14:36:06 +0000
> Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
> CommitDate: 2026-10-10 18:28:32 +0000
> 
>     LinuxKPI: re-implement pm_runtime.h
>     
>     The original implementation was based on OpenBSD under public domain
>     but just defined the functions to void.
>     FreeBSD later extended the file with more inline functions or dealing
>     with differences in Linux versions.
>     
>     This rework tries to group some functions, adds properly typed arguments
>     and return values in some cases.
>     It further adjusts return values based on the !CONFIG_PM expectations.
>     
>     Lastly pr_debug() calls are added so we could see if/how much these
>     functions are used in new/other works rather than code just compiling
>     but the functions entirely being ignored without the knowledge of the
>     person porting code.
>     
>     Sponsored by:   The FreeBSD Foundation
>     MFC after:      3 days
>     Reviewed by:    dumbbell
>     Differential Revision: https://reviews.freebsd.org/D58169

This commit makes Xorg+i915 unusable for me.  All text on my desktop is
corrupted.

I traced this down to the change to pm_runtime_get_if_active(): if it
goes back to returning 1, then the problem goes away.