memory: tegra: Implement SID override programming
authorThierry Reding <treding@nvidia.com>
Thu, 3 Jun 2021 16:46:24 +0000 (18:46 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 3 Jun 2021 19:50:43 +0000 (21:50 +0200)
commit393d66fd2cacba3e6aa95d7bb38790bfb7b1cc3a
tree2659dd600a48857c1e26d73acf7b3e2c35956cd2
parent8fd9f632ba93c0291a73be25ddd3f22631cd1052
memory: tegra: Implement SID override programming

Instead of programming all SID overrides during early boot, perform the
operation on-demand after the SMMU translations have been set up for a
device. This reuses data from device tree to match memory clients for a
device and programs the SID specified in device tree, which corresponds
to the SID used for the SMMU context banks for the device.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210603164632.1000458-2-thierry.reding@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/mc.c
drivers/memory/tegra/tegra186.c
include/soc/tegra/mc.h