Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp757243ybv; Wed, 19 Feb 2020 08:37:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyaD7Lcqteb8UXBZq0nLb+9LdQQwmCVjzZV2crM7+g52OvDlmoVHKmMsevsIXT5p43Yt4dz X-Received: by 2002:a9d:22:: with SMTP id 31mr18942494ota.173.1582130274034; Wed, 19 Feb 2020 08:37:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582130274; cv=none; d=google.com; s=arc-20160816; b=QgYM8rfXfRDZedyFUT0HsPyQC7N6nUIFf2FWXXLMIyD5iuokyh9m7n+1WxTujq2xpY O6nSMPL2PugUwuhhzVinjlPt7ngT2Sv2g5JWxriQB0tc0P6inKK7FvcUwWJcOQSvXA0d RmOyJSYvJ/0Jvz4VUwVhnlzIWmp0pJwIesNWcUAh1EuBVcvv2+rUG+3uH9mk9b6yq1QP ESt2NMJ+S9hHjg3XsQ735iVM7ctxMuQQauT+ytE9XD/j3WnDdm2CJhI5ntjhZLzhdVtU n3s6TUaa1LmI7qr4heF55sz0dKgtlf7hCzva0F8HC2BQr5qLY12aS8mOL6EM3RgZ5ylZ B8WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Xtlz+dlJikUb4ZnNucrBnixJNmT9nKl8DYS8PWnrPks=; b=Pz2lOYe1y0cU179uNs149qoSi46aAsmfDa+dWgpcysRjSWjOhBj4IddbAUgh9Q35kN vC/YQtftJ4cZM4GP9mRMX7RqZxGY8/gDfP35SzsOhZBvRAewlSdOZA/NeyNp6wr6EMz0 jH92ZJV3fNXREIY/LbwXucyr8IMmgLNjK/C7eVkPd8kvlSGakUh2rAsT0XyXKUszqW/Y vbPKH66sw7xFqGOrpwAeY6v/iz1nWQdcJb9mNY0qQBjKXhhlI+INCVquQrHOC9DGE6eX Eljx/s/mSDbBp53ygdjNmH3uqByVAp1j2IxnAe2mg6kFKQfjsUlOHnXHVPM/7NXAssa9 w81g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UFmYVY80; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c189si8713083oig.74.2020.02.19.08.37.42; Wed, 19 Feb 2020 08:37:54 -0800 (PST) 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=@google.com header.s=20161025 header.b=UFmYVY80; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbgBSQhS (ORCPT + 99 others); Wed, 19 Feb 2020 11:37:18 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:45178 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbgBSQhS (ORCPT ); Wed, 19 Feb 2020 11:37:18 -0500 Received: by mail-yw1-f67.google.com with SMTP id a125so358782ywe.12 for ; Wed, 19 Feb 2020 08:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xtlz+dlJikUb4ZnNucrBnixJNmT9nKl8DYS8PWnrPks=; b=UFmYVY80kD8Zpa0fkSTywbUnughoihSs+csgeDuTp+c/g/itb9Gfh2GXQv2waX1obE o8fIcHknv6cYoBq6n9E4Op23peq0J2ac2B0Imhbsw9i3LJdcWwvR96hOFpUgKnvwxecE A0WaXCr8X3lRnsiND4fpQMFQKauoE328soDOxzUj2XrZNdEE4/Cnsbw1TQyiNFJI/0K8 tiHcJj5I17xBtRqVehSpsTF2O1MIoCVxu+whM5mGowf/wCmH3aCYqmpuV7B/ap6QeqoH cP7PI7a4cqJQ5/Ls9HL7wPfVopzr4qtBJDae0A9gyMal+67BDkKh3mqcJZb2FQ9ryoTN ECnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xtlz+dlJikUb4ZnNucrBnixJNmT9nKl8DYS8PWnrPks=; b=qkV8rg3sFO9Jtiwll+hnNpkPXyr0Pv2qVMRMZv/8poyw0YXTNE3siV2XdqwrI3uw07 5eWRennXhWaO0VBnNL0u0fLSKROj2jJkW9k/nb1PRe/Eexuaft21Gxmhjh2L76Cel5Vm pgw+NZ+vUsP8sXYpoESmCXHV3PEncMX9jb+Rb0KXGXe7FqHoSJJN138aNOLOqokepqCA jzav52M6XFh3RuiTSPedE/Gqr22Pv+AggvcMyaaaZ+ElgK8DbWbNWZtJhI0B36ZzHli8 YKQ2W+h0b4xCH0u1fl7cV02eal/HnV/91ii9n6bAD1ml6eYafRkSOd5AG0UyaEw4JkL1 UtqA== X-Gm-Message-State: APjAAAXr/V+oEhgDwgHKWEwScai/t98unwZcQptidc1wprJ0IK0IF+NV WT3oy7sWpADgtc06O7qzhi/fSfFM/7bcLUtZn9A5RPQ= X-Received: by 2002:a0d:e155:: with SMTP id k82mr20972841ywe.168.1582130237017; Wed, 19 Feb 2020 08:37:17 -0800 (PST) MIME-Version: 1.0 References: <20200213213007.17023-1-jkardatzke@google.com> In-Reply-To: From: Jeffrey Kardatzke Date: Wed, 19 Feb 2020 08:37:05 -0800 Message-ID: Subject: Re: [PATCH] media: venus: support frame rate control To: Stanimir Varbanov Cc: linux-media@vger.kernel.org, Andy Gross , "Mauro Carvalho Chehab )" , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Got it, thanks. I'll submit a new patch with that. On Tue, Feb 18, 2020 at 11:56 PM Stanimir Varbanov wrote: > > Hi Jeff, > > On 2/18/20 9:09 PM, Jeffrey Kardatzke wrote: > > Sorry for the duplicate, accidentally used HTML format and it got > > bounced from the mailing lists so resending. > > > > On Mon, Feb 17, 2020 at 2:15 AM Stanimir Varbanov > > wrote: > >> > >> Hi Jeff, > >> > >> Thanks for the patch! > >> > >> On 2/13/20 11:30 PM, Jeffrey Kardatzke wrote: > >>> Frame rate control is always enabled in this driver, so make it silently > >>> support the V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE. > >>> > >>> Signed-off-by: Jeffrey Kardatzke > >>> --- > >>> drivers/media/platform/qcom/venus/venc_ctrls.c | 6 ++++++ > >>> 1 file changed, 6 insertions(+) > >>> > >>> diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c > >>> index 877c0b3299e9..9ede692f77c5 100644 > >>> --- a/drivers/media/platform/qcom/venus/venc_ctrls.c > >>> +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c > >>> @@ -199,6 +199,9 @@ static int venc_op_s_ctrl(struct v4l2_ctrl *ctrl) > >>> } > >>> mutex_unlock(&inst->lock); > >>> break; > >>> + case V4L2_CID_MPEG_VIDEO_FRAME_RC_ENABLE: > >>> + // Silently ignore, it's always enabled. > >> > >> Please, use C comments and follow the kernel coding style. > > > > OK, hopefully I've got that now. I didn't see any issues aside from > > the comment style though. > > I'll upload a new patch shortly. > >> > >> > >> I wonder shouldn't it be better to add rc_enable field in struct > >> venc_controls and give the user choice to disable the rate control? We > >> can keep the default to be "enabled". > >> > > That'd be fine. Is there a way to actually disable the rate control though? > > The rate control property values are here [1], and [2] is where we set > the control. > > -- > regards, > Stan > > [1] > https://elixir.bootlin.com/linux/v5.6-rc2/source/drivers/media/platform/qcom/venus/hfi_helper.h#L229 > [2] > https://elixir.bootlin.com/linux/v5.6-rc2/source/drivers/media/platform/qcom/venus/venc.c#L734 -- Jeffrey Kardatzke jkardatzke@google.com Google, Inc.