All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [RFC PATCH 0/2] Draft: Update Xe uAPI for 32-bit compat, invasively
@ 2023-05-26  0:32 Christopher Snowhill
  2023-05-26  0:32 ` [Intel-xe] [RFC PATCH 1/2] drm/xe: Reshuffle all of the uAPI structs Christopher Snowhill
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Christopher Snowhill @ 2023-05-26  0:32 UTC (permalink / raw)
  To: intel-xe; +Cc: Ryan Houdek

This attempt brings in Maarten Lankhorst's original uAPI update, with
suggested changes made to make up the difference. As long as we're
attempting to bring up 32-bit compat capability, we may as well go
whole hog and just break things. Better that way than to deal with the
mess later.

Also introduces field validation against all of the padding and
reserved fields, which must be zero, in a separate commit.

This is the invasive update, as a draft, for comment and examination.
It's probably not going to be applied any time soon, but it's here,
and it's been updated based on the comments against the original
invasive attempt.

v3:
  Redid everything, maybe this one will be a little more permanent.
v2:
  Removed extensions checks where there were none originally. (José)
  Moved extraneous parentheses to the correct places. (Lucas)

Suggested-by: Ryan Houdek <sonicadvance1@gmail.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Christopher Snowhill <kode54@gmail.com>

Christopher Snowhill (2):
  drm/xe: Reshuffle all of the uAPI structs
  drm/xe: Validate uAPI padding and reserved fields

 drivers/gpu/drm/xe/xe_bo.c              |  6 ++-
 drivers/gpu/drm/xe/xe_engine.c          | 18 +++++--
 drivers/gpu/drm/xe/xe_exec.c            |  4 +-
 drivers/gpu/drm/xe/xe_mmio.c            |  3 +-
 drivers/gpu/drm/xe/xe_query.c           |  3 +-
 drivers/gpu/drm/xe/xe_sync.c            |  4 +-
 drivers/gpu/drm/xe/xe_vm.c              | 21 ++++++--
 drivers/gpu/drm/xe/xe_vm_madvise.c      |  3 +-
 drivers/gpu/drm/xe/xe_wait_user_fence.c |  3 +-
 include/uapi/drm/xe_drm.h               | 64 +++++++++++++++++--------
 10 files changed, 95 insertions(+), 34 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-26  1:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-26  0:32 [Intel-xe] [RFC PATCH 0/2] Draft: Update Xe uAPI for 32-bit compat, invasively Christopher Snowhill
2023-05-26  0:32 ` [Intel-xe] [RFC PATCH 1/2] drm/xe: Reshuffle all of the uAPI structs Christopher Snowhill
2023-05-26  0:32 ` [Intel-xe] [RFC PATCH 2/2] drm/xe: Validate uAPI padding and reserved fields Christopher Snowhill
2023-05-26  0:34 ` [Intel-xe] ✓ CI.Patch_applied: success for Draft: Update Xe uAPI for 32-bit compat, invasively Patchwork
2023-05-26  0:36 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-05-26  0:40 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-05-26  1:09 ` [Intel-xe] ○ CI.BAT: info " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.