[PATCH RFC v1 07/12] kernel/userspace additions for addition ioctl() support for rtc

2016-04-14 Thread Bill Huey (hui)
Add additional ioctl() values to rtc so that it can 'admit' the calling thread into a red-black tree for tracking, set the execution slot pattern, support for setting whether read() will yield or block. Signed-off-by: Bill Huey (hui) --- include/uapi/linux/rtc.h | 4 1 file changed, 4

[PATCH RFC v1 05/12] Task tracking per file descriptor

2016-04-14 Thread Bill Huey (hui)
Task tracking per file descriptor for thread death clean up. Signed-off-by: Bill Huey (hui) --- drivers/rtc/class.c | 3 +++ include/linux/rtc.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 74fd974..ad570b9 100644 --- a/drivers/rtc

[PATCH RFC v1 00/12] Cyclic Scheduler Against RTC

2016-04-14 Thread Bill Huey (hui)
like to also credit Marco Ballesio from Palm as well for the multimedia insights. I omitted that in my first message. Hope the build bots like these changes :) bill --- Bill Huey (hui) (12): Kconfig change Reroute rtc update irqs to the cyclic scheduler handler Add cyclic support to rtc

[PATCH RFC v1 08/12] Compilation support

2016-04-14 Thread Bill Huey (hui)
Makefile changes to support the menuconfig option Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile index 302d6eb..df8e131 100644 --- a/kernel/sched/Makefile

[PATCH RFC v1 08/12] Compilation support

2016-04-14 Thread Bill Huey (hui)
Makefile changes to support the menuconfig option Signed-off-by: Bill Huey (hui) --- kernel/sched/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile index 302d6eb..df8e131 100644 --- a/kernel/sched/Makefile +++ b/kernel/sched/Makefile

[PATCH RFC v1 11/12] Cyclic scheduler support

2016-04-14 Thread Bill Huey (hui)
Core implementation of the cyclic scheduler that includes admittance handling, thread death supprot, cyclic timer tick handler, primitive proc debugging interface, wait-queue modifications. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/cyclic.c

[PATCH RFC v1 09/12] Add priority support for the cyclic scheduler

2016-04-14 Thread Bill Huey (hui)
be SCHED_FIFO. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 44db0ff..cf6cf57 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -87,6

[PATCH RFC v1 11/12] Cyclic scheduler support

2016-04-14 Thread Bill Huey (hui)
Core implementation of the cyclic scheduler that includes admittance handling, thread death supprot, cyclic timer tick handler, primitive proc debugging interface, wait-queue modifications. Signed-off-by: Bill Huey (hui) --- kernel/sched/cyclic.c| 620

[PATCH RFC v1 09/12] Add priority support for the cyclic scheduler

2016-04-14 Thread Bill Huey (hui)
be SCHED_FIFO. Signed-off-by: Bill Huey (hui) --- kernel/sched/core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 44db0ff..cf6cf57 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -87,6 +87,10 @@ #include

[PATCH RFC v1 04/12] Anonymous struct initialization

2016-04-14 Thread Bill Huey (hui)
Anonymous struct initialization Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- include/linux/init_task.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/linux/init_task.h b/include/linux/init_task.h index f2cb8d4..ac9b0d9 100644 --- a/include

[PATCH RFC v1 04/12] Anonymous struct initialization

2016-04-14 Thread Bill Huey (hui)
Anonymous struct initialization Signed-off-by: Bill Huey (hui) --- include/linux/init_task.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/linux/init_task.h b/include/linux/init_task.h index f2cb8d4..ac9b0d9 100644 --- a/include/linux/init_task.h +++ b/include

[PATCH RFC v1 12/12] Cyclic/rtc documentation

2016-04-14 Thread Bill Huey (hui)
Initial attempt at documentation with a test program Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- Documentation/scheduler/sched-cyclic-rtc.txt | 468 +++ 1 file changed, 468 insertions(+) create mode 100644 Documentation/scheduler/sched-cyclic-rtc.txt

[PATCH RFC v1 06/12] Add anonymous struct to sched_rt_entity

2016-04-14 Thread Bill Huey (hui)
Add an anonymous struct to support admittance using a red-black tree, overrun tracking, state for whether or not to yield or block, debugging support, execution slot pattern for the scheduler. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- include/linux/sched.h | 15

[PATCH RFC v1 12/12] Cyclic/rtc documentation

2016-04-14 Thread Bill Huey (hui)
Initial attempt at documentation with a test program Signed-off-by: Bill Huey (hui) --- Documentation/scheduler/sched-cyclic-rtc.txt | 468 +++ 1 file changed, 468 insertions(+) create mode 100644 Documentation/scheduler/sched-cyclic-rtc.txt diff --git a/Documentation

[PATCH RFC v1 06/12] Add anonymous struct to sched_rt_entity

2016-04-14 Thread Bill Huey (hui)
Add an anonymous struct to support admittance using a red-black tree, overrun tracking, state for whether or not to yield or block, debugging support, execution slot pattern for the scheduler. Signed-off-by: Bill Huey (hui) --- include/linux/sched.h | 15 +++ 1 file changed, 15

[PATCH RFC v1 02/12] Reroute rtc update irqs to the cyclic scheduler handler

2016-04-14 Thread Bill Huey (hui)
Redirect rtc update irqs so that it drives the cyclic scheduler timer handler instead. Let the handler determine which slot to activate next. Similar to scheduler tick handling but just for the cyclic scheduler. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- drivers/rtc/inter

[PATCH RFC v1 02/12] Reroute rtc update irqs to the cyclic scheduler handler

2016-04-14 Thread Bill Huey (hui)
Redirect rtc update irqs so that it drives the cyclic scheduler timer handler instead. Let the handler determine which slot to activate next. Similar to scheduler tick handling but just for the cyclic scheduler. Signed-off-by: Bill Huey (hui) --- drivers/rtc/interface.c | 23

Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC

2016-04-13 Thread Bill Huey (hui)
Hi, On Wed, Apr 13, 2016 at 3:08 AM, Juri Lelli wrote: > I'm not sure what you mean by "localized", but I believe DEADLINE should > be used more widely to service the same kind of applications you are > referring to. It's still a quite new addition to the scheduler, so it is

Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC

2016-04-13 Thread Bill Huey (hui)
Hi, On Wed, Apr 13, 2016 at 3:08 AM, Juri Lelli wrote: > I'm not sure what you mean by "localized", but I believe DEADLINE should > be used more widely to service the same kind of applications you are > referring to. It's still a quite new addition to the scheduler, so it is > understandable

Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC

