Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp431280pxv; Thu, 1 Jul 2021 01:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8yF4+jrh+wNi7F+xJDu6NWD1w/h4UChJmhpkFJ/3D9EXCpdQ08Me1Q5dGLAYvdxnh9ZMj X-Received: by 2002:a17:906:49ce:: with SMTP id w14mr40083245ejv.273.1625127021324; Thu, 01 Jul 2021 01:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625127021; cv=none; d=google.com; s=arc-20160816; b=o2ChgHWHu5IUVv85duzNwhwDVrWbQq8Zt2vR8PN6FfGpgkRVqfYmtop19MaY1C+qAp 627iZtdGRZqlybF9xPg+BQ8ZnIz3V/hfMbmStaX8MjdiMZruQPyau4Kokh5TtXcUYyNG acKzrSUqnKMNhv5eP60PmsYHuRMgP5CAg62BqLZnwFaQyNP6U4iTxcnWA6+4DNaNAQxp ngxho53a4zrmhlTEWCho/D+UPBumxh2Lr/XbVTxSTOlUDozOHb5Gr4Lwqx9I+/XDC8T/ /HK8/hNeWj5G2MRayTeF4ikvD8ZlxrRRGVVHbKtbA/i8l4byP3rah/ScvNxXoMIVQO6u xIOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=CFmfsAmmPphdPUhAD45I13ahswoAxOpYSYFKdFrJMqg=; b=bnUFY6HA5wHiFAXZYH8DF7DVyYWUvZB+7h/G7YNjiUXGfyrIixYSJlBpWHd9hEXn+p nBJj9Ig3OsR8mNmSaZX2Kd2ICM3HhDlRgM/05veFHD3+hzvzZe2ID9F7kWjip9PqRySp S2nBG7LiKyf1/bSCK9mFg+iSOzc9B5XvCYQ9c+noGklfDMn/P1LL3CoTlRU19kszdvU4 CibB+eGbacwjEDWRoRTSiAYbtva6LjusK/xHX2DsWi3AwhQNqgdtSUFQRoxoLbTXX3Zw wijn7JhmUR+tEWyOzjy6M0kJp5/fjubn5Ymt3PiWtIt9CsKHIdNpt8UuUZ//9id0sL4b jYuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nb19si2379889ejc.673.2021.07.01.01.09.57; Thu, 01 Jul 2021 01:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235256AbhGAIIn (ORCPT + 99 others); Thu, 1 Jul 2021 04:08:43 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:14323 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235132AbhGAIIi (ORCPT ); Thu, 1 Jul 2021 04:08:38 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 01 Jul 2021 01:06:09 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 01 Jul 2021 01:06:07 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg02-blr.qualcomm.com with ESMTP; 01 Jul 2021 13:36:06 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id ED6B321A36; Thu, 1 Jul 2021 13:36:05 +0530 (IST) From: Dikshita Agarwal To: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, Dikshita Agarwal Subject: [PATCH v2 4/7] media: venus: hfi: Skip AON register programming for V6 1pipe Date: Thu, 1 Jul 2021 13:35:33 +0530 Message-Id: <1625126736-16266-5-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1625126736-16266-1-git-send-email-dikshita@codeaurora.org> References: <1625126736-16266-1-git-send-email-dikshita@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AON register programming is used to set NOC to low power mode during V6 power off sequence. However AON register memory map is not applicable to 1pipe, hence skipping AON register programming. Co-developed-by: Mansur Alisha Shaik Co-developed-by: Vikash Garodia Signed-off-by: Dikshita Agarwal Acked-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_venus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c index ce98c52..3a75a27 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -551,6 +551,9 @@ static int venus_halt_axi(struct venus_hfi_device *hdev) if (IS_V6(hdev->core)) { writel(0x3, cpu_cs_base + CPU_CS_X2RPMH_V6); + if (hdev->core->res->num_vpp_pipes == 1) + goto skip_aon_mvp_noc; + writel(0x1, aon_base + AON_WRAPPER_MVP_NOC_LPI_CONTROL); ret = readl_poll_timeout(aon_base + AON_WRAPPER_MVP_NOC_LPI_STATUS, val, @@ -560,6 +563,7 @@ static int venus_halt_axi(struct venus_hfi_device *hdev) if (ret) return -ETIMEDOUT; +skip_aon_mvp_noc: mask_val = (BIT(2) | BIT(1) | BIT(0)); writel(mask_val, wrapper_base + WRAPPER_DEBUG_BRIDGE_LPI_CONTROL_V6); -- 2.7.4