Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp659123rwe; Thu, 25 Aug 2022 07:08:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR4y7gjngZKg4YyDZKm0d5zMYHimnxTM5377L+YuKC3HNEX0xI9R85Am8bTSeRRgOBrANHnp X-Received: by 2002:a17:90b:4a0e:b0:1fb:5583:57a5 with SMTP id kk14-20020a17090b4a0e00b001fb558357a5mr4935191pjb.124.1661436498616; Thu, 25 Aug 2022 07:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661436498; cv=none; d=google.com; s=arc-20160816; b=LNaScWND4d6r9cKpOo1cbvs+04Ui5l3jIQsfEgF1yKQPHCf0EJkVbFvpRFzqZ2F46D s83PkQQCkCc+WLW/XTulNAexeiNQkALXOfF8p1eKoHn8tuH6G0/1nEuc5vx/MLSPnbLG 8aMH7ttluBm+6+7uvMfgVOSRTA7GfUo9MpD0VwzGxU29D37RHxbxiXy7l4hKKSVNuXk+ qhJDxtsiSYcqcglrt/XNKstlT1Yc9Dzw2ffDalY71XDu7MR/CC1zrfp9nMxWRNoMpizl X6Uteg9VCp2WRATc0dxosHjUutHr5Htpls2evk+AscyR1Vr4gFL8mSXLJFgLohNudt8Z J1Dg== 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=Q6+Z5869mYfDO0xOkcy7TpnryR1DfMJ7+Dw4BrBBmVs=; b=z7KVwXpDB3CVNzLRKr3IhGKedfbEid72HLpMqKSY15jGQo0NR6Vz0hRWR3ZYTritFV nXEII0FCFaMBlFn7O+8Wb3p5Vm+jKAqeNyshXFiaB0cmCnQmaoUxmkXzxCLygzu6Z9oo J7MlbpkbKN2q0NMnX0dZvau2w+8fhO01+FTKvFvsbrIRT9Zv5tzAL3aFRGkCtlHvxzXa eowhuwYrbnWXRyNVhY5F9mWxXL7+2bk98pyC7nQZs0bSaGx0T0Rnt27f0g5TMZ0fSxr1 xJZGxouqtueWYuhjK65bmgq4gAExuVrsCnFtBCt3ljklLOuWR7cLRUeMv4JZMonIlZhT 2n7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg8-20020a056a02010800b0042b4df57f7bsi1938082pgb.225.2022.08.25.07.08.06; Thu, 25 Aug 2022 07:08:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242810AbiHYNzj (ORCPT + 99 others); Thu, 25 Aug 2022 09:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240886AbiHYNzW (ORCPT ); Thu, 25 Aug 2022 09:55:22 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7690C4A10C; Thu, 25 Aug 2022 06:55:19 -0700 (PDT) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id 6F2E7E0007; Thu, 25 Aug 2022 13:55:15 +0000 (UTC) Date: Thu, 25 Aug 2022 15:55:13 +0200 From: Jacopo Mondi To: Naresh Kamboju Cc: Sakari Ailus , Niklas =?utf-8?Q?S=C3=B6derlund?= , Jacopo Mondi , Laurent Pinchart , Tomi Valkeinen , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Linux Media Mailing List , open list , Nicolas Dechesne Subject: Re: WARNING: CPU: 3 PID: 301 at include/media/media-entity.h:465 media_graph_walk_start+0xcc/0xd4 Message-ID: <20220825135513.7tvzau7xykxtpogs@uno.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Hello Naresh On Thu, Aug 25, 2022 at 05:52:06PM +0530, Naresh Kamboju wrote: > Following kernel crash noticed on db410c while booting mainline 6.0.0-rc2. > This crash is not always reproducible. > > Reported-by: Linux Kernel Functional Testing > > metadata: > git_ref: master > git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline > git_sha: c40e8341e3b3bb27e3a65b06b5b454626234c4f0 > git_describe: v6.0-rc2-54-gc40e8341e3b3 > kernel_version: 6.0.0-rc2 > kernel-config: https://builds.tuxbuild.com/2Dmj8axHFHLJ7YdTYjhOEGppduR/config > build-url: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline/-/pipelines/621141375 > artifact-location: https://builds.tuxbuild.com/2Dmj8axHFHLJ7YdTYjhOEGppduR > toolchain: gcc-11 > > Crash log: > ---------- > [ 7.203248] qcom-camss 1b0ac00.camss: Adding to iommu group 1 > [ 7.213651] qcom-camss 1b0ac00.camss: Failed to configure power domains: -17 Not knowing much about camss and by just a quick look at the driver, should: ret = camss_configure_pd(camss); if (ret < 0) { dev_err(dev, "Failed to configure power domains: %d\n", ret); return ret; } Be changed to jump to an error label and unregister the media entities in case of failure in probing the power domains ? > [ 7.213786] qcom-camss: probe of 1b0ac00.camss failed with error -17 > [ 7.418502] ------------[ cut here ]------------ > [ 7.418556] WARNING: CPU: 3 PID: 301 at > include/media/media-entity.h:465 media_graph_walk_start+0xcc/0xd4 > [ 7.422214] Modules linked in: pm8916_wdt(+) msm(+) crct10dif_ce > qcom_camss adv7511 qcom_wcnss_pil(+) qcom_q6v5_mss(+) venus_core(+) > cec snd_soc_lpass_apq8016 qcom_pil_info gpu_sched snd_soc_lpass_cpu > qcom_q6v5 videobuf2_dma_sg drm_dp_aux_bus display_connector > snd_soc_lpass_platform snd_soc_apq8016_sbc qcom_sysmon > snd_soc_qcom_common drm_display_helper v4l2_fwnode > snd_soc_msm8916_digital qcom_common snd_soc_msm8916_analog > qcom_glink_smem v4l2_mem2mem v4l2_async drm_kms_helper qnoc_msm8916 > qcom_spmi_temp_alarm videobuf2_memops rtc_pm8xxx qcom_spmi_vadc > videobuf2_v4l2 qmi_helpers qcom_pon qcom_vadc_common videobuf2_common > i2c_qcom_cci icc_smd_rpm mdt_loader qcom_rng qcom_stats drm socinfo > rmtfs_mem fuse > [ 7.422761] Unable to handle kernel NULL pointer dereference at > virtual address 0000000000000000 > [ 7.438434] adreno 1c00000.gpu: Adding to iommu group 2 > [ 7.450496] platform 1a98000.dsi: Fixing up cyclic dependency with 3-0039 > [ 7.450670] platform 1a98000.dsi: Fixing up cyclic dependency with > 1a01000.mdp > [ 7.471401] CPU: 3 PID: 301 Comm: v4l_id Not tainted 6.0.0-rc2 #1 > [ 7.471415] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT) > [ 7.471421] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 7.471433] pc : media_graph_walk_start+0xcc/0xd4 > [ 7.471450] lr : media_graph_walk_start+0x40/0xd4 > [ 7.471462] sp : ffff80000bceb9d0 > [ 7.471466] x29: ffff80000bceb9d0 > [ 7.482012] ------------[ cut here ]------------ > [ 7.482023] WARNING: CPU: 2 PID: 299 at > include/media/media-entity.h:465 media_graph_walk_start+0xcc/0xd4 > [ 7.482049] Modules linked in: pm8916_wdt(+) msm crct10dif_ce > qcom_camss adv7511 qcom_wcnss_pil(+) qcom_q6v5_mss(+) venus_core(+) > cec snd_soc_lpass_apq8016 qcom_pil_info gpu_sched snd_soc_lpass_cpu > qcom_q6v5 videobuf2_dma_sg drm_dp_aux_bus display_connector > snd_soc_lpass_platform snd_soc_apq8016_sbc qcom_sysmon > snd_soc_qcom_common drm_display_helper v4l2_fwnode > snd_soc_msm8916_digital qcom_common snd_soc_msm8916_analog > qcom_glink_smem v4l2_mem2mem v4l2_async drm_kms_helper qnoc_msm8916 > qcom_spmi_temp_alarm videobuf2_memops rtc_pm8xxx qcom_spmi_vadc > videobuf2_v4l2 qmi_helpers qcom_pon qcom_vadc_common videobuf2_common > i2c_qcom_cci icc_smd_rpm mdt_loader qcom_rng qcom_stats drm socinfo > rmtfs_mem fuse > [ 7.482250] CPU: 2 PID: 299 Comm: v4l_id Not tainted 6.0.0-rc2 #1 > [ 7.482262] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT) > [ 7.482268] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 7.482279] pc : media_graph_walk_start+0xcc/0xd4 > [ 7.482292] lr : media_graph_walk_start+0x40/0xd4 > [ 7.482303] sp : ffff80000bc1b9d0 > [ 7.482308] x29: ffff80000bc1b9d0 x28: ffff80000bc1bc70 x27: 0000000000000000 > [ 7.482325] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000 > [ 7.482342] x23: ffff00000584d368 x22: 0000000000000001 x21: ffff000005303960 > [ 7.482360] x20: ffff00000584d368 x19: ffff000005303a98 x18: 0000000000000000 > [ 7.482377] x17: 0000000000000000 x16: ffff800008fc3190 x15: 0000000000000000 > [ 7.482394] x14: ffffffffffffffff x13: ffff00000456d025 x12: ffff80000bc1bcb4 > [ 7.482411] x11: 00000006955fc5f6 x10: 0000000000000002 x9 : ffff800008fc302c > [ 7.482428] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000001 > [ 7.482444] x5 : ffff80000aa8f000 x4 : 0000000000000000 x3 : ffff000005303a78 > [ 7.482460] x2 : 0000000000000000 x1 : 000000000000000a x0 : 0000000000000000 > [ 7.482477] Call trace: > [ 7.482481] media_graph_walk_start+0xcc/0xd4 > [ 7.482494] pipeline_pm_power.part.0+0x38/0xfc > [ 7.482505] v4l2_pipeline_pm_use+0x5c/0xa0 > [ 7.482514] v4l2_pipeline_pm_get+0x20/0x30 > [ 7.482523] video_open+0x80/0xe4 [qcom_camss] > [ 7.482583] v4l2_open+0xb4/0x130 > [ 7.482593] chrdev_open+0xcc/0x23c > [ 7.482603] do_dentry_open+0x134/0x3ec > [ 7.482614] vfs_open+0x38/0x44 > [ 7.482625] path_openat+0x8c0/0xe64 > [ 7.482638] do_filp_open+0x8c/0x13c > [ 7.482651] do_sys_openat2+0xbc/0x174 > [ 7.482661] __arm64_sys_openat+0x6c/0xbc > [ 7.482672] invoke_syscall+0x50/0x120 > [ 7.482687] el0_svc_common.constprop.0+0x68/0x124 > [ 7.482700] do_el0_svc+0x3c/0xd0 > [ 7.482712] el0_svc+0x30/0x94 > [ 7.482723] el0t_64_sync_handler+0xc0/0x13c > [ 7.482734] el0t_64_sync+0x18c/0x190 > [ 7.482744] ---[ end trace 0000000000000000 ]--- > > ref: > https://lkft.validation.linaro.org/scheduler/job/5434242#L2360 > > Test details log: > https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.0-rc2-54-gc40e8341e3b3/testrun/11545376/suite/log-parser-test/tests/ > > -- > Linaro LKFT > https://lkft.linaro.org