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
bcc7f5d2
Commit
bcc7f5d2
authored
Jul 26, 2012
by
Alex Deucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: add ucode loading support for Oland
Signed-off-by:
Alex Deucher
<
alexander.deucher@amd.com
>
parent
d0ae7fcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
drivers/gpu/drm/radeon/si.c
drivers/gpu/drm/radeon/si.c
+59
-0
No files found.
drivers/gpu/drm/radeon/si.c
View file @
bcc7f5d2
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#define SI_CE_UCODE_SIZE 2144
#define SI_CE_UCODE_SIZE 2144
#define SI_RLC_UCODE_SIZE 2048
#define SI_RLC_UCODE_SIZE 2048
#define SI_MC_UCODE_SIZE 7769
#define SI_MC_UCODE_SIZE 7769
#define OLAND_MC_UCODE_SIZE 7863
MODULE_FIRMWARE
(
"radeon/TAHITI_pfp.bin"
);
MODULE_FIRMWARE
(
"radeon/TAHITI_pfp.bin"
);
MODULE_FIRMWARE
(
"radeon/TAHITI_me.bin"
);
MODULE_FIRMWARE
(
"radeon/TAHITI_me.bin"
);
...
@@ -54,6 +55,11 @@ MODULE_FIRMWARE("radeon/VERDE_me.bin");
...
@@ -54,6 +55,11 @@ MODULE_FIRMWARE("radeon/VERDE_me.bin");
MODULE_FIRMWARE
(
"radeon/VERDE_ce.bin"
);
MODULE_FIRMWARE
(
"radeon/VERDE_ce.bin"
);
MODULE_FIRMWARE
(
"radeon/VERDE_mc.bin"
);
MODULE_FIRMWARE
(
"radeon/VERDE_mc.bin"
);
MODULE_FIRMWARE
(
"radeon/VERDE_rlc.bin"
);
MODULE_FIRMWARE
(
"radeon/VERDE_rlc.bin"
);
MODULE_FIRMWARE
(
"radeon/OLAND_pfp.bin"
);
MODULE_FIRMWARE
(
"radeon/OLAND_me.bin"
);
MODULE_FIRMWARE
(
"radeon/OLAND_ce.bin"
);
MODULE_FIRMWARE
(
"radeon/OLAND_mc.bin"
);
MODULE_FIRMWARE
(
"radeon/OLAND_rlc.bin"
);
extern
int
r600_ih_ring_alloc
(
struct
radeon_device
*
rdev
);
extern
int
r600_ih_ring_alloc
(
struct
radeon_device
*
rdev
);
extern
void
r600_ih_ring_fini
(
struct
radeon_device
*
rdev
);
extern
void
r600_ih_ring_fini
(
struct
radeon_device
*
rdev
);
...
@@ -202,6 +208,45 @@ static const u32 verde_io_mc_regs[TAHITI_IO_MC_REGS_SIZE][2] = {
...
@@ -202,6 +208,45 @@ static const u32 verde_io_mc_regs[TAHITI_IO_MC_REGS_SIZE][2] = {
{
0x0000009f
,
0x00a37400
}
{
0x0000009f
,
0x00a37400
}
};
};
static
const
u32
oland_io_mc_regs
[
TAHITI_IO_MC_REGS_SIZE
][
2
]
=
{
{
0x0000006f
,
0x03044000
},
{
0x00000070
,
0x0480c018
},
{
0x00000071
,
0x00000040
},
{
0x00000072
,
0x01000000
},
{
0x00000074
,
0x000000ff
},
{
0x00000075
,
0x00143400
},
{
0x00000076
,
0x08ec0800
},
{
0x00000077
,
0x040000cc
},
{
0x00000079
,
0x00000000
},
{
0x0000007a
,
0x21000409
},
{
0x0000007c
,
0x00000000
},
{
0x0000007d
,
0xe8000000
},
{
0x0000007e
,
0x044408a8
},
{
0x0000007f
,
0x00000003
},
{
0x00000080
,
0x00000000
},
{
0x00000081
,
0x01000000
},
{
0x00000082
,
0x02000000
},
{
0x00000083
,
0x00000000
},
{
0x00000084
,
0xe3f3e4f4
},
{
0x00000085
,
0x00052024
},
{
0x00000087
,
0x00000000
},
{
0x00000088
,
0x66036603
},
{
0x00000089
,
0x01000000
},
{
0x0000008b
,
0x1c0a0000
},
{
0x0000008c
,
0xff010000
},
{
0x0000008e
,
0xffffefff
},
{
0x0000008f
,
0xfff3efff
},
{
0x00000090
,
0xfff3efbf
},
{
0x00000094
,
0x00101101
},
{
0x00000095
,
0x00000fff
},
{
0x00000096
,
0x00116fff
},
{
0x00000097
,
0x60010000
},
{
0x00000098
,
0x10010000
},
{
0x00000099
,
0x00006000
},
{
0x0000009a
,
0x00001000
},
{
0x0000009f
,
0x00a17730
}
};
/* ucode loading */
/* ucode loading */
static
int
si_mc_load_microcode
(
struct
radeon_device
*
rdev
)
static
int
si_mc_load_microcode
(
struct
radeon_device
*
rdev
)
{
{
...
@@ -230,6 +275,11 @@ static int si_mc_load_microcode(struct radeon_device *rdev)
...
@@ -230,6 +275,11 @@ static int si_mc_load_microcode(struct radeon_device *rdev)
ucode_size
=
SI_MC_UCODE_SIZE
;
ucode_size
=
SI_MC_UCODE_SIZE
;
regs_size
=
TAHITI_IO_MC_REGS_SIZE
;
regs_size
=
TAHITI_IO_MC_REGS_SIZE
;
break
;
break
;
case
CHIP_OLAND
:
io_mc_regs
=
(
u32
*
)
&
oland_io_mc_regs
;
ucode_size
=
OLAND_MC_UCODE_SIZE
;
regs_size
=
TAHITI_IO_MC_REGS_SIZE
;
break
;
}
}
running
=
RREG32
(
MC_SEQ_SUP_CNTL
)
&
RUN_MASK
;
running
=
RREG32
(
MC_SEQ_SUP_CNTL
)
&
RUN_MASK
;
...
@@ -324,6 +374,15 @@ static int si_init_microcode(struct radeon_device *rdev)
...
@@ -324,6 +374,15 @@ static int si_init_microcode(struct radeon_device *rdev)
rlc_req_size
=
SI_RLC_UCODE_SIZE
*
4
;
rlc_req_size
=
SI_RLC_UCODE_SIZE
*
4
;
mc_req_size
=
SI_MC_UCODE_SIZE
*
4
;
mc_req_size
=
SI_MC_UCODE_SIZE
*
4
;
break
;
break
;
case
CHIP_OLAND
:
chip_name
=
"OLAND"
;
rlc_chip_name
=
"OLAND"
;
pfp_req_size
=
SI_PFP_UCODE_SIZE
*
4
;
me_req_size
=
SI_PM4_UCODE_SIZE
*
4
;
ce_req_size
=
SI_CE_UCODE_SIZE
*
4
;
rlc_req_size
=
SI_RLC_UCODE_SIZE
*
4
;
mc_req_size
=
OLAND_MC_UCODE_SIZE
*
4
;
break
;
default:
BUG
();
default:
BUG
();
}
}
...
...
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