Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1930867ybg; Thu, 24 Oct 2019 02:18:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJGNhbyT7aCzLNRl/BU84WW6LwOkBYn4R+Gp6Wq/cH0+80mynrov/tXPpdDLg3mQ3bvSLI X-Received: by 2002:aa7:d1d2:: with SMTP id g18mr19211783edp.269.1571908692563; Thu, 24 Oct 2019 02:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571908692; cv=none; d=google.com; s=arc-20160816; b=lqzm9WVjHj6M+ZOpLrwluDsRH8y52ZrX7K4dHgGmhf5yt7l4Ow1iMedspwD0kULNHq bfjluiw45pg9M0pe+BMretkaabJIdemCyg70IEuxzW7o+GVKB9sVPy/+3YKAqZ2zVO6p WYuy5I2MDR33w8wZp4NcXth+NW16wns1B0TcTaMwKlvDrxbpy+5YYwXXdB6E8aae0oqA lhaN5tcibIVP52H/0A/10nUiD45yGprlGuiCW+2pZe8nmg2QiQqPEoRdBUtfoR+8LEhY r8hy1ihrAAlP9an2Y8jw4U2GU8lBe61QL6fC14rA2qUvG17EytyXev8KqlpYpH3bSYwC U73g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=12QbW3key6pkPLRePaJeG2+1IWcL9FQrUNpf3RuSKSQ=; b=SOd/N6imJrADlgvPXYFiwuluEtCpAZaF+/4Jz4JtcGa2ZrLLp1AEIpXRMTlgXvZM0L mPoMbjCvjKjzYZgojMd/KzLgYpKTPyIWbXYS1exm/CwuVosf8EwdXRijZdAK9Zhl9vE+ 2FS58m1Qj0i2kfMwTpi6HH2iracUJ9NQ5M0OzOe0UCu4q/JA23T5iBIDWx3MKXr5xden YHjVec9KmNwORimY+izi407PfeLAgSd3t4yatGSMpUMw3w7U+WOh8aSGrIvIgwmPVLlW yqhDF3y27E8Mr0+zVTgsy79Vn5YZ0Dq3s7fcZr5XblX2cpU8kwAsTiIwRN/ikT+0COiq xKuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=GDUVls0n; 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 a7si4678179ejj.288.2019.10.24.02.17.47; Thu, 24 Oct 2019 02:18:12 -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; dkim=pass header.i=@sifive.com header.s=google header.b=GDUVls0n; 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 S2404232AbfJWSy5 (ORCPT + 99 others); Wed, 23 Oct 2019 14:54:57 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:43489 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404000AbfJWSy5 (ORCPT ); Wed, 23 Oct 2019 14:54:57 -0400 Received: by mail-io1-f65.google.com with SMTP id c11so17173415iom.10 for ; Wed, 23 Oct 2019 11:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=12QbW3key6pkPLRePaJeG2+1IWcL9FQrUNpf3RuSKSQ=; b=GDUVls0nbXaYTbmTFZL/RVapwYhF4nk0yOpUXO8xXNki35UwD8vLzY6PEIH775b/eV VNCdP2nsxX8S0Kq9AO5cvrLCvrv6qM5hrppOxC2VWCtuWUDk3Tzlc7FqwI4db6+ifuoK +vWrow2Di4hCVAXJK88uEH0ux41umg45NcID2sXhUHxpGF9d3PKcR/IEcxfv1YZIF34t 7u1ujeneJLCnj6GSeuT5nxPZuW5/eJJvvkYXuoON8ADB5dXNHu2LntShneO+66r6YszK wAKsFHgpvpJiRLvTUho0x12PR2Mq4iUFg1Khv0PG7Si9RCFyTYD1/vzOEMRqWYMMbEF9 fg/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=12QbW3key6pkPLRePaJeG2+1IWcL9FQrUNpf3RuSKSQ=; b=fKjkvn0gwNUSxtNLAQ+kc5Fv8ISLfdBqMh8b+tABdS6eWDU69kZF1kw++oDfIOkoUo ljRcs4eFWwz3y7MtNFqilvbCCM/MhVi+UAdZWTJfRY9HxSpWdcynfSO6uA3G7+/lu+nV tr+whyFxRZZB0R4IFht1qosWNYav+BV3RoGSciDZtfg0xKDu0M3u8f6wVDBvVn0gh/fp udUgaNsaIyoS/fgeDqbilTmijlYTWGDW9GhXlkxCWsbHfMRFOgRy2eK/gjda+IgBkeO5 DkAHTTi+wpv4w6qRWc73iaQ3x3EtH4Lgea7Frdd+KCJ/VBKrb2yC0RpWPtCCTgM9fqGG mrmA== X-Gm-Message-State: APjAAAVR6qyVM0GQ35cyzpg3lZVBgyMWHI4L6Oi0W9fwDpu51zbmF1ZR 2mVo6xEoS651O86BWDluiRgWnA== X-Received: by 2002:a6b:7942:: with SMTP id j2mr5108252iop.161.1571856896420; Wed, 23 Oct 2019 11:54:56 -0700 (PDT) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id b18sm3791776ilo.70.2019.10.23.11.54.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 11:54:55 -0700 (PDT) Date: Wed, 23 Oct 2019 11:54:54 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Alan Mikhak cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, palmer@sifive.com, hch@infradead.org Subject: Re: [PATCH] irqchip: Skip contexts other supervisor in plic_init() In-Reply-To: <1571847755-20388-1-git-send-email-alan.mikhak@sifive.com> Message-ID: References: <1571847755-20388-1-git-send-email-alan.mikhak@sifive.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + hch On Wed, 23 Oct 2019, Alan Mikhak wrote: > From: Alan Mikhak > > Modify plic_init() to skip .dts interrupt contexts other > than supervisor external interrupt. Might be good to explain the motivation here. > > Signed-off-by: Alan Mikhak > --- > drivers/irqchip/irq-sifive-plic.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c > index c72c036aea76..5f2a773d5669 100644 > --- a/drivers/irqchip/irq-sifive-plic.c > +++ b/drivers/irqchip/irq-sifive-plic.c > @@ -251,8 +251,8 @@ static int __init plic_init(struct device_node *node, > continue; > } > > - /* skip context holes */ > - if (parent.args[0] == -1) > + /* skip contexts other than supervisor external interrupt */ > + if (parent.args[0] != IRQ_S_EXT) > continue; Will this need to change for RISC-V M-mode Linux support? https://lore.kernel.org/linux-riscv/20191017173743.5430-1-hch@lst.de/ - Paul