Re: well-supported card for new DRM?

2022-01-12 Thread Thomas Klausner
On Fri, Dec 31, 2021 at 04:29:30PM +0100, Thomas Klausner wrote:
> Yes, I do have one of those. But the behaviour looks quite the same,
> some minor changes in the Xorg logfile only, mode 3840x2160 not
> available for xrandr.

PEBKAC.

I had configured the kernel to restrict DRM to 1920x1080:

optionsDRM_MAX_RESOLUTION_HORIZONTAL=1920  # Limit DRM size 
in horizontal dimension
optionsDRM_MAX_RESOLUTION_VERTICAL=1080# Limit DRM size 
in vertical dimension

because otherwise my previous graphics card wasn't working.  Not too
surprisingly, this feature works and limited the resolution. I've
removed these two lines, now I get 4k in the framebuffer and in X.

Yay!
 Thomas


Re: well-supported card for new DRM?

2021-12-31 Thread Thomas Klausner
On Fri, Dec 31, 2021 at 04:03:08PM +0100, Tobias Nygren wrote:
> On Fri, 31 Dec 2021 15:34:35 +0100
> Thomas Klausner  wrote:
> 
> > Any suggestions how I can force the xserver in 3840x2160 mode?
> 
> > NOUVEAU(0): Printing DDC gathered Modelines:
> > NOUVEAU(0): Modeline "3840x2160"x0.0  533.25  3840 3888 3920 4000  2160 
> > 2163 2168  +hsync -vsync (133.3 kHz eP)
> 
> >  NOUVEAU(0): HDMI max TMDS frequency 30KHz
> 
> Maybe the 4k mode is rejected due to too high pixel clock.
> 4k@60 should work on the DisplayPort if you have one of
> those cables.

Yes, I do have one of those. But the behaviour looks quite the same,
some minor changes in the Xorg logfile only, mode 3840x2160 not
available for xrandr.
 Thomas

X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
Build Operating System: NetBSD/amd64 9.99.92 - The NetBSD Foundation, Inc.
Current Operating System: NetBSD yt.nih.at 9.99.92 NetBSD 9.99.92 (MIAU) #89: 
Tue Dec 21 08:01:51 CET 2021  
w...@yt.nih.at:/disk/6/archive/foreign/src/sys/arch/amd64/compile/obj/MIAU amd64
Build Date: 23 August 2021  11:23:23PM
 
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Dec 31 16:24:21 2021
(II) Loader magic: 0x102496ba0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 24.1
X.Org XInput driver : 24.1
X.Org Server Extension : 10.0
(--) PCI:*(65@12:0:0) 10de:1c82:1462:8c96 rev 161, Mem @ 0x9e00/16777216, 
0x8000/268435456, 0x9000/33554432, I/O @ 0x3000/128, BIOS @ 
0x/524288
(==) Using default built-in configuration (48 lines)
(==) --- Start of built-in configuration ---
Section "Device"
Identifier  "Builtin Default nouveau Device 0"
Driver  "nouveau"
EndSection
Section "Screen"
Identifier  "Builtin Default nouveau Screen 0"
Device  "Builtin Default nouveau Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default nv Device 0"
Driver  "nv"
EndSection
Section "Screen"
Identifier  "Builtin Default nv Screen 0"
Device  "Builtin Default nv Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default modesetting Device 0"
Driver  "modesetting"
EndSection
Section "Screen"
Identifier  "Builtin Default modesetting Screen 0"
Device  "Builtin Default modesetting Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default vesa Device 0"
Driver  "vesa"
EndSection
Section "Screen"
Identifier  "Builtin Default vesa Screen 0"
Device  "Builtin Default vesa Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default wsfb Device 0"
Driver  "wsfb"
EndSection
Section "Screen"
Identifier  "Builtin Default wsfb Screen 0"
Device  "Builtin Default wsfb Device 0"
EndSection
Section "ServerLayout"
Identifier  "Builtin Default Layout"
Screen  "Builtin Default nouveau Screen 0"
Screen  "Builtin Default nv Screen 0"
Screen  "Builtin Default modesetting Screen 0"
Screen  "Builtin Default vesa Screen 0"
Screen  "Builtin Default wsfb Screen 0"
EndSection
(==) --- End of built-in configuration ---
(==) ServerLayout "Builtin Default Layout"
(**) |-->Screen "Builtin Default nouveau Screen 0" (0)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default nouveau Device 0"
(==) No monitor specified for screen "Builtin Default nouveau Screen 0".
Using a default monitor configuration.
(**) |-->Screen "Builtin Default nv Screen 0" (1)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default nv Device 0"
(==) No monitor specified for screen "Builtin Default nv Screen 0".
Using a default monitor configuration.
(**) |-->Screen "Builtin Default modesetting Screen 0" (2)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default modesetting Device 0"
(==) No monitor specified for screen "Builtin Default modesetting Screen 0".
Using a default monitor configuration.
(**) |-->Screen "Builtin Default vesa Screen 0" (3)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default vesa Device 0"
(==) No monitor specified for screen "Builtin Default vesa Screen 0".
Using a default monitor 

Re: well-supported card for new DRM?

2021-12-31 Thread Robert Swindells


Thomas Klausner  wrote:
>
>I got a Geforce GTX 1050 Ti and it works fine.
>
>However, the X server doesn't go higher than 1920x1080.  I tried
>playing around with xrandr but that didn't change anything.
>
>I see a line
>
>  resize called 1920 1080
>
>in the X.org log file. Where does that come from?

Seems to be from the xf86-video-nouveau driver in this source file:

  xf86-video-nouveau/dist/src/drmmode_display.c


Re: well-supported card for new DRM?

2021-12-31 Thread Tobias Nygren
On Fri, 31 Dec 2021 15:34:35 +0100
Thomas Klausner  wrote:

> Any suggestions how I can force the xserver in 3840x2160 mode?

> NOUVEAU(0): Printing DDC gathered Modelines:
> NOUVEAU(0): Modeline "3840x2160"x0.0  533.25  3840 3888 3920 4000  2160 2163 
> 2168  +hsync -vsync (133.3 kHz eP)

>  NOUVEAU(0): HDMI max TMDS frequency 30KHz

Maybe the 4k mode is rejected due to too high pixel clock.
4k@60 should work on the DisplayPort if you have one of
those cables.

-Tobias


Re: well-supported card for new DRM?

2021-12-31 Thread Thomas Klausner
On Fri, Dec 31, 2021 at 03:33:25PM +0100, Thomas Klausner wrote:
> On Tue, Dec 28, 2021 at 05:36:04AM +1100, Matthew Green wrote:
> > > I'm looking to upgrade my graphics card. What's the newest generation
> > > that's well supported by NetBSD-current now?
> > > NVidia "Pascal" (e.g. GTX 1050 Ti)?
> > > Radeon "Polaris" (e.g. Radeon RX 550)?
> > > or even something newer?
> > 
> > we have reports that 1030 works well.  i still haven't gotten
> > a newer nvidia since those are beyond my toy-gpu-card-price :-)
> 
> I got a Geforce GTX 1050 Ti and it works fine.
> 
> However, the X server doesn't go higher than 1920x1080.  I tried
> playing around with xrandr but that didn't change anything.
> 
> I see a line
> 
>   resize called 1920 1080
> 
> in the X.org log file. Where does that come from?
> 
> mpv seems to use a higher resolution anyway:
> 
> VO: [gpu] 3840x2160 yuv420p
> 
> Any suggestions how I can force the xserver in 3840x2160 mode?

And here's the Xorg.log file I had intended to attach...
 Thomas



