This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Thu Apr 25 09:01:49 2024 Envelope-to: j@jasper.es Delivery-date: Tue, 07 May 2013 18:50:59 +0200 Received: from localhost ([127.0.0.1] helo=squeeze.vs19.net) by squeeze.vs19.net with esmtp (Exim 4.72) (envelope-from ) id 1UZl6R-0003Fr-Ji for j@jasper.es; Tue, 07 May 2013 18:50:59 +0200 Original-Recipient: rfc822;jasper@telfort.nl Received: from pop3.telfort.nl [213.75.3.52] by squeeze.vs19.net with POP3 (fetchmail-6.3.18) for (single-drop); Tue, 07 May 2013 18:50:59 +0200 (CEST) Received: from cpxmta-msg11.kpnxchange.com (10.94.114.32) by cpxmbs-msg01.support.local (8.6.060.17) id 516DA660003C826A for jasper@telfort.nl; Tue, 7 May 2013 18:47:02 +0200 Received: from cpsmtpb-ews01.kpnxchange.com (213.75.39.4) by cpxmta-msg11.kpnxchange.com (8.6.060.14) id 5165785800768881 for jasper@telfort.nl; Tue, 7 May 2013 18:47:02 +0200 Received: from cpsps-ews20.kpnxchange.com ([10.94.84.186]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Tue, 7 May 2013 18:47:02 +0200 Received: from vger.kernel.org ([209.132.180.67]) by cpsps-ews20.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Tue, 7 May 2013 18:47:02 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759240Ab3EGQqw convert rfc822-to-quoted-printable (ORCPT ); Tue, 7 May 2013 12:46:52 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:46963 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758587Ab3EGQqv (ORCPT ); Tue, 7 May 2013 12:46:51 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so634122pab.20 for ; Tue, 07 May 2013 09:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=OpjYFQjrY8CKx0 X-Received: by 10.66.150.226 with SMTP id ul2mr3899017pab.17.1367945210641; Tue, 07 May 2013 09:46:50 -0700 (PDT) Received: from [192.168.1.104] ([114.246.179.148]) by mx.google.com with ESMTPSA id ov2sm28861713pbc.34.2013.05.07.09.46.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 09:46:49 -0700 Message-Id: <51892FF5.9020607@gmail.com> Date: Wed, 08 May 2013 00:46:45 +0800 From: Jiang Liu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 Mime-Version: 1.0 To: eunb.song@samsung.com Cc: "ralf@linux-mips.org" , "linux-mips@linux-mips.org" , "linux-kernel@vger.kernel.org" , "jogo@openwrt.org" , "david.daney@cavium.com" Subject: Re: MIPS : die at free_initmem() function 3.9+ References: <21534601.395241367793582818.JavaMail.weblogic@epv6ml08> In-Reply-To: <21534601.395241367793582818.JavaMail.weblogic@epv6ml08> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org X-OriginalArrivalTime: 07 May 2013 16:47:02.0686 (UTC) FILETIME=[7FF2B3E0:01CE4B42] X-RcptDomain: telfort.nl Hi Eunsong, Thanks for your help. I have done some code inspection and have=20 found a possible reason for this issue. It seems that virt_to_page() can't be used to handle address in compatible segments due to following definitions. #define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys(kaddr= ))) static inline unsigned long virt_to_phys(volatile const void *address) { return (unsigned long)address - PAGE_OFFSET + PHYS_OFFSET; } #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - PH= YS_OFFSET)) #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) #define __pa(x) = \ ({ = \ unsigned long __x =3D (unsigned long)(x); = \ __x < CKSEG0 ? XPHYSADDR(__x) : CPHYSADDR(__x); = \ }) #define CPHYSADDR(a) ((_ACAST32_(a)) & 0x1fffffff) #define XPHYSADDR(a) ((_ACAST64_(a)) & = \ _CONST64_(0x000000ffffffffff)) #define XKUSEG _CONST64_(0x0000000000000000) #define XKSSEG _CONST64_(0x4000000000000000) #define XKPHYS _CONST64_(0x8000000000000000) #define XKSEG _CONST64_(0xc000000000000000) #define CKSEG0 _CONST64_(0xffffffff80000000) #define CKSEG1 _CONST64_(0xffffffffa0000000) #define CKSSEG _CONST64_(0xffffffffc0000000) #define CKSEG3 _CONST64_(0xffffffffe0000000) So could you please help to prepare a formal patch for this bug and sen= d it to Andrew Morton for v3.10-rc1? Otherwise I could help to it too. Regards! Gerry =3DOn 05/06/2013 06:39 AM, EUNBONG SONG wrote: >=20 >> So on 64bits MIPS platforms, __va(__pa(x)) may not equal to x, that = may cause >> trouble to free_initmem_default(). Could you please help to do anoth= er test >> by changing >> free_initmem_default(POISON_FREE_INITMEM); >> to >> free_initmem_default(0); >=20 >> This test could help to identify whether this panic is caused by >> memset((void *)pos, poison, PAGE_SIZE); >> in function free_reserved_area(). >=20 > Hello, as you said i changed "free_initmem_default(POISON_FREE_INITM= EM);" to > "free_initmem_default(0);". Panic still occurred.=20 > Actually, i put the some debug messages. and i confirmed panic occurs= in __free_reserved_page() function. > Thanks! >=20 > N=EB=96=91=EA=BF=A9=EF=BF=BDr=ED=88=A4y=E9=89=89=EC=8B=95b=EC=BE=8A=D0= =A4=ED=91=A4v=EF=BF=BD^=EF=BF=BD)=E9=A0=BB{.n=EF=BF=BD+=EB=8F=B4=EC=AA=90= {=EC=BD=97=E5=96=A9zX=E3=8E=8D=17=EC=8D=B3=E8=AE=8A}=EC=B0=A0=EA=BC=BF=EC= =9F=BA=EF=BF=BD&j:+v=EB=8F=A3=EF=BF=BD=07=EC=B3=AD=E5=96=A9zZ+=EF=BF=BD= +zf=EF=BC=82=ED=86=92=EC=89=B1=EF=BF=BD~=EB=84=AE=EB=85=ACi=EF=BF=BD=E9= =8E=ACz=EF=BF=BD=1E=EC=B7=BF=E2=85=B1=EF=BF=BD?=EC=86=B3=E9=88=BA=EF=BF= =BD&=EF=BF=BD)=E5=88=AA=1Bf=EB=B7=8C^j=ED=91=B9y=EC=AC=B6=EB=81=B7@A=EC= =B2=BA=EB=9B=B4=EF=BF=BD=EF=BF=BD=0C0=EB=9D=A0h=EF=BF=BD=0F=EF=BF=BDi=EF= =BF=BD >=20 -- 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/