Skip to content

Commit f344675

Browse files
committed
memory: tegra: Set BPMP msg flags to reset IPC channels
Set the 'TEGRA_BPMP_MESSAGE_RESET' bit in newly added 'flags' field of 'struct tegra_bpmp_message' to request for the reset of BPMP IPC channels. This is used along with the 'suspended' check in BPMP driver for handling early bandwidth requests due to the hotplug of CPU's during system resume before the driver gets resumed. Fixes: f41e144 ("cpufreq: tegra194: add OPP support and set bandwidth") Co-developed-by: Sumit Gupta <sumitg@nvidia.com> Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 364b40c commit f344675

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/memory/tegra/tegra234.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,10 @@ static int tegra234_mc_icc_set(struct icc_node *src, struct icc_node *dst)
986986
msg.rx.data = &bwmgr_resp;
987987
msg.rx.size = sizeof(bwmgr_resp);
988988

989+
if (pclient->bpmp_id >= TEGRA_ICC_BPMP_CPU_CLUSTER0 &&
990+
pclient->bpmp_id <= TEGRA_ICC_BPMP_CPU_CLUSTER2)
991+
msg.flags = TEGRA_BPMP_MESSAGE_RESET;
992+
989993
ret = tegra_bpmp_transfer(mc->bpmp, &msg);
990994
if (ret < 0) {
991995
dev_err(mc->dev, "BPMP transfer failed: %d\n", ret);

0 commit comments

Comments
 (0)