]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: change psp_rap_invoke() function return value
authorKevin Wang <kevin1.wang@amd.com>
Sun, 7 Feb 2021 13:09:59 +0000 (21:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:00:22 +0000 (23:00 -0400)
commit0d9e3a55067004962dc58811f313e07c1c44a26e
tree9995d13aa42676a5e09f2557f77f8c802912a858
parentd8fc6b47ba54de00448412229a67f61e6b134957
drm/amdgpu: change psp_rap_invoke() function return value

RAP TA is an optional firmware. if it doesn’t exist,
the driver should bypass psp_rap_invoke() function.

1. bypass psp_rap_invoke() when RAP TA is not loaded.
2. add new parameter (status) to query RAP TA status.
   (the status value is different with psp_ta_invoke(),
3. fix the 'rap_status' MThread critical problem.
   (used without lock)

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c