Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp79127iob; Tue, 3 May 2022 11:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9ipmnOkdfQcmsg1tgynEAyalBdKiKOnXFOxcNya7Wt4zvdJXyo2crxftOxP5pqZfr7x29 X-Received: by 2002:a63:2b01:0:b0:3c2:4b0b:e1c6 with SMTP id r1-20020a632b01000000b003c24b0be1c6mr6900947pgr.288.1651604391037; Tue, 03 May 2022 11:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651604391; cv=none; d=google.com; s=arc-20160816; b=aOt/y3R+9hq6k74ZkU0M6oTZYaK+3gHf3lC4kWr+TvHwNGREE1HwAOK65WZl0aBCey C5zPfyjTJtiyDduIBBCphrnW6GATYcwod4cJV2E+cNGXX0igBby3d+6qr7K7/Dp1V4GF LqI9dTF1MRCilh85Rrq3sTUgGRagdt81TQ0LuAlbN6nK9bSaBvYPPNt/8pQsQSb0N7A6 pn7A5YaZXHVZA+I6NFGd5lRnRbMddlcWp7sa2Buf4r6dpt91Wymi7VgOQpbdR8WAO0My MRSPqK8MMrVPiSadSWmsCrRBcblMQugn9Tev2ButrZQZs7g/3leXyC5Vcd6yaaRwxcrA gxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L88EHtQ6nEd2T7lOrwIfVWNdp4VhbNintMvDvOLss8Q=; b=cZoX9bqum5Kvrq1JTFfxOhM3DDqrqu/4sxiAI2l3jBtgyOVNGBN5E5mpp5G9ZziBoX xR/OtS1ZbEu4d1DmuldKB7LERB8X76LAVjStJilGj38WzRrBD+ZJDw6kIAPjZDa+nwlx IjkYSkt8ad1JHxHp6kllKmVaJS4M1V/jaghwajoX6m6PLyaTIYFatxopOvRSuL/oGUGy b2aQnkY195xzTi3l7GF3WJ9u1taf8vmfc6Cq9glaQsgcl5Uy1LFbM/LwE0tFHP0YTWJj bXJKetPGzUb9jc/bRxwvoJsgCB3TrOi34lLNHf6esQP9J6ttu18R67uGLLUboQ0xCllZ +i0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=ORflvvEw; 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 t1-20020a170902e84100b001586190b7c1si6007953plg.528.2022.05.03.11.58.49; Tue, 03 May 2022 11:59:50 -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=ORflvvEw; 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 S237388AbiECOw4 (ORCPT + 99 others); Tue, 3 May 2022 10:52:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237321AbiECOwy (ORCPT ); Tue, 3 May 2022 10:52:54 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C130393C5 for ; Tue, 3 May 2022 07:49:22 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id l203so18460648oif.0 for ; Tue, 03 May 2022 07:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=L88EHtQ6nEd2T7lOrwIfVWNdp4VhbNintMvDvOLss8Q=; b=ORflvvEwfGsYDuH3xu13w2z6La7dFK0pcvzJHprpjjZDa7UOodm2NbKomhn0ZxHAv/ WeE/Ng3JKryVEH1P+hAiDezRt5zKgpCZFB8g9ORQIIDosgtqZCbSX44tUWWNkJadZB+/ f01px+Cg1VZ51LCys1DxkiAGuzIUWsIkAu5kSVwDPiBpmSCQrsc9Wp/cSw9zB0DZW/r2 x0RJRXQJtbf49AAbQ/BfojEXpX68Og4gQffmpy/hrwZE0bRI2eZudc34eUEzTMEiAow7 NXiA9f5U22R7Ln9pfvBUI+tMK2+425HiEAEphIOSfl/avuv1WHc1jpnEDZOYcXLFF6KN zihQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=L88EHtQ6nEd2T7lOrwIfVWNdp4VhbNintMvDvOLss8Q=; b=hjDnf/VaxV1nkRBXxJ8YP18waIXpnpggI/1AqaVzst3MJzH6ag+mYM7KbIR51NATo1 IF65u5ywoTOLeova2fSEoEARYzcTcpT9DZcvg/WbKyGsZYGHzkqmhX+1iD6qHTtEMZPl XXnx6Yf9dxqw4CCeRqhenxz8hJNUggNEr7r1JOEpmvyEk9MF/TWQSkEo3ZUY2J8DV+fj gla5tbeohp1EMqDqYUChrWTgBLlmVTNfE/p9MW1KITDMov75pSohK0ZrGVWu4EXHfrdJ kr1vIANn24rYw1zJAowFrz6NcxO4V42m7OYnhMVOblsylJkCr+XxjJ4X8EesCab8ROuw NEjg== X-Gm-Message-State: AOAM532LJktqonPEAgjYml2mcvE0L1173OdMcCjZVZbnF3itwm+TBOmP OFwSPoMxO76foLSO4B7lMEzvxQ== X-Received: by 2002:a05:6808:56b:b0:325:9f5e:3fd4 with SMTP id j11-20020a056808056b00b003259f5e3fd4mr1978437oig.199.1651589361547; Tue, 03 May 2022 07:49:21 -0700 (PDT) Received: from eze-laptop ([2803:9800:98c2:8470:9f4:8e2a:88e5:ec01]) by smtp.gmail.com with ESMTPSA id o20-20020a0568080bd400b00325cda1ffafsm1707597oik.46.2022.05.03.07.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 07:49:21 -0700 (PDT) Date: Tue, 3 May 2022 11:49:15 -0300 From: Ezequiel Garcia To: Benjamin Gaignard Cc: p.zabel@pengutronix.de, mchehab@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, jon@nanocrew.net, aford173@gmail.com, kernel@collabora.com Subject: Re: [PATCH v3] media: hantro: HEVC: unconditionnaly set pps_{cb/cr}_qp_offset values Message-ID: References: <20220503135529.683474-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503135529.683474-1-benjamin.gaignard@collabora.com> 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 On Tue, May 03, 2022 at 03:55:29PM +0200, 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. > The vendor code does the case to set these values. > This fix conformance test CAINIT_G_SHARP_3. > Another silly nitpick: s/fix/fixes. > Fluster HEVC score is increase by one with this patch. > > 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 >