[PATCH i-g-t v2] lib/intel_compute: Enable compute tests for BMG
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Mon Jul 22 10:22:19 UTC 2024
From: Nirmoy Das <nirmoy.das at intel.com>
BMG is XE2 based so compute tests should run as it is.
Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
v2: Keep pciids which were released in the kernel
Drop BMG prefix in commit msg
---
lib/intel_compute.c | 10 ++++++++++
lib/intel_compute_square_kernels.c | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 72025a4811..6458f539c6 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -1449,6 +1449,11 @@ static const struct {
.compute_exec = xehpc_compute_exec,
.compat = COMPAT_DRIVER_XE,
},
+ {
+ .ip_ver = IP_VER(20, 01),
+ .compute_exec = xe2lpg_compute_exec,
+ .compat = COMPAT_DRIVER_XE,
+ },
{
.ip_ver = IP_VER(20, 04),
.compute_exec = xe2lpg_compute_exec,
@@ -1719,6 +1724,11 @@ static const struct {
bool threadgroup_preemption);
uint32_t compat;
} intel_compute_preempt_batches[] = {
+ {
+ .ip_ver = IP_VER(20, 01),
+ .compute_exec = xe2lpg_compute_preempt_exec,
+ .compat = COMPAT_DRIVER_XE,
+ },
{
.ip_ver = IP_VER(20, 04),
.compute_exec = xe2lpg_compute_preempt_exec,
diff --git a/lib/intel_compute_square_kernels.c b/lib/intel_compute_square_kernels.c
index efd55da0b9..a1f3b46da5 100644
--- a/lib/intel_compute_square_kernels.c
+++ b/lib/intel_compute_square_kernels.c
@@ -3866,6 +3866,15 @@ const struct intel_compute_kernels intel_compute_square_kernels[] = {
.size = sizeof(xehpc_kernel_square_bin),
.kernel = xehpc_kernel_square_bin,
},
+ {
+ .ip_ver = IP_VER(20, 01),
+ .size = sizeof(xe2lpg_kernel_square_bin),
+ .kernel = xe2lpg_kernel_square_bin,
+ .long_kernel = xe2lpg_kernel_inc_bin,
+ .long_kernel_size = sizeof(xe2lpg_kernel_inc_bin),
+ .sip_kernel = xe2lpg_kernel_sip_bin,
+ .sip_kernel_size = sizeof(xe2lpg_kernel_sip_bin),
+ },
{
.ip_ver = IP_VER(20, 04),
.size = sizeof(xe2lpg_kernel_square_bin),
--
2.34.1
More information about the igt-dev
mailing list