Re: [PATCH 0/7] scsi: Some seq_file cleanups/optimizations

2014-11-29 Thread Finn Thain
On Sat, 29 Nov 2014, Rasmus Villemoes wrote: > These patches mostly replace seq_printf with simpler and faster > equivalents, e.g. seq_printf(m, "something") => seq_puts(m, "something") > and seq_printf(m, "\n") => seq_putc(m, '\n). But before my Coccinelle > scripts could be unleashed I had t

Re: [PATCH net-next 3/6] samples: bpf: example of stateful socket filtering

2014-11-29 Thread Alexei Starovoitov
On Sat, Nov 29, 2014 at 9:01 PM, David Miller wrote: > From: Alexei Starovoitov > Date: Wed, 26 Nov 2014 21:42:28 -0800 > >> this socket filter example does: >> - creates arraymap in kernel with key 4 bytes and value 8 bytes >> >> - loads eBPF program: >> r0 = skb[14 + 9]; // load one byte of i

Re: [PATCH net-next] vhost: remove unnecessary forward declarations in vhost.h

2014-11-29 Thread David Miller
From: Jason Wang Date: Thu, 27 Nov 2014 14:41:21 +0800 > Signed-off-by: Jason Wang I don't think generic vhost patches should go via my tree. If you disagree, let me know why, thanks :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [PATCH net-next V3] tun/macvtap: use consume_skb() instead of kfree_skb() when needed

2014-11-29 Thread David Miller
From: Jason Wang Date: Thu, 27 Nov 2014 14:36:06 +0800 > To be more friendly with drop monitor, we should only call kfree_skb() when > the packets were dropped and use consume_skb() in other cases. > > Cc: Eric Dumazet > Signed-off-by: Jason Wang > --- > Changes from V2: > - use unlikely() whe

Re: [PATCH net-next 3/6] samples: bpf: example of stateful socket filtering

2014-11-29 Thread David Miller
From: Alexei Starovoitov Date: Wed, 26 Nov 2014 21:42:28 -0800 > this socket filter example does: > - creates arraymap in kernel with key 4 bytes and value 8 bytes > > - loads eBPF program: > r0 = skb[14 + 9]; // load one byte of ip->proto ... > + BPF_LD_ABS(BPF_B, 14 + 9 /* R0 =

Re: [PATCH] sound: use enum names instead of magic numbers

2014-11-29 Thread Joe Perches
On Sun, 2014-11-30 at 13:52 +0900, Takashi Sakamoto wrote: > On 2014年11月30日 05:58, Joe Perches wrote: > > There's an enum defined for these magic numbers, > > might as well use it. [] > I think it better to split this patch into two parts, one is for > enumeration identifier and another is for vari

Re: [PATCH] sound: use enum names instead of magic numbers

2014-11-29 Thread Takashi Sakamoto
On 2014年11月30日 05:58, Joe Perches wrote: > There's an enum defined for these magic numbers, > might as well use it. > > Miscellanea: > o Use ##__VA_ARGS__ > > Signed-off-by: Joe Perches > --- > include/sound/core.h | 28 +++- > sound/core/misc.c| 6 +++--- > 2 files

Re: [PATCH net-next] macvlan: delay the header check for dodgy packets into lower device

2014-11-29 Thread David Miller
From: Jason Wang Date: Wed, 26 Nov 2014 17:21:14 +0800 > We do header check twice for a dodgy packet. One is done before > macvlan_start_xmit(), another is done before lower device's > ndo_start_xmit(). The first one seems redundant so this patch tries to > delay header check until a packet reach

Re: [PATCH] xen-netfront: Remove BUGs on paged skb data which crosses a page boundary

2014-11-29 Thread David Miller
From: Seth Forshee Date: Wed, 26 Nov 2014 21:53:50 -0600 > On Wed, Nov 26, 2014 at 12:28:12PM -0500, David Miller wrote: >> From: Seth Forshee >> Date: Tue, 25 Nov 2014 20:28:24 -0600 >> >> > These BUGs can be erroneously triggered by frags which refer to >> > tail pages within a compound page.

Re: Non Explained TODOs in halbtcoutsrc.c

2014-11-29 Thread Larry Finger
On 11/29/2014 05:34 PM, nick wrote: Greetings Larry, After reading the code around the TODOS, I can't understand you reasoning for them in this file as they seem to unneeded as the logic for the switch statement with them seems to be fine. If there are reasons for them in this file, it would be

[PATCH] kvm: arm: vgic: Let one looping code instead of two looping code

2014-11-29 Thread Chen Gang
Use one looping instead of two, so can let code more simpler and get a little better performance. Signed-off-by: Chen Gang --- virt/kvm/arm/vgic.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index cf23c13..eb1a51b 100644 --- a/virt/kvm/arm/vgic

Audio and Ethernet support for Gigabyte Z97X-SOC FORCE Motherboard

2014-11-29 Thread Paul G. Allen
I just installed CentOS 6.6 on my system. I've had the system for a while running Win7 Pro for gaming. I have finally gotten to the point that I need Linux again here at home. I had some doubts about it working being that the MoBo is rather new (I was having flashbacks of when I had to update the A

Re: [RFC v2 1/2] compiler: use compiler to detect integer overflows

2014-11-29 Thread Sasha Levin
On 11/29/2014 01:08 PM, Linus Torvalds wrote: > On Sat, Nov 29, 2014 at 7:07 AM, Sasha Levin wrote: >> > >> > Since we can't just change those to unsigned > Sure we can. Just cast them. A signed start/len is bogus crap, it's a > random wrong type. But this is going on everywhere in fs/! It uses l

[PATCH] KEYS: Destroy by key type before removing the rest of the key

2014-11-29 Thread Sasha Levin
We should make sure that the key type does it's destruction dance first before we start tearing down the key structure itself so that we won't have a live key in a semi-coherent state. This would prevent a race between key destruction and lookup in the keyring case, resulting in a use-after-free.

Re: [PATCH v2] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-29 Thread Chen Gang
Hello maintainers: Is this discussion OK? If necessary, I shall send patch v3 according to your taste. Thanks. On 11/15/14 00:30, Chen Gang wrote: > > According to your taste, we need improve 2 contents below: > > On 11/14/2014 11:55 PM, Marc Zyngier wrote: >> >> No. This is completely overdes

Re: [PATCH] drivers: scsi: megaraid: Add "megaraid_sas_internal.h" for internal shared functions using

2014-11-29 Thread Chen Gang
On 11/17/14 19:51, Sumit Saxena wrote: >> -Original Message- >> From: Chen Gang [mailto:gang.chen.5...@gmail.com] >> Sent: Monday, November 17, 2014 5:17 PM >> To: Sumit Saxena >> Cc: megaraidli...@lsi.com; linux-s...@vger.kernel.org; linux- >> ker...@vger.kernel.org >> Subject: RE: [PATCH]

Re: [PATCH] e1000: remove unused variables

2014-11-29 Thread Ben Hutchings
On Wed, 2014-11-26 at 21:59 -0800, Hisashi T Fujinaka wrote: > I'm pretty sure those double reads are there for a reason, so most of > this I'm going to have to check on Monday. We have a long holiday > weekend here in the US. [...] If there were double register reads being replaced with single re

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 11:07 AM, Pali Rohár wrote: [ ... ] Original Dell DOS executable ignores all temperature sensors if type SMM function fails (if I decoded and understand that DOS assembler code correctly). So maybe we should do same... Pali, Makes me wonder - does the assembler code tell you wha

[PATCH] ACPI / video: update the condition to check if a device is in _DOD list

2014-11-29 Thread Aaron Lu
On 11/30/2014 01:34 AM, Brian Norris wrote: > Tested-by: Brian Norris Thanks for the test! Updated patch with changelog: >From 0b11bb529245ddceb69eb558477b9b4a81208f4b Mon Sep 17 00:00:00 2001 From: Aaron Lu Date: Sun, 30 Nov 2014 09:01:15 +0800 Subject: [PATCH] ACPI / video: update the conditi

Re: broken links on https://www.kernel.org/doc/

2014-11-29 Thread Rob Landley
On 11/29/14 16:27, Matt Parker wrote: > Howdy Rob, > > I was following the links in "Videos worth watching" and found that the > links for the videos on video.google.com are > broken, but I could find them on youtube. Yeah, I know. Updated links have been on http://land

Re: [PATCH] i8k: Fix temperature bug handling in i8k_get_temp()

2014-11-29 Thread Guenter Roeck
On Tue, Nov 18, 2014 at 03:56:54PM +0100, Pali Rohár wrote: > Static array prev[] was incorrectly initialized. It should be initialized to > some "invalid" temperature value (above I8K_MAX_TEMP). > > Next, function should store "invalid" value to prev[] (above I8K_MAX_TEMP), > not valid (= I8K_MAX

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 11:07 AM, Pali Rohár wrote: On Saturday 29 November 2014 19:58:28 Guenter Roeck wrote: On 11/29/2014 10:27 AM, Gabriele Mazzotta wrote: On Saturday 29 November 2014 18:18:18 Pali Rohár wrote: On Saturday 29 November 2014 18:07:19 Gabriele Mazzotta wrote: On Saturday 29 November

Re: [PATCH/RFC v8 03/14] Documentation: leds: Add description of v4l2-flash sub-device

2014-11-29 Thread Sakari Ailus
On Fri, Nov 28, 2014 at 10:17:55AM +0100, Jacek Anaszewski wrote: > This patch extends LED Flash class documention by > the description of interactions with v4l2-flash sub-device. > > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Purdie Acked-by: Sakar

[PATCH 3/3] fanotify: fix inconsistent behaviour regarding flag FAN_ONDIR

2014-11-29 Thread Lino Sanfilippo
Before flag FAN_ONDIR was implicitly set in a marks ignored mask. This led to some inconsistent behaviour: 1. It was not possible to remove the flag from the ignored mask, once it was set (implicitly) with a call like fanotify_mark(fd, FAN_MARK_ADD, FAN_OPEN, AT_FDCWD, "dir"); This was since the

[PATCH 2/3] fanotify: dont recalculate a marks mask if only the ignored mask changed

2014-11-29 Thread Lino Sanfilippo
If removing bits from a marks ignored mask, the concerning inodes/vfsmounts mask is not affected. So dont recalculate it. Signed-off-by: Lino Sanfilippo --- fs/notify/fanotify/fanotify_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/notify/fanotify/fanotify_us

[PATCH 1/3] fanotify: only destroy mark when both mask and ignored_mask are cleared

2014-11-29 Thread Lino Sanfilippo
In fanotify_mark_remove_from_mask() a mark is destroyed if only one of both bitmasks (mask or ignored_mask) of a mark is cleared. However the other mask may still be set and contain information that should not be lost. Thus only destroy a mark if both masks are cleared. Signed-off-by: Lino Sanfili

[PATCH v2 net] bpf: x86: fix epilogue generation for eBPF programs

2014-11-29 Thread Alexei Starovoitov
classic BPF has a restriction that last insn is always BPF_RET. eBPF doesn't have BPF_RET instruction and this restriction. It has BPF_EXIT insn which can appear anywhere in the program one or more times and it doesn't have to be last insn. Fix eBPF JIT to emit epilogue when first BPF_EXIT is seen

[PATCH] x86 / PM: Replace CONFIG_PM_RUNTIME in io_apic.c

2014-11-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM in x86/kernel/apic/io

[Update 2x][PATCH] USB / PM: Drop CONFIG_PM_RUNTIME from the USB core

2014-11-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so quite a few #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM (or even dropped in some cases). Replace CONFIG_PM_

Re: [Update][PATCH] USB / PM: Drop CONFIG_PM_RUNTIME from the USB core

2014-11-29 Thread Rafael J. Wysocki
On Saturday, November 29, 2014 12:34:36 PM Alan Stern wrote: > On Sat, 29 Nov 2014, Rafael J. Wysocki wrote: > > > > There are also one or two places in Documentation/usb that mention > > > CONFIG_PM_RUNTIME. > > > > I found this in Documentation/usb/power-management.txt: > > > > "Note: Dynamic

Re: linux-next: manual merge of the block tree with the ext4 tree

2014-11-29 Thread Jeremiah Mahler
Hi, On Sat, Nov 29, 2014 at 11:08:33AM +0100, Sabrina Dubroca wrote: > Hello, > > [adding Jeremiah Mahler to CC] > > 2014-11-27, 14:53:47 +1100, Stephen Rothwell wrote: > > Hi Jens, > > > > Today's linux-next merge of the block tree got a conflict in > > fs/fs-writeback.c between commit ef7fdf5

Re: [RFC] i2c: omap: TEST: do IP reset during probe.

2014-11-29 Thread Tony Lindgren
* Alexander Kochetkov [141128 15:27]: > Hello, Tony! > > I just want to know, is multimaster i2c feature is interesting for TI SOC, > so I could send another patches? Sure and thanks for looking into fixing things. > Or it's better to leave the thing without changes, as current single master

Re: [PATCH 0/2] fix some problems for cpufreq

2014-11-29 Thread Rafael J. Wysocki
On Saturday, November 29, 2014 09:40:02 AM Wang Weidong wrote: > On 2014/11/29 9:26, Rafael J. Wysocki wrote: > > On Friday, November 28, 2014 10:43:37 AM Wang Weidong wrote: > >> Hi Rafael and Viresh > >> > >> Sorry to trouble you again. As for: > >> "acpi-cpufreq: get the cur_freq from acpi_proce

Re: [PATCH 1/2] ASoC: rt5677: Add ACPI device probing

2014-11-29 Thread Rafael J. Wysocki
On Saturday, November 29, 2014 11:52:09 AM Mark Brown wrote: > > --9GYGtdBumnmR69ER > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sat, Nov 29, 2014 at 12:51:59AM +0100, Rafael J. Wysocki wrote: > > On Friday, Novemb

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 11:07 AM, Pali Rohár wrote: On Saturday 29 November 2014 19:58:28 Guenter Roeck wrote: On 11/29/2014 10:27 AM, Gabriele Mazzotta wrote: On Saturday 29 November 2014 18:18:18 Pali Rohár wrote: On Saturday 29 November 2014 18:07:19 Gabriele Mazzotta wrote: On Saturday 29 November

[RFC 2/2] i2c: omap: show that the reason of system lockup is an unhandled ISR event

2014-11-29 Thread Alexander Kochetkov
Commit 079d8af24b948261e1dae5d7df6b31b7bf205cb4 ("i2c: omap: bus: add a receiver flag") changed ISR loop to silently ignore unwanted XDR/XRDY or RDR/RRDY events without processing. That unwanted events will fire interrupt again and most likely they will be ignored again. As a result, system enters

[RFC 0/2] i2c: omap: new fixes for driver

2014-11-29 Thread Alexander Kochetkov
The first patch fix i2c-omap driver for omap2420, found by code review and later reported by Tony Lindgren here[1]. Candidate for stable? The second patch unhide the reson of system lockup. The patch is rebased on branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (

[RFC 1/2] i2c: omap: fix buffer overruns during RX/TX data processing

2014-11-29 Thread Alexander Kochetkov
commit dd74548ddece4b9d68e5528287a272fa552c81d0 ("i2c: omap: resize fifos before each message") dropped check for dev->buf_len. As result, data processing loop cause dev->buf overruns for devices with 16-bit data register (omap2420). In the dd74548ddece4b9d68 code, for each loop iteration if the f

[PATCH] sound: use enum names instead of magic numbers

2014-11-29 Thread Joe Perches
There's an enum defined for these magic numbers, might as well use it. Miscellanea: o Use ##__VA_ARGS__ Signed-off-by: Joe Perches --- include/sound/core.h | 28 +++- sound/core/misc.c| 6 +++--- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/inclu

Re: [tip:irq/irqdomain] irqdomain: Introduce helper function irq_domain_add_hierarchy()

2014-11-29 Thread Thomas Gleixner
On Sat, 29 Nov 2014, Borislav Petkov wrote: > So I'm seeing the lockdep splat below really early on an IVB laptop. > > Basically we're not supposed to do __GFP_FS allocations with IRQs off: > > 2737/* We're only interested __GFP_FS allocations for now */ > 2738

Re: frequent lockups in 3.18rc4

2014-11-29 Thread Dâniel Fraga
On Thu, 27 Nov 2014 17:56:37 -0500 Dave Jones wrote: > Agreed. > > Currently leaving 3.16 running. 21hrs so far. Dave, I think I reported this bug in this bug report: https://bugzilla.kernel.org/show_bug.cgi?id=85941 Just posting in case the call trace helps... In my

Re: [PATCH] Sound: drivers: virmidi: fixed code style issues

2014-11-29 Thread Takashi Iwai
At Fri, 28 Nov 2014 13:59:56 -0500, Kyle Chamberlin wrote: > > Fixed some minor code style issues and also removed some > assignments inside of if conditionals. > > Signed-off-by: Kyle Chamberlin Thanks, applied. But, it's better to keep your both from and sign-off addresses same at the next t

[PATCH] staging: ft1000 : replace __attribute ((__packed__) with __packed

2014-11-29 Thread Geoff Darst
Replace two instances of __attribute ((__packed__) with __packed macro to address the warning found by the checkpatch.pl tool. Signed-off-by: Geoff Darst --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

Re: [PATCH/RFC v8 11/14] DT: Add documentation for the mfd Maxim max77693

2014-11-29 Thread Pavel Machek
Hi! > diff --git a/Documentation/devicetree/bindings/mfd/max77693.txt > b/Documentation/devicetree/bindings/mfd/max77693.txt > index 01e9f30..50a8dad 100644 > --- a/Documentation/devicetree/bindings/mfd/max77693.txt > +++ b/Documentation/devicetree/bindings/mfd/max77693.txt > @@ -41,6 +41,62 @@ O

Re: Value Setting of hcd->self.controller->dma_mask in oxu210hp-hcd.c

2014-11-29 Thread Greg KH
On Sat, Nov 29, 2014 at 02:12:30PM -0500, nick wrote: > I get your point. On the other hand, I am trying to help but it seems > impossible with my ban to not do it this way. You were told what to do to get the ban removed, but you for some reason seem to ignore that request. So we will continue t

Re: [PATCH] media: v4l2-subdev.h: drop the guard CONFIG_VIDEO_V4L2_SUBDEV_API for v4l2_subdev_get_try_*()

2014-11-29 Thread Laurent Pinchart
Hi Prabhakar, On Saturday 29 November 2014 18:30:09 Prabhakar Lad wrote: > On Tue, Nov 18, 2014 at 6:07 PM, Sakari Ailus wrote: > > On Tue, Nov 18, 2014 at 10:39:24AM +0100, Hans Verkuil wrote: > >> On 11/17/14 11:41, Lad, Prabhakar wrote: > >> > this patch removes the guard CONFIG_VIDEO_V4L2_SUB

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Pali Rohár
On Saturday 29 November 2014 19:58:28 Guenter Roeck wrote: > On 11/29/2014 10:27 AM, Gabriele Mazzotta wrote: > > On Saturday 29 November 2014 18:18:18 Pali Rohár wrote: > >> On Saturday 29 November 2014 18:07:19 Gabriele Mazzotta wrote: > >>> On Saturday 29 November 2014 17:09:35 Pali Rohár wrote

Re: [PATCH/RFC v8 12/14] leds: Add driver for AAT1290 current regulator

2014-11-29 Thread Pavel Machek
Hi! > @@ -0,0 +1,472 @@ > +/* > + * LED Flash class driver for the AAT1290 > + * 1.5A Step-Up Current Regulator for Flash LEDs > + * > + * Copyright (C) 2014, Samsung Electronics Co., Ltd. > + * Author: Jacek Anaszewski > + * > + * This program is free software; you can redistribute it a

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 10:27 AM, Gabriele Mazzotta wrote: On Saturday 29 November 2014 18:18:18 Pali Rohár wrote: On Saturday 29 November 2014 18:07:19 Gabriele Mazzotta wrote: On Saturday 29 November 2014 17:09:35 Pali Rohár wrote: On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: This patch ad

Re: [PATCH] drivers:net:wireless: Add mutex locking for function, b43_op_beacon_set_time in main.c

2014-11-29 Thread Larry Finger
On 11/29/2014 12:09 PM, nick wrote: Sorry about that, next time I will be more careful. One other thing would be to change the initial part of the subject. Yes, the device is in drivers/net/wireless/, but it is much more common to not include those in patches that are sent to Linville. I woul

Re: [RFC PATCH 0/3] Generic TrustZone Driver in Linux Kernel

2014-11-29 Thread Greg KH
On Sat, Nov 29, 2014 at 01:18:53PM -0500, Jason Cooper wrote: > > And as GregKH mentioned, this definitely needs some cleanup before > expecting others to spend time reviewing. If this code is working for > your usecase, perhaps the staging tree might be a better place to > start. No, it needs l

[PATCH] drivers: kconfig: fix double include

2014-11-29 Thread Steffen Trumtrar
drivers/Kconfig sources drivers/soc/Kconfig twice. Remove the last include. Signed-off-by: Steffen Trumtrar --- drivers/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/Kconfig b/drivers/Kconfig index 694d5a70d6ce..2683e633c027 100644 --- a/drivers/Kconfig +++ b/drivers/Kconf

Re: [PATCH] media: v4l2-subdev.h: drop the guard CONFIG_VIDEO_V4L2_SUBDEV_API for v4l2_subdev_get_try_*()

2014-11-29 Thread Prabhakar Lad
Hi Laurent, On Tue, Nov 18, 2014 at 6:07 PM, Sakari Ailus wrote: > Hi Hans and Prabhakar, > > On Tue, Nov 18, 2014 at 10:39:24AM +0100, Hans Verkuil wrote: >> On 11/17/14 11:41, Lad, Prabhakar wrote: >> > this patch removes the guard CONFIG_VIDEO_V4L2_SUBDEV_API >> > for v4l2_subdev_get_try_*() f

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Gabriele Mazzotta
On Saturday 29 November 2014 18:18:18 Pali Rohár wrote: > On Saturday 29 November 2014 18:07:19 Gabriele Mazzotta wrote: > > On Saturday 29 November 2014 17:09:35 Pali Rohár wrote: > > > On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: > > > > This patch adds labels for temperature sensors i

Re: [PATCH v3] media: usb: uvc: use vb2_ops_wait_prepare/finish helper

2014-11-29 Thread Prabhakar Lad
Hi Laurent, On Sat, Nov 29, 2014 at 6:11 PM, Laurent Pinchart wrote: > Hi Prabhakar, > > On Friday 28 November 2014 17:06:52 Prabhakar Lad wrote: >> On Thu, Nov 27, 2014 at 9:32 PM, Laurent Pinchart wrote: >> > Hi Prabhakar, >> >> [Snip] >> >> >> + queue->queue.lock = &queue->mutex; >> > >> >

Re: [RFC PATCH 0/3] Generic TrustZone Driver in Linux Kernel

2014-11-29 Thread Jason Cooper
Javier, On Fri, Nov 28, 2014 at 04:03:33PM +0100, Javier González wrote: > Hi all, > > This set of patches is a first iteration to introduce a generic > TrustZone driver to the Linux Kernel. Since there is no place to add > drivers related to secure processors, a new subsystem for secure > hardwa

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 08:30 AM, Pali Rohár wrote: On Saturday 29 November 2014 17:24:08 Guenter Roeck wrote: On 11/29/2014 08:04 AM, Pali Rohár wrote: +static bool __init i8k_check_temp(int sensor) +{ + int err; + + /* +* Check if temperature sensor type is valid. +* +

Re: [PATCH v3] media: usb: uvc: use vb2_ops_wait_prepare/finish helper

2014-11-29 Thread Laurent Pinchart
Hi Prabhakar, On Friday 28 November 2014 17:06:52 Prabhakar Lad wrote: > On Thu, Nov 27, 2014 at 9:32 PM, Laurent Pinchart wrote: > > Hi Prabhakar, > > [Snip] > > >> + queue->queue.lock = &queue->mutex; > > > > I'm a bit concerned that this would introduce future breakages. Setting > > the

Re: [RFC v2 1/2] compiler: use compiler to detect integer overflows

2014-11-29 Thread Linus Torvalds
On Sat, Nov 29, 2014 at 7:07 AM, Sasha Levin wrote: > > Since we can't just change those to unsigned Sure we can. Just cast them. A signed start/len is bogus crap, it's a random wrong type. If you want to, add a "if (len < 0) return -EINVAL;" before the cast, but treating negative numbers as big

Re: Out-of-bounds write in driver_override_show

2014-11-29 Thread Greg Kroah-Hartman
On Sat, Nov 29, 2014 at 01:38:10PM +0400, Dmitry Vyukov wrote: > Hello, > > I am working on Kernel AddressSanitizer, a fast memory error detector > for kernel: > https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerForKernel > > Here is an error report that I got while running trinity

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 09:51 AM, Greg Kroah-Hartman wrote: On Sat, Nov 29, 2014 at 06:49:43PM +0100, Pali Rohár wrote: On Saturday 29 November 2014 18:43:15 Greg Kroah-Hartman wrote: On Sat, Nov 29, 2014 at 05:04:07PM +0100, Pali Rohár wrote: This patch adds labels for temperature sensors if SMM functi

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Pali Rohár
On Saturday 29 November 2014 18:51:52 Greg Kroah-Hartman wrote: > On Sat, Nov 29, 2014 at 06:49:43PM +0100, Pali Rohár wrote: > > On Saturday 29 November 2014 18:43:15 Greg Kroah-Hartman wrote: > > > On Sat, Nov 29, 2014 at 05:04:07PM +0100, Pali Rohár wrote: > > > > This patch adds labels for tem

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 09:43 AM, Greg Kroah-Hartman wrote: On Sat, Nov 29, 2014 at 05:04:07PM +0100, Pali Rohár wrote: This patch adds labels for temperature sensors if SMM function with EAX register 0x11a3 reports it. These informations was taken from DOS binary NBSVC.MDM. Signed-off-by: Pali Rohár --

Re: Why not make kdbus use CUSE?

2014-11-29 Thread Greg Kroah-Hartman
On Sat, Nov 29, 2014 at 06:34:16AM +, Richard Yao wrote: > I had the opportunity at LinuxCon Europe to chat with Greg and some other > kdbus > developers. A few things stood out from our conversation that I thought I > would > bring to the list for discussion. Any reason why you didn't respo

[PATCH 1/1] net-PA Semi: Deletion of unnecessary checks before the function call "pci_dev_put"

2014-11-29 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 29 Nov 2014 18:55:40 +0100 The pci_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

Re: [PATCH] Drivers:input:mousedev.c: Fixed trailing statement on the next line

2014-11-29 Thread Joe Perches
On Sat, 2014-11-29 at 21:50 +0530, Athira S wrote: > Fixed checkpatch error: > trailing statements should be on next line > > signed-off-by: Athira S > --- > drivers/input/mousedev.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/input/mousedev.c b/drivers/

Re: [PATCH] ext4: fix suboptimal seek_{data,hole} extents traversial

2014-11-29 Thread Theodore Ts'o
On Fri, Nov 28, 2014 at 06:02:02PM +0300, Dmitry Monakhov wrote: > FYI: inline_data feature is fatally broken Thanks for finding the bugs! > 2) ext4_inline_data_fiemap(0 ignores start and len arguments from > ext4_filemap() >which obviously result in endless loop for anyone who want to use >

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Greg Kroah-Hartman
On Sat, Nov 29, 2014 at 06:49:43PM +0100, Pali Rohár wrote: > On Saturday 29 November 2014 18:43:15 Greg Kroah-Hartman wrote: > > On Sat, Nov 29, 2014 at 05:04:07PM +0100, Pali Rohár wrote: > > > This patch adds labels for temperature sensors if SMM > > > function with EAX register 0x11a3 reports i

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Pali Rohár
On Saturday 29 November 2014 18:43:15 Greg Kroah-Hartman wrote: > On Sat, Nov 29, 2014 at 05:04:07PM +0100, Pali Rohár wrote: > > This patch adds labels for temperature sensors if SMM > > function with EAX register 0x11a3 reports it. These > > informations was taken from DOS binary NBSVC.MDM. > >

Re: [PATCH] Drivers:staging:clocking-wizard: Added a newline

2014-11-29 Thread Greg KH
On Sat, Nov 29, 2014 at 06:03:06PM +0530, Athira S wrote: > Fixed checkpatch warning: > Missing a newline after declarations > > Signed-off-by: Athira S Is "Athira S" what you use to sign legal documents? If not, please fix and resend. -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Greg Kroah-Hartman
On Sat, Nov 29, 2014 at 05:04:07PM +0100, Pali Rohár wrote: > This patch adds labels for temperature sensors if SMM function with EAX > register > 0x11a3 reports it. These informations was taken from DOS binary NBSVC.MDM. > > Signed-off-by: Pali Rohár > --- > drivers/char/i8k.c | 110 > ++

Re: [PATCH v8 2/4] ARM: mediatek: Add sysirq interrupt polarity support

2014-11-29 Thread Beniamino Galvani
On Tue, Nov 25, 2014 at 04:04:20PM +0800, Yingjoe Chen wrote: > Mediatek SoCs have interrupt polarity support in sysirq which > allows to invert polarity for given interrupt. Add this support > using hierarchy irq domain. > > [...] > > +static int __init mtk_sysirq_of_init(struct device_node *node

[PATCH 1/1] SPI-txx9: Deletion of an unnecessary check before the function call "clk_disable"

2014-11-29 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 29 Nov 2014 18:34:20 +0100 The clk_disable() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

Re: linux-next: manual merge of the block tree with the ext4 tree

2014-11-29 Thread Theodore Ts'o
Note the relevant changes from the ext4 tree were dropped from the dev branch, so this shouldn't be an issue moving forward. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel

Re: [PATCH] tty: serial: serial-omap: depend on !8250_omap

2014-11-29 Thread Tony Lindgren
* Sebastian Andrzej Siewior [141129 01:50]: > * Sebastian Andrzej Siewior | 2014-11-26 23:01:46 [+0100]: > > >Technically speaking this is not required. If both are enabled then the > >Maikefile order says that 8250 one wins, the second is never probed. > > > >If we choose to enable 8250_omap via

Re: [PATCH v6 02/46] virtio: use u32, not bitmap for features

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 01:44:57PM +0100, Cornelia Huck wrote: > On Thu, 27 Nov 2014 22:07:41 +0200 > "Michael S. Tsirkin" wrote: > > > It seemed like a good idea to use bitmap for features > > in struct virtio_device, but it's actually a pain, > > and seems to become even more painful when we ge

Re: [PATCH] ACPI / video: check _DOD list when creating backlight device

2014-11-29 Thread Brian Norris
On Sat, Nov 29, 2014 at 09:01:47PM +0800, Aaron Lu wrote: > On 11/29/2014 01:18 AM, Brian Norris wrote: > > On Fri, Nov 28, 2014 at 07:55:00PM +0800, Aaron Lu wrote: > >> On 11/28/2014 05:59 PM, Brian Norris wrote: > >>> Do you need any additional info to handle the regression, or should we > >>> j

Re: [Update][PATCH] USB / PM: Drop CONFIG_PM_RUNTIME from the USB core

2014-11-29 Thread Alan Stern
On Sat, 29 Nov 2014, Rafael J. Wysocki wrote: > > There are also one or two places in Documentation/usb that mention > > CONFIG_PM_RUNTIME. > > I found this in Documentation/usb/power-management.txt: > > "Note: Dynamic PM support for USB is present only if the kernel was > built with CONFIG_US

Re: [PATCH v6 01/46] virtio: add low-level APIs for feature bits

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 01:10:57PM +0100, David Hildenbrand wrote: > > Add low level APIs to test/set/clear feature bits. > > For use by transports, to make it easier to > > write code independent of feature bit array format. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > include/linux/vi

Re: [PATCH v6 20/46] KVM: s390: enable virtio-ccw revision 1

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 11:09:10AM +0100, Cornelia Huck wrote: > On Thu, 27 Nov 2014 22:09:30 +0200 > "Michael S. Tsirkin" wrote: > > > From: Cornelia Huck > > > > Now that virtio-ccw has everything needed to support virtio 1.0 in > > place, try to enable it if the host supports it. > > > > MS

Re: [PATCH v6 01/46] virtio: add low-level APIs for feature bits

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 11:02:20AM +0100, Cornelia Huck wrote: > On Thu, 27 Nov 2014 22:07:36 +0200 > "Michael S. Tsirkin" wrote: > > > Add low level APIs to test/set/clear feature bits. > > For use by transports, to make it easier to > > write code independent of feature bit array format. > > >

Re: [PATCH v6 34/46] virtio_net: disable mac write for virtio 1.0

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 08:48:24AM +0008, Jason Wang wrote: > > > On Fri, Nov 28, 2014 at 4:10 AM, Michael S. Tsirkin wrote: > >The spec states that mac in config space is only driver-writable in the > >legacy case. Fence writing it in virtnet_set_mac_address() in the > >virtio 1.0 case. > > >

[PATCH v2] userns: Disallow setgroups unless the gid_map writer is privileged

2014-11-29 Thread Andy Lutomirski
Classic unix permission checks have an interesting feature. The group permissions for a file can be set to less than the other permissions on a file. Occasionally this is used deliberately to give a certain group of users fewer permissions than the default. User namespaces break this usage. Gro

Re: [PATCH v6 38/46] tun: drop most type defines

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 08:17:48AM +0008, Jason Wang wrote: > > > On Fri, Nov 28, 2014 at 4:11 AM, Michael S. Tsirkin wrote: > >It's just as easy to use IFF_ flags directly, > >there's no point in adding our own defines. > > > >Signed-off-by: Michael S. Tsirkin > >--- > > drivers/net/tun.c | 62

Disable input device

2014-11-29 Thread Pali Rohár
Hello, there is request to introduce some option (via sysfs) to disable one input device. Originally it was for tsc2005 touchscreen found on Nokia N900 cellphone. Use case is to completely disable touchscreen when phone is in pocket or when screen is locked via slide switch (to prevent random

Re: [PATCH v6 37/46] tun: move internal flag defines out of uapi

2014-11-29 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 08:15:32AM +0008, Jason Wang wrote: > > > On Fri, Nov 28, 2014 at 4:10 AM, Michael S. Tsirkin wrote: > >TUN_ flags are internal and never exposed > >to userspace. Any application using it is almost > >certainly buggy. > > > >Move them out to tun.c, we'll remove them in fo

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Pali Rohár
On Saturday 29 November 2014 18:07:19 Gabriele Mazzotta wrote: > On Saturday 29 November 2014 17:09:35 Pali Rohár wrote: > > On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: > > > This patch adds labels for temperature sensors if SMM > > > function with EAX register 0x11a3 reports it. These

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Gabriele Mazzotta
On Saturday 29 November 2014 17:09:35 Pali Rohár wrote: > On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: > > This patch adds labels for temperature sensors if SMM function > > with EAX register 0x11a3 reports it. These informations was > > taken from DOS binary NBSVC.MDM. > > > > Signed-o

[PATCH 1/1] fs-DLM: Deletion of unnecessary checks before the function call "kfree"

2014-11-29 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 29 Nov 2014 17:55:39 +0100 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/dlm/lock

Re: [GIT PULL] namespace updates for v3.17-rc1

2014-11-29 Thread Richard Weinberger
Am 26.11.2014 um 00:15 schrieb Richard Weinberger: > Eric, > > On Thu, Aug 21, 2014 at 4:09 PM, Eric W. Biederman > wrote: >> Richard Weinberger writes: >> >>> Am 21.08.2014 15:12, schrieb Christoph Hellwig: On Wed, Aug 20, 2014 at 09:53:49PM -0700, Eric W. Biederman wrote: > Richard We

[PATCH 1/1] XFS: Deletion of unnecessary checks before two function calls

2014-11-29 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 29 Nov 2014 17:40:22 +0100 The functions xfs_blkdev_put() and xfs_qm_dqrele() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Ma

Re: [PATCH/RFC v8 04/14] v4l2-async: change custom.match callback argument type

2014-11-29 Thread Laurent Pinchart
Hi Jacek, Thank you for the patch. On Friday 28 November 2014 10:17:56 Jacek Anaszewski wrote: > It is useful to have an access to the async sub-device > being matched, not only to the related struct device. > Change match callback argument from struct device > to struct v4l2_subdev. It will allo

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Steven Honeyman
On 29 November 2014 at 16:09, Pali Rohár wrote: > On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: >> This patch adds labels for temperature sensors if SMM function >> with EAX register 0x11a3 reports it. These informations was >> taken from DOS binary NBSVC.MDM. >> >> Signed-off-by: Pali R

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Pali Rohár
On Saturday 29 November 2014 17:24:56 Guenter Roeck wrote: > On 11/29/2014 08:09 AM, Pali Rohár wrote: > > On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: > >> This patch adds labels for temperature sensors if SMM > >> function with EAX register 0x11a3 reports it. These > >> informations wa

iwlwifi intel 6300 slow

2014-11-29 Thread Jurriaan
I had a Lenovo W700 laptop with Intel 5300 wireless card, running Debian Testing. Speed to and from my NAS via a Western Digital N900 router was about 16 megabyte/s - limited by the NAS. After updating to a W701 with an Intel 6300 wireless card, speed is down to 1-2 megabyte/s. Replacing the card

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Pali Rohár
On Saturday 29 November 2014 17:24:08 Guenter Roeck wrote: > On 11/29/2014 08:04 AM, Pali Rohár wrote: > > +static bool __init i8k_check_temp(int sensor) > > +{ > > + int err; > > + > > + /* > > +* Check if temperature sensor type is valid. > > +* > > +* If it is valid then sensor s

Re: [RFC PATCH] userns: Disallow setgroups unless the gid_map writer is privileged

2014-11-29 Thread Andy Lutomirski
On Sat, Nov 29, 2014 at 8:16 AM, Eric W. Biederman wrote: > Andy Lutomirski writes: > > The patch is buggy. > > Nacked-by: "Eric W. Biederman" > >> --- >> >> Eric, this is an alternative to your patch. I think it will cause >> less breakage, and it will keep unprivileged user namespaces >> more

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 08:09 AM, Pali Rohár wrote: On Saturday 29 November 2014 17:04:07 Pali Rohár wrote: This patch adds labels for temperature sensors if SMM function with EAX register 0x11a3 reports it. These informations was taken from DOS binary NBSVC.MDM. Signed-off-by: Pali Rohár --- drivers/

Re: [PATCH] i8k: Add support for temperature sensor labels

2014-11-29 Thread Guenter Roeck
On 11/29/2014 08:04 AM, Pali Rohár wrote: This patch adds labels for temperature sensors if SMM function with EAX register 0x11a3 reports it. These informations was taken from DOS binary NBSVC.MDM. Signed-off-by: Pali Rohár --- drivers/char/i8k.c | 110 +++

Re: [PATCH 4/7] KVM: arm64: guest debug, add SW break point support

2014-11-29 Thread Christoffer Dall
On Tue, Nov 25, 2014 at 04:10:02PM +, Alex Bennée wrote: > This adds support for SW breakpoints inserted by userspace. > > First we need to trap all BKPT exceptions in the hypervisor (ELS). This > in controlled through the MDCR_EL2 register. I've added a new field to this is ? > the vcpu str

  1   2   >