re: Radeon HD 5450?

2022-05-16 Thread matthew green
Phil Nelson writes:
> On Wed, 11 May 2022 11:15:42 +1000
> matthew green  wrote:
>
> > do you have anything else handy to test?  gpus are crazy stupid
> > prices these days :-(
>
> Hi Matthew,
>
>   My department has several nvidia around and I have not yet found
> one that works to the point of getting X running.  I've tried
> the following:
>
>MSI GEFORCE GTX 1060
>GIGABYTE GEFORCE GTX 1650
>EVGA GEFORCE GTX 1018Ti (not enough power)
>An older Radeon I had sitting around, not sure which one but
> it blew up in the same place as the 5450 ... not mapping
> the BIOS.
>The video chip on the motherboard ... it finds it as
> acpivga0 with acpiout0 to acpiout7.  It finds a genfb0
> and labels it "Intel Rocket Lake UHD Graphics 750 (32EU) (rev. 0x04)
> It then reports drm at genfb0 not configured.  I do get a
> working wscons with 4 screens.  "X -configure" quits with
> an error saying that the number of created screens does not
> match number of detected devices.  In the Xorg.0.log when
> it probes for the Intel integrated Graphics Chipsets it
> doesn't list the 750 and it doesn't match it.
> I don't have heavy gpu requirements so if I could get the
> intel UHD graphics working, that would be good.
>
>   You said you have a working nouveau 730.  I'll see if I can
> acquire one of those to try.  Any specific card you recommend?

i have asus 730 and asus 1030 silent cards both working for me
in my two main desktop systems now.  the 730 did once assert(3)
in libdrm_nouveau and X exited, and the 1030 has one had some
minor display damage (green dots over the root window, likely
generated by my green-on-black terminal, but cleared by simply
moving a window over that space), and it's only been a couple
of weeks using the 730, and few days for 1030.

i don't have anything newer/better due to prices, and also cuz
the above are more than sufficient for my needs.

it's possible that back porting the rocket lake code wouldn't
be too difficult -- that was true a few years back when i did
this for kabylake when skylake was already supported... quick
peek says that RKL appeared right after our drm, sometime between
linux 5.6 and 5.10, and unfortunately, this struct:

static const struct intel_device_info rkl_info = {

in the new code has a couple of new members inside struct
intel_device_info{} than our code, so the back port would need
to consider these parts too.


.mrg.


Re: Radeon HD 5450?

2022-05-16 Thread Phil Nelson
On Wed, 11 May 2022 11:15:42 +1000
matthew green  wrote:

> do you have anything else handy to test?  gpus are crazy stupid
> prices these days :-(

Hi Matthew,

  My department has several nvidia around and I have not yet found
one that works to the point of getting X running.  I've tried
the following:

   MSI GEFORCE GTX 1060
   GIGABYTE GEFORCE GTX 1650
   EVGA GEFORCE GTX 1018Ti (not enough power)
   An older Radeon I had sitting around, not sure which one but
it blew up in the same place as the 5450 ... not mapping
the BIOS.
   The video chip on the motherboard ... it finds it as
acpivga0 with acpiout0 to acpiout7.  It finds a genfb0
and labels it "Intel Rocket Lake UHD Graphics 750 (32EU) (rev. 0x04)
It then reports drm at genfb0 not configured.  I do get a
working wscons with 4 screens.  "X -configure" quits with
an error saying that the number of created screens does not
match number of detected devices.  In the Xorg.0.log when
it probes for the Intel integrated Graphics Chipsets it
doesn't list the 750 and it doesn't match it.
I don't have heavy gpu requirements so if I could get the
intel UHD graphics working, that would be good.

  You said you have a working nouveau 730.  I'll see if I can
acquire one of those to try.  Any specific card you recommend?

--Phil


Re: Radeon HD 5450?

2022-05-11 Thread Robert Elz
Date:Wed, 11 May 2022 22:00:03 - (UTC)
From:mlel...@serpens.de (Michael van Elst)
Message-ID:  

  | Would be interesting to see what happens, when in EFI mode you
  | switch to the graphics mode with the gop command before booting
  | the kernel

Not sure that my efiboot is up to that, but I can upgrade it
if needed.  When I get a chance, I will try, see if I duplicate
RVP's results.  It may still need to be an old (9.99.92) kernel if
testing X is to be included, my (-8'ish version) X server simply
references *0 with the expected result if run with a post DRM
update kernel.  Upgrading that is not happening soon.

kre


Re: Radeon HD 5450?

2022-05-11 Thread RVP

On Wed, 11 May 2022, Michael van Elst wrote:


Would be interesting to see what happens, when in EFI mode you
switch to the graphics mode with the gop command before booting
the kernel



One of the first things I tried with my integrated IvyBridge Intel
GPU. No change with the gop command in UEFI mode. (I set a 1024x768
mode which was what DRMKMS seems to go for on my HW.) I only got
a usable console in UEFI mode with this hack:

https://mail-index.netbsd.org/tech-kern/2022/04/12/msg028065.html

In CSM mode, the modesetting driver works OK except for minor
glitches.  But, if you try the `wsfb' Xorg driver on top of `intelfb'
you get what I can only describe as a 1-line framebuffer (graphics
mode). The same thing with a FB test program on the console. The
framebuffer looks like a single line of 1024? pixels right at the
top of the screen.

And, compiling-in some fonts (notably SPLEEN12x24--anything which
doesn't seem to be a multiple of 8x8) causes the kernel to reboot
right at the start.

Haven't had the time to hunt any of these snarks yet...

-RVP



Re: Radeon HD 5450?

2022-05-11 Thread Michael van Elst
k...@munnari.oz.au (Robert Elz) writes:

>My suspicion when I first saw this was that in legacy mode
>the BIOS is doing some console graphics init (and leaving it
>that way) which NetBSD is depending upon, which at least
>some firmware either does not do at all, or undoes, or
>fails to pass along to the OS, or similar, in EFI mode.

Would be interesting to see what happens, when in EFI mode you
switch to the graphics mode with the gop command before booting
the kernel



Re: Radeon HD 5450?

2022-05-11 Thread Robert Elz
Date:Wed, 11 May 2022 18:48:16 +0200
From:Rhialto 
Message-ID:  

  | I have one of those too in my "new" machine, and I also noticed that
  | when I booted in UEFI mode, it didn't work properly; but it has been a
  | while, I don't remember exactly what the issue was.  I'm booting in
  | "BIOS mode" and with that it works fine.

I have that issue with my laptop's Intel graphics.  Works fine
with a legacy BIOS boot, not at all with an EFI boot.  This
predates the DRM update from December, it is an old issue.

My suspicion when I first saw this was that in legacy mode
the BIOS is doing some console graphics init (and leaving it
that way) which NetBSD is depending upon, which at least
some firmware either does not do at all, or undoes, or
fails to pass along to the OS, or similar, in EFI mode.

When I first saw this (ages ago), I tried adding all the
PCI FIXUP options to the kernel, those did not help.

kre


Re: Radeon HD 5450?

2022-05-11 Thread Rhialto
On Tue 10 May 2022 at 15:44:19 -0700, Phil Nelson wrote:
> Is the 5450 too old a device for the UEFI boot only machine or 
> is there a way to get the BIOS address for the autoconfiguration?

I have one of those too in my "new" machine, and I also noticed that
when I booted in UEFI mode, it didn't work properly; but it has been a
while, I don't remember exactly what the issue was.  I'm booting in
"BIOS mode" and with that it works fine.

> --Phil 
-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto


signature.asc
Description: PGP signature


re: Radeon HD 5450?

2022-05-10 Thread matthew green
Phil Nelson writes:
> Hi All,
>
>I've been trying to get -current running on a new Dell Precision
> 3650.  It is a UEFI boot only machine and when booting -current
> with a Radeon HD 5450 installed (which works great on 9.2 on
> an Dell Optiplex 7040) it panics when it can't find the Radeon BIOS.
>
> The messages at this point are:
>
>   kern info: [drm] register mmio base: 0x7090
>   kern info: [drm] register mmio size: 131072
>   {drm:netbsd:radeon_get_bios+0x480} *ERROR Unable to locate a BIOS ROM
>   radeon0: autoconfiguration error: error: Fatal error during GPU init
>   radeon0: autoconfiguration error: unable to register drm: 22
>   panic: cnopen: no console device
>   ...
>
> Is the 5450 too old a device for the UEFI boot only machine or 
> is there a way to get the BIOS address for the autoconfiguration?

i can't easily check for a couple of weeks, but i have a system
i think i had to use UEFI for that had a 5450.  it didn't fail
entirely like the above, it failed the "ring 3" test, and
disabled acceleration.  this mean eg, X worked ok, but many things
use a lot of CPU.  fortunately, this is a zen3 system so it's got
a lot of CPU -- would cost about 1.5 cpus to play a 1080p video.

this system has a nouveau 730 in it now, and everything is better
except one time libdrm_nouveau triggered an assert() and X crashed.
(an operation that should have a resource available didn't have it,
and the assert() tripped this wanted invariant.  i don't have the
details handy.)

the 5450 is old enough that while pcie shouldn't have these sorts
of problems, i've had modern systems fail with pcie gpus, and i've
had newer gpus fail in older pcie systems -- i believe it was the
radeon RX 550 that caused my (old) core2 system to not boot.

do you have anything else handy to test?  gpus are crazy stupid
prices these days :-(


.mrg.