From patchwork Wed Nov 4 23:22:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11883279 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F570C00A89 for ; Thu, 5 Nov 2020 05:16:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9ED2F2083B for ; Thu, 5 Nov 2020 05:16:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mp7cd5cw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dBg5Oeky" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9ED2F2083B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=89KeLyQXAsTF7WYU/zDIgHCW3ckPeSokh7bLTZAGCa0=; b=mp7cd5cwVNRf4AHQ3ylK0DDaH 80kk1c4Pf76nYRGdK1Ky2v44sziTmqQenvLIj3K5cVfT+rcl4K2Pymv7A+o6mSLhbxCiyFQLDLZ7r sohTsoWgVPNS86bHMaHufglfZ55L9tL+a+Xa6a8pptgLSprSI6RVPEjGE8cAz4thJ7sWEtYkG9G4j W6xmSl0t2peu7g++iNT+qcwmNuGIYynxwadN/nlQLRonpB+c4XtkZdaujqc4laSNrY8xkbCecdzJI Aj0zJEGUTgEfcIDQftaS4eNIOUkXdyqpAYwmgySAGA33zRSvOfC41HSPb5Z8kcEsjTCie1b/FR28H k83KTy8Lg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaXd1-00013y-Mc; Thu, 05 Nov 2020 05:16:07 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW4u-00016k-Qx for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:36:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=klafs0KuL0oE5zA4cA+yfw58oV7LvtjjBZf1/Wkp4Sw=; b=dBg5Oekyv+yXbVLfNgPFQ4kekx 7vBPZPBtJDbXY6hA6PPB8ea5O1AflqBOAZkNLn/IFczXgEWsFMGR/VnlvC+4EhL9QAY+KH0ZY8OUw fRK3spj0MxGyj2x8h4HJ61btQOi9SKOlceMueAPe6w1xWa0MYIXXQOUbhYQOtsnZKZxVWpzt03mNy pZwQV280Yl6GRZOOCZ1Nd++RC65VZuQKqiB/F5H99E7Qq0UZx/LTtQvDOo/DFxjovQ9XLQMJERq+Q CmL+F+2xkELF1Nxvqxes6BFi1rPqiMFskyp9O9j2R2jZBJlFXahIbc2FkwmOqIsxEd2X5jZ7g7L1A cpvViRVQ==; Received: from relay08.th.seeweb.it ([5.144.164.169]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaS6s-0004YV-Cs for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 23:22:36 +0000 Received: from localhost.localdomain (abag227.neoplus.adsl.tpnet.pl [83.6.170.227]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 2061640253; Thu, 5 Nov 2020 00:22:29 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Subject: [PATCH 1/4] arm64: Add MIDR value for KRYO2XX gold/silver CPU cores Date: Thu, 5 Nov 2020 00:22:10 +0100 Message-Id: <20201104232218.198800-2-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201104232218.198800-1-konrad.dybcio@somainline.org> References: <20201104232218.198800-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_232234_619097_D82BAD6D X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Sai Prakash Ranjan , Marc Zyngier , Ionela Voinescu , Suzuki K Poulose , Catalin Marinas , Anshuman Khandual , Konrad Dybcio , linux-kernel@vger.kernel.org, Kristina Martsenko , Stephen Boyd , Mark Brown , martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, angelogioacchino.delregno@somainline.org, Amit Daniel Kachhap , marijn.suijten@somainline.org, Steven Price , Will Deacon , linux-arm-kernel@lists.infradead.org, Andrew Scull Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add MIDR value for KRYO2XX gold (big) and silver (LITTLE) CPU cores which are used in Qualcomm Technologies, Inc. SoCs. This will be used to identify and apply errata which are applicable for these CPU cores. Signed-off-by: Konrad Dybcio --- arch/arm64/include/asm/cputype.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h index 9e2e9a63c7b6..ef5b040dee44 100644 --- a/arch/arm64/include/asm/cputype.h +++ b/arch/arm64/include/asm/cputype.h @@ -86,6 +86,8 @@ #define QCOM_CPU_PART_FALKOR_V1 0x800 #define QCOM_CPU_PART_FALKOR 0xC00 #define QCOM_CPU_PART_KRYO 0x200 +#define QCOM_CPU_PART_KRYO_2XX_GOLD 0x800 +#define QCOM_CPU_PART_KRYO_2XX_SILVER 0x801 #define QCOM_CPU_PART_KRYO_3XX_SILVER 0x803 #define QCOM_CPU_PART_KRYO_4XX_GOLD 0x804 #define QCOM_CPU_PART_KRYO_4XX_SILVER 0x805 @@ -116,6 +118,8 @@ #define MIDR_QCOM_FALKOR_V1 MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_FALKOR_V1) #define MIDR_QCOM_FALKOR MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_FALKOR) #define MIDR_QCOM_KRYO MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO) +#define MIDR_QCOM_KRYO_2XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_GOLD) +#define MIDR_QCOM_KRYO_2XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_SILVER) #define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER) #define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD) #define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER) From patchwork Wed Nov 4 23:22:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11883181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54018C00A89 for ; Thu, 5 Nov 2020 04:39:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B75722083B for ; Thu, 5 Nov 2020 04:39:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NsIksaGa"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HRD3jzq8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B75722083B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HwJCDb5WmWCaXWZHjqDjEv6OOHezIu5wO9hGGD3+llE=; b=NsIksaGacxoQP0D0pGPjoZRl/ VKnDvlpt8g0HC/3CyjfESFBOapP7TgUZnrum+G4TCmMFDqz6hJKk5IcIyXN6XJ7oIDkGbYpY1CM0c z/oD8oFOVzPgVA7/ML2HtpV1wppcgSGSD5I6LmPubpHD2CadGWmPUJ76kE5GC9M3UlnlkCJuQ8YB6 yVURHdvYH8SfrZQF8S1i1e3Ijr06FJ22eADAg40GPYXA6WMVnb3mFy9JK3RMOAVvf6powFVgs00r1 mX3iAgxDDfBLHES0F7PHuunVIe6JlfWQfLe+IExxPt9Q19agUj4YTZJsRpmrgQC5DWZhmXkpRCEqL jvB3FKFAQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaX3R-0004f0-HV; Thu, 05 Nov 2020 04:39:21 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW4t-000145-IX for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:36:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=lRkyPikOIezl8N1Wyx7WM6CTHGSXWpHUI6pjkMKMLFU=; b=HRD3jzq8+Yg9W2O/8MaiBkTeHk mFM88p/WjqMhUfwtPJem8iMK/AsUdgxrSbgy8JoVu+uyTcKUAcBXy/8476utpD2pY0CoNxwCWyPfP vUsTsKn4+bajn06ME/Gbo3AYpIiI5MagmOV1CKOm8pCNuIdcpIT7VFQ6QwCdu6I+uzE+cQ7XumPOk 0xjAQTqC8W20V57iSbjMd1NnpurcIGKR8OXIPGGLO4OK5qORyglK2blO76S+gZLJKjl9z9z1qhF/u 6ZlSFE9tO30Jqn1F1P9OvdPoteV1rMQGkOg2y3b+4vOSIjrKBus00vrXJ5Lw30whvnZzuziPLzDjp 2HgT4wnA==; Received: from m-r2.th.seeweb.it ([5.144.164.171]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaS71-0004Z9-1h for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 23:22:45 +0000 Received: from localhost.localdomain (abag227.neoplus.adsl.tpnet.pl [83.6.170.227]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id F388C4025F; Thu, 5 Nov 2020 00:22:33 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Subject: [PATCH 2/4] arm64: kpti: Add KRYO2XX gold/silver CPU cores to kpti safelist Date: Thu, 5 Nov 2020 00:22:11 +0100 Message-Id: <20201104232218.198800-3-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201104232218.198800-1-konrad.dybcio@somainline.org> References: <20201104232218.198800-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_232243_268027_428C35AA X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Konrad Dybcio , angelogioacchino.delregno@somainline.org, Amit Daniel Kachhap , marijn.suijten@somainline.org, Vincenzo Frascino , Will Deacon , Rob Herring , Sai Prakash Ranjan , Marc Zyngier , Anshuman Khandual , Steven Price , Suzuki K Poulose , Kristina Martsenko , Stephen Boyd , Mark Brown , martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ionela Voinescu , Andrew Scull Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org QCOM KRYO2XX gold (big) silver (LITTLE) CPU cores are based on Cortex-A73 and Cortex-A53 respectively and are meltdown safe, hence add them to kpti_safe_list[]. Signed-off-by: Konrad Dybcio --- arch/arm64/kernel/cpufeature.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index dcc165b3fc04..6f36c4f62f69 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1337,6 +1337,8 @@ static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry, MIDR_ALL_VERSIONS(MIDR_CORTEX_A73), MIDR_ALL_VERSIONS(MIDR_HISI_TSV110), MIDR_ALL_VERSIONS(MIDR_NVIDIA_CARMEL), + MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_2XX_GOLD), + MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_2XX_SILVER), MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_3XX_SILVER), MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_4XX_SILVER), { /* sentinel */ } From patchwork Wed Nov 4 23:22:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11883281 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56DEBC00A89 for ; Thu, 5 Nov 2020 05:17:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B139B2083B for ; Thu, 5 Nov 2020 05:17:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IizxARo7"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="m9bgSa8b" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B139B2083B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/g5+5twCRf2eXky21nWgXwtQNG1ofVVxD0+WAPl5hTA=; b=IizxARo7o5uGB67S0mVtTggI/ uGoHE+Wp9/45oQFnuIsvD+UlC+mjVQYbFTrK+unkKlS9J1QfHer28TFXzKAXzXyYmu+kOUzFGQ6Qx src+1fp/3Dqi8twOAMjWIemwpzN/D5+WJxQowZCQMT5XxWgVT0jdih7awxV/mOyMJ3Erzx+ZySvL7 94H1Y9KRrxAGg/wFEZg3T9xahe+siXuPyMKrZ0mXHgvyFWccNsbY+W+m0bs9SP1PAw6ex6tv/+Cad gy8aefZ5F+kQmPLr5d/tF8faEznIOpRgNT29KV/NhdcWM/sRhFgjYjghIYUu7eqBbSsEmV75aauCq BuJVnqxZw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaXdZ-0001K6-LR; Thu, 05 Nov 2020 05:16:41 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW4u-000145-Rj for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:36:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=1khPzc7lp7eT8p1mURg+l/4QA1ons84bUcraOfeWCIA=; b=m9bgSa8bLLbk/T7Vn43AV6YLmt fR77tHOYLbnfwLuG+hpDNbzue43BZ+RUsjJvK0CIvwt0xMkqAhpCapE97TQ/Z0Gh8hJexioUIjXJ9 KU06nxWzT0zWdjKiVBb7f7OqmTKh3bVQsp6UM0IIehA8uhs5up0Dvwo0chp5zvUpsho6v5qDwaUTB BuGtstuEq3gduUBuK/P9KwNbRSbrWcVBDOgVXH8pi6AWhqEluwmF4nD6CgNt0N8yOdSX6sDNx+e+G sSsSsI55RoOvGBG6AFLeYYXjsvpcmmhASkrz7iY20IEttlHh1deS20y5ziVlZUoDdgbu6UkTMS0dN 5B3AM+7Q==; Received: from relay08.th.seeweb.it ([5.144.164.169]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaS6z-0004ZA-LR for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 23:22:43 +0000 Received: from localhost.localdomain (abag227.neoplus.adsl.tpnet.pl [83.6.170.227]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id E6CE540263; Thu, 5 Nov 2020 00:22:38 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Subject: [PATCH 3/4] arm64: proton-pack: Add KRYO2XX silver CPUs to spectre-v2 safe-list Date: Thu, 5 Nov 2020 00:22:12 +0100 Message-Id: <20201104232218.198800-4-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201104232218.198800-1-konrad.dybcio@somainline.org> References: <20201104232218.198800-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_232241_945752_E0F67F20 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Sai Prakash Ranjan , Marc Zyngier , Ionela Voinescu , Suzuki K Poulose , Catalin Marinas , Anshuman Khandual , Konrad Dybcio , linux-kernel@vger.kernel.org, Kristina Martsenko , Stephen Boyd , Mark Brown , martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, angelogioacchino.delregno@somainline.org, Amit Daniel Kachhap , marijn.suijten@somainline.org, Steven Price , Will Deacon , linux-arm-kernel@lists.infradead.org, Andrew Scull Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org KRYO2XX silver (LITTLE) CPUs are based on Cortex-A53 and they are not affected by spectre-v2. Signed-off-by: Konrad Dybcio --- arch/arm64/kernel/proton-pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/proton-pack.c b/arch/arm64/kernel/proton-pack.c index c18eb7d41274..f6e4e3737405 100644 --- a/arch/arm64/kernel/proton-pack.c +++ b/arch/arm64/kernel/proton-pack.c @@ -118,6 +118,7 @@ static enum mitigation_state spectre_v2_get_cpu_hw_mitigation_state(void) MIDR_ALL_VERSIONS(MIDR_CORTEX_A55), MIDR_ALL_VERSIONS(MIDR_BRAHMA_B53), MIDR_ALL_VERSIONS(MIDR_HISI_TSV110), + MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_2XX_SILVER), MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_3XX_SILVER), MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_4XX_SILVER), { /* sentinel */ } From patchwork Wed Nov 4 23:22:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11883183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40F74C00A89 for ; Thu, 5 Nov 2020 04:39:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC8912083B for ; Thu, 5 Nov 2020 04:39:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BHZqoPr4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BFSdYDwf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC8912083B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pi9cBfbA6o0a03IQc6EDtmtQBcOPewCAZAAFk1UKi1A=; b=BHZqoPr4FpIcFP9d+wlBsQJDp RYe0a9Xrk6zZjJsar3nKTSLW9tzXkFv8mOPTEb7p/T7MC23iWbeYP4ioKNAeWhbsc+ZtujovtNwuy wFjf4V1w4WsCiuw5+nUoXD1YzqJN/5A09qwqN2cGD2ZBn81/jwKHunboslYdplFa3n0BGuWqKu4E3 ZK0vREJraSjgCKdVGnCg625ybcsCTMi7GevsA4Lv8iTpXieflPE7oVswRVKnP1FlK3mZf3A514IVy P1XgUyQWFaFA6HEXvw9LN7ojZR3puDarhLC0r4OkYg78KJOAReXsWf94FSw/+bGAorR8gUZaXhraq 17PlqIQ5Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaX31-0004Wr-7P; Thu, 05 Nov 2020 04:38:55 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW4t-00016k-IU for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:36:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=8QeaC80bs1YsqgoxEdnzn84A9jEuW9Hxf9sNbs6flfE=; b=BFSdYDwfHX0XixFt9CnPhg/WP8 7jFR83Aa6rRFaFiHCGWiXnSYK9YkrOjjccikOS3PO/+LrGSkJdW1hr7xpD8dpDLW37xz5RpUfBfxG u+SmH83+SSQBNYT46FhfqazBrplkqY/3iLQPpRCsq27wt+nlRWL+I7bHFPXyplwODgiFloXC5nBE8 f+2ysOL0nucjDCrr3yvDTxqXtcsCjwtGs7u6yksV0nI60SvzNSgjnDRmoebs5sbnPYviHyG8iFHwB I7uPTWFEGfDWx2CIlcntmAXeoTcscjcwxHckwHFHOMnpSPx/cvvksdEj/gDfhjMow30aPRDiZII3W zY6sft0A==; Received: from m-r2.th.seeweb.it ([5.144.164.171]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaS78-0004aJ-Nx for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 23:22:52 +0000 Received: from localhost.localdomain (abag227.neoplus.adsl.tpnet.pl [83.6.170.227]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id C1AC53E8B2; Thu, 5 Nov 2020 00:22:43 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Subject: [PATCH 4/4] arm64: cpu_errata: Apply Erratum 845719 to KRYO2XX Silver Date: Thu, 5 Nov 2020 00:22:13 +0100 Message-Id: <20201104232218.198800-5-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201104232218.198800-1-konrad.dybcio@somainline.org> References: <20201104232218.198800-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_232250_925861_21EBD550 X-CRM114-Status: GOOD ( 10.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Sai Prakash Ranjan , Marc Zyngier , Ionela Voinescu , Suzuki K Poulose , Catalin Marinas , Anshuman Khandual , Konrad Dybcio , linux-kernel@vger.kernel.org, Kristina Martsenko , Stephen Boyd , Mark Brown , martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, angelogioacchino.delregno@somainline.org, Amit Daniel Kachhap , marijn.suijten@somainline.org, Steven Price , Will Deacon , linux-arm-kernel@lists.infradead.org, Andrew Scull Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org QCOM KRYO2XX Silver cores are Cortex-A53 based and are susceptible to the 845719 erratum. Add them to the lookup list to apply the erratum. Signed-off-by: Konrad Dybcio --- 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 61314fd70f13..cafaf0da05b7 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -299,6 +299,8 @@ static const struct midr_range erratum_845719_list[] = { MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4), /* Brahma-B53 r0p[0] */ MIDR_REV(MIDR_BRAHMA_B53, 0, 0), + /* Kryo2XX Silver rAp4 */ + MIDR_REV(MIDR_QCOM_KRYO_2XX_SILVER, 0xa, 0x4), {}, }; #endif