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
09b8d73b
Commit
09b8d73b
authored
Oct 15, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0/therm: allow fan control if we've killed the vbios ppwr ucode
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
36faa2fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
+4
-3
No files found.
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
View file @
09b8d73b
...
...
@@ -168,14 +168,15 @@ nouveau_therm_fan_mode(struct nouveau_therm *therm, int mode)
"automatic"
};
/* The default P
DAEMON ucode
interferes with fan management */
/* The default P
PWR ucode on fermi
interferes with fan management */
if
((
mode
>=
ARRAY_SIZE
(
name
))
||
(
mode
!=
NOUVEAU_THERM_CTRL_NONE
&&
device
->
card_type
>=
NV_C0
))
(
mode
!=
NOUVEAU_THERM_CTRL_NONE
&&
device
->
card_type
>=
NV_C0
&&
!
nouveau_subdev
(
device
,
NVDEV_SUBDEV_PWR
)))
return
-
EINVAL
;
/* do not allow automatic fan management if the thermal sensor is
* not available */
if
(
priv
->
mode
==
2
&&
therm
->
temp_get
(
therm
)
<
0
)
if
(
priv
->
mode
==
NOUVEAU_THERM_CTRL_AUTO
&&
therm
->
temp_get
(
therm
)
<
0
)
return
-
EINVAL
;
if
(
priv
->
mode
==
mode
)
...
...
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