Skip to content

Commit 00f9d49

Browse files
Yang Wangalexdeucher
authored andcommitted
drm/amdgpu: Fix missing mca debugfs node
Use amdgpu_ip_version() helper function to check ip version. The ip version contains other information, use the helper function to avoid reading wrong value. Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 04fcc3f commit 00f9d49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(mca_debug_mode_fops, NULL, amdgpu_mca_smu_debug_mode_se
485485
void amdgpu_mca_smu_debugfs_init(struct amdgpu_device *adev, struct dentry *root)
486486
{
487487
#if defined(CONFIG_DEBUG_FS)
488-
if (!root || adev->ip_versions[MP1_HWIP][0] != IP_VERSION(13, 0, 6))
488+
if (!root || amdgpu_ip_version(adev, MP1_HWIP, 0) != IP_VERSION(13, 0, 6))
489489
return;
490490

491491
debugfs_create_file("mca_debug_mode", 0200, root, adev, &mca_debug_mode_fops);

0 commit comments

Comments
 (0)