On Wed, May 17, 2023 at 12:18 PM Graham Sider <Graham.Sider@xxxxxxx> wrote: > > For GC 9.4.3, set gfx_target_version to 90402 for rev 1 and later (APU > or dGPU), 90401 for rev 0 dGPU, and 90400 for rev 0 APU. > > Signed-off-by: Graham Sider <Graham.Sider@xxxxxxx> > Reviewed-by: Amber Lin <Amber.Lin@xxxxxxx> Acked-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/amd/amdkfd/kfd_device.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c > index 01a970ca2c5d..8e52b04235ab 100644 > --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c > @@ -330,7 +330,9 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf) > f2g = &aldebaran_kfd2kgd; > break; > case IP_VERSION(9, 4, 3): > - gfx_target_version = 90400; > + gfx_target_version = adev->rev_id >= 1 ? 90402 > + : adev->flags & AMD_IS_APU ? 90400 > + : 90401; > f2g = &aqua_vanjaram_kfd2kgd; > break; > /* Navi10 */ > -- > 2.25.1 >