Add vega12 support
Subsystems (3)
cover Add vega12 support
Vega12 is a new GPU from AMD. This adds support for it.
Patch 1 just adds new register headers and is pretty big, so I haven't sent it to the mailing list. The entire series can be viewed here:
https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next-vega12
Alex Deucher (20):
drm/amdgpu: add gpu_info firmware for vega12 drm/amdgpu: set asic family and ip blocks for vega12 drm/amdgpu/psp: initial vega12 support
drm/amdgpu: specify vega12 uvd firmware drm/amdgpu: specify vega12 vce firmware drm/amdgpu/virtual_dce: add vega12 support drm/amd/display/dm: add vega12 support
drm/amdgpu: add vega12 to dc support check drm/amdgpu/gmc9: add vega12 support drm/amdgpu/mmhub: add clockgating support for vega12 drm/amdgpu/sdma4: specify vega12 firmware drm/amdgpu/sdma4: Add placeholder for vega12 golden settings drm/amdgpu/sdma4: add clockgating support for vega12 drm/amdgpu/gfx9: add support for vega12 firmware drm/amdgpu/gfx9: Add placeholder for vega12 golden settings drm/amdgpu/gfx9: add gfx config for vega12 drm/amdgpu/gfx9: add support for vega12 drm/amdgpu/gfx9: add clockgating support for vega12 drm/amdgpu/soc15: add support for vega12 drm/amdgpu: add vega12 pci ids (v2)
Evan Quan (11):
drm/amdgpu: initilize vega12 psp firmwares drm/amdgpu/soc15: update vega12 cg_flags drm/amd/powerplay: add vega12_inc.h drm/amd/powerplay: update atomfirmware.h (v2) drm/amd/powerplay: add new smu9_driver_if.h for vega12 (v2) drm/amd/powerplay: add vega12_ppsmc.h drm/amd/powerplay: add vega12_pptable.h drm/amd/powerplay: update ppatomfwctl (v2) drm/amd/powerplay: add new pp_psm infrastructure for vega12 (v2) drm/amd/powerplay: add the smu manager for vega12 (v4) drm/amd/powerplay: add the hw manager for vega12 (v4)
Feifei Xu (6):
drm/amd/include: Add ip header files for vega12. drm/amdgpu: add vega12 to asic_type enum drm/amdgpu: add vega12 ucode loading method drm/amdgpu/gmc9: fix vega12's athub&mmhub golden setting. drm/amdgpu/sdma4: Update vega12 sdma golden setting. drm/amd/soc15: Add external_rev_id for vega12.
Hawking Zhang (4):
drm/amdgpu: vega12 to smu firmware drm/amdgpu/sdma4: add sdma4_0_1 support for vega12 (v3) drm/amdgpu/gfx9: add golden setting for vega12 (v3) drm/amdgpu/soc15: initialize reg base for vega12
Jerry (Fangzhi) Zuo (1):
drm/amd/display: Add bios firmware info version for VG12
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 11 +- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 9 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 9 +- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 65 + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 + drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 5 + drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 25 +- drivers/gpu/drm/amd/amdgpu/soc15.c | 25 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 + drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 1 + .../drm/amd/include/asic_reg/gc/gc_9_2_1_offset.h | 7497 +++++ .../drm/amd/include/asic_reg/gc/gc_9_2_1_sh_mask.h | 31160 +++++++++++++++++++ .../include/asic_reg/mmhub/mmhub_9_3_0_offset.h | 1991 ++ .../include/asic_reg/mmhub/mmhub_9_3_0_sh_mask.h | 10265 ++++++ .../amd/include/asic_reg/oss/osssys_4_0_1_offset.h | 337 + .../include/asic_reg/oss/osssys_4_0_1_sh_mask.h | 1249 + drivers/gpu/drm/amd/include/atomfirmware.h | 82 +- drivers/gpu/drm/amd/include/dm_pp_interface.h | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 6 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 244 +- .../gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.c | 262 + .../gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.h | 40 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.c | 76 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.h | 40 + drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 87 + drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h | 65 + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2444 ++ drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h | 470 + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h | 39 + .../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c | 1364 + .../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.h | 53 + .../gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h | 109 + .../amd/powerplay/hwmgr/vega12_processpptables.c | 430 + .../amd/powerplay/hwmgr/vega12_processpptables.h | 58 + .../gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c | 324 + .../gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h | 66 + .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 14 + drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 21 + .../drm/amd/powerplay/inc/vega12/smu9_driver_if.h | 758 + drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h | 123 + drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 3 +- drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + .../gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c | 561 + .../gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h | 62 + include/drm/amd_asic_type.h | 1 + 52 files changed, 60256 insertions(+), 223 deletions(-) create mode 100644 drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_2_1_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_2_1_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_3_0_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_3_0_sh_mask.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/oss/osssys_4_0_1_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/oss/osssys_4_0_1_sh_mask.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h create mode 100644 drivers/gpu/drm/amd/powerplay/inc/vega12/smu9_driver_if.h create mode 100644 drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180321134639.18782-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/42 drm/amdgpu: add vega12 to asic_type enum
From: Feifei Xu <[email protected]>
Add vega12 to amd_asic_type enum and amdgpu_asic_name[].
--- 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
@@ -83,6 +83,7 @@ static const char *amdgpu_asic_name[] = {"POLARIS11" ,"POLARIS12" ,"VEGA10" , +"VEGA12" ,"RAVEN" , "LAST", };
include/drm/amd_asic_type.h +1 -0
@@ -45,6 +45,7 @@ enum amd_asic_type {CHIP_POLARIS11 ,CHIP_POLARIS12 ,CHIP_VEGA10 , +CHIP_VEGA12 ,CHIP_RAVEN , CHIP_LAST, };
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/42 drm/amdgpu: add gpu_info firmware for vega12
In reply to a message not in the archiveStores gpu configuration details.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -0
@@ -59,6 +59,7 @@#include "amdgpu_pm.h" MODULE_FIRMWARE ("amdgpu/vega10_gpu_info.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_gpu_info.bin" );MODULE_FIRMWARE ("amdgpu/raven_gpu_info.bin" );#define AMDGPU_RESUME_MS 2000
@@ -1158,6 +1159,9 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)case CHIP_VEGA10 : chip_name ="vega10" ;break ; +case CHIP_VEGA12 : + chip_name ="vega12" ; +break ;case CHIP_RAVEN : chip_name ="raven" ;break ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/42 drm/amdgpu: set asic family and ip blocks for vega12
In reply to a message not in the archivesoc15 just like vega10 and raven.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -2
@@ -1275,8 +1275,9 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)return r;break ;#endif -case CHIP_VEGA10 : -case CHIP_RAVEN : +case CHIP_VEGA10 : +case CHIP_VEGA12 : +case CHIP_RAVEN :if (adev->asic_type ==CHIP_RAVEN ) adev->family =AMDGPU_FAMILY_RV ;else
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/42 drm/amdgpu: vega12 to smu firmware
In reply to a message not in the archiveFrom: Hawking Zhang <[email protected]>
Add the cgs interface to query the smu firmware for vega12 and declare the firmware.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 +++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +3 -0
@@ -654,6 +654,9 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,else strcpy (fw_name,"amdgpu/vega10_smc.bin" );break ; +case CHIP_VEGA12 : +strcpy (fw_name,"amdgpu/vega12_smc.bin" ); +break ;default :DRM_ERROR ("SMC firmware not supported\n" );return -EINVAL ;
drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c +1 -0
@@ -43,6 +43,7 @@ MODULE_FIRMWARE("amdgpu/polaris11_k_smc.bin");MODULE_FIRMWARE ("amdgpu/polaris12_smc.bin" );MODULE_FIRMWARE ("amdgpu/vega10_smc.bin" );MODULE_FIRMWARE ("amdgpu/vega10_acg_smc.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_smc.bin" );int smum_thermal_avfs_enable (struct pp_hwmgr *hwmgr) {
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/42 drm/amdgpu/psp: initial vega12 support
In reply to a message not in the archiveSame as vega10 for now.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -0
@@ -51,6 +51,7 @@ static int psp_sw_init(void *handle)switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :psp_v3_1_set_psp_funcs (psp);break ;case CHIP_RAVEN :
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +2 -0
@@ -39,6 +39,8 @@MODULE_FIRMWARE ("amdgpu/vega10_sos.bin" );MODULE_FIRMWARE ("amdgpu/vega10_asd.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_sos.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_asd.bin" );#define smnMP1_FIRMWARE_FLAGS 0x3010028
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/42 drm/amdgpu: initilize vega12 psp firmwares
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +3 -0
@@ -109,6 +109,9 @@ static int psp_v3_1_init_microcode(struct psp_context *psp)case CHIP_VEGA10 : chip_name ="vega10" ;break ; +case CHIP_VEGA12 : + chip_name ="vega12" ; +break ;default :BUG (); }
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/42 drm/amdgpu: add vega12 ucode loading method
In reply to a message not in the archiveFrom: Feifei Xu <[email protected]>
Same as vega10.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +1 -0
@@ -271,6 +271,7 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)return AMDGPU_FW_LOAD_SMU ;case CHIP_VEGA10 :case CHIP_RAVEN : +case CHIP_VEGA12 :if (!load_type)return AMDGPU_FW_LOAD_DIRECT ;else
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/42 drm/amdgpu: specify vega12 uvd firmware
In reply to a message not in the archiveDeclare firmware and add support for the file.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +7 -2
@@ -68,6 +68,7 @@#define FIRMWARE_POLARIS12 "amdgpu/polaris12_uvd.bin"#define FIRMWARE_VEGA10 "amdgpu/vega10_uvd.bin" +#define FIRMWARE_VEGA12 "amdgpu/vega12_uvd.bin"#define mmUVD_GPCOM_VCPU_DATA0_VEGA10 (0x03c4 + 0x7e00)#define mmUVD_GPCOM_VCPU_DATA1_VEGA10 (0x03c5 + 0x7e00)
@@ -110,6 +111,7 @@ MODULE_FIRMWARE(FIRMWARE_POLARIS11);MODULE_FIRMWARE (FIRMWARE_POLARIS12 );MODULE_FIRMWARE (FIRMWARE_VEGA10 ); +MODULE_FIRMWARE (FIRMWARE_VEGA12 );static void amdgpu_uvd_idle_work_handler (struct work_struct *work);
@@ -161,11 +163,14 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)case CHIP_POLARIS11 : fw_name =FIRMWARE_POLARIS11 ;break ; +case CHIP_POLARIS12 : + fw_name =FIRMWARE_POLARIS12 ; +break ;case CHIP_VEGA10 : fw_name =FIRMWARE_VEGA10 ;break ; -case CHIP_POLARIS12 : - fw_name =FIRMWARE_POLARIS12 ; +case CHIP_VEGA12 : + fw_name =FIRMWARE_VEGA12 ;break ;default :return -EINVAL ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 10/42 drm/amdgpu: specify vega12 vce firmware
In reply to a message not in the archiveDeclare firmware and add support for the file.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +7 -2
@@ -55,6 +55,7 @@#define FIRMWARE_POLARIS12 "amdgpu/polaris12_vce.bin"#define FIRMWARE_VEGA10 "amdgpu/vega10_vce.bin" +#define FIRMWARE_VEGA12 "amdgpu/vega12_vce.bin"#ifdef CONFIG_DRM_AMDGPU_CIK MODULE_FIRMWARE (FIRMWARE_BONAIRE );
@@ -72,6 +73,7 @@ MODULE_FIRMWARE(FIRMWARE_POLARIS11);MODULE_FIRMWARE (FIRMWARE_POLARIS12 );MODULE_FIRMWARE (FIRMWARE_VEGA10 ); +MODULE_FIRMWARE (FIRMWARE_VEGA12 );static void amdgpu_vce_idle_work_handler (struct work_struct *work);
@@ -127,11 +129,14 @@ int amdgpu_vce_sw_init(struct amdgpu_device *adev, unsigned long size)case CHIP_POLARIS11 : fw_name =FIRMWARE_POLARIS11 ;break ; +case CHIP_POLARIS12 : + fw_name =FIRMWARE_POLARIS12 ; +break ;case CHIP_VEGA10 : fw_name =FIRMWARE_VEGA10 ;break ; -case CHIP_POLARIS12 : - fw_name =FIRMWARE_POLARIS12 ; +case CHIP_VEGA12 : + fw_name =FIRMWARE_VEGA12 ;break ;default :
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 11/42 drm/amdgpu/virtual_dce: add vega12 support
In reply to a message not in the archiveAdd virtual dce support for vega12.
--- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -0
@@ -473,6 +473,7 @@ static int dce_virtual_hw_init(void *handle)/* no DCE */ break ;case CHIP_VEGA10 : +case CHIP_VEGA12 :break ;default :DRM_ERROR ("Virtual display unsupported ASIC type: 0x%X\n" , adev->asic_type);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 12/42 drm/amd/display/dm: add vega12 support
In reply to a message not in the archiveAdd support for vega12 to the display manager.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +4 -0
@@ -1130,6 +1130,7 @@ static int dce110_register_irq_handlers(struct amdgpu_device *adev)unsigned client_id =AMDGPU_IH_CLIENTID_LEGACY ;if (adev->asic_type ==CHIP_VEGA10 || + adev->asic_type ==CHIP_VEGA12 || adev->asic_type ==CHIP_RAVEN ) client_id =SOC15_IH_CLIENTID_DCE ;
@@ -1501,6 +1502,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)case CHIP_POLARIS10 :case CHIP_POLARIS12 :case CHIP_VEGA10 : +case CHIP_VEGA12 :if (dce110_register_irq_handlers (dm->adev)) {DRM_ERROR ("DM: Failed to initialize IRQ\n" ); goto fail;
@@ -1703,6 +1705,7 @@ static int dm_early_init(void *handle) adev->mode_info.plane_type = dm_plane_type_default;break ;case CHIP_VEGA10 : +case CHIP_VEGA12 : adev->mode_info.num_crtc =6 ; adev->mode_info.num_hpd =6 ; adev->mode_info.num_dig =6 ;
@@ -1950,6 +1953,7 @@ static int fill_plane_attributes_from_fb(struct amdgpu_device *adev,AMDGPU_TILING_GET (tiling_flags,PIPE_CONFIG );if (adev->asic_type ==CHIP_VEGA10 || + adev->asic_type ==CHIP_VEGA12 || adev->asic_type ==CHIP_RAVEN ) {/* Fill GFX9 params */ plane_state->tiling_info.gfx9.num_pipes =
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 13/42 drm/amd/display: Add bios firmware info version for VG12
In reply to a message not in the archiveFrom: "Jerry (Fangzhi) Zuo" <[email protected]>
VG12 shows minor revision version of 2 which is not handled in bios_parser_get_firmware_info() routine.
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +1 -0
@@ -1321,6 +1321,7 @@ static enum bp_result bios_parser_get_firmware_info(case 3 :switch (revision.minor) {case 1 : +case 2 : result =get_firmware_info_v3_1 (bp, info);break ;default :
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180321134639.18782-13-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Harry Wentland
Reviewed-byRe: [PATCH 13/42] drm/amd/display: Add bios firmware info version for VG12
Quoted 7 lines · Alex Deucher
From: "Jerry (Fangzhi) Zuo" <[email protected]>
VG12 shows minor revision version of 2 which is not handled in
bios_parser_get_firmware_info()routine.Signed-off-by Jerry (Fangzhi) Zuo <[email protected]>Signed-off-by Alex Deucher <[email protected]>
Harry
Quoted 10 lines
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +0
-0
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c static enum bp_result bios_parser_get_firmware_info( · line 1327
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +1
-0@@ -1321,6 +1321,7 @@ static enum bp_result bios_parser_get_firmware_info(case 3 :switch (revision.minor) {case 1 : +case 2 : result =get_firmware_info_v3_1 (bp, info);break ;default :
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 14/42 drm/amdgpu: add vega12 to dc support check
In reply to a message not in the archiveDC is used for modesetting on vega12.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -1765,6 +1765,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)return amdgpu_dc !=0 ;#endif case CHIP_VEGA10 : +case CHIP_VEGA12 :#if defined(CONFIG_DRM_AMD_DC_DCN1_0 )case CHIP_RAVEN :#endif
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 15/42 drm/amdgpu/gmc9: add vega12 support
In reply to a message not in the archiveSame as vega10.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
@@ -791,6 +791,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)if (amdgpu_gart_size ==-1 ) {switch (adev->asic_type) {case CHIP_VEGA10 :/* all engines support GPUVM */ +case CHIP_VEGA12 :/* all engines support GPUVM */ default : adev->gmc.gart_size =512ULL <<20 ;break ;
@@ -849,6 +850,7 @@ static int gmc_v9_0_sw_init(void *handle) }break ;case CHIP_VEGA10 : +case CHIP_VEGA12 :/* * To fulfill 4-level page support, * vm size is 256TB (48bit), maximum size of Vega10,
@@ -958,6 +960,7 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :soc15_program_register_sequence (adev, golden_settings_mmhub_1_0_0,ARRAY_SIZE (golden_settings_mmhub_1_0_0));
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 16/42 drm/amdgpu/gmc9: fix vega12's athub&mmhub golden setting.
In reply to a message not in the archiveFrom: Feifei Xu <[email protected]>
The athub&mmhub's golden setting is for vega10 only now. Remove this from vega12, which is introduced by branch merge.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +2 -1
@@ -960,7 +960,6 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_VEGA10 : -case CHIP_VEGA12 :soc15_program_register_sequence (adev, golden_settings_mmhub_1_0_0,ARRAY_SIZE (golden_settings_mmhub_1_0_0));
@@ -968,6 +967,8 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_athub_1_0_0, ARRAY_SIZE(golden_settings_athub_1_0_0));break ; +case CHIP_VEGA12 : +break ;case CHIP_RAVEN : soc15_program_register_sequence(adev, golden_settings_athub_1_0_0,
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180321134639.18782-16-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Re: [PATCH 16/42] drm/amdgpu/gmc9: fix vega12's athub&mmhub golden setting.
Am 21.03.2018 um 14:46 schrieb Alex Deucher:
Quoted 8 lines
From: Feifei Xu <[email protected]>
The athub&mmhub's golden setting is for vega10 only now. Remove this from vega12, which is introduced by branch merge.
Signed-off-by Feifei Xu <[email protected]>Reviewed-by Ken Wang <[email protected]>Signed-off-by Alex Deucher <[email protected]>
Shouldn't that one be squashed into the predecessor?
Christian.
Quoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0
-1@@ -960,7 +960,6 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_VEGA10 : -case CHIP_VEGA12 :soc15_program_register_sequence (adev, golden_settings_mmhub_1_0_0,ARRAY_SIZE (golden_settings_mmhub_1_0_0));
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev) · line 974
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +2
-0@@ -968,6 +967,8 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_athub_1_0_0, ARRAY_SIZE(golden_settings_athub_1_0_0));break ; +case CHIP_VEGA12 : +break ;case CHIP_RAVEN : soc15_program_register_sequence(adev, golden_settings_athub_1_0_0,
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 10d031de-ed8a-2091-bedd-b7a540c118f7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Re: [PATCH 16/42] drm/amdgpu/gmc9: fix vega12's athub&mmhub golden setting.
Quoted 7 lines · Christian König
Am 21.03.2018 um 14:46 schrieb Alex Deucher:
Quoted 6 lines
From: Feifei Xu <[email protected]>
The athub&mmhub's golden setting is for vega10 only now. Remove this from vega12, which is introduced by branch merge.
Quoted 6 lines
Quoted 3 lines
Signed-off-by Feifei Xu <[email protected]>Reviewed-by Ken Wang <[email protected]>Signed-off-by Alex Deucher <[email protected]>Shouldn't that one be squashed into the predecessor?
Yes, I'll squash it in. thanks!
Alex
Quoted 28 lines
Christian.
Quoted 24 lines
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0
-1@@ -960,7 +960,6 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_VEGA10 : -case CHIP_VEGA12 : soc15_program_register_sequence(adev, golden_settings_mmhub_1_0_0,
ARRAY_SIZE(golden_settings_mmhub_1_0_0));drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0
-0@@ -968,6 +967,8 @@ static void gmc_v9_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_athub_1_0_0,
Quoted 10 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +2
-0ARRAY_SIZE(golden_settings_athub_1_0_0));break ; +case CHIP_VEGA12 : +break ;case
CHIP_RAVEN:
soc15_program_register_sequence(adev,
golden_settings_athub_1_0_0,
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 17/42 drm/amdgpu/mmhub: add clockgating support for vega12
In reply to a message not in the archiveTreat it the same as vega10 for now.
--- drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c +1 -0
@@ -733,6 +733,7 @@ int mmhub_v1_0_set_clockgating(struct amdgpu_device *adev,switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :case CHIP_RAVEN :mmhub_v1_0_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 18/42 drm/amdgpu/sdma4: specify vega12 firmware
In reply to a message not in the archiveDeclare the firmware and fetch the proper file.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +5 -0
@@ -40,6 +40,8 @@MODULE_FIRMWARE ("amdgpu/vega10_sdma.bin" );MODULE_FIRMWARE ("amdgpu/vega10_sdma1.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_sdma.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_sdma1.bin" );MODULE_FIRMWARE ("amdgpu/raven_sdma.bin" );#define SDMA0_POWER_CNTL__ON_OFF_CONDITION_HOLD_TIME_MASK 0x000000F8L
@@ -162,6 +164,9 @@ static int sdma_v4_0_init_microcode(struct amdgpu_device *adev)case CHIP_VEGA10 : chip_name ="vega10" ;break ; +case CHIP_VEGA12 : + chip_name ="vega12" ; +break ;case CHIP_RAVEN : chip_name ="raven" ;break ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 19/42 drm/amdgpu/sdma4: Add placeholder for vega12 golden settings
In reply to a message not in the archiveFill these in when we get them.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +3 -0
@@ -124,6 +124,9 @@ static void sdma_v4_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_sdma_vg10, ARRAY_SIZE(golden_settings_sdma_vg10));break ; +case CHIP_VEGA12 : +DRM_ERROR ("todo: Missing SDMA4 golden settings for vega12\n" ); +break ;case CHIP_RAVEN : soc15_program_register_sequence(adev, golden_settings_sdma_4_1,
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 20/42 drm/amdgpu/sdma4: add clockgating support for vega12
In reply to a message not in the archiveSame as vega10 for now.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -0
@@ -1497,6 +1497,7 @@ static int sdma_v4_0_set_clockgating_state(void *handle,switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :case CHIP_RAVEN :sdma_v4_0_update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 21/42 drm/amdgpu/sdma4: add sdma4_0_1 support for vega12 (v3)
In reply to a message not in the archiveFrom: Hawking Zhang <[email protected]>
Add sdma golden setting for vega12.
v2: switch to soc15_program_register_sequence for golden register programming
v3: squash in unused declaration fix
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +15 -3
@@ -86,6 +86,13 @@ static const struct soc15_reg_golden golden_settings_sdma_vg10[] = {SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104002 ) }; +static const struct soc15_reg_golden golden_settings_sdma_vg12[] = { +SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_GB_ADDR_CONFIG,0x0018773f ,0x00104002 ), +SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104002 ), +SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG,0x0018773f ,0x00104002 ), +SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104002 ) +}; +static const struct soc15_reg_golden golden_settings_sdma_4_1[] = {SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_CHICKEN_BITS,0xfe931f07 ,0x02831d07 ),
@@ -125,7 +132,12 @@ static void sdma_v4_0_init_golden_registers(struct amdgpu_device *adev) ARRAY_SIZE(golden_settings_sdma_vg10));break ;case CHIP_VEGA12 : -DRM_ERROR ("todo: Missing SDMA4 golden settings for vega12\n" ); +soc15_program_register_sequence (adev, + golden_settings_sdma_4, +ARRAY_SIZE (golden_settings_sdma_4)); +soc15_program_register_sequence (adev, + golden_settings_sdma_vg12, +ARRAY_SIZE (golden_settings_sdma_vg12));break ;case CHIP_RAVEN : soc15_program_register_sequence(adev,
@@ -1627,7 +1639,7 @@ static void sdma_v4_0_set_irq_funcs(struct amdgpu_device *adev)* @dst_offset: dst GPU address * @byte_count: number of bytes to xfer * -* Copy GPU buffers using the DMA engine (VEGA10). +* Copy GPU buffers using the DMA engine (VEGA10/12). * Used by the amdgpu ttm implementation to move pages if * registered as the asic copy callback. */
@@ -1654,7 +1666,7 @@ static void sdma_v4_0_emit_copy_buffer(struct amdgpu_ib *ib,* @dst_offset: dst GPU address * @byte_count: number of bytes to xfer * -* Fill GPU buffers using the DMA engine (VEGA10). +* Fill GPU buffers using the DMA engine (VEGA10/12). */ static void sdma_v4_0_emit_fill_buffer(struct amdgpu_ib *ib, uint32_t src_data,
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 22/42 drm/amdgpu/sdma4: Update vega12 sdma golden setting.
In reply to a message not in the archiveFrom: Feifei Xu <[email protected]>
Update vega12 sdma golden setting.
--- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +4 -4
@@ -87,10 +87,10 @@ static const struct soc15_reg_golden golden_settings_sdma_vg10[] = { };static const struct soc15_reg_golden golden_settings_sdma_vg12[] = { -SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_GB_ADDR_CONFIG,0x0018773f ,0x00104002 ), -SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104002 ), -SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG,0x0018773f ,0x00104002 ), -SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104002 ) +SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_GB_ADDR_CONFIG,0x0018773f ,0x00104001 ), +SOC15_REG_GOLDEN_VALUE (SDMA0 ,0 , mmSDMA0_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104001 ), +SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG,0x0018773f ,0x00104001 ), +SOC15_REG_GOLDEN_VALUE (SDMA1 ,0 , mmSDMA1_GB_ADDR_CONFIG_READ,0x0018773f ,0x00104001 ) }; static const struct soc15_reg_golden golden_settings_sdma_4_1[] =
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 23/42 drm/amdgpu/gfx9: add support for vega12 firmware
In reply to a message not in the archiveDeclare and fetch the appriopriate files.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +10 -0
@@ -57,6 +57,13 @@ MODULE_FIRMWARE("amdgpu/vega10_mec.bin");MODULE_FIRMWARE ("amdgpu/vega10_mec2.bin" );MODULE_FIRMWARE ("amdgpu/vega10_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_ce.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_pfp.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_me.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_mec.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_mec2.bin" ); +MODULE_FIRMWARE ("amdgpu/vega12_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/raven_ce.bin" );MODULE_FIRMWARE ("amdgpu/raven_pfp.bin" );MODULE_FIRMWARE ("amdgpu/raven_me.bin" );
@@ -369,6 +376,9 @@ static int gfx_v9_0_init_microcode(struct amdgpu_device *adev)case CHIP_VEGA10 : chip_name ="vega10" ;break ; +case CHIP_VEGA12 : + chip_name ="vega12" ; +break ;case CHIP_RAVEN : chip_name ="raven" ;break ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 24/42 drm/amdgpu/gfx9: Add placeholder for vega12 golden settings
In reply to a message not in the archiveFill these in when we get them.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +3 -0
@@ -175,6 +175,9 @@ static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev) golden_settings_gc_9_0_vg10, ARRAY_SIZE(golden_settings_gc_9_0_vg10));break ; +case CHIP_VEGA12 : +DRM_ERROR ("missing golden settings for gfx9 on vega12!\n" ); +break ;case CHIP_RAVEN : soc15_program_register_sequence(adev, golden_settings_gc_9_1,
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 25/42 drm/amdgpu/gfx9: add gfx config for vega12
In reply to a message not in the archiveJust a place holder for now.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +9 -0
@@ -981,6 +981,15 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev) adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ; gb_addr_config =VEGA10_GB_ADDR_CONFIG_GOLDEN ;break ; +case CHIP_VEGA12 : + 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 ; + adev->gfx.config.sc_hiz_tile_fifo_size =0x30 ; + adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ; + gb_addr_config =VEGA10_GB_ADDR_CONFIG_GOLDEN ; +DRM_INFO ("fix gfx.config for vega12\n" ); +break ;case CHIP_RAVEN : adev->gfx.config.max_hw_contexts =8 ; adev->gfx.config.sc_prim_fifo_size_frontend =0x20 ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 26/42 drm/amdgpu/gfx9: add support for vega12
In reply to a message not in the archiveSame as vega10 and raven.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2 -0
@@ -1271,6 +1271,7 @@ static int gfx_v9_0_sw_init(void *handle)switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :case CHIP_RAVEN : adev->gfx.mec.num_mec =2 ;break ;
@@ -4475,6 +4476,7 @@ static void gfx_v9_0_set_rlc_funcs(struct amdgpu_device *adev) {switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :case CHIP_RAVEN : adev->gfx.rlc.funcs = &gfx_v9_0_rlc_funcs;break ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 27/42 drm/amdgpu/gfx9: add clockgating support for vega12
In reply to a message not in the archiveSame as vega10 and raven.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
@@ -3505,6 +3505,7 @@ static int gfx_v9_0_set_clockgating_state(void *handle,switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :case CHIP_RAVEN :gfx_v9_0_update_gfx_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 28/42 drm/amdgpu/gfx9: add golden setting for vega12 (v3)
In reply to a message not in the archiveFrom: Hawking Zhang <[email protected]>
Add gfx9_2_1 golden setting.
v2: switch to soc15_program_register_sequence for golden setting programming
v3: squash in additional golden updates
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 44 +++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +42 -2
@@ -151,7 +151,42 @@ static const struct soc15_reg_golden golden_settings_gc_9_x_common[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGRBM_CAM_DATA,0xffffffff ,0x2544c382 ) }; +static const struct soc15_reg_golden golden_settings_gc_9_2_1[] = +{ +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG2,0xf00fffff ,0x00000420 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGB_GPU_ID,0x0000000f ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_BINNER_EVENT_CNTL_3,0x00000003 ,0x82400024 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE,0x3fffffff ,0x00000001 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_LINE_STIPPLE_STATE,0x0000ff0f ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSH_MEM_CONFIG,0x00001000 ,0x00001000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_CU_0,0x0007ffff ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_CU_1,0x0007ffff ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_EN_CU_0,0x01ffffff ,0x0000ff87 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_EN_CU_1,0x01ffffff ,0x0000ff8f ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQC_CONFIG,0x03000000 ,0x020a2000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTA_CNTL_AUX,0xfffffeef ,0x010b0000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_HI,0xffffffff ,0x4a2c0e68 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_LO,0xffffffff ,0xb5d3f197 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmVGT_CACHE_INVALIDATION,0x3fff3af3 ,0x19200000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmVGT_GS_MAX_WAVE_ID,0x00000fff ,0x000003ff ) +}; + +static const struct soc15_reg_golden golden_settings_gc_9_2_1_vg12[] = +{ +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_DCC_CONFIG,0x00000080 ,0x04000080 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_HW_CONTROL,0xfffdf3cf ,0x00014104 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCB_HW_CONTROL_2,0x0f000000 ,0x0a000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGB_ADDR_CONFIG,0xffff77ff ,0x24104041 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGB_ADDR_CONFIG_READ,0xffff77ff ,0x24104041 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE_1,0xffffffff ,0x04040000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_CONFIG_CNTL_1,0xffff03ff ,0x01000107 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_HI,0xffffffff ,0x00000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_LO,0xffffffff ,0x76325410 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTD_CNTL,0x01bd9f33 ,0x01000000 ) +}; +#define VEGA10_GB_ADDR_CONFIG_GOLDEN 0x2a114042 +#define VEGA12_GB_ADDR_CONFIG_GOLDEN 0x24104041#define RAVEN_GB_ADDR_CONFIG_GOLDEN 0x24000042static void gfx_v9_0_set_ring_funcs (struct amdgpu_device *adev);
@@ -176,7 +211,12 @@ static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev) ARRAY_SIZE(golden_settings_gc_9_0_vg10));break ;case CHIP_VEGA12 : -DRM_ERROR ("missing golden settings for gfx9 on vega12!\n" ); +soc15_program_register_sequence (adev, + golden_settings_gc_9_2_1, +ARRAY_SIZE (golden_settings_gc_9_2_1)); +soc15_program_register_sequence (adev, + golden_settings_gc_9_2_1_vg12, +ARRAY_SIZE (golden_settings_gc_9_2_1_vg12));break ;case CHIP_RAVEN : soc15_program_register_sequence(adev,
@@ -987,7 +1027,7 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev) adev->gfx.config.sc_prim_fifo_size_backend =0x100 ; adev->gfx.config.sc_hiz_tile_fifo_size =0x30 ; adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ; - gb_addr_config =VEGA10_GB_ADDR_CONFIG_GOLDEN ; + gb_addr_config =VEGA12_GB_ADDR_CONFIG_GOLDEN ;DRM_INFO ("fix gfx.config for vega12\n" );break ;case CHIP_RAVEN :
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 29/42 drm/amdgpu/soc15: add support for vega12
In reply to a message not in the archiveAdd the IP blocks, clock and powergating flags, and common clockgating support.
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +7 -0
@@ -527,6 +527,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :amdgpu_device_ip_block_add (adev, &vega10_common_ip_block);amdgpu_device_ip_block_add (adev, &gmc_v9_0_ip_block);amdgpu_device_ip_block_add (adev, &vega10_ih_ip_block);
@@ -651,6 +652,11 @@ static int soc15_common_early_init(void *handle) adev->pg_flags =0 ; adev->external_rev_id =0x1 ;break ; +case CHIP_VEGA12 : + adev->cg_flags =0 ; + adev->pg_flags =0 ; + adev->external_rev_id =0x1 ;/* ??? */ +break ;case CHIP_RAVEN : adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG | AMD_CG_SUPPORT_GFX_MGLS |
@@ -883,6 +889,7 @@ static int soc15_common_set_clockgating_state(void *handle,switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 : adev->nbio_funcs->update_medium_grain_clock_gating (adev, state ==AMD_CG_STATE_GATE ? true : false); adev->nbio_funcs->update_medium_grain_light_sleep(adev,
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 30/42 drm/amdgpu/soc15: update vega12 cg_flags
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
Add the appropriate clockgating flags for vega12
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +18 -1
@@ -653,7 +653,24 @@ static int soc15_common_early_init(void *handle) adev->external_rev_id =0x1 ;break ;case CHIP_VEGA12 : - adev->cg_flags =0 ; + adev->cg_flags =AMD_CG_SUPPORT_GFX_MGCG | +AMD_CG_SUPPORT_GFX_MGLS | +AMD_CG_SUPPORT_GFX_CGCG | +AMD_CG_SUPPORT_GFX_CGLS | +AMD_CG_SUPPORT_GFX_3D_CGCG | +AMD_CG_SUPPORT_GFX_3D_CGLS | +AMD_CG_SUPPORT_GFX_CP_LS | +AMD_CG_SUPPORT_MC_LS | +AMD_CG_SUPPORT_MC_MGCG | +AMD_CG_SUPPORT_SDMA_MGCG | +AMD_CG_SUPPORT_SDMA_LS | +AMD_CG_SUPPORT_BIF_MGCG | +AMD_CG_SUPPORT_BIF_LS | +AMD_CG_SUPPORT_HDP_MGCG | +AMD_CG_SUPPORT_HDP_LS | +AMD_CG_SUPPORT_ROM_MGCG | +AMD_CG_SUPPORT_VCE_MGCG | +AMD_CG_SUPPORT_UVD_MGCG ; adev->pg_flags =0 ; adev->external_rev_id =0x1 ;/* ??? */ break ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 31/42 drm/amd/soc15: Add external_rev_id for vega12.
In reply to a message not in the archiveFrom: Feifei Xu <[email protected]>
Add external_rev_id for vega12.
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -1
@@ -672,7 +672,7 @@ static int soc15_common_early_init(void *handle)AMD_CG_SUPPORT_VCE_MGCG |AMD_CG_SUPPORT_UVD_MGCG ; adev->pg_flags =0 ; - adev->external_rev_id =0x1 ;/* ??? */ + adev->external_rev_id = adev->rev_id +0x14 ;break ;case CHIP_RAVEN : adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 32/42 drm/amdgpu/soc15: initialize reg base for vega12
In reply to a message not in the archiveFrom: Hawking Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +1 -0
@@ -508,6 +508,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)/* Set IP register base before any HW register access */ switch (adev->asic_type) {case CHIP_VEGA10 : +case CHIP_VEGA12 :case CHIP_RAVEN :vega10_reg_base_init (adev);break ;
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 33/42 drm/amd/powerplay: add vega12_inc.h
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright 2017 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. +* +*/ + +#ifndef VEGA12_INC_H +#define VEGA12_INC_H + +#include "asic_reg/thm/thm_9_0_default.h" +#include "asic_reg/thm/thm_9_0_offset.h" +#include "asic_reg/thm/thm_9_0_sh_mask.h" + +#include "asic_reg/mp/mp_9_0_offset.h" +#include "asic_reg/mp/mp_9_0_sh_mask.h" + +#include "asic_reg/gc/gc_9_2_1_offset.h" +#include "asic_reg/gc/gc_9_2_1_sh_mask.h" + +#include "asic_reg/nbio/nbio_6_1_offset.h" + +#endif
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 34/42 drm/amd/powerplay: update atomfirmware.h (v2)
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
Add new smu_info table.
v2: update table format.
--- drivers/gpu/drm/amd/include/atomfirmware.h | 82 +++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/include/atomfirmware.h +81 -1
@@ -381,7 +381,7 @@ struct atom_rom_hw_function_headerstruct atom_master_list_of_data_tables_v2_1 {uint16_t utilitypipeline;/* Offest for the utility to get parser info,Don't change this position!*/ uint16_t multimedia_info; -uint16_t sw_datatable2; +uint16_t smc_dpm_info;uint16_t sw_datatable3;uint16_t firmwareinfo;/* Shared by various SW components */ uint16_t sw_datatable5;
@@ -1198,6 +1198,86 @@ struct atom_smu_info_v3_1uint8_t fw_ctf_polarity;// GPIO polarity for CTF }; +/* +*************************************************************************** +Data Table smc_dpm_info structure +*************************************************************************** +*/ +struct atom_smc_dpm_info_v4_1 +{ +struct atom_common_table_header table_header; +uint8_t liquid1_i2c_address; +uint8_t liquid2_i2c_address; +uint8_t vr_i2c_address; +uint8_t plx_i2c_address; + +uint8_t liquid_i2c_linescl; +uint8_t liquid_i2c_linesda; +uint8_t vr_i2c_linescl; +uint8_t vr_i2c_linesda; + +uint8_t plx_i2c_linescl; +uint8_t plx_i2c_linesda; +uint8_t vrsensorpresent; +uint8_t liquidsensorpresent; + +uint16_t maxvoltagestepgfx; +uint16_t maxvoltagestepsoc; + +uint8_t vddgfxvrmapping; +uint8_t vddsocvrmapping; +uint8_t vddmem0vrmapping; +uint8_t vddmem1vrmapping; + +uint8_t gfxulvphasesheddingmask; +uint8_t soculvphasesheddingmask; +uint8_t padding8_v[2 ]; + +uint16_t gfxmaxcurrent; +uint8_t gfxoffset; +uint8_t padding_telemetrygfx; + +uint16_t socmaxcurrent; +uint8_t socoffset; +uint8_t padding_telemetrysoc; + +uint16_t mem0maxcurrent; +uint8_t mem0offset; +uint8_t padding_telemetrymem0; + +uint16_t mem1maxcurrent; +uint8_t mem1offset; +uint8_t padding_telemetrymem1; + +uint8_t acdcgpio; +uint8_t acdcpolarity; +uint8_t vr0hotgpio; +uint8_t vr0hotpolarity; + +uint8_t vr1hotgpio; +uint8_t vr1hotpolarity; +uint8_t padding1; +uint8_t padding2; + +uint8_t ledpin0; +uint8_t ledpin1; +uint8_t ledpin2; +uint8_t padding8_4; + +uint8_t gfxclkspreadenabled; +uint8_t gfxclkspreadpercent; +uint16_t gfxclkspreadfreq; + +uint8_t uclkspreadenabled; +uint8_t uclkspreadpercent; +uint16_t uclkspreadfreq; + +uint8_t socclkspreadenabled; +uint8_t socclkspreadpercent; +uint16_t socclkspreadfreq; + +uint32_t boardreserved[3 ]; +};/*
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 35/42 drm/amd/powerplay: add new smu9_driver_if.h for vega12 (v2)
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
Add driver firmware interface header.
v2: squash in interface updates.
--- .../drm/amd/powerplay/inc/vega12/smu9_driver_if.h | 758 +++++++++++++++++++++ 1 file changed, 758 insertions(+) create mode 100644 drivers/gpu/drm/amd/powerplay/inc/vega12/smu9_driver_if.h
drivers/gpu/drm/amd/powerplay/inc/vega12/smu9_driver_if.h new file +758 -0
@@ -0,0 +1,758 @@ +/* +* Copyright 2017 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. +* +*/ + +#ifndef VEGA12_SMU9_DRIVER_IF_H +#define VEGA12_SMU9_DRIVER_IF_H + +/**** IMPORTANT *** +* SMU TEAM: Always increment the interface version if +* any structure is changed in this file +*/ +#define SMU9_DRIVER_IF_VERSION 0x10 + +#define PPTABLE_V12_SMU_VERSION 1 + +#define NUM_GFXCLK_DPM_LEVELS 16 +#define NUM_VCLK_DPM_LEVELS 8 +#define NUM_DCLK_DPM_LEVELS 8 +#define NUM_ECLK_DPM_LEVELS 8 +#define NUM_MP0CLK_DPM_LEVELS 2 +#define NUM_UCLK_DPM_LEVELS 4 +#define NUM_SOCCLK_DPM_LEVELS 8 +#define NUM_DCEFCLK_DPM_LEVELS 8 +#define NUM_DISPCLK_DPM_LEVELS 8 +#define NUM_PIXCLK_DPM_LEVELS 8 +#define NUM_PHYCLK_DPM_LEVELS 8 +#define NUM_LINK_LEVELS 2 + +#define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1) +#define MAX_VCLK_DPM_LEVEL (NUM_VCLK_DPM_LEVELS - 1) +#define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1) +#define MAX_ECLK_DPM_LEVEL (NUM_ECLK_DPM_LEVELS - 1) +#define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1) +#define MAX_UCLK_DPM_LEVEL (NUM_UCLK_DPM_LEVELS - 1) +#define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1) +#define MAX_DCEFCLK_DPM_LEVEL (NUM_DCEFCLK_DPM_LEVELS - 1) +#define MAX_DISPCLK_DPM_LEVEL (NUM_DISPCLK_DPM_LEVELS - 1) +#define MAX_PIXCLK_DPM_LEVEL (NUM_PIXCLK_DPM_LEVELS - 1) +#define MAX_PHYCLK_DPM_LEVEL (NUM_PHYCLK_DPM_LEVELS - 1) +#define MAX_LINK_LEVEL (NUM_LINK_LEVELS - 1) + + +#define PPSMC_GeminiModeNone 0 +#define PPSMC_GeminiModeMaster 1 +#define PPSMC_GeminiModeSlave 2 + + +#define FEATURE_DPM_PREFETCHER_BIT 0 +#define FEATURE_DPM_GFXCLK_BIT 1 +#define FEATURE_DPM_UCLK_BIT 2 +#define FEATURE_DPM_SOCCLK_BIT 3 +#define FEATURE_DPM_UVD_BIT 4 +#define FEATURE_DPM_VCE_BIT 5 +#define FEATURE_ULV_BIT 6 +#define FEATURE_DPM_MP0CLK_BIT 7 +#define FEATURE_DPM_LINK_BIT 8 +#define FEATURE_DPM_DCEFCLK_BIT 9 +#define FEATURE_DS_GFXCLK_BIT 10 +#define FEATURE_DS_SOCCLK_BIT 11 +#define FEATURE_DS_LCLK_BIT 12 +#define FEATURE_PPT_BIT 13 +#define FEATURE_TDC_BIT 14 +#define FEATURE_THERMAL_BIT 15 +#define FEATURE_GFX_PER_CU_CG_BIT 16 +#define FEATURE_RM_BIT 17 +#define FEATURE_DS_DCEFCLK_BIT 18 +#define FEATURE_ACDC_BIT 19 +#define FEATURE_VR0HOT_BIT 20 +#define FEATURE_VR1HOT_BIT 21 +#define FEATURE_FW_CTF_BIT 22 +#define FEATURE_LED_DISPLAY_BIT 23 +#define FEATURE_FAN_CONTROL_BIT 24 +#define FEATURE_GFX_EDC_BIT 25 +#define FEATURE_GFXOFF_BIT 26 +#define FEATURE_CG_BIT 27 +#define FEATURE_ACG_BIT 28 +#define FEATURE_SPARE_29_BIT 29 +#define FEATURE_SPARE_30_BIT 30 +#define FEATURE_SPARE_31_BIT 31 + +#define NUM_FEATURES 32 + +#define FEATURE_DPM_PREFETCHER_MASK (1 << FEATURE_DPM_PREFETCHER_BIT ) +#define FEATURE_DPM_GFXCLK_MASK (1 << FEATURE_DPM_GFXCLK_BIT ) +#define FEATURE_DPM_UCLK_MASK (1 << FEATURE_DPM_UCLK_BIT ) +#define FEATURE_DPM_SOCCLK_MASK (1 << FEATURE_DPM_SOCCLK_BIT ) +#define FEATURE_DPM_UVD_MASK (1 << FEATURE_DPM_UVD_BIT ) +#define FEATURE_DPM_VCE_MASK (1 << FEATURE_DPM_VCE_BIT ) +#define FEATURE_ULV_MASK (1 << FEATURE_ULV_BIT ) +#define FEATURE_DPM_MP0CLK_MASK (1 << FEATURE_DPM_MP0CLK_BIT ) +#define FEATURE_DPM_LINK_MASK (1 << FEATURE_DPM_LINK_BIT ) +#define FEATURE_DPM_DCEFCLK_MASK (1 << FEATURE_DPM_DCEFCLK_BIT ) +#define FEATURE_DS_GFXCLK_MASK (1 << FEATURE_DS_GFXCLK_BIT ) +#define FEATURE_DS_SOCCLK_MASK (1 << FEATURE_DS_SOCCLK_BIT ) +#define FEATURE_DS_LCLK_MASK (1 << FEATURE_DS_LCLK_BIT ) +#define FEATURE_PPT_MASK (1 << FEATURE_PPT_BIT ) +#define FEATURE_TDC_MASK (1 << FEATURE_TDC_BIT ) +#define FEATURE_THERMAL_MASK (1 << FEATURE_THERMAL_BIT ) +#define FEATURE_GFX_PER_CU_CG_MASK (1 << FEATURE_GFX_PER_CU_CG_BIT ) +#define FEATURE_RM_MASK (1 << FEATURE_RM_BIT ) +#define FEATURE_DS_DCEFCLK_MASK (1 << FEATURE_DS_DCEFCLK_BIT ) +#define FEATURE_ACDC_MASK (1 << FEATURE_ACDC_BIT ) +#define FEATURE_VR0HOT_MASK (1 << FEATURE_VR0HOT_BIT ) +#define FEATURE_VR1HOT_MASK (1 << FEATURE_VR1HOT_BIT ) +#define FEATURE_FW_CTF_MASK (1 << FEATURE_FW_CTF_BIT ) +#define FEATURE_LED_DISPLAY_MASK (1 << FEATURE_LED_DISPLAY_BIT ) +#define FEATURE_FAN_CONTROL_MASK (1 << FEATURE_FAN_CONTROL_BIT ) +#define FEATURE_GFX_EDC_MASK (1 << FEATURE_GFX_EDC_BIT ) +#define FEATURE_GFXOFF_MASK (1 << FEATURE_GFXOFF_BIT ) +#define FEATURE_CG_MASK (1 << FEATURE_CG_BIT ) +#define FEATURE_ACG_MASK (1 << FEATURE_ACG_BIT ) +#define FEATURE_SPARE_29_MASK (1 << FEATURE_SPARE_29_BIT ) +#define FEATURE_SPARE_30_MASK (1 << FEATURE_SPARE_30_BIT ) +#define FEATURE_SPARE_31_MASK (1 << FEATURE_SPARE_31_BIT ) + + +#define DPM_OVERRIDE_DISABLE_SOCCLK_PID 0x00000001 +#define DPM_OVERRIDE_DISABLE_UCLK_PID 0x00000002 +#define DPM_OVERRIDE_ENABLE_VOLT_LINK_UVD_SOCCLK 0x00000004 +#define DPM_OVERRIDE_ENABLE_VOLT_LINK_UVD_UCLK 0x00000008 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_VCLK_SOCCLK 0x00000010 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_VCLK_UCLK 0x00000020 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_DCLK_SOCCLK 0x00000040 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_DCLK_UCLK 0x00000080 +#define DPM_OVERRIDE_ENABLE_VOLT_LINK_VCE_SOCCLK 0x00000100 +#define DPM_OVERRIDE_ENABLE_VOLT_LINK_VCE_UCLK 0x00000200 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_ECLK_SOCCLK 0x00000400 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_ECLK_UCLK 0x00000800 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_GFXCLK_SOCCLK 0x00001000 +#define DPM_OVERRIDE_ENABLE_FREQ_LINK_GFXCLK_UCLK 0x00002000 +#define DPM_OVERRIDE_ENABLE_GFXOFF_GFXCLK_SWITCH 0x00004000 +#define DPM_OVERRIDE_ENABLE_GFXOFF_SOCCLK_SWITCH 0x00008000 +#define DPM_OVERRIDE_ENABLE_GFXOFF_UCLK_SWITCH 0x00010000 + + +#define VR_MAPPING_VR_SELECT_MASK 0x01 +#define VR_MAPPING_VR_SELECT_SHIFT 0x00 + +#define VR_MAPPING_PLANE_SELECT_MASK 0x02 +#define VR_MAPPING_PLANE_SELECT_SHIFT 0x01 + + +#define PSI_SEL_VR0_PLANE0_PSI0 0x01 +#define PSI_SEL_VR0_PLANE0_PSI1 0x02 +#define PSI_SEL_VR0_PLANE1_PSI0 0x04 +#define PSI_SEL_VR0_PLANE1_PSI1 0x08 +#define PSI_SEL_VR1_PLANE0_PSI0 0x10 +#define PSI_SEL_VR1_PLANE0_PSI1 0x20 +#define PSI_SEL_VR1_PLANE1_PSI0 0x40 +#define PSI_SEL_VR1_PLANE1_PSI1 0x80 + + +#define THROTTLER_STATUS_PADDING_BIT 0 +#define THROTTLER_STATUS_TEMP_EDGE_BIT 1 +#define THROTTLER_STATUS_TEMP_HOTSPOT_BIT 2 +#define THROTTLER_STATUS_TEMP_HBM_BIT 3 +#define THROTTLER_STATUS_TEMP_VR_GFX_BIT 4 +#define THROTTLER_STATUS_TEMP_VR_MEM_BIT 5 +#define THROTTLER_STATUS_TEMP_LIQUID_BIT 6 +#define THROTTLER_STATUS_TEMP_PLX_BIT 7 +#define THROTTLER_STATUS_TEMP_SKIN_BIT 8 +#define THROTTLER_STATUS_TDC_GFX_BIT 9 +#define THROTTLER_STATUS_TDC_SOC_BIT 10 +#define THROTTLER_STATUS_PPT_BIT 11 +#define THROTTLER_STATUS_FIT_BIT 12 +#define THROTTLER_STATUS_PPM_BIT 13 + + +#define TABLE_TRANSFER_OK 0x0 +#define TABLE_TRANSFER_FAILED 0xFF + + +#define WORKLOAD_DEFAULT_BIT 0 +#define WORKLOAD_PPLIB_FULL_SCREEN_3D_BIT 1 +#define WORKLOAD_PPLIB_POWER_SAVING_BIT 2 +#define WORKLOAD_PPLIB_VIDEO_BIT 3 +#define WORKLOAD_PPLIB_VR_BIT 4 +#define WORKLOAD_PPLIB_COMPUTE_BIT 5 +#define WORKLOAD_PPLIB_CUSTOM_BIT 6 +#define WORKLOAD_PPLIB_COUNT 7 + +typedef struct { +uint32_t a; +uint32_t b; +uint32_t c; +}QuadraticInt_t ; + +typedef struct { +uint32_t m; +uint32_t b; +}LinearInt_t ; + +typedef struct { +uint32_t a; +uint32_t b; +uint32_t c; +}DroopInt_t ; + +typedef enum { +PPCLK_GFXCLK , +PPCLK_VCLK , +PPCLK_DCLK , +PPCLK_ECLK , +PPCLK_SOCCLK , +PPCLK_UCLK , +PPCLK_DCEFCLK , +PPCLK_DISPCLK , +PPCLK_PIXCLK , +PPCLK_PHYCLK , +PPCLK_COUNT , +}PPCLK_e ; + +enum { +VOLTAGE_MODE_AVFS , +VOLTAGE_MODE_AVFS_SS , +VOLTAGE_MODE_SS , +VOLTAGE_MODE_COUNT , +}; + +typedef struct { +uint8_t VoltageMode; +uint8_t SnapToDiscrete; +uint8_t NumDiscreteLevels; +uint8_t padding; +LinearInt_t ConversionToAvfsClk; +QuadraticInt_t SsCurve; +}DpmDescriptor_t ; + +typedef struct { +uint32_t Version; + + +uint32_t FeaturesToRun[2 ]; + + +uint16_t SocketPowerLimitAc0; +uint16_t SocketPowerLimitAc0Tau; +uint16_t SocketPowerLimitAc1; +uint16_t SocketPowerLimitAc1Tau; +uint16_t SocketPowerLimitAc2; +uint16_t SocketPowerLimitAc2Tau; +uint16_t SocketPowerLimitAc3; +uint16_t SocketPowerLimitAc3Tau; +uint16_t SocketPowerLimitDc; +uint16_t SocketPowerLimitDcTau; +uint16_t TdcLimitSoc; +uint16_t TdcLimitSocTau; +uint16_t TdcLimitGfx; +uint16_t TdcLimitGfxTau; + +uint16_t TedgeLimit; +uint16_t ThotspotLimit; +uint16_t ThbmLimit; +uint16_t Tvr_gfxLimit; +uint16_t Tvr_memLimit; +uint16_t Tliquid1Limit; +uint16_t Tliquid2Limit; +uint16_t TplxLimit; +uint32_t FitLimit; + +uint16_t PpmPowerLimit; +uint16_t PpmTemperatureThreshold; + +uint8_t MemoryOnPackage; +uint8_t padding8_limits[3 ]; + + +uint16_t UlvVoltageOffsetSoc; +uint16_t UlvVoltageOffsetGfx; + +uint8_t UlvSmnclkDid; +uint8_t UlvMp1clkDid; +uint8_t UlvGfxclkBypass; +uint8_t Padding234; + + +uint16_t MinVoltageGfx; +uint16_t MinVoltageSoc; +uint16_t MaxVoltageGfx; +uint16_t MaxVoltageSoc; + +uint16_t LoadLineResistance; +uint16_t LoadLine_padding; + + +DpmDescriptor_t DpmDescriptor[PPCLK_COUNT ]; + +uint16_t FreqTableGfx [NUM_GFXCLK_DPM_LEVELS ]; +uint16_t FreqTableVclk [NUM_VCLK_DPM_LEVELS ]; +uint16_t FreqTableDclk [NUM_DCLK_DPM_LEVELS ]; +uint16_t FreqTableEclk [NUM_ECLK_DPM_LEVELS ]; +uint16_t FreqTableSocclk [NUM_SOCCLK_DPM_LEVELS ]; +uint16_t FreqTableUclk [NUM_UCLK_DPM_LEVELS ]; +uint16_t FreqTableDcefclk [NUM_DCEFCLK_DPM_LEVELS ]; +uint16_t FreqTableDispclk [NUM_DISPCLK_DPM_LEVELS ]; +uint16_t FreqTablePixclk [NUM_PIXCLK_DPM_LEVELS ]; +uint16_t FreqTablePhyclk [NUM_PHYCLK_DPM_LEVELS ]; + +uint16_t DcModeMaxFreq [PPCLK_COUNT ]; + + +uint16_t Mp0clkFreq [NUM_MP0CLK_DPM_LEVELS ]; +uint16_t Mp0DpmVoltage [NUM_MP0CLK_DPM_LEVELS ]; + + +uint16_t GfxclkFidle; +uint16_t GfxclkSlewRate; +uint16_t CksEnableFreq; +uint16_t Padding789; +QuadraticInt_t CksVoltageOffset; +uint16_t AcgThresholdFreqHigh; +uint16_t AcgThresholdFreqLow; +uint16_t GfxclkDsMaxFreq; +uint8_t Padding456[2 ]; + + +uint8_t LowestUclkReservedForUlv; +uint8_t Padding8_Uclk[3 ]; + + +uint8_t PcieGenSpeed[NUM_LINK_LEVELS ]; +uint8_t PcieLaneCount[NUM_LINK_LEVELS ]; +uint16_t LclkFreq[NUM_LINK_LEVELS ]; + + +uint16_t EnableTdpm; +uint16_t TdpmHighHystTemperature; +uint16_t TdpmLowHystTemperature; +uint16_t GfxclkFreqHighTempLimit; + + +uint16_t FanStopTemp; +uint16_t FanStartTemp; + +uint16_t FanGainEdge; +uint16_t FanGainHotspot; +uint16_t FanGainLiquid; +uint16_t FanGainVrVddc; +uint16_t FanGainVrMvdd; +uint16_t FanGainPlx; +uint16_t FanGainHbm; +uint16_t FanPwmMin; +uint16_t FanAcousticLimitRpm; +uint16_t FanThrottlingRpm; +uint16_t FanMaximumRpm; +uint16_t FanTargetTemperature; +uint16_t FanTargetGfxclk; +uint8_t FanZeroRpmEnable; +uint8_t FanTachEdgePerRev; + + + +int16_t FuzzyFan_ErrorSetDelta; +int16_t FuzzyFan_ErrorRateSetDelta; +int16_t FuzzyFan_PwmSetDelta; +uint16_t FuzzyFan_Reserved; + + + + +uint8_t OverrideAvfsGb; +uint8_t Padding8_Avfs[3 ]; + +QuadraticInt_t qAvfsGb; +DroopInt_t dBtcGbGfxCksOn; +DroopInt_t dBtcGbGfxCksOff; +DroopInt_t dBtcGbGfxAcg; +DroopInt_t dBtcGbSoc; +LinearInt_t qAgingGbGfx; +LinearInt_t qAgingGbSoc; + +QuadraticInt_t qStaticVoltageOffsetGfx; +QuadraticInt_t qStaticVoltageOffsetSoc; + +uint16_t DcTolGfx; +uint16_t DcTolSoc; + +uint8_t DcBtcGfxEnabled; +uint8_t DcBtcSocEnabled; +uint8_t Padding8_GfxBtc[2 ]; + +uint16_t DcBtcGfxMin; +uint16_t DcBtcGfxMax; + +uint16_t DcBtcSocMin; +uint16_t DcBtcSocMax; + + + +uint32_t DebugOverrides; +QuadraticInt_t ReservedEquation0; +QuadraticInt_t ReservedEquation1; +QuadraticInt_t ReservedEquation2; +QuadraticInt_t ReservedEquation3; + + +uint32_t Reserved[15 ]; + + + +uint8_t Liquid1_I2C_address; +uint8_t Liquid2_I2C_address; +uint8_t Vr_I2C_address; +uint8_t Plx_I2C_address; + +uint8_t Liquid_I2C_LineSCL; +uint8_t Liquid_I2C_LineSDA; +uint8_t Vr_I2C_LineSCL; +uint8_t Vr_I2C_LineSDA; + +uint8_t Plx_I2C_LineSCL; +uint8_t Plx_I2C_LineSDA; +uint8_t VrSensorPresent; +uint8_t LiquidSensorPresent; + +uint16_t MaxVoltageStepGfx; +uint16_t MaxVoltageStepSoc; + +uint8_t VddGfxVrMapping; +uint8_t VddSocVrMapping; +uint8_t VddMem0VrMapping; +uint8_t VddMem1VrMapping; + +uint8_t GfxUlvPhaseSheddingMask; +uint8_t SocUlvPhaseSheddingMask; +uint8_t ExternalSensorPresent; +uint8_t Padding8_V; + + +uint16_t GfxMaxCurrent; +int8_t GfxOffset; +uint8_t Padding_TelemetryGfx; + +uint16_t SocMaxCurrent; +int8_t SocOffset; +uint8_t Padding_TelemetrySoc; + +uint16_t Mem0MaxCurrent; +int8_t Mem0Offset; +uint8_t Padding_TelemetryMem0; + +uint16_t Mem1MaxCurrent; +int8_t Mem1Offset; +uint8_t Padding_TelemetryMem1; + + +uint8_t AcDcGpio; +uint8_t AcDcPolarity; +uint8_t VR0HotGpio; +uint8_t VR0HotPolarity; + +uint8_t VR1HotGpio; +uint8_t VR1HotPolarity; +uint8_t Padding1; +uint8_t Padding2; + + + +uint8_t LedPin0; +uint8_t LedPin1; +uint8_t LedPin2; +uint8_t padding8_4; + + +uint8_t GfxclkSpreadEnabled; +uint8_t GfxclkSpreadPercent; +uint16_t GfxclkSpreadFreq; + +uint8_t UclkSpreadEnabled; +uint8_t UclkSpreadPercent; +uint16_t UclkSpreadFreq; + +uint8_t SocclkSpreadEnabled; +uint8_t SocclkSpreadPercent; +uint16_t SocclkSpreadFreq; + +uint32_t BoardReserved[3 ]; + + +uint32_t MmHubPadding[7 ]; + +}PPTable_t ; + +typedef struct { + +uint16_t GfxclkAverageLpfTau; +uint16_t SocclkAverageLpfTau; +uint16_t UclkAverageLpfTau; +uint16_t GfxActivityLpfTau; +uint16_t UclkActivityLpfTau; + + +uint32_t MmHubPadding[7 ]; +}DriverSmuConfig_t ; + +typedef struct { + +uint16_t GfxclkFmin; +uint16_t GfxclkFmax; +uint16_t GfxclkFreq1; +uint16_t GfxclkOffsetVolt1; +uint16_t GfxclkFreq2; +uint16_t GfxclkOffsetVolt2; +uint16_t GfxclkFreq3; +uint16_t GfxclkOffsetVolt3; +uint16_t UclkFmax; +int16_t OverDrivePct; +uint16_t FanMaximumRpm; +uint16_t FanMinimumPwm; +uint16_t FanTargetTemperature; +uint16_t MaxOpTemp; + +}OverDriveTable_t ; + +typedef struct { +uint16_t CurrClock[PPCLK_COUNT ]; +uint16_t AverageGfxclkFrequency; +uint16_t AverageSocclkFrequency; +uint16_t AverageUclkFrequency ; +uint16_t AverageGfxActivity ; +uint16_t AverageUclkActivity ; +uint8_t CurrSocVoltageOffset ; +uint8_t CurrGfxVoltageOffset ; +uint8_t CurrMemVidOffset ; +uint8_t Padding8 ; +uint16_t CurrSocketPower ; +uint16_t TemperatureEdge ; +uint16_t TemperatureHotspot ; +uint16_t TemperatureHBM ; +uint16_t TemperatureVrGfx ; +uint16_t TemperatureVrMem ; +uint16_t TemperatureLiquid ; +uint16_t TemperaturePlx ; +uint32_t ThrottlerStatus ; + +uint8_t LinkDpmLevel; +uint8_t Padding[3 ]; + + +uint32_t MmHubPadding[7 ]; +}SmuMetrics_t ; + +typedef struct { +uint16_t MinClock; +uint16_t MaxClock; +uint16_t MinUclk; +uint16_t MaxUclk; + +uint8_t WmSetting; +uint8_t Padding[3 ]; +}WatermarkRowGeneric_t ; + +#define NUM_WM_RANGES 4 + +typedef enum { +WM_SOCCLK =0 , +WM_DCEFCLK , +WM_COUNT_PP , +}WM_CLOCK_e ; + +typedef struct { + +WatermarkRowGeneric_t WatermarkRow[WM_COUNT_PP ][NUM_WM_RANGES ]; + +uint32_t MmHubPadding[7 ]; +}Watermarks_t ; + +typedef struct { +uint16_t avgPsmCount[30 ]; +uint16_t minPsmCount[30 ]; +float avgPsmVoltage[30 ]; +float minPsmVoltage[30 ]; + +uint32_t MmHubPadding[7 ]; +}AvfsDebugTable_t ; + +typedef struct { +uint8_t AvfsEn; +uint8_t AvfsVersion; +uint8_t OverrideVFT; +uint8_t OverrideAvfsGb; + +uint8_t OverrideTemperatures; +uint8_t OverrideVInversion; +uint8_t OverrideP2V; +uint8_t OverrideP2VCharzFreq; + +int32_t VFT0_m1; +int32_t VFT0_m2; +int32_t VFT0_b; + +int32_t VFT1_m1; +int32_t VFT1_m2; +int32_t VFT1_b; + +int32_t VFT2_m1; +int32_t VFT2_m2; +int32_t VFT2_b; + +int32_t AvfsGb0_m1; +int32_t AvfsGb0_m2; +int32_t AvfsGb0_b; + +int32_t AcBtcGb_m1; +int32_t AcBtcGb_m2; +int32_t AcBtcGb_b; + +uint32_t AvfsTempCold; +uint32_t AvfsTempMid; +uint32_t AvfsTempHot; + +uint32_t GfxVInversion; +uint32_t SocVInversion; + +int32_t P2V_m1; +int32_t P2V_m2; +int32_t P2V_b; + +uint32_t P2VCharzFreq; + +uint32_t EnabledAvfsModules; + +uint32_t MmHubPadding[7 ]; +}AvfsFuseOverride_t ; + +typedef struct { + +uint8_t Gfx_ActiveHystLimit; +uint8_t Gfx_IdleHystLimit; +uint8_t Gfx_FPS; +uint8_t Gfx_MinActiveFreqType; +uint8_t Gfx_BoosterFreqType; +uint8_t Gfx_UseRlcBusy; +uint16_t Gfx_MinActiveFreq; +uint16_t Gfx_BoosterFreq; +uint16_t Gfx_PD_Data_time_constant; +uint32_t Gfx_PD_Data_limit_a; +uint32_t Gfx_PD_Data_limit_b; +uint32_t Gfx_PD_Data_limit_c; +uint32_t Gfx_PD_Data_error_coeff; +uint32_t Gfx_PD_Data_error_rate_coeff; + +uint8_t Soc_ActiveHystLimit; +uint8_t Soc_IdleHystLimit; +uint8_t Soc_FPS; +uint8_t Soc_MinActiveFreqType; +uint8_t Soc_BoosterFreqType; +uint8_t Soc_UseRlcBusy; +uint16_t Soc_MinActiveFreq; +uint16_t Soc_BoosterFreq; +uint16_t Soc_PD_Data_time_constant; +uint32_t Soc_PD_Data_limit_a; +uint32_t Soc_PD_Data_limit_b; +uint32_t Soc_PD_Data_limit_c; +uint32_t Soc_PD_Data_error_coeff; +uint32_t Soc_PD_Data_error_rate_coeff; + +uint8_t Mem_ActiveHystLimit; +uint8_t Mem_IdleHystLimit; +uint8_t Mem_FPS; +uint8_t Mem_MinActiveFreqType; +uint8_t Mem_BoosterFreqType; +uint8_t Mem_UseRlcBusy; +uint16_t Mem_MinActiveFreq; +uint16_t Mem_BoosterFreq; +uint16_t Mem_PD_Data_time_constant; +uint32_t Mem_PD_Data_limit_a; +uint32_t Mem_PD_Data_limit_b; +uint32_t Mem_PD_Data_limit_c; +uint32_t Mem_PD_Data_error_coeff; +uint32_t Mem_PD_Data_error_rate_coeff; + +}DpmActivityMonitorCoeffInt_t ; + + + + +#define TABLE_PPTABLE 0 +#define TABLE_WATERMARKS 1 +#define TABLE_AVFS 2 +#define TABLE_AVFS_PSM_DEBUG 3 +#define TABLE_AVFS_FUSE_OVERRIDE 4 +#define TABLE_PMSTATUSLOG 5 +#define TABLE_SMU_METRICS 6 +#define TABLE_DRIVER_SMU_CONFIG 7 +#define TABLE_ACTIVITY_MONITOR_COEFF 8 +#define TABLE_OVERDRIVE 9 +#define TABLE_COUNT 10 + + +#define UCLK_SWITCH_SLOW 0 +#define UCLK_SWITCH_FAST 1 + + +#define SQ_Enable_MASK 0x1 +#define SQ_IR_MASK 0x2 +#define SQ_PCC_MASK 0x4 +#define SQ_EDC_MASK 0x8 + +#define TCP_Enable_MASK 0x100 +#define TCP_IR_MASK 0x200 +#define TCP_PCC_MASK 0x400 +#define TCP_EDC_MASK 0x800 + +#define TD_Enable_MASK 0x10000 +#define TD_IR_MASK 0x20000 +#define TD_PCC_MASK 0x40000 +#define TD_EDC_MASK 0x80000 + +#define DB_Enable_MASK 0x1000000 +#define DB_IR_MASK 0x2000000 +#define DB_PCC_MASK 0x4000000 +#define DB_EDC_MASK 0x8000000 + +#define SQ_Enable_SHIFT 0 +#define SQ_IR_SHIFT 1 +#define SQ_PCC_SHIFT 2 +#define SQ_EDC_SHIFT 3 + +#define TCP_Enable_SHIFT 8 +#define TCP_IR_SHIFT 9 +#define TCP_PCC_SHIFT 10 +#define TCP_EDC_SHIFT 11 + +#define TD_Enable_SHIFT 16 +#define TD_IR_SHIFT 17 +#define TD_PCC_SHIFT 18 +#define TD_EDC_SHIFT 19 + +#define DB_Enable_SHIFT 24 +#define DB_IR_SHIFT 25 +#define DB_PCC_SHIFT 26 +#define DB_EDC_SHIFT 27 + +#define REMOVE_FMAX_MARGIN_BIT 0x0 +#define REMOVE_DCTOL_MARGIN_BIT 0x1 +#define REMOVE_PLATFORM_MARGIN_BIT 0x2 + +#endif
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 36/42 drm/amd/powerplay: add vega12_ppsmc.h
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h | 123 +++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h
drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h new file +123 -0
@@ -0,0 +1,123 @@ +/* +* Copyright 2017 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. +* +*/ + +#ifndef VEGA12_PP_SMC_H +#define VEGA12_PP_SMC_H + +#pragma pack(push, 1) + +#define SMU_UCODE_VERSION 0x00270a00 + +/* SMU Response Codes: */ +#define PPSMC_Result_OK 0x1 +#define PPSMC_Result_Failed 0xFF +#define PPSMC_Result_UnknownCmd 0xFE +#define PPSMC_Result_CmdRejectedPrereq 0xFD +#define PPSMC_Result_CmdRejectedBusy 0xFC + +#define PPSMC_MSG_TestMessage 0x1 +#define PPSMC_MSG_GetSmuVersion 0x2 +#define PPSMC_MSG_GetDriverIfVersion 0x3 +#define PPSMC_MSG_SetAllowedFeaturesMaskLow 0x4 +#define PPSMC_MSG_SetAllowedFeaturesMaskHigh 0x5 +#define PPSMC_MSG_EnableAllSmuFeatures 0x6 +#define PPSMC_MSG_DisableAllSmuFeatures 0x7 +#define PPSMC_MSG_EnableSmuFeaturesLow 0x8 +#define PPSMC_MSG_EnableSmuFeaturesHigh 0x9 +#define PPSMC_MSG_DisableSmuFeaturesLow 0xA +#define PPSMC_MSG_DisableSmuFeaturesHigh 0xB +#define PPSMC_MSG_GetEnabledSmuFeaturesLow 0xC +#define PPSMC_MSG_GetEnabledSmuFeaturesHigh 0xD +#define PPSMC_MSG_SetWorkloadMask 0xE +#define PPSMC_MSG_SetPptLimit 0xF +#define PPSMC_MSG_SetDriverDramAddrHigh 0x10 +#define PPSMC_MSG_SetDriverDramAddrLow 0x11 +#define PPSMC_MSG_SetToolsDramAddrHigh 0x12 +#define PPSMC_MSG_SetToolsDramAddrLow 0x13 +#define PPSMC_MSG_TransferTableSmu2Dram 0x14 +#define PPSMC_MSG_TransferTableDram2Smu 0x15 +#define PPSMC_MSG_UseDefaultPPTable 0x16 +#define PPSMC_MSG_UseBackupPPTable 0x17 +#define PPSMC_MSG_RunBtc 0x18 +#define PPSMC_MSG_RequestI2CBus 0x19 +#define PPSMC_MSG_ReleaseI2CBus 0x1A +#define PPSMC_MSG_SetFloorSocVoltage 0x21 +#define PPSMC_MSG_SoftReset 0x22 +#define PPSMC_MSG_StartBacoMonitor 0x23 +#define PPSMC_MSG_CancelBacoMonitor 0x24 +#define PPSMC_MSG_EnterBaco 0x25 +#define PPSMC_MSG_SetSoftMinByFreq 0x26 +#define PPSMC_MSG_SetSoftMaxByFreq 0x27 +#define PPSMC_MSG_SetHardMinByFreq 0x28 +#define PPSMC_MSG_SetHardMaxByFreq 0x29 +#define PPSMC_MSG_GetMinDpmFreq 0x2A +#define PPSMC_MSG_GetMaxDpmFreq 0x2B +#define PPSMC_MSG_GetDpmFreqByIndex 0x2C +#define PPSMC_MSG_GetDpmClockFreq 0x2D +#define PPSMC_MSG_GetSsVoltageByDpm 0x2E +#define PPSMC_MSG_SetMemoryChannelConfig 0x2F +#define PPSMC_MSG_SetGeminiMode 0x30 +#define PPSMC_MSG_SetGeminiApertureHigh 0x31 +#define PPSMC_MSG_SetGeminiApertureLow 0x32 +#define PPSMC_MSG_SetMinLinkDpmByIndex 0x33 +#define PPSMC_MSG_OverridePcieParameters 0x34 +#define PPSMC_MSG_OverDriveSetPercentage 0x35 +#define PPSMC_MSG_SetMinDeepSleepDcefclk 0x36 +#define PPSMC_MSG_ReenableAcDcInterrupt 0x37 +#define PPSMC_MSG_NotifyPowerSource 0x38 +#define PPSMC_MSG_SetUclkFastSwitch 0x39 +#define PPSMC_MSG_SetUclkDownHyst 0x3A +#define PPSMC_MSG_GfxDeviceDriverReset 0x3B +#define PPSMC_MSG_GetCurrentRpm 0x3C +#define PPSMC_MSG_SetVideoFps 0x3D +#define PPSMC_MSG_SetTjMax 0x3E +#define PPSMC_MSG_SetFanTemperatureTarget 0x3F +#define PPSMC_MSG_PrepareMp1ForUnload 0x40 +#define PPSMC_MSG_DramLogSetDramAddrHigh 0x41 +#define PPSMC_MSG_DramLogSetDramAddrLow 0x42 +#define PPSMC_MSG_DramLogSetDramSize 0x43 +#define PPSMC_MSG_SetFanMaxRpm 0x44 +#define PPSMC_MSG_SetFanMinPwm 0x45 +#define PPSMC_MSG_ConfigureGfxDidt 0x46 +#define PPSMC_MSG_NumOfDisplays 0x47 +#define PPSMC_MSG_RemoveMargins 0x48 +#define PPSMC_MSG_ReadSerialNumTop32 0x49 +#define PPSMC_MSG_ReadSerialNumBottom32 0x4A +#define PPSMC_MSG_SetSystemVirtualDramAddrHigh 0x4B +#define PPSMC_MSG_SetSystemVirtualDramAddrLow 0x4C +#define PPSMC_MSG_RunAcgBtc 0x4D +#define PPSMC_MSG_InitializeAcg 0x4E +#define PPSMC_MSG_EnableAcgBtcTestMode 0x4F +#define PPSMC_MSG_EnableAcgSpreadSpectrum 0x50 +#define PPSMC_MSG_AllowGfxOff 0x51 +#define PPSMC_MSG_DisallowGfxOff 0x52 +#define PPSMC_MSG_GetPptLimit 0x53 +#define PPSMC_MSG_GetDcModeMaxDpmFreq 0x54 +#define PPSMC_Message_Count 0x56 + +typedef uint16_t PPSMC_Result ; +typedef int PPSMC_Msg ; + +#pragma pack(pop) + +#endif
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 37/42 drm/amd/powerplay: add vega12_pptable.h
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
--- .../gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h | 109 +++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h new file +109 -0
@@ -0,0 +1,109 @@ +/* +* Copyright 2017 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. +* +*/ +#ifndef _VEGA12_PPTABLE_H_ +#define _VEGA12_PPTABLE_H_ + +#pragma pack(push, 1) + +#define ATOM_VEGA12_PP_THERMALCONTROLLER_NONE 0 +#define ATOM_VEGA12_PP_THERMALCONTROLLER_VEGA12 25 + +#define ATOM_VEGA12_PP_PLATFORM_CAP_POWERPLAY 0x1 +#define ATOM_VEGA12_PP_PLATFORM_CAP_SBIOSPOWERSOURCE 0x2 +#define ATOM_VEGA12_PP_PLATFORM_CAP_HARDWAREDC 0x4 +#define ATOM_VEGA12_PP_PLATFORM_CAP_BACO 0x8 +#define ATOM_VEGA12_PP_PLATFORM_CAP_BAMACO 0x10 +#define ATOM_VEGA12_PP_PLATFORM_CAP_ENABLESHADOWPSTATE 0x20 + +#define ATOM_VEGA12_TABLE_REVISION_VEGA12 9 + +enum ATOM_VEGA12_ODSETTING_ID { +ATOM_VEGA12_ODSETTING_GFXCLKFMAX =0 , +ATOM_VEGA12_ODSETTING_GFXCLKFMIN , +ATOM_VEGA12_ODSETTING_VDDGFXCURVEFREQ_P1 , +ATOM_VEGA12_ODSETTING_VDDGFXCURVEVOLTAGEOFFSET_P1 , +ATOM_VEGA12_ODSETTING_VDDGFXCURVEFREQ_P2 , +ATOM_VEGA12_ODSETTING_VDDGFXCURVEVOLTAGEOFFSET_P2 , +ATOM_VEGA12_ODSETTING_VDDGFXCURVEFREQ_P3 , +ATOM_VEGA12_ODSETTING_VDDGFXCURVEVOLTAGEOFFSET_P3 , +ATOM_VEGA12_ODSETTING_UCLKFMAX , +ATOM_VEGA12_ODSETTING_POWERPERCENTAGE , +ATOM_VEGA12_ODSETTING_FANRPMMIN , +ATOM_VEGA12_ODSETTING_FANRPMACOUSTICLIMIT , +ATOM_VEGA12_ODSETTING_FANTARGETTEMPERATURE , +ATOM_VEGA12_ODSETTING_OPERATINGTEMPMAX , +ATOM_VEGA12_ODSETTING_COUNT , +}; +typedef enum ATOM_VEGA12_ODSETTING_ID ATOM_VEGA12_ODSETTING_ID ; + +enum ATOM_VEGA12_PPCLOCK_ID { +ATOM_VEGA12_PPCLOCK_GFXCLK =0 , +ATOM_VEGA12_PPCLOCK_VCLK , +ATOM_VEGA12_PPCLOCK_DCLK , +ATOM_VEGA12_PPCLOCK_ECLK , +ATOM_VEGA12_PPCLOCK_SOCCLK , +ATOM_VEGA12_PPCLOCK_UCLK , +ATOM_VEGA12_PPCLOCK_DCEFCLK , +ATOM_VEGA12_PPCLOCK_DISPCLK , +ATOM_VEGA12_PPCLOCK_PIXCLK , +ATOM_VEGA12_PPCLOCK_PHYCLK , +ATOM_VEGA12_PPCLOCK_COUNT , +}; +typedef enum ATOM_VEGA12_PPCLOCK_ID ATOM_VEGA12_PPCLOCK_ID ; + + +typedef struct _ATOM_VEGA12_POWERPLAYTABLE +{ +struct atom_common_table_header sHeader; +UCHAR ucTableRevision; +USHORT usTableSize; +ULONG ulGoldenPPID; +ULONG ulGoldenRevision; +USHORT usFormatID; + +ULONG ulPlatformCaps; + +UCHAR ucThermalControllerType; + +USHORT usSmallPowerLimit1; +USHORT usSmallPowerLimit2; +USHORT usBoostPowerLimit; +USHORT usODTurboPowerLimit; +USHORT usODPowerSavePowerLimit; +USHORT usSoftwareShutdownTemp; + +ULONG PowerSavingClockMax [ATOM_VEGA12_PPCLOCK_COUNT ]; +ULONG PowerSavingClockMin [ATOM_VEGA12_PPCLOCK_COUNT ]; + +ULONG ODSettingsMax [ATOM_VEGA12_ODSETTING_COUNT ]; +ULONG ODSettingsMin [ATOM_VEGA12_ODSETTING_COUNT ]; + +USHORT usReserve[5 ]; + +PPTable_t smcPPTable; + +}ATOM_Vega12_POWERPLAYTABLE ; + +#pragma pack(pop) + +#endif
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 38/42 drm/amd/powerplay: update ppatomfwctl (v2)
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
Add new get_smc_dpm_information api to fetch the smu dpm info from the vbios.
v2: deal with updated table format.
--- drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 87 ++++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h | 65 ++++++++++++++++ 2 files changed, 152 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c +87 -0
@@ -532,6 +532,7 @@ int pp_atomfwctrl_get_vbios_bootup_values(struct pp_hwmgr *hwmgr, boot_values->usVddci = info->bootup_vddci_mv; boot_values->usMvddc = info->bootup_mvddc_mv; boot_values->usVddGfx = info->bootup_vddgfx_mv; + boot_values->ucCoolingID = info->coolingsolution_id; boot_values->ulSocClk =0 ; boot_values->ulDCEFClk =0 ;
@@ -543,3 +544,89 @@ int pp_atomfwctrl_get_vbios_bootup_values(struct pp_hwmgr *hwmgr,return 0 ; } + +int pp_atomfwctrl_get_smc_dpm_information (struct pp_hwmgr *hwmgr, +struct pp_atomfwctrl_smc_dpm_parameters *param) +{ +struct atom_smc_dpm_info_v4_1 *info; +uint16_t ix; + + ix =GetIndexIntoMasterDataTable (smc_dpm_info); + info = (struct atom_smc_dpm_info_v4_1 *) +cgs_atom_get_data_table (hwmgr->device, + ix,NULL ,NULL ,NULL ); +if (!info) { +pr_info ("Error retrieving BIOS Table Address!" ); +return -EINVAL ; + } + + param->liquid1_i2c_address = info->liquid1_i2c_address; + param->liquid2_i2c_address = info->liquid2_i2c_address; + param->vr_i2c_address = info->vr_i2c_address; + param->plx_i2c_address = info->plx_i2c_address; + + param->liquid_i2c_linescl = info->liquid_i2c_linescl; + param->liquid_i2c_linesda = info->liquid_i2c_linesda; + param->vr_i2c_linescl = info->vr_i2c_linescl; + param->vr_i2c_linesda = info->vr_i2c_linesda; + + param->plx_i2c_linescl = info->plx_i2c_linescl; + param->plx_i2c_linesda = info->plx_i2c_linesda; + param->vrsensorpresent = info->vrsensorpresent; + param->liquidsensorpresent = info->liquidsensorpresent; + + param->maxvoltagestepgfx = info->maxvoltagestepgfx; + param->maxvoltagestepsoc = info->maxvoltagestepsoc; + + param->vddgfxvrmapping = info->vddgfxvrmapping; + param->vddsocvrmapping = info->vddsocvrmapping; + param->vddmem0vrmapping = info->vddmem0vrmapping; + param->vddmem1vrmapping = info->vddmem1vrmapping; + + param->gfxulvphasesheddingmask = info->gfxulvphasesheddingmask; + param->soculvphasesheddingmask = info->soculvphasesheddingmask; + + param->gfxmaxcurrent = info->gfxmaxcurrent; + param->gfxoffset = info->gfxoffset; + param->padding_telemetrygfx = info->padding_telemetrygfx; + + param->socmaxcurrent = info->socmaxcurrent; + param->socoffset = info->socoffset; + param->padding_telemetrysoc = info->padding_telemetrysoc; + + param->mem0maxcurrent = info->mem0maxcurrent; + param->mem0offset = info->mem0offset; + param->padding_telemetrymem0 = info->padding_telemetrymem0; + + param->mem1maxcurrent = info->mem1maxcurrent; + param->mem1offset = info->mem1offset; + param->padding_telemetrymem1 = info->padding_telemetrymem1; + + param->acdcgpio = info->acdcgpio; + param->acdcpolarity = info->acdcpolarity; + param->vr0hotgpio = info->vr0hotgpio; + param->vr0hotpolarity = info->vr0hotpolarity; + + param->vr1hotgpio = info->vr1hotgpio; + param->vr1hotpolarity = info->vr1hotpolarity; + param->padding1 = info->padding1; + param->padding2 = info->padding2; + + param->ledpin0 = info->ledpin0; + param->ledpin1 = info->ledpin1; + param->ledpin2 = info->ledpin2; + + param->gfxclkspreadenabled = info->gfxclkspreadenabled; + param->gfxclkspreadpercent = info->gfxclkspreadpercent; + param->gfxclkspreadfreq = info->gfxclkspreadfreq; + + param->uclkspreadenabled = info->uclkspreadenabled; + param->uclkspreadpercent = info->uclkspreadpercent; + param->uclkspreadfreq = info->uclkspreadfreq; + + param->socclkspreadenabled = info->socclkspreadenabled; + param->socclkspreadpercent = info->socclkspreadpercent; + param->socclkspreadfreq = info->socclkspreadfreq; + +return 0 ; +}
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h +65 -0
77 lines not on this page · raw message
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 39/42 drm/amd/powerplay: add new pp_psm infrastructure for vega12 (v2)
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
New psm infrastructure for vega12.
v2: rebase (Alex)
--- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 244 +++---------------- .../gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.c | 262 +++++++++++++++++++++ .../gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.h | 40 ++++ drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.c | 76 ++++++ drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.h | 40 ++++ 6 files changed, 452 insertions(+), 212 deletions(-) create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.h
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile +1 -1
@@ -31,7 +31,7 @@ HARDWARE_MGR = hwmgr.o processpptables.o \ smu7_clockpowergating.o \ vega10_processpptables.o vega10_hwmgr.o vega10_powertune.o \ vega10_thermal.o smu10_hwmgr.o pp_psm.o\ - pp_overdriver.o smu_helper.o + pp_overdriver.o smu_helper.o pp_psm_legacy.o pp_psm_new.o AMD_PP_HWMGR = $(addprefix $(AMD_PP_PATH)/hwmgr/,$(HARDWARE_MGR))
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c +33 -211
276 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.c new file +262 -0
262 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright 2017 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. +* +*/ + +#ifndef PP_PSM_LEGACY_H +#define PP_PSM_LEGACY_H + +#include "hwmgr.h" + +int psm_legacy_init_power_state_table (struct pp_hwmgr *hwmgr); +int psm_legacy_fini_power_state_table (struct pp_hwmgr *hwmgr); +int psm_legacy_set_boot_states (struct pp_hwmgr *hwmgr); +int psm_legacy_set_performance_states (struct pp_hwmgr *hwmgr); +int psm_legacy_set_user_performance_state (struct pp_hwmgr *hwmgr, +enum PP_StateUILabel label_id, +struct pp_power_state **state); +int psm_legacy_adjust_power_state_dynamic (struct pp_hwmgr *hwmgr, +bool skip, +struct pp_power_state *new_ps); + +#endif
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.c new file +76 -0
76 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright 2017 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. +* +*/ + +#ifndef PP_PSM_NEW_H +#define PP_PSM_NEW_H + +#include "hwmgr.h" + +int psm_new_init_power_state_table (struct pp_hwmgr *hwmgr); +int psm_new_fini_power_state_table (struct pp_hwmgr *hwmgr); +int psm_new_set_boot_states (struct pp_hwmgr *hwmgr); +int psm_new_set_performance_states (struct pp_hwmgr *hwmgr); +int psm_new_set_user_performance_state (struct pp_hwmgr *hwmgr, +enum PP_StateUILabel label_id, +struct pp_power_state **state); +int psm_new_adjust_power_state_dynamic (struct pp_hwmgr *hwmgr, +bool skip, +struct pp_power_state *new_ps); + +#endif
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 40/42 drm/amd/powerplay: add the smu manager for vega12 (v4)
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
handles the driver interaction with the smu firmware
v2: squash in:
- s3 fix for firmware loading
- smu loading through the psp
- unecessary calls to is_smc_ram_running()
- smu table cleanups
v3: rebase
v4: rebase, smu bo allocation fixes, add dpm running callback
--- drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 3 +- .../gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c | 561 +++++++++++++++++++++ .../gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h | 62 +++ 3 files changed, 625 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h
drivers/gpu/drm/amd/powerplay/smumgr/Makefile +2 -1
@@ -25,7 +25,8 @@ SMU_MGR = smumgr.o smu8_smumgr.o tonga_smumgr.o fiji_smumgr.o \ polaris10_smumgr.o iceland_smumgr.o \ - smu7_smumgr.o vega10_smumgr.o smu10_smumgr.o ci_smumgr.o + smu7_smumgr.o vega10_smumgr.o smu10_smumgr.o ci_smumgr.o \ + vega12_smumgr.o AMD_PP_SMUMGR = $(addprefix $(AMD_PP_PATH)/smumgr/,$(SMU_MGR))
drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c new file +561 -0
561 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h new file +62 -0
62 lines not on this page · raw message
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 41/42 drm/amd/powerplay: add the hw manager for vega12 (v4)
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
handles the driver power state setup
v2: squash in the following:
- handle negative temperature ranges
- add vega12 thermal ranges
- use ffs/fls
- remove ACG code
- resend NumOfDisplays message
- correct max dpm levels
- remove power containment settings
- fix warnings
- add sensors interface
- delete unused overdrive arbiter
- drop get_temperature callback
- smu table cleanup
- atomfirmware smu dpm table updates
v3: rebase
v4: rebase
--- drivers/gpu/drm/amd/include/dm_pp_interface.h | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 6 + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2444 ++++++++++++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h | 470 ++++ .../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c | 1364 +++++++++++ .../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.h | 53 + .../amd/powerplay/hwmgr/vega12_processpptables.c | 430 ++++ .../amd/powerplay/hwmgr/vega12_processpptables.h | 58 + .../gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c | 324 +++ .../gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h | 66 + .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 14 + drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 21 + 13 files changed, 5254 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.h create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c create mode 100644 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h
drivers/gpu/drm/amd/include/dm_pp_interface.h +1 -1
@@ -23,7 +23,7 @@#ifndef _DM_PP_INTERFACE_#define _DM_PP_INTERFACE_ -#define PP_MAX_CLOCK_LEVELS 8 +#define PP_MAX_CLOCK_LEVELS 16enum amd_pp_display_config_type { AMD_PP_DisplayConfigType_None = 0,
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile +3 -1
@@ -31,7 +31,9 @@ HARDWARE_MGR = hwmgr.o processpptables.o \ smu7_clockpowergating.o \ vega10_processpptables.o vega10_hwmgr.o vega10_powertune.o \ vega10_thermal.o smu10_hwmgr.o pp_psm.o\ - pp_overdriver.o smu_helper.o pp_psm_legacy.o pp_psm_new.o + pp_overdriver.o smu_helper.o pp_psm_legacy.o pp_psm_new.o \ + vega12_processpptables.o vega12_hwmgr.o \ + vega12_powertune.o vega12_thermal.o AMD_PP_HWMGR = $(addprefix $(AMD_PP_PATH)/hwmgr/,$(HARDWARE_MGR))
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +6 -0
@@ -41,11 +41,13 @@ extern const struct pp_smumgr_func tonga_smu_funcs;extern const struct pp_smumgr_func fiji_smu_funcs;extern const struct pp_smumgr_func polaris10_smu_funcs;extern const struct pp_smumgr_func vega10_smu_funcs; +extern const struct pp_smumgr_func vega12_smu_funcs;extern const struct pp_smumgr_func smu10_smu_funcs;extern int smu7_init_function_pointers (struct pp_hwmgr *hwmgr);extern int smu8_init_function_pointers (struct pp_hwmgr *hwmgr);extern int vega10_hwmgr_init (struct pp_hwmgr *hwmgr); +extern int vega12_hwmgr_init (struct pp_hwmgr *hwmgr);extern int smu10_init_function_pointers (struct pp_hwmgr *hwmgr);static int polaris_set_asic_special_caps (struct pp_hwmgr *hwmgr);
@@ -186,6 +188,10 @@ int hwmgr_early_init(struct pp_hwmgr *hwmgr) hwmgr->smumgr_funcs = &vega10_smu_funcs;vega10_hwmgr_init (hwmgr);break ; +case CHIP_VEGA12 : + hwmgr->smumgr_funcs = &vega12_smu_funcs; +vega12_hwmgr_init (hwmgr); +break ;default :return -EINVAL ; }
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c new file +2444 -0
2,444 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h new file +470 -0
470 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c new file +1364 -0
45 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.h new file +53 -0
53 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c new file +430 -0
430 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.h new file +58 -0
58 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c new file +324 -0
324 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h new file +66 -0
66 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h +14 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +21 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Part of the diff is not shown here. View the raw message.
PATCH 42/42 drm/amdgpu: add vega12 pci ids (v2)
In reply to a message not in the archivev2: add additional pci ids
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +6 -0
@@ -544,6 +544,12 @@ static const struct pci_device_id pciidlist[] = { {0x1002, 0x6868, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, {0x1002, 0x686c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, {0x1002, 0x687f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA10}, +/* Vega 12 */ + {0x1002, 0x69A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, + {0x1002, 0x69A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, + {0x1002, 0x69A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, + {0x1002, 0x69A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12}, + {0x1002, 0x69AF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VEGA12},/* Raven */ {0x1002, 0x15dd, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RAVEN|AMD_IS_APU},
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Apart from patch #16 Acked-by: Christian König <[email protected]> for the series.
Christian.
Am 21.03.2018 um 14:45 schrieb Alex Deucher:
Quoted 128 lines
Vega12 is a new GPU from AMD. This adds support for it.
Patch 1 just adds new register headers and is pretty big, so I haven't sent it to the mailing list. The entire series can be viewed here:
https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next-vega12Alex Deucher (20):
drm/amdgpu: addgpu_infofirmware for vega12 drm/amdgpu: set asic family and ip blocks for vega12 drm/amdgpu/psp: initial vega12 support
drm/amdgpu: specify vega12 uvd firmware drm/amdgpu: specify vega12 vce firmware drm/amdgpu/virtual_dce: add vega12 support drm/amd/display/dm: add vega12 support
drm/amdgpu: add vega12 to dc support check drm/amdgpu/gmc9: add vega12 support drm/amdgpu/mmhub: add clockgating support for vega12 drm/amdgpu/sdma4: specify vega12 firmware drm/amdgpu/sdma4: Add placeholder for vega12 golden settings drm/amdgpu/sdma4: add clockgating support for vega12 drm/amdgpu/gfx9: add support for vega12 firmware drm/amdgpu/gfx9: Add placeholder for vega12 golden settings drm/amdgpu/gfx9: add gfx config for vega12 drm/amdgpu/gfx9: add support for vega12 drm/amdgpu/gfx9: add clockgating support for vega12 drm/amdgpu/soc15: add support for vega12 drm/amdgpu: add vega12 pci ids (v2)Evan Quan (11):
drm/amdgpu: initilize vega12 psp firmwares drm/amdgpu/soc15: update vega12cg_flagsdrm/amd/powerplay: addvega12_inc.hdrm/amd/powerplay: updateatomfirmware.h(v2) drm/amd/powerplay: add newsmu9_driver_if.hfor vega12 (v2) drm/amd/powerplay: addvega12_ppsmc.hdrm/amd/powerplay: addvega12_pptable.hdrm/amd/powerplay: update ppatomfwctl (v2) drm/amd/powerplay: add newpp_psminfrastructure for vega12 (v2) drm/amd/powerplay: add the smu manager for vega12 (v4) drm/amd/powerplay: add the hw manager for vega12 (v4)Feifei Xu (6):
drm/amd/include: Add ip header files for vega12. drm/amdgpu: add vega12 toasic_typeenum drm/amdgpu: add vega12 ucode loading method drm/amdgpu/gmc9: fix vega12's athub&mmhub golden setting. drm/amdgpu/sdma4: Update vega12 sdma golden setting. drm/amd/soc15: Addexternal_rev_idfor vega12.Hawking Zhang (4):
drm/amdgpu: vega12 to smu firmware drm/amdgpu/sdma4: addsdma4_0_1support for vega12 (v3) drm/amdgpu/gfx9: add golden setting for vega12 (v3) drm/amdgpu/soc15: initialize reg base for vega12Jerry (Fangzhi) Zuo (1):
drm/amd/display: Add bios firmware info version for VG12drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 11 +- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 9 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 9 +- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 1 + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 65 + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 + drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 5 + drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 25 +- drivers/gpu/drm/amd/amdgpu/soc15.c | 25 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 + drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 1 + .../drm/amd/include/asic_reg/gc/gc_9_2_1_offset.h | 7497 +++++ .../drm/amd/include/asic_reg/gc/gc_9_2_1_sh_mask.h | 31160 +++++++++++++++++++ .../include/asic_reg/mmhub/mmhub_9_3_0_offset.h | 1991 ++ .../include/asic_reg/mmhub/mmhub_9_3_0_sh_mask.h | 10265 ++++++ .../amd/include/asic_reg/oss/osssys_4_0_1_offset.h | 337 + .../include/asic_reg/oss/osssys_4_0_1_sh_mask.h | 1249 + drivers/gpu/drm/amd/include/atomfirmware.h | 82 +- drivers/gpu/drm/amd/include/dm_pp_interface.h | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 6 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 244 +- .../gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.c | 262 + .../gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.h | 40 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.c | 76 + drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.h | 40 + drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 87 + drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h | 65 + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2444 ++ drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h | 470 + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h | 39 + .../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.c | 1364 + .../gpu/drm/amd/powerplay/hwmgr/vega12_powertune.h | 53 + .../gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h | 109 + .../amd/powerplay/hwmgr/vega12_processpptables.c | 430 + .../amd/powerplay/hwmgr/vega12_processpptables.h | 58 + .../gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c | 324 + .../gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h | 66 + .../gpu/drm/amd/powerplay/inc/hardwaremanager.h | 14 + drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 21 + .../drm/amd/powerplay/inc/vega12/smu9_driver_if.h | 758 + drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h | 123 + drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 3 +- drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 1 + .../gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c | 561 + .../gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h | 62 + include/drm/amd_asic_type.h | 1 + 52 files changed, 60256 insertions(+), 223 deletions(-)create mode 100644
drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_2_1_offset.hcreate mode 100644drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_2_1_sh_mask.hcreate mode 100644drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_3_0_offset.hcreate mode 100644drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_3_0_sh_mask.hcreate mode 100644drivers/gpu/drm/amd/include/asic_reg/oss/osssys_4_0_1_offset.hcreate mode 100644drivers/gpu/drm/amd/include/asic_reg/oss/osssys_4_0_1_sh_mask.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.ccreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_legacy.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.ccreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm_new.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.ccreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.ccreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_powertune.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h
Quoted 9 lines
create mode 100644
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.ccreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.hcreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.ccreate mode 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.hcreate mode 100644drivers/gpu/drm/amd/powerplay/inc/vega12/smu9_driver_if.hcreate mode 100644drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.hcreate mode 100644drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.ccreate mode 100644drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx