Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp354956ybi; Mon, 15 Jul 2019 22:10:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHUyoUXL00EduHGb/QrUkfCy0UxEr0+q2kWgY0aqnK1aZYyB/+iiFLEle+cdutRdVnUY+6 X-Received: by 2002:a17:902:b70e:: with SMTP id d14mr32488942pls.309.1563253806537; Mon, 15 Jul 2019 22:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563253806; cv=none; d=google.com; s=arc-20160816; b=LhEjxU3A5VwG1F0om1s3zhjk1ZnWANvvfDoPwIA0GIgzVtt2RwlSnohMOb0EzA+JBd a2GqNMxCSDwLxhFplgOVSRc6MABlgaDZ5qfAB+T+nTgb+e2gPQpEDwMylbMhu3IsF+gS QSD39ya7hcUrYMoasj3Rtui+J3wODv1sNCJxy062WTx1vn/F//sAK4pWBCbHWoNgFVap T2RP02JYP8+PqA7I55lcSICnA5ODs1AhxqJEM1mBBaaof0Z8iZcMx5sai2w5KG6X5Rje MUrj2E7Wvz15SDqhZ2VhLKaGR18oGwd0fAK0SameJWmTSGsa0ZI55A5CTOWJvCmTNJp+ X7WA== 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=1xecDFueN7g6oq2IRvHfZROQFteNhI0qQFfEo33YiAo=; b=AkZ++CIBMn9ele8Hz2qOMRfsxe5KFzTQkZb0Lx+H6RN8ZJvSIjaFQoyHdHXRQoUD6D eNG9xhD28b3wRN/BzNpP3WAqMGGkkIVWQERfdrezTeAZAPr9JXCu9xzt4e2iFDaaxZG5 mrGcOzq3dEfJu8eND53xWpxj8RVNucb5RqeovvmC6pq2J7yiWUDpJq91fft/FfBd0bMk N0SgJ8kK4B4QcN1XVOWbovHI6cYeC+AE2xQbQ0i6vTUYUJOKn/PihB9e1iH5oD2gwxwf q1eZy2vscV5mga0RFoWi/ymaeC+XLrY+2wXrfgXqeY8SSUcTzXJRfNuMXF7khedmNJgF 1Mgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ipoloAjb; dkim=pass header.i=@codeaurora.org header.s=default header.b=ipoloAjb; 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 u7si14530591pgb.103.2019.07.15.22.09.48; Mon, 15 Jul 2019 22:10:06 -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=ipoloAjb; dkim=pass header.i=@codeaurora.org header.s=default header.b=ipoloAjb; 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 S1726655AbfGPFJa (ORCPT + 99 others); Tue, 16 Jul 2019 01:09:30 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58170 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbfGPFJ3 (ORCPT ); Tue, 16 Jul 2019 01:09:29 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 858CE61893; Tue, 16 Jul 2019 05:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563253768; bh=OR+b8xG3JN4MsGIuyUTtBg46Iqvq/JC/f+ljaZY+unU=; h=From:To:Cc:Subject:Date:From; b=ipoloAjbRrFj+6qc7Owizojii4CGwn9wEzBrvghhdWRfFDKdZWU3obsCFnZ6PHAml j+I+Ch3cuQ56NLFmC7KHXBdnUPz70lxFIePG4aBaoMGt7E78l1wblqQLfnRJXOVZgQ i7yX/KxESZOZxqmF9fHGAd2g5R+cfmENJGa+yElE= 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 1BB8B6063A; Tue, 16 Jul 2019 05:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563253768; bh=OR+b8xG3JN4MsGIuyUTtBg46Iqvq/JC/f+ljaZY+unU=; h=From:To:Cc:Subject:Date:From; b=ipoloAjbRrFj+6qc7Owizojii4CGwn9wEzBrvghhdWRfFDKdZWU3obsCFnZ6PHAml j+I+Ch3cuQ56NLFmC7KHXBdnUPz70lxFIePG4aBaoMGt7E78l1wblqQLfnRJXOVZgQ i7yX/KxESZOZxqmF9fHGAd2g5R+cfmENJGa+yElE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1BB8B6063A 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 v5 0/4] media: venus: Update clock scaling and core selection Date: Tue, 16 Jul 2019 10:39:10 +0530 Message-Id: <1563253754-12003-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 v4: - Added call to load_scale_clocks from venus_helper_vb2_buf_queue. - Modified check to match core_id in core_selection. 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 | 215 +++++++++++++++++++++++-- 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, 252 insertions(+), 13 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project