drm/nv50/gr: enable ctxprog xfer only when we need it to save power
authorMartin Peres <martin.peres@ensi-bourges.fr>
Sat, 30 Jul 2011 21:08:45 +0000 (23:08 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 20 Sep 2011 06:11:28 +0000 (16:11 +1000)
commitfbba036a56fe0e5c5e8c91daf3fa211f88d94a03
treeac4ea6a7de5216d836ad85127443784f9f5c4140
parentc16a3a358b6460696b2dc275cbbab1adbbbd1f67
drm/nv50/gr: enable ctxprog xfer only when we need it to save power

This patch adds instructions to ctxprog and by doing, impacts context
switching performance.  My testcase showed a 1% performance cost using
glxgears that is a context-switch bound application.

Please test and report bugs/performance/power/other.

Many thanks to Maxim Levitsky for his dedicated work on lowering power
consumption with nouveau.

More patches are coming thanks to his work:

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

Signed-off-by: Martin Peres <martin.peres@ensi-bourges.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_grctx.c