mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/xe/oa: Allow exec_queue's to be specified only for OAG OA unit
Exec_queue's are only used for OAR/OAC functionality for OAG unit. Make this requirement explicit, which avoids complications in the code for other (non-OAG) OA units. Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Link: https://patch.msgid.link/20251202025115.373546-4-ashutosh.dixit@intel.com
This commit is contained in:
parent
16e076b036
commit
c7e269aa56
|
|
@ -2032,6 +2032,10 @@ int xe_oa_stream_open_ioctl(struct drm_device *dev, u64 data, struct drm_file *f
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (param.exec_queue_id > 0) {
|
if (param.exec_queue_id > 0) {
|
||||||
|
/* An exec_queue is only needed for OAR/OAC functionality on OAG */
|
||||||
|
if (XE_IOCTL_DBG(oa->xe, param.oa_unit->type != DRM_XE_OA_UNIT_TYPE_OAG))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
param.exec_q = xe_exec_queue_lookup(xef, param.exec_queue_id);
|
param.exec_q = xe_exec_queue_lookup(xef, param.exec_queue_id);
|
||||||
if (XE_IOCTL_DBG(oa->xe, !param.exec_q))
|
if (XE_IOCTL_DBG(oa->xe, !param.exec_q))
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user