On Mon, 22 Jan 2024 17:29:56 +0000
[email protected] wrote:

> Hi,
> I'm trying to get OpenBSD to work with my RX 6600, and as far as I
> can tell, it (the OS) recognizes my card, but X11 just will not work
> (with the amdgpu driver). I've tried a bunch of different configs
> (including no config at all), but nothing would work.
> 
> Steps to reproduce:
> - Run X11 with a Device SubSection in /etc/X11/xorg.conf that has
> Driver "amdgpu"
> 
> Output:
> Please find attached the ~/.local/share/xorg/Xorg.0.log file.
Looking at that file path, it looks like you tried running X as your
user (with xinit or startx?). xinit and startx don't work with amdgpu
on OpenBSD (I don't remember the technical details but I read about it
a year or two ago). Try setting up xenodm (it's easy, put what you'd
normally put in ~/.xinitrc in ~/.xsession and start the daemon); it's
more secure too since the Xorg process is set up to run as a different
user (_x11) when using xenodm.

> 
> dmesg & dmesg.boot:
> Also attached.
> 
> The only driver that seems to work is "modesetting" but the
Modesetting was one of the X drivers that worked with xinit/startx,
along with vesa and wsfb. Try using xenodm and it should work.

> performance with it is terrible. I've heard that disabling Resizable
> BAR can help, but my BIOS is too old (2015(!)), so I compiled a
> kernel with a patch that was supposed to help
> (https://marc.info/?l=openbsd-bugs&m=169528391615494&w=2). This
> didn't really change anything. All the attached files are from the
> clean, unmodified kernel. I've ran fw_update, but it said there's
> nothing to do. (I'm assuming it ran when I ran syspatch after
> installation.) Also, if it matters, my .xinitrc contains "exec dwm",
> and I start X11 by typing "startx" at the terminal.
> 
> I'm hoping this is easily resolved, as I specifically picked OpenBSD
> because of good GPU support, after experiencing weird kernel panics
> on FreeBSD.
> 
> Best,
> illegalcoding

Reply via email to