Skip to content

Instantly share code, notes, and snippets.

@berenm
berenm / dos2defed.r2
Last active October 12, 2023 02:45
Radare2 patch for Divinity Original Sin 2: Definitive Edition's black screen (Wine / DXVK)
# cp DefEd/bin/EoCApp.exe DefEd/bin/EoCApp.exe.bak
# r2 -w DefEd/bin/EoCApp.exe -i dos2defed.r2 -q
# sha1sum DefEd/bin/EoCApp.*
# 04c29114a7ca50d414abab399033ac88ca6dd362 DefEd/bin/EoCApp.exe
# e3baf89f0d0d1885eb7d4d718e76da99f304726b DefEd/bin/EoCApp.exe.bak
s 0x140fa0d90
wao nop
s 0x140fa93ba
wao nop
@Brainiarc7
Brainiarc7 / skylake-tuning-linux.md
Last active March 30, 2024 16:01
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running: