Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp612980rwn; Thu, 8 Sep 2022 06:32:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4VpHmhaTvBWoduBCGGUWnq8EtGenNiGDS2F2iNUeWbeBXoDeNiKKkkP6E/RKm0IVRLFEk5 X-Received: by 2002:a17:907:e8c:b0:773:69e4:de06 with SMTP id ho12-20020a1709070e8c00b0077369e4de06mr2987570ejc.423.1662643959933; Thu, 08 Sep 2022 06:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662643959; cv=none; d=google.com; s=arc-20160816; b=xX6SXrruv4yjQpqApSfSdfHaeiiifUHP/crliBzDYu/63jreI4oT1ILSEQAVIi9jh9 vyTRw+qXLYZEAdVKWXtYV88uGrWTMJqTlZsATUtRwuIPTaJqCXs7mOocThUH94Qji4+o QFyFGtchvWjHlO9Za4dWulal6W0Pe0ct33UnKvQKG0XqE4GiVpoRybpZVY0DfuWo2lh3 caYtj0Hal6qpwkByrmPhUfmcrbDOL5AVheg+BpcpUWX+FCsF5hpkpoUGeV5qho5UtcN1 pF+KThx3H7GQ+9a/OHvwfJsmYPRTvOeI8WQqNFKKriySxI4R4+tsZeaGmr5s3uDaiK7c hhrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Sf7vs+B1hXRXmZ/h/pTN7HTiTNLxrOR6B3hBALtKKag=; b=TQ683XJkTMWs3c0yZC14++IR9kA82YxX0IS/MZsVgsISs1IYUYy8uVstuUpq1X4plm WqiZSWXK5T1CKH+KWgcAMdtDbjoaRcGxSJf2oT22adRXQBMn731okuUA/THRAuRowbTe Jc7uY4g3O4M3Bid45oM4rT0pPn9EqDv6OiODrK6np4p+/yJNiZPjnRpqhaAL99H0DJtN dO1DtJaY1EyjEL3PuGXyyaD3BabGgYzuqgOOGlYmaqjaSXiIDNVmifIKmce85txd4DlC Wj5N2+0YCPzFPuPI5ej44lZTobfYDAEBlfyZKR960zVYDXtzP68px/Q94TMd5EIvTDgE 12TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DS0AC1EH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg15-20020a170906f88f00b00762fb67a1ddsi1900584ejb.26.2022.09.08.06.32.09; Thu, 08 Sep 2022 06:32:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DS0AC1EH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231844AbiIHN0K (ORCPT + 99 others); Thu, 8 Sep 2022 09:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbiIHNZn (ORCPT ); Thu, 8 Sep 2022 09:25:43 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DC8FCD503; Thu, 8 Sep 2022 06:25:28 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 288CxoxU027463; Thu, 8 Sep 2022 13:24:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=Sf7vs+B1hXRXmZ/h/pTN7HTiTNLxrOR6B3hBALtKKag=; b=DS0AC1EH6c2u7Ti7AamlK1diKnBrd8VLQPnnN/56ZbpN7r0Zqnbf1mwOeGagmcIEv2Nl xg4OVT1tEpsSQkbqhDC9ceK5q1IhSW1D9MyIjazKIIH/Eygtp0oIeYg8vSsUNJv5Po2Z pqU3Qi6hdpHAhAH7bUoTDbLjfifmjP+M5TCbsA737eNgCxLh49vnM48+T/UhtDK9z7jz myOciZ4QzzHvOmhnwNzDW1ft888+iBOHjqGMwZbwLzwd0euJl9t5Fz74xyUarFSpmq+U XEQw2dxqK9BJMeZTOTr0EulMYmTl0BX1LU9XZRgb4npS2RYVSI86d/hNZZt/wrfVrXQ3 aQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jf5pcsjsn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Sep 2022 13:24:48 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 288DOlfl027101 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 8 Sep 2022 13:24:47 GMT Received: from hu-srivasam-hyd.qualcomm.com (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.986.29; Thu, 8 Sep 2022 06:24:42 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v6 8/8] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Thu, 8 Sep 2022 18:53:42 +0530 Message-ID: <1662643422-14909-9-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1662643422-14909-1-git-send-email-quic_srivasam@quicinc.com> References: <1662643422-14909-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] 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: qZzt0Q-ob0nkNndPS0IRQTE1vFvn05t- X-Proofpoint-GUID: qZzt0Q-ob0nkNndPS0IRQTE1vFvn05t- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-08_08,2022-09-08_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 spamscore=0 priorityscore=1501 adultscore=0 bulkscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209080049 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update QDSP6 out-of-reset timeout value to 1 second, as sometimes ADSP boot failing on SC7280 based platforms with existing value. Also add few micro seconds sleep after enabling boot core start register. Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Stephen Boyd --- drivers/remoteproc/qcom_q6v5_adsp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c index e55d593..4414e23 100644 --- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -34,7 +34,7 @@ /* time out value */ #define ACK_TIMEOUT 1000 #define ACK_TIMEOUT_US 1000000 -#define BOOT_FSM_TIMEOUT 10000 +#define BOOT_FSM_TIMEOUT 1000000 /* mask values */ #define EVB_MASK GENMASK(27, 4) /*QDSP6SS register offsets*/ @@ -422,13 +422,14 @@ static int adsp_start(struct rproc *rproc) /* De-assert QDSP6 stop core. QDSP6 will execute after out of reset */ writel(LPASS_BOOT_CORE_START, adsp->qdsp6ss_base + CORE_START_REG); + usleep_range(100, 110); /* Trigger boot FSM to start QDSP6 */ writel(LPASS_BOOT_CMD_START, adsp->qdsp6ss_base + BOOT_CMD_REG); /* Wait for core to come out of reset */ ret = readl_poll_timeout(adsp->qdsp6ss_base + BOOT_STATUS_REG, - val, (val & BIT(0)) != 0, 10, BOOT_FSM_TIMEOUT); + val, (val & BIT(0)) != 0, 100, BOOT_FSM_TIMEOUT); if (ret) { dev_err(adsp->dev, "failed to bootup adsp\n"); goto disable_adsp_clks; -- 2.7.4