shaoyunl
3cf7bf2e48
drm/amdgpu: enable Navi12 kfd support for amdgpu
...
Navi12 has the same interface as Navi10
Signed-off-by: shaoyunl <[email protected] >
Reviewed-by: Jack Xiao <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Roman Li
fbd2afe536
drm/amd/display: Add missing NV12 asic IDs
...
Add missing navi12 asic ids.
Signed-off-by: Roman Li <[email protected] >
Reviewed-by: Leo Li <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Leo Li
078655d982
drm/amdgpu: Add nv12 DC ip block
...
Load DC and amdgpu display manager
Signed-off-by: Leo Li <[email protected] >
Reviewed-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Leo Li
36bbb634b7
drm/amd/display: Add ASICREV_IS_NAVI macros
...
They are used by DC to determine ASIC revs.
Signed-off-by: Leo Li <[email protected] >
Reviewed-by: Roman Li <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Boyuan Zhang
400e9c5ea6
drm/amdgpu: enable DPG mode for Navi12
...
Enable Dynamic Power Gating VCN for Navi12.
Signed-off-by: Boyuan Zhang <[email protected] >
Reviewed-by: Xiaojie Yuan <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Boyuan Zhang
1fbed280a2
drm/amdgpu: add VCN ip block for Navi12
...
Add VCN2 ip block for Navi12
Signed-off-by: Boyuan Zhang <[email protected] >
Reviewed-by: Leo Liu <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Boyuan Zhang
a3219816c4
drm/amdgpu: add Navi12 VCN firmware support
...
Add Navi12 to VCN family
Signed-off-by: Boyuan Zhang <[email protected] >
Reviewed-by: Leo Liu <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Xiaojie Yuan
6b66ae2e55
drm/amdgpu: add psp ip block for navi12
...
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Jack Xiao <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Xiaojie Yuan
7f47efeb9e
drm/amdgpu: add smu ip block for navi12
...
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Jack Xiao <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Xiaojie Yuan
e60cc94b26
drm/amdgpu: start autoload till RLCG fw for navi12
...
rlc save restore list is not ready yet for navi12
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Jack Xiao <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Xiaojie Yuan
739cdbd6a2
drm/amdgpu/psp11: add psp support for navi12
...
Same as other navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Xiaojie Yuan
9ea8da75ba
drm/amdgpu/smu11: add smu support for navi12
...
Same as other Navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Reviewed-by: Evan Quan <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Jack Xiao
02938eed74
drm/amdgpu: correct smu rlc handshake enablement bit
...
Correct the enablement bit of SMU RLC handshake.
Signed-off-by: Jack Xiao <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:41 -05:00
Xiaojie Yuan
87190edcf3
drm/amdgpu: add CGTT_GS_NGG_CLK_CTRL register to gc header
...
gc 10.1.2 introduced this new register
Signed-off-by: Xiaojie Yuan <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
c726fbf0fb
drm/amdgpu/sdma5: add golden settings for navi12 (v2)
...
common golden settings are put in golden_settings_sdma_5 array
v2: update settings (Alex)
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Jack Xiao <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
f8984cb9e3
drm/amdgpu/gfx10: add golden settings for navi12 (v2)
...
Add initial golden settings for navi12 gfx.
v2: update settings
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Jack Xiao <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
7990202903
drm/amdgpu: enable virtual display for navi12
...
Virtual display is a sw display interface for
bring up and virtualization or for cards without
display hardware.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
71745cf474
drm/amdgpu/gfx10: set tcp harvest for navi12
...
Same as navi10.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
44e9e7c96c
drm/amdgpu: add ip blocks for navi12
...
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
4a0e815fb3
drm/amdgpu/gmc10: set gart size and vm size for navi12
...
Same as other navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
f2d6731d77
drm/amdgpu/sdma5: add placeholder for navi12 golden settings
...
None yet.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
6f523fd7b3
drm/amdgpu/sdma5: declare sdma firmwares for navi12
...
Declare the firmwares and load the proper ones for navi12.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
4cdfc4a2be
drm/amdgpu/gfx10: set rlc funcs for navi12
...
Same as other navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
9ff3dba6d6
drm/amdgpu/gfx10: set number of me(c)/pipe/queue for navi12
...
Same as other navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
716e9bb099
drm/amdgpu/gfx10: add placeholder for navi12 golden settings
...
Not used yet.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
92c123aec1
drm/amdgpu/gfx10: declare cp/rlc firmwares for navi12
...
Set the name properly to load the right ucode.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
6983469c1a
drm/amdgpu/gfx10: add gfx config for navi12
...
got from mmCP_MAX_CONTEXT and mmPA_SC_FIFO_SIZE
v2: squash all navi asics together because the
settings are the same.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
59ab8c292b
drm/amdgpu/gfx10: set gfx cg for navi12
...
Same as other navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
7e17e58bdd
drm/amdgpu: set nbio/hdp cg for navi12
...
Same as navi10.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
74b5e509a0
drm/amdgpu: initialize cg/pg flags and external rev id for navi12
...
don't enable any cg/pg features yet.
v2: calculate external revision id from revision id so that we can
differentiate navi12 A0 from A1 directly.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
d4d838ba4e
drm/amdgpu: use front door firmware loading for navi12
...
Same as other navi asics.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:40 -05:00
Xiaojie Yuan
4808cf9c2a
drm/amdgpu: set asic family and ip blocks for navi12
...
same with navi10
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Xiaojie Yuan
42b325e5ec
drm/amdgpu: add gpu_info firmware for navi12
...
gpu_info firmare store asic configuration details.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Xiaojie Yuan
9802f5d78b
drm/amdgpu: add navi12 asic type
...
Add asic type.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Xiaojie Yuan
03d0a073cf
drm/amdgpu: initialize reg base for navi12
...
Set up the register offset map for navi12.
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Xiaojie Yuan
6d62290328
drm/amdgpu: add ip offset header for navi12 (v2)
...
This adds the absolute offsets of each IP regiser block.
v2: Squash in MP1 update
Signed-off-by: Xiaojie Yuan <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
8c2ef8ca0e
drm/amdgpu: update SDMA V4 microcode init
...
Removed loading duplicate instances of SDMA FW for Arcturus.
We use a single image for all instances.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
b86f8d8b2b
drm/amdgpu: extend PSP FW loading support to 8 SDMA instances
...
Arcturus has 8 instances of SDMA. Update host to PSP interface
to handle it.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
8fda90e821
drm/amdgpu: disable MEC2 JT context init for Arcturus
...
We don't need to handle it like other asics.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
6c37bde9c6
drm/amdgpu: update PSP CMD fail response status print
...
Print the response in hex with the apprpriate mask.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
dc0d962297
drm/amdgpu: add PSP KDB loading support for Arcturus
...
Add support for the arcturus specific psp metadata to the
amdgpu firmware and properly parse it when loading it.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
f36d9ab95f
drm/amdgpu: add PSP SW init support for Arcturus
...
Add arcturus cases to psp init sewquence.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
John Clements
c0dac3c9f5
drm/amdgpu: removed duplicate line
...
Remove duplicate break.
Signed-off-by: John Clements <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Evan Quan
706e50829e
drm/amd/powerplay: correct navi10 vcn powergate
...
vcn dpm on is a prerequisite for vcn power gate control.
Signed-off-by: Evan Quan <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Evan Quan
4abc1765d2
drm/amd/powerplay: enable SW SMU power profile switch support in KFD
...
Hook up the SW SMU power profile switch in KFD routine.
Signed-off-by: Evan Quan <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Evan Quan
7aa3f675d1
drm/amd/powerplay: support power profile retrieval and setting on arcturus
...
Enable arcturus power profile retrieval and setting.
Signed-off-by: Evan Quan <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Evan Quan
839f9117e1
drm/amd/powerplay: guard consistency between CPU copy and local VRAM
...
This can prevent CPU to use the out-dated copy.
Signed-off-by: Evan Quan <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Tao Zhou
bd2280da46
drm/amdgpu: replace AMDGPU_RAS_UE with AMDGPU_RAS_SUCCESS
...
ce can also trigger interrupt, and even both ce and ue error can be
found in one ras query, distinguishing between ce and ue in interrupt
handler is uncessary.
Signed-off-by: Tao Zhou <[email protected] >
Suggested-by: Guchun Chen <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:39 -05:00
Tao Zhou
91ba68f8d5
drm/amdgpu: only uncorrectable error needs gpu reset
...
we only read error information for correctable error in interrupt
handler, gpu reset is unnecessary since there is no data lost
in correctable error
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:38 -05:00
Tao Zhou
b1a5895352
drm/amdgpu: update the calc algorithm of umc ecc error count
...
the initial value of ecc error count can be adjusted
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-02 10:30:38 -05:00