aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-04-22 13:08:02 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-05-18 23:15:15 -0400
commit4c389f00d5c1726755e014c3cd87cb371a1dec87 (patch)
tree5e0ae4726c7e58976bb7e5448508edac93cc3205 /drivers/gpu
parent25908b77979cb7a5a91fe83043897709c60813b3 (diff)
drm/nouveau: dump pll limits entries when debugging is on
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bios.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index c11039f90d2e..ba7a120a375c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -4409,31 +4409,32 @@ int get_pll_limits(struct drm_device *dev, uint32_t limit_match, struct pll_lims
4409 break; 4409 break;
4410 } 4410 }
4411 4411
4412#if 0 /* for easy debugging */ 4412 NV_DEBUG(dev, "pll.vco1.minfreq: %d\n", pll_lim->vco1.minfreq);
4413 ErrorF("pll.vco1.minfreq: %d\n", pll_lim->vco1.minfreq); 4413 NV_DEBUG(dev, "pll.vco1.maxfreq: %d\n", pll_lim->vco1.maxfreq);
4414 ErrorF("pll.vco1.maxfreq: %d\n", pll_lim->vco1.maxfreq); 4414 NV_DEBUG(dev, "pll.vco1.min_inputfreq: %d\n", pll_lim->vco1.min_inputfreq);
4415 ErrorF("pll.vco2.minfreq: %d\n", pll_lim->vco2.minfreq); 4415 NV_DEBUG(dev, "pll.vco1.max_inputfreq: %d\n", pll_lim->vco1.max_inputfreq);
4416 ErrorF("pll.vco2.maxfreq: %d\n", pll_lim->vco2.maxfreq); 4416 NV_DEBUG(dev, "pll.vco1.min_n: %d\n", pll_lim->vco1.min_n);
4417 4417 NV_DEBUG(dev, "pll.vco1.max_n: %d\n", pll_lim->vco1.max_n);
4418 ErrorF("pll.vco1.min_inputfreq: %d\n", pll_lim->vco1.min_inputfreq); 4418 NV_DEBUG(dev, "pll.vco1.min_m: %d\n", pll_lim->vco1.min_m);
4419 ErrorF("pll.vco1.max_inputfreq: %d\n", pll_lim->vco1.max_inputfreq); 4419 NV_DEBUG(dev, "pll.vco1.max_m: %d\n", pll_lim->vco1.max_m);
4420 ErrorF("pll.vco2.min_inputfreq: %d\n", pll_lim->vco2.min_inputfreq); 4420 if (pll_lim->vco2.maxfreq) {
4421 ErrorF("pll.vco2.max_inputfreq: %d\n", pll_lim->vco2.max_inputfreq); 4421 NV_DEBUG(dev, "pll.vco2.minfreq: %d\n", pll_lim->vco2.minfreq);
4422 4422 NV_DEBUG(dev, "pll.vco2.maxfreq: %d\n", pll_lim->vco2.maxfreq);
4423 ErrorF("pll.vco1.min_n: %d\n", pll_lim->vco1.min_n); 4423 NV_DEBUG(dev, "pll.vco2.min_inputfreq: %d\n", pll_lim->vco2.min_inputfreq);
4424 ErrorF("pll.vco1.max_n: %d\n", pll_lim->vco1.max_n); 4424 NV_DEBUG(dev, "pll.vco2.max_inputfreq: %d\n", pll_lim->vco2.max_inputfreq);
4425 ErrorF("pll.vco1.min_m: %d\n", pll_lim->vco1.min_m); 4425 NV_DEBUG(dev, "pll.vco2.min_n: %d\n", pll_lim->vco2.min_n);
4426 ErrorF("pll.vco1.max_m: %d\n", pll_lim->vco1.max_m); 4426 NV_DEBUG(dev, "pll.vco2.max_n: %d\n", pll_lim->vco2.max_n);
4427 ErrorF("pll.vco2.min_n: %d\n", pll_lim->vco2.min_n); 4427 NV_DEBUG(dev, "pll.vco2.min_m: %d\n", pll_lim->vco2.min_m);
4428 ErrorF("pll.vco2.max_n: %d\n", pll_lim->vco2.max_n); 4428 NV_DEBUG(dev, "pll.vco2.max_m: %d\n", pll_lim->vco2.max_m);
4429 ErrorF("pll.vco2.min_m: %d\n", pll_lim->vco2.min_m); 4429 }
4430 ErrorF("pll.vco2.max_m: %d\n", pll_lim->vco2.max_m); 4430 if (!pll_lim->max_p) {
4431 4431 NV_DEBUG(dev, "pll.max_log2p: %d\n", pll_lim->max_log2p);
4432 ErrorF("pll.max_log2p: %d\n", pll_lim->max_log2p); 4432 NV_DEBUG(dev, "pll.log2p_bias: %d\n", pll_lim->log2p_bias);
4433 ErrorF("pll.log2p_bias: %d\n", pll_lim->log2p_bias); 4433 } else {
4434 4434 NV_DEBUG(dev, "pll.min_p: %d\n", pll_lim->min_p);
4435 ErrorF("pll.refclk: %d\n", pll_lim->refclk); 4435 NV_DEBUG(dev, "pll.max_p: %d\n", pll_lim->max_p);
4436#endif 4436 }
4437 NV_DEBUG(dev, "pll.refclk: %d\n", pll_lim->refclk);
4437 4438
4438 return 0; 4439 return 0;
4439} 4440}