Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1486789lql; Tue, 12 Mar 2024 21:27:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUo1KTspjpmcY89JfiFCTIUH7gBFwe6nhsz36fkn5sPXdA+IrHm1rVaScgzmwzd3+WwRxTeU23m5nOYczBeu02bH42p5nN2jk8Bkf87Aw== X-Google-Smtp-Source: AGHT+IFfXuiVOEUsSwTk7JOY0kdksmBJqy5BijOVJsViXOxqR4nC6TzIo/+EAOi0ih9RcB8+Jile X-Received: by 2002:a05:6000:100b:b0:33e:8a43:3258 with SMTP id a11-20020a056000100b00b0033e8a433258mr913333wrx.69.1710304045683; Tue, 12 Mar 2024 21:27:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710304045; cv=pass; d=google.com; s=arc-20160816; b=FDvmTuJJmRGW/6Z3wmydY6qNC8HgzzPbS7JjO7J8rE+7ggCfHsSe+4O5UaOK2bc9M8 otLmA63rppNlMDrAtcMv+ERXTwnChWBVWLPUWQvEHkTas7lq5Z6hPTzksdUwoOuf8cSj nrdnxPq4QcIkEphdAFQprJes3AxuHnfsRANLzLnUY7OHSpuiQlfp7eQdGhaBmgBoc9Tp 8OJqVaHbBmrQNcXBna1hqBS8Bx0zeCeK0Zxpor8gDdRPFWj37Mr1Qx1CgDLKyehO7sRG m+q+l4bc1CdmRYuKD7ewKDY+c1+7cMVd8rqWK5QePISvs4px1oaKDgQKc4E694W9o6CH pTTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=+82VzOw1lv5FIzC+UC5eKLpt50PCuzFKY5+brNawC8M=; fh=uaJymyDmXyDmVXYSooKERs9PTaYbVZt+psWi6o1JCso=; b=NpDj5lAnm4scOaYYfM5uQw1xwFTN6qP0Zz5IrfywpDKj6S4krTx9Qo0KBkple9Pjuc EPiRMMID8g60VhspYMlTmNmmAwNz4FrWHY4rYPfp73I0RZ3cdlFEQaO0ra7jaEoel4dK cQ3yeKEKK4n+0uWonqJbAulpJ7cbsk49CYbegpibrAmliZqjwkL3IxnQ6o6v82wjuU1A EjyLc1N4JBU+9icLMFOo3YPJPieWBrRHBbgyDvhWwQ+AiTVs10MAkxyV1rsdti+XuQ14 MWrPF7l8rvOHc6d6kx09LAA5aSM6HFNk6QwumiadPPpYf/GoZVQ9YckV4O9Cf2Vi8Mtz 7zwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=n9KcuKFp; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-101098-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101098-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 22-20020a508756000000b005655ce1074esi4181819edv.159.2024.03.12.21.27.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 21:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101098-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=n9KcuKFp; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-101098-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101098-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6598D1F21BC0 for ; Wed, 13 Mar 2024 04:27:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 679791119B; Wed, 13 Mar 2024 04:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="n9KcuKFp" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E365E65C; Wed, 13 Mar 2024 04:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710304035; cv=none; b=k6ZVGDUQvmQnwOvGDU8/a5eVvuOcU7SuQ1EWdCnUdh4wuTOquHZ6mv9cw6DDtpax9xggA3OctN2eZmwYBMvIMI+HMWgpyLBN77REBRS+KLjnBXzn8Ju5o2LYqfOh+JccC7KrfbLnDvAvSYtkvPjbvIuoT3yACyuSYp7qywcPNe8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710304035; c=relaxed/simple; bh=RFRDpG5Td68f6Fw5cn/ZXvS9iR0pwkfieQGofQe5jeg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ptPfOV0nJQhCqnApt/zwb3uVFHSZAOFzqMDTFkwX+UoEJn1zUVXwzJyMiSHCEH9U2LQvLGxPbys5Z4fBmiedtpOAh6XfWDIZO2DOOLzwAuVblfsFl9FoDVV6jlyuH7ESyH7yvU6QnOdgbIxc7gzM8E8x2aglI6Uni8BsHwNIhT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=n9KcuKFp; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42D1ARCL022857; Wed, 13 Mar 2024 04:27:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=+82VzOw1lv5FIzC+UC5eKLpt50PCuzFKY5+brNawC8M=; b=n9 KcuKFplHW+ArWdvFXVy1oLpFuUGTn96X0WaYqhgx9PBzufo5cZ+/0F8B0NLXrkMA 8MFNAYzpcNXEevwscod/trwoD98j6dSvVrylnZrs/XPXsr13BXVeDXZnvsYYuwxC sa+Mcjudle5JuAJSFOCD16bIMnmi8FBZG8VaXBPR9wQEMpNXQsccpAVn9Ide5V7z n6cYbZQ1XzZcrz3D7U6fbaB7AXFTzImDhA7hMoCsH3lhChotVvqt/chN8JMHsbSl q/E8LfFGmT6/t3e2YhhF+tUlkjQJ1eHUbreVDiqsfG+Zx/dIBWNelG8CUkbqYn57 g5aNMw9iPBGVTSWWH/RQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wtw3h0y4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 04:27:07 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42D4QWf0012924 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 04:26:32 GMT Received: from [10.201.2.96] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 12 Mar 2024 21:26:28 -0700 Message-ID: <690cba7c-4362-4e19-8573-ab20b8119ae2@quicinc.com> Date: Wed, 13 Mar 2024 09:56:25 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clk: qcom: apss-ipq-pll: use stromer ops for IPQ5018 to fix boot failure Content-Language: en-US To: Gabor Juhos , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Dmitry Baryshkov , Gokul Sriram Palanisamy CC: , , , References: <20240311-apss-ipq-pll-ipq5018-hang-v1-1-8ed42b7a904d@gmail.com> From: Kathiravan Thirumoorthy In-Reply-To: <20240311-apss-ipq-pll-ipq5018-hang-v1-1-8ed42b7a904d@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Uaj_-QNsnGVNrBV1qqwUJKtX_Oo3BZYT X-Proofpoint-GUID: Uaj_-QNsnGVNrBV1qqwUJKtX_Oo3BZYT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-13_04,2024-03-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=833 spamscore=0 malwarescore=0 impostorscore=0 clxscore=1011 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403130031 On 3/11/2024 8:36 PM, Gabor Juhos wrote: > Booting v6.8 results in a hang on various IPQ5018 based boards. > Investigating the problem showed that the hang happens when the > clk_alpha_pll_stromer_plus_set_rate() function tries to write > into the PLL_MODE register of the APSS PLL. > > Checking the downstream code revealed that it uses [1] stromer > specific operations for IPQ5018, whereas in the current code > the stromer plus specific operations are used. > > The ops in the 'ipq_pll_stromer_plus' clock definition can't be > changed since that is needed for IPQ5332, so add a new alpha pll > clock declaration which uses the correct stromer ops and use this > new clock for IPQ5018 to avoid the boot failure. > > 1. https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4/drivers/clk/qcom/apss-ipq5018.c#L67 Thanks for catching this! Tested-by: Kathiravan Thirumoorthy Reviewed-by: Kathiravan Thirumoorthy > > Cc: stable@vger.kernel.org > Fixes: 50492f929486 ("clk: qcom: apss-ipq-pll: add support for IPQ5018") > Signed-off-by: Gabor Juhos > --- > Based on v6.8. > --- > drivers/clk/qcom/apss-ipq-pll.c | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-)