From fd9c893defb8f8f5c5abdcbc9ea16b0903e5c92a Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 28 Apr 2022 18:45:35 +0200
Subject: fragments: Add fragment for newer AMD GPUs

This should work fine on Navi or newer GPUs. The Gentoo Wiki [1]
recommends also setting the MEMORY_*, ZONE_* and DEVICE_* settings, so
we have them enabled here.

[1] https://wiki.gentoo.org/wiki/AMDGPU#Kernel
---
 fragments/gpu/amdgpu | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 fragments/gpu/amdgpu

(limited to 'fragments')

diff --git a/fragments/gpu/amdgpu b/fragments/gpu/amdgpu
new file mode 100644
index 0000000..15be0dd
--- /dev/null
+++ b/fragments/gpu/amdgpu
@@ -0,0 +1,7 @@
+CONFIG_DRM_AMDGPU=m
+CONFIG_HSA_AMD=y
+
+CONFIG_MEMORY_HOTPLUG=y
+CONFIG_MEMORY_HOTREMOVE=y
+CONFIG_ZONE_DEVICE=y
+CONFIG_DEVICE_PRIVATE=y
-- 
cgit v1.2.3-2-gb3c3