Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp227636yba; Tue, 23 Apr 2019 23:31:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ4p97YNv3ELuZok971eF8JyIc6o1p6UzGOS63Fu4mfopZQf1qr0dbTyoaRKZpGjfILy9o X-Received: by 2002:a17:902:6b0b:: with SMTP id o11mr30819274plk.266.1556087482544; Tue, 23 Apr 2019 23:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556087482; cv=none; d=google.com; s=arc-20160816; b=my3TrrHa/3ScUYl9CUaCrKxJHqi2xeSMk6wZpvbQMfwdMDEUqYALm9k5Wp4bIEBvQx 942kkVVIq9c/vFecIq3SNTJqzJYbSxPHJEnE+54w33FFaA2Entq39/6KiojAzFaQr+rM hJ+euYwf7LsqQ+epf3otm3D4mLiYbcIZValumsP3KpxjF8Dg/Qc9a3ai28RNAZI+qy9B TFi1jDRgF9ohcBeQav0fNcvzGV2asmj3RKzuh6hDk9fNW9otIpQcnOlsTpF9S9Seu0kA 9hWng8DTVYgH+dXjuZhL0KUTsSePImLqkH0WgaK19cd37DoQMirZSSz7ru2xM2A5N/n9 uicg== 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=soP8bfePFCa3vF2pI6nO+hpW799S0o9ponhJLuJzWx4=; b=eq9XFi5HI7+zuCv8ZKLUa1AtEHxcBiq5budSUiYaJMoegZBhqVnnGu6wBJ/WiCTJEa 1iMaeAvRWMBRbmvd4HoZfTUTc/dWnHis3eq585JmfbMEBenfOgReb7hrTiVkgffpzOVq WKlWqljI9KXVG80qIxIdYUy4vfVNw0eQkzNPosNQXG0gbMNVy8jWNJDiA0EuETRzHGND 3B7fh+GJFGfktbp5xV7JPo8U/orEE8HlhwAh6S1mAc0NfD900ogjeWpX/L61KyW4MdXS LwkHVysBBLXeHC+poX3AsrNPveYyb6EdjxQAmNPP9a8xvUAb5S83npDhsfW8jLKTd/tQ WwQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jm0Dj6ze; 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 l25si19034385pfi.9.2019.04.23.23.31.06; Tue, 23 Apr 2019 23:31:22 -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=jm0Dj6ze; 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 S1729741AbfDXG3t (ORCPT + 99 others); Wed, 24 Apr 2019 02:29:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49838 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfDXG3s (ORCPT ); Wed, 24 Apr 2019 02:29:48 -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=soP8bfePFCa3vF2pI6nO+hpW799S0o9ponhJLuJzWx4=; b=jm0Dj6zePjES+BGfcZzsILuJ0 +D7YZP2SEF3lAC8AXkwqiCOC2SyfzNBa4yrdh8glTORMwKsbf3UbtrPtMK0cXsMrDyHTDk14ru4OZ i/JteeAJ3Gdjxu6BINOlAlJUK97S3Y5gr97D5xsyi7hQVVj3RzWXFMd1W8+/aCk9Ukf8m9VXoHfn1 DBxAjZfgs2V/zhNvLANiLR3k7mS6ZOGcDEqqtRu8q2HmRvzKFNyB9DQVBIuw3UaLzM5yBW2UEsISW WqX6yPDXJuBHenwP07i0T0xalrOh7LZJeINXxAgNiGQuj1keUgDqpczMoSQwFXMtS+HP3VSZl5uw9 OMwu0RQjA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJBPf-0004fT-Vh; Wed, 24 Apr 2019 06:29:47 +0000 Date: Tue, 23 Apr 2019 23:29:47 -0700 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v3 2/3] RISC-V: Add interrupt related SCAUSE defines in asm/csr.h Message-ID: <20190424062947.GB10400@infradead.org> References: <20190415093648.7525-1-anup.patel@wdc.com> <20190415093648.7525-3-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190415093648.7525-3-anup.patel@wdc.com> 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, Apr 15, 2019 at 09:37:23AM +0000, Anup Patel wrote: > This patch adds SCAUSE interrupt flag and SCAUSE interrupt related > defines to asm/csr.h. We also use these defines in kernel/irq.c and > express SIE/SIP flags in-terms of SCAUSE interrupt causes. I'm not a fan of this. For one this pollutes csr.h with bits not really needed by most users, and it makes adding the M-mode nommu port which has to use the M-mode causes much harder: http://git.infradead.org/users/hch/misc.git/commitdiff/1221f5c32345ebe7ea2c1cd6e8a01ad4b422aaba