Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752815AbdFPKyB (ORCPT ); Fri, 16 Jun 2017 06:54:01 -0400 Received: from foss.arm.com ([217.140.101.70]:54908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbdFPKyA (ORCPT ); Fri, 16 Jun 2017 06:54:00 -0400 Subject: Re: arm64: next-20170614 panics on boot To: Yury Norov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20170615120840.ce7v4hxflueu4s7o@yury-thinkpad> <20170615123337.5qkrh72vt53jnwnf@yury-thinkpad> <20170616095144.nb43ur6fukkfen5c@yury-thinkpad> Cc: Thomas Gleixner , Jason Cooper From: Marc Zyngier Organization: ARM Ltd Message-ID: <05383817-d6a6-9e1d-8866-8a8cbed2507e@arm.com> Date: Fri, 16 Jun 2017 11:53:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170616095144.nb43ur6fukkfen5c@yury-thinkpad> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2068 Lines: 57 On 16/06/17 10:51, Yury Norov wrote: > (CC irqchip maintainers) > > On Thu, Jun 15, 2017 at 03:33:37PM +0300, Yury Norov wrote: >> On Thu, Jun 15, 2017 at 03:08:40PM +0300, Yury Norov wrote: >>> Hi all, >>> >>> Today's linux next falls into panic in init_IRQ(): >>> arch/arm64/kernel/irq.c: >>> 53 void __init init_IRQ(void) >>> 54 { >>> 55 irqchip_init(); >>> 56 if (!handle_arch_irq) >>> 57 panic("No interrupt controller found."); >>> 58 } >>> >>> >>> Bisecting points to the patch 6fedb069def034 ("of: Provide dummy >>> of_device_compatible_match() for compile-testing"), but reverting it >>> doesn't help. It seems like yesterday's linux-next also hangs. Right >>> now I cannot continue with debugging, but if nothing will get clear, >>> I'll back to it at this evening. >> >> Sorry, forgot to attach the config. This is it. Also, I run arm64 on >> qemu. > > The next-20170616 boots well for me. I didn't manage to bisect the > source of problem - it points to different commmits, and reverting > them doesn't help. The source of the problem is that irqchip_init() > doesn't set the handle_arch_irq. It should be done in > of_irq_init() at the line > > drivers/of/irq.c: > 542 while (!list_empty(&intc_desc_list)) { > ... > 561 ret = desc->irq_init_cb(desc->dev, > 562 desc->interrupt_parent); > ... > 586 } > > On next-20170614 and 15 intc_desc_list is empty at the point. It > should be populated earlier in the loop > 510 for_each_matching_node_and_match(np, matches, &match) > > But np becomes 0 at the 1st iteration, and so the program doesn't enter the > loop. At the first glance there's no recent changes in related code. Maybe it's dts > issue?.. Dunno. I'm booting -next as of today in various arm64 VMs, and everything seems fine. Even 20170614 boots fine in the same configuration. You'll have to investigate a bit more, I'm afraid. Thanks, M. -- Jazz is not dead. It just smells funny...