From: Emil Velikov Date: Mon, 11 Apr 2011 19:43:23 +0000 (+0100) Subject: drm/nv50: improve nv50_pm_get_clock() X-Git-Tag: v3.0-rc1~312^2~3^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=619d4f7e219f4e65137b66ac878cd1eba8e51e10;p=pandora-kernel.git 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 Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed