Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbcDRKcX (ORCPT ); Mon, 18 Apr 2016 06:32:23 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:56392 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750717AbcDRKcW (ORCPT ); Mon, 18 Apr 2016 06:32:22 -0400 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Vincent ABRIOU , David Airlie , Benjamin Gaignard , Tina Ruchandani , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [Y2038] [PATCH] drm/sti: Use 64-bit timestamps Date: Mon, 18 Apr 2016 12:32:12 +0200 Message-ID: <10365926.7cr9Md2xG1@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5714B0BB.1020306@st.com> References: <20160413092802.GA99759@localhost> <7376001.70fALvhWdv@wuerfel> <5714B0BB.1020306@st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:qO3bAw7oWM+D9SX1WwESsYGmgGb9qTl+rAl1YOHDQwCeR4oAal7 dxBh+Z7rwlAe7ZH8J+UMvg6UIo+8JOyEmBGMeVo84Nme1CO61XjfRzg3XKKJrojPBOJCGu6 34G7ilj+NYdrJ7EeEKQqWGiunegU46t2t0oXYGcGFHLWKNTsWn1Y7jgBcxooosJuqWKZymO TGFqa1g9hMmqv/Se1HOBA== X-UI-Out-Filterresults: notjunk:1;V01:K0:liIW5Dn5GBM=:oqtTqcSTA/JPtgH54x2oS0 5SNR60dgFL4G2DmlbGYOelgbdchyYWdzdWDbcjuZauNiFIIP4DENbrVGg3O6OHVVg5pn75Eph ejWi9F4CbOd9xXIIoJsX7H3ahp+AvQeAZ5aNo+JTH1lBTh24uyH0PkCya52cfuDNPgIGLavjG Z2OnuofpbWJKLKgrvgviyNMFS7El5ZmBMNpXYDcWU4ZL3sZ58f6iM1UzOWPDfds514WQHA3B/ 333pGM3vQIdiTjFM1kD010MSy/NMMBamDvdvkPiltKiCAfKsclQ8MsPRmE8Ih2EQzr4q9Cb8I 4LaZk4d2g0ffx+BrOUfuFI6uJBv4v7uA8C2wrPIQgoB8hbdTjXvEryTI0stvCq+LHG7FOURmO teoWXl1NN/IbqhU1Lcw2I8mlj6zZ3diHqUYEP5SqV6086dW8cK9/GMa1XwGS2rHe9cTwbKas0 Bw4FEVC2jcfzmu6pmYlYl++JHlkeIWAxEI3SB4Y9oCqLCYcrh0tMp1Wt6F5Oxy6j8EKD+tEyI HRFY115eLtZXrDZ02qCpCmS9YIEs/us5vdlRIa4rc9FFnHToc82rFzeiejGh+7l202+J+kdL/ 7cwb+pGGDm9EIZ/eAdBgLunsr62yQFjwzJe6qk2KddDoEcBU5QBEDkG0E3wkqFZ+A74dmDTpl 3A9RmkH6cxu8EeH88b2eyIx32z0AWhXVUAD8S5bIwHWMJ0Igmbc4EEtJUfjG4AshAt7rlxDY6 SBIjCEwQIlqBXLb4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 22 On Monday 18 April 2016 12:02:35 Vincent ABRIOU wrote: > > getrawmonotonic comes from a legacy code so the use is not intentional. > Honestly, it is not clear to me the difference between monotonic and > rawmonotonic. But in the debug context in which it is used, ktime_get > and ktime_get_raw will deliver the same level of information we need. So > implementation done by Tina is fine for me. > Ok, cool, thanks for confirming! FWIW, the best way I can see for illustrating the difference is that rawmonotonic time is for things that should be synchronized with the machines clock generators (e.g. A/V sync), while monotonic time is for the case where you want to synchronize with another machine (or the internet) that may have a slightly different clock generator but uses NTP to correct for that. In most cases the difference is irrelevant and we tend to use monotonic time by default. Arnd