RE: [PATCH] ufs: core: bsg: Add hibern8 enter/exit to ufshcd_send_bsg_uic_cmd
From: Arthur Simchaev
Date: Wed Mar 26 2025 - 11:18:06 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.
Hi Can
Maybe I need reword the commit message. Having h8 from the user space is useful for creating different test cases.
For example, stressing h8 , MPHY enter/exit from hibern8.
Regards
Arthur