Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: janga.rahul.kumar@intel.com, igt-dev@lists.freedesktop.org,
	ramadevi.gandi@intel.com, nirmoy.das@intel.com
Subject: Re: [PATCH i-g-t 1/3] lib/intel_compute_square_kernels: Add xe2lpg wmtp sip and long running opencl kernel
Date: Thu, 28 Dec 2023 11:49:09 +0100	[thread overview]
Message-ID: <8e7a8f4b-a4c8-4543-82bb-54c8ec66d321@linux.intel.com> (raw)
In-Reply-To: <20231228001510.1399329-2-janga.rahul.kumar@intel.com>

Hi Rahul,

On 12/28/2023 1:15 AM, janga.rahul.kumar@intel.com wrote:
> From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
>
> WMTP sip is responsible for save/restore during preemption.
> Compute square kernel with an loop of INT_MAX is used as
> long running kerenl which can used to exercise preemption
> scenarios when combined with short running opencl kernel.
>
> Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
> ---
>   lib/intel_compute.h                |    4 +
>   lib/intel_compute_square_kernels.c | 4927 ++++++++++++++++++++++++++++
>   2 files changed, 4931 insertions(+)
>
> diff --git a/lib/intel_compute.h b/lib/intel_compute.h
> index bd0348da3..9ea87b528 100644
> --- a/lib/intel_compute.h
> +++ b/lib/intel_compute.h
> @@ -25,6 +25,10 @@ struct intel_compute_kernels {
>   	int ip_ver;
>   	unsigned int size;
>   	const unsigned char *kernel;
> +	unsigned int sip_kernel_size;
> +	const unsigned char *sip_kernel;
> +	unsigned int long_kernel_size;
> +	const unsigned char *long_kernel;
>   };
>   
>   extern const struct intel_compute_kernels intel_compute_square_kernels[];
> diff --git a/lib/intel_compute_square_kernels.c b/lib/intel_compute_square_kernels.c
> index 682fdfcf6..f8539a2c0 100644
> --- a/lib/intel_compute_square_kernels.c
> +++ b/lib/intel_compute_square_kernels.c
> @@ -214,6 +214,4929 @@ static const unsigned char xe2lpg_kernel_square_bin[] = {
>   	0x04, 0x00, 0x00, 0x00, 0x0c, 0x7f, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00
>   };
>   
> +static const unsigned char xe2lpg_kernel_sip_bin[] = {
> +	0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00,
> +	0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00,
> +	0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00,
> +	0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00,
> +	0x61, 0x09, 0x00, 0x80, 0x20, 0x02, 0xB5, 0x00,
> +	0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
<snip>
>
> +	0x10, 0x80, 0x00, 0x02, 0xFF, 0xFF, 0xFF, 0xFE,
> +	0x60, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x65, 0x09, 0x00, 0x80, 0x20, 0x82, 0x01, 0x80,
> +	0x00, 0x80, 0x00, 0x02, 0xFF, 0xFF, 0xFF, 0x7F,
> +	0x60, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
> +};
> +
> +static unsigned char xe2lpg_sqaure_int_max_loop_bin[] = {
Please add a opencl code as reference.
> +

<snip>

Regards,

Nirmoy

> +
>   const struct intel_compute_kernels intel_compute_square_kernels[] = {
>   	{
>   		.ip_ver = IP_VER(12, 0),
> @@ -239,6 +5162,10 @@ const struct intel_compute_kernels intel_compute_square_kernels[] = {
>   		.ip_ver = IP_VER(20, 04),
>   		.size = sizeof(xe2lpg_kernel_square_bin),
>   		.kernel = xe2lpg_kernel_square_bin,
> +		.long_kernel = xe2lpg_sqaure_int_max_loop_bin,
> +		.long_kernel_size = sizeof(xe2lpg_sqaure_int_max_loop_bin),
> +		.sip_kernel = xe2lpg_kernel_sip_bin,
> +		.sip_kernel_size = sizeof(xe2lpg_kernel_sip_bin),
>   	},
>   	{}
>   };

  reply	other threads:[~2023-12-28 10:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-28  0:15 [PATCH i-g-t 0/3] Add LNL compute preempt test janga.rahul.kumar
2023-12-28  0:15 ` [PATCH i-g-t 1/3] lib/intel_compute_square_kernels: Add xe2lpg wmtp sip and long running opencl kernel janga.rahul.kumar
2023-12-28 10:49   ` Nirmoy Das [this message]
2023-12-28  0:15 ` [PATCH i-g-t 2/3] lib/intel_compute: Add LNL compute preempt library support janga.rahul.kumar
2023-12-28 11:07   ` Nirmoy Das
2023-12-28  0:15 ` [PATCH i-g-t 3/3] tests/intel/xe_compute_preempt: Add compute preempt test janga.rahul.kumar

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=8e7a8f4b-a4c8-4543-82bb-54c8ec66d321@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=janga.rahul.kumar@intel.com \
    --cc=nirmoy.das@intel.com \
    --cc=ramadevi.gandi@intel.com \
    /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