Re: kaveri_mec2.bin file missing

2021-11-20 Thread Riza Dindir
Thanks, I will copy both files to "src/sys/dev/microcode/radeon/" on
my system. Although "kaveri_mec.bin".

Regards
Riza

On Sun, Nov 21, 2021 at 12:29 AM matthew green  wrote:
>
> Riza Dindir writes:
> > Hello
> >
> > I am using NetBSD 9.2 (amd64). Am trying to make the radeon driver work.
> >
> > In the file "sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c",
> > there is a reference to a kaveri_mec2.bin file. But this file is not
> > present in the "src/sys/dev/microcode/radeon/" directory. Is it
> > possible to comment out the reference to kaveri_mec2.bin?
>
> copy this out of the upstream "linux-firmware" package:
>
>
> https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/
>
> we're planning on updating these files for netbsd-10, but for
> now this is the right process.
>
>
> .mrg.


re: Graphics driver and CONFIG_ACPI

2021-11-20 Thread matthew green
> I am trying to make the radeonr7 m265 display device to work on NetBSD
> 9.2 (amd64). In the radeon_bios.c file there is a definition used,
> named CONFIG_ACPI. Some functions are using this definition. I want to
> enable this. Where can I do this? In the configuration file (GENERIC
> for instance) or someplace else?

CONFIG_ACPI needs work to run last i tried.

you can simply put "options CONFIG_ACPI" into your kernel config
to try it, but last i tried it did not build (it might work if
you remove i915 and nouveau drivesr, or, at least require far
less effort in this case.)


i also encourage you to try the new drm code we're working on,
you can fit the latest copy here:

   https://github.com/riastradh/netbsd-src/tree/rereredrm56


.mrg.


re: kaveri_mec2.bin file missing

2021-11-20 Thread matthew green
Riza Dindir writes:
> Hello
>
> I am using NetBSD 9.2 (amd64). Am trying to make the radeon driver work.
>
> In the file "sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c",
> there is a reference to a kaveri_mec2.bin file. But this file is not
> present in the "src/sys/dev/microcode/radeon/" directory. Is it
> possible to comment out the reference to kaveri_mec2.bin?

copy this out of the upstream "linux-firmware" package:

   
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/

we're planning on updating these files for netbsd-10, but for
now this is the right process.


.mrg.


Re: kaveri_mec2.bin file missing

2021-11-20 Thread RVP

On Sat, 20 Nov 2021, Riza Dindir wrote:



In the file "sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c",
there is a reference to a kaveri_mec2.bin file. But this file is not
present in the "src/sys/dev/microcode/radeon/" directory. Is it
possible to comment out the reference to kaveri_mec2.bin?



You could copy that file over from a Linux distro. On Ubuntu 19.04:

$ ls -l /lib/firmware/radeon/kaveri_mec*
-rw-r--r--  1 rvp  rvp  17024 12 Jul  2019 
/media/lib/firmware/radeon/kaveri_mec.bin
-rw-r--r--  1 rvp  rvp  17024 12 Jul  2019 
/media/lib/firmware/radeon/kaveri_mec2.bin
$

-RVP


kaveri_mec2.bin file missing

2021-11-20 Thread Riza Dindir
Hello

I am using NetBSD 9.2 (amd64). Am trying to make the radeon driver work.

In the file "sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c",
there is a reference to a kaveri_mec2.bin file. But this file is not
present in the "src/sys/dev/microcode/radeon/" directory. Is it
possible to comment out the reference to kaveri_mec2.bin?

Regards,
Riza