Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4377287imu; Mon, 12 Nov 2018 10:01:42 -0800 (PST) X-Google-Smtp-Source: AJdET5fKF1d0zDNufLKJXhDFxICllVsldfy6/tQGPB1rgS0eziBhLm0JHv6zZ5fQvP8Wp42XaA5L X-Received: by 2002:a17:902:4624:: with SMTP id o33-v6mr1842462pld.285.1542045701997; Mon, 12 Nov 2018 10:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542045701; cv=none; d=google.com; s=arc-20160816; b=pMzkOVgzXlolO14ClXM5SG4S9KaRIYZxNtz8d7wazv5J42+slVf2Auur3ci0EaTgA1 7diTqIo/l48KLkyPr+1o6W2WSYDambiaVLTnOhxHkSlYb+hLrpLOwo9G73DWt1nOdNHh ud3pNjlC7NU5XWUSxFr6xnqoxMfA4+RD+azaxwCAy+G7WZouXnpIxnWyaFf3arq3sIQe D9ZOd0EeYWvhLnX8WuOOURv64byRXn47QoukZ5vHF3i2TdydWYZ3klv7uvveR6P5EJq5 wodu6/9/h3F5VlAXJBY+nkXzGhOupIxhVKKsDpZNUb/8erh9/mV7DTLAqJ/j1JWadapL BRsA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=r5rD/PwyprcjLxxyf01m1fHB53jVQatrOp330JSqL0w=; b=zM/VsU3zxJw6nNogKbcTA9pkob3JQdkiBjCTWvV3wCLwGi9b2wKWNF4UzKjtclhp9F zcczeb1GbV4TxGwTPmztBP1ImP/atiegRlZfGpSq5PrxUnv3FPYhFf4mjWAboFWSp/X+ r38dkRswrmQVqEz72CIoTuYvTEu3k2TfuKy2OQI/UWQJCJh1ROE0G1xaz1oSC6wbH6ip HURO5FZmEYGT9kc1efItjLqp+IdLLqcQ+sbh1nkPjWI92RFaTgI1CJdcCPVDLBw4lRu9 elS2eTj4E0QrKf24bOgl7HK8Py5+zveY7h32l2JjtPWOtENj/dBX9iTF4dVkagaVFAZ4 gwww== 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 u64-v6si2983868pfu.277.2018.11.12.10.01.25; Mon, 12 Nov 2018 10:01:41 -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 S1729553AbeKMDzQ (ORCPT + 99 others); Mon, 12 Nov 2018 22:55:16 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40778 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbeKMDzQ (ORCPT ); Mon, 12 Nov 2018 22:55:16 -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 25A2FA78; Mon, 12 Nov 2018 10:00:58 -0800 (PST) Received: from [10.1.196.93] (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 79B943F5A0; Mon, 12 Nov 2018 10:00:56 -0800 (PST) Subject: Re: [PATCH v6 02/24] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature To: Julien Thierry , 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 References: <1542023835-21446-1-git-send-email-julien.thierry@arm.com> <1542023835-21446-3-git-send-email-julien.thierry@arm.com> From: Suzuki K Poulose Message-ID: Date: Mon, 12 Nov 2018 18:00:55 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1542023835-21446-3-git-send-email-julien.thierry@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/2018 11:56, Julien Thierry wrote: > 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, > Reviewed-by: Suzuki K Poulose