From: Bo Yan Date: Tue, 31 Mar 2015 20:30:48 +0000 (+0100) Subject: arm64: fix midr range for Cortex-A57 erratum 832075 X-Git-Tag: omap-for-v4.2/o2_dc~115^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1966dfd6e0ad2f8aa4b664ae1a62e33abe1998;p=pandora-kernel.git arm64: fix midr range for Cortex-A57 erratum 832075 Register MIDR_EL1 is masked to get variant and revision fields, then compared against midr_range_min and midr_range_max when checking whether CPU is affected by any particular erratum. However, variant and revision fields in MIDR_EL1 are separated by 16 bits, so the min and max of midr range should be constructed accordingly, otherwise the patch will not be applied when variant field is non-0. Cc: stable@vger.kernel.org # 3.19+ Acked-by: Andre Przywara Reviewed-by: Paul Walmsley Signed-off-by: Bo Yan [will: use MIDR_VARIANT_SHIFT to construct upper bound] Signed-off-by: Will Deacon --- Reading git-diff-tree failed