linux-2.6-microblaze.git
2 years agodrm/amd/pm: change the soft pptable id for smu_v13_0_7
Kenneth Feng [Mon, 25 Apr 2022 13:39:30 +0000 (21:39 +0800)]
drm/amd/pm: change the soft pptable id for smu_v13_0_7

change the soft pptable id for smu_v13_0_7 according to pptable updatde

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable pmlog support for smu_v13_0_7
Yang Wang [Mon, 25 Apr 2022 08:10:21 +0000 (16:10 +0800)]
drm/amd/pm: enable pmlog support for smu_v13_0_7

enable pmlog support for smu 13_0_7.

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable workload type change on smu_v13_0_7
Kenneth Feng [Fri, 22 Apr 2022 03:40:51 +0000 (11:40 +0800)]
drm/amd/pm: enable workload type change on smu_v13_0_7

enable workload type change on smu_v13_0_7

v2: squash in out of bounds fix (Alex)

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: pp_dpm_sclk change for smu_v13_0_7
Kenneth Feng [Tue, 19 Apr 2022 06:51:36 +0000 (14:51 +0800)]
drm/amd/pm: pp_dpm_sclk change for smu_v13_0_7

fetch the average gfxclk according to pmfw for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable gfx pcc and soc cg on smu_v13_0_7
Kenneth Feng [Mon, 18 Apr 2022 08:03:17 +0000 (16:03 +0800)]
drm/amd/pm: enable gfx pcc and soc cg on smu_v13_0_7

enable gfx pcc and soc cg on smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable gfx ds for smu_v13_0_7
Kenneth Feng [Mon, 18 Apr 2022 06:39:02 +0000 (14:39 +0800)]
drm/amd/pm: enable gfx ds for smu_v13_0_7

enable gfx ds for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/soc21: enable mmhub and athub power gating
Kenneth Feng [Fri, 15 Apr 2022 15:16:41 +0000 (11:16 -0400)]
drm/amd/soc21: enable mmhub and athub power gating

add the pg_flag for athub and mmhub pg.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add the pg_flag for athub and mmhub pg on smu_v13_0_7
Kenneth Feng [Fri, 15 Apr 2022 15:16:03 +0000 (11:16 -0400)]
drm/amd/pm: add the pg_flag for athub and mmhub pg on smu_v13_0_7

add the pg_flag for athub and mmhub pg on smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: port the fan interface to smu_v13_0_7
Kenneth Feng [Fri, 15 Apr 2022 15:59:16 +0000 (11:59 -0400)]
drm/amd/pm: port the fan interface to smu_v13_0_7

port the fan interface to smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable pp_dpm_vclk/dclk interface for smu_v13_0_7
Kenneth Feng [Tue, 12 Apr 2022 09:07:24 +0000 (17:07 +0800)]
drm/amd/pm: enable pp_dpm_vclk/dclk interface for smu_v13_0_7

enable pp_dpm_vclk/dclk interface for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm:add UMD Pstate clock settings for smu_v13_0_7
Kenneth Feng [Fri, 15 Apr 2022 15:58:02 +0000 (11:58 -0400)]
drm/amd/pm:add UMD Pstate clock settings for smu_v13_0_7

add UMD Pstate clock settings for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: pp_dpm_* interface for smu_v13_0_7
Kenneth Feng [Fri, 15 Apr 2022 15:56:47 +0000 (11:56 -0400)]
drm/amd/pm: pp_dpm_* interface for smu_v13_0_7

add the sysfs pp_dpm_* interface for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: update the features for smu_v13_0_7
Kenneth Feng [Fri, 8 Apr 2022 09:33:45 +0000 (17:33 +0800)]
drm/amd/pm: update the features for smu_v13_0_7

Enable socclk ds, dstate, mp0clk ds, mpioclk ds, gfxclk ss,
memory temperature reading, athub and mmhub pg.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add SCPM support in smu v13_0_7
Kenneth Feng [Thu, 7 Apr 2022 08:42:45 +0000 (16:42 +0800)]
drm/amd/pm: add SCPM support in smu v13_0_7

port the SCPM change from smu_v13_0_0 to smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable platform features for smu_v13_0_7
Kenneth Feng [Fri, 1 Apr 2022 03:28:44 +0000 (11:28 +0800)]
drm/amd/pm: enable platform features for smu_v13_0_7

