NVIDIA graphics card failed to initialized

Bug #1742112 reported by Plumtus
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I install NVIDIA driver in ubuntu 16.04, get the error message: Unable to load the 'nvidia-drm' kernel module

Some error in dmsg:
[ 155.904924] nvidia 0000:02:00.0: Refused to change power state, currently in D3
[ 155.905012] NVRM: This is a 64-bit BAR mapped above 4GB by the system
               NVRM: BIOS or the Linux kernel, but the PCI bridge
               NVRM: immediately upstream of this GPU does not define
               NVRM: a matching prefetchable memory window.
[ 155.905012] NVRM: This may be due to a known Linux kernel bug. Please
               NVRM: see the README section on 64-bit BARs for additional
               NVRM: information.
[ 155.905015] nvidia: probe of 0000:02:00.0 failed with error -1
[ 155.905034] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 155.905035] NVRM: None of the NVIDIA graphics adapters were initialized!

Some error in dmsg for "pci 0000:02:00.0"
[ 0.264074] pci 0000:02:00.0: [10de:1c8c] type 00 class 0x030200
[ 0.264082] pci 0000:02:00.0: reg 0x10: [mem 0xd1000000-0xd1ffffff]
[ 0.264090] pci 0000:02:00.0: reg 0x14: [mem 0xa0000000-0xafffffff 64bit pref]
[ 0.264097] pci 0000:02:00.0: reg 0x1c: [mem 0xb0000000-0xb1ffffff 64bit pref]
[ 0.264102] pci 0000:02:00.0: reg 0x24: [io 0xd000-0xd07f]
[ 0.264107] pci 0000:02:00.0: reg 0x30: [mem 0xfff80000-0xffffffff pref]
[ 0.384960] pci 0000:02:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window
[ 0.385040] pci 0000:02:00.0: BAR 6: no space for [mem size 0x00080000 pref]
[ 0.385041] pci 0000:02:00.0: BAR 6: failed to assign [mem size 0x00080000 pref]

it seems that the NVIDIA card doesn't get the memory the bios tells the kernel it wants, it gets remapped and then the drivers fails.

My machine is ThinkPad S5 (with NVIDIA GTK 1050 Ti), I have disabled the secure boot in the BIOS.

output of lspci:
02:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1c8c] (rev ff) (prog-if ff)
        !!! Unknown header type 7f
        Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
---
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: rime 1697 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=45b8d9e6-eed4-408d-8d6b-d8480b377a18
InstallationDate: Installed on 2018-01-09 (0 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 04f2:b5c0 Chicony Electronics Co., Ltd
 Bus 001 Device 004: ID 0bda:b023 Realtek Semiconductor Corp.
 Bus 001 Device 002: ID 17ef:6093 Lenovo
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 20JA0000CD
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.10.0-42-generic.efi.signed root=UUID=10b80c32-7bf6-4b3c-a688-a9db9bdcca30 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.10.0-42.46~16.04.1-generic 4.10.17
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-42-generic N/A
 linux-backports-modules-4.10.0-42-generic N/A
 linux-firmware 1.157.14
Tags: xenial
Uname: Linux 4.10.0-42-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/13/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: R0MET36W (1.13 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20JA0000CD
dmi.board.vendor: LENOVO
dmi.board.version: SDK0K09938 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrR0MET36W(1.13):bd10/13/2017:svnLENOVO:pn20JA0000CD:pvrThinkPadS52ndGen:rvnLENOVO:rn20JA0000CD:rvrSDK0K09938WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.name: 20JA0000CD
dmi.product.version: ThinkPad S5 2nd Gen
dmi.sys.vendor: LENOVO

Revision history for this message
Plumtus (plumtus) wrote :
Plumtus (plumtus)
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1742112

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Plumtus (plumtus) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Plumtus (plumtus) wrote : CRDA.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : IwConfig.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : JournalErrors.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : Lspci.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : ProcEnviron.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : ProcModules.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : PulseList.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : RfKill.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : UdevDb.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote : WifiSyslog.txt

apport information

Revision history for this message
Plumtus (plumtus) wrote :

I add 'acpi_osi=! acpi_osi="Windows 2009"' to kernel parameter for a workaround, that works.
The attachment is dump of acpi before adding kernel parameter.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Did you change between Intel and Nvidia before this issue happens?

Revision history for this message
Plumtus (plumtus) wrote :

No, it's new machine and fresh installation.
It seems a acpi bug in kernel. I use the 'acpi_osi=Linux' as kernel parameter, also work.
But if I remove the acpi_osi parameter, the nvidia driver can't be initilaized.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.15 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15-rc7

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Plumtus (plumtus) wrote :

I have tested the v4.15 kernel, this kernel does not solve the problem, and worse than that, the parameter 'acpi_osi=Linux' does not work in v4.15 kernel, but in 4.10 kernel it works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.