diff options
author | Lu Yao <yaolu@kylinos.cn> | 2023-11-23 09:22:34 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-11-29 18:09:53 -0500 |
commit | 2161e09cd05a50d80736fe397145340d2e8f6c05 (patch) | |
tree | e9c16cde0a399927de9c598d5f7e958ecc23b0a7 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 6967741d26c87300a51b5e50d4acd104bc1a9759 (diff) |
drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
For 'AMDGPU_FAMILY_SI' family cards, in 'si_common_early_init' func, init
'didt_rreg' and 'didt_wreg' to 'NULL'. But in func
'amdgpu_debugfs_regs_didt_read/write', using 'RREG32_DIDT' 'WREG32_DIDT'
lacks of relevant judgment. And other 'amdgpu_ip_block_version' that use
these two definitions won't be added for 'AMDGPU_FAMILY_SI'.
So, add null pointer judgment before calling.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lu Yao <yaolu@kylinos.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions