Skip to contentSkip to conversation

New: [G96] Reclocking fails on voltage

Bug 99913 [email protected] 1 participant 16 messages Feb 22, 2017 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 99913
Summary: [G96] Reclocking fails on voltage
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Attempting to set the performance level to 15 on my laptop results in errors.

nouveau 0000:01:00.0: NVIDIA G96 (096500a1) nouveau 0000:01:00.0: bios: version 62.94.3c.00.15 nouveau 0000:01:00.0: fb: 512 MiB GDDR3

The kernel module has options: config=NvClkMode=15 That leads to errors:

nouveau 0000:01:00.0: clk: failed to raise voltage: -22
...
nouveau 0000:01:00.0: clk: error setting pstate 3: -22

After that the contents of /sys/kernel/debug/dri/0/pstate are:

03: core 169 MHz shader 338 MHz memory 100 MHz 05: core 275 MHz shader 550 MHz memory 300 MHz 07: core 400 MHz shader 800 MHz memory 300 MHz 0f: core 625 MHz shader 1563 MHz memory 800 MHz AC DC *
AC: core 275 MHz shader 550 MHz memory 799 MHz

Kernel log and VBIOS will follow.

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #1 from Pekka Paalanen <[email protected]> --- Created attachment 129840
--> https://bugs.freedesktop.org/attachment.cgi?id=129840&action=edit
VBIOS from /sys/kernel/debug/dri/0/vbios.rom

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #2 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- This is probably apparent to anyone investigating, but for your benefit... what's happening is that memory reclock works fine, but changing core/shader clocks requires a voltage adjustment, and that fails. So your core/shader clocks remain unchanged, while memory gets reclocked.

Without looking at your VBIOS, I suspect if you first clock to 07 and then to 0f, you'll be able to get 07's core/shader speeds and the faster memory clock.

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #3 from Pekka Paalanen <[email protected]> --- Created attachment 129841
--> https://bugs.freedesktop.org/attachment.cgi?id=129841&action=edit
dmesg

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #4 from Pekka Paalanen <[email protected]> --- (In reply to Ilia Mirkin from comment #2)

Quoted 3 lines

Without looking at your VBIOS, I suspect if you first clock to 07 and then to 0f, you'll be able to get 07's core/shader speeds and the faster memory clock.

That's a good idea, and it indeed seems to be working. I ended up with:

03: core 169 MHz shader 338 MHz memory 100 MHz 05: core 275 MHz shader 550 MHz memory 300 MHz 07: core 400 MHz shader 800 MHz memory 300 MHz 0f: core 625 MHz shader 1563 MHz memory 800 MHz AC DC *
AC: core 400 MHz shader 800 MHz memory 799 MHz

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #5 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Huh. Well, this is what's in the vbios:

Voltage table at 0xd0c9. Version 32.
Header:
0x0000d0c9: 20 06 02 04 00 01 mask = 0x1

2 entries
-- Vid = 0x0, voltage = 890000 <C2><B5>V --
-- GPIO tag 0x4(VID) data (logic 0) --
0x0000d0cf: 59 00 00 00

-- Vid = 0x1, voltage = 1050000 <C2><B5>V --
-- GPIO tag 0x4(VID) data (logic 1) --
0x0000d0d3: 69 01 00 00

-- ID 0x3 Core 169MHz Memory 100MHz Shader 338MHz Vdec 169MHz Dom6 208MHz Voltage 89[*10mV] Timing 0 Fan 100 PCIe link width 1 --
-- ID 0x5 Core 275MHz Memory 300MHz Shader 550MHz Vdec 275MHz Dom6 277MHz Voltage 89[*10mV] Timing 16 Fan 100 PCIe link width 16 --
-- ID 0x7 Core 400MHz Memory 300MHz Shader 800MHz Vdec 450MHz Dom6 416MHz Voltage 89[*10mV] Timing 0 Fan 100 PCIe link width 16 --
-- ID 0xf Core 625MHz Memory 800MHz Shader 1563MHz Vdec 450MHz Dom6 416MHz Voltage 116[*10mV] Timing 0 Fan 100 PCIe link width 16 --

Note that the 89 voltage is clearly covered by voltage entry 0, while the 116 voltage is not available. It'd be instructional to see what the blob does. If you have any mmiotrace (even a very old one) for this board, it'd be interesting to look at.

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

Pekka Paalanen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #6 from Pekka Paalanen <[email protected]> --- Thanks, I'll have a look, but don't hold your breath.

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

Pekka Paalanen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW

--- Comment #7 from Pekka Paalanen <[email protected]> --- Actually, I found out that there is an old dump from this laptop referred to in bug #60680:
http://people.freedesktop.org/~pq/mmiotrace-fdo-bug-60680.tar.xz

Does that help?

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #8 from Karol Herbst <[email protected]> --- it would be quite unpleasant if nvidia would indeed use the highest clock level here.

And that mmiotrace seems a bit odd, because it accesses a GPIO which shouldn't exist and in any case it doesn't change the voltage of that GPU.

Would you mind checking what nvidia clocks to on this system?

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 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

Pekka Paalanen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #9 from Pekka Paalanen <[email protected]> --- (In reply to Karol Herbst from comment #8)

Quoted 2 lines

it would be quite unpleasant if nvidia would indeed use the highest clock level here.

Do you mean an noise or something else?

Quoted 2 lines

And that mmiotrace seems a bit odd, because it accesses a GPIO which shouldn't exist and in any case it doesn't change the voltage of that GPU.

Yeah, I guessed it might not be enough, since it was recorded for HDMI enablement. Thanks for taking a look.

Quoted 1 line

Would you mind checking what nvidia clocks to on this system?

Yeah, looks like I should be able to install the legacy drivers 340.x. I'll put that on my todo to record a new mmiotrace with some OpenGL action or something else to get the clocks to max.

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

#11 lore raw

[Bug 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #10 from Karol Herbst <[email protected]> --- (In reply to Pekka Paalanen from comment #9)

Quoted 6 lines

(In reply to Karol Herbst from comment #8)

Quoted 2 lines

it would be quite unpleasant if nvidia would indeed use the highest clock level here.

Do you mean an noise or something else?

hacky code

Quoted 5 lines
Quoted 1 line

Would you mind checking what nvidia clocks to on this system?

Yeah, looks like I should be able to install the legacy drivers 340.x. I'll put that on my todo to record a new mmiotrace with some OpenGL action or something else to get the clocks to max.

you can force the highest power state in nvidia-settings afaik, this way the mmiotrace stays rather small

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

#12 lore raw

[Bug 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #11 from Karol Herbst <[email protected]> --- but you can use OpenGL stuff to confirm if it doesn't use the higher clocks

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

#13 lore raw

[Bug 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #12 from Pekka Paalanen <[email protected]> --- Note to self: need to rebuild my kernel without CONFIG_TRIM_UNUSED_KSYMS. Otherwise the driver won't install.

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

#14 lore raw

[Bug 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #13 from Pekka Paalanen <[email protected]> --- Seems unlikely I will ever get around to make that mmiotrace. Should we close this report?

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

#15 lore raw

[Bug 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

--- Comment #14 from Karol Herbst <[email protected]> --- (In reply to Pekka Paalanen from comment #13)

Quoted 2 lines

Seems unlikely I will ever get around to make that mmiotrace. Should we close this report?

can you run the nvidia legacy driver and see what perf level is set?

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

#16 lore raw

[Bug 99913] [G96] Reclocking fails on voltage

In reply to a message not in the archive

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

Martin Peres <[email protected]> changed:

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

             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |MOVED

--- Comment #15 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/326.

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