[PATCH 2/8] drm/amdgpu: Add asic func interface to init doorbell index

Alex Deucher alexdeucher at gmail.com
Wed Nov 28 01:08:10 UTC 2018


On Mon, Nov 26, 2018 at 12:29 PM Oak Zeng <ozeng at amd.com> wrote:
>
> Change-Id: I7e8a9c9dfd4f3bd0902679a1771c1a043ece2674
> Signed-off-by: Oak Zeng <ozeng at amd.com>

With a patch description added,
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index b7ee4ef..719da32 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -654,6 +654,8 @@ struct amdgpu_asic_funcs {
>                                struct amdgpu_ring *ring);
>         /* check if the asic needs a full reset of if soft reset will work */
>         bool (*need_full_reset)(struct amdgpu_device *adev);
> +       /* initialize doorbell layout for specific asic*/
> +       void (*init_doorbell_index)(struct amdgpu_device *adev);
>  };
>
>  /*
> @@ -1212,6 +1214,7 @@ int emu_soc_asic_init(struct amdgpu_device *adev);
>  #define amdgpu_asic_flush_hdp(adev, r) (adev)->asic_funcs->flush_hdp((adev), (r))
>  #define amdgpu_asic_invalidate_hdp(adev, r) (adev)->asic_funcs->invalidate_hdp((adev), (r))
>  #define amdgpu_asic_need_full_reset(adev) (adev)->asic_funcs->need_full_reset((adev))
> +#define amdgpu_asic_init_doorbell_index(adev) (adev)->asic_funcs->init_doorbell_index((adev))
>
>  /* Common functions */
>  bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev);
> --
> 2.7.4
>
> _______________________________________________
> 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