Aaron Liu
8deac23636
drm/amdgpu: set fw default loading by psp for renoir
...
By default, set amdgpu ucode type to AMDGPU_FW_LOAD_PSP.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
40c8a3293b
drm/amdgpu: update lbpw for renoir
...
enable gfx_v9_0_init_lbpw for renoir
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Reviewed-by: Evan Quan <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
95f9e74c3a
drm/amdgpu: enable power gating for renoir
...
enable gfx power gating for renoir
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Reviewed-by: Evan Quan <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
f78e007f76
drm/amdgpu: enable clock gating for renoir
...
enable gfx&common clock gating for renoir
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Reviewed-by: Evan Quan <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Leo Liu
279ba48e1f
drm/amdgpu: add VCN2.0 to Renoir IP blocks
...
Thus enable VCN2.0 for Renoir
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Leo Liu <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Leo Liu
0c6b391d68
drm/amdgpu: enable Doorbell support for Renoir (v2)
...
Add VCN range aperture to NBIO 7.0
v2: rebase (Alex)
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Leo Liu <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Leo Liu
dc9b6e934b
drm/amdgpu: enable Renoir VCN firmware loading
...
By adding new Renoir VCN firmware
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Leo Liu <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Huang Rui
a46e1716f3
drm/amdgpu: add sdma golden settings for renoir
...
This patch adds sdma golden settings for renoir asic.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Huang Rui
33294eb8cb
drm/amdgpu: add gfx golden settings for renoir (v2)
...
This patch adds gfx golden settings for renoir real asic.
v2: update settings (Alex)
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
6a7a0bdbfa
drm/amdgpu: add psp_v12_0 for renoir (v2)
...
1. Add psp ip block
2. Use direct loading type by default and it can also config psp
loading type.
3. Bypass sos fw loading and xgmi&ras interface
v2: drop TA loading
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
6b3ad3b2da
drm/amdgpu: set rlc funcs for renoir
...
add gfx_v9_0_rlc_funcs for renoir
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
e09ce48182
drm/amdgpu: add asic funcs for renoir
...
add asic funcs for renoir, init soc15_asic_funcs
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
b1326bbc63
drm/amdgpu: enable dce virtual ip module for Renoir
...
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Aaron Liu
0126abd4d1
drm/amdgpu: fix no interrupt issue for renoir emu
...
In renoir's ih model, there's a change in mmIH_CHICKEN
register, that limits IH to use physical address directly.
Those chicken bits need to be programmed first.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Aaron Liu <[email protected] >
Reviewed-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Acked-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Huang Rui
61bdb39c91
drm/amdgpu: add renoir pci id
...
Add Renoir PCI id support.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Huang Rui
05e1f0e0ab
drm/amdgpu: set ip blocks for renoir
...
Enable ip blocks for renoir.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:50 -05:00
Huang Rui
2d49738ae1
drm/amdgpu: add sdma support for renoir
...
Add renoir checks to appropriate places.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
1aafd447bc
drm/amdgpu: add gfx support for renoir
...
Add Renoir checks to gfx9 code.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
378d53898a
drm/amdgpu: set fw load type for renoir
...
This patch sets fw load type as direct for renoir for the moment.
Will switch to psp when psp is ready.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
8787ee0145
drm/amdgpu: add gmc v9 supports for renoir
...
Add gfx memory controller support for renoir.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
080deab66d
drm/amdgpu: add soc15 common ip block support for renoir
...
This patch adds common ip support for renoir.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
b51a26a02a
drm/amdgpu: add renoir support for gpu_info and ip block setting
...
This patch adds renoir support for gpu_info firmware and ip block setting.
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
1eee4228a5
drm/amdgpu: add renoir asic_type enum
...
This patch adds renoir to amd_asic_type enum and amdgpu_asic_name[].
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Huang Rui
d8a46257c2
drm/amdgpu: add renoir header files (v2)
...
This patch add all renoir header files.
v2: clean up headers (Alex)
Acked-by: Huang Rui <[email protected] >
Signed-off-by: Huang Rui <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Colin Ian King
8b94d05179
drm/amd/powerplay: remove redundant duplicated return check
...
The check on ret is duplicated in two places, it is redundant code.
Remove it.
Addresses-Coverity: ("Logically dead code")
Fixes: b94afb61cd ("drm/amd/powerplay: honor hw limit on fetching metrics data for navi10")
Reviewed-by: Evan Quan <[email protected] >
Signed-off-by: Colin Ian King <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Christophe JAILLET
54a9bcb0a4
drm/amd/display: Fix a typo - dce_aduio_mask --> dce_audio_mask
...
This should be 'dce_audio_mask', not 'dce_aduio_mask'.
Signed-off-by: Christophe JAILLET <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Alex Deucher
44f3dd09a8
drm/amd/display: use kvmalloc for dc_state (v2)
...
It's large and doesn't need contiguous memory. Fixes
allocation failures in some cases.
v2: kvfree the memory.
Reviewed-by: Andrey Grodzovsky <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Pierre-Eric Pelloux-Prayer
62cfcb9e23
drm/amdgpu: fix gfx9 soft recovery
...
The SOC15_REG_OFFSET() macro wasn't used, making the soft recovery fail.
v2: use WREG32_SOC15 instead of WREG32 + SOC15_REG_OFFSET
Signed-off-by: Pierre-Eric Pelloux-Prayer <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Reviewed-by: Christian König <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Le Ma
e34640e247
drm/amdgpu/powerplay: update Arcturus smu version in new place
...
Follow patch below:
drm/amd/powerplay: re-define smu interface version for smu v11
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Le Ma
a840159c82
drm/amdgpu: enable mmhub clock gating for Arcturus
...
Init MC_MGCG/LS flag. Also apply to athub CG.
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Le Ma
cb15e8046d
drm/amdgpu: add mmhub clock gating for Arcturus
...
Add 2 mmhub instances CG
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Le Ma
15e2f43a72
drm/amdgpu: increase CGCG gfx idle threshold for Arcturus
...
Follow the hw spec, and no need to consider gfxoff on Arcturus
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:49 -05:00
Le Ma
f9da7c4384
drm/amdgpu: add GFX_CP_LS flag to Arcturus
...
Missed AMD_CG_SUPPORT_GFX_CP_LS accidently when commit patch before
drm/amdgpu: enable gfx clock gating for Arcturus
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kevin Wang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Tao Zhou
5212a3bdf0
drm/amdgpu: remove ras block's feature status info in sysfs
...
feature mask info is enough for rocm tool,
"cat /sys/class/drm/card0/device/ras/features" will get the
info like this:
feature mask: 0x3ffb
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Kenneth Feng
9b4e63f451
drm/amd/powerplay: change smu_read_sensor sequence in smu
...
change the smu_read_sensor sequence to:
asic specific sensor read -> smu v11 specific sensor read -> smu v11 common sensor read
Signed-off-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
bee7b51ac9
drm/amdgpu: split athub clock gating from mmhub
...
Untie the bind of get/set athub CG state from mmhub, for cosmetic fix and Asic
not using mmhub 1.0. Besides, also fix wrong athub CG state in amdgpu_pm_info.
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
f7ee199528
drm/amdgpu: enable sdma clock gating for Arcturus
...
Init sdma MGCG/LS flag
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
8dc7e07cff
drm/amdgpu: add sdma clock gating for Arcturus
...
Add ARCTURUS case in sdma set clockgating function
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
78864760c2
drm/amdgpu: support sdma clock gating for more instances
...
Shorten the code with RREG32_SDMA/WREG32_SDMA macro in CG part.
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
5d111f5b3a
drm/amdgpu: enable hdp clock gating for Arcturus
...
Init hdp MGCG/LS flag as Vega20
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
6acb87acef
drm/amdgpu: add hdp clock gating for Arcturus
...
Add hdp CGLS for Arcturus in set common clockgating function
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
6b76ce62bf
drm/amdgpu: enable gfx clock gating for Arcturus
...
Init gfx MGCG/LS and CGCG/LS flag.
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Le Ma
f60481a945
drm/amdgpu: add gfx clock gating for Arcturus
...
Add ARCTURUS case in gfx set clockgating function. No 3d clock on Arcturus.
Signed-off-by: Le Ma <[email protected] >
Reviewed-by: Kenneth Feng <[email protected] >
Reviewed-by: Feifei Xu <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Tao Zhou
145b03eb73
drm/amdgpu: create mmhub ras framework
...
enable mmhub ras feature and create sysfs/debugfs node for mmhub
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Tao Zhou
9fb2d8de4a
drm/amdgpu: support mmhub ras in amdgpu ras
...
call mmhub ras query/inject in amdgpu ras
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Tao Zhou
3d093da098
drm/amdgpu: add amdgpu_mmhub_funcs definition
...
add amdgpu_mmhub_funcs definition and initialize it,
prepare for mmhub ras enablement
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Tao Zhou
44494f96ba
drm/amdgpu: add sub block parameter in ras inject command
...
ras sub block index could be passed from shell command
Signed-off-by: Tao Zhou <[email protected] >
Reviewed-by: Guchun Chen <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
Guchun Chen
a2b459947b
drm/amdgpu: add check to avoid array bound issue
...
Sub_block_index can be passed from user level, so
add one check before accessing the array first to
prevent array index out of bound problem.
Signed-off-by: Guchun Chen <[email protected] >
Reviewed-by: Tao Zhou <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
tiancyin
3c0b547da0
drm/amd/powerplay: update smu11_driver_if_navi10.h
...
update the smu11_driver_if_navi10.h since navi14 smu fw
update to 53.12
Reviewed-by: Hawking Zhang <[email protected] >
Reviewed-by: Evan Quan <[email protected] >
Signed-off-by: tiancyin <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:48 -05:00
tiancyin
1b41b769e1
drm/amd/powerplay: re-define smu interface version for smu v11
...
[why]
navi14 share same defination of smu interface version with navi10,
anyone of them update the version may break the other one's
version checking.
[how]
create different version defination, so that they can
update their version separately.
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: tiancyin <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-08-12 12:47:47 -05:00