WSL2-Linux-Kernel/drivers/memory/tegra
Ashish Mhetre eda11ab556 memory: tegra: Remove clients SID override programming
[ Upstream commit ef86b2c280 ]

On newer Tegra releases, early boot SID override programming and SID
override programming during resume is handled by bootloader.
In the function tegra186_mc_program_sid() which is getting removed, SID
override register of all clients is written without checking if secure
firmware has allowed write on it or not. If write is disabled by secure
firmware then it can lead to errors coming from secure firmware and hang
in kernel boot.
Also, SID override is programmed on-demand during probe_finalize() call
of IOMMU which is done in tegra186_mc_client_sid_override() in this same
file. This function does it correctly by checking if write is permitted
on SID override register. It also checks if SID override register is
already written with correct value and skips re-writing it in that case.

Fixes: 393d66fd2c ("memory: tegra: Implement SID override programming")
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20221125040752.12627-1-amhetre@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:27:03 +01:00
..
Kconfig memory: tegra: Enable compile testing for all drivers 2021-06-03 14:24:03 +02:00
Makefile memory: tegra: Split Tegra194 data into separate file 2021-06-03 21:49:41 +02:00
mc.c memory: tegra: Implement SID override programming 2021-06-03 21:50:43 +02:00
mc.h memory: tegra: Split Tegra194 data into separate file 2021-06-03 21:49:41 +02:00
tegra20-emc.c memory: tegra20-emc: Add runtime dependency on devfreq governor module 2021-11-25 09:48:30 +01:00
tegra20.c memory: tegra: Parameterize interrupt handler 2021-06-03 21:49:41 +02:00
tegra30-emc.c memory: tegra: Delete dead debugfs checking code 2021-06-10 09:18:15 +02:00
tegra30.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra114.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra124-emc.c memory: tegra: Delete dead debugfs checking code 2021-06-10 09:18:15 +02:00
tegra124.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra186-emc.c memory: tegra186-emc: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE 2021-02-08 18:15:45 +01:00
tegra186.c memory: tegra: Remove clients SID override programming 2023-02-01 08:27:03 +01:00
tegra194.c memory: tegra: Split Tegra194 data into separate file 2021-06-03 21:49:41 +02:00
tegra210-emc-cc-r21021.c memory: tegra: Delete duplicated argument to '|' in function tegra210_emc_r21021_periodic_compensation 2020-09-09 09:00:22 +02:00
tegra210-emc-core.c memory: tegra: Delete dead debugfs checking code 2021-06-10 09:18:15 +02:00
tegra210-emc-table.c memory: tegra: Support derated timings on Tegra210 2020-06-22 13:54:57 +02:00
tegra210-emc.h memory: tegra: Drop <linux/clk-provider.h> 2020-06-22 13:54:58 +02:00
tegra210-mc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00