Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp370940imn; Wed, 3 Aug 2022 07:26:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR6zUnaZ/3V0SDKITX+MhgFNzFev9bUQcYaidWVQdS1c9GTXoFgk96qJsxiGTP8PSSWJTFJL X-Received: by 2002:a17:90b:1389:b0:1f3:a782:ab28 with SMTP id hr9-20020a17090b138900b001f3a782ab28mr5079446pjb.181.1659536763441; Wed, 03 Aug 2022 07:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659536763; cv=none; d=google.com; s=arc-20160816; b=OqzCwadXfFyhOLNKF5dXIIT5wiMb74RS8EcoBKj71VSjZA9cxvlz5kN/ihXjx9gcOF hkOpKfgwIsK+nyzYhPD6LnI5vpPzDPtTg1CQwco2RCkikBGBXyvJd+jjwqOL23YN1/QR emW+VnxTYVjPC8rEwnbiDVIzvCA/CIDarzwivj3pGbi8a7uyfdu/OLt3oBtPPFWF1YyP LBpIlQSp6nL8FrDZ5/+1bKYVC578Da78Uhd5Wyfnf/6Rzj6dAlNW5TTWMeMlxI39uwmy jB5MRR7UzuFOCwjakXExIxOnoLRcX/XGgyeOpWK5wid0sd94EPD8YQU+3W29JhmShZrY xi5w== 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=ab1zJS9fWPNKtBxryvC014d7x2EEfYkbWTsZfGv2w4c=; b=ElRJT9C97yY/bBoZLFw9EoZ8ZkgBy4dOxW9CBSDq+AiJAvFkUFjLoFQ58RgIdyN2mh RL/5J85H8xN97qFXeY5g5CBAwXNolvdf6ga9XTkHd2cCXGG1IJwL6ft22ZX1ibQWoWHN v85kyi765shkkCa9Wr32VKDuznZTvjslnUdGyeRkdzbHfXXUc8qMLkDRAR1rrYPHhov9 NajQ0ab2LDJKYSd1U03AK6g1ry6boXC5gtZeAwSK0XoPkgGYTpQHC/eZzgy6+Z0m4AII jS8JdIkFtfH8LlALZX3U5yIJ7s5sK8bZPASXyTiHmb0aObPXQWZNKDSsuG58j7QjZAJT kxCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=wJ4I1NQz; 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 e20-20020a656794000000b0041c0c9b6474si9439730pgr.85.2022.08.03.07.25.49; Wed, 03 Aug 2022 07:26:03 -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=wJ4I1NQz; 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 S238734AbiHCOWw (ORCPT + 99 others); Wed, 3 Aug 2022 10:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238575AbiHCOW2 (ORCPT ); Wed, 3 Aug 2022 10:22:28 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DD532EFF; Wed, 3 Aug 2022 07:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659536547; x=1691072547; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=ab1zJS9fWPNKtBxryvC014d7x2EEfYkbWTsZfGv2w4c=; b=wJ4I1NQzI/Ph9jkr7rk+WP9e8VkoxRH+bGkg3CwyPbQGwM5gY+hO6lG6 aEyajIb4D+HUmQxdHOcUQQBHm9p276fkYll03g2VUei+XKx8ttVD+nzoZ lIoWNLizpCUpujFSSP+mfXBwiYkKNRIEp2Wagqvj9uj1/OC84PhpIdT3i c=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 03 Aug 2022 07:22:26 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2022 07:22:26 -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; Wed, 3 Aug 2022 07:22:26 -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, 3 Aug 2022 07:22:20 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH 8/8] remoteproc: qcom: Update QDSP6 out-of-reset timeout value Date: Wed, 3 Aug 2022 19:51:20 +0530 Message-ID: <1659536480-5176-9-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1659536480-5176-1-git-send-email-quic_srivasam@quicinc.com> References: <1659536480-5176-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 --- 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..1c0adc9 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_ranage(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