Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp551307oof; Tue, 25 Sep 2018 01:14:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV62HNq+0+ILDkd7D4IZeu3MshuZbreh0wyLRrQFPpLDUqsZIfyN4vOmH0VLmYE9yqx12Itdh X-Received: by 2002:a17:902:bf46:: with SMTP id u6-v6mr2472320pls.105.1537863274996; Tue, 25 Sep 2018 01:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537863274; cv=none; d=google.com; s=arc-20160816; b=HcAVDrImtQaoypGUOG/LAZB9KO6h5JtqJbZEmyQoOf1kX4YKtf9Lx3XWgcJq0xq0tw EWPBYBCgoUUpxTxMzXFDDqinHjSW+/lgxnUpTECVAa3YWIk8TiZQZVfElWgQE7t3cf00 F3E5KCIklba64Gvhr/GtRtJUdZuX0NkBUEdi1qwwYc77GKoDiL0+KL1/fPZBaBVXv03E sGEdGwXkvbHQgP9U0+QawtJ8a5RGMyKNfoKLRSFgX7pODFanQDHX1wsT3q6CRE2elXCA 6mHsZkVVBfK4Hk98FXCCYSkpbhhAkYmqL+Lt3f5sfX+nD6f8RdJNdLVJ6DzvyXoK28u8 Z+xQ== 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:organization:from:references:cc:to:subject; bh=SvJ/LU70MYF3rdSqII5bq95rtC0UrrNra7Vp7xut6/4=; b=PY0HskIBLmi+b/Jpst5A04E6oUh/M7OrpVgKosQEkPYNYDcp9225FVKmJqiACliy6f 9/PGFnNKnDYdsvPR0Xi3TvfH0b575kp4V1kcHjjwgCHPjoEkFyaR+vRRtbkYCFsKXcPz jYPhltAl8874GdliaDHAvR9z4qBmeUE5F2h8nVTMLDjkrytH3zpx/x75IEsiv+bcVhsw uFjHhHJ89cDYsuGXOuySciTEaIiVGezQgMl8SGeBcfFekQfzlpdB8fdJrOmDeID5lmxQ CxhhvFGQ9Dts+pPGtMychzq9NLxjrzp+M/qKRq2F1oyippE0GevvRtdAd/SvFGYnWAhI 2Diw== 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 1-v6si1795587plw.121.2018.09.25.01.13.49; Tue, 25 Sep 2018 01:14:34 -0700 (PDT) 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 S1728206AbeIYOT0 (ORCPT + 99 others); Tue, 25 Sep 2018 10:19:26 -0400 Received: from foss.arm.com ([217.140.101.70]:46526 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727308AbeIYOT0 (ORCPT ); Tue, 25 Sep 2018 10:19:26 -0400 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 87EC580D; Tue, 25 Sep 2018 01:13:04 -0700 (PDT) Received: from [10.4.13.85] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 85F5E3F5B7; Tue, 25 Sep 2018 01:13:02 -0700 (PDT) Subject: Re: [PATCH v5 01/27] arm64: cpufeature: Set SYSREG_GIC_CPUIF as a boot system feature To: Yao Lihua , Julien Thierry Cc: "mark.rutland@arm.com" , "daniel.thompson@linaro.org" , Suzuki K Poulose , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "linux-kernel@vger.kernel.org" , "christoffer.dall@arm.com" , "james.morse@arm.com" , "joel@joelfernandes.org" , "linux-arm-kernel@lists.infradead.org" References: <1535471497-38854-1-git-send-email-julien.thierry@arm.com> <1535471497-38854-2-git-send-email-julien.thierry@arm.com> <86h8iix2rk.wl-marc.zyngier@arm.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <33e98d70-a689-e1d9-ab73-a6650a34213f@arm.com> Date: Tue, 25 Sep 2018 09:13:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/09/18 04:10, Yao Lihua wrote: > Hi Marc, Julien, > > > On 09/21/2018 11:56 PM, Marc Zyngier wrote: >> On Tue, 28 Aug 2018 16:51:11 +0100, >> Julien Thierry wrote: >>> 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 e238b79..1e433ac 100644 >>> --- a/arch/arm64/kernel/cpufeature.c >>> +++ b/arch/arm64/kernel/cpufeature.c >>> @@ -1039,7 +1039,7 @@ static void cpu_has_fwb(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 >>> >> This definitely deserves a commit message, such as: >> >> "We do not support systems where some CPUs have an operational GICv3 >> CPU interface, and some don't. Let's make this requirement obvious by >> flagging the GICv3 capability as being strict." > May I ask if it is possible to implement psedue-NMI on a arm64 SoC with GIC-400? In theory, yes. In practice, this is likely to be both hard to implement (you need to discover the GIC CPU interface address very early so that you can patch the the PMR flipping code at the right time), and pretty bad from a performance point of view (MMIO accesses are likely to be slow). Given the above, the incentive to support such a configuration is close to zero. Thanks, M. -- Jazz is not dead. It just smells funny...