Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1050871pxb; Fri, 1 Oct 2021 02:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCV2vbstGaMmm+AGcAIV8sNA5M4fQ/I8sg2nz0rcquJFp5xKeS+YPGHjzQiosD5qia93CZ X-Received: by 2002:a17:902:8d8b:b0:138:e09d:d901 with SMTP id v11-20020a1709028d8b00b00138e09dd901mr8762218plo.34.1633079917861; Fri, 01 Oct 2021 02:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633079917; cv=none; d=google.com; s=arc-20160816; b=PGaQp/gRekVi7QR4kEsfzjSbjy94OPYRnaA4XDO/QcmDJIbM3PIXVsobIfurR7nd5X Uo2PxCHjsnViN3ooKD+6kGlIZKnB4nK7qQo+oBjoKyy8zeeHNsfTi3p0o1T7KIMefv7i OrXqZskK4n0GuZ1LbrTVmR/HAMlv5IdH6z83LG/wiMyH9/ARJd5pjE0jdpfaBUkabh9c lEk8GTABohNrpYL7WP5SV9If7oOpGy5ooN9trLwIZTIVt/+ZUG88Kil7u9qPo+RDs9e2 OFoY/vglgptSKpvm4cnbOGtU7QGKXOGogWAAZUln9U7Lgxwfh1vorWrgKLLLo5ZSQHXi 6J/g== 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; bh=s8HFH+lSf81GIZKrZ/pSw+iieN1cA2u5Uw5SAz1PpUs=; b=qEDAs5c/6YszVsiEwHnnvqYDi4cg4+AjjkEUbD50zDjKuQQNOdx4IbnMHj3opmvDiJ Nsb2h/H5g4PYTAEfnQmxoDX68TQ3DFNUl49wBETlRPXf5vporWrsglVHu0KSQ4kPoiXV JXaYdhOGYhtxP7Q6zfQFcK7qoc+X/g1Ms/Ks+ueg3GPDkHS9zwRnK+f09fZ3uNdD/b5M FYJuZTvw5UuPtN+4E2Q+1w2Eln6lj3AFFz1Wt6alneeUzDuAshsjolmcyhrBxTfj0iHX VMcF0TDLjf9Dd0Wq3AxhJSBYoXOq1TuIt4Z0NxanZ6jFKDJsJT3PC5Cgkd7y5dFlpTHR MJww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si7050296plq.185.2021.10.01.02.18.24; Fri, 01 Oct 2021 02:18:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352888AbhJAJRH (ORCPT + 99 others); Fri, 1 Oct 2021 05:17:07 -0400 Received: from mga03.intel.com ([134.134.136.65]:40199 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbhJAJRD (ORCPT ); Fri, 1 Oct 2021 05:17:03 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10123"; a="225458831" X-IronPort-AV: E=Sophos;i="5.85,337,1624345200"; d="scan'208";a="225458831" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2021 02:15:19 -0700 X-IronPort-AV: E=Sophos;i="5.85,337,1624345200"; d="scan'208";a="539952628" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2021 02:15:17 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id BE7342010B; Fri, 1 Oct 2021 12:15:15 +0300 (EEST) Date: Fri, 1 Oct 2021 12:15:15 +0300 From: Sakari Ailus To: Ricardo Ribalda Cc: Mauro Carvalho Chehab , Yong Zhi , Bingbu Cao , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Chiranjeevi Rapolu Subject: Re: [PATCH 2/7] media: ipu3-cio2: Set valid initial format Message-ID: References: <20210928211033.2415162-1-ribalda@chromium.org> <20210928211033.2415162-3-ribalda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210928211033.2415162-3-ribalda@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, On Tue, Sep 28, 2021 at 09:10:28PM +0000, Ricardo Ribalda wrote: > The initial format did not have a valid size. > > Fixes v4l2-compliance: > > fail: v4l2-test-formats.cpp(723): Video Output Multiplanar: > TRY_FMT(G_FMT) != G_FMT > test VIDIOC_TRY_FMT: FAIL > > Signed-off-by: Ricardo Ribalda > --- > drivers/staging/media/ipu3/ipu3-v4l2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c > index 38a2407645096..fbb9eb2ba99e4 100644 > --- a/drivers/staging/media/ipu3/ipu3-v4l2.c > +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c > @@ -1136,7 +1136,7 @@ static int imgu_v4l2_node_setup(struct imgu_device *imgu, unsigned int pipe, > def_pix_fmt.height = def_bus_fmt.height; > def_pix_fmt.field = def_bus_fmt.field; > def_pix_fmt.num_planes = 1; > - def_pix_fmt.plane_fmt[0].bytesperline = def_pix_fmt.width * 2; > + def_pix_fmt.plane_fmt[0].bytesperline = 2496; Please derive the value from the width, don't use a number here. -- Regards, Sakari Ailus