Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4364176pxb; Tue, 5 Oct 2021 01:13:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeJwMV1Gn7PmQDvoOyWfHyug7mJ3oeZ8Ihhz8KLEKxHWDoB2rmEXwaBTH3ncn0PpfxGL5W X-Received: by 2002:aa7:ca45:: with SMTP id j5mr24996081edt.6.1633421591645; Tue, 05 Oct 2021 01:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633421591; cv=none; d=google.com; s=arc-20160816; b=Acfiel06QsiMmMYv49/aFtZfAogr2McyAw2DpLwF2Tl/IwA/bUFRGCbpI/GsiqTnjx ZDbrjAR1yvw/NO5WKh5pZil9/ETXPH0zJIx86ckhNPJfO4zYgHbade1MkTL/pJVpq5Kf bHKlOeGcajkBTn//VFRG6COfua8+ZUK72RsUJzBxTk0wWRfkt6cvbqmz96urBYbWHGfq vDrH3R5vNdI4kY04q/LpcTt0yEK4WhlFUmYf3wv1tpZ1WQMZx0k55pFDQZ3NS5QG8BQi AO7qRjT4Fja3I7FEo4ewWQd5B2aDRFcyqtYaNxY4vrrnzeTL8uiVG4W2BKbNEhBClDTM UTaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ls8RstZxqwEUsOoWPu8ndBv6d6AzlNnldZDH8PTFT0s=; b=OZkPus8VuT7r5BEfYd51AqEcosiP74ECGUw2+5f1CVXuS3N2EgdfKkavNsJ+PIFTYf A3XgOxb/Y4eVa0EnwBQ3W60oEsWBQTr+KrRW38veGfYwteh5139Rm+wKatqFUjOpqJNl 01ZAN6Q4IRMgLoRyNr2fauZQFBnCCe7QZ3jDmh9N7pOXvGn6aBMmXSGcovZlhb9+gz84 gGqdApxlcDm8jsOdYE1+C1QeS5s3hgom0nf54Jp+Xl5vzo1Ja/31nfXT7miKvEQ1TlbE fe4kEHnm0uQZWn+CuL62xMticUSCvLo+96P78EtV1j4VSU9oJl2vb9JssqnB2i/I9ukR aLMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nO4PomRi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si9065739ejc.105.2021.10.05.01.12.47; Tue, 05 Oct 2021 01:13:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=nO4PomRi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233439AbhJEINF (ORCPT + 99 others); Tue, 5 Oct 2021 04:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233350AbhJEINB (ORCPT ); Tue, 5 Oct 2021 04:13:01 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FEF2C061760 for ; Tue, 5 Oct 2021 01:11:10 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id b8so40628669edk.2 for ; Tue, 05 Oct 2021 01:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ls8RstZxqwEUsOoWPu8ndBv6d6AzlNnldZDH8PTFT0s=; b=nO4PomRi8oyFYlAiKXx3pgeRDpA6tK4u/+itS+BRrE3bXCb44RNKaDruBFZ49gqxZU dfwndLroqe4h5ihs8+0PLL3U8FcjbkLNr4JTAhvoT4/wNPPRaXmRK1D9qHByepPzOvwz sigWiLZIMlmuVAMOVYW4CoB/Y2iEyrgdJUMX1V7vHvOMV75yhgIQY57oOvSpKTp9QCmc 0H2He5ZxubbvMovD+e/2Fz5WTqiVkDMIcw3mdNnZCEsbow/CxIdKnZ0OCdVVfKiaCpJl ZkghlpXCH3t38FKJPT4w8H1JD6wgQOgzoqplAF2d9s8UOiYx+Ii06g+vTi7EahvV7zFM aMkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ls8RstZxqwEUsOoWPu8ndBv6d6AzlNnldZDH8PTFT0s=; b=RjxhdYuejdvvyZQF2gKOS02xzHvprODJ48j6LhVmbeGmwHQ1npNWDOuBdVgjlnS+Nn DZDgoGtm+n/WxRfTEEU2rOo+vp/DDI4DCOMwrttm3h8Er3KnLwBlxFRuZaSiGnaRlP6y Av6PYuvWTpYjHnOXgwlNUX3otCN677HE0UW6L29PqVoYxxG5Db3qs00MB3GUoVPBRlCl V56jHxKA5+VGwgz+UZHUdpqbzCUs35B6e0Pmq8xFtMqBnYkTVB0OLqZb0tqo2fFf0DRp 5/pjevLML01QhKkuacNKiNCjEI7kFg/HLvSnbLQ9LpJ8Wg+epe4TshSc72wyaOYmjbFU ELMw== X-Gm-Message-State: AOAM531cEvjFJMo/EXIi+FqI0ZPSg3RPIMK/oTeiQEHn2PNNMzgr1tRC YMeCdwB63vOJPyV8BBGtEYjUSg== X-Received: by 2002:a17:906:6dd4:: with SMTP id j20mr22885943ejt.316.1633421468984; Tue, 05 Oct 2021 01:11:08 -0700 (PDT) Received: from localhost.localdomain ([84.238.208.199]) by smtp.gmail.com with ESMTPSA id f1sm3096258edz.47.2021.10.05.01.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 01:11:08 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, Dikshita Agarwal , Mansur Alisha Shaik , Stanimir Varbanov Subject: [PATCH v5 4/7] media: venus: hfi: Skip AON register programming for V6 1pipe Date: Tue, 5 Oct 2021 11:10:45 +0300 Message-Id: <20211005081048.3095252-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211005081048.3095252-1-stanimir.varbanov@linaro.org> References: <20211005081048.3095252-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dikshita Agarwal 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 Signed-off-by: Mansur Alisha Shaik Co-developed-by: Vikash Garodia Signed-off-by: Vikash Garodia Signed-off-by: Dikshita Agarwal Acked-by: Stanimir Varbanov Signed-off-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 ce98c523b3c6..3a75a27632fb 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.25.1