<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">SOC15 refers to the SOC design we started with vega10. It differs from previous SOC design from previous asics. I think it was designed in ~2015, so SOC15. The soc15 name is fine with me.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Alex<br>
</p>
</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 Zeng, Oak <Oak.Zeng@amd.com><br>
<b>Sent:</b> Friday, March 9, 2018 9:52:06 AM<br>
<b>To:</b> Koenig, Christian; Oak Zeng; amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> RE: [PATCH] drm/amdgpu: Move IH clientid defs to separate file</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Thanks Alex, Christian and David for the feedback.<br>
<br>
I will: <br>
1. keep AMDGPU_IH_CLIENTID_LEGACY in amdgpu_ih.h<br>
2. Change other client ID's prefix to SOC15<br>
3. Regarding the file name, I think those client ID are introduced since Vega10 and also apply for navi10. Is SOC15 the proper file name? Actually can anybody explain what is SOC15? Or any suggestion for a better file name?<br>
<br>
Thanks,<br>
Oak<br>
<br>
<br>
-----Original Message-----<br>
From: Christian König [<a href="mailto:ckoenig.leichtzumerken@gmail.com">mailto:ckoenig.leichtzumerken@gmail.com</a>]
<br>
Sent: Friday, March 09, 2018 2:49 AM<br>
To: Oak Zeng; amd-gfx@lists.freedesktop.org<br>
Cc: Zeng, Oak<br>
Subject: Re: [PATCH] drm/amdgpu: Move IH clientid defs to separate file<br>
<br>
Am 09.03.2018 um 00:24 schrieb Oak Zeng:<br>
> This is preparation for sharing client ID definitions between amdgpu <br>
> and amdkfd<br>
><br>
> Change-Id: Ie0b7b14c9c2366fd896745a51b74a9ba97ee3224<br>
> Signed-off-by: Oak Zeng <Oak.Zeng@amd.com><br>
> ---<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 44 +--------------<br>
> drivers/gpu/drm/amd/include/soc15_ih_clientid.h | 72 +++++++++++++++++++++++++<br>
> 2 files changed, 73 insertions(+), 43 deletions(-)<br>
> create mode 100644 drivers/gpu/drm/amd/include/soc15_ih_clientid.h<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h <br>
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h<br>
> index b8a7dba..62a9869 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h<br>
> @@ -25,51 +25,9 @@<br>
> #define __AMDGPU_IH_H__<br>
> <br>
> #include <linux/chash.h><br>
> +#include "soc15_ih_clientid.h"<br>
> <br>
> struct amdgpu_device;<br>
> - /*<br>
> - * vega10+ IH clients<br>
> - */<br>
> -enum amdgpu_ih_clientid<br>
> -{<br>
> - AMDGPU_IH_CLIENTID_IH = 0x00,<br>
> - AMDGPU_IH_CLIENTID_ACP = 0x01,<br>
> - AMDGPU_IH_CLIENTID_ATHUB = 0x02,<br>
> - AMDGPU_IH_CLIENTID_BIF = 0x03,<br>
> - AMDGPU_IH_CLIENTID_DCE = 0x04,<br>
> - AMDGPU_IH_CLIENTID_ISP = 0x05,<br>
> - AMDGPU_IH_CLIENTID_PCIE0 = 0x06,<br>
> - AMDGPU_IH_CLIENTID_RLC = 0x07,<br>
> - AMDGPU_IH_CLIENTID_SDMA0 = 0x08,<br>
> - AMDGPU_IH_CLIENTID_SDMA1 = 0x09,<br>
> - AMDGPU_IH_CLIENTID_SE0SH = 0x0a,<br>
> - AMDGPU_IH_CLIENTID_SE1SH = 0x0b,<br>
> - AMDGPU_IH_CLIENTID_SE2SH = 0x0c,<br>
> - AMDGPU_IH_CLIENTID_SE3SH = 0x0d,<br>
> - AMDGPU_IH_CLIENTID_SYSHUB = 0x0e,<br>
> - AMDGPU_IH_CLIENTID_THM = 0x0f,<br>
> - AMDGPU_IH_CLIENTID_UVD = 0x10,<br>
> - AMDGPU_IH_CLIENTID_VCE0 = 0x11,<br>
> - AMDGPU_IH_CLIENTID_VMC = 0x12,<br>
> - AMDGPU_IH_CLIENTID_XDMA = 0x13,<br>
> - AMDGPU_IH_CLIENTID_GRBM_CP = 0x14,<br>
> - AMDGPU_IH_CLIENTID_ATS = 0x15,<br>
> - AMDGPU_IH_CLIENTID_ROM_SMUIO = 0x16,<br>
> - AMDGPU_IH_CLIENTID_DF = 0x17,<br>
> - AMDGPU_IH_CLIENTID_VCE1 = 0x18,<br>
> - AMDGPU_IH_CLIENTID_PWR = 0x19,<br>
> - AMDGPU_IH_CLIENTID_UTCL2 = 0x1b,<br>
> - AMDGPU_IH_CLIENTID_EA = 0x1c,<br>
> - AMDGPU_IH_CLIENTID_UTCL2LOG = 0x1d,<br>
> - AMDGPU_IH_CLIENTID_MP0 = 0x1e,<br>
> - AMDGPU_IH_CLIENTID_MP1 = 0x1f,<br>
> -<br>
> - AMDGPU_IH_CLIENTID_MAX,<br>
> -<br>
> - AMDGPU_IH_CLIENTID_VCN = AMDGPU_IH_CLIENTID_UVD<br>
> -};<br>
> -<br>
> -#define AMDGPU_IH_CLIENTID_LEGACY 0<br>
> <br>
> #define AMDGPU_PAGEFAULT_HASH_BITS 8<br>
> struct amdgpu_retryfault_hashtable { diff --git <br>
> a/drivers/gpu/drm/amd/include/soc15_ih_clientid.h <br>
> b/drivers/gpu/drm/amd/include/soc15_ih_clientid.h<br>
> new file mode 100644<br>
> index 0000000..e2e8c63<br>
> --- /dev/null<br>
> +++ b/drivers/gpu/drm/amd/include/soc15_ih_clientid.h<br>
> @@ -0,0 +1,72 @@<br>
> +/*<br>
> + * Copyright 2018 Advanced Micro Devices, Inc.<br>
> + *<br>
> + * Permission is hereby granted, free of charge, to any person <br>
> +obtaining a<br>
> + * copy of this software and associated documentation files (the <br>
> +"Software"),<br>
> + * to deal in the Software without restriction, including without <br>
> +limitation<br>
> + * the rights to use, copy, modify, merge, publish, distribute, <br>
> +sublicense,<br>
> + * and/or sell copies of the Software, and to permit persons to whom <br>
> +the<br>
> + * Software is furnished to do so, subject to the following conditions:<br>
> + *<br>
> + * The above copyright notice and this permission notice shall be <br>
> +included in<br>
> + * all copies or substantial portions of the Software.<br>
> + *<br>
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, <br>
> +EXPRESS OR<br>
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF <br>
> +MERCHANTABILITY,<br>
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT <br>
> +SHALL<br>
> + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, <br>
> +DAMAGES OR<br>
> + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR <br>
> +OTHERWISE,<br>
> + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE <br>
> +OR<br>
> + * OTHER DEALINGS IN THE SOFTWARE.<br>
> + *<br>
> + */<br>
> +<br>
> +#ifndef __SOC15_IH_CLIENTID_H__<br>
> +#define __SOC15_IH_CLIENTID_H__<br>
> +<br>
> + /*<br>
> + * vega10+ IH clients<br>
> + */<br>
> +enum amdgpu_ih_clientid {<br>
> + AMDGPU_IH_CLIENTID_IH = 0x00,<br>
> + AMDGPU_IH_CLIENTID_ACP = 0x01,<br>
> + AMDGPU_IH_CLIENTID_ATHUB = 0x02,<br>
> + AMDGPU_IH_CLIENTID_BIF = 0x03,<br>
> + AMDGPU_IH_CLIENTID_DCE = 0x04,<br>
> + AMDGPU_IH_CLIENTID_ISP = 0x05,<br>
> + AMDGPU_IH_CLIENTID_PCIE0 = 0x06,<br>
> + AMDGPU_IH_CLIENTID_RLC = 0x07,<br>
> + AMDGPU_IH_CLIENTID_SDMA0 = 0x08,<br>
> + AMDGPU_IH_CLIENTID_SDMA1 = 0x09,<br>
> + AMDGPU_IH_CLIENTID_SE0SH = 0x0a,<br>
> + AMDGPU_IH_CLIENTID_SE1SH = 0x0b,<br>
> + AMDGPU_IH_CLIENTID_SE2SH = 0x0c,<br>
> + AMDGPU_IH_CLIENTID_SE3SH = 0x0d,<br>
> + AMDGPU_IH_CLIENTID_SYSHUB = 0x0e,<br>
> + AMDGPU_IH_CLIENTID_THM = 0x0f,<br>
> + AMDGPU_IH_CLIENTID_UVD = 0x10,<br>
> + AMDGPU_IH_CLIENTID_VCE0 = 0x11,<br>
> + AMDGPU_IH_CLIENTID_VMC = 0x12,<br>
> + AMDGPU_IH_CLIENTID_XDMA = 0x13,<br>
> + AMDGPU_IH_CLIENTID_GRBM_CP = 0x14,<br>
> + AMDGPU_IH_CLIENTID_ATS = 0x15,<br>
> + AMDGPU_IH_CLIENTID_ROM_SMUIO = 0x16,<br>
> + AMDGPU_IH_CLIENTID_DF = 0x17,<br>
> + AMDGPU_IH_CLIENTID_VCE1 = 0x18,<br>
> + AMDGPU_IH_CLIENTID_PWR = 0x19,<br>
> + AMDGPU_IH_CLIENTID_UTCL2 = 0x1b,<br>
> + AMDGPU_IH_CLIENTID_EA = 0x1c,<br>
> + AMDGPU_IH_CLIENTID_UTCL2LOG = 0x1d,<br>
> + AMDGPU_IH_CLIENTID_MP0 = 0x1e,<br>
> + AMDGPU_IH_CLIENTID_MP1 = 0x1f,<br>
> +<br>
> + AMDGPU_IH_CLIENTID_MAX,<br>
> +<br>
> + AMDGPU_IH_CLIENTID_VCN = AMDGPU_IH_CLIENTID_UVD<br>
> +};<br>
> +<br>
> +#define AMDGPU_IH_CLIENTID_LEGACY 0<br>
<br>
Please keep AMDGPU_IH_CLIENTID_LEGACY in amdgpu_ih.h, since that isn't related to SOC15 in any way.<br>
<br>
Additional to that the other client IDs could use a new prefix if you move them around, but that isn't mandatory.<br>
<br>
Christian.<br>
<br>
> +<br>
> +#endif<br>
> +<br>
> +<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><br>
</div>
</span></font></div>
</body>
</html>