All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/vkms: guard the empty-plane path, re-enable the cursor CRC tests
@ 2026-12-02 10:11 Oarora Etimis
  2026-12-02 10:11 ` [PATCH 1/2] drm/ci: re-enable the vkms " Oarora Etimis
  2026-12-02 10:11 ` [PATCH 2/2] drm/vkms: skip planes that have no framebuffer Oarora Etimis
  0 siblings, 2 replies; 5+ messages in thread
From: Oarora Etimis @ 2026-12-02 10:11 UTC (permalink / raw)
  To: Louis Chauvet, Haneen Mohammed, Simona Vetter, Melissa Wen,
	Oarora Etimis, Helen Koike, Vignesh Raman, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie
  Cc: dri-devel, linux-kernel

69c0d83f0eea skipped kms_cursor_crc after a panic in
compose_active_planes(). The three subtests pass now on 6.18.63,
drm-misc-next and a vng run on 7.4.0-rc2, so the skip is stale.

Patch 1 drops the skip and the expected failures. Patch 2 keeps planes
without a framebuffer out of active_planes, so a later change cannot
bring that state back.

---
Oarora Etimis (2):
      drm/ci: re-enable the vkms cursor CRC tests
      drm/vkms: skip planes that have no framebuffer

 drivers/gpu/drm/ci/xfails/vkms-none-fails.txt | 3 ---
 drivers/gpu/drm/ci/xfails/vkms-none-skips.txt | 1 -
 drivers/gpu/drm/vkms/vkms_crtc.c              | 4 ++--
 3 files changed, 2 insertions(+), 6 deletions(-)
---
base-commit: 5ce32a0c94a827ff44ee60898c28060714dcff75
change-id: 20261130-vkms-cursor-ci-94264c8f9f46

Best regards,
--  
Oarora Etimis <oaroraetimis@gmail.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] drm/ci: re-enable the vkms cursor CRC tests
  2026-12-02 10:11 [PATCH 0/2] drm/vkms: guard the empty-plane path, re-enable the cursor CRC tests Oarora Etimis
@ 2026-12-02 10:11 ` Oarora Etimis
  2026-12-02 10:22   ` sashiko-bot
  2026-12-02 10:11 ` [PATCH 2/2] drm/vkms: skip planes that have no framebuffer Oarora Etimis
  1 sibling, 1 reply; 5+ messages in thread
From: Oarora Etimis @ 2026-12-02 10:11 UTC (permalink / raw)
  To: Louis Chauvet, Haneen Mohammed, Simona Vetter, Melissa Wen,
	Oarora Etimis, Helen Koike, Vignesh Raman, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie
  Cc: dri-devel, linux-kernel

Both 6.18.63 and drm-misc-next pass the three subtests now, so drop the
skip and the three expected failures.

Signed-off-by: Oarora Etimis <oaroraetimis@gmail.com>
---
 drivers/gpu/drm/ci/xfails/vkms-none-fails.txt | 3 ---
 drivers/gpu/drm/ci/xfails/vkms-none-skips.txt | 1 -
 2 files changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/ci/xfails/vkms-none-fails.txt b/drivers/gpu/drm/ci/xfails/vkms-none-fails.txt
index 029bd4956e85..83346e60e211 100644
--- a/drivers/gpu/drm/ci/xfails/vkms-none-fails.txt
+++ b/drivers/gpu/drm/ci/xfails/vkms-none-fails.txt
@@ -1,6 +1,3 @@
-kms_cursor_crc@cursor-rapid-movement-256x85,Fail
-kms_cursor_crc@cursor-rapid-movement-32x10,Fail
-kms_cursor_crc@cursor-rapid-movement-64x64,Fail
 kms_cursor_legacy@basic-flip-before-cursor-atomic,Fail
 kms_cursor_legacy@basic-flip-before-cursor-legacy,Fail
 kms_cursor_legacy@cursor-vs-flip-atomic,Fail
diff --git a/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt b/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt
index afcc09d1683d..e44157445276 100644
--- a/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt
+++ b/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt
@@ -3,7 +3,6 @@ kms_invalid_mode@int-max-clock
 kms_invalid_mode@overflow-vrefresh
 
 # kernel panic seen with kms_cursor_crc tests
-kms_cursor_crc.*
 # kms_cursor_crc@cursor-rapid-movement-32x10
 # Oops: 0000 [#1] PREEMPT SMP NOPTI
 # CPU: 0 PID: 2635 Comm: kworker/u8:13 Not tainted 6.9.0-rc7-g40935263a1fd #1

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] drm/vkms: skip planes that have no framebuffer
  2026-12-02 10:11 [PATCH 0/2] drm/vkms: guard the empty-plane path, re-enable the cursor CRC tests Oarora Etimis
  2026-12-02 10:11 ` [PATCH 1/2] drm/ci: re-enable the vkms " Oarora Etimis
