[PATCH] drm amdgpu: SI UVD add Oland, Pitcairn, Verde, Tahiti firmware
Alex Deucher
alexdeucher at gmail.com
Thu Jun 18 04:29:27 UTC 2020
On Wed, Jun 17, 2020 at 6:00 PM Sonny Jiang <sonny.jiang at amd.com> wrote:
>
Please add a patch description and add your signed-off-by. With that fixed:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 26 +++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> index 5100ebe8858d..f8bebf18ee36 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> @@ -54,6 +54,12 @@
> #define FW_1_66_16 ((1 << 24) | (66 << 16) | (16 << 8))
>
> /* Firmware Names */
> +#ifdef CONFIG_DRM_AMDGPU_SI
> +#define FIRMWARE_TAHITI "amdgpu/tahiti_uvd.bin"
> +#define FIRMWARE_VERDE "amdgpu/verde_uvd.bin"
> +#define FIRMWARE_PITCAIRN "amdgpu/pitcairn_uvd.bin"
> +#define FIRMWARE_OLAND "amdgpu/oland_uvd.bin"
> +#endif
> #ifdef CONFIG_DRM_AMDGPU_CIK
> #define FIRMWARE_BONAIRE "amdgpu/bonaire_uvd.bin"
> #define FIRMWARE_KABINI "amdgpu/kabini_uvd.bin"
> @@ -100,6 +106,12 @@ struct amdgpu_uvd_cs_ctx {
> unsigned *buf_sizes;
> };
>
> +#ifdef CONFIG_DRM_AMDGPU_SI
> +MODULE_FIRMWARE(FIRMWARE_TAHITI);
> +MODULE_FIRMWARE(FIRMWARE_VERDE);
> +MODULE_FIRMWARE(FIRMWARE_PITCAIRN);
> +MODULE_FIRMWARE(FIRMWARE_OLAND);
> +#endif
> #ifdef CONFIG_DRM_AMDGPU_CIK
> MODULE_FIRMWARE(FIRMWARE_BONAIRE);
> MODULE_FIRMWARE(FIRMWARE_KABINI);
> @@ -133,6 +145,20 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)
> INIT_DELAYED_WORK(&adev->uvd.idle_work, amdgpu_uvd_idle_work_handler);
>
> switch (adev->asic_type) {
> +#ifdef CONFIG_DRM_AMDGPU_SI
> + case CHIP_TAHITI:
> + fw_name = FIRMWARE_TAHITI;
> + break;
> + case CHIP_VERDE:
> + fw_name = FIRMWARE_VERDE;
> + break;
> + case CHIP_PITCAIRN:
> + fw_name = FIRMWARE_PITCAIRN;
> + break;
> + case CHIP_OLAND:
> + fw_name = FIRMWARE_OLAND;
> + break;
> +#endif
> #ifdef CONFIG_DRM_AMDGPU_CIK
> case CHIP_BONAIRE:
> fw_name = FIRMWARE_BONAIRE;
> --
> 2.25.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list