From: Marc Zyngier <maz@kernel.org>
To: "Biwen Li (OSS)" <biwen.li@oss.nxp.com>
Cc: mark.rutland@arm.com, linux-kernel@vger.kernel.org,
Leo Li <leoyang.li@nxp.com>, Jiafei Pan <jiafei.pan@nxp.com>,
Ran Wang <ran.wang_1@nxp.com>,
tglx@linutronix.de, linux-arm-kernel@lists.infradead.org
Subject: Re: [v2] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace
Date: Thu, 28 Jan 2021 09:02:14 +0000 [thread overview]
Message-ID: <6e20a326ebffdb6768a95c15ac743759@kernel.org> (raw)
In-Reply-To: <DB6PR0401MB2438851F8196DA9C6EF8C3D48FBA9@DB6PR0401MB2438.eurprd04.prod.outlook.com>
On 2021-01-28 02:37, Biwen Li (OSS) wrote:
>> -----Original Message-----
>> From: Marc Zyngier <maz@kernel.org>
>> Sent: 2021年1月27日 19:38
>> To: Biwen Li (OSS) <biwen.li@oss.nxp.com>
>> Cc: mark.rutland@arm.com; Leo Li <leoyang.li@nxp.com>;
>> tglx@linutronix.de;
>> jason@lakedaemon.net; linux-kernel@vger.kernel.org; Jiafei Pan
>> <jiafei.pan@nxp.com>; linux-arm-kernel@lists.infradead.org; Ran Wang
>> <ran.wang_1@nxp.com>; Biwen Li <biwen.li@nxp.com>
>> Subject: Re: [v2] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE
>> to
>> remove call trace
>>
>> On 2021-01-27 08:58, Biwen Li wrote:
>> > From: Biwen Li <biwen.li@nxp.com>
>> >
>> > Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, ...
>> > [ 45.605239] Unbalanced IRQ 120 wake disable
>> > [ 45.609445] WARNING: CPU: 0 PID: 1124 at kernel/irq/manage.c:800
>> > irq_set_irq_wake+0x154/0x1a0
>> > ...
>> > [ 45.645141] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
>> > [ 45.651144] pc : irq_set_irq_wake+0x154/0x1a0
>> > [ 45.655497] lr : irq_set_irq_wake+0x154/0x1a0
>> > ...
>> > [ 45.742825] Call trace:
>> > [ 45.745268] irq_set_irq_wake+0x154/0x1a0
>> > [ 45.749278] ds3232_resume+0x38/0x50
>> >
>> > On ls2088ardb:
>> > In suspend progress(# echo mem > /sys/power/state),
>> >
>> pm_suspend()->suspend_devices_and_enter()->dpm_suspend()->device_suspe
>> > nd()
>> > ->ds3232_suspend()->enable_irq_wake()->irq_set_irq_wake()
>> > ->set_irq_wake_real(), return -ENXIO, there get
>> > "Cannot set wakeup source" in ds3232_suspend().
>> >
>> > In resume progress(wakeup by flextimer)
>> > dpm_resume_end()->dpm_resume()
>> > ->device_resume()->ds3232_resume()
>> > ->disable_irq_wake()->irq_set_irq_wake()
>> > ->set_irq_wake_real(), there get
>> > kernel call trace(Unbalanced IRQ 120 wake
>> > disable)
>>
>> This is again paraphrasing the stack trace instead of explaining the
>> problem it
>> fixes. How about:
>>
>> "The ls-extirq driver doesn't implement the irq_set_wake()
>> callback, while being wake-up capable. This results in
>> ugly behaviours across suspend/resume cycles.
>>
>> Advertise this by adding IRQCHIP_SKIP_SET_WAKE to the irqchip
>> flags"
>>
>> The subject line should be fixed along the same lines, and a Fixes:
>> tag added.
> Okay, got it. Thanks. Will update in v3.
... and v3 still doesn't have a Fixes: tag.
Frankly, if you can't be bothered to do this, why should I worry
about your platform being broken?
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <maz@kernel.org>
To: "Biwen Li (OSS)" <biwen.li@oss.nxp.com>
Cc: mark.rutland@arm.com, Leo Li <leoyang.li@nxp.com>,
tglx@linutronix.de, linux-kernel@vger.kernel.org,
Jiafei Pan <jiafei.pan@nxp.com>,
linux-arm-kernel@lists.infradead.org,
Ran Wang <ran.wang_1@nxp.com>
Subject: Re: [v2] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace
Date: Thu, 28 Jan 2021 09:02:14 +0000 [thread overview]
Message-ID: <6e20a326ebffdb6768a95c15ac743759@kernel.org> (raw)
In-Reply-To: <DB6PR0401MB2438851F8196DA9C6EF8C3D48FBA9@DB6PR0401MB2438.eurprd04.prod.outlook.com>
On 2021-01-28 02:37, Biwen Li (OSS) wrote:
>> -----Original Message-----
>> From: Marc Zyngier <maz@kernel.org>
>> Sent: 2021年1月27日 19:38
>> To: Biwen Li (OSS) <biwen.li@oss.nxp.com>
>> Cc: mark.rutland@arm.com; Leo Li <leoyang.li@nxp.com>;
>> tglx@linutronix.de;
>> jason@lakedaemon.net; linux-kernel@vger.kernel.org; Jiafei Pan
>> <jiafei.pan@nxp.com>; linux-arm-kernel@lists.infradead.org; Ran Wang
>> <ran.wang_1@nxp.com>; Biwen Li <biwen.li@nxp.com>
>> Subject: Re: [v2] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE
>> to
>> remove call trace
>>
>> On 2021-01-27 08:58, Biwen Li wrote:
>> > From: Biwen Li <biwen.li@nxp.com>
>> >
>> > Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, ...
>> > [ 45.605239] Unbalanced IRQ 120 wake disable
>> > [ 45.609445] WARNING: CPU: 0 PID: 1124 at kernel/irq/manage.c:800
>> > irq_set_irq_wake+0x154/0x1a0
>> > ...
>> > [ 45.645141] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
>> > [ 45.651144] pc : irq_set_irq_wake+0x154/0x1a0
>> > [ 45.655497] lr : irq_set_irq_wake+0x154/0x1a0
>> > ...
>> > [ 45.742825] Call trace:
>> > [ 45.745268] irq_set_irq_wake+0x154/0x1a0
>> > [ 45.749278] ds3232_resume+0x38/0x50
>> >
>> > On ls2088ardb:
>> > In suspend progress(# echo mem > /sys/power/state),
>> >
>> pm_suspend()->suspend_devices_and_enter()->dpm_suspend()->device_suspe
>> > nd()
>> > ->ds3232_suspend()->enable_irq_wake()->irq_set_irq_wake()
>> > ->set_irq_wake_real(), return -ENXIO, there get
>> > "Cannot set wakeup source" in ds3232_suspend().
>> >
>> > In resume progress(wakeup by flextimer)
>> > dpm_resume_end()->dpm_resume()
>> > ->device_resume()->ds3232_resume()
>> > ->disable_irq_wake()->irq_set_irq_wake()
>> > ->set_irq_wake_real(), there get
>> > kernel call trace(Unbalanced IRQ 120 wake
>> > disable)
>>
>> This is again paraphrasing the stack trace instead of explaining the
>> problem it
>> fixes. How about:
>>
>> "The ls-extirq driver doesn't implement the irq_set_wake()
>> callback, while being wake-up capable. This results in
>> ugly behaviours across suspend/resume cycles.
>>
>> Advertise this by adding IRQCHIP_SKIP_SET_WAKE to the irqchip
>> flags"
>>
>> The subject line should be fixed along the same lines, and a Fixes:
>> tag added.
> Okay, got it. Thanks. Will update in v3.
... and v3 still doesn't have a Fixes: tag.
Frankly, if you can't be bothered to do this, why should I worry
about your platform being broken?
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2021-01-28 9:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-27 8:58 [v2] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace Biwen Li
2021-01-27 8:58 ` Biwen Li
2021-01-27 11:38 ` Marc Zyngier
2021-01-27 11:38 ` Marc Zyngier
2021-01-28 2:37 ` Biwen Li (OSS)
2021-01-28 2:37 ` Biwen Li (OSS)
2021-01-28 9:02 ` Marc Zyngier [this message]
2021-01-28 9:02 ` Marc Zyngier
2021-01-29 2:55 ` Biwen Li (OSS)
2021-01-29 2:55 ` Biwen Li (OSS)
2021-01-29 8:54 ` Marc Zyngier
2021-01-29 9:44 ` Biwen Li (OSS)
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=6e20a326ebffdb6768a95c15ac743759@kernel.org \
--to=maz@kernel.org \
--cc=biwen.li@oss.nxp.com \
--cc=jiafei.pan@nxp.com \
--cc=leoyang.li@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=ran.wang_1@nxp.com \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.