All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570
       [not found]   ` <36111ed4-621c-47a8-bc6a-66cf756a0ac6-89mTbI93R4uuvFJfX82//w@public.gmane.org>
@ 2018-10-16  0:11     ` Dmitry Torokhov
       [not found]       ` <CAKdAkRTbQ+-+h8SMGf9Khc4+wE+P3_UCbYR0DDi1MoBwfSOWZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2018-10-23  3:47     ` Henrique de Moraes Holschuh
  1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2018-10-16  0:11 UTC (permalink / raw)
  To: jaak-89mTbI93R4uuvFJfX82//w
  Cc: agk-mA9ux5SlULTR7s880joybQ, Pali Rohár, Platform Driver,
	ibm-acpi-devel, Henrique de Moraes Holschuh,
	linux-input-u79uwXL29TY76Z2rM5mHXA, Andy Shevchenko

On Sat, Oct 13, 2018 at 6:32 AM Jaak Ristioja <jaak-89mTbI93R4uuvFJfX82//w@public.gmane.org> wrote:
>
> On 27.08.2018 19:22, Jaak Ristioja wrote:
> > Upgrading Linux from 4.16 to 4.17, a ThinkPad L570 started receiving
> > spurious input events, mostly right mouse button click events, but also
> > cursor jumps.
> >
> > I have not attempted to understand whether these events come from the
> > trackpoint or touchpad or some other driver, but I managed to bisect
> > this issue to commit a986c75a7df0 titled "platform/x86: thinkpad_acpi:
> > Add 2nd Fan Support for Thinkpad P50" by Alexander Kappner.
> >
> > Apparently the quirk mitigation is applied when the BIOS version begins
> > with N1. The BIOS version on the L570 in question is N1XET57W (1.35 )
> > which is probably why this commit causes the described problems on the
> > ThinkPad L570. How exactly? - I don't know.
> >
> > The issue did not reproduce when running some stable 4.17 and 4.18
> > kernels with commit a986c75a7df0 reverted.
> >
> > Please fix this for future kernels. Thanks! :)
>
> Ping. Do you need any additional information?

Sounds like we need tighter check for the quirk, maybe based on
DMI/Board name? Can we revert the offending commit for now?

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570
       [not found]   ` <36111ed4-621c-47a8-bc6a-66cf756a0ac6-89mTbI93R4uuvFJfX82//w@public.gmane.org>
  2018-10-16  0:11     ` 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570 Dmitry Torokhov
@ 2018-10-23  3:47     ` Henrique de Moraes Holschuh
  1 sibling, 0 replies; 5+ messages in thread
From: Henrique de Moraes Holschuh @ 2018-10-23  3:47 UTC (permalink / raw)
  To: Jaak Ristioja
  Cc: Alexander Kappner, Jouke Witteveen,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	platform-driver-x86-u79uwXL29TY76Z2rM5mHXA,
	ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Pali Rohár,
	Andy Shevchenko

On Sat, 13 Oct 2018, Jaak Ristioja wrote:
> On 27.08.2018 19:22, Jaak Ristioja wrote:
> > Upgrading Linux from 4.16 to 4.17, a ThinkPad L570 started receiving
> > spurious input events, mostly right mouse button click events, but also
> > cursor jumps.
> > 
> > I have not attempted to understand whether these events come from the
> > trackpoint or touchpad or some other driver, but I managed to bisect
> > this issue to commit a986c75a7df0 titled "platform/x86: thinkpad_acpi:
> > Add 2nd Fan Support for Thinkpad P50" by Alexander Kappner.
> > 
> > Apparently the quirk mitigation is applied when the BIOS version begins
> > with N1. The BIOS version on the L570 in question is N1XET57W (1.35 )
> > which is probably why this commit causes the described problems on the
> > ThinkPad L570. How exactly? - I don't know.
> > 
> > The issue did not reproduce when running some stable 4.17 and 4.18
> > kernels with commit a986c75a7df0 reverted.
> > 
> > Please fix this for future kernels. Thanks! :)
> 
> Ping. Do you need any additional information?

It looks like it is failing to detect N1X and N1 as different models,
the bug is likely on this commit:

	commit 846a416b4630fc960c10500b4194ad504bc22d4b
	platform/x86: thinkpad_acpi: Proper model/release matching

Real life has been **extremely** busy, so I'd appreciate a patch.
Otherwise I will eventually get to it, but it might take a few
weeks(!!).

-- 
  Henrique Holschuh

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570
       [not found]       ` <CAKdAkRTbQ+-+h8SMGf9Khc4+wE+P3_UCbYR0DDi1MoBwfSOWZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-10-23  3:50         ` Henrique de Moraes Holschuh
       [not found]           ` <20181023035007.iy5vy2z3vuto2d6s-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Henrique de Moraes Holschuh @ 2018-10-23  3:50 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: agk-mA9ux5SlULTR7s880joybQ, Pali Rohár, Platform Driver,
	ibm-acpi-devel, linux-input-u79uwXL29TY76Z2rM5mHXA,
	jaak-89mTbI93R4uuvFJfX82//w, Andy Shevchenko

On Mon, 15 Oct 2018, Dmitry Torokhov wrote:
> On Sat, Oct 13, 2018 at 6:32 AM Jaak Ristioja <jaak-89mTbI93R4uuvFJfX82//w@public.gmane.org> wrote:
> > On 27.08.2018 19:22, Jaak Ristioja wrote:
> > > Upgrading Linux from 4.16 to 4.17, a ThinkPad L570 started receiving
> > > spurious input events, mostly right mouse button click events, but also
> > > cursor jumps.
> > >
> > > I have not attempted to understand whether these events come from the
> > > trackpoint or touchpad or some other driver, but I managed to bisect
> > > this issue to commit a986c75a7df0 titled "platform/x86: thinkpad_acpi:
> > > Add 2nd Fan Support for Thinkpad P50" by Alexander Kappner.
> > >
> > > Apparently the quirk mitigation is applied when the BIOS version begins
> > > with N1. The BIOS version on the L570 in question is N1XET57W (1.35 )
> > > which is probably why this commit causes the described problems on the
> > > ThinkPad L570. How exactly? - I don't know.
> > >
> > > The issue did not reproduce when running some stable 4.17 and 4.18
> > > kernels with commit a986c75a7df0 reverted.
> > >
> > > Please fix this for future kernels. Thanks! :)
> >
> > Ping. Do you need any additional information?
> 
> Sounds like we need tighter check for the quirk, maybe based on
> DMI/Board name? Can we revert the offending commit for now?

Apparently it has to be fixed properly, because if I understood the
issue correctly, every two-character quirk will trigger on *any*
three-character model that starts with those two characters.

We could revert the three-character quirk support, but this would cause
regressions as well.

