Re: [Nouveau] nouveau lockdep splat

2013-03-20 Thread Borislav Petkov
On Wed, Mar 20, 2013 at 07:23:19PM +0400, Lijo Antony wrote: > # bad: [fffddfd6c8e0c10c42c6e2cc54ba880fcc36ebbb] Merge branch > 'drm-next' of git://people.freedesktop.org/~airlied/linux > git bisect bad fffddfd6c8e0c10c42c6e2cc54ba880fcc36ebbb This is a merge commit which means something went wron

Re: [PATCH] Staging: comedi: serial2002: fixed consistent spacing issue

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 03:47:53PM +0300, Dan Carpenter wrote: > The original code here needs to broken up into functions so it isn't > squashed up against the 80 character limit. I'd say what needs to be done to the original code... Observation 1: if (foo) { A /* two lines */ } else {

Re: [PATCH 09/10] workqueue: implement NUMA affinity for unbound workqueues

2013-03-20 Thread Tejun Heo
On Wed, Mar 20, 2013 at 8:26 AM, Lai Jiangshan wrote: >> for_eahc_node(node) >> if (pwq_tbl[node] != dfl_pwq) >> kfree(pwq_tbl[node]); >> kfree(dfl_pwq); > > I also missed. > we still need to put_unbound_pool() before free(pwq) Yeap, we do.

[PATCH 0/2] sysfs: fix use after free in sysfs_readdir()

2013-03-20 Thread Ming Lei
Hi, These two patches fix two bugs inside sysfs_readdir(), and both the two bugs may cause use after free problem, which is reported by Dave on trinity fuzz test on syscall. Thanks, -- Ming Lei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

Re: [PATCH 0/3] Patches to enable chroot for all users

2013-03-20 Thread Casey Schaufler
On 3/20/2013 6:09 AM, tal.tchwe...@gmail.com wrote: > From: Tal Tchwella > > I want to suggest adding chroot capability to all users. It is much too easy to create an environment for tricking privileged programs using chroot to allow unprivileged processes to use chroot. /etc/shadow is your trivi

Re: [PATCH v2 4/4] ipc: sem: do not hold ipc lock more than necessary

2013-03-20 Thread Rik van Riel
On 03/20/2013 10:27 AM, Rik van Riel wrote: On 03/05/2013 04:36 AM, Davidlohr Bueso wrote: @@ -1476,8 +1539,8 @@ SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops, queue.sleeper = current; sleep_again: -current->state = TASK_INTERRUPTIBLE; sem_unlock(sma);

Re: linux-next: build failure after merge of the final tree (gpio tree relatred)

2013-03-20 Thread Ian Lartey
On 20/03/13 15:25, Stephen Rothwell wrote: Hi Grant, On Wed, 6 Mar 2013 09:10:42 +0800 Grant Likely wrote: On Wed, Mar 6, 2013 at 8:44 AM, Stephen Rothwell wrote: After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/gpio/gpio-palmas.c: I

Re: AMD A6 3650 getting Kernel Panics in Ubuntu 12.10

2013-03-20 Thread Borislav Petkov
On Wed, Mar 20, 2013 at 11:10:58AM -0400, Rob Edwards wrote: > I posted a question at > http://www.dslreports.com/forum/r28112391-AMD-A6-3650-getting-Kernel-Panics- > in-Ubuntu-12.10-  looking for help with my Ubuntu machine and some strange > kernel panics I have been getting and was directed here

Re: [PATCH 01/10] workqueue: add wq_numa_tbl_len and wq_numa_possible_cpumask[]

2013-03-20 Thread Lai Jiangshan
On Wed, Mar 20, 2013 at 8:00 AM, Tejun Heo wrote: > Unbound workqueues are going to be NUMA-affine. Add wq_numa_tbl_len > and wq_numa_possible_cpumask[] in preparation. The former is the > highest NUMA node ID + 1 and the latter is masks of possibles CPUs for > each NUMA node. > > This patch onl

Re: [PATCH] drivers: video: omap2: dss: Use PTR_RET function

2013-03-20 Thread Jon Hunter
On 03/20/2013 06:56 AM, Tomi Valkeinen wrote: > On 2013-03-19 10:03, Alexandru Gheorghiu wrote: >> Use PTR_RET function instead of IS_ERR and PTR_ERR. >> Patch found using coccinelle. >> >> Signed-off-by: Alexandru Gheorghiu >> --- >> drivers/video/omap2/dss/core.c |5 + >> 1 file change

[PATCH v4 17/21] ARM: OMAP3: overo: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulator and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-overo.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2

[PATCH v4 21/21] ARM: dts: omap3-beagle: Add USB Host support

2013-03-20 Thread Roger Quadros
Provide RESET and Power regulators for the USB PHY, the USB Host port mode and the PHY device. Also provide pin multiplexer information for USB host pins. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3-beagle.dts | 71 1 files

[PATCH v4 20/21] ARM: dts: OMAP3: Add HS USB Host IP nodes

2013-03-20 Thread Roger Quadros
Adds device nodes for HS USB Host module, TLL module, OHCI and EHCI controllers. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3.dtsi | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap3.dtsi

[PATCH v4 19/21] ARM: dts: OMAP4: Add HS USB Host IP nodes

2013-03-20 Thread Roger Quadros
Adds device nodes for HS USB Host module, TLL module, OHCI and EHCI controllers. CC: Benoît Cousson Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap4.dtsi | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b

[PATCH v4 02/21] ARM: OMAP2+: omap-usb-host: Add usbhs_init_phys()

2013-03-20 Thread Roger Quadros
This helper allows board support code to add the PHY's VCC and RESET regulators which are GPIO controlled as well as the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/usb-host.c | 160 +++- arch/arm/mach-omap2/usb.h |9 ++ 2 fi

[PATCH v4 06/21] ARM: OMAP3: 3630SDP: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulators and the NOP PHY devices. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-3630sdp.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm

[PATCH v4 18/21] ARM: OMAP: zoom: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulator and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-zoom.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/bo

[PATCH v4 11/21] ARM: OMAP: devkit8000: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Remove deprecated USBHS platform data. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-devkit8000.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 53056c3..42fbf1e 1

[PATCH v4 14/21] ARM: OMAP3: omap3pandora: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulator and NOP PHY device. VAUX2 supplies the PHY's VCC. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3pandora.c | 21 - 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap

[PATCH v4 15/21] ARM: OMAP3: omap3stalker: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulator and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3stalker.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch

[PATCH v4 16/21] ARM: OMAP3: omap3touchbook: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulator and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3touchbook.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/

Re: [PATCH 01/10] workqueue: add wq_numa_tbl_len and wq_numa_possible_cpumask[]

2013-03-20 Thread Tejun Heo
On Wed, Mar 20, 2013 at 11:43:30PM +0800, Lai Jiangshan wrote: > > + for_each_node(node) > > + > > BUG_ON(!alloc_cpumask_var_node(&wq_numa_possible_cpumask[node], > > + GFP_KERNEL, node)); > > + for_each_possible_cpu(cpu) { > >

[PATCH v4 12/21] ARM: OMAP3: igep0020: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulators and the NOP PHY devices. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-igep0020.c | 32 ++-- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-omap2/board-igep0020

[PATCH v4 13/21] ARM: OMAP3: omap3evm: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulator and the NOP PHY device. VAUX2 supplies the PHY's VCC. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3evm.c | 25 + 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach

[PATCH v4 09/21] ARM: OMAP3: cm-t35: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulators and the NOP PHY devices. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-cm-t35.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/ma

[PATCH v4 10/21] ARM: OMAP3: cm-t3517: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulators and the NOP PHY devices. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-cm-t3517.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/ar

[PATCH v4 01/21] usb: phy: nop: Add some parameters to platform data

2013-03-20 Thread Roger Quadros
Add clk_rate parameter to platform data. If supplied, the NOP phy driver will program the clock to that rate during probe. Also add 2 flags, needs_vcc and needs_reset. If the flag is set and the regulator couldn't be found then the driver will bail out with -EPROBE_DEFER. Signed-off-by: Roger Qua

[PATCH v4 03/21] ARM: OMAP2+: omap4panda: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's VCC and RESET regulators and the NOP PHY device. Get rid of managing the PHY clock as it will be done by the PHY driver. For that to work we create a clock alias that links the PHY clock name to the PHY device name. Signed-off-by: Roger Quadros --- ar

[PATCH v4 00/21] ARM: OMAP2+: Adapt to ehci-omap changes for 3.10

2013-03-20 Thread Roger Quadros
Hi Tony, These patches provide the SoC side code required to support the changes in the OMAP USB Host drivers done in [1], [2] & [3]. Device tree support is added for Beagleboard only. I've removed Panda device tree support till we have resolved the AUXCLK issue. NOTE: The first patch needs to b

[PATCH v4 04/21] ARM: OMAP3: Beagle: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's VCC and RESET regulators and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-omap3beagle.c | 32 +- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap2/board-

[PATCH v4 05/21] ARM: OMAP3: 3430SDP: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulators and the NOP PHY devices. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-3430sdp.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm

[PATCH v4 08/21] ARM: OMAP: AM3517evm: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's RESET regulators and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-am3517evm.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/

[PATCH v4 07/21] ARM: OMAP: AM3517crane: Adapt to ehci-omap changes

2013-03-20 Thread Roger Quadros
Use usbhs_init_phys() to register the PHY's VCC and RESET regulators and the NOP PHY device. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/board-am3517crane.c | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-omap2/board-am3517

Re: [PATCH 08/10] workqueue: break init_and_link_pwq() into two functions and introduce alloc_unbound_pwq()

2013-03-20 Thread Lai Jiangshan
On Wed, Mar 20, 2013 at 8:00 AM, Tejun Heo wrote: > Break init_and_link_pwq() into init_pwq() and link_pwq() and move > unbound-workqueue specific handling into apply_workqueue_attrs(). > Also, factor out unbound pool and pool_workqueue allocation into > alloc_unbound_pwq(). > > This reorganizatio

[PATCH] staging/iio: iio_hwmon: Use device tree node name for hwmon name attribute

2013-03-20 Thread Guenter Roeck
So far, all instances of iio_hwmon set their hwmon name attribute to "iio_hwmon", which is not very descriptive. Set it to the device tree node name if available, and only revert to iio_hwmon otherwise. Signed-off-by: Guenter Roeck --- Jonathan, can we move this driver out of staging ? I would l

Re: [PATCH v5] x86, kdump: Set crashkernel_low automatically

2013-03-20 Thread Yinghai Lu
On Wed, Mar 20, 2013 at 6:08 AM, Vivek Goyal wrote: > Have a general question about crashkernel_low. Why does it need to > show up as "Crash kernel low" in /proc/iomem. Will it not be better > that all memory reserved for crashkernel (whether high or low), shows > as "Crash Kernel" and let kexec-

Re: [PATCH v4 01/21] usb: phy: nop: Add some parameters to platform data

2013-03-20 Thread Felipe Balbi
On Wed, Mar 20, 2013 at 05:44:40PM +0200, Roger Quadros wrote: > Add clk_rate parameter to platform data. If supplied, the > NOP phy driver will program the clock to that rate during probe. > > Also add 2 flags, needs_vcc and needs_reset. > If the flag is set and the regulator couldn't be found >

Re: linux-next: build failure after merge of the final tree (gpio tree relatred)

2013-03-20 Thread Grant Likely
On Wed, Mar 20, 2013 at 3:25 PM, Stephen Rothwell wrote: > Hi Grant, > > On Wed, 6 Mar 2013 09:10:42 +0800 Grant Likely > wrote: >> >> On Wed, Mar 6, 2013 at 8:44 AM, Stephen Rothwell >> wrote: >> > Caused by commit 82d4d6637fdf ("gpio/palmas: add in GPIO support for >> > palmas charger"). I

[PATCH] rtmutex-tester: set correct permissions on sysfs files

2013-03-20 Thread Sasha Levin
sysfs started complaining about cases where permissions don't match what's in the sysfs ops structure (such as allowing read without a "show" callback). Signed-off-by: Sasha Levin --- kernel/rtmutex-tester.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/rtmutex-

Re: [PATCH 0/5] usb: musb/otg: cleanup and fixes

2013-03-20 Thread Felipe Balbi
On Wed, Mar 20, 2013 at 08:52:36PM +0530, kishon wrote: > Felipe, > > On Wednesday 20 March 2013 06:42 PM, Felipe Balbi wrote: > >On Wed, Mar 13, 2013 at 02:17:05PM +0530, Kishon Vijay Abraham I wrote: > >>This series has some misc cleanup and fixes. The fix solves the cold > >>plug issue in omap3

Re: [PATCH 4/4] binfmt_elf: Elf executable signature verification

2013-03-20 Thread Vivek Goyal
On Tue, Mar 19, 2013 at 10:39:01AM -0400, Mimi Zohar wrote: [..] > > Lastly, adding 'VM_LOCKED' here seems to change existing, expected > behavior. According to the mlock(2) man pages, "Memory locks are not > inherited by a child created via fork(2) and are automatically removed > (unlocked) dur

Re: [PATCH v5] x86, kdump: Set crashkernel_low automatically

2013-03-20 Thread Vivek Goyal
On Wed, Mar 20, 2013 at 08:53:29AM -0700, Yinghai Lu wrote: > On Wed, Mar 20, 2013 at 6:08 AM, Vivek Goyal wrote: > > > Have a general question about crashkernel_low. Why does it need to > > show up as "Crash kernel low" in /proc/iomem. Will it not be better > > that all memory reserved for crash

Re: [PATCH] Staging: comedi: serial2002: fixed consistent spacing issue

2013-03-20 Thread Joe Perches
On Wed, 2013-03-20 at 15:29 +, Al Viro wrote: > On Wed, Mar 20, 2013 at 03:47:53PM +0300, Dan Carpenter wrote: > > > The original code here needs to broken up into functions so it isn't > > squashed up against the 80 character limit. > > I'd say what needs to be done to the original code...

Re: [PATCH 08/10] workqueue: break init_and_link_pwq() into two functions and introduce alloc_unbound_pwq()

2013-03-20 Thread Tejun Heo
On Wed, Mar 20, 2013 at 11:52:03PM +0800, Lai Jiangshan wrote: > > +static struct pool_workqueue *alloc_unbound_pwq(struct workqueue_struct > > *wq, > > + const struct workqueue_attrs *attrs) > > +{ > > + struct worker_pool *pool; > > + struct pool

RE: [PATCH] Staging: comedi: serial2002: fixed consistent spacing issue

2013-03-20 Thread H Hartley Sweeten
On Wednesday, March 20, 2013 9:04 AM, Joe Perches wrote: > On Wed, 2013-03-20 at 15:29 +, Al Viro wrote: >> On Wed, Mar 20, 2013 at 03:47:53PM +0300, Dan Carpenter wrote: >> >>> The original code here needs to broken up into functions so it isn't >>> squashed up against the 80 character limit.

Re: [PATCH 2/2] regulator: palmas: add input supply names

2013-03-20 Thread Stephen Warren
On 03/20/2013 06:54 AM, Laxman Dewangan wrote: > On Wednesday 20 March 2013 06:01 PM, Mark Brown wrote: >> * PGP Signed by an unknown key >> >> On Mon, Mar 18, 2013 at 02:59:48PM +0530, Laxman Dewangan wrote: >> >> There's something odd about several recent patch serieses you've posted, >> they end

Re: [BUG] staging: android: ashmem: Deadlock during ashmem_mmap and ashmem_read

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 09:08:03PM +0530, Shankar Brahadeeswaran wrote: > Hi Greg, Dan, > > Few days back I posted a patch to fix a dead lock issue in the ashmem > driver that got merged in staging-next branch > https://lkml.org/lkml/2013/2/20/429 > > I'm seeing that there exists another path in

Re: [PATCH] intel-pstate: Use #defines instead of hard-coded values.

2013-03-20 Thread Dirk Brandewie
On 03/20/2013 07:21 AM, Konrad Rzeszutek Wilk wrote: They are defined in coreboot (MSR_PLATFORM) and the other one is already defined in msr-index.h. Lets use those. CC: rafael.j.wyso...@intel.com CC: dirk.j.brande...@intel.com Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Dirk Brandewie

Re: [PATCH v4 01/21] usb: phy: nop: Add some parameters to platform data

2013-03-20 Thread Tony Lindgren
* Felipe Balbi [130320 09:00]: > On Wed, Mar 20, 2013 at 05:44:40PM +0200, Roger Quadros wrote: > > Add clk_rate parameter to platform data. If supplied, the > > NOP phy driver will program the clock to that rate during probe. > > > > Also add 2 flags, needs_vcc and needs_reset. > > If the flag i

Re: [PATCH] BUG: pinmux: forbid mux_usecount to be set at UINT_MAX

2013-03-20 Thread Stephen Warren
On 03/20/2013 05:31 AM, Richard Genoud wrote: > If pin_free is called on a pin already freed, mux_usecount is set to > UINT_MAX which is really a bad idea. > This will silently ignore a double call to pin_free Shouldn't we WARN_ON(this case)? > diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinc

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-20 Thread Benjamin Herrenschmidt
On Wed, 2013-03-20 at 14:51 +, Grant Likely wrote: > The same data is now available in sysfs, so we can remove the code > that exports it in /proc and replace it with a symlink to the sysfs > version. > > Tested on versatile qemu model and mpc5200 eval board. More testing > would be appreciate

Re: Kernel panic on stable kernel 3.8.2 when closing bluetooth dun connection

2013-03-20 Thread Greg KH
On Wed, Mar 20, 2013 at 11:18:38AM +0100, Sergio Callegari wrote: > Hi, > > This is just a short note to let you know that 3.8.2 panics on > closing a bluetooth dun connection. Have you notified the linux bluetooth developers about this? Is this new in 3.8.2 and 3.8.1 or 3.8 works fine? thanks,

Re: [PATCH] dynticks: avoid flow_cache_flush() interrupting every core

2013-03-20 Thread David Miller
From: Chris Metcalf Date: Tue, 19 Mar 2013 17:35:58 -0400 > Previously, if you did an "ifconfig down" or similar on one core, and > the kernel had CONFIG_XFRM enabled, every core would be interrupted to > check its percpu flow list for items that could be garbage collected. > > With this change,

[PATCH] cpufreq/intel_pstate: Add function to check that all MSR's are valid

2013-03-20 Thread dirk . brandewie
From: Dirk Brandewie Some VMs seem to try to implement some MSRs but not all the registers the driver needs. Check to make sure all the MSR that we need are available. If any of the required MSRs are not available refuse to load. Signed-off-by: Dirk Brandewie --- drivers/cpufreq/intel_pstate.

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-03-20 Thread Michal Hocko
On Sun 17-03-13 13:04:07, Mel Gorman wrote: [...] > diff --git a/mm/vmscan.c b/mm/vmscan.c > index 88c5fed..4835a7a 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -2593,6 +2593,32 @@ static bool prepare_kswapd_sleep(pg_data_t *pgdat, int > order, long remaining, > } > > /* > + * kswapd sh

Re: [PATCH v4 01/21] usb: phy: nop: Add some parameters to platform data

2013-03-20 Thread Felipe Balbi
On Wed, Mar 20, 2013 at 09:13:24AM -0700, Tony Lindgren wrote: > * Felipe Balbi [130320 09:00]: > > On Wed, Mar 20, 2013 at 05:44:40PM +0200, Roger Quadros wrote: > > > Add clk_rate parameter to platform data. If supplied, the > > > NOP phy driver will program the clock to that rate during probe.

Re: [PATCH v5] x86, kdump: Set crashkernel_low automatically

2013-03-20 Thread Yinghai Lu
On Wed, Mar 20, 2013 at 9:03 AM, Vivek Goyal wrote: > On Wed, Mar 20, 2013 at 08:53:29AM -0700, Yinghai Lu wrote: >> On Wed, Mar 20, 2013 at 6:08 AM, Vivek Goyal wrote: >> >> > Have a general question about crashkernel_low. Why does it need to >> > show up as "Crash kernel low" in /proc/iomem. Wi

Re: [PATCH] net/irda: add missing error path release_sock call

2013-03-20 Thread David Miller
From: Kees Cook Date: Wed, 20 Mar 2013 08:19:24 -0700 > This makes sure that release_sock is called for all error conditions in > irda_getsockopt. > > Signed-off-by: Kees Cook > Reported-by: Brad Spengler Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: [PATCH] BUG: [RFC] pinctrl: pins are freed 2 times in pinctrl_bind_pins

2013-03-20 Thread Stephen Warren
On 03/20/2013 05:31 AM, Richard Genoud wrote: > If the function pinctrl_select_state() fails because one pin is already > taken elsewhere, pinmux_enable_setting makes all the necessary pin_free > calls (and not more than necessary). > The problem here is that devm_pinctrl_put() will be called on th

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-20 Thread Daniel Mack
On Wed, Mar 20, 2013 at 4:19 PM, Rob Herring wrote: > On 03/20/2013 09:51 AM, Grant Likely wrote: >> The same data is now available in sysfs, so we can remove the code >> that exports it in /proc and replace it with a symlink to the sysfs >> version. >> >> Tested on versatile qemu model and mpc520

Re: [PATCH 2/2] sysfs: handle failure path correctly for readdir()

2013-03-20 Thread Shuah Khan
On Wed, Mar 20, 2013 at 9:25 AM, Ming Lei wrote: > In case of 'if (filp->f_pos == 0 or 1)' of sysfs_readdir(), > the failure from filldir() isn't handled, and the reference counter > of the sysfs_dirent object pointed by filp->private_data will be > released without clearing filp->private_data, s

[PATCH] CodingStyle: Add tab indentation avoidance tips

2013-03-20 Thread Joe Perches
Add Al's comments in from https://lkml.org/lkml/2013/3/20/345 Signed-off-by: Joe Perches --- diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index e00b8f0..c4ba183 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -836,6 +836,141 @@ next instruction in t

Re: [PATCH] i2c: exynos5: add High Speed I2C controller driver

2013-03-20 Thread Naveen Krishna Ch
On 12 March 2013 18:43, Simon Glass wrote: > [please excuse my mailer html confusion] > > Hi Naveen, > > On Mon, Mar 11, 2013 at 9:32 PM, Naveen Krishna Chatradhi > wrote: >> >> Adds support for High Speed I2C driver found in Exynos5 and later >> SoCs from Samsung. This driver currently supports

[RFC: PATCH v5] i2c: exynos5: add High Speed I2C controller driver

2013-03-20 Thread Naveen Krishna Chatradhi
Adds support for High Speed I2C driver found in Exynos5 and later SoCs from Samsung. This driver currently supports Auto mode. Driver only supports Device Tree method. Note: Added debugfs support for registers view, not tested. Signed-off-by: Taekgyun Ko Signed-off-by: Naveen Krishna Chatradhi

Re: [PATCH v3] clk: add si5351 i2c common clock driver

2013-03-20 Thread michal . bachraty
Hi Sebastian, Thanks for writing this driver! I have tested your si5351 clock driver and his tuning capabilities. It works well, it generates proper clock frequency, but when new frequency is generated, little clock gap (1ms) is generated. Si5351 datasheet and WP claims, clock tuning can be wit

Re: gm45 intel gfx can generate non-MSI irq# in MSI mode (was Re: [PATCH] drm/i915: stop using GMBUS IRQs on Gen4 chips (was Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt respo

2013-03-20 Thread Jiri Kosina
On Tue, 19 Mar 2013, Alan Stern wrote: > > > That might be misleading. It's possible that the erroneous IRQs _are_ > > > being issued but you're simply not aware of them. If the kernel thinks > > > that no device is using IRQ 16 then it will leave that IRQ disabled. > > > > I guess I should hav

Re: [PATCH] ARM: OMAP: fix typo "CONFIG_SMC91x_MODULE"

2013-03-20 Thread Tony Lindgren
* Paul Bolle [130308 04:10]: > There's a (rather subtle) typo in "CONFIG_SMC91x_MODULE". Fix it once > and for all by using IS_ENABLED(), which is designed to avoid issues > like this. > > Signed-off-by: Paul Bolle > --- > Untested! And this needs build- and runtime testing, especially for the >

Re: [PATCH v5] x86, kdump: Set crashkernel_low automatically

2013-03-20 Thread Vivek Goyal
On Wed, Mar 20, 2013 at 09:21:31AM -0700, Yinghai Lu wrote: > On Wed, Mar 20, 2013 at 9:03 AM, Vivek Goyal wrote: > > On Wed, Mar 20, 2013 at 08:53:29AM -0700, Yinghai Lu wrote: > >> On Wed, Mar 20, 2013 at 6:08 AM, Vivek Goyal wrote: > >> > >> > Have a general question about crashkernel_low. Why

RE: [3.9-rc1] Bug in bootup code or debug code?

2013-03-20 Thread Yu, Fenghua
> From: Shaun Ruffell [mailto:sruff...@digium.com] > On Tue, Mar 19, 2013 at 10:12:39PM +, Yu, Fenghua wrote: > > > From: Tetsuo Handa [mailto:penguin-ker...@i-love.sakura.ne.jp] > > > H. Peter Anvin wrote: > Hi Fenghua, > > I ran into the same issue on a test system I use (not a virtual > m

Re: [PATCH] clk: divider: Use DIV_ROUND_CLOSEST

2013-03-20 Thread Sören Brinkmann
Hi Mike, On Tue, Mar 19, 2013 at 05:16:09PM -0700, Mike Turquette wrote: > Quoting Soren Brinkmann (2013-01-29 17:25:44) > > Use the DIV_ROUND_CLOSEST macro to calculate divider values and minimize > > rounding errors. > > > > Cc: linux-arm-ker...@lists.infradead.org > > Cc: linux-kernel@vger.kern

Re: [PATCH] pciehp: Add pciehp_surprise module option

2013-03-20 Thread Randy Dunlap
On 03/20/13 07:02, Takashi Iwai wrote: > We encountered a problem that on some HP machines the Realtek PCI-e > card reader device appears only when you inserted a card before the > cold boot. While debugging, it turned out that the device is actually > handled via PCI-e hotplug in some level. The

Re: Question pertaining to request_threaded_irq

2013-03-20 Thread anish singh
Hello Vijay, Below I will try my best to answer. On Wed, Mar 20, 2013 at 8:23 PM, Vijay Dixit wrote: > Hello, > > I am new to the Kernel-Mailing list. I am not subscribed at the moment > and would really appreciate it, if I can be CC'd for all the > reply/responses for my question. > > > I have

Re: [PATCH] dynticks: avoid flow_cache_flush() interrupting every core

2013-03-20 Thread Frederic Weisbecker
2013/3/20 David Miller : > From: Chris Metcalf > Date: Tue, 19 Mar 2013 17:35:58 -0400 > >> Previously, if you did an "ifconfig down" or similar on one core, and >> the kernel had CONFIG_XFRM enabled, every core would be interrupted to >> check its percpu flow list for items that could be garbage

trinity fuzz-tester mailing list.

2013-03-20 Thread Dave Jones
I've been getting enough private mail about the trinity fuzz-tester that there needs to be some coordination between people patching the same code etc. To this end, there's now a mailing list.. Send a mail with 'subscribe trinity' in the body to majord...@vger.kernel.org to subscribe. My thanks

Re: [PATCH 00/21] workqueue: cleanups and better locking for recent changes

2013-03-20 Thread Lai Jiangshan
Hi, Tejun I am sorry for replying so late and replied with so huge patchset. But problem happened now, my patches and your patches are conflict. Which patchset should be rebased? I think my patches need be merged at first. Thus workqueue code is in a better base, then your patchset will be rebas

Re: [PATCH] pciehp: Add pciehp_surprise module option

2013-03-20 Thread Takashi Iwai
At Wed, 20 Mar 2013 09:33:18 -0700, Randy Dunlap wrote: > > On 03/20/13 07:02, Takashi Iwai wrote: > > We encountered a problem that on some HP machines the Realtek PCI-e > > card reader device appears only when you inserted a card before the > > cold boot. While debugging, it turned out that the

Re: [PATCH 00/21] workqueue: cleanups and better locking for recent changes

2013-03-20 Thread Tejun Heo
Hey, On Thu, Mar 21, 2013 at 12:38:17AM +0800, Lai Jiangshan wrote: > I am sorry for replying so late and replied with so huge patchset. > > But problem happened now, my patches and your patches are conflict. > Which patchset should be rebased? > > I think my patches need be merged at first. Thu

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-20 Thread Grant Likely
On Wed, Mar 20, 2013 at 4:24 PM, Daniel Mack wrote: > On Wed, Mar 20, 2013 at 4:19 PM, Rob Herring wrote: >> On 03/20/2013 09:51 AM, Grant Likely wrote: >>> The same data is now available in sysfs, so we can remove the code >>> that exports it in /proc and replace it with a symlink to the sysfs >

Re: [PATCH 2/2] regulator: palmas: add input supply names

2013-03-20 Thread Stephen Warren
On 03/20/2013 10:38 AM, Mark Brown wrote: > On Wed, Mar 20, 2013 at 10:07:17AM -0600, Stephen Warren wrote: >> On 03/20/2013 06:54 AM, Laxman Dewangan wrote: > >>> I generally send a patches on single git-send command git >>> send-emal --to=ldewan...@nvidia.com .patch 0001.patch > >> Don't do

Re: [PATCH 01/12] Security: Add CAP_COMPROMISE_KERNEL

2013-03-20 Thread Mimi Zohar
On Tue, 2013-03-19 at 15:47 +1100, James Morris wrote: > On Mon, 18 Mar 2013, Matthew Garrett wrote: > > > This patch introduces CAP_COMPROMISE_KERNEL. > > I'd like to see this named CAP_MODIFY_KERNEL, which is more accurate and > less emotive. Otherwise I think core kernel developers will be

Re: [PATCH 01/10] workqueue: add wq_numa_tbl_len and wq_numa_possible_cpumask[]

2013-03-20 Thread Lai Jiangshan
On Wed, Mar 20, 2013 at 11:48 PM, Tejun Heo wrote: > On Wed, Mar 20, 2013 at 11:43:30PM +0800, Lai Jiangshan wrote: >> > + for_each_node(node) >> > + >> > BUG_ON(!alloc_cpumask_var_node(&wq_numa_possible_cpumask[node], >> > + GFP_KE

Re: [PATCH 1/1] documentation: clk: fix couple of misspelling

2013-03-20 Thread Mike Turquette
Quoting Eduardo Valentin (2013-02-28 05:59:07) > Correcting misspelling inside the clk.txt. > > Signed-off-by: Eduardo Valentin Thanks Eduardo! Taken into clk-next. Regards, Mike > --- > Documentation/clk.txt |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/D

Re: [PATCH 01/12] Security: Add CAP_COMPROMISE_KERNEL

2013-03-20 Thread H. Peter Anvin
On 03/20/2013 08:14 AM, Matthew Garrett wrote: > On Wed, 2013-03-20 at 08:03 -0700, H. Peter Anvin wrote: >> CAP_SYS_RAWIO is definitely inappropriate there. > > Ok. How do we fix that without breaking userspace that expects > CAP_SYS_RAWIO to be sufficient? > I don't think we can to some way, b

Re: [PATCH v3] clk: add si5351 i2c common clock driver

2013-03-20 Thread Daniel Mack
Hi Michal, On 20.03.2013 14:55, michal.bachr...@gmail.com wrote: > Thanks for writing this driver! I have tested your si5351 clock > driver and his tuning capabilities. It works well, it generates > proper clock frequency, but when new frequency is generated, little > clock gap (1ms) is generat

Re: [PATCH 01/12] Security: Add CAP_COMPROMISE_KERNEL

2013-03-20 Thread Matthew Garrett
On Wed, 2013-03-20 at 12:41 -0400, Mimi Zohar wrote: > Matthrew, perhaps you could clarify whether this will be tied to MAC > security. Based on the kexec thread, I'm under the impression that is > not the intention, or at least not for kexec. As root isn't trusted, > neither is the boot command

Re: [PATCH v3 4/6] ARM: OMAP: USB: Add phy binding information

2013-03-20 Thread Tony Lindgren
* Kishon Vijay Abraham I [130320 02:17]: > > --- a/arch/arm/mach-omap2/board-2430sdp.c > +++ b/arch/arm/mach-omap2/board-2430sdp.c > @@ -265,6 +266,7 @@ static void __init omap_2430sdp_init(void) > > omap_mux_init_signal("usb0hs_stp", OMAP_PULL_ENA | OMAP_PULL_UP); > usb_bind_phy("m

Re: [PATCH] CodingStyle: Add tab indentation avoidance tips

2013-03-20 Thread Al Viro
On Wed, Mar 20, 2013 at 09:26:54AM -0700, Joe Perches wrote: > Add Al's comments in from https://lkml.org/lkml/2013/3/20/345 > +Tip 7: > +Code flow is down, not across... That one is a lovely improvement on what I actually said. google "down, not across" for context... -- To unsubscribe from thi

Re: [BUG] staging: android: ashmem: Deadlock during ashmem_mmap and ashmem_read

2013-03-20 Thread Greg Kroah-Hartman
On Wed, Mar 20, 2013 at 09:08:03PM +0530, Shankar Brahadeeswaran wrote: > Hi Greg, Dan, > > Few days back I posted a patch to fix a dead lock issue in the ashmem > driver that got merged in staging-next branch > https://lkml.org/lkml/2013/2/20/429 > > I'm seeing that there exists another path in

Re: [GIT PULL] Load keys from signed PE binaries

2013-03-20 Thread David Howells
David Howells wrote: > Stephen Rothwell wrote: > > > David, if I do remove it, are there other patches in your pekey tree that > > are still going forward? > > No. Well, maybe. But feel free to drop it anyway for the moment. David -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/2] ACPI / scan: Add special handler for Intel Lynxpoint LPSS devices

2013-03-20 Thread Mike Turquette
Quoting Rafael J. Wysocki (2013-03-02 14:27:52) > From: Rafael J. Wysocki > > Devices on the Intel Lynxpoint Low Power Subsystem (LPSS) have some > common features that aren't shared with any other platform devices, > including the clock and LTR (Latency Tolerance Reporting) registers. > It is be

Re: [PATCH 1/2] of: Make device nodes kobjects so they show up in sysfs

2013-03-20 Thread Greg Kroah-Hartman
On Wed, Mar 20, 2013 at 03:57:12PM +0100, Benjamin Herrenschmidt wrote: > On Wed, 2013-03-20 at 14:51 +, Grant Likely wrote: > > Device tree nodes are already treated as objects, and we already want to > > expose them to userspace which is done using the /proc filesystem today. > > Right now th

Re: [PATCH 2/2] regulator: palmas: add input supply names

2013-03-20 Thread Stephen Warren
On 03/20/2013 10:52 AM, Mark Brown wrote: > On Wed, Mar 20, 2013 at 10:42:26AM -0600, Stephen Warren wrote: >> On 03/20/2013 10:38 AM, Mark Brown wrote: >>> On Wed, Mar 20, 2013 at 10:07:17AM -0600, Stephen Warren >>> wrote: On 03/20/2013 06:54 AM, Laxman Dewangan wrote: > > I generally s

Re: [PATCH 3/4] ARM: tegra: dalmore: add dt node for TPS65090's regulators

2013-03-20 Thread Rhyland Klein
On 3/20/2013 9:44 AM, Laxman Dewangan wrote: > NVIDIA's Tegra114 platform, Dalmore, uses the TPS65090 as > secondary PMICs which mainly act as voltage switch controlled > by I2C communication. > > Add regulator node for this device. > > Signed-off-by: Laxman Dewangan > --- > .../devicetree/bind

Re: [PATCH] drivers: video: omap2: dss: Use PTR_RET function

2013-03-20 Thread Tomi Valkeinen
On 2013-03-20 17:44, Jon Hunter wrote: > > On 03/20/2013 06:56 AM, Tomi Valkeinen wrote: >> On 2013-03-19 10:03, Alexandru Gheorghiu wrote: >>> Use PTR_RET function instead of IS_ERR and PTR_ERR. >>> Patch found using coccinelle. >>> >>> Signed-off-by: Alexandru Gheorghiu >>> --- >>> drivers/vid

Re: [PATCH] BUG: pinmux: forbid mux_usecount to be set at UINT_MAX

2013-03-20 Thread Richard Genoud
2013/3/20 Stephen Warren : > On 03/20/2013 05:31 AM, Richard Genoud wrote: >> If pin_free is called on a pin already freed, mux_usecount is set to >> UINT_MAX which is really a bad idea. >> This will silently ignore a double call to pin_free > > Shouldn't we WARN_ON(this case)? yes indeed, it may b

Re: [3.9-rc1] Bug in bootup code or debug code?

2013-03-20 Thread Shaun Ruffell
On Wed, Mar 20, 2013 at 04:32:14PM +, Yu, Fenghua wrote: > > From: Shaun Ruffell [mailto:sruff...@digium.com] > > On Tue, Mar 19, 2013 at 10:12:39PM +, Yu, Fenghua wrote: > > > > From: Tetsuo Handa [mailto:penguin-ker...@i-love.sakura.ne.jp] > > > > H. Peter Anvin wrote: > > > Hi Fenghua,

RE: [3.9-rc1] Bug in bootup code or debug code?

2013-03-20 Thread Yu, Fenghua
> From: Shaun Ruffell [mailto:sruff...@digium.com] > On Wed, Mar 20, 2013 at 04:32:14PM +, Yu, Fenghua wrote: > > > From: Shaun Ruffell [mailto:sruff...@digium.com] > > > On Tue, Mar 19, 2013 at 10:12:39PM +, Yu, Fenghua wrote: > > > > > From: Tetsuo Handa [mailto:penguin-ker...@i-love.saku

Re: [PATCHv3 08/10] clocksource: time-armada-370-xp: Fix sparse warning

2013-03-20 Thread Gregory CLEMENT
On 03/13/2013 07:17 PM, Stephen Boyd wrote: > drivers/clocksource/time-armada-370-xp.c:217:13: warning: symbol > 'armada_370_xp_timer_init' was not declared. Should it be static? > > Also remove the __init marking in the prototype as it's > unnecessary and drop the init.h file. > > Cc: Gregory CL

[PATCH v2 09/10] workqueue: implement NUMA affinity for unbound workqueues

2013-03-20 Thread Tejun Heo
Currently, an unbound workqueue has single current, or first, pwq (pool_workqueue) to which all new work items are queued. This often isn't optimal on NUMA machines as workers may jump around across node boundaries and work items get assigned to workers without any regard to NUMA affinity. This p

[PATCH 11/10] workqueue: use NUMA-aware allocation for pool_workqueues workqueues

2013-03-20 Thread Tejun Heo
Use kmem_cache_alloc_node() with @pool->node instead of kmem_cache_zalloc() when allocating a pool_workqueue so that it's allocated on the same node as the associated worker_pool. As there's no no kmem_cache_zalloc_node(), move zeroing to init_pwq(). This was suggested by Lai Jiangshan. Signed-o

<    1   2   3   4   5   6   7   8   >