@ 2026-12-02 10:11 ` Oarora Etimis
  2026-12-02 10:41   ` sashiko-bot
  1 sibling, 1 reply; 5+ messages in thread
From: Oarora Etimis @ 2026-12-02 10:11 UTC (permalink / raw)
  To: Louis Chauvet, Haneen Mohammed, Simona Vetter, Melissa Wen,
	Oarora Etimis, Helen Koike, Vignesh Raman, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie
  Cc: dri-devel, linux-kernel

A visible plane with no framebuffer has no mapping, so check_iosys_map()
rejects the whole frame. Leave such planes out of active_planes.

Signed-off-by: Oarora Etimis <oaroraetimis@gmail.com>
---
 drivers/gpu/drm/vkms/vkms_crtc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/vkms/vkms_crtc.c b/drivers/gpu/drm/vkms/vkms_crtc.c
index 019d7bc90cdc..3f98fac7ce92 100644
--- a/drivers/gpu/drm/vkms/vkms_crtc.c
+++ b/drivers/gpu/drm/vkms/vkms_crtc.c
@@ -133,7 +133,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc,
 		plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane);
 		WARN_ON(!plane_state);
 
-		if (!plane_state->visible)
+		if (!plane_state->visible || !plane_state->fb)
 			continue;
 
 		i++;
@@ -148,7 +148,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc,
 	drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) {
 		plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane);
 
-		if (!plane_state->visible)
+		if (!plane_state->visible || !plane_state->fb)
 			continue;
 
 		vkms_state->active_planes[i++] =

-- 
2.56.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] drm/ci: re-enable the vkms cursor CRC tests
  2026-12-02 10:11 ` [PATCH 1/2] drm/ci: re-enable the vkms " Oarora Etimis
@ 2026-12-02 10:22   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-02 10:22 UTC (permalink / raw)
  To: Oarora Etimis; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/ci: orphaned kms_cursor_crc panic comments and incomplete
  commit message
--

commit f767573b4b23c9fa9bb31fad98833d5c568b1a0e
Author: Oarora Etimis <oaroraetimis@gmail.com>

drm/ci: re-enable the vkms cursor CRC tests

This commit removes the kms_cursor_crc.* skip and three kms_cursor_crc
expected failures for vkms CI.

> diff --git a/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt b/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt
> index afcc09d1683d8..e44157445276e 100644
> --- a/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt
> +++ b/drivers/gpu/drm/ci/xfails/vkms-none-skips.txt
> @@ -3,7 +3,6 @@ kms_invalid_mode@int-max-clock
>  kms_invalid_mode@overflow-vrefresh
>  
>  # kernel panic seen with kms_cursor_crc tests
> -kms_cursor_crc.*
>  # kms_cursor_crc@cursor-rapid-movement-32x10
>  # Oops: 0000 [#1] PREEMPT SMP NOPTI
>  # CPU: 0 PID: 2635 Comm: kworker/u8:13 Not tainted 6.9.0-rc7-g40935263a1fd #1

[Severity: Low]
Should the commented-out kms_cursor_crc kernel panic traces in
vkms-none-skips.txt also be removed?  Deleting only kms_cursor_crc.* leaves
this panic comment block attached to kms_cursor_edge_walk@128x128-right-edge
below it, as well as the second kms_cursor_crc panic block added by
69c0d83f0eea ("drm/ci: uprev IGT") further down in the file.

Also, the commit message mentions that the three subtests pass now, but
dropping kms_cursor_crc.* re-enables the entire kms_cursor_crc suite
(including subtests such as cursor-onscreen-256x256 and
cursor-rapid-movement-128x42 that triggered the recorded panics).  Could the
commit message clarify whether the full kms_cursor_crc suite passes now and
what resolved those panics?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-vkms-cursor-ci-v1-0-ff0140820268@gmail.com?part=1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] drm/vkms: skip planes that have no framebuffer
  2026-12-02 10:11 ` [PATCH 2/2] drm/vkms: skip planes that have no framebuffer Oarora Etimis
