Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Pottumuttu, Sai Teja" <sai.teja.pottumuttu@intel.com>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>,
	<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] drm-uapi/xe: Sync with OA uapi updates
Date: Thu, 9 Jan 2025 09:56:18 +0530	[thread overview]
Message-ID: <dd202ba1-f4bb-4307-b56f-216894e17d87@intel.com> (raw)
In-Reply-To: <20250109032331.2774067-1-ashutosh.dixit@intel.com>

On 09-01-2025 08:53, Ashutosh Dixit wrote:
> Align with kernel commit 5637797add2a ("drm/xe/oa/uapi: Expose an unblock
> after N reports OA property").
> 
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
>   include/drm-uapi/xe_drm.h | 18 +++++++++++++++++-
>   1 file changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
> index 56163eb913..08e263b3b2 100644
> --- a/include/drm-uapi/xe_drm.h
> +++ b/include/drm-uapi/xe_drm.h
> @@ -134,7 +134,7 @@ extern "C" {
>    * redefine the interface more easily than an ever growing struct of
>    * increasing complexity, and for large parts of that interface to be
>    * entirely optional. The downside is more pointer chasing; chasing across
> - * the __user boundary with pointers encapsulated inside u64.
> + * the boundary with pointers encapsulated inside u64.

I think this line change doesn't exist in kernel. Was it intentionally 
changed here for some reason?

With that addressed,
Reviewed-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>

Thanks,
Sai Teja

>    *
>    * Example chaining:
>    *
> @@ -1486,6 +1486,8 @@ struct drm_xe_oa_unit {
>   	__u64 capabilities;
>   #define DRM_XE_OA_CAPS_BASE		(1 << 0)
>   #define DRM_XE_OA_CAPS_SYNCS		(1 << 1)
> +#define DRM_XE_OA_CAPS_OA_BUFFER_SIZE	(1 << 2)
> +#define DRM_XE_OA_CAPS_WAIT_NUM_REPORTS	(1 << 3)
>   
>   	/** @oa_timestamp_freq: OA timestamp freq */
>   	__u64 oa_timestamp_freq;
> @@ -1651,6 +1653,20 @@ enum drm_xe_oa_property_id {
>   	 * to the VM bind case.
>   	 */
>   	DRM_XE_OA_PROPERTY_SYNCS,
> +
> +	/**
> +	 * @DRM_XE_OA_PROPERTY_OA_BUFFER_SIZE: Size of OA buffer to be
> +	 * allocated by the driver in bytes. Supported sizes are powers of
> +	 * 2 from 128 KiB to 128 MiB. When not specified, a 16 MiB OA
> +	 * buffer is allocated by default.
> +	 */
> +	DRM_XE_OA_PROPERTY_OA_BUFFER_SIZE,
> +
> +	/**
> +	 * @DRM_XE_OA_PROPERTY_WAIT_NUM_REPORTS: Number of reports to wait
> +	 * for before unblocking poll or read
> +	 */
> +	DRM_XE_OA_PROPERTY_WAIT_NUM_REPORTS,
>   };
>   
>   /**

  parent reply	other threads:[~2025-01-09  4:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09  3:23 [PATCH i-g-t] drm-uapi/xe: Sync with OA uapi updates Ashutosh Dixit
2025-01-09  4:22 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-01-09  4:26 ` Pottumuttu, Sai Teja [this message]
2025-01-09  5:15   ` [PATCH i-g-t] " Dixit, Ashutosh
2025-01-09  4:32 ` ✗ i915.CI.BAT: failure for " Patchwork
2025-01-09  8:01 ` ✓ Xe.CI.BAT: success for drm-uapi/xe: Sync with OA uapi updates (rev2) Patchwork
2025-01-09  9:20 ` ✗ i915.CI.BAT: failure " Patchwork
2025-01-11  6:15 ` ✗ Xe.CI.Full: failure for drm-uapi/xe: Sync with OA uapi updates Patchwork
2025-01-11 10:23 ` ✗ Xe.CI.Full: failure for drm-uapi/xe: Sync with OA uapi updates (rev2) 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=dd202ba1-f4bb-4307-b56f-216894e17d87@intel.com \
    --to=sai.teja.pottumuttu@intel.com \
    --cc=ashutosh.dixit@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