提交 ac1ac694 编写于 作者: A Alex Deucher

drm/amdgpu: convert nbio_v2_3_clear_doorbell_interrupt() to IP version

Check IP version rather than asic type.
Reviewed-by: NGuchun Chen <guchun.chen@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 be772433
...@@ -547,7 +547,7 @@ static void nbio_v2_3_clear_doorbell_interrupt(struct amdgpu_device *adev) ...@@ -547,7 +547,7 @@ static void nbio_v2_3_clear_doorbell_interrupt(struct amdgpu_device *adev)
{ {
uint32_t reg, reg_data; uint32_t reg, reg_data;
if (adev->asic_type != CHIP_SIENNA_CICHLID) if (adev->ip_versions[NBIO_HWIP][0] != IP_VERSION(3, 3, 0))
return; return;
reg = RREG32_SOC15(NBIO, 0, mmBIF_RB_CNTL); reg = RREG32_SOC15(NBIO, 0, mmBIF_RB_CNTL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册