Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3494893imm; Fri, 25 May 2018 06:44:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr/M4+E/JmqWVsQ7CEIF1PuhLhroG9ahzUAI8+j4D3dGsgvcg7enQp/NMPoiBRe2D42o4xq X-Received: by 2002:a65:534d:: with SMTP id w13-v6mr2050361pgr.178.1527255888505; Fri, 25 May 2018 06:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527255888; cv=none; d=google.com; s=arc-20160816; b=aptH54+Sr5MBbMDl7sHjFkZNDACbkQ3dIEDfH/37zCOZb8SP1v1uEMtgMa1Io1+GsS Yvb6Gy8+BaZFfN4WC+IXC4J4dUstLpb/QKeTf8oP9r+Z8wu3guMbb6kNxNPiMJlaXMvj 2krt+zzSbUqwPDuWB0WdPLS0NvlHV3Fwl5QOZQTc+QHSE64XuuPNBuXl5nrT0eJxLZwO BQ/PwY5q1d9WUy6aaNaVFhm1WYmNle3XBpEMaOIzAhBsO0Evci7RqeifME7NqkWhid/w QYLJThiiNLjeO28K2l4puj8IMOB/PqMIA1u7e511JUogG8k8mbmbOELGRvPMdHqVqLV7 ogAg== 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:references:cc:to:from:subject:arc-authentication-results; bh=VDcCB/Z25YWpAz7BiI5kgG6pE6MKEz3HdTXKtP/FunA=; b=xwfrggoRvaRwxwcOWNmC4MOpwKBHR+ltp3pzzweWK+gizSqwfwwuAesXNLZTelFj98 W876JJZSXsBhIju4sLkmAWdIM0m0L9xrOqcHdkYb6+I+mWtHs5Meg4JPXTcp9XuUeoOb MB87v5qVQDP/meqeQ3x/cXNRv+uGGsC+tac1A0kDs6nOWchszQ5rRH4WAKcxA2yhgWe3 LoZz+5STQA47CWmayZ/0bQWpPiWDB/qu9pgBRkU2sbC6D7XJNUKmq6rbAYLm706qMtAE IiNqUHgWQ/hUEtYgtxnia5IEVoYQWbHpRTeV2jgf6MwKn5hvaUAmOAsQsoRf2hLuHdMJ Ha/g== 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 g1-v6si23262220pld.11.2018.05.25.06.44.33; Fri, 25 May 2018 06:44:48 -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 S935831AbeEYNme (ORCPT + 99 others); Fri, 25 May 2018 09:42:34 -0400 Received: from foss.arm.com ([217.140.101.70]:33892 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933210AbeEYNmd (ORCPT ); Fri, 25 May 2018 09:42:33 -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 3518080D; Fri, 25 May 2018 06:42:33 -0700 (PDT) Received: from [10.1.206.24] (e112298-lin.cambridge.arm.com [10.1.206.24]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A20E3F557; Fri, 25 May 2018 06:42:31 -0700 (PDT) Subject: Re: [PATCH v4 00/26] arm64: provide pseudo NMI with GICv3 From: Julien Thierry To: Daniel Thompson Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, joel@joelfernandes.org, marc.zyngier@arm.com, mark.rutland@arm.com, christoffer.dall@arm.com, james.morse@arm.com, catalin.marinas@arm.com, will.deacon@arm.com References: <1527241772-48007-1-git-send-email-julien.thierry@arm.com> <20180525101632.cfcfnmnt2u7rz3lt@holly.lan> <02afa8bb-5d27-f229-6085-8f61a626bc63@arm.com> Message-ID: <8703b3e0-b5f8-e607-2d8f-3d0b71a5ec3c@arm.com> Date: Fri, 25 May 2018 14:42:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <02afa8bb-5d27-f229-6085-8f61a626bc63@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US 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/05/18 11:40, Julien Thierry wrote: > > > On 25/05/18 11:16, Daniel Thompson wrote: >> On Fri, May 25, 2018 at 10:49:06AM +0100, Julien Thierry wrote: >>> This series is a continuation of the work started by Daniel [1]. The >>> goal >>> is to use GICv3 interrupt priorities to simulate an NMI. >>> >>> To achieve this, set two priorities, one for standard interrupts and >>> another, higher priority, for NMIs. Whenever we want to disable >>> interrupts, >>> we mask the standard priority instead so NMIs can still be raised. Some >>> corner cases though still require to actually mask all interrupts >>> effectively disabling the NMI. >>> >>> Currently, only PPIs and SPIs can be set as NMIs. IPIs being currently >>> hardcoded IRQ numbers, there isn't a generic interface to set SGIs as >>> NMI >>> for now. I don't think there is any reason LPIs should be allowed to >>> be set >>> as NMI as they do not have an active state. >>> When an NMI is active on a CPU, no other NMI can be triggered on the >>> CPU. >>> >>> After the big refactoring I get performances similar to the ones I had >>> in v3[2], reposting old results here: >>> >>> - "hackbench 200 process 1000" (average over 20 runs) >>> +-----------+----------+------------+------------------+ >>> |           | native   | PMR guest  | v4.17-rc6 guest  | >>> +-----------+----------+------------+------------------+ >>> | PMR host  | 40.0336s |   39.3039s |         39.2044s | >>> | v4.17-rc6 | 40.4040s |   39.6011s |         39.1147s | >>> +-----------+----------+------------+------------------+ >>> >>> - Kernel build from defconfig: >>> PMR host:  13m45.743s >>> v4.17-rc6: 13m40.400s >>> >>> I'll try to post more detailed benchmarks later if I find notable >>> differences with the previous version. >> >> Do you have a public git tree anywhere... I *can* apply 26 patches from >> e-mail but I'd rather pull them! >> > > Yes that makes sense, I'll try to get one set up. > > I'll let you know once I have done so. My public git is up. You can pull the patches from: git://linux-arm.org/linux-jt.git v4.17-pseudo-nmi Cheers, -- Julien Thierry