All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ruzal <daminovruzal7@gmail.com>
To: Benjamin Tissoires <bentiss@kernel.org>
Cc: jikos@kernel.org, linux-input@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] HID: multitouch: add support for Goodix GXTP7863 touchpad
Date: Tue, 22 Sep 2026 19:39:41 +0300	[thread overview]
Message-ID: <41f8ed8e-1466-4002-8411-bf9871da2adc@gmail.com> (raw)
In-Reply-To: <arJ-vvEvd93l_aAp@beelink>

On 9/22/26 4:24 PM, Benjamin Tissoires wrote:
> Actually, after a lot of debugging, it turns out that the session stall
> was a red herring: it's hid-replay's behavior which basically only
> listen for SET_REPORT events before it is ready, but then ignores
> everything else.
> 
> And in the case where the UNKNOWN input node didn't have the KEY_*,
> systemd-logind would not keep the hid node opened, and would further
> re-open it, 3 times, and 3 times we have a timeout of 5 seconds due to
> uhid not responding to SET_REPORT.
> 
> TL;DR: changing the report descriptor is doable, and there won't be this
> session lock with a real device.
> 
> Regarding the `map_abs(ABS_MISC)`, you are almost correct. The solution
> is simply to not use an unknown vendor usage. the second vendor
> collection is 0xff00, which matches HID_UP_MSVENDOR which goes to
> ignore.
> 
> So making the 0xff01 bogus collection 0xff09 (HID_UP_LOGIVENDOR2) or any
> other HID_UP_LOGIVENDOR* also goes to ignore, and the phantom node just
> disappears.
> 
> And TL;DR of rest, changing the usage page of the report ID 8 from
> 0xff01 to 0xff09 solves the problem entirely :)
> 
> 
> Thanks for this attempt, however, this is not great because there are
> multiple checks for MT_CLS_WIN_8 throughout the code, and so your patch
> misses them.
> 
> It is not great to have a BPF to work around a kernel bug, but in that
> case I think that's the most sensible thing to do. A proper fix is to
> restrict the parsing of 0xff01 for non keyboards or for non HP machines,
> but as mentioned previously, this is prone to regressions :(
> 
> Also, I've just checked the fwupd sources, and I think changing the
> vendor collection is fine. Hopefully this won't break any user space
> program, but OTOH the touchpad is pretty unusable at the moment.
> 
> Cheers,
> Benjamin
Hi Benjamin,

Got it, the uhid SET_REPORT explanation makes a lot of sense.

Are you already working on the BPF fixup, or should I write it and open a merge request in the udev-hid-bpf repo?

I can test it anytime.

Cheers,
Ruzal

  reply	other threads:[~2026-09-22 16:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-14 17:12 [PATCH 1/2] HID: multitouch: add support for Goodix GXTP7863 touchpad Ruzal Daminov
2026-08-19  9:15 ` [PATCH v2] " Ruzal Daminov
2026-08-19  9:28   ` sashiko-bot
2026-08-19  9:39 ` [PATCH v3] " Ruzal Daminov
2026-08-19  9:50   ` sashiko-bot
2026-08-19 12:33 ` [PATCH v4] " Ruzal Daminov
2026-09-17  7:30   ` Benjamin Tissoires
2026-09-17 12:51     ` Ruzal
2026-09-18 16:18       ` Benjamin Tissoires
2026-09-18 18:01         ` Ruzal
2026-09-19  9:23           ` Ruzal
2026-09-22 13:24             ` Benjamin Tissoires
2026-09-22 16:39               ` Ruzal [this message]
2026-09-23 13:31                 ` Benjamin Tissoires
2026-09-23 15:05                   ` Ruzal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41f8ed8e-1466-4002-8411-bf9871da2adc@gmail.com \
    --to=daminovruzal7@gmail.com \
    --cc=bentiss@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.