NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: My ongoing Radeon HD-5450 saga



RVP wrote:
> On Fri, 20 Nov 2026, MLH wrote:
> 
> > [...]
> >>> Are you talking about this patch?
> >>>
> >>> https://gnats.netbsd.org/60968
> >>>
> >>> In sys/arch/x86/x86/cpu.c, inside cpu_hatch():
> >>>         cpu_init_msrs(ci, true);
> >>>         cpu_probe(ci);
> >>> +       pat_init(ci);
> >>>         cpu_speculation_init(ci);
> > [...]
> > I applied it to -current as of yesterday and it made things worse
> > for me and I had to back it out. [...]
> >
> 
> That surprises me very much. OK, from the logs you've shown me, it looks like
> you're running on the radeon drivers (both DRMKMS and Xorg DDX). And, your
> card is supported by both the `amdgpu' and the `radeon' DRM drivers. So, try
> the `amdgpu' and `modesetting' DDX combination now:
> 
> a) disable the `radeon' kernel driver in `/boot.cfg':
> 
> ```
> userconf=disable radeon*

Firstly, thank you for all of your work regarding this. I really
appreciate it.

1) I did all that you suggested and IIRC, when specifing amdgpu
previously, it would just fall back to radeon. When I disabled
radeon, X could not locate a display to use so I specified radeon
instead, while retaining all else you suggested.

2) With radeon specified, while adding the pat_init(ci) no longer
coredumps, those little lines that were only in the windows of
certain programs are now all over the entire display.

3) If I disable - Driver  "modesetting" - the lines all over the
display disappear and mpv, in particular - is only slightly less
stable than without the pat_init(ci) mod. (I still have the patch
in place.) So it appears that -current as of today with the patch
in place is more stable than it was with -current back when I first
tried the patch but mpv, in particular doesn't work well with the
patch, though freecad and kicad seems to operate about the same as
without it. kicad is basically unusable either way as long lines
in all directions fill the window. With freecad, it is mainly text
windows that are affected and moving the mouse around usually clears
things up.

This is with -current as of early EST 11-29 today.


> ```
> 
> b) load the `amdgpu' modules also:
> 
> ```
> menu=Boot normally:rndseed /var/db/entropy-file;load drmkms_sched;load amdgpu;boot
> ```
> 
> c) Use the `modesetting' DDX:
> 
> ```
> $ cat /etc/X11/xorg.conf.d/modesetting.conf.txt 
> Section "Device"
>      Identifier  "Card0"
>      Driver      "modesetting"
>      # Option      "AccelMethod" "none"
> 
>      # To stop AccelMethod "none" from crashing with SIGSEGV on exit.
>      # Option      "ShadowFB" "off"
> EndSection
> 
> $
> ```
> 
> Make sure the PAT patch, above, or Martin's in the PR, has also gone in.
> 
> HTH,
> 
> -RVP
> 


Home | Main Index | Thread Index | Old Index