Re: [PATCH] CMA: treat free cma pages as non-free if not ALLOC_CMA on watermark checking

2015-01-18 Thread Hui Zhu
On Mon, Jan 19, 2015 at 2:55 PM, Minchan Kim minc...@kernel.org wrote: Hello, On Sun, Jan 18, 2015 at 04:32:59PM +0800, Hui Zhu wrote: From: Hui Zhu zhu...@xiaomi.com The original of this patch [1] is part of Joonsoo's CMA patch series. I made a patch [2] to fix the issue of this patch

[PATCH] CMA: treat free cma pages as non-free if not ALLOC_CMA on watermark checking

2015-01-18 Thread Hui Zhu
From: Hui Zhu zhu...@xiaomi.com The original of this patch [1] is part of Joonsoo's CMA patch series. I made a patch [2] to fix the issue of this patch. Joonsoo reminded me that this issue affect current kernel too. So made a new one for upstream. Current code treat free cma pages as non-free

[PATCH] mm/page_alloc: Fix race conditions on getting migratetype in buffered_rmqueue

2015-01-18 Thread Hui Zhu
From: Hui Zhu zhu...@xiaomi.com To test the patch [1], I use KGTP and a script [2] to show NR_FREE_CMA_PAGES and gross of cma_nr_free. The values are always not same. I check the code of pages alloc and free and found that race conditions on getting migratetype in buffered_rmqueue. Then I add

Re: [PATCH] CMA: Fix CMA's page number is substructed twice in __zone_watermark_ok

2015-01-07 Thread Hui Zhu
On Wed, Jan 7, 2015 at 4:45 PM, Vlastimil Babka wrote: > On 12/30/2014 11:17 AM, Hui Zhu wrote: >> The original of this patch [1] is used to fix the issue in Joonsoo's CMA >> patch >> "CMA: always treat free cma pages as non-free on watermark checking"

Re: [PATCH] CMA: Fix CMA's page number is substructed twice in __zone_watermark_ok

2015-01-07 Thread Hui Zhu
On Wed, Jan 7, 2015 at 4:45 PM, Vlastimil Babka vba...@suse.cz wrote: On 12/30/2014 11:17 AM, Hui Zhu wrote: The original of this patch [1] is used to fix the issue in Joonsoo's CMA patch CMA: always treat free cma pages as non-free on watermark checking [2]. Joonsoo reminded me

[PATCH] samples: hw_breakpoint: check the return value of kallsyms_lookup_name

2015-01-03 Thread Hui Zhu
data_breakpoint.ko can insert successful but cannot catch any change of the data in my part because kallsyms_lookup_name rerurn 0 each time. So add code to check the return value of kallsyms_lookup_name. Signed-off-by: Hui Zhu --- samples/hw_breakpoint/data_breakpoint.c | 17

[PATCH] samples: hw_breakpoint: check the return value of kallsyms_lookup_name

2015-01-03 Thread Hui Zhu
data_breakpoint.ko can insert successful but cannot catch any change of the data in my part because kallsyms_lookup_name rerurn 0 each time. So add code to check the return value of kallsyms_lookup_name. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- samples/hw_breakpoint/data_breakpoint.c | 17

[PATCH] CMA: Fix CMA's page number is substructed twice in __zone_watermark_ok

2014-12-30 Thread Hui Zhu
ed twice. This bug will make __zone_watermark_ok return more false. This patch add cma_free_area to struct free_area that just record the number of CMA pages. And add it back in the order loop to handle the substruct twice issue. [1] https://lkml.org/lkml/2014/12/25/43 [2] https://lkml.org/lkml/2014

Re: [PATCH 1/3] CMA: Fix the bug that CMA's page number is substructed twice

2014-12-30 Thread Hui Zhu
On Tue, Dec 30, 2014 at 12:48 PM, Joonsoo Kim wrote: > On Thu, Dec 25, 2014 at 05:43:26PM +0800, Hui Zhu wrote: >> In Joonsoo's CMA patch "CMA: always treat free cma pages as non-free on >> watermark checking" [1], it changes __zone_watermark_ok to substruct CMA >&g

Re: [PATCH 1/3] CMA: Fix the bug that CMA's page number is substructed twice

2014-12-30 Thread Hui Zhu
On Tue, Dec 30, 2014 at 12:48 PM, Joonsoo Kim iamjoonsoo@lge.com wrote: On Thu, Dec 25, 2014 at 05:43:26PM +0800, Hui Zhu wrote: In Joonsoo's CMA patch CMA: always treat free cma pages as non-free on watermark checking [1], it changes __zone_watermark_ok to substruct CMA pages number from

[PATCH] CMA: Fix CMA's page number is substructed twice in __zone_watermark_ok

2014-12-30 Thread Hui Zhu
__zone_watermark_ok return more false. This patch add cma_free_area to struct free_area that just record the number of CMA pages. And add it back in the order loop to handle the substruct twice issue. [1] https://lkml.org/lkml/2014/12/25/43 [2] https://lkml.org/lkml/2014/5/28/110 Signed-off-by: Hui Zhu zhu

[PATCH 0/3] CMA: Handle the issues of aggressively allocate the

2014-12-25 Thread Hui Zhu
to handle the issues. And I merged cma_alloc_counter from [2] to cma_alloc work better. This patchset is based on aa39477b5692611b91ac9455ae588738852b3f60 and [1]. [1] https://lkml.org/lkml/2014/5/28/64 [2] https://lkml.org/lkml/2014/10/15/623 Hui Zhu (3): CMA: Fix the bug that CMA's page number

[PATCH 3/3] CMA: Add cma_alloc_counter to make cma_alloc work better if it meet busy range

2014-12-25 Thread Hui Zhu
__rmqueue doesn't call __rmqueue_cma when cma_alloc works. [1] https://lkml.org/lkml/2014/10/24/26 Signed-off-by: Hui Zhu --- include/linux/cma.h | 2 ++ mm/cma.c| 6 ++ mm/page_alloc.c | 8 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/linux

[PATCH 1/3] CMA: Fix the bug that CMA's page number is substructed twice

2014-12-25 Thread Hui Zhu
t twice issue. [1] https://lkml.org/lkml/2014/5/28/110 Signed-off-by: Hui Zhu Signed-off-by: Weixing Liu --- include/linux/mmzone.h | 3 +++ mm/page_alloc.c| 29 - 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/include/linux/mmzone.h b/include/l

[PATCH 2/3] CMA: Fix the issue that nr_try_movable just count MIGRATE_MOVABLE memory

2014-12-25 Thread Hui Zhu
thers. This device allocated a lot of MIGRATE_UNMOVABLE memory affect the behavior of this zone memory allocation. This patch change __rmqueue to let nr_try_movable record all the memory allocation of normal memory. [1] https://lkml.org/lkml/2014/5/28/64 Signed-off-by: Hui Zhu Signed-off-by: W

[PATCH 2/3] CMA: Fix the issue that nr_try_movable just count MIGRATE_MOVABLE memory

2014-12-25 Thread Hui Zhu
allocated a lot of MIGRATE_UNMOVABLE memory affect the behavior of this zone memory allocation. This patch change __rmqueue to let nr_try_movable record all the memory allocation of normal memory. [1] https://lkml.org/lkml/2014/5/28/64 Signed-off-by: Hui Zhu zhu...@xiaomi.com Signed-off-by: Weixing Liu

[PATCH 1/3] CMA: Fix the bug that CMA's page number is substructed twice

2014-12-25 Thread Hui Zhu
/28/110 Signed-off-by: Hui Zhu zhu...@xiaomi.com Signed-off-by: Weixing Liu liuweix...@xiaomi.com --- include/linux/mmzone.h | 3 +++ mm/page_alloc.c| 29 - 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/include/linux/mmzone.h b/include/linux

[PATCH 3/3] CMA: Add cma_alloc_counter to make cma_alloc work better if it meet busy range

2014-12-25 Thread Hui Zhu
__rmqueue doesn't call __rmqueue_cma when cma_alloc works. [1] https://lkml.org/lkml/2014/10/24/26 Signed-off-by: Hui Zhu zhu...@xiaomi.com --- include/linux/cma.h | 2 ++ mm/cma.c| 6 ++ mm/page_alloc.c | 8 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH 0/3] CMA: Handle the issues of aggressively allocate the

2014-12-25 Thread Hui Zhu
to handle the issues. And I merged cma_alloc_counter from [2] to cma_alloc work better. This patchset is based on aa39477b5692611b91ac9455ae588738852b3f60 and [1]. [1] https://lkml.org/lkml/2014/5/28/64 [2] https://lkml.org/lkml/2014/10/15/623 Hui Zhu (3): CMA: Fix the bug that CMA's page number

Re: [PATCH 4/4] (CMA_AGGRESSIVE) Update page alloc function

2014-11-27 Thread Hui Zhu
On Fri, Oct 24, 2014 at 1:28 PM, Joonsoo Kim wrote: > On Thu, Oct 16, 2014 at 11:35:51AM +0800, Hui Zhu wrote: >> If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and >> conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter) >&g

Re: [PATCH 4/4] (CMA_AGGRESSIVE) Update page alloc function

2014-11-27 Thread Hui Zhu
On Fri, Oct 24, 2014 at 1:28 PM, Joonsoo Kim iamjoonsoo@lge.com wrote: On Thu, Oct 16, 2014 at 11:35:51AM +0800, Hui Zhu wrote: If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter) allow

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-11-04 Thread Hui Zhu
On Tue, Nov 4, 2014 at 3:53 PM, Minchan Kim wrote: > Hello, > > On Wed, Oct 29, 2014 at 03:43:33PM +0100, Vlastimil Babka wrote: >> On 10/16/2014 10:55 AM, Laura Abbott wrote: >> >On 10/15/2014 8:35 PM, Hui Zhu wrote: >> > >> >It's good to see another pr

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-11-04 Thread Hui Zhu
On Tue, Nov 4, 2014 at 3:53 PM, Minchan Kim minc...@kernel.org wrote: Hello, On Wed, Oct 29, 2014 at 03:43:33PM +0100, Vlastimil Babka wrote: On 10/16/2014 10:55 AM, Laura Abbott wrote: On 10/15/2014 8:35 PM, Hui Zhu wrote: It's good to see another proposal to fix CMA utilization. Do you

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-11-03 Thread Hui Zhu
On Wed, Oct 29, 2014 at 10:43 PM, Vlastimil Babka wrote: > On 10/16/2014 10:55 AM, Laura Abbott wrote: >> >> On 10/15/2014 8:35 PM, Hui Zhu wrote: >> >> It's good to see another proposal to fix CMA utilization. Do you have >> any data about the success rate o

Re: [PATCH v5 2/4] mm/page_alloc: add freepage on isolate pageblock to correct buddy list

