Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp878845imm; Fri, 27 Jul 2018 07:41:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexn01L3/23Op8VtbIfCiRZhdqEHLqOuuRk8LuuKWpScbaQL49fg8cC3gnvDf45yCnmv9Xe X-Received: by 2002:a17:902:6802:: with SMTP id h2-v6mr6255968plk.113.1532702484827; Fri, 27 Jul 2018 07:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532702484; cv=none; d=google.com; s=arc-20160816; b=JiIJcxS0UIkoSyDzRTJyjGGzUulT6VCb0Y7yXdCB6aSBxRqOcLx0r06+3mksVca8Kw 0t+TGDiH9FqtEvFIDgpY+ffjZPu+0leeDCcHxQiRmGrQ0+1IllmMDIaU0huxp3bR3cAT 8B8riAwy0rIuRHDcdhrFS7QDBEF/QWO8vqHxqHNLrK/zMaTXrL2WySSHEUGd9FrHw0Gl 5atgZ8kPjJDSj/oqpUn1sL/3I2eLIgAOcgQV+EuglFEuuuvFhr4zNFCthncmDZI0Y+yD WfLlVCmxfXjGrapBgjwEyUvlmtlGU7XFtqwEf/V1bXsg3bXBJ8yUU5QyGP4Nqe3YS4bQ 8ItA== 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:arc-authentication-results; bh=0DBj46ugOu0wP993eMlhgiMpowJvzuP+7p81Y8rRvyA=; b=cES0o5APgH5tSXiklV3CTQhH/VAQGN7RLstyX1UU52t807hTUE4ou2YdWqDipWWSmR rK2kaQdvrvKFW/WdsNnNRFQtiLQ/OBswuCe1CSxVUrSJoNizEl/Pqo1W9LmqOwKkl8y+ QD9xtbKxSFq067zauyZSNrtYoDrjENgxOFeV7MLP2c/JqIipjJs0/GPfc+RInHjjCq3r pfNCOKlaYv+rNzUXuHf5NvIx8DPgnpnS6q9LLtpcmNomBw6gGq3w72/Awx5sdzA0itp1 Rszi0aR2QfiAlM0q57kgl16WfQtgXaNS+V2UApod7lnwFaGSoixHO4fmRw5+qj4V+J9t Beuw== ARC-Authentication-Results: i=1; mx.google.com; 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 c18-v6si3535391pgp.467.2018.07.27.07.41.07; Fri, 27 Jul 2018 07:41:24 -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; 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 S1732148AbeG0QCZ (ORCPT + 99 others); Fri, 27 Jul 2018 12:02:25 -0400 Received: from verein.lst.de ([213.95.11.211]:41659 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730458AbeG0QCZ (ORCPT ); Fri, 27 Jul 2018 12:02:25 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 47D0568D60; Fri, 27 Jul 2018 16:44:05 +0200 (CEST) Date: Fri, 27 Jul 2018 16:44:05 +0200 From: Christoph Hellwig To: Atish Patra Cc: Christoph Hellwig , "tglx@linutronix.de" , "palmer@sifive.com" , "jason@lakedaemon.net" , "marc.zyngier@arm.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "anup@brainfault.org" , "devicetree@vger.kernel.org" , "aou@eecs.berkeley.edu" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "shorne@gmail.com" Subject: Re: RFC: simplified RISC-V interrupt and clocksource handling Message-ID: <20180727144405.GB29626@lst.de> References: <20180726143723.16585-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 04:38:43PM -0700, Atish Patra wrote: > 1. As per my understanding, timer interrupt now can't be registered as a > Linux IRQ now. Thus, /proc/interrupts will not be automatically populated > for timer interrupt stats. Am I wrong in my assumption? Yes, with this code the timer interrupt does not show up in /proc/interrupts. I wonder if that is an issue and if there is any precedence for it? > 2. The future version of local interrupt controller known as Core Level > Interrupt Controller aka CLIC. Do we have to change the current design > again for CLIC in future? > > Here are the docs: > https://github.com/sifive/clic-spec/blob/master/clic.adoc This doesn't really look like 'the future' version but a proposal for something more like low end realtime microcontrollers ala ARM Cortex M*. At least the priorities don't really make much sense for a general purpose SOC. Either way the existing architectural scause/sie interrupt handling will remain but can be opted out, but if we really want to support the CLIC it would have to grow a new irqchip driver, and the PLIC driver would require a few dozend new lines of glue code to chain underneath it.