From: Juergen Gross <jgross@suse.com>
To: Simon Gaiser <simon@invisiblethingslab.com>,
Thomas Gleixner <tglx@linutronix.de>
Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org,
Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [PATCH] xen/events: Add wakeup support to xen-pirq
Date: Mon, 31 Jul 2023 13:57:21 +0200 [thread overview]
Message-ID: <cb9828c7-6901-2157-fce4-20f25a5a47c7@suse.com> (raw)
In-Reply-To: <81ca146e-986c-b934-3567-2e1267a31ad7@invisiblethingslab.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1932 bytes --]
On 24.07.23 12:29, Simon Gaiser wrote:
> Simon Gaiser:
>> This allows entering and exiting s2idle. Actual S0ix residency is
>> another topic [1].
>>
>> Without this the ACPI code currently ignores the error enable_irq_wake()
>> returns when being used on a xen-pirq and the system goes to idle for
>> ever since the wakeup IRQ doesn't gets enabled. With [2] the error is
>> handled and the system refuses to go to s2idle.
>>
>> Link: https://lore.kernel.org/xen-devel/9051e484-b128-715a-9253-48af8e47bb9d@invisiblethingslab.com/ # [1]
>> Link: https://lore.kernel.org/linux-acpi/20230313125344.2893-1-simon@invisiblethingslab.com/ # [2]
>> Signed-off-by: Simon Gaiser <simon@invisiblethingslab.com>
>> ---
>>
>> While I think that the set of flags I set is correct, I'm not familiar
>> with that code, so please pay special attention during review if they
>> are actually correct for xen-pirq.
>>
>> drivers/xen/events/events_base.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
>> index c7715f8bd452..991082f04f05 100644
>> --- a/drivers/xen/events/events_base.c
>> +++ b/drivers/xen/events/events_base.c
>> @@ -2176,6 +2176,10 @@ static struct irq_chip xen_pirq_chip __read_mostly = {
>> .irq_set_affinity = set_affinity_irq,
>>
>> .irq_retrigger = retrigger_dynirq,
>> +
>> + .flags = IRQCHIP_SKIP_SET_WAKE |
>> + IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND |
>> + IRQCHIP_MASK_ON_SUSPEND,
>> };
>>
>> static struct irq_chip xen_percpu_chip __read_mostly = {
> ping
Sorry for not answering earlier.
I'm not sure about those flags either. Unfortunately I haven't found any
documentation or comments describing their detailed semantics in a way
enabling me to do a thorough review.
Thomas, are you seeing any problems with specifying those flags?
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
prev parent reply other threads:[~2023-07-31 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 13:41 Simon Gaiser
2023-07-24 10:29 ` Simon Gaiser
2023-07-31 11:57 ` Juergen Gross [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb9828c7-6901-2157-fce4-20f25a5a47c7@suse.com \
--to=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleksandr_tyshchenko@epam.com \
--cc=simon@invisiblethingslab.com \
--cc=sstabellini@kernel.org \
--cc=tglx@linutronix.de \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®