[PATCH] xen-netfront: Remove the meaningless code

2015-06-26 Thread Liang Li
The function netif_set_real_num_tx_queues() will return -EINVAL if the second parameter < 1, so call this function with the second parameter set to 0 is meaningless. Signed-off-by: Liang Li --- drivers/net/xen-netfront.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/

[PATCH] xen-netfront: Remove the meaningless code

2015-06-26 Thread Liang Li
The function netif_set_real_num_tx_queues() will return -EINVAL if the second parameter 1, so call this function with the second parameter set to 0 is meaningless. Signed-off-by: Liang Li liang.z...@intel.com --- drivers/net/xen-netfront.c | 7 --- 1 file changed, 7 deletions(-) diff --git

[v2 resend] kvm/fpu: Enable eager restore kvm FPU for MPX

2015-05-20 Thread Liang Li
The MPX feature requires eager KVM FPU restore support. We have verified that MPX cannot work correctly with the current lazy KVM FPU restore mechanism. Eager KVM FPU restore should be enabled if the MPX feature is exposed to VM. Signed-off-by: Liang Li Signed-off-by: Yang Zhang --- arch/x86

[v2] kvm/fpu: Enable eager restore kvm FPU for MPX

2015-05-20 Thread Liang Li
The MPX feature requires eager KVM FPU restore support. We have verified that MPX cannot work correctly with the current lazy KVM FPU restore mechanism. Eager KVM FPU restore should be enabled if the MPX feature is exposed to VM. Signed-off-by: Liang Li Signed-off-by: Yang Zhang --- arch/x86

[v2] kvm/fpu: Enable eager restore kvm FPU for MPX

2015-05-20 Thread Liang Li
The MPX feature requires eager KVM FPU restore support. We have verified that MPX cannot work correctly with the current lazy KVM FPU restore mechanism. Eager KVM FPU restore should be enabled if the MPX feature is exposed to VM. Signed-off-by: Liang Li liang.z...@intel.com Signed-off-by: Yang

[v2 resend] kvm/fpu: Enable eager restore kvm FPU for MPX

2015-05-20 Thread Liang Li
The MPX feature requires eager KVM FPU restore support. We have verified that MPX cannot work correctly with the current lazy KVM FPU restore mechanism. Eager KVM FPU restore should be enabled if the MPX feature is exposed to VM. Signed-off-by: Liang Li liang.z...@intel.com Signed-off-by: Yang

[PATCH] kvm/fpu: Enable eager restore kvm FPU for MPX

2015-05-19 Thread Liang Li
The MPX feature requires eager KVM FPU restore support. We have verified that MPX cannot work correctly with the current lazy KVM FPU restore mechanism. Eager KVM FPU restore should be enabled if the MPX feature is exposed to VM. Signed-off-by: Liang Li --- arch/x86/kvm/vmx.c | 2 ++ arch/x86

[PATCH] kvm/fpu: Enable eager restore kvm FPU for MPX

2015-05-19 Thread Liang Li
The MPX feature requires eager KVM FPU restore support. We have verified that MPX cannot work correctly with the current lazy KVM FPU restore mechanism. Eager KVM FPU restore should be enabled if the MPX feature is exposed to VM. Signed-off-by: Liang Li liang.z...@intel.com --- arch/x86/kvm

[v6] kvm/fpu: Enable fully eager restore kvm FPU

2015-04-23 Thread Liang Li
Romove lazy FPU logic and use eager FPU entirely. Eager FPU does not have performance regression, and it can simplify the code. When compiling kernel on westmere, the performance of eager FPU is about 0.4% faster than lazy FPU. Signed-off-by: Liang Li Signed-off-by: Xudong Hao --- arch/x86

[v6] kvm/fpu: Enable fully eager restore kvm FPU

2015-04-23 Thread Liang Li
Romove lazy FPU logic and use eager FPU entirely. Eager FPU does not have performance regression, and it can simplify the code. When compiling kernel on westmere, the performance of eager FPU is about 0.4% faster than lazy FPU. Signed-off-by: Liang Li liang.z...@intel.com Signed-off-by: Xudong

[PATCH] serial: pch_uart: add console poll support

2013-03-05 Thread Liang Li
Implement console poll for pch_uart, this could enable KGDBoC when on pch-uart console. Signed-off-by: Liang Li Acked-by: Jason Wessel --- drivers/tty/serial/pch_uart.c | 103 -- 1 file changed, 79 insertions(+), 24 deletions(-) diff --git a/drivers/tty

[PATCH] serial: pch_uart: add console poll support

2013-03-05 Thread Liang Li
Implement console poll for pch_uart, this could enable KGDBoC when on pch-uart console. Signed-off-by: Liang Li liang...@windriver.com Acked-by: Jason Wessel jason.wes...@windriver.com --- drivers/tty/serial/pch_uart.c | 103 -- 1 file changed, 79

[PATCH] serial: pch_uart: fix sysrq handling for pch_uart

2013-01-23 Thread Liang Li
: In function 'pch_uart_hal_read': drivers/tty/serial/pch_uart.c:572:11: error: 'struct uart_port' has no member named 'sysrq' make[4]: *** [drivers/tty/serial/pch_uart.o] Error 1 Reported-by: Randy Dunlap CC: Stephen Rothwell Signed-off-by: Liang Li --- Hi Greg, This is for 'tty-next' of your tty

