[PATCH 0/4] Normalize redundant variables
Clements, John
John.Clements at amd.com
Fri May 7 14:45:19 UTC 2021
[AMD Official Use Only - Internal Distribution Only]
Series is:
Reviewed-by: John Clements <John.Clements at amd.com>
________________________________
From: Tuikov, Luben <Luben.Tuikov at amd.com>
Sent: Wednesday, May 5, 2021 5:47 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Tuikov, Luben <Luben.Tuikov at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Clements, John <John.Clements at amd.com>; Zhang, Hawking <Hawking.Zhang at amd.com>
Subject: [PATCH 0/4] Normalize redundant variables
Classic normalization of a redundant variable.
There is no need to have two variables representing
the same quantity. Move up to the structure which
represents the object which determines their values.
Rename to a consistent name, and export to debugfs
for debugging.
Luben Tuikov (4):
drm/amdgpu: Remove redundant ras->supported
drm/amdgpu: Move up ras_hw_supported
drm/amdgpu: Rename to ras_*_enabled
drm/amdgpu: Export ras_*_enabled to debugfs
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 91 +++++++++----------
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 5 +-
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
drivers/gpu/drm/amd/amdgpu/soc15.c | 7 +-
drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 6 +-
.../drm/amd/pm/powerplay/hwmgr/vega20_baco.c | 2 +-
.../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 3 +-
11 files changed, 63 insertions(+), 66 deletions(-)
Cc: Alexander Deucher <Alexander.Deucher at amd.com>
Cc: John Clements <john.clements at amd.com>
Cc: Hawking Zhang <Hawking.Zhang at amd.com>
--
2.31.0.97.g1424303384
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210507/9653e1ea/attachment.htm>
More information about the amd-gfx
mailing list