Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3893511rdb; Thu, 14 Sep 2023 06:08:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzAOvc+jEvZl78tCWebZjuHoPm9MFCQPL61hg2Hv48iIqTdGOfPrnmTgKAZ/2837F3ucR7 X-Received: by 2002:a17:903:1252:b0:1c1:ed61:e058 with SMTP id u18-20020a170903125200b001c1ed61e058mr6409480plh.16.1694696906636; Thu, 14 Sep 2023 06:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694696906; cv=none; d=google.com; s=arc-20160816; b=f+FlTGgE3W4GNGoqzPzrZ6nc91CXVXhIff/3qQiGLBctVqhx8CBRRE8Z3snE88i3da cL0smTa1B5UlO7EWrZl8C8dYI74Pk0AcTpf1h11Y5GtBM0uqFRHVqx0stx0UjgRPWCNL het2stFFLoUF3ZZuNnGYqxFUj8048KwM4VntW52Cy+A6CVMeFolJwAF/uDZbmcyPZKBz 867rQc8qJCzW8RFlsA3c+ACSCaM2cKX7E72WyQ52dj+4NXZZS3aqsZyA00MI61AZzz3v U5R5Edii9W4z5jBVgaXXtV7xatHasfH84uZCeNEJrvnR0haXE1+Hb+hgBABbtVqcMP5l LdIQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gWUcd8pSYtxXYvd9oSqI7pjdvjldeQkIC/vstSIsCY4=; fh=BnuWm8ELyLs2GtYOlDImHVuwZLRYppNo5eAslFDpOvs=; b=tVnLkycQ8GgTVi3ZnPIV5JfdoVnmRjKdSEi0U1r37kv3b/A6FG+qtYMIhTXUQBSfCv 6qatrX1+lNtloV/8PdEQue8SOxO7mcrINCeZhDSMhGbnHa6+nqjFM/gQlJJziZxAFr5V VJVypicUELWKpY+StgBH2Ns42w3X7guDg0N1MDUk7WlErvNJja9spazJ/1wUrrWCeMtL GQ5esU6DvL0NxCB8xCQYIP6B3mEy9TM1Aup9CdynfhqAiDtcpb89GBYpkK+4gm0Iqee5 hGXm8i/TyNaeo8jJdX+PiZwACoveFmwoJMlVDk+pY4ssBcnISvRogUYIWW8mqqcNuFZ5 anSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=UUAUK2MC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u12-20020a17090341cc00b001b801bd7fbasi1751377ple.417.2023.09.14.06.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:08:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=UUAUK2MC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3BFD4824BAF0; Thu, 14 Sep 2023 02:53:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237526AbjINJxA (ORCPT + 99 others); Thu, 14 Sep 2023 05:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237299AbjINJw6 (ORCPT ); Thu, 14 Sep 2023 05:52:58 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF708CCD; Thu, 14 Sep 2023 02:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1694685174; x=1726221174; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zsiz6QuHidta1MZIjKdX2IK5RrYiU1OXGZGUU7TjwBM=; b=UUAUK2MCMYTCIWfGqR91kF7hPczvS6zwvGys9kh9WxzFse1w6/nxcGNH m4H3I8XbYjL+4JkOVqurO8h9l30GBllpXC7Qf8txlARlwYY+6Vk0+Zu39 /uH7SWstSRj89LWrnvh81tZyPtkp25CwgAxtqFJ0HyZYWFBRiait541Za lUER8RLJuIXmiHh92AUQWPLBqmSsob7QkJxL/4cSk3hQkZbwzo157Ys+I 6hHNIOcADQlZlGNdFXKhEbL0nzW11R7YEeGQrqC0x50PuuopQaF+WCUra U74a3hntGjlRiO391fpg5YZYSHk+zfSP8IULJVoyc5Xz3k9Ty/uOUT8uM w==; X-CSE-ConnectionGUID: jCeTh2jUTiuWpEOHIgZ08A== X-CSE-MsgGUID: UY8Fpe7jT9qj55hJGpC4ZQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="asc'?scan'208";a="4801598" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 14 Sep 2023 02:52:53 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 14 Sep 2023 02:52:36 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 14 Sep 2023 02:52:31 -0700 Date: Thu, 14 Sep 2023 10:52:15 +0100 From: Conor Dooley To: Andrew Jones CC: Haibo Xu , , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Sean Christopherson , Ricardo Koller , Vishal Annapurve , Vitaly Kuznetsov , Vipin Sharma , David Matlack , Colton Lewis , Aaron Lewis , Thomas Huth , , , , , , , Subject: Re: [PATCH v3 9/9] KVM: riscv: selftests: Add sstc timer test Message-ID: <20230914-reflector-preshow-786425ad7ae2@wendy> References: <64e0637cd6f22dd7557ed44bd2242001e7830d1c.1694421911.git.haibo1.xu@intel.com> <20230914-ee133dd5e804282ce28833d6@orel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QNGDKlO9qNzaNQl+" Content-Disposition: inline In-Reply-To: <20230914-ee133dd5e804282ce28833d6@orel> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 02:53:00 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email --QNGDKlO9qNzaNQl+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2023 at 11:36:01AM +0200, Andrew Jones wrote: > > +static inline void cpu_relax(void) > > +{ > > +#ifdef __riscv_zihintpause > > + asm volatile("pause" ::: "memory"); > > +#else > > + /* Encoding of the pause instruction */ > > + asm volatile(".4byte 0x100000F" ::: "memory"); > > +#endif > > +} >=20 > cpu_relax() should go to include/riscv/processor.h Can the one from asm/vdso/processor.h be reused, or are there special considerations preventing that? --QNGDKlO9qNzaNQl+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQLXzgAKCRB4tDGHoIJi 0jRlAP0UeFru9d2hDB+V95CsBHvHieORe8d/jeHJTK7NMGIDgwD8Dqdge5VTTSyn ljeYudKmUM0GDQOhOOq8DQG3G+sO5gM= =uzJX -----END PGP SIGNATURE----- --QNGDKlO9qNzaNQl+--