Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753355AbdFPJwB (ORCPT ); Fri, 16 Jun 2017 05:52:01 -0400 Received: from mail-sn1nam02on0040.outbound.protection.outlook.com ([104.47.36.40]:21920 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753060AbdFPJv7 (ORCPT ); Fri, 16 Jun 2017 05:51:59 -0400 Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=caviumnetworks.com; Date: Fri, 16 Jun 2017 12:51:44 +0300 From: Yury Norov To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: Re: arm64: next-20170614 panics on boot Message-ID: <20170616095144.nb43ur6fukkfen5c@yury-thinkpad> References: <20170615120840.ce7v4hxflueu4s7o@yury-thinkpad> <20170615123337.5qkrh72vt53jnwnf@yury-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170615123337.5qkrh72vt53jnwnf@yury-thinkpad> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [176.59.2.66] X-ClientProxiedBy: DB6PR02CA0024.eurprd02.prod.outlook.com (10.170.218.165) To SN1PR0701MB1872.namprd07.prod.outlook.com (10.162.100.22) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR0701MB1872: X-MS-Office365-Filtering-Correlation-Id: ad968970-2ba1-46a1-7863-08d4b49d539f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN1PR0701MB1872; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1872;3:+dDMnyRx0QCz/H2I9Ek34WoiLT99f5de0Txjt2Xl2JqVFU8so769ptkva7ycsFLNZLRcCge8jYiaR9c67mvrNoAsZv7bb5x74Oz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AjTBSZn7fu2QGuS0DU3/VpEVWqYDJgRwMU4RkPOKrDbo7TE4SzqJ74q05X+Z2A6zA8aOPLWTuz0EGjLbu0vY14ljQ6d3uWq1CG7xEJlZmx9Z3lgdqygSQTLEkp2jae1O0aD8Xt2dxVdrjCXqhf45j/5Zup9LWivN1upXSs7Awnrs9eiWzbwa/CV7OD3trUJVsiPCVkE9YQ7rvTO5B6YWXtV/cC2wsYpI+7wcrP47QB1Wd/R7sesmLRABwFwLL9TfccmAzkaEkmWrsddbhHIjZxw15B+EGDOxnUpHRnPR9yIr7B73oKhP2AmkVMvVAu+7dyBVNsoK8HMNtqdvHDzWiA6IC9Zf0zVo8AQWrCz9qxXdaWvywnr0HVJstghkB17OTH1A12ehuds1Prf/PSvLS3tR1bWRdFZwnccOzG5jJsy8PVXHqd0iuQyrixrb+RFXKuEbxFfuGqWIvFfaOTiiHOMl0VJWFPRWc8parpGpyoaosfk6TrRTDHTJkpgdhQ2TubiiPm10wRa6Pv6l039k2h/NKADLvPfMUbmYkm0AttOqtXdimermclPFg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR0701MB1872;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR0701MB1872; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1872;4:vGh2c/9UC1G/oa6eqwLayntbsv5uFWR+c8zNKEKn?= =?us-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TcF/ojpUeyRd7+0p?= =?us-ascii?Q?N0ej7JVrt0uvQPkQQfJP0JkH9eFaHZ9B6mjhCpsdnSz7flO81u5FGDC7LE0t?= =?us-ascii?Q?A4iNjjeXVagvGvI41SuC5C4EHS6AkqaR7Mq2oqnodr4AmwTSTH7gORfArV6Z?= =?us-ascii?Q?QVLqi6wbPbnA1fncoDrKcoBAxknOajSFloQyLjRorjtSGI467Mjqf87rcD3J?= =?us-ascii?Q?7wYrUtCgx3M=3D?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(39400400002)(39840400002)(39860400002)(39410400002)(39850400002)(53754006)(24454002)(66066001)(478600001)(6486002)(72206003)(83506001)(3846002)(110136004)(42882006)(47776003)(53936002)(81166006)(8676002)(9686003)(2950100002)(6116002)(38730400002)(189998001)(6496005)(1076002)(23726003)(54906002)(6246003)(25786009)(76176999)(33716001)(5660300001)(305945005)(6666003)(7736002)(50986999)(2906002)(4001350100001)(42186005)(5890100001)(4326008)(76506005)(229853002)(33646002)(54356999)(50466002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR0701MB1872;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1872;23:tWNN8wNbeBZbS5jIlkEUqiPIoODGmwslS4bnTc5?= =?us-ascii?Q?TFgRo2uGKqMeoGuuJ0mpMMi6ccIyExmKqgGKEpepCAnQG/KZ8wcV/cwLtHJi?= =?us-ascii?Q?pU+Niz/XAlOXZAeuoF40knhrzTuSAHRWj7rQ4viYf4W5VCI0sGc5/5a3L2Jd?= =?us-ascii?Q?eALrXLhGGqRUP80FwLYsuAnbUU5Ksc5UXpi2EaBwleUJand5cBBc1/uSj4pK?= =?us-ascii?Q?XBw6gHsg3JSCozRTPrpheHs4DjDKwr1fd2grUOxs9P558ixY47mtBe26+j6b?= =?us-ascii?Q?Hw8XSG5PlA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-ascii?Q?8guy26uaBPiMYQ0GaBk/0kRbCBVyohNlSNjVEUGfoE0lHFqxBpt4uacRieLO?= =?us-ascii?Q?xE71/qvS7WOmfNO2WPp8=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1872;6:a+O5wPAlMjsDszAQhYvBsgRb2doDUiMxD44hQkMk?= =?us-ascii?Q?oaagzREr43JLs/MHQDSuWYOoO2thL4tUhYWVBMyVVorCIunqDSSoe6bz8Y3T?= =?us-ascii?Q?aIrydMCF9TCKPVWCsZRB3Dzv4tA6lZHhS0hPablUOvGMSPH4eQ9t5R65ap7W?= =?us-ascii?Q?XSByMBfqtHllBuVi2P8mq2A+f+T8MGzcbh0FY4fn1+gkS6Yg4PFPg8CRR+pA?= =?us-ascii?Q?CEhk0N4ARL1s9FAkXYDFC6/320l69ECBzoxuqm/BEbm1+Zwo5bexj1gyVM40?= =?us-ascii?Q?z80bRuc3Ok/p/hh6RTZDx8MtKuZMd8O7x6EHhKZ8RIHjuUi7a4U+yNzZjU74?= =?us-ascii?Q?QCYY1X8t+8vQhgYVnaU9wwP4v1ONpweNWavMjaeHf8XJUd0b+mbrtfVYdqeU?= =?us-ascii?Q?SR1y/4uQ2ugXkZGFRF1BS99kdG4+5tAYqop5P+Cby8eH2npD0PjPfQNa6Jnw?= =?us-ascii?Q?MocpV6Y6xQdHbkplQEFzWPhN6WBdFyAGgStXH0QnntaOGNcdUUDKlXt5J6ZI?= =?us-ascii?Q?HzMwJMIQur0XS+J7vPUdy7psLibJOipnsRfam07a1FrSvTm8cakKTLTERGmv?= =?us-ascii?Q?ReUudhoSa/SgYPwnEVEhO3ghd8dK8nBvjuNI87v1iTKyihTNaUfWX0t6qz6Q?= =?us-ascii?Q?TM7VCecRsyJ3np2jDecg/MLHlJTkzSdchFIC4zUS/ltC766PuRsBvQX3KC90?= =?us-ascii?Q?a/qmvTRL/EZ2WLzVGlSrz/V4pbEo6rb3v8TVW56Jnb3le7C79SUm9mgViQMa?= =?us-ascii?Q?LrRAN0PbZewzyVahNfVAL9kz3dVIfQ/qXax0GZe1p78bc/QDoajDU/FFqp1x?= =?us-ascii?Q?AZZNCek6Yd7STU6d3iK/rJlZrS/FKQEULAdrROqxD80tiEUFJVGYCouCQucE?= =?us-ascii?Q?QmC6qi3UqQ3Fi8C4Z5We9dTKnSEs5QGMNTo1abp9Dk5G5xrDm0SoMlx3cKzB?= =?us-ascii?Q?jmBqpowalK1lt7QpmsvPp+6lbQMN/OQ2l7FsIT5jtMe7EYxMJ1NBUyre7hF5?= =?us-ascii?Q?/M0=3D?= X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1872;5:cYNrb2LuWA9leKjQ03mwYRukRDWNxlP5Pcj88vHcPwsfpzJYSRBdjX6839yqvDoe0YB1WImJiIPcy8SzaW6TZDTF6oZyXWSq+mh8GkSABL5CyC5pqOfobD0smA9+e5VrT7IcElHP2r5DA/wPVLjKQE7TU4/ExqEcHXMOz8T5rjZsTQSdDpks2SdrPHAEcQB3B94/jf+vO2976GdTXnojzRn/UWShYrImOKTSAOv0LNAjhsuotS3I2pvHj/KkmUievnGfutZRSPuu9MMehweqKnDILuHDuLxqFUqLLbekfHLs3v8KR8yHR44yEr3GHoOrUbNeNKIDzqYfVwWZZeM5owhpWUB7633iRpQnxSHNzbtliZIZvCfFV+gwA6Eo8bNPemz9A2/LSbsDX3lSWRs7nAkhUR5GCMgZ1INR6yMS+Jcco2c/4eNMRlxbg4K/eCXevyicBbbkPhj5nFeyplyfzRblq2W72OuuuUM4TmZzSkKCDnSIVsffGFUMGc0ED603;24:KhNgU6pkPXPepTJySgHlGMZ8DRaKJyVhv2PuxtKkybEJYTXdi3RrttXAgq/Gz55UBQ+MYKwOz2Z0ojnXbELuNM5md0p5W7C1qPd3KZDx1Fk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1872;7:4oqur+rI4izDmd33sKSvGEnB8pjxrpT7YWWmNala05NVP9fpyPyAWt2G8SCu5l92fBuzJg1jopnkcRwLzmO6uXztFLveMssQDNTjycFm2r0y1sUcql3XmXrnN+DrSr856xFgV9lUjN/VLivHYNBfbdeCCt/+lcC+48luQlfb3hJ0IImWJCSNVd7F8xwZ0oZirOoghXb9QQCyWl+KDjpf36R8a3P8CuOHbnGOcADPF2V60bOr9FQ7CXqBlIHNmcRDwX8Ju5Oq+lYLK7kcMHQ1xWbWg3MWnPWlm91UOHs+VXxHV0VW+eiIwuUsQktmvuTMzAVRq6j5c24sKteEZPNJYRMEA8I/cmInLbgcKPRMzOiJPmn27k8VL81Sech9gxOtP8e575zU/rTF7SGSe2uNdcFncqDGSpxjFe1lh1UCuS/Rj98U5iGV76J8TnUVy0/cQd9yBBtj72bDke19IZ458hyMqGS9lWHH/qDbNMSyFYY5PZsXAmmsUn69ViP0xA5NtrlCBbFjjxWeiEA0snFo7FCnXvo5VsnKwRI6ww+vRYvacTPoAFa6hLv0Ir3e2RzJOG8cPlDcW5X8hPvYA05e3OgOQB9r+QjalNLzHOulkxQxx099CdCaoZEFJtQONrUtHTO/Q//UdYLR/WFzkqICboMUGDDReiMy3HjDNO5wLc6QVLw8Cp+f4slWo88HMjQ64HPXVjUaT0TmKaYT9mOYzTsmowRfpthvQ+FTQIqXsNfcxQAnYWCgQmEcFbUZRxaGBhjZ+Xi9gCGkVcJ2WdJgOEA3O+dojggJoGJkmEmkpL0= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 09:51:56.7063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0701MB1872 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 48 (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?.. Yury