aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-04-23 03:53:42 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-05-19 13:15:15 +1000
commit17b96cc38d93c65b3bf4e88ce89cc550dc90abf7 (patch)
tree4c19f95836a9563493afb94b59a7d34957363ce2 /drivers/gpu
parent4c389f00d5c1726755e014c3cd87cb371a1dec87 (diff)
downloadkernel_samsung_tuna-17b96cc38d93c65b3bf4e88ce89cc550dc90abf7.zip
kernel_samsung_tuna-17b96cc38d93c65b3bf4e88ce89cc550dc90abf7.tar.gz
kernel_samsung_tuna-17b96cc38d93c65b3bf4e88ce89cc550dc90abf7.tar.bz2
drm/nv50: output calculated crtc pll when debugging on
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_crtc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c
index cfabeb9..41fe8ae 100644
--- a/drivers/gpu/drm/nouveau/nv50_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv50_crtc.c
@@ -279,6 +279,9 @@ nv50_crtc_set_clock(struct drm_device *dev, int head, int pclk)
return ret;
if (limits.vco2.maxfreq) {
+ NV_DEBUG(dev, "pclk %d out %d NM1 %d %d NM2 %d %d P %d\n",
+ pclk, ret, pll.N1, pll.M1, pll.N2, pll.M2, pll.log2P);
+
reg1 = nv_rd32(dev, pll_reg + 4) & 0xff00ff00;
reg2 = nv_rd32(dev, pll_reg + 8) & 0x8000ff00;
nv_wr32(dev, pll_reg, 0x10000611);
@@ -286,6 +289,9 @@ nv50_crtc_set_clock(struct drm_device *dev, int head, int pclk)
nv_wr32(dev, pll_reg + 8,
reg2 | (pll.log2P << 28) | (pll.M2 << 16) | pll.N2);
} else {
+ NV_DEBUG(dev, "pclk %d out %d NM %d %d P %d\n",
+ pclk, ret, pll.N1, pll.M1, pll.log2P);
+
reg1 = nv_rd32(dev, pll_reg + 4) & 0xffc00000;
nv_wr32(dev, pll_reg, 0x50000610);
nv_wr32(dev, pll_reg + 4, reg1 |