Subject: [PATCH] main/linux-vanilla: enable GPU drivers for ppc64le

From: Drew DeVault <[email-masked]>
Date: Wed, 16 Oct 2019 13:49:05 +0000

---
Re-sending this to ~alpine/aports rather than ~alpine/devel.

 main/linux-vanilla/APKBUILD               |  4 +--
 main/linux-vanilla/config-vanilla.ppc64le | 38 +++++++++++++++++++----
 2 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/main/linux-vanilla/APKBUILD b/main/linux-vanilla/APKBUILD
index 4846213ba0..02218f26ee 100644
--- a/main/linux-vanilla/APKBUILD
+++ b/main/linux-vanilla/APKBUILD
@@ -7,7 +7,7 @@ case $pkgver in
 	*.*.*)	_kernver=${pkgver%.*};;
 	*.*) _kernver=$pkgver;;
 esac
-pkgrel=0
+pkgrel=1
 pkgdesc="Linux vanilla kernel"
 url="http://kernel.org"
 depends="mkinitfs"
@@ -226,7 +226,7 @@ sha512sums="ab67cc746b375a8b135e8b23e35e1d6787930d19b3c26b2679787d62951cbdbc3bb6
 1dea61afdefc65bef8699ab3afb5f684c9179344c54d05e99792d05e301ab721b0a5b2fb76e93d9fef4315cbdd3223407726cc324939b6a035b985325a25795b  config-vanilla.armv7
 9e754129b612c91defc512dc1adb6320e8ceae600e9729aace872c993a77b48174a19a8e9476250b2208399b02e021cb620c4c354f060f85edf3a8ab6adcf543  config-vanilla.x86
 ad8aa8e44a8eeea525b6a63814469666eb0125650c729c3ebd1fbb6093d730a17728f0ec018d13c5ee27922f70eae3cc5463928e70da56ef61957f8f888fecea  config-vanilla.x86_64
-775c7283c1ad30ea2793a42ba3e823a1f80827ad10bc95e4b06c89963cc4089264ff827971974842503b0e2c8a98240a597c8b386d800356924d14e835cb5ad1  config-vanilla.ppc64le
+a469cc925da71f425540b7c8148a1eb2be1e4e5bb1dbc109f69e8a93b83f58888e50915d3f7bac8d323474327efdb9a6e01da561b78f9fa489030f0ec1f030fa  config-vanilla.ppc64le
 9d643f629530987a35bfc748fa26b7053c2e245e278afc8d04afbd4dd7ab534c3a7b316cf8dfbebc7f0d7c0d94e9249196e13049ac96504c1e337b7017e6d476  config-vanilla.s390x
 97ccc896de83cd55ca0f4183b32e3821f7d3bf3e8293783f482cd909bbc048a46b25066e900033c12e89ce1d8c3f45d567b7e5d28feb68e5569190086d559c2c  config-virt.aarch64
 d49168a020b65e302ccb3a3263bd8a8ab187ef509005cb6c82bf6a032937be23be958bd881d0fcfca4931d8fc3e6b76cb7ae4899c7b8cce330048334f3ae6b4f  config-virt.x86
diff --git a/main/linux-vanilla/config-vanilla.ppc64le b/main/linux-vanilla/config-vanilla.ppc64le
index c0b52b5886..95cffc46c5 100644
--- a/main/linux-vanilla/config-vanilla.ppc64le
+++ b/main/linux-vanilla/config-vanilla.ppc64le
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/powerpc 4.19.73 Kernel Configuration
+# Linux/powerpc 4.19.79 Kernel Configuration
 #
 
 #
@@ -366,6 +366,7 @@ CONFIG_HZ=100
 CONFIG_SCHED_HRTICK=y
 CONFIG_HUGETLB_PAGE_SIZE_VARIABLE=y
 CONFIG_PPC_TRANSACTIONAL_MEM=y
+CONFIG_MPROFILE_KERNEL=y
 CONFIG_HOTPLUG_CPU=y
 CONFIG_ARCH_CPU_PROBE_RELEASE=y
 CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
@@ -499,6 +500,7 @@ CONFIG_KVM_XIVE=y
 CONFIG_VHOST_NET=m
 CONFIG_VHOST=m
 # CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
+CONFIG_HAVE_LIVEPATCH=y
 
 #
 # General architecture-dependent options
@@ -2549,6 +2551,8 @@ CONFIG_DRM_FBDEV_OVERALLOC=100
 # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
 CONFIG_DRM_DP_CEC=y
 CONFIG_DRM_TTM=y
+CONFIG_DRM_VM=y
+CONFIG_DRM_SCHED=m
 
 #
 # I2C encoder or helper chips
@@ -2557,17 +2561,37 @@ CONFIG_DRM_TTM=y
 # CONFIG_DRM_I2C_SIL164 is not set
 # CONFIG_DRM_I2C_NXP_TDA998X is not set
 # CONFIG_DRM_I2C_NXP_TDA9950 is not set
-# CONFIG_DRM_RADEON is not set
-# CONFIG_DRM_AMDGPU is not set
+CONFIG_DRM_RADEON=m
+# CONFIG_DRM_RADEON_USERPTR is not set
+CONFIG_DRM_AMDGPU=m
+# CONFIG_DRM_AMDGPU_SI is not set
+# CONFIG_DRM_AMDGPU_CIK is not set
+# CONFIG_DRM_AMDGPU_USERPTR is not set
+# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set
 
 #
 # ACP (Audio CoProcessor) Configuration
 #
+# CONFIG_DRM_AMD_ACP is not set
+
+#
+# Display Engine Configuration
+#
+CONFIG_DRM_AMD_DC=y
+# CONFIG_DEBUG_KERNEL_DC is not set
 
 #
 # AMD Library routines
 #
-# CONFIG_DRM_NOUVEAU is not set
+CONFIG_CHASH=m
+# CONFIG_CHASH_STATS is not set
+# CONFIG_CHASH_SELFTEST is not set
+CONFIG_DRM_NOUVEAU=m
+CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=y
+CONFIG_NOUVEAU_DEBUG=5
+CONFIG_NOUVEAU_DEBUG_DEFAULT=3
+# CONFIG_NOUVEAU_DEBUG_MMU is not set
+CONFIG_DRM_NOUVEAU_BACKLIGHT=y
 # CONFIG_DRM_VGEM is not set
 # CONFIG_DRM_VKMS is not set
 # CONFIG_DRM_UDL is not set
@@ -2576,9 +2600,9 @@ CONFIG_DRM_AST=y
 # CONFIG_DRM_CIRRUS_QEMU is not set
 # CONFIG_DRM_RCAR_DW_HDMI is not set
 # CONFIG_DRM_RCAR_LVDS is not set
-# CONFIG_DRM_QXL is not set
+CONFIG_DRM_QXL=m
 # CONFIG_DRM_BOCHS is not set
-# CONFIG_DRM_VIRTIO_GPU is not set
+CONFIG_DRM_VIRTIO_GPU=m
 CONFIG_DRM_PANEL=y
 
 #
@@ -3812,6 +3836,7 @@ CONFIG_TEXTSEARCH_KMP=m
 CONFIG_TEXTSEARCH_BM=m
 CONFIG_TEXTSEARCH_FSM=m
 CONFIG_BTREE=y
+CONFIG_INTERVAL_TREE=y
 CONFIG_RADIX_TREE_MULTIORDER=y
 CONFIG_ASSOCIATIVE_ARRAY=y
 CONFIG_HAS_IOMEM=y
@@ -3965,6 +3990,7 @@ CONFIG_NOP_TRACER=y
 CONFIG_HAVE_FUNCTION_TRACER=y
 CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
 CONFIG_HAVE_DYNAMIC_FTRACE=y
+CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
 CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
 CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
 CONFIG_TRACER_MAX_TRACE=y
-- 
2.23.0