intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PULL] drm-xe-fixes
@ 2024-01-25  8:29 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-01-25  8:29 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: dim-tools, dri-devel, Thomas Hellström, Lucas De Marchi,
	Oded Gabbay, Maxime Ripard, Thomas Zimmermann, Rodrigo Vivi,
	intel-gfx

Hi, Dave, Sima

The Xe fixes PR for 6.8-rc2.

Thanks, Thomas.

The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d:

  Linux 6.8-rc1 (2024-01-21 14:11:32 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-01-25

for you to fetch changes up to 9e3a13f3eef6b14a26cc2660ca2f43f0e46b4318:

  drm/xe: Remove PVC from xe_wa kunit tests (2024-01-24 11:13:55 +0100)

----------------------------------------------------------------
Driver Changes:
- Make an ops struct static
- Fix an implicit 0 to NULL conversion
- A couple of 32-bit fixes
- A migration coherency fix for Lunar Lake.
- An error path vm id leak fix
- Remove PVC references in kunit tests

----------------------------------------------------------------
Himal Prasad Ghimiray (1):
      drm/xe/xe2: Use XE_CACHE_WB pat index

Lucas De Marchi (4):
      drm/xe: Use _ULL for u64 division
      drm/xe/mmio: Cast to u64 when printing
      drm/xe/display: Avoid calling readq()
      drm/xe: Remove PVC from xe_wa kunit tests

Moti Haimovski (1):
      drm/xe/vm: bugfix in xe_vm_create_ioctl

Thomas Hellström (2):
      drm/xe/dmabuf: Make xe_dmabuf_ops static
      drm/xe: Use a NULL pointer instead of 0.

 .../xe/compat-i915-headers/gem/i915_gem_object.h   | 11 +++++------
 drivers/gpu/drm/xe/tests/xe_wa_test.c              |  3 ---
 drivers/gpu/drm/xe/xe_device.c                     |  2 +-
 drivers/gpu/drm/xe/xe_dma_buf.c                    |  2 +-
 drivers/gpu/drm/xe/xe_hwmon.c                      |  2 +-
 drivers/gpu/drm/xe/xe_migrate.c                    | 14 ++++++-------
 drivers/gpu/drm/xe/xe_mmio.c                       |  4 ++--
 drivers/gpu/drm/xe/xe_vm.c                         | 23 +++++++++++++---------
 8 files changed, 31 insertions(+), 30 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-02-01 11:37 Thomas Hellstrom
  2024-02-01 11:42 ` Thomas Hellström
  0 siblings, 1 reply; 66+ messages in thread
From: Thomas Hellstrom @ 2024-02-01 11:37 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: dim-tools, dri-devel, Thomas Hellström, Lucas De Marchi,
	Oded Gabbay, Maxime Ripard, Thomas Zimmermann, Rodrigo Vivi,
	intel-gfx

Hi Dave and Sima,

The xe fixes for 6.8-rc2.

drm-xe-fixes-2024-02-01:
UAPI Changes:
- Only allow a single user-fence per exec / bind.
  The reason for this clarification fix is a limitation in the implementation
  which can be lifted moving forward, if needed.

Driver Changes:
- A crash fix
- A fix for an assert due to missing mem_acces ref
- Some sparse warning fixes
- Two fixes for compilation failures on various odd
  combinations of gcc / arch pointed out on LKML.
- Fix a fragile partial allocation pointed out on LKML.

Cross-driver Change:
- A sysfs ABI documentation warning fix
  This also touches i915 and is acked by i915 maintainers.

Thanks,
Thomas

The following changes since commit 9e3a13f3eef6b14a26cc2660ca2f43f0e46b4318:

  drm/xe: Remove PVC from xe_wa kunit tests (2024-01-24 11:13:55 +0100)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-02-01

for you to fetch changes up to 5f16ee27cd5abd5166e28b2311ac693c204063ff:

  drm/hwmon: Fix abi doc warnings (2024-02-01 12:04:52 +0100)

----------------------------------------------------------------
UAPI Changes:
- Only allow a single user-fence per exec / bind.
  The reason for this clarification fix is a limitation in the implementation
  which can be lifted moving forward, if needed.

Driver Changes:
- A crash fix
- A fix for an assert due to missing mem_acces ref
- Only allow a single user-fence per exec / bind.
- Some sparse warning fixes
- Two fixes for compilation failures on various odd
  combinations of gcc / arch pointed out on LKML.
- Fix a fragile partial allocation pointed out on LKML.

Cross-driver Change:
- A sysfs ABI documentation warning fix
  This also touches i915 and is acked by i915 maintainers.

----------------------------------------------------------------
Badal Nilawar (1):
      drm/hwmon: Fix abi doc warnings

José Roberto de Souza (1):
      drm/xe: Fix crash in trace_dma_fence_init()

Matt Roper (1):
      drm/xe: Grab mem_access when disabling C6 on skip_guc_pc platforms

Matthew Brost (3):
      drm/xe: Only allow 1 ufence per exec / bind IOCTL
      drm/xe: Use LRC prefix rather than CTX prefix in lrc desc defines
      drm/xe: Make all GuC ABI shift values unsigned

Thomas Hellström (3):
      drm/xe: Annotate mcr_[un]lock()
      drm/xe: Don't use __user error pointers
      drm/xe/vm: Subclass userptr vmas

 .../ABI/testing/sysfs-driver-intel-i915-hwmon      |  14 +-
 .../ABI/testing/sysfs-driver-intel-xe-hwmon        |  14 +-
 drivers/gpu/drm/xe/abi/guc_actions_abi.h           |   4 +-
 drivers/gpu/drm/xe/abi/guc_actions_slpc_abi.h      |   4 +-
 drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h |   8 +-
 drivers/gpu/drm/xe/abi/guc_klvs_abi.h              |   6 +-
 drivers/gpu/drm/xe/abi/guc_messages_abi.h          |  20 +--
 drivers/gpu/drm/xe/xe_exec.c                       |  10 +-
 drivers/gpu/drm/xe/xe_gt_mcr.c                     |   4 +-
 drivers/gpu/drm/xe/xe_gt_pagefault.c               |  11 +-
 drivers/gpu/drm/xe/xe_guc_pc.c                     |   2 +
 drivers/gpu/drm/xe/xe_hw_fence.c                   |   6 +-
 drivers/gpu/drm/xe/xe_lrc.c                        |  14 +-
 drivers/gpu/drm/xe/xe_pt.c                         |  32 ++--
 drivers/gpu/drm/xe/xe_query.c                      |  50 +++----
 drivers/gpu/drm/xe/xe_sync.h                       |   5 +
 drivers/gpu/drm/xe/xe_vm.c                         | 165 ++++++++++++---------
 drivers/gpu/drm/xe/xe_vm.h                         |  16 +-
 drivers/gpu/drm/xe/xe_vm_types.h                   |  16 +-
 19 files changed, 234 insertions(+), 167 deletions(-)

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

* Re: [PULL] drm-xe-fixes
  2024-02-01 11:37 Thomas Hellstrom
@ 2024-02-01 11:42 ` Thomas Hellström
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellström @ 2024-02-01 11:42 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: dim-tools, dri-devel, Lucas De Marchi, Oded Gabbay, Maxime Ripard,
	Thomas Zimmermann, Rodrigo Vivi, intel-gfx

On Thu, 2024-02-01 at 12:37 +0100, Thomas Hellstrom wrote:
> Hi Dave and Sima,
> 
> The xe fixes for 6.8-rc2.
> 
Should ofc be 6.8-rc3.

/Thomas


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

* [PULL] drm-xe-fixes
@ 2024-02-08 11:08 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-02-08 11:08 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, dim-tools, intel-xe

Dave, Sima

The drm-xe-fixes pull for -rc4.

Thanks,
Thomas

drm-xe-fixes-2024-02-08:
Driver Changes:
- Fix a loop in an error path
- Fix a missing dma-fence reference
- Fix a retry path on userptr REMAP
- Workaround for a false gcc warning
- Fix missing map of the usm batch buffer
  in the migrate vm.
- Fix a memory leak.
- Fix a bad assumption of used page size
- Fix hitting a BUG() due to zero pages to map.
- Remove some leftover async bind queue relics
The following changes since commit 54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478:

  Linux 6.8-rc3 (2024-02-04 12:20:36 +0000)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-02-08

for you to fetch changes up to bf4c27b8267d7848bb81fd41e6aa07aa662f07fb:

  drm/xe: Remove TEST_VM_ASYNC_OPS_ERROR (2024-02-08 09:51:19 +0100)

----------------------------------------------------------------
Driver Changes:
- Fix a loop in an error path
- Fix a missing dma-fence reference
- Fix a retry path on userptr REMAP
- Workaround for a false gcc warning
- Fix missing map of the usm batch buffer
  in the migrate vm.
- Fix a memory leak.
- Fix a bad assumption of used page size
- Fix hitting a BUG() due to zero pages to map.
- Remove some leftover async bind queue relics

----------------------------------------------------------------
Arnd Bergmann (1):
      drm/xe: circumvent bogus stringop-overflow warning

Matthew Auld (1):
      drm/xe/vm: don't ignore error when in_kthread

Matthew Brost (6):
      drm/xe: Fix loop in vm_bind_ioctl_ops_unwind
      drm/xe: Take a reference in xe_exec_queue_last_fence_get()
      drm/xe: Pick correct userptr VMA to repin on REMAP op failure
      drm/xe: Map both mem.kernel_bb_pool and usm.bb_pool
      drm/xe: Assume large page size if VMA not yet bound
      drm/xe: Remove TEST_VM_ASYNC_OPS_ERROR

Xiaoming Wang (1):
      drm/xe/display: Fix memleak in display initialization

 drivers/gpu/drm/xe/xe_display.c      |  6 ----
 drivers/gpu/drm/xe/xe_exec_queue.c   |  8 +++--
 drivers/gpu/drm/xe/xe_gt.c           |  5 ++-
 drivers/gpu/drm/xe/xe_gt_pagefault.c |  2 +-
 drivers/gpu/drm/xe/xe_migrate.c      | 28 ++++++++++++----
 drivers/gpu/drm/xe/xe_sched_job.c    |  1 -
 drivers/gpu/drm/xe/xe_sync.c         |  2 --
 drivers/gpu/drm/xe/xe_vm.c           | 62 ++++++++++++++----------------------
 drivers/gpu/drm/xe/xe_vm_types.h     |  8 -----
 9 files changed, 57 insertions(+), 65 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-02-15 12:43 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-02-15 12:43 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, dim-tools, intel-xe

Hi Dave, Sima!

The xe fixes pull request for -rc5.
drm-xe-fixes-2024-02-15:
Driver Changes:
- Fix an out-of-bounds shift.
- Fix the display code thinking xe uses shmem
- Fix a warning about index out-of-bound
- Fix a clang-16 compilation warning

Thanks,
Thomas

The following changes since commit bf4c27b8267d7848bb81fd41e6aa07aa662f07fb:

  drm/xe: Remove TEST_VM_ASYNC_OPS_ERROR (2024-02-08 09:51:19 +0100)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-02-15

for you to fetch changes up to 455dae7549aed709707feda5d6b3e085b37d33f7:

  drm/xe: avoid function cast warnings (2024-02-15 09:53:38 +0100)

----------------------------------------------------------------
Driver Changes:
- Fix an out-of-bounds shift.
- Fix the display code thinking xe uses shmem
- Fix a warning about index out-of-bound
- Fix a clang-16 compilation warning

----------------------------------------------------------------
Arnd Bergmann (1):
      drm/xe: avoid function cast warnings

Matthew Auld (1):
      drm/xe/display: fix i915_gem_object_is_shmem() wrapper

Thomas Hellström (2):
      drm/xe/vm: Avoid reserving zero fences
      drm/xe/pt: Allow for stricter type- and range checking

 .../xe/compat-i915-headers/gem/i915_gem_object.h   |  2 +-
 drivers/gpu/drm/xe/xe_pt.c                         | 39 ++++++++++++++--------
 drivers/gpu/drm/xe/xe_pt_walk.c                    |  2 +-
 drivers/gpu/drm/xe/xe_pt_walk.h                    | 19 ++---------
 drivers/gpu/drm/xe/xe_range_fence.c                |  7 +++-
 drivers/gpu/drm/xe/xe_vm.c                         | 13 ++++++--
 6 files changed, 46 insertions(+), 36 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-02-22 11:12 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-02-22 11:12 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, dim-tools, intel-xe

Hi, Dave Sima

The Xe pull request for 6.8-rc6
The uAPI fixes / adjustments we've been discussing
are starting to appear, and I will hopefully have the rest
for next week's PR. In addition two driver fixes.

drm-xe-fixes-2024-02-22:
UAPI Changes:
- Remove support for persistent exec_queues
- Drop a reduntant sysfs newline printout

Cross-subsystem Changes:

Core Changes:

Driver Changes:
- A three-patch fix for a VM_BIND rebind optimization path
- Fix a modpost warning on an xe KUNIT module

/Thomas

The following changes since commit b401b621758e46812da61fa58a67c3fd8d91de0d:

  Linux 6.8-rc5 (2024-02-18 12:56:25 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-02-22

for you to fetch changes up to 6650d23f3e20ca00482a71a4ef900f0ea776fb15:

  drm/xe: Fix modpost warning on xe_mocs kunit module (2024-02-21 11:06:52 +0100)

----------------------------------------------------------------
UAPI Changes:
- Remove support for persistent exec_queues
- Drop a reduntant sysfs newline printout

Cross-subsystem Changes:

Core Changes:

Driver Changes:
- A three-patch fix for a VM_BIND rebind optimization path
- Fix a modpost warning on an xe KUNIT module

----------------------------------------------------------------
Ashutosh Dixit (2):
      drm/xe/xe_gt_idle: Drop redundant newline in name
      drm/xe: Fix modpost warning on xe_mocs kunit module

Matthew Brost (3):
      drm/xe: Fix xe_vma_set_pte_size
      drm/xe: Add XE_VMA_PTE_64K VMA flag
      drm/xe: Return 2MB page size for compact 64k PTEs

Thomas Hellström (1):
      drm/xe/uapi: Remove support for persistent exec_queues

 drivers/gpu/drm/xe/tests/xe_mocs_test.c  |  1 +
 drivers/gpu/drm/xe/xe_device.c           | 39 --------------------------------
 drivers/gpu/drm/xe/xe_device.h           |  4 ----
 drivers/gpu/drm/xe/xe_device_types.h     |  8 -------
 drivers/gpu/drm/xe/xe_exec_queue.c       | 33 ++++-----------------------
 drivers/gpu/drm/xe/xe_exec_queue_types.h | 10 --------
 drivers/gpu/drm/xe/xe_execlist.c         |  2 --
 drivers/gpu/drm/xe/xe_gt_idle.c          |  4 ++--
 drivers/gpu/drm/xe/xe_guc_submit.c       |  2 --
 drivers/gpu/drm/xe/xe_pt.c               | 11 ++++++---
 drivers/gpu/drm/xe/xe_vm.c               | 14 ++++++++----
 drivers/gpu/drm/xe/xe_vm_types.h         |  2 ++
 include/uapi/drm/xe_drm.h                |  1 -
 13 files changed, 28 insertions(+), 103 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-02-29 13:07 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-02-29 13:07 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Dave, Sima

The xe fixes for -rc7. It's mostly uapi sanitizing and future-proofing,
and a couple of driver fixes.

drm-xe-fixes-2024-02-29:
UAPI Changes:
- A couple of tracepoint updates from Priyanka and Lucas.
- Make sure BINDs are completed before accepting UNBINDs on LR vms.
- Don't arbitrarily restrict max number of batched binds.
- Add uapi for dumpable bos (agreed on IRC).
- Remove unused uapi flags and a leftover comment.

Driver Changes:
- A couple of fixes related to the execlist backend.
- A 32-bit fix.

/Thomas


The following changes since commit 6650d23f3e20ca00482a71a4ef900f0ea776fb15:

  drm/xe: Fix modpost warning on xe_mocs kunit module (2024-02-21 11:06:52 +0100)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-02-29

for you to fetch changes up to 8188cae3cc3d8018ec97ca9ab8caa3acc69a056d:

  drm/xe/xe_trace: Add move_lacks_source detail to xe_bo_move trace (2024-02-29 12:32:15 +0100)

----------------------------------------------------------------
UAPI Changes:
- A couple of tracepoint updates from Priyanka and Lucas.
- Make sure BINDs are completed before accepting UNBINDs on LR vms.
- Don't arbitrarily restrict max number of batched binds.
- Add uapi for dumpable bos (agreed on IRC).
- Remove unused uapi flags and a leftover comment.

Driver Changes:
- A couple of fixes related to the execlist backend.
- A 32-bit fix.
----------------------------------------------------------------
Arnd Bergmann (1):
      drm/xe/mmio: fix build warning for BAR resize on 32-bit

Francois Dugast (1):
      drm/xe/uapi: Remove unused flags

José Roberto de Souza (1):
      drm/xe/uapi: Remove DRM_XE_VM_BIND_FLAG_ASYNC comment left over

Lucas De Marchi (1):
      drm/xe: Use pointers in trace events

Maarten Lankhorst (1):
      drm/xe: Add uapi for dumpable bos

Matthew Brost (3):
      drm/xe: Fix execlist splat
      drm/xe: Don't support execlists in xe_gt_tlb_invalidation layer
      drm/xe: Use vmalloc for array of bind allocation in bind IOCTL

Mika Kuoppala (2):
      drm/xe: Expose user fence from xe_sync_entry
      drm/xe: Deny unbinds if uapi ufence pending

Paulo Zanoni (1):
      drm/xe: get rid of MAX_BINDS

Priyanka Dandamudi (2):
      drm/xe/xe_bo_move: Enhance xe_bo_move trace
      drm/xe/xe_trace: Add move_lacks_source detail to xe_bo_move trace

 drivers/gpu/drm/xe/xe_bo.c                  | 11 +++-
 drivers/gpu/drm/xe/xe_bo.h                  |  1 +
 drivers/gpu/drm/xe/xe_drm_client.c          | 12 +---
 drivers/gpu/drm/xe/xe_exec_queue.c          | 88 +----------------------------
 drivers/gpu/drm/xe/xe_exec_queue_types.h    | 10 ----
 drivers/gpu/drm/xe/xe_execlist.c            |  2 +-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 12 ++++
 drivers/gpu/drm/xe/xe_lrc.c                 | 10 +---
 drivers/gpu/drm/xe/xe_mmio.c                |  2 +-
 drivers/gpu/drm/xe/xe_sync.c                | 58 +++++++++++++++----
 drivers/gpu/drm/xe/xe_sync.h                |  4 ++
 drivers/gpu/drm/xe/xe_sync_types.h          |  2 +-
 drivers/gpu/drm/xe/xe_trace.h               | 59 +++++++++++++------
 drivers/gpu/drm/xe/xe_vm.c                  | 80 ++++++++++++++++++--------
 drivers/gpu/drm/xe/xe_vm_types.h            | 11 ++--
 include/uapi/drm/xe_drm.h                   | 21 +------
 16 files changed, 187 insertions(+), 196 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-03-07 10:48 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-03-07 10:48 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Sima

A single error path fix for 6.8 final (-rc8).

Thanks,
Thomas

drm-xe-fixes-2024-03-07:
Driver Changes:
- An error path fix.

The following changes since commit 90d35da658da8cff0d4ecbb5113f5fac9d00eb72:

  Linux 6.8-rc7 (2024-03-03 13:02:52 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-03-07

for you to fetch changes up to a4e7596e209783a7be2727d6b947cbd863c2bbcb:

  drm/xe: Return immediately on tile_init failure (2024-03-07 09:13:38 +0100)

----------------------------------------------------------------
Driver Changes:
- An error path fix.

----------------------------------------------------------------
Rodrigo Vivi (1):
      drm/xe: Return immediately on tile_init failure

 drivers/gpu/drm/xe/xe_tile.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-03-26 17:10 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-03-26 17:10 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Please pull the drm-xe-fixes for this week targeting v6.9-rc2. 

drm-xe-fixes-2024-03-26:
- Fix build on mips
- Fix wrong bound checks
- Fix use of msec rather than jiffies
- Remove dead code
The following changes since commit 4cece764965020c22cff7665b18a012006359095:

   Linux 6.9-rc1 (2024-03-24 14:10:05 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-03-26

for you to fetch changes up to 0d8cf0c924732a045273c6aca6900a340ac88529:

   drm/xe: Fix END redefinition (2024-03-25 13:47:48 -0500)

----------------------------------------------------------------
- Fix build on mips
- Fix wrong bound checks
- Fix use of msec rather than jiffies
- Remove dead code

----------------------------------------------------------------
Lucas De Marchi (1):
       drm/xe: Fix END redefinition

Matthew Auld (5):
       drm/xe/guc_submit: use jiffies for job timeout
       drm/xe/queue: fix engine_class bounds check
       drm/xe/device: fix XE_MAX_GT_PER_TILE check
       drm/xe/device: fix XE_MAX_TILES_PER_DEVICE check
       drm/xe/query: fix gt_id bounds check

Nirmoy Das (1):
       drm/xe: Remove unused xe_bo->props struct

  drivers/gpu/drm/xe/xe_bo.c         | 59 ++++++--------------------------------
  drivers/gpu/drm/xe/xe_bo_types.h   | 19 ------------
  drivers/gpu/drm/xe/xe_device.h     |  4 +--
  drivers/gpu/drm/xe/xe_exec_queue.c |  2 +-
  drivers/gpu/drm/xe/xe_guc_submit.c |  2 +-
  drivers/gpu/drm/xe/xe_lrc.c        | 20 ++++++-------
  drivers/gpu/drm/xe/xe_query.c      |  2 +-
  7 files changed, 23 insertions(+), 85 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-04-04 14:49 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-04-04 14:49 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Please pull the drm-xe-fixes for this week targeting v6.9-rc3.

This is a little late in the week as I was waiting a critical fix to be
applied to get our CI back. This is mainly due to some stress tests
creating hundreds of exec queues and that not playing nice with the
workqueue changes introduced in v6.9. That shouldn't be the normal use
case but was causing CI to abort further tests.  Other changes include
fixes around rebinding and TLB invalidation.

thanks
Lucas De Marchi

drm-xe-fixes-2024-04-04:
- Stop using system_unbound_wq for preempt fences,
   as this can cause starvation when reaching more
   than max_active defined by workqueue
- Fix saving unordered rebinding fences by attaching
   them as kernel feces to the vm's resv
- Fix TLB invalidation fences completing out of order
- Move rebind TLB invalidation to the ring ops to reduce
   the latency
The following changes since commit 39cd87c4eb2b893354f3b850f916353f2658ae6f:

   Linux 6.9-rc2 (2024-03-31 14:32:39 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-04-04

for you to fetch changes up to 77a011012d7d8b98368a763bf74317c6d5ce00f1:

   drm/xe: Use ordered wq for preempt fence waiting (2024-04-04 08:32:34 -0500)

----------------------------------------------------------------
- Stop using system_unbound_wq for preempt fences,
   as this can cause starvation when reaching more
   than max_active defined by workqueue
- Fix saving unordered rebinding fences by attaching
   them as kernel feces to the vm's resv
- Fix TLB invalidation fences completing out of order
- Move rebind TLB invalidation to the ring ops to reduce
   the latency

----------------------------------------------------------------
Matthew Brost (1):
       drm/xe: Use ordered wq for preempt fence waiting

Thomas Hellström (4):
       drm/xe: Use ring ops TLB invalidation for rebinds
       drm/xe: Rework rebinding
       drm/xe: Make TLB invalidation fences unordered
       drm/xe: Move vma rebinding to the drm_exec locking loop

  drivers/gpu/drm/xe/xe_device.c              |  11 ++-
  drivers/gpu/drm/xe/xe_device_types.h        |   3 +
  drivers/gpu/drm/xe/xe_exec.c                |  79 ++------------------
  drivers/gpu/drm/xe/xe_exec_queue_types.h    |   5 ++
  drivers/gpu/drm/xe/xe_gt_pagefault.c        |   3 +-
  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c |   1 -
  drivers/gpu/drm/xe/xe_gt_types.h            |   7 --
  drivers/gpu/drm/xe/xe_preempt_fence.c       |   2 +-
  drivers/gpu/drm/xe/xe_pt.c                  |  25 +++++--
  drivers/gpu/drm/xe/xe_ring_ops.c            |  11 +--
  drivers/gpu/drm/xe/xe_sched_job.c           |  10 +++
  drivers/gpu/drm/xe/xe_sched_job_types.h     |   2 +
  drivers/gpu/drm/xe/xe_vm.c                  | 110 +++++++++++++++++-----------
  drivers/gpu/drm/xe/xe_vm.h                  |   8 +-
  drivers/gpu/drm/xe/xe_vm_types.h            |   8 +-
  15 files changed, 140 insertions(+), 145 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-04-11 17:34 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-04-11 17:34 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Please pull the drm-xe-fixes for this week targeting v6.9-rc4.

Just some trivial fixes, mostly from code analysis.  The last one
doesn't trigger any issue for now since the register is not used for
mmio. I decided to include it, because it would be a silent prereq of
any future commit making use of that register.

thanks
Lucas De Marchi

drm-xe-fixes-2024-04-11:
- Fix double display mutex initializations
- Fix u32 -> u64 implicit conversions
- Fix RING_CONTEXT_CONTROL not marked as masked
The following changes since commit fec50db7033ea478773b159e0e2efb135270e3b7:

   Linux 6.9-rc3 (2024-04-07 13:22:46 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-04-11

for you to fetch changes up to f76646c83f028c62853c23dac49204232e903597:

   drm/xe: Label RING_CONTEXT_CONTROL as masked (2024-04-11 08:41:54 -0500)

----------------------------------------------------------------
- Fix double display mutex initializations
- Fix u32 -> u64 implicit conversions
- Fix RING_CONTEXT_CONTROL not marked as masked

----------------------------------------------------------------
Ashutosh Dixit (1):
       drm/xe: Label RING_CONTEXT_CONTROL as masked

Himal Prasad Ghimiray (1):
       drm/xe/xe_migrate: Cast to output precision before multiplying operands

Karthik Poosa (1):
       drm/xe/hwmon: Cast result to output precision on left shift of operand

Lucas De Marchi (1):
       drm/xe/display: Fix double mutex initialization

  drivers/gpu/drm/xe/display/xe_display.c  | 5 -----
  drivers/gpu/drm/xe/regs/xe_engine_regs.h | 2 +-
  drivers/gpu/drm/xe/xe_hwmon.c            | 4 ++--
  drivers/gpu/drm/xe/xe_lrc.c              | 5 ++---
  drivers/gpu/drm/xe/xe_migrate.c          | 8 ++++----
  5 files changed, 9 insertions(+), 15 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-04-18 15:47 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-04-18 15:47 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Please pull the drm-xe-fixes for this week targeting v6.9-rc5.

thanks
Lucas De Marchi

drm-xe-fixes-2024-04-18:
- Fix bo leak on error path during fb init
- Fix use-after-free due to order vm is put and destroyed
The following changes since commit 0bbac3facb5d6cc0171c45c9873a2dc96bea9680:

   Linux 6.9-rc4 (2024-04-14 13:38:39 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-04-18

for you to fetch changes up to ca7c52ac7ad384bcf299d89482c45fec7cd00da9:

   drm/xe/vm: prevent UAF with asid based lookup (2024-04-17 08:03:13 -0500)

----------------------------------------------------------------
- Fix bo leak on error path during fb init
- Fix use-after-free due to order vm is put and destroyed

----------------------------------------------------------------
Maarten Lankhorst (1):
       drm/xe: Fix bo leak in intel_fb_bo_framebuffer_init

Matthew Auld (1):
       drm/xe/vm: prevent UAF with asid based lookup

  drivers/gpu/drm/xe/display/intel_fb_bo.c |  8 ++++++--
  drivers/gpu/drm/xe/xe_vm.c               | 21 +++++++++++----------
  2 files changed, 17 insertions(+), 12 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-04-25 20:50 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-04-25 20:50 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima

Please pull the drm-xe-fixes for this week targeting v6.9-rc6.
Simple fixes not really visible to end users: 2 around error paths on
drm managed allocations and 1 on PF/VF relay messages that are not
enabled by default.

thanks
Lucas De Marchi

drm-xe-fixes-2024-04-25:
- Fix error paths on managed allocations
- Fix PF/VF relay messages
The following changes since commit ed30a4a51bb196781c8058073ea720133a65596f:

   Linux 6.9-rc5 (2024-04-21 12:35:54 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-04-25

for you to fetch changes up to e3e989522ac9a6b7960c75b762e1e9568717b31e:

   drm/xe/guc: Fix arguments passed to relay G2H handlers (2024-04-24 10:20:00 -0500)

----------------------------------------------------------------
- Fix error paths on managed allocations
- Fix PF/VF relay messages

----------------------------------------------------------------
Himal Prasad Ghimiray (2):
       drm/xe: Remove sysfs only once on action add failure
       drm/xe: call free_gsc_pkt only once on action add failure

Michal Wajdeczko (1):
       drm/xe/guc: Fix arguments passed to relay G2H handlers

  drivers/gpu/drm/xe/xe_gt.c          |  4 +++-
  drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 19 +++++++------------
  drivers/gpu/drm/xe/xe_gt_ccs_mode.h |  2 +-
  drivers/gpu/drm/xe/xe_guc_ct.c      |  4 ++--
  drivers/gpu/drm/xe/xe_huc.c         |  9 +--------
  5 files changed, 14 insertions(+), 24 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-05-02 16:37 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-05-02 16:37 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Please pull the drm-xe-fixes for this week targeting v6.9-rc7.

Two important fixes: one avoiding a use-after-free in the rebind worker
and the other to make display work in ADL-N.

thanks
Lucas De Marchi

drm-xe-fixes-2024-05-02:
- Fix UAF on rebind worker
- Fix ADL-N display integration
The following changes since commit e67572cd2204894179d89bd7b984072f19313b03:

   Linux 6.9-rc6 (2024-04-28 13:47:24 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-05-02

for you to fetch changes up to df04b152fca2d46e75fbb74ed79299bc420bc9e6:

   drm/xe/display: Fix ADL-N detection (2024-05-02 11:11:01 -0500)

----------------------------------------------------------------
- Fix UAF on rebind worker
- Fix ADL-N display integration

----------------------------------------------------------------
Lucas De Marchi (1):
       drm/xe/display: Fix ADL-N detection

Matthew Auld (1):
       drm/xe/vm: prevent UAF in rebind_work_func()

  drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 3 ++-
  drivers/gpu/drm/xe/xe_vm.c                        | 3 +++
  2 files changed, 5 insertions(+), 1 deletion(-)

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

* [PULL] drm-xe-fixes
@ 2024-05-09 19:26 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-05-09 19:26 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Please pull the drm-xe-fixes for this week targeting v6.9.

thanks
Lucas De Marchi

drm-xe-fixes-2024-05-09:
- Fix use zero-length element array
- Move more from system wq to ordered private wq
- Do not ignore return for drmm_mutex_init
The following changes since commit dd5a440a31fae6e459c0d6271dddd62825505361:

   Linux 6.9-rc7 (2024-05-05 14:06:01 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-05-09

for you to fetch changes up to c002bfe644a29ba600c571f2abba13a155a12dcd:

   drm/xe: Use ordered WQ for G2H handler (2024-05-09 09:41:27 -0500)

----------------------------------------------------------------
- Fix use zero-length element array
- Move more from system wq to ordered private wq
- Do not ignore return for drmm_mutex_init

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
       drm/xe/guc: Check error code when initializing the CT mutex

Lucas De Marchi (1):
       drm/xe/ads: Use flexible-array

Matthew Brost (1):
       drm/xe: Use ordered WQ for G2H handler

  drivers/gpu/drm/xe/xe_guc_ads.c      |  2 +-
  drivers/gpu/drm/xe/xe_guc_ct.c       | 10 +++++++++-
  drivers/gpu/drm/xe/xe_guc_ct.h       |  2 +-
  drivers/gpu/drm/xe/xe_guc_ct_types.h |  2 ++
  4 files changed, 13 insertions(+), 3 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-05-30 16:41 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-05-30 16:41 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi Dave, Sima

The drm-xe-fixes for -rc2

Only three fixes so far. I'm holding back one additional
fix to be able to sort out whether it's correct or need more work.

drm-xe-fixes-2024-05-30:
Driver Changes:
- One pcode polling timeout change
- One fix for deadlocks for faulting VMs
- One error-path lock imbalance fix

The following changes since commit 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0:

  Linux 6.10-rc1 (2024-05-26 15:20:12 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-05-30

for you to fetch changes up to 6c5cd0807c79eb4c0cda70b48f6be668a241d584:

  drm/xe: Properly handle alloc_guc_id() failure (2024-05-28 08:53:45 +0200)

----------------------------------------------------------------
Driver Changes:
- One pcode polling timeout change
- One fix for deadlocks for faulting VMs
- One error-path lock imbalance fix

----------------------------------------------------------------
Himal Prasad Ghimiray (1):
      drm/xe: Change pcode timeout to 50msec while polling again

Matthew Brost (1):
      drm/xe: Only use reserved BCS instances for usm migrate exec queue

Niranjana Vishwanathapura (1):
      drm/xe: Properly handle alloc_guc_id() failure

 drivers/gpu/drm/xe/xe_guc_submit.c |  1 +
 drivers/gpu/drm/xe/xe_migrate.c    | 12 +++++-------
 drivers/gpu/drm/xe/xe_pcode.c      |  2 +-
 3 files changed, 7 insertions(+), 8 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-06-04 15:09 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-06-04 15:09 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Dave and Sima,

A single fix for a missing Local Memory Translation Table update for -rc3.

Thanks,
Thomas

drm-xe-fixes-2024-06-04:
Driver Changes:
- drm/xe/pf: Update the LMTT when freeing VF GT config

The following changes since commit 6c5cd0807c79eb4c0cda70b48f6be668a241d584:

  drm/xe: Properly handle alloc_guc_id() failure (2024-05-28 08:53:45 +0200)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-06-04

for you to fetch changes up to 0698ff57bf327d9a5735a898f78161b8dada160b:

  drm/xe/pf: Update the LMTT when freeing VF GT config (2024-06-04 16:31:24 +0200)

----------------------------------------------------------------
Driver Changes:
- drm/xe/pf: Update the LMTT when freeing VF GT config

----------------------------------------------------------------
Michal Wajdeczko (1):
      drm/xe/pf: Update the LMTT when freeing VF GT config

 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 1 +
 1 file changed, 1 insertion(+)

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

* [PULL] drm-xe-fixes
@ 2024-06-13 11:26 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-06-13 11:26 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave & Sima,

This week's drm-xe-fixes PR.

Except from the maintainer update, nothing major, really.
The "drm/xe: move disable_c6 call" required some conflict
resolution (both visible and silent) which was also
reflected in a conflict with drm-next when building
drm-tip.

drm-xe-fixes-2024-06-13:
Core Changes:
- Xe Maintainers update to MAINTAINERS file.

Driver Changes:
- Use correct forcewake assertions.
- Assert that VRAM provisioning is only done on DGFX.
- Flush render caches before user-fence signalling on all engines.
- Move the disable_c6 call since it was sometimes never called.

Thanks,
Thomas

The following changes since commit 0698ff57bf327d9a5735a898f78161b8dada160b:

  drm/xe/pf: Update the LMTT when freeing VF GT config (2024-06-04 16:31:24 +0200)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-06-13

for you to fetch changes up to 2470b141bfae2b9695b5b6823e3b978b22d33dde:

  drm/xe: move disable_c6 call (2024-06-13 12:35:13 +0200)

----------------------------------------------------------------
Core Changes:
- Xe Maintainers update to MAINTAINERS file.

Driver Changes:
- Use correct forcewake assertions.
- Assert that VRAM provisioning is only done on DGFX.
- Flush render caches before user-fence signalling on all engines.
- Move the disable_c6 call since it was sometimes never called.

----------------------------------------------------------------
Andrzej Hajda (1):
      drm/xe: flush engine buffers before signalling user fence on all engines

Michal Wajdeczko (1):
      drm/xe/pf: Assert LMEM provisioning is done only on DGFX

Oded Gabbay (1):
      MAINTAINERS: update Xe driver maintainers

Riana Tauro (2):
      drm/xe/xe_gt_idle: use GT forcewake domain assertion
      drm/xe: move disable_c6 call

Thomas Hellström (1):
      MAINTAINERS: Update Xe driver maintainers

 MAINTAINERS                                |  2 +-
 drivers/gpu/drm/xe/xe_gt_idle.c            |  9 ++++++++-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 15 +++++++++++++--
 drivers/gpu/drm/xe/xe_guc_pc.c             |  6 ------
 drivers/gpu/drm/xe/xe_ring_ops.c           | 18 ++++++++++++++++--
 5 files changed, 38 insertions(+), 12 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-06-20  8:02 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-06-20  8:02 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi, Dave, Sima

A single fix this week.

Thanks,
Thomas

drm-xe-fixes-2024-06-20:
Driver Changes:
- Fix for invalid register access
The following changes since commit 6ba59ff4227927d3a8530fc2973b80e94b54d58f:

  Linux 6.10-rc4 (2024-06-16 13:40:16 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-06-20

for you to fetch changes up to d21d44dbdde83c4a8553c95de1853e63e88d7954:

  drm/xe/vf: Don't touch GuC irq registers if using memory irqs (2024-06-20 09:22:37 +0200)

----------------------------------------------------------------
Driver Changes:
- Fix for invalid register access

----------------------------------------------------------------
Michal Wajdeczko (1):
      drm/xe/vf: Don't touch GuC irq registers if using memory irqs

 drivers/gpu/drm/xe/xe_guc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-07-04 10:51 Thomas Hellstrom
  2024-07-04 14:46 ` Daniel Vetter
  0 siblings, 1 reply; 66+ messages in thread
From: Thomas Hellstrom @ 2024-07-04 10:51 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi Dave and Sima

Two small fixes this week.

Thanks,
Thomas

drm-xe-fixes-2024-07-04:
Driver Changes:
- One copy/paste mistake fix.
- One error path fix causing an error pointer dereference.

The following changes since commit 22a40d14b572deb80c0648557f4bd502d7e83826:

  Linux 6.10-rc6 (2024-06-30 14:40:44 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-07-04

for you to fetch changes up to 1f006470284598060ca1307355352934400b37ca:

  drm/xe/mcr: Avoid clobbering DSS steering (2024-07-04 10:36:30 +0200)

----------------------------------------------------------------
Driver Changes:
- One copy/paste mistake fix.
- One error path fix causing an error pointer dereference.

----------------------------------------------------------------
Matt Roper (1):
      drm/xe/mcr: Avoid clobbering DSS steering

Matthew Auld (1):
      drm/xe: fix error handling in xe_migrate_update_pgtables

 drivers/gpu/drm/xe/xe_gt_mcr.c  | 6 +++---
 drivers/gpu/drm/xe/xe_migrate.c | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

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

* Re: [PULL] drm-xe-fixes
  2024-07-04 10:51 Thomas Hellstrom
@ 2024-07-04 14:46 ` Daniel Vetter
  0 siblings, 0 replies; 66+ messages in thread
From: Daniel Vetter @ 2024-07-04 14:46 UTC (permalink / raw)
  To: Thomas Hellstrom
  Cc: Dave Airlie, Daniel Vetter, Jani Nikula, Joonas Lahtinen,
	Tvrtko Ursulin, Rodrigo Vivi, Thomas Zimmermann,
	Maarten Lankhorst, Maxime Ripard, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

On Thu, Jul 04, 2024 at 12:51:44PM +0200, Thomas Hellstrom wrote:
> Hi Dave and Sima
> 
> Two small fixes this week.
> 
> Thanks,
> Thomas
> 
> drm-xe-fixes-2024-07-04:
> Driver Changes:
> - One copy/paste mistake fix.
> - One error path fix causing an error pointer dereference.
> 
> The following changes since commit 22a40d14b572deb80c0648557f4bd502d7e83826:
> 
>   Linux 6.10-rc6 (2024-06-30 14:40:44 -0700)
> 
> are available in the Git repository at:
> 
>   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-07-04
> 
> for you to fetch changes up to 1f006470284598060ca1307355352934400b37ca:
> 
>   drm/xe/mcr: Avoid clobbering DSS steering (2024-07-04 10:36:30 +0200)

Pulled, thanks.
-Sima

> 
> ----------------------------------------------------------------
> Driver Changes:
> - One copy/paste mistake fix.
> - One error path fix causing an error pointer dereference.
> 
> ----------------------------------------------------------------
> Matt Roper (1):
>       drm/xe/mcr: Avoid clobbering DSS steering
> 
> Matthew Auld (1):
>       drm/xe: fix error handling in xe_migrate_update_pgtables
> 
>  drivers/gpu/drm/xe/xe_gt_mcr.c  | 6 +++---
>  drivers/gpu/drm/xe/xe_migrate.c | 8 ++++----
>  2 files changed, 7 insertions(+), 7 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

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

* [PULL] drm-xe-fixes
@ 2024-07-11 22:16 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-07-11 22:16 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

First patch has an important impact to userspace, changing the cahcing
mode to write-back for system memory on DGFX. In this case we introduce
a limitation in the cache selection uapi that is transparent to UMDs. I
mean, no change on their side is needed.  Coherence is maintained, but
with some known possible and acceptable/accepted differences in CPU
access speed.

Second patch fixes a leak when finalizing hdcp gsc.

drm-xe-fixes-2024-07-11:
UAPI Changes:
- Use write-back caching mode for system memory on DGFX (Thomas)

Driver Changes:
- Do not leak object when finalizing hdcp gsc (Nirmoy)
The following changes since commit 256abd8e550ce977b728be79a74e1729438b4948:

   Linux 6.10-rc7 (2024-07-07 14:23:46 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-07-11

for you to fetch changes up to 609458abd5a10180f513ca364d6c0ae30128c821:

   drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal (2024-07-11 08:25:32 -0700)

----------------------------------------------------------------
UAPI Changes:
- Use write-back caching mode for system memory on DGFX (Thomas)

Driver Changes:
- Do not leak object when finalizing hdcp gsc (Nirmoy)

----------------------------------------------------------------
Nirmoy Das (1):
       drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal

Thomas Hellström (1):
       drm/xe: Use write-back caching mode for system memory on DGFX

  drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 12 +++++---
  drivers/gpu/drm/xe/xe_bo.c               | 47 +++++++++++++++++++-------------
  drivers/gpu/drm/xe/xe_bo_types.h         |  3 +-
  include/uapi/drm/xe_drm.h                |  8 +++++-
  4 files changed, 45 insertions(+), 25 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-08-08 17:55 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2024-08-08 17:55 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our first round of 6.11 fixes as I was out last week.

Dim failed to cherry-pick some cases that I'm going to take a
deeper look today/tomorrow, so probably some more fixes coming next
week towards -rc4...

Thanks,
Rodrigo.

drm-xe-fixes-2024-08-08:
- Fix off-by-one when processing RTP rules (Lucas)
- Use dma_fence_chain_free in chain fence unused as a sync (Brost)
- Fix PL1 disable flow in xe_hwmon_power_max_write (Karthik)
- Take ref to VM in delayed dump snapshot (Brost)
The following changes since commit de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed:

  Linux 6.11-rc2 (2024-08-04 13:50:53 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-08-08

for you to fetch changes up to 642dfc9d5964b26f66fa6c28ce2861e11f9232aa:

  drm/xe: Take ref to VM in delayed snapshot (2024-08-08 13:48:01 -0400)

----------------------------------------------------------------
- Fix off-by-one when processing RTP rules (Lucas)
- Use dma_fence_chain_free in chain fence unused as a sync (Brost)
- Fix PL1 disable flow in xe_hwmon_power_max_write (Karthik)
- Take ref to VM in delayed dump snapshot (Brost)

----------------------------------------------------------------
Karthik Poosa (1):
      drm/xe/hwmon: Fix PL1 disable flow in xe_hwmon_power_max_write

Lucas De Marchi (1):
      drm/xe/rtp: Fix off-by-one when processing rules

Matthew Brost (2):
      drm/xe: Use dma_fence_chain_free in chain fence unused as a sync
      drm/xe: Take ref to VM in delayed snapshot

 drivers/gpu/drm/xe/xe_hwmon.c |  3 ++-
 drivers/gpu/drm/xe/xe_lrc.c   | 15 ++++++++++++++-
 drivers/gpu/drm/xe/xe_rtp.c   |  2 +-
 drivers/gpu/drm/xe/xe_sync.c  |  2 +-
 4 files changed, 18 insertions(+), 4 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-08-15 14:02 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2024-08-15 14:02 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes another round of drm-xe-fixes.

The amount of patches is higher for this round, but not
because we have more fixes merged this week, but because
of me and because a few fixes are depending on some
other prep/refactor patches, now merged.

1. As I had told you last week, there were some cases
not applying cleanly, and I noticed we need those and to
get those applied, some preparation patches were needed.

2. I had tagged a drm-xe-next-fixes before going on
vacation, but the sending part failed and I didn't noticed.
With that dim was not picking the fixes to drm-xe-fixes.
But now they are here in this round.
Kudos to Lucas who noticed these missing patches.

Sorry and Thanks,
Rodrigo.

drm-xe-fixes-2024-08-15:
- Validate user fence during creation (Brost)
- Fix use after free when client stats are captured (Umesh)
- SRIOV fixes (Michal)
- Runtime PM fixes (Brost)
The following changes since commit 7c626ce4bae1ac14f60076d00eafe71af30450ba:

  Linux 6.11-rc3 (2024-08-11 14:27:14 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-08-15

for you to fetch changes up to f002702290fccbd473f5bb94e52f25c96917fff2:

  drm/xe: Hold a PM ref when GT TLB invalidations are inflight (2024-08-15 09:44:22 -0400)

----------------------------------------------------------------
- Validate user fence during creation (Brost)
- Fix use after free when client stats are captured (Umesh)
- SRIOV fixes (Michal)
- Runtime PM fixes (Brost)

----------------------------------------------------------------
Matthew Brost (5):
      drm/xe: Validate user fence during creation
      drm/xe: Build PM into GuC CT layer
      drm/xe: Add xe_gt_tlb_invalidation_fence_init helper
      drm/xe: Drop xe_gt_tlb_invalidation_wait
      drm/xe: Hold a PM ref when GT TLB invalidations are inflight

Michal Wajdeczko (2):
      drm/xe/vf: Fix register value lookup
      drm/xe/pf: Fix VF config validation on multi-GT platforms

Umesh Nerlige Ramappa (4):
      drm/xe: Move part of xe_file cleanup to a helper
      drm/xe: Add ref counting for xe_file
      drm/xe: Take a ref to xe file when user creates a VM
      drm/xe: Fix use after free when client stats are captured

 drivers/gpu/drm/xe/xe_device.c                    |  59 ++++++-
 drivers/gpu/drm/xe/xe_device.h                    |   3 +
 drivers/gpu/drm/xe/xe_device_types.h              |   3 +
 drivers/gpu/drm/xe/xe_drm_client.c                |   5 +-
 drivers/gpu/drm/xe/xe_exec_queue.c                |  10 +-
 drivers/gpu/drm/xe/xe_exec_queue_types.h          |   7 +-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c        |  11 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c               |   2 +-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c       | 201 ++++++++++++----------
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h       |  12 +-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation_types.h |   4 +
 drivers/gpu/drm/xe/xe_guc_ct.c                    |  10 +-
 drivers/gpu/drm/xe/xe_guc_submit.c                |   4 +
 drivers/gpu/drm/xe/xe_pt.c                        |  26 +--
 drivers/gpu/drm/xe/xe_sync.c                      |  12 +-
 drivers/gpu/drm/xe/xe_vm.c                        |  38 ++--
 16 files changed, 247 insertions(+), 160 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-08-22 15:12 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2024-08-22 15:12 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

This is indeed a hectic week on our drm-xe-fixes.

- 10 of the patches here are patches that got recent merged.
- 9 are extra patches, mostly workarounds, which were already
in drm-xe-next, but not picked up for fixes due the lack of
Fixes tag. Lucas had identified them on a backport effort and
they look important for the overall stability, hence we are
adding this for this round on top of the 10 regular fixes.

The conflicts on taking them now were only trivial and solved
getting the -next tree versions on a drm-tip rebuild.
Everything recorded directly in drm-rerere, with no extra
manual conflict handling needed.

Thanks,
Rodrigo.

drm-xe-fixes-2024-08-22:
UAPI Changes:
- Fix OA format masks which were breaking build with gcc-5 (Geert)

Driver Changes:
- Fix opregion leak (Lucas)
- Fix OA sysfs entry (Ashutosh)
- Fix VM dma-resv lock (Brost)
- Fix tile fini sequence (Brost)
- Prevent UAF around preempt fence (Auld)
- Fix DGFX display suspend/resume (Maarten)
- Many Xe/Xe2 critical workarounds (Auld, Ngai-Mint, Bommu, Tejas, Daniele)
- Fix devm/drmm issues (Daniele)
- Fix missing workqueue destroy in xe_gt_pagefault (Stuart)
- Drop HW fence pointer to HW fence ctx (Brost)
- Free job before xe_exec_queue_put (Brost)
The following changes since commit 47ac09b91befbb6a235ab620c32af719f8208399:

  Linux 6.11-rc4 (2024-08-18 13:17:27 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-08-22

for you to fetch changes up to 9e7f30563677fbeff62d368d5d2a5ac7aaa9746a:

  drm/xe: Free job before xe_exec_queue_put (2024-08-21 11:53:15 -0400)

----------------------------------------------------------------
UAPI Changes:
- Fix OA format masks which were breaking build with gcc-5 (Geert)

Driver Changes:
- Fix opregion leak (Lucas)
- Fix OA sysfs entry (Ashutosh)
- Fix VM dma-resv lock (Brost)
- Fix tile fini sequence (Brost)
- Prevent UAF around preempt fence (Auld)
- Fix DGFX display suspend/resume (Maarten)
- Many Xe/Xe2 critical workarounds (Auld, Ngai-Mint, Bommu, Tejas, Daniele)
- Fix devm/drmm issues (Daniele)
- Fix missing workqueue destroy in xe_gt_pagefault (Stuart)
- Drop HW fence pointer to HW fence ctx (Brost)
- Free job before xe_exec_queue_put (Brost)

----------------------------------------------------------------
Ashutosh Dixit (1):
      drm/xe/observation: Drop empty sysctl table entry

Bommu Krishnaiah (1):
      drm/xe/xe2lpg: Extend workaround 14021402888

Daniele Ceraolo Spurio (3):
      drm/xe: fix WA 14018094691
      drm/xe: use devm instead of drmm for managed bo
      drm/xe/uc: Use devm to register cleanup that includes exec_queues

Geert Uytterhoeven (1):
      drm/xe/oa/uapi: Make bit masks unsigned

Lucas De Marchi (1):
      drm/xe: Fix opregion leak

Maarten Lankhorst (1):
      drm/xe/display: Make display suspend/resume work on discrete

Matthew Auld (2):
      drm/xe: prevent UAF around preempt fence
      drm/xe/bmg: implement Wa_16023588340

Matthew Brost (4):
      drm/xe: Move VM dma-resv lock from xe_exec_queue_create to __xe_exec_queue_init
      drm/xe: Fix tile fini sequence
      drm/xe: Drop HW fence pointer to HW fence ctx
      drm/xe: Free job before xe_exec_queue_put

Ngai-Mint Kwan (1):
      drm/xe/xe2lpm: Extend Wa_16021639441

Stuart Summers (1):
      drm/xe: Fix missing workqueue destroy in xe_gt_pagefault

Tejas Upadhyay (3):
      drm/xe/xe2: Make subsequent L2 flush sequential
      drm/xe/xe2: Add Wa_15015404425
      drm/xe/xe2hpg: Add Wa_14021821874

 drivers/gpu/drm/xe/Makefile                 |  2 ++
 drivers/gpu/drm/xe/display/xe_display.c     | 28 ++++++++++++++-
 drivers/gpu/drm/xe/display/xe_dsb_buffer.c  |  8 +++++
 drivers/gpu/drm/xe/display/xe_fb_pin.c      |  3 ++
 drivers/gpu/drm/xe/regs/xe_gt_regs.h        |  9 +++++
 drivers/gpu/drm/xe/xe_bo.c                  |  6 ++--
 drivers/gpu/drm/xe/xe_device.c              | 32 +++++++++++++++++
 drivers/gpu/drm/xe/xe_device.h              |  1 +
 drivers/gpu/drm/xe/xe_exec_queue.c          | 24 +++++++------
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |  2 --
 drivers/gpu/drm/xe/xe_gsc.c                 |  8 ++---
 drivers/gpu/drm/xe/xe_gt.c                  | 55 +++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_pagefault.c        | 18 ++++++++--
 drivers/gpu/drm/xe/xe_gt_types.h            |  6 ++++
 drivers/gpu/drm/xe/xe_guc_submit.c          |  4 +--
 drivers/gpu/drm/xe/xe_hw_fence.c            |  9 ++---
 drivers/gpu/drm/xe/xe_hw_fence_types.h      |  7 ++--
 drivers/gpu/drm/xe/xe_mmio.c                | 28 ++++++++++++++-
 drivers/gpu/drm/xe/xe_observation.c         |  1 -
 drivers/gpu/drm/xe/xe_pat.c                 | 11 +++++-
 drivers/gpu/drm/xe/xe_pm.c                  | 11 +++---
 drivers/gpu/drm/xe/xe_preempt_fence.c       |  3 +-
 drivers/gpu/drm/xe/xe_preempt_fence_types.h |  2 ++
 drivers/gpu/drm/xe/xe_sched_job.c           |  3 +-
 drivers/gpu/drm/xe/xe_trace.h               |  2 +-
 drivers/gpu/drm/xe/xe_wa.c                  | 18 ++++++++++
 drivers/gpu/drm/xe/xe_wa_oob.rules          |  1 +
 include/uapi/drm/xe_drm.h                   |  8 ++---
 28 files changed, 265 insertions(+), 45 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-08-29 13:59 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2024-08-29 13:59 UTC (permalink / raw)
  To: Dave Airlie, Daniel Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

A quiet week this time.

Thanks,
Rodrigo.

drm-xe-fixes-2024-08-29:
- Invalidate media_gt TLBs (Brost)
- Fix HWMON i1 power setup write command (Karthik)

The following changes since commit 5be63fc19fcaa4c236b307420483578a56986a37:

  Linux 6.11-rc5 (2024-08-25 19:07:11 +1200)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-08-29

for you to fetch changes up to 59d237c8a241168c7ae34c48244059b7bafaff38:

  drm/xe/hwmon: Fix WRITE_I1 param from u32 to u16 (2024-08-29 09:44:00 -0400)

----------------------------------------------------------------
- Invalidate media_gt TLBs (Brost)
- Fix HWMON i1 power setup write command (Karthik)

----------------------------------------------------------------
Karthik Poosa (1):
      drm/xe/hwmon: Fix WRITE_I1 param from u32 to u16

Matthew Brost (1):
      drm/xe: Invalidate media_gt TLBs

 drivers/gpu/drm/xe/xe_hwmon.c |  2 +-
 drivers/gpu/drm/xe/xe_vm.c    | 37 ++++++++++++++++++++++++-------------
 2 files changed, 25 insertions(+), 14 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-09-05 13:28 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2024-09-05 13:28 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes this week's drm-xe-fixes, mostly
with power-management related fixes.

drm-xe-fixes-2024-09-05:
- GSC loading fix (Daniele)
- PCODE mutex fix (Matt)
- Suspend/Resume fixes (Maarten, Imre)
- RPM fixes (Rodrigo)
The following changes since commit 431c1646e1f86b949fa3685efc50b660a364c2b6:

  Linux 6.11-rc6 (2024-09-01 19:46:02 +1200)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-09-05

for you to fetch changes up to 4bfc9c553f5ea8cbfe085824f3283885cf173c20:

  drm/xe/display: Avoid encoder_suspend at runtime suspend (2024-09-04 12:24:47 -0400)

----------------------------------------------------------------
- GSC loading fix (Daniele)
- PCODE mutex fix (Matt)
- Suspend/Resume fixes (Maarten, Imre)
- RPM fixes (Rodrigo)

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
      drm/xe/gsc: Do not attempt to load the GSC multiple times

Imre Deak (1):
      drm/xe: Suspend/resume user access only during system s/r

Maarten Lankhorst (1):
      drm/xe/display: Match i915 driver suspend/resume sequences better

Matt Roper (1):
      drm/xe/pcode: Treat pcode as per-tile rather than per-GT

Rodrigo Vivi (2):
      drm/xe: Add missing runtime reference to wedged upon gt_reset
      drm/xe/display: Avoid encoder_suspend at runtime suspend

 .../gpu/drm/xe/compat-i915-headers/intel_pcode.h   |   8 +-
 .../gpu/drm/xe/compat-i915-headers/intel_uncore.h  |   7 ++
 drivers/gpu/drm/xe/display/xe_display.c            |  23 +++--
 drivers/gpu/drm/xe/xe_device_types.h               |   6 ++
 drivers/gpu/drm/xe/xe_gsc.c                        |  12 +++
 drivers/gpu/drm/xe/xe_gt.c                         |   7 +-
 drivers/gpu/drm/xe/xe_gt_types.h                   |   6 --
 drivers/gpu/drm/xe/xe_guc_pc.c                     |   2 +-
 drivers/gpu/drm/xe/xe_hwmon.c                      |   4 +-
 drivers/gpu/drm/xe/xe_pcode.c                      | 104 ++++++++++-----------
 drivers/gpu/drm/xe/xe_pcode.h                      |  16 ++--
 drivers/gpu/drm/xe/xe_tile.c                       |   3 +
 drivers/gpu/drm/xe/xe_uc_fw.h                      |   9 +-
 drivers/gpu/drm/xe/xe_vram_freq.c                  |   6 +-
 14 files changed, 124 insertions(+), 89 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-09-12 14:46 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2024-09-12 14:46 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

A bit more hetic that I was expecting for this week.
But important fixes.

While picking them up I had some conflicts on drm-tip
that I had to solve. Most of them just going with
entirely with the version in -next side.
Except the one that removes the double include,
which the resolution is to go with the next side,
but remote the duplicated include:

-#include <generated/xe_wa_oob.h>

Thanks,
Rodrigo.

drm-xe-fixes-2024-09-12:
- Remove a double include (Lucas)
- Fix null checks and UAF (Brost)
- Fix access_ok check in user_fence_create (Nirmoy)
- Fix compat IS_DISPLAY_STEP() range (Jani)
- OA fix (Ashutosh)
- Fixes in show_meminfo (Auld)

The following changes since commit da3ea35007d0af457a0afc87e84fddaebc4e0b63:

  Linux 6.11-rc7 (2024-09-08 14:50:28 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-09-12

for you to fetch changes up to 94c4aa266111262c96c98f822d1bccc494786fee:

  drm/xe/client: add missing bo locking in show_meminfo() (2024-09-12 10:07:22 -0400)

----------------------------------------------------------------
- Remove a double include (Lucas)
- Fix null checks and UAF (Brost)
- Fix access_ok check in user_fence_create (Nirmoy)
- Fix compat IS_DISPLAY_STEP() range (Jani)
- OA fix (Ashutosh)
- Fixes in show_meminfo (Auld)

----------------------------------------------------------------
Ashutosh Dixit (1):
      drm/xe/oa: Enable Xe2+ PES disaggregation

Jani Nikula (1):
      drm/xe/display: fix compat IS_DISPLAY_STEP() range end

Lucas De Marchi (1):
      drm/xe/gt: Remove double include

Matthew Auld (2):
      drm/xe/client: fix deadlock in show_meminfo()
      drm/xe/client: add missing bo locking in show_meminfo()

Matthew Brost (2):
      drm/xe: Remove fence check from send_tlb_invalidation
      drm/xe: Fix possible UAF in guc_exec_queue_process_msg

Nirmoy Das (1):
      drm/xe: Fix access_ok check in user_fence_create

 drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h |  2 +-
 drivers/gpu/drm/xe/regs/xe_oa_regs.h              |  1 +
 drivers/gpu/drm/xe/xe_drm_client.c                | 45 +++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_gt.c                        |  1 -
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c       |  4 +-
 drivers/gpu/drm/xe/xe_guc_submit.c                |  4 +-
 drivers/gpu/drm/xe/xe_oa.c                        |  4 ++
 drivers/gpu/drm/xe/xe_sync.c                      |  2 +-
 8 files changed, 53 insertions(+), 10 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-10-03 14:15 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-10-03 14:15 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

drm-xe-fixes for 6.12-rc2. A few fixes, particularly on error paths and
corner cases. We have more than usual as I decided to skip last week
pull request. Some tuning for Xe2 were missing and also got updated to
match the spec.

Thanks
Lucas De Marchi

drm-xe-fixes-2024-10-03:
Driver Changes:
- Restore pci state on resume (Rodrigo Vivi)
- Fix locking on submission, queue and vm (Matthew Auld, Matthew Brost)
- Fix UAF on queue destruction (Matthew Auld)
- Fix resource release on freq init error path (He Lugang)
- Use rw_semaphore to reduce contention on ASID->VM lookup (Matthew Brost)
- Fix steering for media on Xe2_HPM (Gustavo Sousa)
- Tuning updates to Xe2 (Gustavo Sousa)
- Resume TDR after GT reset to prevent jobs running forever (Matthew Brost)
- Move id allocation to avoid userspace using a guessed number
   to trigger UAF (Matthew Auld, Matthew Brost)
- Fix OA stream close preventing pbatch buffers to complete (José)
- Fix NPD when migrating memory on LNL (Zhanjun Dong)
- Fix memory leak when aborting binds (Matthew Brost)
The following changes since commit 9852d85ec9d492ebef56dc5f229416c925758edc:

   Linux 6.12-rc1 (2024-09-29 15:06:19 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-10-03

for you to fetch changes up to a6f3b2527375c786f2eff77d3ee8b805bcfe026d:

   drm/xe: Fix memory leak when aborting binds (2024-10-03 01:24:54 -0500)

----------------------------------------------------------------
Driver Changes:
- Restore pci state on resume (Rodrigo Vivi)
- Fix locking on submission, queue and vm (Matthew Auld, Matthew Brost)
- Fix UAF on queue destruction (Matthew Auld)
- Fix resource release on freq init error path (He Lugang)
- Use rw_semaphore to reduce contention on ASID->VM lookup (Matthew Brost)
- Fix steering for media on Xe2_HPM (Gustavo Sousa)
- Tuning updates to Xe2 (Gustavo Sousa)
- Resume TDR after GT reset to prevent jobs running forever (Matthew Brost)
- Move id allocation to avoid userspace using a guessed number
   to trigger UAF (Matthew Auld, Matthew Brost)
- Fix OA stream close preventing pbatch buffers to complete (José)
- Fix NPD when migrating memory on LNL (Zhanjun Dong)
- Fix memory leak when aborting binds (Matthew Brost)

----------------------------------------------------------------
Gustavo Sousa (3):
       drm/xe/mcr: Use Xe2_LPM steering tables for Xe2_HPM
       drm/xe/xe2: Extend performance tuning to media GT
       drm/xe/xe2: Add performance tuning for L3 cache flushing

He Lugang (1):
       drm/xe: use devm_add_action_or_reset() helper

José Roberto de Souza (1):
       drm/xe/oa: Don't reset OAC_CONTEXT_ENABLE on OA stream close

Matthew Auld (4):
       drm/xe/guc_submit: add missing locking in wedged_fini
       drm/xe: fix UAF around queue destruction
       drm/xe/vm: move xa_alloc to prevent UAF
       drm/xe/queue: move xa_alloc to prevent UAF

Matthew Brost (5):
       drm/xe: Convert to USM lock to rwsem
       drm/xe: Use helper for ASID -> VM in GPU faults and access counters
       drm/xe: Resume TDR after GT reset
       drm/xe: Clean up VM / exec queue file lock usage.
       drm/xe: Fix memory leak when aborting binds

Rodrigo Vivi (1):
       drm/xe: Restore pci state upon resume

Zhanjun Dong (1):
       drm/xe: Prevent null pointer access in xe_migrate_copy

  drivers/gpu/drm/xe/regs/xe_gt_regs.h  | 11 ++++++++++
  drivers/gpu/drm/xe/xe_bo.c            |  4 ++--
  drivers/gpu/drm/xe/xe_device.c        | 12 +++++------
  drivers/gpu/drm/xe/xe_device_types.h  | 19 +++++++++++++----
  drivers/gpu/drm/xe/xe_drm_client.c    |  9 +++++++-
  drivers/gpu/drm/xe/xe_exec_queue.c    |  6 +++---
  drivers/gpu/drm/xe/xe_gpu_scheduler.c |  5 +++++
  drivers/gpu/drm/xe/xe_gpu_scheduler.h |  2 ++
  drivers/gpu/drm/xe/xe_gt_freq.c       |  4 ++--
  drivers/gpu/drm/xe/xe_gt_mcr.c        |  2 +-
  drivers/gpu/drm/xe/xe_gt_pagefault.c  | 39 +++++++++++++++++++----------------
  drivers/gpu/drm/xe/xe_gt_sysfs.c      |  2 +-
  drivers/gpu/drm/xe/xe_guc_submit.c    | 37 ++++++++++++++++++++++++++++++---
  drivers/gpu/drm/xe/xe_guc_types.h     |  2 ++
  drivers/gpu/drm/xe/xe_oa.c            |  9 +++-----
  drivers/gpu/drm/xe/xe_pci.c           |  2 ++
  drivers/gpu/drm/xe/xe_pt.c            |  2 +-
  drivers/gpu/drm/xe/xe_tuning.c        | 28 +++++++++++++++++++++++++
  drivers/gpu/drm/xe/xe_vm.c            | 28 +++++++++++--------------
  19 files changed, 159 insertions(+), 64 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-10-11  3:12 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-10-11  3:12 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

A few drm-xe fixes for 6.12-rc3.

thanks
Lucas De Marchi

drm-xe-fixes-2024-10-10:
Driver Changes:
- Fix error checking with xa_store() (Matthe Auld)
- Fix missing freq restore on GSC load error (Vinay)
- Fix wedged_mode file permission (Matt Roper)
- Fix use-after-free in ct communication (Matthew Auld)
The following changes since commit 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b:

   Linux 6.12-rc2 (2024-10-06 15:32:27 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-10-10

for you to fetch changes up to 1badf482816417dca71f8120b4c540cdc82aa03c:

   drm/xe: Make wedged_mode debugfs writable (2024-10-08 18:06:24 -0500)

----------------------------------------------------------------
Driver Changes:
- Fix error checking with xa_store() (Matthe Auld)
- Fix missing freq restore on GSC load error (Vinay)
- Fix wedged_mode file permission (Matt Roper)
- Fix use-after-free in ct communication (Matthew Auld)

----------------------------------------------------------------
Matt Roper (1):
       drm/xe: Make wedged_mode debugfs writable

Matthew Auld (3):
       drm/xe/ct: prevent UAF in send_recv()
       drm/xe/ct: fix xa_store() error checking
       drm/xe/guc_submit: fix xa_store() error checking

Vinay Belgaumkar (1):
       drm/xe: Restore GT freq on GSC load error

  drivers/gpu/drm/xe/xe_debugfs.c    |  2 +-
  drivers/gpu/drm/xe/xe_gt.c         |  4 +++-
  drivers/gpu/drm/xe/xe_guc_ct.c     | 44 ++++++++++++++++++++++----------------
  drivers/gpu/drm/xe/xe_guc_submit.c |  9 +++-----
  4 files changed, 33 insertions(+), 26 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-10-18  3:33 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-10-18  3:33 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

drm-xe-fixes for 6.12-rc4. Mostly some error path fixes and locking
adjustements. Timestamp bit width fixes delta time calculations in
userspace and one display fix for tile4 modifier in LNL/BMG.

thanks
Lucas De Marchi

drm-xe-fixes-2024-10-17:
Driver Changes:
- New workaround to Xe2 (Aradhya)
- Fix unbalanced rpm put (Matthew Auld)
- Remove fragile lock optimization (Matthew Brost)
- Fix job release, delegating it to the drm scheduler (Matthew Brost)
- Fix timestamp bit width for Xe2 (Lucas)
- Fix external BO's dma-resv usag (Matthew Brost)
- Fix returning success for timeout in wait_token (Nirmoy)
- Initialize fence to avoid it being detected as signaled (Matthew Auld)
- Improve cache flush for BMG (Matthew Auld)
- Don't allow hflip for tile4 framebuffer on Xe2 (Juha-Pekka)
The following changes since commit 8e929cb546ee42c9a61d24fae60605e9e3192354:

   Linux 6.12-rc3 (2024-10-13 14:33:32 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-10-17

for you to fetch changes up to ffafd12696d1a4c8eeb7386d798d75e1fafb4e01:

   drm/i915/display: Don't allow tile4 framebuffer to do hflip on display20 or greater (2024-10-16 09:07:09 -0500)

----------------------------------------------------------------
Driver Changes:
- New workaround to Xe2 (Aradhya)
- Fix unbalanced rpm put (Matthew Auld)
- Remove fragile lock optimization (Matthew Brost)
- Fix job release, delegating it to the drm scheduler (Matthew Brost)
- Fix timestamp bit width for Xe2 (Lucas)
- Fix external BO's dma-resv usag (Matthew Brost)
- Fix returning success for timeout in wait_token (Nirmoy)
- Initialize fence to avoid it being detected as signaled (Matthew Auld)
- Improve cache flush for BMG (Matthew Auld)
- Don't allow hflip for tile4 framebuffer on Xe2 (Juha-Pekka)

----------------------------------------------------------------
Aradhya Bhatia (1):
       drm/xe/xe2lpg: Extend Wa_15016589081 for xe2lpg

Juha-Pekka Heikkila (1):
       drm/i915/display: Don't allow tile4 framebuffer to do hflip on display20 or greater

Lucas De Marchi (1):
       drm/xe/query: Increase timestamp width

Matthew Auld (4):
       drm/xe: fix unbalanced rpm put() with fence_fini()
       drm/xe: fix unbalanced rpm put() with declare_wedged()
       drm/xe/xe_sync: initialise ufence.signalled
       drm/xe/bmg: improve cache flushing behaviour

Matthew Brost (3):
       drm/xe: Take job list lock in xe_sched_add_pending_job
       drm/xe: Don't free job in TDR
       drm/xe: Use bookkeep slots for external BO's in exec IOCTL

Nirmoy Das (1):
       drm/xe/ufence: ufence can be signaled right after wait_woken

  drivers/gpu/drm/i915/display/intel_fb.c            | 13 ++++++++++
  drivers/gpu/drm/i915/display/intel_fb.h            |  1 +
  drivers/gpu/drm/i915/display/skl_universal_plane.c | 11 ++++++++
  drivers/gpu/drm/xe/regs/xe_gt_regs.h               |  3 ---
  drivers/gpu/drm/xe/xe_device.c                     |  4 +--
  drivers/gpu/drm/xe/xe_exec.c                       | 12 +++------
  drivers/gpu/drm/xe/xe_gpu_scheduler.h              |  2 ++
  drivers/gpu/drm/xe/xe_gt.c                         |  1 -
  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c        | 29 ++++++++++------------
  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h        |  1 -
  drivers/gpu/drm/xe/xe_guc_submit.c                 |  7 ++++--
  drivers/gpu/drm/xe/xe_query.c                      |  6 ++++-
  drivers/gpu/drm/xe/xe_sync.c                       |  2 +-
  drivers/gpu/drm/xe/xe_vm.c                         |  8 ++----
  drivers/gpu/drm/xe/xe_wa.c                         |  4 +++
  drivers/gpu/drm/xe/xe_wait_user_fence.c            |  3 ---
  16 files changed, 63 insertions(+), 44 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-10-24 23:15 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-10-24 23:15 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

drm-xe-fixes for 6.12-rc5 with commits mostly improving error handling.
The g2h flush helps some LNL we are seeing, but we still have other 2
similar ones - however they didn't make it in time to drm-xe-next to be
properly tested, so I'm leaving for later.

There are 2 conflicts when merging drm-next on top that I fixed
in drm-tip: the first is trivial, just taking drm-next. The second is
also trivial, preferring xa_erase() over xa_erase_irq(), but the diff
context is more scary, so I'm pasting here (with a | prefix so bots
don't try anything funny):

| remerge CONFLICT (content): Merge conflict in drivers/gpu/drm/xe/xe_guc_ct.c
| index c6caf8f92421..c260d8840990 100644
| --- a/drivers/gpu/drm/xe/xe_guc_ct.c
| +++ b/drivers/gpu/drm/xe/xe_guc_ct.c
| @@ -1019,7 +1019,6 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len,
|          ret = wait_event_timeout(ct->g2h_fence_wq, g2h_fence.done, HZ);
|   
|          /*
| -<<<<<<< 3cf59b00bd34 (Merge remote-tracking branch 'drm-xe/drm-xe-fixes' into drm-tip)
|           * Occasionally it is seen that the G2H worker starts running after a delay of more than
|           * a second even after being queued and activated by the Linux workqueue subsystem. This
|           * leads to G2H timeout error. The root cause of issue lies with scheduling latency of
| @@ -1044,22 +1043,10 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len,
|           * correct ordering, and we lack the needed barriers.
|           */
|          mutex_lock(&ct->lock);
| -       if (!ret) {
| -               xe_gt_err(gt, "Timed out wait for G2H, fence %u, action %04x, done %s",
| -                         g2h_fence.seqno, action[0], str_yes_no(g2h_fence.done));
| -               xa_erase_irq(&ct->fence_lookup, g2h_fence.seqno);
| -=======
| -        * Ensure we serialize with completion side to prevent UAF with fence going out of scope on
| -        * the stack, since we have no clue if it will fire after the timeout before we can erase
| -        * from the xa. Also we have some dependent loads and stores below for which we need the
| -        * correct ordering, and we lack the needed barriers.
| -        */
| -       mutex_lock(&ct->lock);
|          if (!ret) {
|                  xe_gt_err(gt, "Timed out wait for G2H, fence %u, action %04x, done %s",
|                            g2h_fence.seqno, action[0], str_yes_no(g2h_fence.done));
|                  xa_erase(&ct->fence_lookup, g2h_fence.seqno);
| ->>>>>>> c9ff14d0339a (Merge tag 'drm-intel-gt-next-2024-10-23' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next)

thanks
Lucas De Marchi

drm-xe-fixes-2024-10-24-1:
Driver Changes:
- Increase invalidation timeout to avoid errors in some hosts (Shuicheng)
- Flush worker on timeout (Badal)
- Better handling for force wake failure (Shuicheng)
- Improve argument check on user fence creation (Nirmoy)
- Don't restart parallel queues multiple times on GT reset (Nirmoy)
The following changes since commit 42f7652d3eb527d03665b09edac47f85fb600924:

   Linux 6.12-rc4 (2024-10-20 15:19:38 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-10-24-1

for you to fetch changes up to cdc21021f0351226a4845715564afd5dc50ed44b:

   drm/xe: Don't restart parallel queues multiple times on GT reset (2024-10-24 12:42:52 -0500)

----------------------------------------------------------------
Driver Changes:
- Increase invalidation timeout to avoid errors in some hosts (Shuicheng)
- Flush worker on timeout (Badal)
- Better handling for force wake failure (Shuicheng)
- Improve argument check on user fence creation (Nirmoy)
- Don't restart parallel queues multiple times on GT reset (Nirmoy)

----------------------------------------------------------------
Badal Nilawar (1):
       drm/xe/guc/ct: Flush g2h worker in case of g2h response timeout

Nirmoy Das (2):
       drm/xe/ufence: Prefetch ufence addr to catch bogus address
       drm/xe: Don't restart parallel queues multiple times on GT reset

Shuicheng Lin (2):
       drm/xe: Enlarge the invalidation timeout from 150 to 500
       drm/xe: Handle unreliable MMIO reads during forcewake

  drivers/gpu/drm/xe/xe_device.c     |  2 +-
  drivers/gpu/drm/xe/xe_force_wake.c | 12 +++++++++---
  drivers/gpu/drm/xe/xe_guc_ct.c     | 18 ++++++++++++++++++
  drivers/gpu/drm/xe/xe_guc_submit.c | 14 ++++++++++++--
  drivers/gpu/drm/xe/xe_sync.c       |  3 ++-
  5 files changed, 42 insertions(+), 7 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-11-01 10:41 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-11-01 10:41 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

drm-xe-fixes for 6.12-rc6. Two important fixes for LNL and one missing
hpd enabling. This last one brought in a refactor as dependency,
otherwise it would cause some headache with conflicts.

thanks
Lucas De Marchi

drm-xe-fixes-2024-10-31:
Driver Changes:
- Fix missing HPD interrupt enabling, bringing one PM refactor with it
   (Imre / Maarten)
- Workaround LNL GGTT invalidation not being visible to GuC
   (Matthew Brost)
- Avoid getting jobs stuck without a protecting timeout (Matthew Brost)
The following changes since commit 81983758430957d9a5cb3333fe324fd70cf63e7e:

   Linux 6.12-rc5 (2024-10-27 12:52:02 -1000)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-10-31

for you to fetch changes up to fe05cee4d9533892210e1ee90147175d87e7c053:

   drm/xe: Don't short circuit TDR on jobs not started (2024-10-31 07:03:14 -0700)

----------------------------------------------------------------
Driver Changes:
- Fix missing HPD interrupt enabling, bringing one PM refactor with it
   (Imre / Maarten)
- Workaround LNL GGTT invalidation not being visible to GuC
   (Matthew Brost)
- Avoid getting jobs stuck without a protecting timeout (Matthew Brost)

----------------------------------------------------------------
Imre Deak (2):
       drm/xe/display: Separate the d3cold and non-d3cold runtime PM handling
       drm/xe/display: Add missing HPD interrupt enabling during non-d3cold RPM resume

Maarten Lankhorst (1):
       drm/xe: Remove runtime argument from display s/r functions

Matthew Brost (2):
       drm/xe: Add mmio read before GGTT invalidate
       drm/xe: Don't short circuit TDR on jobs not started

  drivers/gpu/drm/xe/display/xe_display.c | 71 +++++++++++++++++++++------------
  drivers/gpu/drm/xe/display/xe_display.h |  8 ++--
  drivers/gpu/drm/xe/xe_ggtt.c            | 10 +++++
  drivers/gpu/drm/xe/xe_guc_submit.c      | 18 ++++++---
  drivers/gpu/drm/xe/xe_pm.c              |  6 +--
  5 files changed, 75 insertions(+), 38 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-11-08 15:28 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-11-08 15:28 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

drm-xe-fixes for 6.12-rc7. Still busier than I'd like for an rc7, but
needed particularly for LNL.

thanks,
Lucas De Marchi

drm-xe-fixes-2024-11-08:
Driver Changes:
- Fix ccs_mode setting for Xe2 and later (Balasubramani)
- Synchronize ccs_mode setting with client creation (Balasubramani)
- Apply scheduling WA for LNL in additional places as needed
   (Nirmoy)
- Fix leak and lock handling in error paths of xe_exec ioctl
   (Matthew Brost)
- Fix GGTT allocation leak leading to eventual crash in SR-IOV
   (Michal Wajdeczko)
- Move run_ticks update out of job handling to avoid synchronization
   with reader (Lucas)
The following changes since commit 59b723cd2adbac2a34fc8e12c74ae26ae45bf230:

   Linux 6.12-rc6 (2024-11-03 14:05:52 -1000)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-11-08

for you to fetch changes up to 514447a1219021298329ce586536598c3b4b2dc0:

   drm/xe: Stop accumulating LRC timestamp on job_free (2024-11-05 15:40:13 -0800)

----------------------------------------------------------------
Driver Changes:
- Fix ccs_mode setting for Xe2 and later (Balasubramani)
- Synchronize ccs_mode setting with client creation (Balasubramani)
- Apply scheduling WA for LNL in additional places as needed
   (Nirmoy)
- Fix leak and lock handling in error paths of xe_exec ioctl
   (Matthew Brost)
- Fix GGTT allocation leak leading to eventual crash in SR-IOV
   (Michal Wajdeczko)
- Move run_ticks update out of job handling to avoid synchronization
   with reader (Lucas)

----------------------------------------------------------------
Balasubramani Vivekanandan (2):
       drm/xe: Set mask bits for CCS_MODE register
       drm/xe: Use the filelist from drm for ccs_mode change

Lucas De Marchi (1):
       drm/xe: Stop accumulating LRC timestamp on job_free

Matthew Brost (2):
       drm/xe: Fix possible exec queue leak in exec IOCTL
       drm/xe: Drop VM dma-resv lock on xe_sync_in_fence_get failure in exec IOCTL

Michal Wajdeczko (1):
       drm/xe/pf: Fix potential GGTT allocation leak

Nirmoy Das (3):
       drm/xe: Move LNL scheduling WA to xe_device.h
       drm/xe/ufence: Flush xe ordered_wq in case of ufence timeout
       drm/xe/guc/tlb: Flush g2h worker in case of tlb timeout

  drivers/gpu/drm/xe/regs/xe_gt_regs.h        |  2 +-
  drivers/gpu/drm/xe/xe_device.c              | 10 ----------
  drivers/gpu/drm/xe/xe_device.h              | 14 ++++++++++++++
  drivers/gpu/drm/xe/xe_device_types.h        |  9 ---------
  drivers/gpu/drm/xe/xe_exec.c                | 13 +++++++++----
  drivers/gpu/drm/xe/xe_exec_queue.c          |  6 ++++++
  drivers/gpu/drm/xe/xe_gt_ccs_mode.c         | 15 +++++++++++----
  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c  |  4 +++-
  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c |  2 ++
  drivers/gpu/drm/xe/xe_guc_ct.c              | 11 +----------
  drivers/gpu/drm/xe/xe_guc_submit.c          |  2 --
  drivers/gpu/drm/xe/xe_wait_user_fence.c     |  7 +++++++
  12 files changed, 54 insertions(+), 41 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-11-15  0:03 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2024-11-15  0:03 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Simona,

A few more drm-xe fixes for this week.

thanks
Lucas De Marchi

drm-xe-fixes-2024-11-14:
Driver Changes:
- Fix unlock on exec ioctl error path (Matthew Brost)
- Fix hibernation on LNL due to ggtt getting lost
   (Matthew Brost / Matthew Auld)
- Fix missing runtime PM in OA release (Ashutosh)
The following changes since commit 2d5404caa8c7bb5c4e0435f94b28834ae5456623:

   Linux 6.12-rc7 (2024-11-10 14:19:35 -0800)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-11-14

for you to fetch changes up to c0403e4ceecaefbeaf78263dffcd3e3f06a19f6b:

   drm/xe/oa: Fix "Missing outer runtime PM protection" warning (2024-11-13 11:37:22 -0800)

----------------------------------------------------------------
Driver Changes:
- Fix unlock on exec ioctl error path (Matthew Brost)
- Fix hibernation on LNL due to ggtt getting lost
   (Matthew Brost / Matthew Auld)
- Fix missing runtime PM in OA release (Ashutosh)

----------------------------------------------------------------
Ashutosh Dixit (1):
       drm/xe/oa: Fix "Missing outer runtime PM protection" warning

Matthew Auld (2):
       drm/xe: improve hibernation on igpu
       drm/xe: handle flat ccs during hibernation on igpu

Matthew Brost (2):
       drm/xe: Ensure all locks released in exec IOCTL
       drm/xe: Restore system memory GGTT mappings

  drivers/gpu/drm/xe/xe_bo.c       | 43 +++++++++++++++++++++-------------------
  drivers/gpu/drm/xe/xe_bo_evict.c | 20 +++++++++++--------
  drivers/gpu/drm/xe/xe_exec.c     |  4 ++--
  drivers/gpu/drm/xe/xe_oa.c       |  2 ++
  4 files changed, 39 insertions(+), 30 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-12-04 14:08 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-12-04 14:08 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi Dave, Simona

Two xe fixes for -rc2

Thanks,
Thomas

drm-xe-fixes-2024-12-04:
Driver Changes:
- Missing init value and 64-bit write-order check (Zhanjung)
- Fix a memory allocation issue causing lockdep violation (John)
The following changes since commit 40384c840ea1944d7c5a392e8975ed088ecf0b37:

  Linux 6.13-rc1 (2024-12-01 14:28:56 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-12-04

for you to fetch changes up to 5dce85fecb87751ec94526e1ac516dd7871e2e0c:

  drm/xe: Move the coredump registration to the worker thread (2024-12-03 10:33:13 +0100)

----------------------------------------------------------------
Driver Changes:
- Missing init value and 64-bit write-order check (Zhanjung)
- Fix a memory allocation issue causing lockdep violation (John)

----------------------------------------------------------------
John Harrison (1):
      drm/xe: Move the coredump registration to the worker thread

Zhanjun Dong (1):
      drm/xe/guc: Fix missing init value and add register order check

 drivers/gpu/drm/xe/xe_devcoredump.c | 73 +++++++++++++++++++----------------
 drivers/gpu/drm/xe/xe_guc_capture.c | 77 +++++++++++++++++++++++++++++--------
 2 files changed, 101 insertions(+), 49 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-12-12 19:28 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2024-12-12 19:28 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Dave, Simona

This week'd drm-xe-fixes PR.

Thanks,
Thomas

drm-xe-fixes-2024-12-12:
- Fix a KUNIT test error message (Mirsad Todorovac)
- Fix an invalidation fence PM ref leak (Daniele)
- Fix a register pool UAF (Lucas)
The following changes since commit 5dce85fecb87751ec94526e1ac516dd7871e2e0c:

  drm/xe: Move the coredump registration to the worker thread (2024-12-03 10:33:13 +0100)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-12-12

for you to fetch changes up to d7b028656c29b22fcde1c6ee1df5b28fbba987b5:

  drm/xe/reg_sr: Remove register pool (2024-12-12 16:57:28 +0100)

----------------------------------------------------------------
- Fix a KUNIT test error message (Mirsad Todorovac)
- Fix an invalidation fence PM ref leak (Daniele)
- Fix a register pool UAF (Lucas)

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
      drm/xe: Call invalidation_fence_fini for PT inval fences in error state

Lucas De Marchi (1):
      drm/xe/reg_sr: Remove register pool

Mirsad Todorovac (1):
      drm/xe: fix the ERR_PTR() returned on failure to allocate tiny pt

 drivers/gpu/drm/xe/tests/xe_migrate.c       |  4 ++--
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c |  8 ++++++++
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  1 +
 drivers/gpu/drm/xe/xe_pt.c                  |  3 +--
 drivers/gpu/drm/xe/xe_reg_sr.c              | 31 ++++++-----------------------
 drivers/gpu/drm/xe/xe_reg_sr_types.h        |  6 ------
 6 files changed, 18 insertions(+), 35 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2024-12-23 17:53 Thomas Hellstrom
  2025-01-02 19:55 ` Thomas Hellström
  0 siblings, 1 reply; 66+ messages in thread
From: Thomas Hellstrom @ 2024-12-23 17:53 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi Dave, Simona

The Xe fixes for -rc5.

Thanks,
Thomas

drm-xe-fixes-2024-12-23:
UAPI Changes:
- Revert some devcoredump file format changes
  breaking a mesa debug tool (John)

Driver Changes:
- Fixes around waits when moving to system (Nirmoy)
- Fix a typo when checking for LMEM provisioning (Michal)
- Fix a fault on fd close after unbind (Lucas)
The following changes since commit 4bbf9020becbfd8fc2c3da790855b7042fad455b:

  Linux 6.13-rc4 (2024-12-22 13:22:21 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-12-23

for you to fetch changes up to fe39b222a4139354d32ff9d46b88757f63f71d63:

  drm/xe: Fix fault on fd close after unbind (2024-12-23 16:19:52 +0100)

----------------------------------------------------------------
UAPI Changes:
- Revert some devcoredump file format changes
  breaking a mesa debug tool (John)

Driver Changes:
- Fixes around waits when moving to system (Nirmoy)
- Fix a typo when checking for LMEM provisioning (Michal)
- Fix a fault on fd close after unbind (Lucas)

----------------------------------------------------------------
John Harrison (1):
      drm/xe: Revert some changes that break a mesa debug tool

Lucas De Marchi (1):
      drm/xe: Fix fault on fd close after unbind

Michal Wajdeczko (1):
      drm/xe/pf: Use correct function to check LMEM provisioning

Nirmoy Das (2):
      drm/xe: Use non-interruptible wait when moving BO to system
      drm/xe: Wait for migration job before unmapping pages

 drivers/gpu/drm/xe/xe_bo.c                 | 12 ++++++++++--
 drivers/gpu/drm/xe/xe_devcoredump.c        | 15 ++++++++++++++-
 drivers/gpu/drm/xe/xe_exec_queue.c         |  9 +++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  2 +-
 4 files changed, 34 insertions(+), 4 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-01-02 19:53 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-01-02 19:53 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Simona!

Happy new year!
This PR supersedes the one sent out 24-12-23, since that didn't seem to get
pulled over the holidays. There's one extra commit (The OA fixes). The
rest of the summary is repeated.

Thanks,
Thomas

drm-xe-fixes-2025-01-02:
This supersedes drm-xe-fixes-2024-12-23.

UAPI Changes:
- Revert some devcoredump file format changes
  breaking a mesa debug tool (John)

Driver Changes:
- Fixes around waits when moving to system (Nirmoy)
- Fix a typo when checking for LMEM provisioning (Michal)
- Fix a fault on fd close after unbind (Lucas)
- A couple of OA fixes squashed for stable backporting (Umesh)
The following changes since commit 4bbf9020becbfd8fc2c3da790855b7042fad455b:

  Linux 6.13-rc4 (2024-12-22 13:22:21 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-01-02

for you to fetch changes up to f0ed39830e6064d62f9c5393505677a26569bb56:

  xe/oa: Fix query mode of operation for OAR/OAC (2025-01-02 19:01:21 +0100)

----------------------------------------------------------------
This supersedes drm-xe-fixes-2024-12-23.

UAPI Changes:
- Revert some devcoredump file format changes
  breaking a mesa debug tool (John)

Driver Changes:
- Fixes around waits when moving to system (Nirmoy)
- Fix a typo when checking for LMEM provisioning (Michal)
- Fix a fault on fd close after unbind (Lucas)
- A couple of OA fixes squashed for stable backporting (Umesh)

----------------------------------------------------------------
John Harrison (1):
      drm/xe: Revert some changes that break a mesa debug tool

Lucas De Marchi (1):
      drm/xe: Fix fault on fd close after unbind

Michal Wajdeczko (1):
      drm/xe/pf: Use correct function to check LMEM provisioning

Nirmoy Das (2):
      drm/xe: Use non-interruptible wait when moving BO to system
      drm/xe: Wait for migration job before unmapping pages

Umesh Nerlige Ramappa (1):
      xe/oa: Fix query mode of operation for OAR/OAC

 drivers/gpu/drm/xe/xe_bo.c                 |  12 ++-
 drivers/gpu/drm/xe/xe_devcoredump.c        |  15 +++-
 drivers/gpu/drm/xe/xe_exec_queue.c         |   9 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |   2 +-
 drivers/gpu/drm/xe/xe_oa.c                 | 134 ++++++++++-------------------
 drivers/gpu/drm/xe/xe_ring_ops.c           |   5 +-
 drivers/gpu/drm/xe/xe_sched_job_types.h    |   2 +
 7 files changed, 85 insertions(+), 94 deletions(-)

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

* Re: [PULL] drm-xe-fixes
  2024-12-23 17:53 Thomas Hellstrom
@ 2025-01-02 19:55 ` Thomas Hellström
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellström @ 2025-01-02 19:55 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Lucas De Marchi, dri-devel, intel-gfx, intel-xe, dim-tools

On Mon, 2024-12-23 at 18:53 +0100, Thomas Hellstrom wrote:
> Hi Dave, Simona
> 
> The Xe fixes for -rc5.

This PR just got superseded by a new one (drm-xe-fixes-2025-01-02),
that includes also the commits mentioned here.

Thanks,
Thomas




> 
> Thanks,
> Thomas
> 
> drm-xe-fixes-2024-12-23:
> UAPI Changes:
> - Revert some devcoredump file format changes
>   breaking a mesa debug tool (John)
> 
> Driver Changes:
> - Fixes around waits when moving to system (Nirmoy)
> - Fix a typo when checking for LMEM provisioning (Michal)
> - Fix a fault on fd close after unbind (Lucas)
> The following changes since commit
> 4bbf9020becbfd8fc2c3da790855b7042fad455b:
> 
>   Linux 6.13-rc4 (2024-12-22 13:22:21 -0800)
> 
> are available in the Git repository at:
> 
>   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-
> 2024-12-23
> 
> for you to fetch changes up to
> fe39b222a4139354d32ff9d46b88757f63f71d63:
> 
>   drm/xe: Fix fault on fd close after unbind (2024-12-23 16:19:52
> +0100)
> 
> ----------------------------------------------------------------
> UAPI Changes:
> - Revert some devcoredump file format changes
>   breaking a mesa debug tool (John)
> 
> Driver Changes:
> - Fixes around waits when moving to system (Nirmoy)
> - Fix a typo when checking for LMEM provisioning (Michal)
> - Fix a fault on fd close after unbind (Lucas)
> 
> ----------------------------------------------------------------
> John Harrison (1):
>       drm/xe: Revert some changes that break a mesa debug tool
> 
> Lucas De Marchi (1):
>       drm/xe: Fix fault on fd close after unbind
> 
> Michal Wajdeczko (1):
>       drm/xe/pf: Use correct function to check LMEM provisioning
> 
> Nirmoy Das (2):
>       drm/xe: Use non-interruptible wait when moving BO to system
>       drm/xe: Wait for migration job before unmapping pages
> 
>  drivers/gpu/drm/xe/xe_bo.c                 | 12 ++++++++++--
>  drivers/gpu/drm/xe/xe_devcoredump.c        | 15 ++++++++++++++-
>  drivers/gpu/drm/xe/xe_exec_queue.c         |  9 +++++++++
>  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |  2 +-
>  4 files changed, 34 insertions(+), 4 deletions(-)


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

* [PULL] drm-xe-fixes
@ 2025-01-09 18:59 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-01-09 18:59 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi Dave, Simona

Two fixes this week.

Thanks,
Thomas

drm-xe-fixes-2025-01-09:
Driver Changes:
- Avoid a NULL ptr deref when wedging (Lucas)
- Fix power gate sequence on DG1 (Rodrigo)
The following changes since commit f0ed39830e6064d62f9c5393505677a26569bb56:

  xe/oa: Fix query mode of operation for OAR/OAC (2025-01-02 19:01:21 +0100)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-01-09

for you to fetch changes up to b84e1cd22f8a8c03b7b1051372560c7017c8be92:

  drm/xe/dg1: Fix power gate sequence. (2025-01-09 10:38:56 +0100)

----------------------------------------------------------------
Driver Changes:
- Avoid a NULL ptr deref when wedging (Lucas)
- Fix power gate sequence on DG1 (Rodrigo)

----------------------------------------------------------------
Lucas De Marchi (1):
      drm/xe: Fix tlb invalidation when wedging

Rodrigo Vivi (1):
      drm/xe/dg1: Fix power gate sequence.

 drivers/gpu/drm/xe/xe_gt.c                  |  8 ++++----
 drivers/gpu/drm/xe/xe_gt_idle.c             | 10 ++++++----
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c |  4 ++--
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h |  3 ++-
 4 files changed, 14 insertions(+), 11 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-01-16 20:02 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-01-16 20:02 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Lucas De Marchi, dri-devel, intel-gfx,
	intel-xe, dim-tools

Hi Dave, Simona!

The hopefully last drm-xe-fixes for 6.13 It's a little bigger than
I was hoping for but nothing that really stands out.

Thanks,
Thomas

drm-xe-fixes-2025-01-16:
Driver Changes:
- Add steering info support for GuC register lists (Jesus Narvaez)
- Add means to wait for reset and synchronous reset (Maciej)
- Make changing ccs_mode a synchronous action (Maciej)
- Add missing mux registers (Ashutosh)
- Mark ComputeCS read mode as UC on iGPU, unblocking ULLS on iGPU (Matt Brost)
The following changes since commit 5bc55a333a2f7316b58edc7573e8e893f7acb532:

  Linux 6.13-rc7 (2025-01-12 14:37:56 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-01-16

for you to fetch changes up to b1231ff7ea0689d04040a44864c265bc11612fa8:

  drm/xe: Mark ComputeCS read mode as UC on iGPU (2025-01-16 20:03:11 +0100)

----------------------------------------------------------------
Driver Changes:
- Add steering info support for GuC register lists (Jesus Narvaez)
- Add means to wait for reset and synchronous reset (Maciej)
- Make changing ccs_mode a synchronous action (Maciej)
- Add missing mux registers (Ashutosh)
- Mark ComputeCS read mode as UC on iGPU, unblocking ULLS on iGPU (Matt Brost)

----------------------------------------------------------------
Ashutosh Dixit (1):
      drm/xe/oa: Add missing VISACTL mux registers

Jesus Narvaez (1):
      drm/xe/guc: Adding steering info support for GuC register lists

Maciej Patelczyk (2):
      drm/xe: introduce xe_gt_reset and xe_gt_wait_for_reset
      drm/xe: make change ccs_mode a synchronous action

Matthew Brost (1):
      drm/xe: Mark ComputeCS read mode as UC on iGPU

 drivers/gpu/drm/xe/tests/xe_bo.c    |  7 +++----
 drivers/gpu/drm/xe/tests/xe_mocs.c  |  3 +--
 drivers/gpu/drm/xe/xe_gt.h          | 25 +++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_ccs_mode.c |  2 +-
 drivers/gpu/drm/xe/xe_gt_debugfs.c  |  4 +---
 drivers/gpu/drm/xe/xe_gt_mcr.c      |  6 +++---
 drivers/gpu/drm/xe/xe_gt_mcr.h      |  4 ++++
 drivers/gpu/drm/xe/xe_guc_ads.c     | 15 +++++++++++++++
 drivers/gpu/drm/xe/xe_hw_engine.c   |  2 +-
 drivers/gpu/drm/xe/xe_oa.c          |  1 +
 10 files changed, 55 insertions(+), 14 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-02-06 13:48 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-02-06 13:48 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our first Xe related fixes towards 6.14.

Thanks,
Rodrigo.

drm-xe-fixes-2025-02-06:
UAPI Changes:
 - OA uAPI related fixes (Ashutosh)

Driver Changes:
 - Fix SRIOV migration initialization (Michal)
 - Restore devcoredump to a sane state (Lucas)
The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

  Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-02-06

for you to fetch changes up to a9ab6591b45258b79af1cb66112fd9f83c8855da:

  drm/xe: Fix and re-enable xe_print_blob_ascii85() (2025-02-03 12:56:52 -0500)

----------------------------------------------------------------
UAPI Changes:
 - OA uAPI related fixes (Ashutosh)

Driver Changes:
 - Fix SRIOV migration initialization (Michal)
 - Restore devcoredump to a sane state (Lucas)

----------------------------------------------------------------
Ashutosh Dixit (2):
      drm/xe/oa: Preserve oa_ctrl unused bits
      drm/xe/oa: Set stream->pollin in xe_oa_buffer_check_unlocked

Lucas De Marchi (2):
      drm/xe/devcoredump: Move exec queue snapshot to Contexts section
      drm/xe: Fix and re-enable xe_print_blob_ascii85()

Michal Wajdeczko (1):
      drm/xe/pf: Fix migration initialization

 drivers/gpu/drm/xe/regs/xe_oa_regs.h |  6 ++++++
 drivers/gpu/drm/xe/xe_devcoredump.c  | 42 +++++++++++++-----------------------
 drivers/gpu/drm/xe/xe_devcoredump.h  |  2 +-
 drivers/gpu/drm/xe/xe_gt.c           |  4 +++-
 drivers/gpu/drm/xe/xe_gt_sriov_pf.c  | 14 +++++++++++-
 drivers/gpu/drm/xe/xe_gt_sriov_pf.h  |  6 ++++++
 drivers/gpu/drm/xe/xe_guc_ct.c       |  3 ++-
 drivers/gpu/drm/xe/xe_guc_log.c      |  4 +++-
 drivers/gpu/drm/xe/xe_oa.c           | 21 +++++++++++-------
 9 files changed, 62 insertions(+), 40 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-02-13 17:25 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-02-13 17:25 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes the xe fixes for this round.

Thanks,
Rodrigo.

drm-xe-fixes-2025-02-13:
- Remove bo->clients out of bos_lock area (Tejas)
- Carve out wopcm portion from the stolen memory (Nirmoy)
The following changes since commit a64dcfb451e254085a7daee5fe51bf22959d52d3:

  Linux 6.14-rc2 (2025-02-09 12:45:03 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-02-13

for you to fetch changes up to e977499820782ab1c69f354d9f41b6d9ad1f43d9:

  drm/xe: Carve out wopcm portion from the stolen memory (2025-02-12 09:08:24 -0500)

----------------------------------------------------------------
- Remove bo->clients out of bos_lock area (Tejas)
- Carve out wopcm portion from the stolen memory (Nirmoy)

----------------------------------------------------------------
Nirmoy Das (1):
      drm/xe: Carve out wopcm portion from the stolen memory

Tejas Upadhyay (1):
      drm/xe/client: bo->client does not need bos_lock

 drivers/gpu/drm/xe/xe_drm_client.c     |  2 +-
 drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 70 ++++++++++++++++++----------------
 2 files changed, 39 insertions(+), 33 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-02-20 16:54 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-02-20 16:54 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our round of Xe fixes of this week.

Thanks,
Rodrigo.

drm-xe-fixes-2025-02-20:
- Fix error handling in xe_irq_install (Lucas)
- Fix devcoredump format (Jose, Lucas)

The following changes since commit 0ad2507d5d93f39619fc42372c347d6006b64319:

  Linux 6.14-rc3 (2025-02-16 14:02:44 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-02-20

for you to fetch changes up to 213e24250feed3bcf58d7594298df2d7e78a88ab:

  drm/xe/guc: Fix size_t print format (2025-02-18 15:53:01 -0500)

----------------------------------------------------------------
- Fix error handling in xe_irq_install (Lucas)
- Fix devcoredump format (Jose, Lucas)

----------------------------------------------------------------
José Roberto de Souza (1):
      drm/xe: Make GUC binaries dump consistent with other binaries in devcoredump

Lucas De Marchi (2):
      drm/xe: Fix error handling in xe_irq_install()
      drm/xe/guc: Fix size_t print format

 drivers/gpu/drm/xe/xe_guc_ct.c  |  6 ++++--
 drivers/gpu/drm/xe/xe_guc_log.c |  3 ++-
 drivers/gpu/drm/xe/xe_irq.c     | 14 +-------------
 3 files changed, 7 insertions(+), 16 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-02-27 16:28 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-02-27 16:28 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our xe fixes for this round.

Thanks,
Rodrigo.

drm-xe-fixes-2025-02-27:
uAPI:
- OA uapi fix (Umesh)

Driver:
- Userptr related fixes (Auld)
- Remove a duplicated register entry (Mingong)
- Scheduler related fix to prevent exec races when freeing it (Tejas)
The following changes since commit d082ecbc71e9e0bf49883ee4afd435a77a5101b6:

  Linux 6.14-rc4 (2025-02-23 12:32:57 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-02-27

for you to fetch changes up to 12c2f962fe71f390951d9242725bc7e608f55927:

  drm/xe: cancel pending job timer before freeing scheduler (2025-02-26 08:16:21 -0500)

----------------------------------------------------------------
uAPI:
- OA uapi fix (Umesh)

Driver:
- Userptr related fixes (Auld)
- Remove a duplicated register entry (Mingong)
- Scheduler related fix to prevent exec races when freeing it (Tejas)

----------------------------------------------------------------
Matthew Auld (2):
      drm/xe/userptr: restore invalidation list on error
      drm/xe/userptr: fix EFAULT handling

Mingcong Bai (1):
      drm/xe/regs: remove a duplicate definition for RING_CTL_SIZE(size)

Tejas Upadhyay (1):
      drm/xe: cancel pending job timer before freeing scheduler

Umesh Nerlige Ramappa (1):
      drm/xe/oa: Allow oa_exponent value of 0

 drivers/gpu/drm/xe/regs/xe_engine_regs.h |  1 -
 drivers/gpu/drm/xe/xe_guc_submit.c       |  2 ++
 drivers/gpu/drm/xe/xe_oa.c               |  5 ++--
 drivers/gpu/drm/xe/xe_vm.c               | 40 ++++++++++++++++++++++++++------
 4 files changed, 38 insertions(+), 10 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-03-06 18:01 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-03-06 18:01 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our xe fixes for this round, with
many fixes around userptr.

Thanks,
Rodrigo.

drm-xe-fixes-2025-03-06:
- Remove double page flip on initial plane (Maarten)
- Properly setup userptr pfn_flags_mask (Auld)
- Fix GT "for each engine" workarounds (Tvrtko)
- Fix userptr races and missed validations (Thomas, Brost)
- Userptr invalid page access fixes (Thomas)
The following changes since commit 7eb172143d5508b4da468ed59ee857c6e5e01da6:

  Linux 6.14-rc5 (2025-03-02 11:48:20 -0800)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-03-06

for you to fetch changes up to 333b8906336174478efbbfc1e24a89e3397ffe65:

  drm/xe/userptr: Unmap userptrs in the mmu notifier (2025-03-05 14:25:27 -0500)

----------------------------------------------------------------
- Remove double page flip on initial plane (Maarten)
- Properly setup userptr pfn_flags_mask (Auld)
- Fix GT "for each engine" workarounds (Tvrtko)
- Fix userptr races and missed validations (Thomas, Brost)
- Userptr invalid page access fixes (Thomas)

----------------------------------------------------------------
Maarten Lankhorst (1):
      drm/xe: Remove double pageflip

Matthew Auld (1):
      drm/xe/userptr: properly setup pfn_flags_mask

Matthew Brost (1):
      drm/xe: Add staging tree for VM binds

Thomas Hellström (6):
      drm/xe/vm: Validate userptr during gpu vma prefetching
      drm/xe/vm: Fix a misplaced #endif
      drm/xe: Fix fault mode invalidation with unbind
      drm/xe/hmm: Style- and include fixes
      drm/xe/hmm: Don't dereference struct page pointers without notifier lock
      drm/xe/userptr: Unmap userptrs in the mmu notifier

Tvrtko Ursulin (1):
      drm/xe: Fix GT "for each engine" workarounds

 drivers/gpu/drm/xe/display/xe_plane_initial.c |  10 --
 drivers/gpu/drm/xe/xe_gt.c                    |   4 +-
 drivers/gpu/drm/xe/xe_hmm.c                   | 194 +++++++++++++++++++-------
 drivers/gpu/drm/xe/xe_hmm.h                   |   7 +
 drivers/gpu/drm/xe/xe_pt.c                    |  96 ++++++-------
 drivers/gpu/drm/xe/xe_pt_walk.c               |   3 +-
 drivers/gpu/drm/xe/xe_pt_walk.h               |   4 +
 drivers/gpu/drm/xe/xe_vm.c                    | 100 +++++++++----
 drivers/gpu/drm/xe/xe_vm.h                    |  10 +-
 drivers/gpu/drm/xe/xe_vm_types.h              |   8 +-
 10 files changed, 292 insertions(+), 144 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-03-13 16:35 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-03-13 16:35 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes xe fixes for this week.

It is worth mention that we are disabling D3Cold on BMG because
we found some bugs where depending on the combination of BMG
card and the host, the PCI upstream port link port re-training
might fail on D3Cold -> D0 blowing things up. But while we
work with that and propagating this protection to the end
users, we are not disabling in our drm-tip to ensure that our
developers and CI can continue working with D3Cold enabled.
Everything we disable behind flags for developers will likely
be forgotten and regressions will pile up and be harder later
to re-enable it.

So, topic/xe-for-CI re-enables D3Cold. If developers ends up
having a bad combination they can workaround it by boot
parameter pcie_port_pm=off or with
echo 0 > /sys/bus/pci/devices/<bdf>/vram_d3cold_threshold

Also, the topic branch solution helps us to avoid adding the
controversial module parameters. But if there's any concern
or issues with this approach, please let me know.

Thanks,
Rodrigo.

drm-xe-fixes-2025-03-13:
- Release guc ids before cancelling work (Tejas)
- Fix new warnings around userptr (Thomas)
- Temporaritly disable D3Cold on BMG (Rodrigo)
- Retry and wait longer for GuC PC to start (Rodrigo)
- Remove redundant check in xe_vm_create_ioctl (Xin)
The following changes since commit 80e54e84911a923c40d7bee33a34c1b4be148d7a:

  Linux 6.14-rc6 (2025-03-09 13:45:25 -1000)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-03-13

for you to fetch changes up to f5d4e81774c42d9c2ea3980e570f3330ff2ed5d2:

  drm/xe: remove redundant check in xe_vm_create_ioctl() (2025-03-10 14:01:43 -0400)

----------------------------------------------------------------
- Release guc ids before cancelling work (Tejas)
- Fix new warnings around userptr (Thomas)
- Temporaritly disable D3Cold on BMG (Rodrigo)
- Retry and wait longer for GuC PC to start (Rodrigo)
- Remove redundant check in xe_vm_create_ioctl (Xin)

----------------------------------------------------------------
Rodrigo Vivi (2):
      drm/xe/pm: Temporarily disable D3Cold on BMG
      drm/xe/guc_pc: Retry and wait longer for GuC PC start

Tejas Upadhyay (1):
      drm/xe: Release guc ids before cancelling work

Thomas Hellström (1):
      drm/xe/userptr: Fix an incorrect assert

Xin Wang (1):
      drm/xe: remove redundant check in xe_vm_create_ioctl()

 drivers/gpu/drm/xe/xe_guc_pc.c     | 53 ++++++++++++++++++++++++++++----------
 drivers/gpu/drm/xe/xe_guc_submit.c |  2 +-
 drivers/gpu/drm/xe/xe_hmm.c        |  6 ++++-
 drivers/gpu/drm/xe/xe_pm.c         | 13 +++++++++-
 drivers/gpu/drm/xe/xe_vm.c         |  3 ---
 5 files changed, 58 insertions(+), 19 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-03-20 18:12 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-03-20 18:12 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Simona!

Rodrigo is out this week, but sending a PR for a single fix.

Thanks,
Thomas

drm-xe-fixes-2025-03-20:
Driver Changes:
- Fix for an error if exporting a dma-buf multiple time (Tomasz)
The following changes since commit f5d4e81774c42d9c2ea3980e570f3330ff2ed5d2:

  drm/xe: remove redundant check in xe_vm_create_ioctl() (2025-03-10 14:01:43 -0400)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-03-20

for you to fetch changes up to 50af7cab7520e46680cf4633bba6801443b75856:

  drm/xe: Fix exporting xe buffers multiple times (2025-03-20 17:59:49 +0100)

----------------------------------------------------------------
Driver Changes:
- Fix for an error if exporting a dma-buf multiple time (Tomasz)

----------------------------------------------------------------
Tomasz Rusinowicz (1):
      drm/xe: Fix exporting xe buffers multiple times

 drivers/gpu/drm/xe/xe_bo.h      | 2 --
 drivers/gpu/drm/xe/xe_dma_buf.c | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-04-10 21:06 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-04-10 21:06 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here are the fixes for drm-xe targeting 6.15-rc2.

drm-xe-fixes-2025-04-10:
Driver Changes:
- Add another BMG PCI ID
- Fix UAFs on migration paths
- Fix shift-out-of-bounds access on TLB invalidation
- Ensure ccs_mode is correctly set on gt reset
- Extend some HW workarounds to Xe3
- Fix PM runtime get/put on sysfs files
- Fix u64 division on 32b
- Fix flickering due to missing L3 invalidations
- Fix missing error code return

thanks,
Lucas De Marchi

The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8:

   Linux 6.15-rc1 (2025-04-06 13:11:33 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-04-10

for you to fetch changes up to 88ecb66b9956a14577d513a6c8c28bb2e7989703:

   drm/xe: Restore EIO errno return when GuC PC start fails (2025-04-07 14:00:27 -0700)

----------------------------------------------------------------
Driver Changes:
- Add another BMG PCI ID
- Fix UAFs on migration paths
- Fix shift-out-of-bounds access on TLB invalidation
- Ensure ccs_mode is correctly set on gt reset
- Extend some HW workarounds to Xe3
- Fix PM runtime get/put on sysfs files
- Fix u64 division on 32b
- Fix flickering due to missing L3 invalidations
- Fix missing error code return

----------------------------------------------------------------
Arnd Bergmann (1):
       drm/xe: avoid plain 64-bit division

Julia Filipchuk (1):
       drm/xe/xe3lpg: Apply Wa_14022293748, Wa_22019794406

Kenneth Graunke (1):
       drm/xe: Invalidate L3 read-only cachelines for geometry streams too

Matt Roper (1):
       drm/xe/bmg: Add one additional PCI ID

Matthew Brost (1):
       drm/xe: Use local fence in error path of xe_migrate_clear

Niranjana Vishwanathapura (1):
       drm/xe: Ensure fixed_slice_mode gets set after ccs_mode change

Rodrigo Vivi (1):
       drm/xe: Restore EIO errno return when GuC PC start fails

Tejas Upadhyay (1):
       drm/xe/hw_engine: define sysfs_ops on all directories

Thomas Hellström (2):
       drm/xe/svm: Fix a potential bo UAF
       drm/xe: Fix an out-of-bounds shift when invalidating TLB

  drivers/gpu/drm/xe/instructions/xe_gpu_commands.h |   1 +
  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c       |  12 ++-
  drivers/gpu/drm/xe/xe_guc_pc.c                    |   1 +
  drivers/gpu/drm/xe/xe_hw_engine.c                 |  12 +--
  drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c     | 108 +++++++++++-----------
  drivers/gpu/drm/xe/xe_migrate.c                   |   6 +-
  drivers/gpu/drm/xe/xe_ring_ops.c                  |  13 ++-
  drivers/gpu/drm/xe/xe_svm.c                       |   7 +-
  drivers/gpu/drm/xe/xe_wa_oob.rules                |   2 +
  include/drm/intel/pciids.h                        |   1 +
  10 files changed, 90 insertions(+), 73 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-04-18  5:43 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-04-18  5:43 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

A few fixes for 6.15-rc3. Nothing really special.

drm-xe-fixes-2025-04-18:
Driver Changes:
- Fix LRC address being written too late for GuC
- Fix notifier vs folio deadlock
- Fix race betwen dma_buf unmap and vram eviction
- Fix debugfs handling PXP terminations unconditionally

Thanks,
Lucas De Marchi

The following changes since commit 8ffd015db85fea3e15a77027fda6c02ced4d2444:

   Linux 6.15-rc2 (2025-04-13 11:54:49 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-04-18

for you to fetch changes up to 78600df8f593407a3df2d6c48c35d0ad203d7fb4:

   drm/xe/pxp: do not queue unneeded terminations from debugfs (2025-04-17 18:53:38 -0700)

----------------------------------------------------------------
Driver Changes:
- Fix LRC address being written too late for GuC
- Fix notifier vs folio deadlock
- Fix race betwen dma_buf unmap and vram eviction
- Fix debugfs handling PXP terminations unconditionally

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
       drm/xe/pxp: do not queue unneeded terminations from debugfs

Lucas De Marchi (1):
       drm/xe: Set LRC addresses before guc load

Matthew Auld (2):
       drm/xe/userptr: fix notifier vs folio deadlock
       drm/xe/dma_buf: stop relying on placement in unmap

  drivers/gpu/drm/xe/xe_dma_buf.c     |  5 +--
  drivers/gpu/drm/xe/xe_guc_ads.c     | 75 ++++++++++++++++++++++---------------
  drivers/gpu/drm/xe/xe_hmm.c         | 24 ------------
  drivers/gpu/drm/xe/xe_pxp_debugfs.c | 13 ++++++-
  4 files changed, 57 insertions(+), 60 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-05-02  3:23 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-05-02  3:23 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here are the drm-xe fixes for 6.15-rc5.

The commit touching drm/gpusvm was wrongly pushed to drm-xe rather than
drm-misc, but the fix is good and would otherwise be missed in drm-misc.
So I'm propagating it through our fixes branch.

drm-xe-fixes-2025-05-01:
Driver Changes:
- Eustall locking fix and disabling on VF
- Documentation fix kernel version supporting hwmon entries
- SVM fixes on error handling

thanks
Lucas De Marchi

The following changes since commit b4432656b36e5cc1d50a1f2dc15357543add530e:

   Linux 6.15-rc4 (2025-04-27 15:19:23 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-05-01

for you to fetch changes up to e8e3a804f3845a147fbdf73f910c12ddb3a2a86f:

   drm/gpusvm: set has_dma_mapping inside mapping loop (2025-05-01 21:45:31 -0500)

----------------------------------------------------------------
Driver Changes:
- Eustall locking fix and disabling on VF
- Documentation fix kernel version supporting hwmon entries
- SVM fixes on error handling

----------------------------------------------------------------
Dafna Hirschfeld (1):
       drm/gpusvm: set has_dma_mapping inside mapping loop

Harish Chegondi (2):
       drm/xe/eustall: Resolve a possible circular locking dependency
       drm/xe/eustall: Do not support EU stall on SRIOV VF

Harshit Mogalapalli (1):
       drm/xe/svm: fix dereferencing error pointer in drm_gpusvm_range_alloc()

John Harrison (1):
       drm/xe/guc: Fix capture of steering registers

Lucas De Marchi (1):
       drm/xe/hwmon: Fix kernel version documentation for temperature

  Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon |  4 ++--
  drivers/gpu/drm/drm_gpusvm.c                          |  2 +-
  drivers/gpu/drm/xe/xe_eu_stall.c                      | 14 ++++++++++++--
  drivers/gpu/drm/xe/xe_eu_stall.h                      |  3 ++-
  drivers/gpu/drm/xe/xe_guc_capture.c                   |  2 +-
  drivers/gpu/drm/xe/xe_svm.c                           |  2 +-
  6 files changed, 19 insertions(+), 8 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-05-09  5:12 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-05-09  5:12 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here's the drm-xe-fixes for 6.15-rc6.

drm-xe-fixes-2025-05-09:
Driver Changes:
- Prevent PF queue overflow
- Hold all forcewake during mocs test
- Remove GSC flush on reset path
- Fix forcewake put on error path
- Fix runtime warning when building without svm

thanks
Lucas De Marchi

The following changes since commit 92a09c47464d040866cf2b4cd052bc60555185fb:

   Linux 6.15-rc5 (2025-05-04 13:55:04 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-05-09

for you to fetch changes up to 564467e9d06c6352fac9100e8957d40a1a50234c:

   drm/xe: Add config control for svm flush work (2025-05-08 13:57:52 -0700)

----------------------------------------------------------------
Driver Changes:
- Prevent PF queue overflow
- Hold all forcewake during mocs test
- Remove GSC flush on reset path
- Fix forcewake put on error path
- Fix runtime warning when building without svm

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
       drm/xe/gsc: do not flush the GSC worker from the reset path

Matthew Brost (1):
       drm/xe: Add page queue multiplier

Shuicheng Lin (2):
       drm/xe: Release force wake first then runtime power
       drm/xe: Add config control for svm flush work

Tejas Upadhyay (1):
       drm/xe/tests/mocs: Hold XE_FORCEWAKE_ALL for LNCF regs

  drivers/gpu/drm/xe/tests/xe_mocs.c   |  7 +++++--
  drivers/gpu/drm/xe/xe_gsc.c          | 22 ++++++++++++++++++++++
  drivers/gpu/drm/xe/xe_gsc.h          |  1 +
  drivers/gpu/drm/xe/xe_gsc_proxy.c    | 11 +++++++++++
  drivers/gpu/drm/xe/xe_gsc_proxy.h    |  1 +
  drivers/gpu/drm/xe/xe_gt.c           |  2 +-
  drivers/gpu/drm/xe/xe_gt_debugfs.c   |  9 +++++----
  drivers/gpu/drm/xe/xe_gt_pagefault.c | 11 +++++++++--
  drivers/gpu/drm/xe/xe_svm.c          | 12 ++++++++++++
  drivers/gpu/drm/xe/xe_svm.h          |  8 ++++++++
  drivers/gpu/drm/xe/xe_uc.c           |  8 +++++++-
  drivers/gpu/drm/xe/xe_uc.h           |  1 +
  drivers/gpu/drm/xe/xe_vm.c           |  3 +--
  13 files changed, 84 insertions(+), 12 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-05-15 15:04 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-05-15 15:04 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima.

Here's the drm-xe-fixes for 6.15-rc7.

We had quite a few more changes than usual due to 2 fixes that were
being worked on for a few weeks: 1) engine utilization and 2) mixing cpu
and gpu atomics. Those 2 required some refactors to get them right.

Other than that, fixes are very simple.

Summary:

drm-xe-fixes-2025-05-15-1:
Core Changes:
- Add timeslicing and allocation restriction for SVM

Driver Changes:
- Fix shrinker debugfs name
- Add HW workaround to Xe2
- Fix SVM when mixing GPU and CPU atomics
- Fix per client engine utilization due to active contexts
   not saving timestamp with lite restore enabled.

Thanks,
Lucas De Marchi

The following changes since commit 82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3:

   Linux 6.15-rc6 (2025-05-11 14:54:11 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-05-15-1

for you to fetch changes up to 617d824c5323b8474b3665ae6c410c98b839e0b0:

   drm/xe: Add WA BB to capture active context utilization (2025-05-14 09:03:29 -0700)

----------------------------------------------------------------
Core Changes:
- Add timeslicing and allocation restriction for SVM

Driver Changes:
- Fix shrinker debugfs name
- Add HW workaround to Xe2
- Fix SVM when mixing GPU and CPU atomics
- Fix per client engine utilization due to active contexts
   not saving timestamp with lite restore enabled.

----------------------------------------------------------------
Aradhya Bhatia (1):
       drm/xe/xe2hpg: Add Wa_22021007897

Himal Prasad Ghimiray (1):
       drm/gpusvm: Introduce devmem_only flag for allocation

Matthew Brost (3):
       drm/xe: Strict migration policy for atomic SVM faults
       drm/gpusvm: Add timeslicing support to GPU SVM
       drm/xe: Timeslice GPU on atomic SVM fault

Thomas Hellström (1):
       drm/xe: Fix the gem shrinker name

Umesh Nerlige Ramappa (3):
       drm/xe: Save CTX_TIMESTAMP mmio value instead of LRC value
       drm/xe: Save the gt pointer in lrc and drop the tile
       drm/xe: Add WA BB to capture active context utilization

  drivers/gpu/drm/drm_gpusvm.c                     |  37 ++++-
  drivers/gpu/drm/xe/instructions/xe_mi_commands.h |   4 +
  drivers/gpu/drm/xe/regs/xe_engine_regs.h         |   5 +
  drivers/gpu/drm/xe/regs/xe_gt_regs.h             |   1 +
  drivers/gpu/drm/xe/regs/xe_lrc_layout.h          |   2 +
  drivers/gpu/drm/xe/xe_device_types.h             |   2 +
  drivers/gpu/drm/xe/xe_exec_queue.c               |   2 +-
  drivers/gpu/drm/xe/xe_guc_submit.c               |   2 +-
  drivers/gpu/drm/xe/xe_lrc.c                      | 199 +++++++++++++++++++++--
  drivers/gpu/drm/xe/xe_lrc.h                      |   5 +-
  drivers/gpu/drm/xe/xe_lrc_types.h                |   9 +-
  drivers/gpu/drm/xe/xe_module.c                   |   3 -
  drivers/gpu/drm/xe/xe_module.h                   |   1 -
  drivers/gpu/drm/xe/xe_pci.c                      |   2 +
  drivers/gpu/drm/xe/xe_pci_types.h                |   1 +
  drivers/gpu/drm/xe/xe_pt.c                       |  14 +-
  drivers/gpu/drm/xe/xe_ring_ops.c                 |   7 +-
  drivers/gpu/drm/xe/xe_shrinker.c                 |   2 +-
  drivers/gpu/drm/xe/xe_svm.c                      | 116 ++++++++++---
  drivers/gpu/drm/xe/xe_svm.h                      |   5 -
  drivers/gpu/drm/xe/xe_trace_lrc.h                |   8 +-
  drivers/gpu/drm/xe/xe_wa.c                       |   4 +
  include/drm/drm_gpusvm.h                         |  47 ++++--
  23 files changed, 391 insertions(+), 87 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-05-23  5:47 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-05-23  5:47 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here's the pull request for the drm-xe fixes targeting 6.15-rc8/6.15.
This week we are back to normal, with just a few fixes.

drm-xe-fixes-2025-05-23:
Driver Changes:
- Make sure to check all forcewakes when dumping mocs
- Fix wrong use of read64 on 32b register
- Synchronize Panther Lake PCI IDs

thanks
Lucas De Marchi


The following changes since commit a5806cd506af5a7c19bcd596e4708b5c464bfd21:

   Linux 6.15-rc7 (2025-05-18 13:57:29 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-05-23

for you to fetch changes up to 027a362fb36b479030beecbaaec30711ddabf8fa:

   drm/xe/ptl: Update the PTL pci id table (2025-05-22 20:54:15 -0700)

----------------------------------------------------------------
Driver Changes:
- Make sure to check all forcewakes when dumping mocs
- Fix wrong use of read64 on 32b register
- Synchronize Panther Lake PCI IDs

----------------------------------------------------------------
Matt Atwood (1):
       drm/xe/ptl: Update the PTL pci id table

Shuicheng Lin (1):
       drm/xe: Use xe_mmio_read32() to read mtcfg register

Tejas Upadhyay (1):
       drm/xe/mocs: Check if all domains awake

  drivers/gpu/drm/xe/xe_mmio.c | 10 +++++-----
  drivers/gpu/drm/xe/xe_mocs.c | 11 ++++++-----
  include/drm/intel/pciids.h   |  4 ++++
  3 files changed, 15 insertions(+), 10 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-06-12 16:33 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-06-12 16:33 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Simona

Two fixes for 6.16-rc2.

Thanks,
Thomas

drm-xe-fixes-2025-06-12:
Driver Changes:
- Fix regression disallowing 64K SVM migration (Maarten)
- Use a bounce buffer for WA BB (Lucas)

The following changes since commit 19272b37aa4f83ca52bdf9c16d5d81bdd1354494:

  Linux 6.16-rc1 (2025-06-08 13:44:43 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-06-12

for you to fetch changes up to 9c7632faad434c98f1f2cc06f3647a5a5d05ddbf:

  drm/xe/lrc: Use a temporary buffer for WA BB (2025-06-12 18:09:50 +0200)

----------------------------------------------------------------
Driver Changes:
- Fix regression disallowing 64K SVM migration (Maarten)
- Use a bounce buffer for WA BB (Lucas)

----------------------------------------------------------------
Lucas De Marchi (1):
      drm/xe/lrc: Use a temporary buffer for WA BB

Maarten Lankhorst (1):
      drm/xe/svm: Fix regression disallowing 64K SVM migration

 drivers/gpu/drm/xe/xe_lrc.c | 24 ++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_svm.c |  2 +-
 2 files changed, 21 insertions(+), 5 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-06-19 16:03 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-06-19 16:03 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Simona

Three fixes for -rc3. There are a couple more pending with
non-trivial merge conflicts that need to be properly
backported.

drm-xe-fixes-2025-06-19:
Driver Changes:
- A workaround update (Vinay)
- Fix memset on iomem (Lucas)
- Fix early wedge on GuC Load failure (Daniele)

The following changes since commit 9c7632faad434c98f1f2cc06f3647a5a5d05ddbf:

  drm/xe/lrc: Use a temporary buffer for WA BB (2025-06-12 18:09:50 +0200)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-06-19

for you to fetch changes up to a39d082c3553d35b4fe5585e1e2fb221c130cae8:

  drm/xe: Fix early wedge on GuC load failure (2025-06-19 17:24:30 +0200)

----------------------------------------------------------------
Driver Changes:
- A workaround update (Vinay)
- Fix memset on iomem (Lucas)
- Fix early wedge on GuC Load failure (Daniele)

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
      drm/xe: Fix early wedge on GuC load failure

Lucas De Marchi (1):
      drm/xe: Fix memset on iomem

Vinay Belgaumkar (1):
      drm/xe/bmg: Update Wa_16023588340

 drivers/gpu/drm/xe/xe_gt.c                  | 2 +-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 8 ++++++++
 drivers/gpu/drm/xe/xe_guc_ct.c              | 7 +++++--
 drivers/gpu/drm/xe/xe_guc_ct.h              | 5 +++++
 drivers/gpu/drm/xe/xe_guc_pc.c              | 2 +-
 drivers/gpu/drm/xe/xe_guc_submit.c          | 3 +++
 6 files changed, 23 insertions(+), 4 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-06-26 14:06 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-06-26 14:06 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Simona

The drm-xe-fixes PR for -rc4.

Thanks,
Thomas

drm-xe-fixes-2025-06-26:
UAPI Changes:
Driver Changes:
- Missing error check (Haoxiang Li)
- Fix xe_hwmon_power_max_write (Karthik)
- Move flushes (Maarten and Matthew Auld)
- Explicitly exit CT safe mode on unwind (Michal)
- Process deferred GGTT node removals on device unwind (Michal)

The following changes since commit 86731a2a651e58953fc949573895f2fa6d456841:

  Linux 6.16-rc3 (2025-06-22 13:30:08 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-06-26

for you to fetch changes up to af2b588abe006bd55ddd358c4c3b87523349c475:

  drm/xe: Process deferred GGTT node removals on device unwind (2025-06-26 15:21:45 +0200)

----------------------------------------------------------------
UAPI Changes:
Driver Changes:
- Missing error check (Haoxiang Li)
- Fix xe_hwmon_power_max_write (Karthik)
- Move flushes (Maarten and Matthew Auld)
- Explicitly exit CT safe mode on unwind (Michal)
- Process deferred GGTT node removals on device unwind (Michal)

----------------------------------------------------------------
Haoxiang Li (1):
      drm/xe/display: Add check for alloc_ordered_workqueue()

Karthik Poosa (1):
      drm/xe/hwmon: Fix xe_hwmon_power_max_write

Maarten Lankhorst (1):
      drm/xe: Move DSB l2 flush to a more sensible place

Matthew Auld (1):
      drm/xe: move DPT l2 flush to a more sensible place

Michal Wajdeczko (2):
      drm/xe/guc: Explicitly exit CT safe mode on unwind
      drm/xe: Process deferred GGTT node removals on device unwind

 drivers/gpu/drm/xe/display/xe_display.c    |  2 ++
 drivers/gpu/drm/xe/display/xe_dsb_buffer.c | 11 ++++------
 drivers/gpu/drm/xe/display/xe_fb_pin.c     |  5 +++--
 drivers/gpu/drm/xe/regs/xe_mchbar_regs.h   |  1 +
 drivers/gpu/drm/xe/xe_ggtt.c               | 11 ++++++++++
 drivers/gpu/drm/xe/xe_guc_ct.c             | 10 +++++----
 drivers/gpu/drm/xe/xe_hwmon.c              | 34 +++++++++++++-----------------
 7 files changed, 42 insertions(+), 32 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-07-03 23:24 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-07-03 23:24 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here is drm-xe-fixes for rc5. A little on the big side, but number of
commits is more due to splitting the logical changes to fix some HW
workarounds.

drm-xe-fixes-2025-07-03:
Driver Changes:
- Fix chunking the PTE updates and overflowing the maximum number of
   dwords with with MI_STORE_DATA_IMM (Jia Yao)
- Move WA BB to the LRC BO to mitigate hangs on context switch (Matthew
   Brost)
- Fix frequency/flush WAs for BMG (Vinay / Lucas)
- Fix kconfig prompt title and description (Lucas)
- Do not require kunit (Harry Austen / Lucas)
- Extend 14018094691 WA to BMG (Daniele)
- Fix wedging the device on signal (Matthew Brost)

thanks,
Lucas De Marchi

The following changes since commit d0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af:

   Linux 6.16-rc4 (2025-06-29 13:09:04 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-07-03

for you to fetch changes up to 5459e16b215c18529782e7746992653f00de0779:

   drm/xe: Do not wedge device on killed exec queues (2025-07-03 06:42:22 -0700)

----------------------------------------------------------------
Driver Changes:
- Fix chunking the PTE updates and overflowing the maximum number of
   dwords with with MI_STORE_DATA_IMM (Jia Yao)
- Move WA BB to the LRC BO to mitigate hangs on context switch (Matthew
   Brost)
- Fix frequency/flush WAs for BMG (Vinay / Lucas)
- Fix kconfig prompt title and description (Lucas)
- Do not require kunit (Harry Austen / Lucas)
- Extend 14018094691 WA to BMG (Daniele)
- Fix wedging the device on signal (Matthew Brost)

----------------------------------------------------------------
Daniele Ceraolo Spurio (1):
       drm/xe: Extend WA 14018094691 to BMG

Harry Austen (1):
       drm/xe: Allow dropping kunit dependency as built-in

Jia Yao (1):
       drm/xe: Fix out-of-bounds field write in MI_STORE_DATA_IMM

Lucas De Marchi (4):
       drm/xe/guc_pc: Add _locked variant for min/max freq
       drm/xe/xe_guc_pc: Lock once to update stashed frequencies
       drm/xe: Split xe_device_td_flush()
       drm/xe: Fix kconfig prompt

Matthew Brost (2):
       drm/xe: Make WA BB part of LRC BO
       drm/xe: Do not wedge device on killed exec queues

Vinay Belgaumkar (2):
       drm/xe/bmg: Update Wa_14022085890
       drm/xe/bmg: Update Wa_22019338487

  drivers/gpu/drm/xe/Kconfig           |   8 +-
  drivers/gpu/drm/xe/xe_device.c       |  72 +++++----
  drivers/gpu/drm/xe/xe_drv.h          |   2 +-
  drivers/gpu/drm/xe/xe_guc_pc.c       | 288 ++++++++++++++++++++++++++---------
  drivers/gpu/drm/xe/xe_guc_pc.h       |   2 +
  drivers/gpu/drm/xe/xe_guc_pc_types.h |   2 +
  drivers/gpu/drm/xe/xe_guc_submit.c   |  10 +-
  drivers/gpu/drm/xe/xe_lrc.c          |  37 ++---
  drivers/gpu/drm/xe/xe_lrc_types.h    |   3 -
  drivers/gpu/drm/xe/xe_migrate.c      |  18 ++-
  drivers/gpu/drm/xe/xe_wa_oob.rules   |   7 +-
  11 files changed, 312 insertions(+), 137 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-07-11  5:17 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-07-11  5:17 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here is the drm-xe-fixes pull request for 6.16-rc5. By number of
commits, still on the big side, but they are mostly small ones spread
theough the driver.

drm-xe-fixes-2025-07-11:
Driver Changes:
- Clear LMTT page to avoid leaking data from one VF to another
- Align PF queue size to power of 2
- Disable Indirect Ring State to avoid intermittent issues on context
   switch: feature is not currently needed, so can be disabled for now.
- Fix compression handling when the BO pages are very fragmented
- Restore display pm on error path
- Fix runtime pm handling in xe devcoredump
- Fix xe_pm_set_vram_threshold() doc
- Recommend new minor versions of GuC firmware
- Drop some workarounds on VF
- Do not use verbose GuC logging by default: it should be only for
   debugging

thanks,
Lucas De Marchi

The following changes since commit d7b8f8e20813f0179d8ef519541a3527e7661d3a:

   Linux 6.16-rc5 (2025-07-06 14:10:26 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-07-11

for you to fetch changes up to 74806f69b8668ea0e98cd9d461b7803ffa1fcdf3:

   drm/xe/guc: Default log level to non-verbose (2025-07-10 20:59:39 -0700)

----------------------------------------------------------------
Driver Changes:
- Clear LMTT page to avoid leaking data from one VF to another
- Align PF queue size to power of 2
- Disable Indirect Ring State to avoid intermittent issues on context
   switch: feature is not currently needed, so can be disabled for now.
- Fix compression handling when the BO pages are very fragmented
- Restore display pm on error path
- Fix runtime pm handling in xe devcoredump
- Fix xe_pm_set_vram_threshold() doc
- Recommend new minor versions of GuC firmware
- Drop some workarounds on VF
- Do not use verbose GuC logging by default: it should be only for
   debugging

----------------------------------------------------------------
Julia Filipchuk (1):
       drm/xe/guc: Recommend GuC v70.46.2 for BMG, LNL, DG2

Lucas De Marchi (1):
       drm/xe/guc: Default log level to non-verbose

Matthew Auld (1):
       drm/xe/bmg: fix compressed VRAM handling

Matthew Brost (2):
       drm/xe: Allocate PF queue size on pow2 boundary
       Revert "drm/xe/xe2: Enable Indirect Ring State support for Xe2"

Michal Wajdeczko (2):
       drm/xe/pf: Clear all LMTT pages on alloc
       drm/xe/bmg: Don't use WA 16023588340 and 22019338487 on VF

Shuicheng Lin (3):
       drm/xe/pm: Restore display pm if there is error after display suspend
       drm/xe: Release runtime pm for error path of xe_devcoredump_read()
       drm/xe/pm: Correct comment of xe_pm_set_vram_threshold()

  drivers/gpu/drm/xe/xe_devcoredump.c  | 38 ++++++++++++++++++++++++++----------
  drivers/gpu/drm/xe/xe_gt_pagefault.c |  1 +
  drivers/gpu/drm/xe/xe_lmtt.c         | 11 +++++++++++
  drivers/gpu/drm/xe/xe_migrate.c      |  2 +-
  drivers/gpu/drm/xe/xe_module.c       |  2 +-
  drivers/gpu/drm/xe/xe_pci.c          |  1 -
  drivers/gpu/drm/xe/xe_pm.c           | 11 ++++++-----
  drivers/gpu/drm/xe/xe_uc_fw.c        |  6 +++---
  drivers/gpu/drm/xe/xe_wa_oob.rules   |  4 ++--
  9 files changed, 53 insertions(+), 23 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-07-18  3:31 Lucas De Marchi
  0 siblings, 0 replies; 66+ messages in thread
From: Lucas De Marchi @ 2025-07-18  3:31 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here is drm-xe-fixes targeting v6.16-rc7:

drm-xe-fixes-2025-07-17:
Driver Changes:
- SR-IOV fixes for GT reset and TLB invalidation
- Fix memory copy direction during migration
- Fix alignment check on migration
- Fix MOCS and page fault init order to correctly
   account for topology

There's a small conflict when applying drm-next and when applying
drm-xe-next on top of them, but should be trivial and already solved in
drm-tip.


thanks,
Lucas De Marchi.

The following changes since commit 347e9f5043c89695b01e66b3ed111755afcf1911:

   Linux 6.16-rc6 (2025-07-13 14:25:58 -0700)

are available in the Git repository at:

   https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-07-17

for you to fetch changes up to 5c244eeca57ff4e47e1f60310d059346d1b86b9b:

   drm/xe/pf: Resend PF provisioning after GT reset (2025-07-17 09:51:51 -0300)

----------------------------------------------------------------
Driver Changes:
- SR-IOV fixes for GT reset and TLB invalidation
- Fix memory copy direction during migration
- Fix alignment check on migration
- Fix MOCS and page fault init order to correctly
   account for topology

----------------------------------------------------------------
Balasubramani Vivekanandan (1):
       drm/xe/mocs: Initialize MOCS index early

Lucas De Marchi (1):
       drm/xe/migrate: Fix alignment check

Matthew Auld (1):
       drm/xe/migrate: fix copy direction in access_memory

Matthew Brost (1):
       drm/xe: Move page fault init after topology init

Michal Wajdeczko (2):
       drm/xe/pf: Prepare to stop SR-IOV support prior GT reset
       drm/xe/pf: Resend PF provisioning after GT reset

Tejas Upadhyay (1):
       drm/xe: Dont skip TLB invalidations on VF

  drivers/gpu/drm/xe/xe_gt.c                 | 15 +++++++++------
  drivers/gpu/drm/xe/xe_gt_sriov_pf.c        | 19 +++++++++++++++++++
  drivers/gpu/drm/xe/xe_gt_sriov_pf.h        |  5 +++++
  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 27 +++++++++++++++++++++++++++
  drivers/gpu/drm/xe/xe_migrate.c            |  6 +++---
  drivers/gpu/drm/xe/xe_ring_ops.c           | 22 ++++++++++------------
  6 files changed, 73 insertions(+), 21 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-07-24 20:22 Thomas Hellstrom
  0 siblings, 0 replies; 66+ messages in thread
From: Thomas Hellstrom @ 2025-07-24 20:22 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave, Simona

A single fix for -rc8/final.

Thanks,
Thomas

drm-xe-fixes-2025-07-24:
Driver Changes:
- Fix build without debugfs (Lucas)
The following changes since commit 5c244eeca57ff4e47e1f60310d059346d1b86b9b:

  drm/xe/pf: Resend PF provisioning after GT reset (2025-07-17 09:51:51 -0300)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-07-24

for you to fetch changes up to 99e91521cef80d74e4fefed16a156848052b13df:

  drm/xe: Fix build without debugfs (2025-07-24 21:06:52 +0200)

----------------------------------------------------------------
Driver Changes:
- Fix build without debugfs (Lucas)

----------------------------------------------------------------
Lucas De Marchi (1):
      drm/xe: Fix build without debugfs

 drivers/gpu/drm/xe/xe_gt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

* [PULL] drm-xe-fixes
@ 2025-08-14 16:17 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-08-14 16:17 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our first round for 6.17 fixes.

The SRIOV setting for VF LMEM BAR size is critical and will cause
trouble for people using SRIOV if not there. But we couldn't send
it earlier because the dependency on PCI patches that just landed
in the  last merge-window:
https://lore.kernel.org/intel-xe/20250702093522.518099-1-michal.winiarski@intel.com/ 

I hope it is okay.

Other than that, there's a series of xe_migrate_access_memory fixes,
a xe_bo_validate slowness fix targeting stable (v6.15+) and an hwmon
max cap fix.

Thanks,
Rodrigo.

drm-xe-fixes-2025-08-14:
- Some more xe_migrate_access_memory fixes (Auld)
- Defer buffer object shrinker write-backs and GPU waits (Thomas)
- HWMON fix for clamping limits (Karthik)
- SRIOV-PF: Set VF LMEM BAR size (Michal)
The following changes since commit 8f5ae30d69d7543eee0d70083daf4de8fe15d585:

  Linux 6.17-rc1 (2025-08-10 19:41:16 +0300)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-08-14

for you to fetch changes up to 94eae6ee4c2df2031bca586405e9ec36e0b9ccf8:

  drm/xe/pf: Set VF LMEM BAR size (2025-08-14 10:30:53 -0400)

----------------------------------------------------------------
- Some more xe_migrate_access_memory fixes (Auld)
- Defer buffer object shrinker write-backs and GPU waits (Thomas)
- HWMON fix for clamping limits (Karthik)
- SRIOV-PF: Set VF LMEM BAR size (Michal)

----------------------------------------------------------------
Karthik Poosa (1):
      drm/xe/hwmon: Add SW clamp for power limits writes

Matthew Auld (3):
      drm/xe/migrate: prevent infinite recursion
      drm/xe/migrate: don't overflow max copy size
      drm/xe/migrate: prevent potential UAF

Michał Winiarski (1):
      drm/xe/pf: Set VF LMEM BAR size

Thomas Hellström (1):
      drm/xe: Defer buffer object shrinker write-backs and GPU waits

 drivers/gpu/drm/xe/regs/xe_bars.h |  1 +
 drivers/gpu/drm/xe/xe_hwmon.c     | 29 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_migrate.c   | 42 ++++++++++++++++++++------------
 drivers/gpu/drm/xe/xe_pci_sriov.c | 22 +++++++++++++++++
 drivers/gpu/drm/xe/xe_shrinker.c  | 51 ++++++++++++++++++++++++++++++++++++---
 5 files changed, 126 insertions(+), 19 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-08-21 19:20 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-08-21 19:20 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our xe-fixes targeting -rc3.

The xe_vm_create fixes should actually had been squashed together,
to avoid null-deref in the vm_create. But this would mess up
the original hash of a fix propagated last week that already
landed in -rc2. :/

I should had checked this last week, I'm sorry for that.
But at least the end result is right and fixing real issue.

Thanks,
Rodrigo.

drm-xe-fixes-2025-08-21-1:
- xe_vm_create fixes (Piotr)
- Fix vm_bind_ioctl double free (Christoph)
The following changes since commit c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9:

  Linux 6.17-rc2 (2025-08-17 15:22:10 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-08-21-1

for you to fetch changes up to 111fb43a557726079a67ce3ab51f602ddbf7097e:

  drm/xe: Fix vm_bind_ioctl double free bug (2025-08-21 15:06:58 -0400)

----------------------------------------------------------------
- xe_vm_create fixes (Piotr)
- Fix vm_bind_ioctl double free (Christoph)

----------------------------------------------------------------
Christoph Manszewski (1):
      drm/xe: Fix vm_bind_ioctl double free bug

Piotr Piórkowski (2):
      drm/xe: Assign ioctl xe file handler to vm in xe_vm_create
      drm/xe: Move ASID allocation and user PT BO tracking into xe_vm_create

 drivers/gpu/drm/xe/xe_migrate.c    |  2 +-
 drivers/gpu/drm/xe/xe_pxp_submit.c |  2 +-
 drivers/gpu/drm/xe/xe_vm.c         | 48 ++++++++++++++++++--------------------
 drivers/gpu/drm/xe/xe_vm.h         |  2 +-
 4 files changed, 26 insertions(+), 28 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-08-27 15:46 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-08-27 15:46 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our drm-xe-fixes targeting v6.17-rc4.

Thanks,
Rodrigo.

drm-xe-fixes-2025-08-27:
- Fix user-fence race issue (Zbigniew)
- Couple xe_vm fixes (Thomas)
- Don't trigger rebind on initial dma-buf validation (Brost)
- Fix a build issue related to basename() posix vs gnu discrepancy (Carlos)
The following changes since commit 1b237f190eb3d36f52dffe07a40b5eb210280e00:

  Linux 6.17-rc3 (2025-08-24 12:04:12 -0400)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-08-27

for you to fetch changes up to 75671d90fde8c78e940e15a1366a50ece56c6b69:

  drm/xe: switch to local xbasename() helper (2025-08-26 10:12:11 -0400)

----------------------------------------------------------------
- Fix user-fence race issue (Zbigniew)
- Couple xe_vm fixes (Thomas)
- Don't trigger rebind on initial dma-buf validation (Brost)
- Fix a build issue related to basename() posix vs gnu discrepancy (Carlos)

----------------------------------------------------------------
Carlos Llamas (1):
      drm/xe: switch to local xbasename() helper

Matthew Brost (1):
      drm/xe: Don't trigger rebind on initial dma-buf validation

Thomas Hellström (2):
      drm/xe/vm: Don't pin the vm_resv during validation
      drm/xe/vm: Clear the scratch_pt pointer on error

Zbigniew Kempczyński (1):
      drm/xe/xe_sync: avoid race during ufence signaling

 drivers/gpu/drm/xe/xe_bo.c         |  8 ++++----
 drivers/gpu/drm/xe/xe_gen_wa_oob.c | 10 +++++++++-
 drivers/gpu/drm/xe/xe_sync.c       |  2 +-
 drivers/gpu/drm/xe/xe_vm.c         |  8 ++++++--
 drivers/gpu/drm/xe/xe_vm.h         | 15 ++-------------
 5 files changed, 22 insertions(+), 21 deletions(-)

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

* [PULL] drm-xe-fixes
@ 2025-09-03 18:58 Rodrigo Vivi
  0 siblings, 0 replies; 66+ messages in thread
From: Rodrigo Vivi @ 2025-09-03 18:58 UTC (permalink / raw)
  To: Dave Airlie, Simona Vetter
  Cc: Jani Nikula, Joonas Lahtinen, Tvrtko Ursulin, Rodrigo Vivi,
	Thomas Zimmermann, Maarten Lankhorst, Maxime Ripard,
	Thomas Hellström, Oded Gabbay, Lucas De Marchi, dri-devel,
	intel-gfx, intel-xe, dim-tools

Hi Dave and Sima,

Here goes our drm-xe-fixes targeting -rc5,
with only one fix.

Thanks,
Rodrigo.

drm-xe-fixes-2025-09-03:
- Fix incorrect migration of backed-up object to VRAM (Thomas)
The following changes since commit b320789d6883cc00ac78ce83bccbfe7ed58afcf0:

  Linux 6.17-rc4 (2025-08-31 15:33:07 -0700)

are available in the Git repository at:

  https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-09-03

for you to fetch changes up to 379b3c983fc0257c183052278832ac68e3ccd33b:

  drm/xe: Fix incorrect migration of backed-up object to VRAM (2025-09-02 09:00:47 -0400)

----------------------------------------------------------------
- Fix incorrect migration of backed-up object to VRAM (Thomas)

----------------------------------------------------------------
Thomas Hellström (1):
      drm/xe: Fix incorrect migration of backed-up object to VRAM

 drivers/gpu/drm/xe/xe_bo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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

end of thread, other threads:[~2025-09-03 18:58 UTC | newest]

Thread overview: 66+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27 15:46 [PULL] drm-xe-fixes Rodrigo Vivi
  -- strict thread matches above, loose matches on Subject: below --
2025-09-03 18:58 Rodrigo Vivi
2025-08-21 19:20 Rodrigo Vivi
2025-08-14 16:17 Rodrigo Vivi
2025-07-24 20:22 Thomas Hellstrom
2025-07-18  3:31 Lucas De Marchi
2025-07-11  5:17 Lucas De Marchi
2025-07-03 23:24 Lucas De Marchi
2025-06-26 14:06 Thomas Hellstrom
2025-06-19 16:03 Thomas Hellstrom
2025-06-12 16:33 Thomas Hellstrom
2025-05-23  5:47 Lucas De Marchi
2025-05-15 15:04 Lucas De Marchi
2025-05-09  5:12 Lucas De Marchi
2025-05-02  3:23 Lucas De Marchi
2025-04-18  5:43 Lucas De Marchi
2025-04-10 21:06 Lucas De Marchi
2025-03-20 18:12 Thomas Hellstrom
2025-03-13 16:35 Rodrigo Vivi
2025-03-06 18:01 Rodrigo Vivi
2025-02-27 16:28 Rodrigo Vivi
2025-02-20 16:54 Rodrigo Vivi
2025-02-13 17:25 Rodrigo Vivi
2025-02-06 13:48 Rodrigo Vivi
2025-01-16 20:02 Thomas Hellstrom
2025-01-09 18:59 Thomas Hellstrom
2025-01-02 19:53 Thomas Hellstrom
2024-12-23 17:53 Thomas Hellstrom
2025-01-02 19:55 ` Thomas Hellström
2024-12-12 19:28 Thomas Hellstrom
2024-12-04 14:08 Thomas Hellstrom
2024-11-15  0:03 Lucas De Marchi
2024-11-08 15:28 Lucas De Marchi
2024-11-01 10:41 Lucas De Marchi
2024-10-24 23:15 Lucas De Marchi
2024-10-18  3:33 Lucas De Marchi
2024-10-11  3:12 Lucas De Marchi
2024-10-03 14:15 Lucas De Marchi
2024-09-12 14:46 Rodrigo Vivi
2024-09-05 13:28 Rodrigo Vivi
2024-08-29 13:59 Rodrigo Vivi
2024-08-22 15:12 Rodrigo Vivi
2024-08-15 14:02 Rodrigo Vivi
2024-08-08 17:55 Rodrigo Vivi
2024-07-11 22:16 Lucas De Marchi
2024-07-04 10:51 Thomas Hellstrom
2024-07-04 14:46 ` Daniel Vetter
2024-06-20  8:02 Thomas Hellstrom
2024-06-13 11:26 Thomas Hellstrom
2024-06-04 15:09 Thomas Hellstrom
2024-05-30 16:41 Thomas Hellstrom
2024-05-09 19:26 Lucas De Marchi
2024-05-02 16:37 Lucas De Marchi
2024-04-25 20:50 Lucas De Marchi
2024-04-18 15:47 Lucas De Marchi
2024-04-11 17:34 Lucas De Marchi
2024-04-04 14:49 Lucas De Marchi
2024-03-26 17:10 Lucas De Marchi
2024-03-07 10:48 Thomas Hellstrom
2024-02-29 13:07 Thomas Hellstrom
2024-02-22 11:12 Thomas Hellstrom
2024-02-15 12:43 Thomas Hellstrom
2024-02-08 11:08 Thomas Hellstrom
2024-02-01 11:37 Thomas Hellstrom
2024-02-01 11:42 ` Thomas Hellström
2024-01-25  8:29 Thomas Hellstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).