enable throttler, AC/DC, VR hot, FW CTF, fan control for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Wang Yang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable fclk,vcn ds and df cstate for smu_v13_0_7
Kenneth Feng [Thu, 31 Mar 2022 12:20:05 +0000 (20:20 +0800)]
drm/amd/pm: enable fclk,vcn ds and df cstate for smu_v13_0_7

enable fclk ds, vcn ds and df cstate for smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable mp0,vcn,dcn dpm on smu_v13_0_7
Kenneth Feng [Thu, 31 Mar 2022 08:37:01 +0000 (16:37 +0800)]
drm/amd/pm: enable mp0,vcn,dcn dpm on smu_v13_0_7

enable mp0 dpm, vcn dpm, dcn dpm on smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable link dpm and link ds on smu_v13_0_7
Kenneth Feng [Thu, 31 Mar 2022 07:22:46 +0000 (15:22 +0800)]
drm/amd/pm: enable link dpm and link ds on smu_v13_0_7

enable link clock dpm and link clock deep sleep on smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add mvdd and vddio scaling in smu_v13_0_7
Kenneth Feng [Thu, 31 Mar 2022 06:45:38 +0000 (14:45 +0800)]
drm/amd/pm: add mvdd and vddio scaling in smu_v13_0_7

add mvdd and vddio scaling in smu_v13_0_7 to follow uclk dpm

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add features to smu_v13_0_7
Kenneth Feng [Thu, 31 Mar 2022 04:43:45 +0000 (12:43 +0800)]
drm/amd/pm: add features to smu_v13_0_7

add prefetcher, socclk dpm, fclk dpm, uclk dpm to
smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: support power on/off vcn/jpeg in smu v13_0_7
Kenneth Feng [Mon, 7 Mar 2022 06:29:43 +0000 (14:29 +0800)]
drm/amd/pm: support power on/off vcn/jpeg in smu v13_0_7

add power on/off vcn&jpeg callbacks in smu_v13_0_7

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add get enable mask function for smu v13_0_7
Likun Gao [Tue, 1 Mar 2022 09:22:14 +0000 (17:22 +0800)]
drm/amd/pm: add get enable mask function for smu v13_0_7

Add get_enabled_mask interface for smu v13_0_7.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add SMU_13_0_7 ppt_funcs for SMU_13_0_7
Chengming Gui [Mon, 21 Feb 2022 07:42:00 +0000 (15:42 +0800)]
drm/amd/pm: add SMU_13_0_7 ppt_funcs for SMU_13_0_7

Add initial support for SMU 13.0.7.

V2: unify ppt name, fix copyright format, add missing break (Kenneth/Evan)
V3: Split PMFW headers as separate patch (Alex)

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/swsmu: add smu 13.0.7 firmware
Chengming Gui [Fri, 15 Apr 2022 14:36:19 +0000 (10:36 -0400)]
drm/amdgpu/swsmu: add smu 13.0.7 firmware

Declare smu 13.0.7 firmware.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: add SMU_13_0_7 PMFW headers
Chengming Gui [Wed, 23 Feb 2022 01:23:20 +0000 (09:23 +0800)]
drm/amd/pm: add SMU_13_0_7 PMFW headers

Add driver_if/ppsmc/pptable head files.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable cgcg and cgls for GC 11_0_2
Likun Gao [Mon, 14 Feb 2022 06:46:41 +0000 (14:46 +0800)]
drm/amdgpu: enable cgcg and cgls for GC 11_0_2

Enable GFX CGCG and CGLS for GFX v11_0_2.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: set family for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:27:31 +0000 (10:27 -0400)]
drm/amdgpu/discovery: set family for GC 11.0.2

Set AMDGPU_FAMILY_GC_11_0_0.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add gfx11 support for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:24:36 +0000 (10:24 -0400)]
drm/amdgpu/discovery: add gfx11 support for GC 11.0.2

Enable gfx11 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: update rlc ram for gc v11_0_2
Likun Gao [Sun, 27 Feb 2022 06:30:18 +0000 (14:30 +0800)]
drm/amdgpu: update rlc ram for gc v11_0_2

Add imu rlc ram register settings for gc v11_0_2

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdkfd: add asic support for GC 11.0.2
Eric Huang [Tue, 8 Feb 2022 20:22:05 +0000 (15:22 -0500)]
drm/amdkfd: add asic support for GC 11.0.2

Changes are inherited from GC 11.0.0.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add initial GC 11.0.2 support
Flora Cui [Fri, 15 Apr 2022 14:15:09 +0000 (10:15 -0400)]
drm/amdgpu: add initial GC 11.0.2 support

Add initial support for GC 11.0.2 to gfx_v11_0.c.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add gc v11_0_2 imu firmware
Flora Cui [Sat, 2 Apr 2022 07:31:37 +0000 (15:31 +0800)]
drm/amdgpu: add gc v11_0_2 imu firmware

add gc v11_0_2 imu firmware

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add mes11 support for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:26:28 +0000 (10:26 -0400)]
drm/amdgpu/discovery: add mes11 support for GC 11.0.2

Enable Micro Engine Scheduler support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add mes 11 firmware for mes 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:13:43 +0000 (10:13 -0400)]
drm/amdgpu: add mes 11 firmware for mes 11.0.2

Define firmware for MES 11.0.2.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add sdma6 support for SDMA 6.0.2
Flora Cui [Fri, 15 Apr 2022 14:25:29 +0000 (10:25 -0400)]
drm/amdgpu/discovery: add sdma6 support for SDMA 6.0.2

Enable sdma6 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdkfd: add asic support for SDMA 6.0.2
Eric Huang [Tue, 8 Feb 2022 20:35:31 +0000 (15:35 -0500)]
drm/amdkfd: add asic support for SDMA 6.0.2

It is inherited from SDMA 6.0.0.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add sdma 6.0.2 firware support
Flora Cui [Fri, 15 Apr 2022 14:12:16 +0000 (10:12 -0400)]
drm/amdgpu: add sdma 6.0.2 firware support

define sdma 6.0.2 firmware.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: enable vcn/jpeg v4_0_4
James Zhu [Fri, 11 Feb 2022 13:17:25 +0000 (08:17 -0500)]
drm/amdgpu/discovery: enable vcn/jpeg v4_0_4

Enable vcn/jpeg 4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: Enable vcn v4_0_4 sram
Sonny Jiang [Tue, 22 Feb 2022 21:24:10 +0000 (16:24 -0500)]
drm/amdgpu: Enable vcn v4_0_4 sram

enable vcn v4_0_4 sram

Signed-off-by: Sonny Jiang <sonjiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/vcn: enable VCN DPG mode for VCN4_0_4
James Zhu [Thu, 6 Jan 2022 01:39:49 +0000 (20:39 -0500)]
drm/amdgpu/vcn: enable VCN DPG mode for VCN4_0_4

Enable VCN DPG mode for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/vcn: enable VCN PG for VCN4_0_4
James Zhu [Thu, 6 Jan 2022 01:39:06 +0000 (20:39 -0500)]
drm/amdgpu/vcn: enable VCN PG for VCN4_0_4

Enable VCN PG for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/vcn: enable VCN CG for VCN4_0_4
James Zhu [Thu, 6 Jan 2022 01:38:04 +0000 (20:38 -0500)]
drm/amdgpu/vcn: enable VCN CG for VCN4_0_4

Enable VCN CG for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/jpeg: enable JPEG PG for VCN4_0_4
James Zhu [Fri, 15 Apr 2022 15:50:10 +0000 (11:50 -0400)]
drm/amdgpu/jpeg: enable JPEG PG for VCN4_0_4

Enable JPEG PG for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/jpeg: enable JPEG CG for VCN4_0_4
James Zhu [Thu, 6 Jan 2022 01:36:08 +0000 (20:36 -0500)]
drm/amdgpu/jpeg: enable JPEG CG for VCN4_0_4

Enable JPEG CG for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add VCN4_0_4 firmware
James Zhu [Thu, 6 Jan 2022 01:27:49 +0000 (20:27 -0500)]
drm/amdgpu: add VCN4_0_4 firmware

Add VCN4_0_4 firmware.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add psp13 support for PSP 13.0.7
Chengming Gui [Fri, 15 Apr 2022 14:34:51 +0000 (10:34 -0400)]
drm/amdgpu/discovery: add psp13 support for PSP 13.0.7

