* [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
@ 2009-03-18 8:36 yakui_zhao
2009-03-18 13:41 ` Matthew Garrett
2009-03-28 2:21 ` Len Brown
0 siblings, 2 replies; 9+ messages in thread
From: yakui_zhao @ 2009-03-18 8:36 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi
Subject: ACPI: Add the Pansonic CF51 box to the dmi check table
From: Zhao Yakui <yakui.zhao@intel.com>
The Pansonic CF51-2L box can't be resumed if the boot option of
"acpi_sleep=old_ordering" is not added.
Add the Pansonic CF51-2L to the dmi check table so that the old suspend
order is used.
http://bugzilla.kernel.org/show_bug.cgi?id=12561
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
---
drivers/acpi/sleep.c | 9 +++++++++
1 file changed, 9 insertions(+)
Index: linux-2.6/drivers/acpi/sleep.c
===================================================================
--- linux-2.6.orig/drivers/acpi/sleep.c 2009-03-10 10:54:41.000000000 +0800
+++ linux-2.6/drivers/acpi/sleep.c 2009-03-10 11:39:42.000000000 +0800
@@ -378,6 +378,15 @@
DMI_MATCH(DMI_PRODUCT_NAME, "Macmini1,1"),
},
},
+ {
+ .callback = init_old_suspend_ordering,
+ .ident = "Pansonic CF51-2L",
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR,
+ "Matsushita Electric Industrial Co.,Ltd."),
+ DMI_MATCH(DMI_BOARD_NAME, "CF51-2L"),
+ },
+ },
{},
};
#endif /* CONFIG_SUSPEND */
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-18 8:36 [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table yakui_zhao
@ 2009-03-18 13:41 ` Matthew Garrett
2009-03-19 1:16 ` yakui_zhao
2009-03-28 2:21 ` Len Brown
1 sibling, 1 reply; 9+ messages in thread
From: Matthew Garrett @ 2009-03-18 13:41 UTC (permalink / raw)
To: yakui_zhao; +Cc: lenb, linux-acpi
On Wed, Mar 18, 2009 at 04:36:25PM +0800, yakui_zhao wrote:
> Subject: ACPI: Add the Pansonic CF51 box to the dmi check table
> From: Zhao Yakui <yakui.zhao@intel.com>
>
> The Pansonic CF51-2L box can't be resumed if the boot option of
> "acpi_sleep=old_ordering" is not added.
Do we have any idea what's going on here, yet? Several of the machines
on this blacklist are modern, so it's not a workaround for ancient
hardware.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-18 13:41 ` Matthew Garrett
@ 2009-03-19 1:16 ` yakui_zhao
2009-03-19 1:21 ` Matthew Garrett
0 siblings, 1 reply; 9+ messages in thread
From: yakui_zhao @ 2009-03-19 1:16 UTC (permalink / raw)
To: Matthew Garrett; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
On Wed, 2009-03-18 at 21:41 +0800, Matthew Garrett wrote:
> On Wed, Mar 18, 2009 at 04:36:25PM +0800, yakui_zhao wrote:
> > Subject: ACPI: Add the Pansonic CF51 box to the dmi check table
> > From: Zhao Yakui <yakui.zhao@intel.com>
> >
> > The Pansonic CF51-2L box can't be resumed if the boot option of
> > "acpi_sleep=old_ordering" is not added.
>
> Do we have any idea what's going on here, yet?
> Several of the machines
> on this blacklist are modern, so it's not a workaround for ancient
> hardware.
Now we have no idea how the behaviour is changed with the boot option.
In fact the boot option is useful for all the boxes that can't be
resumed unless it is added.
Although the machine is modern, the ACPI 1.0 is followed on this box.
Without the boot option of "acpi_sleep=old_ordering", it can't be
resumed from S3 correctly. But after adding the boot option, the box can
be resumed.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-19 1:16 ` yakui_zhao
@ 2009-03-19 1:21 ` Matthew Garrett
2009-03-19 2:42 ` yakui_zhao
0 siblings, 1 reply; 9+ messages in thread
From: Matthew Garrett @ 2009-03-19 1:21 UTC (permalink / raw)
To: yakui_zhao; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
On Thu, Mar 19, 2009 at 09:16:07AM +0800, yakui_zhao wrote:
> On Wed, 2009-03-18 at 21:41 +0800, Matthew Garrett wrote:
> > Do we have any idea what's going on here, yet?
> > Several of the machines
> > on this blacklist are modern, so it's not a workaround for ancient
> > hardware.
> Now we have no idea how the behaviour is changed with the boot option.
> In fact the boot option is useful for all the boxes that can't be
> resumed unless it is added.
>
> Although the machine is modern, the ACPI 1.0 is followed on this box.
> Without the boot option of "acpi_sleep=old_ordering", it can't be
> resumed from S3 correctly. But after adding the boot option, the box can
> be resumed.
Yes. So how do we tell which ordering a machine needs without having a
blacklist? Windows doesn't.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-19 1:21 ` Matthew Garrett
@ 2009-03-19 2:42 ` yakui_zhao
2009-03-19 2:43 ` Matthew Garrett
0 siblings, 1 reply; 9+ messages in thread
From: yakui_zhao @ 2009-03-19 2:42 UTC (permalink / raw)
To: Matthew Garrett; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
On Thu, 2009-03-19 at 09:21 +0800, Matthew Garrett wrote:
> On Thu, Mar 19, 2009 at 09:16:07AM +0800, yakui_zhao wrote:
> > On Wed, 2009-03-18 at 21:41 +0800, Matthew Garrett wrote:
> > > Do we have any idea what's going on here, yet?
> > > Several of the machines
> > > on this blacklist are modern, so it's not a workaround for ancient
> > > hardware.
> > Now we have no idea how the behaviour is changed with the boot option.
> > In fact the boot option is useful for all the boxes that can't be
> > resumed unless it is added.
> >
> > Although the machine is modern, the ACPI 1.0 is followed on this box.
> > Without the boot option of "acpi_sleep=old_ordering", it can't be
> > resumed from S3 correctly. But after adding the boot option, the box can
> > be resumed.
>
> Yes. So how do we tell which ordering a machine needs without having a
> blacklist? Windows doesn't.
If there exists the different behaviour w/o the boot option, maybe it
should be added to the blacklist.
Maybe there is no such blacklist on windows.
I verify this problem on windows by using KVM and find that the _PTS
object is called after device suspend in course of hibernate.(No S3 is
supported on KVM). In theory the _PTS is also called after device
suspend in course of suspend.
But it is strange that suspend/resume can work well on windows XP.
Maybe more registers are saved/restored in course of suspend. But we
can't know what should be saved/restored.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-19 2:42 ` yakui_zhao
@ 2009-03-19 2:43 ` Matthew Garrett
2009-03-19 2:50 ` yakui_zhao
0 siblings, 1 reply; 9+ messages in thread
From: Matthew Garrett @ 2009-03-19 2:43 UTC (permalink / raw)
To: yakui_zhao; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
On Thu, Mar 19, 2009 at 10:42:02AM +0800, yakui_zhao wrote:
> On Thu, 2009-03-19 at 09:21 +0800, Matthew Garrett wrote:
> > Yes. So how do we tell which ordering a machine needs without having a
> > blacklist? Windows doesn't.
>
> If there exists the different behaviour w/o the boot option, maybe it
> should be added to the blacklist.
>
> Maybe there is no such blacklist on windows.
Quite. There shouldn't be on Linux.
> I verify this problem on windows by using KVM and find that the _PTS
> object is called after device suspend in course of hibernate.(No S3 is
> supported on KVM). In theory the _PTS is also called after device
> suspend in course of suspend.
What would it take to fake S3 on KVM enough that we could instrument
Windows' behaviour?
> But it is strange that suspend/resume can work well on windows XP.
> Maybe more registers are saved/restored in course of suspend. But we
> can't know what should be saved/restored.
Nor can we continue adding machines to a blacklist.
--
Matthew Garrett | mjg59@srcf.ucam.org
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-19 2:43 ` Matthew Garrett
@ 2009-03-19 2:50 ` yakui_zhao
2009-03-19 2:56 ` Matthew Garrett
0 siblings, 1 reply; 9+ messages in thread
From: yakui_zhao @ 2009-03-19 2:50 UTC (permalink / raw)
To: Matthew Garrett; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
On Thu, 2009-03-19 at 10:43 +0800, Matthew Garrett wrote:
> On Thu, Mar 19, 2009 at 10:42:02AM +0800, yakui_zhao wrote:
> > On Thu, 2009-03-19 at 09:21 +0800, Matthew Garrett wrote:
> > > Yes. So how do we tell which ordering a machine needs without having a
> > > blacklist? Windows doesn't.
> >
> > If there exists the different behaviour w/o the boot option, maybe it
> > should be added to the blacklist.
> >
> > Maybe there is no such blacklist on windows.
>
> Quite. There shouldn't be on Linux.
If there is no such blacklist, the suspend/resume can't wok well on some
boxes. IMO this can be workaround for some boxes that can't be resumed.
>
> > I verify this problem on windows by using KVM and find that the _PTS
> > object is called after device suspend in course of hibernate.(No S3 is
> > supported on KVM). In theory the _PTS is also called after device
> > suspend in course of suspend.
>
> What would it take to fake S3 on KVM enough that we could instrument
> Windows' behaviour?
The graphics simulated in KVM is too old.
>
> > But it is strange that suspend/resume can work well on windows XP.
> > Maybe more registers are saved/restored in course of suspend. But we
> > can't know what should be saved/restored.
>
> Nor can we continue adding machines to a blacklist.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-19 2:50 ` yakui_zhao
@ 2009-03-19 2:56 ` Matthew Garrett
0 siblings, 0 replies; 9+ messages in thread
From: Matthew Garrett @ 2009-03-19 2:56 UTC (permalink / raw)
To: yakui_zhao; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
On Thu, Mar 19, 2009 at 10:50:03AM +0800, yakui_zhao wrote:
> On Thu, 2009-03-19 at 10:43 +0800, Matthew Garrett wrote:
> > On Thu, Mar 19, 2009 at 10:42:02AM +0800, yakui_zhao wrote:
> > > Maybe there is no such blacklist on windows.
> >
> > Quite. There shouldn't be on Linux.
> If there is no such blacklist, the suspend/resume can't wok well on some
> boxes. IMO this can be workaround for some boxes that can't be resumed.
Workarounds should be temporary. Blacklists scale badly. In the long run
we need to determine why this doesn't work.
> > > I verify this problem on windows by using KVM and find that the _PTS
> > > object is called after device suspend in course of hibernate.(No S3 is
> > > supported on KVM). In theory the _PTS is also called after device
> > > suspend in course of suspend.
> >
> > What would it take to fake S3 on KVM enough that we could instrument
> > Windows' behaviour?
> The graphics simulated in KVM is too old.
Is this simply a matter of the driver setting a flag to indicate that it
supports S3?
--
Matthew Garrett | mjg59@srcf.ucam.org
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table
2009-03-18 8:36 [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table yakui_zhao
2009-03-18 13:41 ` Matthew Garrett
@ 2009-03-28 2:21 ` Len Brown
1 sibling, 0 replies; 9+ messages in thread
From: Len Brown @ 2009-03-28 2:21 UTC (permalink / raw)
To: yakui_zhao; +Cc: linux-acpi
I agree with Matthew that we need to find the root cause.
However, I've checked this into acpi-test in the interest
of getting the box working w/o delay.
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-03-28 2:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-18 8:36 [patch]: ACPI: Add the Pansonic CF51 box to the dmi check table yakui_zhao
2009-03-18 13:41 ` Matthew Garrett
2009-03-19 1:16 ` yakui_zhao
2009-03-19 1:21 ` Matthew Garrett
2009-03-19 2:42 ` yakui_zhao
2009-03-19 2:43 ` Matthew Garrett
2009-03-19 2:50 ` yakui_zhao
2009-03-19 2:56 ` Matthew Garrett
2009-03-28 2:21 ` Len Brown
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).