Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules Enable amdgpu module & firmware on x86



details:   https://anonhg.NetBSD.org/src/rev/f1e90410cc3a
branches:  trunk
changeset: 368681:f1e90410cc3a
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Jul 27 18:29:35 2022 +0000

description:
Enable amdgpu module & firmware on x86

Make it easier to test this one out, add `load amdgpu` before boot netbsd.

XXX there should probably be a drm block in sys/modules/Makefile which
includes aarch64.

diffstat:

 distrib/sets/lists/modules/md.amd64 |  4 +++-
 distrib/sets/lists/modules/md.i386  |  4 +++-
 share/mk/bsd.own.mk                 |  4 +++-
 sys/modules/Makefile                |  3 ++-
 4 files changed, 11 insertions(+), 4 deletions(-)

diffs (71 lines):

diff -r 9d0daf5e3b31 -r f1e90410cc3a distrib/sets/lists/modules/md.amd64
--- a/distrib/sets/lists/modules/md.amd64       Wed Jul 27 04:17:02 2022 +0000
+++ b/distrib/sets/lists/modules/md.amd64       Wed Jul 27 18:29:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.93 2021/09/25 17:55:37 maya Exp $
+# $NetBSD: md.amd64,v 1.94 2022/07/27 18:29:35 maya Exp $
 #
 ./@MODULEDIR@/acpiacad                         modules-base-kernel     kmod
 ./@MODULEDIR@/acpiacad/acpiacad.kmod           modules-base-kernel     kmod
@@ -28,6 +28,8 @@
 ./@MODULEDIR@/acpiwmi/acpiwmi.kmod             modules-base-kernel     kmod
 ./@MODULEDIR@/aibs                             modules-base-kernel     kmod
 ./@MODULEDIR@/aibs/aibs.kmod                   modules-base-kernel     kmod
+./@MODULEDIR@/amdgpu                           modules-base-kernel     kmod
+./@MODULEDIR@/amdgpu/amdgpu.kmod               modules-base-kernel     kmod
 ./@MODULEDIR@/amdsmn                           modules-base-kernel     kmod
 ./@MODULEDIR@/amdsmn/amdsmn.kmod               modules-base-kernel     kmod
 ./@MODULEDIR@/amdtemp                          modules-base-kernel     kmod
diff -r 9d0daf5e3b31 -r f1e90410cc3a distrib/sets/lists/modules/md.i386
--- a/distrib/sets/lists/modules/md.i386        Wed Jul 27 04:17:02 2022 +0000
+++ b/distrib/sets/lists/modules/md.i386        Wed Jul 27 18:29:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.91 2021/09/25 17:55:37 maya Exp $
+# $NetBSD: md.i386,v 1.92 2022/07/27 18:29:35 maya Exp $
 #
 ./@MODULEDIR@/acpiacad                         modules-base-kernel     kmod
 ./@MODULEDIR@/acpiacad/acpiacad.kmod           modules-base-kernel     kmod
@@ -28,6 +28,8 @@
 ./@MODULEDIR@/acpiwmi/acpiwmi.kmod             modules-base-kernel     kmod
 ./@MODULEDIR@/aibs                             modules-base-kernel     kmod
 ./@MODULEDIR@/aibs/aibs.kmod                   modules-base-kernel     kmod
+./@MODULEDIR@/amdgpu                           modules-base-kernel     kmod
+./@MODULEDIR@/amdgpu/amdgpu.kmod               modules-base-kernel     kmod
 ./@MODULEDIR@/amdsmn                           modules-base-kernel     kmod
 ./@MODULEDIR@/amdsmn/amdsmn.kmod               modules-base-kernel     kmod
 ./@MODULEDIR@/amdtemp                          modules-base-kernel     kmod
diff -r 9d0daf5e3b31 -r f1e90410cc3a share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Wed Jul 27 04:17:02 2022 +0000
+++ b/share/mk/bsd.own.mk       Wed Jul 27 18:29:35 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1286 2022/07/14 03:48:49 mrg Exp $
+#      $NetBSD: bsd.own.mk,v 1.1287 2022/07/27 18:29:35 maya Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1249,6 +1249,8 @@
 MKRADEONFIRMWARE.x86_64=       yes
 MKRADEONFIRMWARE.i386=         yes
 MKRADEONFIRMWARE.aarch64=      yes
+MKAMDGPUFIRMWARE.x86_64=       yes
+MKAMDGPUFIRMWARE.i386=         yes
 
 # Only install the tegra firmware on evbarm.
 MKTEGRAFIRMWARE.evbarm=                yes
diff -r 9d0daf5e3b31 -r f1e90410cc3a sys/modules/Makefile
--- a/sys/modules/Makefile      Wed Jul 27 04:17:02 2022 +0000
+++ b/sys/modules/Makefile      Wed Jul 27 18:29:35 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.267 2022/07/17 15:36:05 riastradh Exp $
+#      $NetBSD: Makefile,v 1.268 2022/07/27 18:29:35 maya Exp $
 
 .include <bsd.own.mk>
 
@@ -356,6 +356,7 @@
 #SUBDIR+=      drmkms_pci
 #SUBDIR+=      drmkms_ttm
 SUBDIR+=       i915drm
+SUBDIR+=       amdgpu
 #SUBDIR+=      i915drmkms
 #
 # ISA modules



Home | Main Index | Thread Index | Old Index