Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1781589yba; Thu, 25 Apr 2019 05:44:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4G+EGHG2ra+yMLPcQqe554fx0LefMePmm+7c71k2I/jayOYrFFuSmdYYz7q6tZyvCOy3M X-Received: by 2002:a63:fb58:: with SMTP id w24mr1195601pgj.444.1556196293975; Thu, 25 Apr 2019 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556196293; cv=none; d=google.com; s=arc-20160816; b=Y5Q7+or4qzA/lkAbF2e8K7ZYL5QnmnJYex7laS9YBZ+MASerevhHTx9bxUruqSZC+P sA10iwb1SNOU4Ufme+XWD3qWw9hqWL5pqslQa7TSW9mGCRIGF3ZHSm0ww65kc016TxkW 4N81hx0AvtkUBWHGn1zMsASWUuEmXWRMzxAq1Ve6UfyOy8YmA6e8lLKPBq+ovrQcUpq3 EzNZQS5r0oRFZyMY2GRwkDLjjg4gbaYQxHlIw0kf/yUGTNkVX3i97Y6jd9Yri02gda7J hSbinNrhXOQyk7cosA8hip7Fjoqz6PkgK6xDsvT87B6IU8G7kOFpABlW+4JV866LYqn5 Wk6g== 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 :in-reply-to:references:mime-version:dkim-signature; bh=U9RYUwqYs8GxnXHLt/p3Fz6x5DoO+pRsegYtnMfkhYI=; b=EJP+yCuyONnjmxQXUqzr4cIBN9pXjcSr7uaCdw2AUr0B/BYsR16UCE/CFonh18dIuU g8GqLjmQttXC2DyhDJDixXUB0x3Lvxey8OF9WXUqczXWG1+vFCl65xiobQnMxExbAQ2o 5dqaIVr23svfstk6676kC2O+c4baY06Z3rKJNL7KJzBXsjGSc05/AN1foeQssy1nJBwE LvJsKeuXPHEmmlC3+1vBgOXmj9BgOaE/Ot7qhuS7ZJqMEI+bzE57BLHSjImMb0Z/rCKM a9lgxHXPrnHynJVo3awx2XFFM4azIRsP99x0wn/Yl0gqVQ5I8cONax1iTvJajVljv8de i9Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=OW30lv7+; 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 a23si11217065pgw.142.2019.04.25.05.44.39; Thu, 25 Apr 2019 05:44:53 -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=OW30lv7+; 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 S1729168AbfDYIRk (ORCPT + 99 others); Thu, 25 Apr 2019 04:17:40 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34077 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbfDYIRj (ORCPT ); Thu, 25 Apr 2019 04:17:39 -0400 Received: by mail-wr1-f68.google.com with SMTP id c6so23311000wrm.1 for ; Thu, 25 Apr 2019 01:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U9RYUwqYs8GxnXHLt/p3Fz6x5DoO+pRsegYtnMfkhYI=; b=OW30lv7+KMGA1SvNnrC1b9nUxyPmrhzCwlLdnhO49dL4Y2a3DCBE1TGq2LS2gO18ts bNVhuCfsZ2dYI3OqebC2QB1SRjQyM8HndAJuRSFxsqmU2dZMcJZEI7+EKm+0iNNErUvP 52/iFBVr5IzSt08jveciUgxVXttQ4d+GdNmM85RPSBT+SIpqMnNYT2HJSqz0kv46BH1Y c1jvlsP+FOxDQ2Eg8X2Aq4+t1Hpdi2lnJoocoAulmgT7hjtdGbSEUapFtuldk2nhAmRd 2MrOCtd9qhO2QzTLwNQFqCnF8Bg0YurSosNVvqYW6ASIR/06jfc0vrWzlgJmgrIEY1do 1vIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U9RYUwqYs8GxnXHLt/p3Fz6x5DoO+pRsegYtnMfkhYI=; b=qezDImjgos91Hwiir5O3rKOY2KzKVE79tq0mxpxKPVwsWK/d/IpDBbnLbH35uijFRZ WA/99qUz+bsQT3lk1VsIH+rWX3iddlyVN1+BAfV9g9ot/l4CDMDjNBeoLzpmVFaI4zCM skMpCGP2nLtS7A2FdK3dusTztDbL2BVjuUD5b7KfQYmspfgegDwjV8X3WtgR4ZZoGznB sYfqTVDiU0lbuc6xHyN1Y94s3NV7rrWYYC1bKa5Llc0rfza5oKq+lD8/5wJdGcUJBCID PtuKYvUkqdMfEYulqvcSctryWsIasABRs1zRugHaA+bBs9OihCMBxtpjrgs0NEON166R z1Og== X-Gm-Message-State: APjAAAX6x+1oiQLoKUb+b20dxDh6JAsB9gLwPt53PHIyr33nxhxlEAJq 2/+GkI2h+RMJIJ6WudWjOttjYT0Cm8JcfscxvDUD9A== X-Received: by 2002:a5d:5346:: with SMTP id t6mr4334662wrv.59.1556180257986; Thu, 25 Apr 2019 01:17:37 -0700 (PDT) MIME-Version: 1.0 References: <20190425055015.45487-1-anup.patel@wdc.com> <20190425055015.45487-3-anup.patel@wdc.com> <20190425055757.GA30545@infradead.org> <20190425080117.GA3575@infradead.org> In-Reply-To: <20190425080117.GA3575@infradead.org> From: Anup Patel Date: Thu, 25 Apr 2019 13:47:26 +0530 Message-ID: Subject: Re: [PATCH v4 2/3] RISC-V: Add interrupt related SCAUSE defines in asm/csr.h To: Christoph Hellwig Cc: Palmer Dabbelt , Anup Patel , "linux-kernel@vger.kernel.org" , Atish Patra , Albert Ou , Paul Walmsley , "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 Thu, Apr 25, 2019 at 1:31 PM Christoph Hellwig wrote: > > On Thu, Apr 25, 2019 at 12:46:52PM +0530, Anup Patel wrote: > > On Thu, Apr 25, 2019 at 11:28 AM Christoph Hellwig wrote: > > > > > > > +#ifdef CONFIG_64BIT > > > > +#define SCAUSE_IRQ_FLAG _AC(0x8000000000000000, UL) > > > > +#else > > > > +#define SCAUSE_IRQ_FLAG _AC(0x80000000, UL) > > > > +#endif > > > > > > Please keep the existing defintion that doesn't need an ifdef.. > > > > Sure, will do. > > While we're at it: I don't think we need both INTERRUPT_CAUSE_FLAG and > SCAUSE_IRQ_FLAG. Oops, I already send v5. Saw your comment just now. Regards, Anup