]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: avoid upload corrupted ta ucode to psp
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 11 Nov 2019 04:26:36 +0000 (12:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Nov 2019 22:38:13 +0000 (17:38 -0500)
commit888e8b62eba538de4bdecbc3f2b8c07f05b1886e
treed7882a477a4be5326ec62ab68e93e0d6ad87a7e9
parent06de51f9c20a0c0944727e828a12f6a4d7ac2dd6
drm/amdgpu: avoid upload corrupted ta ucode to psp

xgmi, ras, hdcp and dtm ta are actually separated ucode and
need to handled case by case to upload to psp.

We support the case that ta binary have one or multiple of
them built-in. As a result, the driver should check each ta
binariy's availablity before decide to upload them to psp.

In the terminate (unload) case, the driver will check the
context readiness before perform unload activity. It's fine
to keep it as is.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c