Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp978397pxp; Wed, 16 Mar 2022 23:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK6mu1ddMGMJHfax8vMN4i0SHH+43r1mgxsfcnAkBCAMmqWKlNwvo6s7/Yq0ICsq7wQVZa X-Received: by 2002:a17:90a:4bc2:b0:1b8:cdd3:53e2 with SMTP id u2-20020a17090a4bc200b001b8cdd353e2mr13930019pjl.219.1647497783709; Wed, 16 Mar 2022 23:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647497783; cv=none; d=google.com; s=arc-20160816; b=LX65AMtGMPawpBLegz51tfVOVI2z9XAWuSd+KNYotCKPFvXgRA7NjtJM/cgwBy5bQn qvm2WvICU2a/9XQnu+N1awZR1AI5Pg4fX6ct8xf6pCFOCf2PF8YK7qPIWOB3YCvyKod0 vA7N8K8o9W/8dwXikkUKdDN5mZqJSj4ZzY1AWANQMGQDvJ+5ytPUKcUrurzweZXLwEOA SfVy6bysME6gbdHB42kyHjMUluSk6VCGzLwODUnufTSDnL8ZuokzxGxyl1PKxGTHKQcN mBPSPa28eARio8H39B7n95gn+z5T+Z1G0sUgNCxpwSW+vyMVWqqcpOlsQZzWItsFxfad r82Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kP0LyTf+EiQY7fo4NN9fTawSgavBYcmQCB65qo3H3i8=; b=URwkRNBNZP3d6beXBfdYx/Cocq3SwxXyX9pBkcP79qigbGFxsXjdUthzTGL6jTzdQU 5dHPuSJWRzPRLGt3/c8JawYbL0uiTY2ke5YmCuygoLdm9QuohSUIWP0tRiCn1gPQsrec Euq/AagDNXAXeVeo7QijqpSD19Y+I8UZB/ON+UBY5qMbp9ATFbVP+aNpaH3wd5PYPOp1 NK4x5gKnnr7N4sL/aQgg/12BLgNfmaoMJwL66KTRVSgz5Bv4A/aFLdlQceVUJF5+tMRJ xBUEyZHzi16injU4NPDLl4etEU1vbG7qL8CNP3GxdlYTcrT7M59AxCR8+MhkCPqQ+Wlh 1c2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gWIFxN08; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x8-20020a656aa8000000b003816043f0d0si1265299pgu.709.2022.03.16.23.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:16:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gWIFxN08; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F2BE321BC49; Wed, 16 Mar 2022 22:00:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233348AbiCPGLK (ORCPT + 99 others); Wed, 16 Mar 2022 02:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244412AbiCPGLI (ORCPT ); Wed, 16 Mar 2022 02:11:08 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E7351E4A for ; Tue, 15 Mar 2022 23:09:54 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id t11so2602038ybi.6 for ; Tue, 15 Mar 2022 23:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kP0LyTf+EiQY7fo4NN9fTawSgavBYcmQCB65qo3H3i8=; b=gWIFxN086BRLC08wt0RLKOoxxVt9OkQj3kIwI8jgVTjmMdVxCvAawkZ9mYjNcd7neI bA90gANRFYdD6d4kt/3S9EnuD6gvJjt3onlvvv9sx34rf/TOfPpgMq3C84eVZTvdVfMe yicsqqr5BFbBFuvNSsN3M8Qaxuy+oc0UDmPck= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kP0LyTf+EiQY7fo4NN9fTawSgavBYcmQCB65qo3H3i8=; b=pcABFc5cphllyad+AVuObmARNBV17oQ9JQjoAryU3n7mjmWnOisHPrUoPafUkGwV5E V2VutXGzEb1Mvqw8yKwxsYIYpSa/2LVzBlqPH8ht4OgDwlfM9FyoiQkSi2Hpj3c1calm VVgxuh0TvoISAbWlFhZzYznn9IBTXPoBBeTzaYEd72vT0e9Y4d+6EXNzbz0ZGvpx4zy9 B07RSP7teyhQESONrmx7I2T6BeWaI/NiOd+6+eCr2lKQVGG0OtQvPimCOpksKtpzYf/1 Xt8DXydc8IoUKbfbUhX/I/coFmu84YHy6RE4wtzp/qBoY49Swx0DYd8CRnd/I9Q5fQzn lRxg== X-Gm-Message-State: AOAM530RuSsymruFDauJsIk+uTFEbl73VhO2zAXH6kQ6nwoZAF57yhS7 CEq57pPCjmqUNje3ByB0nsZo+5RL8lcsjgC6sa8YMg== X-Received: by 2002:a25:32c2:0:b0:628:86af:da05 with SMTP id y185-20020a2532c2000000b0062886afda05mr27569966yby.278.1647410993824; Tue, 15 Mar 2022 23:09:53 -0700 (PDT) MIME-Version: 1.0 References: <20220301042225.1540019-1-wenst@chromium.org> In-Reply-To: From: Chen-Yu Tsai Date: Wed, 16 Mar 2022 14:09:42 +0800 Message-ID: Subject: Re: [PATCH v3] media: hantro: Implement support for encoder commands To: Ezequiel Garcia Cc: Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Nicolas Dufresne , linux-media , "open list:ARM/Rockchip SoC..." , "open list:STAGING SUBSYSTEM" , Linux Kernel Mailing List , Benjamin Gaignard Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 16, 2022 at 2:38 AM Ezequiel Garcia wrote: > > On Mon, Mar 14, 2022 at 3:59 AM Chen-Yu Tsai wrote: > > > > Hi Ezequiel, > > > > On Tue, Mar 1, 2022 at 12:22 PM Chen-Yu Tsai wrote: > > > > > > The V4L2 stateful encoder uAPI specification requires that drivers > > > support the ENCODER_CMD ioctl to allow draining of buffers. This > > > however was not implemented, and causes issues for some userspace > > > applications. > > > > > > Implement support for the ENCODER_CMD ioctl using v4l2-mem2mem helpers. > > > This is entirely based on existing code found in the vicodec test > > > driver. > > > > > > Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver") > > > Signed-off-by: Chen-Yu Tsai > > > Reviewed-by: Benjamin Gaignard > > > > Gentle ping on this patch. Any comments? > > > > Pong. I have been a tad busy the past weeks and haven't been able > to review this yet. Sorry about that. Got it. > Meanwhile, and given how delicate this code path is in our experience, > have you guys run regressions tests with this patch, in particular with decode? We landed it downstream two weeks ago [1], and so far nothing has failed. However, given that the driver doesn't support decoder commands either, the new code might not be exercised in the way you assumed? At least no failures indicates there aren't any incorrect code paths, i.e. decoder ending up in the encoder path or vice versa. Regards ChenYu [1] crrev.com/c/3456042