RE: [PATCH] drm/amdgpu: remove RAS's useless code

2020-06-01 Thread Chen, Guchun
[AMD Public Use] Exactly Tao. When hw_support capability is aligned with AMDGPU_RAS_BLOCK_MASK by and operation, sw_support capability is calculated on top of hw_support value and amdgpu_ras_mask accordingly. Regards, Guchun -Original Message- From: Zhou1, Tao Sent: Tuesday, June 2,

RE: [PATCH] drm/amdgpu: remove RAS's useless code

2020-06-01 Thread Zhou1, Tao
[AMD Public Use] I think the real reason is we have " *hw_supported &= AMDGPU_RAS_BLOCK_MASK;" already, but the patch is: Reviewed-by: Tao Zhou > -Original Message- > From: Chen, Guchun > Sent: 2020年6月2日 13:58 > To: amd-gfx@lists.freedesktop.org; Zhang, Hawking > ; Zhou1, Tao ; Li, >

RE: [PATCH] drm/amdgpu: fix RAS memory leak in error case

2020-06-01 Thread Zhou1, Tao
[AMD Public Use] Reviewed-by: Tao Zhou > -Original Message- > From: Chen, Guchun > Sent: 2020年6月2日 13:50 > To: amd-gfx@lists.freedesktop.org; Zhang, Hawking > ; Zhou1, Tao > Cc: Chen, Guchun > Subject: [PATCH] drm/amdgpu: fix RAS memory leak in error case > > RAS context memory needs

[PATCH] drm/amdgpu: remove RAS's useless code

2020-06-01 Thread Guchun Chen
Module parameter amdgpu_ras_mask has been involved in the calculation of ras support capability, so drop this redundant code. Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/dri

[PATCH] drm/amdgpu: fix RAS memory leak in error case

2020-06-01 Thread Guchun Chen
RAS context memory needs to freed in failure case. Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c in

RE: [PATCH] drm/amdgpu: enable renoir discovery for gc info retrieved

2020-06-01 Thread Liang, Prike
[AMD Official Use Only - Internal Distribution Only] Ping... Thanks, > -Original Message- > From: Liang, Prike > Sent: Friday, May 29, 2020 11:28 AM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Huang, Ray > ; Liang, Prike > Subject: [PATCH] drm/amdgpu: enable renoir di

[PATCH 000/207] Add support for Sienna Cichlid

2020-06-01 Thread Alex Deucher
Sienna Cichlid is GPU from AMD. This patch set adds support for it including asic init, power management, display, interrupts, gfx, multi-media, etc. The new register headers (patches 1-4) are quite large so I did not send them to the mailing list. The full patch set including register headers c

[PATCH 207/207] drm/amd/display: Add DCN3 to Kconfig

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index 1911a34cc060..34ae4f3a32f4 100644 --- a/drivers/gpu/drm/a

[PATCH 201/207] drm/amd/display: Init function tables for DCN3

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Initilize function tables for hw programing Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/dcn30/dcn30_init.c | 148 ++ .../gpu/drm/amd/display/dc/dcn30/dcn30_init.h | 33 2 files changed, 181 insertions(+) create mode 100644 driv

[PATCH 206/207] drm/amd/display: Add DCN3 blocks to Makefile

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/Makefile | 4 ++ drivers/gpu/drm/amd/display/dc/dcn30/Makefile | 54 +++ 2 files changed, 58 insertions(+) create mode 100644 drivers/gpu/drm/amd/display/dc/dcn30/Makefile diff -

[PATCH 203/207] drm/amd/display: Remove Unused Registers

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c| 17 - .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.h| 12 .../amd/display/dc/dcn20/dcn20_link_encoder.h | 3 +-- 3 files changed, 1 insertion(+), 31 d

[PATCH 205/207] drm/amd/display: fix and simplify pipe split logic for DCN3

