• Sumit Gupta's avatar
    soc/tegra: cbb: Use correct master_id mask for CBB NOC in Tegra194 · 33af51a6
    Sumit Gupta authored
    In Tegra194 SoC, master_id bit range is different between cluster NOC
    and CBB NOC. Currently same bit range is used which results in wrong
    master_id value. Due to this, illegal accesses from the CCPLEX master
    do not result in a crash as expected. Fix this by using the correct
    range for the CBB NOC.
    
    Finally, it is only necessary to extract the master_id when the
    erd_mask_inband_err flag is set because when this is not set, a crash
    is always triggered.
    
    Fixes: b7134422 ("soc/tegra: cbb: Add CBB 1.0 driver for Tegra194")
    Fixes: fc2f151d ("soc/tegra: cbb: Add driver for Tegra234 CBB 2.0")
    Signed-off-by: default avatarSumit Gupta <sumitg@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    33af51a6
tegra234-cbb.c 29.2 KB