during ras recovery block smu access via smi
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
        struct smu_dpm_context *smu_dpm = &smu->smu_dpm;
        struct arcturus_dpm_table *dpm_table = NULL;
 
+       if (amdgpu_ras_intr_triggered())
+               return snprintf(buf, PAGE_SIZE, "unavailable\n");
+
        dpm_table = smu_dpm->dpm_context;
 
        switch (type) {
        PPTable_t *pptable = table_context->driver_pptable;
        int ret = 0;
 
+       if (amdgpu_ras_intr_triggered())
+               return 0;
+
        if (!data || !size)
                return -EINVAL;