Skip to contentSkip to conversation

Flush DMC wakelock release work at the end of runtime suspend

PATCH Superseded Gustavo Sousa 3 participants 13 messages Nov 29, 2024

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Flush DMC wakelock release work at the end of runtime suspend

We currently are not calling display runtime suspend functions when D3cold is not allowed. That end up causing DMC wakelock to be enabled because of dynamic DC states. Because of that, we need to make sure we flush the release worker at the end of display runtime suspend.

Gustavo Sousa (3):
drm/i915/dmc_wl: Extract intel_dmc_wl_flush_release_work() drm/xe/display: Extract xe_display_pm_runtime_suspend_late() drm/xe/display: Flush DMC wakelock release work on runtime suspend

 drivers/gpu/drm/i915/display/intel_dmc_wl.c | 12 +++++++++++-
 drivers/gpu/drm/i915/display/intel_dmc_wl.h |  1 +
 drivers/gpu/drm/xe/display/xe_display.c     | 19 +++++++++++++++++++
 drivers/gpu/drm/xe/display/xe_display.h     |  1 +
 drivers/gpu/drm/xe/xe_pm.c                  |  4 ++--
 5 files changed, 34 insertions(+), 3 deletions(-)
Signature · 1 line
2.47.0
#1 lore raw

PATCH 1/3 drm/i915/dmc_wl: Extract intel_dmc_wl_flush_release_work()

We will need to flush the release work from outside in an upcoming change. Let's put that into a public interface and call it intel_dmc_wl_flush_release_work().

---
 drivers/gpu/drm/i915/display/intel_dmc_wl.c | 12 +++++++++++-
 drivers/gpu/drm/i915/display/intel_dmc_wl.h |  1 +
 2 files changed, 12 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dmc_wl.c +11 -1
index 853d75610489..09075830c12f 100644
@@ -349,7 +349,7 @@ void intel_dmc_wl_disable(struct intel_display *display)
 	if (!__intel_dmc_wl_supported(display))
 		return;
 
-	flush_delayed_work(&wl->work);
+	intel_dmc_wl_flush_release_work(display);
 
 	spin_lock_irqsave(&wl->lock, flags);
 
@@ -377,6 +377,16 @@ void intel_dmc_wl_disable(struct intel_display *display)
 	spin_unlock_irqrestore(&wl->lock, flags);
 }
 
+void intel_dmc_wl_flush_release_work(struct intel_display *display)
+{
+	struct intel_dmc_wl *wl = &display->wl;
+
+	if (!__intel_dmc_wl_supported(display))
+		return;
+
+	flush_delayed_work(&wl->work);
+}
+
 void intel_dmc_wl_get(struct intel_display *display, i915_reg_t reg)
 {
 	struct intel_dmc_wl *wl = &display->wl;
drivers/gpu/drm/i915/display/intel_dmc_wl.h +1 -0
index 147eeb4d8432..5488fbdf29b8 100644
@@ -32,6 +32,7 @@ struct intel_dmc_wl {
 void intel_dmc_wl_init(struct intel_display *display);
 void intel_dmc_wl_enable(struct intel_display *display, u32 dc_state);
 void intel_dmc_wl_disable(struct intel_display *display);
+void intel_dmc_wl_flush_release_work(struct intel_display *display);
 void intel_dmc_wl_get(struct intel_display *display, i915_reg_t reg);
 void intel_dmc_wl_put(struct intel_display *display, i915_reg_t reg);
 void intel_dmc_wl_get_noreg(struct intel_display *display);
Signature · 1 line
2.47.0
#2 lore raw

PATCH 2/3 drm/xe/display: Extract xe_display_pm_runtime_suspend_late()

In reply to Gustavo Sousa

The current behavior for the runtime suspend case is that xe_display_pm_suspend_late() is only called when D3cold is allowed. Let's incorportate that behavior into a function specific to runtime PM and call it xe_display_pm_runtime_suspend_late().

With that, we keep stuff a bit more self-contained and allow having a place for adding more "late display runtime suspend"-related logic that isn't dependent on the "D3cold allowed" state.

---
 drivers/gpu/drm/xe/display/xe_display.c | 9 +++++++++
 drivers/gpu/drm/xe/display/xe_display.h | 1 +
 drivers/gpu/drm/xe/xe_pm.c              | 4 ++--
 3 files changed, 12 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/display/xe_display.c +9 -0
index 69c828f38cb6..2e189abf8d6f 100644
@@ -407,6 +407,15 @@ void xe_display_pm_suspend_late(struct xe_device *xe)
 	intel_display_power_suspend_late(xe, s2idle);
 }
 
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
+{
+	if (!xe->info.probe_display)
+		return;
+
+	if (xe->d3cold.allowed)
+		xe_display_pm_runtime_suspend_late(xe);
+}
+
 void xe_display_pm_shutdown_late(struct xe_device *xe)
 {
 	if (!xe->info.probe_display)
drivers/gpu/drm/xe/display/xe_display.h +1 -0
index 17afa537aee5..954c5a268ef4 100644
@@ -41,6 +41,7 @@ void xe_display_pm_shutdown_late(struct xe_device *xe);
 void xe_display_pm_resume_early(struct xe_device *xe);
 void xe_display_pm_resume(struct xe_device *xe);
 void xe_display_pm_runtime_suspend(struct xe_device *xe);
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe);
 void xe_display_pm_runtime_resume(struct xe_device *xe);
 
 #else
drivers/gpu/drm/xe/xe_pm.c +2 -2
index 80699dbeb2e9..a6761cb769b2 100644
@@ -414,8 +414,8 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
 
 	xe_irq_suspend(xe);
 
-	if (xe->d3cold.allowed)
-		xe_display_pm_suspend_late(xe);
+	xe_display_pm_runtime_suspend_late(xe);
+
 out:
 	if (err)
 		xe_display_pm_runtime_resume(xe);
Signature · 1 line
2.47.0
#3 lore raw

Re: [PATCH 2/3] drm/xe/display: Extract xe_display_pm_runtime_suspend_late()

Quoting Gustavo Sousa (2024-11-29 12:17:45-03:00)

Quoted 21 lines

The current behavior for the runtime suspend case is that xe_display_pm_suspend_late() is only called when D3cold is allowed. Let's incorportate that behavior into a function specific to runtime PM and call it xe_display_pm_runtime_suspend_late().

With that, we keep stuff a bit more self-contained and allow having a place for adding more "late display runtime suspend"-related logic that isn't dependent on the "D3cold allowed" state.

---

drivers/gpu/drm/xe/display/xe_display.c | 9 +++++++++
drivers/gpu/drm/xe/display/xe_display.h | 1 +
drivers/gpu/drm/xe/xe_pm.c              | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/display/xe_display.c +0 -0
index 69c828f38cb6..2e189abf8d6f 100644

drivers/gpu/drm/xe/display/xe_display.c void xe_display_pm_suspend_late(struct xe_device *xe) · line 416

Quoted 10 lines
drivers/gpu/drm/xe/display/xe_display.c +7 -0
@@ -407,6 +407,15 @@ void xe_display_pm_suspend_late(struct xe_device *xe)
        intel_display_power_suspend_late(xe, s2idle);
 }
 
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
+{
+        if (!xe->info.probe_display)
+                return;
+
+        if (xe->d3cold.allowed)
+                xe_display_pm_runtime_suspend_late(xe);

Whoops... There is a typo here. It should have been xe_display_pm_suspend_late(). I'll send a new version.

--
Gustavo Sousa

Quoted 35 lines
drivers/gpu/drm/xe/display/xe_display.c +2 -0
+}
+
 void xe_display_pm_shutdown_late(struct xe_device *xe)
 {
        if (!xe->info.probe_display)
drivers/gpu/drm/xe/display/xe_display.h +1 -0
index 17afa537aee5..954c5a268ef4 100644
@@ -41,6 +41,7 @@ void xe_display_pm_shutdown_late(struct xe_device *xe);
 void xe_display_pm_resume_early(struct xe_device *xe);
 void xe_display_pm_resume(struct xe_device *xe);
 void xe_display_pm_runtime_suspend(struct xe_device *xe);
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe);
 void xe_display_pm_runtime_resume(struct xe_device *xe);
 
 #else
drivers/gpu/drm/xe/xe_pm.c +2 -2
index 80699dbeb2e9..a6761cb769b2 100644
@@ -414,8 +414,8 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
 
        xe_irq_suspend(xe);
 
-        if (xe->d3cold.allowed)
-                xe_display_pm_suspend_late(xe);
+        xe_display_pm_runtime_suspend_late(xe);
+

out:

        if (err)
                xe_display_pm_runtime_resume(xe);
Signature · 1 line
2.47.0
maintainer Reviewed-by
#4 lore raw

Re: [PATCH 2/3] drm/xe/display: Extract xe_display_pm_runtime_suspend_late()

Quoted 25 lines · Gustavo Sousa

Quoting Gustavo Sousa (2024-11-29 12:17:45-03:00)

Quoted 24 lines

The current behavior for the runtime suspend case is that xe_display_pm_suspend_late() is only called when D3cold is allowed. Let's incorportate that behavior into a function specific to runtime PM and call it xe_display_pm_runtime_suspend_late().

With that, we keep stuff a bit more self-contained and allow having a place for adding more "late display runtime suspend"-related logic that isn't dependent on the "D3cold allowed" state.

---

drivers/gpu/drm/xe/display/xe_display.c | 9 +++++++++
drivers/gpu/drm/xe/display/xe_display.h | 1 +
drivers/gpu/drm/xe/xe_pm.c              | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/display/xe_display.c +0 -0
index 69c828f38cb6..2e189abf8d6f 100644
@@ -407,6 +407,15 @@ void xe_display_pm_suspend_late(struct xe_device *xe)
        intel_display_power_suspend_late(xe, s2idle);
 }
 
Quoted 10 lines

drivers/gpu/drm/xe/display/xe_display.c void xe_display_pm_suspend_late(struct xe_device *xe) · line 416

Quoted 7 lines
drivers/gpu/drm/xe/display/xe_display.c +7 -0
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
+{
+        if (!xe->info.probe_display)
+                return;
+
+        if (xe->d3cold.allowed)
+                xe_display_pm_runtime_suspend_late(xe);

Whoops... There is a typo here. It should have been xe_display_pm_suspend_late(). I'll send a new version.

I'm glad you found first, I confess I was going to miss it.

Please go ahead with the changes and I will incorporate that later whenever I get back to that display-pm-reconcile series I have

For the series (with this chunk fixed):

Quoted 39 lines

--
Gustavo Sousa

Quoted 35 lines
drivers/gpu/drm/xe/display/xe_display.c +2 -0
+}
+
 void xe_display_pm_shutdown_late(struct xe_device *xe)
 {
        if (!xe->info.probe_display)
drivers/gpu/drm/xe/display/xe_display.h +1 -0
index 17afa537aee5..954c5a268ef4 100644
@@ -41,6 +41,7 @@ void xe_display_pm_shutdown_late(struct xe_device *xe);
 void xe_display_pm_resume_early(struct xe_device *xe);
 void xe_display_pm_resume(struct xe_device *xe);
 void xe_display_pm_runtime_suspend(struct xe_device *xe);
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe);
 void xe_display_pm_runtime_resume(struct xe_device *xe);
 
 #else
drivers/gpu/drm/xe/xe_pm.c +2 -2
index 80699dbeb2e9..a6761cb769b2 100644
@@ -414,8 +414,8 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
 
        xe_irq_suspend(xe);
 
-        if (xe->d3cold.allowed)
-                xe_display_pm_suspend_late(xe);
+        xe_display_pm_runtime_suspend_late(xe);
+

out:

        if (err)
                xe_display_pm_runtime_resume(xe);
Signature · 1 line
2.47.0
#5 lore raw

Re: [PATCH 2/3] drm/xe/display: Extract xe_display_pm_runtime_suspend_late()

Quoting Rodrigo Vivi (2024-11-29 13:43:28-03:00)

Quoted 37 lines · Gustavo Sousa
Quoted 25 lines

Quoting Gustavo Sousa (2024-11-29 12:17:45-03:00)

Quoted 24 lines

The current behavior for the runtime suspend case is that xe_display_pm_suspend_late() is only called when D3cold is allowed. Let's incorportate that behavior into a function specific to runtime PM and call it xe_display_pm_runtime_suspend_late().

With that, we keep stuff a bit more self-contained and allow having a place for adding more "late display runtime suspend"-related logic that isn't dependent on the "D3cold allowed" state.

---

