<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">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only]<br>
</p>
<br>
<div>
<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 Graham Sider <Graham.Sider@amd.com><br>
<b>Sent:</b> Tuesday, January 11, 2022 3:19 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Sider, Graham <Graham.Sider@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdkfd: Fix indentation on switch statement</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Cases should be same indentation as switch. Also fix string spanning<br>
across multiple lines.<br>
<br>
Signed-off-by: Graham Sider <Graham.Sider@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 55 ++++++++++++-------------<br>
1 file changed, 27 insertions(+), 28 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
index 2b65d0acae2c..5a47f437b455 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c<br>
@@ -64,34 +64,33 @@ static void kfd_device_info_set_sdma_queue_num(struct kfd_dev *kfd)<br>
uint32_t sdma_version = kfd->adev->ip_versions[SDMA0_HWIP][0];<br>
<br>
switch (sdma_version) {<br>
- case IP_VERSION(4, 0, 0):/* VEGA10 */<br>
- case IP_VERSION(4, 0, 1):/* VEGA12 */<br>
- case IP_VERSION(4, 1, 0):/* RAVEN */<br>
- case IP_VERSION(4, 1, 1):/* RAVEN */<br>
- case IP_VERSION(4, 1, 2):/* RENOIR */<br>
- case IP_VERSION(5, 2, 1):/* VANGOGH */<br>
- case IP_VERSION(5, 2, 3):/* YELLOW_CARP */<br>
- kfd->device_info.num_sdma_queues_per_engine = 2;<br>
- break;<br>
- case IP_VERSION(4, 2, 0):/* VEGA20 */<br>
- case IP_VERSION(4, 2, 2):/* ARCTURUS */<br>
- case IP_VERSION(4, 4, 0):/* ALDEBARAN */<br>
- case IP_VERSION(5, 0, 0):/* NAVI10 */<br>
- case IP_VERSION(5, 0, 1):/* CYAN_SKILLFISH */<br>
- case IP_VERSION(5, 0, 2):/* NAVI14 */<br>
- case IP_VERSION(5, 0, 5):/* NAVI12 */<br>
- case IP_VERSION(5, 2, 0):/* SIENNA_CICHLID */<br>
- case IP_VERSION(5, 2, 2):/* NAVY_FLOUNDER */<br>
- case IP_VERSION(5, 2, 4):/* DIMGREY_CAVEFISH */<br>
- case IP_VERSION(5, 2, 5):/* BEIGE_GOBY */<br>
- kfd->device_info.num_sdma_queues_per_engine = 8;<br>
- break;<br>
- default:<br>
- dev_warn(kfd_device,<br>
- "Default sdma queue per engine(8) is set due to "<br>
- "mismatch of sdma ip block(SDMA_HWIP:0x%x).\n",<br>
- sdma_version);<br>
- kfd->device_info.num_sdma_queues_per_engine = 8;<br>
+ case IP_VERSION(4, 0, 0):/* VEGA10 */<br>
+ case IP_VERSION(4, 0, 1):/* VEGA12 */<br>
+ case IP_VERSION(4, 1, 0):/* RAVEN */<br>
+ case IP_VERSION(4, 1, 1):/* RAVEN */<br>
+ case IP_VERSION(4, 1, 2):/* RENOIR */<br>
+ case IP_VERSION(5, 2, 1):/* VANGOGH */<br>
+ case IP_VERSION(5, 2, 3):/* YELLOW_CARP */<br>
+ kfd->device_info.num_sdma_queues_per_engine = 2;<br>
+ break;<br>
+ case IP_VERSION(4, 2, 0):/* VEGA20 */<br>
+ case IP_VERSION(4, 2, 2):/* ARCTURUS */<br>
+ case IP_VERSION(4, 4, 0):/* ALDEBARAN */<br>
+ case IP_VERSION(5, 0, 0):/* NAVI10 */<br>
+ case IP_VERSION(5, 0, 1):/* CYAN_SKILLFISH */<br>
+ case IP_VERSION(5, 0, 2):/* NAVI14 */<br>
+ case IP_VERSION(5, 0, 5):/* NAVI12 */<br>
+ case IP_VERSION(5, 2, 0):/* SIENNA_CICHLID */<br>
+ case IP_VERSION(5, 2, 2):/* NAVY_FLOUNDER */<br>
+ case IP_VERSION(5, 2, 4):/* DIMGREY_CAVEFISH */<br>
+ case IP_VERSION(5, 2, 5):/* BEIGE_GOBY */<br>
+ kfd->device_info.num_sdma_queues_per_engine = 8;<br>
+ break;<br>
+ default:<br>
+ dev_warn(kfd_device,<br>
+ "Default sdma queue per engine(8) is set due to mismatch of sdma ip block(SDMA_HWIP:0x%x).\n",<br>
+ sdma_version);<br>
+ kfd->device_info.num_sdma_queues_per_engine = 8;<br>
}<br>
}<br>
<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>