Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp780406pxb; Wed, 6 Oct 2021 15:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5PpKcrJZA3+hhm83NrYbHYliSLYPv4nd/tQPxi6eWcHMXfZr5vai6cSTfWlefZyIpc+wS X-Received: by 2002:a05:6402:447:: with SMTP id p7mr1126134edw.261.1633559205378; Wed, 06 Oct 2021 15:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633559205; cv=none; d=google.com; s=arc-20160816; b=qcY83LvMN3N6/31+xR5ArAf1gpnNcxQ1nr5rSR6vqesBlW/rvggCDIRzIK7IK/jDbh +6+pQCVL4AwAKC66vZEZaKBPVnqqud6k7TZmf4BAUJLYo3e7gdCOLsKGe7qKJHe51uVZ 1Je7htQaJGqxedt0X5VSGsgVdq7IpgWADRRxr6sC2MzQwP3ViUVOAzvroQk4mnt9Ao1g AwblEZWBVBc+xmZjy+Og7ZLuTgzQuFAaOnyXDk9ZhAL5sUvHPf/XlxJGcLUBJ9NVuyu5 X7CMH+LlMtaqkM/ivol+9X6jQOKv6Iy+WV8IwEWoxhgEToEq4WDbtTyMZwOxSlusTS5V 1sTg== 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=+yja18DZ1d8afX22pgXoDhCElfkeRE/0Ontons5vPM8=; b=XaT9xEFhUpbbGzl47/PKFkmlxx/+R8MGa7tZL+Mi5GdkoM6NE231ktkvzmHON/CD7R M9e0Xgl31FRsQyJeq+3LXTkYfjutQQZ3BhmtkveOYEPBETgceIzNy4iyU+dxYznx4Kch r4VS1TeveobnBDWW52OOjknBMavLtyiK1VBX9JJS8rJnFDsXgfRoOCnYlCpVb1luTuop JZXRy2NO957nhiJ1evguD0pTTcC+nm8J4wSz+pC1bLJPLC+yZl+N4E0edGEO4MF66fcJ 6MdRANDN2CS9/3TNLuUk4VdWJfXyMaiD88nWuNHGfoLpJeoTnA1qaj4atadpVzRFwqy+ 57fg== 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 nc28si11400340ejc.499.2021.10.06.15.26.21; Wed, 06 Oct 2021 15:26:45 -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 S229926AbhJFVwH (ORCPT + 99 others); Wed, 6 Oct 2021 17:52:07 -0400 Received: from mga04.intel.com ([192.55.52.120]:28154 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhJFVwD (ORCPT ); Wed, 6 Oct 2021 17:52:03 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10129"; a="224881239" X-IronPort-AV: E=Sophos;i="5.85,352,1624345200"; d="scan'208";a="224881239" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2021 14:50:10 -0700 X-IronPort-AV: E=Sophos;i="5.85,352,1624345200"; d="scan'208";a="545448932" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2021 14:50:08 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id D382520375; Thu, 7 Oct 2021 00:50:05 +0300 (EEST) Date: Thu, 7 Oct 2021 00:50:05 +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 v3 3/8] media: ipu3-imgu: Set valid initial format Message-ID: References: <20211001112522.2839602-1-ribalda@chromium.org> <20211001112522.2839602-4-ribalda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211001112522.2839602-4-ribalda@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, On Fri, Oct 01, 2021 at 11:25:17AM +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 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c > index 38a2407645096..1813bb29e362b 100644 > --- a/drivers/staging/media/ipu3/ipu3-v4l2.c > +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c > @@ -1136,7 +1136,9 @@ 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 = > + imgu_bytesperline(def_pix_fmt.width, > + IMGU_ABI_FRAME_FORMAT_RAW_PACKED); I thought this was for the CIO2 driver when reviewing it, because of the subject at the time. ;-) The 2nd patch is very nice, thanks! -- Sakari Ailus