Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp405063pxb; Wed, 29 Sep 2021 01:36:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuij9ClUGapyjZHI+7oJQONqXiMCykgy0nIjVKl7ag5H8DcqEy+OpXbqVoEovN8YNUxca7 X-Received: by 2002:a17:906:3281:: with SMTP id 1mr11917155ejw.167.1632904584099; Wed, 29 Sep 2021 01:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632904584; cv=none; d=google.com; s=arc-20160816; b=HbMLFC6ls0MCky00N41oct0Oo8C0hETffEBUJWOYGbkxuwPVKY53wscrwoX8J/j2lk FFcHZVW3unJHqxADaAOnXhPhGtSUWR+xzh6CzmAntHhn1KUDa9Hfxysllc3UU0qAH418 Ema65xsdcwDKqgP46R+Qze7uqFfeB5fHe96A2Q4pYeT0wGBC4OTIDhBU7WzywngDi9zR xNo3T2vvGGEyem6oGnjAChhbQfImFDCLJOl1qWk41ZAttnUksVA1N0zxW1MlJj/97Tqg vVdhDrXjRANqGj/5M5nH8oVxUS0cDjNaf2Vyw1eUJvizcfZg9g8hBe9Cjdc57vDdWTRx CfCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YDg1MCFrit04NIscojLSyjzMh0R5/sGnkUnIDhDMvVg=; b=m9OavcdvVqdDOFaUmgEemPXHwOYu+VNZ0c9yTNMW0U306ikTmBKkFG1gZ1U26A82xC 3HhYUZSS9VF7swYtK5bQ/gM8KOLV5lOyseCN5cdb79OO9IJAlhmpKArdNNWxdCHeBCop WyXzaNaDfyvBv2mpgdnOSXIiaijDahp9AlLlT9vzuxGsrL2qwRJw98K22197e+PgY5IX oaz3d3XDZ3rAJx21flzu+2l+YwhrHohKA2z0WKhPCoptLg6cvSctYwheFbjP1wC0zxvh PYcrZAMuH3r3eB/25ftcO8qnt0WLqN58Zx7xW5D7evbnCl40nMb3xvAzozGhS8S5uE0i Bemw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ft1dEIC2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl17si2024570ejc.507.2021.09.29.01.35.59; Wed, 29 Sep 2021 01:36:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ft1dEIC2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244744AbhI2Iej (ORCPT + 99 others); Wed, 29 Sep 2021 04:34:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36673 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244477AbhI2Iei (ORCPT ); Wed, 29 Sep 2021 04:34:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632904377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YDg1MCFrit04NIscojLSyjzMh0R5/sGnkUnIDhDMvVg=; b=Ft1dEIC2THE9Q2NziCEHrQkl0rOI9REz/k4CfV04vF2hm9pFXrSBYN3lIWDR2Y20mU7Fri 1BNw2wHrd6CYcpxeGbcPAh209VOjihsVMZjNnI0poIr8N4pd+hhSxPRPeA2xqGNlMvO43o 4WcQLhUOFY2J/O4BKydT57LZ5VrdRFs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-182-8LaGz_2oP8ivkwVAFkzcow-1; Wed, 29 Sep 2021 04:32:53 -0400 X-MC-Unique: 8LaGz_2oP8ivkwVAFkzcow-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 114B1108468B; Wed, 29 Sep 2021 08:32:52 +0000 (UTC) Received: from piliu.users.ipa.redhat.com (ovpn-8-24.pek2.redhat.com [10.72.8.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DB42660854; Wed, 29 Sep 2021 08:32:46 +0000 (UTC) Date: Wed, 29 Sep 2021 16:32:42 +0800 From: Pingfan Liu To: Marc Zyngier Cc: Pingfan Liu , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Mark Rutland , Joey Gouly , Sami Tolvanen , Julien Thierry , Thomas Gleixner , Yuichi Ito , linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 5/5] irqchip/GICv3: make reschedule-ipi light weight Message-ID: References: <20210924132837.45994-1-kernelfans@gmail.com> <20210924132837.45994-6-kernelfans@gmail.com> <87lf3fu9n1.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lf3fu9n1.wl-maz@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 08:24:34AM +0100, Marc Zyngier wrote: > On Fri, 24 Sep 2021 14:28:37 +0100, > Pingfan Liu wrote: > > > > To achieve the light weight as > > DEFINE_IDTENTRY_SYSVEC_SIMPLE(sysvec_reschedule_ipi) on x86, it had > > better treat irqnr differently at the frontend. And let IPI_RESCHEDULE > > call __irq_enter_raw() instead of irq_enter_rcu(). > > > > Signed-off-by: Pingfan Liu > > Cc: Catalin Marinas > > Cc: Will Deacon > > Cc: Mark Rutland > > Cc: Marc Zyngier > > Cc: Joey Gouly > > Cc: Sami Tolvanen > > Cc: Julien Thierry > > Cc: Thomas Gleixner > > Cc: Yuichi Ito > > Cc: linux-kernel@vger.kernel.org > > To: linux-arm-kernel@lists.infradead.org > > --- > > drivers/irqchip/irq-gic-v3.c | 15 +++++++++++++-- > > 1 file changed, 13 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c > > index 906538fa8771..593d4539a209 100644 > > --- a/drivers/irqchip/irq-gic-v3.c > > +++ b/drivers/irqchip/irq-gic-v3.c > > @@ -709,6 +709,9 @@ static void gic_handle_nmi(struct pt_regs *regs) > > gic_deactivate_unhandled(irqnr); > > } > > > > +/* RESCHEDULE IPI hwirq nr is 0, and the only raw one */ > > +static unsigned long raw_interrupt_mask = 1; > > I'm afraid you have the wrong end of the stick. This isn't a GIC > property. This is an architecture decision, and only the architecture > can expose what they want. > Could it done be export an interface int (*get_irq_nr)(pte_regs) to do_interrupt_handler()? So it can be seen as an architecture decision. Thanks, Pingfan > > -- > Without deviation from the norm, progress is not possible. > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel