RE: BUG report about ipt_do_table( )

2013-10-16 Thread Wang, Yalin
- From: Wang, Yalin Sent: Friday, October 11, 2013 7:15 PM To: 'Will Deacon' Cc: 'linux-arm-msm-ow...@vger.kernel.org'; linux-kernel@vger.kernel.org; Peng, Arthur; Zhang, Bojie; Gu, Youcai 1 (EXT); Alevoor, Raghavendra 2 Subject: RE: BUG report about ipt_do_table( ) Hi Will, Thanks for your

RE: BUG report about ipt_do_table( )

2013-10-17 Thread Wang, Yalin
hi Will yes, of course . by the way, could you send me your delivered commit link after you submit ? Thanks -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Thursday, October 17, 2013 6:41 PM To: Wang, Yalin Cc: 'linux-arm-msm-ow...@vger.kernel.org'; 'linux

RE: bug report about assert at [ kernel/fs/jbd2/transaction.c:2138 ]

2013-11-21 Thread Wang, Yalin
and I make a diff as the attachment , $ git diff 99aa78466777083255b876293e9e83dec7cd809a:./commit.c v3.12:./commit.c ~/commit.c.diff -Original Message- From: Theodore Ts'o [mailto:ty...@mit.edu] Sent: Friday, November 22, 2013 9:33 AM To: Wang, Yalin Cc: 'linux-arch-ow

RE: BUG report about ipt_do_table( )

2013-10-11 Thread Wang, Yalin
the result as soon as possible ! Thanks -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Friday, October 11, 2013 7:03 PM To: Wang, Yalin Cc: 'linux-arm-msm-ow...@vger.kernel.org'; linux-kernel@vger.kernel.org; Peng, Arthur; Zhang, Bojie; Gu, Youcai 1 (EXT); Alevoor

RE: change kmalloc into vmalloc for large memory allocations

2014-03-03 Thread Wang, Yalin
...@suse.de] Sent: Monday, March 03, 2014 5:23 PM To: Wang, Yalin Cc: 'linux-kernel@vger.kernel.org'; Mark Brown; 'pe...@perex.cz'; 'alsa-de...@alsa-project.org'; Liam Girdwood Subject: Re: change kmalloc into vmalloc for large memory allocations At Mon, 03 Mar 2014 10:19:58 +0100, Takashi Iwai wrote

RE: [alsa-devel] change kmalloc into vmalloc for large memory allocations

2014-03-03 Thread Wang, Yalin
Hi I am curious what number range is correct here for card-num_links ? Thanks -Original Message- From: Lars-Peter Clausen [mailto:l...@metafoo.de] Sent: Monday, March 03, 2014 7:35 PM To: Wang, Yalin Cc: 'Takashi Iwai'; 'alsa-de...@alsa-project.org'; Mark Brown; 'linux-kernel

RE: [alsa-devel] change kmalloc into vmalloc for large memory allocations

2014-03-03 Thread Wang, Yalin
do like this ? Thanks -Original Message- From: Lars-Peter Clausen [mailto:l...@metafoo.de] Sent: Monday, March 03, 2014 7:46 PM To: Wang, Yalin Cc: 'Takashi Iwai'; 'alsa-de...@alsa-project.org'; Mark Brown; 'linux-kernel@vger.kernel.org'; Liam Girdwood Subject: Re: [alsa-devel] change

RE: [alsa-devel] change kmalloc into vmalloc for large memory allocations

2014-03-03 Thread Wang, Yalin
Clausen [mailto:l...@metafoo.de] Sent: Monday, March 03, 2014 10:23 PM To: Wang, Yalin Cc: 'Takashi Iwai'; 'alsa-de...@alsa-project.org'; Mark Brown; 'linux-kernel@vger.kernel.org'; Liam Girdwood Subject: Re: [alsa-devel] change kmalloc into vmalloc for large memory allocations On 03/03/2014 02:29