2020-06-01 Thread Alex Deucher
From: Dmytro Laktyushkin This was done already done for DCN From: f7a695da88cf ("drm/amd/display: fix and simplify pipe split logic") Signed-off-by: Dmytro Laktyushkin Signed-off-by: Bhawanpreet Lakha --- .../drm/amd/display/dc/dcn30/dcn30_resource.c | 213 -- 1 file changed,

[PATCH 204/207] drm/amdgpu: Enable DM block for DCN3

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/amdgpu/nv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index ef3f07dc89cd..a7cfe3ac7cb6 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c ++

[PATCH 195/207] drm/amd/display: Add DCN3 HWSEQ

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add HW sequence programing for DCN3 Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 3 + drivers/gpu/drm/amd/display/dc/dc_stream.h| 15 + .../gpu/drm/amd/display/dc/dce/dce_hwseq.h| 46 ++ .../amd/display/dc/dcn10/dcn10_

[PATCH 202/207] drm/amd/display: Handle RGBE_ALPHA Pixel Format

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c index 1e5a92b192a1..555af

[PATCH 194/207] drm/amd/display: Add DCN3 DMUB

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha DMUB (Display Micro-Controller Unit) Used to read/write regs Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 3 + drivers/gpu/drm/amd/display/dmub/src/Makefile | 3 + .../gpu/drm/amd/display/dmub/src/dmub_dcn30.c | 184 +

[PATCH 199/207] drm/amd/display: Add DCN3 AFMT

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Audio formating Audio related code for setup/control Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/dcn30/dcn30_afmt.c | 206 .../gpu/drm/amd/display/dc/dcn30/dcn30_afmt.h | 230 ++ 2 files changed, 436 insertions(+) c

[PATCH 196/207] drm/amd/display: Add DCN3 Support in DM (v2)

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Handle DCN3 in amdgpu_dm v2: fix num_pkrs handling Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 27 +++ .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 20 ++ drivers/gpu/drm/amd/display/dc/dc_hw_types

[PATCH 183/207] drm/amd/display: Add DCN3 OPTC

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support for programming the DCN3 OPTC (Output Timing Controller) HW Blocks: ++ | OPTC | ++ | v ++ ++ | DIO | | DCCG | ++ ++ Signed-off-by: Bhawanpreet La

[PATCH 182/207] drm/amd/display: Add DCN3 DCCG

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add programming of the DCCG (Display Controller Clock Generator) block: HW Blocks: ++ ++ | DIO | | DCCG | ++ ++ Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/dcn20/dcn20_dccg.h | 22

[PATCH 198/207] drm/amd/display: Add DCN3 Command Table Helpers

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha -Handle DCN3 cases for bios parser and command tables -Add command function tables for DCN3 Signed-off-by: Bhawanpreet Lakha --- .../drm/amd/display/dc/bios/bios_parser2.c| 3 ++ .../display/dc/bios/command_table_helper2.c | 5 +++ .../dce112/command_table_helpe

[PATCH 189/207] drm/amd/display: Add DCN3 MMHUBHUB

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the DCN3 MMHUBBUB (Multimedia HUB interface) HW Blocks: +++--+ +--+ | HUBBUB || HUBP | <-- | MMHUBBUB | +++--+ +--+ | v ++ | DPP | ++ |

[PATCH 186/207] drm/amd/display: Add DCN3 DPP

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the DCN3 DPP (Multiple pipe and plane combine) HW Blocks: ++ | DPP | ++ | v ++ | MPC | ++ | v +---+ | OPP | +---+ |

[PATCH 193/207] drm/amd/display: Add DCN3 GPIO

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program GPIO HW block Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/gpio/Makefile | 10 + .../display/dc/gpio/dcn30/hw_factory_dcn30.c | 257 .../display/dc/gpio/dcn30/hw_factory_dcn30.h | 33 ++ .../dc/gpio/dcn30/h

[PATCH 200/207] drm/amd/display: Add DCN3 VPG

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Video Package generator. used to prepare avi info, DP info etc Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/dcn30/dcn30_vpg.c | 194 ++ .../gpu/drm/amd/display/dc/dcn30/dcn30_vpg.h | 133 2 files changed, 327 insertions

[PATCH 197/207] drm/amd/display: Add DCN3 Resource

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support for managing resources for DCN3 Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/core/dc_resource.c | 36 +- drivers/gpu/drm/amd/display/dc/dc.h | 24 + drivers/gpu/drm/amd/display/dc/dce/dce_abm.h | 20 + .../drm/amd/display/

[PATCH 181/207] drm/amd/display: Add DCN3 CLK_MGR

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Adds support for handling of clocking relevant to the DCN3 block Signed-off-by: Bhawanpreet Lakha --- .../gpu/drm/amd/display/dc/clk_mgr/Makefile | 10 + .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 22 + .../drm/amd/display/dc/clk_mgr/dcn30/dalsmc.h | 60 ++ ..

[PATCH 184/207] drm/amd/display: Add DCN3 OPP header

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the DCN3 OPP (Output Plane Processing) HW Blocks: +---+ | OPP | +---+ | v ++ | OPTC | ++ | v ++ ++ | DIO | | DCCG | +--

[PATCH 188/207] drm/amd/display: Add DCN3 HUBP

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the DCN3 HUBP (Display to data fabric interface pipe) HW Blocks: +++--+ | HUBBUB || HUBP | +++--+ | v ++ | DPP | ++ | v ++ | MPC | +---

[PATCH 179/207] drm/amd/display: Add DCN3 chip ids

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/include/dal_asic_id.h | 4 drivers/gpu/drm/amd/display/include/dal_types.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/display/include/dal_asic_id.h b/drivers/gpu/drm/a

[PATCH 187/207] drm/amd/display: Add DCN3 HUBHUB

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the HUBBUB (DCN memory HUB interface) HW Blocks: ++ | HUBBUB | ++ | v ++ | DPP | ++ | v ++ | MPC | ++ | v +---+

[PATCH 190/207] drm/amd/display: Add DCN3 DWB

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the DCN3 DWB (Display Writeback) HW Blocks: +++--+ +--+ | HUBBUB || HUBP | <-- | MMHUBBUB | +++--+ +--+ | ^ v | ++

[PATCH 192/207] drm/amd/display: Add DCN3 IRQ

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add IWQ services for DCN3, This allows us to create/init and manage irqs for DCN3 Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/irq/Makefile | 10 + .../display/dc/irq/dcn30/irq_service_dcn30.c | 384 ++ .../display/dc/irq/dcn3

[PATCH 180/207] drm/amd/display: Add DCN3 DIO

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support for the DIO (Display IO) block of DCN3, which entails our stream and link encoders. HW Blocks: ++ | DIO | ++ Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 14 + .../amd/display/dc/dcn1

[PATCH 185/207] drm/amd/display: Add DCN3 MPC

2020-06-01 Thread Alex Deucher
From: Bhawanpreet Lakha Add support to program the DCN3 MPC (Multiple pipe and plane combine) HW Blocks: ++ | MPC | ++ | v +---+ | OPP | +---+ | v ++ | OPTC | ++ |

[PATCH 163/207] drm/amdgpu/sriov : Add sriov detection for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: shaoyunl This is a regression due to the rebase , add sienna_cichlid sriov detection back Signed-off-by: shaoyunl Reviewed-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH 167/207] drm/amd/powerplay: show gfxclk=0 in gfxoff state

2020-06-01 Thread Alex Deucher
From: Kenneth Feng The instant retrieved gfxclk value should be 0 in gfxoff state. This can be fetched with gfxoff enabled. Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 7 --- 1 file changed, 4 ins

[PATCH 153/207] drm/amd/powerplay: enable ULCK DS for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable uclk deep sleep for sienna_cichlid. Df cstate kicks in first, then df triggers uclk ds with the sideband. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 1 + 1 file changed, 1 inse

[PATCH 151/207] drm/amdgpu/mes10.1: add no scheduler flag for mes

2020-06-01 Thread Alex Deucher
We don't want a gpu scheduler for mes. Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c index 5c28868f7adc..4b746

[PATCH 168/207] drm/amdgpu/psp: add structure to support PSP SPL

2020-06-01 Thread Alex Deucher
From: Likun Gao Add support for PSP SPL (Security patch level) table to support anti-rollback of FW loaded by Trusted OS. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_uc

[PATCH 175/207] drm/amdgpu: reserve fb according to return value from vbios

2020-06-01 Thread Alex Deucher
From: Likun Gao Query reserved tmr size through atom firmwareinfo for Sienna_Cichlid and onwards for all the use cases (IP discovery/G6 memory training/profiling/diagnostic data.etc), otherwise, fallback to legacy approach to check and reserve tmr block for ip discovery data and G6 memory trainin

[PATCH 149/207] drm/amdgpu: add workaround for issue in DPG for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang To workaround an issue in DPG V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/dr

[PATCH 148/207] drm/amdgpu: rename macro for VCN2.0 2.5 and 3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Rename SOC15_DPG_MODE_OFFSET_2_0, RREG32_SOC15_DPG_MODE_2_0 and WREG32_SOC15_DPG_MODE_2_0 for VCN2.0, VCN2.5 and VCN3.0. These three macros are used VCN2.0, VCN2.5 and VCN3.0, therefore rename it to be a general name. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Acked-

[PATCH 162/207] drm/amdgpu: only use one gfx pipe for Sienna_Cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Only enable one gfx pipe for sienna_cichlid currently. Signed-off-by: Likun Gao Acked-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gf

[PATCH 150/207] drm/amdgpu: enable DPG mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Enable DPG mode for VCN3.0 by updating related flag. V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c |

[PATCH 171/207] drm/amdgpu: update golden setting for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Update golden setting for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm

[PATCH 166/207] drm/amdgpu: enable gfxoff for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable GFXOFF for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 +--- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 3 +++ drivers/gpu/drm/amd/powerplay/smu_v11_

[PATCH 152/207] drm/amdgpu/vcn3.0: schedule instance 0 for decode and 1 for encode

2020-06-01 Thread Alex Deucher
VCN3 has 2 unsymmetrical instances, i.e there're less codecs on instance 1, we use 0 for decode and 1 for encode for now Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/a

[PATCH 161/207] drm/amd/powerplay: drop jpeg instance1 dpm setup

2020-06-01 Thread Alex Deucher
From: Likun Gao VCN removed JPEG for instance 1, so drop jpeg instance1 dpm setup. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/am

[PATCH 177/207] drm/amdgpu: remove unnecessary check for mem train

2020-06-01 Thread Alex Deucher
From: Likun Gao a.Check whether mem train support when try to reserve related memory. b.Remove ASIC check and atom firmware table version check as the check of firmware capability is enough to achieve that purpose. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher

[PATCH 176/207] drm/amdgpu: support memory training for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Add memory training support for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdg

[PATCH 173/207] drm/amd/powerplay: drop sienna_cichlid hardcode of using pptable

2020-06-01 Thread Alex Deucher
From: Likun Gao Drop the hardcode of sienna_cichlid which will force to use softpptable, so that it can use pptable on vbios once the value of pp_table_id get from vbios is 0. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sm

[PATCH 178/207] drm/amdgpu: bypass tmr when reserve c2p memory

2020-06-01 Thread Alex Deucher
From: Likun Gao C2P memory reserved should not in tmr memory range. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 48 ++--- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/driv

[PATCH 159/207] drm/amd/powerplay: enable fw ctf

2020-06-01 Thread Alex Deucher
From: Kenneth Feng fw ctf can be triggered if the temperature can't be throttled below the limit. then the gpu will be powered off and the whole system will hang. Signed-off-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 1 + 1 file chang

[PATCH 174/207] drm/amd/powerplay: let PMFW to handle the features disablement on BACO in V2

2020-06-01 Thread Alex Deucher
From: Evan Quan For Sienna_Cichlid, PMFW will handle the features disablement on BACO in. No need to have driver stepped in. V2: limit this for baco really Signed-off-by: Evan Quan Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 24 +++

