diff options
author | chongli2 <chongli2@amd.com> | 2024-11-06 11:43:09 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-11-08 11:07:50 -0500 |
commit | f4a3246a2c7a595161f1ba11db53639b7f580104 (patch) | |
tree | 77bb69ed4f7c92a4de91c5633e26bfd0eb76d18e /drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | |
parent | cd82f29ec51b2e616289db7b258a936127c16efa (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 <chongli2@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c')
0 files changed, 0 insertions, 0 deletions