diff options
author | Likun Gao <Likun.Gao@amd.com> | 2022-09-22 14:33:06 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-09-29 09:41:43 -0400 |
commit | 15aa13056d11dad1e54d65acd854184f3f74a5b7 (patch) | |
tree | 896c00b9b255a8d8789c01c5e1d9a710848b5a5e /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | |
parent | e268df1d20b89d1d448277e16ce1720887e8bdbb (diff) | |
download | lwn-15aa13056d11dad1e54d65acd854184f3f74a5b7.tar.gz lwn-15aa13056d11dad1e54d65acd854184f3f74a5b7.zip |
drm/amdgpu: add function to init SDMA microcode
Add an common function to init SDMA related microcode.
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_sdma.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h index 53ac3ebae8d6..d2d88279fefb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h @@ -124,4 +124,8 @@ int amdgpu_sdma_process_ras_data_cb(struct amdgpu_device *adev, int amdgpu_sdma_process_ecc_irq(struct amdgpu_device *adev, struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry); +int amdgpu_sdma_init_microcode(struct amdgpu_device *adev, + char *fw_name, u32 instance, bool duplicate); +void amdgpu_sdma_destroy_inst_ctx(struct amdgpu_device *adev, + bool duplicate); #endif |