[PATCH 1/5] drm/amdkfd: protect hawaii_device_info with CONFIG_DRM_AMDGPU_CIK

Quan, Evan Evan.Quan at amd.com
Fri Oct 15 02:33:43 UTC 2021


[AMD Official Use Only]

Patch1 & 2 are reviewed-by: Evan Quan <evan.quan at amd.com>
Patch 3 - 5 are acked-by: Evan Quan <evan.quan at amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Alex
> Deucher
> Sent: Thursday, October 14, 2021 2:21 AM
> To: Deucher, Alexander <Alexander.Deucher at amd.com>
> Cc: amd-gfx list <amd-gfx at lists.freedesktop.org>
> Subject: Re: [PATCH 1/5] drm/amdkfd: protect hawaii_device_info with
> CONFIG_DRM_AMDGPU_CIK
> 
> Ping on this series.
> 
> On Mon, Oct 11, 2021 at 11:02 AM Alex Deucher
> <alexander.deucher at amd.com> wrote:
> >
> > hawaii_device_info is not used when CONFIG_DRM_AMDGPU_CIK is not
> set.
> >
> > Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> > ---
> >  drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> > b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> > index 064d42acd54e..31e255ba15ed 100644
> > --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> > @@ -114,6 +114,7 @@ static const struct kfd_device_info
> raven_device_info = {
> >         .num_sdma_queues_per_engine = 2,  };
> >
> > +#ifdef CONFIG_DRM_AMDGPU_CIK
> >  static const struct kfd_device_info hawaii_device_info = {
> >         .asic_family = CHIP_HAWAII,
> >         .asic_name = "hawaii",
> > @@ -133,6 +134,7 @@ static const struct kfd_device_info
> hawaii_device_info = {
> >         .num_xgmi_sdma_engines = 0,
> >         .num_sdma_queues_per_engine = 2,  };
> > +#endif
> >
> >  static const struct kfd_device_info tonga_device_info = {
> >         .asic_family = CHIP_TONGA,
> > --
> > 2.31.1
> >


More information about the amd-gfx mailing list