summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2019-09-12 11:34:08 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-10-03 17:11:02 +0300
commit03740baab3b574ed40f39bb9eda715bb32045337 (patch)
tree01ebe51108245f920bfa97d11a9e1977670147b6 /drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
parentfc04e6b4843c82be61478b9edec6e4e7b87e9de4 (diff)
downloadlinux-03740baab3b574ed40f39bb9eda715bb32045337.tar.xz
drm/amdgpu: move umc_ras_if from gmc to umc block
umc_ras_if is relevant to umc Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
index d11b4d38ca1e..acc0c428f6fa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
@@ -35,24 +35,24 @@ int amdgpu_umc_ras_late_init(struct amdgpu_device *adev, void *ras_ih_info)
if (!ih_info)
return -EINVAL;
- if (!adev->gmc.umc_ras_if) {
- adev->gmc.umc_ras_if =
+ if (!adev->umc.ras_if) {
+ adev->umc.ras_if =
kmalloc(sizeof(struct ras_common_if), GFP_KERNEL);
- if (!adev->gmc.umc_ras_if)
+ if (!adev->umc.ras_if)
return -ENOMEM;
- adev->gmc.umc_ras_if->block = AMDGPU_RAS_BLOCK__UMC;
- adev->gmc.umc_ras_if->type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE;
- adev->gmc.umc_ras_if->sub_block_index = 0;
- strcpy(adev->gmc.umc_ras_if->name, "umc");
+ adev->umc.ras_if->block = AMDGPU_RAS_BLOCK__UMC;
+ adev->umc.ras_if->type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE;
+ adev->umc.ras_if->sub_block_index = 0;
+ strcpy(adev->umc.ras_if->name, "umc");
}
- ih_info->head = fs_info.head = *adev->gmc.umc_ras_if;
+ ih_info->head = fs_info.head = *adev->umc.ras_if;
- r = amdgpu_ras_late_init(adev, adev->gmc.umc_ras_if,
+ r = amdgpu_ras_late_init(adev, adev->umc.ras_if,
&fs_info, ih_info);
if (r)
goto free;
- if (amdgpu_ras_is_supported(adev, adev->gmc.umc_ras_if->block)) {
+ if (amdgpu_ras_is_supported(adev, adev->umc.ras_if->block)) {
r = amdgpu_irq_get(adev, &adev->gmc.ecc_irq, 0);
if (r)
goto late_fini;
@@ -68,10 +68,10 @@ int amdgpu_umc_ras_late_init(struct amdgpu_device *adev, void *ras_ih_info)
return 0;
late_fini:
- amdgpu_ras_late_fini(adev, adev->gmc.umc_ras_if, ih_info);
+ amdgpu_ras_late_fini(adev, adev->umc.ras_if, ih_info);
free:
- kfree(adev->gmc.umc_ras_if);
- adev->gmc.umc_ras_if = NULL;
+ kfree(adev->umc.ras_if);
+ adev->umc.ras_if = NULL;
return r;
}
@@ -125,7 +125,7 @@ int amdgpu_umc_process_ecc_irq(struct amdgpu_device *adev,
struct amdgpu_irq_src *source,
struct amdgpu_iv_entry *entry)
{
- struct ras_common_if *ras_if = adev->gmc.umc_ras_if;
+ struct ras_common_if *ras_if = adev->umc.ras_if;
struct ras_dispatch_if ih_data = {
.entry = entry,
};