Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3541235pxt; Tue, 10 Aug 2021 06:09:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo3+AslOz0sQE8COipp1ujvxgJq7+tWSUYTgBFfSTxy591LyyIVUkW2i9ij5wENqQKH+OC X-Received: by 2002:a05:600c:4f85:: with SMTP id n5mr22620913wmq.113.1628600962016; Tue, 10 Aug 2021 06:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628600961; cv=none; d=google.com; s=arc-20160816; b=XyX6xRHxLp5fxZP1OvKpLdnrPOR5hUXqOdCjH0AEGYs4r0A7SuK7F6uVKIb1vNlmwA fvPXV61BsMgrKYISJsuvPFluaAnRnUUHcyAsFrVe0YSUb67vA/gHsCRO2Pn/4q0cb3vW SukiiyHvlZ2ytw4W7EOPWKRuKo+ZzsTw7NNA1AgrkX81DTmx3x5H69OgE3aXsHFwfDBz eeviokwyslSD7DuEXZsdjov/EYmsqrzf8URZ4cOUO0b5O8RpO27q5zsYQ1vpexJCdj6v CUtPNw1qjfOZuvtP9zKupVKiSj/Bb1H3V13Rnll4KzeYDJVkp6aCHrAZMA1c1MrRPNK2 JPsw== 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=A5gpJttoX137G0k67Am31GZo8MtkmAXypcgdFm7vPZH2DqjaLqcesPGG2hlHfl3hE2 o2GIrWytwMxszRnEHRdX9bOyeMwxrrfFKAsIdW7U3A5bZ5MCoURC4BD4eF3e/h/VAJYm JWVTuw6wsbgeQHjuNBrcr93alkiLeKL9Fq/EddY3CcjV9L6y8ULtr9Mf6loynveCxYjJ JjDaa+riS9Irh/SETA+U5EgzV0MZV6ZUXOSvu45TFeYP899Hu/aRteue5uuqjf72YKKB flttAsryE0Ehgdeuj+NxiVoP+XjgY+MrvODRpgAAhjuU0G+52ZGw5Z9iVpMkNOvRadXS 66yQ== 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 g17si1400364edv.391.2021.08.10.06.08.52; Tue, 10 Aug 2021 06:09: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 S239389AbhHJJuB (ORCPT + 99 others); Tue, 10 Aug 2021 05:50:01 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:22844 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238814AbhHJJsw (ORCPT ); Tue, 10 Aug 2021 05:48:52 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 10 Aug 2021 02:48:29 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 Aug 2021 02:48:27 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg02-blr.qualcomm.com with ESMTP; 10 Aug 2021 15:18:13 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id D5F3921CA3; Tue, 10 Aug 2021 15:18:12 +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 v4 4/7] media: venus: hfi: Skip AON register programming for V6 1pipe Date: Tue, 10 Aug 2021 15:17:52 +0530 Message-Id: <1628588875-23790-5-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1628588875-23790-1-git-send-email-dikshita@codeaurora.org> References: <1628588875-23790-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