diff options
| author | Yang Wang <[email protected]> | 2023-11-30 04:58:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-11-30 23:26:22 +0000 |
| commit | 00f9d49bce844e8196e0c2ea298f9a41a11129d9 (patch) | |
| tree | 1b373db1433e5502b144b1f5ae717bb11a36b16f /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | |
| parent | drm/amdgpu: Skip access gfx11 golden registers under SRIOV (diff) | |
| download | kernel-00f9d49bce844e8196e0c2ea298f9a41a11129d9.tar.gz kernel-00f9d49bce844e8196e0c2ea298f9a41a11129d9.zip | |
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 <[email protected]>
Signed-off-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c index 54f2f346579e..210aea590a52 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c @@ -485,7 +485,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(mca_debug_mode_fops, NULL, amdgpu_mca_smu_debug_mode_se void amdgpu_mca_smu_debugfs_init(struct amdgpu_device *adev, struct dentry *root) { #if defined(CONFIG_DEBUG_FS) - if (!root || adev->ip_versions[MP1_HWIP][0] != IP_VERSION(13, 0, 6)) + if (!root || amdgpu_ip_version(adev, MP1_HWIP, 0) != IP_VERSION(13, 0, 6)) return; debugfs_create_file("mca_debug_mode", 0200, root, adev, &mca_debug_mode_fops); |
