Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp486097ybd; Wed, 26 Jun 2019 01:24:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPnJwXSCDeuBBC/j3RBAlsb4EMvarjNqcb4U0MOBAvDcUGi41HRKmdM0wy3rcHWLYQDe61 X-Received: by 2002:a17:902:7043:: with SMTP id h3mr4178596plt.10.1561537491538; Wed, 26 Jun 2019 01:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561537491; cv=none; d=google.com; s=arc-20160816; b=sYP66cHZ3taq4CnCeX0c8EQ+gD1ygb3NmeqqBy+5zZfzIIF6mdwOfUq3YsJ+OEPLZC rZYqOcgjCi5QkSboSVqbRtvvWKytk6BNxW2E0a5Zn9lunncyiISzAbwslUkEqUQmMBmh /b+i8vLCd3yjyHWQ1pfGSFgLSj24BYO2nO/7TKQNafafdWSGbWZDQwWLIhH/8U1JyYys TEdddps7uppMv4FUkTabqLTaTueG/ZNXc6CnJDN3EK2ZDwOdAiQTlFt0LsR9cVxmSHtH G2+lHOjy2YUPb3nOmCenPzXXpGeTrrRLV19/9mNk8wh7l30dxzuAXlDqYfGcYHVe+SIh XjGA== 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:dkim-signature; bh=lIP74fDmuc5fSy0GEWVoGFZw5Edq+7upjRqb7L76OWs=; b=wdJlsXLFIW9+oaZS5kjV+eleIMXsExiMK2oIq+wm8v12Y3k5V2FjKDBDIE0cCtn/2V Aa1c7Mn/r6Ix2G1J1/0PBfsRT+covQrG3F68xdrPDjkhwkBq4p5KEyKUlVxAv1XcJ7UH DmEnlzo8bG8OHjBgjPusKjmWtpEYyXJqevx07J00CihujfJNuzW645t1sLiv6WW163ve NufJY0YQ+54otTY7gCjgL+OK7R3ripSeppq1Mix8EZ5pdZYfB+q7RIBnBlMXU0kDTvHh qVp76rw8Bvh6S3kpiaBGG4IGT39YSEGplcsUuWsPG37ilUmaDc9fGhGxWqwsrxNy3Q+O /3ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oIXF96R0; dkim=pass header.i=@codeaurora.org header.s=default header.b=oIXF96R0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si1475967pjo.26.2019.06.26.01.24.35; Wed, 26 Jun 2019 01:24:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oIXF96R0; dkim=pass header.i=@codeaurora.org header.s=default header.b=oIXF96R0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726820AbfFZIXr (ORCPT + 99 others); Wed, 26 Jun 2019 04:23:47 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57578 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfFZIXr (ORCPT ); Wed, 26 Jun 2019 04:23:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D919A60A0A; Wed, 26 Jun 2019 08:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561537425; bh=RduO9xmvG3/0itXgBW05YQ0rOVZSvORHkd9+xMAZ6kg=; h=From:To:Cc:Subject:Date:From; b=oIXF96R00jZuxVf0qz4Wxd4KKlY0uxu2y5TqLZwTzypQyn5RCr8tV7RBP9ancTWcQ tYDTJOy6PR4d7V/SRd8sYIvGZVrUlYAUV7qgb2M+f6IqGB8hdkQ2+bzRSFTkW0g4YW rWA51XxAL3IZtAT4JvSwMjURLX4r/k5gfQN/2+OY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from amasule-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: amasule@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 989416019D; Wed, 26 Jun 2019 08:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561537425; bh=RduO9xmvG3/0itXgBW05YQ0rOVZSvORHkd9+xMAZ6kg=; h=From:To:Cc:Subject:Date:From; b=oIXF96R00jZuxVf0qz4Wxd4KKlY0uxu2y5TqLZwTzypQyn5RCr8tV7RBP9ancTWcQ tYDTJOy6PR4d7V/SRd8sYIvGZVrUlYAUV7qgb2M+f6IqGB8hdkQ2+bzRSFTkW0g4YW rWA51XxAL3IZtAT4JvSwMjURLX4r/k5gfQN/2+OY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 989416019D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=amasule@codeaurora.org From: Aniket Masule 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, Aniket Masule Subject: [PATCH] media: venus: Update to bitrate based clock scaling Date: Wed, 26 Jun 2019 13:53:35 +0530 Message-Id: <1561537416-2067-1-git-send-email-amasule@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch introduces bitrate based clock scaling. Also, clock scaling is now triggered before buffer being queued to the device. This checks for frequency requirement throughout the session and updates clock with correct frequency only if requirement is changed. Aniket Masule (1): media: venus: Update to bitrate based clock scaling drivers/media/platform/qcom/venus/core.c | 16 +++++------ drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/helpers.c | 43 +++++++++++++++++++++++++---- 3 files changed, 47 insertions(+), 13 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project