Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5694950rwl; Tue, 11 Apr 2023 08:46:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aCC1v0LoUReWroJttW13t+XA1aA0WeJQEANHB267l9T5fEGD6eNOoZGsgCLcIE51a2h/y7 X-Received: by 2002:a17:902:ecc9:b0:1a2:9334:f79a with SMTP id a9-20020a170902ecc900b001a29334f79amr16153639plh.38.1681227975588; Tue, 11 Apr 2023 08:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681227975; cv=none; d=google.com; s=arc-20160816; b=icWyeUbI0g8O2T4CDhhavV/oOJenKoS8bcLF9nzrCMC9q1/Kq6aEVNxW9MyZ8Suppm O1kC4mNzlDo20KQBnzIaBt7/IQGB7mPsnXYmEnSaoSzPy8qBe49o0WMnZaEUsfJy9Nf/ gEEwGkji4HXnO/r11Ingt9cvyTD3Y7NSsxghdbceSRNBLzdNgw+4Dm7PMs4nCq+Pc5pq PW3lG5VQjltIFoOfWB277cHnqDmsGpGZZOVNA9bh5EuUmeqTvDAPOcycPz/yNcFh+APG 58+70r5aK5gruYxq1JgA/CHFigjHNz6nS/7WIeDttWM6QooDWM+Cm3K9ssMoT09DLPzE LP1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=H26rQQSwAW4e1d16dpUeT8iaXbaYT5VEcRut9divias=; b=B2A7G3VIZprhjGISKaPQciwXxVTUz7TpgdD+Zne7f7OhFEOa9X6GdCegFtENaHNaTB PTE8VUngslkPRAVOo/bCOMywq9oGnWYnfae46UZ0h0kdQBXLEZD81Oie5YrD2AQIFExH /g6zuohXORXCTm1DuA+9+PjH9FkV3lOm8I+rz4icIBJrq4Thwnc0Xg0t3SjcMP4/H3v5 zKHbS7+0+Oduhm/xqYwBvLxqqa+ci9vD3YJBx5W5tf4e1hRKM+Dzt09ZyusJqnCfyPPD EXOy7kV4unY7vh74pBPVKQGUd3bob6qZtV7SecH1Y8Q9j8BSF8HDvEbN7+apUlK6emL1 4qOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XBoAHczz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170903230100b001a235350e69si14787258plh.104.2023.04.11.08.46.03; Tue, 11 Apr 2023 08:46:15 -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=@collabora.com header.s=mail header.b=XBoAHczz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbjDKP1k (ORCPT + 99 others); Tue, 11 Apr 2023 11:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230116AbjDKP1h (ORCPT ); Tue, 11 Apr 2023 11:27:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D4835FCA; Tue, 11 Apr 2023 08:27:10 -0700 (PDT) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2606:6d00:15:199e::580]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id C3D3066003B8; Tue, 11 Apr 2023 16:26:58 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681226820; bh=DuGkoAGiYs0V4ZuV34Ydk4VOg6z3ZZ5l0Q7CdUd2bKI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=XBoAHczzPa75ed6PpuM3+BMpOoazAOVCW8vLIYv73ETeE/5LY5xci6Squ07wwLnO8 VgqDJJJ1PTAKoNJl4/iXFzP0wwieYJQYxVvqhvm5TXKGVL3w70c52hyBOKr14tj3sK G4IRhu246t4jW6cI/wLfH2ou8r9lfn8HUzKecfendQb1oZCvJUzfbxjm+cVE12RZV5 Te2w6ISnHohnnv4N6KzqHwRPbVbw8cyT7hCIqYri37dK/oECWq4M2jQIGKBtLrJRfo 8IzjoQGtO0SPVtf26TF7JfvEgawOx1oqfqrveV6C8dfu1AhD9AWBziD4LkmsWbbLvY yNfVb8mqjwqdA== Message-ID: Subject: Re: [PATCH v5 13/13] media: AV1: Make sure that bit depth in correctly initialize From: Nicolas Dufresne To: Benjamin Gaignard , ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Date: Tue, 11 Apr 2023 11:26:50 -0400 In-Reply-To: <20230330154043.1250736-14-benjamin.gaignard@collabora.com> References: <20230330154043.1250736-1-benjamin.gaignard@collabora.com> <20230330154043.1250736-14-benjamin.gaignard@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Le jeudi 30 mars 2023 =C3=A0 17:40 +0200, Benjamin Gaignard a =C3=A9crit=C2= =A0: > Make sure that bit_depth field of V4L2_CTRL_TYPE_AV1_SEQUENCE > is initialized correctly before using it. >=20 > Signed-off-by: Benjamin Gaignard >=20 In v6, can you move this patch earlier ? I'm having bisection in mind. With= that being said: Reviewed-by: Nicolas Dufresne >=20 > --- > drivers/media/v4l2-core/v4l2-ctrls-core.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c b/drivers/media/v4= l2-core/v4l2-ctrls-core.c > index 9fd37e94db17..a662fb60f73f 100644 > --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c > +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c > @@ -111,6 +111,7 @@ static void std_init_compound(const struct v4l2_ctrl = *ctrl, u32 idx, > struct v4l2_ctrl_vp9_frame *p_vp9_frame; > struct v4l2_ctrl_fwht_params *p_fwht_params; > struct v4l2_ctrl_h264_scaling_matrix *p_h264_scaling_matrix; > + struct v4l2_ctrl_av1_sequence *p_av1_sequence; > void *p =3D ptr.p + idx * ctrl->elem_size; > =20 > if (ctrl->p_def.p_const) > @@ -157,6 +158,10 @@ static void std_init_compound(const struct v4l2_ctrl= *ctrl, u32 idx, > p_vp9_frame->flags |=3D V4L2_VP9_FRAME_FLAG_X_SUBSAMPLING | > V4L2_VP9_FRAME_FLAG_Y_SUBSAMPLING; > break; > + case V4L2_CTRL_TYPE_AV1_SEQUENCE: > + p_av1_sequence =3D p; > + p_av1_sequence->bit_depth =3D 8; > + break; > case V4L2_CTRL_TYPE_FWHT_PARAMS: > p_fwht_params =3D p; > p_fwht_params->version =3D V4L2_FWHT_VERSION;