Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp311332rdb; Thu, 16 Nov 2023 22:12:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlQfUvTeG9urLxj22KMpG9lulOvwyxeYf+IPqQZE3JEh3ovxo7OJCjrAvINWch3yh4TLMZ X-Received: by 2002:a05:6a20:9385:b0:187:4fd9:b9bc with SMTP id x5-20020a056a20938500b001874fd9b9bcmr8360625pzh.34.1700201568276; Thu, 16 Nov 2023 22:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700201568; cv=none; d=google.com; s=arc-20160816; b=E6usFQFZTanMtpYZEzORKa+TWuEFW3svFzl8Pg8h/33SQX/A2ma9HFFeE1baWOZDDK eGuIvzdS8oMSQ9A3Krqjn1A7NZ4el1y8iVB0FHy0ZJVLcCEB5hPlYLWgcr4vokSjGIw0 Gxk047hxP9pTw+46hIHpFnQszwPH0Ce9Ru9JjTV14v7XOoXB6kyFITKQI7UFheEenVGh kB21SiXu6K6X2VUFL+izyATDyBcL3Sr0ODuLFPrUW3Ih4x2fx20AmZ0gEKNjYw96vtPZ ZP2EQPGCCX6Y99iYJa4lPb6l29b3QVUs7fkhBfU/XdWiduCEr5eI8uTUO5RiuHrhTHMN CNXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dzkIKBP1RSNSjcHa3ooQec7vnsT1BIreWgj3m6bqwkw=; fh=RsoqAI0l3W6Pyewv0Zq4FtLo7EXk4VCk5ZM+y13LoYw=; b=vEehZOXORkF5WM1zKDyUu4O9kUiniv6Izu4PzmHLz+tPx+VpFclhUf5eObrcpYd15Y jvWyo6EmA7OFOKtEgCdeCJXHkzvzepYrnvKLRyUp91QuGvuKrwbudUsLA/vPjr5D0yaE xTrsa+ThKA3A7oM93lett+FUaIo9f+7lB2/36FKWfpmJKnCr6h0Oayfv9PyRzS3G1IKj xAyowDXi3HOZmc6/TZJM8uNbKR5sM0tEdr7Fp/ZgDDtIQ7v1xxMi+yceNPtLHVqZfNyG OKqRt5rXl/TS5vARsa3VDG7vnuLlAAE7Giqkog4EaKJp95D0TEZnAX55yMdXVE8jtH4R qC+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E40KVoy+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id g21-20020a170902869500b001ca24970584si1052064plo.572.2023.11.16.22.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 22:12:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E40KVoy+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B1013807C572; Thu, 16 Nov 2023 22:12:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbjKQGMJ (ORCPT + 99 others); Fri, 17 Nov 2023 01:12:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKQGMG (ORCPT ); Fri, 17 Nov 2023 01:12:06 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57AE3196 for ; Thu, 16 Nov 2023 22:12:01 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-507b9408c61so2277067e87.0 for ; Thu, 16 Nov 2023 22:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700201519; x=1700806319; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dzkIKBP1RSNSjcHa3ooQec7vnsT1BIreWgj3m6bqwkw=; b=E40KVoy+wl8VWruMa6ogYnW6/ltu2bikfls4hZO0b9hNul0P8uSvJ4kDttdJPVym81 Iu5K6FGC4FaI9a6YlE0TqwOTvX19ChANf1+zIFLgWzPn5gWZwggqJttZJ5nqmmC+RFT7 N7l5B8VmrhpEyJc+6BjeCbtquE7smsbi+zEiU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700201519; x=1700806319; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dzkIKBP1RSNSjcHa3ooQec7vnsT1BIreWgj3m6bqwkw=; b=QXxMiYlfquPgyb9bqO3iYWIH+7Jp7VPWEz9P7tKG5aXgiQf5HReoHaqBUB8WliEq7i bgJO5xYivM4WUqZc1abuirp38rHXoYN+BU5dHaAh6t2IUJHfQbkvKcN+MEW2XMIiuPGw nes99mgK+5/bnxDMnbT1NN2ax9qCTw4qmqj5knQcVkZ45Ck5ko0wt202RSPPyB1+qGPY 8YIkAe+kq0rvQmXcvJR8lWGd/aRtPem3jy75O9FxDZuRZvDXtIasVX/Afg1CsIl3xtwv 7EYSkDVGNozeFXAyjvyBrW9caRhQFyNmbzG6PknRNw25nvyn/G+ws7j5CefTW0Y6YJ5W 1wug== X-Gm-Message-State: AOJu0YwTLdE+Tbw7ASaTLKoPuN90z8AcQhhIb6dkVoNOQHgsrbL+97HD JsSD6wFMes0SDhggR7BYThSI2QkYmtkCG+hwegSj0g== X-Received: by 2002:a05:6512:39c9:b0:50a:7640:6a7f with SMTP id k9-20020a05651239c900b0050a76406a7fmr15645335lfu.12.1700201519373; Thu, 16 Nov 2023 22:11:59 -0800 (PST) MIME-Version: 1.0 References: <20231116154816.70959-1-andrzej.p@collabora.com> <20231116154816.70959-4-andrzej.p@collabora.com> In-Reply-To: <20231116154816.70959-4-andrzej.p@collabora.com> From: Chen-Yu Tsai Date: Fri, 17 Nov 2023 14:11:48 +0800 Message-ID: Subject: Re: [RFC 3/6] media: verisilicon: Improve constant's name To: Andrzej Pietrasiewicz Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Hugues Fruchet , Alexandre Torgue , Benjamin Gaignard , Daniel Almeida , Ezequiel Garcia , Hans Verkuil , Mauro Carvalho Chehab , Maxime Coquelin , Nicolas Dufresne , Philipp Zabel , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 22:12:36 -0800 (PST) On Thu, Nov 16, 2023 at 11:48=E2=80=AFPM Andrzej Pietrasiewicz wrote: > > For VP8 BIT(18) of this register is for enabling the boolean encoder. Yes, but for H.264 it selects the entropy coding mode, 0 for CAVLC and 1 for CABAC. You even add it back in the last patch. I'd do it here, so you disambiguate the definition within one patch. ChenYu > Signed-off-by: Andrzej Pietrasiewicz > --- > drivers/media/platform/verisilicon/hantro_h1_regs.h | 2 +- > drivers/media/platform/verisilicon/hantro_h1_vp8_enc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/verisilicon/hantro_h1_regs.h b/driver= s/media/platform/verisilicon/hantro_h1_regs.h > index 7752d1291c0e..c1c66c934a24 100644 > --- a/drivers/media/platform/verisilicon/hantro_h1_regs.h > +++ b/drivers/media/platform/verisilicon/hantro_h1_regs.h > @@ -70,7 +70,7 @@ > #define H1_REG_ENC_CTRL2_DISABLE_QUARTER_PIXMV BIT(22) > #define H1_REG_ENC_CTRL2_TRANS8X8_MODE_EN BIT(21) > #define H1_REG_ENC_CTRL2_CABAC_INIT_IDC(x) ((x) << 19) > -#define H1_REG_ENC_CTRL2_ENTROPY_CODING_MODE BIT(18) > +#define H1_REG_ENC_CTRL2_VP8_BOOLENC_ENABLE BIT(18) > #define H1_REG_ENC_CTRL2_H264_INTER4X4_MODE BIT(17) > #define H1_REG_ENC_CTRL2_H264_STREAM_MODE BIT(16) > #define H1_REG_ENC_CTRL2_INTRA16X16_MODE(x) ((x)) > diff --git a/drivers/media/platform/verisilicon/hantro_h1_vp8_enc.c b/dri= vers/media/platform/verisilicon/hantro_h1_vp8_enc.c > index 05aa0dd9c09c..08c5079fbfd0 100644 > --- a/drivers/media/platform/verisilicon/hantro_h1_vp8_enc.c > +++ b/drivers/media/platform/verisilicon/hantro_h1_vp8_enc.c > @@ -1226,7 +1226,7 @@ static void hantro_h1_vp8_enc_set_params(struct han= tro_dev *vpu, struct hantro_c > reg =3D 0; > if (mb_width * mb_height > MAX_MB_COUNT_TO_DISABLE_QUARTER_PIXEL_= MV) > reg =3D H1_REG_ENC_CTRL2_DISABLE_QUARTER_PIXMV; > - reg |=3D H1_REG_ENC_CTRL2_ENTROPY_CODING_MODE; > + reg |=3D H1_REG_ENC_CTRL2_VP8_BOOLENC_ENABLE; > > inter_favor =3D 128 - ctx->vp8_enc.prob_intra; > if (inter_favor >=3D 0) > -- > 2.25.1 > >