aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc21.c
Commit message (Collapse)AuthorAgeFilesLines
...
* drm/amd/amdgpu: add ih cg and hdp sd on smu_v13_0_7Kenneth Feng2022-08-161-1/+4
| | | | | | | | add ih cg and hdp sd on smu_v13_0_7 Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: disable 3DCGCG/CGLS temporarily due to stability issueEvan Quan2022-08-161-0/+2
| | | | | | | | Some stability issues were reported with these features. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add GFX Power Gating support for GC IP v11.0.1Tim Huang2022-08-101-0/+1
| | | | | | | | Add AMD_PG_SUPPORT_GFX_PG support. Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add GFX Clock Gating support for GC IP v11.0.1Tim Huang2022-08-101-0/+6
| | | | | | | | | | | | | | | Add below GFX Clock Gating supports: 1. GFX Coarse Grain Clock Gating(CGCG) 2. GFX Coarse grain light sleep/deep sleep(CGLS) 3. GFX Medium Grain Clock Gating(MGCG) 4. GFX Fine Grain Clock Gating(FGCG) 5. Repeater Fine Grain Clock Gating 6. Perfmon Clock Gating Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable VCN cg and JPEG cg/pgSonny Jiang2022-07-281-2/+5
| | | | | | | | Not enable VCN pg because encode issue Signed-off-by: Sonny Jiang <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: vcn_4_0_2 video codec querySonny Jiang2022-07-281-0/+1
| | | | | | | | Enable support for vcn_4_0_2 video codec Signed-off-by: Sonny Jiang <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/pm: enable mode1 reset for smu_v13_0_7Kenneth Feng2022-07-181-0/+1
| | | | | | | | enable mode1 reset for smu_v13_0_7 since it's missing. Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable soft reset for gfx 11Likun Gao2022-07-131-1/+7
| | | | | | | | | Enable soft reset for gfx 11. V2: enable both gfx v11.0.0 and gfx v11.0.2. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable ASPM support for PCIE 7.4.0/7.6.0Evan Quan2022-06-081-3/+4
| | | | | | | | Enable ASPM support for PCIE 7.4.0 and 7.6.0. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/soc21: add mode2 asic reset for SMU IP v13.0.4Alex Deucher2022-06-061-0/+7
| | | | | | | | | Set the default reset method to mode2 for SMU IP v13.0.4 Acked-by: Evan Quan <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: align the cg and pg settingsKenneth Feng2022-06-031-1/+4
| | | | | | | | align the cg and pg settings between gc_v11_0 and gc_v11_2 Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: suppress some compile warningsEvan Quan2022-05-261-0/+1
| | | | | | | | | Suppress two compile warnings about "no previous prototype". Reported-by: kernel test robot <[email protected]> Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: support memory power gating for lsdma 6.0.2Likun Gao2022-05-101-0/+1
| | | | | | | | Support memory power gating control for lsdma 6.0.2. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: support memory power gating for lsdmaLikun Gao2022-05-101-1/+11
| | | | | | | | Support memory power gating control for LSDMA. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: simplify nv and soc21 read_register functionsAlex Deucher2022-05-061-3/+3
| | | | | | | | | | Check of the base offset for the IP exists rather than explicitly checking for how many instances of a particular IP there are. This is what soc15.c already does. Expand this to nv.c and soc21.c. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add soc21 common ip block support for GC 11.0.1Huang Rui2022-05-061-0/+5
| | | | | | | | Add common soc21 ip block support for GC 11.0.1. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add pcie port function helpers for SOC21Xiaojian Du2022-05-061-0/+2
| | | | | | | | These helpers will be used on NBIO v7.7.0. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: handle asics with 1 SDMA instanceXiaojian Du2022-05-061-2/+3
| | | | | | | | | This patch will handle asics with 1 SDMA instance. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/soc21: enable mmhub and athub power gatingKenneth Feng2022-05-051-1/+3
| | | | | | | | add the pg_flag for athub and mmhub pg. Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Jack Gui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable cgcg and cgls for GC 11_0_2Likun Gao2022-05-051-0/+2
| | | | | | | | Enable GFX CGCG and CGLS for GFX v11_0_2. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/vcn: enable VCN DPG mode for VCN4_0_4James Zhu2022-05-051-0/+1
| | | | | | | | Enable VCN DPG mode for VCN4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/vcn: enable VCN PG for VCN4_0_4James Zhu2022-05-051-0/+1
| | | | | | | | Enable VCN PG for VCN4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/vcn: enable VCN CG for VCN4_0_4James Zhu2022-05-051-0/+1
| | | | | | | | Enable VCN CG for VCN4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/jpeg: enable JPEG PG for VCN4_0_4James Zhu2022-05-051-1/+2
| | | | | | | | Enable JPEG PG for VCN4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/jpeg: enable JPEG CG for VCN4_0_4James Zhu2022-05-051-1/+2
| | | | | | | | Enable JPEG CG for VCN4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add soc21 support for GC 11.0.2Flora Cui2022-05-051-0/+5
| | | | | | | | Add initial soc21 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable clock gating for HDP 6.0Evan Quan2022-05-051-1/+2
| | | | | | | | Enable HDP 6.0 clock gating. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable clock gating for IH 6.0Evan Quan2022-05-051-1/+2
| | | | | | | | Enable IH 6.0 clock gating. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable MGCG and LS for MMHUB 3.0Evan Quan2022-05-051-1/+3
| | | | | | | | Enable MMHUB 3.0 MGCG and LS features. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable MGCG and LS for ATHUB 3.0Evan Quan2022-05-051-1/+3
| | | | | | | | Enable ATHUB 3.0 MGCG and LS features. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable more GFX clockgating features for GC 11.0.0Evan Quan2022-05-051-0/+5
| | | | | | | | | Support more GFX clockgating features(3D_CGCG, 3D_CGLS, MGCG, FGCG and PERF_CLK). Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add vcn_4_0_0 video codec queryJames Zhu2022-05-041-0/+44
| | | | | | | | Add vcn_4_0_0 video codec query. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/vcn: enable vcn4 dpg modeJames Zhu2022-05-041-0/+1
| | | | | | | | Enable vcn4 dpg mode. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/jpeg: enable JPEG PG and CG for VCN4_0_0James Zhu2022-05-041-1/+3
| | | | | | | | | | Enable JPEG PG and CG for VCN4_0_0. Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable VCN4 PG and CG for VCN4_0_0Leo Liu2022-05-041-2/+4
| | | | | | | | Most of the tiles can be power/clock gated. Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable fgcg for soc21Evan Quan2022-05-041-1/+2
| | | | | | | Enable Fine Grained Clock Gating on soc21 asics. Signed-off-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable GFX CGCG/CGLS for GC11.0.0Evan Quan2022-05-041-1/+2
| | | | | | | | | | Enable GFX CGCG (coarse grained clockgating) and CGLS (coarse grained light sleep) for GC11.0.0. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: correct cp doorbell rangeJack Xiao2022-05-041-0/+4
| | | | | | | | | | | | | 1. move MES doorbell inside the mec doorbell range, for mes belongs to mec block 2. setting the correct gfx/mec doorbell range, so that fw can correctly detect gfx/compute work load to enter/exit power saving state. Signed-off-by: Jack Xiao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Tested-and-acked-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: allocate doorbell index for mes kiqJack Xiao2022-05-041-1/+2
| | | | | | | | Allocate a doorbell index for mes kiq queue. Signed-off-by: Jack Xiao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/soc21: enable ATHUB and MMHUB PGEvan Quan2022-05-041-1/+2
| | | | | | | | Enable ATHUB and MMHUB powergating. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add soc21 common ip block v2Stanley.Yang2022-04-281-0/+620
This adds soc21 common ip block support Changed from v1: Switch WREG32/RREG32_PCIE to use indirect reg access helper for sco15 and onwards Acked-by: Christian König <[email protected]> Signed-off-by: Stanley.Yang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>