X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
Build Operating System: NetBSD/amd64 9.99.92 - The NetBSD Foundation, Inc.
Current Operating System: NetBSD yt.nih.at 9.99.92 NetBSD 9.99.92 (MIAU) #89: 
Tue Dec 21 08:01:51 CET 2021  
w...@yt.nih.at:/disk/6/archive/foreign/src/sys/arch/amd64/compile/obj/MIAU amd64
Build Date: 23 August 2021  11:23:23PM
 
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Dec 31 15:30:06 2021
(II) Loader magic: 0x12fe96ba0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 24.1
X.Org XInput driver : 24.1
X.Org Server Extension : 10.0
(--) PCI:*(65@12:0:0) 10de:1c82:1462:8c96 rev 161, Mem @ 0x9e00/16777216, 
0x8000/268435456, 0x9000/33554432, I/O @ 0x3000/128, BIOS @ 
0x/524288
(==) Using default built-in configuration (48 lines)
(==) --- Start of built-in configuration ---
Section "Device"
Identifier  "Builtin Default nouveau Device 0"
Driver  "nouveau"
EndSection
Section "Screen"
Identifier  "Builtin Default nouveau Screen 0"
Device  "Builtin Default nouveau Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default nv Device 0"
Driver  "nv"
EndSection
Section "Screen"
Identifier  "Builtin Default nv Screen 0"
Device  "Builtin Default nv Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default modesetting Device 0"
Driver  "modesetting"
EndSection
Section "Screen"
Identifier  "Builtin Default modesetting Screen 0"
Device  "Builtin Default modesetting Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default vesa Device 0"
Driver  "vesa"
EndSection
Section "Screen"
Identifier  "Builtin Default vesa Screen 0"
Device  "Builtin Default vesa Device 0"
EndSection
Section "Device"
Identifier  "Builtin Default wsfb Device 0"
Driver  "wsfb"
EndSection
Section "Screen"
Identifier  "Builtin Default wsfb Screen 0"
Device  "Builtin Default wsfb Device 0"
EndSection
Section "ServerLayout"
Identifier  "Builtin Default Layout"
Screen  "Builtin Default nouveau Screen 0"
Screen  "Builtin Default nv Screen 0"
Screen  "Builtin Default modesetting Screen 0"
Screen  "Builtin Default vesa Screen 0"
Screen  "Builtin Default wsfb Screen 0"
EndSection
(==) --- End of built-in configuration ---
(==) ServerLayout "Builtin Default Layout"
(**) |-->Screen "Builtin Default nouveau Screen 0" (0)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default nouveau Device 0"
(==) No monitor specified for screen "Builtin Default nouveau Screen 0".
Using a default monitor configuration.
(**) |-->Screen "Builtin Default nv Screen 0" (1)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default nv Device 0"
(==) No monitor specified for screen "Builtin Default nv Screen 0".
Using a default monitor configuration.
(**) |-->Screen "Builtin Default modesetting Screen 0" (2)
(**) |   |-->Monitor ""
(**) |   |-->Device "Builtin Default modesetting Device 0"
(==) No monitor specified for screen "Builtin Default 

Re: well-supported card for new DRM?

2021-12-31 Thread Thomas Klausner
On Tue, Dec 28, 2021 at 05:36:04AM +1100, Matthew Green wrote:
> > I'm looking to upgrade my graphics card. What's the newest generation
> > that's well supported by NetBSD-current now?
> > NVidia "Pascal" (e.g. GTX 1050 Ti)?
> > Radeon "Polaris" (e.g. Radeon RX 550)?
> > or even something newer?
> 
> we have reports that 1030 works well.  i still haven't gotten
> a newer nvidia since those are beyond my toy-gpu-card-price :-)

I got a Geforce GTX 1050 Ti and it works fine.

However, the X server doesn't go higher than 1920x1080.  I tried
playing around with xrandr but that didn't change anything.

I see a line

  resize called 1920 1080

in the X.org log file. Where does that come from?

mpv seems to use a higher resolution anyway:

VO: [gpu] 3840x2160 yuv420p

Any suggestions how I can force the xserver in 3840x2160 mode?

Thanks,
 Thomas


re: well-supported card for new DRM?

2021-12-27 Thread matthew green
> I'm looking to upgrade my graphics card. What's the newest generation
> that's well supported by NetBSD-current now?
> NVidia "Pascal" (e.g. GTX 1050 Ti)?
> Radeon "Polaris" (e.g. Radeon RX 550)?
> or even something newer?

we have reports that 1030 works well.  i still haven't gotten
a newer nvidia since those are beyond my toy-gpu-card-price :-)

the RX 550 mostly works but we are still having some bugs (i
have one of these from before they went up about 2x in cost).
the two issues i reported before merge:

   https://github.com/riastradh/netbsd-src/issues/24
   https://github.com/riastradh/netbsd-src/issues/28

i don't think we got fixes for these yet.  #42 looks like the
same issue as my #24, and #34 is a panic i've never seen but
on the next generation card (5500.)

HTH.


.mrg.


well-supported card for new DRM?

2021-12-27 Thread Thomas Klausner
Hi!

I'm looking to upgrade my graphics card. What's the newest generation
that's well supported by NetBSD-current now?
NVidia "Pascal" (e.g. GTX 1050 Ti)?
Radeon "Polaris" (e.g. Radeon RX 550)?
or even something newer?

Thanks,
 Thomas