Patch "memory: tegra: Skip SID programming if SID registers aren't set" 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: Skip SID programming if SID registers aren't set

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-skip-sid-programming-if-sid-registers-a.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 f8c3ba9b91afcdea25e1171e31034313638b1a34
Author: Ashish Mhetre <amhetre@xxxxxxxxxx>
Date:   Tue Nov 7 16:57:13 2023 +0530

    memory: tegra: Skip SID programming if SID registers aren't set
    
    [ Upstream commit 0d6c918011ce4764ed277de4726a468b7ffe5fed ]
    
    There are few MC clients where SID security and override register
    offsets are not specified like "sw_cluster0" in tegra234. Don't program
    SID override for such clients because it leads to access to invalid
    addresses.
    
    Signed-off-by: Ashish Mhetre <amhetre@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20231107112713.21399-2-amhetre@xxxxxxxxxx
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/memory/tegra/tegra186.c b/drivers/memory/tegra/tegra186.c
index 533f85a4b2bdb..7633481e547d2 100644
--- a/drivers/memory/tegra/tegra186.c
+++ b/drivers/memory/tegra/tegra186.c
@@ -75,6 +75,9 @@ static void tegra186_mc_client_sid_override(struct tegra_mc *mc,
 {
 	u32 value, old;
 
+	if (client->regs.sid.security == 0 && client->regs.sid.override == 0)
+		return;
+
 	value = readl(mc->regs + client->regs.sid.security);
 	if ((value & MC_SID_STREAMID_SECURITY_OVERRIDE) == 0) {
 		/*




[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