Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6359799imu; Mon, 21 Jan 2019 07:35:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ZtpqV3+OSZUu2u+wI2KphJuqg5CIIDj6FrKtEGCJir7sgBQEue3gfmbpngLf856RERHZL X-Received: by 2002:a62:ca9c:: with SMTP id y28mr30005275pfk.236.1548084940686; Mon, 21 Jan 2019 07:35:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548084940; cv=none; d=google.com; s=arc-20160816; b=C+jr6DvUnWl6YI9uMWof4AfUH4M+VrjeKup/S0LcAARLiPFoVlylOUH7+bc34a9BQY tartZEzmw/db/k7LiD4UGIIujzcVSozbbjObcF7elXCIknyb6v2vEa5wSdCuPhmJ1Oxm G9tu+sg6OaMb+L2ALw7TMg/Wr80nF5gR5xXRVBDAlLRlo1E9lb6sTTP2VLKNkq8gyRDh JYnEkboPjR10M0hgoigZvKqsSCg/qrYO4cR29M388T4O2eO3CnvCSQnPOF/LhOQNxQqg cf7MM34xmiLLFWbS51PSQ4ojM0D9xs52FYSigkFzqBfmBUKXWoFqA0bQnx4wGqOxsotu kAhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=15qIFYQ+zWdI0M3YsjZbA8h0I/Zp5P/hX0v5xkwAlG0=; b=Xp5virXCBQicNB0N05znNVT9lRv08rz3QfCyLqLlj1j4P28vlqn/RsN/3G1RILJIpu C16kj3q3xPXWoog0zgGFe4ctvUEgE6WeBhEa6XH2aWdJlrVde2+1eoaF/bS04jcr1wAQ P3Qf5f+WO0IQepVYDNA8RRPAxLSAfZ4vzlG90N2zsdsBr2pqJ1hVvJJrXpfosPPkUlal klmsmsguY+gTxkVcc+Use5U4iTh8tOnFsU6BVBDf8q8QekGaT+Hoz6+aVkCZSSp97q4l la6bBeDdntgeM2eZjnnILqjn16cMKpW0PgjENPI3Wy6LmqDlUfFWMK9sTQInchdK03CF qJfg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si8293909pgs.267.2019.01.21.07.35.25; Mon, 21 Jan 2019 07:35:40 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729732AbfAUPeK (ORCPT + 99 others); Mon, 21 Jan 2019 10:34:10 -0500 Received: from foss.arm.com ([217.140.101.70]:36394 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729575AbfAUPeI (ORCPT ); Mon, 21 Jan 2019 10:34:08 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC14EEBD; Mon, 21 Jan 2019 07:34:07 -0800 (PST) Received: from e112298-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CF2763F5C1; Mon, 21 Jan 2019 07:34:05 -0800 (PST) From: Julien Thierry To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, daniel.thompson@linaro.org, joel@joelfernandes.org, marc.zyngier@arm.com, christoffer.dall@arm.com, james.morse@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, mark.rutland@arm.com, Julien Thierry , Suzuki K Poulose Subject: [PATCH v9 03/26] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature Date: Mon, 21 Jan 2019 15:33:22 +0000 Message-Id: <1548084825-8803-4-git-send-email-julien.thierry@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is not supported to have some CPUs using GICv3 sysreg CPU interface while some others do not. Once ICC_SRE_EL1.SRE is set on a CPU, the bit cannot be cleared. Since matching this feature require setting ICC_SRE_EL1.SRE, it cannot be turned off if found on a CPU. Set the feature as STRICT_BOOT, if boot CPU has it, all other CPUs are required to have it. Signed-off-by: Julien Thierry Suggested-by: Daniel Thompson Reviewed-by: Suzuki K Poulose Reviewed-by: Mark Rutland Acked-by: Catalin Marinas Cc: Catalin Marinas Cc: Will Deacon Cc: Suzuki K Poulose Cc: Marc Zyngier --- arch/arm64/kernel/cpufeature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index f6d84e2..b9c0adf 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1207,7 +1207,7 @@ static void cpu_enable_address_auth(struct arm64_cpu_capabilities const *cap) { .desc = "GIC system register CPU interface", .capability = ARM64_HAS_SYSREG_GIC_CPUIF, - .type = ARM64_CPUCAP_SYSTEM_FEATURE, + .type = ARM64_CPUCAP_STRICT_BOOT_CPU_FEATURE, .matches = has_useable_gicv3_cpuif, .sys_reg = SYS_ID_AA64PFR0_EL1, .field_pos = ID_AA64PFR0_GIC_SHIFT, -- 1.9.1