Skip to content

uAPI Alignment - take 1 v2

Rodrigo Vivi intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest20 patches 15 repliesIn review
  2. v117 patches 14 repliesSuperseded

Changes in v2 from the cover letter

This v2 has 3 extra patches that was missing on yesterday's submission. But that aligns with the IGT series sent yesterday.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20drm/xe: Fix array bounds check for queriesdrivers/gpu/drm/xe/xe_query.c+1 -10 replies
2/20drm/xe: Set the correct type for xe_to_user_engine_classdrivers/gpu/drm/xe/xe_query.c+1 -10 replies
3/20drm/xe: Correlate engine and cpu timestamps with better accuracydrivers/gpu/drm/xe/xe_query.c include/uapi/drm/xe_drm.h+218 -187 replies
4/20drm/xe/uapi: Separate VM_BIND's operation and flagdrivers/gpu/drm/xe/xe_vm.c include/uapi/drm/xe_drm.h+24 -190 replies
5/20drm/xe/vm: Remove VM_BIND_OP macrodrivers/gpu/drm/xe/xe_vm.c+19 -230 replies
6/20drm/xe/uapi: Remove MMIO ioctldrivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_mmio.c include/uapi/drm/xe_drm.h+4 -1300 replies
7/20drm/xe: Fix xe_exec_queue_is_idle for parallel exec queuesdrivers/gpu/drm/xe/xe_exec_queue.c+11 -20 replies
8/20drm/xe: Deprecate XE_EXEC_QUEUE_SET_PROPERTY_COMPUTE_MODE implementationdrivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_exec_queue_types.h+16 -470 replies
9/20drm/xe: Rename exec_queue_kill_compute to xe_vm_remove_compute_exec_queuedrivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_vm.c drivers/gpu/drm/xe/xe_vm.h+24 -180 replies
10/20drm/xe: Remove XE_EXEC_QUEUE_SET_PROPERTY_COMPUTE_MODE from uAPIdrivers/gpu/drm/xe/xe_exec_queue.c include/uapi/drm/xe_drm.h+6 -200 replies
11/20drm/xe/uapi: Use common drm_xe_ext_set_property extensiondrivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_vm.c include/uapi/drm/xe_drm.h+5 -200 replies
12/20drm/xe: Kill XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS extensiondrivers/gpu/drm/xe/xe_vm.c include/uapi/drm/xe_drm.h+4 -1480 replies
13/20drm/xe/uapi: Document drm_xe_query_gtinclude/uapi/drm/xe_drm.h+43 -220 replies
14/20drm/xe/uapi: Replace useless 'instance' per unique gt_iddrivers/gpu/drm/xe/xe_gt_types.h drivers/gpu/drm/xe/xe_pci.c drivers/gpu/drm/xe/xe_query.c +1 more+4 -80 replies
15/20drm/xe/uapi: Remove unused field of drm_xe_query_gtinclude/uapi/drm/xe_drm.h+0 -20 replies
16/20drm/xe/uapi: Rename gts to gt_listdrivers/gpu/drm/xe/xe_query.c include/uapi/drm/xe_drm.h+29 -290 replies
17/20drm/xe/uapi: Fix naming of XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITYdrivers/gpu/drm/xe/xe_query.c include/uapi/drm/xe_drm.h+3 -30 replies
18/20drm/xe/uapi: Add documentation for queryinclude/uapi/drm/xe_drm.h+38 -30 replies
19/20drm/xe/uapi: Crystal Reference Clock updatesdrivers/gpu/drm/xe/xe_query.c include/uapi/drm/xe_drm.h+6 -95 replies
20/20drm/xe: Extend drm_xe_vm_bind_opinclude/uapi/drm/xe_drm.h+3 -00 replies

Reviews trailers per patch

15 of 20 patches have a Reviewed-by or Acked-by.

PatchNiranjana VishwanathapuraMatthew BrostJosé Roberto de SouzaLucas De MarchiMatt Roper
1/20R-b
2/20R-b
3/20
4/20
5/20R-b
6/20R-b R-b
7/20R-b
8/20R-b
9/20R-b
10/20R-b
11/20R-b
12/20R-b
13/20R-b
14/20R-b
15/20R-b
16/20R-b
17/20R-b
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [Intel-xe] [PATCH v2 00/20] uAPI Alignment - take 1 v2

v2:
This v2 has 3 extra patches that was missing on yesterday's submission. But that aligns with the IGT series sent yesterday.

Also I'm glad that Mesa reacted super fast and we already have the MR ready that aligns with v1 sent yesterday:

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25300

Thank you Jose!

v1:
As a result of the uAPI review efforts started by Thomas[1], we have identified many updates on our uAPI that would lead to breakage in the compatibility. What it is not acceptable after we are merged upstream. So, let's break it before it is too late, and start upstreaming a good, reliable and clean uapi.

Most of this work on putting these patches together for a single shot was led by Francois.

The IGT counter part of this series is available as well[2].

[1] - https://lore.kernel.org/all/863bebd0c624d6fc2b38c0a06b63e468b4185128.camel@l\
inux.intel.com/
[2] - https://lore.kernel.org/all/[email protected]

Ashutosh Dixit (1):
drm/xe/uapi: Use common drm_xe_ext_set_property extension

Francois Dugast (5):
drm/xe/uapi: Separate VM_BIND's operation and flag drm/xe/vm: Remove VM_BIND_OP macro
drm/xe/uapi: Remove MMIO ioctl
drm/xe/uapi: Fix naming of XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY drm/xe/uapi: Add documentation for query

Matthew Brost (4):
drm/xe: Fix xe_exec_queue_is_idle for parallel exec queues drm/xe: Deprecate XE_EXEC_QUEUE_SET_PROPERTY_COMPUTE_MODE
implementation
drm/xe: Rename exec_queue_kill_compute to
xe_vm_remove_compute_exec_queue
drm/xe: Remove XE_EXEC_QUEUE_SET_PROPERTY_COMPUTE_MODE from uAPI

Mika Kuoppala (1):
drm/xe: Extend drm_xe_vm_bind_op

Rodrigo Vivi (6):
drm/xe: Kill XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS extension drm/xe/uapi: Document drm_xe_query_gt
drm/xe/uapi: Replace useless 'instance' per unique gt_id drm/xe/uapi: Remove unused field of drm_xe_query_gt drm/xe/uapi: Rename gts to gt_list
drm/xe/uapi: Crystal Reference Clock updates

Umesh Nerlige Ramappa (3):
drm/xe: Fix array bounds check for queries
drm/xe: Set the correct type for xe_to_user_engine_class drm/xe: Correlate engine and cpu timestamps with better accuracy

 drivers/gpu/drm/xe/xe_device.c           |   1 -
 drivers/gpu/drm/xe/xe_exec_queue.c       |  99 ++-----
 drivers/gpu/drm/xe/xe_exec_queue_types.h |   6 +-
 drivers/gpu/drm/xe/xe_gt_types.h         |   2 +-
 drivers/gpu/drm/xe/xe_mmio.c             | 102 -------
 drivers/gpu/drm/xe/xe_pci.c              |   4 -
 drivers/gpu/drm/xe/xe_query.c            | 186 +++++++++++--
 drivers/gpu/drm/xe/xe_vm.c               | 221 +++++-----------
 drivers/gpu/drm/xe/xe_vm.h               |   1 +
 include/uapi/drm/xe_drm.h                | 322 +++++++++++++----------
 10 files changed, 440 insertions(+), 504 deletions(-)
Signature · 1 line
2.41.0