diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-16 02:47:14 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 02:27:20 -0400 |
commit | 6f876986bedf23b40ab707543e88fae7eac27f1f (patch) | |
tree | 8b0176d16bc5ea891e1367ef9accda53a753a568 /drivers/gpu/drm/nouveau/nouveau_bios.c | |
parent | 442b626ece6fbbe7f52c03a09f85ae5755f29eab (diff) |
drm/nouveau: allow static performance level setting
Guarded by a module parameter for the moment, read the code for the
magic value which enables it.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bios.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index ef44070321e6..07171dd3c166 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c | |||
@@ -4832,8 +4832,11 @@ int get_pll_limits(struct drm_device *dev, uint32_t limit_match, struct pll_lims | |||
4832 | */ | 4832 | */ |
4833 | if (limit_match > PLL_MAX) | 4833 | if (limit_match > PLL_MAX) |
4834 | pll_lim->reg = limit_match; | 4834 | pll_lim->reg = limit_match; |
4835 | else | 4835 | else { |
4836 | pll_lim->reg = get_pll_register(dev, limit_match); | 4836 | pll_lim->reg = get_pll_register(dev, limit_match); |
4837 | if (!pll_lim->reg) | ||
4838 | return -ENOENT; | ||
4839 | } | ||
4837 | 4840 | ||
4838 | if (pll_lim_ver == 0x10 || pll_lim_ver == 0x11) { | 4841 | if (pll_lim_ver == 0x10 || pll_lim_ver == 0x11) { |
4839 | uint8_t *pll_rec = &bios->data[bios->pll_limit_tbl_ptr + headerlen + recordlen * pllindex]; | 4842 | uint8_t *pll_rec = &bios->data[bios->pll_limit_tbl_ptr + headerlen + recordlen * pllindex]; |