Skip to contentSkip to conversation

drm/amd/powerplay: issue BTC on Navi during SMU setup

PATCH In review Evan Quan 2 participants 2 messages Nov 12, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Evan Quan

author
#0 lore raw

PATCH 1/1 drm/amd/powerplay: issue BTC on Navi during SMU setup

RunBTC is added for Navi ASIC on hardware setup.

Change-Id I1c04b481ed14d5f12c20b7b0d592b62a65889e4a
---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +11 -0
index 010be21bee5b..433acb0f459d 100644
@@ -1652,6 +1652,16 @@ static int navi10_update_pcie_parameters(struct smu_context *smu,
 	return ret;
 }
 
+static int navi10_run_btc(struct smu_context *smu)
+{
+	int ret = 0;
+
+	ret = smu_send_smc_msg(smu, SMU_MSG_RunBtc);
+	if (ret)
+		pr_err("RunBtc failed!\n");
+
+	return ret;
+}
 
 static const struct pptable_funcs navi10_ppt_funcs = {
 	.tables_init = navi10_tables_init,
@@ -1741,6 +1751,7 @@ static const struct pptable_funcs navi10_ppt_funcs = {
 	.get_dpm_ultimate_freq = smu_v11_0_get_dpm_ultimate_freq,
 	.set_soft_freq_limited_range = smu_v11_0_set_soft_freq_limited_range,
 	.override_pcie_parameters = smu_v11_0_override_pcie_parameters,
+	.run_btc = navi10_run_btc,
 };
 
 void navi10_set_ppt_funcs(struct smu_context *smu)
Signature · 6 lines
2.24.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by Kenneth Feng
#2 lore raw

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Evan Quan
Sent: Tuesday, November 12, 2019 2:37 PM
To: [email protected]
Cc: Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/powerplay: issue BTC on Navi during SMU setup

[CAUTION: External Email]

RunBTC is added for Navi ASIC on hardware setup.

Change-Id I1c04b481ed14d5f12c20b7b0d592b62a65889e4a
---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +9 -0
index 010be21bee5b..433acb0f459d 100644
@@ -1652,6 +1652,16 @@ static int navi10_update_pcie_parameters(struct smu_context *smu,
        return ret;
 }
 
+static int navi10_run_btc(struct smu_context *smu) {
+       int ret = 0;
+
+       ret = smu_send_smc_msg(smu, SMU_MSG_RunBtc);
+       if (ret)
+               pr_err("RunBtc failed!\n");
+
+       return ret;
+}
 
 static const struct pptable_funcs navi10_ppt_funcs = {
        .tables_init = navi10_tables_init, @@ -1741,6 +1751,7 @@ static const struct pptable_funcs navi10_ppt_funcs = {

.get_dpm_ultimate_freq = smu_v11_0_get_dpm_ultimate_freq, .set_soft_freq_limited_range = smu_v11_0_set_soft_freq_limited_range, .override_pcie_parameters = smu_v11_0_override_pcie_parameters,
+ .run_btc = navi10_run_btc,
};

void navi10_set_ppt_funcs(struct smu_context *smu)
--
2.24.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx