[Linux] Fix: Hard GPU crash / green screen on AMD RX 9060 XT / 9070 / 9070 XT (RDNA4)

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

Forum rules
See full rules at Technical Support Request Rules

Required Information in all Technical Support Requests

Please ensure that you provide the following information for all questions posted in this Technical Support forum.
  • Version and language (e.g. 8.00 Hotfix 3, English, etc.).
  • Whether or not your game is modified using any third party scripts or mods (see note below).
  • The game start you originally selected for the game in which the problem occurred.
  • Exact nature of the problem, where and when it occurs and what you were doing at the time.
  • Any possibly relevant changes you have made to your game, system, or software before the issue occurred.
  • Where appropriate, additional symptoms, error messages, links to saves, screenshots and crash dump files (see this Wiki entry).
  • Your system specifications in the form of a DxDiag report and vulkaninfo (see this Wiki entry).
Failure to provide all this information will make it pretty much impossible for people to help you and may mean that it takes longer for your problem to be identified and hopefully solved. So please don't waste your own time and everyone else's by just posting something like "My game freezes. Help!!!".

If you are supplying information that will not conveniently fit into posts in this forum (approx 70,000 character limit per post), in the worst case you can split long text files across 2 consecutive posts, or ideally you can upload the data to a reputable public fileshare site (a few examples are Google Drive, DropBox or PasteBin, etc) but please don't use sites that spam advertising or require registration for downloads. Please use in your post the open public sharing link to your file(s) that will not require any account or registration for others to download.

Note: Support for third party modifications must be provided by the authors of those modifications, and any requests for such support should be posted in the appropriate thread in the Scripts and Modding forum.
ulf80
Posts: 142
Joined: Wed, 6. Nov 02, 20:31
x4

[Linux] Fix: Hard GPU crash / green screen on AMD RX 9060 XT / 9070 / 9070 XT (RDNA4)

Post by ulf80 »

If you’re experiencing hard GPU crashes (green screen, black screen, or complete system freeze requiring reboot) on an AMD RDNA4 GPU (RX
9060 XT, 9070, 9070 XT) on Linux, this guide may help you.

Symptoms
Hard GPU hang while gaming – screen goes green/black, system becomes unresponsive
Full system reboot required (no automatic GPU recovery)
Crashes are often reproducible at specific locations or scenes in a game
No useful errors in kernel logs (no amdgpu hang/reset/fault messages)
GPU benchmarks (vkmark, glmark2) run fine – the issue only appears under heavy game load

Cause
There is a known hardware bug in the HiZ/HiS (Hierarchical Z-buffer / Hierarchical Stencil) implementation on RDNA4 (GFX1200) GPUs. The open
source RADV Vulkan driver (part of Mesa) has a workaround for this, but it is not fully enabled by default.

Fix
Add the following environment variable to your game’s launch options:
radv_gfx12_hiz_wa=2 %command%

For Steam: Right-click the game → Properties → Launch Options → paste the line above.
For non-Steam games, run them with:
radv_gfx12_hiz_wa=2 /path/to/game

To apply this system-wide for all Vulkan applications, add this to your ~/.bash_profile or ~/.profile:
export radv_gfx12_hiz_wa=2

What this does
radv_gfx12_hiz_wa=2 enables the full HiZ workaround for GFX12/RDNA4 in the RADV driver. Level 0 = off, level 1 = partial, level 2 = full
mitigation.

Requirements
Mesa 25.1+ (ideally mesa-git / Mesa 26.x) – stable Mesa 26.0.3 and older may cause SIGSEGV crashes on RDNA4, as the driver support for
GFX1200 is still maturing. If your distro provides mesa-git or a very recent Mesa build, use that.
Kernel 6.12+ (6.13.5+ recommended)
Up-to-date linux-firmware package

What does NOT help
During troubleshooting, I tested the following without success:
Switching kernels (LTS 6.18.17, stable 6.19.7, RC 7.0-rc4)
Downgrading to stable Mesa 26.0.3 (made it worse – SIGSEGV on startup)
Installing ROCm 7.2.0
RADV debug flags: RADV_DEBUG=noopt,nodcc,nomeshshader and RADV_PERFTEST=gpl
Kernel parameters: amdgpu.gpu_recovery=1, amdgpu.runpm=0
The SMU firmware mismatch warning (smu driver if version = 0x2e, smu fw if version = 0x33) is unrelated and does not cause the
crash.
CBJ
EGOSOFT
EGOSOFT
Posts: 55003
Joined: Tue, 29. Apr 03, 00:56
x4

Re: [Linux] Fix: Hard GPU crash / green screen on AMD RX 9060 XT / 9070 / 9070 XT (RDNA4)

Post by CBJ »

Thanks for posting this here. Hopefully it will be useful to other players who encounter it. :)

Return to “X4: Foundations - Technical Support”