[Bug 278212] amdgpu / AMD Radeon XT 6900 - kernel panic (page fault) on FreeBSD 14.0-RELEASE-p6

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 May 2024 22:28:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278212

--- Comment #5 from Tomasz "CeDeROM" CEDRO <tomek@cedro.info> ---
Okay this fallback below seems to work and kind of prevented kernel panics
(second day testing so far). This may be optimized. Maybe only setting DRI to 2
is enough. I entered all man amdgpu options so these can be tuned. Two monitors
setup where one is rotated with Enlightentment WM. Its a bit slower but
acceleration works. For some reason things slows down a lot sometimes but there
is no crash :-)

/usr/local/etc/X11/xorg.conf.d/30-amgpufallback.conf:

Section "Device"
        Identifier      "RX580"
        Driver          "amdgpu"
#       Option  "Accel" "Off"
#       Option "ZaphodHeads" "HDMI-A-0,HDMI-A-1"
        Option  "DRI"   "2"
        Option  "EnablePageFlip" "Off"
        Option  "TearFree" "on"
        Option  "VariableRefresh" "Off"
        Option  "AsyncFlipSecondaries" "On"
#       Option  "AccelMethod" "none"
EndSection

Section "Monitor"
        Identifier      "LG"
        Option          "Monitor-HDMI-A-0"
        Option          "Primary" "True"
        Option          "LeftOf" "HDMI-A-1"
EndSection

Section "Monitor"
        Identifier      "DELL"
        Option          "Monitor-HDMI-A-1"
        Option          "RightOf" "HDMI-A-0"
        Option          "Rotate" "270"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "RX580"
        Monitor         "LG"
        SubSection      "Display"
                Depth   24
                Modes   "3840x2160"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "Screen1"
        Device          "RX580"
        Monitor         "DELL"
        SubSection      "Display"
                Depth   24
                Modes   "2560x1440"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier "MainLayout"
        Screen "Screen0" 0 0
        Screen "Screen1" rightOf "Screen0"
        Option  "SingleCard" "True"
EndSection

-- 
You are receiving this mail because:
You are the assignee for the bug.