Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2987985imm; Mon, 10 Sep 2018 09:16:01 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda4NfoMiNi9hUN/IzvfMyUl9EAlJRdeK2RXFEmReMby/thcsPN8bxo1qk/Atsfod6kgDtLn X-Received: by 2002:a63:d447:: with SMTP id i7-v6mr24151252pgj.132.1536596161534; Mon, 10 Sep 2018 09:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536596161; cv=none; d=google.com; s=arc-20160816; b=wew339R5WBcOAFnuhFIUWSf0qEzf1p318zH1zttIYUN/+n/o5TW71XYY3o+B4WgZ+l 2zE9OBUBVsFltEQIhUTYL/rZhbuPWDq2p8BMki072KxsM49e8/OjfhL4ZSY+ZdGDlhs1 wl32126JBWl+SX/xo04i7OAKqh8wfDfzn+D4oHt2H2aFCNL/62/Cu5JyL8NwRoMkQFhW IFLcieeCCh00caQYlhkPaW2NE6593h1NbteHf+bPeJmiru1zYCOmjS5H+P791S9vxVCG jpAvvR3xqNf0udTtW6/vgJLQP7J+ctQgoPYDXqOkVRB28z4D5xyz7SKej4+mFChDW3cX l5PQ== 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=YP+cQTdRCyu7Z5q8SLU9kLg4ZY4ThJMQ0EgCZBOA+50=; b=C7OdxXizS+THi8wl9OaVXXJQMcRvaHR+BQz3PFQK50fSPnk5raWVR+1oTsbZx9JQPn 4FO+08HnOVRMFOiamv0N3pLPCAl+/DRq2KLoj2maHh60sqGmAw0D9hX2PcSiE1zD1Mhh vejWePf9Jmic8szgbrvx/1NPqGFNM8rxpSfsktxhQGbl7JnrAcUDZOalojGA4yyRPCNu zj6wj/mZC59zphMj4GFqmt+uYNauJthGIyha/F/phL92JJKk7dFV35QJNTV6j1FOI2ig CFh7G/5nT/jT1tqWd35v/s7s+jzlAe951BUv1+pAIozd95xTa3Jplw6kwOM4J8PN+Kgt 1dkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C9ZbEHsG; 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 v8-v6si16772362pff.248.2018.09.10.09.15.45; Mon, 10 Sep 2018 09:16:01 -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=C9ZbEHsG; 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 S1728676AbeIJVIX (ORCPT + 99 others); Mon, 10 Sep 2018 17:08:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52148 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728396AbeIJVIW (ORCPT ); Mon, 10 Sep 2018 17:08:22 -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=YP+cQTdRCyu7Z5q8SLU9kLg4ZY4ThJMQ0EgCZBOA+50=; b=C9ZbEHsGbjhTJXkBpAsKWVCbS X1CGWqBterp+q1fL5JWgoreTravR1hY9cuk0S3nR6YWtrMhA5gGfE4qxqFRtdTG7kHwZGKtQSA5Qt OsFOO5i5UtCp4W0JIwfvH93BXbNkMGwnJ5GAmANuaPOAgJDFTX2bHL8nESsf3Yuwl4ei86TVkvG+J 94roAFYyHEuO4aEsqcOXgTUEwgtVdzv+6nZqc3Iy+PeDlWJ/+2JBwLVUMq4+rXSD/dQFukv4kqqXQ /VFbE4para4xIXoz0T/BB+x+d7a6XiqqzezI/laFwCgWKpCl104oaH2a9pi5Ey79aiu1sxTsJiC0P T6ZzvwT+A==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzOoa-0003oX-D5; Mon, 10 Sep 2018 16:13:28 +0000 Date: Mon, 10 Sep 2018 09:13:28 -0700 From: Christoph Hellwig To: Anup Patel Cc: Christoph Hellwig , Thomas Gleixner , Daniel Lezcano , Jason Cooper , Marc Zyngier , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , Atish Patra , Albert Ou , Palmer Dabbelt , linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 3/5] irqchip: RISC-V Local Interrupt Controller Driver Message-ID: <20180910161328.GA13171@infradead.org> References: <20180906123651.28500-4-anup@brainfault.org> <20180906140628.GA10580@infradead.org> <20180910132924.GA6987@infradead.org> <20180910133902.GB21593@infradead.org> <20180910134915.GB30774@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-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 Mon, Sep 10, 2018 at 07:59:15PM +0530, Anup Patel wrote: > > Yes. external is chained and IPI is still handled explicitly. > > On riscv64, there are 64 local interrupts (i.e. per-CPU interrupts). There aren't. There are 9 right now, which are your three below: > Three of these local interrupts have clearly defined use: > 1. Software interrupt (inter-processor interrupt) > 2. External interrupt (interrupt from PLIC) > 3. Timer interrupt (interrupt from per-CPU timer) multiplied by 3 for machine, supervisor, user. > Other local interrupts are available for future use. The others aren't even defined as other interrupts, but just reserved fields. And only one bit per privilege level would even fit into the encoding scheme used right now.