tech-x11 archive

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

Re: CVS commit: src/sys/external/bsd/drm2/nouveau



Thomas Klausner <wiz%NetBSD.org@localhost> wrote:
>On Fri, Jul 05, 2019 at 08:53:45PM +0000, maya%netbsd.org@localhost wrote:
>> On Fri, Jul 05, 2019 at 10:25:50PM +0200, Thomas Klausner wrote:
>> > On Wed, Jul 03, 2019 at 10:56:09PM +0000, maya%netbsd.org@localhost wrote:
>> > > On Wed, Jul 03, 2019 at 08:47:22PM +0000, Thomas Klausner wrote:
>> > > > Module Name:	src
>> > > > Committed By:	wiz
>> > > > Date:		Wed Jul  3 20:47:22 UTC 2019
>> > > > 
>> > > > Modified Files:
>> > > > 	src/sys/external/bsd/drm2/nouveau: nouveau_pci.c
>> > > > 
>> > > > Log Message:
>> > > > Improve nouveau pci attachment code so it waits for the availability of /
>> > > > before trying to load firmware.
>> > > > 
>> > > 
>> > > Which firmware is it loading? we should probably ship it...
>> > 
>> > I've tried to provide the nvidia firmware from Debian's
>> > firmware-nonfree_20161130.orig.tar.xz
>> > 
>> > Putting the files into
>> > 
>> > /usr/libdata/firmware/nvidia/gm206/gr
>> > 
>> > or
>> > 
>> > /usr/libdata/firmware/nouveau/gm206/gr
>> > 
>> > isn't enough, it still doesn't find them. Is the full searched path printed somewhere?
>> >  Thomas
>> 
>> nouveau code doesn't make it super obvious, but try
>> /usr/libdata/firmware/nouveau/nvidia/gm206/gr/
>> 
>> If that fails, printf drvname and imgname in
>> sys/dev/firmload.c:firmware_open
>
>[     4.764204] firmware_open tries /libdata/firmware/nouveau/nvidia/gm206/fecs_inst.bin
>[     4.764204] firmware_open tries /usr/libdata/firmware/nouveau/nvidia/gm206/fecs_inst.bin
>[     4.764204] firmware_open tries /usr/pkg/libdata/firmware/nouveau/nvidia/gm206/fecs_inst.bin
>[     4.764204] firmware_open tries /usr/pkg/libdata/nouveau/nvidia/gm206/fecs_inst.bin
>
>So I moved the contents from gr/* one level higher and it worked.

If you are going to add your firmware to the tree then probably best to
make it get installed into /libdata the same as the radeon firmware.

I'm guessing that /usr is on your root filesystem.


Home | Main Index | Thread Index | Old Index