<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);">
Acked-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 Zhan Liu <zhan.liu@amd.com><br>
<b>Sent:</b> Tuesday, November 26, 2019 4:32 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Wu, Hersen <hersenxs.wu@amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com><br>
<b>Cc:</b> Liu, Zhan <Zhan.Liu@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/display: Get NV14 specific ip params as needed</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[Why]<br>
NV14 is using its own ip params that's different from other<br>
DCN2.0 ASICs.<br>
<br>
[How]<br>
Add ASIC revision check to make sure NV14 gets correct<br>
ip params.<br>
<br>
Signed-off-by: Zhan Liu <zhan.liu@amd.com><br>
---<br>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c<br>
index dbc0a4a7c284..3dd2b2429ae2 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c<br>
@@ -3245,6 +3245,9 @@ static struct _vcs_dpi_soc_bounding_box_st *get_asic_rev_soc_bb(<br>
static struct _vcs_dpi_ip_params_st *get_asic_rev_ip_params(<br>
uint32_t hw_internal_rev)<br>
{<br>
+ if (ASICREV_IS_NAVI14_M(hw_internal_rev))<br>
+ return &dcn2_0_nv14_ip;<br>
+<br>
/* NV12 and NV10 */<br>
return &dcn2_0_ip;<br>
}<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Calexander.deucher%40amd.com%7Cbea3a51cb27f4ad9694e08d772b829b4%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637104007649236121&sdata=p72lWgE%2FB63Exu9JFi7eQ86mk%2FbBB8%2BE5BkBR0SUwqY%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Calexander.deucher%40amd.com%7Cbea3a51cb27f4ad9694e08d772b829b4%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637104007649236121&sdata=p72lWgE%2FB63Exu9JFi7eQ86mk%2FbBB8%2BE5BkBR0SUwqY%3D&reserved=0</a></div>
</span></font></div>
</body>
</html>