Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6829705rwb; Wed, 10 Aug 2022 01:43:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5wxX9tfPq+sn8bDuayVUfZr8VUqCDa5d5AdSzhgsGLn3FCpnzyQsZvLMEKXb6Kklhwksl4 X-Received: by 2002:a17:907:c07:b0:730:b91b:2cab with SMTP id ga7-20020a1709070c0700b00730b91b2cabmr19890774ejc.294.1660120986882; Wed, 10 Aug 2022 01:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660120986; cv=none; d=google.com; s=arc-20160816; b=jyFAKQXnObuQHF3OAu4FF5wh2NeqSE6tLdgVOfYkrcORVilwKU9dMgsltCcsI2Wg/M hJmRw2Kx0cjQhVbtJPdgPBMNVEu+LGT9ylMVR39EMwL0pSq4ANuwGZ6kZQFpw7jcy9d8 PphFspDxz5mv3GEA4ya2koY7wWNdXNyT42wnIfvJdqjjbiah1zJAIdulgQrgdi7fiNqw 4T9aAwScVHUP5brVxzNMGQYm7ziX7DWaKLDrVua5zDNTVbEOht+1wNFPdvPC6gQlD6sM 21yfb3oy3Q+tGQdjpXCicqqYOSeEJDBWrDY3ft3IATLEyUClGHplgmy5qAm72RJAdjM6 OzYw== 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=1iE0DpdNCuq7rixrkuGLXBP6KOOLHYoU/iAW8OpeD/w=; b=aYKP/YkQt83Jc+sGpHpMwMjmpqzIsAkJ0h3FLxevi/cap9/NE0bF5oyucAqFT+fjre knOUrBAliVa2w5f12gkmjiQiwjTujLmPwGfzGdd1qi98+zAgn6HaR0C6RcgyB/+aGhCo CCZJO6x8WdbulrgSSh82fhxKPqycnJTdtWrYDK7pE1Z/UChr/jbABpBsPq86+mkj+z33 q0uuSNVbZCDhiriin0vD+64bko95EE++kOnGxYdtRPJr28xM7dI4qNeJccdp2w/b1D2Q z8E0xqvR93AV3yvZjhnzTEIKh1dRHteDNcQQwMskpKTXaiYQeto5Nlbpiuxh3p00MFYJ 13wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dovs4+bO; 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 lt2-20020a170906fa8200b007315809ec84si3766731ejb.398.2022.08.10.01.42.41; Wed, 10 Aug 2022 01:43:06 -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=dovs4+bO; 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 S231587AbiHJHxU (ORCPT + 99 others); Wed, 10 Aug 2022 03:53:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231608AbiHJHwv (ORCPT ); Wed, 10 Aug 2022 03:52:51 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3C227538F; Wed, 10 Aug 2022 00:52:49 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27A7p9Jg028345; Wed, 10 Aug 2022 07:52:09 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=1iE0DpdNCuq7rixrkuGLXBP6KOOLHYoU/iAW8OpeD/w=; b=dovs4+bOE/jJwycii+hBMJmkDMMgbGiZ3WmTvlNMhnYxgnd3plTw2qYMgBl37dryysDM /fEPyCVMpQDhExCvgPGuCUoO0L9ANvCoszA6fbZMn5nAwq3FqeowOSY1js9rzSjvYmOX 9Gq8H4XIZeY/twFTGdOfAlAfvj/kFo/WZQka39NwZme/uLrBFwncT/St6Eux4CkXAVm8 TBJlvq1ANJhvKoXqECBhUxMj3/FAijYnkM42lsQzdg8jXyyGHsezdDBfwtICwuQfa5aN rUPijf6qQWtSri3+2liaB30zsfkzVDisY0A6Un4d426+zlD2EiApKKTNkV/KFkKluY/Q 5A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3huwqgsm2v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Aug 2022 07:52:09 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.47.97.222]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27A7l8hr032595 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Aug 2022 07:47:08 GMT Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 10 Aug 2022 00:47:08 -0700 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; Wed, 10 Aug 2022 00:47:03 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v3 8/8] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Wed, 10 Aug 2022 13:15:58 +0530 Message-ID: <1660117558-21829-9-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1660117558-21829-1-git-send-email-quic_srivasam@quicinc.com> References: <1660117558-21829-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: VCBGkz3txGiPNIBiDJvPYbfkq9PSYiJb X-Proofpoint-ORIG-GUID: VCBGkz3txGiPNIBiDJvPYbfkq9PSYiJb 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-10_03,2022-08-09_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 impostorscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208100022 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 --- Changes since V1: -- Fix typo error. 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 b9cafe2..5d22cf2 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*/ @@ -473,13 +473,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