Lines Matching refs:ras_if
644 if (!adev->gmc.xgmi.ras_if) { in amdgpu_xgmi_ras_late_init()
645 adev->gmc.xgmi.ras_if = kmalloc(sizeof(struct ras_common_if), GFP_KERNEL); in amdgpu_xgmi_ras_late_init()
646 if (!adev->gmc.xgmi.ras_if) in amdgpu_xgmi_ras_late_init()
648 adev->gmc.xgmi.ras_if->block = AMDGPU_RAS_BLOCK__XGMI_WAFL; in amdgpu_xgmi_ras_late_init()
649 adev->gmc.xgmi.ras_if->type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; in amdgpu_xgmi_ras_late_init()
650 adev->gmc.xgmi.ras_if->sub_block_index = 0; in amdgpu_xgmi_ras_late_init()
651 strcpy(adev->gmc.xgmi.ras_if->name, "xgmi_wafl"); in amdgpu_xgmi_ras_late_init()
653 ih_info.head = fs_info.head = *adev->gmc.xgmi.ras_if; in amdgpu_xgmi_ras_late_init()
654 r = amdgpu_ras_late_init(adev, adev->gmc.xgmi.ras_if, in amdgpu_xgmi_ras_late_init()
656 if (r || !amdgpu_ras_is_supported(adev, adev->gmc.xgmi.ras_if->block)) { in amdgpu_xgmi_ras_late_init()
657 kfree(adev->gmc.xgmi.ras_if); in amdgpu_xgmi_ras_late_init()
658 adev->gmc.xgmi.ras_if = NULL; in amdgpu_xgmi_ras_late_init()
667 adev->gmc.xgmi.ras_if) { in amdgpu_xgmi_ras_fini()
668 struct ras_common_if *ras_if = adev->gmc.xgmi.ras_if; in amdgpu_xgmi_ras_fini() local
673 amdgpu_ras_late_fini(adev, ras_if, &ih_info); in amdgpu_xgmi_ras_fini()
674 kfree(ras_if); in amdgpu_xgmi_ras_fini()