<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Kenneth Feng <<a href="mailto:kenneth.feng@amd.com" class="">kenneth.feng@amd.com</a>>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div style="">
<blockquote type="cite" class="">
<div class="">在 2019年11月5日,下午6:23,Wang, Kevin(Yang) <<a href="mailto:Kevin1.Wang@amd.com" class="">Kevin1.Wang@amd.com</a>> 写道:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">fix workload bit (WORKLOAD_PPLIB_COMPUTE_BIT) map error<br class="">
on vega20 and navi asic.<br class="">
<br class="">
fix commit:<br class="">
drm/amd/powerplay: add function get_workload_type_map for swsmu<br class="">
<br class="">
Signed-off-by: Kevin Wang <<a href="mailto:kevin1.wang@amd.com" class="">kevin1.wang@amd.com</a>><br class="">
---<br class="">
drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 +-<br class="">
drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 2 +-<br class="">
2 files changed, 2 insertions(+), 2 deletions(-)<br class="">
<br class="">
diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br class="">
index 769f9451d904..354f70978f82 100644<br class="">
--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br class="">
+++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br class="">
@@ -207,7 +207,7 @@ static struct smu_11_0_cmn2aisc_mapping navi10_workload_map[PP_SMC_POWER_PROFILE<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_POWERSAVING,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_POWER_SAVING_BIT),<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_VIDEO,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_VIDEO_BIT),<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_VR,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_VR_BIT),<br class="">
-<span class="Apple-tab-span" style="white-space:pre"> </span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_COMPUTE,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_CUSTOM_BIT),<br class="">
+<span class="Apple-tab-span" style="white-space:pre"> </span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_COMPUTE,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_COMPUTE_BIT),<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_CUSTOM,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_CUSTOM_BIT),<br class="">
};<br class="">
<br class="">
diff --git a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c<br class="">
index 7c8933f987d1..5b21386f558d 100644<br class="">
--- a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c<br class="">
+++ b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c<br class="">
@@ -221,7 +221,7 @@ static struct smu_11_0_cmn2aisc_mapping vega20_workload_map[PP_SMC_POWER_PROFILE<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_POWERSAVING,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_POWER_SAVING_BIT),<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_VIDEO,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_VIDEO_BIT),<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_VR,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_VR_BIT),<br class="">
-<span class="Apple-tab-span" style="white-space:pre"> </span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_COMPUTE,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_CUSTOM_BIT),<br class="">
+<span class="Apple-tab-span" style="white-space:pre"> </span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_COMPUTE,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_COMPUTE_BIT),<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_MAP(PP_SMC_POWER_PROFILE_CUSTOM,<span class="Apple-tab-span" style="white-space:pre">
</span><span class="Apple-tab-span" style="white-space:pre"></span>WORKLOAD_PPLIB_CUSTOM_BIT),<br class="">
};<br class="">
<br class="">
-- <br class="">
2.17.1<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>