Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp341499rwl; Wed, 29 Mar 2023 02:36:59 -0700 (PDT) X-Google-Smtp-Source: AK7set9iwrpkkNcgk7cF6YmUO2BcwKQgtSi4x2rYS6VTqm+NPyXJNxwGAVApCFovcUBlbOnnuG4P X-Received: by 2002:a05:6a20:c526:b0:da:bace:b06a with SMTP id gm38-20020a056a20c52600b000dabaceb06amr15223499pzb.50.1680082619239; Wed, 29 Mar 2023 02:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680082619; cv=none; d=google.com; s=arc-20160816; b=rrY7j90ClSSvORmerwF0Iy7vnWzTCp3F+/LwQhpggSXTX6n+B5wDYIOTTnjXuzlnNK sy9nt4o6aPDsP2z31Aj2rJAJacBzOLA2gQ3TFbusC1sMOXY9tiWLa8UH/UWvY7iETPjc y6L3XtZY6TDJcNOesxsfXq5Ie3tOZ7ue3OpCkrTbkhNmQwQfRNbGfnlkCq0HXFxIgNqO 87z6EWAtN+0FExEsNte/0iUEIxzpr4P2MaW588Oxtd5cJLHbbEKhscv7mf5nvnoQLSZK WQtakLiodXI8QqzcDVqjVz+E102YlPuR3RRose+6V1ReDhU54mFDL+/mc6t7iKXbct1c eNFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lnQgiE2seslOmri+mINL03bE7wmcbXexDhZ7sWwtei8=; b=ILpRrHiMOxXdEJBWLgLdColnZ9Z8QZNIX9A3Skq+RnP4mv6SGZ7UuzFqqRb1148bcb AYtnOwsxWujd8JKnmoxitja0bQhR4Ulv3zYIoJW4xvtiMjn9OHozkSPTXZXi3qJGHBGT 9/8m5v7hyeuQeT2XVkjv/xlHByAm9rdNJQu/jHr8DkUiqUJZTeqNucfoUBm3CLBUtWNB Lhj0+Di8hKF7LuWY+J3+HdsBYMevKmg7IQpU/RKOh6TWRsO1gjGZ5ymWf6vrEweynMMA MMMZGjE0tb0DmyOOlUhPb6z4UVIvkCAi6V2xRfNo8VmmkNO+oAmJ8jaeD56qTMJHLLeH cxEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YTnPDjfx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p30-20020a634f5e000000b0051323af954asi11230474pgl.644.2023.03.29.02.36.47; Wed, 29 Mar 2023 02:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YTnPDjfx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbjC2JXI (ORCPT + 99 others); Wed, 29 Mar 2023 05:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjC2JXG (ORCPT ); Wed, 29 Mar 2023 05:23:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81F126AD for ; Wed, 29 Mar 2023 02:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680081742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lnQgiE2seslOmri+mINL03bE7wmcbXexDhZ7sWwtei8=; b=YTnPDjfxpSpjXsya72Exwn1pBDvtnX4q91vSR7p/873npH5TsyobheMGss2Zew+Nc3zAsf IRbqzydBvON6DfAGHCpzUmJ4sR/SOd8UsTmlotRgVb/T+lCVPsxRdrv9c3tz9QIisUhHyP 7BhEOjmy6SEbfyRnjZC6bMRqrKHVY04= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-622-JSKlYkwHPzC2S2GL3oADQA-1; Wed, 29 Mar 2023 05:22:21 -0400 X-MC-Unique: JSKlYkwHPzC2S2GL3oADQA-1 Received: by mail-ed1-f72.google.com with SMTP id j21-20020a508a95000000b004fd82403c91so21298585edj.3 for ; Wed, 29 Mar 2023 02:22:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680081740; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lnQgiE2seslOmri+mINL03bE7wmcbXexDhZ7sWwtei8=; b=WCm/nqqA79LQkwX6eGnx7Eb5aTA3MlQuQe6c/EEiKaj4uTU6rxPQdVuDmWY+zzjS0K yvDKTCEQnW6mM2E9gPv6IhrlzRiodWQ/Uu26wzZ75uR0OQmsNSgB4vbWAQJsXQmZa8WA uYP7ZTjeW2MOo56tQLXbuk9m4ac1M4sr1DSdBks/gq9R8vzaqjoMdIurWDUJGL321iTt 54gv4/EQtjtYry/eFrPE8kDAqSlG1J6i5PsMHraPmM4+rw/Wh+TSByGJBvAAthwiZFs/ EitWNXwgkO+ziFbCzT5dQzZeyUxTZ5dy1BrAz9BxrPs+t4tWg0tw8f68si45Xv3/mFf8 ilCg== X-Gm-Message-State: AAQBX9dl/U/gYbeIK0jln6o2hQTvj3m8fkxBsnYRBFVlSp96R5Uv6lfq 0FZVFDkw7bjvTs1+lVjcVtwMVWqSlLZM/DdocZPCRqkn2PChGS7/6Dw5+pK5ybEtICvKNSWxuN7 V4ZsC8LIl459vYhGfMX8xELqZ X-Received: by 2002:a17:906:4a55:b0:92f:a0d5:211c with SMTP id a21-20020a1709064a5500b0092fa0d5211cmr16224788ejv.35.1680081740365; Wed, 29 Mar 2023 02:22:20 -0700 (PDT) X-Received: by 2002:a17:906:4a55:b0:92f:a0d5:211c with SMTP id a21-20020a1709064a5500b0092fa0d5211cmr16224776ejv.35.1680081740129; Wed, 29 Mar 2023 02:22:20 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id c25-20020a50f619000000b004bd6e3ed196sm16970687edn.86.2023.03.29.02.22.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 02:22:19 -0700 (PDT) Message-ID: <3dec29bf-b772-d82d-fff9-6c8bcca5f464@redhat.com> Date: Wed, 29 Mar 2023 11:22:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [REGRESSION] wrong coord from Thinkpad TrackPoint since 6.2 kernel To: Takashi Iwai , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Dmitry Torokhov Cc: regressions@lists.linux.dev, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <87h6u4otuc.wl-tiwai@suse.de> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <87h6u4otuc.wl-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Takashi, On 3/29/23 10:16, Takashi Iwai wrote: > Hi, > > we've received a bug report about Thinkpad TrackPoint (ALPS DualPoint > Stick) on 6.2 kernel: > https://bugzilla.opensuse.org/show_bug.cgi?id=1209805 > > The device reports the wrong values as the movements, e.g. sometimes a > value such as 255, 254 or -255 is returned while usually it should be > a smaller value like -1 or 2. > > The evtest on 6.2.x kernel shows the wrong values like: > > Event: time 1680037542.898747, type 2 (EV_REL), code 0 (REL_X), value 255 > Event: time 1680037542.898747, -------------- SYN_REPORT ------------ > Event: time 1680037543.145196, type 2 (EV_REL), code 0 (REL_X), value 1 > Event: time 1680037543.145196, -------------- SYN_REPORT ------------ > Event: time 1680037543.175087, type 2 (EV_REL), code 1 (REL_Y), value -255 > Event: time 1680037543.175087, -------------- SYN_REPORT ------------ > Event: time 1680037543.185421, type 2 (EV_REL), code 0 (REL_X), value 1 > Event: time 1680037543.185421, type 2 (EV_REL), code 1 (REL_Y), value -255 > Event: time 1680037543.185421, -------------- SYN_REPORT ------------ > > while 6.1.x kernel shows the correct values like: > > Event: time 1680037386.318058, type 2 (EV_REL), code 0 (REL_X), value -1 > Event: time 1680037386.318058, type 2 (EV_REL), code 1 (REL_Y), value -1 > Event: time 1680037386.318058, -------------- SYN_REPORT ------------ > Event: time 1680037386.328087, type 2 (EV_REL), code 0 (REL_X), value -1 > Event: time 1680037386.328087, type 2 (EV_REL), code 1 (REL_Y), value -1 > Event: time 1680037386.328087, -------------- SYN_REPORT ------------ > Event: time 1680037386.338046, type 2 (EV_REL), code 0 (REL_X), value -1 > Event: time 1680037386.338046, type 2 (EV_REL), code 1 (REL_Y), value -2 > Event: time 1680037386.338046, -------------- SYN_REPORT ------------ > > I couldn't see any relevant changes in alps.c between those versions, > so this is likely a breakage in a lower layer. > > Could you guys take a look? I believe this is caused by the kernel now using -funsigned-char everywhere and this should be fixed by this commit: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?h=for-linus&id=754ff5060daf5a1cf4474eff9b4edeb6c17ef7ab And there is a similar issue in the focaltech touchpad driver: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?h=for-linus&id=8980f190947ba29f23110408e712444884b74251 Dmitry, since this is hitting 6.2 users, perhaps you can send a pull-req for your current for-linus branch to get the fix on its way to stable ? Regards, Hans