Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d29b9924
Commit
d29b9924
authored
Oct 22, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nva0/clk: fix accidental limiting of pll coefficients
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
75faef78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
drivers/gpu/drm/nouveau/core/subdev/clock/pllnv04.c
drivers/gpu/drm/nouveau/core/subdev/clock/pllnv04.c
+16
-13
No files found.
drivers/gpu/drm/nouveau/core/subdev/clock/pllnv04.c
View file @
d29b9924
...
@@ -38,7 +38,7 @@ getMNP_single(struct nouveau_subdev *subdev, struct nvbios_pll *info, int clk,
...
@@ -38,7 +38,7 @@ getMNP_single(struct nouveau_subdev *subdev, struct nvbios_pll *info, int clk,
* "clk" parameter in kHz
* "clk" parameter in kHz
* returns calculated clock
* returns calculated clock
*/
*/
int
cv
=
nouveau_bios
(
subdev
)
->
version
.
chip
;
struct
nouveau_bios
*
bios
=
nouveau_bios
(
subdev
)
;
int
minvco
=
info
->
vco1
.
min_freq
,
maxvco
=
info
->
vco1
.
max_freq
;
int
minvco
=
info
->
vco1
.
min_freq
,
maxvco
=
info
->
vco1
.
max_freq
;
int
minM
=
info
->
vco1
.
min_m
,
maxM
=
info
->
vco1
.
max_m
;
int
minM
=
info
->
vco1
.
min_m
,
maxM
=
info
->
vco1
.
max_m
;
int
minN
=
info
->
vco1
.
min_n
,
maxN
=
info
->
vco1
.
max_n
;
int
minN
=
info
->
vco1
.
min_n
,
maxN
=
info
->
vco1
.
max_n
;
...
@@ -54,18 +54,21 @@ getMNP_single(struct nouveau_subdev *subdev, struct nvbios_pll *info, int clk,
...
@@ -54,18 +54,21 @@ getMNP_single(struct nouveau_subdev *subdev, struct nvbios_pll *info, int clk,
/* this division verified for nv20, nv18, nv28 (Haiku), and nv34 */
/* this division verified for nv20, nv18, nv28 (Haiku), and nv34 */
/* possibly correlated with introduction of 27MHz crystal */
/* possibly correlated with introduction of 27MHz crystal */
if
(
cv
<
0x17
||
cv
==
0x1a
||
cv
==
0x20
)
{
if
(
bios
->
version
.
major
<
0x60
)
{
if
(
clk
>
250000
)
int
cv
=
bios
->
version
.
chip
;
maxM
=
6
;
if
(
cv
<
0x17
||
cv
==
0x1a
||
cv
==
0x20
)
{
if
(
clk
>
340000
)
if
(
clk
>
250000
)
maxM
=
2
;
maxM
=
6
;
}
else
if
(
cv
<
0x40
)
{
if
(
clk
>
340000
)
if
(
clk
>
150000
)
maxM
=
2
;
maxM
=
6
;
}
else
if
(
cv
<
0x40
)
{
if
(
clk
>
200000
)
if
(
clk
>
150000
)
maxM
=
4
;
maxM
=
6
;
if
(
clk
>
340000
)
if
(
clk
>
200000
)
maxM
=
2
;
maxM
=
4
;
if
(
clk
>
340000
)
maxM
=
2
;
}
}
}
P
=
1
<<
maxP
;
P
=
1
<<
maxP
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment