public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "K V P, Satyanarayana" <satyanarayana.k.v.p@intel.com>
Cc: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>,
	intel-xe@lists.freedesktop.org,
	"Michal Wajdeczko" <michal.wajdeczko@intel.com>,
	"Piotr Piórkowski" <piotr.piorkowski@intel.com>,
	"Matthew Brost" <matthew.brost@intel.com>,
	"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
	"Michał Winiarski" <michal.winiarski@intel.com>,
	"Dunajski Bartosz" <bartosz.dunajski@intel.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [RFC v6 1/1] drm/xe/pf: Restrict device query responses in admin-only PF mode
Date: Wed, 25 Mar 2026 09:11:53 -0400	[thread overview]
Message-ID: <acPfGUVYXlST1eGt@intel.com> (raw)
In-Reply-To: <3b1013f3-8ba2-4b13-888a-000e26f4128a@intel.com>

On Wed, Mar 25, 2026 at 10:51:18AM +0530, K V P, Satyanarayana wrote:
>    On 25-Mar-26 2:47 AM, Dixit, Ashutosh wrote:                                 
>                                                                                 
>    On Sun, 15 Mar 2026 23:41:02 -0700, Satyanarayana K V P wrote:               
>                                                                                 
>    >---                                                                         
>    >V5 -> V6:                                                                   
>    >- Updated commit message.                                                   
>    >- Return number of engines and memory regions as zero instead of returning  
>    >query size as zero (Michal Wajdeczko).                                      
>    >- Allow all other query IOCTLs excepts query_engines and query_mem_regions  
>    >(Michal Wajdeczko).                                                         
>                                                                                 
>    Can someone explain the reason to move away from the approach in v5? Afais   
>    v6 has issues of this sort:                                                  
>                                                                                 
>    The V6 is due to comment from Rodrigo from V5 "                              
>                                                                                 
>  Looking to this patch I got myself wondering if query.size == 0 is             
>  long-term proof...   I mean, if we need to get some OA/RAS/telemetry           
>  kind of API that end up needing some kind of query information....             

Exactly my concern with the previous approach as well. It is not future proof.
If we later decide that any query is needed in the admin only mode we wouldn't
be able to reuse this generic query uapi and would be forced to create a new
entry.

>                                                                                 
>  Michals, thoughts on this?                                                     
>                                                                                 
>  I know, I know, this solution is indeed much better than my                    
>  proposal of no ioctl exposed. But I mean, since we are taking                  
>  this path and allowing some ioctl. Shouldn't we prepare at least               
>  the query for that and then only limiting the number of engines                
>  and memory regions to zero?"                                                   
>                                                                                 
>  and comment from you (Dixit, Ashutosh)as well.                                 
>                                                                                 
>  "Also, there were some questions about supporting OA in the                    
>  admin-only-pf. Here are some high level points about this:                     
>                                                                                 
>  * OA/EUSTALL is not supported in VF's in current products, this might          
>    change in the future                                                         
>  * OA/EUSTALL in admin-only-pf can be used to profile global counts across      
>    VF's                                                                         
>  * OA/EUSTALL themselves don't allow workload submission etc. They only         
>    allow reading profiling data from HW                                         
>  * OA/EUSTALL in admin-only-pf will need the observation ioctl to be            
>    supported. Also, some other query ioctls such as hw configuration,           
>    topology, frequency will be needed to make sense of OA/EUSTALL data."        
>                                                                                 
>                                                                                 
>    * query_engines will return 0 engines but query_hwconfig will return > 0     
>      engines                                                                    
>    * query_engines will return 0 engines but query_oa_units will list out the   
>      engines                                                                    
>    * query_oa_units will return valid oa support but observation ioctl will     
>      fail                                                                       
>                                                                                 
>    v5 seems to have avoided contradictions of this sort. Or this doesn't        
>    matter? Thanks.                                                              
>                                                                                 
>    Since we are not exposing any other IOCTLs, even if query_hwconfig  and      
>                                                                                 
>  query_oa_units  find number of engines > 0, the UMD can't submit any WL. So,   
>  should be fine right.                                                          

I agree. What we really want with the admin only mode right now is to prevent
job scheduling and memory allocation. So it should be fine.


  reply	other threads:[~2026-03-25 13:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-16  6:41 [RFC v6 0/1] Do not create drm device for PF only admin mode Satyanarayana K V P
2026-03-16  6:41 ` [RFC v6 1/1] drm/xe/pf: Restrict device query responses in admin-only PF mode Satyanarayana K V P
2026-03-23 22:03   ` Rodrigo Vivi
2026-03-24 21:17   ` Dixit, Ashutosh
2026-03-25  5:21     ` K V P, Satyanarayana
2026-03-25 13:11       ` Rodrigo Vivi [this message]
2026-03-25  8:38     ` Michal Wajdeczko
2026-03-27  5:34       ` Dixit, Ashutosh
2026-03-27 13:26         ` Rodrigo Vivi
2026-03-16  6:47 ` ✓ CI.KUnit: success for Do not create drm device for PF only admin mode (rev5) Patchwork
2026-03-16  7:27 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-17  8:16 ` ✗ Xe.CI.FULL: failure " 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=acPfGUVYXlST1eGt@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=bartosz.dunajski@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=michal.winiarski@intel.com \
    --cc=piotr.piorkowski@intel.com \
    --cc=satyanarayana.k.v.p@intel.com \
    --cc=thomas.hellstrom@linux.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