Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2506536ybg; Thu, 24 Oct 2019 10:43:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqygPiHjf0jUqzjvsaylNV707AveKDYqwcldrv2LN93DMT/3XHIH7PlXJ51NtNQ9+hRjgsoW X-Received: by 2002:aa7:d955:: with SMTP id l21mr35922448eds.179.1571939018021; Thu, 24 Oct 2019 10:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571939018; cv=none; d=google.com; s=arc-20160816; b=cMmgkD73fRPoGPLeYoa5eKYcIMKmSX0SdR3Plo6/RSiZvlxR1FP//+cFIEoxoDLrUt nAoNqiL/YPAw/s+/ubF3rlkYOcWrTSxZ7JFvJb6EthNzlymnR98N54/WQEXkmSllwGJv VamoMakR1A4hluVo2WOjZ3vo4O03J6F2aTT6Zz8Z19YBaRUZtPSVt0OfkHQflNqxr8wS HF//9Y7tqqlT0+S+p6HhSVczyiNkX/2SWaqggPO/LwUUtVkpDDXaQEHhFKEgZhhZYAQ5 78PsvBsHvWd2sY2XLrAL5Z6pdch2LG9KaiQrVWAcs+aozHGuWAr5oKVNpjrISd2eJBmO oXCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4Z7ZCJGwnZqvSqKFTwP6utocG5I1evhvOjHrEG4uqfs=; b=FTtCjEfRKlooqamMpShqjj4sgBWTPgMg3sZkU7b0ZQnZSe4osUIMZ7MevjlJfXuGp1 W4XHJmaIEuXT02zI1e4pUXHaSc0zQOspD1hT9BZvScbSf0fymtPZ5WFcHca8w5DrGBaa akT2To3olCzM+0IiQwzbUnBiWYNGXeSxu6nsyQcQ/21Mde4WwHf/4q/sbRsB8n/Yaixh GuVD5WUMNYeQQOUNStMeXi0p9HPinY4O4CoqFxrTfU2QYLpo8JwJ/Qg1tqploEENm5ZS enidvxKftHsS+zT+fDy2aAyoDguJjg6PL90o/Mo12fKgxDlS84yIBOXgsBllcRrRWxvy SH/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=H0V1Hbvo; 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 d7si10080338ejw.62.2019.10.24.10.43.13; Thu, 24 Oct 2019 10:43:38 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=H0V1Hbvo; 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 S2392401AbfJXBaU (ORCPT + 99 others); Wed, 23 Oct 2019 21:30:20 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54802 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbfJXBaT (ORCPT ); Wed, 23 Oct 2019 21:30:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4Z7ZCJGwnZqvSqKFTwP6utocG5I1evhvOjHrEG4uqfs=; b=H0V1HbvolB8u0MRm0bkksA4ZF xR7OaEFPqYFcLmJKQfLuS2eetOR0oSHm2bGbaEkcK2Hlff5GOxeZDSDuUpiQ1Xpz8isL50Tu+nZqJ XpyTOeR6aMq61FfG+FqKZ+MlncyrxaS9HyvIxAuDhl+jM3OUudVrGilEYuDOgcq/+phYKgEOw+KwB UOG9vLIwNmnEmRBAZsRybNDYs2OP67bV+GRjRDezsDeDQRcWdgBqLfSFHhL0z99Fra694vCO7DiLe dyNN6q1l1CCC4rulWz442mcrfts+nGkXXMPTYyKKizq8nHWAO6Co7MbE409oNTKf02Ypz0b7NQGHd dA0KzLhfg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNRxD-0001Xn-Co; Thu, 24 Oct 2019 01:30:19 +0000 Date: Wed, 23 Oct 2019 18:30:19 -0700 From: Christoph Hellwig To: Palmer Dabbelt Cc: Paul Walmsley , alan.mikhak@sifive.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, Christoph Hellwig Subject: Re: [PATCH] irqchip: Skip contexts other supervisor in plic_init() Message-ID: <20191024013019.GA675@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 23, 2019 at 03:07:10PM -0700, Palmer Dabbelt wrote: > > > + /* 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/ > > Yes. For M-mode we'll want to check IRQ_M_EXT above. So we should just merge this patch ASAP and then for my rebased M-mode series I'll fix the check to do that for the M-Mode case, which is much cleaner than my hack.