Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8155159rdb; Thu, 4 Jan 2024 23:34:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3NCKeaY1MTYHWojye58BtU57piNXSoQuD8EcvCjGU23d6fv8Qw1K1pdLhSqu6CKtca+i4 X-Received: by 2002:a05:620a:e06:b0:781:80dc:a0c1 with SMTP id y6-20020a05620a0e0600b0078180dca0c1mr1998789qkm.44.1704440077096; Thu, 04 Jan 2024 23:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704440077; cv=none; d=google.com; s=arc-20160816; b=WsfATRaXR30ulHpUOv36VXYx9Znxek5qU7Jb/ARBdmi4s4Z90fI0Zk/cKG61PCKHXl 55Zl+6lwaeRxCdWZnY02Gbb8NWPhJPjfmpuX703ioPmlmXrCUvQPl0ZNjFDnSDBvPOGY EcAbROGhO5sqhB01xgyVmN3+vB0vZHMibo0Z6EYskrXj0fw5joG0vj+FkY34WlPfNIs2 dQvt+IemdrDIZ1wTAhXEVkbsYSXFm5LJpa2+YAlrVbaJh9/Yh8YXzm/PLjdRR+h0COXc vkNGJzYw81kH/Zb5Jq4PsedXZH4C3ouHfKBQwu7rCeZpH/CdHfjIkTc1+8EymNqD7LpG Nduw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=00sRjN2CupqB8Q7ctHplMwOy5YYcg3KEnI/LfxuJ5+A=; fh=iB/7YHvZdZKYyhnXaFA6oGenIiW0shIb652uoxdcJ3s=; b=W0vgrQXfNdKmUtn8y9VkQWUN4TUUt0jd+1xq9htwwKCy2QwB+5jvcDruZCvKijtKCh GNv05iUGdVRybQPYQFMzTJ0v0cKOcvy1bEHfdEY7rfZLNMhfM9BLJPcZUf3TrFmEnfmE 7TakvSC/KBtBtJnowSiNosneob3unKIZnke8jy+Cm5cR/5EpnxhxZfoCUktaPPZVXYTH CPxauig7NB+Q1Tp2899NIkCD/nSFqhWeeVSHuaMlVK6azCS1s8f8U2WF3i8dw+6az49j bG+at3mT37Fo9uPgyXadzM5XqQpwIsmnPDhJtUMopXMZwNNURWzJwY4rEp8lxPvphYqv wxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UaunnmzZ; spf=pass (google.com: domain of linux-kernel+bounces-17549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c20-20020a37e114000000b00781b2c5771esi1150498qkm.606.2024.01.04.23.34.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 23:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UaunnmzZ; spf=pass (google.com: domain of linux-kernel+bounces-17549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D3B761C229B8 for ; Fri, 5 Jan 2024 07:34:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEDE51F610; Fri, 5 Jan 2024 07:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UaunnmzZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D65D20B16 for ; Fri, 5 Jan 2024 07:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-50e7b273352so1324587e87.1 for ; Thu, 04 Jan 2024 23:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704440064; x=1705044864; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=00sRjN2CupqB8Q7ctHplMwOy5YYcg3KEnI/LfxuJ5+A=; b=UaunnmzZYwsYEGier6OoSK9iTyNmgQmtsB+gFIfpN8JDJ9shXt/4YgR9xVZcXYGRmE MXLTYUZc3a6pW1C3qajM4cIb5L0FGhs6Q47FTU6heSGQ2lQvL3KaBvCT0prJNAC8kBaK oFnJ1rSWEUdNUa7yL86FjroMnJywOIgEf/3MSBShc7JT4aHu9ElXQEpBFD1RriZ7eHJa hGyvLKcg3u90Tz6uDw22SyyonAk7jpjFCnSvt3jTJRX+AFE4a/5bkvDluCocYfFzgYsh H/QcfI7kWy6kO5+6WQdYHkZiRDLferAujeaaHACRCQBUQZdiMxquWdo3t+/0y41mBnAr ATng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704440064; x=1705044864; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=00sRjN2CupqB8Q7ctHplMwOy5YYcg3KEnI/LfxuJ5+A=; b=GYJfbs8AXpGwmz/voK0enVZhSGWesTwh7Gq8uL7IOW3s6zWXjnm1uIEm0cR4HFq6J2 boAdP20XkgJ/M3Um4uC6zw693xgQ/xqIvWvw9HPTXiSYzoDKfZB4YGiVgyRpcGlOx/+i 9zLe37jdF9JgPtV0AGeS1TUbLDgeZqJTPur0GVy9rH+AaUqCj+O+YaXG0rj5OiKUN5jJ 6467daw6VKP7T3wiYpNFD1Xi5CjiTQQH5YoWd0Ptn4Mdaj0V+0xWLE2F5BR/6q6xTp7H cnIlKLetn35LWQSfp3FgeXQOumND0VsmpZMLyE9VijH8j28h4j700yOXggvPLA8j4vue ByOg== X-Gm-Message-State: AOJu0YzoNrXko60wc3UY4+YxAED34rt1GBHp9LOUrxqQVAugY9k8+l3O pGr9tPVYsj2gznRSCsEIQD1Lu/ZgcpI8Sw== X-Received: by 2002:ac2:5e29:0:b0:50e:7ded:5a2b with SMTP id o9-20020ac25e29000000b0050e7ded5a2bmr672265lfg.43.1704440064409; Thu, 04 Jan 2024 23:34:24 -0800 (PST) Received: from localhost ([102.140.209.237]) by smtp.gmail.com with ESMTPSA id oq3-20020a170906cc8300b00a293c6cc184sm399089ejb.24.2024.01.04.23.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 23:34:24 -0800 (PST) Date: Fri, 5 Jan 2024 10:34:20 +0300 From: Dan Carpenter To: Hidenori Kobayashi Cc: Sakari Ailus , Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: staging: ipu3-imgu: Set fields before media_entity_pads_init() Message-ID: References: <20231228093926.748001-1-hidenorik@chromium.org> <27f1c487-78cc-4e56-ba79-1434aba131fd@moroto.mountain> <20240105021856.wpzmwtyzxzqfznrp@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240105021856.wpzmwtyzxzqfznrp@google.com> On Fri, Jan 05, 2024 at 11:19:23AM +0900, Hidenori Kobayashi wrote: > On Thu, Jan 04, 2024 at 01:04:27PM +0300, Dan Carpenter wrote: > > On Thu, Dec 28, 2023 at 06:39:25PM +0900, Hidenori Kobayashi wrote: > > > The pad's flags is checked in media_entity_pads_init(), so it has to be > > > initialized beforehand. The ops initialization is also moved together > > > for readability. > > > > > > > How does this bug look like to a user? What is the Fixes tag? Does > > this need to be backported to stable? > > I suppose I should have included those in the commit message. > > 1) To a user, the imgu driver fails to probe with the following message: > > [ 14.596315] ipu3-imgu 0000:00:05.0: failed initialize subdev media entity (-22) > [ 14.596322] ipu3-imgu 0000:00:05.0: failed to register subdev0 ret (-22) > [ 14.596327] ipu3-imgu 0000:00:05.0: failed to register pipes (-22) > [ 14.596331] ipu3-imgu 0000:00:05.0: failed to create V4L2 devices (-22) > Yeah. This is super useful information. > 2) Re Fixes tag, I see that the first commit of imgu driver already > initializes the flags after media_entity_pads_init(). The documentation > of this API ( "Drivers must set the direction of every pad ... before > calling media_entity_pads_init") predates the first commit. So, I guess > > Fixes: a0ca1627b450 ("media: staging/intel-ipu3: Add v4l2 driver based on media framework") > > 3) Re stable, I was not sure. The probe failure only appears after a > check was added by Commit deb866f9e3a45ae058b21765feeffae6aea6a193. That > check is not in linux-6.6.y branch. So I was not sure if this counts as > "a real bug that bothers people" mentioned in the document. Hm... I don't know either. Wait for a day and see if anyone else has an opinion then listen to your gut and resend with whatever your gut says? regards, dan carpenter