Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp799033ybi; Thu, 30 May 2019 07:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5G2x5TG5XzAB2Mqg4sc1SZYyyty6ydU/1bnHu77jlR5deaxBpwOXEeHaXPaCX8j4pTHA5 X-Received: by 2002:a63:ee10:: with SMTP id e16mr3967816pgi.207.1559224814184; Thu, 30 May 2019 07:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559224814; cv=none; d=google.com; s=arc-20160816; b=DE4OVARIUzoYEsInZvrlp6j7qFYkiWf/rqxZvB4dxEz3YLOUPv2gCQwYWr48ywC/8Z izDl3OsFDjeI68iHPcZnjvLwCpcYlaWh9nS92s3e1UJ2qYpL2wEr6ElSikX13vwwRoRL 7KjkZNCrNJ+SR8XQ1tqevprGLKKxLpild+ie68CXZ9Mg1bdC3/YDUOWUXlnAA7LkyqPx B1uliZfDl1BHGEqAz3QW1vJcjRFaxLKgWKChsqDU1aC0Lcg+zWKL8pgjvWbU21hARYVw SztQjIB0vJVHL6oPIbmk+jvg6uvUjiD2wvkptbS6Aai3PYOwyqrCdeQyZw3OVtF2+qKw Sv+Q== 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=Vl/LE2Dd2D2UI2uvyu6LOsJGoGVQKVQeSbzy2ihR3Ww=; b=p276PaGul9VDFsINgZ3vBHkCA5rBY8nwLF7SUwbqt6RWuBF5/p1wnR/qZZX/8LRUBE EdoIrzSDZaAQv8LQpZuPciuwyaaSx7OHu5zCJj+kviLiaX7l1odNhhaqIs8Sv4ZW22QG 1nrzUkzjzOmgANYJJUDa4InoLzg0aUw0lmKpNfKoQYYuYjpWVgzL8IDkWJfElY74VHcN 8+DZ4JczMaCeP/R2VV5wkw/PcphAQkL/GFBLqvZliTuLn1V2HLCf9CzI1nNi9ftfMHMY PfVBb+fwXpzWhNL4beftPWffpImd5f3i0ylaTDuwd7OucPvxz//Hyr5WJO6wYbo2MQPU EzBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q6+JwilL; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q6+JwilL; 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 t11si3397348pgp.153.2019.05.30.06.59.57; Thu, 30 May 2019 07:00:14 -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=Q6+JwilL; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q6+JwilL; 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 S1726819AbfE3N6v (ORCPT + 99 others); Thu, 30 May 2019 09:58:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46250 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfE3N6u (ORCPT ); Thu, 30 May 2019 09:58:50 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CDE31607CA; Thu, 30 May 2019 13:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559224729; bh=ZhapyRz7rpO7+RXjnPRw8coTCr3ij19lsTGVLI65SL4=; h=From:To:Cc:Subject:Date:From; b=Q6+JwilLbIhB+XoM/3S6CaEKG5a6wNZx5/wkuJWPEAD0A5cUs0buLCy5OTbV1/9qO lG22IAs9K95buf1UgYiFVUoMSScNTJJPqYFbZfgNQ+4VILP+EGeMcHaKjbcrL5bAPk O41rBltZWg7/J1QtkiWuwFnTq+jyjFMGnJ2PGLas= 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 722026049C; Thu, 30 May 2019 13:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559224729; bh=ZhapyRz7rpO7+RXjnPRw8coTCr3ij19lsTGVLI65SL4=; h=From:To:Cc:Subject:Date:From; b=Q6+JwilLbIhB+XoM/3S6CaEKG5a6wNZx5/wkuJWPEAD0A5cUs0buLCy5OTbV1/9qO lG22IAs9K95buf1UgYiFVUoMSScNTJJPqYFbZfgNQ+4VILP+EGeMcHaKjbcrL5bAPk O41rBltZWg7/J1QtkiWuwFnTq+jyjFMGnJ2PGLas= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 722026049C 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 0/5] media: venus: Update clock scaling and core selection Date: Thu, 30 May 2019 19:28:23 +0530 Message-Id: <1559224708-6039-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 In this patch series, clock scaling and core selection methods are updated. Current clock scaling and core selection methods are same for vpu4 and previous versions. Introducing load calculations using vpp cycles, which indicates the cycles required by video hardware to process each macroblock. Clock scaling is now done more precisely using vpp cycles. Instance is assigned to core with minimum load, instead of of static assignment. Aniket Masule (5): media: venus: Add codec data table media: venus: Initialize codec data media: venus: Update clock scaling media: venus: Add interface for load per core media: venus: Update core selection drivers/media/platform/qcom/venus/core.c | 13 ++ drivers/media/platform/qcom/venus/core.h | 15 ++ drivers/media/platform/qcom/venus/helpers.c | 189 +++++++++++++++++++++++-- drivers/media/platform/qcom/venus/helpers.h | 3 +- drivers/media/platform/qcom/venus/hfi_helper.h | 1 + drivers/media/platform/qcom/venus/hfi_parser.h | 5 + drivers/media/platform/qcom/venus/vdec.c | 9 +- drivers/media/platform/qcom/venus/venc.c | 8 +- 8 files changed, 229 insertions(+), 14 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project