Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2352344ybe; Thu, 12 Sep 2019 08:14:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZg8fBLO74VOlaRkcpzqntIMa6LzeJrrslG+R3EtvquzrBaCauK3mWxsmANLUZoxhCxDv6 X-Received: by 2002:a50:8961:: with SMTP id f30mr42012322edf.144.1568301288417; Thu, 12 Sep 2019 08:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568301288; cv=none; d=google.com; s=arc-20160816; b=iuksXxkc9Q1BGRZja8NvNEAs3Nu/SZa+InKfX36zpdWctcRvkc6Z7dkQJKN94doNsz XLo0RFRkKYikimHCTOIwy9atTQxErr9WUrO1rODEWB9xoziK6/aKeNTbjhWK/t1quZg6 frO4jUnymX/S51ju+wCm1HafwVzpf6QLqtDqlkWpHFMWopmsoiooB0Me4hyy4InmjWYE UF6LCEWsgZBychg7bDdf0gBzEEhk0dYsAMhsaZPq15Gx+nIUVZcalKN1BkxImbVD+sUT dW3Bo5+3BTT543E1wRAsOGFwGfWsVAx57vXjRfjCm4TRcIlCy6CoZr/qLekJWZDslhgv Mvbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=BQvYwrynlYgeY28xmsYzLa0ffbneFj8mnp+haD7bRLA=; b=rdiOWrL8fi9H5h85eYbv8t4gKfW8jgbm+/L3zBbTpU/+RPH8mrsSTFk2lEluouvfAT 4pW0r9saYwX3RbPZWYW/sAsymMBSwmai50JxtGgDpqA+Cm2LA86pnfYSTQZiCv8eOoGX 09edfb7kW/0QsvEkqdtp3THERhJuPSZksNO+LxqUCPYpCb8pVQqJ3/prcJdjdNCUY0eh yNYfVPOdQHI/imh7JeD+gXFXpOyGcgR2Y2h5UFBLVuJTSDs3/OpKeZVjemgvrziLcvXG RDknVpsK/DSOBOdKrp2QD7kB6Vf9m2KI/39m1z9JxJyoqGcnzH2UDh9df/r63FzwqNnx ipyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ENsfZJkM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si7853938ejm.109.2019.09.12.08.14.23; Thu, 12 Sep 2019 08:14:48 -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=@linaro.org header.s=google header.b=ENsfZJkM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732984AbfILPMD (ORCPT + 99 others); Thu, 12 Sep 2019 11:12:03 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41421 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732817AbfILPMC (ORCPT ); Thu, 12 Sep 2019 11:12:02 -0400 Received: by mail-lf1-f65.google.com with SMTP id r2so1637204lfn.8 for ; Thu, 12 Sep 2019 08:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BQvYwrynlYgeY28xmsYzLa0ffbneFj8mnp+haD7bRLA=; b=ENsfZJkMjORBKTzN9InS4Qq1+hPIy+FobNBG+Ena5keYaBEmvUrWZLfaRNYw8xkoen vVD+WOL0YCJIHyOZ+HpaVkoH/yqZnpTyzqEc7sbx8cmySujTVU5Qz+pv0EOQfGMMBoJb rHY6Mrg4y8J3vt5SQ+dK7ypPBH357L0u9516DNKc9sRbrg7WrDms1KpXOBIBg7dztdcj /37jjIEvvmMFYdPmhu7pCzs8FHazLx0byDnvY+tvxnflZntSlCKhTzm1HX2EvTx1986u Y6FdFxq0W5PgYn84RwCDNJrNdX2YftrIMngO4VVCh93UgMLzrdv9m36RF3XmLVupwjCz RXig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BQvYwrynlYgeY28xmsYzLa0ffbneFj8mnp+haD7bRLA=; b=h/b0gVts6t+Rc7Bs4hTdQSmQ0nhWWYyEI+XrImnjZNBZ0ybO8t6aWxT+sWVeDLnK3C /aPPnec7bgRxjtx8UJN7SIB0aPnRSAXiTyFj9eZnf9xxl+owvZTs06lcPCqOAlOKDfJ9 QRI42T2I41ngO/tBLWAeiaBBzlUuNbjOVhkJ7rgBxu6JdsJGCuyiRecQaSqm+MphM15I ip+0wExIgGjYdJGn2qZr7cAGNOqtoWVl4Ld+dMwzP9bveCPjFh+uJ0vuLmYZcngvAMys dYSxgB5Fb5JJhM9cnfCk51zB1sCctUBZMwiNiV+BfD3Az0k8MWKL+ESmZGJsDmpN245Z pYQA== X-Gm-Message-State: APjAAAVyoSG4jF+re/N9TVBadbNTCo5dRiZTxAKbmgo7PnvVlMgPtuo/ KgU36T8ARxEGG2v9fBRGJffvpQ== X-Received: by 2002:a19:428f:: with SMTP id p137mr28616130lfa.149.1568301119743; Thu, 12 Sep 2019 08:11:59 -0700 (PDT) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id k13sm5764857ljc.96.2019.09.12.08.11.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 08:11:58 -0700 (PDT) Subject: Re: [PATCH 1/2] venus: use on-chip interconnect API To: Bjorn Andersson Cc: Stanimir Varbanov , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Vikash Garodia , Andy Gross , Aniket Masule , Linux PM list References: <20190814084701.25455-1-stanimir.varbanov@linaro.org> <20190814084701.25455-2-stanimir.varbanov@linaro.org> <20190904042203.GC3081@tuxbook-pro> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprkc0jOHotV/6oJ mj9h95Ouvbq5TD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MAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <345e7450-b3af-92c5-4e83-bccaf0a98a0b@linaro.org> Date: Thu, 12 Sep 2019 18:11:55 +0300 MIME-Version: 1.0 In-Reply-To: <20190904042203.GC3081@tuxbook-pro> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 9/4/19 07:22, Bjorn Andersson wrote: > On Tue 20 Aug 02:34 PDT 2019, Georgi Djakov wrote: > >> Hi Stan, >> >> On 8/14/19 11:47, Stanimir Varbanov wrote: >>> This aims to add a requests for bandwidth scaling depending >>> on the resolution and framerate (macroblocks per second). The >>> exact value ff the requested bandwidth is get from a >> >> s/ff/of/ >> >>> pre-calculated tables for encoder and decoder. >>> >>> Signed-off-by: Stanimir Varbanov >>> --- >>> drivers/media/platform/qcom/venus/core.c | 34 +++++++++++ >>> drivers/media/platform/qcom/venus/core.h | 14 +++++ >>> drivers/media/platform/qcom/venus/helpers.c | 67 ++++++++++++++++++++- >>> 3 files changed, 114 insertions(+), 1 deletion(-) >> >> It looks like venus can be built-in, so how about the case when venus is >> built-in and the interconnect provider is a module? Maybe add a dependency in >> Kconfig to depend on INTERCONNECT || !INTERCONNECT? >> > > I've been struggling down this road for remoteproc et al for a long > time, I strongly suggest that you make the INTERCONNECT config bool, to > ensure that we don't see this problem for every client. Thanks for the comment. Well, i was expecting that we will have to make it bool one day. Viresh actually already sent a patch [1]. Maybe you can add an Ack? > > The interconnect framework should hide the fact that the provider is > module. > Correct. > > But with this in place is there actually a dependency? Won't the include > file provide stubs in the case of !INTERCONNECT? There are stubs, so we are fine. Thanks, Georgi [1] https://lore.kernel.org/linux-pm/b789cce388dd1f2906492f307dea6780c398bc6a.1567065991.git.viresh.kumar@linaro.org/