summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorQu Huang <jinsdb@126.com>2021-01-28 20:14:25 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-04-09 16:47:06 -0400
commitb010affea45d812d8d386cc49c3b2bafd74b4154 (patch)
tree2d933d8e8411e93eedf740ebcb2c761cf08cf520 /drivers/firmware
parent84e070f58ad22879787602bb18df656c326f6492 (diff)
downloadlinux-b010affea45d812d8d386cc49c3b2bafd74b4154.tar.bz2
drm/amdkfd: dqm fence memory corruption
Amdgpu driver uses 4-byte data type as DQM fence memory, and transmits GPU address of fence memory to microcode through query status PM4 message. However, query status PM4 message definition and microcode processing are all processed according to 8 bytes. Fence memory only allocates 4 bytes of memory, but microcode does write 8 bytes of memory, so there is a memory corruption. Changes since v1: * Change dqm->fence_addr as a u64 pointer to fix this issue, also fix up query_status and amdkfd_fence_wait_timeout function uses 64 bit fence value to make them consistent. Signed-off-by: Qu Huang <jinsdb@126.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions