[PATCH v3] scripts: checkpatch.pl: add 2 new checks on memset

2015-03-01 Thread Aya Mahfouz
calls Reply-To: Add 2 new checks on memset calls in the file checkpatch.pl as follows: replace memset by eth_zero_addr if the second argument is an address of zeros (0x00). eth_zero_addr is a wrapper function for memset that takes an address array to set as zero. The size address has to be

[PATCHv2 07/10] fbdev: ssd1307fb: Add module parameter to set refresh rate of the display

2015-03-01 Thread Thomas Niederprüm
This patch adds the module parameter refreshrate to set delay for the deferred io. The refresh rate is given in units of Hertz. The default refresh rate is 1 Hz. Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de --- drivers/video/fbdev/ssd1307fb.c | 23 +-- 1 file

[PATCHv2 09/10] fbdev: ssd1307fb: Add sysfs handles to expose contrast and dim setting to userspace.

2015-03-01 Thread Thomas Niederprüm
This patch adds sysfs handles to enable userspace control over the display contrast as well as the dim mode. The handles are available as contrast and dim in the brightness group of the framebuffers sysfs domain. Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de ---

[PATCHv2 06/10] fbdev: ssd1307fb: Add support for SSD1305

2015-03-01 Thread Thomas Niederprüm
This patch adds support for the SSD1305 OLED controller. Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de --- Documentation/devicetree/bindings/video/ssd1307fb.txt | 2 +- drivers/video/fbdev/ssd1307fb.c | 13 + 2 files changed, 14 insertions(+), 1

[PATCHv2 10/10] fbdev: ssd1307fb: Turn off display on driver unload.

2015-03-01 Thread Thomas Niederprüm
This patch turns off the display when the driver is unloaded. Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de --- drivers/video/fbdev/ssd1307fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index

[PATCH v5 tip 1/7] bpf: make internal bpf API independent of CONFIG_BPF_SYSCALL ifdefs

2015-03-01 Thread Alexei Starovoitov
From: Daniel Borkmann dan...@iogearbox.net Socket filter code and other subsystems with upcoming eBPF support should not need to deal with the fact that we have CONFIG_BPF_SYSCALL defined or not. Having the bpf syscall as a config option is a nice thing and I'd expect it to stay that way for

[proposal] delegating cgroup manager to non-PID1

2015-03-01 Thread Luke Kenneth Casson Leighton
(i am subscribed nomail to lkml, please cc thx) in recent discussions about PID-1 alternatives (sysvinit, openrc, systemd, depinit) i was alerted to the idea that PID1 is to become the sole exlcusive process permitted to manage cgroups. given that, just as one specific example, depinit is only

Re: [PATCH v6 3/5] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-03-01 Thread Beomho Seo
On 03/01/2015 05:00 AM, Paul Bolle wrote: On Tue, 2015-02-24 at 10:29 +0900, Jaewon Kim wrote: diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 994793d..555e436 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -212,6 +212,15 @@ config BATTERY_MAX17042

Re: [proposal] delegating cgroup manager to non-PID1

2015-03-01 Thread David Lang
On Sun, 1 Mar 2015, Luke Kenneth Casson Leighton wrote: in recent discussions about PID-1 alternatives (sysvinit, openrc, systemd, depinit) i was alerted to the idea that PID1 is to become the sole exlcusive process permitted to manage cgroups. given that, just as one specific example, depinit

pskb_expand_head: skb_shared BUG

2015-03-01 Thread Chris Dunlop
Heads up... We've hit this BUG() in v3.10.70, v3.14.27 and v3.18.7: net/core/skbuff.c: 1027 int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, 1028 gfp_t gfp_mask) 1029 { 1030 int i; 1031 u8 *data; 1032 int size = nhead +

Re: [PATCH 1/1] Staging: fbtft: fbtft-core: removed space before ','

2015-03-01 Thread Greg Kroah-Hartman
On Fri, Feb 27, 2015 at 09:06:56PM -0800, Tolga Ceylan wrote: Removed space before ',' Signed-off-by: Tolga Ceylan tolga.cey...@gmail.com --- drivers/staging/fbtft/fbtft-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c

Re: [PATCH 1/1] Staging: fbtft: fb_ssd1331: replaced C99 comments with C89

2015-03-01 Thread Greg Kroah-Hartman
On Fri, Feb 27, 2015 at 09:44:42PM -0800, Tolga Ceylan wrote: Replaced C99 '//' comments with C89 '/**/' Signed-off-by: Tolga Ceylan tolga.cey...@gmail.com --- drivers/staging/fbtft/fb_ssd1331.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) Doesn't

RE: [RFC] mm: change mm_advise_free to clear page dirty

2015-03-01 Thread Wang, Yalin
-Original Message- From: Minchan Kim [mailto:minchan@gmail.com] On Behalf Of Minchan Kim Sent: Saturday, February 28, 2015 9:50 PM To: Wang, Yalin Cc: Michal Hocko; Andrew Morton; linux-kernel@vger.kernel.org; linux- m...@kvack.org; Rik van Riel; Johannes Weiner; Mel Gorman;

Re: [git pull] drm fixes

2015-03-01 Thread Linus Torvalds
On Sun, Mar 1, 2015 at 1:00 PM, Linus Torvalds torva...@linux-foundation.org wrote: Back to the drawing board. Ok, many hours later, but I found it. The bisection was a disaster, having to work around other bugs in this area, but it ended up getting close enough that I figured out what went

Re: [PATCH v4 2/8] arm64: dts: exynos: Add dts files for 64-bit Exynos5433 SoC

2015-03-01 Thread Arnd Bergmann
On Saturday 28 February 2015 09:47:01 Chanwoo Choi wrote: earlycon=exynos4210,0x14C2 is correct bootparam. You can check it on Documentation/kernel-parameters.txt as following. exynos4210,addr Use early console provided by serial driver available on

[PATCH]: rtc: ds1685: Remove .owner assignment from platform_driver

2015-03-01 Thread Joshua Kinard
From: Joshua Kinard ku...@gentoo.org The rtc driver core now sets the platform_driver 'owner' property, so remove the assignment from the DS1685 driver. Signed-off-by: Joshua Kinard ku...@gentoo.org Reported-by: kbuild test robot fengguang...@intel.com Fixes: aaaf5fbf56f1: rtc: add driver for

[PATCH] tpm: fix call order in tpm-chip.c

2015-03-01 Thread Jarkko Sakkinen
- tpm_dev_add_device(): cdev_add() must be done before uevent is propagated in order to avoid races. - tpm_chip_register(): tpm_dev_add_device() must be done as the last step before exposing device to the user space in order to avoid races. In addition clarified description in

[PATCHv2 02/10] fbdev: ssd1307fb: Use vmalloc to allocate video memory.

2015-03-01 Thread Thomas Niederprüm
It makes sense to use vmalloc to allocate the video buffer since it has to be page aligned memory for using it with mmap. Also deffered io seems buggy in combination with kmalloc'ed memory (crash on unloading the module). Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de ---

[PATCHv2 08/10] fbdev: ssd1307fb: Add module parameter bitsperpixel.

2015-03-01 Thread Thomas Niederprüm
This patch adds a module parameter 'bitsperpixel' to adjust the colordepth of the framebuffer. All values 1 will result in memory map of the requested color depth. However only the MSB of each pixel will be sent to the device. The framebuffer identifies itself as a grayscale display with the

[PATCH v6 1/3] irqchip: vf610-mscm-ir: add support for MSCM interrupt router

2015-03-01 Thread Stefan Agner
This adds support for Vybrid's interrupt router. On VF6xx models, almost all peripherals can be used by either of the two CPU's, the Cortex-A5 or the Cortex-M4. The interrupt router routes the peripheral interrupts to the configured CPU. This IRQ chip driver configures the interrupt router to

[PATCH v6 2/3] irqchip: vf610-mscm: dt-bindings: add MSCM bindings

2015-03-01 Thread Stefan Agner
Add binding documentation for CPU configuration and interrupt router submodule of the Miscellaneous System Control Module. The MSCM is used in all variants of Freescale Vybrid SoC's. Acked-by: Marc Zyngier marc.zyng...@arm.com Signed-off-by: Stefan Agner ste...@agner.ch ---

[PATCH v6 0/3] irqchip: vf610-mscm: add MSCM interrupt router driver

2015-03-01 Thread Stefan Agner
So far the MSCM interrupt router was initialized by the boot loader and configured all interrupts for the Cortex-A5 CPU. There are two use cases where a proper driver is necessary: - To run Linux on the Cortex-M4. When the kernel is running on the non-preconfigured CPU, the interrupt router need

Re: [PATCH] tpm: fix call order in tpm-chip.c

2015-03-01 Thread Peter Hüwe
Am Sonntag, 1. März 2015, 22:55:47 schrieb Jarkko Sakkinen: - tpm_dev_add_device(): cdev_add() must be done before uevent is propagated in order to avoid races. - tpm_chip_register(): tpm_dev_add_device() must be done as the last step before exposing device to the user space in order to

Re: [PATCH 1/2] ARM: OMAP2: hwmod: AM43XX: Add hwmod support for HDQ-1W

2015-03-01 Thread Paul Walmsley
Hi On Fri, 27 Feb 2015, Vignesh R wrote: From: Poddar, Sourav sourav.pod...@ti.com This patch adds hwmod data for hdq/1w driver on AM43xx. Signed-off-by: Sourav Poddar sourav.pod...@ti.com [vigne...@ti.com: Ported patch to v4.0-rc1] Signed-off-by: Vignesh R vigne...@ti.com ---

linux-next: manual merge of the net-next tree with the net tree

2015-03-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/rocker/rocker.c between commit 5f2ebfbee688 (rocker: silence shift wrapping warning) from the net tree and commit 4a6bb6d35980 (rocker: rename lport to pport) from the net-next tree. I fixed it up (see

Re: [PATCH 03/27] staging: lustre: Convert uses of int rc = seq_printf(...)

2015-03-01 Thread Greg Kroah-Hartman
On Sat, Feb 21, 2015 at 06:53:30PM -0800, Joe Perches wrote: The seq_printf return value, because it's frequently misused, will eventually be converted to void. See: commit 1f33c41c03da (seq_file: Rename seq_overflow() to seq_has_overflowed() and make public) Convert these uses to:

Re: [RFC][PATCH 1/9] klp: Fix obvious RCU fail

2015-03-01 Thread Masami Hiramatsu
(2015/03/01 6:24), Peter Zijlstra wrote: While one must hold RCU-sched (aka. preempt_disable) for find_symbol() one must equally hold it over the use of the object returned. The moment you release the RCU-sched read lock, the object can be dead and gone. Cc: Seth Jennings

Re: [PATCH v2] staging: lustre: fld_request.c: Remove else after return.

2015-03-01 Thread Greg KH
On Sat, Feb 28, 2015 at 01:37:23PM -0300, Alberto Pires de Oliveira Neto wrote: This patch fixes checkpatch.pl warning. WARNING: else is not generally useful after a break or return Signed-off-by: Alberto Pires de Oliveira Neto mrpenguin2...@gmail.com ---

Re: [proposal] delegating cgroup manager to non-PID1

2015-03-01 Thread Luke Kenneth Casson Leighton
On Mon, Mar 2, 2015 at 12:13 AM, David Lang da...@lang.hm wrote: On Sun, 1 Mar 2015, Luke Kenneth Casson Leighton wrote: in recent discussions about PID-1 alternatives (sysvinit, openrc, systemd, depinit) i was alerted to the idea that PID1 is to become the sole exlcusive process permitted to

[PATCHv2 00/10] fbdev: ssd1307fb: Cleanup and add support for SSD1305

2015-03-01 Thread Thomas Niederprüm
This patch series is the result of making the ssd1307fb driver work with a Newhaven OLED display using the Solomon SSD1305 controller. To achieve this the intialization code for the SSD1306 and the SSD1307 is merged and based on DT configuration to reflect to various possible wirings of the

[PATCHv2 04/10] fbdev: ssd1307fb: Unify init code and obtain hw specific bits from DT

2015-03-01 Thread Thomas Niederprüm
The SSD130X controllers are very similar from the configuration point of view. The configuration registers for the SSD1305/6/7 are bit identical (except the the VHCOM register and the the default values for clock setup register). This patch unifies the init code of the controller and adds hardware

[PATCHv2 01/10] fbdev: ssd1307fb: fix memory address smem_start.

2015-03-01 Thread Thomas Niederprüm
the smem_start pointer of the framebuffer info struct needs to hold the physical address rather than the virtual address. This patch fixes a driver crash on mmaping the framebuffer memory due to an access to the memory address. Note however that the memory allocated by kzalloc is not page

[PATCHv2 03/10] Documentation: dts: add missing Solomon Systech vendor prefix.

2015-03-01 Thread Thomas Niederprüm
This patch adds the solomon prefix for Solomon Systech Limited. Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCHv2 05/10] fbdev: ssd1307fb: fix in tree users of ssd1306

2015-03-01 Thread Thomas Niederprüm
introducing the new DT properties the in tree users of the SSD1306 controller are updated to be up to date. Signed-off-by: Thomas Niederprüm nied...@physik.uni-kl.de --- arch/arm/boot/dts/imx28-cfa10036.dts | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v5 tip 2/7] tracing: attach BPF programs to kprobes

2015-03-01 Thread Alexei Starovoitov
User interface: struct perf_event_attr attr = {.type = PERF_TYPE_TRACEPOINT, .config = event_id, ...}; event_fd = perf_event_open(attr,...); ioctl(event_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd is a file descriptor associated with BPF program previously loaded. event_id is an ID of created

[PATCH v5 tip 3/7] tracing: allow BPF programs to call bpf_ktime_get_ns()

2015-03-01 Thread Alexei Starovoitov
bpf_ktime_get_ns() is used by programs to compue time delta between events or as a timestamp Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- include/uapi/linux/bpf.h |1 + kernel/trace/bpf_trace.c | 11 +++ 2 files changed, 12 insertions(+) diff --git

[PATCH v5 tip 7/7] samples: bpf: IO latency analysis (iosnoop/heatmap)

2015-03-01 Thread Alexei Starovoitov
BPF C program attaches to blk_mq_start_request/blk_update_request kprobe events to calculate IO latency. For every completed block IO event it computes the time delta in nsec and records in a histogram map: map[log10(delta)*10]++ User space reads this histogram map every 2 seconds and prints it as

Re: [PATCH v3] scripts: checkpatch.pl: add 2 new checks on memset

2015-03-01 Thread Joe Perches
On Mon, 2015-03-02 at 01:38 +0200, Aya Mahfouz wrote: On Sun, Mar 01, 2015 at 02:13:21PM -0800, Joe Perches wrote: On Sun, 2015-03-01 at 23:43 +0200, Aya Mahfouz wrote: calls Reply-To: Add 2 new checks on memset calls in the file checkpatch.pl as follows: Hi again Aya

Re: [PATCH] mtd: atmel_nand: fix typo in dev_err error message

2015-03-01 Thread Josh Wu
Hi, Colin On 3/1/2015 4:27 AM, Colin King wrote: From: Colin Ian King colin.k...@canonical.com Fix typo, Unkown - Unknown Signed-off-by: Colin Ian King colin.k...@canonical.com Thanks for the patch. Acked-by: Josh Wu josh...@atmel.com --- drivers/mtd/nand/atmel_nand.c | 2 +- 1 file

Re: pskb_expand_head: skb_shared BUG

2015-03-01 Thread Chris Dunlop
On Mon, Mar 02, 2015 at 11:45:11AM +1100, Chris Dunlop wrote: Heads up... We've hit this BUG() in v3.10.70, v3.14.27 and v3.18.7: net/core/skbuff.c: 1027 int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, 1028 gfp_t gfp_mask) 1029 { 1030 int i;

Re: [PATCH] Staging: fbtft: fix whitespace errors

2015-03-01 Thread Greg KH
On Mon, Feb 23, 2015 at 07:20:30AM +0100, Matteo Semenzato wrote: From: Matteo Semenzato mattew8...@gmail.com This patch fixes the following errors: ERROR: space required after that ',' ERROR: trailing whitespace Signed-off-by: Matteo Semenzato mattew8...@gmail.com ---

Re: [PATCH] Staging: fbtft: fix space errors

2015-03-01 Thread Greg KH
On Mon, Feb 23, 2015 at 05:24:51PM +0100, Matteo Semenzato wrote: From: Matteo Semenzato mattew8...@gmail.com This patch fixes the following error: space prohibited before that ',' Signed-off-by: Matteo Semenzato mattew8...@gmail.com --- drivers/staging/fbtft/fb_ra8875.c | 150

RE: [RFC] mm: change mm_advise_free to clear page dirty

2015-03-01 Thread Wang, Yalin
-Original Message- From: Minchan Kim [mailto:minchan@gmail.com] On Behalf Of Minchan Kim Sent: Saturday, February 28, 2015 9:56 PM To: Wang, Yalin Cc: 'Michal Hocko'; Andrew Morton; linux-kernel@vger.kernel.org; linux- m...@kvack.org; Rik van Riel; Johannes Weiner; Mel Gorman;

Re: [alsa-devel] [PATCH] ASoC: wm8731: let codec to manage clock by itself

2015-03-01 Thread Bo Shen
On 02/16/2015 08:58 PM, Manuel Lauss wrote: On Mon, Feb 16, 2015 at 11:31 AM, Charles Keepax ckee...@opensource.wolfsonmicro.com wrote: On Thu, Feb 12, 2015 at 04:23:06PM +0800, Bo Shen wrote: Hi All, On 02/05/2015 03:35 PM, Bo Shen wrote: Let the wm8731 codec to manage clock by itself.

Re: [RFC][PATCH 5/9] rbtree: Make lockless searches non-fatal

2015-03-01 Thread Michel Lespinasse
On Sat, Feb 28, 2015 at 1:24 PM, Peter Zijlstra pet...@infradead.org wrote: Change the insert and erase code such that lockless searches are non-fatal. In and of itself an rbtree cannot be correctly searched while in-modification, we can however provide weaker guarantees that will allow the

Re: [RFC][PATCH 6/9] seqlock: Better document raw_write_seqcount_latch()

2015-03-01 Thread Michel Lespinasse
On Sat, Feb 28, 2015 at 1:24 PM, Peter Zijlstra pet...@infradead.org wrote: Improve the documentation of the latch technique as used in the current timekeeping code, such that it can be readily employed elsewhere. Borrow from the comments in timekeeping and replace those with a reference to

Re: [PATCH v3] scripts: checkpatch.pl: add 2 new checks on memset

2015-03-01 Thread Joe Perches
On Sun, 2015-03-01 at 23:43 +0200, Aya Mahfouz wrote: calls Reply-To: Add 2 new checks on memset calls in the file checkpatch.pl as follows: Hi again Aya The initial 3 lines here aren't necessary. I think it'd be a better subject line with something like checkpatch: prefer eth_foo_addr

[PATCH v6 3/3] ARM: dts: vf610: add Miscellaneous System Control Module (MSCM)

2015-03-01 Thread Stefan Agner
Add the Miscellaneous System Control Module (MSCM) to the base device tree for Vybrid SoC's. This module contains registers to get information of the individual and current (accessing) CPU. In a second block, there is an interrupt router, which handles the routing of the interrupts between the two

Re: [PATCH] capabilities: Ambient capability set V2

2015-03-01 Thread Serge E. Hallyn
On Thu, Feb 26, 2015 at 04:14:33PM -0600, Christoph Lameter wrote: V1-V2: - Fix up the processing of the caps bits after discussions with Any and Serge. Make patch less intrusive. Ambient caps are something like restricted root privileges. A process has a set of additional

Re: [PATCH v6 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-03-01 Thread Beomho Seo
On 03/01/2015 05:03 AM, Paul Bolle wrote: On Tue, 2015-02-24 at 10:29 +0900, Jaewon Kim wrote: diff --git a/drivers/power/max77843_charger.c b/drivers/power/max77843_charger.c new file mode 100644 index 000..392eebc1a --- /dev/null +++ b/drivers/power/max77843_charger.c @@ -0,0 +1,508

Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm

2015-03-01 Thread David Fries
On Sun, Mar 01, 2015 at 02:04:53PM +0100, Thorsten Bschorr wrote: Hi David, thanks for your feedback on my first patch, I wasn't aware of checkpatch.pl. Initially, I had just if-ed the usage of family-data, which did not look that nice. I was referring to this proof-of-concept workaround

Re: [PATCH] Staging: fbtft: fix indent

2015-03-01 Thread Greg KH
On Sat, Feb 28, 2015 at 03:51:47PM +0100, Matteo Semenzato wrote: From: Matteo Semenzato mattew8...@gmail.com This patch fixes the following error: code indent should use tabs where possible Signed-off-by: Matteo Semenzato mattew8...@gmail.com --- drivers/staging/fbtft/flexfb.c | 9

Re: [PATCH V2] Staging: fbtft: fix coding style errors

2015-03-01 Thread Greg KH
On Sat, Feb 28, 2015 at 06:37:30PM +0100, Matteo Semenzato wrote: From: Matteo Semenzato mattew8...@gmail.com This patch fixes the following error: space required after that ';' Signed-off-by: Matteo Semenzato mattew8...@gmail.com --- drivers/staging/fbtft/fbtft_device.c | 145

preempt in kprobe

2015-03-01 Thread gmail
Hi, masami: I have read your post at https://lkml.org/lkml/2011/7/1/185 , which remove the preempt disable code in kprobe. Does it safe on arm(32) ? In my scenario I (have to) write some sleep code which may cause reschedule in the probe handler. Then I got schedule bug report like

Re: [PULL] Yama update (4.0)

2015-03-01 Thread James Morris
On Fri, 27 Feb 2015, Kees Cook wrote: Hi, Please pull these yama changes for 4.0. Thanks! Kees Cook (1): Yama: do not modify global sysctl table entry Does this need to be in 4.0? Changes in the rc series need

Re: [RFC][PATCH 7/9] rbtree: Implement generic latch_tree

2015-03-01 Thread Michel Lespinasse
On Sat, Feb 28, 2015 at 1:24 PM, Peter Zijlstra pet...@infradead.org wrote: Implement a latched RB-tree in order to get RCU style lookups. Looks fine to me. I wanted to ask, you are writing this as a generic layer even though there is a single use at the moment; do you anticipate this will get

[PATCH v5 tip 4/7] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-01 Thread Alexei Starovoitov
Debugging of BPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Similar to kernel modules, during program load verifier checks whether program is calling bpf_trace_printk() and if so, kernel allocates trace_printk

[PATCH v5 tip 5/7] samples: bpf: simple non-portable kprobe filter example

2015-03-01 Thread Alexei Starovoitov
tracex1_kern.c - C program compiled into BPF. It attaches to kprobe:netif_receive_skb When skb-dev-name == lo, it prints sample debug message into trace_pipe via bpf_trace_printk() helper function. tracex1_user.c - corresponding user space component that: - loads bpf program via bpf() syscall -

[PATCH v5 tip 6/7] samples: bpf: counting example for kfree_skb and write syscall

2015-03-01 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different kprove events and use two different maps. 1st probe is x64 specific equivalent of dropmon. It attaches to kfree_skb, retrevies 'ip' address of kfree_skb() caller and counts number of packet drops at that 'ip' address. User space

[PATCH v5 tip 0/7] tracing: attach eBPF programs to kprobes

2015-03-01 Thread Alexei Starovoitov
Peter, Steven, I think this set addresses everything we've discussed. Please review/ack. Thanks! V4-V5: - switched to ktime_get_mono_fast_ns() as suggested by Peter - in libbpf.c fixed zero init of 'union bpf_attr' padding - fresh rebase on tip/master Hi All, This is targeting 'tip' tree, since

[GIT PULL REQUEST] md fixes for 4.0

2015-03-01 Thread NeilBrown
The following changes since commit c517d838eb7d07bbe9507871fab3931deccff539: Linux 4.0-rc1 (2015-02-22 18:21:14 -0800) are available in the git repository at: git://neil.brown.name/md/ tags/md/4.0-fixes for you to fetch changes up to 750f199ee8b578062341e6ddfe36c59ac8ff2dcb: md: mark

Re: [PATCH v4 3/3] staging: lustre: fix coding style errors fix the

2015-03-01 Thread Greg KH
On Tue, Feb 10, 2015 at 08:36:21PM +0200, Tal Shorer wrote: following coding style error in drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c: missing spaces around '=' Signed-off-by: Tal Shorer tal.sho...@gmail.com --- drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c | 2 +-

Re: [PATCH v4 1/3] staging: lustre: fix coding style errors

2015-03-01 Thread Greg KH
On Tue, Feb 10, 2015 at 08:36:19PM +0200, Tal Shorer wrote: fix the following coding style error in drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c: initialization of lnet_table_header (static pointer) to NULL Signed-off-by: Tal Shorer tal.sho...@gmail.com ---

Re: [PATCH v4 2/3] staging: lustre: fix coding style errors

2015-03-01 Thread Greg KH
On Tue, Feb 10, 2015 at 08:36:20PM +0200, Tal Shorer wrote: fix the following coding style error in drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c: initialization of min_watchdog_ratelimit (static int) to 0 for clarity's sake, the = 0 is kept as part of a comment Signed-off-by:

Re: [PATCH v2] staging: lustre: fld_request.c: Remove else after return.

2015-03-01 Thread Alberto Pires de Oliveira Neto
that's true. I think it's ok now. On Sun, Mar 1, 2015 at 10:30 PM, Greg KH gre...@linuxfoundation.org wrote: On Sat, Feb 28, 2015 at 01:37:23PM -0300, Alberto Pires de Oliveira Neto wrote: This patch fixes checkpatch.pl warning. WARNING: else is not generally useful after a break or

[PATCH v3] staging: lustre: fld_request.c: Remove else after return.

2015-03-01 Thread Alberto Pires de Oliveira Neto
This patch fixes checkpatch.pl warning. WARNING: else is not generally useful after a break or return Signed-off-by: Alberto Pires de Oliveira Neto mrpenguin2...@gmail.com --- drivers/staging/lustre/lustre/fld/fld_request.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[Question] cpu-node relationship changed with node online/offline

2015-03-01 Thread Gu Zheng
Hi numa guys, Yasuaki Ishimatsu found a phenomenon that the numa mapping (cpu-node relationship) changed when hot add/remove node. And this change will cause allocation failure bug to workqueue sub-system: ... SLUB: Unable to allocate memory on node 2 (gfp=0x80d0) cache: kmalloc-192, object

[PATCH v2] clk: samsung: Add CLKOUT driver support for Exynos3250 SoC.

2015-03-01 Thread Inha Song
This patch add CLKOUT driver support for Exynos3250 SoC. Exynos3250 SoC PMU_DEBUG is the same with Exynos4's PMU_DEBUG including CLKOUT mux. So, We can use the exynos4's clkout init function for Exynos3250 without the need to add new function. Signed-off-by: Inha Song ideal.s...@samsung.com ---

Re: [PATCH v3 3/4] scsi: ufs: add trace events and dump prints for debug

2015-03-01 Thread Gilad Broner
If I understand the patch above, you basically have: if () goto out; else ret = ufshcd_resume(); out: Wouldn't it be better to just reverse the above if condition? if (!...) ret = ufshcd_resume(); That would be much less

[PATCH v2 0/2] add dts for PopMetal board

2015-03-01 Thread Andy Yan
PopMetal is a rockchip rk3288 based board made by ChipSpark, which has many interface such as VGA,HDMI,usb,ir,sdcad and lots of sensors such as gyroscope(L3G4200D),accelerometer(mma8452),compass(AK8963C). http://wiki.chipspark.com/en/index.php?title=PopMetal This patch add basic support for it,

Re: linux firewire implementation DMA attack

2015-03-01 Thread Stefan Richter
On Feb 21 Pali Rohár wrote: I would like to know if current firewire implementation in Linux kernel v3.19 still have security problems like DMA attack. If yes are there any prevention for it (maybe with intel_iommu)? Remote DMA via the OHCI 1394 physical response unit is still enabled by the

Re: stand-alone kvmtool

2015-03-01 Thread Pekka Enberg
On 2/26/15 1:02 PM, Alex Bennée wrote: If you can have it all it would be nice to preserve buildability all through your history for bisecting (and the moon on a stick please ;-) Is the dependency on the kernel sources something that has been stable over the projects history or something that's

Re: [Intel-gfx] [Regression] BUG: unable to handle kernel NULL pointer dereference

2015-03-01 Thread Chris Wilson
On Sun, Mar 01, 2015 at 12:30:01PM +0300, Andrey Skvortsov wrote: On 01 Mar, Chris Wilson wrote: On Sun, Mar 01, 2015 at 12:57:01AM +0300, Andrey Skvortsov wrote: On 28 Feb, Chris Wilson wrote: On Sat, Feb 28, 2015 at 03:20:37PM +0300, Andrey Skvortsov wrote: Unfortunately this is

[PATCH 1/2] acpi/video: Load the module even if ACPI is disabled

2015-03-01 Thread Chris Wilson
i915.ko depends upon the acpi/video.ko module and so refuses to load if ACPI is disabled at runtime if for example the BIOS is broken beyond repair. acpi/video provides an optional service for i915.ko and so we should just allow the modules to load, but do no nothing in order to let the machines

[PATCH 2/2] acpi/video: Propagate the error code for acpi_video_register

2015-03-01 Thread Chris Wilson
Report the actual error code from acpi_bus_register_driver(), it may help future debugging (typically ENODEV as previously reported, but the unusual cases are where it may help most). Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk Cc: Daniel Vetter daniel.vet...@ffwll.ch Cc: Zhang Rui

Fwd: [PATCH] c6x: kernel: setup: Type cast 'fdt' to void * for early_init_dt_scan() in machine_init()

2015-03-01 Thread Chen Gang S
Just forward to linux kernel mailing list. Thanks. Forwarded Message Subject: [PATCH] c6x: kernel: setup: Type cast 'fdt' to void * for early_init_dt_scan() in machine_init() Date: Sun, 01 Mar 2015 16:31:29 +0800 From: Chen Gang 762976...@qq.com To: msal...@redhat.com,

Re: [PATCH v3 2/4] scsi: ufs: add debugfs for ufs

2015-03-01 Thread Gilad Broner
+#define UFSHCD_UPDATE_TAG_STATS(hba, tag) +#define UFSHCD_UPDATE_TAG_STATS_COMPLETION(hba, cmd) +#define UFSHCD_UPDATE_ERROR_STATS(hba, type) + +#endif Is there any reason that these are defined as macros instead of static functions? No special reason that I'm aware of. I will convert

[PATCHv2 1/7] zram: cosmetic ZRAM_ATTR_RO code formatting tweak

2015-03-01 Thread Sergey Senozhatsky
Signed-off-by: Sergey Senozhatsky sergey.senozhat...@gmail.com --- drivers/block/zram/zram_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 871bd35..8fc2566 100644 --- a/drivers/block/zram/zram_drv.c +++

[PATCHv2 0/7] introduce dynamic device creation/removal

2015-03-01 Thread Sergey Senozhatsky
Hello, This patchset introduces zram-control sysfs class, which has two sysfs attrs: - zram_add -- add a new specific (device_id) zram device - zram_remove -- remove a specific (device_id) zram device Usage example: # add a new specific zram device echo 4

[PATCHv2 2/7] zram: use idr instead of `zram_devices' array

2015-03-01 Thread Sergey Senozhatsky
This patch makes some preparations for dynamic device ADD/REMOVE functionality via /dev/zram-control interface. Remove `zram_devices' array and switch to id-to-pointer translation (idr). idr doesn't bloat zram struct with additional members, f.e. list_head, yet still provides ability to match the

[PATCH] Staging: dgnc: replace EXTRA_CFLAGS

2015-03-01 Thread Matteo Semenzato
From: Matteo Semenzato mattew8...@gmail.com This patch fixes the following warning: Use of EXTRA_CFLAGS is deprecated, please use `ccflags-y instead. Signed-off-by: Matteo Semenzato mattew8...@gmail.com --- drivers/staging/dgnc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 1/2] dt-bindings: add root compatible property for PopMetal board

2015-03-01 Thread Andy Yan
PopMetal board is a rk3288 based board made by ChipSpark, this add root compatible property for it Signed-off-by: Andy Yan andy@rock-chips.com --- Changes in v2: - change PopMetal PopMetal-RK3288 board to ChipSPARK PopMetal-RK3288 board Documentation/devicetree/bindings/arm/rockchip.txt |

Re: [Intel-gfx] [Regression] BUG: unable to handle kernel NULL pointer dereference

2015-03-01 Thread Andrey Skvortsov
On 01 Mar, Chris Wilson wrote: On Sun, Mar 01, 2015 at 12:57:01AM +0300, Andrey Skvortsov wrote: On 28 Feb, Chris Wilson wrote: On Sat, Feb 28, 2015 at 03:20:37PM +0300, Andrey Skvortsov wrote: Unfortunately this is not the last bug, that breaks i915/drm working on my laptop.

[PATCH] mtd: nand: MTD_NAND_HISI504 should depend on HAS_DMA

2015-03-01 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `hisi_nfc_probe': hisi504_nand.c:(.text+0x23e646): undefined reference to `dmam_alloc_coherent' Signed-off-by: Geert Uytterhoeven ge...@linux-m68k.org --- drivers/mtd/nand/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 0/4] hw_random: bcm63xx-rng: misc cleanups and reorg

2015-03-01 Thread Herbert Xu
On Mon, Feb 16, 2015 at 06:09:12PM -0800, Florian Fainelli wrote: Hi, This patchset prepares the driver to be built on non-MIPS bcm63xx architectures such as the ARM bcm63xx variants, thanks! Although patch 3 touches a MIPS header file, there should be little to no conflicts there if

[PATCH v2] rtc: add Abracon ABx80x driver

2015-03-01 Thread Alexandre Belloni
Add support for the i2c RTC from Abracon. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Changes in v2: - corrected style according to checkpatch --strict - renamed functions to abx80x_* - reordered makefile and kconfig additions drivers/rtc/Kconfig | 9 +++

Fwd: [PATCH] c6x: kernel: setup: Type cast 'fdt' to void * for early_init_dt_scan() in machine_init()

2015-03-01 Thread Chen Gang S
Just forward to linux kernel mailing list. Thanks. Forwarded Message Subject: [PATCH] c6x: kernel: setup: Type cast 'fdt' to void * for early_init_dt_scan() in machine_init() Date: Sun, 01 Mar 2015 16:11:29 +0800 From: Chen Gang 762976...@qq.com To: msal...@redhat.com,

Fwd: [PATCH] c6x: kernel: setup: Include linux/console.h if both VT and DUMMY_CONSOLE enabled

2015-03-01 Thread Chen Gang S
This patch below is sent from my other email address (762976...@qq.com), but is rejected by linux-kernel@vger.kernel.org, so I forward it by my original email address. Excuse me, I will leave current company soon (sunrus.com.cn), so I have to change my email address too. At present, gmail in

Re: [Intel-gfx] [Regression] BUG: unable to handle kernel NULL pointer dereference

2015-03-01 Thread Chris Wilson
On Sun, Mar 01, 2015 at 12:57:01AM +0300, Andrey Skvortsov wrote: On 28 Feb, Chris Wilson wrote: On Sat, Feb 28, 2015 at 03:20:37PM +0300, Andrey Skvortsov wrote: Unfortunately this is not the last bug, that breaks i915/drm working on my laptop. Sometimes system successfully loads with

Re: [PATCH net-next 09/10] arm64: unexport set_memory_ro and set_memory_rw

2015-03-01 Thread Daniel Borkmann
Hi Will, On 02/27/2015 09:05 PM, Daniel Borkmann wrote: On 02/27/2015 08:54 PM, Will Deacon wrote: ... Looks good to me. Can this be applied independently, or does it need to remain part of your series? Ideally, it should be seen as part of this series, but I have no problem if this one goes

[PATCH] Staging: dgnc: replace printk

2015-03-01 Thread Matteo Semenzato
From: Matteo Semenzato mattew8...@gmail.com This patch fixes the following warning: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: Matteo Semenzato mattew8...@gmail.com --- drivers/staging/dgnc/dgnc_sysfs.c | 4

[PATCHv2 6/7] zram: remove max_num_devices limitation

2015-03-01 Thread Sergey Senozhatsky
Limiting the number of zram devices to 32 (default max_num_devices value) is confusing, let's drop it. A user with 2TB or 4TB of RAM, for example, can request as many devices as he can handle. Signed-off-by: Sergey Senozhatsky sergey.senozhat...@gmail.com --- drivers/block/zram/zram_drv.c | 8

[PATCHv2 4/7] zram: reorganize code layout

2015-03-01 Thread Sergey Senozhatsky
This patch looks big, but basically it just moves code blocks forward and backward. No functional changes. Our current code layout looks a bit like a sandwitch. For example, a) between read/write handlers, we have update_used_max() helper function: static int zram_decompress_page static int