Enable psp 13 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/psp13: add support for MP0 13.0.7
Chengming Gui [Fri, 15 Apr 2022 14:37:37 +0000 (10:37 -0400)]
drm/amdgpu/psp13: add support for MP0 13.0.7

Enable support in psp code.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add gmc11 support for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:20:54 +0000 (10:20 -0400)]
drm/amdgpu/discovery: add gmc11 support for GC 11.0.2

Enable gmc11 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add GMC11 support for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:18:35 +0000 (10:18 -0400)]
drm/amdgpu: add GMC11 support for GC 11.0.2

Add initial support for GC 11.0.2.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add UMC 8.11.0 support
Flora Cui [Fri, 15 Apr 2022 14:17:23 +0000 (10:17 -0400)]
drm/amdgpu: add UMC 8.11.0 support

Add initial support for UMC 8.11.0.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: split mmhub v3_0_2 callbacks from mmhub v3_0
Hawking Zhang [Sun, 6 Feb 2022 16:55:03 +0000 (00:55 +0800)]
drm/amdgpu: split mmhub v3_0_2 callbacks from mmhub v3_0

So we don't need to add ip version check in every callback
when there is atc related programming that is only
available in mmhub v3_0

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add mmhub v3_0_2 ip callback functions
Hawking Zhang [Wed, 6 Apr 2022 10:28:53 +0000 (18:28 +0800)]
drm/amdgpu: add mmhub v3_0_2 ip callback functions

Unlike mmhub v3_0_0, there is no atc_l2 related
registers available in mmhub v3_0_2. Split the mmhub
v3_0_2 callback implementations from mmhub v3_0 so we
don't need to add ip version check when atc related
programming needs to be added to mmhub v3_0_0.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add mmhub v3_0_2 ip headers
Hawking Zhang [Sun, 6 Feb 2022 16:34:00 +0000 (00:34 +0800)]
drm/amdgpu: add mmhub v3_0_2 ip headers

Add mmhub v3_0_2 register offset and shift masks

v2: update to latest headers

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add SMUIO_13_0_8 func support
Chengming Gui [Thu, 10 Feb 2022 01:04:56 +0000 (09:04 +0800)]
drm/amdgpu/discovery: add SMUIO_13_0_8 func support

Add SMUIO funcs for SMUIO_13_0_8.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add hdp6 support for HDP 6.0.1
Flora Cui [Fri, 15 Apr 2022 14:29:42 +0000 (10:29 -0400)]
drm/amdgpu/discovery: add hdp6 support for HDP 6.0.1

Enable Host Data Path support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add nbio 4.3 support for NBIO 4.3.1
Flora Cui [Fri, 15 Apr 2022 14:28:37 +0000 (10:28 -0400)]
drm/amdgpu/discovery: add nbio 4.3 support for NBIO 4.3.1

Enable nbio 4.3 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add smu13 support for MP1 13.0.7
Flora Cui [Fri, 15 Apr 2022 14:23:20 +0000 (10:23 -0400)]
drm/amdgpu/discovery: add smu13 support for MP1 13.0.7

Enable System Management Unit support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add ih6 support for IH 6.0.2
Flora Cui [Fri, 15 Apr 2022 14:21:52 +0000 (10:21 -0400)]
drm/amdgpu/discovery: add ih6 support for IH 6.0.2

Enable Interrupt Handler v6 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add support for ATHUB 3.0.2
Flora Cui [Fri, 15 Apr 2022 14:10:42 +0000 (10:10 -0400)]
drm/amdgpu: add support for ATHUB 3.0.2

Add support 3.0.2 to the ATHUB 3.0 code.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add soc21 support for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:19:56 +0000 (10:19 -0400)]
drm/amdgpu/discovery: add soc21 support for GC 11.0.2

Enable soc21 common soc support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add soc21 support for GC 11.0.2
Flora Cui [Fri, 15 Apr 2022 14:09:00 +0000 (10:09 -0400)]
drm/amdgpu: add soc21 support for GC 11.0.2

Add initial soc21 support.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable clock gating for HDP 6.0
Evan Quan [Fri, 15 Apr 2022 09:06:45 +0000 (17:06 +0800)]
drm/amdgpu: enable clock gating for HDP 6.0

Enable HDP 6.0 clock gating.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable clock gating for IH 6.0
Evan Quan [Fri, 15 Apr 2022 07:55:04 +0000 (15:55 +0800)]
drm/amdgpu: enable clock gating for IH 6.0

Enable IH 6.0 clock gating.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable MGCG and LS for MMHUB 3.0
Evan Quan [Fri, 15 Apr 2022 07:44:27 +0000 (15:44 +0800)]
drm/amdgpu: enable MGCG and LS for MMHUB 3.0

Enable MMHUB 3.0 MGCG and LS features.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable MGCG and LS for ATHUB 3.0
Evan Quan [Fri, 15 Apr 2022 06:38:02 +0000 (14:38 +0800)]
drm/amdgpu: enable MGCG and LS for ATHUB 3.0

Enable ATHUB 3.0 MGCG and LS features.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable more dpm features to pair with PMFW 78.31.0
Evan Quan [Tue, 19 Apr 2022 02:21:59 +0000 (10:21 +0800)]
drm/amd/pm: enable more dpm features to pair with PMFW 78.31.0

Enables the support for DCN DPM and DCFCLK DS features.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable gfx ulv feature control for SMU 13.0.0
Evan Quan [Wed, 13 Apr 2022 07:54:50 +0000 (15:54 +0800)]
drm/amd/pm: enable gfx ulv feature control for SMU 13.0.0

Fulfill the interface for gfx ulv control.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable deep sleep features control for SMU 13.0.0
Evan Quan [Wed, 13 Apr 2022 07:32:44 +0000 (15:32 +0800)]
drm/amd/pm: enable deep sleep features control for SMU 13.0.0

Fulfill the interface for deep sleep features control.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: support more DPM features for SMU 13.0.0
Evan Quan [Tue, 12 Apr 2022 03:20:08 +0000 (11:20 +0800)]
drm/amd/pm: support more DPM features for SMU 13.0.0

To pair with 78.30.0 PMFW, support more dpm features:
  - UCLK DPM (disabled temporarily)
  - VMEMP Scaling (disabled temporarily)
  - VDDIO Scaling (disabled temporarily)
  - GFXCLK DS
  - SOCCLK DS
  - MPCLK Deep Sleep on VDD_SOC
  - MPCLK Deep Sleep on VDD_BACO
  - Memory Temperature Reading (disabled temporarily)

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable more GFX clockgating features for GC 11.0.0
Evan Quan [Mon, 11 Apr 2022 06:39:59 +0000 (14:39 +0800)]
drm/amdgpu: enable more GFX clockgating features for GC 11.0.0

Support more GFX clockgating features(3D_CGCG, 3D_CGLS, MGCG,
FGCG and PERF_CLK).

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable df cstate feature for SMU 13.0.0
Evan Quan [Thu, 7 Apr 2022 12:41:23 +0000 (20:41 +0800)]
drm/amd/pm: enable df cstate feature for SMU 13.0.0

As the feature is ready with 78.29.0 PMFW.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable PMLOG support for SMU 13.0.0
Evan Quan [Wed, 6 Apr 2022 09:40:09 +0000 (17:40 +0800)]
drm/amd/pm: enable PMLOG support for SMU 13.0.0

Fulfill the interface for setting PMLOG DramAddr
on SMU 13.0.0.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable ppfeature mask setting for SMU 13.0.0
Evan Quan [Fri, 1 Apr 2022 07:52:12 +0000 (15:52 +0800)]
drm/amd/pm: enable ppfeature mask setting for SMU 13.0.0

Fulfill the interfaces for retrieving and setting ppfeature
masks on SMU 13.0.0.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable RunDcBtc support for SMU 13.0.0
Evan Quan [Fri, 1 Apr 2022 03:40:00 +0000 (11:40 +0800)]
drm/amd/pm: enable RunDcBtc support for SMU 13.0.0

Fulfill the RunDcBtc for SMU 13.0.0.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable power profile setting for SMU 13.0.0
Evan Quan [Fri, 1 Apr 2022 02:49:33 +0000 (10:49 +0800)]
drm/amd/pm: enable power profile setting for SMU 13.0.0

