File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
drivers/gpu/drm/amd/powerplay Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1525,6 +1525,13 @@ int smu_v11_0_set_xgmi_pstate(struct smu_context *smu,
1525
1525
return ret ;
1526
1526
}
1527
1527
1528
+ static int smu_v11_0_ack_ac_dc_interrupt (struct smu_context * smu )
1529
+ {
1530
+ return smu_send_smc_msg (smu ,
1531
+ SMU_MSG_ReenableAcDcInterrupt ,
1532
+ NULL );
1533
+ }
1534
+
1528
1535
#define THM_11_0__SRCID__THM_DIG_THERM_L2H 0 /* ASIC_TEMP > CG_THERMAL_INT.DIG_THERM_INTH */
1529
1536
#define THM_11_0__SRCID__THM_DIG_THERM_H2L 1 /* ASIC_TEMP < CG_THERMAL_INT.DIG_THERM_INTL */
1530
1537
@@ -1558,6 +1565,9 @@ static int smu_v11_0_irq_process(struct amdgpu_device *adev,
1558
1565
break ;
1559
1566
1560
1567
}
1568
+ } else if (client_id == SOC15_IH_CLIENTID_MP1 ) {
1569
+ if (src_id == 0xfe )
1570
+ smu_v11_0_ack_ac_dc_interrupt (& adev -> smu );
1561
1571
}
1562
1572
1563
1573
return 0 ;
@@ -1597,6 +1607,12 @@ int smu_v11_0_register_irq_handler(struct smu_context *smu)
1597
1607
if (ret )
1598
1608
return ret ;
1599
1609
1610
+ ret = amdgpu_irq_add_id (adev , SOC15_IH_CLIENTID_MP1 ,
1611
+ 0xfe ,
1612
+ irq_src );
1613
+ if (ret )
1614
+ return ret ;
1615
+
1600
1616
return ret ;
1601
1617
}
1602
1618
You can’t perform that action at this time.
0 commit comments