@ 2026-12-02 10:41   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-02 10:41 UTC (permalink / raw)
  To: Oarora Etimis; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/vkms: dead !plane_state->fb check in
  vkms_crtc_atomic_check()
--

commit 2e72d6803c42a45dea03a11c7071f0b5d99277d5
Author: Oarora Etimis <oaroraetimis@gmail.com>

drm/vkms: skip planes that have no framebuffer

This commit adds a !plane_state->fb check to the loops in
vkms_crtc_atomic_check() to exclude planes without a framebuffer from
vkms_state->active_planes.

> diff --git a/drivers/gpu/drm/vkms/vkms_crtc.c b/drivers/gpu/drm/vkms/vkms_crtc.c
> index 019d7bc90cdcb..3f98fac7ce92b 100644
> --- a/drivers/gpu/drm/vkms/vkms_crtc.c
> +++ b/drivers/gpu/drm/vkms/vkms_crtc.c
> @@ -133,7 +133,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc,
>  		plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane);
>  		WARN_ON(!plane_state);
>  
> -		if (!plane_state->visible)
> +		if (!plane_state->visible || !plane_state->fb)
>  			continue;
>  
>  		i++;
> @@ -148,7 +148,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *crtc,
>  	drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) {
>  		plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane);
>  
> -		if (!plane_state->visible)
> +		if (!plane_state->visible || !plane_state->fb)
>  			continue;
>  
>  		vkms_state->active_planes[i++] =

[Severity: Medium]
Can !plane_state->fb ever be true for a plane in crtc_state->plane_mask?

drm_atomic_set_crtc_for_plane() only keeps a plane in
crtc_state->plane_mask while plane_state->crtc is set, and
drm_atomic_plane_check() (called by drm_atomic_check_only() before
vkms_crtc_atomic_check()) rejects any plane state with crtc && !fb with
-EINVAL.  Every plane visited by drm_for_each_plane_mask() here therefore
already has a non-NULL plane_state->fb, making the !plane_state->fb check
unreachable while vkms_plane_atomic_check() still returns early on
!new_plane_state->fb before drm_atomic_helper_check_plane_state() can
clear new_plane_state->visible.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-vkms-cursor-ci-v1-0-ff0140820268@gmail.com?part=2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-02 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 10:11 [PATCH 0/2] drm/vkms: guard the empty-plane path, re-enable the cursor CRC tests Oarora Etimis
2026-12-02 10:11 ` [PATCH 1/2] drm/ci: re-enable the vkms " Oarora Etimis
2026-12-02 10:22   ` sashiko-bot
2026-12-02 10:11 ` [PATCH 2/2] drm/vkms: skip planes that have no framebuffer Oarora Etimis
2026-12-02 10:41   ` sashiko-bot

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.