Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1253512ybh; Thu, 23 Jul 2020 04:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ/fSJK3YclndCoJppSpy9TfQLHTPvs6LkDz96REjIniN8Y2wf+1uMPjK5JJuqoipvd0jJ X-Received: by 2002:a17:906:4f82:: with SMTP id o2mr4000035eju.424.1595503693146; Thu, 23 Jul 2020 04:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595503693; cv=none; d=google.com; s=arc-20160816; b=gKZtSzhvjqPGNi0oYLE3dDP44FzblFq8nghR2NSAZVNRfTbVagHl4wFb9S0ACmhDrC E89aziYwvSXTlXdihMyt+yVptaY+K6kq1MYknGo2SLu2NkrTP1aSgTA4a25tES4RSHbB KZjuNVU8UCSKfmkT1U61XzTnQsozlD4X6Tah7YBO1RHZvYFFkV4KJWItAEpB0H7rK8O9 wqm6hR8O6uoyEn1VGnT1+XTMXJsTSkddxLYi1V1uol/giWOTH3uL0DLnuXTJHorcfwVP Z60pznD0wAz3o7jz9X2wMFccZq7IN/gE2G2U5B0ATUfW0RaOfCNA1o15QcPBjzc1uAXD pKdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=zMBGA4GBLjo26JmXFoaEr/6TroQfiUFJV+/N5KVNSYQ=; b=Dmtky3XdOBJUV/nO87h3/Yb8GBUTqXG07bOlS8WEm4wL7K6KYKH2JEV1VOraTXeaFx AgCrakhI1cr3S+0Ds0hDNKcUxICXUz1FwTwBk9vupUCcfy7XhlqA2O2BWV4RZ8zQHiA1 Mm85/PpaSbB8Qb82IHSMK7b/5kWsypA7iji/e6ZZyJ8s1MExEfeysYROIjHi/+XbVGxv VH3QTX9lzF46maOY8JviR1VbgPGd0Sc19v1mmzHXnUSXO9lutHfnsGNDuIM+PjxNa4/p WoW2YOTb7gQAhX14qeYMBNj/UtmVP9RlPtcmqkCCUzmdoNzmDTRENXkMpeLmrcAwsRZc 5AhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=he89UGBP; 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 u4si1818560edq.192.2020.07.23.04.27.50; Thu, 23 Jul 2020 04:28:13 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=he89UGBP; 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 S1727828AbgGWL1f (ORCPT + 99 others); Thu, 23 Jul 2020 07:27:35 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:33126 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728110AbgGWL1e (ORCPT ); Thu, 23 Jul 2020 07:27:34 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595503654; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=zMBGA4GBLjo26JmXFoaEr/6TroQfiUFJV+/N5KVNSYQ=; b=he89UGBPf2SMHj4OhTSZMY4WNrsAqmuBAxdnaCs7bH8VNHzRCiQh+8kpksv6FB+XfiCuXnAO RK9M+jz7bdSWr6zmULxDGVRXgoRasefX6UmHcEIKkZ8CAtY+ZkZO8dMaQAljB9jkr7dvn1Cj pJAvLyOFWQuErk05dtG6yY46ZTE= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n09.prod.us-west-2.postgun.com with SMTP id 5f1974185b75bcda60af5817 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 23 Jul 2020 11:27:20 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3585BC433CB; Thu, 23 Jul 2020 11:27:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from blr-ubuntu-173.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak) by smtp.codeaurora.org (Postfix) with ESMTPSA id D5656C433C6; Thu, 23 Jul 2020 11:27:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D5656C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org From: Rajendra Nayak To: stanimir.varbanov@linaro.org, robh+dt@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, Rajendra Nayak Subject: [PATCH v4 0/5] DVFS support for Venus Date: Thu, 23 Jul 2020 16:56:47 +0530 Message-Id: <1595503612-2901-1-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v4: Moved code from probe/remove/runtime_suspend into different pm_ops callbacks v3: Renamed the optional power domain as cx v2: Fixed up the labels of OPP nodes in patch 4 Included the bindings update patch as part of this series, a resend of https://lore.kernel.org/patchwork/patch/1241077/ These patches add DVFS support for Venus Patch 1 will need to be picked by Rob. Patch 2 and 3 will need to be picked by Stan, Patch 4 and 5 should land via the qcom tree. Rajendra Nayak (5): dt-bindings: media: venus: Add an optional power domain for perf voting media: venus: core: Fix error handling in probe media: venus: core: Add support for opp tables/perf voting arm64: dts: sdm845: Add OPP tables and power-domains for venus arm64: dts: sc7180: Add OPP tables and power-domains for venus .../bindings/media/qcom,sc7180-venus.yaml | 6 +- .../bindings/media/qcom,sdm845-venus-v2.yaml | 6 +- arch/arm64/boot/dts/qcom/sc7180.dtsi | 35 +++++++- arch/arm64/boot/dts/qcom/sdm845.dtsi | 40 +++++++++- drivers/media/platform/qcom/venus/core.c | 17 ++-- drivers/media/platform/qcom/venus/core.h | 5 ++ drivers/media/platform/qcom/venus/pm_helpers.c | 92 ++++++++++++++++++++-- 7 files changed, 183 insertions(+), 18 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation