Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4487634pxj; Tue, 22 Jun 2021 01:05:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGrzkSXRsjk2ZBCUkQgx9jA+lWUkIevL14e2d1EQSKwH1gFD7LHxEvQ+DDjZAm9GY9YHdP X-Received: by 2002:a6b:7901:: with SMTP id i1mr1846854iop.41.1624349135509; Tue, 22 Jun 2021 01:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624349135; cv=none; d=google.com; s=arc-20160816; b=Uhreot0dzCUdJXUkgQjLS2vIWTUYfJ12C90HXLNJvPgpVF/mhYdKRnx6AXugle00rw HTGs+v2+t1x3lwd4cISdOFgklgCI/VAl4j6hhe82nu+h0NDWSgu4enqoELy/MITk73rV CB3gZDCZbIyBS6eu4TYk4hqMPDFUzWlo5dCZ8j2Yti/trqnNhTCVixUsBg/wbnqpUyXc wbPaUJj8Dg/SypYhqUWJsPkf+r/EOGpM1LsDArKpna8KlrNjPCAWX9AhLFu76SxJl340 AIJs9fvSWKaIfCWIINye0jHUVM97CtoTZmQXHIPjEPa41ZlOhaVJxaFmEpy4oFN7qE0i 0+Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=wRiv4b5WCsNmBOe8z/0E9iqnsbLYuXJBYt7Qh5py9mM=; b=Uc7ltUG/lB+LdBJr9UIsb88sLBMCuNFvjvFw1wSw1QtCpvVTdRcR8SqO41P4Oej+DS l9x6yP/lNdQKbpxNx9AQ6kjn0K45jXUVdYI6R45d8iZK/QCD8nTajg0CT9JUXIwCw20c HE17T5CahRjK7fZKFVcLbr79rqyusTt83mgiEguQGhD1gToOYLYX9kplvJZCjRZkR5z2 VWLAZEkXGSp/Pn5PXSWpZNZAZ6RKNpkqAmXIErOvHfXfFVyUK3Nxuq8MaOPAWUGa6NF0 MezqeVW6oBlSM5iZvHw8PApPfY5hg5yfOXnQ1uniELhvPpRBalFe9OxphafUNTPIOXnC AFFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HLm23EB6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si16363234ilu.60.2021.06.22.01.05.23; Tue, 22 Jun 2021 01:05:35 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HLm23EB6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbhFVIG4 (ORCPT + 99 others); Tue, 22 Jun 2021 04:06:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbhFVIGy (ORCPT ); Tue, 22 Jun 2021 04:06:54 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1565DC061574 for ; Tue, 22 Jun 2021 01:04:38 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id df12so19931707edb.2 for ; Tue, 22 Jun 2021 01:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=wRiv4b5WCsNmBOe8z/0E9iqnsbLYuXJBYt7Qh5py9mM=; b=HLm23EB6zBptzHrcAEoEks0I4zvtC/VAJT6ENIws+DrAvg4yGraj4Om3t+uddwhoLw 4DIrfJzE2PQlgYP+PaNRwQzDtOX6QPrPHjkmTnncleg/vaWGzHEzlGxPs/nVVv/ky3zH +T96BBVKtLqPBH9h5K1QNKD2QkD/6Ubm0Oo8zyDVqdKNlR6+hbsMQK1zmCZq3iVrhpTD 7aiztrNLL/gcW1gg6HG6KdyNO41EN9afxz8rKW07wrJmABnLg8XeLue6XsfPCVTSQaiq lIwOjtz3ZGjaVdHdw0pmOX42bhCpP4+tfZmzYDM5391aF6wCBuYWTV0uK09Zj5fgj+Cw 7EeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=wRiv4b5WCsNmBOe8z/0E9iqnsbLYuXJBYt7Qh5py9mM=; b=qwXPVS9NP8v1qE6afjG06JmmJvWaLGBvBftjRZ17lNM7QhHULxbFmZSY5Fbj8f++eZ Og9CMGeYyrF4xEoOYsM+OjqeDuUM14pgnW2UXblbqplaolQ/tFynjfe7KFCXtRuEGAGv qsrZgegxtNIIoFoOswvjF7pPMRwFelxGsuubsVk3m+4ELH8Y6z68FSO4V6fZa6ZDQnUq T7skBcjbXxOltUQlWbX0kAEwrhcwW2BlzQHp7eqn7FTYRB1MugtaWCPUw+SciGRgBJh3 hWIcVlwMpZN9jf5ZHbHdPe6qApcx0G5hPFCcMyLchMh3Hqeoz5OgaseOVCJcJPjB2Kq0 3d0w== X-Gm-Message-State: AOAM533YYnBpucneyHL8+qzqaggINqeU7wF73zWGf/qVl+wNhKcyxdUJ CUdmoeZWQ9OXYmiq7sqkBixIRWGDdt4r9Mduqu1s8Q== X-Received: by 2002:a05:6402:90a:: with SMTP id g10mr3180781edz.365.1624349076439; Tue, 22 Jun 2021 01:04:36 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 22 Jun 2021 13:34:25 +0530 Message-ID: Subject: WARNING: at block/genhd.c:491 __device_add_disk To: linux-block , open list , linux-mtd@lists.infradead.org Cc: Jens Axboe , yukuai3@huawei.com, chengzhihao1@huawei.com, alexander.sverdlin@nokia.com, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Ulf Hansson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Please ignore if is already reported] Regression found, The following kernel warnings reported on Linux next 20210621 while booting arm64 hikey and db410c and arm BeagleBoard-X15 devices. This crash is always reproducible on these devices while booting with the provided config link. Crash log: ------------- [ 0.698533] mmcblk1: mmc1:aaaa SC16G 14.8 GiB [ 0.699161] ------------[ cut here ]------------ [ 0.699167] WARNING: CPU: 6 PID: 55 at block/genhd.c:491 __device_add_disk+0x3f0/0x468 [ 0.699189] Modules linked in: [ 0.699202] CPU: 6 PID: 55 Comm: kworker/6:1 Not tainted 5.13.0-rc7-next-20210621 #1 [ 0.699211] Hardware name: HiKey Development Board (DT) [ 0.699219] Workqueue: events_freezable mmc_rescan [ 0.699236] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--) [ 0.699244] pc : __device_add_disk+0x3f0/0x468 [ 0.699252] lr : __device_add_disk+0x3b4/0x468 [ 0.699259] sp : ffff800012cfb960 [ 0.699264] x29: ffff800012cfb960 x28: ffff000001e3a000 x27: ffff000001be7008 [ 0.699280] x26: 000000000000ffff x25: ffff800011ab4980 x24: ffff8000129b2600 [ 0.699297] x23: 0000000000000001 x22: ffff000001e3a008 x21: 0000000000000000 [ 0.699312] x20: 00000000006d4c00 x19: ffff000000881400 x18: 0000000000000000 [ 0.699328] x17: 000000040044ffff x16: 00400032b5503510 x15: 0000000000000068 [ 0.699344] x14: 00000000000000c0 x13: ffff000077bd3e28 x12: ffff000077bd3e38 [ 0.699360] x11: 0000000000000000 x10: ffff000077bd3e18 x9 : ffff80001058b910 [ 0.699376] x8 : ffff000000b08280 x7 : 000004e20000007d x6 : 0000000000000001 [ 0.699392] x5 : ffff8000125af000 x4 : 0000000000000000 x3 : ffff000002078630 [ 0.699408] x2 : 0000000000000000 x1 : 00000000000000b3 x0 : 0000000000000000 [ 0.699424] Call trace: [ 0.699428] __device_add_disk+0x3f0/0x468 [ 0.699436] device_add_disk+0x1c/0x28 [ 0.699444] mmc_add_disk+0x34/0x130 [ 0.699458] mmc_blk_probe+0x22c/0x5c0 [ 0.699465] mmc_bus_probe+0x28/0x38 [ 0.699474] really_probe+0xf0/0x4d0 [ 0.699485] driver_probe_device+0x108/0x178 [ 0.699494] __device_attach_driver+0xa0/0x128 [ 0.699503] bus_for_each_drv+0x80/0xd8 [ 0.699511] __device_attach+0xfc/0x180 [ 0.699519] device_initial_probe+0x1c/0x28 [ 0.699528] bus_probe_device+0xa4/0xb0 [ 0.699535] device_add+0x3b0/0x888 [ 0.699543] mmc_add_card+0x130/0x2c8 [ 0.699552] mmc_attach_sd+0x108/0x180 [ 0.699559] mmc_rescan+0x264/0x2e8 [ 0.699567] process_one_work+0x1c8/0x488 [ 0.699577] worker_thread+0x54/0x428 [ 0.699584] kthread+0x140/0x158 [ 0.699594] ret_from_fork+0x10/0x18 [ 0.699605] ---[ end trace 8adf6c66e7d9ad4a ]--- [ 0.702534] mmcblk1: p1 [ 0.704019] mmc0: new high speed MMC card at address 0001 [ 0.705185] mmcblk0: mmc0:000# 1 008GE0 7.28 GiB [ 0.705582] mmcblk0boot0: mmc0:0001 008GE0 4.00 MiB [ 0.705968] mmcblk0boot1: mmc0:0001 008GE0 4.00 MiB [ 0.706274] mmcblk0rpmb: mmc0:0001 008GE0 4.00 MiB, chardev (511:0) [ 0.707032] ------------[ cut here ]------------ [ 0.707038] WARNING: CPU: 2 PID: 24 at block/genhd.c:491 __device_add_disk+0x3f0/0x468 [ 0.707059] Modules linked in: [ 0.707070] CPU: 2 PID: 24 Comm: kworker/2:0 Tainted: G W 5.13.0-rc7-next-20210621 #1 [ 0.707079] Hardware name: HiKey Development Board (DT) [ 0.707086] Workqueue: events_freezable mmc_rescan [ 0.707102] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--) [ 0.707110] pc : __device_add_disk+0x3f0/0x468 [ 0.707118] lr : __device_add_disk+0x3b4/0x468 [ 0.707126] sp : ffff800012c03960 [ 0.707131] x29: ffff800012c03960 x28: ffff000000b50800 x27: ffff000000b50dc0 [ 0.707148] x26: 0000000000000003 x25: ffff000000b4cc00 x24: ffff800012ab54e8 [ 0.707165] x23: 0000000000000001 x22: ffff000000b50808 x21: 0000000000000000 [ 0.707182] x20: 0000000000000000 x19: ffff000001158e00 x18: 0000000000000001 [ 0.707198] x17: 000000040044ffff x16: 00400032b5503510 x15: 0000000000000068 [ 0.707215] x14: 00000000000000c0 x13: ffff000077bd3e28 x12: ffff000077bd3e38 [ 0.707232] x11: 0000000000000000 x10: ffff000077bd3e18 x9 : ffff80001058b910 [ 0.707249] x8 : ffff000000b8ad80 x7 : 000004e20000007d x6 : 0000000000000001 [ 0.707266] x5 : ffff8000125af000 x4 : 0000000000000000 x3 : ffff000002210630 [ 0.707282] x2 : 0000000000000000 x1 : 00000000000000b3 x0 : 0000000000000000 [ 0.707298] Call trace: [ 0.707303] __device_add_disk+0x3f0/0x468 [ 0.707311] device_add_disk+0x1c/0x28 [ 0.707319] mmc_add_disk+0x34/0x130 [ 0.707330] mmc_blk_probe+0x22c/0x5c0 [ 0.707337] mmc_bus_probe+0x28/0x38 [ 0.707346] really_probe+0xf0/0x4d0 [ 0.707356] driver_probe_device+0x108/0x178 [ 0.707365] __device_attach_driver+0xa0/0x128 [ 0.707374] bus_for_each_drv+0x80/0xd8 [ 0.707382] __device_attach+0xfc/0x180 [ 0.707390] device_initial_probe+0x1c/0x28 [ 0.707399] bus_probe_device+0xa4/0xb0 [ 0.707407] device_add+0x3b0/0x888 [ 0.707415] mmc_add_card+0x130/0x2c8 [ 0.707424] mmc_attach_mmc+0x100/0x188 [ 0.707434] mmc_rescan+0x278/0x2e8 [ 0.707442] process_one_work+0x1c8/0x488 [ 0.707452] worker_thread+0x54/0x428 [ 0.707459] kthread+0x140/0x158 [ 0.707469] ret_from_fork+0x10/0x18 [ 0.707479] ---[ end trace 8adf6c66e7d9ad4b ]--- [ 0.709232] # ssp-pl022 f7106000.spi: mapped registers from 0x00000000f7106000 to (____ptrval____) [ 0.709548] random: fast init done [ 0.711961] Alternate GPT is invalid, using primary GPT. [ 0.712006] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 [ 0.716939] ------------[ cut here ]------------ [ 0.716948] WARNING: CPU: 2 PID: 24 at block/genhd.c:491 __device_add_disk+0x3f0/0x468 [ 0.723287] ssp-pl022 f7106000.spi: setup for DMA on RX dma0chan0, TX dma0chan1 [ 0.726001] Modules linked in: [ 0.726013] CPU: 2 PID: 24 Comm: kworker/2:0 Tainted: G W 5.13.0-rc7-next-20210621 #1 [ 0.737893] i2c 2-0039: Fixing up cyclic dependency with f7118000.i2s [ 0.742981] Hardware name: HiKey Development Board (DT) [ 0.742989] Workqueue: events_freezable mmc_rescan [ 0.743007] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--) [ 0.743015] pc : __device_add_disk+0x3f0/0x468 [ 0.743024] lr : __device_add_disk+0x3b4/0x468 [ 0.743031] sp : ffff800012c03960 [ 0.749384] i2c 2-0039: Fixing up cyclic dependency with f4107800.dsi [ 0.755557] x29: ffff800012c03960 x28: ffff000000b50800 x27: ffff000000b50dc0 [ 0.755575] x26: 0000000000000003 [ 0.768296] dwc2 f72c0000.usb: supply vusb_d not found, using dummy regulator [ 0.774353] x25: ffff000000b4cc00 x24: ffff000000b4bc00 [ 0.774366] x23: 0000000000000001 x22: ffff000002480040 x21: 0000000000000000 [ 0.774382] x20: 0000000000000000 [ 0.780881] dwc2 f72c0000.usb: supply vusb_a not found, using dummy regulator [ 0.786905] x19: ffff00000115a600 x18: 0000000000000000 [ 0.786918] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000068 [ 3.165562] x14: 00000000000000c0 x13: ffff000077bd3e28 x12: ffff000077bd3e38 [ 3.172714] x11: 0000000000000000 x10: ffff000077bd3e18 x9 : ffff80001058b910 [ 3.179866] x8 : ffff000002398200 x7 : 000004e20000007d x6 : 0000000000000001 [ 3.187018] x5 : ffff8000125af000 x4 : 0000000000000000 x3 : ffff000002211680 [ 3.194170] x2 : 0000000000000000 x1 : 00000000000000b3 x0 : 0000000000000000 [ 3.201323] Call trace: [ 3.203768] __device_add_disk+0x3f0/0x468 [ 3.207870] device_add_disk+0x1c/0x28 [ 3.211622] mmc_add_disk+0x34/0x130 [ 3.215204] mmc_blk_probe+0x4c4/0x5c0 [ 3.218956] mmc_bus_probe+0x28/0x38 [ 3.222536] really_probe+0xf0/0x4d0 [ 3.226118] driver_probe_device+0x108/0x178 [ 3.230393] __device_attach_driver+0xa0/0x128 [ 3.234842] bus_for_each_drv+0x80/0xd8 [ 3.238683] __device_attach+0xfc/0x180 [ 3.242523] device_initial_probe+0x1c/0x28 [ 3.246711] bus_probe_device+0xa4/0xb0 [ 3.250550] device_add+0x3b0/0x888 [ 3.254041] mmc_add_card+0x130/0x2c8 [ 3.257707] mmc_attach_mmc+0x100/0x188 [ 3.261549] mmc_rescan+0x278/0x2e8 [ 3.265041] process_one_work+0x1c8/0x488 [ 3.269056] worker_thread+0x54/0x428 [ 3.272721] kthread+0x140/0x158 [ 3.275955] ret_from_fork+0x10/0x18 [ 3.279537] ---[ end trace 8adf6c66e7d9ad4c ]--- [ 3.286558] ------------[ cut here ]------------ [ 3.291203] WARNING: CPU: 2 PID: 24 at block/genhd.c:491 __device_add_disk+0x3f0/0x468 [ 3.299142] Modules linked in: [ 3.302205] CPU: 2 PID: 24 Comm: kworker/2:0 Tainted: G # W 5.13.0-rc7-next-20210621 #1 [ 3.311350] Hardware name: HiKey Development Board (DT) [ 3.316580] Workqueue: events_freezable mmc_rescan [ 3.321383] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--) [ 3.327396] pc : __device_add_disk+0x3f0/0x468 [ 3.331843] lr : __device_add_disk+0x3b4/0x468 [ 3.336291] sp : ffff800012c03960 [ 3.339605] x29: ffff800012c03960 x28: ffff000000b50800 x27: ffff000000b50dc0 [ 3.346759] x26: 0000000000000003 x25: ffff000000b4cc00 x24: ffff000000b4ac00 [ 3.353911] x23: 0000000000000001 x22: ffff000002480040 x21: 0000000000000000 [ 3.361064] x20: 0000000000000000 x19: ffff000001159a00 x18: 0000000000000000 [ 3.368216] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000068 [ 3.375367] x14: 00000000000000c0 x13: ffff000077bd3e28 x12: ffff000077bd3e38 [ 3.382520] x11: 0000000000000000 x10: ffff000077bd3e18 x9 : ffff80001058b910 [ 3.389672] x8 : ffff000002398280 x7 : 000004e20000007d x6 : 0000000000000001 [ 3.396825] x5 : ffff8000125af000 x4 : 0000000000000000 x3 : ffff000002210e58 [ 3.403977] x2 : 0000000000000000 x1 : 00000000000000b3 x0 : 0000000000000000 [ 3.411129] Call trace: [ 3.413574] __device_add_disk+0x3f0/0x468 [ 3.417674] device_add_disk+0x1c/0x28 [ 3.421427] mmc_add_disk+0x34/0x130 [ 3.425009] mmc_blk_probe+0x4c4/0x5c0 [ 3.428760] mmc_bus_probe+0x28/0x38 [ 3.432339] really_probe+0xf0/0x4d0 [ 3.435920] driver_probe_device+0x108/0x178 [ 3.440195] __device_attach_driver+0xa0/0x128 [ 3.441134] dwc2 f72c0000.usb: EPs: 16, dedicated fifos, 1920 entries in SPRAM [ 3.444644] bus_for_each_drv+0x80/0xd8 [ 3.452320] dwc2 f72c0000.usb: DWC OTG Controller [ 3.455701] __device_attach+0xfc/0x180 [ 3.455710] device_initial_probe+0x1c/0x28 [ 3.455718] bus_probe_device+0xa4/0xb0 [ 3.460467] dwc2 f72c0000.usb: new USB bus registered, assigned bus number 1 [ 3.464257] device_add+0x3b0/0x888 [ 3.464265] mmc_add_card+0x130/0x2c8 [ 3.468531] dwc2 f72c0000.usb: irq 47, io mem 0xf72c0000 [ 3.472282] mmc_attach_mmc+0x100/0x188 [ 3.472292] mmc_rescan+0x278/0x2e8 [ 3.481061] hub 1-0:1.0: USB hub found [ 3.482831] process_one_work+0x1c8/0x488 [ 3.486589] hub 1-0:1.0: 1 port detected [ 3.491822] worker_thread+0x54/0x428 [ 3.491830] kthread+0x140/0x158 [ 3.491840] ret_from_fork+0x10/0x18 [ 3.491852] ---[ end trace 8adf6c66e7d9ad4d ]--- metadata: git branch: master git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git describe: next-20210621 kernel-config: https://builds.tuxbuild.com/1uG71M0P29j62n5g5DXGExv8HJi/config vmlinux: https://builds.tuxbuild.com/1uG71M0P29j62n5g5DXGExv8HJi/vmlinux.xz System.map: https://builds.tuxbuild.com/1uG71M0P29j62n5g5DXGExv8HJi/System.map Image: https://builds.tuxbuild.com/1uG71M0P29j62n5g5DXGExv8HJi/Image.gz Reported-by: Naresh.Kamboju ref: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20210621/testrun/4962284/suite/linux-log-parser/test/check-kernel-exception-2935013/log https://lkft.validation.linaro.org/scheduler/job/2935013#L2142 -- Linaro LKFT https://lkft.linaro.org