aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorchongli2 <[email protected]>2024-11-06 11:43:09 +0800
committerAlex Deucher <[email protected]>2024-11-08 11:07:50 -0500
commitf4a3246a2c7a595161f1ba11db53639b7f580104 (patch)
tree77bb69ed4f7c92a4de91c5633e26bfd0eb76d18e /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentcd82f29ec51b2e616289db7b258a936127c16efa (diff)
drm/amdgpu: fix return random value when multiple threads read registers via mes.
The currect code use the address "adev->mes.read_val_ptr" to store the value read from register via mes. So when multiple threads read register, multiple threads have to share the one address, and overwrite the value each other. Assign an address by "amdgpu_device_wb_get" to store register value. each thread will has an address to store register value. Signed-off-by: chongli2 <[email protected]> Reviewed-by: Emily Deng <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions