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] [day] [month] [year] [list]
Message-ID: <ac00b49505e926ac4f3d0d0ba315b366.sboyd@kernel.org>
Date:   Thu, 19 Oct 2023 17:05:54 -0700
From:   Stephen Boyd <sboyd@...nel.org>
To:     Andy Gross <agross@...nel.org>,
        Bjorn Andersson <andersson@...nel.org>,
        Konrad Dybcio <konrad.dybcio@...aro.org>,
        Krishna Kurapati PSSNV <quic_kriskura@...cinc.com>,
        Michael Turquette <mturquette@...libre.com>
Cc:     linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-arm-msm@...r.kernel.org, quic_ppratap@...cinc.com,
        quic_jackp@...cinc.com, Udipto Goswami <quic_ugoswami@...cinc.com>
Subject: Re: [RFC 4/8] clk: qcom: gcc-sm8450: Keep usb30 prim gdsc on during runtime suspend

Quoting Krishna Kurapati PSSNV (2023-10-19 01:37:20)
> 
> 
> On 10/19/2023 6:28 AM, Stephen Boyd wrote:
> > Quoting Krishna Kurapati (2023-10-17 06:19:44)
> >> When runtime suspend happens in host mode, if cable is removed at this
> >> instant, it triggers a resume where a xhci register access is done when
> >> gdsc is not on leading to a crash. Keep usb30 prim gdsc as on during
> >> runtime suspend to avoid this crash.
> >>
> >> Signed-off-by: Krishna Kurapati <quic_kriskura@...cinc.com>
> >> ---
> >> Note: I am not sure if this is the right way or setting GDSC flags to
> >> PWRSTS_RET_ON is the right approach. So for now made this change to
> > 
> > Does using PWRSTS_RET_ON work? Does the GDSC support being turned off or
> > is the lowest power state retention?
> 
> I didn't see any issue when I put it as PWRSTS_RET_ON. If the GDSC is 
> off, when we remove cable in host mode, we see a crash because of xhci 
> register access. But when I try putting PWRSTS_RET_ON / 
> CLK_RPM_ALWAYS_ON it doesn't crash.
> 

You need to find out if the GDSC only supports retention mode. Otherwise
it sounds like the xhci register access is happening when the genpd is
off, and thus the driver needs to power on the device before accessing
it.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