Bug#1090072: linux-image-amd64: Enable P2P and HMM feature for AMDGPU
Package: linux-image-amd64
Version: 6.12.3-1
Severity: wishlist
Tags: patch
X-Debbugs-Cc: Benda Xu <orv@debian.org>
The peer to peer (P2P) data transfer is important for programs that use multi-GPU.
The heterogeneous memory management (HMM), is a mechanism to treat CPU memory
and GPU memory in a joint address space. It is an essential part of Unified
Memory in heterogeneous computing, which frees the developer from manually
handling data migration across different types of memories. Data will be
automatically transferred and cached into the memory of the compute node. This
programming model is gaining popularity, and for AMD GPU and ROCm, cards that
support xnack replay can utilize this model if CONFIG_HSA_AMD_SVM=y
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.3-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages linux-image-amd64 depends on:
pn linux-image-6.11.10-amd64 <none>
pn linux-image-6.12.3-amd64 <none>
pn linux-image-6.5.0-5-amd64 <none>
linux-image-amd64 recommends no packages.
linux-image-amd64 suggests no packages.
>From 468dc1822dcb3898203e773176ee414e6c534238 Mon Sep 17 00:00:00 2001
From: Yiyang Wu <xgreenlandforwyy@gmail.com>
Date: Wed, 3 Jan 2024 11:52:36 +0800
Subject: [PATCH] Enable CONFIG_HSA_AMD_P2P and CONFIG_HSA_AMD_SVM
CONFIG_HSA_AMD_P2P enables peer to peer PCIe data transfer for AMDGPUs
CONFIG_HSA_AMD_SVM enables HMM support for AMDGPUs
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
---
debian/config/amd64/config | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/debian/config/amd64/config b/debian/config/amd64/config
index 58d2fe781e..f2cc88767d 100644
--- a/debian/config/amd64/config
+++ b/debian/config/amd64/config
@@ -139,6 +139,11 @@ CONFIG_INTEL_IDXD=m
CONFIG_INTEL_IDXD_SVM=y
CONFIG_INTEL_IDXD_PERFMON=y
+##
+## file: drivers/dma/Kconfig
+##
+CONFIG_DMABUF_MOVE_NOTIFY=y
+
##
## file: drivers/edac/Kconfig
##
@@ -151,6 +156,12 @@ CONFIG_EDAC_IGEN6=m
CONFIG_DRM_I915_GVT_KVMGT=m
CONFIG_DRM_I915_PXP=y
+##
+## file: drivers/gpu/drm/amd/amdkfd/Kconfig
+##
+CONFIG_HSA_AMD_SVM=y
+CONFIG_HSA_AMD_P2P=y
+
##
## file: drivers/hid/amd-sfh-hid/Kconfig
##
@@ -232,6 +243,7 @@ CONFIG_NVDIMM_PFN=y
## file: drivers/pci/Kconfig
##
CONFIG_PCI_HYPERV=y
+CONFIG_PCI_P2PDMA=y
##
## file: drivers/pinctrl/Kconfig
@@ -351,6 +363,8 @@ CONFIG_SPARSEMEM_MANUAL=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y
CONFIG_NUMA_EMU=y
+CONFIG_ZONE_DEVICE=y
+CONFIG_DEVICE_PRIVATE=y
##
## file: security/Kconfig
--
2.45.2
Reply to: