Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5834583imm; Wed, 12 Sep 2018 11:52:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdayrMT+hoSUZiUkGwncp2xNbhgQzRsxE5izOGPVwckBoSfTFibaaXdM7w0psngvxtELgm6C X-Received: by 2002:a63:1e63:: with SMTP id p35-v6mr3772791pgm.376.1536778370633; Wed, 12 Sep 2018 11:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536778370; cv=none; d=google.com; s=arc-20160816; b=TpKLfMyfLuYeeDeN6nEl72/Vs+ndaY6tV89ogYq1ioFoFaV1ktQFu1J6tyHJLftYkN glmlxbgKAi3Esnk/HxS6tTLq+3n44S3xOmg0TkQszbT8RPx0J3ebl52vAUFoxJBPO9vs g7EScIgCRyp8FW8CmbDR9GQWb0rBOfD+Fb0eTqeriNNVX2ufyXXHGDCZL1wtPhLijYsw TkkoAXJoBQKOw0WuOegQYSvhrvzcBAduU0pj5k14WklsVqLboYhCtqeHQLufeH9kZUEt r52vRsXwhcmJSFUjw4MCBkFhK2Pd1woUTLOo5nNULrXHtBrxxIQC9i30xVIclp3qsMYR WaCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:in-reply-to:subject:cc:to:from:user-agent :references; bh=Rf+L9a7imWIH4ONACVcRsbyd5UZ9sTuihAt/WGhGm50=; b=n6+bXYQEhe0NpQnIcHm3zJVUdUKf6jI3URE2BBbEb94XTdyTAGBiFPoilB26E12qO/ 9J5VwON1gcX9lz4StFlc4n++uBmmbN/nePD7bU3Hk1+KYpyIFGs5JDxFsMwJyQnP9gOg BFQfmYbS6Sxax/IRXdnDRsIELyOaFAo4x3hNzbm8c5X5AC25wJFQTo3luYSA98rFbmgW E1iJFToL0zmhinv61s5aod/M56ymNAK+Tli3orLZHkkqyvaqZ+NRQnBkTeEy/8nt3jpw 2zDpt1KBVCdps8K0nvD4b1/G01hTkFSiMjOBmRZSbIg3CKHNf0lK+cnGBkH6Gd5QesBX FbpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u64-v6si1859882pgu.533.2018.09.12.11.52.35; Wed, 12 Sep 2018 11:52:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727984AbeILXze (ORCPT + 99 others); Wed, 12 Sep 2018 19:55:34 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:41581 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727651AbeILXze (ORCPT ); Wed, 12 Sep 2018 19:55:34 -0400 Received: from tarshish (unknown [10.0.8.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 6C75B44028C; Wed, 12 Sep 2018 21:49:24 +0300 (IDT) References: <61fdfd69-2bb6-478c-b0d5-69d8744adae3@cesnet.cz> User-agent: mu4e 1.0; emacs 25.2.2 From: Baruch Siach To: Jan =?utf-8?Q?Kundr=C3=A1t?= Cc: Thomas Petazzoni , Lorenzo Pieralisi , Jason Cooper , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Russell King Subject: Re: [BISECTED] Regression: Solidrun Clearfog Base won't boot since "PCI: mvebu: Only remap I/O space if configured" In-reply-to: <61fdfd69-2bb6-478c-b0d5-69d8744adae3@cesnet.cz> Date: Wed, 12 Sep 2018 21:49:41 +0300 Message-ID: <87zhwm4kl6.fsf@tkos.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jan, Jan Kundrát writes: > since commit ee1604381a371b3ea6aec7d5e43b6e3f5e153854 ("PCI: mvebu: Only > remap I/O space if configured"), my board (Solidrun Clearfog Base) won't > finish booting with 4.18-rc3 won't boot: You mean '4.19-rc3', right? >> [ 1.741458] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM >> [ 1.748182] CPU: 1 PID: 72 Comm: kworker/1:2 Tainted: G W 4.19.0-rc3 #1 The 'W' taint means that there was a kernel warning before. Which warning was that? I reproduced the same Oops on Clearfog Base without any taint: [ 1.476401] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM [ 1.483124] CPU: 1 PID: 1241 Comm: kworker/1:2 Not tainted 4.19.0-rc3 #145 [ 1.490013] Hardware name: Marvell Armada 380/385 (Device Tree) [ 1.495953] Workqueue: events deferred_probe_work_func [ 1.501108] PC is at ioremap_page_range+0x114/0x1a4 [ 1.505999] LR is at mvebu_pcie_probe+0x138/0x7d8 [ 1.510711] pc : [] lr : [] psr: a0000013 [ 1.516990] sp : ef257d80 ip : 000f0000 fp : c0a6d0bc [ 1.522225] r10: 00000243 r9 : e9200000 r8 : 00000103 [ 1.527460] r7 : ee87f000 r6 : fee10000 r5 : fee00000 r4 : ee87f004 [ 1.534001] r3 : ee87f000 r2 : e8000243 r1 : fee0ffff r0 : c0004000 [ 1.540543] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 1.547693] Control: 10c5387d Table: 0000404a DAC: 00000051 [ 1.553450] Process kworker/1:2 (pid: 1241, stack limit = 0x(ptrval)) [ 1.559903] Stack: (0xef257d80 to 0xef258000) [ 1.564269] 7d80: fee10000 e9200000 fee0ffff ffe00000 c0007fb8 00000000 00000000 ee743010 [ 1.572466] 7da0: ef200410 ee743264 00000000 00000000 c0e39474 00000001 00000000 c043980c [ 1.580662] 7dc0: ef257e00 c0e03c08 ef7f7574 c0a26120 ef7f7574 ee743210 ee74321c f2a8b0d2 [ 1.588858] 7de0: c0e03c08 c0e03c08 c0e39474 ef200410 00000000 c063ce84 00000000 c0296ad4 [ 1.597054] 7e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 f2a8b0d2 [ 1.605250] 7e20: 00000000 ef200410 00000000 c0e39474 00000000 00000000 c0e39474 00000001 [ 1.613446] 7e40: ef7e52c0 c048c4c0 c0e9461c ef200410 c0e94628 c048a8fc ef200410 c0e39474 [ 1.621642] 7e60: c048af44 c0e03c08 00000001 c0e73c30 00000000 c048ad70 ef200410 c0e39474 [ 1.629838] 7e80: ef200410 00000000 ef257ed4 c048af44 c0e03c08 00000001 c0e73c30 00000000 [ 1.638034] 7ea0: ef7e52c0 c0489354 c0e73c30 ef088d6c ef3116b8 f2a8b0d2 ef200410 ef200410 [ 1.646230] 7ec0: c0e03c08 ef200444 c0e3fae8 c048abd8 c0e03c08 ef200410 00000001 f2a8b0d2 [ 1.654426] 7ee0: ef200410 ef200410 c0e3fd30 c0e3fae8 00000000 c0489538 ef200410 c0e3facc [ 1.662622] 7f00: c0e3facc c048a1d0 c0e3fb04 ee4b7f00 ef7e52c0 ef7e6400 00000000 c0139974 [ 1.670818] 7f20: ef7e52c0 ef7e52c0 c0e02d00 ee4b7f00 ef7e52c0 ee4b7f14 c0e02d00 ef7e52d8 [ 1.679014] 7f40: ffffe000 00000008 ef7e52c0 c0139f0c 00000000 c0e73696 c09efbe0 ee952d40 [ 1.687209] 7f60: 00000000 ee75f680 ef256000 ee952d40 00000000 ee4b7f00 c0139c64 ef0d9ea4 [ 1.695405] 7f80: ee75f69c c013f75c 0000004e ee952d40 c013f62c 00000000 00000000 00000000 [ 1.703601] 7fa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000 [ 1.711796] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1.719992] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 [ 1.728195] [] (ioremap_page_range) from [] (mvebu_pcie_probe+0x138/0x7d8) [ 1.736830] [] (mvebu_pcie_probe) from [] (platform_drv_probe+0x48/0x98) [ 1.745290] [] (platform_drv_probe) from [] (really_probe+0x1d0/0x2bc) [ 1.753575] [] (really_probe) from [] (driver_probe_device+0x60/0x160) [ 1.761860] [] (driver_probe_device) from [] (bus_for_each_drv+0x58/0xb8) [ 1.770404] [] (bus_for_each_drv) from [] (__device_attach+0xd0/0x138) [ 1.778688] [] (__device_attach) from [] (bus_probe_device+0x84/0x8c) [ 1.786884] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x8c) [ 1.795868] [] (deferred_probe_work_func) from [] (process_one_work+0x218/0x508) [ 1.805023] [] (process_one_work) from [] (worker_thread+0x2a8/0x5c0) [ 1.813221] [] (worker_thread) from [] (kthread+0x130/0x138) [ 1.820635] [] (kthread) from [] (ret_from_fork+0x14/0x2c) [ 1.827872] Exception stack(0xef257fb0 to 0xef257ff8) [ 1.832933] 7fa0: 00000000 00000000 00000000 00000000 [ 1.841129] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1.849324] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 1.855954] Code: e2844004 e5972000 e3520000 0affffee (e7f001f2) [ 1.862059] ---[ end trace 4067cdcfd86589a5 ]--- >> [ 1.756120] Hardware name: Marvell Armada 380/385 (Device Tree) >> [ 1.762063] Workqueue: events deferred_probe_work_func >> [ 1.767222] PC is at ioremap_page_range+0x114/0x1a4 >> [ 1.772117] LR is at mvebu_pcie_probe+0x134/0xa60 >> [ 1.776832] pc : [] lr : [] psr: a0000013 >> [ 1.783115] sp : ee30dd88 ip : 000f0000 fp : c0837b38 >> [ 1.788352] r10: 00000243 r9 : e9200000 r8 : 00000103 >> [ 1.793590] r7 : ef6f8000 r6 : fee10000 r5 : fee00000 r4 : ef6f8004 >> [ 1.800133] r3 : ef6f8000 r2 : e8000243 r1 : fee0ffff r0 : c0004000 >> [ 1.806678] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none >> [ 1.813832] Control: 10c5387d Table: 0000404a DAC: 00000051 >> [ 1.819592] Process kworker/1:2 (pid: 72, stack limit = 0x(ptrval)) >> [ 1.825874] Stack: (0xee30dd88 to 0xee30e000) >> [ 1.830244] dd80: fee10000 e9200000 fee0ffff ffe00000 c0007fb8 ee33e224 >> [ 1.838445] dda0: 00000000 ee33e010 00000000 ef575610 ee33e224 00000000 c0a30ac4 00000002 >> [ 1.846646] ddc0: ef9f827c c03e9d5c c0ab6d30 ef9ed434 ee342898 ee342898 ee33e1d0 ee33e1dc >> [ 1.854848] dde0: ee342898 00000000 c0a03bc8 c07fcabc 00000001 ef575610 ef577000 c02a72b4 >> [ 1.863050] de00: 00000000 ee342898 ef6744d0 ef6744d0 ee342898 ef577000 c07fcabc 5d6fd1e4 >> [ 1.871252] de20: c0a30ac4 ef575610 00000000 c0a30ac4 00000000 00000000 c0a30ac4 00000002 >> [ 1.879454] de40: ef9e40c0 c043dba4 c0ab3144 ef575610 c0ab3150 c043c4e4 ef575610 c0a30ac4 >> [ 1.887656] de60: c043cb2c c0a03bc8 00000001 c0a5cf50 00000000 c043c958 ef575610 c0a30ac4 >> [ 1.895858] de80: ef575610 00000000 ee30ded4 c043cb2c c0a03bc8 00000001 c0a5cf50 00000000 >> [ 1.904059] dea0: ef9e40c0 c043af7c c0a5cf50 ef484d6c ef66d8b8 5d6fd1e4 ef575610 ef575610 >> [ 1.912261] dec0: c0a03bc8 ef575644 c0a371c4 c043c7c0 00000003 ef575610 00000001 5d6fd1e4 >> [ 1.920462] dee0: ef575610 ef575610 c0a373f0 c0a371c4 00000000 c043b160 ef575610 c0a371a8 >> [ 1.928663] df00: c0a371a8 c043bdf8 c0a371e0 ee2f9880 ef9e40c0 ef9e5300 00000000 c01388b4 >> [ 1.936864] df20: ef9e40c0 ef9e40c0 ee30c000 ee2f9880 ef9e40c0 ee2f9894 c0a02d00 ef9e40d8 >> [ 1.945064] df40: ffffe000 00000008 ef9e40c0 c0138e4c ffffe000 c0a5ca32 c07d2f68 00000000 >> [ 1.953265] df60: ffffe000 eee5e0c0 ee2fa4c0 00000000 ee30c000 ee2f9880 c0138ba4 ef4d5ea4 >> [ 1.961466] df80: eee5e0dc c013e448 00000001 ee2fa4c0 c013e2fc 00000000 00000000 00000000 >> [ 1.969668] dfa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000 >> [ 1.977869] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >> [ 1.986069] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 >> [ 1.994277] [] (ioremap_page_range) from [] (mvebu_pcie_probe+0x134/0xa60) >> [ 2.002917] [] (mvebu_pcie_probe) from [] (platform_drv_probe+0x48/0x98) >> [ 2.011382] [] (platform_drv_probe) from [] (really_probe+0x1d0/0x2bc) >> [ 2.019671] [] (really_probe) from [] (driver_probe_device+0x60/0x160) >> [ 2.027961] [] (driver_probe_device) from [] (bus_for_each_drv+0x58/0xb8) >> [ 2.036511] [] (bus_for_each_drv) from [] (__device_attach+0xd0/0x138) >> [ 2.044800] [] (__device_attach) from [] (bus_probe_device+0x84/0x8c) >> [ 2.053002] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x8c) >> [ 2.061991] [] (deferred_probe_work_func) from [] (process_one_work+0x218/0x508) >> [ 2.071152] [] (process_one_work) from [] (worker_thread+0x2a8/0x5c0) >> [ 2.079355] [] (worker_thread) from [] (kthread+0x14c/0x154) >> [ 2.086774] [] (kthread) from [] (ret_from_fork+0x14/0x2c) >> [ 2.094015] Exception stack(0xee30dfb0 to 0xee30dff8) >> [ 2.099079] dfa0: 00000000 00000000 00000000 00000000 >> [ 2.107280] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >> [ 2.115481] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 >> [ 2.122115] Code: e2844004 e5972000 e3520000 0affffee (e7f001f2) >> [ 2.128225] ---[ end trace 7a77412d00a47123 ]--- >> [ 2.132853] Kernel panic - not syncing: Fatal exception >> [ 2.138094] CPU0: stopping >> [ 2.140811] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D W 4.19.0-rc3 #1 >> [ 2.148489] Hardware name: Marvell Armada 380/385 (Device Tree) >> [ 2.154430] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) >> [ 2.162198] [] (show_stack) from [] (dump_stack+0x88/0x9c) >> [ 2.169443] [] (dump_stack) from [] (handle_IPI+0x38c/0x3ac) >> [ 2.176863] [] (handle_IPI) from [] (gic_handle_irq+0x8c/0x90) >> [ 2.184457] [] (gic_handle_irq) from [] (__irq_svc+0x6c/0x90) >> [ 2.191960] Exception stack(0xc0a01f18 to 0xc0a01f60) >> [ 2.197024] 1f00: 00000000 00001db4 >> [ 2.205226] 1f20: ef9d1398 c0119260 ffffe000 c0a03bf0 c0a03c30 00000001 00000000 c0a03bc8 >> [ 2.213426] 1f40: c0968980 00000000 00000000 c0a01f68 c0108e68 c0108e6c 60000013 ffffffff >> [ 2.221631] [] (__irq_svc) from [] (arch_cpu_idle+0x38/0x3c) >> [ 2.229051] [] (arch_cpu_idle) from [] (do_idle+0x1e0/0x210) >> [ 2.236469] [] (do_idle) from [] (cpu_startup_entry+0x18/0x20) >> [ 2.244065] [] (cpu_startup_entry) from [] (start_kernel+0x42c/0x454) >> [ 2.252268] [] (start_kernel) from [<00000000>] ( (null)) >> [ 2.258642] Rebooting in 10 seconds.. > > I cannot easily revert that commit now due to some followup changes. I'll > be happy to test patches which attempt to fix this. > > The DTS file in use on this board is armada-388-clearfog-base.dts in case > it matters (we have some DT add-on patches on top of that, but nothing PCI- > or MBUS-related). baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -