Skip to contentSkip to conversation

New: Reported temperature of nvidia card with nouveau driver is wrong

Bug 107325 [email protected] 1 participant 10 messages Jul 21, 2018 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=107325

Bug ID: 107325
Summary: Reported temperature of nvidia card with nouveau
driver is wrong
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: j.novak-yL21p0u6sjaEIYLD/[email protected]
QA Contact: [email protected]

Hello,

I use Dell Precision 3530 with NVIDIA Corporation GP107GLM [Quadro P600
Mobile] (rev a1). I use Fedora Core 28 with 4.17.6 x86_64 kernel.
I found that sensors tool shows wrong temperature:

$ sensors
nouveau-pci-0100
Adapter: PCI adapter
temp1:       +511.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

Temperature is obviously wrong.
I tried to troubleshoot it on sensors side and it looks that sensors tool
receives this wrong value from driver.
I made one more observation - right after suspend/wakeup the value is
completely different:

$ sensors
nouveau-pci-0100
Adapter: PCI adapter
temp1:       +511.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)
$ sensors
nouveau-pci-0100
Adapter: PCI adapter
temp1:        +43.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)
$ sensors
nouveau-pci-0100
Adapter: PCI adapter
temp1:       +511.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

I can provide more information when required.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

Rhys Kidd <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Rhys Kidd <[email protected]> --- Thanks for the bug report Jirka,

It would be helpful if you could download and build a nouveau-related debug toolkit, envytools [0], and run the following commands (inside the nva/ subfolder):

$ ./nvapeek 0x020460
$ ./nvapeek 0x020400

It would also be helpful to see a copy of your GPU's VBIOS attached here. This can be produced by running the below command:

$ cat /sys/kernel/debug/dri/0/vbios.rom > vbios.rom

[0] https://github.com/envytools/envytools

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

--- Comment #2 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Perhaps when it's runtime-suspended, the readings return all 1's, and we report 511 (0x1ff). Or some variation thereof.

Jirka - if you boot with nouveau.runpm=0, I suspect the temperature will be fine -- good to check though.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

--- Comment #3 from Jirka Novak <j.novak-yL21p0u6sjaEIYLD/[email protected]> --- Hi,

Quoted 7 lines

It would be helpful if you could download and build a nouveau-related debug toolkit, envytools [0], and run the following commands (inside the nva/ subfolder):

$ ./nvapeek 0x020460
$ ./nvapeek 0x020400

Output is there, but I see different output for subsequent calls:

# nvapeek 0x020460
00020460: 20003170
# nvapeek 0x020460
00020460: 20003180
# nvapeek 0x020460
00020460: 200031a8
# nvapeek 0x020460
00020460: 200031a0
# nvapeek 0x020460
00020460: 200031e8
# nvapeek 0x020400
00020400: 00000030
# nvapeek 0x020400
00020400: 00000031
# nvapeek 0x020400
00020400: 00000031
# nvapeek 0x020400
00020400: 00000031
# nvapeek 0x020400
00020400: 00000031
# nvapeek 0x020400
00020400: 00000032
Quoted 4 lines

It would also be helpful to see a copy of your GPU's VBIOS attached here. This can be produced by running the below command:

$ cat /sys/kernel/debug/dri/0/vbios.rom > vbios.rom

File is attached.

Best regards,

Jirka Novak

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

--- Comment #4 from Jirka Novak <j.novak-yL21p0u6sjaEIYLD/[email protected]> --- Hi,

Quoted 5 lines

Perhaps when it's runtime-suspended, the readings return all 1's, and we report 511 (0x1ff). Or some variation thereof.

Jirka - if you boot with nouveau.runpm=0, I suspect the temperature will be fine -- good to check though.

yes, you are correct. It then returns 49-50 degrees.

Best regards,

Jirka Novak

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

Pacho Ramos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Pacho Ramos <[email protected]> --- I have the same issue with kernel 4.19.30 still

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

--- Comment #6 from Karol Herbst <[email protected]> --- this is a runtime suspend issue. While the GPU is suspended the temperature reading fails, but we don't actually check for that, so we return the error value (-1 & 0x1ff = 511).

I think I had a patch for that somewhere, let me see.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

--- Comment #7 from Roy <[email protected]> --- Will this bug interact with Lyude's recent patch, "drm/nouveau/i2c: Disable i2c bus access after ->fini()"?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

--- Comment #8 from Karol Herbst <[email protected]> --- no. This was mainly for displays afaik and we read out the temperature through MMIO.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 107325] Reported temperature of nvidia card with nouveau driver is wrong

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=107325

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #9 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/445.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau