Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3497636rwb; Mon, 19 Sep 2022 23:57:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ujJC2I3s6UZYdJSOzTgLB1sQu4v/YuOH4G9/duxuUhvs+FCCRYGnAvHMZzRH4n0t/DBHn X-Received: by 2002:a17:902:d2c5:b0:176:d0b0:bf53 with SMTP id n5-20020a170902d2c500b00176d0b0bf53mr3550286plc.88.1663657041391; Mon, 19 Sep 2022 23:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663657041; cv=none; d=google.com; s=arc-20160816; b=Vx0lrDeD1x8Wt/FcGb5RcfYgeamN3zlLbLotJq9c/HmFaNUCsWxdEbB1c9lXIQTWRg SLRGMZJTzmFb9M7qeUVutUUNv3xt7W9P8qCPsTTVl/Nb5WQDV+MA/RtB1KG2iUWIvEWK iP7Omw6LRBS/U5G0HrSAduMcrQ/akLA/0xl62VMs6VWCUuTyO/R0QgkFL4sYNZn5qsgY bhxnU0ECCQHlKg88BP2rynviWhyBwd1/LIOhCFuAykuhcKFSLM30O0IpizT9zrcyXpE5 Tl2/b3OS9l6HlWOheNDkfCToSLWMT2BoOKrAhtPGGuu+kTfyUS6JugSsMH4cX7U44t7t auVg== 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=ocyQjvZA4zVvVhQIDJH3FCNquvoaIRJpcP6f3c/P3g8=; b=YFNBTmawvEtCPrltOgViF3IQo7m/Db+Rv26O12MiX+fXJ8L9Wv4iZAxjPz/pKOHWFL zvGIN/StCzVNyRI/rlGh8NgVHr860+z6Rii4z1ZhMWAMEwzWfA5BdEDLeI4lbo71hUYF ZTgcFXKhxIDrOTjnG2zG2+YoGFdNKb9s/oYn1Gj5naRFdReP8Ng5x0c6k6xNCHpfRP7P Sf3siG4N4bdSmGBEKOR9907Rx+JHkGhiJ5d9kB0fzrcKVrBe/DovFmglF8xLKnQA8nyb 6XaVFWDHMfvwmr7G2JKsivTh2TusDF5dlxwq8YlZBY5moQisgCFCDsqq6gmFbboP8ulK Nx5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=F+rfz2WG; 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 z5-20020a636505000000b0042c18d35aaesi881649pgb.63.2022.09.19.23.57.03; Mon, 19 Sep 2022 23:57:21 -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=F+rfz2WG; 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 S230416AbiITGcm (ORCPT + 99 others); Tue, 20 Sep 2022 02:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230400AbiITGbV (ORCPT ); Tue, 20 Sep 2022 02:31:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 904BF5E553; Mon, 19 Sep 2022 23:31:08 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28K6DYQ6024165; Tue, 20 Sep 2022 06:30:28 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=ocyQjvZA4zVvVhQIDJH3FCNquvoaIRJpcP6f3c/P3g8=; b=F+rfz2WGLriGXgFmfykaIdSsppbdxho650rHvRl+691LDju1gSvi8B8tbO6sZzNkxSJD tvimso2I4x1UBr/1Zhi8sz6sYO1ZVo/Y+PcNauD4D2yU2iUhqkQ9YFNsCZPJZ3ko8Uy1 Ux9t6m5pKp5ROzsLKerAzbTwjkEQPjYHSanXvG98+auCD9EOrRD6vZ0PTuDteHQ2PAbQ Ng9rFkdE2LSKBl80xH29boAlJCdMRYAg1ggCuAIP9SVKLbfMR0IK2PfCbcGR4JGdQa8B IOf8Iy5wsMAkQol55K5i4u8JbgUpU7E37DeXJ38TTCAXVpkDumNKH9KfEVqWb3Gb23Ed AA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jq732085a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 06:30:27 +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 28K6URKv017267 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 06:30:27 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; Mon, 19 Sep 2022 23:30:21 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v7 8/8] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Tue, 20 Sep 2022 11:59:19 +0530 Message-ID: <1663655359-1402-9-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1663655359-1402-1-git-send-email-quic_srivasam@quicinc.com> References: <1663655359-1402-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-ORIG-GUID: 2Vl-4M1HWZ627WY_I7wnLi72rSluY2eT X-Proofpoint-GUID: 2Vl-4M1HWZ627WY_I7wnLi72rSluY2eT 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-20_02,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 adultscore=0 mlxlogscore=999 spamscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209200039 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 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 d89f3fa..84b1706 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*/ @@ -425,13 +425,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