drm/amdgpu/gfx10: new approach to load pfp fw (v4)
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 10 Jan 2018 10:12:44 +0000 (18:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:19:44 +0000 (21:19 -0500)
commit068ed934ee57186ef3818f30942e46b78fa67881
tree70fc4b09fb6d4b88af8934430f66e0d63d9c9c3c
parent225cef9d88507888143d3d781abfdba2dc8c21de
drm/amdgpu/gfx10: new approach to load pfp fw (v4)

gfx10 allows to only upload pfp jumptable while save the whole
pfp image at gtt memory.

v2: program CP_PFP_IC_BASE_CNTL to default value
v3: switch to use amdgpu_bo_create_reserved to create pfp fw bo
v4: split common code from gfx10 code

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h