diff options
author | Alex Sierra <alex.sierra@amd.com> | 2023-07-19 16:20:58 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-07-25 13:44:05 -0400 |
commit | 8923137dbe4b24863694c35284df51d036b5dd5e (patch) | |
tree | 9e29f69f640be753a1bfe27eb5291ac0b4f90730 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | abbd6cfb1d5a95e8fd07d2fdaa0fe328c2948a52 (diff) |
drm/amdkfd: avoid svm dump when dynamic debug disabled
Set dynamic_svm_range_dump macro to avoid iterating over SVM lists
from svm_range_debug_dump when dynamic debug is disabled. Otherwise,
it could drop performance, specially with big number of SVM ranges.
Make sure both svm_range_set_attr and svm_range_debug_dump functions
are dynamically enabled to print svm_range_debug_dump debug traces.
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Tested-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions