[PATCH] fix:brcmfmac: add missing header dependencies

2016-08-26 Thread Baoyou Xie
We get 1 warning when biuld kernel with W=1: drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c:23:6: warning: no previous prototype for '__brcmf_err' [-Wmissing- prototypes] In fact, this function is declared in brcmfmac/debuge.h, so this patch add missing header dependencies

[PATCH] fix:brcmfmac: add missing header dependencies

2016-08-26 Thread Baoyou Xie
We get 1 warning when biuld kernel with W=1: drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c:23:6: warning: no previous prototype for '__brcmf_err' [-Wmissing- prototypes] In fact, this function is declared in brcmfmac/debuge.h, so this patch add missing header dependencies

Cannot use CONFIG_GCC_PLUGINS: your gcc version does not support plugins, you should upgrade it to at least gcc 4.5

2016-08-26 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 28687b935e93a9041a485b9ecdcab0e335f8eda5 commit: ed58c0e9eefef517aa5a547b78658e2ab4422232 gcc-plugins: abort builds cleanly when not supported date: 3 weeks ago config: x86_64-randconfig-s1-08271305

Cannot use CONFIG_GCC_PLUGINS: your gcc version does not support plugins, you should upgrade it to at least gcc 4.5

2016-08-26 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 28687b935e93a9041a485b9ecdcab0e335f8eda5 commit: ed58c0e9eefef517aa5a547b78658e2ab4422232 gcc-plugins: abort builds cleanly when not supported date: 3 weeks ago config: x86_64-randconfig-s1-08271305

Re: [PATCH 2/4] x86/mce, PCI: Provide quirks to identify Xeon models with machine check recovery

2016-08-26 Thread Linus Torvalds
On Fri, Aug 26, 2016 at 10:26 PM, Borislav Petkov wrote: > > Shouldn't all that stuff below be in arch/x86/? > > arch/x86/pci/fixup.c maybe, for example? Good catch. As it's under a CONFIG_X86_64 test anyway, it looks to make a ton more sense in the x86 pci fixup code.

Re: [PATCH 2/4] x86/mce, PCI: Provide quirks to identify Xeon models with machine check recovery

2016-08-26 Thread Linus Torvalds
On Fri, Aug 26, 2016 at 10:26 PM, Borislav Petkov wrote: > > Shouldn't all that stuff below be in arch/x86/? > > arch/x86/pci/fixup.c maybe, for example? Good catch. As it's under a CONFIG_X86_64 test anyway, it looks to make a ton more sense in the x86 pci fixup code. Linus

Re: [PATCH 2/4] x86/mce, PCI: Provide quirks to identify Xeon models with machine check recovery

2016-08-26 Thread Borislav Petkov
On Fri, Aug 26, 2016 at 02:08:03PM -0700, Tony Luck wrote: > Each Xeon includes a number of capability registers in PCI space > that describe some features not enumerated by CPUID. > > Use these to determine that we are running on a model that can recover > from machine checks. Hooks for

Re: [PATCH 2/4] x86/mce, PCI: Provide quirks to identify Xeon models with machine check recovery

2016-08-26 Thread Borislav Petkov
On Fri, Aug 26, 2016 at 02:08:03PM -0700, Tony Luck wrote: > Each Xeon includes a number of capability registers in PCI space > that describe some features not enumerated by CPUID. > > Use these to determine that we are running on a model that can recover > from machine checks. Hooks for

Re: [PATCH 1/2] IB/hfi1: Fix a parameter of find_first_bit.

2016-08-26 Thread Christophe JAILLET
Le 26/08/2016 à 15:35, Doug Ledford a écrit : On 8/26/2016 12:49 AM, Christophe JAILLET wrote: The 2nd parameter of 'find_first_bit' is the number of bits to search. In this case, we are passing 'sizeof(unsigned long)' which is likely to be 4 or 8. If the size can be 4 or 8, then using 64

Re: [PATCH 1/2] IB/hfi1: Fix a parameter of find_first_bit.

2016-08-26 Thread Christophe JAILLET
Le 26/08/2016 à 15:35, Doug Ledford a écrit : On 8/26/2016 12:49 AM, Christophe JAILLET wrote: The 2nd parameter of 'find_first_bit' is the number of bits to search. In this case, we are passing 'sizeof(unsigned long)' which is likely to be 4 or 8. If the size can be 4 or 8, then using 64

Re: [PATCH 0/4] Better memcpy_mcsafe()

2016-08-26 Thread Borislav Petkov
On Fri, Aug 26, 2016 at 02:08:03PM -0700, Tony Luck wrote: > The original version of this used a check of the x86_model_id string > for the magic "Intel(R) Xeon(R) CPU E7-" to determine whether we are > running on a cpu that supports machine check recovery. > > Boris tried to talk me out of that,

Re: [PATCH 0/4] Better memcpy_mcsafe()

2016-08-26 Thread Borislav Petkov
On Fri, Aug 26, 2016 at 02:08:03PM -0700, Tony Luck wrote: > The original version of this used a check of the x86_model_id string > for the magic "Intel(R) Xeon(R) CPU E7-" to determine whether we are > running on a cpu that supports machine check recovery. > > Boris tried to talk me out of that,

Re: [PATCH] drivers: net: stmmac: fix spelling mistake "mulitcast" -> "multicast"

2016-08-26 Thread David Miller
From: Colin King Date: Fri, 26 Aug 2016 19:35:25 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH] drivers: net: stmmac: fix spelling mistake "mulitcast" -> "multicast"

2016-08-26 Thread David Miller
From: Colin King Date: Fri, 26 Aug 2016 19:35:25 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message. > > Signed-off-by: Colin Ian King Applied.

[PATCHv3 3/6] x86/arch_prctl/vdso: add ARCH_MAP_VDSO_*

2016-08-26 Thread Dmitry Safonov
Add API to change vdso blob type with arch_prctl. As this is usefull only by needs of CRIU, expose this interface under CONFIG_CHECKPOINT_RESTORE. Cc: Andy Lutomirski Cc: Oleg Nesterov Cc: Thomas Gleixner Cc: "H. Peter Anvin"

[PATCHv3 3/6] x86/arch_prctl/vdso: add ARCH_MAP_VDSO_*

2016-08-26 Thread Dmitry Safonov
Add API to change vdso blob type with arch_prctl. As this is usefull only by needs of CRIU, expose this interface under CONFIG_CHECKPOINT_RESTORE. Cc: Andy Lutomirski Cc: Oleg Nesterov Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: linux...@kvack.org Cc: x...@kernel.org Cc:

Re: [GIT PULL] Block fixes for 4.8-rc4

2016-08-26 Thread Jens Axboe
On 08/26/2016 07:55 PM, Linus Torvalds wrote: On Fri, Aug 26, 2016 at 8:16 AM, Jens Axboe wrote: Hi Linus, - Revert two previous floppy changes, since they caused a user visibile regression. A better fix is in the works. Those reverts have no sign-off, and no explanation for

Re: [GIT PULL] Block fixes for 4.8-rc4

2016-08-26 Thread Jens Axboe
On 08/26/2016 07:55 PM, Linus Torvalds wrote: On Fri, Aug 26, 2016 at 8:16 AM, Jens Axboe wrote: Hi Linus, - Revert two previous floppy changes, since they caused a user visibile regression. A better fix is in the works. Those reverts have no sign-off, and no explanation for them. No, a

[PATCH] staging: dgnc: Let line have less 80 char

2016-08-26 Thread Sean
This patch fix a minor checkpath warming: "WARNING: line over 80 characters" Signed-off-by: Sean --- drivers/staging/dgnc/dgnc_neo.c | 116 1 file changed, 82 insertions(+), 34 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c

Re: [RFC PATCH v8 1/9] Restartable sequences system call

2016-08-26 Thread Josh Triplett
On Thu, Aug 25, 2016 at 05:56:25PM +, Ben Maurer wrote: > rseq opens up a whole world of algorithms to userspace – algorithms > that are O(num CPUs) and where one can have an extremely fast fastpath > at the cost of a slower slow path. Many of these algorithms are in use > in the kernel today

[PATCH] staging: dgnc: Let line have less 80 char

2016-08-26 Thread Sean
This patch fix a minor checkpath warming: "WARNING: line over 80 characters" Signed-off-by: Sean --- drivers/staging/dgnc/dgnc_neo.c | 116 1 file changed, 82 insertions(+), 34 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c

Re: [RFC PATCH v8 1/9] Restartable sequences system call

2016-08-26 Thread Josh Triplett
On Thu, Aug 25, 2016 at 05:56:25PM +, Ben Maurer wrote: > rseq opens up a whole world of algorithms to userspace – algorithms > that are O(num CPUs) and where one can have an extremely fast fastpath > at the cost of a slower slow path. Many of these algorithms are in use > in the kernel today

Re: [PATCH v12 2/4] reset: mediatek: Add MT2701 reset driver

2016-08-26 Thread James Liao
On Wed, 2016-08-24 at 10:50 -0700, Stephen Boyd wrote: > On 08/22, Erin Lo wrote: > > diff --git a/drivers/clk/mediatek/clk-mt2701-hif.c > > b/drivers/clk/mediatek/clk-mt2701-hif.c > > index 18b4ab5..702fd74 100644 > > --- a/drivers/clk/mediatek/clk-mt2701-hif.c > > +++

