mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* linux-next: manual merge of the drm tree with the amd-drm-fixes,amd-drm-next,drm-intel-fixes,drm-intel-next,drm-misc-next,drm-xe-fixes,drm-xe-next,net-next,riscv-dt trees
@ 2026-11-30 16:11 Mark Brown
  0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2026-11-30 16:11 UTC (permalink / raw)
  To: Dave Airlie, DRI
  Cc: Alex Deucher, Alexey Minnekhanov, Alistair Popple, Badal Nilawar,
	Christian König, Conor Dooley, Daniel Charles,
	Daniele Ceraolo Spurio, David Rosca, Dnyaneshwar Bhadane,
	Jason Gunthorpe, Jason Gunthorpe, Jia Wang, Joonas Lahtinen,
	Jouni Högander, Karthik Poosa, Linux Kernel Mailing List,
	Linux Next Mailing List, Maarten Lankhorst, Matthew Brost,
	Matt Roper, Michael J. Ruhl, Mika Kahola, Mina Almasry,
	Neil Armstrong, Paolo Abeni, Raag Jadav, Riana Tauro,
	Rodrigo Vivi, Ruijing Dong, Satyanarayana K V P,
	Vinay Belgaumkar

[-- Attachment #1: Type: text/plain, Size: 15126 bytes --]

Hi all,

FIXME: Add author(s)/SOB of conflicting commits.

Today's linux-next merge of the drm tree got conflicts in:

  drivers/gpu/drm/xe/xe_pci_error.c
  drivers/gpu/drm/xe/xe_device.c
  drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
  drivers/gpu/drm/xe/xe_drm_ras.c
  drivers/gpu/drm/xe/xe_uc_fw.c

between commits:

  4da6437456f0c ("drm/amdgpu: keep the commit padding when re-emitting submissions")
  87a841d8c0b71 ("drm/amdgpu: Fix VCE buffer size check for DPB and input surface")
  4247f4e2c10ea ("drm/i915/psr: Re-arm PSR after flush")
  031cc955b33b0 ("drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early()")
  402567ac0875b ("drm/xe: Drop xe_device_set_wedged_method()")
  8801081e5991e ("drm/xe/gt: Use GT ordered workqueue for wedging")
  b828d2b7326b5 ("drm/xe: Make xe_device_declare_wedged() IRQ safe")
  72296e02b46a3 ("drm/xe/hwmon: Unregister hwmon before the device is unplugged")
  55d37e0c61553 ("drm/xe/ras: Fix sysctrl and drm-ras discrepancy")
  1eb526467c96d ("drm/xe/pci_error: Flush GT wedge worker before bus reset")
  f8795bced27bb ("drm/xe/gsc: Fix NVL-S GSC compatibility number")
  c948839c2e81a ("drm/xe/amc: Guard xe_amc_work() with runtime PM")
  a890a885b982f ("drm/xe/hw_error: Guard csc_hw_error_work() with runtime PM")
  d37dcdaa99b18 ("drm/xe/hwmon: Fix thermal sensor data handling")
  dbd199c775cbe ("drm/xe/hwmon: Handle unavailable memory controller sensors")
  c9d8ef7f6835d ("drm/xe/hwmon: Decode mailbox temperature as sign-magnitude")
  808951ee16738 ("drm/xe/hwmon: Report errors using structured xe_log API")
  74f1a6f03f2d4 ("drm/xe/xe_late_bind_fw: Fix firmware leak on missing manifest entry")
  3654a4d734df9 ("drm/xe/pf: Program LMTT directory pointer from each GT's init path")
  7539edbca32d6 ("drm/xe/pat: Return error from xe_pat_init_early() on unknown platform")
  f2a144e9891b3 ("drm/xe/hwmon: Add helpers to validate thermal sensor readings")
  a17c5ed0dc715 ("drm/xe/pm: Apply tile workarounds after PCODE initialization")
  fc0ba46fd8278 ("drm/xe: Access GT MMIO after pcode init")
  c4466d2c3e776 ("net: devmem: unmap dma_buf synchronously on queue uninstall")
  ede1618064a9b ("net: devmem: detach TX bindings on NETDEV_UNREGISTER")
  f61b65abc9f41 ("dt-bindings: vendor-prefixes: Add shenrongda")

from the
amd-drm-fixes,amd-drm-next,drm-intel-fixes,drm-intel-next,drm-misc-next,drm-xe-fixes,drm-xe-next,net-next,riscv-dt
tree and commits:

  8a4dfdc0d2adf ("drm/amdgpu: reemit RLC SPM register in ring reemit")
  b229fdd689c8b ("drm/amdgpu: Allow multiple VCE create commands with same handle")
  24c0be8ac3ef2 ("drm/amdgpu: Fix VCE buffer size check for DPB and input surface")
  20470bb876bcf ("drm/i915/psr: Track all joined pipes for frontbuffer tracking")
  731ed8af13bde ("drm/i915/psr: Re-arm PSR after flush")
  b55dbe9011975 ("dt-bindings: vendor-prefixes: Add Shen Chao Optoelectronics")
  77e0b2d2f4f37 ("treewide: Rename dma_buf_(un)map_attachment() to dma_buf_(un)map_sgt()")
  82f813f7a0de8 ("drm/xe: Introduce xe_wedge")
  84474fbf9ae5a ("drm/xe/ras: Move xe_ras_process_errors() to xe_ras")
  ffa5e5d4e2203 ("drm/xe: Raise gt frequency slightly earlier.")
  344b7ec704ee0 ("drm/xe/vsec: Update VSEC probe order")
  3b4cc31db4407 ("drm/xe/vsec: Support late bind fw information")
  323047eeee980 ("drm/xe: Separate drm-ras netlink data from device and firmware RAS state")
  7c830292deb22 ("drm/xe/drm_ras: Protect against unplugged or wedged device")
  c7e8bd650f5e2 ("drm/xe/wedge: Introduce xe_wedge_mode_is_no_reset()")
  11f8678d6a702 ("drm/xe/gsc: Fix NVL-S GSC compatibility number")
  ae7dfdba190ee ("drm/xe/gsc: Define GSC firmware for NVL-P")
  b6bd6c613fd5e ("drm/xe: Add support for wa_14028434957")
  993338420540a ("drm/xe/hwmon: Add platform-aware VRAM thermal channel support")
  87ce4876e3f50 ("drm/xe/hwmon: Cache temperature availability to reduce probe time")
  32b98ee8d317b ("drm/xe/hwmon: add PCIe temperature support for CRI")
  a3d7376b9d671 ("drm/xe: Validate thermal sensor count before reads")
  ae4cd659d22dc ("drm/xe/hwmon: Update memory controller temperature offset for CRI")
  8fdd3d4c55ecb ("drm/xe/hwmon: Detect unavailable PCIe thermal sensors")
  918e85a4f597e ("drm/xe/xe_late_bind_fw: Add support to load Ocode firmware")
  c9edd9cf7e613 ("drm/xe/pf: Use multicast writes for early-generation LMTT config")
  de3e402df7f56 ("drm/xe/pat: Report missing PAT table using structured xe_log API")
  d7bc407b38090 ("drm/xe/xe_late_bind_fw: Enable late binding support for CRI")
  c97f2efa0b561 ("drm/xe: Don't ask for bug reports on force probed platforms")
  ff03d9510426e ("drm/xe/pm: Introduce xe_device_suspend/resume()")
  1f6ac7c86aa52 ("drm/xe: Memset g2g buffer on resume")
  6bae3d8f56944 ("drm/xe/hwmon: Unregister hwmon before the device is unplugged")

from the drm tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc Documentation/devicetree/bindings/vendor-prefixes.yaml
index ed17f8e287f9d,0c94832f4f47c..0000000000000
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@@ -1533,8 -1529,8 +1537,10 @@@ patternProperties
      description: SGX Sensortech
    "^sharp,.*":
      description: Sharp Corporation
+   "^shenchao,.*":
+     description: Shen Chao Optoelectronics (Shenzhen) Co., Ltd.
 +  "^shenrongda,.*":
 +    description: Shenzhen Rongda Computer Co., Ltd.
    "^shift,.*":
      description: SHIFT GmbH
    "^shimafuji,.*":
diff --cc drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index 18e333e7ffd32,d0a6901532fd6..0000000000000
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@@ -745,8 -748,10 +748,11 @@@ void amdgpu_ring_set_fence_errors_and_r
  		return;
  	}
  	ring->reemit = true;
 -	amdgpu_ring_alloc(ring, ring->ring_backup_entries_to_copy);
 +	amdgpu_ring_alloc(ring, ring->ring_backup_entries_to_copy +
 +			  (seq - last_seq) * ring->funcs->align_mask);
+ 	if (emit_spm_needed)
+ 		ring->adev->gfx.rlc.funcs->update_spm_vmid(ring->adev, ring->xcc_id,
+ 							   ring->adev->vm_manager.spm_vmid);
  	spin_lock_irqsave(&ring->fence_drv.lock, flags);
  	do {
  		last_seq++;
diff --cc drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
index 11f8fe98aac46,e2cdd5a46aa24..0000000000000
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
diff --cc drivers/gpu/drm/i915/display/intel_psr.c
index 0ae347fe6cd19,bd16563603249..0000000000000
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
diff --cc drivers/gpu/drm/xe/xe_amc.c
index d6fe59669a74b,37694e34271a1..0000000000000
--- a/drivers/gpu/drm/xe/xe_amc.c
+++ b/drivers/gpu/drm/xe/xe_amc.c
diff --cc drivers/gpu/drm/xe/xe_device.c
index 570bc944d7887,36693df655941..0000000000000
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
diff --cc drivers/gpu/drm/xe/xe_device.h
index 3ce1481d0e573,6b1e48369bdd5..0000000000000
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
diff --cc drivers/gpu/drm/xe/xe_device_types.h
index 5aa52975ebb46,9e0d7d3d07d5d..0000000000000
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
diff --cc drivers/gpu/drm/xe/xe_drm_ras.c
index 30cf40ee5fe4d,86c589437a9ff..0000000000000
--- a/drivers/gpu/drm/xe/xe_drm_ras.c
+++ b/drivers/gpu/drm/xe/xe_drm_ras.c
diff --cc drivers/gpu/drm/xe/xe_gsc.c
index 2bbe0f20ff8d3,8edb8cee3cbd8..0000000000000
--- a/drivers/gpu/drm/xe/xe_gsc.c
+++ b/drivers/gpu/drm/xe/xe_gsc.c
diff --cc drivers/gpu/drm/xe/xe_gt.c
index 286aee5775c0d,7eacbe950ccda..0000000000000
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
diff --cc drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 28ec83bb8100d,60f1b29358f93..0000000000000
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
diff --cc drivers/gpu/drm/xe/xe_guc_submit.c
index dd970e6b1b9dc,fce39dd4e1177..0000000000000
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
diff --cc drivers/gpu/drm/xe/xe_hw_error.c
index f726179c22e38,86b29f2828374..0000000000000
--- a/drivers/gpu/drm/xe/xe_hw_error.c
+++ b/drivers/gpu/drm/xe/xe_hw_error.c
diff --cc drivers/gpu/drm/xe/xe_hwmon.c
index d81b90c9cb99a,171990602f537..0000000000000
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
diff --cc drivers/gpu/drm/xe/xe_late_bind_fw.c
index 1bddfaf0fb9f0,ad39383a7e41f..0000000000000
--- a/drivers/gpu/drm/xe/xe_late_bind_fw.c
+++ b/drivers/gpu/drm/xe/xe_late_bind_fw.c
diff --cc drivers/gpu/drm/xe/xe_lmtt.c
index 8a5a434931b04,ea2a3eeefccd7..0000000000000
--- a/drivers/gpu/drm/xe/xe_lmtt.c
+++ b/drivers/gpu/drm/xe/xe_lmtt.c
diff --cc drivers/gpu/drm/xe/xe_mert.c
index 934be933d57f7,a2eae6088c1ac..0000000000000
--- a/drivers/gpu/drm/xe/xe_mert.c
+++ b/drivers/gpu/drm/xe/xe_mert.c
diff --cc drivers/gpu/drm/xe/xe_pat.c
index 0ac64a6a3098a,5938fef22579a..0000000000000
--- a/drivers/gpu/drm/xe/xe_pat.c
+++ b/drivers/gpu/drm/xe/xe_pat.c
diff --cc drivers/gpu/drm/xe/xe_pci.c
index 12ff5c9025478,41d7ca5c6ac5c..0000000000000
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
diff --cc drivers/gpu/drm/xe/xe_pci_error.c
index a5c8fd67738cf,fc6ff71d84a0e..0000000000000
--- a/drivers/gpu/drm/xe/xe_pci_error.c
+++ b/drivers/gpu/drm/xe/xe_pci_error.c
diff --cc drivers/gpu/drm/xe/xe_pm.c
index d95f0d128ed49,f73f68bd449b8..0000000000000
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
diff --cc drivers/gpu/drm/xe/xe_ras.c
index 53cfbb9a3bac5,9b04be3405ca7..0000000000000
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
diff --cc drivers/gpu/drm/xe/xe_survivability_mode.c
index ca031576fecb7,ea6f833b2d843..0000000000000
--- a/drivers/gpu/drm/xe/xe_survivability_mode.c
+++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
diff --cc drivers/gpu/drm/xe/xe_uc_fw.c
index df1a697b6f274,d0ea059239fa0..0000000000000
--- a/drivers/gpu/drm/xe/xe_uc_fw.c
+++ b/drivers/gpu/drm/xe/xe_uc_fw.c
diff --cc net/core/devmem.c
index 3714364b5d9a5,a638aa3e806b7..0000000000000
--- a/net/core/devmem.c
+++ b/net/core/devmem.c
@@@ -67,84 -64,6 +67,84 @@@ static void net_devmem_dmabuf_binding_r
  	schedule_work(&binding->unbind_w);
  }
  
 +static void
 +net_devmem_dmabuf_binding_unmap(struct net_devmem_dmabuf_binding *binding)
 +{
 +	mutex_lock(&binding->lock);
 +	if (binding->sgt) {
 +		dma_resv_lock(binding->dmabuf->resv, NULL);
- 		dma_buf_unmap_attachment(binding->attachment, binding->sgt,
- 					 binding->direction);
++		dma_buf_unmap_sgt(binding->attachment, binding->sgt,
++				  binding->direction);
 +		dma_buf_unpin(binding->attachment);
 +		dma_resv_unlock(binding->dmabuf->resv);
 +		dma_buf_detach(binding->dmabuf, binding->attachment);
 +		binding->sgt = NULL;
 +		binding->attachment = NULL;
 +	}
 +	mutex_unlock(&binding->lock);
 +}
 +
 +/**
 + * net_devmem_lock_dev() - lock a binding's net_device if still alive
 + * @binding:		devmem binding whose @dev pointer to lock
 + * @dev_tracker:	reftracker for the held net_device reference
 + *
 + * Safely dereference @binding->dev, acquire netdev_lock() on the device, and
 + * verify that @binding->dev has not been cleared while waiting for the lock.
 + *
 + * Invariant: @binding->dev is set once at bind time and is only ever cleared to
 + * NULL while holding netdev_lock(dev) (in mp_dmabuf_devmem_uninstall(),
 + * net_devmem_unbind_dmabuf(), or net_devmem_dev_unregister() during
 + * NETDEV_UNREGISTER before synchronize_net() and netdev_run_todo() free the
 + * net_device).
 + *
 + * Taking rcu_read_lock() guarantees that a non-NULL @dev read from
 + * @binding->dev has not yet completed unregister_netdevice_many_notify()
 + * (which waits for an RCU grace period via synchronize_net() after
 + * NETDEV_UNREGISTER before freeing the net_device), so netdev_hold() can
 + * safely acquire a reference before sleeping on netdev_lock(). Once
 + * netdev_lock(dev) is held, re-checking that READ_ONCE(binding->dev) == dev
 + * guarantees that the device has not yet been detached from @binding and
 + * cannot finish unregistering until net_devmem_unlock_dev().
 + *
 + * Return: The locked and held net_device if @binding->dev is still non-NULL,
 + * or NULL if already cleared.
 + */
 +struct net_device *
 +net_devmem_lock_dev(struct net_devmem_dmabuf_binding *binding,
 +		    netdevice_tracker *dev_tracker)
 +{
 +	struct net_device *dev;
 +
 +	rcu_read_lock();
 +	dev = READ_ONCE(binding->dev);
 +	if (!dev) {
 +		rcu_read_unlock();
 +		return NULL;
 +	}
 +	netdev_hold(dev, dev_tracker, GFP_ATOMIC);
 +	rcu_read_unlock();
 +
 +	netdev_lock(dev);
 +	if (READ_ONCE(binding->dev) != dev) {
 +		netdev_unlock(dev);
 +		netdev_put(dev, dev_tracker);
 +		return NULL;
 +	}
 +
 +	return dev;
 +}
 +
 +void net_devmem_unlock_dev(struct net_device *dev,
 +			   netdevice_tracker *dev_tracker)
 +{
 +	if (!dev)
 +		return;
 +
 +	netdev_unlock(dev);
 +	netdev_put(dev, dev_tracker);
 +}
 +
  void __net_devmem_dmabuf_binding_free(struct work_struct *wq)
  {
  	struct net_devmem_dmabuf_binding *binding = container_of(wq, typeof(*binding), unbind_w);
diff --git a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
index 2d9bb5f957a37..7ba6e1f2aa6aa 100644
--- a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
+++ b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c
@@ -214,9 +214,8 @@ static void vc_sm_clean_up_dmabuf(struct vc_sm_buffer *buffer)
 {
 	/* Handle cleaning up imported dmabufs */
 	if (buffer->sgt) {
-		dma_buf_unmap_attachment_unlocked(buffer->attach,
-						  buffer->sgt,
-						  DMA_BIDIRECTIONAL);
+		dma_buf_unmap_sgt_unlocked(buffer->attach, buffer->sgt,
+					   DMA_BIDIRECTIONAL);
 		buffer->sgt = NULL;
 	}
 	if (buffer->attach) {
@@ -435,7 +434,7 @@ vc_sm_cma_import_dmabuf_internal(struct dma_buf *dma_buf,
 		goto error;
 	}
 
-	sgt = dma_buf_map_attachment_unlocked(attach, DMA_BIDIRECTIONAL);
+	sgt = dma_buf_map_sgt_unlocked(attach, DMA_BIDIRECTIONAL);
 	if (IS_ERR(sgt)) {
 		ret = PTR_ERR(sgt);
 		goto error;
@@ -550,8 +549,7 @@ vc_sm_cma_import_dmabuf_internal(struct dma_buf *dma_buf,
 		free_kernel_id(import.kernel_id);
 	kfree(buffer);
 	if (sgt)
-		dma_buf_unmap_attachment_unlocked(attach, sgt,
-						  DMA_BIDIRECTIONAL);
+		dma_buf_unmap_sgt_unlocked(attach, sgt, DMA_BIDIRECTIONAL);
 	if (attach)
 		dma_buf_detach(dma_buf, attach);
 	dma_buf_put(dma_buf);

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 16:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 16:11 linux-next: manual merge of the drm tree with the amd-drm-fixes,amd-drm-next,drm-intel-fixes,drm-intel-next,drm-misc-next,drm-xe-fixes,drm-xe-next,net-next,riscv-dt trees Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®