[PATCH] net/netconsole: Support VLAN for netconsole

2020-12-10 Thread Libing Zhou
During kernel startup phase, current netconsole doesn’t support VLAN since there is no VLAN interface setup already. This patch provides VLAN ID and PCP as optional boot/module parameters to support VLAN environment, thus kernel startup log can be retrieved via VLAN. Signed-off-by: Libing Zhou

[tip: x86/misc] x86/nmi: Fix nmi_handle() duration miscalculation

2020-10-01 Thread tip-bot2 for Libing Zhou
The following commit has been merged into the x86/misc branch of tip: Commit-ID: f94c91f7ba3ba7de2bc8aa31be28e1abb22f849e Gitweb: https://git.kernel.org/tip/f94c91f7ba3ba7de2bc8aa31be28e1abb22f849e Author:Libing Zhou AuthorDate:Thu, 20 Aug 2020 10:56:41 +08:00 Committer

[PATCH v2] x86/nmi: Fix nmi_handle duration miscalculation

2020-08-19 Thread Libing Zhou
In nmi_check_duration(), the 'whole_msecs' value get from 'action->max_duration' is wrong. Fixes: 248ed51048c4 ("x86/nmi: Remove irq_work from the long duration NMI handler") Signed-off-by: Libing Zhou --- v2: Change solution as pet...@infradead.org sugge

[PATCH] x86/nmi: Fix nmi_handle duration miscalculation

2020-08-17 Thread Libing Zhou
In nmi_check_duration(), the 'whole_msecs' value should get from 'duration' to reflect actual time duration, but not 'action->max_duration'. Signed-off-by: Libing Zhou --- arch/x86/kernel/nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[tip: sched/urgent] sched/debug: Fix the alignment of the show-state debug output

2020-08-14 Thread tip-bot2 for Libing Zhou
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: cc172ff301d8079e941a6eb31758951a6d764084 Gitweb: https://git.kernel.org/tip/cc172ff301d8079e941a6eb31758951a6d764084 Author:Libing Zhou AuthorDate:Fri, 14 Aug 2020 11:02:36 +08:00

[PATCH v2] sched: print fields name when do sched_show_task

2020-08-13 Thread Libing Zhou
:0x kernel: Call Trace: kernel: __schedule+0x282/0x620 Signed-off-by: Libing Zhou --- v2: Quote the new format as well in the changelog per Ingo suggested. kernel/sched/core.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/kernel/sched

[PATCH] sched: print fields name when do sched_show_task

2020-08-13 Thread Libing Zhou
: kernel: ? __schedule+0x240/0x740 To make it more readable, print fields name together with task fields value in same line, remove separate fields name print. Signed-off-by: Libing Zhou --- kernel/sched/core.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git

[PATCH] ROMFS: support inode blocks calculation

2020-08-10 Thread Libing Zhou
This patch calculates approx. number of 512B blocks based on inode size. Signed-off-by: Libing Zhou --- fs/romfs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/romfs/super.c b/fs/romfs/super.c index e582d001f792..b1b7d3f5752f 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.

[PATCH] ROMFS: support inode blocks calculation

2020-08-09 Thread Libing Zhou
This patch calculates approx. number of 512B blocks based on inode size. Signed-off-by: Libing Zhou --- fs/romfs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/romfs/super.c b/fs/romfs/super.c index e582d001f792..b1b7d3f5752f 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.

[PATCH] ROMFS: support inode blocks calculation

2020-07-29 Thread Libing Zhou
This patch calculates approx. number of 512B blocks based on inode size. Signed-off-by: Libing Zhou --- fs/romfs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/romfs/super.c b/fs/romfs/super.c index e582d001f792..b1b7d3f5752f 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.

[PATCH] drv: iommu: amd: Remove double zero check

2020-07-21 Thread Libing Zhou
The free_pages() does zero check, therefore remove double zero check here. Signed-off-by: Libing Zhou --- drivers/iommu/amd/init.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c index 6ebd4825e320..60a8a70b0d4f