<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linuxkpi/common/include/linux/suspend.h, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>linuxkpi: Add `register_pm_notifier()` and `unregister_pm_notifier()`</title>
<updated>2026-04-22T18:09:55+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2026-04-20T22:04:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=06cfd1047da6f3cdba80da371592980a7143a7b6'/>
<id>06cfd1047da6f3cdba80da371592980a7143a7b6</id>
<content type='text'>
They are empty stub returning success for now, like the previously
defined stubs in this header.

Several constant are also defined in the process.

The amdgpu DRM driver started to use them in Linux 6.12.x.

Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56572
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
They are empty stub returning success for now, like the previously
defined stubs in this header.

Several constant are also defined in the process.

The amdgpu DRM driver started to use them in Linux 6.12.x.

Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56572
</pre>
</div>
</content>
</entry>
<entry>
<title>linuxkpi: Replicate Linux #includes between headers</title>
<updated>2026-01-05T19:32:49+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2025-08-17T11:17:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5f7a0b0fd8953c00b154d96b79ba0208c2e1aca'/>
<id>b5f7a0b0fd8953c00b154d96b79ba0208c2e1aca</id>
<content type='text'>
The DRM drivers (and probably other parts of the Linux kernel) had a
significant cleanup w.r.t. which source file includes what in Linux
6.10. Nonetheless, the DRM drivers still depend on implicit namespace
pollution because some source files do not include all the headers they
should.

This cleanup broke the build with FreeBSD because we do not replicate
the same `#include` directives everywhere.

This commit adds the same `#include` directives in several headers in
order to get the same namespace pollution.

This fixes the build of the DRM drivers from Linux 6.10. An example is
`drm_dp_tunnel.c` which needed `str_yes_no()` defined by
&lt;linux/string_helpers.h&gt; (technically &lt;linux/string_choices.h&gt; in
Linux). It gets it through:

    &lt;linux/i2c.h&gt; -&gt; &lt;linux/regulator/consumer.h&gt; -&gt; &lt;linux/suspend.h&gt; -&gt;
    &lt;linux/swap.h&gt; -&gt; &lt;linux/memcontrol.h&gt; -&gt; &lt;linux/cgroup.h&gt; -&gt;
    &lt;linux/seq_file.h&gt; -&gt; &lt;linux/string_helpers.h&gt;

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54496
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The DRM drivers (and probably other parts of the Linux kernel) had a
significant cleanup w.r.t. which source file includes what in Linux
6.10. Nonetheless, the DRM drivers still depend on implicit namespace
pollution because some source files do not include all the headers they
should.

This cleanup broke the build with FreeBSD because we do not replicate
the same `#include` directives everywhere.

This commit adds the same `#include` directives in several headers in
order to get the same namespace pollution.

This fixes the build of the DRM drivers from Linux 6.10. An example is
`drm_dp_tunnel.c` which needed `str_yes_no()` defined by
&lt;linux/string_helpers.h&gt; (technically &lt;linux/string_choices.h&gt; in
Linux). It gets it through:

    &lt;linux/i2c.h&gt; -&gt; &lt;linux/regulator/consumer.h&gt; -&gt; &lt;linux/suspend.h&gt; -&gt;
    &lt;linux/swap.h&gt; -&gt; &lt;linux/memcontrol.h&gt; -&gt; &lt;linux/cgroup.h&gt; -&gt;
    &lt;linux/seq_file.h&gt; -&gt; &lt;linux/string_helpers.h&gt;

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54496
</pre>
</div>
</content>
</entry>
<entry>
<title>linuxkpi: Add more suspend defines</title>
<updated>2023-02-17T13:50:58+00:00</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2023-02-17T13:49:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a0fdaf9a7b34b6f8fdab747f7a198158e66b57ab'/>
<id>a0fdaf9a7b34b6f8fdab747f7a198158e66b57ab</id>
<content type='text'>
Needed by drm 5.15-lts

Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Needed by drm 5.15-lts

Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG
</pre>
</div>
</content>
</entry>
<entry>
<title>linuxkpi: Use a proper declaration for pm_suspend_via_firmware.</title>
<updated>2023-01-28T03:41:35+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-01-28T03:29:39+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4d77927e2af3a991c5b07071b7fe18673d7742f2'/>
<id>4d77927e2af3a991c5b07071b7fe18673d7742f2</id>
<content type='text'>
Reported by:	GCC -Wstrict-prototypes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by:	GCC -Wstrict-prototypes
</pre>
</div>
</content>
</entry>
<entry>
<title>linuxkpi: Define `pm_suspend_target_state` in &lt;linux/suspend.h&gt;</title>
<updated>2023-01-25T21:57:21+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2023-01-20T20:13:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ccd31b464568ecf5907dbecf255edf0676124735'/>
<id>ccd31b464568ecf5907dbecf255edf0676124735</id>
<content type='text'>
It is set to `PM_SUSPEND_ON`.

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38161
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is set to `PM_SUSPEND_ON`.

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38161
</pre>
</div>
</content>
</entry>
<entry>
<title>linuxkpi: Add `pm_suspend_via_firmware()`</title>
<updated>2023-01-25T21:26:53+00:00</updated>
<author>
<name>Jean-Sébastien Pédron</name>
<email>dumbbell@FreeBSD.org</email>
</author>
<published>2023-01-11T22:23:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=270a13348065ebf2f02fbf88a02d42fa63a245fc'/>
<id>270a13348065ebf2f02fbf88a02d42fa63a245fc</id>
<content type='text'>
Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38084
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38084
</pre>
</div>
</content>
</entry>
</feed>
