Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756704AbYL2ABZ (ORCPT ); Sun, 28 Dec 2008 19:01:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755269AbYL2ABP (ORCPT ); Sun, 28 Dec 2008 19:01:15 -0500 Received: from rv-out-0506.google.com ([209.85.198.237]:40318 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755246AbYL2ABO (ORCPT ); Sun, 28 Dec 2008 19:01:14 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=ihs1FBST88GxPbKRsMxC2PRUj1ZqgETLY5UFlm/OHGGJkHjxjBp2B6+24lIN1Ii4tb xD9y4zu7MzAA/g3B4GiDtF9d5Uq6PkUDbWi6Pvw2Bh/4C88EpU4uuMHXddrwm1TeAmwK xD/o73CmSOLIU/z47ceZke4n9+seCYSPMIkv0= Message-ID: <86802c440812281601j57fe5ecdif4b63b72280c65cd@mail.gmail.com> Date: Sun, 28 Dec 2008 16:01:13 -0800 From: "Yinghai Lu" To: "Ingo Molnar" Subject: Re: [git pull] sparseirq / irq updates for v2.6.29 Cc: "Linus Torvalds" , "KOSAKI Motohiro" , linux-kernel@vger.kernel.org, "Andrew Morton" , "Thomas Gleixner" , "H. Peter Anvin" , "Jesse Barnes" , "Kamalesh Babulal" In-Reply-To: <20081228233028.GA14697@elte.hu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_45427_17630777.1230508873516" References: <20081225160741.GA14486@elte.hu> <20081227133240.GA8716@elte.hu> <2f11576a0812270927taef068fobbad997dc5e5aacf@mail.gmail.com> <20081227173839.GA9793@elte.hu> <20081228232729.GA2158@elte.hu> <20081228233028.GA14697@elte.hu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4522 Lines: 100 ------=_Part_45427_17630777.1230508873516 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, Dec 28, 2008 at 3:30 PM, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >> b2e2fe9: sparseirq: work around __weak alias bug > > here's that fix, standalone too. Kamalesh, i think this should finally fix > the crash you are seeing. > > Ingo > > ----------------> > From b2e2fe99628c4f944c3075258e536197b5a4f3f8 Mon Sep 17 00:00:00 2001 > From: Ingo Molnar > Date: Mon, 29 Dec 2008 00:16:45 +0100 > Subject: [PATCH] sparseirq: work around __weak alias bug > > Impact: fix boot crash if the kernel is built with certain GCC versions > > GCC has a bug with __weak alias functions: if the functions are in > the same compilation unit as their call site, GCC can decide to > inline them - and thus rob the linker of the opportunity to override > the weak alias with the real thing. > > This can lead to the boot crash reported by Kamalesh Babulal: > > ACPI: Core revision 20080926 > Setting APIC routing to flat > BUG: unable to handle kernel NULL pointer dereference at > 0000000000000000 > IP: [] add_pin_to_irq_cpu+0x14/0x74 > PGD 0 > Oops: 0000 [#1] SMP > [...] > > So move the arch_init_chip_data() function from handle.c to manage.c. > > Reported-by: Kamalesh Babulal > Signed-off-by: Ingo Molnar > --- > kernel/irq/handle.c | 5 ----- > kernel/irq/manage.c | 9 +++++++++ > 2 files changed, 9 insertions(+), 5 deletions(-) > that is not enough. please check need one printk, and move two functions into chip.c YH ------=_Part_45427_17630777.1230508873516 Content-Type: text/x-patch; name=sparse_irq_fix6.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fpad5zot0 Content-Disposition: attachment; filename=sparse_irq_fix6.patch W1BBVENIXSBzcGFyc2VpcnE6IG12b2UgdHdvIHdlYWsgZnVuY3Rpb25zIHRvIGNoaXAuYwoKSW1w YWN0OiBmaXggcGFuaWMKCnNvbWUgZ2NjIGNvbXBpbGVyIHdpbGwgcmVtb3ZlIHRoZSB3ZWFrIGds b2JhbCBibGFuayBmdW5jdGlvbgpMaW51cyBub3RlZCB0aGF0IHdl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oIgogCitp bnQgX19pbml0IF9fd2VhayBhcmNoX2Vhcmx5X2lycV9pbml0KHZvaWQpCit7CisJcmV0dXJuIDA7 Cit9CisKK2ludCBfX3dlYWsgYXJjaF9pbml0X2NoaXBfZGF0YShzdHJ1Y3QgaXJxX2Rlc2MgKmRl c2MsIGludCBjcHUpCit7CisJcmV0dXJuIDA7Cit9CisKIC8qKgogICoJZHluYW1pY19pcnFfaW5p dCAtIGluaXRpYWxpemUgYSBkeW5hbWljYWxseSBhbGxvY2F0ZWQgaXJxCiAgKglAaXJxOglpcnEg bnVtYmVyIHRvIGluaXRpYWxpemUKZGlmZiAtLWdpdCBhL2tlcm5lbC9pcnEvaGFuZGxlLmMgYi9r ZXJuZWwvaXJxL2hhbmRsZS5jCmluZGV4IDE1N2MwNGMuLmMyMGRiMGIgMTAwNjQ0Ci0tLSBhL2tl cm5lbC9pcnEvaGFuZGxlLmMKKysrIGIva2VybmVsL2lycS9oYW5kbGUuYwpAQCAtODYsMTEgKzg2 LDYgQEAgdm9pZCBpbml0X2tzdGF0X2lycXMoc3RydWN0IGlycV9kZXNjICpkZXNjLCBpbnQgY3B1 LCBpbnQgbnIpCiAJCWRlc2MtPmtzdGF0X2lycXMgPSAodW5zaWduZWQgaW50ICopcHRyOwogfQog Ci1pbnQgX193ZWFrIGFyY2hfaW5pdF9jaGlwX2RhdGEoc3RydWN0IGlycV9kZXNjICpkZXNjLCBp bnQgY3B1KQotewotCXJldHVybiAwOwotfQotCiBzdGF0aWMgdm9pZCBpbml0X29uZV9pcnFfZGVz YyhpbnQgaXJxLCBzdHJ1Y3QgaXJxX2Rlc2MgKmRlc2MsIGludCBjcHUpCiB7CiAJbWVtY3B5KGRl c2MsICZpcnFfZGVzY19pbml0LCBzaXplb2Yoc3RydWN0IGlycV9kZXNjKSk7Cg== ------=_Part_45427_17630777.1230508873516-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/