Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp179368ybx; Tue, 29 Oct 2019 16:29:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqykl5Cd+7jPz8rCTT5qNJjRiuHfg5oqYU3jyj8UfKtEahqY0tqvmJkNu0OnK2DqgWW3B+w9 X-Received: by 2002:a50:ef0d:: with SMTP id m13mr28183580eds.210.1572391779670; Tue, 29 Oct 2019 16:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572391779; cv=none; d=google.com; s=arc-20160816; b=ovYFj0KxJTO8SqV7JgkOs+iyei6pfxaiIduBWxZHXzGPxMJochAYX3cXKZ7NxU3Dzu 2/WuECZUWRiTvxDgCdnxEgOAMutmwZScEar9WBFEXAWQtqB23W/+QINQwD7mEVg8o18P CTG13odX2M63gtWlRrwzWKw/MImxZp7rcxdlSxSd+kmksFPg0VYP0Rz5n1KBsRhtT/bp qSbljKV+YXuhLjrnqIwBkXWTURRMhkfQp4EUqpDP0LE/FJR+HbMQZVdiYjRIfEgbRWMB f0xb7/l9c1x7aaik25sUeYwmb/49kh3tyugytjzGF9/608DQkARKThtWG7Y1v9cqInMH 0txA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ACl3OaVOTym+qDwRiwEDHteytsmPG8qRkDZ/xp8Jsfs=; b=SbKGqaz2sta1vLYrgaS/jWzyuV7xQeUkTsXub6BbnkrX64pr974TdCIex4kR0uztG1 xnumjLX5/eOWPrViDQOkR7k7dQesTkKzsojRafNr4vdIQG/Gy7txNbnftkpQEPTjc5Vk 6MV0ErRujioi2ooFlFHf0nsMhHlrEyK87ohYBR0zMQSuYsC13r5TmXHNzDRb51iuEyUp 4hOjrhRMfxScfPDFK/SAcufI19GQL/nbEeHRoJJpyOgfiDTM9IDEJq+tkOebWr8LfoE3 LuOj3cC/ZHmxsTGtpdw1gDlZjbCkI0lfDFicSxlHtoYqHbtaq0XTj67kzTTToP+yputN erPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sg0u4cvy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si198492eda.161.2019.10.29.16.29.15; Tue, 29 Oct 2019 16:29:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sg0u4cvy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726109AbfJ2X1p (ORCPT + 99 others); Tue, 29 Oct 2019 19:27:45 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33847 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfJ2X1o (ORCPT ); Tue, 29 Oct 2019 19:27:44 -0400 Received: by mail-pl1-f194.google.com with SMTP id k7so73322pll.1 for ; Tue, 29 Oct 2019 16:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ACl3OaVOTym+qDwRiwEDHteytsmPG8qRkDZ/xp8Jsfs=; b=Sg0u4cvybiJKNJ2yk93E2dB2T47O85yhZ0eGiygp5ebFLX8FXezKujJzdiva88wV/8 Zg9GPLhEFk4fP51MbMbYuBFfk6V505AMJniXLB0aL//ZQrrk086ByYlv/uYxl4s+qdgI YptgAvtlYL2Tr2cRDl2DMTc8kyJJhDQjpsSbrYX9iIr7Q2hQxkAvCt1dhy8714CcAqIC zJuJavMzQeTIiyzRXrqcd4kFFnwpPvnWveIOHNon8Y4R7o9fBbUm+7J/JTzYcf3fI3lr ISkDKmeM2glo/AHCqjlFq2Ra55NGniPP1aj+IXTdznBwbGZfMf6oisKYkVulczJnXkV9 izPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ACl3OaVOTym+qDwRiwEDHteytsmPG8qRkDZ/xp8Jsfs=; b=pDi6+jAZdegQHLtI5UjESXUWBosySyJHTJ3HKRKpWOpGYqdgATUenBuIbMM3ygO7Pl lZ7L5m5XE/9TuVtZQkHC3DQCSmw/l2XPhL0s73or+S7ItH6GoWcCHuK6cXVdaBoehosH xFOwcg23+stRigukp256KNUwOr1rG/zKr4hTIUrSxwMocujoYaJi3UK6yyauUqk+iFr4 W4r3gbKbAEDiWhckY+Yh4g2Q4X5S/w00mQVP00I6clj+5yOFPvbvVYCQ515vrAi7SYUj m4s1B9gNRik8ETWojAFFXV08y033RN1wxw8RBMpvMSq/kPnqvLTOHiPbCkXZPJC7Dgj+ 9AWQ== X-Gm-Message-State: APjAAAV0KOJ92BMi3zvuGoLaGy0giXvkbhOr6uWxvKhJP3rnqc2dnv+T F2zXRNgrrUfsCJvkMJ7BxfwsowdMv7k= X-Received: by 2002:a17:902:b116:: with SMTP id q22mr1259148plr.201.1572391662476; Tue, 29 Oct 2019 16:27:42 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v19sm211050pff.46.2019.10.29.16.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 16:27:41 -0700 (PDT) From: Bjorn Andersson To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2] arm64: cpufeature: Enable Qualcomm Falkor errata 1009 for Kryo Date: Tue, 29 Oct 2019 16:27:38 -0700 Message-Id: <20191029232738.1483923-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kryo cores share errata 1009 with Falkor, so add their model definitions and enable it for them as well. Signed-off-by: Bjorn Andersson --- Changes since v1: - Use is_kryo_midr(), rather than listing each individual model. arch/arm64/kernel/cpu_errata.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 3facd5ca52ed..613075817abe 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -623,17 +623,23 @@ static const struct midr_range arm64_harden_el2_vectors[] = { #endif #ifdef CONFIG_ARM64_WORKAROUND_REPEAT_TLBI - -static const struct midr_range arm64_repeat_tlbi_cpus[] = { +static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = { #ifdef CONFIG_QCOM_FALKOR_ERRATUM_1009 - MIDR_RANGE(MIDR_QCOM_FALKOR_V1, 0, 0, 0, 0), + { + ERRATA_MIDR_REV(MIDR_QCOM_FALKOR_V1, 0, 0) + }, + { + .midr_range.model = MIDR_QCOM_KRYO, + .matches = is_kryo_midr, + }, #endif #ifdef CONFIG_ARM64_ERRATUM_1286807 - MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 0), + { + ERRATA_MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 0), + }, #endif {}, }; - #endif #ifdef CONFIG_CAVIUM_ERRATUM_27456 @@ -789,7 +795,9 @@ const struct arm64_cpu_capabilities arm64_errata[] = { { .desc = "Qualcomm erratum 1009, ARM erratum 1286807", .capability = ARM64_WORKAROUND_REPEAT_TLBI, - ERRATA_MIDR_RANGE_LIST(arm64_repeat_tlbi_cpus), + .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM, + .matches = cpucap_multi_entry_cap_matches, + .match_list = arm64_repeat_tlbi_list, }, #endif #ifdef CONFIG_ARM64_ERRATUM_858921 -- 2.23.0