linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] smbus unhiding kills thermal management
@ 2006-05-12  9:53 Pavel Machek
  2006-05-12 10:13 ` Carl-Daniel Hailfinger
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Pavel Machek @ 2006-05-12  9:53 UTC (permalink / raw)
  To: Andrew Morton, kernel list, trenn, thoenig, c-d.hailfinger.devel.2006

Do not enable the SMBus device on Asus boards if suspend
is used. We do not reenable the device on resume, leading to all sorts
of undesirable effects, the worst being a total fan failure after
resume on Samsung P35 laptop.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Signed-off-by: Pavel Machek <pavel@suse.cz>

---
commit f14c852a8cb7483ce0e1e0e05ef49fed2f67103b
tree ab0cbe41b344a62bc81dd5cb093e3b6062c12556
parent 392dbe84f1e484b1e48036ca266cb826fd34f8da
author <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
committer <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200

 drivers/pci/quirks.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 19e2b17..9c5509f 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -895,6 +895,7 @@ static void __init k8t_sound_hostbridge(
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
 
+#ifndef CONFIG_ACPI_SLEEP
 /*
  * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge
  * is not activated. The myth is that Asus said that they do not want the
@@ -906,8 +907,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_V
  * bridge. Unfortunately, this device has no subvendor/subdevice ID. So it 
  * becomes necessary to do this tweak in two steps -- I've chosen the Host
  * bridge as trigger.
+ *
+ * Actually, leaving it unhidden and not redoing the quirk over suspend2ram
+ * will cause thermal management to break down, and causing machine to
+ * overheat.
  */
-static int __initdata asus_hides_smbus = 0;
+static int __initdata asus_hides_smbus;
 
 static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev)
 {
@@ -1050,6 +1055,8 @@ static void __init asus_hides_smbus_lpc_
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_ICH6_1,	asus_hides_smbus_lpc_ich6 );
 
+#endif
+
 /*
  * SiS 96x south bridge: BIOS typically hides SMBus device...
  */

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12  9:53 [patch] smbus unhiding kills thermal management Pavel Machek
@ 2006-05-12 10:13 ` Carl-Daniel Hailfinger
  2006-05-12 10:20   ` Pavel Machek
  2006-05-12 23:34   ` Zwane Mwaikambo
  2006-05-12 18:27 ` Andrew Morton
  2006-05-13  0:20 ` Nigel Cunningham
  2 siblings, 2 replies; 11+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-05-12 10:13 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Andrew Morton, kernel list, trenn, thoenig, stable

Hi!

Pavel Machek wrote:
> Do not enable the SMBus device on Asus boards if suspend
> is used. We do not reenable the device on resume, leading to all sorts
> of undesirable effects, the worst being a total fan failure after
> resume on Samsung P35 laptop.
> 
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
> Signed-off-by: Pavel Machek <pavel@suse.cz>

This is probably also -stable material.

Regards,
Carl-Daniel

> ---
> commit f14c852a8cb7483ce0e1e0e05ef49fed2f67103b
> tree ab0cbe41b344a62bc81dd5cb093e3b6062c12556
> parent 392dbe84f1e484b1e48036ca266cb826fd34f8da
> author <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
> committer <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
> 
>  drivers/pci/quirks.c |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 19e2b17..9c5509f 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -895,6 +895,7 @@ static void __init k8t_sound_hostbridge(
>  }
>  DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
>  
> +#ifndef CONFIG_ACPI_SLEEP
>  /*
>   * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge
>   * is not activated. The myth is that Asus said that they do not want the
> @@ -906,8 +907,12 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_V
>   * bridge. Unfortunately, this device has no subvendor/subdevice ID. So it 
>   * becomes necessary to do this tweak in two steps -- I've chosen the Host
>   * bridge as trigger.
> + *
> + * Actually, leaving it unhidden and not redoing the quirk over suspend2ram
> + * will cause thermal management to break down, and causing machine to
> + * overheat.
>   */
> -static int __initdata asus_hides_smbus = 0;
> +static int __initdata asus_hides_smbus;
>  
>  static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev)
>  {
> @@ -1050,6 +1055,8 @@ static void __init asus_hides_smbus_lpc_
>  }
>  DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_ICH6_1,	asus_hides_smbus_lpc_ich6 );
>  
> +#endif
> +
>  /*
>   * SiS 96x south bridge: BIOS typically hides SMBus device...
>   */
> 


-- 
http://www.hailfinger.org/

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12 10:13 ` Carl-Daniel Hailfinger
@ 2006-05-12 10:20   ` Pavel Machek
  2006-05-12 10:49     ` Jan Engelhardt
  2006-05-12 23:34   ` Zwane Mwaikambo
  1 sibling, 1 reply; 11+ messages in thread
From: Pavel Machek @ 2006-05-12 10:20 UTC (permalink / raw)
  To: Carl-Daniel Hailfinger; +Cc: Andrew Morton, kernel list, trenn, thoenig, stable

On Pá 12-05-06 12:13:22, Carl-Daniel Hailfinger wrote:
> Hi!
> 
> Pavel Machek wrote:
> > Do not enable the SMBus device on Asus boards if suspend
> > is used. We do not reenable the device on resume, leading to all sorts
> > of undesirable effects, the worst being a total fan failure after
> > resume on Samsung P35 laptop.
> > 
> > Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
> > Signed-off-by: Pavel Machek <pavel@suse.cz>
> 
> This is probably also -stable material.

Yes, I'd like to see it go into -stable. (But IIRC stable rules were
"mainline first").
								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12 10:20   ` Pavel Machek
@ 2006-05-12 10:49     ` Jan Engelhardt
  2006-05-12 15:15       ` [stable] " Greg KH
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Engelhardt @ 2006-05-12 10:49 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Carl-Daniel Hailfinger, Andrew Morton, kernel list, trenn,
	thoenig, stable

>> 
>> This is probably also -stable material.
>
>Yes, I'd like to see it go into -stable. (But IIRC stable rules were
>"mainline first").

That rule was already broken IIRC.


Jan Engelhardt
-- 

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

* Re: [stable] Re: [patch] smbus unhiding kills thermal management
  2006-05-12 10:49     ` Jan Engelhardt
@ 2006-05-12 15:15       ` Greg KH
  2006-05-13 19:05         ` Pavel Machek
  0 siblings, 1 reply; 11+ messages in thread
From: Greg KH @ 2006-05-12 15:15 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Pavel Machek, kernel list, Carl-Daniel Hailfinger, trenn,
	thoenig, stable

On Fri, May 12, 2006 at 12:49:24PM +0200, Jan Engelhardt wrote:
> >> 
> >> This is probably also -stable material.
> >
> >Yes, I'd like to see it go into -stable. (But IIRC stable rules were
> >"mainline first").
> 
> That rule was already broken IIRC.

For non-security issues?  The rule is, "accepted by mainline".  So has
the maintainer accepted this yet or not?

thanks,

greg k-h

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12  9:53 [patch] smbus unhiding kills thermal management Pavel Machek
  2006-05-12 10:13 ` Carl-Daniel Hailfinger
@ 2006-05-12 18:27 ` Andrew Morton
  2006-05-12 22:48   ` Carl-Daniel Hailfinger
  2006-05-13  0:20 ` Nigel Cunningham
  2 siblings, 1 reply; 11+ messages in thread
From: Andrew Morton @ 2006-05-12 18:27 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel, trenn, thoenig, c-d.hailfinger.devel.2006

Pavel Machek <pavel@suse.cz> wrote:
>
> Do not enable the SMBus device on Asus boards if suspend
>  is used. We do not reenable the device on resume, leading to all sorts
>  of undesirable effects, the worst being a total fan failure after
>  resume on Samsung P35 laptop.
> 
>  Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
>  Signed-off-by: Pavel Machek <pavel@suse.cz>
> 
>  ---
>  commit f14c852a8cb7483ce0e1e0e05ef49fed2f67103b
>  tree ab0cbe41b344a62bc81dd5cb093e3b6062c12556
>  parent 392dbe84f1e484b1e48036ca266cb826fd34f8da
>  author <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
>  committer <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200

Are these attributions correct, or did Carl-Daniel write it?

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12 18:27 ` Andrew Morton
@ 2006-05-12 22:48   ` Carl-Daniel Hailfinger
  0 siblings, 0 replies; 11+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-05-12 22:48 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Pavel Machek, linux-kernel, trenn, thoenig

Andrew Morton wrote:
> Pavel Machek <pavel@suse.cz> wrote:
>> Do not enable the SMBus device on Asus boards if suspend
>>  is used. We do not reenable the device on resume, leading to all sorts
>>  of undesirable effects, the worst being a total fan failure after
>>  resume on Samsung P35 laptop.
>>
>>  Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
>>  Signed-off-by: Pavel Machek <pavel@suse.cz>
>>
>>  ---
>>  commit f14c852a8cb7483ce0e1e0e05ef49fed2f67103b
>>  tree ab0cbe41b344a62bc81dd5cb093e3b6062c12556
>>  parent 392dbe84f1e484b1e48036ca266cb826fd34f8da
>>  author <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
>>  committer <pavel@amd.ucw.cz> Fri, 12 May 2006 11:50:00 +0200
> 
> Are these attributions correct, or did Carl-Daniel write it?

I tracked down the bug and provided the patch.
Pavel changed it to use the correct config option.


Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12 10:13 ` Carl-Daniel Hailfinger
  2006-05-12 10:20   ` Pavel Machek
@ 2006-05-12 23:34   ` Zwane Mwaikambo
  2006-05-13  0:04     ` Carl-Daniel Hailfinger
  1 sibling, 1 reply; 11+ messages in thread