Re: linux-next: Tree for Jan 23 (pch_uart.c)

2013-01-23 Thread Liang Li
On 2013-01-24 12:15, Stephen Rothwell wrote: > Hi, > > On Thu, 24 Jan 2013 10:30:54 +0800 Liang Li wrote: > > > > Should I add a fix for the compile error .. or do squash then send out > > refreshed patch ? > > You need to send a fix patch to Greg based on his

Re: linux-next: Tree for Jan 23 (pch_uart.c)

2013-01-23 Thread Liang Li
continue; } +#ifdef SUPPORT_SYSRQ if (port->sysrq) { if (uart_handle_sysrq_char(port, rbr)) continue; } +#endif buf[i++] = rbr; } --- Shou

Re: linux-next: Tree for Jan 23 (pch_uart.c)

2013-01-23 Thread Liang Li
, Liang Li -- Cheers, Stephen Rothwells...@canb.auug.org.au -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: linux-next: Tree for Jan 23 (pch_uart.c)

2013-01-23 Thread Liang Li
On 2013-01-24 12:15, Stephen Rothwell s...@canb.auug.org.au wrote: Hi, On Thu, 24 Jan 2013 10:30:54 +0800 Liang Li liang...@windriver.com wrote: Should I add a fix for the compile error .. or do squash then send out refreshed patch ? You need to send a fix patch to Greg based on his

[PATCH] serial: pch_uart: fix sysrq handling for pch_uart

2013-01-23 Thread Liang Li
: In function 'pch_uart_hal_read': drivers/tty/serial/pch_uart.c:572:11: error: 'struct uart_port' has no member named 'sysrq' make[4]: *** [drivers/tty/serial/pch_uart.o] Error 1 Reported-by: Randy Dunlap rdun...@infradead.org CC: Stephen Rothwell s...@canb.auug.org.au Signed-off-by: Liang Li liang

[PATCH 0/2] pch_uart: fix a deadlock and add sysrq support

2013-01-19 Thread Liang Li
++ 1 file changed, 41 insertions(+), 15 deletions(-) --- Thanks, Liang Li -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please re

[PATCH 1/2] pch_uart: fix a deadlock when pch_uart as console

2013-01-19 Thread Liang Li
should be carefully to call functions that will 'print message to console' only in case the uart port is not being used as serial console. Signed-off-by: Liang Li --- drivers/tty/serial/pch_uart.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/d

[PATCH 2/2] pch_uart: add sysrq support

2013-01-19 Thread Liang Li
in pch_console_write. Signed-off-by: Liang Li --- drivers/tty/serial/pch_uart.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 2e99f79..f2d67df 100644 --- a/drivers/tty/serial/pch_uart.c

[PATCH 1/2] pch_uart: fix a deadlock when pch_uart as console

2013-01-19 Thread Liang Li
, we should be carefully to call functions that will 'print message to console' only in case the uart port is not being used as serial console. Signed-off-by: Liang Li liang...@windriver.com --- drivers/tty/serial/pch_uart.c | 29 ++--- 1 file changed, 22 insertions(+), 7

[PATCH 2/2] pch_uart: add sysrq support

2013-01-19 Thread Liang Li
in pch_console_write. Signed-off-by: Liang Li liang...@windriver.com --- drivers/tty/serial/pch_uart.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 2e99f79..f2d67df 100644 --- a/drivers

[PATCH 0/2] pch_uart: fix a deadlock and add sysrq support

2013-01-19 Thread Liang Li
++ 1 file changed, 41 insertions(+), 15 deletions(-) --- Thanks, Liang Li -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [RFC PATCH] perf: add SLANG_INC for slang.h

2012-09-05 Thread Liang Li
On 2012-09-06 06:41, Arnaldo Carvalho de Melo wrote: > Em Wed, Sep 05, 2012 at 10:23:03PM +0100, Richard Purdie escreveu: > > On Wed, 2012-09-05 at 13:54 -0700, Arnaldo Carvalho de Melo wrote: > > > Em Fri, Aug 24, 2012 at 11:10:39AM +0800, Liang Li escreveu: > > > &

Re: [RFC PATCH] perf: add SLANG_INC for slang.h

2012-09-05 Thread Liang Li
On 2012-09-06 06:41, Arnaldo Carvalho de Melo a...@ghostprotocols.net wrote: Em Wed, Sep 05, 2012 at 10:23:03PM +0100, Richard Purdie escreveu: On Wed, 2012-09-05 at 13:54 -0700, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 24, 2012 at 11:10:39AM +0800, Liang Li escreveu: CFLAGS

[RFC PATCH] perf: add SLANG_INC for slang.h

2012-08-23 Thread Liang Li
efault hard coded path. We can also make the slang include directory a variable, to allow the user to specify SLANG_INC and set their own include location. And add a '=' prefix to indicate better compatibility with sysroot/cross compile cases. Signed-off-by: Liang Li --- tools/perf/Makefile | 6 ++

[RFC PATCH] perf: add SLANG_INC for slang.h

2012-08-23 Thread Liang Li
include directory a variable, to allow the user to specify SLANG_INC and set their own include location. And add a '=' prefix to indicate better compatibility with sysroot/cross compile cases. Signed-off-by: Liang Li liang...@windriver.com --- tools/perf/Makefile | 6 -- 1 file changed, 4

<    1   2   3