Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1094564ybg; Mon, 27 Jul 2020 07:47:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWDHZCz2J2ViNRHXwqRko3dUYqUQpTX72Wvoml/Y/O6coZg77k5AZz2Y+/MVMi6AH314mZ X-Received: by 2002:a17:906:6d56:: with SMTP id a22mr13191506ejt.440.1595861253492; Mon, 27 Jul 2020 07:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595861253; cv=none; d=google.com; s=arc-20160816; b=l4AX+CkLqTm4IHk/pNba/Li83gmGTtHBnEk5dUZMoRI2xEpwKGx2np/0DgEGB100Ly 3hm+mE8TLnxjIe5e5L7V5xx9qKSiQXhlK2QTla8hsFwhUyCiwqXBJ54u6/YoT1ECeraf pb+aC7V/czSp9x+dNgMUh6ltDnZKrPg8I8eQanKAL+Zjyc3dKaU64JlGLoxCEXs7/u0f UA5KCWQRnHJvdlXofUU4PsuPwRCMCnKIGaT41ht+sEXk1kRmt6Iss75AT8+vwzSKNCEu 22TzMyCPAY6EI7FgJQsmwcwx0zyUSGUMR8dIB0G7B/39hFjzpdmw/KSfUntFCYI8wZSH PRuw== 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:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=5SbH3C6E0IAfsOvRLjLVXtZb1urRQzMKqHLUDUludPs=; b=AfqYFn9Rl6glxWGQrQoCAvjiCVFrP8xn5x0hdmbeHVc/BY5Ne3u61Etr9SD4UR4zuj OjgqLEARKRwIOxiWW2jvMR299hO+Tvkoz+/DR4bzj6Q2qFTy074r4PRCfM5YtPBAaaCj TaB5fEScEA7xniuUv13x8PuuOs082g3ljah9TQkY+HmGUM3AnJCjauxDHztseWXnMI8f l4BVMeVS9YhamOaPdpMsK3y7EwmYSpphfIVIQT4gRf+3ohCGW1DcACiv+mF1Pi5fKgbM PseWTISScpufQu2TxAZNLoHqSmAtlasf9AUtVrRKGqBpYCzhv6N5HWQ1XR0GeQj62Swk 3RMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si1396621ejr.426.2020.07.27.07.47.11; Mon, 27 Jul 2020 07:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728759AbgG0OoX (ORCPT + 99 others); Mon, 27 Jul 2020 10:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbgG0OoW (ORCPT ); Mon, 27 Jul 2020 10:44:22 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9631AC061794; Mon, 27 Jul 2020 07:44:22 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 801122958A9 Message-ID: <44dcbbc97a06352169a2cc99536e41f2ad111238.camel@collabora.com> Subject: Re: [PATCH 09/10] media: hantro: Don't require unneeded H264_SLICE_PARAMS From: Ezequiel Garcia To: Alexandre Courbot Cc: Linux Media Mailing List , LKML , Tomasz Figa , kernel@collabora.com, Jonas Karlman , Hans Verkuil , Jeffrey Kardatzke , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski Date: Mon, 27 Jul 2020 11:44:10 -0300 In-Reply-To: References: <20200715202233.185680-1-ezequiel@collabora.com> <20200715202233.185680-10-ezequiel@collabora.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, Despite you've asked to ignore this review, let me comment on it. On Sat, 2020-07-25 at 23:45 +0900, Alexandre Courbot wrote: > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia wrote: > > Now that slice invariant parameters have been moved, > > the driver no longer needs this control, so drop it. > > > > Signed-off-by: Ezequiel Garcia > > --- > > drivers/staging/media/hantro/hantro_drv.c | 5 ----- > > drivers/staging/media/hantro/hantro_h264.c | 5 ----- > > drivers/staging/media/hantro/hantro_hw.h | 2 -- > > 3 files changed, 12 deletions(-) > > > > diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c > > index 34797507f214..3cd00cc0a364 100644 > > --- a/drivers/staging/media/hantro/hantro_drv.c > > +++ b/drivers/staging/media/hantro/hantro_drv.c > > @@ -306,11 +306,6 @@ static const struct hantro_ctrl controls[] = { > > .cfg = { > > .id = V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS, > > }, > > - }, { > > - .codec = HANTRO_H264_DECODER, > > - .cfg = { > > - .id = V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS, > > - }, > > Isn't this going to make the driver reject (as opposed to just ignore) > this control altogether? Also, even though the control is not required > anymore, don't we want to check that it is provided in order to ensure > user-space follows the spec (granted, this would be better done in a > common framework shared by all drivers). > As you mentioned on your next reply, indeed frame-based drivers can't really parse the slice headers. I believe the above comment would make sense, if we want to avoid breaking compatibility. In our case, we are already breaking this (it's broken from the minute you change any control in the API, as V4L2 reject mismatch sizes for the controls). So, I'd say it makes sense to drop it now while we can. Also, Nicolas has suggested that this makes applications simpler. > I'd also suggest this patch (and the following one) to be merged into > the previous one as they are just removing fields that have become > unneeded because of it. I'd like to keep the patches touching the uAPI separate from the ones touching the driver, when possible (i.e. when the build is not broken by API changes). Thanks, Ezequiel