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
6554d9a0
Commit
6554d9a0
authored
Dec 01, 2014
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: fix copy paste typos in fan control for si/ci
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
c9d61b00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/gpu/drm/radeon/ci_dpm.c
drivers/gpu/drm/radeon/ci_dpm.c
+3
-3
drivers/gpu/drm/radeon/si_dpm.c
drivers/gpu/drm/radeon/si_dpm.c
+3
-3
No files found.
drivers/gpu/drm/radeon/ci_dpm.c
View file @
6554d9a0
...
@@ -937,7 +937,7 @@ static void ci_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode)
...
@@ -937,7 +937,7 @@ static void ci_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode)
tmp
|=
TMIN
(
0
);
tmp
|=
TMIN
(
0
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
tmp
=
RREG32_SMC
(
CG_FDO_CTRL2
)
&
FDO_PWM_MODE_MASK
;
tmp
=
RREG32_SMC
(
CG_FDO_CTRL2
)
&
~
FDO_PWM_MODE_MASK
;
tmp
|=
FDO_PWM_MODE
(
mode
);
tmp
|=
FDO_PWM_MODE
(
mode
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
}
}
...
@@ -1162,7 +1162,7 @@ static int ci_fan_ctrl_set_fan_speed_rpm(struct radeon_device *rdev,
...
@@ -1162,7 +1162,7 @@ static int ci_fan_ctrl_set_fan_speed_rpm(struct radeon_device *rdev,
tmp |= TARGET_PERIOD(tach_period);
tmp |= TARGET_PERIOD(tach_period);
WREG32_SMC(CG_TACH_CTRL, tmp);
WREG32_SMC(CG_TACH_CTRL, tmp);
ci_fan_ctrl_set_static_mode(rdev, FDO_PWM_MODE_STATIC);
ci_fan_ctrl_set_static_mode(rdev, FDO_PWM_MODE_STATIC
_RPM
);
return 0;
return 0;
}
}
...
@@ -1178,7 +1178,7 @@ static void ci_fan_ctrl_set_default_mode(struct radeon_device *rdev)
...
@@ -1178,7 +1178,7 @@ static void ci_fan_ctrl_set_default_mode(struct radeon_device *rdev)
tmp
|=
FDO_PWM_MODE
(
pi
->
fan_ctrl_default_mode
);
tmp
|=
FDO_PWM_MODE
(
pi
->
fan_ctrl_default_mode
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
tmp
=
RREG32_SMC
(
CG_FDO_CTRL2
)
&
TMIN_MASK
;
tmp
=
RREG32_SMC
(
CG_FDO_CTRL2
)
&
~
TMIN_MASK
;
tmp
|=
TMIN
(
pi
->
t_min
);
tmp
|=
TMIN
(
pi
->
t_min
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
WREG32_SMC
(
CG_FDO_CTRL2
,
tmp
);
pi
->
fan_ctrl_is_in_default_mode
=
true
;
pi
->
fan_ctrl_is_in_default_mode
=
true
;
...
...
drivers/gpu/drm/radeon/si_dpm.c
View file @
6554d9a0
...
@@ -5893,7 +5893,7 @@ static void si_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode)
...
@@ -5893,7 +5893,7 @@ static void si_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode)
tmp
|=
TMIN
(
0
);
tmp
|=
TMIN
(
0
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
tmp
=
RREG32
(
CG_FDO_CTRL2
)
&
FDO_PWM_MODE_MASK
;
tmp
=
RREG32
(
CG_FDO_CTRL2
)
&
~
FDO_PWM_MODE_MASK
;
tmp
|=
FDO_PWM_MODE
(
mode
);
tmp
|=
FDO_PWM_MODE
(
mode
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
}
}
...
@@ -6098,7 +6098,7 @@ static int si_fan_ctrl_set_fan_speed_rpm(struct radeon_device *rdev,
...
@@ -6098,7 +6098,7 @@ static int si_fan_ctrl_set_fan_speed_rpm(struct radeon_device *rdev,
tmp |= TARGET_PERIOD(tach_period);
tmp |= TARGET_PERIOD(tach_period);
WREG32(CG_TACH_CTRL, tmp);
WREG32(CG_TACH_CTRL, tmp);
si_fan_ctrl_set_static_mode(rdev, FDO_PWM_MODE_STATIC);
si_fan_ctrl_set_static_mode(rdev, FDO_PWM_MODE_STATIC
_RPM
);
return 0;
return 0;
}
}
...
@@ -6114,7 +6114,7 @@ static void si_fan_ctrl_set_default_mode(struct radeon_device *rdev)
...
@@ -6114,7 +6114,7 @@ static void si_fan_ctrl_set_default_mode(struct radeon_device *rdev)
tmp
|=
FDO_PWM_MODE
(
si_pi
->
fan_ctrl_default_mode
);
tmp
|=
FDO_PWM_MODE
(
si_pi
->
fan_ctrl_default_mode
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
tmp
=
RREG32
(
CG_FDO_CTRL2
)
&
TMIN_MASK
;
tmp
=
RREG32
(
CG_FDO_CTRL2
)
&
~
TMIN_MASK
;
tmp
|=
TMIN
(
si_pi
->
t_min
);
tmp
|=
TMIN
(
si_pi
->
t_min
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
WREG32
(
CG_FDO_CTRL2
,
tmp
);
si_pi
->
fan_ctrl_is_in_default_mode
=
true
;
si_pi
->
fan_ctrl_is_in_default_mode
=
true
;
...
...
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