2016-04-13 Thread Bill Huey (hui)
[Trying to resend this so that linux-kernel mailer doesn't reject it. ok just found plain text mode. Will cull the CC list in future responses] Hi Juri, It's not for replacing deadline first of all. I'm not fully aware of the kind of things being done with deadline and I would like links so that

Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC

2016-04-13 Thread Bill Huey (hui)
[Trying to resend this so that linux-kernel mailer doesn't reject it. ok just found plain text mode. Will cull the CC list in future responses] Hi Juri, It's not for replacing deadline first of all. I'm not fully aware of the kind of things being done with deadline and I would like links so that

[PATCH RFC v0 03/12] Add cyclic support to rtc-dev.c

2016-04-11 Thread Bill Huey (hui)
wait-queue changes to rtc_dev_read so that it can support overrun count reporting when multiple threads are blocked against a single wait object. ioctl() additions to allow for those calling it to admit the thread to the cyclic scheduler. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.

[PATCH RFC v0 05/12] Task tracking per file descriptor

2016-04-11 Thread Bill Huey (hui)
Task tracking per file descriptor for thread death clean up. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- drivers/rtc/class.c | 3 +++ include/linux/rtc.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 74fd974..ad570b9

[PATCH RFC v0 03/12] Add cyclic support to rtc-dev.c

2016-04-11 Thread Bill Huey (hui)
wait-queue changes to rtc_dev_read so that it can support overrun count reporting when multiple threads are blocked against a single wait object. ioctl() additions to allow for those calling it to admit the thread to the cyclic scheduler. Signed-off-by: Bill Huey (hui) --- drivers/rtc/rtc

[PATCH RFC v0 05/12] Task tracking per file descriptor

2016-04-11 Thread Bill Huey (hui)
Task tracking per file descriptor for thread death clean up. Signed-off-by: Bill Huey (hui) --- drivers/rtc/class.c | 3 +++ include/linux/rtc.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 74fd974..ad570b9 100644 --- a/drivers/rtc

[PATCH RFC v0 10/12] Export SCHED_FIFO/RT requeuing functions

2016-04-11 Thread Bill Huey (hui)
SCHED_FIFO/RT tail/head runqueue insertion support, initial thread death support via a hook to the scheduler class. Thread death must include additional semantics to remove/discharge an admitted task properly. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/rt.

[PATCH RFC v0 06/12] Add anonymous struct to sched_rt_entity

2016-04-11 Thread Bill Huey (hui)
Add an anonymous struct to support admittance using a red-black tree, overrun tracking, state for whether or not to yield or block, debugging support, execution slot pattern for the scheduler. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- include/linux/sched.h | 15

[PATCH RFC v0 02/12] Reroute rtc update irqs to the cyclic scheduler handler

2016-04-11 Thread Bill Huey (hui)
Redirect rtc update irqs so that it drives the cyclic scheduler timer handler instead. Let the handler determine which slot to activate next. Similar to scheduler tick handling but just for the cyclic scheduler. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- drivers/rtc/inter

[PATCH RFC v0 10/12] Export SCHED_FIFO/RT requeuing functions

2016-04-11 Thread Bill Huey (hui)
SCHED_FIFO/RT tail/head runqueue insertion support, initial thread death support via a hook to the scheduler class. Thread death must include additional semantics to remove/discharge an admitted task properly. Signed-off-by: Bill Huey (hui) --- kernel/sched/rt.c | 41

[PATCH RFC v0 06/12] Add anonymous struct to sched_rt_entity

2016-04-11 Thread Bill Huey (hui)
Add an anonymous struct to support admittance using a red-black tree, overrun tracking, state for whether or not to yield or block, debugging support, execution slot pattern for the scheduler. Signed-off-by: Bill Huey (hui) --- include/linux/sched.h | 15 +++ 1 file changed, 15

[PATCH RFC v0 02/12] Reroute rtc update irqs to the cyclic scheduler handler

2016-04-11 Thread Bill Huey (hui)
Redirect rtc update irqs so that it drives the cyclic scheduler timer handler instead. Let the handler determine which slot to activate next. Similar to scheduler tick handling but just for the cyclic scheduler. Signed-off-by: Bill Huey (hui) --- drivers/rtc/interface.c | 23

[PATCH RFC v0 01/12] Kconfig change

2016-04-11 Thread Bill Huey (hui)
Add the selection options for the cyclic scheduler Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- drivers/rtc/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 544bd34..8a1b704 100644 --- a/drivers/rtc/Kconfig +++ b/d

[PATCH RFC v0 08/12] Compilation support

2016-04-11 Thread Bill Huey (hui)
Makefile changes to support the menuconfig option Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile index 302d6eb..df8e131 100644 --- a/kernel/sched/Makefile

[PATCH RFC v0 01/12] Kconfig change

2016-04-11 Thread Bill Huey (hui)
Add the selection options for the cyclic scheduler Signed-off-by: Bill Huey (hui) --- drivers/rtc/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 544bd34..8a1b704 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -73,6

[PATCH RFC v0 08/12] Compilation support

2016-04-11 Thread Bill Huey (hui)
Makefile changes to support the menuconfig option Signed-off-by: Bill Huey (hui) --- kernel/sched/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile index 302d6eb..df8e131 100644 --- a/kernel/sched/Makefile +++ b/kernel/sched/Makefile

[PATCH RFC v0 07/12] kernel/userspace additions for addition ioctl() support for rtc

2016-04-11 Thread Bill Huey (hui)
Add additional ioctl() values to rtc so that it can 'admit' the calling thread into a red-black tree for tracking, set the execution slot pattern, support for setting whether read() will yield or block. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- include/uapi/linux/rtc.h | 4 +

[PATCH RFC v0 07/12] kernel/userspace additions for addition ioctl() support for rtc

2016-04-11 Thread Bill Huey (hui)
Add additional ioctl() values to rtc so that it can 'admit' the calling thread into a red-black tree for tracking, set the execution slot pattern, support for setting whether read() will yield or block. Signed-off-by: Bill Huey (hui) --- include/uapi/linux/rtc.h | 4 1 file changed, 4

[PATCH RFC v0 12/12] Cyclic/rtc documentation

2016-04-11 Thread Bill Huey (hui)
Initial attempt at documentation with a test program Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- Documentation/scheduler/sched-cyclic-rtc.txt | 468 +++ 1 file changed, 468 insertions(+) create mode 100644 Documentation/scheduler/sched-cyclic-rtc.txt

[PATCH RFC v0 12/12] Cyclic/rtc documentation

2016-04-11 Thread Bill Huey (hui)
Initial attempt at documentation with a test program Signed-off-by: Bill Huey (hui) --- Documentation/scheduler/sched-cyclic-rtc.txt | 468 +++ 1 file changed, 468 insertions(+) create mode 100644 Documentation/scheduler/sched-cyclic-rtc.txt diff --git a/Documentation

[PATCH RFC v0 09/12] Add priority support for the cyclic scheduler

2016-04-11 Thread Bill Huey (hui)
be SCHED_FIFO. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 44db0ff..cf6cf57 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -87,6

[PATCH RFC v0 11/12] Cyclic scheduler support

2016-04-11 Thread Bill Huey (hui)
Core implementation of the cyclic scheduler that includes admittance handling, thread death supprot, cyclic timer tick handler, primitive proc debugging interface, wait-queue modifications. Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- kernel/sched/cyclic.c

[PATCH RFC v0 00/12] Cyclic Scheduler Against RTC

2016-04-11 Thread Bill Huey (hui)
like this and -rt shipped as default in the near future. [Also, I'd love some kind of sponsorship to continue what I think is critical work versus heading back into the valley] --- Bill Huey (hui) (12): Kconfig change Reroute rtc update irqs to the cyclic scheduler handler Add cyclic

[PATCH RFC v0 04/12] Anonymous struct initialization

2016-04-11 Thread Bill Huey (hui)
Anonymous struct initialization Signed-off-by: Bill Huey (hui) <bill.h...@gmail.com> --- include/linux/init_task.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/linux/init_task.h b/include/linux/init_task.h index f2cb8d4..308caf6 100644 --- a/include

[PATCH RFC v0 09/12] Add priority support for the cyclic scheduler

2016-04-11 Thread Bill Huey (hui)
be SCHED_FIFO. Signed-off-by: Bill Huey (hui) --- kernel/sched/core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 44db0ff..cf6cf57 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -87,6 +87,10 @@ #include

[PATCH RFC v0 11/12] Cyclic scheduler support

2016-04-11 Thread Bill Huey (hui)
Core implementation of the cyclic scheduler that includes admittance handling, thread death supprot, cyclic timer tick handler, primitive proc debugging interface, wait-queue modifications. Signed-off-by: Bill Huey (hui) --- kernel/sched/cyclic.c| 620

[PATCH RFC v0 00/12] Cyclic Scheduler Against RTC

2016-04-11 Thread Bill Huey (hui)
like this and -rt shipped as default in the near future. [Also, I'd love some kind of sponsorship to continue what I think is critical work versus heading back into the valley] --- Bill Huey (hui) (12): Kconfig change Reroute rtc update irqs to the cyclic scheduler handler Add cyclic

[PATCH RFC v0 04/12] Anonymous struct initialization

2016-04-11 Thread Bill Huey (hui)
Anonymous struct initialization Signed-off-by: Bill Huey (hui) --- include/linux/init_task.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/linux/init_task.h b/include/linux/init_task.h index f2cb8d4..308caf6 100644 --- a/include/linux/init_task.h +++ b/include

[PATCH 2/3] zsmalloc: make its page "PageMobile"

2015-11-27 Thread Hui Zhu
The idea of this patch is same with prev version [1]. But it use the migration frame in [1]. [1] http://comments.gmane.org/gmane.linux.kernel.mm/140014 [2] https://lkml.org/lkml/2015/7/7/21 Signed-off-by: Hui Zhu --- mm/zsmalloc.c | 214

[PATCH v3 0/3] zsmalloc: make its pages can be migrated

2015-11-27 Thread Hui Zhu
These patches updated according to the review for the prev version [1]. So they are based on "[RFCv3 0/5] enable migration of driver pages" [2] and "[RFC zsmalloc 0/4] meta diet" [3]. Hui Zhu (3): zsmalloc: make struct can move zsmalloc: mark its page "PageMobile" zr

[PATCH 1/3] zsmalloc: make struct can be migrated

2015-11-27 Thread Hui Zhu
kml/2015/8/10/90 [2] https://lkml.org/lkml/2015/7/7/21 Signed-off-by: Hui Zhu --- mm/zsmalloc.c | 178 ++ 1 file changed, 104 insertions(+), 74 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 1b18144..57c91a5 100644 --- a/mm/

[PATCH 3/3] zram: make create "__GFP_MOVABLE" pool

2015-11-27 Thread Hui Zhu
Change the flags when call zs_create_pool to make zram alloc movable zsmalloc page. Signed-off-by: Hui Zhu --- drivers/block/zram/zram_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 9fa15bb

[PATCH 2/3] zsmalloc: make its page "PageMobile"

2015-11-27 Thread Hui Zhu
The idea of this patch is same with prev version [1]. But it use the migration frame in [1]. [1] http://comments.gmane.org/gmane.linux.kernel.mm/140014 [2] https://lkml.org/lkml/2015/7/7/21 Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- mm/zsmalloc.c

[PATCH 3/3] zram: make create "__GFP_MOVABLE" pool

2015-11-27 Thread Hui Zhu
Change the flags when call zs_create_pool to make zram alloc movable zsmalloc page. Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- drivers/block/zram/zram_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram

[PATCH 1/3] zsmalloc: make struct can be migrated

2015-11-27 Thread Hui Zhu
kml/2015/8/10/90 [2] https://lkml.org/lkml/2015/7/7/21 Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- mm/zsmalloc.c | 178 ++ 1 file changed, 104 insertions(+), 74 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 1b18144

[PATCH v3 0/3] zsmalloc: make its pages can be migrated

2015-11-27 Thread Hui Zhu
These patches updated according to the review for the prev version [1]. So they are based on "[RFCv3 0/5] enable migration of driver pages" [2] and "[RFC zsmalloc 0/4] meta diet" [3]. Hui Zhu (3): zsmalloc: make struct can move zsmalloc: mark its page "PageMobile" zr

Re: [RFC v2 1/3] migrate: new struct migration and add it to struct page

2015-10-19 Thread Hui Zhu
On Thu, Oct 15, 2015 at 5:53 PM, Minchan Kim wrote: > On Thu, Oct 15, 2015 at 11:27:15AM +0200, Vlastimil Babka wrote: >> On 10/15/2015 11:09 AM, Hui Zhu wrote: >> >I got that add function interfaces is really not a good idea. >> >So I add a new struct migration to p

Re: [RFC v2 1/3] migrate: new struct migration and add it to struct page

2015-10-19 Thread Hui Zhu
On Thu, Oct 15, 2015 at 5:53 PM, Minchan Kim <minc...@kernel.org> wrote: > On Thu, Oct 15, 2015 at 11:27:15AM +0200, Vlastimil Babka wrote: >> On 10/15/2015 11:09 AM, Hui Zhu wrote: >> >I got that add function interfaces is really not a good idea. >> >So I add

Re: [PATCH] zsmalloc: remove unless line in obj_free

2015-10-13 Thread Hui Zhu
Thanks. I will post a new version later. Best, Hui On Tue, Oct 13, 2015 at 4:00 PM, Sergey Senozhatsky wrote: > On (10/13/15 14:31), Hui Zhu wrote: >> Signed-off-by: Hui Zhu > > s/unless/useless/ > > other than that > > Reviewed-by: Sergey Senozhatsky >

[PATCH v2] zsmalloc: remove useless line in obj_free

2015-10-13 Thread Hui Zhu
Signed-off-by: Hui Zhu Reviewed-by: Sergey Senozhatsky --- mm/zsmalloc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..c7338f0 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1428,8 +1428,6 @@ static void obj_free(struct zs_pool *pool

[PATCH] zsmalloc: remove unless line in obj_free

2015-10-13 Thread Hui Zhu
Signed-off-by: Hui Zhu --- mm/zsmalloc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..c7338f0 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1428,8 +1428,6 @@ static void obj_free(struct zs_pool *pool, struct size_class *class

[PATCH] zsmalloc: remove unless line in obj_free

2015-10-13 Thread Hui Zhu
Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- mm/zsmalloc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..c7338f0 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1428,8 +1428,6 @@ static void obj_free(struct zs_pool *pool,

[PATCH v2] zsmalloc: remove useless line in obj_free

2015-10-13 Thread Hui Zhu
Signed-off-by: Hui Zhu <zhu...@xiaomi.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhat...@gmail.com> --- mm/zsmalloc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..c7338f0 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -14

Re: [PATCH] zsmalloc: remove unless line in obj_free

2015-10-13 Thread Hui Zhu
Thanks. I will post a new version later. Best, Hui On Tue, Oct 13, 2015 at 4:00 PM, Sergey Senozhatsky <sergey.senozhatsky.w...@gmail.com> wrote: > On (10/13/15 14:31), Hui Zhu wrote: >> Signed-off-by: Hui Zhu <zhu...@xiaomi.com> > > s/unless/useless/ > > other

[PATCH v2] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Hui Zhu
e reason why there is no problem until now is huge-class page is born with ZS_FULL so it couldn't be migrated. Therefore, it shouldn't be real bug in practice. However, we need this patch for future-work "VM-aware zsmalloced page migration" to reduce external fragmentation. Signed-off-by: Hui

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Hui Zhu
On Tue, Oct 6, 2015 at 9:54 PM, Minchan Kim wrote: > Hello, > > On Mon, Oct 05, 2015 at 04:23:01PM +0800, Hui Zhu wrote: >> In function obj_malloc: >> if (!class->huge) >> /* record handle in the header of allocated chunk */ >>

Re: [PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Hui Zhu
On Tue, Oct 6, 2015 at 9:54 PM, Minchan Kim <minc...@kernel.org> wrote: > Hello, > > On Mon, Oct 05, 2015 at 04:23:01PM +0800, Hui Zhu wrote: >> In function obj_malloc: >> if (!class->huge) >> /* record handle in the header of allocated ch

[PATCH v2] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-06 Thread Hui Zhu
e reason why there is no problem until now is huge-class page is born with ZS_FULL so it couldn't be migrated. Therefore, it shouldn't be real bug in practice. However, we need this patch for future-work "VM-aware zsmalloced page migration" to reduce external fragmentation. Signed-off-by: Hui

[PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-05 Thread Hui Zhu
page_private(page) as value but not pointer in obj_to_head. Signed-off-by: Hui Zhu --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..e881d4f 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -824,7 +824,7 @@ static u

[PATCH] zsmalloc: fix obj_to_head use page_private(page) as value but not pointer

2015-10-05 Thread Hui Zhu
page_private(page) as value but not pointer in obj_to_head. Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..e881d4f 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.

[PATCH v2] zsmalloc: add comments for ->inuse to zspage

2015-09-24 Thread Hui Zhu
Signed-off-by: Hui Zhu --- mm/zsmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..f62f2fb 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -38,6 +38,7 @@ * page->lru: links together first pages of various zspa

[PATCH v2] zsmalloc: add comments for ->inuse to zspage

2015-09-24 Thread Hui Zhu
Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- mm/zsmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..f62f2fb 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -38,6 +38,7 @@ * page->lru: links together first pages of variou

[PATCH] zsmalloc: add comments for ->inuse to zspage

2015-09-22 Thread Hui Zhu
Signed-off-by: Hui Zhu --- mm/zsmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..1f66d5b 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -38,6 +38,7 @@ * page->lru: links together first pages of various zspa

[PATCH] zsmalloc: add comments for ->inuse to zspage

2015-09-22 Thread Hui Zhu
Signed-off-by: Hui Zhu <zhu...@xiaomi.com> --- mm/zsmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index f135b1b..1f66d5b 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -38,6 +38,7 @@ * page->lru: links together first pages of variou

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

2015-07-01 Thread Hui Wang
On 06/29/2015 08:49 AM, Hui Wang wrote: On 06/27/2015 11:03 AM, Raymond Yau wrote: Most Thinkpad Edge series laptops use conexant codec, so far although Is there anything I can debug or any information I can collect from my box to examine this? What is the linux distribution on your machine

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

2015-07-01 Thread Hui Wang
On 06/29/2015 08:49 AM, Hui Wang wrote: On 06/27/2015 11:03 AM, Raymond Yau wrote: Most Thinkpad Edge series laptops use conexant codec, so far although snip Is there anything I can debug or any information I can collect from my box to examine this? What is the linux distribution on your

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

2015-06-28 Thread Hui Wang
On 06/27/2015 11:03 AM, Raymond Yau wrote: Most Thinkpad Edge series laptops use conexant codec, so far although Is there anything I can debug or any information I can collect from my box to examine this? What is the linux distribution on your machine? And use showkey to catch the keycode of

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

2015-06-28 Thread Hui Wang
On 06/27/2015 11:03 AM, Raymond Yau wrote: Most Thinkpad Edge series laptops use conexant codec, so far although snip Is there anything I can debug or any information I can collect from my box to examine this? What is the linux distribution on your machine? And use showkey to catch the

Call for Topics and Sponsors

2015-06-25 Thread Hui Zhu
* Call for Topics and Sponsors Workshop on Open Source Development Tools 2015 Beijing, China Sep. 12, 2015 (TBD) HelloGCC Work Group (www.hellogcc.org) *

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

2015-06-25 Thread Hui Wang
On 06/25/2015 07:02 PM, Jan Kiszka wrote: On 2015-06-24 10:46, Hui Wang wrote: On 06/24/2015 01:37 PM, Jan Kiszka wrote: On 2015-05-23 18:22, Jan Kiszka wrote: On 2015-05-23 18:06, Raymond Yau wrote: 2015-5-23 下午4:50 於 "Jan Kiszka" 寫道: Most Thinkpad Edge series laptops use cone

Call for Topics and Sponsors

2015-06-25 Thread Hui Zhu
* Call for Topics and Sponsors Workshop on Open Source Development Tools 2015 Beijing, China Sep. 12, 2015 (TBD) HelloGCC Work Group (www.hellogcc.org) *

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

2015-06-25 Thread Hui Wang
On 06/25/2015 07:02 PM, Jan Kiszka wrote: On 2015-06-24 10:46, Hui Wang wrote: On 06/24/2015 01:37 PM, Jan Kiszka wrote: On 2015-05-23 18:22, Jan Kiszka wrote: On 2015-05-23 18:06, Raymond Yau wrote: 2015-5-23 下午4:50 於 Jan Kiszka jan.kis...@web.de 寫道: Most Thinkpad Edge series laptops use

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

2015-06-24 Thread Hui Wang
On 06/24/2015 01:37 PM, Jan Kiszka wrote: On 2015-05-23 18:22, Jan Kiszka wrote: On 2015-05-23 18:06, Raymond Yau wrote: 2015-5-23 下午4:50 於 "Jan Kiszka" 寫道: Most Thinkpad Edge series laptops use conexant codec, so far although Is there anything I can debug or any information I can collect

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

2015-06-24 Thread Hui Wang
On 06/24/2015 01:37 PM, Jan Kiszka wrote: On 2015-05-23 18:22, Jan Kiszka wrote: On 2015-05-23 18:06, Raymond Yau wrote: 2015-5-23 下午4:50 於 Jan Kiszka jan.kis...@web.de 寫道: Most Thinkpad Edge series laptops use conexant codec, so far although snip Is there anything I can debug or any

Re: [PATCH v2] CMA: page_isolation: check buddy before access it

2015-05-06 Thread Hui Zhu
On Wed, May 6, 2015 at 2:28 PM, Joonsoo Kim wrote: > On Tue, May 05, 2015 at 11:22:59AM +0800, Hui Zhu wrote: >> Change pfn_present to pfn_valid_within according to the review of Laura. >> >> I got a issue: >> [ 214.294917] Unable to handle kernel NULL pointer derefer

[PATCH v3] CMA: page_isolation: check buddy before access it

2015-05-06 Thread Hui Zhu
dx - page_idx); if (!is_migrate_isolate_page(buddy)) { But the begin addr of this part of CMA memory is very close to a part of memory that is reserved in the boot time (not in buddy system). So add a check before access it. Suggested-by: Laura Abbott Suggested-by: Joonsoo Kim Signed-off-by: Hui Zhu --- mm/page_is

Re: [PATCH v2] CMA: page_isolation: check buddy before access it

2015-05-06 Thread Hui Zhu
On Wed, May 6, 2015 at 2:28 PM, Joonsoo Kim iamjoonsoo@lge.com wrote: On Tue, May 05, 2015 at 11:22:59AM +0800, Hui Zhu wrote: Change pfn_present to pfn_valid_within according to the review of Laura. I got a issue: [ 214.294917] Unable to handle kernel NULL pointer dereference at virtual

[PATCH v3] CMA: page_isolation: check buddy before access it

2015-05-06 Thread Hui Zhu
Abbott labb...@redhat.com Suggested-by: Joonsoo Kim iamjoonsoo@lge.com Signed-off-by: Hui Zhu zhu...@xiaomi.com --- mm/page_isolation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_isolation.c b/mm/page_isolation.c index 755a42c..4a5624c 100644 --- a/mm

Re: [PATCH v2] CMA: page_isolation: check buddy before access it

2015-05-05 Thread Hui Zhu
On Wed, May 6, 2015 at 5:29 AM, Andrew Morton wrote: > On Tue, 5 May 2015 11:22:59 +0800 Hui Zhu wrote: > >> Change pfn_present to pfn_valid_within according to the review of Laura. >> >> I got a issue: >> [ 214.294917] Unable to handle kernel NULL pointer dere

Re: [PATCH v2] CMA: page_isolation: check buddy before access it

2015-05-05 Thread Hui Zhu
On Wed, May 6, 2015 at 5:29 AM, Andrew Morton a...@linux-foundation.org wrote: On Tue, 5 May 2015 11:22:59 +0800 Hui Zhu zhu...@xiaomi.com wrote: Change pfn_present to pfn_valid_within according to the review of Laura. I got a issue: [ 214.294917] Unable to handle kernel NULL pointer

[PATCH v2] CMA: page_isolation: check buddy before access it

2015-05-04 Thread Hui Zhu
emory is very close to a part of memory that is reserved in the boot time (not in buddy system). So add a check before access it. Signed-off-by: Hui Zhu --- mm/page_isolation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_isolation.c b/mm/page_isolation.c index 755

Re: [PATCH] CMA: page_isolation: check buddy before access it

2015-05-04 Thread Hui Zhu
On Tue, May 5, 2015 at 2:34 AM, Laura Abbott wrote: > On 05/04/2015 02:41 AM, Hui Zhu wrote: >> >> I got a issue: >> [ 214.294917] Unable to handle kernel NULL pointer dereference at virtual >> address 082a >> [ 214.303013] pgd = cc97 >>

[PATCH] CMA: page_isolation: check buddy before access it

2015-05-04 Thread Hui Zhu
(not in buddy system). So add a check before access it. Signed-off-by: Hui Zhu --- mm/page_isolation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_isolation.c b/mm/page_isolation.c index 755a42c..434730b 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@

[PATCH] CMA: page_isolation: check buddy before access it

2015-05-04 Thread Hui Zhu
memory is very close to a part of memory that is reserved in the boot time (not in buddy system). So add a check before access it. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- mm/page_isolation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_isolation.c b/mm

Re: [PATCH] CMA: page_isolation: check buddy before access it

2015-05-04 Thread Hui Zhu
On Tue, May 5, 2015 at 2:34 AM, Laura Abbott labb...@redhat.com wrote: On 05/04/2015 02:41 AM, Hui Zhu wrote: I got a issue: [ 214.294917] Unable to handle kernel NULL pointer dereference at virtual address 082a [ 214.303013] pgd = cc97 [ 214.305721] [082a] *pgd=

[PATCH v2] CMA: page_isolation: check buddy before access it

2015-05-04 Thread Hui Zhu
); if (!is_migrate_isolate_page(buddy)) { But the begin addr of this part of CMA memory is very close to a part of memory that is reserved in the boot time (not in buddy system). So add a check before access it. Signed-off-by: Hui Zhu zhu...@xiaomi.com --- mm/page_isolation.c | 3 ++- 1 file changed, 2

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 wrote: > Hello, > > On Sun, Jan 18, 2015 at 04:32:59PM +0800, Hui Zhu wrote: >> From: Hui Zhu >> >> The original of this patch [1] is part of Joonsoo's CMA patch series. >> I made a patch [2] to fix the issue of

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

2015-01-18 Thread Hui Zhu
On Sun, Jan 18, 2015 at 6:19 PM, Vlastimil Babka wrote: > On 18.1.2015 10:17, Hui Zhu wrote: >> >> From: Hui Zhu >> >> 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 s

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

2015-01-18 Thread Hui Zhu
From: Hui Zhu 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 move the code

[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 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 if not ALLOC_CMA

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

2015-01-18 Thread Hui Zhu
On Sun, Jan 18, 2015 at 6:19 PM, Vlastimil Babka vba...@suse.cz wrote: On 18.1.2015 10:17, Hui Zhu wrote: 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

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