Skip to content

Instantly share code, notes, and snippets.

View jnettlet's full-sized avatar

Jon Nettleton jnettlet

View GitHub Profile
@jnettlet
jnettlet / 0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
Created August 14, 2020 11:41
Mesa corruption and performance fix for HoneyComb with Polaris graphics cards
From d72aa8ae74ffb7329003f9f23ffa05833af951ab Mon Sep 17 00:00:00 2001
From: Jon Nettleton <[email protected]>
Date: Fri, 14 Aug 2020 13:36:08 +0200
Subject: [PATCH] radeonsi: On Aarch64 force persistent buffers to GTT
This fixes a glamore corruption issue on the HoneyComb and by
internet reports should also fix problems seen on Huaweii
Kunpeng hardware.
The root cause of the corruption needs to be worked out, but
@jnettlet
jnettlet / amdgpu.conf
Created July 17, 2020 14:00
Put in /etc/dracut.conf.d for graphical boot
add_drivers+=" amdgpu "
install_items+=" /lib/firmware/amdgpu/polaris10_ce_2.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_ce.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_k2_smc.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_k_mc.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_k_smc.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_mc.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_me_2.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_me.bin "
install_items+=" /lib/firmware/amdgpu/polaris10_mec2_2.bin "
@jnettlet
jnettlet / 0001-radeonsi-Temporary-patch-to-fix-corruption-with-pers.patch
Created July 14, 2020 14:39
Temp patch for mesa to fix Arm64 AmdGPU corruption
From c174f3201f58f57571f5676f07041eb50060d181 Mon Sep 17 00:00:00 2001
From: Jon Nettleton <[email protected]>
Date: Tue, 14 Jul 2020 15:01:42 +0200
Subject: [PATCH] radeonsi: Temporary patch to fix corruption with persitent
buffers
Until further debugging is done set kernel_flushes_hdp_before_ib to
false so persistent buffers are allocated from GTT memory. I have
an open issue for this in mesa that perhaps this should become a
runtime DRI option that can be enabled.