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
4c389f00
Commit
4c389f00
authored
Apr 23, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: dump pll limits entries when debugging is on
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
25908b77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+26
-25
No files found.
drivers/gpu/drm/nouveau/nouveau_bios.c
View file @
4c389f00
...
@@ -4409,31 +4409,32 @@ int get_pll_limits(struct drm_device *dev, uint32_t limit_match, struct pll_lims
...
@@ -4409,31 +4409,32 @@ int get_pll_limits(struct drm_device *dev, uint32_t limit_match, struct pll_lims
break
;
break
;
}
}
#if 0 /* for easy debugging */
NV_DEBUG
(
dev
,
"pll.vco1.minfreq: %d
\n
"
,
pll_lim
->
vco1
.
minfreq
);
ErrorF("pll.vco1.minfreq: %d\n", pll_lim->vco1.minfreq);
NV_DEBUG
(
dev
,
"pll.vco1.maxfreq: %d
\n
"
,
pll_lim
->
vco1
.
maxfreq
);
ErrorF("pll.vco1.maxfreq: %d\n", pll_lim->vco1.maxfreq);
NV_DEBUG
(
dev
,
"pll.vco1.min_inputfreq: %d
\n
"
,
pll_lim
->
vco1
.
min_inputfreq
);
ErrorF("pll.vco2.minfreq: %d\n", pll_lim->vco2.minfreq);
NV_DEBUG
(
dev
,
"pll.vco1.max_inputfreq: %d
\n
"
,
pll_lim
->
vco1
.
max_inputfreq
);
ErrorF("pll.vco2.maxfreq: %d\n", pll_lim->vco2.maxfreq);
NV_DEBUG
(
dev
,
"pll.vco1.min_n: %d
\n
"
,
pll_lim
->
vco1
.
min_n
);
NV_DEBUG
(
dev
,
"pll.vco1.max_n: %d
\n
"
,
pll_lim
->
vco1
.
max_n
);
ErrorF("pll.vco1.min_inputfreq: %d\n", pll_lim->vco1.min_inputfreq);
NV_DEBUG
(
dev
,
"pll.vco1.min_m: %d
\n
"
,
pll_lim
->
vco1
.
min_m
);
ErrorF("pll.vco1.max_inputfreq: %d\n", pll_lim->vco1.max_inputfreq);
NV_DEBUG
(
dev
,
"pll.vco1.max_m: %d
\n
"
,
pll_lim
->
vco1
.
max_m
);
ErrorF("pll.vco2.min_inputfreq: %d\n", pll_lim->vco2.min_inputfreq);
if
(
pll_lim
->
vco2
.
maxfreq
)
{
ErrorF("pll.vco2.max_inputfreq: %d\n", pll_lim->vco2.max_inputfreq);
NV_DEBUG
(
dev
,
"pll.vco2.minfreq: %d
\n
"
,
pll_lim
->
vco2
.
minfreq
);
NV_DEBUG
(
dev
,
"pll.vco2.maxfreq: %d
\n
"
,
pll_lim
->
vco2
.
maxfreq
);
ErrorF("pll.vco1.min_n: %d\n", pll_lim->vco1.min_n);
NV_DEBUG
(
dev
,
"pll.vco2.min_inputfreq: %d
\n
"
,
pll_lim
->
vco2
.
min_inputfreq
);
ErrorF("pll.vco1.max_n: %d\n", pll_lim->vco1.max_n);
NV_DEBUG
(
dev
,
"pll.vco2.max_inputfreq: %d
\n
"
,
pll_lim
->
vco2
.
max_inputfreq
);
ErrorF("pll.vco1.min_m: %d\n", pll_lim->vco1.min_m);
NV_DEBUG
(
dev
,
"pll.vco2.min_n: %d
\n
"
,
pll_lim
->
vco2
.
min_n
);
ErrorF("pll.vco1.max_m: %d\n", pll_lim->vco1.max_m);
NV_DEBUG
(
dev
,
"pll.vco2.max_n: %d
\n
"
,
pll_lim
->
vco2
.
max_n
);
ErrorF("pll.vco2.min_n: %d\n", pll_lim->vco2.min_n);
NV_DEBUG
(
dev
,
"pll.vco2.min_m: %d
\n
"
,
pll_lim
->
vco2
.
min_m
);
ErrorF("pll.vco2.max_n: %d\n", pll_lim->vco2.max_n);
NV_DEBUG
(
dev
,
"pll.vco2.max_m: %d
\n
"
,
pll_lim
->
vco2
.
max_m
);
ErrorF("pll.vco2.min_m: %d\n", pll_lim->vco2.min_m);
}
ErrorF("pll.vco2.max_m: %d\n", pll_lim->vco2.max_m);
if
(
!
pll_lim
->
max_p
)
{
NV_DEBUG
(
dev
,
"pll.max_log2p: %d
\n
"
,
pll_lim
->
max_log2p
);
ErrorF("pll.max_log2p: %d\n", pll_lim->max_log2p);
NV_DEBUG
(
dev
,
"pll.log2p_bias: %d
\n
"
,
pll_lim
->
log2p_bias
);
ErrorF("pll.log2p_bias: %d\n", pll_lim->log2p_bias);
}
else
{
NV_DEBUG
(
dev
,
"pll.min_p: %d
\n
"
,
pll_lim
->
min_p
);
ErrorF("pll.refclk: %d\n", pll_lim->refclk);
NV_DEBUG
(
dev
,
"pll.max_p: %d
\n
"
,
pll_lim
->
max_p
);
#endif
}
NV_DEBUG
(
dev
,
"pll.refclk: %d
\n
"
,
pll_lim
->
refclk
);
return
0
;
return
0
;
}
}
...
...
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