2014-11-03 Thread Hui Zhu
ge list manipulates >> */ >> list_del(>lru); >> mt = get_freepage_migratetype(page); >> + if (unlikely(has_isolate_pageblock(zone))) { > > > How about adding an additional check for 'mt == MIGRAT

Re: [PATCH v5 2/4] mm/page_alloc: add freepage on isolate pageblock to correct buddy list

2014-11-03 Thread Hui Zhu
the isolation is in progress. I am not sure this is the case on memory offlining. How do you think? I think the reason is that this mt may be not the right value of this page. It is set without zone-lock. Thanks, Hui + mt = get_pageblock_migratetype(page

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-11-03 Thread Hui Zhu
On Wed, Oct 29, 2014 at 10:43 PM, Vlastimil Babka vba...@suse.cz wrote: On 10/16/2014 10:55 AM, Laura Abbott wrote: On 10/15/2014 8:35 PM, Hui Zhu wrote: It's good to see another proposal to fix CMA utilization. Do you have any data about the success rate of CMA contiguous allocation after

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-11-02 Thread Hui Zhu
On Fri, Oct 24, 2014 at 1:25 PM, Joonsoo Kim wrote: > On Thu, Oct 16, 2014 at 11:35:47AM +0800, Hui Zhu wrote: >> In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of >> MIGRATE_MOVABLE. >> MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in >> o

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-11-02 Thread Hui Zhu
On Fri, Oct 24, 2014 at 1:25 PM, Joonsoo Kim iamjoonsoo@lge.com wrote: On Thu, Oct 16, 2014 at 11:35:47AM +0800, Hui Zhu wrote: In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of MIGRATE_MOVABLE. MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in order

Re: [PATCH v2 2/3] CMA: aggressively allocate the pages on cma reserved memory when not used

2014-10-30 Thread Hui Zhu
too many > pages are reclaimed, I guess. Could you send more information about this part? I want to do some test around it. I use this way in my patch. Thanks, Hui > > So, I implement #2 approach. > One thing I should note is that we should not change allocation target > (mo

Re: [PATCH v2 2/3] CMA: aggressively allocate the pages on cma reserved memory when not used

2014-10-30 Thread Hui Zhu
in that order and kswapd reclaim them in same order. These memory doesn't help watermark checking from kwapd, so too many pages are reclaimed, I guess. Could you send more information about this part? I want to do some test around it. I use this way in my patch. Thanks, Hui So, I implement #2

[PATCH v2 3/4] (CMA_AGGRESSIVE) Update reserve custom contiguous area code

2014-10-17 Thread Hui Zhu
guous area, increase the value of cma_alloc_counter. CMA_AGGRESSIVE will not work in page alloc code. After reserve custom contiguous area function return, decreases the value of cma_alloc_counter. Signed-off-by: Hui Zhu --- include/linux/cma.h | 7 +++ kernel/sysctl.c | 27 +++

[PATCH v2 2/4] (CMA_AGGRESSIVE) Add new function shrink_all_memory_for_cma

2014-10-17 Thread Hui Zhu
Update this patch according to the comments from Rafael. Function shrink_all_memory_for_cma try to free `nr_to_reclaim' of memory. CMA aggressive shrink function will call this functon to free `nr_to_reclaim' of memory. Signed-off-by: Hui Zhu --- mm/vmscan.c | 58

[PATCH v2 2/4] (CMA_AGGRESSIVE) Add new function shrink_all_memory_for_cma

2014-10-17 Thread Hui Zhu
Update this patch according to the comments from Rafael. Function shrink_all_memory_for_cma try to free `nr_to_reclaim' of memory. CMA aggressive shrink function will call this functon to free `nr_to_reclaim' of memory. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- mm/vmscan.c | 58

[PATCH v2 3/4] (CMA_AGGRESSIVE) Update reserve custom contiguous area code

2014-10-17 Thread Hui Zhu
. CMA_AGGRESSIVE will not work in page alloc code. After reserve custom contiguous area function return, decreases the value of cma_alloc_counter. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- include/linux/cma.h | 7 +++ kernel/sysctl.c | 27 +++ mm/cma.c

[PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-10-15 Thread Hui Zhu
In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of MIGRATE_MOVABLE. MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in order that Linux kernel want. If a system that has a lot of user space program is running, for instance, an Android board, most of memory is in

[PATCH 2/4] (CMA_AGGRESSIVE) Add argument hibernation to function shrink_all_memory

2014-10-15 Thread Hui Zhu
is hibernate_preallocate_memory. if not, the caller is CMA alloc function. Signed-off-by: Hui Zhu --- include/linux/swap.h| 3 ++- kernel/power/snapshot.c | 2 +- mm/vmscan.c | 19 +-- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/include/linux/swap.h b/include

[PATCH 4/4] (CMA_AGGRESSIVE) Update page alloc function

2014-10-15 Thread Hui Zhu
If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter) allow, MIGRATE_CMA will be allocated as MIGRATE_MOVABLE first. Signed-off-by: Hui Zhu --- mm/page_alloc.c | 42

[PATCH 3/4] (CMA_AGGRESSIVE) Update reserve custom contiguous area code

2014-10-15 Thread Hui Zhu
work in page alloc code. After reserve custom contiguous area function return, decreases the value of cma_alloc_counter. Signed-off-by: Hui Zhu --- include/linux/cma.h | 7 +++ kernel/sysctl.c | 27 +++ mm/cma.c| 54

[PATCH 1/4] (CMA_AGGRESSIVE) Add CMA_AGGRESSIVE to Kconfig

2014-10-15 Thread Hui Zhu
switch (sysctl vm.cma-aggressive-switch) will be opened. When system boot, this value will set to sysctl "vm.cma-aggressive-free-min". If this value is true, sysctl "vm.cma-aggressive-shrink-switch" will be set to true when Linux boot. Signed-off-by: Hui Zhu

[PATCH 3/4] (CMA_AGGRESSIVE) Update reserve custom contiguous area code

2014-10-15 Thread Hui Zhu
reserve custom contiguous area function return, decreases the value of cma_alloc_counter. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- include/linux/cma.h | 7 +++ kernel/sysctl.c | 27 +++ mm/cma.c| 54

[PATCH 1/4] (CMA_AGGRESSIVE) Add CMA_AGGRESSIVE to Kconfig

2014-10-15 Thread Hui Zhu
switch (sysctl vm.cma-aggressive-switch) will be opened. When system boot, this value will set to sysctl vm.cma-aggressive-free-min. If this value is true, sysctl vm.cma-aggressive-shrink-switch will be set to true when Linux boot. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- mm/Kconfig | 43

[PATCH 2/4] (CMA_AGGRESSIVE) Add argument hibernation to function shrink_all_memory

2014-10-15 Thread Hui Zhu
is hibernate_preallocate_memory. if not, the caller is CMA alloc function. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- include/linux/swap.h| 3 ++- kernel/power/snapshot.c | 2 +- mm/vmscan.c | 19 +-- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/include/linux

[PATCH 4/4] (CMA_AGGRESSIVE) Update page alloc function

2014-10-15 Thread Hui Zhu
If page alloc function __rmqueue try to get pages from MIGRATE_MOVABLE and conditions (cma_alloc_counter, cma_aggressive_free_min, cma_alloc_counter) allow, MIGRATE_CMA will be allocated as MIGRATE_MOVABLE first. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- mm/page_alloc.c | 42

[PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-10-15 Thread Hui Zhu
In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of MIGRATE_MOVABLE. MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in order that Linux kernel want. If a system that has a lot of user space program is running, for instance, an Android board, most of memory is in

[PATCH] Fix the issue that lowmemkiller fell into a cycle that try to kill a task

2014-09-22 Thread Hui Zhu
-off-by: Hui Zhu --- drivers/staging/android/lowmemorykiller.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index b545d3d..ca1ffac 100644 --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers

[PATCH] Fix the issue that lowmemkiller fell into a cycle that try to kill a task

2014-09-22 Thread Hui Zhu
-off-by: Hui Zhu zhu...@xiaomi.com --- drivers/staging/android/lowmemorykiller.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index b545d3d..ca1ffac 100644 --- a/drivers/staging/android/lowmemorykiller.c

RE: [PATCH 0/9] Dynamic Pause Loop Exiting window.

2014-08-21 Thread Zhao, Hui-Zhi (Steven, HPservers-Core-OE-PSC)
This patch have been tested by Lisa and me and it's success. We created 4 VM guests and reboot them every 10 minutes for 12 hours around, and this issue is gone with the patch. Please add Lisa and me to the "tested by:" list. Tested-by: Mitchell, Lisa Tested-by: Zhao, Hui Zhi

RE: [PATCH v2 0/6] Dynamic Pause Loop Exiting window.

2014-08-21 Thread Zhao, Hui-Zhi (Steven, HPservers-Core-OE-PSC)
This patch have been tested by Lisa and me and it's success. We created 4 VM guests and reboot them every 10 minutes for 12 hours around, and this issue is gone with the patch. Please add Lisa and me to the "tested by:" list. Tested-by: Mitchell, Lisa Tested-by: Zhao, Hui Zhi

RE: [PATCH v2 0/6] Dynamic Pause Loop Exiting window.

2014-08-21 Thread Zhao, Hui-Zhi (Steven, HPservers-Core-OE-PSC)
This patch have been tested by Lisa and me and it's success. We created 4 VM guests and reboot them every 10 minutes for 12 hours around, and this issue is gone with the patch. Please add Lisa and me to the tested by: list. Tested-by: Mitchell, Lisa lisa.mitch...@hp.com Tested-by: Zhao, Hui

RE: [PATCH 0/9] Dynamic Pause Loop Exiting window.

2014-08-21 Thread Zhao, Hui-Zhi (Steven, HPservers-Core-OE-PSC)
This patch have been tested by Lisa and me and it's success. We created 4 VM guests and reboot them every 10 minutes for 12 hours around, and this issue is gone with the patch. Please add Lisa and me to the tested by: list. Tested-by: Mitchell, Lisa lisa.mitch...@hp.com Tested-by: Zhao, Hui

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-03 Thread Hui Wang
On 07/03/2014 05:05 PM, Jan Kiszka wrote: On 2014-07-03 10:59, Hui Wang wrote: On 07/03/2014 03:04 PM, Jan Kiszka wrote: On 2014-07-01 11:26, Hui Wang wrote: On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-03 Thread Hui Wang
On 07/03/2014 03:04 PM, Jan Kiszka wrote: On 2014-07-01 11:26, Hui Wang wrote: On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-03 Thread Hui Wang
On 07/03/2014 03:04 PM, Jan Kiszka wrote: On 2014-07-01 11:26, Hui Wang wrote: On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-03 Thread Hui Wang
On 07/03/2014 05:05 PM, Jan Kiszka wrote: On 2014-07-03 10:59, Hui Wang wrote: On 07/03/2014 03:04 PM, Jan Kiszka wrote: On 2014-07-01 11:26, Hui Wang wrote: On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-01 Thread Hui Wang
On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-01 Thread Hui Wang
On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-06-30 Thread Hui Wang
On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec, so far although the codecs have different minor Vendor Id and minor Subsystem Id

GOOD DAY,

2014-06-30 Thread KONG HUI
My name is Kong Hui from Hong Kong, I want you to be my partner in a business project. If Interested Contact me back via my email address. Thank you, Mr. Kong Hui. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

GOOD DAY,

2014-06-30 Thread KONG HUI
My name is Kong Hui from Hong Kong, I want you to be my partner in a business project. If Interested Contact me back via my email address. Thank you, Mr. Kong Hui. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-06-30 Thread Hui Wang
On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec, so far although the codecs have different minor Vendor Id and minor Subsystem Id

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-06-29 Thread Hui Wang
On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec, so far although the codecs have different minor Vendor Id and minor Subsystem Id, they all belong to the cxt5066 family, this change can make the mute/mic-mute

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-06-29 Thread Hui Wang
On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec, so far although the codecs have different minor Vendor Id and minor Subsystem Id, they all belong to the cxt5066 family, this change can make the mute/mic-mute

GOOD DAY,

2014-06-26 Thread KONG HUI
My name is Kong Hui from Hong Kong, I want you to be my partner in a business project. If Interested Contact me back via my email address. Thank you, Mr. Kong Hui. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

GOOD DAY,

2014-06-26 Thread KONG HUI
My name is Kong Hui from Hong Kong, I want you to be my partner in a business project. If Interested Contact me back via my email address. Thank you, Mr. Kong Hui. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

[PATCH] mm: update the description for madvise_remove

2014-06-23 Thread Wang Sheng-Hui
Currently, we have more filesystems supporting fallocate, e.g ext4/btrfs. Remove the outdated comment for madvise_remove. Signed-off-by: Wang Sheng-Hui --- mm/madvise.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/madvise.c b/mm/madvise.c index a402f8f..0938b30 100644 --- a/mm

[PATCH] mm: update the description for madvise_remove

2014-06-23 Thread Wang Sheng-Hui
Currently, we have more filesystems supporting fallocate, e.g ext4/btrfs. Remove the outdated comment for madvise_remove. Signed-off-by: Wang Sheng-Hui shh...@gmail.com --- mm/madvise.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/madvise.c b/mm/madvise.c index a402f8f..0938b30

Re: [PATCH v2] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-06-12 Thread Hui Zhu
Ping. Thanks, Hui On Mon, May 5, 2014 at 8:00 PM, Hui Zhu wrote: > cat gdb.base/interrupt.c > #include > #include > #include > #include > > #ifdef SIGNALS > #include > > static void > sigint_handler (int signo) > { > } > #endif > > int &g

Re: [PATCH v2] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-06-12 Thread Hui Zhu
Ping. Thanks, Hui On Mon, May 5, 2014 at 8:00 PM, Hui Zhu h...@codesourcery.com wrote: cat gdb.base/interrupt.c #include errno.h #include stdio.h #include unistd.h #include stdlib.h #ifdef SIGNALS #include signal.h static void sigint_handler (int signo) { } #endif int main

Get back to me

2014-05-29 Thread Kong Hui
I am a bank director from Hong Kong, I want you to be my partner in a business project of mutual benefit. Get back to me if interested. Thank you, Kong Hui. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

Get back to me

2014-05-29 Thread Kong Hui
I am a bank director from Hong Kong, I want you to be my partner in a business project of mutual benefit. Get back to me if interested. Thank you, Kong Hui. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

KGTP (dynamic tracer for Linux kernel and applications) 20140510 release (add quick start script kgtp.py)

2014-05-11 Thread Hui Zhu
to the comments of Christoph, Geoff and Andi. I make KGTP function lite patch for Linux kernel upstream. Please goto http://lkml.org/lkml/2013/11/21/7 to got it. Thanks, Hui -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

KGTP (dynamic tracer for Linux kernel and applications) 20140510 release (add quick start script kgtp.py)

2014-05-11 Thread Hui Zhu
to the comments of Christoph, Geoff and Andi. I make KGTP function lite patch for Linux kernel upstream. Please goto http://lkml.org/lkml/2013/11/21/7 to got it. Thanks, Hui -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-30 Thread Hui Zhu
On 05/01/14 00:28, Hui Zhu wrote: On Wed, Apr 30, 2014 at 9:35 PM, Mark Kettenis wrote: >>> Date: Tue, 29 Apr 2014 22:10:15 -0700 >>> From: "H. Peter Anvin" >>> >>> On 04/29/2014 10:08 PM, Andrew Pinski wrote: >>>> >>>

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-30 Thread Hui Zhu
xtension in arch/x86/asm/syscall.h:syscall_get_error(), > we could work around to problem in GDB by checking "orig_ax" to see if > we're continuing an interrupted system call and sign extend the error > code in the real "eax" register if we are. I will update patch in http

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-30 Thread Hui Zhu
register if we are. I will update patch in https://sourceware.org/ml/gdb-patches/2014-04/msg00429.html according to this comments. Thanks, Hui Signed-off-by: Hui Zhu h...@codesourcery.com --- --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c @@ -452,6 +452,23 @@ static int putreg

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-30 Thread Hui Zhu
On 05/01/14 00:28, Hui Zhu wrote: On Wed, Apr 30, 2014 at 9:35 PM, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Tue, 29 Apr 2014 22:10:15 -0700 From: H. Peter Anvin h...@zytor.com On 04/29/2014 10:08 PM, Andrew Pinski wrote: restoring the values is hard since even the ptrace

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-29 Thread Hui Zhu
On Tue, Apr 22, 2014 at 12:33 AM, H. Peter Anvin wrote: > On 04/21/2014 09:19 AM, Hui Zhu wrote: >> } >> Now ax is in 32 bits now, need sign-extend to 64 bits. But >> current_thread_info()->status TS_COMPAT is cleared when GDB call "call >> func1()". >

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-29 Thread Hui Zhu
On Tue, Apr 22, 2014 at 12:33 AM, H. Peter Anvin h...@zytor.com wrote: On 04/21/2014 09:19 AM, Hui Zhu wrote: } Now ax is in 32 bits now, need sign-extend to 64 bits. But current_thread_info()-status TS_COMPAT is cleared when GDB call call func1(). Linux kernel don't know this is a 32 bits

Call for Topics and Sponsors -- Workshop on Open Source Development Tools 2014 (i.e. HelloGCC Workshop)

2014-04-24 Thread Hui Zhu
* Call for Topics and Sponsors Workshop on Open Source Development Tools 2014 (i.e. HelloGCC Workshop) Beijing, China Sep. 13rd, 2014 (TBD) HelloGCC Work Group (www.hellogcc.org)

Call for Topics and Sponsors -- Workshop on Open Source Development Tools 2014 (i.e. HelloGCC Workshop)

2014-04-24 Thread Hui Zhu
* Call for Topics and Sponsors Workshop on Open Source Development Tools 2014 (i.e. HelloGCC Workshop) Beijing, China Sep. 13rd, 2014 (TBD) HelloGCC Work Group (www.hellogcc.org)

[PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-21 Thread Hui Zhu
a errno in ERESTARTSYS. To fix this issue, I tried to add a local variable to "do_signal" but it is not works. The stack is cleared before GDB "continue". so I make a patch that add "test_thread_flag (TIF_IA32)" to syscall_get_error. Signed-off-by: H

[PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-21 Thread Hui Zhu
but it is not works. The stack is cleared before GDB continue. so I make a patch that add test_thread_flag (TIF_IA32) to syscall_get_error. Signed-off-by: Hui Zhu h...@codesourcery.com --- --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -48,7 +48,8 @@ static inline long

I NEED YOUR URGENT SUPPORT

2014-03-09 Thread JOHN HUI
-- Hello my dear friend, I am sorry for intruding, my name is John Hui and i have an urgent financial transaction that i could use your support in concluding for a sizeable profit/reward.My contact with you is based on my understanding that with trust,commitment and mutual respect we

I NEED YOUR URGENT SUPPORT

2014-03-09 Thread JOHN HUI
-- Hello my dear friend, I am sorry for intruding, my name is John Hui and i have an urgent financial transaction that i could use your support in concluding for a sizeable profit/reward.My contact with you is based on my understanding that with trust,commitment and mutual respect we

[PATCH 2/2] tool and script help GDB load Linux kernel modules (script)

2013-12-21 Thread Hui Zhu
t the data of module list, this script is slower than getmod. Signed-off-by: Hui Zhu --- --- /dev/null +++ b/scripts/getmod.py @@ -0,0 +1,151 @@ +#!/usr/bin/python + +# This script is used by GDB to load the symbols from Linux kernel modules +# Copyright(C) KGTP team (https://kgtp.googlecode.com),

[PATCH 1/2] tool and script help GDB load Linux kernel modules (tool)

2013-12-21 Thread Hui Zhu
tory. -hDisplay this information. Signed-off-by: Hui Zhu --- --- a/tools/Makefile +++ b/tools/Makefile @@ -16,6 +16,7 @@ help: @echo ' vm - misc vm tools' @echo ' x86_energy_perf_policy - Intel energy policy tool' @echo ' tmon - thermal monitoring and t

[PATCH 1/2] tool and script help GDB load Linux kernel modules (tool)

2013-12-21 Thread Hui Zhu
Display this information. Signed-off-by: Hui Zhu teawa...@gmail.com --- --- a/tools/Makefile +++ b/tools/Makefile @@ -16,6 +16,7 @@ help: @echo ' vm - misc vm tools' @echo ' x86_energy_perf_policy - Intel energy policy tool' @echo ' tmon - thermal monitoring

[PATCH 2/2] tool and script help GDB load Linux kernel modules (script)

2013-12-21 Thread Hui Zhu
list, this script is slower than getmod. Signed-off-by: Hui Zhu teawa...@gmail.com --- --- /dev/null +++ b/scripts/getmod.py @@ -0,0 +1,151 @@ +#!/usr/bin/python + +# This script is used by GDB to load the symbols from Linux kernel modules +# Copyright(C) KGTP team (https://kgtp.googlecode.com

KGTP (dynamic tracer for Linux kernel and applications) 20131218 release (support Uprobes to trace user applications)

2013-12-18 Thread Hui Zhu
it. And I also post it with this mail. Signed-off-by: Hui Zhu --- --- a/arch/arc/kernel/kgdb.c +++ b/arch/arc/kernel/kgdb.c @@ -61,6 +61,7 @@ void pt_regs_to_gdb_regs(unsigned long * to_gdb_regs(gdb_regs, kernel_regs, (struct callee_regs *) current->thread.callee_

KGTP (dynamic tracer for Linux kernel and applications) 20131218 release (support Uprobes to trace user applications)

2013-12-18 Thread Hui Zhu
it. And I also post it with this mail. Signed-off-by: Hui Zhu teawa...@gmail.com --- --- a/arch/arc/kernel/kgdb.c +++ b/arch/arc/kernel/kgdb.c @@ -61,6 +61,7 @@ void pt_regs_to_gdb_regs(unsigned long * to_gdb_regs(gdb_regs, kernel_regs, (struct callee_regs *) current

RE: [PATCH] ath6kl: sdio: fix system panic when doing wifi stress test

2013-11-28 Thread Hui Liu
> -Original Message- > From: Kalle Valo [mailto:kv...@qca.qualcomm.com] > Sent: Tuesday, November 26, 2013 6:40 PM > To: Liu Hui-R64343 > Cc: linux-arm-ker...@lists.infradead.org; linvi...@tuxdriver.com; linux- > wirel...@vger.kernel.org; net...@vger.kernel

RE: [PATCH] ath6kl: sdio: fix system panic when doing wifi stress test

2013-11-28 Thread Hui Liu
-Original Message- From: Kalle Valo [mailto:kv...@qca.qualcomm.com] Sent: Tuesday, November 26, 2013 6:40 PM To: Liu Hui-R64343 Cc: linux-arm-ker...@lists.infradead.org; linvi...@tuxdriver.com; linux- wirel...@vger.kernel.org; net...@vger.kernel.org; linux- ker...@vger.kernel.org

Re: KGTP (Linux debugger and tracer) 20130915 release (bugs fix and pdf doc)

2013-09-16 Thread Hui Zhu
On Mon, Sep 16, 2013 at 12:50 AM, Andi Kleen wrote: > On Sun, Sep 15, 2013 at 03:58:44PM +0800, Hui Zhu wrote: >> Hi guys, >> >> KGTP (http://code.google.com/p/kgtp/) is a flexible, lightweight and >> realtime Linux debugger and tracer. >> To use it, you don'

Re: KGTP (Linux debugger and tracer) 20130915 release (bugs fix and pdf doc)

2013-09-16 Thread Hui Zhu
On Mon, Sep 16, 2013 at 12:50 AM, Andi Kleen a...@firstfloor.org wrote: On Sun, Sep 15, 2013 at 03:58:44PM +0800, Hui Zhu wrote: Hi guys, KGTP (http://code.google.com/p/kgtp/) is a flexible, lightweight and realtime Linux debugger and tracer. To use it, you don't need patch or rebuild

KGTP (Linux debugger and tracer) 20130915 release (bugs fix and pdf doc)

2013-09-15 Thread Hui Zhu
space program that base on Uprobes. The most of code work was done. Please goto https://github.com/teawater/kgtp/tree/uprobes-dev try it if you are interesting with this function. Thanks, Hui -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

KGTP (Linux debugger and tracer) 20130915 release (bugs fix and pdf doc)

2013-09-15 Thread Hui Zhu
space program that base on Uprobes. The most of code work was done. Please goto https://github.com/teawater/kgtp/tree/uprobes-dev try it if you are interesting with this function. Thanks, Hui -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH] tile: add null check for kzalloc in tile/kernel/setup.c

2013-08-21 Thread Wang Sheng-Hui
Should check the return value of kzalloc first to avoid the null pointer. Then can dereference the non-null pointer to access the fields of struct resource. Signed-off-by: Wang Sheng-Hui --- arch/tile/kernel/setup.c |4 1 file changed, 4 insertions(+) diff --git a/arch/tile/kernel

[PATCH] Add bcm2079x-i2c to drivers/misc

2013-08-21 Thread Jeffrey (Sheng-Hui) Chu
>From f41f64e7f668b86e47059a030cbdcf406c70682c Mon Sep 17 00:00:00 2001 From: Jeffrey Chu Date: Wed, 21 Aug 2013 09:41:19 -0400 Subject: [PATCH] Add bcm2079x-i2c to drivers/misc bcm2079x-i2c is the transport driver that supports bcm2079x Controller. this driver provides basic read(), write(),

[PATCH] Add bcm2079x-i2c to drivers/misc

2013-08-21 Thread Jeffrey (Sheng-Hui) Chu
From f41f64e7f668b86e47059a030cbdcf406c70682c Mon Sep 17 00:00:00 2001 From: Jeffrey Chu jeff...@broadcom.com Date: Wed, 21 Aug 2013 09:41:19 -0400 Subject: [PATCH] Add bcm2079x-i2c to drivers/misc bcm2079x-i2c is the transport driver that supports bcm2079x Controller. this driver provides basic

<    1   2   3   4   5   6   7   8   9   10   >