From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757234AbdLWBfq (ORCPT ); Fri, 22 Dec 2017 20:35:46 -0500 Received: from mail-sg2apc01on0100.outbound.protection.outlook.com ([104.47.125.100]:42386 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757082AbdLWBfk (ORCPT ); Fri, 22 Dec 2017 20:35:40 -0500 From: Dexuan Cui To: Alexandru Chirvasitu CC: Dou Liyang , Thomas Gleixner , Pavel Machek , kernel list , Ingo Molnar , "Maciej W. Rozycki" , Mikael Pettersson , Josh Poulson , "Mihai Costache (Cloudbase Solutions SRL)" , Stephen Hemminger , Marc Zyngier , "linux-pci@vger.kernel.org" , Haiyang Zhang , "Simon Xiao" , Saeed Mahameed , "Jork Loeser" , Bjorn Helgaas , "devel@linuxdriverproject.org" , KY Srinivasan Subject: RE: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop Thread-Topic: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop Thread-Index: AQHTew+iDoo06O5YEkWMBec2DbZ43KNPagaAgAB2eACAABH9gIAAIVjQ Date: Sat, 23 Dec 2017 01:35:12 +0000 Message-ID: References: <20171218101131.GA5338@amd> <20171219083421.GB24638@arch-chirva.localdomain> <20171220131929.GC24638@arch-chirva.localdomain> <20171220194506.GD24638@arch-chirva.localdomain> <20171221022356.GE24638@arch-chirva.localdomain> <1bd74ca3-afca-9d61-6911-61250f459891@cn.fujitsu.com> <20171222142053.3cbhi2nhh24w7yoo@D-69-91-141-110.dhcp4.washington.edu> <20171222222917.GA1138@arch-chirva.localdomain> In-Reply-To: <20171222222917.GA1138@arch-chirva.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2017-12-23T01:35:09.2954608Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [73.225.236.69] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0008;6:SNoeBqIajWQLxyTyXfBBX0jEwBhINpMSuGt6ImcWI6MD7tS7UTPqfVInnFemVvxrcQA7KvQR8ksRkYBGsYW/J20Vj95b4OkP3EsHgppU9hQfzsyua5o4wPFXowl71zTXZ2IZm8Bvq+Dkkxzq5ys61A6B2AhlpasyMQod7Xv8jbtJVKJzhuc0DXjyNWGB3wBS/H1lpCiFmFFegqh+sZEnAw53poirjjIyN4LYKcKXvcrfPjWPLG/fVBXaTpoJVglQYjph7ByTVMEMx32wSuZJr1fFtcuZmFdSwsFAyqbyv/rGs4zZEgH3WwtjQOCjEjDIvFieavZNZoyz5mC9YnSb84DRTDM4XdOkAJyEPC561dg=;5:cVHJ6qKWUgtarWXlSSCxAGk1v0xJvx6qJOB4Y4YA9o+2It4oFNen3yswVCYDp2AIyr1Ep5d/1CIW1nJXiwX9dO9GTVgdg4GcCOZTALH3DDbJka+kfNSZ1eV49vxV5SOzRnWM73+Coltij8D8vvUuEmLu7orX428LLjT99IZUEjc=;24:LksQm5ENvD+xduVjWpUWDvysEQPdcGmpPW6ZSPL1NApygJT9M7kuQVcsoR8/vFoKehc7krbLkaRN359RqWdGb0ncHHR8CST11sx865T1T7A=;7:TJaTQanmIETndOUh7iYBdE95AGD07xHHk7p69QG9LhY7Sr2WfGj9/jdtQpfxcfJQSPqmTSlKNsnDfXsN8UQuOUbgzyJytSjxoHzcfo79OcKdApXgVn5Qhb2SyiYY0UOHFfVUoLX28oebWyP0cKV1G/coyafuvk3RwoSCVMKH88OdXIl/d+Nf+PbbAKbfn5oFNIG6h/o1gjvlJZWHvmYenxAI10Vaks5VJTbwUS3vduS4+sOzf62mqeq4k+jjrvkM x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10019020)(366004)(376002)(396003)(346002)(39380400002)(39860400002)(24454002)(199004)(189003)(99286004)(478600001)(10290500003)(106356001)(4326008)(9686003)(6436002)(107886003)(305945005)(55016002)(2950100002)(39060400002)(105586002)(77096006)(25786009)(6246003)(86612001)(229853002)(6916009)(14454004)(66066001)(102836004)(53936002)(6116002)(2900100001)(5890100001)(7696005)(3846002)(3280700002)(5660300001)(3660700001)(22452003)(81156014)(81166006)(8990500004)(2906002)(33656002)(316002)(93886005)(1411001)(8676002)(97736004)(8936002)(10090500001)(7736002)(7416002)(68736007)(54906003)(86362001)(6506007)(74316002)(76176011);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0008;H:KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 34eb82cd-1b34-4b3a-ff4d-08d549a5693f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307);SRVR:KL1P15301MB0008; x-ms-traffictypediagnostic: KL1P15301MB0008: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(209352067349851)(788757137089); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040470)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231023)(3002001)(6055026)(61426038)(61427038)(6041268)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:KL1P15301MB0008;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:KL1P15301MB0008; x-forefront-prvs: 0530FCB552 x-microsoft-antispam-message-info: Sj8/yy/W9Z8+2PwNklPhg6bDPdTctQGyjHdHSl+2m6DJ3ZrAbj2txsE2Kt5mjMtbEYeh66xblW2olMjMnz3vaw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34eb82cd-1b34-4b3a-ff4d-08d549a5693f X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2017 01:35:12.1557 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0008 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id vBN1ZrdL021001 > From: Alexandru Chirvasitu [mailto:achirvasub@gmail.com] > Sent: Friday, December 22, 2017 14:29 > > The output of that precise command run just now on a freshly-compiled > copy of that commit is attached. > > On Fri, Dec 22, 2017 at 09:31:28PM +0000, Dexuan Cui wrote: > > > From: Alexandru Chirvasitu [mailto:achirvasub@gmail.com] > > > Sent: Friday, December 22, 2017 06:21 > > > > > > In the absence of logs, the best I can do at the moment is attach a > > > picture of the screen I am presented with on the apic=debug boot > > > attempt. > > > Alex > > > > The panic happens in irq_matrix_assign_system+0x4e/0xd0 in your picture. > > IMO we should find which line of code causes the panic. I suppose > > "objdump -D kernel/irq/matrix.o" can help to do that. > > > > Thanks, > > -- Dexuan The BUG_ON panic happens at line 147: BUG_ON(!test_and_clear_bit(bit, cm->alloc_map)); I'm sure Thomas and Dou know it better than me. 137 void irq_matrix_assign_system(struct irq_matrix *m, unsigned int bit, 138 bool replace) 139 { 140 struct cpumap *cm = this_cpu_ptr(m->maps); 141 142 BUG_ON(bit > m->matrix_bits); 143 BUG_ON(m->online_maps > 1 || (m->online_maps && !replace)); 144 145 set_bit(bit, m->system_map); 146 if (replace) { 147 BUG_ON(!test_and_clear_bit(bit, cm->alloc_map)); 148 cm->allocated--; 149 m->total_allocated--; 150 } 151 if (bit >= m->alloc_start && bit < m->alloc_end) 152 m->systembits_inalloc++; 153 154 trace_irq_matrix_assign_system(bit, m); 155 } -- Dexuan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Dexuan Cui To: Alexandru Chirvasitu CC: Dou Liyang , Thomas Gleixner , Pavel Machek , kernel list , Ingo Molnar , "Maciej W. Rozycki" , Mikael Pettersson , Josh Poulson , "Mihai Costache (Cloudbase Solutions SRL)" , Stephen Hemminger , Marc Zyngier , "linux-pci@vger.kernel.org" , Haiyang Zhang , "Simon Xiao" , Saeed Mahameed , "Jork Loeser" , Bjorn Helgaas , "devel@linuxdriverproject.org" , KY Srinivasan Subject: RE: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop Date: Sat, 23 Dec 2017 01:35:12 +0000 Message-ID: References: <20171218101131.GA5338@amd> <20171219083421.GB24638@arch-chirva.localdomain> <20171220131929.GC24638@arch-chirva.localdomain> <20171220194506.GD24638@arch-chirva.localdomain> <20171221022356.GE24638@arch-chirva.localdomain> <1bd74ca3-afca-9d61-6911-61250f459891@cn.fujitsu.com> <20171222142053.3cbhi2nhh24w7yoo@D-69-91-141-110.dhcp4.washington.edu> <20171222222917.GA1138@arch-chirva.localdomain> In-Reply-To: <20171222222917.GA1138@arch-chirva.localdomain> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: > From: Alexandru Chirvasitu [mailto:achirvasub@gmail.com] > Sent: Friday, December 22, 2017 14:29 >=20 > The output of that precise command run just now on a freshly-compiled > copy of that commit is attached. >=20 > On Fri, Dec 22, 2017 at 09:31:28PM +0000, Dexuan Cui wrote: > > > From: Alexandru Chirvasitu [mailto:achirvasub@gmail.com] > > > Sent: Friday, December 22, 2017 06:21 > > > > > > In the absence of logs, the best I can do at the moment is attach a > > > picture of the screen I am presented with on the apic=3Ddebug boot > > > attempt. > > > Alex > > > > The panic happens in irq_matrix_assign_system+0x4e/0xd0 in your picture= . > > IMO we should find which line of code causes the panic. I suppose > > "objdump -D kernel/irq/matrix.o" can help to do that. > > > > Thanks, > > -- Dexuan The BUG_ON panic happens at line 147: BUG_ON(!test_and_clear_bit(bit, cm->alloc_map)); I'm sure Thomas and Dou know it better than me.=20 137 void irq_matrix_assign_system(struct irq_matrix *m, unsigned int bit, 138 bool replace) 139 { 140 struct cpumap *cm =3D this_cpu_ptr(m->maps); 141 142 BUG_ON(bit > m->matrix_bits); 143 BUG_ON(m->online_maps > 1 || (m->online_maps && !replace)); 144 145 set_bit(bit, m->system_map); 146 if (replace) { 147 BUG_ON(!test_and_clear_bit(bit, cm->alloc_map)); 148 cm->allocated--; 149 m->total_allocated--; 150 } 151 if (bit >=3D m->alloc_start && bit < m->alloc_end) 152 m->systembits_inalloc++; 153 154 trace_irq_matrix_assign_system(bit, m); 155 } -- Dexuan