Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp138784pxv; Wed, 14 Jul 2021 00:06:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9F6UFV2FOxV5EJf1MQWChX+0X/tsU2t8BFHKZ+rZ3a5E1eVPXnb23wneUDyKJuG98OB+q X-Received: by 2002:a17:906:fa0b:: with SMTP id lo11mr10407968ejb.508.1626246404876; Wed, 14 Jul 2021 00:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626246404; cv=none; d=google.com; s=arc-20160816; b=NRCC1ukunXNVkXMPoK6F7S0R8nPxhB+Vp2JeB6HJeCilGpXzIMR+XHekc51OjuaZTb PhyG5SweWQkxYlZiMGc9tJK+Tj37PnXlOvlK8Ei3+VU8zBiT4hvEwL9W96Bz7D5EOA5l nkJj41DjwOzeY8MPUgMpidJ/51T9xR3tLHWmYw9YiLhdI3AoT4gVorTT4FuoxcnpjQOg YZ0UZcBAe35zUP/LYoi9ZfZfxN+zL2PbfWCrwYThfbX41EY78GRigWzpv4krZBeE7iEZ SAvp5o9whFMp4/ye7ZtiM9WWIrwELS/K9eNjPcwNbn05d+t1xPBWR8QCln4uLZYGJlbV VMsw== 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=maw6hX739wuG557w33+Gd+XvufsduHvknO3TYt5j/jX8kGNeodBSS8h6twCnUGD0OO 6eLLQ05PvBtmQ3151UHCeaV5+0BoVZEy1axytwUQ60muzkzqdnqHttKvVoAPnceuwx33 rqJ9v9O2xcg9oGnLpBKWp9O2XL6FtNrfJZ1MhozRrctlxw8QxjCJYVnawnSOlSTkbj6Y Ca7vvwVVZSzlc7Lvtz11hIP4njORmvkqmndx/VWDnnjzKOGtFlRphSdf3kw43GdHeSCq FKIYYcqueI0gAPSHmkkyRLgHaLk+lZjgkUUhOD8uFyUIh1lK0/s9qAx/GEfZO/ApxpF2 YuyQ== 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 hp17si1604666ejc.390.2021.07.14.00.06.14; Wed, 14 Jul 2021 00:06:44 -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 S238270AbhGNHEq (ORCPT + 99 others); Wed, 14 Jul 2021 03:04:46 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:28488 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238227AbhGNHEj (ORCPT ); Wed, 14 Jul 2021 03:04:39 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 14 Jul 2021 00:01:46 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 14 Jul 2021 00:01:44 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg01-blr.qualcomm.com with ESMTP; 14 Jul 2021 12:31:29 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id D874921B6B; Wed, 14 Jul 2021 12:31:27 +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 v3 4/7] media: venus: hfi: Skip AON register programming for V6 1pipe Date: Wed, 14 Jul 2021 12:31:05 +0530 Message-Id: <1626246068-21023-5-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626246068-21023-1-git-send-email-dikshita@codeaurora.org> References: <1626246068-21023-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