Received: by 10.223.148.5 with SMTP id 5csp7304121wrq; Thu, 18 Jan 2018 03:54:58 -0800 (PST) X-Google-Smtp-Source: ACJfBov7IfKwcjZzOECDsr1EMBOoi1tu6i+h0S8WtAZ3sws5zLnt12HopzQ5Ul8ZyKj3YmAXVfy2 X-Received: by 10.159.206.138 with SMTP id bg10mr12434413plb.162.1516276498613; Thu, 18 Jan 2018 03:54:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516276498; cv=none; d=google.com; s=arc-20160816; b=sSdfom9cLmvR6/87Xxg4iqnOi3f0bGQSZ53GI9RFIuMnaRZPq5fXwOnxhHJ+K0SMKr ABhQZEp72IWkDXHR9UA9nO55dAoFy3hfzkrkI7wRP3a6w0OE3KWafRsL/yLFlm2ukn5J F4QWELXrZSrJCQ1HrhDtDpozRUtaneGZEFUSSAFv0gx87B4nL5JociFrzl9kaU1K1AIO GpmASERnwy95pxjWbxgOzwpisHgZuF2ynU6MPlxsbIO68iIWiNVL+4UIw2kfzHYMWu4r xLwolvutP8Ous0T22MDInkmWf9W6thio+WYu0qvoakbZsbgJSYhYaycsgL3TtpS/pfRU atJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=qduMPJPEM4NME/ZTDXUwYgkOiULq2EDbsSGIon/laQM=; b=z7cvr+ZsXwE+RoV8BcG0pm/91rJ9JAw10pkrWivknSadVewb4Lsd+XDXVY1pa3yCwF XSKTW9R+LtGn4oe+uqmpnn2ok2E2FbVIHefnzKugQCWNImhsXBcld7oxbQgoiTbKK4jR HLe2LXM5B8D4V6NizPZgPR6hHJdYzqoDCkE94YskbaImhSy08OMb2pCbmli0DQA4Duwe KlVVv4yBc+LH4RIFnVtoM7R2l4/opVR+ZmGc10cDjyP5/Gct/wbNeSbeN5zfKXOXmpvx +q53xv+7R2dZbybEoshyhR4v1CtxVcW7iAz48g4aXzcX9exNOJY9U2itKK/GSy+rZw5f NGsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Habcm9s7; 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 m189si6481752pfc.410.2018.01.18.03.54.44; Thu, 18 Jan 2018 03:54:58 -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=fail header.i=@gmail.com header.s=20161025 header.b=Habcm9s7; 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 S1755048AbeARLIW (ORCPT + 99 others); Thu, 18 Jan 2018 06:08:22 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:35101 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbeARLIS (ORCPT ); Thu, 18 Jan 2018 06:08:18 -0500 Received: by mail-oi0-f65.google.com with SMTP id b11so2674615oif.2; Thu, 18 Jan 2018 03:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=qduMPJPEM4NME/ZTDXUwYgkOiULq2EDbsSGIon/laQM=; b=Habcm9s7GHx6RF/WsHZeD1uZa1KL+jk358ypchyrfPnmVALkRmuvgthdzcTQMeKt8W SBEZ/1IWloY0A7LQF8hTBEHTkGzb94tL6RzhmA5t9vv56s9tHfb9gA460OnfbrqEI/Gg Pfgj5qwY1q4hCPuJLfqbs6z4H/cgqfs3QZiIfN1V81NCo/4hIJPdaIIZcizQfcerEDVL Xoa5ib2Xc0qbUp0GwzPorn8HzEhsenN/XI53k9fqzpF1QubvZPD2pC8SQIsXGY027/50 rM7S8FgqzJx7s/Yzbz69tHbK4PBCmPz9kljHzfwhDfsnwpG9HNWlgEEt+JQHA2zdZJwe P+sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=qduMPJPEM4NME/ZTDXUwYgkOiULq2EDbsSGIon/laQM=; b=tmbIrj1gg8cX3OkM8oQ9xhym75VyrVYHWQcXSIibhmQw1an8t2KPHaElgcW72DpkRB heaIGrpUZotofJHXZod9tcgj6yvfYU/jIjAg/LGeUmTVaOQUYTuUA9pm/Ot40wjaya2l awCSKj7UXOA9XcceFyl/IVULhOQ0mPGO5Uwe5ppNrFahxy254UHOb+Kj0LY+wP/EicV6 N4kQyJ8AzkB2xLEH04SEtiqskYqMTq0dNqu4BptD0QwWywA3Dy6RAOnMPTLeOdaULMDi p5Yw/OCfXwFL7lsMdVF9UPYn350w+3jyi2fL8Ic7l0zyIb5FrpXMLhJkX2JtTq/54PzP kFJw== X-Gm-Message-State: AKwxyteUvuuUlOxd9pL+tb23ARg2zC9SmWF3Wf8wz1SnOap1ZQQ6cUG8 Fq1ecrbtrbJR0FzC/72h2TOSf9X+Dn+4xBJCPVAkLQ== X-Received: by 10.202.175.76 with SMTP id y73mr2518484oie.53.1516273698120; Thu, 18 Jan 2018 03:08:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.89 with HTTP; Thu, 18 Jan 2018 03:08:17 -0800 (PST) In-Reply-To: References: From: Arnd Bergmann Date: Thu, 18 Jan 2018 12:08:17 +0100 X-Google-Sender-Auth: 3PbBZqrtS4HptuGhqO4TG0IE4bU Message-ID: Subject: Re: [PATCH v6 2/3] clocksource/drivers/atcpit100: VDSO support To: Greentime Hu Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Rick Chen , Rick Chen , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 15, 2018 at 6:57 AM, Greentime Hu wrote: > From: Rick Chen > > VDSO needs real-time cycle count to ensure the time accuracy. > Unlike others, nds32 architecture does not define clock source, > hence VDSO needs atcpit100 offering real-time cycle count > to derive the correct time. > > Signed-off-by: Vincent Chen > Signed-off-by: Rick Chen > Signed-off-by: Greentime Hu I'm a bit puzzled by this patch, can you explain how the vdso actually manages to access the clock hardware? It looks like you make the physical address and the register offset available to user space, but how does it end up accessing it? Arnd