[PATCH] drm/amdkfd: simplify cases

Felix Kuehling felix.kuehling at amd.com
Tue Jan 3 20:09:05 UTC 2023


Am 2022-12-27 um 12:12 schrieb Alex Deucher:
> On Tue, Dec 27, 2022 at 12:10 PM Alex Deucher <alexander.deucher at amd.com> wrote:
>> A number of of the gfx8 cases where the same.  Clean them
>> up.
> typos here fixed up locally.
>
> Alex
>
>> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>


>> ---
>>   drivers/gpu/drm/amd/amdkfd/kfd_device.c | 11 -----------
>>   1 file changed, 11 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
>> index 091fc2bb8ce5..521dfa88aad8 100644
>> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
>> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
>> @@ -263,23 +263,12 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
>>                          f2g = &gfx_v8_kfd2kgd;
>>                  break;
>>          case CHIP_FIJI:
>> -               gfx_target_version = 80003;
>> -               f2g = &gfx_v8_kfd2kgd;
>> -               break;
>>          case CHIP_POLARIS10:
>>                  gfx_target_version = 80003;
>>                  f2g = &gfx_v8_kfd2kgd;
>>                  break;
>>          case CHIP_POLARIS11:
>> -               gfx_target_version = 80003;
>> -               if (!vf)
>> -                       f2g = &gfx_v8_kfd2kgd;
>> -               break;
>>          case CHIP_POLARIS12:
>> -               gfx_target_version = 80003;
>> -               if (!vf)
>> -                       f2g = &gfx_v8_kfd2kgd;
>> -               break;
>>          case CHIP_VEGAM:
>>                  gfx_target_version = 80003;
>>                  if (!vf)
>> --
>> 2.38.1
>>


More information about the amd-gfx mailing list