[PATCHv2 5/7] zram: add dynamic device add/remove functionality

2015-03-01 Thread Sergey Senozhatsky
Introduce zram-control sysfs class, which has two sysfs attrs: - zram_add -- add a new specific (device_id) zram device - zram_remove -- remove a specific (device_id) zram device Usage example: # add a new specific zram device echo 4 /sys/class/zram-control/zram_add

[PATCHv2 7/7] zram: report every added and removed device

2015-03-01 Thread Sergey Senozhatsky
With dynamic device creation/removal printing num_devices in zram_init() doesn't make a lot of sense, as well as printing the number of destroyed devices in destroy_devices(). Print per-device action (added/removed) in zram_add() and zram_remove() instead. Example: [ 3645.259652] zram: Added

[PATCHv2 3/7] zram: factor out device reset from reset_store()

2015-03-01 Thread Sergey Senozhatsky
Device reset currently consists of two steps: a) holding -bd_mutex we ensure that there are no device users (bdev-bd_openers) b) and internal part (executed under bdev-bd_mutex and partially under zram-init_lock) that resets the device - frees allocated memory and returns the device back to its

[tip:locking/urgent] locking/rtmutex: Set state back to running on error

2015-03-01 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 9d3e2d02f54160725d97f4ab1e1e8de493fbf33a Gitweb: http://git.kernel.org/tip/9d3e2d02f54160725d97f4ab1e1e8de493fbf33a Author: Sebastian Andrzej Siewior bige...@linutronix.de AuthorDate: Fri, 27 Feb 2015 17:57:09 +0100 Committer: Ingo Molnar mi...@kernel.org CommitDate: Sun, 1