[PATCH 158/207] drm/amdgpu: skip GPU scheduler setup for KIQ and MES ring

2020-06-01 Thread Alex Deucher
From: Likun Gao Fix the coding error to skip GPU scheduler setup for KIQ and MES ring. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH 156/207] drm/amd/powerplay: append pptable for sienna_cichlid (v2)

2020-06-01 Thread Alex Deucher
From: Likun Gao Add function to append powerplay table from vbios for sienna_cichlid. v2: squash in warning fix Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 101 ++ 1 file changed, 101 inse

[PATCH 155/207] drm/amd/powerplay: and smc dpm info struct for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao And atom_smc_dpm_info_v4_9 struct for sienna_cichlid use. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/include/atomfirmware.h | 123 + 1 file changed, 123 insertions(+) diff --git a/drivers/gpu/drm

[PATCH 170/207] drm/amdgpu/psp: support for loading PSP SPL fw

2020-06-01 Thread Alex Deucher
From: Likun Gao Add support for loading SPL firmware. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 8 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 4 +++ drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 34 ++

[PATCH 169/207] drm/amdgpu/psp: initialization PSP SPL fw

2020-06-01 Thread Alex Deucher
From: Likun Gao Support for psp firmware header version v1_3 initialization and information print. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 13 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 24 +

[PATCH 164/207] drm/amd/powerplay: support mclk socclk limit value set for sienna_cichlid.

2020-06-01 Thread Alex Deucher
From: Likun Gao Add support to force and unforce MCLK or SOCCLK to dpm limit value. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/am

[PATCH 154/207] drm/amdgpu/sriov : Use kiq to do tlb invalidation for gfx10 on sriov

2020-06-01 Thread Alex Deucher
From: shaoyunl On SRIOV run time, driver shouldn't directly access invalidation registers through MMIO. Use kiq to submit wait_reg_mem package for the invalidation Signed-off-by: shaoyunl Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c |

[PATCH 160/207] drm/amdgpu: disable runtime pm for sienna_cichlid temporarily

2020-06-01 Thread Alex Deucher
From: Likun Gao Disable runtime pm for sienna_cichlid temporarily as BACO regression issue. Signed-off-by: Likun Gao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdg

[PATCH 165/207] drm/amd/amdgpu: disable gfxoff to retrieve gfxclk

2020-06-01 Thread Alex Deucher
From: Likun Gao For Sienna_Cichlid, GFXOFF state puts gfx dpm into standby mode, then the gfxclk can't be retireved. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 71 --- 1 file changed, 60 i

[PATCH 172/207] drm/amd/powerplay: update smu function for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Add function to check whether baco is support for sienna cichlid. Remove fucntion of get clock by type with latency as it will not be called. Signed-off-by: Likun Gao Signed-off-by: Alex Deucher --- .../drm/amd/powerplay/sienna_cichlid_ppt.c| 101 -- 1 file

[PATCH 157/207] drm/amd/powerplay: enable VDDCI and MVDD for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable VDDCI and MVDD if PP_MCLK_DPM_MASK was enable for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 141/207] drm/amdgpu: add mc resume DPG mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Add vcn_v3_0_mc_resume_dpg_mode to resume memory controller in DPG mode for VCN3.0 V2: Separate from previous patch-0002, and update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm

[PATCH 138/207] drm/amd/powerplay: enable RSMU SMN PG for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable RSMU SMN PG for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c

[PATCH 143/207] drm/amdgpu: add stop DPG mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Add vcn_v3_0_stop_dpg_mode to power off in DPG mode for VCN3.0 V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 34 +++ 1 f

[PATCH 137/207] drm/amdgpu: update golden setting for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Update golden setting for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/dr

[PATCH 142/207] drm/amdgpu: add start DPG mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Add vcn_v3_0_start_dpg_mode to setup and start VCN block in DPG mode for VCN3.0 V2: Separate from previous patch-0002, and update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd

[PATCH 147/207] drm/amdgpu: rename macro for VCN1.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Rename RREG32_SOC15_DPG_MODE and WREG32_SOC15_DPG_MODE for VCN1.0 These two macros are used specifically for VCN1.0, therefore rename it from general name to VCN1.0 specific name. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Acked-by: Alex Deucher Signed-off-by: Alex

[PATCH 144/207] drm/amdgpu: add pause DPG mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Add vcn_v3_0_pause_dpg_mode to pause/unpause DPG mode for VCN3.0 V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 66 +++ 1

[PATCH 127/207] drm/amd/powerplay: enable APCC DFLL for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable APCC DFLL for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c

[PATCH 128/207] drm/amd/powerplay: add function to get power limit for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Add function to get pptable power limit for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/pow

[PATCH 116/207] drm/amdkfd: Support Sienna_Cichlid KFD v4

2020-06-01 Thread Alex Deucher
From: Yong Zhao v4: drop get_tile_config, comment out other callbacks Signed-off-by: Yong Zhao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/Makefile | 13 +- .../drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10_3.c | 834 ++ drivers/gpu/drm/amd/amdkfd/kfd_crat.c

[PATCH 101/207] drm/amdgpu: switch to query reserved fb size from vbios (v3)

2020-06-01 Thread Alex Deucher
From: Hawking Zhang For Sienna_Cichlid, query fw_reserved_fb_size from vbios directly. For navi1x, fall back to default 64K TMR size. For pre-navi, no need to reserve tmr region in top LFB. v2: fix TMR define (Alex) v3: partially revert size change Signed-off-by: Hawking Zhang Reviewed-by: Ale

[PATCH 115/207] drm/amdgpu/dc: Add missing Sienna_Cichlid chip id

2020-06-01 Thread Alex Deucher
From: "Jerry (Fangzhi) Zuo" Signed-off-by: Jerry (Fangzhi) Zuo Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/a

[PATCH 108/207] drm/amd/amdgpu: add HDP mgcg and ls support

2020-06-01 Thread Alex Deucher
From: Kenneth Feng add HDP mgcg and ls support and verified Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/

[PATCH 107/207] drm/amd/amdgpu: fix the HDP LS/DS/SD programming

2020-06-01 Thread Alex Deucher
From: Kenneth Feng confirmed that IPH_MEM_POWER_CTRL_EN and RC_MEM_POWER_CTRL_EN have to be set for SRAM LS/DS/SD Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a

[PATCH 146/207] drm/amdgpu: add internal reg offset translation for VCN inst 1

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Add range for vcn instance 1 for translation for internal register offset, which is needed for VCN3.0 V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h

[PATCH 102/207] drm/amdgpu: open GFX clock gating for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Open GFX MGCG, CGCG and 3DCG for sienna_cichlid. Signed-off-by: Likun Gao Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/g

[PATCH 133/207] drm/amd/powerplay: enable athub pg

2020-06-01 Thread Alex Deucher
From: Kenneth Feng enable athub pg and the status can be checked in ATHUB_MISC_CNTL. Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c| 3 ++- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 3 +++ 2 fi

[PATCH 129/207] drm/amdgpu/mes: update mes fw api

2020-06-01 Thread Alex Deucher
From: Le Ma Update mes_api_def.h to match the latest mes fw. v2: clean up coding style based on kernel standards: - fix indentation and alignment - break long lines - put the opening brace last on the line - remove unnecessary blank line and space - replace uint(32|64) with standard ui

[PATCH 139/207] drm/am/powerplay: enable OUT OF BAND MONITER for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable OUT OF BAND MONITER for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/power

[PATCH 106/207] drm/amdgpu: update golden setting for gfx10.3

2020-06-01 Thread Alex Deucher
From: Likun Gao Update gfx golden setting for gfx10.3. Signed-off-by: Likun Gao Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/dr

[PATCH 113/207] drm/amdgpu: enable 3D pipe 1 on Sienna_Cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Only disable 3D pipe 1 on navi1x, enable 3D pipe 1 on Sienna_Cichlid. Signed-off-by: Likun Gao Reviewed-by: Feifei Xu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/driv

