Skip to contentSkip to conversation

New: Unable to do reclocking manually

Bug 104784 [email protected] 1 participant 4 messages Jan 25, 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=104784

Bug ID: 104784
Summary: Unable to do reclocking manually
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Hi,

I have a laptop with Optimus technology, my Nvidia card is a GTX 640MX. I use Debian Unstable x86_64 with nouveau 1.0.15 and Mesa 17.3.3

Unfortunatly, it's impossible to do reclocking with Nouveau and my GPU.

When i launch "cat /sys/kernel/debug/dri/1/pstate", i have these results :
07: core 270-405 MHz memory 648 MHz
0a: core 270-601 MHz memory 1600 MHz
0f: core 270-614 MHz memory 2800 MHz
AC: core 0 MHz memory 0 MHz

------

It's anormal to have these line "AC: core 0 MHz memory 0 MHz", right ? Because when i set "echo 0f > /sys/kernel/debug/dri/1/pstate", the console (not the system) hangs. And when i launch a game (Tyranny), it does not work.

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

A message that is not in the archive (sent off-list or not yet received): bug-104784-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 104784] Unable to do reclocking manually

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

--- Comment #1 from Pierre Moreau <[email protected]> --- Hello,

Quoted 1 line

AC: core 0 MHz memory 0 MHz

means your GPU is actually suspended: since you have an Optimus configuration, the NVIDIA GPU will suspend automatically if it hasn’t received any work to do in a short while. Try for example to run DRI_PRIME=1 glxgears, keep it running and reissue the cat command: you should not see actual clocks for on the AC line.
Have a look at https://nouveau.freedesktop.org/wiki/Optimus/ to learn how to configure Prime.

As for the system hang when trying to reclock a suspended GPU, patches have been sent to the Nouveau mailing list, but haven’t been merged yet. You can find them here:
https://github.com/karolherbst/nouveau/commits/clk_cleanup_for_real

Quoted 1 line

And when i launch a game (Tyranny), it does not work.

What is not working? If you didn’t specify anything, the game should run on the “primary” GPU by default, which quite often tends to be the Intel GPU.

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 104784] Unable to do reclocking manually

In reply to a message not in the archive

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

--- Comment #2 from Max <[email protected]> --- (In reply to Pierre Moreau from comment #1)

Quoted 12 lines

Hello,

Quoted 1 line

AC: core 0 MHz memory 0 MHz

means your GPU is actually suspended: since you have an Optimus configuration, the NVIDIA GPU will suspend automatically if it hasn’t received any work to do in a short while. Try for example to run DRI_PRIME=1 glxgears, keep it running and reissue the cat command: you should not see actual clocks for on the AC line.
Have a look at https://nouveau.freedesktop.org/wiki/Optimus/ to learn how to configure Prime.

Quoted 4 lines

As for the system hang when trying to reclock a suspended GPU, patches have been sent to the Nouveau mailing list, but haven’t been merged yet. You can find them here:
https://github.com/karolherbst/nouveau/commits/clk_cleanup_for_real

I added to my ~/.xinitrc this line « xrandr --setprovideroffloadsink nouveau Intel »
I see correctly the Intel GPU when i launch « glxinfo | grep « OpenGL vendor string » » and the Nvidia GPU if i add DRI_PRIME=1.

Quoted 4 lines
Quoted 1 line

And when i launch a game (Tyranny), it does not work.

What is not working? If you didn’t specify anything, the game should run on the “primary” GPU by default, which quite often tends to be the Intel GPU.

In fact the games runs with Nouveau and DRI_PRIME=1.
It does not work after to do the reclocking => the game’s process exist but the game’s window does not appear.

Are you French, if yes it’s easiest to explain :
Lorsque je lance la commande pour faire le reclocking, je n’ai plus accès au prompt, comme si la commande continue de travailler en arrière plan. Si je verifie l’état de pstate dans une autre commande, le reclocking a l’air d’avoir été fait.

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 104784] Unable to do reclocking manually

In reply to a message not in the archive

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

Martin Peres <[email protected]> changed:

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

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

--- Comment #3 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/404.

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