Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3438552ybi; Tue, 2 Jul 2019 07:48:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5faeaSqLYCdTLacmWwYj4j0uDW+gSKZQ+x5k1NK9LszIEByHbWKrFP8sOk43VknnpOWji X-Received: by 2002:a17:902:403:: with SMTP id 3mr35056744ple.66.1562078893808; Tue, 02 Jul 2019 07:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562078893; cv=none; d=google.com; s=arc-20160816; b=aRpE2z4uQT7wVuiNoYSVM30KD6dy0id9T98vHZCFHJUA4UkFfUTLDGiLM/Ub0rjLsj blQzIGvalo7jQ4Q+dPqTLyiFZHDs0s5TpYI/r9ehYBzzJ66ReGxxjt1b/mOdqRVOsPXO F8N3wS6qo//QGWjI+qV8OG+WJ1iyFgK9eoSrfgFManQnyTB076mXt8fCofavzczl0tSx spyzOK8kiXLl9H8Ns/i84VmLbJncMJ8bkN/ykyFDgUdlH85ctsUlXgm8Riuqy/vs/JfF C/oXBLmOEfsPS30JEEd8NcYhcCqz5obzLNd7H0p4VM98GWmGqrcCQ+Di122uAJxHCQpb Az1w== 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=+zTZ6rqg7Eq5q4eJcyrUdUUQtp5oPqWxUqfbsvoc6+s=; b=ld/g6/eGCDIdrwnTEBLDH7xpXBdrI6hRJYOqM5orF76wZDUMZuZiFXsE4eCSF5mrZv KBI2RuZe0qtwJ179+CHL5UclQ4XfB2UnyxYQ/vgoIr+3kCDLG8aeveuHXKOtj2Xwfzlw CtwluOE27daRjd2gBZdYPuOXPTEcj6Bf71dWvOsW63MJovGJSB+I9k8xBSnbOZpdT8bH uqYyELhC49LJUthSoYBkM5RIzw4bwNtRWXRjJIodlAIbJM084S9UvONPc4FJRppbTxaH 8y5yHFnX+DopGPD+OHLcmYugirVyoJlO8Xy+qFkfE92D/qARd40YjesHvNYNMFOVr37j qC8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=a+Z9cFdl; dkim=pass header.i=@codeaurora.org header.s=default header.b=a+Z9cFdl; 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 j17si14580926pfn.278.2019.07.02.07.47.57; Tue, 02 Jul 2019 07:48:13 -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=a+Z9cFdl; dkim=pass header.i=@codeaurora.org header.s=default header.b=a+Z9cFdl; 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 S1726767AbfGBOqz (ORCPT + 99 others); Tue, 2 Jul 2019 10:46:55 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45626 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbfGBOqz (ORCPT ); Tue, 2 Jul 2019 10:46:55 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A9D786083E; Tue, 2 Jul 2019 14:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1562078814; bh=GL5oxwciHlPA4OKTaH0DTDL7syhHG0cECRKJ9aG3R9M=; h=From:To:Cc:Subject:Date:From; b=a+Z9cFdlhKPQwzMIsRxLHEH3TpnV8NRbwR/8+QhI7YAn5uPsI0Jx424723D6+uFYh nE9OcXG1Uag94sQ9ZwYNvw3t1wseLY1Enw5Sy/M9bcvqTP1e+MTzASeRzt8LT2+Ez0 DN2fs6orHEsIQAyCTceQiogti/BilIF43KrHvbtU= 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 401436025A; Tue, 2 Jul 2019 14:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1562078814; bh=GL5oxwciHlPA4OKTaH0DTDL7syhHG0cECRKJ9aG3R9M=; h=From:To:Cc:Subject:Date:From; b=a+Z9cFdlhKPQwzMIsRxLHEH3TpnV8NRbwR/8+QhI7YAn5uPsI0Jx424723D6+uFYh nE9OcXG1Uag94sQ9ZwYNvw3t1wseLY1Enw5Sy/M9bcvqTP1e+MTzASeRzt8LT2+Ez0 DN2fs6orHEsIQAyCTceQiogti/BilIF43KrHvbtU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 401436025A 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 v4 0/4] media: venus: Update clock scaling and core selection Date: Tue, 2 Jul 2019 20:16:23 +0530 Message-Id: <1562078787-516-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. Also adding vsp cycles, cycles require by stream processor. Clock scaling is now done more precisely using vpp and vsp cycles. Instance is assigned to core with minimum load, instead of static assignment. Changes since v3: - vsp_cycles and vpp_cyles are now unsigned long. - Core number counting aligned with VIDC_CORE_ID_. - Aligned hardware overload handling of scale_clocks_v4 with scale_clocks. - Added bitrate based clock scaling patch in this patch series. - Instance state check is now moved from scale_clocks to load_scale_clocks. Aniket Masule (4): media: venus: Add codec data table media: venus: Update clock scaling media: venus: Update to bitrate based clock scaling media: venus: Update core selection drivers/media/platform/qcom/venus/core.c | 13 ++ drivers/media/platform/qcom/venus/core.h | 16 ++ drivers/media/platform/qcom/venus/helpers.c | 213 +++++++++++++++++++++++-- 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 | 6 +- drivers/media/platform/qcom/venus/venc.c | 6 +- 8 files changed, 250 insertions(+), 13 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project