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
0c101461
Commit
0c101461
authored
Jul 28, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv40/pm: parse fan pwm divisor from vbios tables
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d0d110e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
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
+3
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
0c101461
...
@@ -525,6 +525,7 @@ struct nouveau_pm_engine {
...
@@ -525,6 +525,7 @@ struct nouveau_pm_engine {
struct
nouveau_pm_memtimings
memtimings
;
struct
nouveau_pm_memtimings
memtimings
;
struct
nouveau_pm_temp_sensor_constants
sensor_constants
;
struct
nouveau_pm_temp_sensor_constants
sensor_constants
;
struct
nouveau_pm_threshold_temp
threshold_temp
;
struct
nouveau_pm_threshold_temp
threshold_temp
;
u32
pwm_divisor
;
struct
nouveau_pm_level
boot
;
struct
nouveau_pm_level
boot
;
struct
nouveau_pm_level
*
cur
;
struct
nouveau_pm_level
*
cur
;
...
...
drivers/gpu/drm/nouveau/nouveau_perf.c
View file @
0c101461
...
@@ -210,6 +210,9 @@ nouveau_perf_init(struct drm_device *dev)
...
@@ -210,6 +210,9 @@ nouveau_perf_init(struct drm_device *dev)
recordlen
=
perf
[
2
]
+
(
perf
[
3
]
*
perf
[
4
]);
recordlen
=
perf
[
2
]
+
(
perf
[
3
]
*
perf
[
4
]);
entries
=
perf
[
5
];
entries
=
perf
[
5
];
}
}
if
(
version
<
0x30
)
pm
->
pwm_divisor
=
ROM16
(
perf
[
6
]);
}
else
{
}
else
{
if
(
bios
->
data
[
bios
->
offset
+
6
]
<
0x25
)
{
if
(
bios
->
data
[
bios
->
offset
+
6
]
<
0x25
)
{
legacy_perf_init
(
dev
);
legacy_perf_init
(
dev
);
...
@@ -283,7 +286,6 @@ nouveau_perf_init(struct drm_device *dev)
...
@@ -283,7 +286,6 @@ nouveau_perf_init(struct drm_device *dev)
perflvl
->
memory
=
ROM16
(
entry
[
11
])
*
1000
;
perflvl
->
memory
=
ROM16
(
entry
[
11
])
*
1000
;
else
else
perflvl
->
memory
=
ROM16
(
entry
[
11
])
*
2000
;
perflvl
->
memory
=
ROM16
(
entry
[
11
])
*
2000
;
break
;
break
;
case
0x25
:
case
0x25
:
perflvl
->
fanspeed
=
entry
[
4
];
perflvl
->
fanspeed
=
entry
[
4
];
...
...
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