RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-21 Thread Wang, Xiaoming
Dear tejun > -Original Message- > From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Friday, April 17, 2015 11:13 PM > To: Alexey Dobriyan > Cc: Wang, Xiaoming; Linux Kernel; Mel Gorman; Andrew Morton > Subject: Re: [PATCH] proc: move the

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-21 Thread Wang, Xiaoming
Dear tejun -Original Message- From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo Sent: Friday, April 17, 2015 11:13 PM To: Alexey Dobriyan Cc: Wang, Xiaoming; Linux Kernel; Mel Gorman; Andrew Morton Subject: Re: [PATCH] proc: move the adding option Ngid to the end

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang, Xiaoming
Dear tejun > -Original Message- > From: hte...@gmail.com [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Friday, April 17, 2015 11:42 AM > To: Wang, Xiaoming > Cc: a...@linux-foundation.org; o...@redhat.com; > andriy.shevche...@linux.intel.com; li...@rasmusvil

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang, Xiaoming
Dear tejun > -Original Message- > From: hte...@gmail.com [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Friday, April 17, 2015 11:26 AM > To: Wang, Xiaoming > Cc: a...@linux-foundation.org; o...@redhat.com; > andriy.shevche...@linux.intel.com; li...@rasmusvil

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang, Xiaoming
Dear tejun > -Original Message- > From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Friday, April 17, 2015 10:56 AM > To: Wang, Xiaoming > Cc: a...@linux-foundation.org; o...@redhat.com; > andriy.shevche...@linux.intel.com; li...@rasmusvil

[PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang Xiaoming
other application. As the Ngid is added later, so it should be added at the end of task_state. It is better keeping compatible to avoid such issue. Signed-off-by: Schallberger, Timothy M Signed-off-by: Dongxing Zhang Signed-off-by: Wang Xiaoming --- fs/proc/array.c |5 +++-- 1 file chan

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang, Xiaoming
Dear tejun -Original Message- From: hte...@gmail.com [mailto:hte...@gmail.com] On Behalf Of Tejun Heo Sent: Friday, April 17, 2015 11:42 AM To: Wang, Xiaoming Cc: a...@linux-foundation.org; o...@redhat.com; andriy.shevche...@linux.intel.com; li...@rasmusvillemoes.dk; ebied

[PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang Xiaoming
application. As the Ngid is added later, so it should be added at the end of task_state. It is better keeping compatible to avoid such issue. Signed-off-by: Schallberger, Timothy M timothy.m.schallber...@intel.com Signed-off-by: Dongxing Zhang dongxing.zh...@intel.com Signed-off-by: Wang Xiaoming

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang, Xiaoming
Dear tejun -Original Message- From: hte...@gmail.com [mailto:hte...@gmail.com] On Behalf Of Tejun Heo Sent: Friday, April 17, 2015 11:26 AM To: Wang, Xiaoming Cc: a...@linux-foundation.org; o...@redhat.com; andriy.shevche...@linux.intel.com; li...@rasmusvillemoes.dk; ebied

RE: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-16 Thread Wang, Xiaoming
Dear tejun -Original Message- From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo Sent: Friday, April 17, 2015 10:56 AM To: Wang, Xiaoming Cc: a...@linux-foundation.org; o...@redhat.com; andriy.shevche...@linux.intel.com; li...@rasmusvillemoes.dk; ebied...@xmission.com

[PATCH v6] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-09 Thread Wang Xiaoming
t_size which can configure by kernel cmdline. This can meet different requirement. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: Wang Xiaoming --- patch v1 make this change at Kconfig which needs to edit the .config manually. https://lkml.org/lkml/2015/1/25/571 patch v

[PATCH v6] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-09 Thread Wang Xiaoming
which can configure by kernel cmdline. This can meet different requirement. Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: Zhang Dongxing dongxing.zh...@intel.com Signed-off-by: Wang Xiaoming xiaoming.w...@intel.com --- patch v1 make this change at Kconfig which needs to edit

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-08 Thread Wang, Xiaoming
> -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Friday, March 6, 2015 11:20 PM > To: Wang, Xiaoming > Cc: Jan Beulich; l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; > ch...@chris-wilson.co.uk; david.vra.

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-08 Thread Wang, Xiaoming
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, March 6, 2015 11:20 PM To: Wang, Xiaoming Cc: Jan Beulich; l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; ch...@chris-wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.org

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-05 Thread Wang, Xiaoming
Dear Jan > -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Thursday, March 5, 2015 5:00 PM > To: Wang, Xiaoming > Cc: l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; chris@chris- > wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-05 Thread Wang, Xiaoming
Dear Jan > -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Thursday, March 5, 2015 4:40 PM > To: Wang, Xiaoming > Cc: l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; chris@chris- > wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-05 Thread Wang, Xiaoming
Dear Jan -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Thursday, March 5, 2015 5:00 PM To: Wang, Xiaoming Cc: l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; chris@chris- wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.org; heiko.carst

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-05 Thread Wang, Xiaoming
Dear Jan -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Thursday, March 5, 2015 4:40 PM To: Wang, Xiaoming Cc: l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; chris@chris- wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.org; heiko.carst

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-04 Thread Wang, Xiaoming
> -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Thursday, March 5, 2015 3:43 AM > To: Wang, Xiaoming > Cc: ch...@chris-wilson.co.uk; david.vra...@citrix.com; > lau...@codeaurora.org; heiko.carst...@de.ibm.com; li...@horizon.com

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-04 Thread Wang, Xiaoming
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Thursday, March 5, 2015 3:43 AM To: Wang, Xiaoming Cc: ch...@chris-wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.org; heiko.carst...@de.ibm.com; li...@horizon.com; l...@aserp2030

[PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-03 Thread Wang Xiaoming
t_size which can configure by kernel cmdline. This can meet different requirement. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: Wang Xiaoming --- patch v1 make this change at Kconfig which needs to edit the .config manually. https://lkml.org/lkml/2015/1/25/571 patch v

[PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-03 Thread Wang Xiaoming
which can configure by kernel cmdline. This can meet different requirement. Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: Zhang Dongxing dongxing.zh...@intel.com Signed-off-by: Wang Xiaoming xiaoming.w...@intel.com --- patch v1 make this change at Kconfig which needs to edit

RE: [Xen-devel] [PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-18 Thread Wang, Xiaoming
Dear Jan > -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, February 18, 2015 5:35 PM > To: Wang, Xiaoming > Cc: ch...@chris-wilson.co.uk; david.vra...@citrix.com; > lau...@codeaurora.org; heiko.carst...@de.ibm.com; li...@horizon.com;

RE: [Xen-devel] [PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-18 Thread Wang, Xiaoming
Dear Jan > -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Tuesday, February 17, 2015 6:09 PM > To: Wang, Xiaoming > Cc: ch...@chris-wilson.co.uk; david.vra...@citrix.com; > lau...@codeaurora.org; heiko.carst...@de.ibm.com; li...@horizon.com;

RE: [Xen-devel] [PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-18 Thread Wang, Xiaoming
Dear Jan -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Wednesday, February 18, 2015 5:35 PM To: Wang, Xiaoming Cc: ch...@chris-wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.org; heiko.carst...@de.ibm.com; li...@horizon.com; Liu, Chuansheng; Zhang

RE: [Xen-devel] [PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-18 Thread Wang, Xiaoming
Dear Jan -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Tuesday, February 17, 2015 6:09 PM To: Wang, Xiaoming Cc: ch...@chris-wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.org; heiko.carst...@de.ibm.com; li...@horizon.com; Liu, Chuansheng; Zhang

[PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang Xiaoming
which can configure by kernel cmdline. This can meet different requirement. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: Wang Xiaoming --- patch v1 make this change at Kconfig which needs to edit the .config manually. https://lkml.org/lkml/2015/1/25/571 patch v

RE: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang, Xiaoming
Dear Wilk > -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Tuesday, February 17, 2015 6:13 AM > To: Wang, Xiaoming > Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; > david.vra...@citrix.com; linux-m...@linux-mips

RE: [PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang, Xiaoming
Dear Wilk -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Tuesday, February 17, 2015 6:13 AM To: Wang, Xiaoming Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; david.vra...@citrix.com; linux-m...@linux-mips.org; linux- ker

[PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang Xiaoming
can configure by kernel cmdline. This can meet different requirement. Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: Zhang Dongxing dongxing.zh...@intel.com Signed-off-by: Wang Xiaoming xiaoming.w...@intel.com --- patch v1 make this change at Kconfig which needs to edit

[PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-15 Thread Wang Xiaoming
t_size which can configure by BOARD_KERNEL_CMDLINE in BoardConfig.mk. This can meet different requirement. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: Wang Xiaoming --- patch v1 make this change at Kconfig which needs to edit the .config manually. https://lkml.or

[PATCH v3] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-15 Thread Wang Xiaoming
which can configure by BOARD_KERNEL_CMDLINE in BoardConfig.mk. This can meet different requirement. Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: Zhang Dongxing dongxing.zh...@intel.com Signed-off-by: Wang Xiaoming xiaoming.w...@intel.com --- patch v1 make this change

RE: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-11 Thread Wang, Xiaoming
Dear Wilk: > -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Thursday, February 12, 2015 4:49 AM > To: Wang, Xiaoming > Cc: David Vrabel; linux-m...@linux-mips.org; pebo...@tiscali.nl; Zhang, > Dongxing; lau...@codea

RE: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-11 Thread Wang, Xiaoming
Dear David > -Original Message- > From: David Vrabel [mailto:david.vra...@citrix.com] > Sent: Tuesday, February 10, 2015 5:46 PM > To: Wang, Xiaoming; Konrad Rzeszutek Wilk > Cc: linux-m...@linux-mips.org; pebo...@tiscali.nl; Zhang, Dongxing; > lau...@codea

RE: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-11 Thread Wang, Xiaoming
Dear Wilk: -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Thursday, February 12, 2015 4:49 AM To: Wang, Xiaoming Cc: David Vrabel; linux-m...@linux-mips.org; pebo...@tiscali.nl; Zhang, Dongxing; lau...@codeaurora.org; d.kasat...@samsung.com

RE: [Xen-devel] [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-11 Thread Wang, Xiaoming
Dear David -Original Message- From: David Vrabel [mailto:david.vra...@citrix.com] Sent: Tuesday, February 10, 2015 5:46 PM To: Wang, Xiaoming; Konrad Rzeszutek Wilk Cc: linux-m...@linux-mips.org; pebo...@tiscali.nl; Zhang, Dongxing; lau...@codeaurora.org; d.kasat...@samsung.com

RE: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-09 Thread Wang, Xiaoming
Dear Wilk: > -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Monday, February 9, 2015 11:36 PM > To: Wang, Xiaoming > Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; > david.vra...@citrix.com; linux-m...@linux-mips

RE: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-09 Thread Wang, Xiaoming
Dear Wilk: -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Monday, February 9, 2015 11:36 PM To: Wang, Xiaoming Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; david.vra...@citrix.com; linux-m...@linux-mips.org; linux- ker

RE: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-08 Thread Wang, Xiaoming
Dear Wilk: > -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Saturday, February 7, 2015 2:12 AM > To: Wang, Xiaoming > Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; > david.vra...@citrix.com; linux-m...@linux-mips

RE: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-08 Thread Wang, Xiaoming
Dear Wilk: -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Saturday, February 7, 2015 2:12 AM To: Wang, Xiaoming Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; david.vra...@citrix.com; linux-m...@linux-mips.org; linux- ker

[PATCH v2] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-05 Thread Wang Xiaoming
-by: Wang Xiaoming --- patch v1 make this change at Kconfig which needs to edit the .config manually. https://lkml.org/lkml/2015/1/25/571 arch/mips/cavium-octeon/dma-octeon.c |2 +- arch/mips/netlogic/common/nlm-dma.c |2 +- drivers/xen/swiotlb-xen.c|6 +++--- include/linux

RE: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-05 Thread Wang, Xiaoming
> -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Friday, February 6, 2015 3:33 AM > To: Wang, Xiaoming > Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; > david.vra...@citrix.com; linux-m...@linux-mips.org; linux- > k

RE: [PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-05 Thread Wang, Xiaoming
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Friday, February 6, 2015 3:33 AM To: Wang, Xiaoming Cc: r...@linux-mips.org; boris.ostrov...@oracle.com; david.vra...@citrix.com; linux-m...@linux-mips.org; linux- ker...@vger.kernel.org; xen-de

[PATCH v2] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-05 Thread Wang Xiaoming
Dongxing dongxing.zh...@intel.com Signed-off-by: Wang Xiaoming xiaoming.w...@intel.com --- patch v1 make this change at Kconfig which needs to edit the .config manually. https://lkml.org/lkml/2015/1/25/571 arch/mips/cavium-octeon/dma-octeon.c |2 +- arch/mips/netlogic/common/nlm-dma.c |2

[PATCH] ALSA: compress: Cancel the optimization of compiler and fix the size of struct for all platform.

2014-06-12 Thread Wang, Xiaoming
Cancel the optimization of compiler for struct snd_compr_avail which size will be 0x1c in 32bit kernel while 0x20 in 64bit kernel under the optimizer. That will make compaction between 32bit and 64bit. So add packed to fix the size of struct snd_compr_avail to 0x1c for all platform.

RE: [PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-12 Thread Wang, Xiaoming
Dear Takashi > -Original Message- > From: Koul, Vinod > Sent: Monday, June 09, 2014 11:36 PM > To: Takashi Iwai > Cc: Wang, Xiaoming; Kp, Jeeja; dhowe...@redhat.com; a...@arndb.de; > t...@linutronix.de; mtk.manpa...@gmail.com; > paul...@linux.vnet.ibm.com; da...@redha

RE: [PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-12 Thread Wang, Xiaoming
Dear Takashi -Original Message- From: Koul, Vinod Sent: Monday, June 09, 2014 11:36 PM To: Takashi Iwai Cc: Wang, Xiaoming; Kp, Jeeja; dhowe...@redhat.com; a...@arndb.de; t...@linutronix.de; mtk.manpa...@gmail.com; paul...@linux.vnet.ibm.com; da...@redhat.com; linux-kernel

[PATCH] ALSA: compress: Cancel the optimization of compiler and fix the size of struct for all platform.

2014-06-12 Thread Wang, Xiaoming
Cancel the optimization of compiler for struct snd_compr_avail which size will be 0x1c in 32bit kernel while 0x20 in 64bit kernel under the optimizer. That will make compaction between 32bit and 64bit. So add packed to fix the size of struct snd_compr_avail to 0x1c for all platform.

[PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-09 Thread Wang, Xiaoming
The size of struct snd_compr_avail is 0x1c in 32bit kernel, while it is 0x20 in 64bit kernel 0x4 bytes added because of alignment. It is OK when 32bit kernel met 32bit user space. There exist stack corruption if 64bit kernel met 32bit user space, because the size of struct snd_compr_avail is 0x1c

[PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-09 Thread Wang, Xiaoming
The size of struct snd_compr_avail is 0x1c in 32bit kernel, while it is 0x20 in 64bit kernel 0x4 bytes added because of alignment. It is OK when 32bit kernel met 32bit user space. There exist stack corruption if 64bit kernel met 32bit user space, because the size of struct snd_compr_avail is 0x1c

[PATCH] lib/spinlock_debug: Tweak the loop time to fit different _delay()

2014-04-30 Thread Wang, Xiaoming
loops_per_jiffy*Hz is not always 1 second exactly it depends on the realization of _delay() . delay_tsc is used as _delay() in arch/x86/lib/delay.c It makes loop loops_per_jiffy larger than exception and causes one thread can not obtain the spin lock for a long time which may trigger HARD LOCKUP

RE: [PATCH] lib/spinlock_debug: avoid one thread can not obtain the spinlock for a long time.

2014-04-30 Thread Wang, Xiaoming
ad.org] > Sent: Wednesday, April 30, 2014 2:06 PM > To: Wang, Xiaoming > Cc: mi...@redhat.com; linux-kernel@vger.kernel.org; Liu, Chuansheng > Subject: Re: [PATCH] lib/spinlock_debug: avoid one thread can not obtain > the spinlock for a long time. > > On Wed, Apr 30, 2014 at 01:04

RE: [PATCH] lib/spinlock_debug: avoid one thread can not obtain the spinlock for a long time.

2014-04-30 Thread Wang, Xiaoming
] Sent: Wednesday, April 30, 2014 2:06 PM To: Wang, Xiaoming Cc: mi...@redhat.com; linux-kernel@vger.kernel.org; Liu, Chuansheng Subject: Re: [PATCH] lib/spinlock_debug: avoid one thread can not obtain the spinlock for a long time. On Wed, Apr 30, 2014 at 01:04:31PM -0400, Wang, Xiaoming wrote

[PATCH] lib/spinlock_debug: Tweak the loop time to fit different _delay()

2014-04-30 Thread Wang, Xiaoming
loops_per_jiffy*Hz is not always 1 second exactly it depends on the realization of _delay() . delay_tsc is used as _delay() in arch/x86/lib/delay.c It makes loop loops_per_jiffy larger than exception and causes one thread can not obtain the spin lock for a long time which may trigger HARD LOCKUP

[PATCH] lib/spinlock_debug: avoid one thread can not obtain the spinlock for a long time.

2014-04-29 Thread Wang, Xiaoming
loops_per_jiffy is larger than expectation that possible causes one thread can not obtain the spin lock for a long time. So use cpu_clock() to reach timeout in one second which can avoid HARD LOCKUP. Signed-off-by: Chuansheng Liu Signed-off-by: xiaoming wang --- kernel/locking/spinlock_debug.c

[PATCH] lib/spinlock_debug: avoid one thread can not obtain the spinlock for a long time.

2014-04-29 Thread Wang, Xiaoming
loops_per_jiffy is larger than expectation that possible causes one thread can not obtain the spin lock for a long time. So use cpu_clock() to reach timeout in one second which can avoid HARD LOCKUP. Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: xiaoming wang

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-13 Thread Wang, Xiaoming
Plug a group_info refcount leak in ping_init. group_info is only needed during initialization and the code failed to release the reference on exit. While here move grabbing the reference to a place where it is actually needed. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-13 Thread Wang, Xiaoming
Plug a group_info refcount leak in ping_init. group_info is only needed during initialization and the code failed to release the reference on exit. While here move grabbing the reference to a place where it is actually needed. Signed-off-by: Chuansheng Liu chuansheng@intel.com

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-11 Thread Wang, Xiaoming
This is a typical refcount leak exploitable by unprivileged users. Current group_info had been got in ping_init_sock and group_info->usage increased. But the usage hasn't decreased anywhere in ping. This will make this group_info never freed. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-11 Thread Wang, Xiaoming
This is a typical refcount leak exploitable by unprivileged users. Current group_info had been got in ping_init_sock and group_info-usage increased. But the usage hasn't decreased anywhere in ping. This will make this group_info never freed. Signed-off-by: Chuansheng Liu chuansheng@intel.com

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-10 Thread Wang, Xiaoming
There is a memory leak in ping. Current group_info had been got in ping_init_sock and group_info->usage increased. But the usage hasn't decreased anywhere in ping. This will make this group_info never freed and cause memory leak. unreferenced object 0xcd0e8840 (size 192): comm "dumpstate",

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-10 Thread Wang, Xiaoming
There is a memory leak in ping when call ping in dumpstate. Current group_info had been got in ping_init_sock and group_info->usage increased. But the usage hasn't decreased. This will make group_info never freed and cause memory leak. unreferenced object 0xcd0e8840 (size 192): comm

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-10 Thread Wang, Xiaoming
There is a memory leak in ping when call ping in dumpstate. Current group_info had been got in ping_init_sock and group_info-usage increased. But the usage hasn't decreased. This will make group_info never freed and cause memory leak. unreferenced object 0xcd0e8840 (size 192): comm dumpstate,

[PATCH] net: ipv4: current group_info should be put after using.

2014-04-10 Thread Wang, Xiaoming
There is a memory leak in ping. Current group_info had been got in ping_init_sock and group_info-usage increased. But the usage hasn't decreased anywhere in ping. This will make this group_info never freed and cause memory leak. unreferenced object 0xcd0e8840 (size 192): comm dumpstate, pid

[PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-17 Thread Wang, Xiaoming
pcmd->parmbuf->pbuf has been allocated if command is GEN_CMD_CODE(_Set_Drv_Extra), and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by rtw_dequeue_cmd. The memory leak happened on this branch "if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) )" which goto post_process directly against

[PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-17 Thread Wang, Xiaoming
pcmd-parmbuf-pbuf has been allocated if command is GEN_CMD_CODE(_Set_Drv_Extra), and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by rtw_dequeue_cmd. The memory leak happened on this branch if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) ) which goto post_process directly against

[PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-09 Thread Wang, Xiaoming
pcmd->parmbuf->pbuf has been allocated if command is GEN_CMD_CODE(_Set_Drv_Extra), and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by rtw_dequeue_cmd. The memory leak happened on this branch "if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) )" which goto post_process directly against

[PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-09 Thread Wang, Xiaoming
pcmd-parmbuf-pbuf has been allocated if command is GEN_CMD_CODE(_Set_Drv_Extra), and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by rtw_dequeue_cmd. The memory leak happened on this branch if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) ) which goto post_process directly against

[PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-06 Thread Wang, Xiaoming
pcmd->parmbuf->pbuf has been allocated if command is GEN_CMD_CODE(_Set_Drv_Extra), and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by rtw_dequeue_cmd. The memory leak happened on this branch "if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) )" which goto post_process directly against

[PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-06 Thread Wang, Xiaoming
pcmd-parmbuf-pbuf has been allocated if command is GEN_CMD_CODE(_Set_Drv_Extra), and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by rtw_dequeue_cmd. The memory leak happened on this branch if( _FAIL == rtw_cmd_filter(pcmdpriv, pcmd) ) which goto post_process directly against

RE: [PATCH] [sched]: pick the NULL entity caused the panic.

2013-11-11 Thread Wang, Xiaoming
> -Original Message- > From: Paul Turner [mailto:p...@google.com] > Sent: Tuesday, November 12, 2013 11:10 AM > To: Wang, Xiaoming > Cc: Ingo Molnar; Peter Zijlstra; LKML; Liu, Chuansheng; Zhang, Dongxing > Subject: Re: [PATCH] [sched]: pick the NULL entity caused the

[PATCH] [sched]: pick the NULL entity caused the panic.

2013-11-11 Thread Wang, Xiaoming
cfs_rq get its group run queue but the value of cfs_rq->nr_running maybe zero, which will cause the panic in pick_next_task_fair. So the evaluated of cfs_rq->nr_running is needed. [15729.985797] BUG: unable to handle kernel NULL pointer dereference at 0008 [15729.993838] IP: []

[PATCH] [sched]: pick the NULL entity caused the panic.

2013-11-11 Thread Wang, Xiaoming
cfs_rq get its group run queue but the value of cfs_rq-nr_running maybe zero, which will cause the panic in pick_next_task_fair. So the evaluated of cfs_rq-nr_running is needed. [15729.985797] BUG: unable to handle kernel NULL pointer dereference at 0008 [15729.993838] IP: [c15266f1]

RE: [PATCH] [sched]: pick the NULL entity caused the panic.

2013-11-11 Thread Wang, Xiaoming
-Original Message- From: Paul Turner [mailto:p...@google.com] Sent: Tuesday, November 12, 2013 11:10 AM To: Wang, Xiaoming Cc: Ingo Molnar; Peter Zijlstra; LKML; Liu, Chuansheng; Zhang, Dongxing Subject: Re: [PATCH] [sched]: pick the NULL entity caused the panic. On Tue, Nov 12

RE: [PATCH] [extcon]:remove freed groups caused the panic or warning in unregister flow

2013-11-03 Thread Wang, Xiaoming
Dear Choi -Original Message- From: Chanwoo Choi [mailto:cw00.c...@samsung.com] Sent: Monday, November 04, 2013 9:43 AM To: Wang, Xiaoming Cc: myungjoo@samsung.com; linux-kernel@vger.kernel.org; Liu, Chuansheng; Zhang, Dongxing Subject: Re: [PATCH] [extcon]:remove freed groups caused

RE: [PATCH] [extcon]:remove freed groups caused the panic or warning in unregister flow

2013-11-03 Thread Wang, Xiaoming
Dear Choi -Original Message- From: Chanwoo Choi [mailto:cw00.c...@samsung.com] Sent: Monday, November 04, 2013 9:43 AM To: Wang, Xiaoming Cc: myungjoo@samsung.com; linux-kernel@vger.kernel.org; Liu, Chuansheng; Zhang, Dongxing Subject: Re: [PATCH] [extcon]:remove freed groups caused

[PATCH] [extcon]:remove freed groups caused the panic or warning in unregister flow

2013-11-01 Thread Wang, Xiaoming
(edev->extcon_dev_type.groups) has been freed before device_unregister. extcon_dev_unregister -> kfree(edev->extcon_dev_type.groups) then device_unregister -> device_del -> device_remove_attrs -> device_remove_groups(dev, type->groups); panic because type->groups has been freed. This patch is

[PATCH] [extcon]:remove freed groups caused the panic or warning in unregister flow

2013-11-01 Thread Wang, Xiaoming
(edev-extcon_dev_type.groups) has been freed before device_unregister. extcon_dev_unregister - kfree(edev-extcon_dev_type.groups) then device_unregister - device_del - device_remove_attrs - device_remove_groups(dev, type-groups); panic because type-groups has been freed. This patch is move