Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: Francois Dugast <francois.dugast@intel.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Vivi,  Rodrigo" <rodrigo.vivi@intel.com>
Subject: Re: [Intel-xe] [PATCH v3 26/30] drm/xe/uapi: Add pad to drm_xe_engine_class_instance
Date: Mon, 9 Oct 2023 10:05:33 -0700	[thread overview]
Message-ID: <ZSQy3ZN7daBNBzfk@unerlige-ril> (raw)
In-Reply-To: <ZR4g2l8Gd3TmWuzc@unerlige-ril>

On Wed, Oct 04, 2023 at 07:35:06PM -0700, Umesh Nerlige Ramappa wrote:
>On Wed, Oct 04, 2023 at 12:55:19PM +0200, Francois Dugast wrote:
>>On Tue, Oct 03, 2023 at 11:15:00AM -0700, Umesh Nerlige Ramappa wrote:
>>>On Fri, Sep 29, 2023 at 09:45:35AM -0700, Souza, Jose wrote:
>>>> On Fri, 2023-09-29 at 09:00 -0700, Umesh Nerlige Ramappa wrote:
>>>> > On Fri, Sep 29, 2023 at 11:06:53AM +0200, Francois Dugast wrote:
>>>> > > Hi Umesh,
>>>> > >
>>>> > > On Thu, Sep 28, 2023 at 05:36:39PM -0700, Umesh Nerlige Ramappa wrote:
>>>> > > > On Tue, Sep 26, 2023 at 12:55:36PM +0000, Francois Dugast wrote:
>>>> > > > > Add pad to reserve space for future uses such as special configurations
>>>> > > > > for media.
>>>> > > > >
>>>> > > > > Signed-off-by: Francois Dugast <francois.dugast@intel.com>
>>>> > > >
>>>> > > > I saw a comment in v4 that you dropped the patches that are not reviewed, so
>>>> > > > this is:
>>>> > > >
>>>> > > > Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>>>> > > >
>>>> > > > Hoping this will be part of the final series that you merge since the
>>>> > > > ENGINE_CYCLES query is using this structure and relies on this padding.
>>>> > >
>>>> > > Actually using your original submission [1] this patch should not longer
>>>> > > be necessary, right? It includes:
>>>> > >
>>>> > >   __u16 rsvd;
>>>> > >
>>>> > > [1] https://lore.kernel.org/intel-xe/20230814223734.375449-5-umesh.nerlige.ramappa@intel.com/
>>>> >
>>>> > Hmmm, I failed to notice that earlier. My bad. v4 looks good, you can
>>>> > ignore this.
>>>>
>>>> It is named as rsvd but it should be a pad.
>>>>
>>>> We can't leave as reserved to be future used to return media engine capabilities because drm_xe_engine_class_instance is also used as input to other
>>>> uAPIs and that is useless information after initialization that UMDs should not need to carry around.
>>>>
>>>> Instead DRM_XE_DEVICE_QUERY_ENGINES should return something like
>>>>
>>>> struct drm_xe_engine_info {
>>>> 	struct drm_xe_engine_class_instance instance;
>>>> 	__u32 rsvd;/* future could be __u16 capabilities; __u16 rsvd; */
>>>> };
>>>>
>>>> This can be fixed in uAPI take 2.
>>>
>>>Hi Francois,
>>>
>>>As per Jose's inputs, I posted a new version of my series here -
>>>https://patchwork.freedesktop.org/patch/560614/?series=124565&rev=1.
>>>
>>>Can you please pick up patch 3/3 from here. Note that just adding the pad
>>>does not resolve the issue I was mentioning in my original series.  We also
>>>need to explicitly initialize the pad to 0 in this case. I have included
>>>that change as well in the above patch.
>>>
>>>Thanks,
>>>Umesh
>>
>>Hi Umesh,
>>
>>Thanks for the update. An earlier version was already included in take 1
>>of the uAPI changes [1],
>
>Not sure if the below link in [1] is what you wanted to share. It 
>points to the series I posted. I am guessing you were intending to 
>point to a take 1 series.

fixup here - https://patchwork.freedesktop.org/series/124690/

Thanks,
Umesh
>
>Thanks,
>Umesh
>
>>against which UMDs are currently aligning, so it
>>would be best to leave take 1 as it is and include your fix as a fixup in
>>take 2. Could you please send a fixup instead?
>>
>>[1] https://patchwork.freedesktop.org/patch/560614/?series=124565&rev=1
>>
>>Francois
>>
>>>>
>>>> >
>>>> > Thanks,
>>>> > Umesh
>>>> > >
>>>> > > Francois
>>>> > >
>>>> > > >
>>>> > > > Thanks,
>>>> > > > Umesh
>>>> > > > > ---
>>>> > > > > include/uapi/drm/xe_drm.h | 2 ++
>>>> > > > > 1 file changed, 2 insertions(+)
>>>> > > > >
>>>> > > > > diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
>>>> > > > > index 79e47708d526..84091860c7d2 100644
>>>> > > > > --- a/include/uapi/drm/xe_drm.h
>>>> > > > > +++ b/include/uapi/drm/xe_drm.h
>>>> > > > > @@ -143,6 +143,8 @@ struct drm_xe_engine_class_instance {
>>>> > > > >
>>>> > > > > 	__u16 engine_instance;
>>>> > > > > 	__u16 gt_id;
>>>> > > > > +	/** @pad: MBZ */
>>>> > > > > +	__u32 pad;
>>>> > > > > };
>>>> > > > >
>>>> > > > > /**
>>>> > > > > --
>>>> > > > > 2.34.1
>>>> > > > >
>>>>

  reply	other threads:[~2023-10-09 17:06 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 12:55 [Intel-xe] [PATCH v3 00/30] uAPI Alignment - take 1 v3 Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 01/30] drm/xe: Fix array bounds check for queries Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 02/30] drm/xe: Set the correct type for xe_to_user_engine_class Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 03/30] drm/xe: Correlate engine and cpu timestamps with better accuracy Francois Dugast
2023-09-26 16:42   ` Souza, Jose
2023-09-26 18:43   ` Umesh Nerlige Ramappa
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 04/30] drm/xe/uapi: Separate VM_BIND's operation and flag Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 05/30] drm/xe/vm: Remove VM_BIND_OP macro Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 06/30] drm/xe/uapi: Remove MMIO ioctl Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 07/30] drm/xe: Fix xe_exec_queue_is_idle for parallel exec queues Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 08/30] drm/xe: Deprecate XE_EXEC_QUEUE_SET_PROPERTY_COMPUTE_MODE implementation Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 09/30] drm/xe: Rename exec_queue_kill_compute to xe_vm_remove_compute_exec_queue Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 10/30] drm/xe: Remove XE_EXEC_QUEUE_SET_PROPERTY_COMPUTE_MODE from uAPI Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 11/30] drm/xe/uapi: Use common drm_xe_ext_set_property extension Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 12/30] drm/xe: Kill XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS extension Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 13/30] drm/xe/uapi: Kill DRM_XE_UFENCE_WAIT_VM_ERROR Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 14/30] drm/xe: Remove async worker and rework sync binds Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 15/30] drm/xe: Fix VM bind out-sync signaling ordering Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 16/30] drm/xe/uapi: Document drm_xe_query_gt Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 17/30] drm/xe/uapi: Replace useless 'instance' per unique gt_id Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 18/30] drm/xe/uapi: Remove unused field of drm_xe_query_gt Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 19/30] drm/xe/uapi: Rename gts to gt_list Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 20/30] drm/xe/uapi: Fix naming of XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 21/30] drm/xe/uapi: Add documentation for query Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 22/30] drm/xe/uapi: Crystal Reference Clock updates Francois Dugast
2023-09-26 16:40   ` Souza, Jose
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 23/30] drm/xe: Extend drm_xe_vm_bind_op Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 24/30] drm/xe: Add uAPI to query micro-controler firmware version Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 25/30] drm/xe/uapi: Document DRM_XE_DEVICE_QUERY_HWCONFIG Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 26/30] drm/xe/uapi: Add pad to drm_xe_engine_class_instance Francois Dugast
2023-09-29  0:36   ` Umesh Nerlige Ramappa
2023-09-29  9:06     ` Francois Dugast
2023-09-29 16:00       ` Umesh Nerlige Ramappa
2023-09-29 16:45         ` Souza, Jose
2023-10-03 18:15           ` Umesh Nerlige Ramappa
2023-10-04 10:55             ` Francois Dugast
2023-10-05  2:35               ` Umesh Nerlige Ramappa
2023-10-09 17:05                 ` Umesh Nerlige Ramappa [this message]
2023-10-09 17:16                   ` Francois Dugast
2023-10-06  2:07               ` Umesh Nerlige Ramappa
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 27/30] drm/xe: Extend uAPI to query HuC micro-controler firmware version Francois Dugast
2023-09-26 16:46   ` Souza, Jose
2023-09-27 17:04     ` Rodrigo Vivi
2023-09-27 17:22       ` Souza, Jose
2023-10-04  0:48         ` John Harrison
2023-10-09 13:08           ` Francois Dugast
2023-10-09 13:35             ` Souza, Jose
2023-10-10 19:10   ` Lucas De Marchi
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 28/30] drm/xe: Remove useless query config num_params Francois Dugast
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 29/30] drm/xe/uapi: Add missing DRM_ prefix in uAPI constants Francois Dugast
2023-09-26 16:24   ` Souza, Jose
2023-09-26 12:55 ` [Intel-xe] [PATCH v3 30/30] drm/xe/uapi: Add _FLAG to uAPI constants usable for flags Francois Dugast
2023-09-26 13:12 ` [Intel-xe] ✓ CI.Patch_applied: success for uAPI Alignment - take 1 v3 Patchwork
2023-09-26 13:13 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-26 13:14 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-26 13:21 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-09-26 13:22 ` [Intel-xe] ✗ CI.Hooks: failure " Patchwork
2023-09-26 13:23 ` [Intel-xe] ✓ CI.checksparse: success " Patchwork
2023-09-26 13:49 ` [Intel-xe] ✗ CI.BAT: failure " Patchwork
2023-10-04  0:31 ` [Intel-xe] [PATCH v3 00/30] " John Harrison

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=ZSQy3ZN7daBNBzfk@unerlige-ril \
    --to=umesh.nerlige.ramappa@intel.com \
    --cc=francois.dugast@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=rodrigo.vivi@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