Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp37956imu; Wed, 12 Dec 2018 12:02:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wo5Shwz/Mseu19j60GhmHSqOs36VuovWPJIj/3/rAgzvwpRHbqlv/DPa/gxgO2rFwZ5+vx X-Received: by 2002:a63:c42:: with SMTP id 2mr19480979pgm.372.1544644975958; Wed, 12 Dec 2018 12:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544644975; cv=none; d=google.com; s=arc-20160816; b=lmkl0pJP0Lwp5GMfS/rFOc/HWuP2DqYNfEJQGr1Bb7Xb9MHiMJAbiCk+sDOycFiJAV WqBqmeukSpS5/vEcqPMKMuPxNLFTv28xLVjP5qPROuScxTRIoIuDor7VnHkPJhV35zk1 nswabyvrvxH5NcD42BOiNxWmfvi3kXpysxBsSLe3CeZeEq1Di2G5Ztb++xFIc7KPS/pV Q8gfXFNGcosBA9Nxg6Rd/TOtF98e966GGT52LLAKLVgYJEcTeYrqpwbfC45ftLl0D4w0 tMJuepXcdbIyV4fFtfhX6b0oKiixXSEIA7bGFWxLGWtqBD83JEKbqIy3DoZgu5DiS6pq sKTw== 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=0sTvYlXu7v0gxztiS6M0w+P207TXjeReekhtCXgqiaU=; b=JamhQ5ibPQNZl9ohcbbSYozF1T8eIPNepw2Kg9sg5ZdcgDvuQk+7kOhIhrVULkhmxi EHFG60UXFrwlPDbhNZsxRIu9FDXm5cy7cqvliyP53p5G8eap8w/QQoDw9Ih0E0KJ4puw +ZqK16JqBVgVjgfHeZnumxP365PZD6qbtMzpfCu+FD9F0kDrtIlNQlqzIEiuvEgv/7I1 3k544NRBNOI7LvRxxIG+7UU2k36G/Vii7P2Z0yEHhgSer2f7KdbFlvuPHaOmVGw3Vn94 7kfLjCpaFC3ZcdvBeRPXRV/Y7MBpyAIVQw+B4tpUbUa2SnFqMQdAM11il6FDFM2LXRdH +MeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=As3SXsaJ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si15795209pgl.29.2018.12.12.12.01.47; Wed, 12 Dec 2018 12:02:55 -0800 (PST) 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=@alien8.de header.s=dkim header.b=As3SXsaJ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbeLLUAR (ORCPT + 99 others); Wed, 12 Dec 2018 15:00:17 -0500 Received: from mail.skyhub.de ([5.9.137.197]:32964 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbeLLUAQ (ORCPT ); Wed, 12 Dec 2018 15:00:16 -0500 Received: from zn.tnic (p200300EC2BCDD8007CFD4A6887308591.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:d800:7cfd:4a68:8730:8591]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B1B191EC0B89; Wed, 12 Dec 2018 21:00:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544644814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=0sTvYlXu7v0gxztiS6M0w+P207TXjeReekhtCXgqiaU=; b=As3SXsaJ6zw/tRa5mkEL2GEH6Z7XNSgQRy0FkBXyYxXv2a15FEnLsx9h6+k15W5s2vNxEp HGkh0CgF/oa8Dz82VJARsz7F/0Q7xvr7bwnwPAGejRJtX5Z7JWd1nS10Vkd0DGl7z8+zjO QLZQ4l0uRCvT0Ef+GaD0aRkwKYjKHKg= Date: Wed, 12 Dec 2018 21:00:05 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Tom Lendacky , LKML , X86 ML , "H. Peter Anvin" , Josh Poimboeuf , Peter Zijlstra , John Stultz Subject: Re: [RFC PATCH 4/4] x86/TSC: Use RDTSCP Message-ID: <20181212200005.GF6653@zn.tnic> References: <20181211222326.14581-1-bp@alien8.de> <20181211222326.14581-5-bp@alien8.de> <59aad362-4a5b-dd8b-642f-0dc3f83cf7ee@amd.com> <20181211233901.GV27375@zn.tnic> <20181212100814.GB6653@zn.tnic> <20181212184459.GE6653@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 12, 2018 at 10:50:30AM -0800, Andy Lutomirski wrote: > As far as I know, RDTSCP gets the job done, as does LFENCE, RDTSC on > Intel. Same on AMD when LFENCE has been made dispatch-serializing. > There was a big discussion a few years ago where we changed it > from LFENCE;RDTSC;LFENCE to just LFENCE;RDTSC after everyone was > reasonably convinced that the uarch would not dispatch two RDTSCs > backwards if the first one was immediately preceeded by LFENCE. Yeah, the second one won't pass the LFENCE so you won't see time going backwards, sure. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.