drivers/gpu/drm/xe/display/xe_display.c | 9 +++++++++
drivers/gpu/drm/xe/display/xe_display.h | 1 +
drivers/gpu/drm/xe/xe_pm.c              | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/display/xe_display.c +0 -0
index 69c828f38cb6..2e189abf8d6f 100644
@@ -407,6 +407,15 @@ void xe_display_pm_suspend_late(struct xe_device *xe)
        intel_display_power_suspend_late(xe, s2idle);
 }
 
Quoted 10 lines

drivers/gpu/drm/xe/display/xe_display.c void xe_display_pm_suspend_late(struct xe_device *xe) · line 416

Quoted 7 lines
drivers/gpu/drm/xe/display/xe_display.c +7 -0
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
+{
+        if (!xe->info.probe_display)
+                return;
+
+        if (xe->d3cold.allowed)
+                xe_display_pm_runtime_suspend_late(xe);

Whoops... There is a typo here. It should have been xe_display_pm_suspend_late(). I'll send a new version.

Quoted 1 line

I'm glad you found first,

Me too, to attenuate my embarrassment :-)

Quoted 9 lines

I confess I was going to miss it.

Please go ahead with the changes and I will incorporate that later whenever I get back to that display-pm-reconcile series I have

For the series (with this chunk fixed):

Thanks!

--
Gustavo Sousa

Quoted 40 lines
Quoted 40 lines

--
Gustavo Sousa

