From: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Bommu Krishnaiah <krishnaiah.bommu@intel.com>,
Emil Velikov <emil.l.velikov@gmail.com>,
Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Subject: [PATCH v2 i-g-t v2] tests/core_setmaster: Change break to continue in tweak_perm function
Date: Fri, 26 Jul 2024 15:56:18 +0530 [thread overview]
Message-ID: <20240726102618.22111-1-krishnaiah.bommu@intel.com> (raw)
Existing userspace assumes there's no gaps card’s, but I see cards
are not continues, after running “gta@core_hotunplug I am not seeing card0,
hence test is failing.
Failure sequence:
card0 renderD128 version
Subtest master-drop-set-user: SUCCESS (0.061s)
card0 renderD128 version
Subtest hotrebind-lateclose: SUCCESS (2.791s)
ls /sys/class/drm/
card1 renderD129 version
root@DUT4419LNL:/usr/local/libexec/igt-gpu-tools# ./core_setmaster --r master-drop-set-user
Subtest master-drop-set-user: FAIL (0.017s)
Failure on XE
Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
---
tests/core_setmaster.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/core_setmaster.c b/tests/core_setmaster.c
index 9c2083f66..60ae06331 100644
--- a/tests/core_setmaster.c
+++ b/tests/core_setmaster.c
@@ -116,9 +116,8 @@ static unsigned tweak_perm(uint8_t *saved_perm, unsigned max_perm, bool save)
for (i = 0; i < max_perm; i++) {
snprintf(path, sizeof(path), "/dev/dri/card%u", i);
- /* Existing userspace assumes there's no gaps, do the same. */
if (stat(path, &st) != 0)
- break;
+ continue;
if (save) {
/* Save and toggle */
--
2.25.1
next reply other threads:[~2024-07-26 10:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 10:26 Bommu Krishnaiah [this message]
2024-07-26 12:11 ` ✓ CI.xeBAT: success for tests/core_setmaster: Change break to continue in tweak_perm function (rev2) Patchwork
2024-07-26 12:19 ` ✓ Fi.CI.BAT: " Patchwork
2024-07-26 17:00 ` [PATCH v2 i-g-t v2] tests/core_setmaster: Change break to continue in tweak_perm function Kamil Konieczny
2024-07-26 22:42 ` ✓ CI.xeFULL: success for tests/core_setmaster: Change break to continue in tweak_perm function (rev2) Patchwork
2024-07-27 5:52 ` ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240726102618.22111-1-krishnaiah.bommu@intel.com \
--to=krishnaiah.bommu@intel.com \
--cc=emil.l.velikov@gmail.com \
--cc=himal.prasad.ghimiray@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox