Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread George Dunlap
On 05/22/2018 12:44 PM, Jan Beulich wrote:
 On 22.05.18 at 13:21,  wrote:
>> On 05/22/2018 11:51 AM, Jan Beulich wrote:
>> On 21.05.18 at 16:16,  wrote:
 Most server-class hardware doesn't support ACPI S3 suspend;
>>>
>>> Is that really the case? I though S3 was pretty "normal" these days.
>>>
 but most bugs we'll run across won't need actual S3 to trigger.
>>>
>>> Not sure about this one either: In particular the microcode issue
>>> addressed recently does require actual S3 to surface. I'm not
>>> meaning to put under question the usefulness of this option,
>>> though. I'd just like the description to not lead to people drawing
>>> wrong conclusions.
>>
>> Re S3 support, I was just repeating what I'd heard.  My judgement is
>> still that "most" bugs we end up encountering will be on the Xen side;
>> but I'm happy to reword it to take out / moderate both implications.
> 
> Oh, surely issues normally are on the Xen side. It's just that there's a
> fair range of issues which still require actually going through S3 to
> show up - the ucode issues after XSA-254 are a good example thereof.

Well FWIW with acpi_power=s3_fake on staging+patch, the machine hangs
with default bti / xpti settings, and works with bti and xpti disabled.
So at least some part of XSA-254 issues can / would be caught without
having to actually enter real S3.

 -George

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread Jan Beulich
>>> On 22.05.18 at 13:21,  wrote:
> On 05/22/2018 11:51 AM, Jan Beulich wrote:
> On 21.05.18 at 16:16,  wrote:
>>> Most server-class hardware doesn't support ACPI S3 suspend;
>> 
>> Is that really the case? I though S3 was pretty "normal" these days.
>> 
>>> but most bugs we'll run across won't need actual S3 to trigger.
>> 
>> Not sure about this one either: In particular the microcode issue
>> addressed recently does require actual S3 to surface. I'm not
>> meaning to put under question the usefulness of this option,
>> though. I'd just like the description to not lead to people drawing
>> wrong conclusions.
> 
> Re S3 support, I was just repeating what I'd heard.  My judgement is
> still that "most" bugs we end up encountering will be on the Xen side;
> but I'm happy to reword it to take out / moderate both implications.

Oh, surely issues normally are on the Xen side. It's just that there's a
fair range of issues which still require actually going through S3 to
show up - the ucode issues after XSA-254 are a good example thereof.

Jan



___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread George Dunlap
On 05/22/2018 11:51 AM, Jan Beulich wrote:
 On 21.05.18 at 16:16,  wrote:
>> Most server-class hardware doesn't support ACPI S3 suspend;
> 
> Is that really the case? I though S3 was pretty "normal" these days.
> 
>> but most bugs we'll run across won't need actual S3 to trigger.
> 
> Not sure about this one either: In particular the microcode issue
> addressed recently does require actual S3 to surface. I'm not
> meaning to put under question the usefulness of this option,
> though. I'd just like the description to not lead to people drawing
> wrong conclusions.

Re S3 support, I was just repeating what I'd heard.  My judgement is
still that "most" bugs we end up encountering will be on the Xen side;
but I'm happy to reword it to take out / moderate both implications.

 -George

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread Andrew Cooper
On 22/05/18 11:51, Jan Beulich wrote:
 On 21.05.18 at 16:16,  wrote:
>> Most server-class hardware doesn't support ACPI S3 suspend;
> Is that really the case? I though S3 was pretty "normal" these days.

I don't think I've never encountered a server without S3, although
sometimes it does require enabling in the firmware.

~Andrew

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread Jan Beulich
>>> On 21.05.18 at 17:33,  wrote:
> On 05/21/2018 03:28 PM, Andrew Cooper wrote:
>> On 21/05/18 15:16, George Dunlap wrote:
>>> Most server-class hardware doesn't support ACPI S3 suspend; but most
>>> bugs we'll run across won't need actual S3 to trigger.  Add a
>>> command-line parameter for a "fake" S3, which will do everything
>>> during suspend/restore except actually calling into the ACPI S3
>>> handler.
>>>
>>> Signed-off-by: Ben Guthro 
>>> Signed-off-by: George Dunlap 
>>> ---
>>> This was originally posted in 2013, but never actually checked in.
>>>
>>> I've removed an extraneous line, and changed the underscore in the
>>> option into a dash (as Jan seems to prefer).
>>>
>>> Compile-tested only.
>>>
>>> If we want osstest to be able to test this functionality it should
>>> probably be backported.
>>>
>>> CC: Ian Jackson 
>>> CC: Dario Faggioli 
>>> CC: Andrew Cooper 
>>> CC: Jan Beulich 
>>> CC: Marek Marczykowski-Górecki 
>> 
>> bool_t => bool, drop the redundant initialiser, and you need to patch
>> xen-command-line.markdown.
> 
> Hmm, actually -- would it make more sense to add this as an option to
> acpi_sleep?  e.g., "acpi_sleep=s3_fake"?  (Along with s3_bios and s3_mode?)

+1

Jan


___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread Jan Beulich
>>> On 21.05.18 at 16:16,  wrote:
> Most server-class hardware doesn't support ACPI S3 suspend;

Is that really the case? I though S3 was pretty "normal" these days.

> but most bugs we'll run across won't need actual S3 to trigger.

Not sure about this one either: In particular the microcode issue
addressed recently does require actual S3 to surface. I'm not
meaning to put under question the usefulness of this option,
though. I'd just like the description to not lead to people drawing
wrong conclusions.

Jan



___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-22 Thread Dario Faggioli
On Mon, 2018-05-21 at 16:33 +0100, George Dunlap wrote:
> On 05/21/2018 03:28 PM, Andrew Cooper wrote:
> > On 21/05/18 15:16, George Dunlap wrote:
> > > Most server-class hardware doesn't support ACPI S3 suspend; but
> > > most
> > > bugs we'll run across won't need actual S3 to trigger.  Add a
> > > command-line parameter for a "fake" S3, which will do everything
> > > during suspend/restore except actually calling into the ACPI S3
> > > handler.
> > > 
> > bool_t => bool, drop the redundant initialiser, and you need to
> > patch
> > xen-command-line.markdown.
> 
> Hmm, actually -- would it make more sense to add this as an option to
> acpi_sleep?  e.g., "acpi_sleep=s3_fake"?  (Along with s3_bios and
> s3_mode?)
> 
This actually seems a good idea to me.

Dario
-- 
<> (Raistlin Majere)
-
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Software Engineer @ SUSE https://www.suse.com/

signature.asc
Description: This is a digitally signed message part
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-21 Thread George Dunlap
On 05/21/2018 03:28 PM, Andrew Cooper wrote:
> On 21/05/18 15:16, George Dunlap wrote:
>> Most server-class hardware doesn't support ACPI S3 suspend; but most
>> bugs we'll run across won't need actual S3 to trigger.  Add a
>> command-line parameter for a "fake" S3, which will do everything
>> during suspend/restore except actually calling into the ACPI S3
>> handler.
>>
>> Signed-off-by: Ben Guthro 
>> Signed-off-by: George Dunlap 
>> ---
>> This was originally posted in 2013, but never actually checked in.
>>
>> I've removed an extraneous line, and changed the underscore in the
>> option into a dash (as Jan seems to prefer).
>>
>> Compile-tested only.
>>
>> If we want osstest to be able to test this functionality it should
>> probably be backported.
>>
>> CC: Ian Jackson 
>> CC: Dario Faggioli 
>> CC: Andrew Cooper 
>> CC: Jan Beulich 
>> CC: Marek Marczykowski-Górecki 
> 
> bool_t => bool, drop the redundant initialiser, and you need to patch
> xen-command-line.markdown.

Hmm, actually -- would it make more sense to add this as an option to
acpi_sleep?  e.g., "acpi_sleep=s3_fake"?  (Along with s3_bios and s3_mode?)

 -George

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Add fake_s3 command-line option for testing

2018-05-21 Thread Andrew Cooper
On 21/05/18 15:16, George Dunlap wrote:
> Most server-class hardware doesn't support ACPI S3 suspend; but most
> bugs we'll run across won't need actual S3 to trigger.  Add a
> command-line parameter for a "fake" S3, which will do everything
> during suspend/restore except actually calling into the ACPI S3
> handler.
>
> Signed-off-by: Ben Guthro 
> Signed-off-by: George Dunlap 
> ---
> This was originally posted in 2013, but never actually checked in.
>
> I've removed an extraneous line, and changed the underscore in the
> option into a dash (as Jan seems to prefer).
>
> Compile-tested only.
>
> If we want osstest to be able to test this functionality it should
> probably be backported.
>
> CC: Ian Jackson 
> CC: Dario Faggioli 
> CC: Andrew Cooper 
> CC: Jan Beulich 
> CC: Marek Marczykowski-Górecki 

bool_t => bool, drop the redundant initialiser, and you need to patch
xen-command-line.markdown.

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel