Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp428031imm; Thu, 6 Sep 2018 04:55:23 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb0vkUx/4DEassNZAjv/zyI8t63lJujlam+dfohDJ8WRIFhTEcB+0+f1R7kPzT3rRqNBEb3 X-Received: by 2002:a63:4c02:: with SMTP id z2-v6mr2401376pga.312.1536234923330; Thu, 06 Sep 2018 04:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536234923; cv=none; d=google.com; s=arc-20160816; b=aeRi2OU6gKipqanBEvYQYR4ixrmDywFHmVmDcuocj0A2lBSSueo5GQEj7FNk5BKmDb A99n6SVa+/+p2W2q4i0vQSmHTR0QGdlBaFRfoclPN6R2r4YkL8CZiH/j9DejJuxJTw+o 8Vru4AAR5y4uGVVvyghQvey89jV2rL5AFk9HBQjB1v4PVkhGqi/9qfWEw2YusN+VK18t uq8aav3PST/5S56pdeuGYVwC7OL4ktZytXfSNlGzqSqTh55uAgZxsAZRA7yr1gkp4Kzl elhxXNxy7czlXdDEG8o0zWje6y/tu9Wjk2C/GnIyVInQ6OysqIqb7GYF9rgokA5mJL8b uw/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=zLTEo141ZE19pDg1bmWzzdSUO8eQ9ehKN/z9pGNtg9M=; b=Sum4H5k6acHC4gje6mBtUphjZjkEGPiy0AJCq+4PZGjDS9ovU/iaCTOJLv/m85gRhd 49HoxOsyWMmNI5Js3AvMEbqMo93uOqzteF0Eu697iVQvvr3rNkMvurc+iieWmjXvjWcv DkOp856ONnLGZ+NsRBImxwpRhbpihcTIXs+xpKyfC3VKP++s4xfCwTX2pX6AkrunV7dn bvDMjy8673A1fflhwWRLABYkgcPilVBLvYpGPPyNt1NiROZHLftP3umh7ncZD4zpLE9F wjm3DIQ1bXIgjxVk1e9Pi4uax0C/X8pZu6IlTGhhAYQ9QAj6gUI2F6XmVjPIzCfH5uM1 TSIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=wxsB0wI1; 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 t127-v6si5212799pfc.118.2018.09.06.04.55.07; Thu, 06 Sep 2018 04:55:23 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=wxsB0wI1; 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 S1727700AbeIFQ2R (ORCPT + 99 others); Thu, 6 Sep 2018 12:28:17 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54216 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbeIFQ2R (ORCPT ); Thu, 6 Sep 2018 12:28:17 -0400 Received: by mail-wm0-f67.google.com with SMTP id b19-v6so11136347wme.3 for ; Thu, 06 Sep 2018 04:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zLTEo141ZE19pDg1bmWzzdSUO8eQ9ehKN/z9pGNtg9M=; b=wxsB0wI1hUOp69MNcGh0ykrOhk3nUyt6kionpwqOb8J0D4ZnYz/G/kxmEJ7wqwbkCr PPDrHK7BCNWi1giL54r3p07vTEeOaJi1d1h+baE8R9M4dR8EF3+9TaNFFcHFlbK14p0D O5tsHqc3SqeByqM0MTLU5XI1g2GWJW9eRofd8akJc6soEMHV1qiHDvaJ6t64lCZBS5Z1 Fmrf2VILvdY9jE3QmzZG8BGaIVYm/Ui1SYAeTcmKj0W+DfW7QyXSM4qmDFbeZuwYrUB3 K0XH3pv0fK7ptKWn3ocJOIH1DE2k4GkOSxIGeJ3S3qS32oHI+gtJQBWKjSawJy/k4bxL CGng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zLTEo141ZE19pDg1bmWzzdSUO8eQ9ehKN/z9pGNtg9M=; b=lqlWKs1zX87eEEkQtc8+SkYxwKXcBa48CnPErKLPmF1XrInLMZOG8rxw60aKty6v46 yuKlKoUV7QiKlujBBnBq9ZERuJqwQWJ8KpYv/D+C4vzrqJm6XwUk2cMtfMCYhOdALzTM Hlqmi79VFS+0I2ESLXu3lOulqJvzkFIfy3MbR3JOBVKbkwXh44TL5uEY+LxGxa3QkVFp Etwbm9/ZdApI7ATydBdmuRF+CsmfOWZWLPXU9IX1wbDvRNp3LWyxmmvoqqH9KUBDi0zW 0OuhToy9GmW0PsL79RRrLKxmo7Ax766S5lli1Kcz04itrqOy8vQ1VVdbsoocbXu6Wbpu 8jkA== X-Gm-Message-State: APzg51A1T1eui2wKa9mo+2Xw+KOd+2FU2/N2Sf9TexBjsacH2fkuaFM8 kBBwtbslQAlygBLBp+DDnP8288IgwCancQnLnzdJTg== X-Received: by 2002:a1c:1745:: with SMTP id 66-v6mr1809461wmx.38.1536234788315; Thu, 06 Sep 2018 04:53:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9dcb:0:0:0:0:0 with HTTP; Thu, 6 Sep 2018 04:53:07 -0700 (PDT) In-Reply-To: <20180905185838.GC15741@infradead.org> References: <20180904124514.6290-1-anup@brainfault.org> <20180904124514.6290-5-anup@brainfault.org> <20180904185755.GD25119@infradead.org> <20180905185838.GC15741@infradead.org> From: Anup Patel Date: Thu, 6 Sep 2018 17:23:07 +0530 Message-ID: Subject: Re: [RFC PATCH 4/5] irqchip: RISC-V Local Interrupt Controller Driver To: Christoph Hellwig Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Atish Patra , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 6, 2018 at 12:28 AM, Christoph Hellwig wrote: > On Wed, Sep 05, 2018 at 11:39:01AM +0530, Anup Patel wrote: >> Previously submitted driver, registered separate irq_domain for >> each CPU and local IRQs were registered as regular IRQs to IRQ >> subsystem. >> (Refer, https://www.spinics.net/lists/devicetree/msg241230.html) > > And we reject that driver approach for good reason and are now > doing the architectualy low-level irq handling in common code > without any need whatsover to duplicate information in the > privileged spec in DT. In other words, the whole idea of separate RISCV local interrupt controller driver was dropped due duplicate information in privilege spec DT ?? Anyway, I think we should certainly have RISCV local interrupt controller driver to manage local IRQs using Linux IRQ subsystem. This gives us future flexibility in having more per-CPU IRQ without changing any arch/riscv code. Based on ARM examples which I had provided, it is very likely that we will see more per-CPU IRQs in future. Some of these will be device IRQs and some will be CPU specific per-CPU IRQs (such as bus error interrupts). Regards, Anup