[PATCH 3/3] iommu/arm-smmu: Error out only if not enough context interrupts

Date

Thu, 19 Jul 2018 23:23:56 +0530

Currently we check if the number of context banks is not equal tonum_context_interrupts. However, there are booloaders such as, oneon sdm845 that reserves few context banks and thus kernel viewsless than the total available context banks.So, although the hardware definition in device tree would mentionthe correct number of context interrupts, this number can begreater than the number of context banks visible to smmu in kernel.We should therefore error out only when the number of context banksis greater than the available number of context interrupts.