summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorAshish Mhetre <amhetre@nvidia.com>2022-05-06 15:23:12 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-05-09 10:46:14 +0200
commit54a85e09f44c5fa322a2d186f50862d09f517225 (patch)
treee38277666892097d019e10537359e241d5c65902 /include/soc
parenta7cffa11fa9232eabf0c4f441dc53002978ab526 (diff)
downloadlinux-54a85e09f44c5fa322a2d186f50862d09f517225.tar.gz
linux-54a85e09f44c5fa322a2d186f50862d09f517225.tar.bz2
linux-54a85e09f44c5fa322a2d186f50862d09f517225.zip
memory: tegra: Add MC error logging on Tegra186 onward
Add support for logging memory controller errors on Tegra186, Tegra194 and Tegra234. On these SoCs, interrupts can occur on multiple channels. Add support required to read the status of interrupts across multiple channels, log and clear them. Also add new interrupts supported on these SoCs. Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Ashish Mhetre <amhetre@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20220506132312.3910637-5-thierry.reding@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/tegra/mc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h
index 40f1d02a1358..47ce6d434427 100644
--- a/include/soc/tegra/mc.h
+++ b/include/soc/tegra/mc.h
@@ -193,12 +193,15 @@ struct tegra_mc_soc {
unsigned int num_address_bits;
unsigned int atom_size;
- u8 client_id_mask;
+ u16 client_id_mask;
u8 num_channels;
const struct tegra_smmu_soc *smmu;
u32 intmask;
+ u32 ch_intmask;
+ u32 global_intstatus_channel_shift;
+ bool has_addr_hi_reg;
const struct tegra_mc_reset_ops *reset_ops;
const struct tegra_mc_reset *resets;