RE: [RFC v2] arm:extend the reserved mrmory for initrd to be page aligned

2014-12-04 Thread Wang, Yalin
-Original Message- From: Catalin Marinas [mailto:catalin.mari...@arm.com] Sent: Thursday, December 04, 2014 8:03 PM To: Russell King - ARM Linux Cc: Wang, Yalin; 'linux...@kvack.org'; Will Deacon; 'linux- ker...@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org'; 'linux- arm

RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-10-09 Thread Wang, Yalin
Who guarantees there's no valuable data in [start, initrd_start) and [initrd_end, end) being corrupted? mm.. I am not sure if the memblock_reserve will reserve Memory from page aligned address? If not, do we need also make memblock_reserve the initrd memory From page aligned start(round down)

RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-27 Thread Wang, Yalin
-Original Message- On Thu, Sep 25, 2014 at 03:31:42PM +0100, Russell King - ARM Linux wrote: On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd

RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Wang, Yalin
On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page

[PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-19 Thread Wang, Yalin
this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page can't be freed by free_initrd_mem() function. Signed-off-by:

RE: [PATCH Resend] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-18 Thread Wang, Yalin
This patch extends the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page can't be freed by free_initrd_mem() function. Signed-off-by:

RE: [RFC] msm:rpm-smd:change msm_rpm_smd_work method

2014-09-17 Thread Wang, Yalin
Hi Bjorn, I see, Thanks for your kind remind :) -Original Message- On Tue, Sep 16, 2014 at 7:05 PM, Wang, Yalin yalin.w...@sonymobile.com wrote: [..] diff --git a/arch/arm/mach-msm/rpm-smd.c b/arch/arm/mach-msm/rpm-smd.c Hi Yalin, This file does not exist in mainline

[RFC] msm:rpm-smd:change msm_rpm_smd_work method

2014-09-16 Thread Wang, Yalin
this change msm_rpm_smd_work method to let it run not as a forever loop, this can improve some performance, because if the work_struct callback run forever, it will hold the work thread forever, and other work_struct can use it, it is not suitable for performance. Change-Id:

RE: [RFC] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
[mailto:li...@arm.linux.org.uk] Sent: Monday, September 15, 2014 4:46 PM To: Wang, Yalin Cc: 'Will Deacon'; 'linux-ker...@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org'; 'linux...@kvack.org'; linux-arm-msm@vger.kernel.org Subject: Re: [RFC] arm:extend the reserved mrmory for initrd

RE: [RFC] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
the same as the one passed by bootloads, I don't change it. It should be safe. -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Monday, September 15, 2014 5:30 PM To: Wang, Yalin Cc: 'Will Deacon'; 'linux-ker...@vger.kernel.org'; 'linux-arm-ker

RE: [RFC] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
Hi Oh, I see your meaning, Yeah , my initrd is a cpio image, And it can still work after apply this patch. -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Monday, September 15, 2014 6:17 PM To: Wang, Yalin Cc: 'Will Deacon'; 'linux-ker

RE: [RFC] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
Oh, I see, I don't consider non-of platform kernels, I will send V2 patch for this . Thanks -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Monday, September 15, 2014 6:30 PM To: Wang, Yalin Cc: 'Will Deacon'; 'linux-ker...@vger.kernel.org

[RFC v2] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page can't be freed by free_initrd_mem() function. Signed-off-by:

RE: [RFC v2] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
Great! yeah, you are right, just keep the change in free_initrd_mem( ) is ok. we don't need keep reserved memory to be aligned , Thanks! From: Russell King - ARM Linux [li...@arm.linux.org.uk] Sent: Monday, September 15, 2014 7:33 PM To: Wang, Yalin Cc

[RFC v3] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-15 Thread Wang, Yalin
this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page can't be freed by free_initrd_mem() function. Signed-off-by:

[RFC] arm:extend the reserved mrmory for initrd to be page aligned

2014-09-14 Thread Wang, Yalin
this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page can't be freed by free_initrd_mem() function. Signed-off-by:

回复: kexec on APQ8074

2014-09-12 Thread Wang, Yalin
Do you pass a initrd to kexec kernel? i don't see it. - 发送自我的Sony Xperia™智能手机 Noé RUBINSTEIN编写 2014-09-12 4:02 GMT+02:00 Wang, Yalin yalin.w...@sonymobile.com: What's your @memory parameters in your dtb file? And what's your PHYSICAL_OFFSET of your kexec kernel ? TEXT_OFFSET

Don't use CMA pages for page cache

2014-06-23 Thread Wang, Yalin
pages , If we don't use cma pages for page_cache page, Cma page will be not used if there is not enough Normal Free memory , but there are lots of cma pages. Will have oom sometimes, especially in page reclaim Call path . Thanks Wang Yalin Engineer OSDD -- To unsubscribe from this list: send

bug fix for mmc queue.c

2014-01-21 Thread Wang, Yalin
Hi We encounter a problem when use sdcard , The driver probe will failed like this : 6[ 121.644102] mmc0: mmc_start_bkops: Starting bkops 6[ 133.039845] mmc0: mmc_start_bkops: raw_bkops_status=0x2, from_exception=0 6[ 133.039888] mmc0: mmc_start_bkops: Starting bkops 6[ 147.931642] mmc0:

question about Make CONFIG_STRICT_MEMORY_RWX even stricter patch

2013-10-29 Thread Wang, Yalin
Hi , We will cherry-pick this patch : http://cgit.sonyericsson.net/cgit.cgi/kernel/msm.git/commit/?id=2504e77ddedfa34dbd64e757a14e5b21a613c000 for security reason , but I have a question about this patch , this patch will make .text section permission become RX but not writable , so some

RE: question about Make CONFIG_STRICT_MEMORY_RWX even stricter patch

2013-10-29 Thread Wang, Yalin
Hi I see , __patch_text( ) this function has been changed to make sure The text section can be writable . Thanks -Original Message- From: Wang, Yalin Sent: Tuesday, October 29, 2013 1:50 PM To: 'lbas...@codeaurora.org' Cc: 'linux-arm-msm-ow...@vger.kernel.org'; linux-arm-msm

FW: Arch/arm/msm/memory.c:reserve_memory_for_mempools( )

2013-06-28 Thread Wang, Yalin
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