-- 
  Henrique Holschuh

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570
       [not found]           ` <20181023035007.iy5vy2z3vuto2d6s-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
@ 2018-10-23  8:16             ` Jouke Witteveen
       [not found]               ` <CAJ2ouawfddrf8K22auR4OaJkO_n5f-rme=+XrbQYNo0eJfCtQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jouke Witteveen @ 2018-10-23  8:16 UTC (permalink / raw)
  To: hmh-N3TV7GIv+o9fyO9Q7EP/yw
  Cc: agk-mA9ux5SlULTR7s880joybQ, pali.rohar-Re5JQEeQqe8AvxtiuMwx3w,
	dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w,
	platform-driver-x86-u79uwXL29TY76Z2rM5mHXA,
	ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	linux-input-u79uwXL29TY76Z2rM5mHXA, jaak-89mTbI93R4uuvFJfX82//w,
	andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA

On Tue, Oct 23, 2018 at 6:06 AM Henrique de Moraes Holschuh
<hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org> wrote:
>
> On Mon, 15 Oct 2018, Dmitry Torokhov wrote:
> > On Sat, Oct 13, 2018 at 6:32 AM Jaak Ristioja <jaak-89mTbI93R4uuvFJfX82//w@public.gmane.org> wrote:
> > > On 27.08.2018 19:22, Jaak Ristioja wrote:
> > > > Upgrading Linux from 4.16 to 4.17, a ThinkPad L570 started receiving
> > > > spurious input events, mostly right mouse button click events, but also
> > > > cursor jumps.
> > > >
> > > > I have not attempted to understand whether these events come from the
> > > > trackpoint or touchpad or some other driver, but I managed to bisect
> > > > this issue to commit a986c75a7df0 titled "platform/x86: thinkpad_acpi:
> > > > Add 2nd Fan Support for Thinkpad P50" by Alexander Kappner.
> > > >
> > > > Apparently the quirk mitigation is applied when the BIOS version begins
> > > > with N1. The BIOS version on the L570 in question is N1XET57W (1.35 )
> > > > which is probably why this commit causes the described problems on the
> > > > ThinkPad L570. How exactly? - I don't know.
> > > >
> > > > The issue did not reproduce when running some stable 4.17 and 4.18
> > > > kernels with commit a986c75a7df0 reverted.
> > > >
> > > > Please fix this for future kernels. Thanks! :)
> > >
> > > Ping. Do you need any additional information?
> >
> > Sounds like we need tighter check for the quirk, maybe based on
> > DMI/Board name? Can we revert the offending commit for now?
>
> Apparently it has to be fixed properly, because if I understood the
> issue correctly, every two-character quirk will trigger on *any*
> three-character model that starts with those two characters.

This should be (and hopefully is) incorrect.
In the tpacpi_check_quirks function, equality between the quirk bios
and the actual model bios is tested. For two-character models there
are three nonzero bytes, for two character models there are only two.
Therefore, a two-character quirk should not trigger on any
three-character model.

> We could revert the three-character quirk support, but this would cause
> regressions as well.

I doubt this would fix anything. Maybe the bios id for the L570 that
is used by the driver is not the one Jaak Ristioja reported? The
detected string is reported in the dmesg output.

That said, I do wonder why the fan quirks redefine all matching macros
(TPACPI_FAN_Q*) and don't use the generic ones (TPACPI_Q*). This looks
like an easy thing to clean up.

Regards,
- Jouke

> --
>   Henrique Holschuh
>
>
> _______________________________________________
> ibm-acpi-devel mailing list
> ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570
       [not found]               ` <CAJ2ouawfddrf8K22auR4OaJkO_n5f-rme=+XrbQYNo0eJfCtQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-10-24  0:47                 ` Henrique de Moraes Holschuh
  0 siblings, 0 replies; 5+ messages in thread
From: Henrique de Moraes Holschuh @ 2018-10-24  0:47 UTC (permalink / raw)
  To: Jouke Witteveen
  Cc: agk-mA9ux5SlULTR7s880joybQ, pali.rohar-Re5JQEeQqe8AvxtiuMwx3w,
	dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w,
	platform-driver-x86-u79uwXL29TY76Z2rM5mHXA,
	ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	linux-input-u79uwXL29TY76Z2rM5mHXA, jaak-89mTbI93R4uuvFJfX82//w,
	andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA

On Tue, 23 Oct 2018, Jouke Witteveen wrote:
> > Apparently it has to be fixed properly, because if I understood the
> > issue correctly, every two-character quirk will trigger on *any*
> > three-character model that starts with those two characters.
> 
> This should be (and hopefully is) incorrect.
> In the tpacpi_check_quirks function, equality between the quirk bios
> and the actual model bios is tested. For two-character models there
> are three nonzero bytes, for two character models there are only two.

Hmm, good.  Need to check the parser that is feeding it, though.

One actually has to parse a DMI string like aaETxxWW (old models) and
aaaET????  (need to actually verify how the ending goes on three-char
models).  This for BIOS.  For EC, it used to be HT instead of ET for
H8S-based embedded controllers, maybe it changed for the new ARC-based
embedded controllers.

> That said, I do wonder why the fan quirks redefine all matching macros
> (TPACPI_FAN_Q*) and don't use the generic ones (TPACPI_Q*). This looks
> like an easy thing to clean up.

They used to have some minor differences.  A cleanup patch is likely
fine, as long as it is tested.

-- 
  Henrique Holschuh

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-24  0:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <eee05e84-42ed-a6ad-65c6-f5b2fe7cdd27@ristioja.ee>
     [not found] ` <36111ed4-621c-47a8-bc6a-66cf756a0ac6@ristioja.ee>
     [not found]   ` <36111ed4-621c-47a8-bc6a-66cf756a0ac6-89mTbI93R4uuvFJfX82//w@public.gmane.org>
2018-10-16  0:11     ` 2nd Fan quirk for Thinkpad P50 causes spurios touchpad/trackpoint events on ThinkPad L570 Dmitry Torokhov
     [not found]       ` <CAKdAkRTbQ+-+h8SMGf9Khc4+wE+P3_UCbYR0DDi1MoBwfSOWZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-10-23  3:50         ` Henrique de Moraes Holschuh
     [not found]           ` <20181023035007.iy5vy2z3vuto2d6s-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2018-10-23  8:16             ` Jouke Witteveen
     [not found]               ` <CAJ2ouawfddrf8K22auR4OaJkO_n5f-rme=+XrbQYNo0eJfCtQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-10-24  0:47                 ` Henrique de Moraes Holschuh
2018-10-23  3:47     ` Henrique de Moraes Holschuh

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.