Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5515634rwb; Mon, 8 Aug 2022 22:03:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RvX3UyZiQik+S+rDbCCn/x8oggRCe4ypNNXKbKEhf+qjaZfx8yOvrlfDdGitZ8y2GolkE X-Received: by 2002:a17:907:2854:b0:731:3c34:b5ed with SMTP id el20-20020a170907285400b007313c34b5edmr8128083ejc.437.1660021404947; Mon, 08 Aug 2022 22:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660021404; cv=none; d=google.com; s=arc-20160816; b=B/XZ5Y9gBSwxxL4/+YE1uD2p65ORNBCmOlsPFPDYrudVkQR9GYotHNV6ELPTulqgIi SP2S3nJseevNKx8hBTVZiohnfRMr9xsIZrvkpq1mqq22nfvdMmhmsd2UZ2h/kya3EU/v /gnDrRE+kPKq0TAbT5SC4u16NQlmebkBUxhYzN7Qdb47hPRQorn6w2m1lEjm4wKVAIpr iP63jZVEJwEzOdNbYHP1p5oYxQTPFJVbQhULbrViEMJJqS9Hgh/oOLGu18UdmnaqGHJ7 d+LdXyoCv2lnxWVM3Ds0bLj+7b6/tEQ2zBgGWcNegWMkcvHBChhnC6GcfcF1vcvsKrs3 Zbtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OfSaFRnK24ZpFU2GFsPh5lpLFZe92vd9txKwcL9xzEA=; b=gTESxjCyv3be7rUF/CiUEHy27tK6u1x74dxC571/BS+LeXUn6iCUxwSHeciDCDjvg6 2piKnRlFiRpmXcsnZJNeGgBGlEukpdHtBuTVIG6gdE+9iAFeeOUgmqPfjdfpFWNRPscZ 81b4ZXjX+UQTvraJFCjlwb+PIeSYRymA/j4Z8k5RiFRO7+nLzDmreIMDIFlU9GKKXo5k DkYdEprDSFfNM/llG2yIJooTBBu/BdTZ5Rdt5TaDW2lFhzz10C0dGpH1cI8tZ2wTUDpf +ojxNEIC+pu39JUrhs6HCYb8RklUgZLpNJ/bLltU4yIz8IHro/C0I0tik078pBwmS7wT 0MtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a170906679100b00731201adfc1si1152650ejp.713.2022.08.08.22.02.59; Mon, 08 Aug 2022 22:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233086AbiHIEjJ (ORCPT + 99 others); Tue, 9 Aug 2022 00:39:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiHIEjH (ORCPT ); Tue, 9 Aug 2022 00:39:07 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41BA31CB20 for ; Mon, 8 Aug 2022 21:39:06 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4M20cp1srCz1M8dB; Tue, 9 Aug 2022 12:35:54 +0800 (CST) Received: from kwepemm600007.china.huawei.com (7.193.23.208) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 9 Aug 2022 12:39:04 +0800 Received: from DESKTOP-8RFUVS3.china.huawei.com (10.174.185.179) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 9 Aug 2022 12:39:03 +0800 From: Zenghui Yu To: , CC: , , , Zenghui Yu , Shreyas K K Subject: [PATCH] arm64: Fix match_list for erratum 1286807 on Arm Cortex-A76 Date: Tue, 9 Aug 2022 12:38:48 +0800 Message-ID: <20220809043848.969-1-yuzenghui@huawei.com> X-Mailer: git-send-email 2.23.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600007.china.huawei.com (7.193.23.208) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 51f559d66527 ("arm64: Enable repeat tlbi workaround on KRYO4XX gold CPUs"), we failed to detect erratum 1286807 on Cortex-A76 because its entry in arm64_repeat_tlbi_list[] was accidently corrupted by this commit. Fix this issue by creating a separate entry for Kryo4xx Gold. Fixes: 51f559d66527 ("arm64: Enable repeat tlbi workaround on KRYO4XX gold CPUs") Cc: Shreyas K K Signed-off-by: Zenghui Yu --- arch/arm64/kernel/cpu_errata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 7e6289e709fc..0f7e9087d900 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -208,6 +208,8 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = { #ifdef CONFIG_ARM64_ERRATUM_1286807 { ERRATA_MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 0), + }, + { /* Kryo4xx Gold (rcpe to rfpe) => (r0p0 to r3p0) */ ERRATA_MIDR_RANGE(MIDR_QCOM_KRYO_4XX_GOLD, 0xc, 0xe, 0xf, 0xe), }, -- 2.33.0