Re: [PATCH v12 2/4] reset: mediatek: Add MT2701 reset driver

2016-08-26 Thread James Liao
On Wed, 2016-08-24 at 10:50 -0700, Stephen Boyd wrote: > On 08/22, Erin Lo wrote: > > diff --git a/drivers/clk/mediatek/clk-mt2701-hif.c > > b/drivers/clk/mediatek/clk-mt2701-hif.c > > index 18b4ab5..702fd74 100644 > > --- a/drivers/clk/mediatek/clk-mt2701-hif.c > > +++

Re: [PATCH v3 0/5] net/usb: asix driver improvements

2016-08-26 Thread David Miller
Networking patch series need to be submitted to net...@vger.kernel.org Thank you.

Re: [PATCH v3 0/5] net/usb: asix driver improvements

2016-08-26 Thread David Miller
Networking patch series need to be submitted to net...@vger.kernel.org Thank you.

Re: [PATCH v12 1/4] clk: mediatek: Add MT2701 clock support

2016-08-26 Thread James Liao
Hi Stephen, On Wed, 2016-08-24 at 10:49 -0700, Stephen Boyd wrote: > On 08/22, Erin Lo wrote: > > + > > +static void __init mtk_infrasys_init_early(struct device_node *node) > > +{ > > + int r, i; > > + > > + if (!infra_clk_data) { > > + infra_clk_data =

Re: [PATCH v12 1/4] clk: mediatek: Add MT2701 clock support

2016-08-26 Thread James Liao
Hi Stephen, On Wed, 2016-08-24 at 10:49 -0700, Stephen Boyd wrote: > On 08/22, Erin Lo wrote: > > + > > +static void __init mtk_infrasys_init_early(struct device_node *node) > > +{ > > + int r, i; > > + > > + if (!infra_clk_data) { > > + infra_clk_data =

Re: [PATCH] mx3fb: Fix print format string

2016-08-26 Thread Oleg Drokin
On Aug 26, 2016, at 11:18 PM, Joe Perches wrote: > On Fri, 2016-08-26 at 23:05 -0400, Oleg Drokin wrote: >> %ul was probably meant as %lu since the former would print >> an unsigned value and a letter l. >> >> But in fact the whole value we are printing in u32 anyway, so >> we don't need the

Re: [PATCH] mx3fb: Fix print format string

2016-08-26 Thread Oleg Drokin
On Aug 26, 2016, at 11:18 PM, Joe Perches wrote: > On Fri, 2016-08-26 at 23:05 -0400, Oleg Drokin wrote: >> %ul was probably meant as %lu since the former would print >> an unsigned value and a letter l. >> >> But in fact the whole value we are printing in u32 anyway, so >> we don't need the

[PATCH] drm/rockchip: vop: make vop register setting take effect

2016-08-26 Thread Chris Zhong
The setting of vop registers need a reg_done writing to take effect. In vop_enable the vop return to work by by restoring registers, but the registers do not take effect immediately, it should a vop_cfg_done after it. The same thing is needed by windows_disabled in vop_crtc_disable.

[PATCH] drm/rockchip: vop: make vop register setting take effect

2016-08-26 Thread Chris Zhong
The setting of vop registers need a reg_done writing to take effect. In vop_enable the vop return to work by by restoring registers, but the registers do not take effect immediately, it should a vop_cfg_done after it. The same thing is needed by windows_disabled in vop_crtc_disable.

[PATCH] staging: i4l: act2000: capi: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpath.pl warning: trailing statements should be on next line open brace '{' following function declarations go on the next line Signed-off-by: Anson Jacob --- drivers/staging/i4l/act2000/capi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff

[PATCH] staging: i4l: act2000: capi: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpath.pl warning: trailing statements should be on next line open brace '{' following function declarations go on the next line Signed-off-by: Anson Jacob --- drivers/staging/i4l/act2000/capi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] irda: Fix likely typo in output format string

2016-08-26 Thread Joe Perches
(added Chunyan Zhang to cc) On Fri, 2016-08-26 at 23:14 -0400, Oleg Drokin wrote: > %ul would print an unsigned with a letter l at the end which does > not seem to be desired here, on the other hand the value being printed > is u32 so just drop the l instead of converting to %lu Fixes:

Re: [PATCH] irda: Fix likely typo in output format string

2016-08-26 Thread Joe Perches
(added Chunyan Zhang to cc) On Fri, 2016-08-26 at 23:14 -0400, Oleg Drokin wrote: > %ul would print an unsigned with a letter l at the end which does > not seem to be desired here, on the other hand the value being printed > is u32 so just drop the l instead of converting to %lu Fixes:

Re: [PATCH] mx3fb: Fix print format string

2016-08-26 Thread Joe Perches
On Fri, 2016-08-26 at 23:05 -0400, Oleg Drokin wrote: > %ul was probably meant as %lu since the former would print > an unsigned value and a letter l. > > But in fact the whole value we are printing in u32 anyway, so > we don't need the format to be long. Therefore just drop the l > altogether.

Re: [PATCH] mx3fb: Fix print format string

2016-08-26 Thread Joe Perches
On Fri, 2016-08-26 at 23:05 -0400, Oleg Drokin wrote: > %ul was probably meant as %lu since the former would print > an unsigned value and a letter l. > > But in fact the whole value we are printing in u32 anyway, so > we don't need the format to be long. Therefore just drop the l > altogether.

[PATCH] irda: Fix likely typo in output format string

2016-08-26 Thread Oleg Drokin
%ul would print an unsigned with a letter l at the end which does not seem to be desired here, on the other hand the value being printed is u32 so just drop the l instead of converting to %lu Signed-off-by: Oleg Drokin --- drivers/net/irda/vlsi_ir.c | 2 +- 1 file changed,

[PATCH] irda: Fix likely typo in output format string

2016-08-26 Thread Oleg Drokin
%ul would print an unsigned with a letter l at the end which does not seem to be desired here, on the other hand the value being printed is u32 so just drop the l instead of converting to %lu Signed-off-by: Oleg Drokin --- drivers/net/irda/vlsi_ir.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] rtlwifi/rtl8192de: Fix print format string

2016-08-26 Thread Oleg Drokin
%ul was likely meant as %lu to print an unsigned long, not an unsigned with a letter l at the end. But in fact the value printed is u32 anyway, so just drop the l completely. Signed-off-by: Oleg Drokin --- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 6 +++--- 1

[PATCH] rtlwifi/rtl8192de: Fix print format string

2016-08-26 Thread Oleg Drokin
%ul was likely meant as %lu to print an unsigned long, not an unsigned with a letter l at the end. But in fact the value printed is u32 anyway, so just drop the l completely. Signed-off-by: Oleg Drokin --- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 6 +++--- 1 file changed, 3

[PATCH] bridge: Fix format string for %ul

2016-08-26 Thread Oleg Drokin
%ul would print an unsigned value and a letter l, likely it was %lu that was meant to print the long int, but in reality the values printed there are just regular signed ints, so just dropping the l altogether. Signed-off-by: Oleg Drokin --- net/bridge/br_stp_bpdu.c | 2 +-

[PATCH] bridge: Fix format string for %ul

2016-08-26 Thread Oleg Drokin
%ul would print an unsigned value and a letter l, likely it was %lu that was meant to print the long int, but in reality the values printed there are just regular signed ints, so just dropping the l altogether. Signed-off-by: Oleg Drokin --- net/bridge/br_stp_bpdu.c | 2 +- 1 file changed, 1

[PATCH] mx3fb: Fix print format string

2016-08-26 Thread Oleg Drokin
%ul was probably meant as %lu since the former would print an unsigned value and a letter l. But in fact the whole value we are printing in u32 anyway, so we don't need the format to be long. Therefore just drop the l altogether. Signed-off-by: Oleg Drokin --- Also do we

[PATCH] mx3fb: Fix print format string

2016-08-26 Thread Oleg Drokin
%ul was probably meant as %lu since the former would print an unsigned value and a letter l. But in fact the whole value we are printing in u32 anyway, so we don't need the format to be long. Therefore just drop the l altogether. Signed-off-by: Oleg Drokin --- Also do we really need 1000UL

[PATCH 0/2] staging: fsl-mc: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpatch.pl warning: Block comments use * on subsequent lines Fix Commenting Style Anson Jacob (2): staging: fsl-mc: dpmng-cmd: Fix checkpatch warning staging: fsl-mc: dprc-cmd: Fix checkpatch warning drivers/staging/fsl-mc/bus/dpmng-cmd.h | 15 ---

[PATCH 0/2] staging: fsl-mc: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpatch.pl warning: Block comments use * on subsequent lines Fix Commenting Style Anson Jacob (2): staging: fsl-mc: dpmng-cmd: Fix checkpatch warning staging: fsl-mc: dprc-cmd: Fix checkpatch warning drivers/staging/fsl-mc/bus/dpmng-cmd.h | 15 ---

[PATCH 2/2] staging: fsl-mc: dprc-cmd: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpatch.pl warning: Block comments use * on subsequent lines Fix Commenting Style Signed-off-by: Anson Jacob --- drivers/staging/fsl-mc/bus/dprc-cmd.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH 1/2] staging: fsl-mc: dpmng-cmd: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpatch.pl warning: Block comments use * on subsequent lines Fix Commenting Style Signed-off-by: Anson Jacob --- drivers/staging/fsl-mc/bus/dpmng-cmd.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH 2/2] staging: fsl-mc: dprc-cmd: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpatch.pl warning: Block comments use * on subsequent lines Fix Commenting Style Signed-off-by: Anson Jacob --- drivers/staging/fsl-mc/bus/dprc-cmd.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-cmd.h

[PATCH 1/2] staging: fsl-mc: dpmng-cmd: Fix checkpatch warning

2016-08-26 Thread Anson Jacob
Fix checkpatch.pl warning: Block comments use * on subsequent lines Fix Commenting Style Signed-off-by: Anson Jacob --- drivers/staging/fsl-mc/bus/dpmng-cmd.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpmng-cmd.h

[PATCH 3/3] scsi/ncr5380: Improve interrupt latency during PIO tranfers

2016-08-26 Thread Finn Thain
Large PIO transfers are broken up into chunks to try to avoid disabling local IRQs for long periods. But IRQs are still disabled for too long and this causes SCC FIFO overruns during serial port transfers. This patch fixes the problem by halving the PIO chunk size. Testing with mac_scsi shows

[PATCH 3/3] scsi/ncr5380: Improve interrupt latency during PIO tranfers

2016-08-26 Thread Finn Thain
Large PIO transfers are broken up into chunks to try to avoid disabling local IRQs for long periods. But IRQs are still disabled for too long and this causes SCC FIFO overruns during serial port transfers. This patch fixes the problem by halving the PIO chunk size. Testing with mac_scsi shows

[PATCH 0/3] Small fixes and cleanup

2016-08-26 Thread Finn Thain
Miscellaneous small patches for an interrupt latency issue, a compiler warning and a documentation cleanup. --- Documentation/kernel-parameters.txt|2 -- Documentation/scsi/scsi-parameters.txt |2 -- drivers/scsi/NCR5380.c | 13 +++-- drivers/scsi/NCR5380.h

[PATCH 2/3] scsi/ncr5380: Avoid a compiler warning

2016-08-26 Thread Finn Thain
With commit 3a0f64bfa907 ("mac_scsi: Fix pseudo DMA implementation") some versions of gcc now warn: In file included from drivers/scsi/mac_scsi.c:335: drivers/scsi/NCR5380.h:295: warning: `NCR5380_poll_politely' declared inline after being called drivers/scsi/NCR5380.h:295: warning: previous

[PATCH 0/3] Small fixes and cleanup

2016-08-26 Thread Finn Thain
Miscellaneous small patches for an interrupt latency issue, a compiler warning and a documentation cleanup. --- Documentation/kernel-parameters.txt|2 -- Documentation/scsi/scsi-parameters.txt |2 -- drivers/scsi/NCR5380.c | 13 +++-- drivers/scsi/NCR5380.h

[PATCH 2/3] scsi/ncr5380: Avoid a compiler warning

2016-08-26 Thread Finn Thain
With commit 3a0f64bfa907 ("mac_scsi: Fix pseudo DMA implementation") some versions of gcc now warn: In file included from drivers/scsi/mac_scsi.c:335: drivers/scsi/NCR5380.h:295: warning: `NCR5380_poll_politely' declared inline after being called drivers/scsi/NCR5380.h:295: warning: previous

[PATCH 1/3] documentation/scsi: Remove nodisconnect parameter

2016-08-26 Thread Finn Thain
The driver that used the 'nodisconnect' parameter was removed in commit 565bae6a4a8f ("[SCSI] 53c7xx: kill driver"). Related documentation was cleaned up in commit f37a7238d379 ("[SCSI] 53c7xx: fix removal fallout"), except for the remaining two mentions that are removed here. Signed-off-by: Finn

[PATCH 1/3] documentation/scsi: Remove nodisconnect parameter

2016-08-26 Thread Finn Thain
The driver that used the 'nodisconnect' parameter was removed in commit 565bae6a4a8f ("[SCSI] 53c7xx: kill driver"). Related documentation was cleaned up in commit f37a7238d379 ("[SCSI] 53c7xx: fix removal fallout"), except for the remaining two mentions that are removed here. Signed-off-by: Finn

[PATCH net-next 2/6] bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type

2016-08-26 Thread Alexei Starovoitov
Introduce BPF_PROG_TYPE_PERF_EVENT programs that can be attached to HW and SW perf events (PERF_TYPE_HARDWARE and PERF_TYPE_SOFTWARE correspondingly in uapi/linux/perf_event.h) The program visible context meta structure is struct bpf_perf_event_data { struct pt_regs regs; __u64

[PATCH net-next 2/6] bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type

2016-08-26 Thread Alexei Starovoitov
Introduce BPF_PROG_TYPE_PERF_EVENT programs that can be attached to HW and SW perf events (PERF_TYPE_HARDWARE and PERF_TYPE_SOFTWARE correspondingly in uapi/linux/perf_event.h) The program visible context meta structure is struct bpf_perf_event_data { struct pt_regs regs; __u64

[PATCH net-next 3/6] bpf: perf_event progs should only use preallocated maps

2016-08-26 Thread Alexei Starovoitov
Make sure that BPF_PROG_TYPE_PERF_EVENT programs only use preallocated hash maps, since doing memory allocation in overflow_handler can crash depending on where nmi got triggered. Signed-off-by: Alexei Starovoitov --- kernel/bpf/verifier.c | 22 +- 1 file

[PATCH net-next 3/6] bpf: perf_event progs should only use preallocated maps

2016-08-26 Thread Alexei Starovoitov
Make sure that BPF_PROG_TYPE_PERF_EVENT programs only use preallocated hash maps, since doing memory allocation in overflow_handler can crash depending on where nmi got triggered. Signed-off-by: Alexei Starovoitov --- kernel/bpf/verifier.c | 22 +- 1 file changed, 21

[PATCH net-next 1/6] bpf: support 8-byte metafield access

2016-08-26 Thread Alexei Starovoitov
The verifier supported only 4-byte metafields in struct __sk_buff and struct xdp_md. The metafields in upcoming struct bpf_perf_event are 8-byte to match register width in struct pt_regs. Teach verifier to recognize 8-byte metafield access. The patch doesn't affect safety of sockets and xdp

[PATCH net-next 6/6] samples/bpf: add sampleip example

2016-08-26 Thread Alexei Starovoitov
From: Brendan Gregg sample instruction pointer and frequency count in a BPF map Signed-off-by: Brendan Gregg Signed-off-by: Alexei Starovoitov --- samples/bpf/Makefile| 4 + samples/bpf/sampleip_kern.c | 38 +

[PATCH net-next 5/6] samples/bpf: add perf_event+bpf example

2016-08-26 Thread Alexei Starovoitov
The bpf program is called 50 times a second and does hashmap[kern_stackid]++ It's primary purpose to check that key bpf helpers like map lookup, update, get_stackid, trace_printk and ctx access are all working. It checks: - PERF_COUNT_HW_CPU_CYCLES on all cpus - PERF_COUNT_HW_CPU_CYCLES for

[PATCH net-next 1/6] bpf: support 8-byte metafield access

2016-08-26 Thread Alexei Starovoitov
The verifier supported only 4-byte metafields in struct __sk_buff and struct xdp_md. The metafields in upcoming struct bpf_perf_event are 8-byte to match register width in struct pt_regs. Teach verifier to recognize 8-byte metafield access. The patch doesn't affect safety of sockets and xdp

[PATCH net-next 6/6] samples/bpf: add sampleip example

2016-08-26 Thread Alexei Starovoitov
From: Brendan Gregg sample instruction pointer and frequency count in a BPF map Signed-off-by: Brendan Gregg Signed-off-by: Alexei Starovoitov --- samples/bpf/Makefile| 4 + samples/bpf/sampleip_kern.c | 38 + samples/bpf/sampleip_user.c | 196

[PATCH net-next 5/6] samples/bpf: add perf_event+bpf example

2016-08-26 Thread Alexei Starovoitov
The bpf program is called 50 times a second and does hashmap[kern_stackid]++ It's primary purpose to check that key bpf helpers like map lookup, update, get_stackid, trace_printk and ctx access are all working. It checks: - PERF_COUNT_HW_CPU_CYCLES on all cpus - PERF_COUNT_HW_CPU_CYCLES for

[PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events

2016-08-26 Thread Alexei Starovoitov
Hi Peter, Dave, this patch set is a follow up to the discussion: https://lkml.org/lkml/2016/8/4/304 It turned out to be simpler than what we discussed. Patches 1-3 is a bpf-side prep for the main patch 4 that adds bpf program as an overflow_handler to sw and hw perf_events. Peter, please review.

[PATCH net-next 4/6] perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs

2016-08-26 Thread Alexei Starovoitov
Allow attaching BPF_PROG_TYPE_PERF_EVENT programs to sw and hw perf events via overflow_handler mechanism. When program is attached the overflow_handlers become stacked. The program acts as a filter. Returning zero from the program means that the normal perf_event_output handler will not be called

[PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events

2016-08-26 Thread Alexei Starovoitov
Hi Peter, Dave, this patch set is a follow up to the discussion: https://lkml.org/lkml/2016/8/4/304 It turned out to be simpler than what we discussed. Patches 1-3 is a bpf-side prep for the main patch 4 that adds bpf program as an overflow_handler to sw and hw perf_events. Peter, please review.

[PATCH net-next 4/6] perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs

2016-08-26 Thread Alexei Starovoitov
Allow attaching BPF_PROG_TYPE_PERF_EVENT programs to sw and hw perf events via overflow_handler mechanism. When program is attached the overflow_handlers become stacked. The program acts as a filter. Returning zero from the program means that the normal perf_event_output handler will not be called

Re: [LKP] [lkp] [f2fs] ec795418c4: fsmark.files_per_sec -36.3% regression

2016-08-26 Thread Fengguang Wu
Hi Jaegeuk, >> > - [lkp] [f2fs] b93f771286: aim7.jobs-per-min -81.2% regression >> > >> > The disk is 4 12G ram disk, and setup RAID0 on them via mdadm. The >> > steps for aim7 is, >> > >> > cat > workfile <> > FILESIZE: 1M >> > POOLSIZE: 10M >> > 10 sync_disk_rw >> > EOF >> > >> > ( >> >

Re: [LKP] [lkp] [f2fs] ec795418c4: fsmark.files_per_sec -36.3% regression

2016-08-26 Thread Fengguang Wu
Hi Jaegeuk, >> > - [lkp] [f2fs] b93f771286: aim7.jobs-per-min -81.2% regression >> > >> > The disk is 4 12G ram disk, and setup RAID0 on them via mdadm. The >> > steps for aim7 is, >> > >> > cat > workfile <> > FILESIZE: 1M >> > POOLSIZE: 10M >> > 10 sync_disk_rw >> > EOF >> > >> > ( >> >

Re: [f2fs-dev] [PATCH] f2fs: fix to set superblock dirty correctly

2016-08-26 Thread heyunlei
Hi all, On 2016/8/27 9:01, Jaegeuk Kim wrote: On Fri, Aug 26, 2016 at 10:20:18PM +0800, Chao Yu wrote: From: Chao Yu tests/generic/251 of fstest suit complains us with below message: [ cut here ] invalid opcode: [#1] PREEMPT SMP CPU: 2 PID:

Re: [f2fs-dev] [PATCH] f2fs: fix to set superblock dirty correctly

2016-08-26 Thread heyunlei
Hi all, On 2016/8/27 9:01, Jaegeuk Kim wrote: On Fri, Aug 26, 2016 at 10:20:18PM +0800, Chao Yu wrote: From: Chao Yu tests/generic/251 of fstest suit complains us with below message: [ cut here ] invalid opcode: [#1] PREEMPT SMP CPU: 2 PID: 7698 Comm: fstrim

Re: [GIT PULL] Block fixes for 4.8-rc4

2016-08-26 Thread Linus Torvalds
On Fri, Aug 26, 2016 at 8:16 AM, Jens Axboe wrote: > Hi Linus, > > - Revert two previous floppy changes, since they caused a user visibile > regression. A better fix is in the works. Those reverts have no sign-off, and no explanation for them. No, a revert may not have any

Re: [GIT PULL] Block fixes for 4.8-rc4

2016-08-26 Thread Linus Torvalds
On Fri, Aug 26, 2016 at 8:16 AM, Jens Axboe wrote: > Hi Linus, > > - Revert two previous floppy changes, since they caused a user visibile > regression. A better fix is in the works. Those reverts have no sign-off, and no explanation for them. No, a revert may not have any copyright value,

Re: [PATCH 04/11] Input: synaptics-rmi4 - add support for F03

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Lyude Paul This adds basic functionality for PS/2 passthrough on Synaptics Touchpads using RMI4 through smbus. Signed-off-by: Lyude Paul Signed-off-by: Benjamin

Re: [PATCH 04/11] Input: synaptics-rmi4 - add support for F03

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Lyude Paul This adds basic functionality for PS/2 passthrough on Synaptics Touchpads using RMI4 through smbus. Signed-off-by: Lyude Paul Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan ---

Re: [PATCH 03/11] Input: synaptics-rmi4 - have only one struct platform data

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: If struct rmi_device_platform_data contains pointers to other struct, it gets difficult to allocate a fixed size struct and copy it over between drivers. Change the pointers into a struct and change the code in rmi4

Re: [PATCH 03/11] Input: synaptics-rmi4 - have only one struct platform data

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: If struct rmi_device_platform_data contains pointers to other struct, it gets difficult to allocate a fixed size struct and copy it over between drivers. Change the pointers into a struct and change the code in rmi4

Re: [PATCH 05/11] Input: synaptics-rmi4 - f03: grab data passed by transport device

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Dennis Wassenberg First check if there are data available passed by the transport device. If data available use these data. If there are no data available try to read the rmi block

Re: [PATCH 05/11] Input: synaptics-rmi4 - f03: grab data passed by transport device

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Dennis Wassenberg First check if there are data available passed by the transport device. If data available use these data. If there are no data available try to read the rmi block if dsata are passed this way.

[PATCH] Revert "usb: dwc3: gadget: always decrement by 1"

2016-08-26 Thread John Youn
This reverts commit 6f8245b4e37c ("usb: dwc3: gadget: always decrement by 1"). We can't always decrement this value. We should decrement only if the calculation of free slots results in a LINK TRB being among one of the free slots (dequeue < enqueue). Otherwise, if the LINK TRB is not among the

[PATCH] Revert "usb: dwc3: gadget: always decrement by 1"

2016-08-26 Thread John Youn
This reverts commit 6f8245b4e37c ("usb: dwc3: gadget: always decrement by 1"). We can't always decrement this value. We should decrement only if the calculation of free slots results in a LINK TRB being among one of the free slots (dequeue < enqueue). Otherwise, if the LINK TRB is not among the

Re: [PATCH 02/11] Input: serio - store the pt_buttons in the struct serio directly

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: With RMI4 over SMBus, the pass-through device can be instantiated in a SMBus driver. However, compared to the psmouse-synaptics driver, this pass-through PS/2 driver has no clue whether the current serio_interrupt() is

Re: [PATCH 02/11] Input: serio - store the pt_buttons in the struct serio directly

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: With RMI4 over SMBus, the pass-through device can be instantiated in a SMBus driver. However, compared to the psmouse-synaptics driver, this pass-through PS/2 driver has no clue whether the current serio_interrupt() is

Re: [PATCH 06/11] Input: synaptics-rmi4 - Add rmi_find_function()

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: If a function needs to communicate with an other, it's better to have a way to retrieve this other. Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan

Re: [PATCH 07/11] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2016-08-26 Thread Andrew Duggan
Resending as plain text Hi Benjamin, This patch causes standard clickpads without extended buttons to not work. I'll explain some more below. On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Lyude Paul On the latest series of ThinkPads, the button events for

Re: [PATCH 06/11] Input: synaptics-rmi4 - Add rmi_find_function()

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: If a function needs to communicate with an other, it's better to have a way to retrieve this other. Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan --- drivers/input/rmi4/rmi_driver.c | 13

Re: [PATCH 07/11] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2016-08-26 Thread Andrew Duggan
Resending as plain text Hi Benjamin, This patch causes standard clickpads without extended buttons to not work. I'll explain some more below. On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Lyude Paul On the latest series of ThinkPads, the button events for the TrackPoint are

[PATCH] checkpatch: Test multiple line block comment alignment

2016-08-26 Thread Joe Perches
Warn when block comments are not aligned on the * /* * block comment, no warning */ /* * block comment, emit warning */ Reported-by: Sudip Mukherjee Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 19 +++ 1 file

[PATCH] checkpatch: Test multiple line block comment alignment

2016-08-26 Thread Joe Perches
Warn when block comments are not aligned on the * /* * block comment, no warning */ /* * block comment, emit warning */ Reported-by: Sudip Mukherjee Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 19 +++ 1 file changed, 19 insertions(+) diff --git

Re: [PATCH] f2fs: fix to set superblock dirty correctly

2016-08-26 Thread Jaegeuk Kim
On Fri, Aug 26, 2016 at 10:20:18PM +0800, Chao Yu wrote: > From: Chao Yu > > tests/generic/251 of fstest suit complains us with below message: > > [ cut here ] > invalid opcode: [#1] PREEMPT SMP > CPU: 2 PID: 7698 Comm: fstrim Tainted: G

Re: [PATCH] f2fs: fix to set superblock dirty correctly

2016-08-26 Thread Jaegeuk Kim
On Fri, Aug 26, 2016 at 10:20:18PM +0800, Chao Yu wrote: > From: Chao Yu > > tests/generic/251 of fstest suit complains us with below message: > > [ cut here ] > invalid opcode: [#1] PREEMPT SMP > CPU: 2 PID: 7698 Comm: fstrim Tainted: G O4.7.0+ #21 >

[PATCH] f2fs: merge WRITE bio into previous WRITE_SYNC

2016-08-26 Thread Jaegeuk Kim
This can avoid bio splits due to different op_flags. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 7c8e219..c7c2022 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -267,6

[PATCH] f2fs: merge WRITE bio into previous WRITE_SYNC

2016-08-26 Thread Jaegeuk Kim
This can avoid bio splits due to different op_flags. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 7c8e219..c7c2022 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -267,6 +267,11 @@ void

  1   2   3   4   5   6   7   8   9   10   >