Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp342708rwl; Wed, 29 Mar 2023 02:38:23 -0700 (PDT) X-Google-Smtp-Source: AK7set/LkLXJ/E+25sKNUKZX8TEQBQYtHXxh3BL347OGZS9cQ3+hL9dqqStPWaJbes1UpP3wfVA2 X-Received: by 2002:a05:6a20:c10f:b0:d5:e2cb:6100 with SMTP id bh15-20020a056a20c10f00b000d5e2cb6100mr17555714pzb.49.1680082703065; Wed, 29 Mar 2023 02:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680082703; cv=none; d=google.com; s=arc-20160816; b=sxAoX8etqq+NiVDZhpQIGp76Mp42uQk892gDrEoN57bzGdRsmxIVo5YXescomJBAFE Ts0xh/9Ws2XjSfJImwFjZADNuwoRz0w7pIbHMbGqoQI1QNc0TtFf2zPyB5VUNaSGwRgP 3xyZ2gCqMD8wFpXXHb7TzCCXcbfZHNo5+i2YO7Y7e7yLeWvF2AhBrtfzzebRYr2o/Lv8 MNi1y8meb8OKRF7Gy9lNPfbqel/2Y4OAn3hRSjC1meUn8IqSF+gAfGpm2x49VnJNPC9C qolfeRdOtVBfS7furkbsHguoiIX+bBvXrq2HM31t8t/LCn9r7xdnZbLc/cUv16Pn6IQU XduQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=PWy6BhAqB0twK2rbrO71b3JtwEl2UDo3dmVSgkvr7Cs=; b=ynBGlLsb7y9QtJGfQcPOWGeqm1qYYLeUiZK5WrShxfVBDArTv6hUUIrihjyu2NvGQw rKJbham6S3LdX5rlO5B7kPVmxxpJaySsi4q1fk++lV6vZg9CWx+aXs6flU+UcuYUKcv9 5ciH7bW0L1QgpnKzOtB+zIAWXaK5UFUa+KkswGImQ2YFKfH0kzrDalXGPsDghry040HY pieItkvqNpmSCdZ5eddXYSrmvFD7armA1xEBQ08ipbCWuO4kIByqAB9EGQr5yAhBJAmw h3+8dn+DvJtgg9Xv/GM/tKDKJgfgPm9EKb2vHMtMsdC23jewMYbYya0mU1ZI0BSZPqmh Shug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yJKl+oau; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Qvte5u68; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a056a0008cd00b0062578d18ba1si31972186pfu.54.2023.03.29.02.38.11; Wed, 29 Mar 2023 02:38:23 -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=@suse.de header.s=susede2_rsa header.b=yJKl+oau; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Qvte5u68; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbjC2J25 (ORCPT + 99 others); Wed, 29 Mar 2023 05:28:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjC2J24 (ORCPT ); Wed, 29 Mar 2023 05:28:56 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A0330FF; Wed, 29 Mar 2023 02:28:55 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 231AA219C7; Wed, 29 Mar 2023 09:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680082134; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PWy6BhAqB0twK2rbrO71b3JtwEl2UDo3dmVSgkvr7Cs=; b=yJKl+oauleT3X+homnJ87/o0reKN+UgLYTpa+N83G1+/7VWAIkkzvFeM1d6NGDFlIwZn67 pszzc6K4uzfuumnfFb5GE57zAZd86bkQgeBbOiRKXOd/92VgqaJsaXszauFR+2xroE/Md+ 66i2zKtKcuenL5rN7P0W7QbAa8/I8k8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680082134; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PWy6BhAqB0twK2rbrO71b3JtwEl2UDo3dmVSgkvr7Cs=; b=Qvte5u6895My3Gbzzs7efgm2R2sYAilCvUqwhCN4sH6JCte4KXz4Nq0MSGnCGQzClnutAB aqcFVwbmbR6hozAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E46E9138FF; Wed, 29 Mar 2023 09:28:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id j1RVNtUEJGTuBgAAMHmgww (envelope-from ); Wed, 29 Mar 2023 09:28:53 +0000 Date: Wed, 29 Mar 2023 11:28:53 +0200 Message-ID: <874jq3q52i.wl-tiwai@suse.de> From: Takashi Iwai To: Hans de Goede Cc: Takashi Iwai , Pali =?ISO-8859-1?Q?Roh=E1r?= , Dmitry Torokhov , regressions@lists.linux.dev, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] wrong coord from Thinkpad TrackPoint since 6.2 kernel In-Reply-To: <3dec29bf-b772-d82d-fff9-6c8bcca5f464@redhat.com> References: <87h6u4otuc.wl-tiwai@suse.de> <3dec29bf-b772-d82d-fff9-6c8bcca5f464@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 On Wed, 29 Mar 2023 11:22:18 +0200, Hans de Goede wrote: > > 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 Ah, that makes sense! I'll build a test kernel with this fix and ask the reporter for testing. > 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 ? That'll be great. Thanks! Takashi