aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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}