drm/amdkfd: Add asic property to kfd_device_info
authorBen Goz <ben.goz@amd.com>
Thu, 1 Jan 2015 15:10:01 +0000 (17:10 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Thu, 1 Jan 2015 15:10:01 +0000 (17:10 +0200)
commit0da7558c690708259617417d3ddc5b5042f1cca4
tree422d8e12811fcabced2870c8d18982c2f0491f2e
parent85d258f9a7e827dc321d54d15ce1c6d5b0048a17
drm/amdkfd: Add asic property to kfd_device_info

This patch adds a new property to kfd_device_info structure. That structure
holds information that is H/W specific.

The new property is called asic_family and its purpose is to distinguish
between different asic families in amdkfd operations, mainly in QCM (queue
control & management)

This patch also adds a new enum, to select different ASICs. We set the current
kfd_device_info instance as Kaveri and create a new instance which describes
the new AMD APU, codenamed 'Carrizo'.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h