drm/vkms: guard the empty-plane path, re-enable the cursor CRC tests
Subsystems (4)
cover drm/vkms: guard the empty-plane path, re-enable the cursor CRC tests
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,
Signature · 1 line
Oarora Etimis <[email protected]>
PATCH 1/2 drm/ci: re-enable the vkms cursor CRC tests
Both 6.18.63 and drm-misc-next pass the three subtests now, so drop the skip and the three expected failures.
--- 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(-)
drivers/gpu/drm/ci/xfails/vkms-none-fails.txt +0 -3
@@ -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
drivers/gpu/drm/ci/xfails/vkms-none-skips.txt +0 -1
@@ -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
Signature · 1 line
2.56.1
[email protected]
AI reviewRe: [PATCH 1/2] drm/ci: re-enable the vkms cursor CRC tests
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 --
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 <[email protected]>
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.
drivers/gpu/drm/ci/xfails/vkms-none-skips.txt kms_invalid_mode@int-max-clock · line 8
Quoted 12 lines
drivers/gpu/drm/ci/xfails/vkms-none-skips.txt +0
-1@@ -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?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/2 drm/vkms: skip planes that have no framebuffer
In reply to Oarora EtimisA visible plane with no framebuffer has no mapping, so check_iosys_map() rejects the whole frame. Leave such planes out of active_planes.
--- drivers/gpu/drm/vkms/vkms_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/vkms/vkms_crtc.c +2 -2
@@ -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++] =
Signature · 1 line
2.56.1
[email protected]
AI reviewRe: [PATCH 2/2] drm/vkms: skip planes that have no framebuffer
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() --
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 <[email protected]>
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.
Quoted 14 lines
drivers/gpu/drm/vkms/vkms_crtc.c +1
-1@@ -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++;
drivers/gpu/drm/vkms/vkms_crtc.c static int vkms_crtc_atomic_check(struct drm_crtc *crtc, · line 154
Quoted 8 lines
drivers/gpu/drm/vkms/vkms_crtc.c +1
-1@@ -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.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2