From patchwork Tue May 11 18:23:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 12251797 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.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,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 E65A9C433ED for ; Tue, 11 May 2021 18:25:20 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 AB6E061207 for ; Tue, 11 May 2021 18:25:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB6E061207 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=MPCLSs4FEuvKOE3/cx5r3zVxQSvu3d9oqc98w5dcaUA=; b=Zwt4QOXvJm8gJRQLxy5IcBePDS tv7z9g9Sg4abmHTtuihvz/7Vsv14RIvNCmOe5iRUAt98+PTmyOzkJ4dwAul0fU/mtsOsLBdga9pWv yJrpmaAwxY6SfIA3mzDylUxqDRhA00zbzIQh81X9W/inVN+pXpXNhg0NOxwf52kR7RGa7lbdRWvcn HviFCRo8F1kKP/k/chHFbSY/HreK1MAez9IWCSLy4zUX3VYuhCtUR/Rp//67Lf8kJ9/2kBc2mX15A Tm/95z359syi/7+6E1+sMqSgEbrRVHg0oO5nudR6oPST+4Z+vqujknNoiQEg+gfCFFVbpQlursmdx AczL4LWQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgX2a-0010Hv-7e; Tue, 11 May 2021 18:23:32 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgX2Y-0010Gr-1w for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 18:23:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=CRiDkmPdV9JhB1Rhy2g/xHLfX4+c1TNkBZGy5rrTdLY=; b=tXoJYVhn4dPvIYW7jEr7BPdOKx b2da5P4ewMBZCiZJQFBEggNNzr6UcIl69xtxnYeNF6nuM9UFmXJ5poOy6UeiP4A5EeAEOz/KeLW9a gnkVoGX649OmOghVollDYLKiBhawrlP0gX+rCalubLlSqgMUbX8AK1zwqyUVX9FTo/X3X917K4Q37 lEbYUS3z7IIElYdPQVfbnUZ1jsSFQSOA9dcG71S30t3HM6v1e5nHWsVu30XwIj+cPLCaTcV5bsYXF T2FqPpud7QiAlWBxiqcQWzuuxVSPYc2Z3O51+GBsfyYoFIba1IhGpF02v9WxA8eUgbFIBeoHU9Hqt vIF2hvVw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgX2T-009q7v-Rf for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 18:23:28 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4FF6461264; Tue, 11 May 2021 18:23:24 +0000 (UTC) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Mark Rutland , Suzuki K Poulose Subject: [PATCH 0/2] arm64: Taint the kernel on different GMID_EL1.BS Date: Tue, 11 May 2021 19:23:20 +0100 Message-Id: <20210511182322.3830-1-catalin.marinas@arm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_112325_949030_EB2CC747 X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, The GMID_EL1.BS field determines the number of tags accessed by STGM/LDGM. While I haven't heard of a system where this field differs across CPUs in a system, it's better to check. In addition, "upgrade" the sysreg storage in struct cpuinfo_arm64 to u64. Catalin Marinas (2): arm64: Change the cpuinfo_arm64 member type for some sysregs to u64 arm64: Check if GMID_EL1.BS is the same on all CPUs arch/arm64/include/asm/cpu.h | 11 ++++++----- arch/arm64/kernel/cpufeature.c | 17 +++++++++++++++++ arch/arm64/kernel/cpuinfo.c | 3 ++- 3 files changed, 25 insertions(+), 6 deletions(-)