* [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
@ 2020-12-13 18:52 thelma
2020-12-13 23:33 ` Neil Bothwick
2020-12-13 23:44 ` Michael
0 siblings, 2 replies; 11+ messages in thread
From: thelma @ 2020-12-13 18:52 UTC (permalink / raw
To: Gentoo mailing list
I have "nouveau" build into kernel but it doesn't work:
Fom dmesg:
nouveau 0000:08:00.0: NVIDIA GP107 (137000a1)
nouveau 0000:08:00.0: gr: failed to load firmware "gr/sw_nonctx"
nouveau 0000:08:00.0: gr: failed to load gr/sw_nonctx
nouveau 0000:08:00.0: DRM: failed to create kernel channel, -22
grep -i nouveau .config
CONFIG_DRM_NOUVEAU=y
# CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
# CONFIG_NOUVEAU_DEBUG_MMU is not set
CONFIG_DRM_NOUVEAU_BACKLIGHT=y
I have "linux-firmware" installed but there is a "?" mark beside it
eix linux-firmware
[?] sys-kernel/linux-firmware
Installed versions: 20201022-r3
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-13 18:52 [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx" thelma
@ 2020-12-13 23:33 ` Neil Bothwick
2020-12-14 0:32 ` thelma
2020-12-13 23:44 ` Michael
1 sibling, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2020-12-13 23:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
On Sun, 13 Dec 2020 11:52:51 -0700, thelma@sys-concept.com wrote:
> I have "linux-firmware" installed but there is a "?" mark beside it
>
> eix linux-firmware
> [?] sys-kernel/linux-firmware
> Installed versions: 20201022-r3
>
It means the version you have installed is no longer in the tree. You
should update to the latest.
--
Neil Bothwick
"RAM DISK is NOT an installation procedure!"
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-13 18:52 [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx" thelma
2020-12-13 23:33 ` Neil Bothwick
@ 2020-12-13 23:44 ` Michael
2020-12-14 0:27 ` thelma
1 sibling, 1 reply; 11+ messages in thread
From: Michael @ 2020-12-13 23:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]
On Sunday, 13 December 2020 18:52:51 GMT thelma@sys-concept.com wrote:
> I have "nouveau" build into kernel but it doesn't work:
>
> Fom dmesg:
>
> nouveau 0000:08:00.0: NVIDIA GP107 (137000a1)
> nouveau 0000:08:00.0: gr: failed to load firmware "gr/sw_nonctx"
> nouveau 0000:08:00.0: gr: failed to load gr/sw_nonctx
> nouveau 0000:08:00.0: DRM: failed to create kernel channel, -22
>
> grep -i nouveau .config
> CONFIG_DRM_NOUVEAU=y
> # CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
> CONFIG_NOUVEAU_DEBUG=5
> CONFIG_NOUVEAU_DEBUG_DEFAULT=3
> # CONFIG_NOUVEAU_DEBUG_MMU is not set
> CONFIG_DRM_NOUVEAU_BACKLIGHT=y
I've never used NVIDIA cards with Gentoo, but in firmware terms you need to
specify in your kernel what firmware you want installed in it. Have a look at
this guide:
https://wiki.gentoo.org/wiki/Nouveau/en
and this:
https://wiki.gentoo.org/wiki/Linux_firmware
You'll need to add the firmware the video card asks for here:
Device Drivers --->
Generic Driver Options --->
Firmware loader --->
-*- Firmware loading facility
() Build named firmware blobs into the kernel binary <==
In this instance your card NVIDIA GP107 should need '/lib/firmware/nvidia/
gp107', so the respective entry for it in the kernel config ought to be:
CONFIG_EXTRA_FIRMWARE="nvidia/gp107"
Someone more clued up on these cards can correct me or add to it.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-13 23:44 ` Michael
@ 2020-12-14 0:27 ` thelma
2020-12-14 9:03 ` Michael
0 siblings, 1 reply; 11+ messages in thread
From: thelma @ 2020-12-14 0:27 UTC (permalink / raw
To: gentoo-user
On 12/13/2020 04:44 PM, Michael wrote:
> On Sunday, 13 December 2020 18:52:51 GMT thelma@sys-concept.com wrote:
>> I have "nouveau" build into kernel but it doesn't work:
>>
>> Fom dmesg:
>>
>> nouveau 0000:08:00.0: NVIDIA GP107 (137000a1)
>> nouveau 0000:08:00.0: gr: failed to load firmware "gr/sw_nonctx"
>> nouveau 0000:08:00.0: gr: failed to load gr/sw_nonctx
>> nouveau 0000:08:00.0: DRM: failed to create kernel channel, -22
>>
>> grep -i nouveau .config
>> CONFIG_DRM_NOUVEAU=y
>> # CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
>> CONFIG_NOUVEAU_DEBUG=5
>> CONFIG_NOUVEAU_DEBUG_DEFAULT=3
>> # CONFIG_NOUVEAU_DEBUG_MMU is not set
>> CONFIG_DRM_NOUVEAU_BACKLIGHT=y
>
> I've never used NVIDIA cards with Gentoo, but in firmware terms you need to
> specify in your kernel what firmware you want installed in it. Have a look at
> this guide:
>
> https://wiki.gentoo.org/wiki/Nouveau/en
>
> and this:
>
> https://wiki.gentoo.org/wiki/Linux_firmware
>
> You'll need to add the firmware the video card asks for here:
>
> Device Drivers --->
> Generic Driver Options --->
> Firmware loader --->
> -*- Firmware loading facility
> () Build named firmware blobs into the kernel binary <==
>
> In this instance your card NVIDIA GP107 should need '/lib/firmware/nvidia/
> gp107', so the respective entry for it in the kernel config ought to be:
>
> CONFIG_EXTRA_FIRMWARE="nvidia/gp107"
>
> Someone more clued up on these cards can correct me or add to it.
Thank you, but I've managed to install "nvidia" following:
https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
What confused me is the output from two kernels:
linux-5.4.80-gentoo-r1
was installed with: genkernel --menuconfig all
and "nouveau" was working OK on that kernel:
grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.80-gentoo-r1/.config showing:
CONFIG_EXTRA_FIRMWARE=""
The one below was compiled manually:
grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.72-gentoo/.config
CONFIG_EXTRA_FIRMWARE=""
Both had same output, so why one kernel was working the other didn't?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-13 23:33 ` Neil Bothwick
@ 2020-12-14 0:32 ` thelma
2020-12-14 8:36 ` Neil Bothwick
0 siblings, 1 reply; 11+ messages in thread
From: thelma @ 2020-12-14 0:32 UTC (permalink / raw
To: gentoo-user
On 12/13/2020 04:33 PM, Neil Bothwick wrote:
> On Sun, 13 Dec 2020 11:52:51 -0700, thelma@sys-concept.com wrote:
>
>> I have "linux-firmware" installed but there is a "?" mark beside it
>>
>> eix linux-firmware
>> [?] sys-kernel/linux-firmware
>> Installed versions: 20201022-r3
>>
> It means the version you have installed is no longer in the tree. You
> should update to the latest.
>
Something is wrong, I just --sync and reinstall linux-firmware but the output is still the same:
eix linux-firmware
[?] sys-kernel/linux-firmware
Available versions: 20200316^bsd 20200421^bsd 20200519^bsd 20200619^bsd 20200721^bsd 20200817^bsd 20200918^bsd 20201022-r2^bstd **99999999*l^bstd {initramfs +redistributable savedconfig unknown-license}
Installed versions: 20201022-r3^bst(05:30:05 PM 12/13/2020)(redistributable -initramfs -savedconfig -unknown-license)
Homepage: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
Description: Linux firmware files
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-14 0:32 ` thelma
@ 2020-12-14 8:36 ` Neil Bothwick
2020-12-14 10:07 ` Michael
0 siblings, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2020-12-14 8:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 994 bytes --]
On Sun, 13 Dec 2020 17:32:12 -0700, thelma@sys-concept.com wrote:
> > It means the version you have installed is no longer in the tree. You
> > should update to the latest.
> >
>
> Something is wrong, I just --sync and reinstall linux-firmware but the
> output is still the same:
>
> eix linux-firmware
> [?] sys-kernel/linux-firmware
> Available versions: 20200316^bsd 20200421^bsd 20200519^bsd
> 20200619^bsd 20200721^bsd 20200817^bsd 20200918^bsd 20201022-r2^bstd
> **99999999*l^bstd {initramfs +redistributable savedconfig
> unknown-license} Installed versions: 20201022-r3^
> 20201022-r3^bst(05:30:05 PM 12/13/2020)(redistributable -initramfs
> -savedconfig -unknown-license)
This shows that you have 20201022-r3 installed but eix says the latest
available is 20201022-r2 so you have a version it thinks is not in the
tree.
Did you run eix-update after syncing?
--
Neil Bothwick
Never ask a geek why, just nod your head and slowly back away
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-14 0:27 ` thelma
@ 2020-12-14 9:03 ` Michael
2020-12-14 23:50 ` thelma
0 siblings, 1 reply; 11+ messages in thread
From: Michael @ 2020-12-14 9:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2626 bytes --]
On Monday, 14 December 2020 00:27:03 GMT thelma@sys-concept.com wrote:
> On 12/13/2020 04:44 PM, Michael wrote:
> > On Sunday, 13 December 2020 18:52:51 GMT thelma@sys-concept.com wrote:
> >> I have "nouveau" build into kernel but it doesn't work:
> >>
> >> Fom dmesg:
> >>
> >> nouveau 0000:08:00.0: NVIDIA GP107 (137000a1)
> >> nouveau 0000:08:00.0: gr: failed to load firmware "gr/sw_nonctx"
> >> nouveau 0000:08:00.0: gr: failed to load gr/sw_nonctx
> >> nouveau 0000:08:00.0: DRM: failed to create kernel channel, -22
> >>
> >> grep -i nouveau .config
> >> CONFIG_DRM_NOUVEAU=y
> >> # CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
> >> CONFIG_NOUVEAU_DEBUG=5
> >> CONFIG_NOUVEAU_DEBUG_DEFAULT=3
> >> # CONFIG_NOUVEAU_DEBUG_MMU is not set
> >> CONFIG_DRM_NOUVEAU_BACKLIGHT=y
> >
> > I've never used NVIDIA cards with Gentoo, but in firmware terms you need
> > to
> > specify in your kernel what firmware you want installed in it. Have a
> > look at>
> > this guide:
> > https://wiki.gentoo.org/wiki/Nouveau/en
> >
> > and this:
> > https://wiki.gentoo.org/wiki/Linux_firmware
> >
> > You'll need to add the firmware the video card asks for here:
> >
> > Device Drivers --->
> >
> > Generic Driver Options --->
> >
> > Firmware loader --->
> >
> > -*- Firmware loading facility
> > () Build named firmware blobs into the kernel binary <==
> >
> > In this instance your card NVIDIA GP107 should need '/lib/firmware/nvidia/
> > gp107', so the respective entry for it in the kernel config ought to be:
> >
> > CONFIG_EXTRA_FIRMWARE="nvidia/gp107"
> >
> > Someone more clued up on these cards can correct me or add to it.
>
> Thank you, but I've managed to install "nvidia" following:
> https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
>
> What confused me is the output from two kernels:
>
> linux-5.4.80-gentoo-r1
> was installed with: genkernel --menuconfig all
> and "nouveau" was working OK on that kernel:
>
> grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.80-gentoo-r1/.config showing:
> CONFIG_EXTRA_FIRMWARE=""
>
> The one below was compiled manually:
> grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.72-gentoo/.config
> CONFIG_EXTRA_FIRMWARE=""
>
> Both had same output, so why one kernel was working the other didn't?
Were both of these kernels installed with a corresponding correctly
functioning initramfs, which had all the requisite files (including --
firmware) to boot with, or only one of them did?
Without an initramfs you will need to specify and build any requisite firmware
blobs in the kernel image itself, so they are available to the system as it
boots up.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-14 8:36 ` Neil Bothwick
@ 2020-12-14 10:07 ` Michael
2020-12-14 19:30 ` Neil Bothwick
0 siblings, 1 reply; 11+ messages in thread
From: Michael @ 2020-12-14 10:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1588 bytes --]
On Monday, 14 December 2020 08:36:03 GMT Neil Bothwick wrote:
> On Sun, 13 Dec 2020 17:32:12 -0700, thelma@sys-concept.com wrote:
> > > It means the version you have installed is no longer in the tree. You
> > > should update to the latest.
> >
> > Something is wrong, I just --sync and reinstall linux-firmware but the
> > output is still the same:
> >
> > eix linux-firmware
> > [?] sys-kernel/linux-firmware
> >
> > Available versions: 20200316^bsd 20200421^bsd 20200519^bsd
> >
> > 20200619^bsd 20200721^bsd 20200817^bsd 20200918^bsd 20201022-r2^bstd
> > **99999999*l^bstd {initramfs +redistributable savedconfig
> > unknown-license} Installed versions: 20201022-r3^
> > 20201022-r3^bst(05:30:05 PM 12/13/2020)(redistributable -initramfs
> > -savedconfig -unknown-license)
>
> This shows that you have 20201022-r3 installed but eix says the latest
> available is 20201022-r2 so you have a version it thinks is not in the
> tree.
>
> Did you run eix-update after syncing?
Just sync'ed and on the mirror I used there is no 20201022-r2 version:
$ eix linux-firmware
[I] sys-kernel/linux-firmware
Available versions: 20200316^bsd 20200421^bsd 20200519^bsd 20200619^bsd
20200721^bsd 20200817^bsd 20200918^bsd 20201022-r3^bstd **99999999*l^bstd
{initramfs +redistributable savedconfig unknown-license}
Installed versions: 20201022-r3^bst(08:50:57 26/11/20)(redistributable -
initramfs -savedconfig -unknown-license)
Homepage: https://git.kernel.org/?p=linux/kernel/git/firmware/
linux-firmware.git
Description: Linux firmware files
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-14 10:07 ` Michael
@ 2020-12-14 19:30 ` Neil Bothwick
2020-12-14 23:23 ` Michael
0 siblings, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2020-12-14 19:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
On Mon, 14 Dec 2020 10:07:37 +0000, Michael wrote:
> > This shows that you have 20201022-r3 installed but eix says the latest
> > available is 20201022-r2 so you have a version it thinks is not in the
> > tree.
> >
> > Did you run eix-update after syncing?
>
> Just sync'ed and on the mirror I used there is no 20201022-r2 version:
Exactly, but eix was saying there was, and no -r3, probably because you
hadn't run eix-update.
>
> $ eix linux-firmware
> [I] sys-kernel/linux-firmware
See, it's all fine now.
--
Neil Bothwick
"Designing pages in HTML is like having sex in a bathtub. If you don't
know anything about sex, it won't help to know a lot about bathtubs."
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-14 19:30 ` Neil Bothwick
@ 2020-12-14 23:23 ` Michael
0 siblings, 0 replies; 11+ messages in thread
From: Michael @ 2020-12-14 23:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
On Monday, 14 December 2020 19:30:32 GMT Neil Bothwick wrote:
> On Mon, 14 Dec 2020 10:07:37 +0000, Michael wrote:
> > > This shows that you have 20201022-r3 installed but eix says the latest
> > > available is 20201022-r2 so you have a version it thinks is not in the
> > > tree.
> > >
> > > Did you run eix-update after syncing?
> >
> > Just sync'ed and on the mirror I used there is no 20201022-r2 version:
> Exactly, but eix was saying there was, and no -r3, probably because you
> hadn't run eix-update.
>
> > $ eix linux-firmware
> > [I] sys-kernel/linux-firmware
>
> See, it's all fine now.
Heh! This package was always alright for me. It was Thelma the OP I was
trying to help with my observation. :-)
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx"
2020-12-14 9:03 ` Michael
@ 2020-12-14 23:50 ` thelma
0 siblings, 0 replies; 11+ messages in thread
From: thelma @ 2020-12-14 23:50 UTC (permalink / raw
To: gentoo-user
On 12/14/2020 02:03 AM, Michael wrote:
> On Monday, 14 December 2020 00:27:03 GMT thelma@sys-concept.com wrote:
>> On 12/13/2020 04:44 PM, Michael wrote:
>>> On Sunday, 13 December 2020 18:52:51 GMT thelma@sys-concept.com wrote:
>>>> I have "nouveau" build into kernel but it doesn't work:
>>>>
>>>> Fom dmesg:
>>>>
>>>> nouveau 0000:08:00.0: NVIDIA GP107 (137000a1)
>>>> nouveau 0000:08:00.0: gr: failed to load firmware "gr/sw_nonctx"
>>>> nouveau 0000:08:00.0: gr: failed to load gr/sw_nonctx
>>>> nouveau 0000:08:00.0: DRM: failed to create kernel channel, -22
[snip]
>>
>> Both had same output, so why one kernel was working the other didn't?
>
> Were both of these kernels installed with a corresponding correctly
> functioning initramfs, which had all the requisite files (including --
> firmware) to boot with, or only one of them did?
>
> Without an initramfs you will need to specify and build any requisite firmware
> blobs in the kernel image itself, so they are available to the system as it
> boots up.
Since I was able to make "nvidia" work I abandon fighting with
installing/enabling "nouveau"
Originally I wanted to have it as a backup switching between these two
(just in case) but it is not an easy project.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-12-14 23:50 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-13 18:52 [gentoo-user] nouveau: gr: failed to load firmware "gr/sw_nonctx" thelma
2020-12-13 23:33 ` Neil Bothwick
2020-12-14 0:32 ` thelma
2020-12-14 8:36 ` Neil Bothwick
2020-12-14 10:07 ` Michael
2020-12-14 19:30 ` Neil Bothwick
2020-12-14 23:23 ` Michael
2020-12-13 23:44 ` Michael
2020-12-14 0:27 ` thelma
2020-12-14 9:03 ` Michael
2020-12-14 23:50 ` thelma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox