Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3538592rwb; Tue, 16 Aug 2022 05:03:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR72fBoXiqZPggcFh5tUlgiAu2oh+YUXX0UwXFTeMVwv++GyHPR0kc5FuZuTp+fo7HupPKPi X-Received: by 2002:a17:902:ed93:b0:170:a752:47ba with SMTP id e19-20020a170902ed9300b00170a75247bamr21227448plj.99.1660651399146; Tue, 16 Aug 2022 05:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660651399; cv=none; d=google.com; s=arc-20160816; b=p/SjgRB8+DJx7EfioyC53+Hl/QJfGHhe06SiNQqSpF2Jy37emT8XvUPHHMsMq/sIxd SIznG1z0ti1fjFBrg9bT2TdAnHJHnhZNlpO2Y7RGOCurSANRrX3tV7RL3JlqUJahM9+k 2OoSGQZZNyOl4V6BffrdyLBM/X8q0IixGJO54wcMLSKaVGWHy16QHg0cEldWjPfavyuw oyMFg+3sQ1KSgV5uaNTVgatJrjOmznvXIt5S5OMwenu9p6gCibiSipouvcupkSnfRGz3 boceS54n+XSQ4TctER+WL+ARiTe7MQerLemErqC0lInuACMkV5XYfN3JK35XWOKHFWmD 406w== 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=Jdzkwc0AVjkZG3JYUBV2T4VCfKRbqPY/sCdw/ztvUb8=; b=I3hK1ajemmo/HTs80v95zJomRYHVkXQAjBV4CrLjcHbGIycAIAKkIJTpc6v+bvl0W8 ux5JTcNjCGMleV8Rilu7zyi8c+e6wGPX8xkQprQrCewhced6rdC7SnPm2/BboOEcmgIh Ta4oOHHKzF4IUk1AB6oIXdsY5D3Ilv1ct0XhwYHxrDvpoWSuovrIeBkbvkPWCI97mQcb uI3b+vSpCz90tMZfs2nKSf0aOdVzn6X6u9UWO83+AtFd14SQY8QD/C74UpNspNWo9nfV Lrl3bh2YXRZrI8+IHCxuXvvKN4MLjAKfZWv0beGcpcWoTkvd5OhO0fu8G/F3huKeewHa EleA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eEZpZTlP; 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 y32-20020a631820000000b0041a67bc7f6asi9342164pgl.557.2022.08.16.05.03.03; Tue, 16 Aug 2022 05:03:19 -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=eEZpZTlP; 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 S234759AbiHPLvY (ORCPT + 99 others); Tue, 16 Aug 2022 07:51:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234875AbiHPLuV (ORCPT ); Tue, 16 Aug 2022 07:50:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B1CB7771; Tue, 16 Aug 2022 04:25:31 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27GAqsoj011842; Tue, 16 Aug 2022 11:24:51 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=Jdzkwc0AVjkZG3JYUBV2T4VCfKRbqPY/sCdw/ztvUb8=; b=eEZpZTlPI9kbVpxEpI6bvnhIBEBxksnJ1QCcF2R+R9Pkp3EY4mXt2pbHFtbnyGqSP3hw w6+VA1zQxVYLxDcnIhzTq8n9acaV+dAP+1ccF0MWcOm+j93Zi0T25vFlhrYVR+qh5SL5 LwXRt6LNRekbKkjFjGYmDFcy3KHvWMSbdd0WhQyDlM5Cs6JjVME9a4/vzefdhTmgr4+p c62Q1PNbMq1zqheYakmaDM/TupLdga1qeGNa/j9s9oSuUc8yNn77V+NTa7ZyEO7PAnyU oSf64knbHt/6CGMo7EGOCz/FZJoFGbxH2lkeDpOaw3gc5RDY92ATpDytH8FFNGX6nh7I jg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j08wm89xd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Aug 2022 11:24:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27GBOopo016339 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Aug 2022 11:24:50 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.22; Tue, 16 Aug 2022 04:24:45 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 7/7] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Tue, 16 Aug 2022 16:53:54 +0530 Message-ID: <1660649034-4303-8-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1660649034-4303-1-git-send-email-quic_srivasam@quicinc.com> References: <1660649034-4303-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: I5rrD3qSfT7QW_kxt5eeODLf43wT6UCG X-Proofpoint-GUID: I5rrD3qSfT7QW_kxt5eeODLf43wT6UCG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-16_07,2022-08-16_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 impostorscore=0 clxscore=1015 suspectscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208160042 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 --- 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 b0faa4b..72ae285 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*/ @@ -564,13 +564,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