--- initial
+++ final
@@ -1,47 +1,47 @@
 int smu7_enable_didt_config(struct pp_hwmgr *hwmgr) {
   int result;
   uint32_t num_se = 0;
   uint32_t count, value, value2;
   struct cgs_system_info sys_info = {0};
   sys_info.size = sizeof(struct cgs_system_info);
   sys_info.info_id = CGS_SYSTEM_INFO_GFX_SE_INFO;
   result = cgs_query_system_info(hwmgr->device, &sys_info);
   if (result == 0) num_se = sys_info.value;
-  if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_SQRamping) || phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DBRamping) || phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_TDRamping) || phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_TCPRamping)) {
+  if (PP_CAP(PHM_PlatformCaps_SQRamping) || PP_CAP(PHM_PlatformCaps_DBRamping) || PP_CAP(PHM_PlatformCaps_TDRamping) || PP_CAP(PHM_PlatformCaps_TCPRamping)) {
     cgs_enter_safe_mode(hwmgr->device, true);
     value = 0;
     value2 = cgs_read_register(hwmgr->device, mmGRBM_GFX_INDEX);
     for (count = 0; count < num_se; count++) {
       value = SYS_GRBM_GFX_INDEX_DATA__INSTANCE_BROADCAST_WRITES_MASK | SYS_GRBM_GFX_INDEX_DATA__SH_BROADCAST_WRITES_MASK | (count << SYS_GRBM_GFX_INDEX_DATA__SE_INDEX__SHIFT);
       cgs_write_register(hwmgr->device, mmGRBM_GFX_INDEX, value);
       if (hwmgr->chip_id == CHIP_POLARIS10) {
         result = smu7_program_pt_config_registers(hwmgr, GCCACConfig_Polaris10);
         PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", return result);
         result = smu7_program_pt_config_registers(hwmgr, DIDTConfig_Polaris10);
         PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", return result);
       } else if (hwmgr->chip_id == CHIP_POLARIS11) {
         result = smu7_program_pt_config_registers(hwmgr, GCCACConfig_Polaris11);
         PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", return result);
         if (hwmgr->smumgr->is_kicker)
           result = smu7_program_pt_config_registers(hwmgr, DIDTConfig_Polaris11_Kicker);
         else
           result = smu7_program_pt_config_registers(hwmgr, DIDTConfig_Polaris11);
         PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", return result);
       } else if (hwmgr->chip_id == CHIP_POLARIS12) {
         result = smu7_program_pt_config_registers(hwmgr, GCCACConfig_Polaris11);
         PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", return result);
         result = smu7_program_pt_config_registers(hwmgr, DIDTConfig_Polaris12);
         PP_ASSERT_WITH_CODE((result == 0), "DIDT Config failed.", return result);
       }
     }
     cgs_write_register(hwmgr->device, mmGRBM_GFX_INDEX, value2);
     result = smu7_enable_didt(hwmgr, true);
     PP_ASSERT_WITH_CODE((result == 0), "EnableDiDt failed.", return result);
     if (hwmgr->chip_id == CHIP_POLARIS11) {
       result = smum_send_msg_to_smc(hwmgr->smumgr, (uint16_t)(PPSMC_MSG_EnableDpmDidt));
       PP_ASSERT_WITH_CODE((0 == result), "Failed to enable DPM DIDT.", return result);
     }
     cgs_enter_safe_mode(hwmgr->device, false);
   }
   return 0;
 }<sep>@@
expression hwmgr,e;
@@
- phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,e)
+ PP_CAP(e)