Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp243854imn; Thu, 4 Aug 2022 04:21:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ppMYjG5/WPxlifBL5MZ9eOkvfydhP7xD822EaUxPyQiL7rfrdkZKm583ihloREhxhw6U/ X-Received: by 2002:a63:2a95:0:b0:41a:27e5:1996 with SMTP id q143-20020a632a95000000b0041a27e51996mr1219219pgq.447.1659612099570; Thu, 04 Aug 2022 04:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659612099; cv=none; d=google.com; s=arc-20160816; b=ucwGFpbYTbyG1gCJIFmPF7F4ArjgE8izg/SX2QuKdzYeUhIs7Y3AAJHiJ1megtOkTE no52ffa1xcl6RvcBlYwHfl3bvC/97esEbDVwU5QrHAvICydKNTxMIyBu0DjTJctU082+ 6+/oHsd1zK3rWTf09AUWQcpnSz4icWJQ8fJEobo1fGfOtH3P66r4D6dUej179dhveLyi 8Cl3dCVmkJMLYM1SXDsRW+zy/6SEYfVIu4UD6gVy4yWJGRg28043eSjieXyMYFwUfNXR TwmYp5k5gi6lFM1K8bCtLXC7769ElUzLqh3f2UAeWNLNdyqprh1lvnwK7hqpyiGKu+Ty VdZQ== 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=w+SN/SaIr+LvXT/a1kPPp+iizidghf+YuAzNx6mKr9c=; b=nld8EwnR5MKUP0hSZmoD1X292ko+uiyl5pUZXta2cAD5DCOnL9b/kJWCUdgg6o7V25 aHr6pRanKHHo5Sk2iBlkEYcdKSRXFvecB1/I/8KCGiAEK6tydirFFHlzSmQ6Wu2GhZzL 3t1E48rPt/85LcELuyJOAtHYsGLOQ39THXrj1fik5lsXbVoL3MdKmvBpjzsjpb5ruO55 EtfPQssRqBkNKh+Jof1ZLu2xux0sEgYCh7plmATYMsXm51XZPG3IF/83CkpmDXDMzP3q O/jy8gWawbetbanBcY/g4UJhFc5VgDb68mYwt2Ik2Hvsmt5pirGQf4NurJEwZuaz3t/E rn3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Wir5wLd8; 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 y31-20020a63495f000000b00412b6dd0cd0si1019441pgk.603.2022.08.04.04.21.25; Thu, 04 Aug 2022 04:21: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=qcdkim header.b=Wir5wLd8; 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 S239559AbiHDLR3 (ORCPT + 99 others); Thu, 4 Aug 2022 07:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239570AbiHDLQ6 (ORCPT ); Thu, 4 Aug 2022 07:16:58 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5256622BCB; Thu, 4 Aug 2022 04:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659611817; x=1691147817; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=w+SN/SaIr+LvXT/a1kPPp+iizidghf+YuAzNx6mKr9c=; b=Wir5wLd8j8rWP60lJBlKyLpcO0u1+XIYhoEaF9Hv1B79m5euXJ07mdAQ r/yLLFUEFfee8GknbT3WR/qw3PSpreluIdkco/UMm975lsq+1bHUoj7YY ZC5LAdiIXjQmpV5SFdYYft9LF1Y/xb21DsAqIEDafFoYiveZnBmuLYG4v 0=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 04 Aug 2022 04:16:57 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 04:16:56 -0700 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; Thu, 4 Aug 2022 04:16:56 -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; Thu, 4 Aug 2022 04:16:50 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v2 8/8] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Thu, 4 Aug 2022 16:45:51 +0530 Message-ID: <1659611751-7928-9-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1659611751-7928-1-git-send-email-quic_srivasam@quicinc.com> References: <1659611751-7928-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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 --- 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 f81da47..18a6bf6 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*/ @@ -468,13 +468,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