linux-next: manual merge of the drm-xe tree with the origin tree
From: Mark Brown
Date: Thu Nov 26 2026 - 10:06:21 EST
Hi all,
Today's linux-next merge of the drm-xe tree got a conflict in:
drivers/gpu/drm/xe/xe_device.c
between commits:
7539edbca32d6 ("drm/xe/pat: Return error from xe_pat_init_early() on unknown platform")
8801081e5991e ("drm/xe/gt: Use GT ordered workqueue for wedging")
402567ac0875b ("drm/xe: Drop xe_device_set_wedged_method()")
031cc955b33b0 ("drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early()")
b828d2b7326b5 ("drm/xe: Make xe_device_declare_wedged() IRQ safe")
72296e02b46a3 ("drm/xe/hwmon: Unregister hwmon before the device is unplugged")
from the origin tree and commits:
2c0f72dd1483f ("drm/xe: run compute rebind worker on device NUMA node")
f8bb5c0459f4d ("drm/xe: Add a userptr repin timeout sysfs attribute")
3b4cc31db4407 ("drm/xe/vsec: Support late bind fw information")
344b7ec704ee0 ("drm/xe/vsec: Update VSEC probe order")
6bae3d8f56944 ("drm/xe/hwmon: Unregister hwmon before the device is unplugged")
17615c99ccc8e ("drm/xe/wopcm: Use the size from HW when excluding the wopcm range from GGTT")
61df0d1929e7e ("drm/xe: Add a per-client debugfs file reporting bo NUMA node distribution")
from the drm-xe 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 --combined drivers/gpu/drm/xe/xe_device.c
index 8148c66eb7da9,36693df655941..0000000000000
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@@ -8,7 -8,9 +8,9 @@@
#include <linux/aperture.h>
#include <linux/delay.h>
#include <linux/error-injection.h>
+ #include <linux/nodemask.h>
#include <linux/units.h>
+ #include <linux/workqueue.h>
#include <drm/drm_client.h>
#include <drm/drm_gem_ttm_helper.h>
@@@ -127,6 -129,8 +129,8 @@@ static int xe_file_open(struct drm_devi
put_task_struct(task);
}
+ xe_debugfs_client_add(file);
+
return 0;
}
@@@ -387,6 -391,9 +391,9 @@@ static void xe_device_destroy(struct dr
if (xe->preempt_fence_wq)
destroy_workqueue(xe->preempt_fence_wq);
+ if (xe->rebind_wq)
+ destroy_workqueue(xe->rebind_wq);
+
if (xe->ordered_wq)
destroy_workqueue(xe->ordered_wq);
@@@ -437,6 -444,10 +444,10 @@@ struct xe_device *xe_device_create(stru
if (err)
return ERR_PTR(err);
+ xe->userptr_repin_timeout_ms = num_online_nodes() > 1 ?
+ XE_USERPTR_REPIN_TIMEOUT_MS_NUMA_DEFAULT :
+ XE_USERPTR_REPIN_TIMEOUT_MS_DEFAULT;
+
return xe;
}
ALLOW_ERROR_INJECTION(xe_device_create, ERRNO); /* See xe_pci_probe() */
@@@ -516,10 -527,11 +527,11 @@@ int xe_device_init_early(struct xe_devi
xe->preempt_fence_wq = alloc_ordered_workqueue("xe-preempt-fence-wq",
WQ_MEM_RECLAIM);
+ xe->rebind_wq = alloc_workqueue("xe-rebind-wq", WQ_UNBOUND, 0);
xe->ordered_wq = alloc_ordered_workqueue("xe-ordered-wq", 0);
xe->unordered_wq = alloc_workqueue("xe-unordered-wq", WQ_PERCPU, 0);
xe->destroy_wq = alloc_workqueue("xe-destroy-wq", WQ_PERCPU | WQ_MEM_RECLAIM, 0);
- if (!xe->ordered_wq || !xe->unordered_wq ||
+ if (!xe->ordered_wq || !xe->unordered_wq || !xe->rebind_wq ||
!xe->preempt_fence_wq || !xe->destroy_wq) {
/*
* Cleanup done in xe_device_destroy via
@@@ -934,6 -946,10 +946,10 @@@ int xe_device_probe(struct xe_device *x
override_has_cached_pt(xe);
for_each_tile(tile, xe, id) {
+ err = xe_tile_wopcm_init(tile);
+ if (err)
+ return err;
+
err = xe_ggtt_init_early(tile->mem.ggtt);
if (err)
return err;
@@@ -1086,18 -1102,18 +1102,18 @@@
if (err)
goto err_unregister_display;
+ xe_vsec_init(xe);
+
xe_debugfs_register(xe);
err = xe_hwmon_register(xe);
if (err)
- goto err_unregister_display;
+ goto err_unregister_vsec;
err = xe_i2c_probe(xe);
if (err)
goto err_unregister_hwmon;
- xe_vsec_init(xe);
-
err = xe_sriov_init_late(xe);
if (err)
goto err_unregister_hwmon;
@@@ -1112,6 -1128,8 +1128,8 @@@
err_unregister_hwmon:
xe_hwmon_unregister(xe);
+ err_unregister_vsec:
+ xe_vsec_remove(xe);
err_unregister_display:
xe_display_unregister(xe);
drm_dev_unregister(&xe->drm);
@@@ -1122,6 -1140,7 +1140,7 @@@
void xe_device_remove(struct xe_device *xe)
{
xe_hwmon_unregister(xe);
+ xe_vsec_remove(xe);
xe_display_unregister(xe);
drm_dev_unplug(&xe->drm);
Attachment:
signature.asc
Description: PGP signature