Installing Amdgpu-pro driver to Debian testing HD

27.04.2016
To use amdgpu-pro driver in Debian, use amdgpu driver and Download and unzip amdgpu-pro driver from Amd site. Remove package clinfo. Edit amdgpu-pro-install file, replace word ubuntu with debian. Note that wine-staging csmt enabled gets 50% performance hit when amdgpu-pro-lib32 is installed. Run amdgpu-pro-install and answer y for all questions. To use the amdgpu-pro dkms driver, here are patches for kernel 4.7.0-rc5. After patching the sources, use the commands: sudo dkms install amdgpu-pro/16.30.3-xxx -k 4.7.0-rc5 sudo update-initramfs Patches for amdgpu-pro 16.30.3 and kernel 4.7.0-rc5 First apply patches 0004-0009 from here: https://github.com/Lucretia/vulkan-overlay/tree/master/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809 Then edit the following files: * sudo leafpad /var/lib/dkms/amdgpu-pro/16.30.3-306809/source/amd/dal/dc/dm_services.h #if defined(CONFIG_DEBUG_KERNEL_DAL) #define ASSERT(expr) ASSERT_CRITICAL(expr) #endif #else #define ASSERT(expr) WARN_ON(!(expr)) #define BREAK_TO_DEBUGGER() ASSERT(0) #define ASSERT_CRITICAL(expr) do { if (WARN_ON(!(expr))) { ; } } while (0) #endif /* CONFIG_DEBUG_KERNEL || CONFIG_DEBUG_DRIVER */ * sudo leafpad /var/lib/dkms/amdgpu-pro/16.30.3-306809/source/amd/amdgpu/Makefile ccflags-y := -Wno-error -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg * sudo leafpad /var/lib/dkms/amdgpu-pro/16.30.3-306809/source/amd/amdgpu/amdgpu_atpx_handler.c void amdgpu_register_atpx_handler(void) { bool r; enum vga_switcheroo_handler_flags_t handler_flags = 0; /* detect if we have any ATPX + 2 VGA in the system */ r = amdgpu_atpx_detect(); if (!r) return; vga_switcheroo_register_handler(&amdgpu_atpx_handler, handler_flags); } * sudo leafpad /var/lib/dkms/amdgpu-pro/16.30.3-306809/source/amd/amdgpu/../backport/backport.h #undef OS_VERSION_MAJOR #define OS_VERSION_MAJOR 9 Reboot and check with glxinfo and from /var/log/Xorg.0.log that amdgpu-pro is in use. I use kernels from kernel.org, in the kernel configuration use amdgpu or radeon driver to have DRM TTM module that amdgpu-pro dkms driver needs. Benchmarks: at 720p normal settings with Amd A8-7600.

Похожие видео

Показать еще