aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2015-06-06 17:15:51 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2015-07-20 02:16:49 -0400
commit7639a8c420f04ca9be87974416efb2848b0962d9 (patch)
tree3bee682210dbe7127b84021d8527670aa0a0b071 /drivers/gpu/drm/amd
parent3d30b28be811b0d7c0a113eab361d5e3029d6da4 (diff)
drm/amdkfd: Set correct doorbell packet type for Carrizo
Signed-off-by: Ben Goz <ben.goz@amd.com> Reviewed-by: Yair Shachar <yair.shachar@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_topology.c5
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_topology.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
index c25728bc388a..74909e72a009 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
@@ -1186,6 +1186,11 @@ int kfd_topology_add_device(struct kfd_dev *gpu)
1186 * TODO: Retrieve max engine clock values from KGD 1186 * TODO: Retrieve max engine clock values from KGD
1187 */ 1187 */
1188 1188
1189 if (dev->gpu->device_info->asic_family == CHIP_CARRIZO) {
1190 dev->node_props.capability |= HSA_CAP_DOORBELL_PACKET_TYPE;
1191 pr_info("amdkfd: adding doorbell packet type capability\n");
1192 }
1193
1189 res = 0; 1194 res = 0;
1190 1195
1191err: 1196err:
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
index 989624b3cd14..c3ddb9b95ff8 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.h
@@ -40,6 +40,7 @@
40#define HSA_CAP_WATCH_POINTS_TOTALBITS_MASK 0x00000f00 40#define HSA_CAP_WATCH_POINTS_TOTALBITS_MASK 0x00000f00
41#define HSA_CAP_WATCH_POINTS_TOTALBITS_SHIFT 8 41#define HSA_CAP_WATCH_POINTS_TOTALBITS_SHIFT 8
42#define HSA_CAP_RESERVED 0xfffff000 42#define HSA_CAP_RESERVED 0xfffff000
43#define HSA_CAP_DOORBELL_PACKET_TYPE 0x00001000
43 44
44struct kfd_node_properties { 45struct kfd_node_properties {
45 uint32_t cpu_cores_count; 46 uint32_t cpu_cores_count;