Skip to content

Commit e1d38b1

Browse files
committed
memory: tegra: Skip SID programming if SID registers aren't set
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-427.16.1.el9_4 commit-author Ashish Mhetre <amhetre@nvidia.com> commit 0d6c918 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@nvidia.com> Link: https://lore.kernel.org/r/20231107112713.21399-2-amhetre@nvidia.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> (cherry picked from commit 0d6c918) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent b9c99b5 commit e1d38b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/memory/tegra/tegra186.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ static void tegra186_mc_client_sid_override(struct tegra_mc *mc,
7474
{
7575
u32 value, old;
7676

77+
if (client->regs.sid.security == 0 && client->regs.sid.override == 0)
78+
return;
79+
7780
value = readl(mc->regs + client->regs.sid.security);
7881
if ((value & MC_SID_STREAMID_SECURITY_OVERRIDE) == 0) {
7982
/*

0 commit comments

Comments
 (0)