* [PATCH] Input: add HP Compaq 2710p to 'noloop' table
@ 2010-04-14 12:16 Jiri Kosina
2010-04-14 12:36 ` Matthew Garrett
2010-04-14 16:04 ` Dmitry Torokhov
0 siblings, 2 replies; 14+ messages in thread
From: Jiri Kosina @ 2010-04-14 12:16 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-kernel, linux-input
Add HP Compaq 2710p to 'noloop' table. Otherwsie this machine is reported
to not report properly to AUX_LOOP command time-to-time, causing
non-working keyboard due to messed up i8042.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
The relevant i8042.debug output from the failing case is
drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 65 <- i8042 (return) [0]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 74 -> i8042 (parameter) [0]
drivers/input/serio/i8042.c: d3 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 5a -> i8042 (parameter) [0]
drivers/input/serio/i8042.c: 5a <- i8042 (return) [0]
drivers/input/serio/i8042.c: a7 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 74 <- i8042 (return) [0]
drivers/input/serio/i8042.c: a8 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 20 -> i8042 (command) [0]
drivers/input/serio/i8042.c: 54 <- i8042 (return) [1]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [1]
drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [1]
drivers/input/serio/i8042.c: d3 -> i8042 (command) [1]
drivers/input/serio/i8042.c: a5 -> i8042 (parameter) [1]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [1]
drivers/input/serio/i8042.c: 74 -> i8042 (parameter) [1]
drivers/input/serio/i8042.c: d3 -> i8042 (command) [1]
drivers/input/serio/i8042.c: f0 -> i8042 (parameter) [1]
drivers/input/serio/i8042.c: 00 <- i8042 (return) [1]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [1]
drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [1]
drivers/input/serio/i8042.c: 60 -> i8042 (command) [1]
drivers/input/serio/i8042.c: 47 -> i8042 (parameter) [1]
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [1]
...
drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [52]
drivers/input/serio/i8042-x86ia64io.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index ead0494..d2c7cf0 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -172,6 +172,13 @@ static const struct dmi_system_id __initconst i8042_dmi_noloop_table[] = {
DMI_MATCH(DMI_PRODUCT_VERSION, "Rev 1"),
},
},
+ {
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq 2710p (#ABD)"),
+ DMI_MATCH(DMI_PRODUCT_VERSION, "F.14"),
+ },
+ },
{ }
};
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:16 [PATCH] Input: add HP Compaq 2710p to 'noloop' table Jiri Kosina
@ 2010-04-14 12:36 ` Matthew Garrett
2010-04-14 12:41 ` Jiri Kosina
2010-04-14 16:04 ` Dmitry Torokhov
1 sibling, 1 reply; 14+ messages in thread
From: Matthew Garrett @ 2010-04-14 12:36 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Dmitry Torokhov, linux-kernel, linux-input
On Wed, Apr 14, 2010 at 02:16:25PM +0200, Jiri Kosina wrote:
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq 2710p (#ABD)"),
> + DMI_MATCH(DMI_PRODUCT_VERSION, "F.14"),
Is this really the only BIOS version affected? It seems unlikely. It's
also a pretty good indication that we're doing something wrong.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:36 ` Matthew Garrett
@ 2010-04-14 12:41 ` Jiri Kosina
2010-04-14 12:44 ` Matthew Garrett
2010-04-14 12:53 ` Alan Cox
0 siblings, 2 replies; 14+ messages in thread
From: Jiri Kosina @ 2010-04-14 12:41 UTC (permalink / raw)
To: Matthew Garrett; +Cc: Dmitry Torokhov, linux-kernel, linux-input
On Wed, 14 Apr 2010, Matthew Garrett wrote:
> On Wed, Apr 14, 2010 at 02:16:25PM +0200, Jiri Kosina wrote:
> > + .matches = {
> > + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
> > + DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq 2710p (#ABD)"),
> > + DMI_MATCH(DMI_PRODUCT_VERSION, "F.14"),
>
> Is this really the only BIOS version affected? It seems unlikely.
I don't know, it's the only one I have received the report against (I
don't own the machine myself).
> It's also a pretty good indication that we're doing something wrong.
What do you mean exactly?
Sending AUX_LOOP is valid thing to do with i8042 controller. If it causes
such confusion that the controller doesn't function properly any more,
it's clearly broken.
--
Jiri Kosina
SUSE Labs, Novell Inc.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:41 ` Jiri Kosina
@ 2010-04-14 12:44 ` Matthew Garrett
2010-04-14 12:53 ` Alan Cox
1 sibling, 0 replies; 14+ messages in thread
From: Matthew Garrett @ 2010-04-14 12:44 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Dmitry Torokhov, linux-kernel, linux-input
On Wed, Apr 14, 2010 at 02:41:11PM +0200, Jiri Kosina wrote:
> Sending AUX_LOOP is valid thing to do with i8042 controller. If it causes
> such confusion that the controller doesn't function properly any more,
> it's clearly broken.
Does Windows send AUX_LOOP? If so, why does it not break the device? If
not, how does it obtain the same level of functionality?
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:53 ` Alan Cox
@ 2010-04-14 12:52 ` Matthew Garrett
2010-04-14 13:35 ` Alan Cox
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Garrett @ 2010-04-14 12:52 UTC (permalink / raw)
To: Alan Cox; +Cc: Jiri Kosina, Dmitry Torokhov, linux-kernel, linux-input
On Wed, Apr 14, 2010 at 01:53:50PM +0100, Alan Cox wrote:
> It's not really that unlikely that an AUX handling bug exists and only on
> one BIOS version given we've seen things as neat as i8042 emulation that
> only works on CPU #0 8)
Doubtless, but on the other hand these machines work with versions of
Windows that were released well before them, so if there's a difference
in behaviour then we have a bug regardless of what the spec says.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:41 ` Jiri Kosina
2010-04-14 12:44 ` Matthew Garrett
@ 2010-04-14 12:53 ` Alan Cox
2010-04-14 12:52 ` Matthew Garrett
1 sibling, 1 reply; 14+ messages in thread
From: Alan Cox @ 2010-04-14 12:53 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Matthew Garrett, Dmitry Torokhov, linux-kernel, linux-input
On Wed, 14 Apr 2010 14:41:11 +0200 (CEST)
Jiri Kosina <jkosina@suse.cz> wrote:
> On Wed, 14 Apr 2010, Matthew Garrett wrote:
>
> > On Wed, Apr 14, 2010 at 02:16:25PM +0200, Jiri Kosina wrote:
> > > + .matches = {
> > > + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
> > > + DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq 2710p (#ABD)"),
> > > + DMI_MATCH(DMI_PRODUCT_VERSION, "F.14"),
> >
> > Is this really the only BIOS version affected? It seems unlikely.
>
> I don't know, it's the only one I have received the report against (I
> don't own the machine myself).
>
> > It's also a pretty good indication that we're doing something wrong.
>
> What do you mean exactly?
>
> Sending AUX_LOOP is valid thing to do with i8042 controller. If it causes
> such confusion that the controller doesn't function properly any more,
> it's clearly broken.
You are assuming there is anything resembling an i8042 in the system.
There may not be, and even if there is there may be SMM code running in
front of it.
It's not really that unlikely that an AUX handling bug exists and only on
one BIOS version given we've seen things as neat as i8042 emulation that
only works on CPU #0 8)
Alan
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:52 ` Matthew Garrett
@ 2010-04-14 13:35 ` Alan Cox
2010-04-14 13:38 ` Matthew Garrett
0 siblings, 1 reply; 14+ messages in thread
From: Alan Cox @ 2010-04-14 13:35 UTC (permalink / raw)
To: Matthew Garrett; +Cc: Jiri Kosina, Dmitry Torokhov, linux-kernel, linux-input
On Wed, 14 Apr 2010 13:52:44 +0100
Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> On Wed, Apr 14, 2010 at 01:53:50PM +0100, Alan Cox wrote:
>
> > It's not really that unlikely that an AUX handling bug exists and only on
> > one BIOS version given we've seen things as neat as i8042 emulation that
> > only works on CPU #0 8)
>
> Doubtless, but on the other hand these machines work with versions of
> Windows that were released well before them, so if there's a difference
> in behaviour then we have a bug regardless of what the spec says.
I think in this case you are in cloud cuckoo land. Windows doesn't
autoprobe all these mouse types, and some years of careful
experimentation seems to indicate the best you can do is select which
devices break without blacklists.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 13:35 ` Alan Cox
@ 2010-04-14 13:38 ` Matthew Garrett
2010-04-14 13:40 ` Jiri Kosina
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Garrett @ 2010-04-14 13:38 UTC (permalink / raw)
To: Alan Cox; +Cc: Jiri Kosina, Dmitry Torokhov, linux-kernel, linux-input
On Wed, Apr 14, 2010 at 02:35:50PM +0100, Alan Cox wrote:
> I think in this case you are in cloud cuckoo land. Windows doesn't
> autoprobe all these mouse types, and some years of careful
> experimentation seems to indicate the best you can do is select which
> devices break without blacklists.
Blacklists which have to vary based on BIOS version? It's pretty obvious
that this doesn't scale.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 13:38 ` Matthew Garrett
@ 2010-04-14 13:40 ` Jiri Kosina
2010-04-14 13:43 ` Matthew Garrett
0 siblings, 1 reply; 14+ messages in thread
From: Jiri Kosina @ 2010-04-14 13:40 UTC (permalink / raw)
To: Matthew Garrett; +Cc: Alan Cox, Dmitry Torokhov, linux-kernel, linux-input
On Wed, 14 Apr 2010, Matthew Garrett wrote:
> > I think in this case you are in cloud cuckoo land. Windows doesn't
> > autoprobe all these mouse types, and some years of careful
> > experimentation seems to indicate the best you can do is select which
> > devices break without blacklists.
>
> Blacklists which have to vary based on BIOS version? It's pretty obvious
> that this doesn't scale.
... and your proposal is?
Ask vendors, who are shipping specialized windows drivers for their mice,
to be please so kind and always include a linux driver as well, and nuke
all the probing logic from in-kernel driver?
--
Jiri Kosina
SUSE Labs, Novell Inc.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 13:40 ` Jiri Kosina
@ 2010-04-14 13:43 ` Matthew Garrett
2010-04-14 16:01 ` Dmitry Torokhov
0 siblings, 1 reply; 14+ messages in thread
From: Matthew Garrett @ 2010-04-14 13:43 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Alan Cox, Dmitry Torokhov, linux-kernel, linux-input
On Wed, Apr 14, 2010 at 03:40:14PM +0200, Jiri Kosina wrote:
> Ask vendors, who are shipping specialized windows drivers for their mice,
> to be please so kind and always include a linux driver as well, and nuke
> all the probing logic from in-kernel driver?
Well, in this case we know that there's a synaptics (it's in ACPIPNP)
and we know that an internal synaptics places pretty heavy constraints
on what else is going to be attached to the machine.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 13:43 ` Matthew Garrett
@ 2010-04-14 16:01 ` Dmitry Torokhov
0 siblings, 0 replies; 14+ messages in thread
From: Dmitry Torokhov @ 2010-04-14 16:01 UTC (permalink / raw)
To: Matthew Garrett; +Cc: Jiri Kosina, Alan Cox, linux-kernel, linux-input
On Wed, Apr 14, 2010 at 02:43:21PM +0100, Matthew Garrett wrote:
> On Wed, Apr 14, 2010 at 03:40:14PM +0200, Jiri Kosina wrote:
>
> > Ask vendors, who are shipping specialized windows drivers for their mice,
> > to be please so kind and always include a linux driver as well, and nuke
> > all the probing logic from in-kernel driver?
>
> Well, in this case we know that there's a synaptics (it's in ACPIPNP)
> and we know that an internal synaptics places pretty heavy constraints
> on what else is going to be attached to the machine.
>
As in... anything? Many boxes still have external PS/2 ports that can
have pretty much any type of mouse attached. Especially those HPs that
have active multiplexor.
--
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 12:16 [PATCH] Input: add HP Compaq 2710p to 'noloop' table Jiri Kosina
2010-04-14 12:36 ` Matthew Garrett
@ 2010-04-14 16:04 ` Dmitry Torokhov
2010-04-14 21:57 ` Jiri Kosina
1 sibling, 1 reply; 14+ messages in thread
From: Dmitry Torokhov @ 2010-04-14 16:04 UTC (permalink / raw)
To: Jiri Kosina; +Cc: linux-kernel, linux-input
Hi Jiri,
On Wed, Apr 14, 2010 at 02:16:25PM +0200, Jiri Kosina wrote:
> Add HP Compaq 2710p to 'noloop' table. Otherwsie this machine is reported
> to not report properly to AUX_LOOP command time-to-time, causing
> non-working keyboard due to messed up i8042.
>
What is the chassis type for the box in DMI? I am curious why it isn't
caought up by the generic "portable" test...
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 16:04 ` Dmitry Torokhov
@ 2010-04-14 21:57 ` Jiri Kosina
2010-04-14 22:54 ` Dmitry Torokhov
0 siblings, 1 reply; 14+ messages in thread
From: Jiri Kosina @ 2010-04-14 21:57 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-kernel, linux-input
On Wed, 14 Apr 2010, Dmitry Torokhov wrote:
> > Add HP Compaq 2710p to 'noloop' table. Otherwsie this machine is reported
> > to not report properly to AUX_LOOP command time-to-time, causing
> > non-working keyboard due to messed up i8042.
> >
>
> What is the chassis type for the box in DMI? I am curious why it isn't
> caought up by the generic "portable" test...
Hmm, you are right, I completely forgot that we are now completely
bypassing AUX IRQ delivery on Portable/Laptop/(Sub-)Notebook chasis types.
I was going through my older patchqueue and flushing it, and this one
slipped through, as it is apparently not necessary for current mainline
(the machine in question has chasis type "Notebook"), but only for older
kernels.
Sorry for the fuss.
Thanks,
--
Jiri Kosina
SUSE Labs, Novell Inc.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] Input: add HP Compaq 2710p to 'noloop' table
2010-04-14 21:57 ` Jiri Kosina
@ 2010-04-14 22:54 ` Dmitry Torokhov
0 siblings, 0 replies; 14+ messages in thread
From: Dmitry Torokhov @ 2010-04-14 22:54 UTC (permalink / raw)
To: Jiri Kosina; +Cc: linux-kernel, linux-input
On Wed, Apr 14, 2010 at 11:57:04PM +0200, Jiri Kosina wrote:
> On Wed, 14 Apr 2010, Dmitry Torokhov wrote:
>
> > > Add HP Compaq 2710p to 'noloop' table. Otherwsie this machine is reported
> > > to not report properly to AUX_LOOP command time-to-time, causing
> > > non-working keyboard due to messed up i8042.
> > >
> >
> > What is the chassis type for the box in DMI? I am curious why it isn't
> > caought up by the generic "portable" test...
>
> Hmm, you are right, I completely forgot that we are now completely
> bypassing AUX IRQ delivery on Portable/Laptop/(Sub-)Notebook chasis types.
>
> I was going through my older patchqueue and flushing it, and this one
> slipped through, as it is apparently not necessary for current mainline
> (the machine in question has chasis type "Notebook"), but only for older
> kernels.
>
OK, thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-04-14 22:54 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 12:16 [PATCH] Input: add HP Compaq 2710p to 'noloop' table Jiri Kosina
2010-04-14 12:36 ` Matthew Garrett
2010-04-14 12:41 ` Jiri Kosina
2010-04-14 12:44 ` Matthew Garrett
2010-04-14 12:53 ` Alan Cox
2010-04-14 12:52 ` Matthew Garrett
2010-04-14 13:35 ` Alan Cox
2010-04-14 13:38 ` Matthew Garrett
2010-04-14 13:40 ` Jiri Kosina
2010-04-14 13:43 ` Matthew Garrett
2010-04-14 16:01 ` Dmitry Torokhov
2010-04-14 16:04 ` Dmitry Torokhov
2010-04-14 21:57 ` Jiri Kosina
2010-04-14 22:54 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).