Files
linux/drivers/gpu/drm/amd/amdgpu
Lu Yao 2161e09cd0 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>
2023-11-29 18:09:53 -05:00
..
2023-11-29 18:09:34 -05:00
2022-04-25 11:17:45 +02:00
2021-05-19 23:50:27 -04:00
2023-02-03 15:37:31 -05:00
2023-11-09 16:59:46 -05:00
2023-11-09 16:59:46 -05:00
2023-11-09 16:59:46 -05:00
2022-05-04 09:53:12 -04:00
2023-08-07 16:35:38 -04:00
2023-08-07 16:35:38 -04:00
2022-05-04 10:43:54 -04:00
2022-05-10 17:53:11 -04:00
2023-03-15 18:45:26 -04:00
2023-03-15 18:45:26 -04:00
2023-08-30 15:00:27 -04:00
2021-10-20 11:43:57 -04:00
2022-03-22 10:53:39 -04:00
2021-05-19 23:50:27 -04:00
2020-07-02 12:02:50 -04:00
2020-08-14 16:22:39 -04:00
2020-07-01 01:59:24 -04:00
2020-07-02 12:02:50 -04:00
2023-08-31 16:34:05 -04:00