]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/nv50: improve nv50_pm_get_clock()
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 11 Apr 2011 19:43:23 +0000 (20:43 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 May 2011 00:49:41 +0000 (10:49 +1000)
commit619d4f7e219f4e65137b66ac878cd1eba8e51e10
treed680ef3bf6e6737834a5aead7ad0e2fb02048c60
parent1f962797fb1343f02cbacb94d80c4560d47b67a9
drm/nv50: improve nv50_pm_get_clock()

Many of the nv50 cards have their shader and/or memory pll
disabled at some stage.
This patch addresses those cases, so that the function
returns the correct frequency.

When the shader pll is disabled, the blob reports 2*core clock
Whereas for memory, the data stored in the vbios. This action
is incorrect as some vbioses store a clock value that is less
than the refference clock of the pll.

Thus we are reporting the reff_clk as it is the frequency the
pll actually operates

v2 - Convert NV_INFO() messages to NV_DEBUG()
Provide more information in the actuall message

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_pm.c