Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669902 - x11-drivers/nvidia-drivers-410.73 should check for and warn about missing CONFIG_PM* options
Summary: x11-drivers/nvidia-drivers-410.73 should check for and warn about missing CON...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL: https://devtalk.nvidia.com/default/to...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-29 02:01 UTC by Chris Torske
Modified: 2018-12-30 23:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log.gz (Xorg.0.log.gz,1.85 KB, application/gzip)
2018-12-30 22:21 UTC, LE GARREC Vincent
Details
dmesg.log.gz (dmesg.log.gz,12.46 KB, application/gzip)
2018-12-30 22:30 UTC, LE GARREC Vincent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Torske 2018-10-29 02:01:59 UTC
Nvidia-drivers-410.73 fails to make a usable kernel module if you do NOT have power-management configured into your kernel.  Compiling nvidia-drivers is not an issue, as it compiles perfectly fine.  However, if you try booting the system with the new drivers, results without X11.  Dmsg output listed these lines multiple times when the system tries loading nvidia driver:

[    7.937569] nvidia: Unknown symbol nv_pmops_freeze (err 0)
[    7.937600] nvidia: Unknown symbol nv_pmops_restore (err 0)
[    7.937619] nvidia: Unknown symbol nv_pmops_poweroff (err 0)
[    7.937733] nvidia: Unknown symbol nv_pmops_thaw (err 0)
[    7.937745] nvidia: Unknown symbol nv_pmops_resume (err 0)
[    7.937762] nvidia: Unknown symbol nv_pmops_suspend (err 0)
[    7.976259] nvidia: Unknown symbol nv_pmops_freeze (err 0)
[    7.976289] nvidia: Unknown symbol nv_pmops_restore (err 0)
[    7.976307] nvidia: Unknown symbol nv_pmops_poweroff (err 0)
[    7.976397] nvidia: Unknown symbol nv_pmops_thaw (err 0)
[    7.976409] nvidia: Unknown symbol nv_pmops_resume (err 0)
[    7.976426] nvidia: Unknown symbol nv_pmops_suspend (err 0)
Comment 1 Chris Torske 2018-10-29 02:06:22 UTC
The patch posted located in the url link I added, semi-works.  I say semi-works, as the paths for the files specified is wrong.  Upon correcting the paths, it is works fine.

The correct header paths should be like:
nvidia-410.73-orig/kernel/common/inc/nv-proto.h instead of
nvidia-410.73-orig/common/inc/nv-proto.h
Comment 2 Ivan 2018-10-31 14:10:59 UTC
Not sure if my comment is related to this particular the problem

410.73 builds fine for me too, but it doesn't work at all, like any 410.xx-drivers.

Even though I have CONFIG_PM=y, it still doesn't work with both 4.18 and 4.19 kernels.

ivan@pc ~ $ zgrep -i config_pm /proc/config.gz 
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_PM_CLK=y
# CONFIG_PMIC_OPREGION is not set
# CONFIG_PMBUS is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_PMIC_DA903X is not set
CONFIG_PMC_ATOM=y
# CONFIG_PM_DEVFREQ is not set

When I try to boot, I get following messages:
* Remounting remaining filesystems read-only ...
* Remounting / read only ...
* Failed because we are using /
* ERROR: mount-ro failed to start

If I downgrade driver back to 396.54, everything is fine again.

I'll try your patch later and I'll post if there are any changes.
Comment 3 Ivan 2018-10-31 21:31:45 UTC
Applied the patch, but no luck. System's behavior doesn't change with or without patch.
I guess, I have another widely-spread problem: https://bugs.gentoo.org/667362
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-01 15:30:45 UTC
(In reply to Ivan from comment #2)
> Not sure if my comment is related to this particular the problem

But you tried anyway instead of filing a new bug report. Now you get to file a new bug report after all.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-01 15:31:36 UTC
(In reply to Chris Torske from comment #0)
> Nvidia-drivers-410.73 fails to make a usable kernel module if you do NOT
> have power-management configured into your kernel.  Compiling nvidia-drivers
> is not an issue, as it compiles perfectly fine.  However, if you try booting
> the system with the new drivers, results without X11.  Dmsg output listed
> these lines multiple times when the system tries loading nvidia driver:
> 
> [    7.937569] nvidia: Unknown symbol nv_pmops_freeze (err 0)
> [    7.937600] nvidia: Unknown symbol nv_pmops_restore (err 0)
> [    7.937619] nvidia: Unknown symbol nv_pmops_poweroff (err 0)
> [    7.937733] nvidia: Unknown symbol nv_pmops_thaw (err 0)
> [    7.937745] nvidia: Unknown symbol nv_pmops_resume (err 0)
> [    7.937762] nvidia: Unknown symbol nv_pmops_suspend (err 0)
> [    7.976259] nvidia: Unknown symbol nv_pmops_freeze (err 0)
> [    7.976289] nvidia: Unknown symbol nv_pmops_restore (err 0)
> [    7.976307] nvidia: Unknown symbol nv_pmops_poweroff (err 0)
> [    7.976397] nvidia: Unknown symbol nv_pmops_thaw (err 0)
> [    7.976409] nvidia: Unknown symbol nv_pmops_resume (err 0)
> [    7.976426] nvidia: Unknown symbol nv_pmops_suspend (err 0)

So which CONFIG_* options would those be?
Comment 6 Chris Torske 2018-11-02 01:12:07 UTC
From my understanding of going through the patch, it seems all of the symbols defined by nvivia but are only compiled based on some power management configuration.  I haven't gone through nvidia's code (to figure out where/when it is defined).  Going by the symbol naming convention, I'd hazard a guess these symbols are related to PM hibernation/sleep.  Anything beyond that, I'd have no way to know or test, as my machines don't use any power management beyond turning on or off.

Again note:  The patch's paths need to be fixed to apply correctly to the code.  (I didn't make the patch, nor claim credit for it in anyway beyond identifying what needs to be fixed so the patch can applied.)
Comment 7 LE GARREC Vincent 2018-12-30 22:19:42 UTC
Just to say that I had the same problem.

I migrated from x11-drivers/nvidia-drivers-390.87 to x11-drivers/nvidia-drivers-410.78. I can't test with nvidia-drivers-415.25, my GeForce 660 Ti is not officially compatible based on https://www.nvidia.fr/Download/index.aspx?lang=fr.

With nvidia-drivers-390.87, gdm starts,
With nvidia-drivers-410.78, gdm fails.

I can confirm that compile the kernel with CONFIG_PM enabled solves the problem.

So for nvidia-drivers-410.78, I think that CONFIG_PM must be set.
Comment 8 LE GARREC Vincent 2018-12-30 22:21:46 UTC
Created attachment 559070 [details]
Xorg.0.log.gz

Error while trying to load nvidia from Xorg while CONFIG_PM is disabled.
Comment 9 LE GARREC Vincent 2018-12-30 22:30:24 UTC
Created attachment 559072 [details]
dmesg.log.gz

Problem occurs after "nvidia: module license 'NVIDIA' taints kernel."
Comment 10 Larry the Git Cow gentoo-dev 2018-12-30 22:58:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68642900498fd558372f55e6a07986bacb586f38

commit 68642900498fd558372f55e6a07986bacb586f38
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2018-12-30 22:58:15 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2018-12-30 22:58:24 +0000

    x11-drivers/nvidia-drivers: Warn about CONFIG_PM
    
    Fixes: https://bugs.gentoo.org/show_bug.cgi?id=669902
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-410.78.ebuild | 2 +-
 x11-drivers/nvidia-drivers/nvidia-drivers-415.18.ebuild | 2 +-
 x11-drivers/nvidia-drivers/nvidia-drivers-415.23.ebuild | 2 +-
 x11-drivers/nvidia-drivers/nvidia-drivers-415.25.ebuild | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Comment 11 Larry the Git Cow gentoo-dev 2018-12-30 23:12:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fbefc91d322161f91a8293f5e05fff263c2babc

commit 0fbefc91d322161f91a8293f5e05fff263c2babc
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2018-12-30 23:12:14 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2018-12-30 23:12:24 +0000

    x11-drivers/nvidia-drivers: Partially revert "Warn about CONFIG_PM"
    
    According to the upstream chat this should apply only to the 410 branch.
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=669902
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-415.18.ebuild | 2 +-
 x11-drivers/nvidia-drivers/nvidia-drivers-415.23.ebuild | 2 +-
 x11-drivers/nvidia-drivers/nvidia-drivers-415.25.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)