Message ID | 20240213095555.454392-1-arnd@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Hans Verkuil |
Headers |
Received: from sv.mirrors.kernel.org ([139.178.88.99]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux-media+bounces-5059-patchwork=linuxtv.org@vger.kernel.org>) id 1rZpXI-0004DW-1p for patchwork@linuxtv.org; Tue, 13 Feb 2024 09:57:09 +0000 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8137228C7FB for <patchwork@linuxtv.org>; Tue, 13 Feb 2024 09:57:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7CB8225AF; Tue, 13 Feb 2024 09:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KuUCDrw5" X-Original-To: linux-media@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EB8D224D2; Tue, 13 Feb 2024 09:55:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818161; cv=none; b=qh4nAlF+iqNqz5ezn7uD8cbt0L1iFf4li0kL0ZHJ4B5xveQZ7VNlj+OE5bQMQWN8vD9tOieFhofHqGbWH7mecumok6lRcU2k0otJnslYKXs4ta4NQz8L9NnqXyePVziYB1vbbyNcmwpmjwksGNwqliU8H+lMgspso0NA+x9/Nbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818161; c=relaxed/simple; bh=L//fSfhtwMkztN2frNmXVbSJ3+AwEgWGJ086titugr8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eQBWR0SVmUQdBc2WLUUTSsFN06tEdpBa+SzJgvaN2k3iwlzqB9qHl1gFPU2N7Oieo8CcZRnJj3C3T57IWWnUFhy1afwzrYbyDGY9SNjFaYbMaLMsDbKvxtUgmFtITy6SuHFucHZ8TH3UnNYj7tz47e2F8PtngUxRkQMe12HY8hw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KuUCDrw5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4699CC433C7; Tue, 13 Feb 2024 09:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707818159; bh=L//fSfhtwMkztN2frNmXVbSJ3+AwEgWGJ086titugr8=; h=From:To:Cc:Subject:Date:From; b=KuUCDrw5mlnhuvQruHhj6QQxVHa4rVUJpR7fAdfQsmYgn9aXJJLIHrgbjUUvritVt U7oWQz6PaEI4hvs8okzxdevmIvlbggQQVzNveYVpO4beI7IK4kEwPHjf/E1+rV/4lJ dhfWC4qp8qPxUv91mmr2AYCEycIp/q181RuDOOwFe0SRMeCoNLUCa7i156DS1/yb24 LlqUccoIDuz5EohPwdqRSVsedl5QULdJtd8dRTzBOsbqXI/bDZ4y33LLxDvMJi/orD gdpRfA449uZv0fiuuwa42QUSNzd58INuPAmY2nA/syLxZEOWza1mjaWDCjkWS/OOSi lmaDyzlGKxSTg== From: Arnd Bergmann <arnd@kernel.org> To: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, Sakari Ailus <sakari.ailus@linux.intel.com>, Hans Verkuil <hverkuil-cisco@xs4all.nl>, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: v4l: marvell: select CONFIG_V4L2_ASYNC where needed Date: Tue, 13 Feb 2024 10:55:51 +0100 Message-Id: <20240213095555.454392-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-LSpam-Score: -4.5 (----) X-LSpam-Report: No, score=-4.5 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,DKIMWL_WL_HIGH=-1,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_PASS=-0.001,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no |
Series |
media: v4l: marvell: select CONFIG_V4L2_ASYNC where needed
|
|
Commit Message
Arnd Bergmann
Feb. 13, 2024, 9:55 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> Drivers that call v4l2_async_nf_init() need to select the corresponding Kconfig symbol: ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/marvell/cafe_ccic.ko] undefined! ERROR: modpost: "__v4l2_async_nf_add_i2c" [drivers/media/platform/marvell/cafe_ccic.ko] undefined! ERROR: modpost: "v4l2_async_nf_unregister" [drivers/media/platform/marvell/mcam-core.ko] undefined! ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/marvell/mmp_camera.ko] undefined! ERROR: modpost: "__v4l2_async_nf_add_fwnode_remote" [drivers/media/platform/marvell/mmp_camera.ko] undefined! I checked all v4l2 drivers to see if anything else has the same bug, but these two appear to be the only ones. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/media/platform/marvell/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
Comments
Arnd, Sakari, Is this something that needs to go to v6.8? Or just v6.9? Do we need a Fixes tag? Regards, Hans On 13/02/2024 10:55, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > Drivers that call v4l2_async_nf_init() need to select the corresponding > Kconfig symbol: > > ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/marvell/cafe_ccic.ko] undefined! > ERROR: modpost: "__v4l2_async_nf_add_i2c" [drivers/media/platform/marvell/cafe_ccic.ko] undefined! > ERROR: modpost: "v4l2_async_nf_unregister" [drivers/media/platform/marvell/mcam-core.ko] undefined! > ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/marvell/mmp_camera.ko] undefined! > ERROR: modpost: "__v4l2_async_nf_add_fwnode_remote" [drivers/media/platform/marvell/mmp_camera.ko] undefined! > > I checked all v4l2 drivers to see if anything else has the same > bug, but these two appear to be the only ones. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/media/platform/marvell/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/media/platform/marvell/Kconfig b/drivers/media/platform/marvell/Kconfig > index d6499ffe30e8..d31f4730f2a3 100644 > --- a/drivers/media/platform/marvell/Kconfig > +++ b/drivers/media/platform/marvell/Kconfig > @@ -7,6 +7,7 @@ config VIDEO_CAFE_CCIC > depends on V4L_PLATFORM_DRIVERS > depends on PCI && I2C && VIDEO_DEV > depends on COMMON_CLK > + select V4L2_ASYNC > select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR > select VIDEOBUF2_VMALLOC > select VIDEOBUF2_DMA_CONTIG > @@ -24,6 +25,7 @@ config VIDEO_MMP_CAMERA > depends on COMMON_CLK > select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR > select I2C_GPIO > + select V4L2_ASYNC > select VIDEOBUF2_VMALLOC > select VIDEOBUF2_DMA_CONTIG > select VIDEOBUF2_DMA_SG
On Wed, Feb 14, 2024, at 11:24, Hans Verkuil wrote: > Arnd, Sakari, > > Is this something that needs to go to v6.8? Or just v6.9? > > Do we need a Fixes tag? > I'm not sure, I tried to find out what commit caused it but could not figure it out short of doing a bisection. I noticed the problem for the first time on linux-next this week, but it is likely to have been hiding for a long time. If anyone wants to bisect it, I've uploaded my .config to [1], otherwise I'd suggest fixing it for v6.8 without a backport or further analysis. Arnd [1] https://pastebin.com/fcSLRBL8
Hi Hans, Arnd, On Wed, Feb 14, 2024 at 11:24:41AM +0100, Hans Verkuil wrote: > Arnd, Sakari, > > Is this something that needs to go to v6.8? Or just v6.9? > > Do we need a Fixes tag? The patch seems to be related to this: <URL:https://lore.kernel.org/oe-kbuild-all/202402130955.f6uxzdCA-lkp@intel.com/>. So most likely yes, and Cc: stable, too. > > Regards, > > Hans > > On 13/02/2024 10:55, Arnd Bergmann wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > > > Drivers that call v4l2_async_nf_init() need to select the corresponding > > Kconfig symbol: > > > > ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/marvell/cafe_ccic.ko] undefined! > > ERROR: modpost: "__v4l2_async_nf_add_i2c" [drivers/media/platform/marvell/cafe_ccic.ko] undefined! > > ERROR: modpost: "v4l2_async_nf_unregister" [drivers/media/platform/marvell/mcam-core.ko] undefined! > > ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/marvell/mmp_camera.ko] undefined! > > ERROR: modpost: "__v4l2_async_nf_add_fwnode_remote" [drivers/media/platform/marvell/mmp_camera.ko] undefined! > > > > I checked all v4l2 drivers to see if anything else has the same > > bug, but these two appear to be the only ones. > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > drivers/media/platform/marvell/Kconfig | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/media/platform/marvell/Kconfig b/drivers/media/platform/marvell/Kconfig > > index d6499ffe30e8..d31f4730f2a3 100644 > > --- a/drivers/media/platform/marvell/Kconfig > > +++ b/drivers/media/platform/marvell/Kconfig > > @@ -7,6 +7,7 @@ config VIDEO_CAFE_CCIC > > depends on V4L_PLATFORM_DRIVERS > > depends on PCI && I2C && VIDEO_DEV > > depends on COMMON_CLK > > + select V4L2_ASYNC > > select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR > > select VIDEOBUF2_VMALLOC > > select VIDEOBUF2_DMA_CONTIG > > @@ -24,6 +25,7 @@ config VIDEO_MMP_CAMERA > > depends on COMMON_CLK > > select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR > > select I2C_GPIO > > + select V4L2_ASYNC > > select VIDEOBUF2_VMALLOC > > select VIDEOBUF2_DMA_CONTIG > > select VIDEOBUF2_DMA_SG >
On Wed, Feb 14, 2024, at 11:33, Sakari Ailus wrote: > Hi Hans, Arnd, > > On Wed, Feb 14, 2024 at 11:24:41AM +0100, Hans Verkuil wrote: >> Arnd, Sakari, >> >> Is this something that needs to go to v6.8? Or just v6.9? >> >> Do we need a Fixes tag? > > The patch seems to be related to this: > <URL:https://lore.kernel.org/oe-kbuild-all/202402130955.f6uxzdCA-lkp@intel.com/>. > > So most likely yes, and Cc: stable, too. Ah, so lkp bisected it to that commit, which means it was already broken in 6.5, but I'm fairly sure the bug is even older then, as your commit seems to have only uncovered an existing problem. It was definitely working before ff3cc65cadb5 ("media: v4l: async, fwnode: Improve module organisation") in linux-5.13, but it's not clear if that is the culprit. It's probably safe to backport to v5.15 and higher. Arnd
On 14/02/2024 11:48, Arnd Bergmann wrote: > On Wed, Feb 14, 2024, at 11:33, Sakari Ailus wrote: >> Hi Hans, Arnd, >> >> On Wed, Feb 14, 2024 at 11:24:41AM +0100, Hans Verkuil wrote: >>> Arnd, Sakari, >>> >>> Is this something that needs to go to v6.8? Or just v6.9? >>> >>> Do we need a Fixes tag? >> >> The patch seems to be related to this: >> <URL:https://lore.kernel.org/oe-kbuild-all/202402130955.f6uxzdCA-lkp@intel.com/>. >> >> So most likely yes, and Cc: stable, too. > > Ah, so lkp bisected it to that commit, which means it was > already broken in 6.5, but I'm fairly sure the bug is even > older then, as your commit seems to have only uncovered > an existing problem. > > It was definitely working before ff3cc65cadb5 ("media: v4l: async, > fwnode: Improve module organisation") in linux-5.13, but it's not > clear if that is the culprit. It's probably safe to backport > to v5.15 and higher. > > Arnd If it has been broken for so long, then should we bother with v6.8? I'm not saying we should, I just like to get your opinion on this. Regards, Hans
On Wed, Feb 14, 2024, at 11:54, Hans Verkuil wrote: > On 14/02/2024 11:48, Arnd Bergmann wrote: > >> It was definitely working before ff3cc65cadb5 ("media: v4l: async, >> fwnode: Improve module organisation") in linux-5.13, but it's not >> clear if that is the culprit. It's probably safe to backport >> to v5.15 and higher. > > > If it has been broken for so long, then should we bother with v6.8? > > I'm not saying we should, I just like to get your opinion on this. I don't have a strong opinion either way, there is very little risk and very little benefit in backporting. If we apply it to 6.8 at all, I think it should also be in v5.15+ LTS and vice versa, but only queuing it for 6.9 is fine with me, too. Arnd
On 14/02/2024 11:58, Arnd Bergmann wrote: > On Wed, Feb 14, 2024, at 11:54, Hans Verkuil wrote: >> On 14/02/2024 11:48, Arnd Bergmann wrote: >> >>> It was definitely working before ff3cc65cadb5 ("media: v4l: async, >>> fwnode: Improve module organisation") in linux-5.13, but it's not >>> clear if that is the culprit. It's probably safe to backport >>> to v5.15 and higher. >> >> >> If it has been broken for so long, then should we bother with v6.8? >> >> I'm not saying we should, I just like to get your opinion on this. > > I don't have a strong opinion either way, there is very little > risk and very little benefit in backporting. > > If we apply it to 6.8 at all, I think it should also be in > v5.15+ LTS and vice versa, but only queuing it for 6.9 is > fine with me, too. OK, I'll just take this patch as-is for v6.9. I'm preparing a PR anyway, so I'll include this patch. Thank you for the quick replies! Hans > > Arnd
On Wed, Feb 14, 2024 at 01:42:55PM +0100, Hans Verkuil wrote: > On 14/02/2024 11:58, Arnd Bergmann wrote: > > On Wed, Feb 14, 2024, at 11:54, Hans Verkuil wrote: > >> On 14/02/2024 11:48, Arnd Bergmann wrote: > >> > >>> It was definitely working before ff3cc65cadb5 ("media: v4l: async, > >>> fwnode: Improve module organisation") in linux-5.13, but it's not > >>> clear if that is the culprit. It's probably safe to backport > >>> to v5.15 and higher. > >> > >> > >> If it has been broken for so long, then should we bother with v6.8? > >> > >> I'm not saying we should, I just like to get your opinion on this. > > > > I don't have a strong opinion either way, there is very little > > risk and very little benefit in backporting. > > > > If we apply it to 6.8 at all, I think it should also be in > > v5.15+ LTS and vice versa, but only queuing it for 6.9 is > > fine with me, too. > > OK, I'll just take this patch as-is for v6.9. I'm preparing a PR > anyway, so I'll include this patch. > > Thank you for the quick replies! Feel free to add: Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
diff --git a/drivers/media/platform/marvell/Kconfig b/drivers/media/platform/marvell/Kconfig index d6499ffe30e8..d31f4730f2a3 100644 --- a/drivers/media/platform/marvell/Kconfig +++ b/drivers/media/platform/marvell/Kconfig @@ -7,6 +7,7 @@ config VIDEO_CAFE_CCIC depends on V4L_PLATFORM_DRIVERS depends on PCI && I2C && VIDEO_DEV depends on COMMON_CLK + select V4L2_ASYNC select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR select VIDEOBUF2_VMALLOC select VIDEOBUF2_DMA_CONTIG @@ -24,6 +25,7 @@ config VIDEO_MMP_CAMERA depends on COMMON_CLK select VIDEO_OV7670 if MEDIA_SUBDRV_AUTOSELECT && VIDEO_CAMERA_SENSOR select I2C_GPIO + select V4L2_ASYNC select VIDEOBUF2_VMALLOC select VIDEOBUF2_DMA_CONTIG select VIDEOBUF2_DMA_SG