Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3560537imm; Mon, 10 Sep 2018 20:58:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYRhuNx28f4Tma8yzo7bDSqHoBGUhku7Q20Hatse56tOBqeb+UkLpGOHEhhkfp3/OGIimb0 X-Received: by 2002:a65:6292:: with SMTP id f18-v6mr25632571pgv.85.1536638290171; Mon, 10 Sep 2018 20:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536638290; cv=none; d=google.com; s=arc-20160816; b=GuTdefGGEACxO8K2YXNSWHxTc7anfxZcJQ8/P2boOotFLilLZB0XITdhww4pgtrxB8 7DJPQXKT0OTSyN/0/XaXMObpiEL+OcBQHCrazleCkV9Yxkj/KvKF8McnZcjsTM+TpaXq L8nwLfRU05oK+QxyDCvnVZQhezKStxMjhaiVbo5YNumWyk1G9DLfkgF7nB9gBX/7zTCl S0g243rgcDNKe1oeYfvQX/m2tpfelbHcOTZEcc4QqSrmkDYuBYeEP4IV9e68ZxlNR0/+ FQTxkxMtggsGAL7d+w01Ha5LvuWzjMGja2D3FjMXGt9bzQFRK7yqW9yH31l0TbRpknsN FE5w== 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=Md5Drb81F2xVjAzduHW8JE6+LJwiuyyOBmL4TAOEDWw=; b=Ppg8GQZfmq/IVvVI7Fs8MPjPpvse+bUapeJytFJ8xY4uRWYNGzzV1QnJtcCJvl1Ika +20iXOX9L79mLDuq/DVrHuxRkMcCyAiuHoUyD8FG++F8NaNrdyhzUcUMhknP4kc01rnT Qtokj7npeay0d1GXXhiePHmixSu/nUzBKA80RRMM1t8zniEvo1lHIKEU+E48REiMGs1Z oQL4pct/nnDTVmL1P097fKRzNn67VC4UdUKI9KbmlQ2LYvA6G9iR5JvjMdO9xfGc7C+4 Z7idb4FwdLo6ZiLmzJNlDlxeUi0ro6SJdzWJ4SLnpzau0kxmbLcs62e8NsWc1hqWwRO8 X/OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=dfY1Ccis; 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 u10-v6si21288397plm.393.2018.09.10.20.57.54; Mon, 10 Sep 2018 20:58:10 -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=dfY1Ccis; 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 S1726649AbeIKIzF (ORCPT + 99 others); Tue, 11 Sep 2018 04:55:05 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:56196 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbeIKIzF (ORCPT ); Tue, 11 Sep 2018 04:55:05 -0400 Received: by mail-wm0-f68.google.com with SMTP id f21-v6so23518548wmc.5 for ; Mon, 10 Sep 2018 20:57:47 -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=Md5Drb81F2xVjAzduHW8JE6+LJwiuyyOBmL4TAOEDWw=; b=dfY1Ccish/6sDxv4O78jmcPOe4gOYKNaOEmmNkoBTprTxG/sCeJdcivkaYo2jnplhG LrDVpXbZzmnLFKlRvyZitttX0rc7HsahFgz/D8IQhLG3rbnMg+QNCpDNG69IKU8HTBS5 JKvaXQ+vZm9zDGq+rpKVF4wn0EuWj4SgaM0VCqwnln+gQX9FOrkRaPKgc5Au/mc5x/36 XwuTk9c/2A32GNFmkZMAIwQulcBaTWlsEYHJh4AOgIh7cSFyX5a3kMPh0QbcS0VcBbp6 2+Fh7T87FNO0gPrZxhCnmyyKHYMwd/HBUFJ7kUYFJmGESEjG4z44XMSPaHnLhec8bKEw M4jA== 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=Md5Drb81F2xVjAzduHW8JE6+LJwiuyyOBmL4TAOEDWw=; b=PpuDWkUqUqbM4uWtm3SAhWlji5w85wG99RKnqwHtOpfmwMNVdWB914EfJ41C24Vd/q sXTOIu925OSmnQIKl13p/XeaLVNLBMwO0qB6O5hUE63YCoFIQNUHOaj0LIUb9paA2cxu aq5P3Yaiv+120ZOp/8ivRqv9GMC8L9RDZ8WosApnMIAL5IZUyX8vQehspQqYl0BsTqgF RnM2Y82+smlj09DRQ/KVv+NzvbY3ja63vNHyZkOx61nekjfsv70v89JAwLB+o95woY/h ZntUmnenhkW5okBsWE3Wma48zla4qQiVdARjvBe3qIyt5LeoYVxvp7O3CS7ZfGLdC/bh FjBQ== X-Gm-Message-State: APzg51Af+jYXSNsBdLheCgVeXTfKvDBNZs+pocOXAnIvxDiHG+L9lTmL iFs4xK3O7ioCvKRq4oHWhQ6108Im0ej6Z9O4+/rgfA== X-Received: by 2002:a1c:ac04:: with SMTP id v4-v6mr2759426wme.51.1536638266324; Mon, 10 Sep 2018 20:57:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9dcb:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 20:57:45 -0700 (PDT) In-Reply-To: <20180910221902.GB7368@infradead.org> References: <20180910133902.GB21593@infradead.org> <20180910134915.GB30774@infradead.org> <20180910161143.GA1053@infradead.org> <20180910163936.GA18699@infradead.org> <20180910221902.GB7368@infradead.org> From: Anup Patel Date: Tue, 11 Sep 2018 09:27:45 +0530 Message-ID: Subject: Re: [PATCH v2 3/5] irqchip: RISC-V Local Interrupt Controller Driver To: Christoph Hellwig Cc: 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 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 Tue, Sep 11, 2018 at 3:49 AM, Christoph Hellwig wrote: > On Mon, Sep 10, 2018 at 09:37:59PM +0200, Thomas Gleixner wrote: >> Processor local interrupts really should be architected and there are >> really not that many of them. > > And that is what they are. > >> But well, RISC-V decided obvsiouly not to learn from mistakes made by >> others. > > I don't think that is the case. I think Atup misreads what reserved > means - if you look at section 2.3 of the RISC-V privileged spec > it clearly states that reserved fields are for future use and not > for vendor specific use. I think I understood what reserved means here. If reserved bits are not for vendor specific or implementation specific stuff then it should be mentioned clearly which is not the case. The list of currently defined RISC-V local interrupts will definitely grow based on my experience from ARM/ARM64 world. Like Thomas mentioned, we will definitely end-up having separate irqchip and irq_domain for RISC-V local interrupts for flexibility. Better do it now with separate RISC-V INTC driver. Regards, Anup