[PATCH] x86/PAT: priority the PAT warn to error to highlight the developer

2019-09-29 Thread jun . zhang
From: zhang jun Documentation/x86/pat.txt says: set_memory_uc() or set_memory_wc() must use together with set_memory_wb() if break the PAT attribute, there are tons of warning like: [ 45.846872] x86/PAT: NDK MediaCodec_:3753 map pfn RAM range req write-combining for [mem

[PATCH] sched/fair: tiny clearup of -1

2014-12-04 Thread jun . zhang
From: zhang jun find_idlest_cpu don't return -1, so clearup it. Signed-off-by: zhang jun Signed-off-by: Chuansheng Liu Signed-off-by: Changcheng Liu Cc: Greg Kroah-Hartman Cc: Hillf Danton Cc: Vincent Guittot --- kernel/sched/fair.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH] sched/fair: fix find_idlest_cpu return -1

2014-12-04 Thread jun . zhang
From: zhang jun find_idlest_cpu return -1 is not reasonable, set default value to this_cpu. Signed-off-by: zhang jun Signed-off-by: Chuansheng Liu Signed-off-by: Changcheng Liu Cc: Hillf Danton Cc: Vincent Guittot Cc: # 3.14.25 --- kernel/sched/fair.c |4 ++-- 1 file changed, 2

[PATCH v2] sched/fair: fix find_idlest_cpu return -1

2014-12-04 Thread jun . zhang
From: zhang jun in function select_task_rq_fair, when find_idlest_cpu return -1 and sd->child == NULL select_task_rq_fair return -1, system panic. [ 0.738326] BUG: unable to handle kernel paging request at 8800997ea928 [ 0.746138] IP: [] wake_up_new_task+0x43/0x1b0 [ 0.752886] PGD 25df067

[PATCH v2] sched/fair: fix find_idlest_cpu return -1

2014-12-04 Thread jun . zhang
From: zhang jun jun.zh...@intel.com in function select_task_rq_fair, when find_idlest_cpu return -1 and sd-child == NULL select_task_rq_fair return -1, system panic. [ 0.738326] BUG: unable to handle kernel paging request at 8800997ea928 [ 0.746138] IP: [810b15d3]

[PATCH] sched/fair: fix find_idlest_cpu return -1

2014-12-04 Thread jun . zhang
From: zhang jun jun.zh...@intel.com find_idlest_cpu return -1 is not reasonable, set default value to this_cpu. Signed-off-by: zhang jun jun.zh...@intel.com Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: Changcheng Liu changcheng@intel.com Cc: Hillf Danton

[PATCH] sched/fair: tiny clearup of -1

2014-12-04 Thread jun . zhang
From: zhang jun jun.zh...@intel.com find_idlest_cpu don't return -1, so clearup it. Signed-off-by: zhang jun jun.zh...@intel.com Signed-off-by: Chuansheng Liu chuansheng@intel.com Signed-off-by: Changcheng Liu changcheng@intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

[PATCH] sched/fair: fix select_task_rq_fair return -1

2014-12-03 Thread jun . zhang
From: zhang jun when cpu == -1 and sd->child == NULL, select_task_rq_fair return -1, system panic. [ 0.738326] BUG: unable to handle kernel paging request at 8800997ea928 [ 0.746138] IP: [] wake_up_new_task+0x43/0x1b0 [ 0.752886] PGD 25df067 PUD 0 [ 0.756321] Oops: 1 PREEMPT SMP [

[PATCH] sched/fair: fix select_task_rq_fair return -1

2014-12-03 Thread jun . zhang
From: zhang jun jun.zh...@intel.com when cpu == -1 and sd-child == NULL, select_task_rq_fair return -1, system panic. [ 0.738326] BUG: unable to handle kernel paging request at 8800997ea928 [ 0.746138] IP: [810b15d3] wake_up_new_task+0x43/0x1b0 [ 0.752886] PGD 25df067 PUD 0 [

[PATCH] workqueue: give a protection when get_work_pwq return NULL.

2014-09-18 Thread jun . zhang
From: zhang jun if pwq==NULL, system could panic. next is the panic log. [12973.660792] BUG: unable to handle kernel NULL pointer dereference at 0004 [12973.668787] IP: [] process_one_work+0x2b/0x3e0 [12973.674735] *pdpt = 304b0001 *pde = [12973.681167] Oops:

[PATCH] workqueue: give a protection when get_work_pwq return NULL.

2014-09-18 Thread jun . zhang
From: zhang jun jun.zh...@intel.com if pwq==NULL, system could panic. next is the panic log. [12973.660792] BUG: unable to handle kernel NULL pointer dereference at 0004 [12973.668787] IP: [c125b8ab] process_one_work+0x2b/0x3e0 [12973.674735] *pdpt = 304b0001 *pde =

[PATCH v3] firmware: give a protection when map page failed

2014-02-12 Thread jun . zhang
From: zhang jun >From the following oops log, we find firmware buffer is null, which caused by >memory alloc failed. so, we need give a protection and return a error value. [ 7341.474236] [drm:do_intel_finish_page_flip] *ERROR* invalid or inactive unpin_work! [ 7341.494464]

[PATCH v3] firmware: give a protection when map page failed

2014-02-12 Thread jun . zhang
From: zhang jun jun.zh...@intel.com From the following oops log, we find firmware buffer is null, which caused by memory alloc failed. so, we need give a protection and return a error value. [ 7341.474236] [drm:do_intel_finish_page_flip] *ERROR* invalid or inactive unpin_work! [ 7341.494464]

[PATCH v2] firmware: give a protection when map page failed

2014-02-06 Thread jun . zhang
From: zhang jun >From the following oops log, we find firmware buffer is null, which caused by >memory alloc failed. so, we need give a protection and return a error value. [ 7341.474236] [drm:do_intel_finish_page_flip] *ERROR* invalid or inactive unpin_work! [ 7341.494464]

[PATCH v2] firmware: give a protection when map page failed

2014-02-06 Thread jun . zhang
From: zhang jun jun.zh...@intel.com From the following oops log, we find firmware buffer is null, which caused by memory alloc failed. so, we need give a protection and return a error value. [ 7341.474236] [drm:do_intel_finish_page_flip] *ERROR* invalid or inactive unpin_work! [ 7341.494464]