Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3985236imu; Mon, 12 Nov 2018 04:01:42 -0800 (PST) X-Google-Smtp-Source: AJdET5eoEBJwKnPBO4wZzzG5FmRy8ilaGZzaFb3NjUJjWBIdeKnFsdypGSxzSpmGEkBd5Stdu1ps X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr656192pll.263.1542024102112; Mon, 12 Nov 2018 04:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542024102; cv=none; d=google.com; s=arc-20160816; b=jfb7JA9nDofoHTom122rkqg0vMb9SWQYNmyGPXDCmSn929dZvzhACKX9Mi3WkI6dln 8cyvoweNsnv7+SwBpqsneuCf0PCP8CgxXl+zZRjuSLhY7iYSj8wrGE6Go+D8NKmEoPvd bQ9z6akNjyxxpC+64aGN6048WDT5+1xI5I2OXwL3SwOHl2iAJYxNbPSayv9vnxNjX0zJ c4Ojrn74cnhHoa6CfuMsofmwIdupmC8SYFYjClK/OnxAA7P5qdPR4PZnQOu6HN/pBSwT qNhHvr39aTCZ1aVz4s+7jOWNUWE5ZCnev7Zd6TYcnTwPTMirOPDr93Eu9S1X2FTJ8kxj HnTg== 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=LkRLdCx/Y3EBF2xDjo9NvSvu93OQbilhvnHWXH1A5pg=; b=EV3e6TJ03AJFkHGArWADwdRfHc+AbofJn3/laBDBThFyQCn8dKi72IjKi+dqbkkRBe Kjj/SimtCArZEpbP+04B3yrafmzo/LRTMIrCQqXqrUqaad1rzBKIadDIUFujefj3E7Qe HnJaShgw7po3cSTYIxXqvNhQ0RJLxJfiuQUv4J1fUNm5r+mPERARKoSI/qPQy3oXxAXi U/nlZCjXwWmLtdRNXpfxAKZQ/NQeYtDP3Wkw7FK4i2CqRlM/ITw8+vkoxoIXcJuUrA4N 5TDes4sLfOome6w/V5LHAlpe3ap2cYp/qDrC0CxdQIIt+inKpXnsRwZGG/xoX6RM8to5 gEOQ== 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 b2si16254556pgq.275.2018.11.12.04.01.20; Mon, 12 Nov 2018 04:01:42 -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 S1729549AbeKLVu2 (ORCPT + 99 others); Mon, 12 Nov 2018 16:50:28 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34508 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728302AbeKLVu2 (ORCPT ); Mon, 12 Nov 2018 16:50:28 -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 ED7F515BF; Mon, 12 Nov 2018 03:57:31 -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 00A743F5A0; Mon, 12 Nov 2018 03:57:29 -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, Julien Thierry , Suzuki K Poulose Subject: [PATCH v6 02/24] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature Date: Mon, 12 Nov 2018 11:56:53 +0000 Message-Id: <1542023835-21446-3-git-send-email-julien.thierry@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1542023835-21446-1-git-send-email-julien.thierry@arm.com> References: <1542023835-21446-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 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 af50064..03a9d96 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1149,7 +1149,7 @@ static void cpu_clear_disr(const struct arm64_cpu_capabilities *__unused) { .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