Commit 68d705dd authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amdgpu: do not register df_mca interrupt in certain config

df/mca ras is not managed by gpu driver when gpu
is connected to cpu through xgmi. gpu driver should
register x86 mca notifier for umc ras error
notification
Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarDennis Li <Dennis.Li@amd.com>
Reviewed-by: default avatarJohn Clements <John.Clements@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 49070c4e
...@@ -653,7 +653,8 @@ static void gmc_v9_0_set_irq_funcs(struct amdgpu_device *adev) ...@@ -653,7 +653,8 @@ static void gmc_v9_0_set_irq_funcs(struct amdgpu_device *adev)
adev->gmc.vm_fault.num_types = 1; adev->gmc.vm_fault.num_types = 1;
adev->gmc.vm_fault.funcs = &gmc_v9_0_irq_funcs; adev->gmc.vm_fault.funcs = &gmc_v9_0_irq_funcs;
if (!amdgpu_sriov_vf(adev)) { if (!amdgpu_sriov_vf(adev) &&
!adev->gmc.xgmi.connected_to_cpu) {
adev->gmc.ecc_irq.num_types = 1; adev->gmc.ecc_irq.num_types = 1;
adev->gmc.ecc_irq.funcs = &gmc_v9_0_ecc_funcs; adev->gmc.ecc_irq.funcs = &gmc_v9_0_ecc_funcs;
} }
...@@ -1506,7 +1507,8 @@ static int gmc_v9_0_sw_init(void *handle) ...@@ -1506,7 +1507,8 @@ static int gmc_v9_0_sw_init(void *handle)
if (r) if (r)
return r; return r;
if (!amdgpu_sriov_vf(adev)) { if (!amdgpu_sriov_vf(adev) &&
!adev->gmc.xgmi.connected_to_cpu) {
/* interrupt sent to DF. */ /* interrupt sent to DF. */
r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DF, 0, r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DF, 0,
&adev->gmc.ecc_irq); &adev->gmc.ecc_irq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment