<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Liu, Shaoyun <Shaoyun.Liu@amd.com><br>
<b>Sent:</b> Thursday, September 26, 2019 8:03 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> Re: [PATCH] drm/amdkfd: use navi12 specific family id for navi12 code path</font>
<div> </div>
</div>
<div>Ping.
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Liu, Shaoyun <Shaoyun.Liu@amd.com><br>
<b>Sent:</b> September 25, 2019 5:14:08 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Liu, Shaoyun <Shaoyun.Liu@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdkfd: use navi12 specific family id for navi12 code path</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Keep the same use of CHIP_IDs for navi12 in kfd<br>
<br>
Change-Id: I5e52bbc058be51e79553147732a571a604537b7c<br>
Signed-off-by: shaoyunl <shaoyun.liu@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c                 | 1 +<br>
 drivers/gpu/drm/amd/amdkfd/kfd_device.c               | 2 +-<br>
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 +<br>
 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c          | 1 +<br>
 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c         | 1 +<br>
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c       | 1 +<br>
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c             | 1 +<br>
 7 files changed, 7 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c<br>
index 1ef3c32..0c327e0 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c<br>
@@ -676,6 +676,7 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,<br>
                 num_of_cache_types = ARRAY_SIZE(renoir_cache_info);<br>
                 break;<br>
         case CHIP_NAVI10:<br>
+       case CHIP_NAVI12:<br>
         case CHIP_NAVI14:<br>
                 pcache_info = navi10_cache_info;<br>
                 num_of_cache_types = ARRAY_SIZE(navi10_cache_info);<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
index 270389b..edfbae5c 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
@@ -388,7 +388,7 @@ static const struct kfd_device_info navi10_device_info = {<br>
 };<br>
 <br>
 static const struct kfd_device_info navi12_device_info = {<br>
-       .asic_family = CHIP_NAVI10,<br>
+       .asic_family = CHIP_NAVI12,<br>
         .asic_name = "navi12",<br>
         .max_pasid_bits = 16,<br>
         .max_no_of_hqd  = 24,<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c<br>
index 399a612..54f0c5cc 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c<br>
@@ -1798,6 +1798,7 @@ struct device_queue_manager *device_queue_manager_init(struct kfd_dev *dev)<br>
                 device_queue_manager_init_v9(&dqm->asic_ops);<br>
                 break;<br>
         case CHIP_NAVI10:<br>
+       case CHIP_NAVI12:<br>
         case CHIP_NAVI14:<br>
                 device_queue_manager_init_v10_navi10(&dqm->asic_ops);<br>
                 break;<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c<br>
index 4816614..450c991 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c<br>
@@ -408,6 +408,7 @@ int kfd_init_apertures(struct kfd_process *process)<br>
                         case CHIP_RENOIR:<br>
                         case CHIP_ARCTURUS:<br>
                         case CHIP_NAVI10:<br>
+                       case CHIP_NAVI12:<br>
                         case CHIP_NAVI14:<br>
                                 kfd_init_apertures_v9(pdd, id);<br>
                                 break;<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c<br>
index 990ab54..11d2448 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c<br>
@@ -335,6 +335,7 @@ struct kernel_queue *kernel_queue_init(struct kfd_dev *dev,<br>
                 kernel_queue_init_v9(&kq->ops_asic_specific);<br>
                 break;<br>
         case CHIP_NAVI10:<br>
+       case CHIP_NAVI12:<br>
         case CHIP_NAVI14:<br>
                 kernel_queue_init_v10(&kq->ops_asic_specific);<br>
                 break;<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c<br>
index af62be0..83ef4b3 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c<br>
@@ -244,6 +244,7 @@ int pm_init(struct packet_manager *pm, struct device_queue_manager *dqm)<br>
                 pm->pmf = &kfd_v9_pm_funcs;<br>
                 break;<br>
         case CHIP_NAVI10:<br>
+       case CHIP_NAVI12:<br>
         case CHIP_NAVI14:<br>
                 pm->pmf = &kfd_v10_pm_funcs;<br>
                 break;<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c<br>
index f2170f0..453832e 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c<br>
@@ -1320,6 +1320,7 @@ int kfd_topology_add_device(struct kfd_dev *gpu)<br>
         case CHIP_RENOIR:<br>
         case CHIP_ARCTURUS:<br>
         case CHIP_NAVI10:<br>
+       case CHIP_NAVI12:<br>
         case CHIP_NAVI14:<br>
                 dev->node_props.capability |= ((HSA_CAP_DOORBELL_TYPE_2_0 <<<br>
                         HSA_CAP_DOORBELL_TYPE_TOTALBITS_SHIFT) &<br>
-- <br>
2.7.4<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>