diff options
author | Likun Gao <Likun.Gao@amd.com> | 2022-04-11 17:16:37 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-04 10:43:53 -0400 |
commit | a0fe38b4908639a57be797307e6bbd43e1e520cf (patch) | |
tree | 25ddea7b03736959cf8c94d5d6ad68bb49835ab9 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 464913c0dd3bc5f05befa62a38e0f5327736c95f (diff) | |
download | linux-a0fe38b4908639a57be797307e6bbd43e1e520cf.tar.gz linux-a0fe38b4908639a57be797307e6bbd43e1e520cf.tar.bz2 linux-a0fe38b4908639a57be797307e6bbd43e1e520cf.zip |
drm/amdgpu: support RLCP firmware front door load
Support RLCP firmware front door load.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index a4502dfe9c40..a100f3b9e2a3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c @@ -701,6 +701,10 @@ static int amdgpu_ucode_init_single_fw(struct amdgpu_device *adev, ucode->ucode_size = adev->gfx.rlc.rlc_dram_ucode_size_bytes; ucode_addr = adev->gfx.rlc.rlc_dram_ucode; break; + case AMDGPU_UCODE_ID_RLC_P: + ucode->ucode_size = adev->gfx.rlc.rlcp_ucode_size_bytes; + ucode_addr = adev->gfx.rlc.rlcp_ucode; + break; case AMDGPU_UCODE_ID_CP_MES: ucode->ucode_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); ucode_addr = (u8 *)ucode->fw->data + |