Files
Centos-kernel-stream-10/drivers/accel
CKI KWF Bot 618edff9f9 Merge: Backport AMD XDNA NPU driver from Linux 7.0.14
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/3328

This backports the driver for the AMD XDNA NPU in AMD AI Ryzen processors, but does not enable it.

When temporarily enabled, the driver loads successfully on AMD Strix Point, Strix Halo, and Krackan Point processors.

JIRA: https://redhat.atlassian.net/browse/RHEL-222546

These fixes are false positives that do not affect the amdxdna driver:
Omitted-fix: fd1d6b9d13f3 ("xz: fix arm fdt compile error for kmalloc replacement")
Omitted-fix: 96a7b71c4438 ("ubd: Use pointer-to-pointers for io_thread_req arrays")
Omitted-fix: 795469820c63 ("kcsan: test: Adjust "expect" allocation type for kmalloc_obj")
Omitted-fix: 5548dd7fa845 ("tools/testing: fix testing/vma and testing/radix-tree build")
Omitted-fix: 405ca72dc589 ("landlock: Fix formatting")
Omitted-fix: 4c0134639694 ("KVM: PPC: e500: Fix build error due to using kmalloc_obj() with wrong type")
Omitted-fix: 4c6d43db2a4d ("net: dst_metadata: fix false-positive memcpy overflow in tun_dst_unclone")
Omitted-fix: c7ee592dccab ("drm/rockchip: include drm_print.h where needed")
Omitted-fix: cb345f954eac ("drm/panfrost: Fix scheduler workqueue bug")
Omitted-fix: 2d2b5507e598 ("btrfs: replace kcalloc() calls to kzalloc_objs()")
Omitted-fix: 9f4ab0787e7b ("btrfs: do more kmalloc_obj()/kmalloc_objs() conversions")
Omitted-fix: 37f1f51fba1a ("btrfs: convert kmalloc_array to kmalloc_objs in btrfs_calc_avail_data_space()")
Omitted-fix: 218b15a3e975 ("accel/rocket: Fix Rockchip NPU compilation")

These fixes are part of 7.1 and 7.2, and will be included in the DRM backport:
Omitted-fix: f844177c6811 ("accel/amdxdna: Handle DETACH_DEBUG_BO through config_debug_bo path")
Omitted-fix: 62c1671f6454 ("accel/amdxdna: Return errors for failed debug BO commands")
Omitted-fix: 7caf2a2351d4 ("accel/amdxdna: Use caller client for debug BO sync")
Omitted-fix: e35c9cf55128 ("accel/amdxdna: Prevent PM resume deadlock in hwctx_sync_debug_bo()")
Omitted-fix: ec3304ddfd99 ("accel/amdxdna: Fix use-after-free in debug BO command handling")
Omitted-fix: c8d2530791cb ("accel/amdxdna: Fix deadlock on debug BO command timeout")
Omitted-fix: d946347edc4f ("accel/amdxdna: Fix leak when pinning ubuf pages")
Omitted-fix: 457b046b7dfc ("accel/amdxdna: Remove mmap and export support for ubuf")
Omitted-fix: 1ba02717e821 ("accel/amdxdna: Fix VMA access race")
Omitted-fix: 2f41af638c92 ("accel/amdxdna: Fix mm_struct reference leak in aie2_populate_range()")
Omitted-fix: 5c72124186d6 ("accel/amdxdna: Fix notifier_wq lifetime race during device removal")
Omitted-fix: 63bbf9ac5dde ("accel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()")
Omitted-fix: 14f172eff9c1 ("accel/amdxdna: Fix potential amdxdna_umap lifetime race")
Omitted-fix: 8d51e0fd3e69 ("accel/amxdna: Fix page-insertion errors in amdxdna_insert_pages()")
Omitted-fix: 4a19f7ab5972 ("accel/amdxdna: Fix locally exploitable BUG_ON in amdxdna_insert_pages()")
Omitted-fix: 6c916e301fa1 ("accel/amdxdna: Skip unmapped range in aie2_populate_range()")
Omitted-fix: c83ad8ea6b0a ("accel/amdxdna: Fix order of canceled mailbox messages")
Omitted-fix: 6e87001fe19f ("accel/amdxdna: Adjust size for copy_to_user()")
Omitted-fix: ada61841caed ("accel/amdxdna: Fix clflush buffer size")
Omitted-fix: 44d8fddf1c87 ("accel/amdxdna: Check init_srcu_struct() return value")
Omitted-fix: 261c1fe3327a ("accel/amdxdna: reject user command submission without a command BO")
Omitted-fix: 38953513d731 ("accel/amdxdna: reject command submission on devices without a submit op")
Omitted-fix: faebb7ba1ac6 ("accel/amdxdna: Fix use-after-free of mm_struct in job scheduler")
Omitted-fix: 18aaebdf4336 ("accel/amdxdna: Use unsigned long for nr_pages in amdxdna_hmm_register()")
Omitted-fix: 1dbbc7f98cde ("accel/amdxdna: Fix amdxdna_client lifetime race during device removal")
Omitted-fix: d1c73884858c ("accel/amdxdna: fix missing newline in pr_err message")
Omitted-fix: 506255d46bdb ("accel/amdxdna: Guard management mailbox channel cleanup against NULL pointer")
Omitted-fix: 0f092793a7b5 ("accel/amdxdna: Check drmm_mutex_init() return value")

Signed-off-by: Peter Colberg <pcolberg@redhat.com>

Approved-by: Karol Herbst <kherbst@redhat.com>
Approved-by: marpagan <marpagan@redhat.com>
Approved-by: Anusha Srivatsa <asrivats@redhat.com>
Approved-by: John Wiele <jwiele@redhat.com>
Approved-by: Oliver Gutiérrez <ogutsua@protonmail.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2026-08-23 18:51:05 +00:00
..