Patch "memory: tegra: Set BPMP msg flags to reset IPC channels" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    memory: tegra: Set BPMP msg flags to reset IPC channels

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     memory-tegra-set-bpmp-msg-flags-to-reset-ipc-channel.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2685308b69c8c71be1efd5a6b7e2ff676807042b
Author: Thierry Reding <treding@xxxxxxxxxx>
Date:   Mon Oct 9 15:35:57 2023 +0530

    memory: tegra: Set BPMP msg flags to reset IPC channels
    
    [ Upstream commit f344675a34383ae26a8230f4b1cd99cbd0defebd ]
    
    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: f41e1442ac5b ("cpufreq: tegra194: add OPP support and set bandwidth")
    Co-developed-by: Sumit Gupta <sumitg@xxxxxxxxxx>
    Signed-off-by: Sumit Gupta <sumitg@xxxxxxxxxx>
    Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
    Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/memory/tegra/tegra234.c b/drivers/memory/tegra/tegra234.c
index 9e5b5dbd9c8df..2845041f32d69 100644
--- a/drivers/memory/tegra/tegra234.c
+++ b/drivers/memory/tegra/tegra234.c
@@ -986,6 +986,10 @@ static int tegra234_mc_icc_set(struct icc_node *src, struct icc_node *dst)
 	msg.rx.data = &bwmgr_resp;
 	msg.rx.size = sizeof(bwmgr_resp);
 
+	if (pclient->bpmp_id >= TEGRA_ICC_BPMP_CPU_CLUSTER0 &&
+	    pclient->bpmp_id <= TEGRA_ICC_BPMP_CPU_CLUSTER2)
+		msg.flags = TEGRA_BPMP_MESSAGE_RESET;
+
 	ret = tegra_bpmp_transfer(mc->bpmp, &msg);
 	if (ret < 0) {
 		dev_err(mc->dev, "BPMP transfer failed: %d\n", ret);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux