Initial Beige Goby Support
Subsystems (5)
Alex Deucher
maintainercover Initial Beige Goby Support
These patches enable initial support for Beige Goby, a new GPU from AMD. This includes support for GFX, compute, multimedia, display, and power management.
Due to the size of the new register headers (patch 41), I didn't send them out, but you can view the entire patch set in my git tree here:
https://gitlab.freedesktop.org/agd5f/linux/-/commits/beige_goby
Alex Deucher (1):
drm/amdgpu: add mmhub client support for beige goby
Aurabindo Pillai (8):
drm/amd/display: Add register definitions for Beige Goby drm/amd/display: Initial DC support for Beige Goby drm/amd/display: Edit license info for beige goby DC files drm/amd/display: Add DM support for Beige Goby drm/amd/amdgpu: Enable DCN IP init for Beige Goby drm/amd/display: Add callback for update_soc_for_wm_a for dcn303 drm/amd/display: Enable HDCP for Beige Goby drm/amd/display: enable idle optimizations for beige goby
Chengming Gui (28):
drm/amd/amdgpu: add beige_goby asic type drm/amd/amdgpu: set fw load type for beige_goby drm/amd/amdgpu: set asic family and ip blocks for beige_goby drm/amd/amdgpu: add support for beige_goby firmware drm/amd/amdgpu: add gmc support for beige_goby drm/amd/amdgpu: add common support for beige_goby drm/amd/amdgpu: initialize IP offset for beige_goby drm/amd/amdgpu: add mmhub support for beige_goby drm/amd/amdgpu: add common ip block for beige_goby drm/amd/amdgpu: add gmc ip block for beige_goby drm/amd/amdgpu: add ih ip block for beige_goby drm/amd/amdgpu: add gfx ip block for beige_goby drm/amd/amdgpu: add sdma ip block for beige_goby drm/amd/amdgpu: configure beige_goby gfx according to gfx 10.3's
definition
drm/amd/amdgpu: add virtual display support for beige_goby drm/amd/amdgpu: support cp_fw_write_wait for beige_goby drm/amd/amdgpu: Use IP discovery table for beige goby drm/amdkfd: support beige_goby KFD
drm/amdkfd: add kfd2kgd funcs for beige_goby kfd support drm/amd/amdgpu: add smu support for beige_goby drm/amd/amdgpu: add psp support for beige_goby drm/amd/amdgpu: update golden_setting_10_3_5 for beige_goby drm/amd/pm: add mode1 support for beige_goby drm/amd/pm: update smu11 driver interface header for beige_goby drm/amd/pm: use macro to get pptable members drm/amd/pm: Use the PPTable from VBIOS for beige_goby drm/amd/amdgpu: Enable gfxoff for beige_goby drm/amd/amdgpu: Enable memory training for psp HW_REV#11.0.13
Hawking Zhang (1):
drm/amdgpu: add gc_10_3_5 golden setting for beige_goby
Jiansong Chen (1):
drm/amdgpu: fix GCR_GENERAL_CNTL offset for beige_goby
Joshua Aberback (1):
drm/amd/display: Update DCN303 SR Exit Latency
Tao Zhou (7):
drm/amdgpu: enable GFX clock gating for beige_goby drm/amdgpu: support athub cg setting for beige_goby drm/amdgpu: enable athub/mmhub PG for beige_goby drm/amdgpu: enable mc CG and LS for beige_goby drm/amdgpu: enable hdp CG and LS for beige_goby drm/amdgpu: enable ih CG for beige_goby drm/amdgpu: add cgls for beige_goby
Veerabadhran Gopalakrishnan (2):
drm/amdgpu: Enable VCN for Beige Goby
drm/amdgpu: enabled VCN3.0 CG for BEIGE GOBY
drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- .../gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 8 + drivers/gpu/drm/amd/amdgpu/athub_v2_1.c | 1 + .../gpu/drm/amd/amdgpu/beige_goby_reg_init.c | 54 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 66 + drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 4 + drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 33 + drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 1 + drivers/gpu/drm/amd/amdgpu/nv.c | 44 + drivers/gpu/drm/amd/amdgpu/nv.h | 1 + drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 13 + drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 7 + drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 101 +- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 61 + drivers/gpu/drm/amd/amdkfd/kfd_device.c | 20 + .../drm/amd/amdkfd/kfd_device_queue_manager.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c | 1 + .../gpu/drm/amd/amdkfd/kfd_packet_manager.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 1 + .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 + drivers/gpu/drm/amd/display/dc/Makefile | 1 + .../display/dc/bios/command_table_helper2.c | 1 + .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 7 + .../gpu/drm/amd/display/dc/core/dc_resource.c | 6 + .../drm/amd/display/dc/dce/dce_clock_source.h | 9 + .../gpu/drm/amd/display/dc/dce/dce_hwseq.h | 43 + .../gpu/drm/amd/display/dc/dcn30/dcn30_mpc.h | 175 + .../gpu/drm/amd/display/dc/dcn303/Makefile | 39 + .../drm/amd/display/dc/dcn303/dcn303_dccg.h | 30 + .../drm/amd/display/dc/dcn303/dcn303_hwseq.c | 40 + .../drm/amd/display/dc/dcn303/dcn303_hwseq.h | 17 + .../drm/amd/display/dc/dcn303/dcn303_init.c | 19 + .../drm/amd/display/dc/dcn303/dcn303_init.h | 15 + .../amd/display/dc/dcn303/dcn303_resource.c | 1675 + .../amd/display/dc/dcn303/dcn303_resource.h | 17 + .../gpu/drm/amd/display/dc/gpio/hw_factory.c | 1 + .../drm/amd/display/dc/gpio/hw_translate.c | 1 + drivers/gpu/drm/amd/display/dc/irq/Makefile | 8 + .../dc/irq/dcn303/irq_service_dcn303.c | 262 + .../dc/irq/dcn303/irq_service_dcn303.h | 15 + drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 1 + drivers/gpu/drm/amd/display/dmub/src/Makefile | 1 + .../drm/amd/display/dmub/src/dmub_dcn303.c | 37 + .../drm/amd/display/dmub/src/dmub_dcn303.h | 19 + .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 8 + .../gpu/drm/amd/display/include/dal_asic_id.h | 4 +- .../gpu/drm/amd/display/include/dal_types.h | 1 + .../include/asic_reg/dcn/dcn_3_0_3_offset.h | 8427 ++++ .../include/asic_reg/dcn/dcn_3_0_3_sh_mask.h | 35330 ++++++++++++++++ .../include/asic_reg/dcn/dpcs_3_0_3_offset.h | 204 + .../include/asic_reg/dcn/dpcs_3_0_3_sh_mask.h | 1192 + .../drm/amd/include/beige_goby_ip_offset.h | 1274 + .../pm/inc/smu11_driver_if_sienna_cichlid.h | 366 +- drivers/gpu/drm/amd/pm/inc/smu_v11_0.h | 1 + drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 799 +- .../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 10 +- include/drm/amd_asic_type.h | 1 + 62 files changed, 50382 insertions(+), 117 deletions(-) create mode 100755 drivers/gpu/drm/amd/amdgpu/beige_goby_reg_init.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/Makefile create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_dccg.h create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.h create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.h create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.h create mode 100644 drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.c create mode 100644 drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.h create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.c create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_3_0_3_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_3_0_3_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/dcn/dpcs_3_0_3_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/dcn/dpcs_3_0_3_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/beige_goby_ip_offset.h
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 1/49 drm/amd/amdgpu: add beige_goby asic type
From: Chengming Gui <[email protected]>
Add chip type for beige_goby
v2: fix enum count (Alex)
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + include/drm/amd_asic_type.h | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -119,6 +119,7 @@ const char *amdgpu_asic_name[] = {"NAVY_FLOUNDER" ,"VANGOGH" ,"DIMGREY_CAVEFISH" , +"BEIGE_GOBY" , "LAST", };
include/drm/amd_asic_type.h +1 -0
@@ -59,6 +59,7 @@ enum amd_asic_type {CHIP_NAVY_FLOUNDER ,/* 30 */ CHIP_VANGOGH ,/* 31 */ CHIP_DIMGREY_CAVEFISH ,/* 32 */ +CHIP_BEIGE_GOBY ,/* 33 */ CHIP_LAST, };
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 2/49 drm/amd/amdgpu: set fw load type for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Use direct load for beige_goby
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +2 -0
@@ -407,6 +407,8 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)return AMDGPU_FW_LOAD_DIRECT ; else return AMDGPU_FW_LOAD_PSP; +case CHIP_BEIGE_GOBY : +return AMDGPU_FW_LOAD_DIRECT ;default :DRM_ERROR ("Unknown firmware load type\n" ); }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 3/49 drm/amd/amdgpu: set asic family and ip blocks for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Same as navi series
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -2021,6 +2021,7 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :case CHIP_VANGOGH :if (adev->asic_type ==CHIP_VANGOGH ) adev->family =AMDGPU_FAMILY_VGH ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 4/49 drm/amd/amdgpu: add support for beige_goby firmware
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add support for beige_goby cp/rlc firmware
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +10 -0
@@ -236,6 +236,13 @@ MODULE_FIRMWARE("amdgpu/dimgrey_cavefish_mec.bin");MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_mec2.bin" );MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_ce.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_pfp.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_me.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_mec.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_mec2.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_rlc.bin" ); +static const struct soc15_reg_golden golden_settings_gc_10_1[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_HW_CONTROL_4,0xffffffff ,0x00400014 ),
@@ -3928,6 +3935,9 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)case CHIP_DIMGREY_CAVEFISH : chip_name ="dimgrey_cavefish" ;break ; +case CHIP_BEIGE_GOBY : + chip_name ="beige_goby" ; +break ;default :BUG (); }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 5/49 drm/amd/amdgpu: add gmc support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Same as dimgrey_cavefish
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +3 -0
@@ -796,6 +796,7 @@ static int gmc_v10_0_mc_init(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :default : adev->gmc.gart_size =512ULL <<20 ;break ;
@@ -863,6 +864,7 @@ static int gmc_v10_0_sw_init(void *handle)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->num_vmhubs =2 ;/* * To fulfill 4-level page support,
@@ -978,6 +980,7 @@ static void gmc_v10_0_init_golden_registers(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :break ;default :break ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 6/49 drm/amd/amdgpu: add common support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add external id and set clock gating for beige_goby
--- drivers/gpu/drm/amd/amdgpu/nv.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +6 -0
@@ -1149,6 +1149,11 @@ static int nv_common_early_init(void *handle)AMD_PG_SUPPORT_MMHUB ; adev->external_rev_id = adev->rev_id +0x3c ;break ; +case CHIP_BEIGE_GOBY : + adev->cg_flags =0 ; + adev->pg_flags =0 ; + adev->external_rev_id = adev->rev_id +0x46 ; +break ;default :/* FIXME: not supported yet */ return -EINVAL ;
@@ -1263,6 +1268,7 @@ static int nv_common_set_clockgating_state(void *handle,case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->nbio.funcs->update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ); adev->nbio.funcs->update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 7/49 drm/amd/amdgpu: initialize IP offset for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add ip offset definition for beige_goby and initialize it
v2: squash in fixes (Alex)
--- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- .../gpu/drm/amd/amdgpu/beige_goby_reg_init.c | 54 + drivers/gpu/drm/amd/amdgpu/nv.c | 3 + drivers/gpu/drm/amd/amdgpu/nv.h | 1 + .../drm/amd/include/beige_goby_ip_offset.h | 1274 +++++++++++++++++ 5 files changed, 1334 insertions(+), 1 deletion(-) create mode 100755 drivers/gpu/drm/amd/amdgpu/beige_goby_reg_init.c create mode 100644 drivers/gpu/drm/amd/include/beige_goby_ip_offset.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
@@ -71,7 +71,8 @@ amdgpu-y += \ vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \ vega20_reg_init.o nbio_v7_4.o nbio_v2_3.o nv.o navi10_reg_init.o navi14_reg_init.o \ arct_reg_init.o navi12_reg_init.o mxgpu_nv.o sienna_cichlid_reg_init.o vangogh_reg_init.o \ - nbio_v7_2.o dimgrey_cavefish_reg_init.o hdp_v4_0.o hdp_v5_0.o aldebaran_reg_init.o aldebaran.o + nbio_v7_2.o dimgrey_cavefish_reg_init.o hdp_v4_0.o hdp_v5_0.o aldebaran_reg_init.o aldebaran.o \ + beige_goby_reg_init.o # add DF block amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/beige_goby_reg_init.c new file +54 -0
54 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/nv.c +3 -0
@@ -659,6 +659,9 @@ static int nv_reg_base_init(struct amdgpu_device *adev)case CHIP_DIMGREY_CAVEFISH :dimgrey_cavefish_reg_base_init (adev);break ; +case CHIP_BEIGE_GOBY : +beige_goby_reg_base_init (adev); +break ;default :return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/nv.h +1 -0
@@ -36,4 +36,5 @@ int navi12_reg_base_init(struct amdgpu_device *adev);int sienna_cichlid_reg_base_init (struct amdgpu_device *adev);void vangogh_reg_base_init (struct amdgpu_device *adev);int dimgrey_cavefish_reg_base_init (struct amdgpu_device *adev); +int beige_goby_reg_base_init (struct amdgpu_device *adev);#endif
drivers/gpu/drm/amd/include/beige_goby_ip_offset.h new file +1274 -0
1,274 lines not on this page · raw message
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 8/49 drm/amd/amdgpu: add mmhub support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Same as dimgrey_cavefish
--- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c +6 -0
@@ -544,6 +544,7 @@ static void mmhub_v2_0_update_medium_grain_clock_gating(struct amdgpu_device *adcase CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : def = data =RREG32_SOC15 (MMHUB ,0 , mmMM_ATC_L2_MISC_CG_Sienna_Cichlid); def1 = data1 =RREG32_SOC15 (MMHUB ,0 , mmDAGB0_CNTL_MISC2_Sienna_Cichlid);break ;
@@ -578,6 +579,7 @@ static void mmhub_v2_0_update_medium_grain_clock_gating(struct amdgpu_device *adcase CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :if (def != data)WREG32_SOC15 (MMHUB ,0 , mmMM_ATC_L2_MISC_CG_Sienna_Cichlid, data);if (def1 != data1)
@@ -601,6 +603,7 @@ static void mmhub_v2_0_update_medium_grain_light_sleep(struct amdgpu_device *adecase CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : def = data =RREG32_SOC15 (MMHUB ,0 , mmMM_ATC_L2_MISC_CG_Sienna_Cichlid);break ;default :
@@ -618,6 +621,7 @@ static void mmhub_v2_0_update_medium_grain_light_sleep(struct amdgpu_device *adecase CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :WREG32_SOC15 (MMHUB ,0 , mmMM_ATC_L2_MISC_CG_Sienna_Cichlid, data);break ;default :
@@ -640,6 +644,7 @@ static int mmhub_v2_0_set_clockgating(struct amdgpu_device *adev,case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :mmhub_v2_0_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ); mmhub_v2_0_update_medium_grain_light_sleep(adev,
@@ -663,6 +668,7 @@ static void mmhub_v2_0_get_clockgating(struct amdgpu_device *adev, u32 *flags)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : data =RREG32_SOC15 (MMHUB ,0 , mmMM_ATC_L2_MISC_CG_Sienna_Cichlid); data1 =RREG32_SOC15 (MMHUB ,0 , mmDAGB0_CNTL_MISC2_Sienna_Cichlid);break ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 9/49 drm/amd/amdgpu: add common ip block for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Same as dimgrey_cavefish
v2: fix comments typo
--- drivers/gpu/drm/amd/amdgpu/nv.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +3 -0
@@ -845,6 +845,9 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &vcn_v3_0_ip_block);amdgpu_device_ip_block_add (adev, &jpeg_v3_0_ip_block);break ; +case CHIP_BEIGE_GOBY : +amdgpu_device_ip_block_add (adev, &nv_common_ip_block); +break ;default :return -EINVAL ; }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 10/49 drm/amd/amdgpu: add gmc ip block for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Enable gmc block for beige_goby, same as sienna_cichlid
--- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 1 + drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +1 -0
@@ -681,6 +681,7 @@ static void gmc_v10_0_set_gfxhub_funcs(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->gfxhub.funcs = &gfxhub_v2_1_funcs;break ;default :
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -847,6 +847,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)break ;case CHIP_BEIGE_GOBY :amdgpu_device_ip_block_add (adev, &nv_common_ip_block); +amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);break ;default :return -EINVAL ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 11/49 drm/amd/amdgpu: add ih ip block for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Enable ih block for beige_goby, same as dimgrey_cavefish
--- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 1 + drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/navi10_ih.c +1 -0
@@ -311,6 +311,7 @@ static int navi10_ih_irq_init(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : ih_chicken =RREG32_SOC15 (OSSSYS ,0 , mmIH_CHICKEN_Sienna_Cichlid); ih_chicken =REG_SET_FIELD (ih_chicken,IH_CHICKEN ,MC_SPACE_GPA_ENABLE ,1 );
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -848,6 +848,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)case CHIP_BEIGE_GOBY :amdgpu_device_ip_block_add (adev, &nv_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block); +amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block);break ;default :return -EINVAL ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 12/49 drm/amd/amdgpu: add gfx ip block for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Enable gfx block for beige_goby, same as dimgrey_cavefish
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +++++ drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 2 files changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +5 -0
@@ -4506,6 +4506,7 @@ static void gfx_v10_0_gpu_early_init(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->gfx.config.max_hw_contexts =8 ; adev->gfx.config.sc_prim_fifo_size_frontend =0x20 ; adev->gfx.config.sc_prim_fifo_size_backend =0x100 ;
@@ -4630,6 +4631,7 @@ static int gfx_v10_0_sw_init(void *handle)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->gfx.me.num_me =1 ; adev->gfx.me.num_pipe_per_me =1 ; adev->gfx.me.num_queue_per_pipe =1 ;
@@ -7555,6 +7557,7 @@ static int gfx_v10_0_early_init(void *handle)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->gfx.num_gfx_rings = GFX10_NUM_GFX_RINGS_Sienna_Cichlid;break ;default :
@@ -8040,6 +8043,7 @@ static int gfx_v10_0_set_clockgating_state(void *handle,case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :gfx_v10_0_update_gfx_clock_gating (adev, state ==AMD_CG_STATE_GATE );break ;
@@ -9150,6 +9154,7 @@ static void gfx_v10_0_set_rlc_funcs(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->gfx.rlc.funcs = &gfx_v10_0_rlc_funcs;break ;case CHIP_NAVI12 :
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -849,6 +849,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &nv_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block); +amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);break ;default :return -EINVAL ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 13/49 drm/amd/amdgpu: add sdma ip block for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Enable sdma block for beige_goby, same as sienna_cichlid
v2: share the same setting of sdma instance num with vangogh
--- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 7 +++++++ 2 files changed, 8 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -850,6 +850,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block); +amdgpu_device_ip_block_add (adev, &sdma_v5_2_ip_block);break ;default :return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +7 -0
@@ -47,6 +47,7 @@MODULE_FIRMWARE ("amdgpu/sienna_cichlid_sdma.bin" );MODULE_FIRMWARE ("amdgpu/navy_flounder_sdma.bin" );MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_sdma.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_sdma.bin" );MODULE_FIRMWARE ("amdgpu/vangogh_sdma.bin" );
@@ -92,6 +93,7 @@ static void sdma_v5_2_init_golden_registers(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :break ;default :break ;
@@ -163,6 +165,9 @@ static int sdma_v5_2_init_microcode(struct amdgpu_device *adev)case CHIP_DIMGREY_CAVEFISH : chip_name ="dimgrey_cavefish" ;break ; +case CHIP_BEIGE_GOBY : + chip_name ="beige_goby" ; +break ;default :BUG (); }
@@ -1228,6 +1233,7 @@ static int sdma_v5_2_early_init(void *handle) adev->sdma.num_instances =2 ;break ;case CHIP_VANGOGH : +case CHIP_BEIGE_GOBY : adev->sdma.num_instances =1 ;break ;default :
@@ -1628,6 +1634,7 @@ static int sdma_v5_2_set_clockgating_state(void *handle,case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :sdma_v5_2_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ); sdma_v5_2_update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 14/49 drm/amd/amdgpu: configure beige_goby gfx according to gfx 10.3's definition
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
The gfx version of beige_goby is 10.3, identical to sienna_cichlid,
follow the way of sienna_cichlid
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +9 -0
@@ -6139,6 +6139,7 @@ static void gfx_v10_0_cp_gfx_set_doorbell(struct amdgpu_device *adev,case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : tmp =REG_SET_FIELD (0 ,CP_RB_DOORBELL_RANGE_LOWER , DOORBELL_RANGE_LOWER_Sienna_Cichlid, ring->doorbell_index);WREG32_SOC15 (GC ,0 , mmCP_RB_DOORBELL_RANGE_LOWER, tmp);
@@ -6274,6 +6275,7 @@ static void gfx_v10_0_cp_compute_enable(struct amdgpu_device *adev, bool enable)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :WREG32_SOC15 (GC ,0 , mmCP_MEC_CNTL_Sienna_Cichlid,0 );break ;default :
@@ -6286,6 +6288,7 @@ static void gfx_v10_0_cp_compute_enable(struct amdgpu_device *adev, bool enable)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :WREG32_SOC15 (GC ,0 , mmCP_MEC_CNTL_Sienna_Cichlid, (CP_MEC_CNTL__MEC_ME1_HALT_MASK |CP_MEC_CNTL__MEC_ME2_HALT_MASK ));
@@ -6382,6 +6385,7 @@ static void gfx_v10_0_kiq_setting(struct amdgpu_ring *ring)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : tmp =RREG32_SOC15 (GC ,0 , mmRLC_CP_SCHEDULERS_Sienna_Cichlid); tmp &=0xffffff00 ; tmp |= (ring->me <<5 ) | (ring->pipe <<3 ) | (ring->queue);
@@ -7096,6 +7100,7 @@ static bool gfx_v10_0_check_grbm_cam_remapping(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : data =RREG32_SOC15 (GC ,0 , mmVGT_ESGS_RING_SIZE_Sienna_Cichlid);WREG32_SOC15 (GC ,0 , mmVGT_ESGS_RING_SIZE_Sienna_Cichlid,0 );WREG32_SOC15 (GC ,0 , mmVGT_ESGS_RING_SIZE_UMD, pattern);
@@ -7139,6 +7144,7 @@ static void gfx_v10_0_setup_grbm_cam_remapping(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :/* mmVGT_TF_RING_SIZE_UMD -> mmVGT_TF_RING_SIZE */ data = (SOC15_REG_OFFSET (GC ,0 , mmVGT_TF_RING_SIZE_UMD) << GRBM_CAM_DATA__CAM_ADDR__SHIFT) |
@@ -7448,6 +7454,7 @@ static int gfx_v10_0_soft_reset(void *handle)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :if (REG_GET_FIELD (tmp,GRBM_STATUS2 , RLC_BUSY_Sienna_Cichlid)) grbm_soft_reset = REG_SET_FIELD(grbm_soft_reset, GRBM_SOFT_RESET,
@@ -7614,6 +7621,7 @@ static void gfx_v10_0_set_safe_mode(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :WREG32_SOC15 (GC ,0 , mmRLC_SAFE_MODE_Sienna_Cichlid, data);/* wait for RLC_SAFE_MODE */
@@ -7648,6 +7656,7 @@ static void gfx_v10_0_unset_safe_mode(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :WREG32_SOC15 (GC ,0 , mmRLC_SAFE_MODE_Sienna_Cichlid, data);break ;default :
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 15/49 drm/amd/amdgpu: add virtual display support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add virtual ip block for beige_goby
--- drivers/gpu/drm/amd/amdgpu/nv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -0
@@ -851,6 +851,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v5_2_ip_block); +if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev)) +amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);break ;default :return -EINVAL ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 16/49 drm/amd/amdgpu: support cp_fw_write_wait for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Same as dimgrey_cavefish to support WAIT_REG_MEM packet.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -3820,6 +3820,7 @@ static void gfx_v10_0_check_fw_write_wait(struct amdgpu_device *adev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : adev->gfx.cp_fw_write_wait = true;break ;default :
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 17/49 drm/amd/amdgpu: Use IP discovery table for beige goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Rather than gpu info firmware.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -1808,6 +1808,7 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :default :return 0 ;case CHIP_VEGA10 :
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 18/49 drm/amdkfd: support beige_goby KFD
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add KFD support for beige_goby
v2: fix asic name typo
v3: squash in updates (Alex)
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 61 +++++++++++++++++++ drivers/gpu/drm/amd/amdkfd/kfd_device.c | 19 ++++++ .../drm/amd/amdkfd/kfd_device_queue_manager.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c | 1 + .../gpu/drm/amd/amdkfd/kfd_packet_manager.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 1 + 6 files changed, 84 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +61 -0
@@ -689,6 +689,63 @@ static struct kfd_gpu_cache_info dimgrey_cavefish_cache_info[] = { }, }; +static struct kfd_gpu_cache_info beige_goby_cache_info[] = { + { +/* TCP L1 Cache per CU */ + .cache_size =16 , + .cache_level =1 , + .flags = (CRAT_CACHE_FLAGS_ENABLED | +CRAT_CACHE_FLAGS_DATA_CACHE | +CRAT_CACHE_FLAGS_SIMD_CACHE ), + .num_cu_shared =1 , + }, + { +/* Scalar L1 Instruction Cache per SQC */ + .cache_size =32 , + .cache_level =1 , + .flags = (CRAT_CACHE_FLAGS_ENABLED | +CRAT_CACHE_FLAGS_INST_CACHE | +CRAT_CACHE_FLAGS_SIMD_CACHE ), + .num_cu_shared =2 , + }, + { +/* Scalar L1 Data Cache per SQC */ + .cache_size =16 , + .cache_level =1 , + .flags = (CRAT_CACHE_FLAGS_ENABLED | +CRAT_CACHE_FLAGS_DATA_CACHE | +CRAT_CACHE_FLAGS_SIMD_CACHE ), + .num_cu_shared =2 , + }, + { +/* GL1 Data Cache per SA */ + .cache_size =128 , + .cache_level =1 , + .flags = (CRAT_CACHE_FLAGS_ENABLED | +CRAT_CACHE_FLAGS_DATA_CACHE | +CRAT_CACHE_FLAGS_SIMD_CACHE ), + .num_cu_shared =8 , + }, + { +/* L2 Data Cache per GPU (Total Tex Cache) */ + .cache_size =1024 , + .cache_level =2 , + .flags = (CRAT_CACHE_FLAGS_ENABLED | +CRAT_CACHE_FLAGS_DATA_CACHE | +CRAT_CACHE_FLAGS_SIMD_CACHE ), + .num_cu_shared =8 , + }, + { +/* L3 Data Cache per GPU */ + .cache_size =16 *1024 , + .cache_level =3 , + .flags = (CRAT_CACHE_FLAGS_ENABLED | +CRAT_CACHE_FLAGS_DATA_CACHE | +CRAT_CACHE_FLAGS_SIMD_CACHE ), + .num_cu_shared =8 , + }, +}; +static void kfd_populated_cu_info_cpu (struct kfd_topology_device *dev,struct crat_subtype_computeunit *cu) {
@@ -1322,6 +1379,10 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev, pcache_info = vangogh_cache_info; num_of_cache_types =ARRAY_SIZE (vangogh_cache_info);break ; +case CHIP_BEIGE_GOBY : + pcache_info = beige_goby_cache_info; + num_of_cache_types =ARRAY_SIZE (beige_goby_cache_info); +break ;default :return -EINVAL ; }
drivers/gpu/drm/amd/amdkfd/kfd_device.c +19 -0
@@ -558,6 +558,24 @@ static const struct kfd_device_info dimgrey_cavefish_device_info = { .num_sdma_queues_per_engine = 8, }; +static const struct kfd_device_info beige_goby_device_info = { + .asic_family =CHIP_BEIGE_GOBY , + .asic_name ="beige_goby" , + .max_pasid_bits =16 , + .max_no_of_hqd =24 , + .doorbell_size =8 , + .ih_ring_entry_size =8 *sizeof (uint32_t ), + .event_interrupt_class = &event_interrupt_class_v9, + .num_of_watch_points =4 , + .mqd_size_aligned =MQD_SIZE_ALIGNED , + .needs_iommu_device = false, + .supports_cwsr = true, + .needs_pci_atomics = false, + .num_sdma_engines =1 , + .num_xgmi_sdma_engines =0 , + .num_sdma_queues_per_engine =8 , +}; +/* For each entry, [0] is regular and [1] is virtualisation device. */ static const struct kfd_device_info *kfd_supported_devices[][2 ] = {
@@ -586,6 +604,7 @@ static const struct kfd_device_info *kfd_supported_devices[][2] = { [CHIP_NAVY_FLOUNDER] = {&navy_flounder_device_info, &navy_flounder_device_info}, [CHIP_VANGOGH] = {&vangogh_device_info, NULL}, [CHIP_DIMGREY_CAVEFISH] = {&dimgrey_cavefish_device_info, &dimgrey_cavefish_device_info}, + [CHIP_BEIGE_GOBY] = {&beige_goby_device_info, &beige_goby_device_info}, }; static int kfd_gtt_sa_init(struct kfd_dev *kfd, unsigned int buf_size,
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1 -0
@@ -1936,6 +1936,7 @@ struct device_queue_manager *device_queue_manager_init(struct kfd_dev *dev)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :device_queue_manager_init_v10_navi10 (&dqm->asic_ops);break ;default :
drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c +1 -0
@@ -424,6 +424,7 @@ int kfd_init_apertures(struct kfd_process *process)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :kfd_init_apertures_v9 (pdd, id);break ;default :
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c +1 -0
@@ -249,6 +249,7 @@ int pm_init(struct packet_manager *pm, struct device_queue_manager *dqm)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : pm->pmf = &kfd_v9_pm_funcs;break ;case CHIP_ALDEBARAN :
drivers/gpu/drm/amd/amdkfd/kfd_topology.c +1 -0
@@ -1385,6 +1385,7 @@ int kfd_topology_add_device(struct kfd_dev *gpu)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY : dev->node_props.capability |= ((HSA_CAP_DOORBELL_TYPE_2_0 <<HSA_CAP_DOORBELL_TYPE_TOTALBITS_SHIFT ) &HSA_CAP_DOORBELL_TYPE_TOTALBITS_MASK );
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 19/49 drm/amdkfd: add kfd2kgd funcs for beige_goby kfd support
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add the function pointer.
--- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -0
@@ -82,6 +82,7 @@ static const struct kfd2kgd_calls *kfd2kgd_funcs[] = { [CHIP_NAVY_FLOUNDER] = &gfx_v10_3_kfd2kgd, [CHIP_VANGOGH] = &gfx_v10_3_kfd2kgd, [CHIP_DIMGREY_CAVEFISH] = &gfx_v10_3_kfd2kgd, + [CHIP_BEIGE_GOBY] = &gfx_v10_3_kfd2kgd, };#ifdef KFD_SUPPORT_IOMMU_V2
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 20/49 drm/amd/amdgpu: add smu support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Use soft-pptable for beige_goby
v2: fix format
--- drivers/gpu/drm/amd/amdgpu/nv.c | 3 +++ drivers/gpu/drm/amd/pm/inc/smu_v11_0.h | 1 + drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 12 ++++++++++-- 4 files changed, 15 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/nv.c +3 -0
@@ -853,6 +853,9 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &sdma_v5_2_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block); +if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT && +is_support_sw_smu (adev)) +amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block);break ;default :return -EINVAL ;
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h +1 -0
@@ -34,6 +34,7 @@#define SMU11_DRIVER_IF_VERSION_Navy_Flounder 0xE#define SMU11_DRIVER_IF_VERSION_VANGOGH 0x03#define SMU11_DRIVER_IF_VERSION_Dimgrey_Cavefish 0xF +#define SMU11_DRIVER_IF_VERSION_Beige_Goby 0x7/* MP Apertures */ #define MP0_Public 0x03800000
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +1 -0
@@ -570,6 +570,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :sienna_cichlid_set_ppt_funcs (smu);break ;case CHIP_ALDEBARAN :
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +10 -2
@@ -63,6 +63,7 @@ MODULE_FIRMWARE("amdgpu/navi12_smc.bin");MODULE_FIRMWARE ("amdgpu/sienna_cichlid_smc.bin" );MODULE_FIRMWARE ("amdgpu/navy_flounder_smc.bin" );MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_smc.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_smc.bin" );#define SMU11_VOLTAGE_SCALE 4
@@ -115,6 +116,9 @@ int smu_v11_0_init_microcode(struct smu_context *smu)case CHIP_DIMGREY_CAVEFISH : chip_name ="dimgrey_cavefish" ;break ; +case CHIP_BEIGE_GOBY : + chip_name ="beige_goby" ; +break ;default :dev_err (adev->dev,"Unsupported ASIC type %d\n" , adev->asic_type);return -EINVAL ;
@@ -259,6 +263,9 @@ int smu_v11_0_check_fw_version(struct smu_context *smu)case CHIP_DIMGREY_CAVEFISH : smu->smc_driver_if_version = SMU11_DRIVER_IF_VERSION_Dimgrey_Cavefish;break ; +case CHIP_BEIGE_GOBY : + smu->smc_driver_if_version = SMU11_DRIVER_IF_VERSION_Beige_Goby; +break ;default :dev_err (smu->adev->dev,"smu unsupported asic type:%d.\n" , smu->adev->asic_type); smu->smc_driver_if_version =SMU11_DRIVER_IF_VERSION_INV ;
@@ -341,7 +348,8 @@ int smu_v11_0_setup_pptable(struct smu_context *smu) hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data; version_major =le16_to_cpu (hdr->header.header_version_major); version_minor =le16_to_cpu (hdr->header.header_version_minor); -if (version_major ==2 && smu->smu_table.boot_values.pp_table_id >0 ) { +if ((version_major ==2 && smu->smu_table.boot_values.pp_table_id >0 ) || + adev->asic_type ==CHIP_BEIGE_GOBY ) {dev_info (adev->dev,"use driver provided pptable %d\n" , smu->smu_table.boot_values.pp_table_id);switch (version_minor) {case 0 :
@@ -729,7 +737,7 @@ int smu_v11_0_init_display_count(struct smu_context *smu, uint32_t count)* display num currently */ if (adev->asic_type >=CHIP_NAVY_FLOUNDER && - adev->asic_type <=CHIP_DIMGREY_CAVEFISH ) + adev->asic_type <=CHIP_BEIGE_GOBY )return 0 ; return smu_cmn_send_smc_msg_with_param(smu,
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 21/49 drm/amd/amdgpu: add psp support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
add general PSP support for beige_goby
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 3 +-- drivers/gpu/drm/amd/amdgpu/nv.c | 5 +++++ drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 9 +++++++++ 4 files changed, 16 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -0
@@ -104,6 +104,7 @@ static int psp_early_init(void *handle)case CHIP_NAVY_FLOUNDER :case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :psp_v11_0_set_psp_funcs (psp); psp->autoload_supported = true;break ;
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1 -2
@@ -403,12 +403,11 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)case CHIP_VANGOGH :case CHIP_DIMGREY_CAVEFISH :case CHIP_ALDEBARAN : +case CHIP_BEIGE_GOBY :if (!load_type)return AMDGPU_FW_LOAD_DIRECT ;else return AMDGPU_FW_LOAD_PSP ; -case CHIP_BEIGE_GOBY : -return AMDGPU_FW_LOAD_DIRECT ;default :DRM_ERROR ("Unknown firmware load type\n" ); }
drivers/gpu/drm/amd/amdgpu/nv.c +5 -0
@@ -849,6 +849,11 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &nv_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &navi10_ih_ip_block); +if (likely (adev->firmware.load_type ==AMDGPU_FW_LOAD_PSP )) +amdgpu_device_ip_block_add (adev, &psp_v11_0_ip_block); +if (adev->firmware.load_type ==AMDGPU_FW_LOAD_PSP && +is_support_sw_smu (adev)) +amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v5_2_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +9 -0
@@ -63,6 +63,7 @@ MODULE_FIRMWARE("amdgpu/vangogh_asd.bin");MODULE_FIRMWARE ("amdgpu/vangogh_toc.bin" );MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_sos.bin" );MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_ta.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_sos.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024
@@ -115,6 +116,9 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)case CHIP_DIMGREY_CAVEFISH : chip_name ="dimgrey_cavefish" ;break ; +case CHIP_BEIGE_GOBY : + chip_name ="beige_goby" ; +break ;default :BUG (); }
@@ -200,6 +204,11 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)if (err)return err;break ; +case CHIP_BEIGE_GOBY : + err =psp_init_sos_microcode (psp, chip_name); +if (err) +return err; +break ;case CHIP_VANGOGH : err =psp_init_asd_microcode (psp, chip_name);if (err)
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 22/49 drm/amdgpu: add mmhub client support for beige goby
In reply to Alex DeucherFor decoding GPUVM page faults.
--- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c +27 -0
@@ -93,6 +93,30 @@ static const char *mmhub_client_ids_sienna_cichlid[][2] = { [15][1] = "OSS", }; +static const char *mmhub_client_ids_beige_goby[][2 ] = { + [3 ][0 ] ="DCEDMC" , + [4 ][0 ] ="DCEVGA" , + [5 ][0 ] ="MP0" , + [6 ][0 ] ="MP1" , + [8 ][0 ] ="VMC" , + [9 ][0 ] ="VCNU0" , + [11 ][0 ] ="VCN0" , + [14 ][0 ] ="HDP" , + [15 ][0 ] ="OSS" , + [0 ][1 ] ="DBGU0" , + [1 ][1 ] ="DBGU1" , + [2 ][1 ] ="DCEDWB" , + [3 ][1 ] ="DCEDMC" , + [4 ][1 ] ="DCEVGA" , + [5 ][1 ] ="MP0" , + [6 ][1 ] ="MP1" , + [7 ][1 ] ="XDP" , + [9 ][1 ] ="VCNU0" , + [11 ][1 ] ="VCN0" , + [14 ][1 ] ="HDP" , + [15 ][1 ] ="OSS" , +}; +static uint32_t mmhub_v2_0_get_invalidate_req (unsigned int vmid,uint32_t flush_type) {
@@ -139,6 +163,9 @@ mmhub_v2_0_print_l2_protection_fault_status(struct amdgpu_device *adev,case CHIP_DIMGREY_CAVEFISH : mmhub_cid = mmhub_client_ids_sienna_cichlid[cid][rw];break ; +case CHIP_BEIGE_GOBY : + mmhub_cid = mmhub_client_ids_beige_goby[cid][rw]; +break ;default : mmhub_cid =NULL ;break ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 23/49 drm/amdgpu: add gc_10_3_5 golden setting for beige_goby
In reply to Alex DeucherFrom: Hawking Zhang <[email protected]>
execute gc_10_3_5 golden registers one-time initialization
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +38 -0
@@ -3415,6 +3415,39 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_4[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmLDS_CONFIG,0x00000020 ,0x00000020 ) }; +static const struct soc15_reg_golden golden_settings_gc_10_3_5[] = { +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SPI_CS_CLK_CTRL,0x78000000 ,0x78000100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCPF_GCR_CNTL,0x0007ffff ,0x0000c000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG3,0xffffffff ,0x00000280 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x00800000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGCR_GENERAL_CNTL,0x1ff1ffff ,0x00000500 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2A_ADDR_MATCH_MASK,0xffffffff ,0xffffffcf ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_ADDR_MATCH_MASK,0xffffffff ,0xffffffcf ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CM_CTRL1,0xff8fff0f ,0x580f1008 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_CTRL3,0xf7ffffff ,0x00f80988 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmLDS_CONFIG,0x000001ff ,0x00000020 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_CL_ENHANCE,0xf17fffff ,0x01200007 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_CONFIG,0xe07df47f ,0x00180070 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER0_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER1_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER10_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER11_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER12_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER13_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER14_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER15_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER2_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER3_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER4_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER5_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER6_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER7_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER8_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQ_PERFCOUNTER9_SELECT,0xf0f001ff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTA_CNTL_AUX,0xfff7ffff ,0x01030000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmUTCL1_CTRL,0xffbfffff ,0x00a00000 ) +}; +#define DEFAULT_SH_MEM_CONFIG \ ((SH_MEM_ADDRESS_MODE_64 << SH_MEM_CONFIG__ADDRESS_MODE__SHIFT) | \ (SH_MEM_ALIGNMENT_MODE_UNALIGNED << SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT) | \
@@ -3635,6 +3668,11 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_gc_10_3_4, (const u32)ARRAY_SIZE(golden_settings_gc_10_3_4));break ; +case CHIP_BEIGE_GOBY : +soc15_program_register_sequence (adev, + golden_settings_gc_10_3_5, + (const u32 )ARRAY_SIZE (golden_settings_gc_10_3_5)); +break ;default :break ; }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 24/49 drm/amdgpu: Enable VCN for Beige Goby
In reply to Alex DeucherFrom: Veerabadhran Gopalakrishnan <[email protected]>
Enabled VCN support for Beige Goby chip
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 8 ++ drivers/gpu/drm/amd/amdgpu/nv.c | 4 +- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 101 +++++++++++++----------- 3 files changed, 68 insertions(+), 45 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +8 -0
@@ -48,6 +48,7 @@#define FIRMWARE_VANGOGH "amdgpu/vangogh_vcn.bin"#define FIRMWARE_DIMGREY_CAVEFISH "amdgpu/dimgrey_cavefish_vcn.bin"#define FIRMWARE_ALDEBARAN "amdgpu/aldebaran_vcn.bin" +#define FIRMWARE_BEIGE_GOBY "amdgpu/beige_goby_vcn.bin"MODULE_FIRMWARE (FIRMWARE_RAVEN );MODULE_FIRMWARE (FIRMWARE_PICASSO );
@@ -63,6 +64,7 @@ MODULE_FIRMWARE(FIRMWARE_SIENNA_CICHLID);MODULE_FIRMWARE (FIRMWARE_NAVY_FLOUNDER );MODULE_FIRMWARE (FIRMWARE_VANGOGH );MODULE_FIRMWARE (FIRMWARE_DIMGREY_CAVEFISH ); +MODULE_FIRMWARE (FIRMWARE_BEIGE_GOBY );static void amdgpu_vcn_idle_work_handler (struct work_struct *work);
@@ -151,6 +153,12 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev) (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) adev->vcn.indirect_sram = true;break ; +case CHIP_BEIGE_GOBY : + fw_name =FIRMWARE_BEIGE_GOBY ; +if ((adev->firmware.load_type ==AMDGPU_FW_LOAD_PSP ) && + (adev->pg_flags &AMD_PG_SUPPORT_VCN_DPG )) + adev->vcn.indirect_sram = true; +break ;default :return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/nv.c +3 -1
@@ -861,6 +861,7 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT &&is_support_sw_smu (adev))amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block); +amdgpu_device_ip_block_add (adev, &vcn_v3_0_ip_block);break ;default :return -EINVAL ;
@@ -1171,7 +1172,8 @@ static int nv_common_early_init(void *handle)break ;case CHIP_BEIGE_GOBY : adev->cg_flags =0 ; - adev->pg_flags =0 ; + adev->pg_flags =AMD_PG_SUPPORT_VCN | +AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x46 ;break ;default :
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +57 -44
131 lines not on this page · raw message
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 25/49 drm/amd/amdgpu: update golden_setting_10_3_5 for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
add mmCGTT_SPI_{RA0/RA1}_CLK_CTRL setting
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +2 -0
@@ -3417,6 +3417,8 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_4[] =static const struct soc15_reg_golden golden_settings_gc_10_3_5[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SPI_CS_CLK_CTRL,0x78000000 ,0x78000100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SPI_RA0_CLK_CTRL,0xb0000ff0 ,0x30000100 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCGTT_SPI_RA1_CLK_CTRL,0xff000000 ,0x7e000100 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCPF_GCR_CNTL,0x0007ffff ,0x0000c000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG3,0xffffffff ,0x00000280 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x00800000 ),
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 26/49 drm/amd/pm: add mode1 support for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Add mode1 reset as the default reset method for beige_goby
--- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -534,6 +534,7 @@ nv_asic_reset_method(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :return AMD_RESET_METHOD_MODE1 ;default :if (amdgpu_dpm_is_baco_supported (adev))
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 27/49 drm/amd/pm: update smu11 driver interface header for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Use new struct name to identify beige_goby pptable due to extra added fields.
v2: squash in updates (Alex)
--- .../pm/inc/smu11_driver_if_sienna_cichlid.h | 366 +++++++++++++++++- drivers/gpu/drm/amd/pm/inc/smu_v11_0.h | 2 +- 2 files changed, 365 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/pm/inc/smu11_driver_if_sienna_cichlid.h +364 -2
@@ -129,8 +129,8 @@#define FEATURE_SMNCLK_DPM_BIT 47#define FEATURE_PERLINK_GMIDOWN_BIT 48#define FEATURE_GFX_EDC_BIT 49 -#define FEATURE_SPARE_50_BIT 50 -#define FEATURE_SPARE_51_BIT 51 +#define FEATURE_GFX_PER_PART_VMIN_BIT 50 +#define FEATURE_SMART_SHIFT_BIT 51#define FEATURE_SPARE_52_BIT 52#define FEATURE_SPARE_53_BIT 53#define FEATURE_SPARE_54_BIT 54
@@ -940,6 +940,367 @@ typedef struct { } PPTable_t; +typedef struct { +// MAJOR SECTION: SKU PARAMETERS + +uint32_t Version; + +// SECTION: Feature Enablement +uint32_t FeaturesToRun[NUM_FEATURES /32 ]; + +// SECTION: Infrastructure Limits +uint16_t SocketPowerLimitAc[PPT_THROTTLER_COUNT ];// Watts +uint16_t SocketPowerLimitAcTau[PPT_THROTTLER_COUNT ];// Time constant of LPF in ms +uint16_t SocketPowerLimitDc[PPT_THROTTLER_COUNT ];// Watts +uint16_t SocketPowerLimitDcTau[PPT_THROTTLER_COUNT ];// Time constant of LPF in ms + +uint16_t TdcLimit[TDC_THROTTLER_COUNT ];// Amps +uint16_t TdcLimitTau[TDC_THROTTLER_COUNT ];// Time constant of LPF in ms + +uint16_t TemperatureLimit[TEMP_COUNT ];// Celcius + +uint32_t FitLimit;// Failures in time (failures per million parts over the defined lifetime) + +// SECTION: Power Configuration +uint8_t TotalPowerConfig;//0-TDP, 1-TGP, 2-TCP Estimated, 3-TCP Measured. Use defines from PwrConfig_e +uint8_t TotalPowerPadding[3 ]; + +// SECTION: APCC Settings +uint32_t ApccPlusResidencyLimit; + +//SECTION: SMNCLK DPM +uint16_t SmnclkDpmFreq [NUM_SMNCLK_DPM_LEVELS ];// in MHz +uint16_t SmnclkDpmVoltage [NUM_SMNCLK_DPM_LEVELS ];// mV(Q2) + +uint32_t PaddingAPCC; +uint16_t PerPartDroopVsetGfxDfll[NUM_PIECE_WISE_LINEAR_DROOP_MODEL_VF_POINTS ];//In mV(Q2) +uint16_t PaddingPerPartDroop; + +// SECTION: Throttler settings +uint32_t ThrottlerControlMask;// See Throtter masks defines + +// SECTION: FW DSTATE Settings +uint32_t FwDStateMask;// See FW DState masks defines + +// SECTION: ULV Settings +uint16_t UlvVoltageOffsetSoc;// In mV(Q2) +uint16_t UlvVoltageOffsetGfx;// In mV(Q2) + +uint16_t MinVoltageUlvGfx;// In mV(Q2) Minimum Voltage ("Vmin") of VDD_GFX in ULV mode +uint16_t MinVoltageUlvSoc;// In mV(Q2) Minimum Voltage ("Vmin") of VDD_SOC in ULV mode + +uint16_t SocLIVmin; +uint16_t SocLIVminoffset; + +uint8_t GceaLinkMgrIdleThreshold;//Set by SMU FW during enablment of GFXOFF. Controls delay for GFX SDP port disconnection during idle events +uint8_t paddingRlcUlvParams[3 ]; + +// SECTION: Voltage Control Parameters +uint16_t MinVoltageGfx;// In mV(Q2) Minimum Voltage ("Vmin") of VDD_GFX +uint16_t MinVoltageSoc;// In mV(Q2) Minimum Voltage ("Vmin") of VDD_SOC +uint16_t MaxVoltageGfx;// In mV(Q2) Maximum Voltage allowable of VDD_GFX +uint16_t MaxVoltageSoc;// In mV(Q2) Maximum Voltage allowable of VDD_SOC + +uint16_t LoadLineResistanceGfx;// In mOhms with 8 fractional bits +uint16_t LoadLineResistanceSoc;// In mOhms with 8 fractional bits + +// SECTION: Temperature Dependent Vmin +uint16_t VDDGFX_TVmin;//Celcius +uint16_t VDDSOC_TVmin;//Celcius +uint16_t VDDGFX_Vmin_HiTemp;// mV Q2 +uint16_t VDDGFX_Vmin_LoTemp;// mV Q2 +uint16_t VDDSOC_Vmin_HiTemp;// mV Q2 +uint16_t VDDSOC_Vmin_LoTemp;// mV Q2 + +uint16_t VDDGFX_TVminHystersis;// Celcius +uint16_t VDDSOC_TVminHystersis;// Celcius + +//SECTION: DPM Config 1 +DpmDescriptor_t DpmDescriptor[PPCLK_COUNT ]; + +uint16_t FreqTableGfx [NUM_GFXCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableVclk [NUM_VCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableDclk [NUM_DCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableSocclk [NUM_SOCCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableUclk [NUM_UCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableDcefclk [NUM_DCEFCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableDispclk [NUM_DISPCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTablePixclk [NUM_PIXCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTablePhyclk [NUM_PHYCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableDtbclk [NUM_DTBCLK_DPM_LEVELS ];// In MHz +uint16_t FreqTableFclk [NUM_FCLK_DPM_LEVELS ];// In MHz +uint32_t Paddingclks; + +DroopInt_t PerPartDroopModelGfxDfll[NUM_PIECE_WISE_LINEAR_DROOP_MODEL_VF_POINTS ];//GHz ->Vstore in IEEE float format + +uint32_t DcModeMaxFreq [PPCLK_COUNT ];// In MHz + +uint8_t FreqTableUclkDiv [NUM_UCLK_DPM_LEVELS ];// 0:Div-1, 1:Div-1/2, 2:Div-1/4, 3:Div-1/8 + +// Used for MALL performance boost +uint16_t FclkBoostFreq;// In Mhz +uint16_t FclkParamPadding; + +// SECTION: DPM Config 2 +uint16_t Mp0clkFreq [NUM_MP0CLK_DPM_LEVELS ];// in MHz +uint16_t Mp0DpmVoltage [NUM_MP0CLK_DPM_LEVELS ];// mV(Q2) +uint16_t MemVddciVoltage [NUM_UCLK_DPM_LEVELS ];// mV(Q2) +uint16_t MemMvddVoltage [NUM_UCLK_DPM_LEVELS ];// mV(Q2) +// GFXCLK DPM +uint16_t GfxclkFgfxoffEntry;// in Mhz +uint16_t GfxclkFinit;// in Mhz +uint16_t GfxclkFidle;// in MHz +uint8_t GfxclkSource;// 0 = PLL, 1 = DFLL +uint8_t GfxclkPadding; + +// GFX GPO +uint8_t GfxGpoSubFeatureMask;// bit 0 = PACE, bit 1 = DEM +uint8_t GfxGpoEnabledWorkPolicyMask;//Any policy that GPO can be enabled +uint8_t GfxGpoDisabledWorkPolicyMask;//Any policy that GPO can be disabled +uint8_t GfxGpoPadding[1 ]; +uint32_t GfxGpoVotingAllow;//For indicating which feature changes should result in a GPO table recalculation + +uint32_t GfxGpoPadding32[4 ]; + +uint16_t GfxDcsFopt;// Optimal GFXCLK for DCS in Mhz +uint16_t GfxDcsFclkFopt;// Optimal FCLK for DCS in Mhz +uint16_t GfxDcsUclkFopt;// Optimal UCLK for DCS in Mhz + +uint16_t DcsGfxOffVoltage;//Voltage in mV(Q2) applied to VDDGFX when entering DCS GFXOFF phase + +uint16_t DcsMinGfxOffTime;//Minimum amount of time PMFW shuts GFX OFF as part of GFX DCS phase +uint16_t DcsMaxGfxOffTime;//Maximum amount of time PMFW can shut GFX OFF as part of GFX DCS phase at a stretch. + +uint32_t DcsMinCreditAccum;//Min amount of positive credit accumulation before waking GFX up as part of DCS. + +uint16_t DcsExitHysteresis;//The min amount of time power credit accumulator should have a value > 0 before SMU exits the DCS throttling phase. +uint16_t DcsTimeout;//This is the amount of time SMU FW waits for RLC to put GFX into GFXOFF before reverting to the fallback mechanism of throttling GFXCLK to Fmin. + +uint32_t DcsParamPadding[5 ]; + +uint16_t FlopsPerByteTable[RLC_PACE_TABLE_NUM_LEVELS ];// Q8.8 + +// UCLK section +uint8_t LowestUclkReservedForUlv;// Set this to 1 if UCLK DPM0 is reserved for ULV-mode only +uint8_t PaddingMem[3 ]; + +uint8_t UclkDpmPstates [NUM_UCLK_DPM_LEVELS ];// 4 DPM states, 0-P0, 1-P1, 2-P2, 3-P3. + +// Used for 2-Step UCLK change workaround +UclkDpmChangeRange_t UclkDpmSrcFreqRange;// In Mhz +UclkDpmChangeRange_t UclkDpmTargFreqRange;// In Mhz +uint16_t UclkDpmMidstepFreq;// In Mhz +uint16_t UclkMidstepPadding; + +// Link DPM Settings +uint8_t PcieGenSpeed[NUM_LINK_LEVELS ];///< 0:PciE-gen1 1:PciE-gen2 2:PciE-gen3 3:PciE-gen4 +uint8_t PcieLaneCount[NUM_LINK_LEVELS ];///< 1=x1, 2=x2, 3=x4, 4=x8, 5=x12, 6=x16 +uint16_t LclkFreq[NUM_LINK_LEVELS ]; + +// SECTION: Fan Control +uint16_t FanStopTemp;//Celcius +uint16_t FanStartTemp;//Celcius + +uint16_t FanGain[TEMP_COUNT ]; + +uint16_t FanPwmMin; +uint16_t FanAcousticLimitRpm; +uint16_t FanThrottlingRpm; +uint16_t FanMaximumRpm; +uint16_t MGpuFanBoostLimitRpm; +uint16_t FanTargetTemperature; +uint16_t FanTargetGfxclk; +uint16_t FanPadding16; +uint8_t FanTempInputSelect; +uint8_t FanPadding; +uint8_t FanZeroRpmEnable; +uint8_t FanTachEdgePerRev; + +// The following are AFC override parameters. Leave at 0 to use FW defaults. +int16_t FuzzyFan_ErrorSetDelta; +int16_t FuzzyFan_ErrorRateSetDelta; +int16_t FuzzyFan_PwmSetDelta; +uint16_t FuzzyFan_Reserved; + +// SECTION: AVFS +// Overrides +uint8_t OverrideAvfsGb[AVFS_VOLTAGE_COUNT ]; +uint8_t dBtcGbGfxDfllModelSelect;//0 -> fused piece-wise model, 1 -> piece-wise linear(PPTable), 2 -> quadratic model(PPTable) +uint8_t Padding8_Avfs; + +QuadraticInt_t qAvfsGb[AVFS_VOLTAGE_COUNT ];// GHz->V Override of fused curve +DroopInt_t dBtcGbGfxPll;// GHz->V BtcGb +DroopInt_t dBtcGbGfxDfll;// GHz->V BtcGb +DroopInt_t dBtcGbSoc;// GHz->V BtcGb +LinearInt_t qAgingGb[AVFS_VOLTAGE_COUNT ];// GHz->V + +PiecewiseLinearDroopInt_t PiecewiseLinearDroopIntGfxDfll;//GHz ->Vstore in IEEE float format + +QuadraticInt_t qStaticVoltageOffset[AVFS_VOLTAGE_COUNT ];// GHz->V + +uint16_t DcTol[AVFS_VOLTAGE_COUNT ];// mV Q2 + +uint8_t DcBtcEnabled[AVFS_VOLTAGE_COUNT ]; +uint8_t Padding8_GfxBtc[2 ]; + +uint16_t DcBtcMin[AVFS_VOLTAGE_COUNT ];// mV Q2 +uint16_t DcBtcMax[AVFS_VOLTAGE_COUNT ];// mV Q2 + +uint16_t DcBtcGb[AVFS_VOLTAGE_COUNT ];// mV Q2 + +// SECTION: XGMI +uint8_t XgmiDpmPstates[NUM_XGMI_LEVELS ];// 2 DPM states, high and low. 0-P0, 1-P1, 2-P2, 3-P3. +uint8_t XgmiDpmSpare[2 ]; + +// SECTION: Advanced Options +uint32_t DebugOverrides; +QuadraticInt_t ReservedEquation0; +QuadraticInt_t ReservedEquation1; +QuadraticInt_t ReservedEquation2; +QuadraticInt_t ReservedEquation3; + +// SECTION: Sku Reserved +uint8_t CustomerVariant; + +//VC BTC parameters are only applicable to VDD_GFX domain +uint8_t VcBtcEnabled; +uint16_t VcBtcVminT0;// T0_VMIN +uint16_t VcBtcFixedVminAgingOffset;// FIXED_VMIN_AGING_OFFSET +uint16_t VcBtcVmin2PsmDegrationGb;// VMIN_TO_PSM_DEGRADATION_GB +uint32_t VcBtcPsmA;// A_PSM +uint32_t VcBtcPsmB;// B_PSM +uint32_t VcBtcVminA;// A_VMIN +uint32_t VcBtcVminB;// B_VMIN + +//GPIO Board feature +uint16_t LedGpio;//GeneriA GPIO flag used to control the radeon LEDs +uint16_t GfxPowerStagesGpio;//Genlk_vsync GPIO flag used to control gfx power stages + +uint32_t SkuReserved[16 ]; + + + +// MAJOR SECTION: BOARD PARAMETERS + +//SECTION: Gaming Clocks +uint32_t GamingClk[6 ]; + +// SECTION: I2C Control +I2cControllerConfig_t I2cControllers[NUM_I2C_CONTROLLERS ]; + +uint8_t GpioScl;// GPIO Number for SCL Line, used only for CKSVII2C1 +uint8_t GpioSda;// GPIO Number for SDA Line, used only for CKSVII2C1 +uint8_t FchUsbPdSlaveAddr;//For requesting USB PD controller S-states via FCH I2C when entering PME turn off +uint8_t I2cSpare[1 ]; + +// SECTION: SVI2 Board Parameters +uint8_t VddGfxVrMapping;// Use VR_MAPPING* bitfields +uint8_t VddSocVrMapping;// Use VR_MAPPING* bitfields +uint8_t VddMem0VrMapping;// Use VR_MAPPING* bitfields +uint8_t VddMem1VrMapping;// Use VR_MAPPING* bitfields + +uint8_t GfxUlvPhaseSheddingMask;// set this to 1 to set PSI0/1 to 1 in ULV mode +uint8_t SocUlvPhaseSheddingMask;// set this to 1 to set PSI0/1 to 1 in ULV mode +uint8_t VddciUlvPhaseSheddingMask;// set this to 1 to set PSI0/1 to 1 in ULV mode +uint8_t MvddUlvPhaseSheddingMask;// set this to 1 to set PSI0/1 to 1 in ULV mode + +// SECTION: Telemetry Settings +uint16_t GfxMaxCurrent;// in Amps +int8_t GfxOffset;// in Amps +uint8_t Padding_TelemetryGfx; + +uint16_t SocMaxCurrent;// in Amps +int8_t SocOffset;// in Amps +uint8_t Padding_TelemetrySoc; + +uint16_t Mem0MaxCurrent;// in Amps +int8_t Mem0Offset;// in Amps +uint8_t Padding_TelemetryMem0; + +uint16_t Mem1MaxCurrent;// in Amps +int8_t Mem1Offset;// in Amps +uint8_t Padding_TelemetryMem1; + +uint32_t MvddRatio;// This is used for MVDD Svi2 Div Ratio workaround. It has 16 fractional bits (Q16.16) + +// SECTION: GPIO Settings +uint8_t AcDcGpio;// GPIO pin configured for AC/DC switching +uint8_t AcDcPolarity;// GPIO polarity for AC/DC switching +uint8_t VR0HotGpio;// GPIO pin configured for VR0 HOT event +uint8_t VR0HotPolarity;// GPIO polarity for VR0 HOT event + +uint8_t VR1HotGpio;// GPIO pin configured for VR1 HOT event +uint8_t VR1HotPolarity;// GPIO polarity for VR1 HOT event +uint8_t GthrGpio;// GPIO pin configured for GTHR Event +uint8_t GthrPolarity;// replace GPIO polarity for GTHR + +// LED Display Settings +uint8_t LedPin0;// GPIO number for LedPin[0] +uint8_t LedPin1;// GPIO number for LedPin[1] +uint8_t LedPin2;// GPIO number for LedPin[2] +uint8_t LedEnableMask; + +uint8_t LedPcie;// GPIO number for PCIE results +uint8_t LedError;// GPIO number for Error Cases +uint8_t LedSpare1[2 ]; + +// SECTION: Clock Spread Spectrum + +// GFXCLK PLL Spread Spectrum +uint8_t PllGfxclkSpreadEnabled;// on or off +uint8_t PllGfxclkSpreadPercent;// Q4.4 +uint16_t PllGfxclkSpreadFreq;// kHz + +// GFXCLK DFLL Spread Spectrum +uint8_t DfllGfxclkSpreadEnabled;// on or off +uint8_t DfllGfxclkSpreadPercent;// Q4.4 +uint16_t DfllGfxclkSpreadFreq;// kHz + +// UCLK Spread Spectrum +uint16_t UclkSpreadPadding; +uint16_t UclkSpreadFreq;// kHz + +// FCLK Spread Spectrum +uint8_t FclkSpreadEnabled;// on or off +uint8_t FclkSpreadPercent;// Q4.4 +uint16_t FclkSpreadFreq;// kHz + +// Section: Memory Config +uint32_t MemoryChannelEnabled;// For DRAM use only, Max 32 channels enabled bit mask. + +uint8_t DramBitWidth;// For DRAM use only. See Dram Bit width type defines +uint8_t PaddingMem1[3 ]; + +// Section: Total Board Power +uint16_t TotalBoardPower;//Only needed for TCP Estimated case, where TCP = TGP+Total Board Power +uint16_t BoardPowerPadding; + +// SECTION: XGMI Training +uint8_t XgmiLinkSpeed [NUM_XGMI_PSTATE_LEVELS ]; +uint8_t XgmiLinkWidth [NUM_XGMI_PSTATE_LEVELS ]; + +uint16_t XgmiFclkFreq [NUM_XGMI_PSTATE_LEVELS ]; +uint16_t XgmiSocVoltage [NUM_XGMI_PSTATE_LEVELS ]; + +// SECTION: UMC feature flags +uint8_t HsrEnabled; +uint8_t VddqOffEnabled; +uint8_t PaddingUmcFlags[2 ]; + +// UCLK Spread Spectrum +uint8_t UclkSpreadPercent[16 ]; + +// SECTION: Board Reserved +uint32_t BoardReserved[11 ]; + +// SECTION: Structure Padding + +// Padding for MMHUB - do not modify this +uint32_t MmHubPadding[8 ];// SMU internal use + + +}PPTable_beige_goby_t ; + typedef struct { // Time constant parameters for clock averages in ms uint16_t GfxclkAverageLpfTau;
@@ -1265,4 +1626,5 @@ typedef struct {// These defines are used with the SMC_MSG_SetUclkFastSwitch message. #define UCLK_SWITCH_SLOW 0#define UCLK_SWITCH_FAST 1 +#define UCLK_SWITCH_DUMMY 2#endif
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h +1 -1
@@ -34,7 +34,7 @@#define SMU11_DRIVER_IF_VERSION_Navy_Flounder 0xE#define SMU11_DRIVER_IF_VERSION_VANGOGH 0x03#define SMU11_DRIVER_IF_VERSION_Dimgrey_Cavefish 0xF -#define SMU11_DRIVER_IF_VERSION_Beige_Goby 0x7 +#define SMU11_DRIVER_IF_VERSION_Beige_Goby 0x9/* MP Apertures */ #define MP0_Public 0x03800000
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 28/49 drm/amd/pm: use macro to get pptable members
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Use macro to get the pptable members for different pptable structures.
v2: abstract the table operations especially get the table members
to simplify cover the two different pptable structures.
v3: move pptable operations related structures and functions into ppt.c
v4: use macro to simplify the operation to get pptable members
v5: fix parameter reference error and add dump pptable support for beige_goby
--- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 799 ++++++++++++++++-- 1 file changed, 731 insertions(+), 68 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +731 -68
@@ -73,6 +73,21 @@#define SMU_11_0_7_GFX_BUSY_THRESHOLD 15 +#define GET_PPTABLE_MEMBER (field, member) do {\ + if (smu->adev->asic_type == CHIP_BEIGE_GOBY)\ + (*member) = (smu->smu_table.driver_pptable + offsetof(PPTable_beige_goby_t, field));\ + else\ + (*member) = (smu->smu_table.driver_pptable + offsetof(PPTable_t, field));\ +} while(0) + +static int get_table_size (struct smu_context *smu) +{ +if (smu->adev->asic_type ==CHIP_BEIGE_GOBY ) +return sizeof (PPTable_beige_goby_t); +else +return sizeof (PPTable_t); +} +static struct cmn2asic_msg_mapping sienna_cichlid_message_map[SMU_MSG_MAX_COUNT ] = {MSG_MAP (TestMessage, PPSMC_MSG_TestMessage,1 ),MSG_MAP (GetSmuVersion, PPSMC_MSG_GetSmuVersion,1 ),
@@ -336,10 +351,9 @@ static int sienna_cichlid_check_powerplay_table(struct smu_context *smu)static int sienna_cichlid_append_powerplay_table (struct smu_context *smu) { -struct smu_table_context *table_context = &smu->smu_table; -PPTable_t *smc_pptable = table_context->driver_pptable;struct atom_smc_dpm_info_v4_9 *smc_dpm_table;int index, ret; +I2cControllerConfig_t *table_member; index =get_index_into_master_table (atom_master_list_of_data_tables_v2_1, smc_dpm_info);
@@ -348,9 +362,9 @@ static int sienna_cichlid_append_powerplay_table(struct smu_context *smu) (uint8_t **)&smc_dpm_table);if (ret)return ret; - -memcpy (smc_pptable->I2cControllers, smc_dpm_table->I2cControllers, -sizeof (*smc_dpm_table) -sizeof (smc_dpm_table->table_header)); +GET_PPTABLE_MEMBER (I2cControllers, &table_member); +memcpy (table_member, smc_dpm_table->I2cControllers, +sizeof (*smc_dpm_table) -sizeof (smc_dpm_table->table_header));return 0 ; }
@@ -360,9 +374,11 @@ static int sienna_cichlid_store_powerplay_table(struct smu_context *smu)struct smu_table_context *table_context = &smu->smu_table;struct smu_11_0_7_powerplay_table *powerplay_table = table_context->power_play_table; +int table_size; + table_size =get_table_size (smu);memcpy (table_context->driver_pptable, &powerplay_table->smc_pptable, -sizeof (PPTable_t)); + table_size);return 0 ; }
@@ -394,9 +410,11 @@ static int sienna_cichlid_tables_init(struct smu_context *smu) {struct smu_table_context *smu_table = &smu->smu_table;struct smu_table *tables = smu_table->tables; +int table_size; -SMU_TABLE_INIT (tables,SMU_TABLE_PPTABLE ,sizeof (PPTable_t), -PAGE_SIZE ,AMDGPU_GEM_DOMAIN_VRAM ); + table_size =get_table_size (smu); +SMU_TABLE_INIT (tables,SMU_TABLE_PPTABLE , table_size, +PAGE_SIZE ,AMDGPU_GEM_DOMAIN_VRAM );SMU_TABLE_INIT (tables,SMU_TABLE_WATERMARKS ,sizeof (Watermarks_t),PAGE_SIZE ,AMDGPU_GEM_DOMAIN_VRAM ); SMU_TABLE_INIT(tables, SMU_TABLE_SMU_METRICS, sizeof(SmuMetricsExternal_t),
@@ -572,13 +590,14 @@ static int sienna_cichlid_init_smc_tables(struct smu_context *smu)static int sienna_cichlid_set_default_dpm_table (struct smu_context *smu) {struct smu_11_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; -PPTable_t *driver_ppt = smu->smu_table.driver_pptable;struct smu_11_0_dpm_table *dpm_table;struct amdgpu_device *adev = smu->adev;int ret =0 ; +DpmDescriptor_t *table_member;/* socclk dpm table setup */ dpm_table = &dpm_context->dpm_tables.soc_table; +GET_PPTABLE_MEMBER (DpmDescriptor, &table_member);if (smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_SOCCLK_BIT )) { ret = smu_v11_0_set_single_dpm_table(smu, SMU_SOCCLK,
@@ -586,7 +605,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_SOCCLK ].SnapToDiscrete; + !table_member[PPCLK_SOCCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.socclk /100 ;
@@ -604,7 +623,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_GFXCLK ].SnapToDiscrete; + !table_member[PPCLK_GFXCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.gfxclk /100 ;
@@ -622,7 +641,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_UCLK ].SnapToDiscrete; + !table_member[PPCLK_UCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.uclk /100 ;
@@ -640,7 +659,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_FCLK ].SnapToDiscrete; + !table_member[PPCLK_FCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.fclk /100 ;
@@ -658,7 +677,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_VCLK_0 ].SnapToDiscrete; + !table_member[PPCLK_VCLK_0 ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.vclk /100 ;
@@ -677,7 +696,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_VCLK_1 ].SnapToDiscrete; + !table_member[PPCLK_VCLK_1 ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0].value =
@@ -697,7 +716,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_DCLK_0 ].SnapToDiscrete; + !table_member[PPCLK_DCLK_0 ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.dclk /100 ;
@@ -716,7 +735,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_DCLK_1 ].SnapToDiscrete; + !table_member[PPCLK_DCLK_1 ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0].value =
@@ -736,7 +755,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_DCEFCLK ].SnapToDiscrete; + !table_member[PPCLK_DCEFCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.dcefclk /100 ;
@@ -754,7 +773,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_PIXCLK ].SnapToDiscrete; + !table_member[PPCLK_PIXCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.dcefclk /100 ;
@@ -772,7 +791,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_DISPCLK ].SnapToDiscrete; + !table_member[PPCLK_DISPCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.dcefclk /100 ;
@@ -790,7 +809,7 @@ static int sienna_cichlid_set_default_dpm_table(struct smu_context *smu)if (ret)return ret; dpm_table->is_fine_grained = - !driver_ppt->DpmDescriptor[PPCLK_PHYCLK ].SnapToDiscrete; + !table_member[PPCLK_PHYCLK ].SnapToDiscrete; }else { dpm_table->count =1 ; dpm_table->dpm_levels[0 ].value = smu->smu_table.boot_values.dcefclk /100 ;
@@ -911,14 +930,15 @@ static int sienna_cichlid_get_current_clk_freq_by_table(struct smu_context *smu,static bool sienna_cichlid_is_support_fine_grained_dpm (struct smu_context *smu,enum smu_clk_type clk_type) { -PPTable_t *pptable = smu->smu_table.driver_pptable;DpmDescriptor_t *dpm_desc =NULL ; +DpmDescriptor_t *table_member;uint32_t clk_index =0 ; +GET_PPTABLE_MEMBER (DpmDescriptor, &table_member); clk_index =smu_cmn_to_asic_specific_index (smu,CMN2ASIC_MAPPING_CLK , clk_type); - dpm_desc = &pptable->DpmDescriptor[clk_index]; + dpm_desc = &table_member[clk_index];/* 0 - Fine grained DPM, 1 - Discrete DPM */ return dpm_desc->SnapToDiscrete ==0 ;
@@ -947,7 +967,8 @@ static int sienna_cichlid_print_clk_levels(struct smu_context *smu,struct smu_table_context *table_context = &smu->smu_table;struct smu_dpm_context *smu_dpm = &smu->smu_dpm;struct smu_11_0_dpm_context *dpm_context = smu_dpm->dpm_context; -PPTable_t *pptable = (PPTable_t *)table_context->driver_pptable; +uint16_t *table_member; +struct smu_11_0_7_overdrive_table *od_settings = smu->od_settings;OverDriveTable_t *od_table = (OverDriveTable_t *)table_context->overdrive_table;
@@ -1016,6 +1037,7 @@ static int sienna_cichlid_print_clk_levels(struct smu_context *smu,case SMU_PCIE : gen_speed =smu_v11_0_get_current_pcie_link_speed_level (smu); lane_width =smu_v11_0_get_current_pcie_link_width_level (smu); +GET_PPTABLE_MEMBER (LclkFreq, &table_member);for (i =0 ; i <NUM_LINK_LEVELS ; i++) size += sprintf(buf + size, "%d: %s %s %dMhz %s\n", i, (dpm_context->dpm_tables.pcie_table.pcie_gen[i] == 0) ? "2.5GT/s," :
@@ -1028,7 +1050,7 @@ static int sienna_cichlid_print_clk_levels(struct smu_context *smu, (dpm_context->dpm_tables.pcie_table.pcie_lane[i] ==4 ) ?"x8" : (dpm_context->dpm_tables.pcie_table.pcie_lane[i] ==5 ) ?"x12" : (dpm_context->dpm_tables.pcie_table.pcie_lane[i] ==6 ) ?"x16" :"" , - pptable->LclkFreq[i], + table_member[i], (gen_speed == dpm_context->dpm_tables.pcie_table.pcie_gen[i]) && (lane_width == dpm_context->dpm_tables.pcie_table.pcie_lane[i]) ? "*" : "");
@@ -1275,9 +1297,10 @@ static int sienna_cichlid_get_fan_speed_percent(struct smu_context *smu,static int sienna_cichlid_get_fan_parameters (struct smu_context *smu) { -PPTable_t *pptable = smu->smu_table.driver_pptable; +uint16_t *table_member; - smu->fan_max_rpm = pptable->FanMaximumRpm; +GET_PPTABLE_MEMBER (FanMaximumRpm, &table_member); + smu->fan_max_rpm = *table_member;return 0 ; }
@@ -1568,8 +1591,7 @@ static int sienna_cichlid_read_sensor(struct smu_context *smu, void *data, uint32_t *size) { int ret = 0; -struct smu_table_context *table_context = &smu->smu_table; -PPTable_t *pptable = table_context->driver_pptable; +uint16_t *temp;if (!data || !size)return -EINVAL ;
@@ -1577,7 +1599,8 @@ static int sienna_cichlid_read_sensor(struct smu_context *smu,mutex_lock (&smu->sensor_lock);switch (sensor) {case AMDGPU_PP_SENSOR_MAX_FAN_RPM : - *(uint32_t *)data = pptable->FanMaximumRpm; +GET_PPTABLE_MEMBER (FanMaximumRpm, &temp); + *(uint16_t *)data = *temp; *size =4 ;break ;case AMDGPU_PP_SENSOR_MEM_LOAD :
@@ -1645,14 +1668,16 @@ static int sienna_cichlid_get_uclk_dpm_states(struct smu_context *smu, uint32_tuint16_t *dpm_levels =NULL ;uint16_t i =0 ;struct smu_table_context *table_context = &smu->smu_table; -PPTable_t *driver_ppt =NULL ; +DpmDescriptor_t *table_member1; +uint16_t *table_member2;if (!clocks_in_khz || !num_states || !table_context->driver_pptable)return -EINVAL ; - driver_ppt = table_context->driver_pptable; - num_discrete_levels = driver_ppt->DpmDescriptor[PPCLK_UCLK ].NumDiscreteLevels; - dpm_levels = driver_ppt->FreqTableUclk; +GET_PPTABLE_MEMBER (DpmDescriptor, &table_member1); + num_discrete_levels = table_member1[PPCLK_UCLK ].NumDiscreteLevels; +GET_PPTABLE_MEMBER (FreqTableUclk, &table_member2); + dpm_levels = table_member2;if (num_discrete_levels ==0 || dpm_levels ==NULL )return -EINVAL ;
@@ -1674,25 +1699,29 @@ static int sienna_cichlid_get_thermal_temperature_range(struct smu_context *smu,struct smu_table_context *table_context = &smu->smu_table;struct smu_11_0_7_powerplay_table *powerplay_table = table_context->power_play_table; -PPTable_t *pptable = smu->smu_table.driver_pptable; +uint16_t *table_member; +uint16_t temp_edge, temp_hotspot, temp_mem;if (!range)return -EINVAL ;memcpy (range, &smu11_thermal_policy[0 ],sizeof (struct smu_temperature_range )); - range->max = pptable->TemperatureLimit[TEMP_EDGE ] * -SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; - range->edge_emergency_max = (pptable->TemperatureLimit[TEMP_EDGE ] +CTF_OFFSET_EDGE ) * -SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; - range->hotspot_crit_max = pptable->TemperatureLimit[TEMP_HOTSPOT ] * -SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; - range->hotspot_emergency_max = (pptable->TemperatureLimit[TEMP_HOTSPOT ] +CTF_OFFSET_HOTSPOT ) * +GET_PPTABLE_MEMBER (TemperatureLimit, &table_member); + temp_edge = table_member[TEMP_EDGE ]; + temp_hotspot = table_member[TEMP_HOTSPOT ]; + temp_mem = table_member[TEMP_MEM ]; + + range->max = temp_edge *SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; + range->edge_emergency_max = (temp_edge +CTF_OFFSET_EDGE ) *SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; - range->mem_crit_max = pptable->TemperatureLimit[TEMP_MEM ] * + range->hotspot_crit_max = temp_hotspot *SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; + range->hotspot_emergency_max = (temp_hotspot +CTF_OFFSET_HOTSPOT ) *SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; - range->mem_emergency_max = (pptable->TemperatureLimit[TEMP_MEM ] +CTF_OFFSET_MEM )* + range->mem_crit_max = temp_mem *SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; + range->mem_emergency_max = (temp_mem +CTF_OFFSET_MEM )*SMU_TEMPERATURE_UNITS_PER_CENTIGRADES ; + range->software_shutdown_temp = powerplay_table->software_shutdown_temp;return 0 ;
@@ -1726,17 +1755,14 @@ static int sienna_cichlid_get_power_limit(struct smu_context *smu) {struct smu_11_0_7_powerplay_table *powerplay_table = (struct smu_11_0_7_powerplay_table *)smu->smu_table.power_play_table; -PPTable_t *pptable = smu->smu_table.driver_pptable;uint32_t power_limit, od_percent; +uint16_t *table_member; + +GET_PPTABLE_MEMBER (SocketPowerLimitAc, &table_member);if (smu_v11_0_get_current_power_limit (smu, &power_limit)) { -/* the last hope to figure out the ppt limit */ -if (!pptable) { -dev_err (smu->adev->dev,"Cannot get PPT limit due to pptable missing!" ); -return -EINVAL ; - } power_limit = - pptable->SocketPowerLimitAc[PPT_THROTTLER_PPT0 ]; + table_member[PPT_THROTTLER_PPT0 ]; } smu->current_power_limit = smu->default_power_limit = power_limit;
@@ -1758,36 +1784,39 @@ static int sienna_cichlid_update_pcie_parameters(struct smu_context *smu, uint32_t pcie_width_cap) {struct smu_11_0_dpm_context *dpm_context = smu->smu_dpm.dpm_context; -PPTable_t *pptable = smu->smu_table.driver_pptable; +uint32_t smu_pcie_arg; +uint8_t *table_member1, *table_member2;int ret, i; +GET_PPTABLE_MEMBER (PcieGenSpeed, &table_member1); +GET_PPTABLE_MEMBER (PcieLaneCount, &table_member2); +/* lclk dpm table setup */ for (i =0 ; i <MAX_PCIE_CONF ; i++) { - dpm_context->dpm_tables.pcie_table.pcie_gen[i] = pptable->PcieGenSpeed[i]; - dpm_context->dpm_tables.pcie_table.pcie_lane[i] = pptable->PcieLaneCount[i]; + dpm_context->dpm_tables.pcie_table.pcie_gen[i] = table_member1[i]; + dpm_context->dpm_tables.pcie_table.pcie_lane[i] = table_member2[i]; }for (i =0 ; i <NUM_LINK_LEVELS ; i++) { smu_pcie_arg = (i <<16 ) | - ((pptable->PcieGenSpeed[i] <= pcie_gen_cap) ? - (pptable->PcieGenSpeed[i] <<8 ) : - (pcie_gen_cap <<8 )) | - ((pptable->PcieLaneCount[i] <= pcie_width_cap) ? - pptable->PcieLaneCount[i] : - pcie_width_cap); + ((table_member1[i] <= pcie_gen_cap) ? + (table_member1[i] <<8 ) : + (pcie_gen_cap <<8 )) | + ((table_member2[i] <= pcie_width_cap) ? + table_member2[i] : + pcie_width_cap); ret =smu_cmn_send_smc_msg_with_param (smu, - SMU_MSG_OverridePcieParameters, - smu_pcie_arg, -NULL ); - + SMU_MSG_OverridePcieParameters, + smu_pcie_arg, +NULL );if (ret)return ret; -if (pptable->PcieGenSpeed[i] > pcie_gen_cap) +if (table_member1[i] > pcie_gen_cap) dpm_context->dpm_tables.pcie_table.pcie_gen[i] = pcie_gen_cap; -if (pptable->PcieLaneCount[i] > pcie_width_cap) +if (table_member2[i] > pcie_width_cap) dpm_context->dpm_tables.pcie_table.pcie_lane[i] = pcie_width_cap; }
@@ -2086,10 +2115,10 @@ static bool sienna_cichlid_is_mode1_reset_supported(struct smu_context *smu)return val !=0x0 ; } -static void sienna_cichlid_dump_pptable (struct smu_context *smu) +static void beige_goby_dump_pptable (struct smu_context *smu) {struct smu_table_context *table_context = &smu->smu_table; -PPTable_t *pptable = table_context->driver_pptable; +PPTable_beige_goby_t *pptable = table_context->driver_pptable;int i;dev_info (smu->adev->dev,"Dumped PPTable:\n" );
@@ -2134,6 +2163,640 @@ static void sienna_cichlid_dump_pptable(struct smu_context *smu)dev_info (smu->adev->dev,"MinVoltageUlvGfx = 0x%x\n" , pptable->MinVoltageUlvGfx);dev_info (smu->adev->dev,"MinVoltageUlvSoc = 0x%x\n" , pptable->MinVoltageUlvSoc); +dev_info (smu->adev->dev,"SocLIVmin = 0x%x\n" , pptable->SocLIVmin); + +dev_info (smu->adev->dev,"GceaLinkMgrIdleThreshold = 0x%x\n" , pptable->GceaLinkMgrIdleThreshold); + +dev_info (smu->adev->dev,"MinVoltageGfx = 0x%x\n" , pptable->MinVoltageGfx); +dev_info (smu->adev->dev,"MinVoltageSoc = 0x%x\n" , pptable->MinVoltageSoc); +dev_info (smu->adev->dev,"MaxVoltageGfx = 0x%x\n" , pptable->MaxVoltageGfx); +dev_info (smu->adev->dev,"MaxVoltageSoc = 0x%x\n" , pptable->MaxVoltageSoc); + +dev_info (smu->adev->dev,"LoadLineResistanceGfx = 0x%x\n" , pptable->LoadLineResistanceGfx); +dev_info (smu->adev->dev,"LoadLineResistanceSoc = 0x%x\n" , pptable->LoadLineResistanceSoc); + +dev_info (smu->adev->dev,"VDDGFX_TVmin = 0x%x\n" , pptable->VDDGFX_TVmin); +dev_info (smu->adev->dev,"VDDSOC_TVmin = 0x%x\n" , pptable->VDDSOC_TVmin); +dev_info (smu->adev->dev,"VDDGFX_Vmin_HiTemp = 0x%x\n" , pptable->VDDGFX_Vmin_HiTemp); +dev_info (smu->adev->dev,"VDDGFX_Vmin_LoTemp = 0x%x\n" , pptable->VDDGFX_Vmin_LoTemp); +dev_info (smu->adev->dev,"VDDSOC_Vmin_HiTemp = 0x%x\n" , pptable->VDDSOC_Vmin_HiTemp); +dev_info (smu->adev->dev,"VDDSOC_Vmin_LoTemp = 0x%x\n" , pptable->VDDSOC_Vmin_LoTemp); +dev_info (smu->adev->dev,"VDDGFX_TVminHystersis = 0x%x\n" , pptable->VDDGFX_TVminHystersis); +dev_info (smu->adev->dev,"VDDSOC_TVminHystersis = 0x%x\n" , pptable->VDDSOC_TVminHystersis); + +dev_info (smu->adev->dev,"[PPCLK_GFXCLK]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_GFXCLK ].VoltageMode, + pptable->DpmDescriptor[PPCLK_GFXCLK ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_GFXCLK ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_GFXCLK ].Padding, + pptable->DpmDescriptor[PPCLK_GFXCLK ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_GFXCLK ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_GFXCLK ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_GFXCLK ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_GFXCLK ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_GFXCLK ].SsFmin, + pptable->DpmDescriptor[PPCLK_GFXCLK ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_SOCCLK]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_SOCCLK ].VoltageMode, + pptable->DpmDescriptor[PPCLK_SOCCLK ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_SOCCLK ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_SOCCLK ].Padding, + pptable->DpmDescriptor[PPCLK_SOCCLK ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_SOCCLK ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_SOCCLK ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_SOCCLK ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_SOCCLK ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_SOCCLK ].SsFmin, + pptable->DpmDescriptor[PPCLK_SOCCLK ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_UCLK]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_UCLK ].VoltageMode, + pptable->DpmDescriptor[PPCLK_UCLK ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_UCLK ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_UCLK ].Padding, + pptable->DpmDescriptor[PPCLK_UCLK ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_UCLK ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_UCLK ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_UCLK ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_UCLK ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_UCLK ].SsFmin, + pptable->DpmDescriptor[PPCLK_UCLK ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_FCLK]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_FCLK ].VoltageMode, + pptable->DpmDescriptor[PPCLK_FCLK ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_FCLK ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_FCLK ].Padding, + pptable->DpmDescriptor[PPCLK_FCLK ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_FCLK ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_FCLK ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_FCLK ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_FCLK ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_FCLK ].SsFmin, + pptable->DpmDescriptor[PPCLK_FCLK ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_DCLK_0]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_DCLK_0 ].VoltageMode, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].Padding, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].SsFmin, + pptable->DpmDescriptor[PPCLK_DCLK_0 ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_VCLK_0]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_VCLK_0 ].VoltageMode, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].Padding, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].SsFmin, + pptable->DpmDescriptor[PPCLK_VCLK_0 ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_DCLK_1]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_DCLK_1 ].VoltageMode, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].Padding, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].SsFmin, + pptable->DpmDescriptor[PPCLK_DCLK_1 ].Padding16); + +dev_info (smu->adev->dev,"[PPCLK_VCLK_1]\n" +" .VoltageMode = 0x%02x\n" +" .SnapToDiscrete = 0x%02x\n" +" .NumDiscreteLevels = 0x%02x\n" +" .padding = 0x%02x\n" +" .ConversionToAvfsClk{m = 0x%08x b = 0x%08x}\n" +" .SsCurve {a = 0x%08x b = 0x%08x c = 0x%08x}\n" +" .SsFmin = 0x%04x\n" +" .Padding_16 = 0x%04x\n" , + pptable->DpmDescriptor[PPCLK_VCLK_1 ].VoltageMode, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].SnapToDiscrete, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].NumDiscreteLevels, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].Padding, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].ConversionToAvfsClk.m, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].ConversionToAvfsClk.b, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].SsCurve.a, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].SsCurve.b, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].SsCurve.c, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].SsFmin, + pptable->DpmDescriptor[PPCLK_VCLK_1 ].Padding16); + +dev_info (smu->adev->dev,"FreqTableGfx\n" ); +for (i =0 ; i <NUM_GFXCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%02d] = 0x%x\n" , i, pptable->FreqTableGfx[i]); + +dev_info (smu->adev->dev,"FreqTableVclk\n" ); +for (i =0 ; i <NUM_VCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%02d] = 0x%x\n" , i, pptable->FreqTableVclk[i]); + +dev_info (smu->adev->dev,"FreqTableDclk\n" ); +for (i =0 ; i <NUM_DCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%02d] = 0x%x\n" , i, pptable->FreqTableDclk[i]); + +dev_info (smu->adev->dev,"FreqTableSocclk\n" ); +for (i =0 ; i <NUM_SOCCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%02d] = 0x%x\n" , i, pptable->FreqTableSocclk[i]); + +dev_info (smu->adev->dev,"FreqTableUclk\n" ); +for (i =0 ; i <NUM_UCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%02d] = 0x%x\n" , i, pptable->FreqTableUclk[i]); + +dev_info (smu->adev->dev,"FreqTableFclk\n" ); +for (i =0 ; i <NUM_FCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%02d] = 0x%x\n" , i, pptable->FreqTableFclk[i]); + +dev_info (smu->adev->dev,"DcModeMaxFreq\n" ); +dev_info (smu->adev->dev," .PPCLK_GFXCLK = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_GFXCLK ]); +dev_info (smu->adev->dev," .PPCLK_SOCCLK = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_SOCCLK ]); +dev_info (smu->adev->dev," .PPCLK_UCLK = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_UCLK ]); +dev_info (smu->adev->dev," .PPCLK_FCLK = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_FCLK ]); +dev_info (smu->adev->dev," .PPCLK_DCLK_0 = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_DCLK_0 ]); +dev_info (smu->adev->dev," .PPCLK_VCLK_0 = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_VCLK_0 ]); +dev_info (smu->adev->dev," .PPCLK_DCLK_1 = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_DCLK_1 ]); +dev_info (smu->adev->dev," .PPCLK_VCLK_1 = 0x%x\n" , pptable->DcModeMaxFreq[PPCLK_VCLK_1 ]); + +dev_info (smu->adev->dev,"FreqTableUclkDiv\n" ); +for (i =0 ; i <NUM_UCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->FreqTableUclkDiv[i]); + +dev_info (smu->adev->dev,"FclkBoostFreq = 0x%x\n" , pptable->FclkBoostFreq); +dev_info (smu->adev->dev,"FclkParamPadding = 0x%x\n" , pptable->FclkParamPadding); + +dev_info (smu->adev->dev,"Mp0clkFreq\n" ); +for (i =0 ; i <NUM_MP0CLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->Mp0clkFreq[i]); + +dev_info (smu->adev->dev,"Mp0DpmVoltage\n" ); +for (i =0 ; i <NUM_MP0CLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->Mp0DpmVoltage[i]); + +dev_info (smu->adev->dev,"MemVddciVoltage\n" ); +for (i =0 ; i <NUM_UCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->MemVddciVoltage[i]); + +dev_info (smu->adev->dev,"MemMvddVoltage\n" ); +for (i =0 ; i <NUM_UCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->MemMvddVoltage[i]); + +dev_info (smu->adev->dev,"GfxclkFgfxoffEntry = 0x%x\n" , pptable->GfxclkFgfxoffEntry); +dev_info (smu->adev->dev,"GfxclkFinit = 0x%x\n" , pptable->GfxclkFinit); +dev_info (smu->adev->dev,"GfxclkFidle = 0x%x\n" , pptable->GfxclkFidle); +dev_info (smu->adev->dev,"GfxclkSource = 0x%x\n" , pptable->GfxclkSource); +dev_info (smu->adev->dev,"GfxclkPadding = 0x%x\n" , pptable->GfxclkPadding); + +dev_info (smu->adev->dev,"GfxGpoSubFeatureMask = 0x%x\n" , pptable->GfxGpoSubFeatureMask); + +dev_info (smu->adev->dev,"GfxGpoEnabledWorkPolicyMask = 0x%x\n" , pptable->GfxGpoEnabledWorkPolicyMask); +dev_info (smu->adev->dev,"GfxGpoDisabledWorkPolicyMask = 0x%x\n" , pptable->GfxGpoDisabledWorkPolicyMask); +dev_info (smu->adev->dev,"GfxGpoPadding[0] = 0x%x\n" , pptable->GfxGpoPadding[0 ]); +dev_info (smu->adev->dev,"GfxGpoVotingAllow = 0x%x\n" , pptable->GfxGpoVotingAllow); +dev_info (smu->adev->dev,"GfxGpoPadding32[0] = 0x%x\n" , pptable->GfxGpoPadding32[0 ]); +dev_info (smu->adev->dev,"GfxGpoPadding32[1] = 0x%x\n" , pptable->GfxGpoPadding32[1 ]); +dev_info (smu->adev->dev,"GfxGpoPadding32[2] = 0x%x\n" , pptable->GfxGpoPadding32[2 ]); +dev_info (smu->adev->dev,"GfxGpoPadding32[3] = 0x%x\n" , pptable->GfxGpoPadding32[3 ]); +dev_info (smu->adev->dev,"GfxDcsFopt = 0x%x\n" , pptable->GfxDcsFopt); +dev_info (smu->adev->dev,"GfxDcsFclkFopt = 0x%x\n" , pptable->GfxDcsFclkFopt); +dev_info (smu->adev->dev,"GfxDcsUclkFopt = 0x%x\n" , pptable->GfxDcsUclkFopt); + +dev_info (smu->adev->dev,"DcsGfxOffVoltage = 0x%x\n" , pptable->DcsGfxOffVoltage); +dev_info (smu->adev->dev,"DcsMinGfxOffTime = 0x%x\n" , pptable->DcsMinGfxOffTime); +dev_info (smu->adev->dev,"DcsMaxGfxOffTime = 0x%x\n" , pptable->DcsMaxGfxOffTime); +dev_info (smu->adev->dev,"DcsMinCreditAccum = 0x%x\n" , pptable->DcsMinCreditAccum); +dev_info (smu->adev->dev,"DcsExitHysteresis = 0x%x\n" , pptable->DcsExitHysteresis); +dev_info (smu->adev->dev,"DcsTimeout = 0x%x\n" , pptable->DcsTimeout); + +dev_info (smu->adev->dev,"DcsParamPadding[0] = 0x%x\n" , pptable->DcsParamPadding[0 ]); +dev_info (smu->adev->dev,"DcsParamPadding[1] = 0x%x\n" , pptable->DcsParamPadding[1 ]); +dev_info (smu->adev->dev,"DcsParamPadding[2] = 0x%x\n" , pptable->DcsParamPadding[2 ]); +dev_info (smu->adev->dev,"DcsParamPadding[3] = 0x%x\n" , pptable->DcsParamPadding[3 ]); +dev_info (smu->adev->dev,"DcsParamPadding[4] = 0x%x\n" , pptable->DcsParamPadding[4 ]); + +dev_info (smu->adev->dev,"FlopsPerByteTable\n" ); +for (i =0 ; i <RLC_PACE_TABLE_NUM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->FlopsPerByteTable[i]); + +dev_info (smu->adev->dev,"LowestUclkReservedForUlv = 0x%x\n" , pptable->LowestUclkReservedForUlv); +dev_info (smu->adev->dev,"vddingMem[0] = 0x%x\n" , pptable->PaddingMem[0 ]); +dev_info (smu->adev->dev,"vddingMem[1] = 0x%x\n" , pptable->PaddingMem[1 ]); +dev_info (smu->adev->dev,"vddingMem[2] = 0x%x\n" , pptable->PaddingMem[2 ]); + +dev_info (smu->adev->dev,"UclkDpmPstates\n" ); +for (i =0 ; i <NUM_UCLK_DPM_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->UclkDpmPstates[i]); + +dev_info (smu->adev->dev,"UclkDpmSrcFreqRange\n" ); +dev_info (smu->adev->dev," .Fmin = 0x%x\n" , + pptable->UclkDpmSrcFreqRange.Fmin); +dev_info (smu->adev->dev," .Fmax = 0x%x\n" , + pptable->UclkDpmSrcFreqRange.Fmax); +dev_info (smu->adev->dev,"UclkDpmTargFreqRange\n" ); +dev_info (smu->adev->dev," .Fmin = 0x%x\n" , + pptable->UclkDpmTargFreqRange.Fmin); +dev_info (smu->adev->dev," .Fmax = 0x%x\n" , + pptable->UclkDpmTargFreqRange.Fmax); +dev_info (smu->adev->dev,"UclkDpmMidstepFreq = 0x%x\n" , pptable->UclkDpmMidstepFreq); +dev_info (smu->adev->dev,"UclkMidstepPadding = 0x%x\n" , pptable->UclkMidstepPadding); + +dev_info (smu->adev->dev,"PcieGenSpeed\n" ); +for (i =0 ; i <NUM_LINK_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->PcieGenSpeed[i]); + +dev_info (smu->adev->dev,"PcieLaneCount\n" ); +for (i =0 ; i <NUM_LINK_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->PcieLaneCount[i]); + +dev_info (smu->adev->dev,"LclkFreq\n" ); +for (i =0 ; i <NUM_LINK_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->LclkFreq[i]); + +dev_info (smu->adev->dev,"FanStopTemp = 0x%x\n" , pptable->FanStopTemp); +dev_info (smu->adev->dev,"FanStartTemp = 0x%x\n" , pptable->FanStartTemp); + +dev_info (smu->adev->dev,"FanGain\n" ); +for (i =0 ; i <TEMP_COUNT ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->FanGain[i]); + +dev_info (smu->adev->dev,"FanPwmMin = 0x%x\n" , pptable->FanPwmMin); +dev_info (smu->adev->dev,"FanAcousticLimitRpm = 0x%x\n" , pptable->FanAcousticLimitRpm); +dev_info (smu->adev->dev,"FanThrottlingRpm = 0x%x\n" , pptable->FanThrottlingRpm); +dev_info (smu->adev->dev,"FanMaximumRpm = 0x%x\n" , pptable->FanMaximumRpm); +dev_info (smu->adev->dev,"MGpuFanBoostLimitRpm = 0x%x\n" , pptable->MGpuFanBoostLimitRpm); +dev_info (smu->adev->dev,"FanTargetTemperature = 0x%x\n" , pptable->FanTargetTemperature); +dev_info (smu->adev->dev,"FanTargetGfxclk = 0x%x\n" , pptable->FanTargetGfxclk); +dev_info (smu->adev->dev,"FanPadding16 = 0x%x\n" , pptable->FanPadding16); +dev_info (smu->adev->dev,"FanTempInputSelect = 0x%x\n" , pptable->FanTempInputSelect); +dev_info (smu->adev->dev,"FanPadding = 0x%x\n" , pptable->FanPadding); +dev_info (smu->adev->dev,"FanZeroRpmEnable = 0x%x\n" , pptable->FanZeroRpmEnable); +dev_info (smu->adev->dev,"FanTachEdgePerRev = 0x%x\n" , pptable->FanTachEdgePerRev); + +dev_info (smu->adev->dev,"FuzzyFan_ErrorSetDelta = 0x%x\n" , pptable->FuzzyFan_ErrorSetDelta); +dev_info (smu->adev->dev,"FuzzyFan_ErrorRateSetDelta = 0x%x\n" , pptable->FuzzyFan_ErrorRateSetDelta); +dev_info (smu->adev->dev,"FuzzyFan_PwmSetDelta = 0x%x\n" , pptable->FuzzyFan_PwmSetDelta); +dev_info (smu->adev->dev,"FuzzyFan_Reserved = 0x%x\n" , pptable->FuzzyFan_Reserved); + +dev_info (smu->adev->dev,"OverrideAvfsGb[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->OverrideAvfsGb[AVFS_VOLTAGE_GFX ]); +dev_info (smu->adev->dev,"OverrideAvfsGb[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->OverrideAvfsGb[AVFS_VOLTAGE_SOC ]); +dev_info (smu->adev->dev,"dBtcGbGfxDfllModelSelect = 0x%x\n" , pptable->dBtcGbGfxDfllModelSelect); +dev_info (smu->adev->dev,"Padding8_Avfs = 0x%x\n" , pptable->Padding8_Avfs); + +dev_info (smu->adev->dev,"qAvfsGb[AVFS_VOLTAGE_GFX]{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->qAvfsGb[AVFS_VOLTAGE_GFX ].a, + pptable->qAvfsGb[AVFS_VOLTAGE_GFX ].b, + pptable->qAvfsGb[AVFS_VOLTAGE_GFX ].c); +dev_info (smu->adev->dev,"qAvfsGb[AVFS_VOLTAGE_SOC]{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->qAvfsGb[AVFS_VOLTAGE_SOC ].a, + pptable->qAvfsGb[AVFS_VOLTAGE_SOC ].b, + pptable->qAvfsGb[AVFS_VOLTAGE_SOC ].c); +dev_info (smu->adev->dev,"dBtcGbGfxPll{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->dBtcGbGfxPll.a, + pptable->dBtcGbGfxPll.b, + pptable->dBtcGbGfxPll.c); +dev_info (smu->adev->dev,"dBtcGbGfxAfll{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->dBtcGbGfxDfll.a, + pptable->dBtcGbGfxDfll.b, + pptable->dBtcGbGfxDfll.c); +dev_info (smu->adev->dev,"dBtcGbSoc{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->dBtcGbSoc.a, + pptable->dBtcGbSoc.b, + pptable->dBtcGbSoc.c); +dev_info (smu->adev->dev,"qAgingGb[AVFS_VOLTAGE_GFX]{m = 0x%x b = 0x%x}\n" , + pptable->qAgingGb[AVFS_VOLTAGE_GFX ].m, + pptable->qAgingGb[AVFS_VOLTAGE_GFX ].b); +dev_info (smu->adev->dev,"qAgingGb[AVFS_VOLTAGE_SOC]{m = 0x%x b = 0x%x}\n" , + pptable->qAgingGb[AVFS_VOLTAGE_SOC ].m, + pptable->qAgingGb[AVFS_VOLTAGE_SOC ].b); + +dev_info (smu->adev->dev,"PiecewiseLinearDroopIntGfxDfll\n" ); +for (i =0 ; i <NUM_PIECE_WISE_LINEAR_DROOP_MODEL_VF_POINTS ; i++) { +dev_info (smu->adev->dev," Fset[%d] = 0x%x\n" , + i, pptable->PiecewiseLinearDroopIntGfxDfll.Fset[i]); +dev_info (smu->adev->dev," Vdroop[%d] = 0x%x\n" , + i, pptable->PiecewiseLinearDroopIntGfxDfll.Vdroop[i]); + } + +dev_info (smu->adev->dev,"qStaticVoltageOffset[AVFS_VOLTAGE_GFX]{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->qStaticVoltageOffset[AVFS_VOLTAGE_GFX ].a, + pptable->qStaticVoltageOffset[AVFS_VOLTAGE_GFX ].b, + pptable->qStaticVoltageOffset[AVFS_VOLTAGE_GFX ].c); +dev_info (smu->adev->dev,"qStaticVoltageOffset[AVFS_VOLTAGE_SOC]{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->qStaticVoltageOffset[AVFS_VOLTAGE_SOC ].a, + pptable->qStaticVoltageOffset[AVFS_VOLTAGE_SOC ].b, + pptable->qStaticVoltageOffset[AVFS_VOLTAGE_SOC ].c); + +dev_info (smu->adev->dev,"DcTol[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->DcTol[AVFS_VOLTAGE_GFX ]); +dev_info (smu->adev->dev,"DcTol[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->DcTol[AVFS_VOLTAGE_SOC ]); + +dev_info (smu->adev->dev,"DcBtcEnabled[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->DcBtcEnabled[AVFS_VOLTAGE_GFX ]); +dev_info (smu->adev->dev,"DcBtcEnabled[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->DcBtcEnabled[AVFS_VOLTAGE_SOC ]); +dev_info (smu->adev->dev,"Padding8_GfxBtc[0] = 0x%x\n" , pptable->Padding8_GfxBtc[0 ]); +dev_info (smu->adev->dev,"Padding8_GfxBtc[1] = 0x%x\n" , pptable->Padding8_GfxBtc[1 ]); + +dev_info (smu->adev->dev,"DcBtcMin[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->DcBtcMin[AVFS_VOLTAGE_GFX ]); +dev_info (smu->adev->dev,"DcBtcMin[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->DcBtcMin[AVFS_VOLTAGE_SOC ]); +dev_info (smu->adev->dev,"DcBtcMax[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->DcBtcMax[AVFS_VOLTAGE_GFX ]); +dev_info (smu->adev->dev,"DcBtcMax[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->DcBtcMax[AVFS_VOLTAGE_SOC ]); + +dev_info (smu->adev->dev,"DcBtcGb[AVFS_VOLTAGE_GFX] = 0x%x\n" , pptable->DcBtcGb[AVFS_VOLTAGE_GFX ]); +dev_info (smu->adev->dev,"DcBtcGb[AVFS_VOLTAGE_SOC] = 0x%x\n" , pptable->DcBtcGb[AVFS_VOLTAGE_SOC ]); + +dev_info (smu->adev->dev,"XgmiDpmPstates\n" ); +for (i =0 ; i <NUM_XGMI_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->XgmiDpmPstates[i]); +dev_info (smu->adev->dev,"XgmiDpmSpare[0] = 0x%02x\n" , pptable->XgmiDpmSpare[0 ]); +dev_info (smu->adev->dev,"XgmiDpmSpare[1] = 0x%02x\n" , pptable->XgmiDpmSpare[1 ]); + +dev_info (smu->adev->dev,"DebugOverrides = 0x%x\n" , pptable->DebugOverrides); +dev_info (smu->adev->dev,"ReservedEquation0{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->ReservedEquation0.a, + pptable->ReservedEquation0.b, + pptable->ReservedEquation0.c); +dev_info (smu->adev->dev,"ReservedEquation1{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->ReservedEquation1.a, + pptable->ReservedEquation1.b, + pptable->ReservedEquation1.c); +dev_info (smu->adev->dev,"ReservedEquation2{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->ReservedEquation2.a, + pptable->ReservedEquation2.b, + pptable->ReservedEquation2.c); +dev_info (smu->adev->dev,"ReservedEquation3{a = 0x%x b = 0x%x c = 0x%x}\n" , + pptable->ReservedEquation3.a, + pptable->ReservedEquation3.b, + pptable->ReservedEquation3.c); + +dev_info (smu->adev->dev,"SkuReserved[0] = 0x%x\n" , pptable->SkuReserved[0 ]); +dev_info (smu->adev->dev,"SkuReserved[1] = 0x%x\n" , pptable->SkuReserved[1 ]); +dev_info (smu->adev->dev,"SkuReserved[2] = 0x%x\n" , pptable->SkuReserved[2 ]); +dev_info (smu->adev->dev,"SkuReserved[3] = 0x%x\n" , pptable->SkuReserved[3 ]); +dev_info (smu->adev->dev,"SkuReserved[4] = 0x%x\n" , pptable->SkuReserved[4 ]); +dev_info (smu->adev->dev,"SkuReserved[5] = 0x%x\n" , pptable->SkuReserved[5 ]); +dev_info (smu->adev->dev,"SkuReserved[6] = 0x%x\n" , pptable->SkuReserved[6 ]); +dev_info (smu->adev->dev,"SkuReserved[7] = 0x%x\n" , pptable->SkuReserved[7 ]); + +dev_info (smu->adev->dev,"GamingClk[0] = 0x%x\n" , pptable->GamingClk[0 ]); +dev_info (smu->adev->dev,"GamingClk[1] = 0x%x\n" , pptable->GamingClk[1 ]); +dev_info (smu->adev->dev,"GamingClk[2] = 0x%x\n" , pptable->GamingClk[2 ]); +dev_info (smu->adev->dev,"GamingClk[3] = 0x%x\n" , pptable->GamingClk[3 ]); +dev_info (smu->adev->dev,"GamingClk[4] = 0x%x\n" , pptable->GamingClk[4 ]); +dev_info (smu->adev->dev,"GamingClk[5] = 0x%x\n" , pptable->GamingClk[5 ]); + +for (i =0 ; i <NUM_I2C_CONTROLLERS ; i++) { +dev_info (smu->adev->dev,"I2cControllers[%d]:\n" , i); +dev_info (smu->adev->dev," .Enabled = 0x%x\n" , + pptable->I2cControllers[i].Enabled); +dev_info (smu->adev->dev," .Speed = 0x%x\n" , + pptable->I2cControllers[i].Speed); +dev_info (smu->adev->dev," .SlaveAddress = 0x%x\n" , + pptable->I2cControllers[i].SlaveAddress); +dev_info (smu->adev->dev," .ControllerPort = 0x%x\n" , + pptable->I2cControllers[i].ControllerPort); +dev_info (smu->adev->dev," .ControllerName = 0x%x\n" , + pptable->I2cControllers[i].ControllerName); +dev_info (smu->adev->dev," .ThermalThrottler = 0x%x\n" , + pptable->I2cControllers[i].ThermalThrotter); +dev_info (smu->adev->dev," .I2cProtocol = 0x%x\n" , + pptable->I2cControllers[i].I2cProtocol); +dev_info (smu->adev->dev," .PaddingConfig = 0x%x\n" , + pptable->I2cControllers[i].PaddingConfig); + } + +dev_info (smu->adev->dev,"GpioScl = 0x%x\n" , pptable->GpioScl); +dev_info (smu->adev->dev,"GpioSda = 0x%x\n" , pptable->GpioSda); +dev_info (smu->adev->dev,"FchUsbPdSlaveAddr = 0x%x\n" , pptable->FchUsbPdSlaveAddr); +dev_info (smu->adev->dev,"I2cSpare[0] = 0x%x\n" , pptable->I2cSpare[0 ]); + +dev_info (smu->adev->dev,"Board Parameters:\n" ); +dev_info (smu->adev->dev,"VddGfxVrMapping = 0x%x\n" , pptable->VddGfxVrMapping); +dev_info (smu->adev->dev,"VddSocVrMapping = 0x%x\n" , pptable->VddSocVrMapping); +dev_info (smu->adev->dev,"VddMem0VrMapping = 0x%x\n" , pptable->VddMem0VrMapping); +dev_info (smu->adev->dev,"VddMem1VrMapping = 0x%x\n" , pptable->VddMem1VrMapping); +dev_info (smu->adev->dev,"GfxUlvPhaseSheddingMask = 0x%x\n" , pptable->GfxUlvPhaseSheddingMask); +dev_info (smu->adev->dev,"SocUlvPhaseSheddingMask = 0x%x\n" , pptable->SocUlvPhaseSheddingMask); +dev_info (smu->adev->dev,"VddciUlvPhaseSheddingMask = 0x%x\n" , pptable->VddciUlvPhaseSheddingMask); +dev_info (smu->adev->dev,"MvddUlvPhaseSheddingMask = 0x%x\n" , pptable->MvddUlvPhaseSheddingMask); + +dev_info (smu->adev->dev,"GfxMaxCurrent = 0x%x\n" , pptable->GfxMaxCurrent); +dev_info (smu->adev->dev,"GfxOffset = 0x%x\n" , pptable->GfxOffset); +dev_info (smu->adev->dev,"Padding_TelemetryGfx = 0x%x\n" , pptable->Padding_TelemetryGfx); + +dev_info (smu->adev->dev,"SocMaxCurrent = 0x%x\n" , pptable->SocMaxCurrent); +dev_info (smu->adev->dev,"SocOffset = 0x%x\n" , pptable->SocOffset); +dev_info (smu->adev->dev,"Padding_TelemetrySoc = 0x%x\n" , pptable->Padding_TelemetrySoc); + +dev_info (smu->adev->dev,"Mem0MaxCurrent = 0x%x\n" , pptable->Mem0MaxCurrent); +dev_info (smu->adev->dev,"Mem0Offset = 0x%x\n" , pptable->Mem0Offset); +dev_info (smu->adev->dev,"Padding_TelemetryMem0 = 0x%x\n" , pptable->Padding_TelemetryMem0); + +dev_info (smu->adev->dev,"Mem1MaxCurrent = 0x%x\n" , pptable->Mem1MaxCurrent); +dev_info (smu->adev->dev,"Mem1Offset = 0x%x\n" , pptable->Mem1Offset); +dev_info (smu->adev->dev,"Padding_TelemetryMem1 = 0x%x\n" , pptable->Padding_TelemetryMem1); + +dev_info (smu->adev->dev,"MvddRatio = 0x%x\n" , pptable->MvddRatio); + +dev_info (smu->adev->dev,"AcDcGpio = 0x%x\n" , pptable->AcDcGpio); +dev_info (smu->adev->dev,"AcDcPolarity = 0x%x\n" , pptable->AcDcPolarity); +dev_info (smu->adev->dev,"VR0HotGpio = 0x%x\n" , pptable->VR0HotGpio); +dev_info (smu->adev->dev,"VR0HotPolarity = 0x%x\n" , pptable->VR0HotPolarity); +dev_info (smu->adev->dev,"VR1HotGpio = 0x%x\n" , pptable->VR1HotGpio); +dev_info (smu->adev->dev,"VR1HotPolarity = 0x%x\n" , pptable->VR1HotPolarity); +dev_info (smu->adev->dev,"GthrGpio = 0x%x\n" , pptable->GthrGpio); +dev_info (smu->adev->dev,"GthrPolarity = 0x%x\n" , pptable->GthrPolarity); +dev_info (smu->adev->dev,"LedPin0 = 0x%x\n" , pptable->LedPin0); +dev_info (smu->adev->dev,"LedPin1 = 0x%x\n" , pptable->LedPin1); +dev_info (smu->adev->dev,"LedPin2 = 0x%x\n" , pptable->LedPin2); +dev_info (smu->adev->dev,"LedEnableMask = 0x%x\n" , pptable->LedEnableMask); +dev_info (smu->adev->dev,"LedPcie = 0x%x\n" , pptable->LedPcie); +dev_info (smu->adev->dev,"LedError = 0x%x\n" , pptable->LedError); +dev_info (smu->adev->dev,"LedSpare1[0] = 0x%x\n" , pptable->LedSpare1[0 ]); +dev_info (smu->adev->dev,"LedSpare1[1] = 0x%x\n" , pptable->LedSpare1[1 ]); + +dev_info (smu->adev->dev,"PllGfxclkSpreadEnabled = 0x%x\n" , pptable->PllGfxclkSpreadEnabled); +dev_info (smu->adev->dev,"PllGfxclkSpreadPercent = 0x%x\n" , pptable->PllGfxclkSpreadPercent); +dev_info (smu->adev->dev,"PllGfxclkSpreadFreq = 0x%x\n" , pptable->PllGfxclkSpreadFreq); + +dev_info (smu->adev->dev,"DfllGfxclkSpreadEnabled = 0x%x\n" , pptable->DfllGfxclkSpreadEnabled); +dev_info (smu->adev->dev,"DfllGfxclkSpreadPercent = 0x%x\n" , pptable->DfllGfxclkSpreadPercent); +dev_info (smu->adev->dev,"DfllGfxclkSpreadFreq = 0x%x\n" , pptable->DfllGfxclkSpreadFreq); + +dev_info (smu->adev->dev,"UclkSpreadPadding = 0x%x\n" , pptable->UclkSpreadPadding); +dev_info (smu->adev->dev,"UclkSpreadFreq = 0x%x\n" , pptable->UclkSpreadFreq); + +dev_info (smu->adev->dev,"FclkSpreadEnabled = 0x%x\n" , pptable->FclkSpreadEnabled); +dev_info (smu->adev->dev,"FclkSpreadPercent = 0x%x\n" , pptable->FclkSpreadPercent); +dev_info (smu->adev->dev,"FclkSpreadFreq = 0x%x\n" , pptable->FclkSpreadFreq); + +dev_info (smu->adev->dev,"MemoryChannelEnabled = 0x%x\n" , pptable->MemoryChannelEnabled); +dev_info (smu->adev->dev,"DramBitWidth = 0x%x\n" , pptable->DramBitWidth); +dev_info (smu->adev->dev,"PaddingMem1[0] = 0x%x\n" , pptable->PaddingMem1[0 ]); +dev_info (smu->adev->dev,"PaddingMem1[1] = 0x%x\n" , pptable->PaddingMem1[1 ]); +dev_info (smu->adev->dev,"PaddingMem1[2] = 0x%x\n" , pptable->PaddingMem1[2 ]); + +dev_info (smu->adev->dev,"TotalBoardPower = 0x%x\n" , pptable->TotalBoardPower); +dev_info (smu->adev->dev,"BoardPowerPadding = 0x%x\n" , pptable->BoardPowerPadding); + +dev_info (smu->adev->dev,"XgmiLinkSpeed\n" ); +for (i =0 ; i <NUM_XGMI_PSTATE_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->XgmiLinkSpeed[i]); +dev_info (smu->adev->dev,"XgmiLinkWidth\n" ); +for (i =0 ; i <NUM_XGMI_PSTATE_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->XgmiLinkWidth[i]); +dev_info (smu->adev->dev,"XgmiFclkFreq\n" ); +for (i =0 ; i <NUM_XGMI_PSTATE_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->XgmiFclkFreq[i]); +dev_info (smu->adev->dev,"XgmiSocVoltage\n" ); +for (i =0 ; i <NUM_XGMI_PSTATE_LEVELS ; i++) +dev_info (smu->adev->dev," .[%d] = 0x%x\n" , i, pptable->XgmiSocVoltage[i]); + +dev_info (smu->adev->dev,"HsrEnabled = 0x%x\n" , pptable->HsrEnabled); +dev_info (smu->adev->dev,"VddqOffEnabled = 0x%x\n" , pptable->VddqOffEnabled); +dev_info (smu->adev->dev,"PaddingUmcFlags[0] = 0x%x\n" , pptable->PaddingUmcFlags[0 ]); +dev_info (smu->adev->dev,"PaddingUmcFlags[1] = 0x%x\n" , pptable->PaddingUmcFlags[1 ]); + +dev_info (smu->adev->dev,"BoardReserved[0] = 0x%x\n" , pptable->BoardReserved[0 ]); +dev_info (smu->adev->dev,"BoardReserved[1] = 0x%x\n" , pptable->BoardReserved[1 ]); +dev_info (smu->adev->dev,"BoardReserved[2] = 0x%x\n" , pptable->BoardReserved[2 ]); +dev_info (smu->adev->dev,"BoardReserved[3] = 0x%x\n" , pptable->BoardReserved[3 ]); +dev_info (smu->adev->dev,"BoardReserved[4] = 0x%x\n" , pptable->BoardReserved[4 ]); +dev_info (smu->adev->dev,"BoardReserved[5] = 0x%x\n" , pptable->BoardReserved[5 ]); +dev_info (smu->adev->dev,"BoardReserved[6] = 0x%x\n" , pptable->BoardReserved[6 ]); +dev_info (smu->adev->dev,"BoardReserved[7] = 0x%x\n" , pptable->BoardReserved[7 ]); +dev_info (smu->adev->dev,"BoardReserved[8] = 0x%x\n" , pptable->BoardReserved[8 ]); +dev_info (smu->adev->dev,"BoardReserved[9] = 0x%x\n" , pptable->BoardReserved[9 ]); +dev_info (smu->adev->dev,"BoardReserved[10] = 0x%x\n" , pptable->BoardReserved[10 ]); + +dev_info (smu->adev->dev,"MmHubPadding[0] = 0x%x\n" , pptable->MmHubPadding[0 ]); +dev_info (smu->adev->dev,"MmHubPadding[1] = 0x%x\n" , pptable->MmHubPadding[1 ]); +dev_info (smu->adev->dev,"MmHubPadding[2] = 0x%x\n" , pptable->MmHubPadding[2 ]); +dev_info (smu->adev->dev,"MmHubPadding[3] = 0x%x\n" , pptable->MmHubPadding[3 ]); +dev_info (smu->adev->dev,"MmHubPadding[4] = 0x%x\n" , pptable->MmHubPadding[4 ]); +dev_info (smu->adev->dev,"MmHubPadding[5] = 0x%x\n" , pptable->MmHubPadding[5 ]); +dev_info (smu->adev->dev,"MmHubPadding[6] = 0x%x\n" , pptable->MmHubPadding[6 ]); +dev_info (smu->adev->dev,"MmHubPadding[7] = 0x%x\n" , pptable->MmHubPadding[7 ]); +} + +static void sienna_cichlid_dump_pptable (struct smu_context *smu) +{ +struct smu_table_context *table_context = &smu->smu_table; +PPTable_t *pptable = table_context->driver_pptable; +int i; + +if (smu->adev->asic_type ==CHIP_BEIGE_GOBY ) { +beige_goby_dump_pptable (smu); +return ; + } + +dev_info (smu->adev->dev,"Dumped PPTable:\n" ); + +dev_info (smu->adev->dev,"Version = 0x%08x\n" , pptable->Version); +dev_info (smu->adev->dev,"FeaturesToRun[0] = 0x%08x\n" , pptable->FeaturesToRun[0 ]); +dev_info (smu->adev->dev,"FeaturesToRun[1] = 0x%08x\n" , pptable->FeaturesToRun[1 ]); + +for (i =0 ; i <PPT_THROTTLER_COUNT ; i++) { +dev_info (smu->adev->dev,"SocketPowerLimitAc[%d] = 0x%x\n" , i, pptable->SocketPowerLimitAc[i]); +dev_info (smu->adev->dev,"SocketPowerLimitAcTau[%d] = 0x%x\n" , i, pptable->SocketPowerLimitAcTau[i]); +dev_info (smu->adev->dev,"SocketPowerLimitDc[%d] = 0x%x\n" , i, pptable->SocketPowerLimitDc[i]); +dev_info (smu->adev->dev,"SocketPowerLimitDcTau[%d] = 0x%x\n" , i, pptable->SocketPowerLimitDcTau[i]); + } + +for (i =0 ; i <TDC_THROTTLER_COUNT ; i++) { +dev_info (smu->adev->dev,"TdcLimit[%d] = 0x%x\n" , i, pptable->TdcLimit[i]); +dev_info (smu->adev->dev,"TdcLimitTau[%d] = 0x%x\n" , i, pptable->TdcLimitTau[i]); + } + +for (i =0 ; i <TEMP_COUNT ; i++) { +dev_info (smu->adev->dev,"TemperatureLimit[%d] = 0x%x\n" , i, pptable->TemperatureLimit[i]); + } + +dev_info (smu->adev->dev,"FitLimit = 0x%x\n" , pptable->FitLimit); +dev_info (smu->adev->dev,"TotalPowerConfig = 0x%x\n" , pptable->TotalPowerConfig); +dev_info (smu->adev->dev,"TotalPowerPadding[0] = 0x%x\n" , pptable->TotalPowerPadding[0 ]); +dev_info (smu->adev->dev,"TotalPowerPadding[1] = 0x%x\n" , pptable->TotalPowerPadding[1 ]); +dev_info (smu->adev->dev,"TotalPowerPadding[2] = 0x%x\n" , pptable->TotalPowerPadding[2 ]); + +dev_info (smu->adev->dev,"ApccPlusResidencyLimit = 0x%x\n" , pptable->ApccPlusResidencyLimit); +for (i =0 ; i <NUM_SMNCLK_DPM_LEVELS ; i++) { +dev_info (smu->adev->dev,"SmnclkDpmFreq[%d] = 0x%x\n" , i, pptable->SmnclkDpmFreq[i]); +dev_info (smu->adev->dev,"SmnclkDpmVoltage[%d] = 0x%x\n" , i, pptable->SmnclkDpmVoltage[i]); + } +dev_info (smu->adev->dev,"ThrottlerControlMask = 0x%x\n" , pptable->ThrottlerControlMask); + +dev_info (smu->adev->dev,"FwDStateMask = 0x%x\n" , pptable->FwDStateMask); + +dev_info (smu->adev->dev,"UlvVoltageOffsetSoc = 0x%x\n" , pptable->UlvVoltageOffsetSoc); +dev_info (smu->adev->dev,"UlvVoltageOffsetGfx = 0x%x\n" , pptable->UlvVoltageOffsetGfx); +dev_info (smu->adev->dev,"MinVoltageUlvGfx = 0x%x\n" , pptable->MinVoltageUlvGfx); +dev_info (smu->adev->dev,"MinVoltageUlvSoc = 0x%x\n" , pptable->MinVoltageUlvSoc); +dev_info (smu->adev->dev,"SocLIVmin = 0x%x\n" , pptable->SocLIVmin);dev_info (smu->adev->dev,"PaddingLIVmin = 0x%x\n" , pptable->PaddingLIVmin);
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 29/49 drm/amdgpu: enable GFX clock gating for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable GFX MGCG, CGCG and 3DCG for beige_goby.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +3 -1
@@ -1172,7 +1172,9 @@ static int nv_common_early_init(void *handle) adev->external_rev_id = adev->rev_id +0x3c ;break ;case CHIP_BEIGE_GOBY : - adev->cg_flags =0 ; + adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG | +AMD_CG_SUPPORT_GFX_CGCG | +AMD_CG_SUPPORT_GFX_3D_CGCG ; adev->pg_flags =AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG ; adev->external_rev_id = adev->rev_id +0x46 ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 30/49 drm/amdgpu: support athub cg setting for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable athub cg for beige_goby.
--- drivers/gpu/drm/amd/amdgpu/athub_v2_1.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/athub_v2_1.c +1 -0
@@ -74,6 +74,7 @@ int athub_v2_1_set_clockgating(struct amdgpu_device *adev,case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :athub_v2_1_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE );athub_v2_1_update_medium_grain_light_sleep (adev, state ==AMD_CG_STATE_GATE );break ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 31/49 drm/amdgpu: enable athub/mmhub PG for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable athub/mmhub power gating for beige_goby.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +3 -1
@@ -1176,7 +1176,9 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_GFX_CGCG |AMD_CG_SUPPORT_GFX_3D_CGCG ; adev->pg_flags =AMD_PG_SUPPORT_VCN | -AMD_PG_SUPPORT_VCN_DPG ; +AMD_PG_SUPPORT_VCN_DPG | +AMD_PG_SUPPORT_ATHUB | +AMD_PG_SUPPORT_MMHUB ; adev->external_rev_id = adev->rev_id +0x46 ;break ;default :
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 32/49 drm/amdgpu: enable mc CG and LS for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable mc CG and LS for beige_goby.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +3 -1
@@ -1174,7 +1174,9 @@ static int nv_common_early_init(void *handle)case CHIP_BEIGE_GOBY : adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG |AMD_CG_SUPPORT_GFX_CGCG | -AMD_CG_SUPPORT_GFX_3D_CGCG ; +AMD_CG_SUPPORT_GFX_3D_CGCG | +AMD_CG_SUPPORT_MC_MGCG | +AMD_CG_SUPPORT_MC_LS ; adev->pg_flags =AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG | AMD_PG_SUPPORT_ATHUB |
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 33/49 drm/amdgpu: enable hdp CG and LS for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable hdp MGCG and LS for beige_goby.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +3 -1
@@ -1176,7 +1176,9 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_GFX_CGCG |AMD_CG_SUPPORT_GFX_3D_CGCG |AMD_CG_SUPPORT_MC_MGCG | -AMD_CG_SUPPORT_MC_LS ; +AMD_CG_SUPPORT_MC_LS | +AMD_CG_SUPPORT_HDP_MGCG | +AMD_CG_SUPPORT_HDP_LS ; adev->pg_flags =AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG | AMD_PG_SUPPORT_ATHUB |
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 34/49 drm/amdgpu: enable ih CG for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable ih clock gating for beige_goby.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -1
@@ -1178,7 +1178,8 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_MC_MGCG |AMD_CG_SUPPORT_MC_LS |AMD_CG_SUPPORT_HDP_MGCG | -AMD_CG_SUPPORT_HDP_LS ; +AMD_CG_SUPPORT_HDP_LS | +AMD_CG_SUPPORT_IH_CG ; adev->pg_flags =AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG | AMD_PG_SUPPORT_ATHUB |
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 35/49 drm/amdgpu: enabled VCN3.0 CG for BEIGE GOBY
In reply to Alex DeucherFrom: Veerabadhran Gopalakrishnan <[email protected]>
Enable VCN CG for BEIGE GOBY
--- drivers/gpu/drm/amd/amdgpu/nv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -1
@@ -1179,7 +1179,8 @@ static int nv_common_early_init(void *handle)AMD_CG_SUPPORT_MC_LS |AMD_CG_SUPPORT_HDP_MGCG |AMD_CG_SUPPORT_HDP_LS | -AMD_CG_SUPPORT_IH_CG ; +AMD_CG_SUPPORT_IH_CG | +AMD_CG_SUPPORT_VCN_MGCG ; adev->pg_flags =AMD_PG_SUPPORT_VCN |AMD_PG_SUPPORT_VCN_DPG | AMD_PG_SUPPORT_ATHUB |
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 36/49 drm/amdgpu: add cgls for beige_goby
In reply to Alex DeucherFrom: Tao Zhou <[email protected]>
Enable cgls to improve the runtime power efficiency.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
@@ -1174,6 +1174,7 @@ static int nv_common_early_init(void *handle)case CHIP_BEIGE_GOBY : adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG |AMD_CG_SUPPORT_GFX_CGCG | +AMD_CG_SUPPORT_GFX_CGLS |AMD_CG_SUPPORT_GFX_3D_CGCG |AMD_CG_SUPPORT_MC_MGCG | AMD_CG_SUPPORT_MC_LS |
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 37/49 drm/amd/pm: Use the PPTable from VBIOS for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Switch from softPPTable to VBIOS PPTable.
v2: drop extra parens (Alex)
--- drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +1 -2
@@ -348,8 +348,7 @@ int smu_v11_0_setup_pptable(struct smu_context *smu) hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data; version_major =le16_to_cpu (hdr->header.header_version_major); version_minor =le16_to_cpu (hdr->header.header_version_minor); -if ((version_major ==2 && smu->smu_table.boot_values.pp_table_id >0 ) || - adev->asic_type ==CHIP_BEIGE_GOBY ) { +if (version_major ==2 && smu->smu_table.boot_values.pp_table_id >0 ) {dev_info (adev->dev,"use driver provided pptable %d\n" , smu->smu_table.boot_values.pp_table_id);switch (version_minor) {case 0 :
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 38/49 drm/amd/amdgpu: Enable gfxoff for beige_goby
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Enable gfxoff in driver side based on SMC#73.3
v2: fix typo 'Eanble' --> 'Enable'
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -8065,6 +8065,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :amdgpu_gfx_off_ctrl (adev, enable);break ;case CHIP_VANGOGH :
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +1 -0
@@ -1128,6 +1128,7 @@ int smu_v11_0_gfx_off_control(struct smu_context *smu, bool enable)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :case CHIP_VANGOGH :if (!(adev->pm.pp_feature &PP_GFXOFF_MASK ))return 0 ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 39/49 drm/amdgpu: fix GCR_GENERAL_CNTL offset for beige_goby
In reply to Alex DeucherFrom: Jiansong Chen <[email protected]>
beige_goby has similar gc_10_3 ip with sienna_cichlid, so follow its registers offset setting.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
@@ -3422,7 +3422,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_5[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCPF_GCR_CNTL,0x0007ffff ,0x0000c000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG3,0xffffffff ,0x00000280 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG4,0xffffffff ,0x00800000 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGCR_GENERAL_CNTL,0x1ff1ffff ,0x00000500 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGCR_GENERAL_CNTL_Sienna_Cichlid,0x1ff1ffff ,0x00000500 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2A_ADDR_MATCH_MASK,0xffffffff ,0xffffffcf ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGL2C_ADDR_MATCH_MASK,0xffffffff ,0xffffffcf ), SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2C_CM_CTRL1, 0xff8fff0f, 0x580f1008),
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 40/49 drm/amd/amdgpu: Enable memory training for psp HW_REV#11.0.13
In reply to Alex DeucherFrom: Chengming Gui <[email protected]>
Enable memory training on newer hw revisions.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +1 -0
@@ -629,6 +629,7 @@ int amdgpu_mem_train_support(struct amdgpu_device *adev)case HW_REV (11 ,0 ,7 ):case HW_REV (11 ,0 ,11 ):case HW_REV (11 ,0 ,12 ): +case HW_REV (11 ,0 ,13 ): ret =1 ;break ;default :
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 42/49 drm/amd/display: Initial DC support for Beige Goby
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[Why&How]
Add Beige Goby (DCN303) resource, irq service, & dmub loader.
v2: fix nbio include (Alex)
--- drivers/gpu/drm/amd/display/dc/Makefile | 1 + .../display/dc/bios/command_table_helper2.c | 1 + .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 7 + .../gpu/drm/amd/display/dc/core/dc_resource.c | 6 + .../drm/amd/display/dc/dce/dce_clock_source.h | 9 + .../gpu/drm/amd/display/dc/dce/dce_hwseq.h | 43 + .../gpu/drm/amd/display/dc/dcn30/dcn30_mpc.h | 175 ++ .../gpu/drm/amd/display/dc/dcn303/Makefile | 43 + .../drm/amd/display/dc/dcn303/dcn303_dccg.h | 48 + .../drm/amd/display/dc/dcn303/dcn303_hwseq.c | 58 + .../drm/amd/display/dc/dcn303/dcn303_hwseq.h | 35 + .../drm/amd/display/dc/dcn303/dcn303_init.c | 37 + .../drm/amd/display/dc/dcn303/dcn303_init.h | 33 + .../amd/display/dc/dcn303/dcn303_resource.c | 1691 +++++++++++++++++ .../amd/display/dc/dcn303/dcn303_resource.h | 35 + .../gpu/drm/amd/display/dc/gpio/hw_factory.c | 1 + .../drm/amd/display/dc/gpio/hw_translate.c | 1 + drivers/gpu/drm/amd/display/dc/irq/Makefile | 8 + .../dc/irq/dcn303/irq_service_dcn303.c | 280 +++ .../dc/irq/dcn303/irq_service_dcn303.h | 33 + drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 1 + drivers/gpu/drm/amd/display/dmub/src/Makefile | 1 + .../drm/amd/display/dmub/src/dmub_dcn303.c | 55 + .../drm/amd/display/dmub/src/dmub_dcn303.h | 37 + .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 8 + .../gpu/drm/amd/display/include/dal_asic_id.h | 4 +- .../gpu/drm/amd/display/include/dal_types.h | 1 + 27 files changed, 2651 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/Makefile create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_dccg.h create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.h create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.h create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c create mode 100644 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.h create mode 100644 drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.c create mode 100644 drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.h create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.c create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.h
drivers/gpu/drm/amd/display/dc/Makefile +1 -0
@@ -33,6 +33,7 @@ DC_LIBS += dcn21 DC_LIBS += dcn30 DC_LIBS += dcn301 DC_LIBS += dcn302 +DC_LIBS += dcn303 endif DC_LIBS += dce120
drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c +1 -0
@@ -73,6 +73,7 @@ bool dal_bios_parser_init_cmd_tbl_helper2(case DCN_VERSION_3_0 :case DCN_VERSION_3_01 :case DCN_VERSION_3_02 : +case DCN_VERSION_3_03 : *h =dal_cmd_tbl_helper_dce112_get_table2 ();return true;#endif
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c +7 -0
@@ -241,6 +241,10 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *pdcn3_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg);return &clk_mgr->base; } +if (ASICREV_IS_BEIGE_GOBY_P (asic_id.hw_internal_rev)) { +dcn3_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg); +return &clk_mgr->base; + }dcn20_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg);return &clk_mgr->base; }
@@ -278,6 +282,9 @@ void dc_destroy_clk_mgr(struct clk_mgr *clk_mgr_base)if (ASICREV_IS_DIMGREY_CAVEFISH_P (clk_mgr_base->ctx->asic_id.hw_internal_rev)) {dcn3_clk_mgr_destroy (clk_mgr); } +if (ASICREV_IS_BEIGE_GOBY_P (clk_mgr_base->ctx->asic_id.hw_internal_rev)) { +dcn3_clk_mgr_destroy (clk_mgr); + }break ;case FAMILY_VGH :
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +6 -0
@@ -57,6 +57,7 @@#include "dcn30/dcn30_resource.h" #include "dcn301/dcn301_resource.h" #include "dcn302/dcn302_resource.h" +#include "dcn303/dcn303_resource.h" #endif #define DC_LOGGER_INIT (logger)
@@ -130,6 +131,8 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id) dc_version =DCN_VERSION_3_0 ;if (ASICREV_IS_DIMGREY_CAVEFISH_P (asic_id.hw_internal_rev)) dc_version =DCN_VERSION_3_02 ; +if (ASICREV_IS_BEIGE_GOBY_P (asic_id.hw_internal_rev)) + dc_version =DCN_VERSION_3_03 ;break ;case FAMILY_VGH :
@@ -216,6 +219,9 @@ struct resource_pool *dc_create_resource_pool(struct dc *dc,case DCN_VERSION_3_02 : res_pool =dcn302_create_resource_pool (init_data, dc);break ; +case DCN_VERSION_3_03 : + res_pool =dcn303_create_resource_pool (init_data, dc); +break ;#endif default :break ;
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h +9 -0
@@ -142,6 +142,15 @@SRII (PIXEL_RATE_CNTL ,OTG ,3 ),\ SRII(PIXEL_RATE_CNTL, OTG, 4) +#define CS_COMMON_REG_LIST_DCN3_03 (index, pllid) \ + SRI(PIXCLK_RESYNC_CNTL, PHYPLL, pllid),\ + SRII(PHASE, DP_DTO, 0),\ + SRII(PHASE, DP_DTO, 1),\ + SRII(MODULO, DP_DTO, 0),\ + SRII(MODULO, DP_DTO, 1),\ + SRII(PIXEL_RATE_CNTL, OTG, 0),\ + SRII(PIXEL_RATE_CNTL, OTG, 1) +#endif #define CS_COMMON_MASK_SH_LIST_DCN2_0 (mask_sh)\ CS_SF(DP_DTO0_PHASE, DP_DTO0_PHASE, mask_sh),\
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h +43 -0
61 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.h +175 -0
181 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn303/Makefile new file +43 -0
43 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_dccg.h new file +48 -0
48 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.c new file +58 -0
58 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.h new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +* +*/ + +#ifndef __DC_HWSS_DCN303_H__ +#define __DC_HWSS_DCN303_H__ + +#include "hw_sequencer_private.h" + +void dcn303_dpp_pg_control (struct dce_hwseq *hws,unsigned int dpp_inst,bool power_on); +void dcn303_hubp_pg_control (struct dce_hwseq *hws,unsigned int hubp_inst,bool power_on); +void dcn303_dsc_pg_control (struct dce_hwseq *hws,unsigned int dsc_inst,bool power_on); + +#endif /* __DC_HWSS_DCN303_H__ */
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c new file +37 -0
@@ -0,0 +1,37 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +* +*/ + +#include "dcn303_hwseq.h" +#include "dcn30/dcn30_init.h" +#include "dc.h" + +void dcn303_hw_sequencer_construct (struct dc *dc) +{ +dcn30_hw_sequencer_construct (dc); + + dc->hwseq->funcs.dpp_pg_control = dcn303_dpp_pg_control; + dc->hwseq->funcs.hubp_pg_control = dcn303_hubp_pg_control; + dc->hwseq->funcs.dsc_pg_control = dcn303_dsc_pg_control; +}
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +* +*/ + +#ifndef __DC_DCN303_INIT_H__ +#define __DC_DCN303_INIT_H__ + +struct dc ; + +void dcn303_hw_sequencer_construct (struct dc *dc); + +#endif /* __DC_DCN303_INIT_H__ */
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c new file +1691 -0
1,691 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.h new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +* +*/ + +#ifndef _DCN303_RESOURCE_H_ +#define _DCN303_RESOURCE_H_ + +#include "core_types.h" + +struct resource_pool *dcn303_create_resource_pool (const struct dc_init_data *init_data,struct dc *dc); + +void dcn303_update_bw_bounding_box (struct dc *dc,struct clk_bw_params *bw_params); + +#endif /* _DCN303_RESOURCE_H_ */
drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c +1 -0
@@ -111,6 +111,7 @@ bool dal_hw_factory_init(case DCN_VERSION_3_0 :case DCN_VERSION_3_01 :case DCN_VERSION_3_02 : +case DCN_VERSION_3_03 :dal_hw_factory_dcn30_init (factory);return true;#endif
drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c +1 -0
@@ -106,6 +106,7 @@ bool dal_hw_translate_init(case DCN_VERSION_3_0 :case DCN_VERSION_3_01 :case DCN_VERSION_3_02 : +case DCN_VERSION_3_03 :dal_hw_translate_dcn30_init (translate);return true;#endif
drivers/gpu/drm/amd/display/dc/irq/Makefile +8 -0
@@ -109,4 +109,12 @@ IRQ_DCN3_02 = irq_service_dcn302.o AMD_DAL_IRQ_DCN3_02 = $(addprefix $(AMDDALPATH)/dc/irq/dcn302/,$(IRQ_DCN3_02)) AMD_DISPLAY_FILES += $(AMD_DAL_IRQ_DCN3_02) +############################################################################### +# DCN 3_03 +############################################################################### +IRQ_DCN3_03 = irq_service_dcn303.o + +AMD_DAL_IRQ_DCN3_03 = $(addprefix $(AMDDALPATH)/dc/irq/dcn303/,$(IRQ_DCN3_03)) + +AMD_DISPLAY_FILES += $(AMD_DAL_IRQ_DCN3_03) endif
drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.c new file +280 -0
280 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright 2021 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +* +*/ + +#ifndef __DAL_IRQ_SERVICE_DCN303_H__ +#define __DAL_IRQ_SERVICE_DCN303_H__ + +#include "../irq_service.h" + +struct irq_service *dal_irq_service_dcn303_create (struct irq_service_init_data *init_data); + +#endif /* __DAL_IRQ_SERVICE_DCN303_H__ */
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +1 -0
@@ -93,6 +93,7 @@ enum dmub_asic {DMUB_ASIC_DCN30 ,DMUB_ASIC_DCN301 ,DMUB_ASIC_DCN302 , +DMUB_ASIC_DCN303 , DMUB_ASIC_MAX, };
drivers/gpu/drm/amd/display/dmub/src/Makefile +1 -0
@@ -23,6 +23,7 @@ DMUB = dmub_srv.o dmub_srv_stat.o dmub_reg.o dmub_dcn20.o dmub_dcn21.o DMUB += dmub_dcn30.o dmub_dcn301.o DMUB += dmub_dcn302.o +DMUB += dmub_dcn303.o AMD_DAL_DMUB = $(addprefix $(AMDDALPATH)/dmub/src/,$(DMUB))
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.c new file +55 -0
55 lines not on this page · raw message
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* Copyright 2020 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +* +*/ + +#ifndef _DMUB_DCN303_H_ +#define _DMUB_DCN303_H_ + +#include "dmub_dcn20.h" + +/* Registers. */ + +extern const struct dmub_srv_common_regs dmub_srv_dcn303_regs; + +/* Hardware functions. */ + +#endif /* _DMUB_DCN303_H_ */
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +8 -0
@@ -30,6 +30,7 @@#include "dmub_dcn30.h" #include "dmub_dcn301.h" #include "dmub_dcn302.h" +#include "dmub_dcn303.h" #include "os_types.h" /* * Note: the DMUB service is standalone. No additional headers should be
@@ -142,6 +143,7 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic)case DMUB_ASIC_DCN30 :case DMUB_ASIC_DCN301 :case DMUB_ASIC_DCN302 : +case DMUB_ASIC_DCN303 : dmub->regs = &dmub_srv_dcn20_regs; funcs->reset = dmub_dcn20_reset;
@@ -193,6 +195,12 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic) funcs->backdoor_load = dmub_dcn30_backdoor_load; funcs->setup_windows = dmub_dcn30_setup_windows; } +if (asic ==DMUB_ASIC_DCN303 ) { + dmub->regs = &dmub_srv_dcn303_regs; + + funcs->backdoor_load = dmub_dcn30_backdoor_load; + funcs->setup_windows = dmub_dcn30_setup_windows; + }break ;default :
drivers/gpu/drm/amd/display/include/dal_asic_id.h +3 -1
@@ -196,6 +196,7 @@ enum {NV_NAVI14_M_A0 =20 ,NV_SIENNA_CICHLID_P_A0 =40 ,NV_DIMGREY_CAVEFISH_P_A0 =60 , +NV_BEIGE_GOBY_P_A0 =70 , NV_UNKNOWN = 0xFF };
@@ -204,7 +205,8 @@ enum {#define ASICREV_IS_NAVI14_M (eChipRev) ((eChipRev >= NV_NAVI14_M_A0) && (eChipRev < NV_UNKNOWN))#define ASICREV_IS_RENOIR (eChipRev) ((eChipRev >= RENOIR_A0) && (eChipRev < RAVEN1_F0))#define ASICREV_IS_SIENNA_CICHLID_P (eChipRev) ((eChipRev >= NV_SIENNA_CICHLID_P_A0) && (eChipRev < NV_DIMGREY_CAVEFISH_P_A0)) -#define ASICREV_IS_DIMGREY_CAVEFISH_P (eChipRev) ((eChipRev >= NV_DIMGREY_CAVEFISH_P_A0) && (eChipRev < NV_UNKNOWN)) +#define ASICREV_IS_DIMGREY_CAVEFISH_P (eChipRev) ((eChipRev >= NV_DIMGREY_CAVEFISH_P_A0) && (eChipRev < NV_BEIGE_GOBY_P_A0)) +#define ASICREV_IS_BEIGE_GOBY_P (eChipRev) ((eChipRev >= NV_BEIGE_GOBY_P_A0) && (eChipRev < NV_UNKNOWN))#define GREEN_SARDINE_A0 0xA1#ifndef ASICREV_IS_GREEN_SARDINE #define ASICREV_IS_GREEN_SARDINE (eChipRev) ((eChipRev >= GREEN_SARDINE_A0) && (eChipRev < 0xFF))
drivers/gpu/drm/amd/display/include/dal_types.h +1 -0
@@ -54,6 +54,7 @@ enum dce_version {DCN_VERSION_3_0 ,DCN_VERSION_3_01 ,DCN_VERSION_3_02 , +DCN_VERSION_3_03 , DCN_VERSION_MAX };
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 43/49 drm/amd/display: Edit license info for beige goby DC files
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[How]
* Add MIT license to all new files as SPDX tag.
* Fix copyright year
--- .../gpu/drm/amd/display/dc/dcn303/Makefile | 8 ++----- .../drm/amd/display/dc/dcn303/dcn303_dccg.h | 22 ++----------------- .../drm/amd/display/dc/dcn303/dcn303_hwseq.c | 22 ++----------------- .../drm/amd/display/dc/dcn303/dcn303_hwseq.h | 22 ++----------------- .../drm/amd/display/dc/dcn303/dcn303_init.c | 22 ++----------------- .../drm/amd/display/dc/dcn303/dcn303_init.h | 22 ++----------------- .../amd/display/dc/dcn303/dcn303_resource.c | 22 ++----------------- .../amd/display/dc/dcn303/dcn303_resource.h | 22 ++----------------- .../dc/irq/dcn303/irq_service_dcn303.c | 22 ++----------------- .../dc/irq/dcn303/irq_service_dcn303.h | 22 ++----------------- .../drm/amd/display/dmub/src/dmub_dcn303.c | 22 ++----------------- .../drm/amd/display/dmub/src/dmub_dcn303.h | 22 ++----------------- .../include/asic_reg/dcn/dcn_3_0_3_offset.h | 21 +----------------- .../include/asic_reg/dcn/dcn_3_0_3_sh_mask.h | 20 +++-------------- .../include/asic_reg/dcn/dpcs_3_0_3_offset.h | 7 ++++++ .../include/asic_reg/dcn/dpcs_3_0_3_sh_mask.h | 7 ++++++ 16 files changed, 42 insertions(+), 263 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn303/Makefile +2 -6
@@ -1,10 +1,6 @@ +# SPDX-License-Identifier: MIT # -# (c) Copyright 2021 Advanced Micro Devices, Inc. All the rights reserved -# -# All rights reserved. This notice is intended as a precaution against -# inadvertent publication and does not imply publication or any waiver -# of confidentiality. The year included in the foregoing notice is the -# year of creation of the work. +# Copyright (C) 2021 Advanced Micro Devices, Inc. All the rights reserved # # Authors: AMD #
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_dccg.h +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef __DCN303_DCCG_H__
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.c +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #include "dcn303_hwseq.h"
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_hwseq.h +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef __DC_HWSS_DCN303_H__
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #include "dcn303_hwseq.h"
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.h +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef __DC_DCN303_INIT_H__
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #include "dcn303_init.h"
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.h +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef _DCN303_RESOURCE_H_
drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.c +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #include "dm_services.h"
drivers/gpu/drm/amd/display/dc/irq/dcn303/irq_service_dcn303.h +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef __DAL_IRQ_SERVICE_DCN303_H__
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.c +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #include "../dmub_srv.h"
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn303.h +2 -20
@@ -1,26 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright 2020 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef _DMUB_DCN303_H_
drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_3_0_3_offset.h +1 -20
@@ -1,27 +1,8 @@// SPDX-License-Identifier: MIT /* -* Copyright 2021 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * * Authors: AMD -* */ #ifndef _dcn_3_0_3_OFFSET_HEADER
drivers/gpu/drm/amd/include/asic_reg/dcn/dcn_3_0_3_sh_mask.h +3 -17
@@ -1,22 +1,8 @@ +// SPDX-License-Identifier: MIT /* -* Copyright (C) 2020 Advanced Micro Devices, Inc. +* Copyright (C) 2021 Advanced Micro Devices, Inc. * -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included -* in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* Authors: AMD */ #ifndef _dcn_3_0_3_SH_MASK_HEADER
drivers/gpu/drm/amd/include/asic_reg/dcn/dpcs_3_0_3_offset.h +7 -0
@@ -1,3 +1,10 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright (C) 2021 Advanced Micro Devices, Inc. +* +* Authors: AMD +*/ +#ifndef _dpcs_3_0_3_OFFSET_HEADER#define _dpcs_3_0_3_OFFSET_HEADER
drivers/gpu/drm/amd/include/asic_reg/dcn/dpcs_3_0_3_sh_mask.h +7 -0
@@ -1,3 +1,10 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright (C) 2021 Advanced Micro Devices, Inc. +* +* Authors: AMD +*/ +#ifndef _dpcs_3_0_3_SH_MASK_HEADER#define _dpcs_3_0_3_SH_MASK_HEADER
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 44/49 drm/amd/display: Add DM support for Beige Goby
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[Why&How]
Adds the firmware definition and missing cases statement hooks for Beige Goby support in AMDGPU DM.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +14 -0
@@ -104,6 +104,8 @@ MODULE_FIRMWARE(FIRMWARE_GREEN_SARDINE_DMUB);MODULE_FIRMWARE (FIRMWARE_VANGOGH_DMUB );#define FIRMWARE_DIMGREY_CAVEFISH_DMUB "amdgpu/dimgrey_cavefish_dmcub.bin"MODULE_FIRMWARE (FIRMWARE_DIMGREY_CAVEFISH_DMUB ); +#define FIRMWARE_BEIGE_GOBY_DMUB "amdgpu/beige_goby_dmcub.bin" +MODULE_FIRMWARE (FIRMWARE_BEIGE_GOBY_DMUB );#define FIRMWARE_RAVEN_DMCU "amdgpu/raven_dmcu.bin"MODULE_FIRMWARE (FIRMWARE_RAVEN_DMCU );
@@ -1358,6 +1360,7 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :case CHIP_VANGOGH :return 0 ;case CHIP_NAVI12 :
@@ -1473,6 +1476,10 @@ static int dm_dmub_sw_init(struct amdgpu_device *adev) dmub_asic =DMUB_ASIC_DCN302 ; fw_name_dmub =FIRMWARE_DIMGREY_CAVEFISH_DMUB ;break ; +case CHIP_BEIGE_GOBY : + dmub_asic =DMUB_ASIC_DCN303 ; + fw_name_dmub =FIRMWARE_BEIGE_GOBY_DMUB ; +break ;default :/* ASIC doesn't support DMUB. */
@@ -3735,6 +3742,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :case CHIP_VANGOGH :if (dcn10_register_irq_handlers (dm->adev)) {DRM_ERROR ("DM: Failed to initialize IRQ\n" );
@@ -3987,6 +3995,11 @@ static int dm_early_init(void *handle) adev->mode_info.num_hpd =5 ; adev->mode_info.num_dig =5 ;break ; +case CHIP_BEIGE_GOBY : + adev->mode_info.num_crtc =2 ; + adev->mode_info.num_hpd =2 ; + adev->mode_info.num_dig =2 ; +break ;#endif default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type);
@@ -4212,6 +4225,7 @@ fill_gfx9_tiling_info_from_device(const struct amdgpu_device *adev,if (adev->asic_type ==CHIP_SIENNA_CICHLID || adev->asic_type ==CHIP_NAVY_FLOUNDER || adev->asic_type ==CHIP_DIMGREY_CAVEFISH || + adev->asic_type ==CHIP_BEIGE_GOBY || adev->asic_type ==CHIP_VANGOGH ) tiling_info->gfx9.num_pkrs = adev->gfx.config.gb_addr_config_fields.num_pkrs; }
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 45/49 drm/amd/amdgpu: Enable DCN IP init for Beige Goby
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[Why&How]
Adds DCN IP block initialization for Beige Goby
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++++ 2 files changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -3087,6 +3087,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)case CHIP_SIENNA_CICHLID :case CHIP_NAVY_FLOUNDER :case CHIP_DIMGREY_CAVEFISH : +case CHIP_BEIGE_GOBY :case CHIP_VANGOGH :#endif return amdgpu_dc !=0 ;
drivers/gpu/drm/amd/amdgpu/nv.c +4 -0
@@ -859,6 +859,10 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &sdma_v5_2_ip_block);if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block); +#if defined(CONFIG_DRM_AMD_DC ) + else if (amdgpu_device_has_dc_support(adev)) + amdgpu_device_ip_block_add(adev, &dm_ip_block); +#endif if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT &&is_support_sw_smu (adev))amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block);
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 46/49 drm/amd/display: Add callback for update_soc_for_wm_a for dcn303
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[Why&How]
Absense of this callback causes null pointer dereference. Add the corresponding callback in dcn303 resources.
--- drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +1 -0
@@ -1325,6 +1325,7 @@ static struct resource_funcs dcn303_res_pool_funcs = { .panel_cntl_create = dcn303_panel_cntl_create, .validate_bandwidth = dcn30_validate_bandwidth, .calculate_wm_and_dlg = dcn30_calculate_wm_and_dlg, + .update_soc_for_wm_a = dcn30_update_soc_for_wm_a, .populate_dml_pipes = dcn30_populate_dml_pipes_from_context, .acquire_idle_pipe_for_layer = dcn20_acquire_idle_pipe_for_layer, .add_stream_to_ctx = dcn30_add_stream_to_ctx,
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 47/49 drm/amd/display: Update DCN303 SR Exit Latency
In reply to Alex DeucherFrom: Joshua Aberback <[email protected]>
[Why]
This update was made for DCN30, but it is needed for DCN303 as well
--- drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +1 -1
@@ -146,7 +146,7 @@ struct _vcs_dpi_soc_bounding_box_st dcn3_03_soc = { .min_dcfclk = 500.0, /* TODO: set this to actual min DCFCLK */ .num_states = 1, - .sr_exit_time_us = 12, + .sr_exit_time_us = 15.5, .sr_enter_plus_exit_time_us = 20, .urgent_latency_us = 4.0, .urgent_latency_pixel_data_only_us = 4.0,
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 48/49 drm/amd/display: Enable HDCP for Beige Goby
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[Why&How]
Add beige_goby_ta.bin to module firmware table and call psp init for TA
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +4 -0
@@ -64,6 +64,7 @@ MODULE_FIRMWARE("amdgpu/vangogh_toc.bin");MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_sos.bin" );MODULE_FIRMWARE ("amdgpu/dimgrey_cavefish_ta.bin" );MODULE_FIRMWARE ("amdgpu/beige_goby_sos.bin" ); +MODULE_FIRMWARE ("amdgpu/beige_goby_ta.bin" );/* address block */ #define smnMP1_FIRMWARE_FLAGS 0x3010024
@@ -206,6 +207,9 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)break ;case CHIP_BEIGE_GOBY : err =psp_init_sos_microcode (psp, chip_name); +if (err) +return err; + err =psp_init_ta_microcode (psp, chip_name);if (err)return err;break ;
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
maintainerPATCH 49/49 drm/amd/display: enable idle optimizations for beige goby
In reply to Alex DeucherFrom: Aurabindo Pillai <[email protected]>
[Why&How]
MALL requires idle optimizations to be enabled. This enables MALL feature on dcn303
--- drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +1 -0
@@ -205,6 +205,7 @@ static const struct dc_debug_options debug_defaults_drv = { .underflow_assert_delay_us = 0xFFFFFFFF, .dwb_fi_phase = -1, // -1 = disable, .dmub_command_table = true, + .disable_idle_power_optimizations = false, };static const struct dc_debug_options debug_defaults_diags = {
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx