<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> Tuesday, September 24, 2019 6:13 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/amdgpu: Add NAVI12 support from kfd side</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Add device info for both navi12 PF and VF<br>
<br>
Change-Id: Ifb4035e65c12d153fc30e593fe109f9c7e0541f4<br>
Signed-off-by: shaoyunl <shaoyun.liu@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 19 +++++++++++++++++++<br>
1 file changed, 19 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
index f329b82..edfbae5c 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
@@ -387,6 +387,24 @@ static const struct kfd_device_info navi10_device_info = {<br>
.num_sdma_queues_per_engine = 8,<br>
};<br>
<br>
+static const struct kfd_device_info navi12_device_info = {<br>
+ .asic_family = CHIP_NAVI12,<br>
+ .asic_name = "navi12",<br>
+ .max_pasid_bits = 16,<br>
+ .max_no_of_hqd = 24,<br>
+ .doorbell_size = 8,<br>
+ .ih_ring_entry_size = 8 * sizeof(uint32_t),<br>
+ .event_interrupt_class = &event_interrupt_class_v9,<br>
+ .num_of_watch_points = 4,<br>
+ .mqd_size_aligned = MQD_SIZE_ALIGNED,<br>
+ .needs_iommu_device = false,<br>
+ .supports_cwsr = true,<br>
+ .needs_pci_atomics = false,<br>
+ .num_sdma_engines = 2,<br>
+ .num_xgmi_sdma_engines = 0,<br>
+ .num_sdma_queues_per_engine = 8,<br>
+};<br>
+<br>
static const struct kfd_device_info navi14_device_info = {<br>
.asic_family = CHIP_NAVI14,<br>
.asic_name = "navi14",<br>
@@ -425,6 +443,7 @@ static const struct kfd_device_info *kfd_supported_devices[][2] = {<br>
[CHIP_RENOIR] = {&renoir_device_info, NULL},<br>
[CHIP_ARCTURUS] = {&arcturus_device_info, &arcturus_device_info},<br>
[CHIP_NAVI10] = {&navi10_device_info, NULL},<br>
+ [CHIP_NAVI12] = {&navi12_device_info, &navi12_device_info},<br>
[CHIP_NAVI14] = {&navi14_device_info, NULL},<br>
};<br>
<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>