Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp308143yba; Sat, 13 Apr 2019 01:17:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgPMTRyL9HEhjGVSvDroWe+FtUBL8aG5DwEJT8NzO/aSqL5J3WXUY4Ls/yrEiC1qSORW4V X-Received: by 2002:aa7:8a92:: with SMTP id a18mr62741403pfc.218.1555143447582; Sat, 13 Apr 2019 01:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555143447; cv=none; d=google.com; s=arc-20160816; b=pE3ueaS1HKynsj1dlLz+BnnkRIZ6uFSE/3CYMqS8omi4xamV8hI3pzph98qJb8eAbk 7n7FdyXcB3Zh9LZM8+RhrR4HLcJJRJtNHLqjmFrZkOBtMHeCBspQLIdFj75leLa3uiQ2 uO4+3rhh2jVdvh/70mg+ojrJQpqp2ZX1cOoK5cLUrB7+GoCRucyZzKP9X0RA+aqA6ZOn Y4jimFjfMB5GMxiUEhLIlipcXz84IWDLZcPwHsZ9bR5tKddPR/NFH2dKT7mfA4TyjUf6 OQOEX22NkqQ7v9CAoVwual53LSyG7JSUBDXnFg4VW4ODCiY++gh4Uywtj5jtSKSO2cX3 8iAQ== 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=Wn4/xM7eXxUVxJInAMlGqk/Y3nt07oH+FHDMqGpVAZs=; b=MrLGqoIuFtmB5nD0Zsly3t4VEpmxEB8F5SyHWTxDpyd0lev+ukor7/znQQR0PHXB2V AKrbPrYRHFRnIcMP/DhuqJdYSAai8ZLwlfj6ibMLBbUZYICqsndxiiQ04T1FxxFc9iVU Y9E92Kz5votABD3qeLkiq42VfXp9xdIZN3G7jIC6yMKPF25cA8N41biJIHSp9KTLzFWm hc0O0JvMyWTxqeTggVqCZKq1BdG1Tsg4go0Q5DbLqhIWw3vmBMhw3qp31J9invWQRWDR gMOqEduSb7wv8sKu+RG6H6bHbFh3GBO5uOm1YEDAjVapsjhf4pUAECT+B+Lq29AgAwq0 m9EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=MUlymysR; 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 r15si23218344pfn.4.2019.04.13.01.17.11; Sat, 13 Apr 2019 01:17:27 -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=MUlymysR; 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 S1727103AbfDMIOc (ORCPT + 99 others); Sat, 13 Apr 2019 04:14:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39479 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbfDMIOc (ORCPT ); Sat, 13 Apr 2019 04:14:32 -0400 Received: by mail-wr1-f67.google.com with SMTP id j9so14865945wrn.6 for ; Sat, 13 Apr 2019 01:14:30 -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=Wn4/xM7eXxUVxJInAMlGqk/Y3nt07oH+FHDMqGpVAZs=; b=MUlymysRm4wgBaNp4BGtjqDOxDRkuiyq3vIjJsDg9NI7vGsv28yqcy196A1I/2XM4g bQdyDqqp1FKVQXgYQB3JntfZ9xev47hXWHYZ3S236rpYCjFd12RJ2HgshuoK3AWPmG/F zMDixzU7uTPU3nOK1jDwnyvjvenxU2BMydAXbynNJx/WpUTJKAjlfxeapYfSHOffKFmM 7wa0CSgniqQKLVqL/gOMLezWJuKUZA7yNr1MvpI9/mabhINCtfW1YC9gZGWt7GZb3gXw fWNoX7gjaQlUCFJnZPy4Sg3c3Svhgv5pgwLoGwFJCJUgYvMNKc2bxvE2/9+1SLNP05UV 58HA== 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=Wn4/xM7eXxUVxJInAMlGqk/Y3nt07oH+FHDMqGpVAZs=; b=lWnEfeScsKGWPgDfmkf7v2O4+YDqLFbdaU2W67qnhx16Gec96HVpkH2mD4VNHx/1jF cvhTmCgGl1Z7IYpVdqYVvYK8CbBrqEGelBfp/W5lrZ72/bjyEaJBpMqUzQhS8Oh/7Hl0 i3cUYBrv6Xu/yuU3KfzzjZToBFw4xg+p+jemMpacfdKGCvezMLuOUPiuhGD3QQ/6++vk FwW5/jICvk97Ha/9Vbr0VONcMW5I09tlJpy8jjig6R7OlPgEoUkptO07PTfTi+1H8xDU 8PEok3eksVf0vPZdT42Tgx/rIQaTFAiya2P12oHZ1j72/Q1yCdZedpAzknWhbfskONXV XxtA== X-Gm-Message-State: APjAAAUOFoPIbt5mUk6su9x6jFbOqASQGKXX1tCfNR1dcHUNs0QLdT8N HfuvuTp7aQ+mGU50MGdP5AcRtwHMalz3NSqLKaToZQ== X-Received: by 2002:adf:f110:: with SMTP id r16mr685549wro.153.1555143269795; Sat, 13 Apr 2019 01:14:29 -0700 (PDT) MIME-Version: 1.0 References: <20190413073906.53676-1-anup.patel@wdc.com> <20190413073906.53676-2-anup.patel@wdc.com> <20190413075355.GA30428@infradead.org> In-Reply-To: <20190413075355.GA30428@infradead.org> From: Anup Patel Date: Sat, 13 Apr 2019 13:44:18 +0530 Message-ID: Subject: Re: [PATCH 1/3] RISC-V: Add separate asm/encoding.h for spec related defines To: Christoph Hellwig Cc: Anup Patel , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Atish Patra , 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 Sat, Apr 13, 2019 at 1:23 PM Christoph Hellwig wrote: > > On Sat, Apr 13, 2019 at 07:39:35AM +0000, Anup Patel wrote: > > It's better to have all RISC-V spec related defines in one place > > so this patch adds separate asm/encoding.h for such defines which > > can be included in assembly as well as C code. > > can be included from assembly just fine already. > and we already do that. So I don't really see much of a point > in splitting it. We would be also having #defines which will help us decode load/store instructions as well. This will be used for load/store emulation for MMIO devices in KVM hypervisor. Consider this patch as preparatory patch for the KVM support we are working on. Regards, Anup