Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4176251imm; Wed, 5 Sep 2018 11:59:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdakntkkUj/WKuvPkHyFyk58JHU85kvEXCiXoJFXZL97OorhJ9a9EmG7atb2xPlHDzVYBYQY X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr40296541plf.115.1536173963038; Wed, 05 Sep 2018 11:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536173963; cv=none; d=google.com; s=arc-20160816; b=z15g2flCxjpG79CjJXZL1xXVAWFwyQegABbgObbDZk3nZdrL5VswxUOgnDFGRgq1u5 WbnqQrmSbKsLlZmV8t+ipSbkIXUo+GIpe8u9JuJbooxYDLL73PmmjNY2y/h5BNpqF30x UAFY9RWr1A+Z1jt3QxN0qn/026iY0i2HQ/csOhqOa0qRt8gjvEoFK7Cu51njjHlKNx7I 26OTM9cNz8NK0Rw+BkHHT+4b+BfPV7kMJRmkT2GkljSAwAK/wk7aHG9Mt5jot4+zzhPB SS4I5AY37d2yJjRO/DJF3Z128jFwzHQDl0RCr7ZlY+15vnITSiTlIsatwA1Xevr6cwko zRlg== 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=PGaimZxywD57RYrOy6eBDgC0DslmDh+Iz7/7RHqK5uc=; b=N0x1b0pQb9wXJ5YdAgrL/cUxf2XchkmFGHom9xxoOxPo8IreDF36O1hblsYXCA6gpw kBDXvJb7QCofoJ4e4CEBaS5/1dzshROqtGg52KJLt2+GfMkrX1EFgv0hVplpHSAnb1aK 5owhdb7fqcVzEInBv07bf6PGzA8epGN9PUi4kqE5aQdqGKREG3/fVG8l+vvvSVyXIcv7 bqX+t92uHp3vhcWNVDrX+BDetS0t/nmbJpfYa4+02f5i7aaUtI1GurtxcvqOlCxSeve2 arCGcV1UJzkBkqwM3nGi7qYTat5Ya2UMG63sxStmdkzNli/qBu/2EbFmPnCn7vVbB0Nc aWaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JcjZ3tvJ; 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 e7-v6si2681866pge.42.2018.09.05.11.59.08; Wed, 05 Sep 2018 11:59: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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JcjZ3tvJ; 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 S1727750AbeIEX25 (ORCPT + 99 others); Wed, 5 Sep 2018 19:28:57 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42914 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbeIEX25 (ORCPT ); Wed, 5 Sep 2018 19:28:57 -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=PGaimZxywD57RYrOy6eBDgC0DslmDh+Iz7/7RHqK5uc=; b=JcjZ3tvJsCqo9YAkxd0iCHb2n sekaexN6RspUQJTTECHdbVtU1Q4cFKKTK1FC/4xNE92FIbCkZ/iIdRABNhb9hgSV3vToj7jGJHRpH J1T4hxWVLXtVKiA19hdyYc79WD1+2RvrNrbgX6Z+rC2bCfXPSoTI+yqcXAFQ0VirHORCoj1IMJmJe WlTDmGqUqvvrqGoJ3qEsNurKcA1JIDtvU3WT/TjRyuyopZQOB5MDoNo/wV4f2PCNMX7DdVp6ROW5z s6Twm/orPJe0oY15Vla/Eudtso/ZprqIEneOW9MbAF0u1hO12kJ2qGPAYtW+5++tKBeGOzAgP6BVa 50yLpXQVg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxczV-0005mq-1r; Wed, 05 Sep 2018 18:57:25 +0000 Date: Wed, 5 Sep 2018 11:57:24 -0700 From: Christoph Hellwig To: Anup Patel Cc: Christoph Hellwig , 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" Subject: Re: [RFC PATCH 3/5] RISC-V: Select useful GENERIC_IRQ kconfig options Message-ID: <20180905185724.GB15741@infradead.org> References: <20180904124514.6290-1-anup@brainfault.org> <20180904124514.6290-4-anup@brainfault.org> <20180904185629.GC25119@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 Wed, Sep 05, 2018 at 10:22:27AM +0530, Anup Patel wrote: > I am sure we will see both Level and Edge triggered interrupts > in RISC-V system. The MMIO device interrupts will be mostly > Level triggered and PCI MSIs will be mapped as Edge triggered > by MSI controller. > > We should definitely select GENERIC_IRQ_SHOW_LEVEL > so that nature of IRQ interrupt line is evident in /proc/interrupts. Please settle the argument with Thomas and Marc on what the default for this option should be - in the end it just shows another line in procfs, and I see no reason for RISC-V to ever deviated from the global Linux default here, whatever that default is. > >> HANDLE_DOMAIN_IRQ > > > > We aren't using handle_domain_irq anywhere in RISC-V, no need to > > build this. > > The new RISC-V local interrupt controller driver introduced by > this patchset uses handle_domain_irq(). So select it in the patch that needs it, not anywhere else.