From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Subject: [PATCH i-g-t] intel_compute: Use valid number of array size for unbind
Date: Fri, 22 Nov 2024 11:29:31 +0100 [thread overview]
Message-ID: <20241122102931.210761-1-zbigniew.kempczynski@intel.com> (raw)
Due to copy-paste number of elements for unbind is wrong for xe2.
Fix this as it should be paired with bind.
This is likely subject for refactor and use ARRAY_SIZE() but at the
moment it's a quickfix. Luckily number or entries value was smaller
than for bind so we didn't notice the failure, only there were some
dangling vmas in the vm.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
---
lib/intel_compute.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 3ab9ace793..879928ab64 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -1406,7 +1406,7 @@ static void xe2lpg_compute_exec(int fd, const unsigned char *kernel,
igt_assert(f1 == f2 * f2);
}
- bo_execenv_unbind(&execenv, bo_dict, XEHPC_BO_DICT_ENTRIES);
+ bo_execenv_unbind(&execenv, bo_dict, XE2_BO_DICT_ENTRIES);
bo_execenv_destroy(&execenv);
}
--
2.34.1
next reply other threads:[~2024-11-22 10:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 10:29 Zbigniew Kempczyński [this message]
2024-11-22 16:09 ` ✓ Xe.CI.BAT: success for intel_compute: Use valid number of array size for unbind Patchwork
2024-11-22 16:25 ` ✓ i915.CI.BAT: " Patchwork
2024-11-23 15:32 ` ✗ Xe.CI.Full: failure " Patchwork
2024-11-25 7:16 ` Zbigniew Kempczyński
2024-11-24 18:49 ` ✗ i915.CI.Full: " Patchwork
2024-11-25 7:17 ` Zbigniew Kempczyński
2024-11-25 9:58 ` [PATCH i-g-t] " Grzegorzek, Dominik
2024-11-25 13:36 ` Kamil Konieczny
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=20241122102931.210761-1-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@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