Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1999736yba; Mon, 15 Apr 2019 02:52:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFaVcvTMBNq3r0KToHKLkxqKUZa19VV+wpA+37dXwlbw0jh9BIyU5TZqeHjwVI2wBity34 X-Received: by 2002:a17:902:1c9:: with SMTP id b67mr52704941plb.158.1555321961756; Mon, 15 Apr 2019 02:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555321961; cv=none; d=google.com; s=arc-20160816; b=wZolPZpUrcIVbai4La4eNLXiaKirZ4XyUJk9hTh7jiIsRV6Hh4VNzR4Zd8V2LProDe 8DNDyDFvRcQmuiyQOaIHnIUTlW76/5y5H+cCojmtEfHyWFMy+Rf69UNqLXO4yE3uKOWD IyPEXIDeZSjRiU0F4JPMB1SjVpS0qJ6aaKPJBUE4ii131pUMu1DvrOxnxfzLkVji8ouU tZjFNtbDOa9YYfH+PQbXWL34iI0vIDKmD/8fCRItZyTCY6dNYZ1LtFnWzJu6Rppzw/sK CsuLsnXvikwP5qAG2Ehz6uW1n6NQYBYLMgzXT6X6oUyqjHbBNZoPj93lCP6ZYhbeFYrA Inew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=T1cYSz8wFm+eDR1XB2OWVo+B1nJJSPMMqZZCvn4BwAw=; b=RPatZVUG/LNgknTHHjnplhpE3zF8+HAINASUS0RRESjvt7LMcWU4KivGAaf4CJiY5e lffP+UNQG4TLLTlalUic1mBdem354riJ2sYYjDRlujCb9Tyu9Dj5K+O8YBB9015O3Btg SZ1QAL/+iXDfg9TsInFkLfSvx8VhyqtVPBZX7Hiz6qMWGPul27z7P0+kj9BeUwI+IxQT D915vkAygHi82PaVGgLm6e5/TVHQ6yJBjfjJwZmz0+PEjutfD9z5of5ARn2i5+1BzFaG 8RQGmPI86Oa+xCsAbSG7fpz2acRDxIbNcrOzqEJme4NZ7Y8Yr+KcN2TA47uB+gZKCuvI GfHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si27374252pgl.340.2019.04.15.02.52.25; Mon, 15 Apr 2019 02:52:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727136AbfDOJvr (ORCPT + 99 others); Mon, 15 Apr 2019 05:51:47 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:45168 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfDOJvr (ORCPT ); Mon, 15 Apr 2019 05:51:47 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hFyHA-0004FB-7H; Mon, 15 Apr 2019 11:51:44 +0200 Date: Mon, 15 Apr 2019 11:51:38 +0200 (CEST) From: Thomas Gleixner To: Huw Davies cc: linux kernel , Andy Lutomirski , Vincenzo Frascino Subject: Re: [PATCH 2/3] x86/vdso: Allow clock specific mult and shift values In-Reply-To: <20190415093042.GA21726@merlot.physics.ox.ac.uk> Message-ID: References: <20190411101205.10006-1-huw@codeweavers.com> <20190411101205.10006-3-huw@codeweavers.com> <20190415093042.GA21726@merlot.physics.ox.ac.uk> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Apr 2019, Huw Davies wrote: > 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? Depends. If Vincenzo comes along with his new version soon, then you might get this for free :) Vincenzo, what's the state of your work? Thanks, tglx