RE: [alsa-devel] change kmalloc into vmalloc for large memory allocations

2014-03-03 Thread Wang, Yalin
...@suse.de] Sent: Monday, March 03, 2014 10:44 PM To: Wang, Yalin Cc: 'Lars-Peter Clausen'; 'alsa-de...@alsa-project.org'; Mark Brown; 'linux-kernel@vger.kernel.org'; Liam Girdwood Subject: Re: [alsa-devel] change kmalloc into vmalloc for large memory allocations At Mon, 3 Mar 2014 22:29:19 +0800

RE: A bug about system call on ARM

2013-06-14 Thread Wang, Yalin
Hi Will, We have tested the patch, It seems ok in the stability test . We have merged it into our main branch . Thanks for your patch ! -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Monday, June 03, 2013 5:54 PM To: Wang, Yalin Cc: 'richard -rw- weinberger

RE: A bug about system call on ARM

2013-06-03 Thread Wang, Yalin
. Thanks for your help . -Original Message- From: Wang, Yalin Sent: Monday, June 03, 2013 5:58 PM To: 'Will Deacon' Cc: 'richard -rw- weinberger'; 'linux-a...@vger.kernel.org'; 'linux-kernel@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org' Subject: RE: A bug about system call

RE: A bug about system call on ARM

2013-06-04 Thread Wang, Yalin
, June 04, 2013 4:49 PM To: Wang, Yalin Cc: 'richard -rw- weinberger'; 'linux-a...@vger.kernel.org'; 'linux-kernel@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org' Subject: Re: A bug about system call on ARM On Tue, Jun 04, 2013 at 06:33:20AM +0100, Wang, Yalin wrote: Hi Will, Hello

ARM pagetable setting in Linux

2013-06-25 Thread Wang, Yalin
Hi Will, I have a question about arm pagetable setting in Linux . From armV6, there is TTBR0 and TTBR1 translation base address registers in mmu . But I found linux only use TTBR0 for translation base address , Could we use TTBR0 and TTBR1 to split user task and kernel pagetables

RE: A bug about system call on ARM

2013-05-29 Thread Wang, Yalin
Hi Richard, Thanks for your reply , I will make a check for this . -Original Message- From: richard -rw- weinberger [mailto:richard.weinber...@gmail.com] Sent: Wednesday, May 29, 2013 3:35 PM To: Wang, Yalin Cc: linux-a...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re

RE: A bug about system call on ARM

2013-05-29 Thread Wang, Yalin
Hi I have download the latest linux kernel code 3.9.4 And Compare with 3.4.0 kernel . It seems there is no change for this part , So it will still happen . Does anyone know who is responsible for arm arch part kernel code ? Thanks -Original Message- From: Wang, Yalin Sent

RE: definition of sys_access function

2013-05-29 Thread Wang, Yalin
Hi Richard , This system call is defined in this file : Kernel/fs/open.c Please check it . Thanks -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of richard -rw- weinberger Sent: Wednesday, May 29, 2013 4:19 PM To:

RE: definition of sys_access function

2013-05-29 Thread Wang, Yalin
Hi You should search like this in fs/open.c SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) You can find it . Thanks -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of johnspaul92 Sent: Wednesday,

RE: A bug about system call on ARM

2013-05-29 Thread Wang, Yalin
! -Original Message- From: Wang, Yalin Sent: Wednesday, May 29, 2013 5:51 PM To: 'Will Deacon'; richard -rw- weinberger Cc: linux-a...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: RE: A bug about system call on ARM Hi This is kernel.log

RE: A bug about system call on ARM

2013-05-30 Thread Wang, Yalin
[mailto:will.dea...@arm.com] Sent: Thursday, May 30, 2013 7:41 PM To: Wang, Yalin Cc: 'richard -rw- weinberger'; 'linux-a...@vger.kernel.org'; 'linux-kernel@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org' Subject: Re: A bug about system call on ARM On Thu, May 30, 2013 at 10:09:49AM +0100, Will Deacon

RE: A bug about system call on ARM

2013-05-31 Thread Wang, Yalin
+ get_thread_info tsk Is this change ok ? Thanks -Original Message- From: linux-arch-ow...@vger.kernel.org [mailto:linux-arch-ow...@vger.kernel.org] On Behalf Of Will Deacon Sent: Friday, May 31, 2013 4:47 PM To: Wang, Yalin Cc: 'richard -rw- weinberger'; 'linux-a...@vger.kernel.org

RE: A bug about system call on ARM

2013-05-31 Thread Wang, Yalin
Hi Will, I see, I will make one more test . Thanks for your clarification . -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Friday, May 31, 2013 7:13 PM To: Wang, Yalin Cc: 'richard -rw- weinberger'; 'linux-a...@vger.kernel.org'; 'linux-kernel@vger.kernel.org

RE: A bug about system call on ARM

2013-06-02 Thread Wang, Yalin
Hi Will, I have a question about this patch . If the user space is thumb mode, The PC should be rewind by 2 bytes, So the fix_up code should be Sub lr, lr, #2 . Am I right ? Thanks for your help . -Original Message- From: Wang, Yalin Sent: Friday, May 31, 2013 7:31 PM

RE: A bug about system call on ARM

2013-06-03 Thread Wang, Yalin
...@arm.com] Sent: Monday, June 03, 2013 5:54 PM To: Wang, Yalin Cc: 'richard -rw- weinberger'; 'linux-a...@vger.kernel.org'; 'linux-kernel@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org' Subject: Re: A bug about system call on ARM On Mon, Jun 03, 2013 at 06:25:26AM +0100, Wang, Yalin wrote

SDIV / UDIV Question

2013-10-09 Thread Wang, Yalin
Hi Will I have a question about sdiv/ udiv instructions : In armv7 A/R TRM, it said sdiv/udiv will cause Divide by zero as undefined exception or just return zero (decided by implementation) . So in kernel , should we need register a undef hook to Get this undef exception and send SIGFPE

RE: SDIV / UDIV Question

2013-10-09 Thread Wang, Yalin
, Yalin Cc: 'linux-arm-msm-ow...@vger.kernel.org'; linux-kernel@vger.kernel.org Subject: Re: SDIV / UDIV Question On Wed, Oct 09, 2013 at 08:08:05AM +0100, Wang, Yalin wrote: I have a question about sdiv/ udiv instructions : In armv7 A/R TRM, it said sdiv/udiv will cause Divide by zero

RE: BUG report about ipt_do_table( )

2013-10-10 Thread Wang, Yalin
) , This is really out of order write, will this happened on modern armv7 CPU? Especially like cortex-a15 , it can execute code out of order . Thanks you . -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Thursday, October 10, 2013 5:48 PM To: Wang, Yalin Cc

RE: BUG report about ipt_do_table( )

2013-10-10 Thread Wang, Yalin
! Am I right ? Thank you ! -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Thursday, October 10, 2013 7:03 PM To: Wang, Yalin Cc: 'linux-arm-msm-ow...@vger.kernel.org'; linux-kernel@vger.kernel.org; Peng, Arthur; Zhang, Bojie Subject: Re: BUG report about

RE: BUG report about ipt_do_table( )

2013-10-10 Thread Wang, Yalin
...@arm.com] Sent: Thursday, October 10, 2013 10:19 PM To: Wang, Yalin Cc: 'linux-arm-msm-ow...@vger.kernel.org'; linux-kernel@vger.kernel.org; Peng, Arthur; Zhang, Bojie; Gu, Youcai 1 (EXT); Alevoor, Raghavendra 2 Subject: Re: BUG report about ipt_do_table( ) On Thu, Oct 10, 2013 at 12:26:38PM +0100, Wang

RE: autosleep suspend too frquent problem

