[PATCH 9/9] drm/amdgpu: Enable KFD initialization on dGPUs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-01-31 10:25 AM, Oded Gabbay wrote:
> On Fri, Jan 5, 2018 at 12:17 AM, Felix Kuehling <Felix.Kuehling at amd.com> wrote:
>> Signed-off-by: Felix Kuehling <Felix.Kuehling at amd.com>
>> ---
>>  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
>> index 335e454..7ebe430 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
>> @@ -78,10 +78,15 @@ void amdgpu_amdkfd_device_probe(struct amdgpu_device *adev)
>>         switch (adev->asic_type) {
>>  #ifdef CONFIG_DRM_AMDGPU_CIK
>>         case CHIP_KAVERI:
>> +       case CHIP_HAWAII:
>>                 kfd2kgd = amdgpu_amdkfd_gfx_7_get_functions();
>>                 break;
>>  #endif
>>         case CHIP_CARRIZO:
>> +       case CHIP_TONGA:
>> +       case CHIP_FIJI:
>> +       case CHIP_POLARIS10:
>> +       case CHIP_POLARIS11:
> Polaris isn't gfx 9 ?
> or is it called differently ?

The GFX IP in Polaris is same as in Fiji. Same CP packets, same shader
instructions, same register offsets etc. You'll see the same in amdgpu.
Enabling Polaris in KFD was really as simple as adding the names and
device IDs in a few places.

Regards,
  Felix

>
>>                 kfd2kgd = amdgpu_amdkfd_gfx_8_0_get_functions();
>>                 break;
>>         default:
>> --
>> 2.7.4
>>



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux