* [PATCH i-g-t] BMG: lib/intel_compute: Enable compute tests for BMG
@ 2024-07-22 9:45 Zbigniew Kempczyński
2024-07-22 10:00 ` Nirmoy Das
0 siblings, 1 reply; 3+ messages in thread
From: Zbigniew Kempczyński @ 2024-07-22 9:45 UTC (permalink / raw)
To: igt-dev; +Cc: Nirmoy Das, Zbigniew Kempczyński
From: Nirmoy Das <nirmoy.das@intel.com>
BMG is XE2 based so compute tests should run as it is.
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
---
lib/intel_compute.c | 31 ++++++++++++++++++++++++++++++
lib/intel_compute_square_kernels.c | 28 +++++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 72025a4811..54d1814f38 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -1449,6 +1449,21 @@ static const struct {
.compute_exec = xehpc_compute_exec,
.compat = COMPAT_DRIVER_XE,
},
+ {
+ .ip_ver = IP_VER(20, 00),
+ .compute_exec = xe2lpg_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, 02),
+ .compute_exec = xe2lpg_compute_exec,
+ .compat = COMPAT_DRIVER_XE,
+ },
{
.ip_ver = IP_VER(20, 04),
.compute_exec = xe2lpg_compute_exec,
@@ -1719,11 +1734,27 @@ static const struct {
bool threadgroup_preemption);
uint32_t compat;
} intel_compute_preempt_batches[] = {
+ {
+ .ip_ver = IP_VER(20, 00),
+ .compute_exec = xe2lpg_compute_preempt_exec,
+ .compat = COMPAT_DRIVER_XE,
+ },
+ {
+ .ip_ver = IP_VER(20, 01),
+ .compute_exec = xe2lpg_compute_preempt_exec,
+ .compat = COMPAT_DRIVER_XE,
+ },
+ {
+ .ip_ver = IP_VER(20, 02),
+ .compute_exec = xe2lpg_compute_preempt_exec,
+ .compat = COMPAT_DRIVER_XE,
+ },
{
.ip_ver = IP_VER(20, 04),
.compute_exec = xe2lpg_compute_preempt_exec,
.compat = COMPAT_DRIVER_XE,
},
+
};
static bool __run_intel_compute_kernel_preempt(int fd,
diff --git a/lib/intel_compute_square_kernels.c b/lib/intel_compute_square_kernels.c
index efd55da0b9..39c34dc5e0 100644
--- a/lib/intel_compute_square_kernels.c
+++ b/lib/intel_compute_square_kernels.c
@@ -3866,6 +3866,34 @@ 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, 00),
+ .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, 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, 02),
+ .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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH i-g-t] BMG: lib/intel_compute: Enable compute tests for BMG
2024-07-22 9:45 [PATCH i-g-t] BMG: lib/intel_compute: Enable compute tests for BMG Zbigniew Kempczyński
@ 2024-07-22 10:00 ` Nirmoy Das
2024-07-22 10:02 ` Nirmoy Das
0 siblings, 1 reply; 3+ messages in thread
From: Nirmoy Das @ 2024-07-22 10:00 UTC (permalink / raw)
To: Zbigniew Kempczyński, igt-dev; +Cc: Nirmoy Das
On 7/22/2024 11:45 AM, Zbigniew Kempczyński wrote:
> From: Nirmoy Das <nirmoy.das@intel.com>
>
> BMG is XE2 based so compute tests should run as it is.
>
> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> ---
> lib/intel_compute.c | 31 ++++++++++++++++++++++++++++++
> lib/intel_compute_square_kernels.c | 28 +++++++++++++++++++++++++++
> 2 files changed, 59 insertions(+)
>
> diff --git a/lib/intel_compute.c b/lib/intel_compute.c
> index 72025a4811..54d1814f38 100644
> --- a/lib/intel_compute.c
> +++ b/lib/intel_compute.c
> @@ -1449,6 +1449,21 @@ static const struct {
> .compute_exec = xehpc_compute_exec,
> .compat = COMPAT_DRIVER_XE,
> },
> + {
> + .ip_ver = IP_VER(20, 00),
> + .compute_exec = xe2lpg_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, 02),
> + .compute_exec = xe2lpg_compute_exec,
> + .compat = COMPAT_DRIVER_XE,
> + },
> {
> .ip_ver = IP_VER(20, 04),
> .compute_exec = xe2lpg_compute_exec,
> @@ -1719,11 +1734,27 @@ static const struct {
> bool threadgroup_preemption);
> uint32_t compat;
> } intel_compute_preempt_batches[] = {
> + {
> + .ip_ver = IP_VER(20, 00),
> + .compute_exec = xe2lpg_compute_preempt_exec,
> + .compat = COMPAT_DRIVER_XE,
> + },
> + {
> + .ip_ver = IP_VER(20, 01),
> + .compute_exec = xe2lpg_compute_preempt_exec,
> + .compat = COMPAT_DRIVER_XE,
> + },
> + {
> + .ip_ver = IP_VER(20, 02),
> + .compute_exec = xe2lpg_compute_preempt_exec,
> + .compat = COMPAT_DRIVER_XE,
> + },
> {
> .ip_ver = IP_VER(20, 04),
> .compute_exec = xe2lpg_compute_preempt_exec,
> .compat = COMPAT_DRIVER_XE,
> },
> +
nit: Unwanted space
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
> };
>
> static bool __run_intel_compute_kernel_preempt(int fd,
> diff --git a/lib/intel_compute_square_kernels.c b/lib/intel_compute_square_kernels.c
> index efd55da0b9..39c34dc5e0 100644
> --- a/lib/intel_compute_square_kernels.c
> +++ b/lib/intel_compute_square_kernels.c
> @@ -3866,6 +3866,34 @@ 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, 00),
> + .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, 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, 02),
> + .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),
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH i-g-t] BMG: lib/intel_compute: Enable compute tests for BMG
2024-07-22 10:00 ` Nirmoy Das
@ 2024-07-22 10:02 ` Nirmoy Das
0 siblings, 0 replies; 3+ messages in thread
From: Nirmoy Das @ 2024-07-22 10:02 UTC (permalink / raw)
To: Zbigniew Kempczyński, igt-dev; +Cc: Nirmoy Das
On 7/22/2024 12:00 PM, Nirmoy Das wrote:
>
> On 7/22/2024 11:45 AM, Zbigniew Kempczyński wrote:
>> From: Nirmoy Das <nirmoy.das@intel.com>
>>
>> BMG is XE2 based so compute tests should run as it is.
>>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
>> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
>> ---
>> lib/intel_compute.c | 31 ++++++++++++++++++++++++++++++
>> lib/intel_compute_square_kernels.c | 28 +++++++++++++++++++++++++++
>> 2 files changed, 59 insertions(+)
>>
>> diff --git a/lib/intel_compute.c b/lib/intel_compute.c
>> index 72025a4811..54d1814f38 100644
>> --- a/lib/intel_compute.c
>> +++ b/lib/intel_compute.c
>> @@ -1449,6 +1449,21 @@ static const struct {
>> .compute_exec = xehpc_compute_exec,
>> .compat = COMPAT_DRIVER_XE,
>> },
>> + {
>> + .ip_ver = IP_VER(20, 00),
>> + .compute_exec = xe2lpg_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, 02),
>> + .compute_exec = xe2lpg_compute_exec,
>> + .compat = COMPAT_DRIVER_XE,
>> + },
>> {
>> .ip_ver = IP_VER(20, 04),
>> .compute_exec = xe2lpg_compute_exec,
>> @@ -1719,11 +1734,27 @@ static const struct {
>> bool threadgroup_preemption);
>> uint32_t compat;
>> } intel_compute_preempt_batches[] = {
>> + {
>> + .ip_ver = IP_VER(20, 00),
>> + .compute_exec = xe2lpg_compute_preempt_exec,
>> + .compat = COMPAT_DRIVER_XE,
>> + },
>> + {
>> + .ip_ver = IP_VER(20, 01),
>> + .compute_exec = xe2lpg_compute_preempt_exec,
>> + .compat = COMPAT_DRIVER_XE,
>> + },
>> + {
>> + .ip_ver = IP_VER(20, 02),
>> + .compute_exec = xe2lpg_compute_preempt_exec,
>> + .compat = COMPAT_DRIVER_XE,
>> + },
>> {
>> .ip_ver = IP_VER(20, 04),
>> .compute_exec = xe2lpg_compute_preempt_exec,
>> .compat = COMPAT_DRIVER_XE,
>> },
>> +
>
> nit: Unwanted space
>
> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Opps sorry, I didn't realize it was me as Author. Please ignore this.
>
>> };
>> static bool __run_intel_compute_kernel_preempt(int fd,
>> diff --git a/lib/intel_compute_square_kernels.c
>> b/lib/intel_compute_square_kernels.c
>> index efd55da0b9..39c34dc5e0 100644
>> --- a/lib/intel_compute_square_kernels.c
>> +++ b/lib/intel_compute_square_kernels.c
>> @@ -3866,6 +3866,34 @@ 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, 00),
>> + .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, 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, 02),
>> + .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),
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-22 10:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22 9:45 [PATCH i-g-t] BMG: lib/intel_compute: Enable compute tests for BMG Zbigniew Kempczyński
2024-07-22 10:00 ` Nirmoy Das
2024-07-22 10:02 ` Nirmoy Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox