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
nexedi
linux
Commits
047d2df5
Commit
047d2df5
authored
Apr 20, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0/pm: parse clock for pll 0x0a (0x137020) from perf table
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
40f6193b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
drivers/gpu/drm/nouveau/nouveau_perf.c
drivers/gpu/drm/nouveau/nouveau_perf.c
+2
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
047d2df5
...
@@ -433,6 +433,7 @@ struct nouveau_pm_level {
...
@@ -433,6 +433,7 @@ struct nouveau_pm_level {
u32
memory
;
u32
memory
;
u32
shader
;
u32
shader
;
u32
unk05
;
u32
unk05
;
u32
unk0a
;
u8
voltage
;
u8
voltage
;
u8
fanspeed
;
u8
fanspeed
;
...
...
drivers/gpu/drm/nouveau/nouveau_perf.c
View file @
047d2df5
...
@@ -243,12 +243,14 @@ nouveau_perf_init(struct drm_device *dev)
...
@@ -243,12 +243,14 @@ nouveau_perf_init(struct drm_device *dev)
}
else
{
}
else
{
perflvl
->
shader
=
ROM16
(
subent
(
3
))
&
0xfff
;
perflvl
->
shader
=
ROM16
(
subent
(
3
))
&
0xfff
;
perflvl
->
core
=
perflvl
->
shader
/
2
;
perflvl
->
core
=
perflvl
->
shader
/
2
;
perflvl
->
unk0a
=
ROM16
(
subent
(
4
))
&
0xfff
;
perflvl
->
memory
=
ROM16
(
subent
(
5
))
&
0xfff
;
perflvl
->
memory
=
ROM16
(
subent
(
5
))
&
0xfff
;
}
}
perflvl
->
core
*=
1000
;
perflvl
->
core
*=
1000
;
perflvl
->
shader
*=
1000
;
perflvl
->
shader
*=
1000
;
perflvl
->
memory
*=
1000
;
perflvl
->
memory
*=
1000
;
perflvl
->
unk0a
*=
1000
;
break
;
break
;
}
}
...
...
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