2014-06-05 Thread Wang, Yalin
, It is not acceptable, I think also need to be fixed to Avoid this special scenario . Thanks -Original Message- From: Ulf Hansson [mailto:ulf.hans...@linaro.org] Sent: Wednesday, June 04, 2014 5:53 AM To: Pavel Machek Cc: Wang, Yalin; len.br...@intel.com; r...@sisk.pl; linux...@vger.kernel.org

RE: autosleep suspend too frquent problem

2014-06-05 Thread Wang, Yalin
check to make sure Not suspend frequently , could autosleep also add this ? Thanks -Original Message- From: Pavel Machek [mailto:pa...@ucw.cz] Sent: Thursday, June 05, 2014 9:51 PM To: Wang, Yalin Cc: 'Ulf Hansson'; linux...@vger.kernel.org; len.br...@intel.com; r...@sisk.pl; linux

MIGRATE_RESERVE pages in show_mem function problems

2014-05-27 Thread Wang, Yalin
Hi I find the show_mem function show page MIGRATE types result is not correct for MIGRATE_RESERVE pages : Normal: 1582*4kB (UEMC) 1317*8kB (UEMC) 1020*16kB (UEMC) 450*32kB (UEMC) 206*64kB (UEMC) 40*128kB (UM) 10*256kB (UM) 10*512kB (UM) 1*1024kB (M) 0*2048kB 0*4096kB = 74592kB Some pages

RE: MIGRATE_RESERVE pages in show_mem function problems

2014-06-03 Thread Wang, Yalin
Hi I see, Your patch should be ok to fix this problem, Could I know if this patch will be merged into kernel mainline branch? Thanks -Original Message- From: Vlastimil Babka [mailto:vba...@suse.cz] Sent: Friday, May 30, 2014 10:59 PM To: Wang, Yalin Cc: 'a...@linux-foundation.org

autosleep suspend too frquent problem

2014-06-03 Thread Wang, Yalin
Wang Yalin Engineer OSDD Sony Mobile Communications -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

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:

RE: FW: bug fix for mmc queue.c

2014-01-23 Thread Wang, Yalin
; --- -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Thursday, January 23, 2014 10:01 PM To: Wang, Yalin Subject: Re: FW: bug fix for mmc queue.c On Thu, Jan 23, 2014 at 08:14:56AM +, Wang, Yalin wrote: Hi Will, Hello, I

RE: ARM pagetable setting in Linux

2013-06-27 Thread Wang, Yalin
a discussion about this . Thank you both ! -Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Thursday, June 27, 2013 1:55 AM To: Will Deacon Cc: Wang, Yalin; 'linux-a...@vger.kernel.org'; 'linux-kernel@vger.kernel.org'; linux-arm-ker

[no subject]

2013-06-27 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

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

CONFIG_ENABLE_VMALLOC_SAVING problem

2014-08-19 Thread Wang, Yalin
Hi I found when I enable CONFIG_ENABLE_VMALLOC_SAVING on ARM arch, Vmalloc still only use VMALLOC_START --  VMALLOC_END virtual address, It don't use the memory hole address, Only  function call  get_vm_area_caller  like ioremap can use These memory hole address . Why not change vmalloc also

[PATCH RFC] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit

2014-10-23 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig| 1 + arch/arm/include/asm/bitrev.h | 21 +

[RFC V2] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-27 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig| 1 + arch/arm/include/asm/bitrev.h | 21 +

RE: [RFC V2] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-27 Thread Wang, Yalin
If this is done, the direct uses of byte_rev_table in drivers/net/wireless/ath/carl9170/phy.c and sound/usb/6fire/firmware.c should be converted too? I think use bitrev8() is safer than to use byte_rev_table[] directly. -- To unsubscribe from this list: send the line unsubscribe

[RFC V3] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-27 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig| 1 + arch/arm/include/asm/bitrev.h | 28

[PATCH] arm:free_initrd_mem should also free the memblock

2014-09-12 Thread Wang, Yalin
this patch fix the memblock statics for memblock in file /sys/kernel/debug/memblock/reserved if we don't call memblock_free the initrd will still be marked as reserved, even they are freed. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/mm/init.c | 1 + 1 file changed, 1

[PATCH] arm64:free_initrd_mem should also free the memblock

2014-09-12 Thread Wang, Yalin
this patch fix the memblock statics for memblock in file /sys/kernel/debug/memblock/reserved if we don't call memblock_free the initrd will still be marked as reserved, even they are freed. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm64/mm/init.c | 4 +++- 1 file changed, 3

[PATCH] arm:extend __init_end to a page align address

2014-09-14 Thread Wang, Yalin
this patch change the __init_end address to a page align address, so that free_initmem() can free the whole .init section, because if the end address is not page aligned, it will round down to a page align address, then the tail unligned page will not be freed. Signed-off-by: wang

[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:

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-kernel@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org'; 'linux...@kvack.org'; linux-arm-...@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-kernel@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-kernel

[RFC Resend] arm:extend __init_end to a page align address

2014-09-15 Thread Wang, Yalin
this patch change the __init_end address to a page align address, so that free_initmem() can free the whole .init section, because if the end address is not page aligned, it will round down to a page align address, then the tail unligned page will not be freed. Signed-off-by: Yalin wang

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-kernel@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

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: [RFC V3] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-27 Thread Wang, Yalin
From: Will Deacon [mailto:will.dea...@arm.com] +++ b/arch/arm/include/asm/bitrev.h @@ -0,0 +1,28 @@ +#ifndef __ASM_ARM_BITREV_H +#define __ASM_ARM_BITREV_H + +static __always_inline __attribute_const__ u32 __arch_bitrev32(u32 x) +{ + if (__builtin_constant_p(x)) { +

RE: [PATCH] 6fire: Convert byte_rev_table uses to bitrev8

2014-10-28 Thread Wang, Yalin
at 14:37 +0800, Wang, Yalin wrote: this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. [] diff --git a/include/linux/bitrev.h b/include/linux/bitrev.h index 7ffe03f..ef5b2bb 100644

RE: [RFC V3] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-28 Thread Wang, Yalin
From: Will Deacon [mailto:will.dea...@arm.com] Yup, sorry, I didn't realise this patch covered both architectures. It would probably be a good idea to split it into 3 parts: a core part, then the two architectural bits. Will Ok , I will split the patch into three parts, And send again .

RE: [PATCH] 6fire: Convert byte_rev_table uses to bitrev8

2014-10-28 Thread Wang, Yalin
From: Joe Perches [mailto:j...@perches.com] I think the most safe way is change byte_rev_table[] to be satic, So that no driver can access it directly, The build error can remind the developer if they use byte_rev_table[] Directly . You can do that with your later patch, but the existing

[RFC V4 1/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-28 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. We also change byte_rev_table[] to be static, to make sure no drivers can access it directly. Change bitrev16() bitrev32() to be inline function, don't

[RFC V4 2/3] arm:add bitrev.h file to support rbit instruction

2014-10-28 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bitrev.h | 28 2 files changed, 29

[RFC V4 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-28 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/bitrev.h | 28 2 files changed, 29

RE: [RFC V2] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-28 Thread Wang, Yalin
From: Rob Herring [mailto:robherri...@gmail.com] diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9532f8d..263c28c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -36,6 +36,7 @@ config ARM64 select HARDIRQS_SW_RESEND select HAVE_ARCH_AUDITSYSCALL

RE: [RFC V4 1/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-28 Thread Wang, Yalin
From: Joe Perches [mailto:j...@perches.com] We also change byte_rev_table[] to be static, to make sure no drivers can access it directly. You break the build with this patch. You can't do this until the users of the table are converted. So far, they are not. I submitted patches

[RFC V5 1/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-28 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. Change bitrev16() bitrev32() to be inline function, don't need export symbol for these tiny functions. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com

[RFC V5 2/3] arm:add bitrev.h file to support rbit instruction

2014-10-28 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bitrev.h | 28 2 files changed, 29

[RFC V5 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-28 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/bitrev.h | 28 2 files changed, 29

RE: [RFC V5 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Wang, Yalin
From: Will Deacon [mailto:will.dea...@arm.com] Sent: Thursday, October 30, 2014 8:01 PM To: Wang, Yalin Cc: 'Rob Herring'; 'Joe Perches'; 'Russell King - ARM Linux'; 'linux- ker...@vger.kernel.org'; 'akinobu.m...@gmail.com'; 'linux...@kvack.org'; 'linux-arm-ker...@lists.infradead.org

[RFC V6 1/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-30 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use some architecture's bitrev hardware instruction to do bitrev operation. Introduce __constant_bitrev* macro for constant bitrev operation. Change __bitrev16() __bitrev32() to be inline function, don't need export symbol

[RFC V6 2/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-30 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bitrev.h | 21 + 2 files changed, 22 insertions(+)

[RFC V6 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/bitrev.h | 21 + 2 files changed, 22 insertions(+)

[RFC V6 2/3] arm:add bitrev.h file to support rbit instruction

2014-10-30 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bitrev.h | 21 + 2 files changed, 22 insertions(+)

[RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
This patch remove clear_thread_flag(TIF_UPROBE) in do_work_pending(), because uprobe_notify_resume() have do this. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/kernel/signal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/signal.c

RE: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
From: Joe Perches [mailto:j...@perches.com] diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c [] @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall) return restart;

RE: [RFC V6 2/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-31 Thread Wang, Yalin
From: Wang, Yalin Subject: [RFC V6 2/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/Kconfig

RE: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
From: Joe Perches [mailto:j...@perches.com] @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall) return restart; } syscall = 0;

[RFC V2] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
This patch remove clear_thread_flag(TIF_UPROBE) in do_work_pending(), because uprobe_notify_resume() have do this. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/kernel/signal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/kernel/signal.c

[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:

[PATCH] regmap:change struct regmap's internal locks as union

2014-09-11 Thread Wang, Yalin
this patch change struct regmap-mutex and struct regmap-spinlock as an union, because these 2 members are only used one of them, we change it to shrink the struct size. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- drivers/base/regmap/internal.h | 6 -- 1 file changed, 4

[PATCH] cifs:fix build warnings

2014-09-11 Thread Wang, Yalin
this fix the following warnings: kernel.torvalds.git/fs/cifs/sess.c:751:1: warning: 'sess_auth_lanman' defined but not used [-Wunused-function] kernel.torvalds.git/fs/cifs/sess.c:1109:1: warning: 'sess_auth_kerberos' defined but not used [-Wunused-function] Signed-off-by: Yalin Wang

free initrd / cma pages problems with memblock

2014-09-03 Thread Wang, Yalin
Hi I found the freed reserved memory by free_initrd_mem( ) and cma_activate_area( ) Are still marked as reserved in /sys/kernel/debug/memblock/reserved . I think This is not correct and not suitable for memory debug, Why not also call memblock_free during these functions? So that

[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:

[PATCH v2] arm:extend __init_end to a page align address

2014-09-15 Thread Wang, Yalin
this patch change the __init_end address to a page align address, so that free_initmem() can free the whole .init section, because if the end address is not page aligned, it will round down to a page align address, then the tail unligned page will not be freed. Signed-off-by: wang

RE: [PATCH] arm64:free_initrd_mem should also free the memblock

2014-09-15 Thread Wang, Yalin
, Russell King - ARM Linux wrote: On Mon, Sep 15, 2014 at 07:33:34PM +0100, Will Deacon wrote: On Fri, Sep 12, 2014 at 11:17:18AM +0100, Wang, Yalin wrote: this patch fix the memblock statics for memblock in file /sys/kernel/debug/memblock/reserved if we don't call memblock_free the initrd

[RFC] change keep_initrd and free_initrd_mem into .init section

2014-09-15 Thread Wang, Yalin
this patch change keep_initrd to __initdata section, and free_initrd_mem to __init section so that they can be freed by free_initmem, free_initrd_mem is only called by free_initrd function, so it's safe to free it after use. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com ---

[RFC resend] arm:change keep_initrd and free_initrd_mem into .init section

2014-09-15 Thread Wang, Yalin
this patch change keep_initrd to __initdata section, and free_initrd_mem to __init section so that they can be freed by free_initmem, free_initrd_mem is only called by free_initrd function, so it's safe to free it after use. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com ---

[RFC] arm:fdt:free the fdt reserved memory

2014-09-16 Thread Wang, Yalin
this patch make some change to fdt driver, so that we can free the reserved memory which is reserved by fdt blob for unflatten device tree, we free it in free_initmem, this memory will not be used after init calls. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/mm/init.c |

[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:

[RFC resend] arm:fdt:free the fdt reserved memory

2014-09-16 Thread Wang, Yalin
this patch make some change to fdt driver, so that we can free the reserved memory which is reserved by fdt blob for unflatten device tree, we free it in free_initmem, this memory will not be used after init calls. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- arch/arm/mm/init.c |

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

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

2014-09-17 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:

[RFC] fdt:free the fdt reserved memory

2014-09-18 Thread Wang, Yalin
This patch make some change to unflatten_dt_node(), make sure the device_node don't reference to fdt raw blob memory, so that we can free the raw blob reserved memory after initcalls. Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- drivers/of/fdt.c | 27 +++

RE: [PATCH] arm64:free_initrd_mem should also free the memblock

2014-09-18 Thread Wang, Yalin
Linux [mailto:li...@arm.linux.org.uk] Sent: Thursday, September 18, 2014 2:13 AM To: Catalin Marinas Cc: Wang, Yalin; Will Deacon; 'linux...@kvack.org'; 'linux-kernel@vger.kernel.org'; 'linux-arm-ker...@lists.infradead.org' Subject: Re: [PATCH] arm64:free_initrd_mem should also free the memblock

RE: [PATCH] arm64:free_initrd_mem should also free the memblock

2014-09-18 Thread Wang, Yalin
for reserved memory debug . Thanks ! From: Russell King - ARM Linux [li...@arm.linux.org.uk] Sent: Thursday, September 18, 2014 5:59 PM To: Wang, Yalin Cc: Catalin Marinas; Will Deacon; 'linux...@kvack.org'; 'linux-kernel@vger.kernel.org'; 'linux-arm-ker

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

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

2014-09-25 Thread Wang, Yalin
They were so close ;) I can see three patches but none of them exactly right: 8157/1 - wrong diff format 8159/1 - correct format, does not have my ack (you can take this one if you want) 8162/1 - got my ack this time but with the wrong diff format again Maybe a pull request is

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: [RFC V6 2/3] arm:add bitrev.h file to support rbit instruction

2014-11-13 Thread Wang, Yalin
-Original Message- From: Russell King - ARM Linux [mailto:li...@arm.linux.org.uk] Sent: Friday, November 14, 2014 7:53 AM To: Wang, Yalin On Fri, Oct 31, 2014 at 01:42:44PM +0800, Wang, Yalin wrote: This patch add bitrev.h file to support rbit instruction, so that we can do

[PATCH] 6fire: Convert byte_rev_table uses to bitrev8

2014-11-13 Thread Wang, Yalin
Use the inline function instead of directly indexing the array. This allows some architectures with hardware instructions for bit reversals to eliminate the array. Signed-off-by: Joe Perches j...@perches.com Signed-off-by: Yalin Wang yalin.w...@sonymobile.com --- sound/usb/6fire/firmware.c | 2

  1   2   3   4   >