Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp223372imm; Mon, 2 Jul 2018 10:22:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIMxdQOmGSGWAR9Fc512AcXeKxEl/UL9Ck4ivmhtaZ9c05+535wVbvfVdfCeLUBnJYDyrOf X-Received: by 2002:a63:9402:: with SMTP id m2-v6mr22269258pge.8.1530552158433; Mon, 02 Jul 2018 10:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530552158; cv=none; d=google.com; s=arc-20160816; b=lETIOcW+xmKgP+75m5FFcZ5mxeHAUy6D27dCa6KNABIK1LgHizJC40fowM89Z8gtfB PY0U2phqml4Gl0hglXFL/ebeJYBv7/MA3lrYijJJbMz33YD5ngwNoRrsVmvafWKh9gWU 1okmvnyZvTCotkB8oUPgCwFAAEojdeB9tZzUD1Mf9rdx9NMOM/CoRnlndUdIS2StWBh2 oktdoMGEL3BDVikRHvUXpqiZOl5/QQscTU/BHaMFXhqmZ3ydpcf6O9xA2VNlT4EWmXhb 4lI8/63B8ZAE3IQj0AY2r78z7UDVJIHD3PgkY1G55PGX/vUofxPavdqpno2SpeXOAo19 Oj/A== 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:arc-authentication-results; bh=evj2uILatZHYgkzTQDgkvu0nsj44KB/qQWY04GT3xew=; b=l5y5L68l1TKNJVV0JAGK/6OQ0TYBKl7k+YGKo5dfRhkCpYuIvskS+hT122ABwUP4+4 iJax3LEgx6TtGy/C/p+21pc9MW+vXRFEcdjpMJKPc99fUH0q89E+5nRlIk5FiIeMJ5it Q3Z783B4x1m3wCU5NItzYP8QST5bC6RhcHrwPDNnkIfIPO/xik1pK2Qw0vajjGUfU5cq FUjznlz0+6uAcNEDPkxYw4Ph/hkPKbwrClw1mXajujT3+6Svc+ljyy/RypPu5JutjSad RpjirRDaMekHCERlk826YtSBQD0OIn3e20Q9tGoMr5mAdEw3dl1urI/BBGhplPgU5PcJ T1tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=JIg3z1Lm; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9-v6si11925499pfc.121.2018.07.02.10.22.23; Mon, 02 Jul 2018 10:22:38 -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=@oracle.com header.s=corp-2017-10-26 header.b=JIg3z1Lm; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbeGBRVc (ORCPT + 99 others); Mon, 2 Jul 2018 13:21:32 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:58902 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752215AbeGBRV2 (ORCPT ); Mon, 2 Jul 2018 13:21:28 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w62HIjmA179000; Mon, 2 Jul 2018 17:18:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=evj2uILatZHYgkzTQDgkvu0nsj44KB/qQWY04GT3xew=; b=JIg3z1LmlJ3Jw6uVlZ07Ag7WKiLdzyshhICm8LdvNPsnPxUpGBbXpFtU9bVjWqnHvAQH 4c9TMtryQEBph1HeEH2kBn6p3G//PZwGy39HCSyPlbOfaxE0Tb33/Ye9vOPiMD0jJchI GOXXCdPmjCElRZmK9tv0BK5VrYGSRawPDicZXAyNfYrdV/EjQ7jYSSwKHf4mg0V5Hfrl FmIoDAm43AADIJLbil6ly0opksAG9/mtSTUk0imUdVPWxg5I1hzmQ0Fb8GeLnGx8kwI6 fT4+Gp4tCJmlc7D7Cs7EGQ8sg2tmoKZ6WiCRjNxbUC1Jku0M1MVRiUZJbYDJZ7Zo1NU2 Zw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2jx1tnwcdd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Jul 2018 17:18:44 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w62HIhN7002112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Jul 2018 17:18:43 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w62HIcJx008395; Mon, 2 Jul 2018 17:18:38 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Jul 2018 10:18:38 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id 64D336A00C2; Mon, 2 Jul 2018 13:18:36 -0400 (EDT) Date: Mon, 2 Jul 2018 13:18:36 -0400 From: Konrad Rzeszutek Wilk To: Thomas Gleixner , jgross@suse.com Cc: Pavel Tatashin , Steven Sistare , Daniel Jordan , linux@armlinux.org.uk, Martin Schwidefsky , Heiko Carstens , John Stultz , sboyd@codeaurora.org, x86@kernel.org, LKML , mingo@redhat.com, "H. Peter Anvin" , douly.fnst@cn.fujitsu.com, Peter Zijlstra , Prarit Bhargava , feng.tang@intel.com, Petr Mladek , gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, andriy.shevchenko@linux.intel.com, boris.ostrovsky@oracle.com, pbonzini@redhat.com, xen-devel@lists.xensource.com Subject: Re: [PATCH v12 09/11] x86/tsc: prepare for early sched_clock Message-ID: <20180702171836.GD22876@char.us.oracle.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8942 signatures=668704 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807020194 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 09:30:10AM +0200, Thomas Gleixner wrote: > On Thu, 28 Jun 2018, Pavel Tatashin wrote: > > On Thu, Jun 28, 2018 at 11:23 AM Thomas Gleixner wrote: > > Hi Thomas, > > > > In addition to above, we have xen hvm: > > > > setup_arch() > > ... > > init_hypervisor_platform(); > > x86_init.hyper.init_platform(); > > xen_hvm_guest_init() > > xen_hvm_init_time_ops(); > > Duh. Missed that completely. > > > ... > > tsc_early_delay_calibrate(); > > tsc_khz = x86_platform.calibrate_tsc(); == xen_tsc_khz() > > ... > > > > Which works early. > > > > So, what should we do with xen, which seems to be the only platform > > that would provide different tsc frequency early and late, because of > > different calibration method? > > Fix it? I have no idea why XEN has two variants of the scheme and I neither > have a clue why the KVM clock stuff is late. Added Juergen (Xen). > > Thanks, > > tglx >