1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dce120
Lyude Paul 44035ec2fd drm/amd/dc/dce120: Fix audio register mapping, stop triggering KASAN
There's been a very long running bug that seems to have been neglected for
a while, where amdgpu consistently triggers a KASAN error at start:

  BUG: KASAN: global-out-of-bounds in read_indirect_azalia_reg+0x1d4/0x2a0 [amdgpu]
  Read of size 4 at addr ffffffffc2274b28 by task modprobe/1889

After digging through amd's rather creative method for accessing registers,
I eventually discovered the problem likely has to do with the fact that on
my dce120 GPU there are supposedly 7 sets of audio registers. But we only
define a register mapping for 6 sets.

So, fix this and fix the KASAN warning finally.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-23 09:01:53 -05:00
..
dce120_hw_sequencer.c drm/amd/display/dc/dce120/dce120_hw_sequencer: Encompass defines in same clause as their use 2021-01-13 23:53:26 -05:00
dce120_hw_sequencer.h drm/amd/display: add separate of private hwss functions 2019-12-05 16:26:46 -05:00
dce120_resource.c drm/amd/dc/dce120: Fix audio register mapping, stop triggering KASAN 2022-11-23 09:01:53 -05:00
dce120_resource.h drm/amd/display: Flattening core_dc to dc 2017-09-26 18:16:40 -04:00
dce120_timing_generator.c drm/amd/display: Return last used DRR VTOTAL from DC 2021-06-08 12:20:12 -04:00
dce120_timing_generator.h amdgpu/dc: drop hw_sequencer_types.h 2017-10-06 13:03:20 -04:00
Makefile drm/amd/display/dc/dce120/Makefile: Ignore -Woverride-init warning 2021-01-13 23:53:26 -05:00