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: Thu, 30 May 2024 22:23:35 +0530
From: Manivannan Sadhasivam <mani@...nel.org>
To: Abel Vesa <abel.vesa@...aro.org>
Cc: Bjorn Andersson <andersson@...nel.org>,
	Michael Turquette <mturquette@...libre.com>,
	Stephen Boyd <sboyd@...nel.org>,
	Rajendra Nayak <quic_rjendra@...cinc.com>,
	Bryan O'Donoghue <bryan.odonoghue@...aro.org>,
	Konrad Dybcio <konrad.dybcio@...aro.org>,
	Sibi Sankar <quic_sibis@...cinc.com>, linux-arm-msm@...r.kernel.org,
	linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: qcom: gcc-x1e80100: Fix halt_check for all 3 USB
 PHY pipe clocks

On Thu, May 30, 2024 at 07:48:44PM +0300, Abel Vesa wrote:
> Since the pipe clocks are fed by the QMP PHYs, they are not under the
> GCC control, therefore the halt bit might not get. This will lead to
> the clock driver reporting the clock as stuck, but that is inaccurate.
> So instead of waiting for the halt bit to get set, just use the
> HALT_DELAY flag.
> 

Isn't this behavior applicable to PCIe pipe clocks also?

- Mani

> Fixes: 161b7c401f4b ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100")
> Signed-off-by: Abel Vesa <abel.vesa@...aro.org>
> ---
>  drivers/clk/qcom/gcc-x1e80100.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-x1e80100.c b/drivers/clk/qcom/gcc-x1e80100.c
> index 1404017be918..afff7cd14848 100644
> --- a/drivers/clk/qcom/gcc-x1e80100.c
> +++ b/drivers/clk/qcom/gcc-x1e80100.c
> @@ -5186,7 +5186,7 @@ static struct clk_regmap_mux gcc_usb3_prim_phy_pipe_clk_src = {
>  
>  static struct clk_branch gcc_usb3_prim_phy_pipe_clk = {
>  	.halt_reg = 0x39068,
> -	.halt_check = BRANCH_HALT_VOTED,
> +	.halt_check = BRANCH_HALT_DELAY,
>  	.hwcg_reg = 0x39068,
>  	.hwcg_bit = 1,
>  	.clkr = {
> @@ -5257,7 +5257,7 @@ static struct clk_regmap_mux gcc_usb3_sec_phy_pipe_clk_src = {
>  
>  static struct clk_branch gcc_usb3_sec_phy_pipe_clk = {
>  	.halt_reg = 0xa1068,
> -	.halt_check = BRANCH_HALT_VOTED,
> +	.halt_check = BRANCH_HALT_DELAY,
>  	.hwcg_reg = 0xa1068,
>  	.hwcg_bit = 1,
>  	.clkr = {
> @@ -5327,7 +5327,7 @@ static struct clk_regmap_mux gcc_usb3_tert_phy_pipe_clk_src = {
>  
>  static struct clk_branch gcc_usb3_tert_phy_pipe_clk = {
>  	.halt_reg = 0xa2068,
> -	.halt_check = BRANCH_HALT_VOTED,
> +	.halt_check = BRANCH_HALT_DELAY,
>  	.hwcg_reg = 0xa2068,
>  	.hwcg_bit = 1,
>  	.clkr = {
> 
> ---
> base-commit: 9d99040b1bc8dbf385a8aa535e9efcdf94466e19
> change-id: 20240530-x1e80100-clk-gcc-fix-halt-check-for-usb-phy-pipe-clks-ef8cf5b5631b
> 
> Best regards,
> -- 
> Abel Vesa <abel.vesa@...aro.org>
> 
> 

-- 
மணிவண்ணன் சதாசிவம்

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