Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1997126yba; Mon, 15 Apr 2019 02:48:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFlUJBhoEb0FwkrqHWe753GPoaWtwqWe5IJ27rLHsuuy64V9fLyLUPOMrJ6emOlLOSX4xr X-Received: by 2002:a63:720e:: with SMTP id n14mr68318528pgc.93.1555321718505; Mon, 15 Apr 2019 02:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555321718; cv=none; d=google.com; s=arc-20160816; b=C0lr52WxtKJwL6pIyeW+m62UmDiqszT6fqT3MAZmwqK1kwcAvmPMhWPVyXmeAHdTvk z5jhtRU26dpv0a7DnpGCtZMZBJlVlX9RqBVaLDFynXIIuJpyYAbMaUgL7JGiMz83dHVM 3fPft6NHCBK1JRQeV2i6GB1UUfOj+bETSEzavMfRXFealf2j0D7UMDCtVENTL4/T2xBP pMgbT8H+j7X3BBGhUlz0ogxZOsEdtILjP2biHS+2i4e+17QFdF6xB0RvhD1qw1LdhQ/8 bobGDNZNw+YFzNTWtDGND/c1lj3mB9YAQJ+uM8AloS7WvhANZhZLNYjPIKaFadGgjNtV L7HA== 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=hNO72mY6owZc9BbDkbkB6z1MumKqdRQ98mR/U6MEzko=; b=e8JA5Ixy8fuU1cSEVIl2scY85za+fAQayq4Ty1dpUX90XJN0XbshugY3nMlfHYIxnq 1Klo7MfAWxApdWs9op2slNbKJKv/OenzeH6XDZEsMW5eF5rSkLs57KJHdUQaqzx5g7Dh wcveEi2pfTOVQA4u534nO2rYbzBu7ya0CF51zXyxNc9Dj/nNZMamuroJFwiQWMzMEIYK a6rR198FS/IF0AtgyO7qVm2WNKHTAVzwQq79W6BGrvoPeV2sFuHlo181VlIfEUdgGofG Kzq1w4BFHAZ38rIWyZURDcmmHOzbnYM3cCF+XIqLw4YxBIBudKwrhtUqQFTcRGoh6Zdr 4stQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=q6XInizr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si44024163pls.151.2019.04.15.02.48.21; Mon, 15 Apr 2019 02:48: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=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=q6XInizr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbfDOJro (ORCPT + 99 others); Mon, 15 Apr 2019 05:47:44 -0400 Received: from 50-203-203-244-static.hfc.comcastbusiness.net ([50.203.203.244]:59106 "EHLO mail.codeweavers.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfDOJro (ORCPT ); Mon, 15 Apr 2019 05:47:44 -0400 X-Greylist: delayed 1013 seconds by postgrey-1.27 at vger.kernel.org; Mon, 15 Apr 2019 05:47:43 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codeweavers.com; s=6377696661; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hNO72mY6owZc9BbDkbkB6z1MumKqdRQ98mR/U6MEzko=; b=q6XInizrZMsjXaI5QsIP0B2zq bNLE+82bw2qRak7Auo29DUAx+nKMkn9AdFa0uJz77YL2JUCo1MDH/GvA6RIb0VAc69uyEnV/OrdOl AIFqaL1Z2X87ZTiV8bRcmH/aTS4pocqTAltHifuoGYBiOU4ZettOdUT88/rJPZOmQCQ2M=; Received: from merlot.physics.ox.ac.uk ([163.1.241.98] helo=merlot) by mail.codeweavers.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hFxx3-0008JV-VR; Mon, 15 Apr 2019 04:30:59 -0500 Received: from daviesh by merlot with local (Exim 4.90_1) (envelope-from ) id 1hFxwp-0005h8-KS; Mon, 15 Apr 2019 10:30:43 +0100 Date: Mon, 15 Apr 2019 10:30:43 +0100 From: Huw Davies To: Thomas Gleixner Cc: linux kernel , Andy Lutomirski , Vincenzo Frascino Subject: Re: [PATCH 2/3] x86/vdso: Allow clock specific mult and shift values Message-ID: <20190415093042.GA21726@merlot.physics.ox.ac.uk> References: <20190411101205.10006-1-huw@codeweavers.com> <20190411101205.10006-3-huw@codeweavers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Score: -106.0 X-Spam-Report: Spam detection software, running on the system "mail.codeweavers.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, Apr 14, 2019 at 12:53:32PM +0200, Thomas Gleixner wrote: > So it stays in the same cache line, but as we move the VDSO to generic > code, the mask field needs to stay and this will make baseti [...] Content analysis details: (-106.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -100 USER_IN_WHITELIST From: address is in the user's white-list -6.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 14, 2019 at 12:53:32PM +0200, Thomas Gleixner wrote: > So it stays in the same cache line, but as we move the VDSO to generic > code, the mask field needs to stay and this will make basetime[CLOCK_MONOTONIC] > overlap into the next cache line. Thanks for the great review; this is a good point. > See https://lkml.kernel.org/r/alpine.DEB.2.21.1902231727060.1666@nanos.tec.linutronix.de > for an alternate solution to this problem, which avoids this and just gives > CLOCK_MONOTONIC_RAW a separate storage space alltogether. I can certainly do this for the x86 vdso. Would that be useful or should I wait for Vincenzo's work on the generic vdso first? Many thanks, Huw.