lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 27 Oct 2021 21:00:34 +0200
From:   "Rafael J. Wysocki" <rafael@...nel.org>
To:     Chunfeng Yun <chunfeng.yun@...iatek.com>
Cc:     "Rafael J. Wysocki" <rafael@...nel.org>,
        Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Mathias Nyman <mathias.nyman@...el.com>,
        Matthias Brugger <matthias.bgg@...il.com>,
        Linux PM <linux-pm@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" 
        <linux-usb@...r.kernel.org>,
        Linux ARM <linux-arm-kernel@...ts.infradead.org>,
        "moderated list:ARM/Mediatek SoC..." 
        <linux-mediatek@...ts.infradead.org>,
        "Rafael J . Wysocki" <rafael.j.wysocki@...el.com>
Subject: Re: [PATCH v4 1/3] PM / wakeirq: support enabling wake-up irq after
 runtime_suspend called

On Wed, Oct 27, 2021 at 11:34 AM Chunfeng Yun <chunfeng.yun@...iatek.com> wrote:
>
> On Tue, 2021-10-26 at 17:39 +0200, Rafael J. Wysocki wrote:
> > On Mon, Oct 25, 2021 at 9:02 AM Chunfeng Yun <
> > chunfeng.yun@...iatek.com> wrote:
> > >
> > > When the dedicated wake IRQ is level trigger, and it uses the
> > > device's low-power status as the wakeup source, that means if the
> > > device is not in low-power state, the wake IRQ will be triggered
> > > if enabled; For this case, need enable the wake IRQ after running
> > > the device's ->runtime_suspend() which make it enter low-power
> > > state.
> > >
> > > e.g.
> > > Assume the wake IRQ is a low level trigger type, and the wakeup
> > > signal comes from the low-power status of the device.
> > > The wakeup signal is low level at running time (0), and becomes
> > > high level when the device enters low-power state (runtime_suspend
> > > (1) is called), a wakeup event at (2) make the device exit low-
> > > power
> > > state, then the wakeup signal also becomes low level.
> > >
> > >                 ------------------
> > >                |           ^     ^|
> > > ----------------           |     | --------------
> > >  |<---(0)--->|<--(1)--|   (3)   (2)    (4)
> > >
> > > if enable the wake IRQ before running runtime_suspend during (0),
> > > a wake IRQ will arise, it causes resume immediately;
> > > it works if enable wake IRQ ( e.g. at (3) or (4)) after running
> > > ->runtime_suspend().
> > >
> > > This patch introduces a new status WAKE_IRQ_DEDICATED_REVERSE to
> > > optionally support enabling wake IRQ after running
> > > ->runtime_suspend().
> > >
> > > Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
> > > Signed-off-by: Chunfeng Yun <chunfeng.yun@...iatek.com>
> >
> > I don't really have anything to add regarding the code.
> >
> > The kerneldoc comments could be improved, but I can take care of this
> > when applying the patch.
> Ok, thanks
> >
> > Please collect ACKs for the remaining 2 patches in the series and I
> > will pick up all three.
> The files (mtu3_plat.c, xhci-mtk.c) modified by other 2 patches are
> maintained by myself, please pick up them, thanks a lot.

OK, applied as 5.16 material, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