Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: wait pmfw polling mca bank info done

wait 500ms to ensure pmfw polling mca bank info done.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Stanley.Yang and committed by
Alex Deucher
e09b081d e2ee0f1b

+8
+8
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
··· 2702 2702 struct amdgpu_device *adev = ras->adev; 2703 2703 struct list_head device_list, *device_list_handle = NULL; 2704 2704 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); 2705 + unsigned int error_query_mode; 2705 2706 enum ras_event_type type; 2706 2707 2707 2708 if (hive) { ··· 2729 2728 INIT_LIST_HEAD(&device_list); 2730 2729 list_add_tail(&adev->gmc.xgmi.head, &device_list); 2731 2730 device_list_handle = &device_list; 2731 + } 2732 + 2733 + if (amdgpu_ras_get_error_query_mode(adev, &error_query_mode)) { 2734 + if (error_query_mode == AMDGPU_RAS_FIRMWARE_ERROR_QUERY) { 2735 + /* wait 500ms to ensure pmfw polling mca bank info done */ 2736 + msleep(500); 2737 + } 2732 2738 } 2733 2739 2734 2740 type = amdgpu_ras_get_fatal_error_event(adev);