Lines Matching refs:ras_block

89 const char *get_ras_block_str(struct ras_common_if *ras_block)  in get_ras_block_str()  argument
91 if (!ras_block) in get_ras_block_str()
94 if (ras_block->block >= AMDGPU_RAS_BLOCK_COUNT) in get_ras_block_str()
97 if (ras_block->block == AMDGPU_RAS_BLOCK__MCA) in get_ras_block_str()
98 return ras_mca_block_string[ras_block->sub_block_index]; in get_ras_block_str()
100 return ras_block_string[ras_block->block]; in get_ras_block_str()
953 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_ras_get_ecc_info()
954 adev->umc.ras->ras_block.hw_ops->query_ras_error_count) in amdgpu_ras_get_ecc_info()
955 adev->umc.ras->ras_block.hw_ops->query_ras_error_count(adev, err_data); in amdgpu_ras_get_ecc_info()
960 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_ras_get_ecc_info()
961 adev->umc.ras->ras_block.hw_ops->query_ras_error_address) in amdgpu_ras_get_ecc_info()
962 adev->umc.ras->ras_block.hw_ops->query_ras_error_address(adev, err_data); in amdgpu_ras_get_ecc_info()
2563 amdgpu_ras_register_ras_block(adev, &adev->nbio.ras->ras_block); in amdgpu_ras_init()
2564 adev->nbio.ras_if = &adev->nbio.ras->ras_block.ras_comm; in amdgpu_ras_init()
2613 struct ras_common_if *ras_block) in amdgpu_persistent_edc_harvesting() argument
2616 .head = *ras_block, in amdgpu_persistent_edc_harvesting()
2625 if (amdgpu_ras_reset_error_status(adev, ras_block->block) != 0) in amdgpu_persistent_edc_harvesting()
2643 struct ras_common_if *ras_block) in amdgpu_ras_block_late_init() argument
2652 if (!amdgpu_ras_is_supported(adev, ras_block->block)) { in amdgpu_ras_block_late_init()
2653 amdgpu_ras_feature_enable_on_boot(adev, ras_block, 0); in amdgpu_ras_block_late_init()
2657 r = amdgpu_ras_feature_enable_on_boot(adev, ras_block, 1); in amdgpu_ras_block_late_init()
2668 amdgpu_persistent_edc_harvesting(adev, ras_block); in amdgpu_ras_block_late_init()
2674 ras_obj = container_of(ras_block, struct amdgpu_ras_block_object, ras_comm); in amdgpu_ras_block_late_init()
2678 r = amdgpu_ras_interrupt_add_handler(adev, ras_block); in amdgpu_ras_block_late_init()
2683 r = amdgpu_ras_sysfs_create(adev, ras_block); in amdgpu_ras_block_late_init()
2692 memcpy(&query_info->head, ras_block, sizeof(struct ras_common_if)); in amdgpu_ras_block_late_init()
2704 amdgpu_ras_interrupt_remove_handler(adev, ras_block); in amdgpu_ras_block_late_init()
2706 amdgpu_ras_feature_enable(adev, ras_block, 0); in amdgpu_ras_block_late_init()
2711 struct ras_common_if *ras_block) in amdgpu_ras_block_late_init_default() argument
2713 return amdgpu_ras_block_late_init(adev, ras_block); in amdgpu_ras_block_late_init_default()
2718 struct ras_common_if *ras_block) in amdgpu_ras_block_late_fini() argument
2721 if (!ras_block) in amdgpu_ras_block_late_fini()
2724 amdgpu_ras_sysfs_remove(adev, ras_block); in amdgpu_ras_block_late_fini()
2726 ras_obj = container_of(ras_block, struct amdgpu_ras_block_object, ras_comm); in amdgpu_ras_block_late_fini()
2728 amdgpu_ras_interrupt_remove_handler(adev, ras_block); in amdgpu_ras_block_late_fini()
2732 struct ras_common_if *ras_block) in amdgpu_ras_block_late_fini_default() argument
2734 return amdgpu_ras_block_late_fini(adev, ras_block); in amdgpu_ras_block_late_fini_default()