mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 00:04:01 -04:00
drm/amdgpu: add pmu counters
adding perf event counters Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
e4cf4bf5b8
commit
9c7c85f7ea
@@ -61,6 +61,7 @@
|
||||
|
||||
#include "amdgpu_xgmi.h"
|
||||
#include "amdgpu_ras.h"
|
||||
#include "amdgpu_pmu.h"
|
||||
|
||||
MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin");
|
||||
MODULE_FIRMWARE("amdgpu/vega12_gpu_info.bin");
|
||||
@@ -2746,6 +2747,10 @@ fence_driver_init:
|
||||
return r;
|
||||
}
|
||||
|
||||
r = amdgpu_pmu_init(adev);
|
||||
if (r)
|
||||
dev_err(adev->dev, "amdgpu_pmu_init failed\n");
|
||||
|
||||
return 0;
|
||||
|
||||
failed:
|
||||
@@ -2814,6 +2819,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev)
|
||||
amdgpu_debugfs_regs_cleanup(adev);
|
||||
device_remove_file(adev->dev, &dev_attr_pcie_replay_count);
|
||||
amdgpu_ucode_sysfs_fini(adev);
|
||||
amdgpu_pmu_fini(adev);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user