From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wang, Yalin" Subject: FW: Arch/arm/msm/memory.c:reserve_memory_for_mempools( ) Date: Fri, 28 Jun 2013 14:14:54 +0800 Message-ID: <35FD53F367049845BC99AC72306C23D19441BF586A@CNBJMBX05.corpusers.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: "'sboyd@codeaurora.org'" Cc: "linux-kernel@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Arnd Bergmann , David Brown , Bryan Huntsman List-Id: linux-arm-msm@vger.kernel.org Hi Sboy, I don't know who should I send this mail to . If you are not the right person, please forward To the right responsibl= e person , Thank you ! I have a question about msm kernel code : =46ile: Arch/arm/msm/memory.c reserve_memory_for_mempools() it call memblock_remove() directly, I think it's not safe sometimes , Should use arm_memblock_steal() function or some other similar Function= to make sure the removed memory is not reserved by memblock driver, In= case the removed memory is reserved by some other driver. Thanks=20 Yalin.Wang Software Engineer OS Kernel&Graphics =A0 Sony Mobile Communications Tel: +86 10 5966 9819 Phone: 18610323092 Address: No.16 Guangshun South Street, Chaoyang, Beijing, P.R.C. sonymobile.com =A0=A0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754662Ab3F1GPD (ORCPT ); Fri, 28 Jun 2013 02:15:03 -0400 Received: from cnbjrel02.sonyericsson.com ([219.141.167.166]:17573 "EHLO cnbjrel02.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754607Ab3F1GPA convert rfc822-to-8bit (ORCPT ); Fri, 28 Jun 2013 02:15:00 -0400 From: "Wang, Yalin" To: "'sboyd@codeaurora.org'" CC: "linux-kernel@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Arnd Bergmann , David Brown , Bryan Huntsman Date: Fri, 28 Jun 2013 14:14:54 +0800 Subject: FW: Arch/arm/msm/memory.c:reserve_memory_for_mempools( ) Thread-Topic: Arch/arm/msm/memory.c:reserve_memory_for_mempools( ) Thread-Index: Ac5zw0DWWyN963h+S5qFTNGI7gLoNQAAvsMg Message-ID: <35FD53F367049845BC99AC72306C23D19441BF586A@CNBJMBX05.corpusers.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sboy, I don't know who should I send this mail to . If you are not the right person, please forward To the right responsible person , Thank you ! I have a question about msm kernel code : File: Arch/arm/msm/memory.c reserve_memory_for_mempools() it call memblock_remove() directly, I think it's not safe sometimes , Should use arm_memblock_steal() function or some other similar Function to make sure the removed memory is not reserved by memblock driver, In case the removed memory is reserved by some other driver. Thanks Yalin.Wang Software Engineer OS Kernel&Graphics   Sony Mobile Communications Tel: +86 10 5966 9819 Phone: 18610323092 Address: No.16 Guangshun South Street, Chaoyang, Beijing, P.R.C. sonymobile.com    From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yalin.Wang@sonymobile.com (Wang, Yalin) Date: Fri, 28 Jun 2013 14:14:54 +0800 Subject: FW: Arch/arm/msm/memory.c:reserve_memory_for_mempools( ) Message-ID: <35FD53F367049845BC99AC72306C23D19441BF586A@CNBJMBX05.corpusers.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Sboy, I don't know who should I send this mail to . If you are not the right person, please forward To the right responsible person , Thank you ! I have a question about msm kernel code : File: Arch/arm/msm/memory.c reserve_memory_for_mempools() it call memblock_remove() directly, I think it's not safe sometimes , Should use arm_memblock_steal() function or some other similar Function to make sure the removed memory is not reserved by memblock driver, In case the removed memory is reserved by some other driver. Thanks Yalin.Wang Software Engineer OS Kernel&Graphics ? Sony Mobile Communications Tel: +86 10 5966 9819 Phone: 18610323092 Address: No.16 Guangshun South Street, Chaoyang, Beijing, P.R.C. sonymobile.com ??