[PATCH v2 2/2] ARM: dts: add rk3288 PopMetal board

2015-03-01 Thread Andy Yan
PopMetal is a rockchip rk3288 based board made by ChipSpark, which has many interface such as VGA,HDMI,usb,ir,sdcad and lots of sensors such as gyroscope(L3G4200D),accelerometer(mma8452), compass(AK8963C). This patch add a basic support for this board, which make the board boot into a initramfs

Re: [PATCH 1/8] x86, kaslr: get kaslr_enabled back correctly

2015-03-01 Thread Borislav Petkov
On Sat, Feb 28, 2015 at 06:40:39PM -0800, Yinghai Lu wrote: oh, no. the offending commit already got into linus tree. We're working on it, follow this thread: http://lkml.kernel.org/r/1424929021.10337.24.ca...@intel.com -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you

[PATCH] arm64: mm: unexport set_memory_ro and set_memory_rw

2015-03-01 Thread Daniel Borkmann
This effectively unexports set_memory_ro and set_memory_rw functions from commit 11d91a770f1f (arm64: Add CONFIG_DEBUG_SET_MODULE_RONX support). No module user of those is in mainline kernel and we explicitly do not want modules to use these functions, as they i.e. RO-protect eBPF (interpreted

  1   2   3   4   5   6   7   >