diff options
author | Lyude Paul <[email protected]> | 2022-11-14 17:20:45 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-11-23 09:01:53 -0500 |
commit | 44035ec2fde1114254ee465f9ba3bb246b0b6283 (patch) | |
tree | 71560f107c6dd1b6a2b28a83817644773bc6ebd9 /lib/mpi/mpi-mod.c | |
parent | 4f2bea62cf3874c5a58e987b0b472f9fb57117a2 (diff) |
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 <[email protected]>
Cc: [email protected]
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions