Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp18910iob; Tue, 3 May 2022 10:42:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2D4BdXAf2DSA09ey2c2IluIMmDfso07Z7puPqEafM+Nke6CuzGiuLvjimslDCYekv6BVy X-Received: by 2002:a50:9f06:0:b0:425:c1ba:5037 with SMTP id b6-20020a509f06000000b00425c1ba5037mr19433598edf.285.1651599767511; Tue, 03 May 2022 10:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651599767; cv=none; d=google.com; s=arc-20160816; b=Q5E+iSBb6aqxx6e4TPRRNayGl7NyTpNxxgrwpBez97l0x8yHgWQJSuWLT49EWS8pHH heOSMIAbgi2AUhS8uk9LRMb5jSgUkyOnZD0bdTySPVsm1REFITSADe1usTdjkQxjy/Hr eNEyuBE1ee1rZipsHbG2VIoONmPpwIXSMgR2OZ9AsvSafSrFLEWAx98YtO0wTU4WZo6P 2A8czbHR3gx5y5KHs17/SrUzXDXdDcotiDcIqcEdPl7VNmPF/FPGRlLtJI+RdZt1wK6d lQgOf9qGj4JB2pWAmLtS7mw1LFKjhkJUjhG8q6RjG6sXCW4IAo8Tfd/dusPSkPxgcrg6 yyZw== 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=m9EJXKOaKjDDNKQv1gqS5JQ7TFaPX71hGDmkIvDsda0=; b=D2z6IkuUKKjE0jBQFJD8G4hsOg10kqmUawKTmwOGFlwBnHCsvMap744t9Uh1EoFS3e gORtaNUW4UeKq/Hu2WsCuaOJwnlUxk0JphN861YMs30wQtD6nMW47dT9dQJHPDOfAH83 0EjD+Qg/VLb7BjbIjhuwgCwLwhdZYAQq3jD8auhEog0anmPRo4BFB4wqWzhwmWGAuonk QMruZNKc9eS9U+0LYHvRrJMuTpdX9jjUuhHNI48q/BK0NdQP8fvheqm4sjI/aTSxkT4e 6BrqFMjL+2AZaQC7L0cFbVyo+dkp40cruvj2gQouTmfwoPBJltZOKo8iAkj7TqcmZgS7 tiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=jFHCvpg7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh3-20020a170906a94300b006f379b8cc27si15136187ejb.184.2022.05.03.10.41.17; Tue, 03 May 2022 10:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=jFHCvpg7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235994AbiECNQp (ORCPT + 99 others); Tue, 3 May 2022 09:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235985AbiECNQo (ORCPT ); Tue, 3 May 2022 09:16:44 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C33D22E9E6 for ; Tue, 3 May 2022 06:13:09 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id b24so19797110edu.10 for ; Tue, 03 May 2022 06:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m9EJXKOaKjDDNKQv1gqS5JQ7TFaPX71hGDmkIvDsda0=; b=jFHCvpg7kJ7bmVCanX+9zqu46ofKvbl/Xb/SqqfkaxIx/MLwrPEJg27OzILpJiK3qZ clfA5sgrVh2Kl2tk4tnXaUwgNoSJR/UxnYJtAMAVNYN46DEXN2H5Yxk2XMCg10vUFo2W flWDfcAqisasCl/8EA5Sqq3PU4sVOVUSVBhgGhP0qVURTSGw2Pyn2Y1AiCt4CyQFVy3t Hhq487eMpjhKhV8B69S3+eJcbhkRiXS5GJJYz2gHKcJoeFijCo1oWCm31Ksvl4l+zTiJ UyGrqOsLINbNMXAMr5Wp9Gy2eGkXHGRw/kU5XL+C9hWsBV0zJuPeVpgs97XjYg4MPeMz 8k+A== 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=m9EJXKOaKjDDNKQv1gqS5JQ7TFaPX71hGDmkIvDsda0=; b=I7zU8/N+I6dl74VAFZu89t2Wl+GHvwW+9QNs0TzwAgil71HdNZnTEb1Jrlq8BTqt2n dMFHqwqSEGDNQqSerY65ICGeqmpwwvgXvFCoTK5IHLj66U4UQcEKylrZPiNJzaCdLbah S6ZJZEqjsv8nBGY0qH8vA5vmj/SEu8L+utuqjvJpFJN0+vbfgN47Uk+wbPZWnVbj8hwE Ox47Kw4kQpP9f+jFFR8KvXB0ZuMOxnabjbHbI2PxNHpKMx3pgHjPUhPdzKctKLUEDyZ+ AnfZKX01M/oXhmaYr50ylTgqzYC6knGv3a//L+Cu8+O/jGnWsVAgDntS2EaBaIXYh3pK yFCQ== X-Gm-Message-State: AOAM532L3fm5dqRETt6SVY/zZvMza6ejEMWzi88maXNHMV1fcp6t8t44 q5eXbohfkeNwU4sIQ53lVnjhnk4xhzJDo17bnTQB5w== X-Received: by 2002:a05:6402:2c4:b0:425:ac5c:4376 with SMTP id b4-20020a05640202c400b00425ac5c4376mr18103055edx.10.1651583588354; Tue, 03 May 2022 06:13:08 -0700 (PDT) MIME-Version: 1.0 References: <20220426135034.694655-1-benjamin.gaignard@collabora.com> In-Reply-To: <20220426135034.694655-1-benjamin.gaignard@collabora.com> From: Ezequiel Garcia Date: Tue, 3 May 2022 10:12:57 -0300 Message-ID: Subject: Re: [PATCH v2] media: hantro: HEVC: unconditionnaly set pps_{cb/cr}_qp_offset values To: Benjamin Gaignard Cc: Philipp Zabel , Mauro Carvalho Chehab , Greg KH , linux-media , "open list:ARM/Rockchip SoC..." , "open list:STAGING SUBSYSTEM" , Linux Kernel Mailing List , jon@nanocrew.net, Adam Ford , Collabora Kernel ML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Benjamin, On Tue, Apr 26, 2022 at 10:50 AM Benjamin Gaignard wrote: > > Always set pps_cb_qp_offset and pps_cr_qp_offset values in Hantro/G2 > register whatever is V4L2_HEVC_PPS_FLAG_PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT > flag value. I would say we need more justification why this is correct, or at least checking what the reference vendor implementation is doing (and mentioning in the commit description so we can track it in the future). > This fix CAINIT_G_SHARP_3 test in fluster. > This could sound like a tad a pedantic detail, but I'd say it's important we stop refering to tests as "fluster tests", and instead say something more correct as "HEVC conformance test CAINIT_G_SHARP_3". Also, when we are fixing conformance tests, let's please add the Fluster score (in this case, I think it's OK to refer to Fluster). PS: Same comments apply to patch "media: hantro: HEVC: Fix reference frames management". Thanks, Ezequiel > Signed-off-by: Benjamin Gaignard > --- > drivers/staging/media/hantro/hantro_g2_hevc_dec.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/drivers/staging/media/hantro/hantro_g2_hevc_dec.c b/drivers/staging/media/hantro/hantro_g2_hevc_dec.c > index 6deb31b7b993..503f4b028bc5 100644 > --- a/drivers/staging/media/hantro/hantro_g2_hevc_dec.c > +++ b/drivers/staging/media/hantro/hantro_g2_hevc_dec.c > @@ -194,13 +194,8 @@ static void set_params(struct hantro_ctx *ctx) > hantro_reg_write(vpu, &g2_max_cu_qpd_depth, 0); > } > > - if (pps->flags & V4L2_HEVC_PPS_FLAG_PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT) { > - hantro_reg_write(vpu, &g2_cb_qp_offset, pps->pps_cb_qp_offset); > - hantro_reg_write(vpu, &g2_cr_qp_offset, pps->pps_cr_qp_offset); > - } else { > - hantro_reg_write(vpu, &g2_cb_qp_offset, 0); > - hantro_reg_write(vpu, &g2_cr_qp_offset, 0); > - } > + hantro_reg_write(vpu, &g2_cb_qp_offset, pps->pps_cb_qp_offset); > + hantro_reg_write(vpu, &g2_cr_qp_offset, pps->pps_cr_qp_offset); > > hantro_reg_write(vpu, &g2_filt_offset_beta, pps->pps_beta_offset_div2); > hantro_reg_write(vpu, &g2_filt_offset_tc, pps->pps_tc_offset_div2); > -- > 2.32.0 >