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
ff82bbc4
Commit
ff82bbc4
authored
Apr 12, 2013
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon/kms: add accessors for RCU indirect space
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
26e2235d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/evergreen.c
+2
-4
drivers/gpu/drm/radeon/r600_reg.h
drivers/gpu/drm/radeon/r600_reg.h
+3
-0
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon.h
+17
-0
No files found.
drivers/gpu/drm/radeon/evergreen.c
View file @
ff82bbc4
...
@@ -3120,10 +3120,8 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
...
@@ -3120,10 +3120,8 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
u32
efuse_straps_4
;
u32
efuse_straps_4
;
u32
efuse_straps_3
;
u32
efuse_straps_3
;
WREG32
(
RCU_IND_INDEX
,
0x204
);
efuse_straps_4
=
RREG32_RCU
(
0x204
);
efuse_straps_4
=
RREG32
(
RCU_IND_DATA
);
efuse_straps_3
=
RREG32_RCU
(
0x203
);
WREG32
(
RCU_IND_INDEX
,
0x203
);
efuse_straps_3
=
RREG32
(
RCU_IND_DATA
);
tmp
=
(((
efuse_straps_4
&
0xf
)
<<
4
)
|
tmp
=
(((
efuse_straps_4
&
0xf
)
<<
4
)
|
((
efuse_straps_3
&
0xf0000000
)
>>
28
));
((
efuse_straps_3
&
0xf0000000
)
>>
28
));
}
else
{
}
else
{
...
...
drivers/gpu/drm/radeon/r600_reg.h
View file @
ff82bbc4
...
@@ -31,6 +31,9 @@
...
@@ -31,6 +31,9 @@
#define R600_PCIE_PORT_INDEX 0x0038
#define R600_PCIE_PORT_INDEX 0x0038
#define R600_PCIE_PORT_DATA 0x003c
#define R600_PCIE_PORT_DATA 0x003c
#define R600_RCU_INDEX 0x0100
#define R600_RCU_DATA 0x0104
#define R600_MC_VM_FB_LOCATION 0x2180
#define R600_MC_VM_FB_LOCATION 0x2180
#define R600_MC_FB_BASE_MASK 0x0000FFFF
#define R600_MC_FB_BASE_MASK 0x0000FFFF
#define R600_MC_FB_BASE_SHIFT 0
#define R600_MC_FB_BASE_SHIFT 0
...
...
drivers/gpu/drm/radeon/radeon.h
View file @
ff82bbc4
...
@@ -1850,6 +1850,8 @@ void cik_mm_wdoorbell(struct radeon_device *rdev, u32 offset, u32 v);
...
@@ -1850,6 +1850,8 @@ void cik_mm_wdoorbell(struct radeon_device *rdev, u32 offset, u32 v);
#define WREG32_PCIE_PORT(reg, v) rdev->pciep_wreg(rdev, (reg), (v))
#define WREG32_PCIE_PORT(reg, v) rdev->pciep_wreg(rdev, (reg), (v))
#define RREG32_SMC(reg) tn_smc_rreg(rdev, (reg))
#define RREG32_SMC(reg) tn_smc_rreg(rdev, (reg))
#define WREG32_SMC(reg, v) tn_smc_wreg(rdev, (reg), (v))
#define WREG32_SMC(reg, v) tn_smc_wreg(rdev, (reg), (v))
#define RREG32_RCU(reg) r600_rcu_rreg(rdev, (reg))
#define WREG32_RCU(reg, v) r600_rcu_wreg(rdev, (reg), (v))
#define WREG32_P(reg, val, mask) \
#define WREG32_P(reg, val, mask) \
do { \
do { \
uint32_t tmp_ = RREG32(reg); \
uint32_t tmp_ = RREG32(reg); \
...
@@ -1906,6 +1908,21 @@ static inline void tn_smc_wreg(struct radeon_device *rdev, u32 reg, u32 v)
...
@@ -1906,6 +1908,21 @@ static inline void tn_smc_wreg(struct radeon_device *rdev, u32 reg, u32 v)
WREG32
(
TN_SMC_IND_DATA_0
,
(
v
));
WREG32
(
TN_SMC_IND_DATA_0
,
(
v
));
}
}
static
inline
u32
r600_rcu_rreg
(
struct
radeon_device
*
rdev
,
u32
reg
)
{
u32
r
;
WREG32
(
R600_RCU_INDEX
,
((
reg
)
&
0x1fff
));
r
=
RREG32
(
R600_RCU_DATA
);
return
r
;
}
static
inline
void
r600_rcu_wreg
(
struct
radeon_device
*
rdev
,
u32
reg
,
u32
v
)
{
WREG32
(
R600_RCU_INDEX
,
((
reg
)
&
0x1fff
));
WREG32
(
R600_RCU_DATA
,
(
v
));
}
void
r100_pll_errata_after_index
(
struct
radeon_device
*
rdev
);
void
r100_pll_errata_after_index
(
struct
radeon_device
*
rdev
);
...
...
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