From: Zwane Mwaikambo @ 2006-05-12 23:34 UTC (permalink / raw)
  To: Carl-Daniel Hailfinger
  Cc: Pavel Machek, Andrew Morton, kernel list, trenn, thoenig, stable

On Fri, 12 May 2006, Carl-Daniel Hailfinger wrote:

> Pavel Machek wrote:
> > Do not enable the SMBus device on Asus boards if suspend
> > is used. We do not reenable the device on resume, leading to all sorts
> > of undesirable effects, the worst being a total fan failure after
> > resume on Samsung P35 laptop.
> > 
> > Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
> > Signed-off-by: Pavel Machek <pavel@suse.cz>
> 
> This is probably also -stable material.

Isn't it inevitable that we're going to have to rerun quirks on resume on 
some hardware?

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12 23:34   ` Zwane Mwaikambo
@ 2006-05-13  0:04     ` Carl-Daniel Hailfinger
  0 siblings, 0 replies; 11+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-05-13  0:04 UTC (permalink / raw)
  To: Zwane Mwaikambo
  Cc: Pavel Machek, Andrew Morton, kernel list, trenn, thoenig, stable

Zwane Mwaikambo wrote:
> On Fri, 12 May 2006, Carl-Daniel Hailfinger wrote:
> 
>> Pavel Machek wrote:
>>> Do not enable the SMBus device on Asus boards if suspend
>>> is used. We do not reenable the device on resume, leading to all sorts
>>> of undesirable effects, the worst being a total fan failure after
>>> resume on Samsung P35 laptop.
>>>
>>> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
>>> Signed-off-by: Pavel Machek <pavel@suse.cz>
>> This is probably also -stable material.
> 
> Isn't it inevitable that we're going to have to rerun quirks on resume on 
> some hardware?

Yes, but until we have a proper infrastructure for that, we have to
disable the smbus unhiding as a safe fix.

If you have the time to whip up a patch to add a sane quirks-on-resume
infrastructure, I'd be grateful. See the thread
"[RFC] [PATCH] Execute PCI quirks on resume from suspend-to-RAM" for
some ugly proof-of-concept.
My main motivation was to prevent bricking my laptop. Added functionality
is desirable, but secondary.

Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/

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

* Re: [patch] smbus unhiding kills thermal management
  2006-05-12  9:53 [patch] smbus unhiding kills thermal management Pavel Machek
  2006-05-12 10:13 ` Carl-Daniel Hailfinger
  2006-05-12 18:27 ` Andrew Morton
@ 2006-05-13  0:20 ` Nigel Cunningham
  2 siblings, 0 replies; 11+ messages in thread
From: Nigel Cunningham @ 2006-05-13  0:20 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Andrew Morton, kernel list, trenn, thoenig, c-d.hailfinger.devel.2006

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

Hi.

On Friday 12 May 2006 19:53, Pavel Machek wrote:
> Do not enable the SMBus device on Asus boards if suspend
> is used. We do not reenable the device on resume, leading to all sorts

If this is just a symptom of another problem, how about another patch 
addressing the base issue? Obviously it wouldn't be -stable material, but 
it's usually better to address the cause instead of the symptoms (or in this 
case, 'as well as').

Regards,

Nigel

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [stable] Re: [patch] smbus unhiding kills thermal management
  2006-05-12 15:15       ` [stable] " Greg KH
@ 2006-05-13 19:05         ` Pavel Machek
  0 siblings, 0 replies; 11+ messages in thread
From: Pavel Machek @ 2006-05-13 19:05 UTC (permalink / raw)
  To: Greg KH
  Cc: Jan Engelhardt, kernel list, Carl-Daniel Hailfinger, trenn,
	thoenig, stable

Hi!

> > >> 
> > >> This is probably also -stable material.
> > >
> > >Yes, I'd like to see it go into -stable. (But IIRC stable rules were
> > >"mainline first").
> > 
> > That rule was already broken IIRC.
> 
> For non-security issues?  The rule is, "accepted by mainline".  So has
> the maintainer accepted this yet or not?

Andrew took it to the -mm tree. That's as close to "accepted by
maintainer" as it gets, I'd say.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2006-05-13 19:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-12  9:53 [patch] smbus unhiding kills thermal management Pavel Machek
2006-05-12 10:13 ` Carl-Daniel Hailfinger
2006-05-12 10:20   ` Pavel Machek
2006-05-12 10:49     ` Jan Engelhardt
2006-05-12 15:15       ` [stable] " Greg KH
2006-05-13 19:05         ` Pavel Machek
2006-05-12 23:34   ` Zwane Mwaikambo
2006-05-13  0:04     ` Carl-Daniel Hailfinger
2006-05-12 18:27 ` Andrew Morton
2006-05-12 22:48   ` Carl-Daniel Hailfinger
2006-05-13  0:20 ` Nigel Cunningham

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).