Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Shazad Hussain <quic_shazhuss@quicinc.com>
To: Brian Masney <bmasney@redhat.com>,
	<linux-arm-msm@vger.kernel.org>,
	Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
	Eric Chanudet <echanude@redhat.com>,
	Prasad Sodagudi <psodagud@quicinc.com>
Subject: Re: sa8755p ufs ice bug: gcc_ufs_phy_ice_core_clk status stuck at 'off'
Date: Mon, 8 Jan 2024 23:44:35 +0530	[thread overview]
Message-ID: <49d85352-d022-4b59-a3f2-d8f7ef3028ac@quicinc.com> (raw)
In-Reply-To: <ZZYTYsaNUuWQg3tR@x1>



On 1/4/2024 7:39 AM, Brian Masney wrote:
> Right now when we boot the RideSX4 (sa8775p) board on linux-next with
> a quiet kernel log (specifically loglevel=4 - warning) about 50% of
> the boots fail since UFS cannot be mounted. Changing the loglevel to
> 5 (notice) or higher to show more logging makes the race condition
> and error go away. I tracked the error down to the following:
> 
>    - The ice driver fails to probe due to the error
>      "gcc_ufs_phy_ice_core_clk status stuck at 'off'" and returns
>      -EBUSY and is not retried. platform_set_drvdata() is never
>      called as expected.
> 
>    - The qcom UFS host driver calls of_qcom_ice_get(), however this
>      will always return -EPROBE_DEFER since the ice probe failed,
>      and platform_get_drvdata() is always null.
> 
> Here's the relevant log messages that I was able to get from a failed
> boot once I configured dracut to time out:
> 
>      gcc_ufs_phy_ice_core_clk status stuck at 'off'
>      qcom-ice: probe of 1d88000.crypto failed with error -16
>      ufshcd-qcom 1d84000.ufs: Cannot get ice instance from 1d88000.crypto
>      ufshcd-qcom 1d84000.ufs: Cannot get ice instance from 1d88000.crypto
>      platform 1d84000.ufs: deferred probe pending: ufshcd-qcom: ufshcd_pltfrm_init() failed
> 
> I assume that there's some kind of vote (icc, clk, regulator, etc)
> that's missing from the ice driver, and another driver is performing
> the necessary votes. However, I don't have access to the hardware docs
> to tell if that's the case. Can someone that has access take a look? I
> can post patch(es) if someone can point me to what needs configured.
> 
> Brian
> 

Hi Brian,

I can see that gcc_ufs_phy_ice_core_clk needs the gcc_ufs_phy_gdsc to be
enabled before this particular clk is enabled. But that required
power-domain I do not see in the ice DT node. That can cause this
problem.

-Shazad

  reply	other threads:[~2024-01-08 18:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04  2:09 sa8755p ufs ice bug: gcc_ufs_phy_ice_core_clk status stuck at 'off' Brian Masney
2024-01-08 18:14 ` Shazad Hussain [this message]
2024-01-08 20:50   ` Brian Masney
2024-01-08 23:35     ` Elliot Berman
2024-01-09 21:44       ` Brian Masney
2024-01-09 21:56         ` Elliot Berman
2024-01-09 23:45           ` Brian Masney
2024-01-15 15:47           ` Brian Masney

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=49d85352-d022-4b59-a3f2-d8f7ef3028ac@quicinc.com \
    --to=quic_shazhuss@quicinc.com \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=bmasney@redhat.com \
    --cc=echanude@redhat.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=psodagud@quicinc.com \
    /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