Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1083200ybt; Wed, 1 Jul 2020 18:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkSn1vowynivQrrMaMdI0HpWA4x0LZq88ZG/K/hevzO/TqdjLPrlEIpZ/dNVGdlbFY+Gtz X-Received: by 2002:a17:906:1db1:: with SMTP id u17mr19346833ejh.72.1593653187308; Wed, 01 Jul 2020 18:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593653187; cv=none; d=google.com; s=arc-20160816; b=MfSwmXw+A2Z4KkmwQjN6xgjoRAFBlTPCtRsUkgdmwF+/QayvcmcfuWd6aJM4sXOas+ BE26ZuOBXU6HkZAYUbjkRVlPXnSH1TwZ8rxyUrymUbH/7yvqgeZIZhmblZxuMtV2aNwu OJKaL2h9mVMAzpGzaT5JtkxrP12dFWV6WTO2XX6w8A7BPa434gTVfE2GnWU5Wnxtk2ga FGk92Vsk4/MIppYy6v9+xFAQrkbl/TkpDy6j1qGWuPML2YOcwLUlRG3gRw4erVQ0mPIg 06rhTQevXLVdFTQU3WoKa9UgXFvO6ZAAWKl1vNpko6NkhzV0S8NPg1/U/lDY/VpxEy03 mxXw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OGkmTPCATFPZ80xOmCRx1M0gM0/UJL/u2+0nRg7QdBc=; b=Zxx7SqDJF0WxIqGU2xhVbU4WG824h3hPNUWM423nS3EtW6TOMTOVuKvVS1EZC3F9r4 urogepNcuhN/UCooabrxx4oVnudtVCYOCdbkj7d//OOk8viQCN2P7EVy9ZwBbsWF+SU9 kn1IGCryB3LTjaYmT3AN1oLVl0X/Wd9AWfeM/SAUNyV1HtdcQOuETlb+6/GnwH6bFp4H VqM1PjH7FKewiwX5gFRzUkzQzEhfmlYQcCgIuD3hf+QubZ9yFMuTwwGZdTRr8p+kDeMl lV58b6OlkfcYRdQz2vTPzgE7R12UuL4A2MI9nV3FTcC/IR5wrgWlMhRfWCuDL5PteNqi o2kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rHQUu7Ft; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si5564563edo.16.2020.07.01.18.26.04; Wed, 01 Jul 2020 18:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rHQUu7Ft; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728483AbgGBBZE (ORCPT + 99 others); Wed, 1 Jul 2020 21:25:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:54634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728502AbgGBBXv (ORCPT ); Wed, 1 Jul 2020 21:23:51 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A849B2083E; Thu, 2 Jul 2020 01:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593653031; bh=RBIbnZzztTdxZ/SbCqbKeaEtPBUQ+wEz5vBOHX/Wrjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rHQUu7FtU3nGIxL2D7Bi7T3krfNPaxV/cQdo9r3XS+Xj+P2hKar89MIe8mbxYihND 30ZpV4dwhTPXvOckJZs7536zdw9FjjWENY1jwLh34SNtLyNwqo3qlrMPFZIDNDWpaU akq8LIve+nUI+gl9RgOMVzh1CBrC9bVGiztDlMjc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sai Prakash Ranjan , Will Deacon , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.7 45/53] arm64: kpti: Add KRYO{3, 4}XX silver CPU cores to kpti safelist Date: Wed, 1 Jul 2020 21:21:54 -0400 Message-Id: <20200702012202.2700645-45-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702012202.2700645-1-sashal@kernel.org> References: <20200702012202.2700645-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sai Prakash Ranjan [ Upstream commit f4617be35b4b547e82d30993f56d631dfc2d5f88 ] QCOM KRYO{3,4}XX silver/LITTLE CPU cores are based on Cortex-A55 and are meltdown safe, hence add them to kpti_safe_list[]. Signed-off-by: Sai Prakash Ranjan Link: https://lore.kernel.org/r/20200624123406.3472-1-saiprakash.ranjan@codeaurora.org Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- 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 9fac745aa7bb2..b0fb1d5bf2235 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1059,6 +1059,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_3XX_SILVER), + MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_4XX_SILVER), { /* sentinel */ } }; char const *str = "kpti command line option"; -- 2.25.1