diff options
| author | Asad Kamal <[email protected]> | 2024-02-16 08:38:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-02-22 15:23:45 +0000 |
| commit | 5fe4a8d3c61f76b6e2b155d2f589355bd706a74c (patch) | |
| tree | 487b6bb9a77bafbb8d363abae0293aac5e73ba12 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
| parent | Revert "drm/amdgpu: Add pcie usage callback to nbio" (diff) | |
| download | kernel-5fe4a8d3c61f76b6e2b155d2f589355bd706a74c.tar.gz kernel-5fe4a8d3c61f76b6e2b155d2f589355bd706a74c.zip | |
drm/amdgpu: Remove pcie bw sys entry
Remove pcie bw sys entry for asics not supporting
such function
Signed-off-by: Asad Kamal <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 087d57850304..1ff7fc821871 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -2174,7 +2174,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_ *states = ATTR_STATE_UNSUPPORTED; } else if (DEVICE_ATTR_IS(pcie_bw)) { /* PCIe Perf counters won't work on APU nodes */ - if (adev->flags & AMD_IS_APU) + if (adev->flags & AMD_IS_APU || + !adev->asic_funcs->get_pcie_usage) *states = ATTR_STATE_UNSUPPORTED; } else if (DEVICE_ATTR_IS(unique_id)) { switch (gc_ver) { |
