Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2079010rwa; Mon, 22 Aug 2022 01:28:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5g0+r2fw5wM0UR2V0948C7r7L5PyA4v9BmzfxHd7zS8t19v604H8OIHQHRkIq2A4ffZAhz X-Received: by 2002:a05:6402:1d51:b0:41f:cf6c:35a5 with SMTP id dz17-20020a0564021d5100b0041fcf6c35a5mr15783477edb.25.1661156898287; Mon, 22 Aug 2022 01:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661156898; cv=none; d=google.com; s=arc-20160816; b=UhWpIZur8UV/j3M5bWi5w+riRo2Sm8JHJEqRW2Y3GUArACyAYjcBuhHO28dMQ9+e5c jbmXCnhflud3lCgKyR/5NmhXClTmE1oqZjTfhXt8zkZuZk5YEHAq8/WeEWNdtqae8C0d n9Juc5X9eR6EO9NtqRXclKzhw4K+vnI5IE6KsJeE3R8K+b6MUgFuYd8nkFe5jekLjAB8 /C5yyd2H8nnEmpOBT/t8HwNNEUQnPxSlBMFxuNtoj68Q0sHcH6cRZiXYHwhKlPD20lTs I3G6YPAjon59KshLQNkuydNjNsGuCWkLxWWDNJO1fnoOLuXx64nXi61YSbhIjiNZC/7y i7Gw== 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=KmJW1LuaEn2+w0JZ2Kqty2CEqrt9rxqenBoGpI87W98=; b=g7mY9Xb7T055g1eg7UhpHGvSS2AQq2XOakBb7+UOtShJ2uhig4kl3dnV+XjMXIetvV WRFC4ATl/RAMX+rS5yXmGrOZ5GNjqdpwm3TShRf7Sbra1OrWMGfArIq8RnvM3IkHvDlb k8KTx6KIl3ldF/trary0hoMQ5ha7jfhBoDYPcodvy9tkq5EWjW6hK5rRAG2WECIfnHtJ deTe19JQ3/enNGVaOBbuHvEgV7yAQzBpS1g3Zo4F4pTWSprBaFRkXz3MILWBzMzQRWyP TKOR6Mim/HAV0g99KkwyBZ5gjeaZxPbi0ViUB2ZJ2NFX1q1inBjOy27IDd83mVXvf4f5 Ubdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bnSdVfyz; 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 cx1-20020a05640222a100b00445e63a702fsi7983978edb.215.2022.08.22.01.27.52; Mon, 22 Aug 2022 01:28:18 -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=bnSdVfyz; 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 S233845AbiHVIYo (ORCPT + 99 others); Mon, 22 Aug 2022 04:24:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234004AbiHVIX7 (ORCPT ); Mon, 22 Aug 2022 04:23:59 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 709F763EC; Mon, 22 Aug 2022 01:23:46 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27M5B6Wa024481; Mon, 22 Aug 2022 08:23:07 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=KmJW1LuaEn2+w0JZ2Kqty2CEqrt9rxqenBoGpI87W98=; b=bnSdVfyzaxaja9zqdajWnBtc4r64jLzis6ncarQgRAUaQLMv0UsHQrJQ8FCX1HDnKIZc KTsY8XbccLR3Z0ntoH91zGKL/mScNK3sDd0al8hO+cF51HXhlUS5oUX7C67RpUam61Ho yAlu2oLCovKQsPpKZX7sWZpjKHS3jB9aLHM4wMlplQ5LJjkBTZ2QbNUw6HGpMV1QDZ7F MPRxCKBBM88Kde39BOuYcPsHmhCbjaPG1FfLI8kviSH2a6nAMHo9c0xSVPTPxMPB3VdA xaWG+b/caY2ITAi+PP4RMG1/wINk24mqSQwhNSmpVMV+/4nIgsxg2dKynRHyy4/QIPYq 4g== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j2vwn3ncj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Aug 2022 08:23:06 +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 27M8N5Gx021586 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Aug 2022 08:23:05 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; Mon, 22 Aug 2022 01:23:00 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [RESEND v5 7/7] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Mon, 22 Aug 2022 13:52:03 +0530 Message-ID: <1661156523-22611-8-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1661156523-22611-1-git-send-email-quic_srivasam@quicinc.com> References: <1661156523-22611-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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-GUID: NFbi5AdNeZ_ZPUUtnvjgQGLFuoncWNns X-Proofpoint-ORIG-GUID: NFbi5AdNeZ_ZPUUtnvjgQGLFuoncWNns X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-22_04,2022-08-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208220035 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 d01c97e..7c31ef7 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