[PATCH 110/207] drm/amd/amdgpu: add athub ls support

2020-06-01 Thread Alex Deucher
From: Kenneth Feng athub ls is bounded with hdp ls,verified. Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/

[PATCH 104/207] drm/amdgpu: fix the PSP front door loading VCN firmware

2020-06-01 Thread Alex Deucher
From: Leo Liu for the second instance with correct index Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/dri

[PATCH 124/207] drm/amd/powerplay: enable MM DPM PG for sienna_cichlid (v2)

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable VCN dpm set for sienna_cichlid. Enable JPEG dpm set for sienna_cichlid. v2: squash in BACO fix (Kenneth) Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smu_types.h | 1 + .../drm/amd/powerplay/sien

[PATCH 111/207] drm/amdgpu: Enable Multi Media Hub (MMHUB) Clock Gating for sienna_cichlid.

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable mmhub clockgating. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 451557544b8

[PATCH 134/207] drm/amd/powerplay: enable mmhub pg

2020-06-01 Thread Alex Deucher
From: Kenneth Feng mmhub pg can be obvserved from PCTL_CTRL Signed-off-by: Kenneth Feng Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c| 3 ++- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 3 +++ 2 files changed, 5 insertions

[PATCH 132/207] drm/amdgpu: skip VM inv eng assignment for mes ring

2020-06-01 Thread Alex Deucher
From: Le Ma Statically allocated VM inv eng of gfxhub on sienna_cichlid is used up. Also VM inv eng is no need for mes ring. Signed-off-by: Le Ma Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 140/207] drm/amdgpu: add clock gating DPG mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Add vcn_v3_0_clock_gating_dpg_mode to enabling clock gating in DPG mode for VCN3.0 V2: Separate from previous patch-0002, and update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm

[PATCH 114/207] sound/pci/hda: add sienna_cichlid audio asic id for sienna_cichlid up

2020-06-01 Thread Alex Deucher
From: Hersen Wu dp/hdmi ati hda is not shown in audio settings Signed-off-by: Hersen Wu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- sound/pci/hda/hda_intel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 92a04

[PATCH 121/207] drm/amd/powerplay: enable VR0HOT for sienna_cichlid

2020-06-01 Thread Alex Deucher
From: Likun Gao Enable the feature of Voltage Regulator (VR) Hot for sienna_cichlid. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/p

[PATCH 145/207] drm/amdgpu: set indirect sram mode for VCN3.0

2020-06-01 Thread Alex Deucher
From: Boyuan Zhang Use indirect sram for secure DPG mode V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drive

[PATCH 131/207] drm/amdgpu/mes: allocate memory slots for hw resource setting

2020-06-01 Thread Alex Deucher
From: Le Ma Pass a piece of memory to MES ucode to fill contents. Signed-off-by: Le Ma Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 36 ++ 1 file changed, 36 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/

[PATCH 117/207] drm/amdkfd: Add Sienna_Cichlid trap handler support

2020-06-01 Thread Alex Deucher
From: Jay Cornwall - Replace SQC stores with TCP stores - Synchronize with MSG_SAVEWAVE via lgkmcnt - HW_REG_IB_STS is now read-only Signed-off-by: Jay Cornwall Signed-off-by: Alex Deucher --- .../gpu/drm/amd/amdkfd/cwsr_trap_handler.h| 844 +- .../amd/amdkfd/cwsr_trap_han

[PATCH 119/207] drm/amdkfd: Support debugger in Navi1x trap handler

2020-06-01 Thread Alex Deucher
From: Jay Cornwall - Preserve scalar GPRs ttmp[4:11] and ttmp13 - Add single step exception during context save workaround - Remove incorrect PC adjustment during context save Signed-off-by: Jay Cornwall Reviewed-by: Yong Zhao Signed-off-by: Alex Deucher --- .../gpu/drm/amd/amdkfd/cwsr_trap_

  1   2   3   >