[PATCH 1/2] drm/amdgpu: return -ENOENT from uvd 6.0 early init for harvesting
Alex Deucher
alexdeucher at gmail.com
Wed Nov 1 14:04:05 UTC 2017
On Wed, Nov 1, 2017 at 9:10 AM, Leo Liu <leo.liu at amd.com> wrote:
> Signed-off-by: Leo Liu <leo.liu at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
> index 7e4de3e6950f..0c01825a8b9e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
> @@ -371,6 +371,10 @@ static int uvd_v6_0_early_init(void *handle)
> {
> struct amdgpu_device *adev = (struct amdgpu_device *)handle;
>
> + if (!(adev->flags & AMD_IS_APU) &&
> + (RREG32_SMC(ixCC_HARVEST_FUSES) & CC_HARVEST_FUSES__UVD_DISABLE_MASK))
> + return -ENOENT;
Is this fuse relevant on fiji as well? If so,
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Alex
> +
> uvd_v6_0_set_ring_funcs(adev);
>
> if (uvd_v6_0_enc_support(adev)) {
> --
> 2.14.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