RE: [PATCH] ufs: core: bsg: Add hibern8 enter/exit to ufshcd_send_bsg_uic_cmd
From: Arthur Simchaev
Date: Fri Mar 07 2025 - 04:10:44 EST
> I can understand that you want to use hibern8 enter&exit to trigger a RCT to
> kick start the EOM, however there is a better/simpler way to do so: you can
> trigger a power mode change to the same power mode (e.g., from HS-G5 to
> HS-G5) to trigger a RCT (without invoking hibern8 enter&exit) from user layer
> by dme_set(PA_PWRMODE).
>
> FYI, we have open-sourced Qcom's EOM tool in GitHub and validated the EOM
> function on most UFS4.x devices from UFS vendors, you can find the code for
> your reference:
> https://github.com/quic/ufs-tools/blob/main/ufs-cli/ufs_eom.c#L266
>
> The recent change from Ziqi Chen is to serve the power mode change purpose
> I mentioned above:
> https://lore.kernel.org/all/20241212144248.990103107@xxxxxxxxxxxxxxxxx
> g/
>
> Hope above info can help you.
>
> Thanks,
> Can Guo.
Thank you, Can.
I am familiar with this very useful tool. In fact, I published the patch due to the tool
In order to extend the debug functionality from the user space.
In my opinion, the hibern8 enter function can be used in a similar manner as the PMC.
For instance, if the host fails to change the power mode to FAST MODE with NO ADAPT.
Regards
Arthur