lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <540701B5.3020409@redhat.com>
Date:	Wed, 03 Sep 2014 07:55:33 -0400
From:	Prarit Bhargava <prarit@...hat.com>
To:	Lee Jones <lee.jones@...aro.org>
CC:	linux-kernel@...r.kernel.org, Peter Tyser <ptyser@...-inc.com>,
	Samuel Ortiz <sameo@...ux.intel.com>
Subject: Re: [PATCH] x86, lpc, Allow only one load of lpc_ich



On 09/03/2014 07:35 AM, Lee Jones wrote:

<snip>

>>>> This occurs because there are two LPC devices on the system:
>>>>
>>>> 00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
>>>> 80:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
>>>>
>>>> which AFAICT is a hardware configuration error that can be resolved in
>>>> firmware by hiding the second LPC device.  Having two of these results in
>>>> two GPIO mappings and two Watchdog Timers which doesn't make much sense.
>>>>
>>>> An end user has no idea what the splats mean.  We should inform the user that
>>>> the issue lies with the hardware and that they should contact their vendor
>>>> for resolution.
>>>
>>> Why is it a problem for 2 of these devices to exist on a single system?
>>>
>>> Shouldn't the driver just be able to handle 2 devices?
>>>

>>
>> You end up with two watchdogs on the same system (and more confusingly they use
>> the same global interface).  Additionally you end up with two sets of GPIOs
>> which also use the same global interface ... not good.
> 
> I understand the problem with the _driver_, but why is it a problem
> that two of these _devices_ exist on one system?  Bailing out of the
> second .probe() sounds hacky to me.  The driver should know that this
> is possible and act accordingly, or the second devices shouldn't be
> registered.
> 
> Can these devices be controlled seperately?  

Let's just try and address this for now ... They can be controlled separately
but that's not the issue here.

Consider just the watchdog timer (because it is easier to explain).  The way the
watchdog timer works is that we write to it every 30 seconds (or so ... it
depends on your setup obviously).  If we don't write to it within 30 seconds the
system will panic and reboot.

Now ... suppose you have two on a system.  To what end? It doesn't make sense to
have two.  Either you can write from userspace or you can't.  Now you have two
running with different timeouts -- why?  That doesn't make sense either.  It
isn't like the one with the longer timeout is ever going to cause a reboot.

Does that explain things better?  It's a not a real-world scenario.

You also asked ...

> Then why do they [have two devices specified]?

Because the vendor didn't/forgot to hide one from the kernel in BIOS -- hence
FW_BUG.

P.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