Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1817173ybi; Sat, 13 Jul 2019 01:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyLU3HlyyhkfNsdqNFdhfpqSo7iDAvpRGAz5lW1lM/lB5+EZcQ2+HB0paM+p93tNkH5oSm X-Received: by 2002:a17:902:7c96:: with SMTP id y22mr16783098pll.39.1563004842792; Sat, 13 Jul 2019 01:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563004842; cv=none; d=google.com; s=arc-20160816; b=Hti609p3swSk8G2W1u90PxMvZMPGDori+0WxDe7tMcnIcR3fBTeIG0zLDKHjLo72rr V3uNiIZzpCiMzXqHgDSWZ8PW/yjlLQai/6XT+pquVxK4ARCrFL0AwvSx5USgTkLmHt8T Vz36FiyeVWz7sfC+aJ3FDh4vIhZB24D4ZxHee1qsHg1/HkjeR6ZAmFFI6am/G7vPEakt ovXi2UbPXhFKpE4Di8npkghz/bFUQxijHYNEzT1VnpWLGZvBMmpWCaY4XxjHvmFul0XB I4eFJH1GMIl61TGYQi8eA2UMTlX1Zs92w0xlp9EJqsuWEKYvtHp2AK1y3vNFPp5R8uPd 3znQ== 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=CrNDkUuwB+PjYr8jIxPgYFNlndVx63iPmPItfW7P2AI=; b=DLn6ZBfuHM/22YatGsMHIoGOBaT+8oPPgNT1W9iw+nOSrA8GRL9d9aA3MezpLwIO9A JGFKQy8K8sAEhN/t/O57ESpO2W2fAQRl6dkfOAgCUHZzjmL/B6kzKVX1SEcvhcIsr5rJ d4Sgn2pBDdtYJpxuSiIJ3lhVxIUpbk3uolNI7fffIddaLZ623e1JzQjW1jVgtr+39BR3 nYUU0pkUQmERo2L+BlrhqTnuizC7uIC1AdrfWX9Ul0+nKKx3HzKD8Fnmnl+ANGYACe0U 1BuW7PM0gQixy9njE3mLFweWN1bl8iISFBBhWt1WZ3QfkxFpenNqHHo1EuBSEITNqKLq ueog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gELMIq6/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si11424425pgi.550.2019.07.13.01.00.26; Sat, 13 Jul 2019 01:00:42 -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=@gmail.com header.s=20161025 header.b="gELMIq6/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726532AbfGMH7p (ORCPT + 99 others); Sat, 13 Jul 2019 03:59:45 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33544 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbfGMH7p (ORCPT ); Sat, 13 Jul 2019 03:59:45 -0400 Received: by mail-pf1-f196.google.com with SMTP id g2so5317595pfq.0; Sat, 13 Jul 2019 00:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CrNDkUuwB+PjYr8jIxPgYFNlndVx63iPmPItfW7P2AI=; b=gELMIq6/IV4lTCZ2kAo15uZN2xAArcDmXY6VNgb/591gksl6JX6XJsTrIGCYYE4rEX XtMRuP5lhruBrgzEycu7EII49DHItvGuJddrcPYCdJR+JyyK675W+/WHTnyDTFCPN9wV Mow4n+gdSvlI3Qg3s3RSDefDA5hbmcxLxdfDyH0/dbE3EXIEFd/8EeIt5UiqALzw/6pi ux5Kzfr5kBAJ9088biU8NTDmYWCtLoDlex1xQ7BZl29OeiV69y+c4pSwvRYI+sIg8/+4 gnZeuD+GGg0C+psY41PFaeoafkS1uBFJnwWdSUWoP+xpEIH0ZVh34HJESoRxQsz/oxOa qZVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CrNDkUuwB+PjYr8jIxPgYFNlndVx63iPmPItfW7P2AI=; b=Dp6kRzruv7A0qVW6aFGtFYmznpMJWItPcbtP70bcupA4vcvdQ97eMs3dKnE+eYJxkR yUwQhpVkPyADF5zvpLMLlsjNWVGzD3IrxVAXNvfs7cNOSLTyo+vY/wx7HfGklw8hDPRF UA+/HTzEEttycy+TFatTLYnSnzmcryWn4zCyeZKocruOlJbloNXqFe2SM25H6FWtHYL7 3e8NRH8cmItN7ZVamCjJhsFziKPYlfUzKCpA6ShYR4ONep+C+4CeXLCOPVQ36xFWPdgQ imE1PD7i397rsUBVHIEjU/zroCuwbAyIn9Te/6rtfHz7vEUAWp4tAooimW17ZeFw9ew3 Js9A== X-Gm-Message-State: APjAAAWBkaM2g0b9O9Oz4B5vHQeBIbPkWDNSc2lXnsMS439gV8w2bn0l q/E72FehPLujR7fz0WBFqmQ= X-Received: by 2002:a17:90a:8984:: with SMTP id v4mr16869413pjn.133.1563004784544; Sat, 13 Jul 2019 00:59:44 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id 135sm10494390pfb.137.2019.07.13.00.59.43 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 13 Jul 2019 00:59:43 -0700 (PDT) Date: Sat, 13 Jul 2019 00:59:42 -0700 From: Dmitry Torokhov To: Peter Hutterer Cc: Benjamin Tissoires , Atif Niyaz , Atif Niyaz , Siarhei Vishniakou , "open list:HID CORE LAYER" , lkml Subject: Re: [PATCH] input: API for Setting a Timestamp from a Driver Message-ID: <20190713075942.GA243807@dtor-ws> References: <20190710230410.9386-1-atifniyaz@google.com> <20190712064134.GA150689@dtor-ws> <20190712114619.GA7753@jelly> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190712114619.GA7753@jelly> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 12, 2019 at 09:46:19PM +1000, Peter Hutterer wrote: > On Fri, Jul 12, 2019 at 09:23:20AM +0200, Benjamin Tissoires wrote: > > On Fri, Jul 12, 2019 at 8:41 AM Dmitry Torokhov > > wrote: > > > > > > Hi Atif, > > > > > > On Wed, Jul 10, 2019 at 04:04:10PM -0700, Atif Niyaz wrote: > > > > Currently, evdev stamps time with timestamps acquired in > > > > evdev_events. However, this timestamping may not be accurate in terms of > > > > measuring when the actual event happened. This API allows any 3rd party > > > > driver to be able to call input_set_timestamp, and provide a timestamp > > > > that can be utilized in order to provide a more accurate sense of time > > > > for the event > > > > > > > > Signed-off-by: Atif Niyaz > > > > > > This looks OK to me. Benjamin, Peter, any concerns here? > > > > > > > No red flags from me (though Peter is the one using all of this). > > > > Just curious, which drivers do you think will be using this new API? > > I can see that we might want to use hid-multitouch for it, with the > > Scan Time forwarded by the device, but what do you have in mind? > > that'd be my question as well. I'm all for more precise evdev timestamps but > there's some overlap with MSC_TIMESTAMP (which at least libinput isn't > handling well right now, with the exception of some quirk detection). I expect it will be used by drivers that use threaded interrupts to mark the time in the hard interrupt and avoid the latency of scheduling the thread, slow bus communication, etc. This is not supposed to replace MSC_TIMESTAMP as MSC_TIMESTAMP carries timestamp acquired by the device itself. Thanks. -- Dmitry