Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1779874rwo; Wed, 2 Aug 2023 22:23:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlE/HTyQzy7DsegIwS0HPpUO+XmgCIj20v8cR8628GKzgV+t4dmFK0MCJFgljoPJ1xg0bKpI X-Received: by 2002:a05:6402:35d2:b0:522:4e49:4e45 with SMTP id z18-20020a05640235d200b005224e494e45mr9913973edc.0.1691040200622; Wed, 02 Aug 2023 22:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691040200; cv=none; d=google.com; s=arc-20160816; b=is/MMaXiu2Mgn4A0fuHSLAvzRKg1Wc00t3E1Lo3LVyKyk1Q2XyeBoJR5pLBWA26YNX TO2hKtjRfTRGFBmHUIqFQf+GwEYjcqPJB4Mhwagug8hKl5HSLFhIMv501G47sp1Ijg8z 3l8SFanopbVF5thwCAAQHZ+IH/e/kfaAlQpNpukoWNZE+SRPj8Go0qQtyfvP2ZBVWz9N qfWJls6KhzxEHeudrDSM7YRY+BfFKyQrruH+vGR2oxv677B3oV/6++2voXtpGUVlIHa4 4msS1db3+cRcSQzq1Rg/3racaIeuif/0M6KEfSmb8OWtoXvcFDuihNucqrcpRgY7V4rZ ygdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RPVmAaTILjh9hGuw97kMB1u3whI4eAAWpL6NDtmyCfU=; fh=5nd66IJ4uQPhchwUC+gMVGFOJws1V2ykRxedJ7OVePE=; b=CyETacQ00BHYbtD9cU7DqP/c8243cwGKGWbLLidH9MuDKe7JvholuYwpTStDCdvxld aIsslpjlYRIjVI5yTpurvL8P0oCz0HcTC4FZFc1urAahT8riDWRL55x1LYJJqi39Aigu B+amH03XRb342QuRSQHOTGUSQfVpLquMJVYXkzZIhp1voN91zpZFsLXT7VOs06IPNsLK CMpoByvU9q/KUAZDTQJT/4jcfmrKqvoq9lQC+B6j6tCwS0rJ+wDbYIr/zkDo3B2xXhrU mro0q3QjDoQ1RsAP2lzrsHiKTdiy3ZBA73lWOSPbAd6MklfLL/Fu/GLQM6yWpg3W/g9K AkKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFvnua7i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020aa7c2c8000000b00522b92ae6bfsi888961edp.504.2023.08.02.22.22.25; Wed, 02 Aug 2023 22:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uFvnua7i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbjHCDOE (ORCPT + 99 others); Wed, 2 Aug 2023 23:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232183AbjHCDOA (ORCPT ); Wed, 2 Aug 2023 23:14:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EFE82733; Wed, 2 Aug 2023 20:13:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 393B461BBB; Thu, 3 Aug 2023 03:13:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E38EC433C8; Thu, 3 Aug 2023 03:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691032430; bh=uSf3xwCl9efisUoSoRQolXl/7p0nzj1kHz1aHfTxnaQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uFvnua7i+h2fTCQnHkPAqHkhk4HR3P1ec2xaUq82RSv28DeurXfTFLyeOVT3N6t2T Zi+KP8sQToelogOWDV8DtPiMR8Rqu841G+Vuso7CJTxQ98EG+AF8RqM7YpeLTlpL10 /4rLkdHqqROKCyrS3vD9SjL/Rxbarby8sOFZ4Z3IemhHX+8Mvn0S2m+wG5IeJaw0Qv //FtbaC5/s05HRXE2/IJULu1h+H3jOspin6MkVFkt/x5ye+ArRtbSknZeUkLpjePT1 lnNdOodIgzRMyXO5qWmI0uFmc1vIVy5l22EvaYnDOJhFV8arl2VglqsgA+KhySREUp /U9Srj+PmyrCQ== Date: Wed, 2 Aug 2023 23:13:34 -0400 From: Guo Ren To: Haibo Xu Cc: Andrew Jones , Haibo Xu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Anup Patel , Atish Patra , Sean Christopherson , Vipin Sharma , Marc Zyngier , Colton Lewis , Andrew Jones , Vishal Annapurve , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: Re: [PATCH 1/4] tools: riscv: Add header file csr.h Message-ID: References: <35ce2b9f7ca655eb3af13730b1ca9f05b518e08f.1690364259.git.haibo1.xu@intel.com> <20230728-879500f157954d849fb303ec@orel> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 02, 2023 at 10:05:00AM +0800, Haibo Xu wrote: > On Fri, Jul 28, 2023 at 5:43 PM Andrew Jones wrote: > > > > On Thu, Jul 27, 2023 at 03:20:05PM +0800, Haibo Xu wrote: > > > Borrow some of the csr definitions and operations from kernel's > > > arch/riscv/include/asm/csr.h to tools/ for riscv. > > > > You should copy the entire file verbatim. > > > > Ok, will copy all the definitions in the original csr.h Why not include the original one? Maintain the one csr.h is more comfortable. > > > Thanks, > > drew >