Fulfill the interfaces for retrieving and setting power profile
mode on SMU 13.0.0.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable ac/dc switching for SMU 13.0.0
Evan Quan [Fri, 1 Apr 2022 02:02:28 +0000 (10:02 +0800)]
drm/amd/pm: enable ac/dc switching for SMU 13.0.0

Fulfill the ->set_power_source interface which notifies
PMFW the current system power source(AC/DC).

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/pm: enable power limit retrieving and setting for SMU 13.0.0
Evan Quan [Thu, 31 Mar 2022 09:50:13 +0000 (17:50 +0800)]
drm/amd/pm: enable power limit retrieving and setting for SMU 13.0.0

Fulfill the interfaces for retrieving and setting power limit on
SMU 13.0.0.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: simplify the return expression of vega10_ih_hw_init()
Minghao Chi [Thu, 5 May 2022 02:22:39 +0000 (02:22 +0000)]
drm/amdgpu: simplify the return expression of vega10_ih_hw_init()

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: simplify the return expression
Minghao Chi [Thu, 5 May 2022 02:10:57 +0000 (02:10 +0000)]
drm/amdgpu: simplify the return expression

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/gfx11: Avoid uninitialised variable 'index'
Mike Lothian [Wed, 4 May 2022 22:24:14 +0000 (23:24 +0100)]
drm/amdgpu/gfx11: Avoid uninitialised variable 'index'

This stops clang complaining:

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:376:6: warning: variable 'index' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (ring->is_mes_queue) {
            ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:433:30: note: uninitialized use occurs here
        amdgpu_device_wb_free(adev, index);
                                    ^~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:376:2: note: remove the 'if' if its condition is always false
        if (ring->is_mes_queue) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:364:16: note: initialize the variable 'index' to silence this warning
        unsigned index;
                      ^
                       = 0

Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/gfx10: Avoid uninitialised variable 'index'
Mike Lothian [Wed, 4 May 2022 22:24:13 +0000 (23:24 +0100)]
drm/amdgpu/gfx10: Avoid uninitialised variable 'index'

This stops clang complaining:

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:3846:6: warning: variable 'index' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
        if (ring->is_mes_queue) {
            ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:3903:30: note: uninitialized use occurs here
        amdgpu_device_wb_free(adev, index);
                                    ^~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:3846:2: note: remove the 'if' if its condition is always false
        if (ring->is_mes_queue) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:3839:16: note: initialize the variable 'index' to silence this warning
        unsigned index;
                      ^
                       = 0

Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/gfx11: Add missing break
Mike Lothian [Wed, 4 May 2022 16:50:09 +0000 (17:50 +0100)]
drm/amdgpu/gfx11: Add missing break

This stops clang complaining:

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:5895:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
        default:
        ^
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:5895:2: note: insert 'break;' to avoid fall-through
        default:
        ^
        break;

Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agoRevert "fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb"
Alex Deucher [Wed, 4 May 2022 13:27:10 +0000 (09:27 -0400)]
Revert "fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb"

This reverts commit 9a45ac2320d0a6ae01880a30d4b86025fce4061b.

This was added a helper for amdgpu to workaround a runtime pm regression
caused by a runtime pm fix in efifb.  We now have a better workaround
in amdgpu in
commit f95af4a9236695 ("drm/amdgpu: don't runtime suspend if there are displays attached (v3)")
so this workaround is no longer necessary.  Since amdgpu was the only
user of this interface, we can remove it.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agoRevert "drm/amdgpu: disable runpm if we are the primary adapter"
Alex Deucher [Wed, 4 May 2022 13:23:28 +0000 (09:23 -0400)]
Revert "drm/amdgpu: disable runpm if we are the primary adapter"

This reverts commit b95dc06af3e683d6b7ddbbae178b2b2a21ee8b2b.

This workaround is no longer necessary.  We have a better workaround
in commit f95af4a9236695 ("drm/amdgpu: don't runtime suspend if there are displays attached (v3)").

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/gfx11: remove some register fields that no longer exist
Alex Deucher [Thu, 5 May 2022 03:17:38 +0000 (23:17 -0400)]
drm/amdgpu/gfx11: remove some register fields that no longer exist

Some copy paste leftovers for older asics.  They were protected
by __BIG_ENDIAN, so we didn't notice them initially.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add VCN 4.0 Support
James Zhu [Mon, 4 Apr 2022 21:35:39 +0000 (17:35 -0400)]
drm/amdgpu/discovery: add VCN 4.0 Support

Enable VCN 4.0 on asics where it is present.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add vcn_4_0_0 video codec query
James Zhu [Sun, 13 Feb 2022 16:14:39 +0000 (11:14 -0500)]
drm/amdgpu: add vcn_4_0_0 video codec query

Add vcn_4_0_0 video codec query.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/vcn: enable vcn4 dpg mode
James Zhu [Thu, 7 Apr 2022 05:37:07 +0000 (01:37 -0400)]
drm/amdgpu/vcn: enable vcn4 dpg mode

Enable vcn4 dpg mode.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/jpeg: enable JPEG PG and CG for VCN4_0_0
James Zhu [Thu, 14 Apr 2022 14:19:13 +0000 (10:19 -0400)]
drm/amdgpu/jpeg: enable JPEG PG and CG for VCN4_0_0

Enable JPEG PG and CG for VCN4_0_0.

Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: enable VCN4 PG and CG for VCN4_0_0
Leo Liu [Thu, 14 Apr 2022 14:16:42 +0000 (10:16 -0400)]
drm/amdgpu: enable VCN4 PG and CG for VCN4_0_0

Most of the tiles can be power/clock gated.

Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/jpeg: add jpeg support for VCN4_0_0
James Zhu [Sat, 9 Oct 2021 20:58:10 +0000 (16:58 -0400)]
drm/amdgpu/jpeg: add jpeg support for VCN4_0_0

Add jpeg support for VCN4_0_0.

Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add VCN4 ip block support
Leo Liu [Wed, 13 Apr 2022 15:45:03 +0000 (11:45 -0400)]
drm/amdgpu: add VCN4 ip block support

Add VCN 4.0 initialization and decoder/encoder ring functions.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add irq sources for vcn v4_0
James Zhu [Thu, 20 Jan 2022 04:10:56 +0000 (23:10 -0500)]
drm/amdgpu: add irq sources for vcn v4_0

Add the interrupt source packet definitions for VCN4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: move out asic specific definition from common header
James Zhu [Sat, 4 Dec 2021 17:20:37 +0000 (12:20 -0500)]
drm/amdgpu: move out asic specific definition from common header

Move out asic specific definition from common header.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: make software ring functions reuseable for newer VCN
Leo Liu [Sun, 26 Sep 2021 00:20:52 +0000 (20:20 -0400)]
drm/amdgpu: make software ring functions reuseable for newer VCN

Software ring will be supported only from VCN4

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add vcn 4_0_0 header files v7
Leo Liu [Thu, 30 Dec 2021 11:34:16 +0000 (19:34 +0800)]
drm/amdgpu: add vcn 4_0_0 header files v7

Add VCN 4.0.0 registers

Signed-off-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu/discovery: add SDMA v6_0 ip block
Stanley Yang [Fri, 12 Mar 2021 10:02:33 +0000 (18:02 +0800)]
drm/amdgpu/discovery: add SDMA v6_0 ip block

Add SDMA v6 ip block for asics which support it.

Signed-off-by: Stanley Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add initial support for sdma v6.0
Stanley Yang [Wed, 13 Apr 2022 18:26:40 +0000 (14:26 -0400)]
drm/amdgpu: add initial support for sdma v6.0

Add functions for SDMA version 6.

Signed-off-by: Stanley Yang <Stanley.Yang@amd.com>
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amdgpu: add sdma v6_0_0 pkt header v3
Hawking Zhang [Sun, 20 Feb 2022 10:22:28 +0000 (18:22 +0800)]
drm/amdgpu: add sdma v6_0_0 pkt header v3

v1: add sdma v6_0_0 pkt definitions (Hawking)
v2: add gcr control field definition (Likun)
v3: correct some definitions (Likun)

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2 years agodrm/amd/display: 3.2.184
Aric Cyr [Mon, 25 Apr 2022 03:19:52 +0000 (23:19 -0400)]
drm/amd/display: 3.2.184

This version brings along following fixes:
- Have optc3 function accessible to newer DCN
- Add CM boot option for USB4 tunneling
- Fix system hang issue when game resolution is changed
- Remove outdated register for dcn3+
- Add new DSC interface to disconnect from pipe
- Clean up pixel format types in enum surface_pixel_format

Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>