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
29a15221
Commit
29a15221
authored
Dec 14, 2012
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: add support for thermal sensor on tn
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
6bd1c385
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/ni.c
+8
-0
drivers/gpu/drm/radeon/nid.h
drivers/gpu/drm/radeon/nid.h
+3
-0
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_asic.c
+1
-0
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_asic.h
+1
-0
No files found.
drivers/gpu/drm/radeon/ni.c
View file @
29a15221
...
...
@@ -692,6 +692,14 @@ int ni_init_microcode(struct radeon_device *rdev)
return
err
;
}
int
tn_get_temp
(
struct
radeon_device
*
rdev
)
{
u32
temp
=
RREG32_SMC
(
TN_CURRENT_GNB_TEMP
)
&
0x7ff
;
int
actual_temp
=
(
temp
/
8
)
-
49
;
return
actual_temp
*
1000
;
}
/*
* Core functions
*/
...
...
drivers/gpu/drm/radeon/nid.h
View file @
29a15221
...
...
@@ -489,6 +489,9 @@
# define CACHE_FLUSH_AND_INV_EVENT_TS (0x14 << 0)
# define CACHE_FLUSH_AND_INV_EVENT (0x16 << 0)
/* TN SMU registers */
#define TN_CURRENT_GNB_TEMP 0x1F390
/*
* UVD
*/
...
...
drivers/gpu/drm/radeon/radeon_asic.c
View file @
29a15221
...
...
@@ -1897,6 +1897,7 @@ static struct radeon_asic trinity_asic = {
.
set_pcie_lanes
=
NULL
,
.
set_clock_gating
=
NULL
,
.
set_uvd_clocks
=
&
sumo_set_uvd_clocks
,
.
get_temperature
=
&
tn_get_temp
,
},
.
pflip
=
{
.
pre_page_flip
=
&
evergreen_pre_page_flip
,
...
...
drivers/gpu/drm/radeon/radeon_asic.h
View file @
29a15221
...
...
@@ -492,6 +492,7 @@ void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable);
void
evergreen_hdmi_setmode
(
struct
drm_encoder
*
encoder
,
struct
drm_display_mode
*
mode
);
int
evergreen_get_temp
(
struct
radeon_device
*
rdev
);
int
sumo_get_temp
(
struct
radeon_device
*
rdev
);
int
tn_get_temp
(
struct
radeon_device
*
rdev
);
/*
* cayman
...
...
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