Quoted 35 lines
drivers/gpu/drm/xe/display/xe_display.c +2 -0
+}
+
 void xe_display_pm_shutdown_late(struct xe_device *xe)
 {
        if (!xe->info.probe_display)
drivers/gpu/drm/xe/display/xe_display.h +1 -0
index 17afa537aee5..954c5a268ef4 100644
@@ -41,6 +41,7 @@ void xe_display_pm_shutdown_late(struct xe_device *xe);
 void xe_display_pm_resume_early(struct xe_device *xe);
 void xe_display_pm_resume(struct xe_device *xe);
 void xe_display_pm_runtime_suspend(struct xe_device *xe);
+void xe_display_pm_runtime_suspend_late(struct xe_device *xe);
 void xe_display_pm_runtime_resume(struct xe_device *xe);
 
 #else
drivers/gpu/drm/xe/xe_pm.c +2 -2
index 80699dbeb2e9..a6761cb769b2 100644
@@ -414,8 +414,8 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
 
        xe_irq_suspend(xe);
 
-        if (xe->d3cold.allowed)
-                xe_display_pm_suspend_late(xe);
+        xe_display_pm_runtime_suspend_late(xe);
+

out:

        if (err)
                xe_display_pm_runtime_resume(xe);
Signature · 1 line
2.47.0
#6 lore raw

PATCH 3/3 drm/xe/display: Flush DMC wakelock release work on runtime suspend

In reply to Gustavo Sousa

We currently are not calling display runtime suspend functions when D3cold is not allowed. Because of that, we endup not disabling dynamic DC states (and do not go to DC9). With dynamic DC states enabled, we will also have DMC wakelock enabled. Since we use a delayed work to release the DMC wakelock, the work might get executed a little too late (after the PCI device has been put to D3hot) and we get a timeout warning ("DMC wakelock release timed out") because the MMIO for releasing the wakelock will be invalid after that point.

To fix that, make sure we flush the release work at the end of xe_display_pm_runtime_suspend_late(). We can do that unconditionally because, if there is no pending work, that turns into a no-op.

---
 drivers/gpu/drm/xe/display/xe_display.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/xe/display/xe_display.c +10 -0
index 2e189abf8d6f..9ae397a09f7b 100644
@@ -22,6 +22,7 @@
 #include "intel_display_irq.h"
 #include "intel_display_types.h"
 #include "intel_dmc.h"
+#include "intel_dmc_wl.h"
 #include "intel_dp.h"
 #include "intel_encoder.h"
 #include "intel_fbdev.h"
@@ -409,11 +410,20 @@ void xe_display_pm_suspend_late(struct xe_device *xe)
 
 void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
 {
+	struct intel_display *display = &xe->display;
+
 	if (!xe->info.probe_display)
 		return;
 
 	if (xe->d3cold.allowed)
 		xe_display_pm_runtime_suspend_late(xe);
+
+	/*
+	 * If xe_display_pm_suspend_late() is not called, it is likely
+	 * that we will be on dynamic DC states with DMC wakelock enabled. We
+	 * need to flush the release work in that case.
+	 */
+	intel_dmc_wl_flush_release_work(display);
 }
 
 void xe_display_pm_shutdown_late(struct xe_device *xe)
Signature · 1 line
2.47.0
#7 lore raw

✓ CI.Patch_applied: success for Flush DMC wakelock release work at the end of runtime suspend

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Flush DMC wakelock release work at the end of runtime suspend
URL : https://patchwork.freedesktop.org/series/141931/
State : success

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 108f610005f8 drm-tip: 2024y-11m-29d-13h-08m-56s UTC integration manifest === git am output follows ===
Applying: drm/i915/dmc_wl: Extract intel_dmc_wl_flush_release_work()
Applying: drm/xe/display: Extract xe_display_pm_runtime_suspend_late()
Applying: drm/xe/display: Flush DMC wakelock release work on runtime suspend

#8 lore raw

✓ CI.checkpatch: success for Flush DMC wakelock release work at the end of runtime suspend

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Flush DMC wakelock release work at the end of runtime suspend
URL : https://patchwork.freedesktop.org/series/141931/
State : success

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 30ab6715fc09baee6cc14cb3c89ad8858688d474
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 99f82964f289a34ab3ab1867a9eefb7109497ba0

Author: Gustavo Sousa <[email protected]>
Date:   Fri Nov 29 12:17:46 2024 -0300

drm/xe/display: Flush DMC wakelock release work on runtime suspend

We currently are not calling display runtime suspend functions when D3cold is not allowed. Because of that, we endup not disabling dynamic DC states (and do not go to DC9). With dynamic DC states enabled, we will also have DMC wakelock enabled. Since we use a delayed work to release the DMC wakelock, the work might get executed a little too late (after the PCI device has been put to D3hot) and we get a timeout warning ("DMC wakelock release timed out") because the MMIO for releasing the wakelock will be invalid after that point.

To fix that, make sure we flush the release work at the end of xe_display_pm_runtime_suspend_late(). We can do that unconditionally because, if there is no pending work, that turns into a no-op.

+ /mt/dim checkpatch 108f610005f88de624c1a8c4f85d5cab9f530ddb drm-intel 71fd044ac240 drm/i915/dmc_wl: Extract intel_dmc_wl_flush_release_work() c788111562b4 drm/xe/display: Extract xe_display_pm_runtime_suspend_late() 99f82964f289 drm/xe/display: Flush DMC wakelock release work on runtime suspend

#9 lore raw

✗ CI.KUnit: failure for Flush DMC wakelock release work at the end of runtime suspend

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Flush DMC wakelock release work at the end of runtime suspend
URL : https://patchwork.freedesktop.org/series/141931/
State : failure

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes] 156 | u64 ioread64_lo_hi(const void __iomem *addr)

      |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
  163 | u64 ioread64_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
  170 | u64 ioread64be_lo_hi(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
  178 | u64 ioread64be_hi_lo(const void __iomem *addr)
      |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
  264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
  272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~
../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
  280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
  288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
      |      ^~~~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pm.c: In function ‘xe_pm_runtime_suspend’:
../drivers/gpu/drm/xe/xe_pm.c:417:9: error: implicit declaration of function ‘xe_display_pm_runtime_suspend_late’; did you mean ‘xe_display_pm_runtime_suspend’? [-Werror=implicit-function-declaration]
  417 |         xe_display_pm_runtime_suspend_late(xe);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         xe_display_pm_runtime_suspend

cc1: some warnings being treated as errors
make[7]: *** [../scripts/Makefile.build:229: drivers/gpu/drm/xe/xe_pm.o] Error 1 make[7]: *** Waiting for unfinished jobs....
make[6]: *** [../scripts/Makefile.build:478: drivers/gpu/drm/xe] Error 2 make[5]: *** [../scripts/Makefile.build:478: drivers/gpu/drm] Error 2 make[4]: *** [../scripts/Makefile.build:478: drivers/gpu] Error 2 make[3]: *** [../scripts/Makefile.build:478: drivers] Error 2 make[2]: *** [/kernel/Makefile:1936: .] Error 2
make[1]: *** [/kernel/Makefile:224: __sub-make] Error 2
make: *** [Makefile:224: __sub-make] Error 2

[15:40:40] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[15:40:44] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json ARCH=um O=.kunit --jobs=48
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
#10 lore raw

Re: ✗ CI.KUnit: failure for Flush DMC wakelock release work at the end of runtime suspend

Quoting Patchwork (2024-11-29 12:41:13-03:00)

Quoted 30 lines

== Series Details ==

Series: Flush DMC wakelock release work at the end of runtime suspend
URL : https://patchwork.freedesktop.org/series/141931/
State : failure

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:../lib/iomap.c:156:5: warning: no previous prototype for ‘ioread64_lo_hi’ [-Wmissing-prototypes] 156 | u64 ioread64_lo_hi(const void __iomem *addr)

     |     ^~~~~~~~~~~~~~
../lib/iomap.c:163:5: warning: no previous prototype for ‘ioread64_hi_lo’ [-Wmissing-prototypes]
 163 | u64 ioread64_hi_lo(const void __iomem *addr)
     |     ^~~~~~~~~~~~~~
../lib/iomap.c:170:5: warning: no previous prototype for ‘ioread64be_lo_hi’ [-Wmissing-prototypes]
 170 | u64 ioread64be_lo_hi(const void __iomem *addr)
     |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:178:5: warning: no previous prototype for ‘ioread64be_hi_lo’ [-Wmissing-prototypes]
 178 | u64 ioread64be_hi_lo(const void __iomem *addr)
     |     ^~~~~~~~~~~~~~~~
../lib/iomap.c:264:6: warning: no previous prototype for ‘iowrite64_lo_hi’ [-Wmissing-prototypes]
 264 | void iowrite64_lo_hi(u64 val, void __iomem *addr)
     |      ^~~~~~~~~~~~~~~
../lib/iomap.c:272:6: warning: no previous prototype for ‘iowrite64_hi_lo’ [-Wmissing-prototypes]
 272 | void iowrite64_hi_lo(u64 val, void __iomem *addr)
     |      ^~~~~~~~~~~~~~~

../lib/iomap.c:280:6: warning: no previous prototype for ‘iowrite64be_lo_hi’ [-Wmissing-prototypes]
280 | void iowrite64be_lo_hi(u64 val, void __iomem *addr)

Quoted 8 lines
     |      ^~~~~~~~~~~~~~~~~
../lib/iomap.c:288:6: warning: no previous prototype for ‘iowrite64be_hi_lo’ [-Wmissing-prototypes]
 288 | void iowrite64be_hi_lo(u64 val, void __iomem *addr)
     |      ^~~~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pm.c: In function ‘xe_pm_runtime_suspend’:
../drivers/gpu/drm/xe/xe_pm.c:417:9: error: implicit declaration of function ‘xe_display_pm_runtime_suspend_late’; did you mean ‘xe_display_pm_runtime_suspend’? [-Werror=implicit-function-declaration]
 417 |         xe_display_pm_runtime_suspend_late(xe);
     |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Ugh. I forgot to also add the empty version of this function for the !CONFIG_DRM_XE_DISPLAY case. I'll send with this fixed in v2.

--
Gustavo Sousa

Quoted 26 lines

| xe_display_pm_runtime_suspend
cc1: some warnings being treated as errors
make[7]: *** [../scripts/Makefile.build:229: drivers/gpu/drm/xe/xe_pm.o] Error 1 make[7]: *** Waiting for unfinished jobs....
make[6]: *** [../scripts/Makefile.build:478: drivers/gpu/drm/xe] Error 2 make[5]: *** [../scripts/Makefile.build:478: drivers/gpu/drm] Error 2 make[4]: *** [../scripts/Makefile.build:478: drivers/gpu] Error 2 make[3]: *** [../scripts/Makefile.build:478: drivers] Error 2 make[2]: *** [/kernel/Makefile:1936: .] Error 2
make[1]: *** [/kernel/Makefile:224: __sub-make] Error 2
make: *** [Makefile:224: __sub-make] Error 2

[15:40:40] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[15:40:44] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json ARCH=um O=.kunit --jobs=48
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
#11 lore raw

✗ Fi.CI.SPARSE: warning for Flush DMC wakelock release work at the end of runtime suspend

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Flush DMC wakelock release work at the end of runtime suspend
URL : https://patchwork.freedesktop.org/series/141932/
State : warning

== Summary ==

Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.

#12 lore raw

✗ i915.CI.BAT: failure for Flush DMC wakelock release work at the end of runtime suspend

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Flush DMC wakelock release work at the end of runtime suspend
URL : https://patchwork.freedesktop.org/series/141932/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_15763 -> Patchwork_141932v1
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_141932v1 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_141932v1, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/index.html

Participating hosts (46 -> 44)
------------------------------

Missing (2): fi-glk-j4005 fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_141932v1:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live:
- bat-mtlp-8: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-mtlp-8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-mtlp-8/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_141932v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-twl-2: NOTRUN -> [SKIP][3] ([i915#9318])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- bat-twl-2: NOTRUN -> [SKIP][4] ([i915#10213] / [i915#11671]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@gem_tiled_blits@basic:
- fi-pnv-d510: [PASS][5] -> [SKIP][6] +2 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/fi-pnv-d510/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/fi-pnv-d510/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-twl-2: NOTRUN -> [SKIP][7] ([i915#11031])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rpm@module-reload:
- bat-arls-5: [PASS][8] -> [DMESG-WARN][9] ([i915#4423])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-arls-5/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-arls-5/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-twl-2: NOTRUN -> [SKIP][10] ([i915#10209] / [i915#11681])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@i915_selftest@live:
- bat-arls-5: NOTRUN -> [ABORT][11] ([i915#12061])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-arls-5/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-arlh-3: [PASS][12] -> [ABORT][13] ([i915#12061]) +1 other test abort
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-arlh-3/igt@i915_selftest@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-arlh-3/igt@i915_selftest@[email protected]
- bat-arls-5: [PASS][14] -> [ABORT][15] ([i915#12061])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-arls-5/igt@i915_selftest@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-arls-5/igt@i915_selftest@[email protected]
- bat-mtlp-6: [PASS][16] -> [ABORT][17] ([i915#12061]) +1 other test abort
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-mtlp-6/igt@i915_selftest@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-mtlp-6/igt@i915_selftest@[email protected]
- bat-mtlp-8: [PASS][18] -> [ABORT][19] ([i915#12061])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-mtlp-8/igt@i915_selftest@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- bat-twl-2: NOTRUN -> [SKIP][20] ([i915#11030] / [i915#11731]) +1 other test skip
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- bat-twl-2: NOTRUN -> [SKIP][21] ([i915#9886])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-twl-2: NOTRUN -> [SKIP][22] ([i915#11032])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-twl-2: NOTRUN -> [SKIP][23] ([i915#8809])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-twl-2: NOTRUN -> [SKIP][24] ([i915#10212] / [i915#3708])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-twl-2: NOTRUN -> [SKIP][25] ([i915#10214] / [i915#3708])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-twl-2: NOTRUN -> [SKIP][26] ([i915#10216] / [i915#3708])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-2/igt@[email protected]

#### Possible fixes ####

* igt@dmabuf@all-tests:
- bat-apl-1: [INCOMPLETE][27] ([i915#12904]) -> [PASS][28] +1 other test pass
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-apl-1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-apl-1/igt@[email protected]

* igt@i915_selftest@live:
- bat-twl-1: [ABORT][29] ([i915#12919]) -> [PASS][30] +1 other test pass
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/bat-twl-1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/bat-twl-1/igt@[email protected]

* igt@kms_busy@basic@flip:
- fi-cfl-8109u: [DMESG-WARN][31] -> [PASS][32] +2 other tests pass
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15763/fi-cfl-8109u/igt@kms_busy@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/fi-cfl-8109u/igt@kms_busy@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[i915#10209]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10209
[i915#10212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10216
[i915#11030]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11030
[i915#11031]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11031
[i915#11032]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11032
[i915#11671]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11671
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#11731]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11731
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12904]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12904
[i915#12919]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12919
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#4423]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4423
[i915#8809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8809
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318
[i915#9886]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9886

Build changes
-------------

* Linux: CI_DRM_15763 -> Patchwork_141932v1

CI-20190529: 20190529
CI_DRM_15763: 108f610005f88de624c1a8c4f85d5cab9f530ddb @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8131: f846ef8f7ddf051c88504c607136a9b5392bdef7 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_141932v1: 108f610005f88de624c1a8c4f85d5cab9f530ddb @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_141932v1/index.html