Re: [PATCH V3 3/5] ARM: tegra:add aliases and DMA requestor for serial nodes of Tegra114

2013-03-15 Thread Laxman Dewangan
On Friday 15 March 2013 11:56 PM, Stephen Warren wrote: On 03/13/2013 02:02 PM, Stephen Warren wrote: On 03/13/2013 01:49 PM, Laxman Dewangan wrote: Add APB DMA requestor and serial aliases for serial controller. There will be two serial driver i.e. 8250 based simple serial driver and APB DMA b

Re: SLUB + UML : WARNING: at mm/page_alloc.c:2386

2013-03-15 Thread Toralf Förster
On 03/15/2013 12:10 AM, richard -rw- weinberger wrote: > Time to look at UML's __get_user(). Just FWIW the "memdup_user:" debug-patch-line is not only triggered by trinity. It happens even if I regularly boot a UML guest (stable Gentoo x86): $ /usr/local/bin/linux-v3.9-rc2-292-ga2362d2 earlypr

Re: [PATCH RESEND] bluetooth: btmrvl_sdio: look for sd8688 firmware in proper location

2013-03-15 Thread Gustavo Padovan
Hi Lubomir, * Lubomir Rintel [2013-03-13 12:04:30 +0100]: > The firmware images are shared with libertas_sdio WiFi chip and used to be in > libertas/ subtree in linux-firmware. As btmrvl_sdio used to look into the > linux-firmware root, it ended up being unsuccessful. Since the firmware files >

Re: [PATCH V3 5/5] ARM: tegra: add spi nodes to Tegra114 DT

2013-03-15 Thread Stephen Warren
On 03/13/2013 01:49 PM, Laxman Dewangan wrote: > NVIDIA's Tegra114 has 6 spi controllers. These controllers are > redesign on T114 with different register interface. > diff --git a/arch/arm/boot/dts/tegra114.dtsi b/arch/arm/boot/dts/tegra114.dtsi > + reg = <0x7000d400 0x200>; ... > +

Re: [PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Nicolas Schichan
On 03/15/2013 07:28 PM, Nicolas Schichan wrote: [Sorry, I forgot to put the mailing lists as the receivers of the introductory message] Hi, This patch serie adds support for jitted seccomp BPF filters, with the required modifications to make it work on the ARM architecture. - The first patch

Re: [PATCH][v3] xhci: correctly enable interrupts

2013-03-15 Thread Greg KH
On Tue, Mar 05, 2013 at 11:45:28AM +0100, Thomas Renninger wrote: > On Monday, March 04, 2013 05:14:43 PM Thomas Renninger wrote: > > From: Hannes Reinecke > > > > xhci has its own interrupt enabling routine, which will try to > > use MSI-X/MSI if present. So the usb core shouldn't try to enable

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Frederic Weisbecker
2013/3/15 Oleg Nesterov : > On 03/15, Frederic Weisbecker wrote: >> >> > The lack of the barrier? >> > >> > I thought about this, this should be fine? atomic_add_unless() has the same >> > "problem", but this is documented in atomic_ops.txt: >> > >> > atomic_add_unless requires explicit mem

[PATCH RFC 2/3] ARM: net: bpf_jit: make code generation less dependent on struct sk_filter.

2013-03-15 Thread Nicolas Schichan
This is in preparation of bpf_jit support for seccomp filters. Signed-off-by: Nicolas Schichan --- arch/arm/net/bpf_jit_32.c | 46 - 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c

[PATCH RFC 3/3] ARM: net: bpf_jit: add support for jitted seccomp filters.

2013-03-15 Thread Nicolas Schichan
This patch selects HAVE_SECCOMP_FILTER_JIT in the ARM Kconfig file, implements and seccomp_jit_compile() and seccomp_jit_free(), and adds support for BPF_S_ANC_SECCOMP_LD_W instruction. BPF_S_ANC_SECCOMP_LD_W instructions trigger the generation of a call to C function jit_get_seccomp_w(). which is

[PATCH RFC 1/3] seccomp: add generic code for jitted seccomp filters.

2013-03-15 Thread Nicolas Schichan
Architecture must select HAVE_SECCOMP_FILTER_JIT and implement seccomp_jit_compile() and seccomp_jit_free() if they intend to support jitted seccomp filters. struct seccomp_filter has been moved to to make its content available to the jit compilation code. In a way similar to the net BPF, the ji

Re: [PATCH V3 3/5] ARM: tegra:add aliases and DMA requestor for serial nodes of Tegra114

2013-03-15 Thread Stephen Warren
On 03/13/2013 02:02 PM, Stephen Warren wrote: > On 03/13/2013 01:49 PM, Laxman Dewangan wrote: >> Add APB DMA requestor and serial aliases for serial controller. >> There will be two serial driver i.e. 8250 based simple serial driver >> and APB DMA based serial driver for higher baudrate and perfor

[PATCH] net: dns_resolver: Use kmemdup instead of kmalloc and memcpy

2013-03-15 Thread Alexandru Gheorghiu
Replace use of kmalloc followed by memcpy with kmemdup. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu --- net/dns_resolver/dns_query.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/dns_resolver/dns_query.c b/net/dns_resolver/dns_query.c index c32

Re: vfs: lockdep splat with prepare_bprm_creds

2013-03-15 Thread Oleg Nesterov
On 03/15, Al Viro wrote: > > On Fri, Mar 15, 2013 at 12:07:14AM -0400, Sasha Levin wrote: > > Hi all, > > > > While fuzzing with trinity inside a KVM tools guest running latest -next > > kernel > > I've stumbled on the following. > > > > Dave Jones reported something similar, but that seemed to in

[PATCH 1/2] w1: ds2408: make value read-back check a Kconfig option

2013-03-15 Thread Jean-Francois Dagenais
De-activating this reading back will effectively half the time required for a write to the output register. Acked-by: Evgeniy Polyakov Signed-off-by: Jean-Francois Dagenais --- drivers/w1/slaves/Kconfig | 10 ++ drivers/w1/slaves/w1_ds2408.c | 18 -- 2 files changed,

Re: [PATCH RESEND 0/6] Drivers: hv

2013-03-15 Thread Greg KH
Your subject says "resend", but you don't tell me which version it is? I see about 3 different versions of this series, which one should I use? Please be specific when sending patches, otherwise I will guess, and I usually guess wrong... I'm going to drop this, and all other hv patches from you,

[PATCH 2/2] w1: ds2408: use ARRAY_SIZE instead of hard-coded number

2013-03-15 Thread Jean-Francois Dagenais
Acked-by: Evgeniy Polyakov Signed-off-by: Jean-Francois Dagenais --- drivers/w1/slaves/w1_ds2408.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2408.c b/drivers/w1/slaves/w1_ds2408.c index 25a5168..e45eca1 100644 --- a/drivers/w1/slaves/w1_ds2

Re: [RFC PATCH] Allow optional module parameters

2013-03-15 Thread Andy Lutomirski
On Thu, Mar 14, 2013 at 10:03 PM, Rusty Russell wrote: > Andy Lutomirski writes: >> Current parameter behavior is odd. Boot parameters that have values >> and don't match anything become environment variables, with no >> warning. Boot parameters without values that don't match anything >> go in

Re: udelay function delays the wrong time interval in multiprocessor system, if ARCH_HAS_READ_CURRENT_TIMER is not defined and on current timer is used.

2013-03-15 Thread Russell King - ARM Linux
On Sat, Mar 16, 2013 at 12:08:54AM +0800, chpoph wrote: > If ARCH_HAS_READ_CURRENT_TIMER is not defined and on current timer is > used for udelay, then __loop_delay and __loop_const_udelay is used to > delay a specific time interval. but in delay-loop.S, loops_per_jiffy > (not per cpu data) is use

Re: [PATCH v2 8/8] drivers: misc: use module_platform_driver_probe()

2013-03-15 Thread Greg Kroah-Hartman
On Thu, Mar 14, 2013 at 06:09:38PM +0100, Fabio Porcedda wrote: > This patch converts the drivers to use the > module_platform_driver_probe() macro which makes the code smaller and > a bit simpler. Someone else beat you to this fix for these files, sorry. greg k-h -- To unsubscribe from this list

Re: [PATCH] seccomp: allow BPF_XOR based ALU instructions.

2013-03-15 Thread Kees Cook
On Fri, Mar 15, 2013 at 10:02 AM, Nicolas Schichan wrote: > > Signed-off-by: Nicolas Schichan Ah, good catch. Thanks! Acked-by: Kees Cook -- Kees Cook Chrome OS Security -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kern

Re: [PATCH 10/10] drivers: misc: use module_platform_driver_probe()

2013-03-15 Thread Fabio Porcedda
On Fri, Mar 15, 2013 at 12:28 PM, Arnd Bergmann wrote: > On Friday 15 March 2013, Fabio Porcedda wrote: >> >> * Regarding the use of module_platform_driver_probe, I'm a little worried >> >> about >> >> the interactions with deferred probing. I don't think there are any >> >> regressions, >> >>

Re: [PATCH 1/2] iio: adc: Kconfig: exynos_adc depends on CONFIG_OF

2013-03-15 Thread Doug Anderson
Naveen, On Fri, Mar 15, 2013 at 9:23 AM, Naveen Krishna Chatradhi wrote: > As the exynos_adc driver only supports device tree registration. > Making driver depend on CONFIG_OF solves possible errors during probe. > > Signed-off-by: Naveen Krishna Chatradhi > Reported-by: Dan Carpenter > Cc: Dou

Re: [PATCH 0/8] memory: emif: miscellaneous bug fixes for EMIF driver

2013-03-15 Thread Greg KH
On Mon, Mar 11, 2013 at 10:35:57AM +0530, Lokesh Vutla wrote: > This series resolves a few minor issues for EMIF driver. > > Tested all patches on OMAP4430-sdp. > Patch : "memory: emif: setup LP settings on freq update" > is tested on a local tree, since freq update cannot be > tested on mainline.

Re: [PATCH 3/4 v2] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 07:08:34PM +0100, Florian Fainelli wrote: > + if (dev->err_interrupt == NO_IRQ) { ... > + init_waitqueue_head(&dev->smi_busy_wait); > + > + dev->err_interrupt = platform_get_irq(pdev, 0); > + if (dev->err_interrupt != -ENXIO) { ... > + } else > +

Re: [PATCH] Turn off -Wmaybe-uninitialized when building with -Os

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 11:01:35PM +0100, Arnd Bergmann wrote: > gcc-4.7 and higher add a lot of false positive warnings about > potential uses of uninitialized warnings, but only when optimizing > for size (-Os). This is the default when building allyesconfig, > which turns on CONFIG_CC_OPTIMIZE_F

Re: [PATCH] bounce:fix bug, avoid to flush dcache on slab page from jbd2.

2013-03-15 Thread Darrick J. Wong
On Fri, Mar 15, 2013 at 11:01:05AM +0100, Jan Kara wrote: > On Thu 14-03-13 15:42:43, Darrick J. Wong wrote: > > On Wed, Mar 13, 2013 at 10:02:16PM +0100, Jan Kara wrote: > > > On Wed 13-03-13 12:44:29, Darrick J. Wong wrote: > > > > On Wed, Mar 13, 2013 at 09:50:21AM +0100, Jan Kara wrote: > > > >

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Oleg Nesterov
On 03/15, Frederic Weisbecker wrote: > > > The lack of the barrier? > > > > I thought about this, this should be fine? atomic_add_unless() has the same > > "problem", but this is documented in atomic_ops.txt: > > > > atomic_add_unless requires explicit memory barriers around the > > operat

Re: [RFC v2 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 02:31:04AM -0700, Bill Huang wrote: > Add the below two notifier events so drivers which are interested in > knowing the clock status can act accordingly. This is extremely useful > in some of the DVFS (Dynamic Voltage Frequency Scaling) design. > > CLK_PREPARED > CLK_UNPRE

Re: [PATCH 1/2] Check dmi version when get system uuid

2013-03-15 Thread Anisse Astier
On Wed, 25 Jul 2012 19:04:57 +0800, "zhenzhong.duan" wrote : > As of version 2.6 of the SMBIOS specification, the first 3 > fields of the UUID are supposed to be encoded on little-endian. > > Also a minor fix to match variable meaning and mute checkpatch.pl > I'm late to the party, as this pa

Re: [PATCH] epoll: fix sparse error on RCU assignment

2013-03-15 Thread Oleg Nesterov
On 03/14, Eric Wong wrote: > > Oleg Nesterov wrote: > > On 03/10, Eric Wong wrote: > > > > > > This fixes the following sparse error when using > > > CONFIG_SPARSE_RCU_POINTER=y and "make C=2 fs/eventpoll.o" > > > > > > fs/eventpoll.c:514:17: error: incompatible types in comparison > > > expres

RE: [PATCH 10/10] drivers: misc: use module_platform_driver_probe()

2013-03-15 Thread H Hartley Sweeten
On Thursday, March 14, 2013 6:58 AM, Arnd Bergmann wrote: > On Thursday 14 March 2013, Fabio Porcedda wrote: >> This patch converts the drivers to use the >> module_platform_driver_probe() macro which makes the code smaller and >> a bit simpler. >> >> Signed-off-by: Fabio Porcedda >> Cc: Greg Kro

[PATCH] rtc: rtc-at91rm9200: use a variable for storing IMR

2013-03-15 Thread Nicolas Ferre
On some revisions of AT91 SoCs, the RTC IMR register is not working. Instead of elaborating a workaround for that specific SoC or IP version, we simply use a software variable to store the Interrupt Mask Register and modify it for each enabling/disabling of an interrupt. The overhead of this is neg

Re: [PATCH] ARM: tegra114: add speedo-based process identification

2013-03-15 Thread Stephen Warren
On 03/14/2013 01:40 AM, Danny Huang wrote: > Add speedo-based process identifictaion for Tegra114. > > Based on the work by: > Alex Frid This code is surprisingly quite a bit simpler than the existing tegra30_speedo.c. Are you sure it's complete? > diff --git a/arch/arm/mach-tegra/fuse.c b/arch

Re: [PATCH v3] arm: fix a wrong value returned from CALLER_ADDRn

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 01:35:01PM +0900, kpark3...@gmail.com wrote: > From: Sahara > > This makes return_address() return a correct value for CALLER_ADDRn. > To have a correct value from CALLER_ADDRn, we need to fix three points. > > * The unwind_frame() does not update frame->lr but frame->pc

Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource()

2013-03-15 Thread gre...@linuxfoundation.org
On Fri, Mar 15, 2013 at 11:14:01AM -0600, Stephen Warren wrote: > On 03/15/2013 10:38 AM, gre...@linuxfoundation.org wrote: > > On Sat, Feb 02, 2013 at 10:22:16AM +0530, Sachin Kamat wrote: > >> > >> > >> On Friday, 1 February 2013, Stephen Warren wrote: > >>> On 02/01/2013 02:49 AM, Sachin Kamat

Re: Kernel oops on mmap ?

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 09:38:02AM +0800, Hillf Danton wrote: > [cc Russell] > On Wed, Mar 13, 2013 at 11:04 PM, Mark Jackson wrote: > > Can any help diagnose what my userspace task is doing to get the followings > > oops ? > > > > [ 42.587772] Unable to handle kernel paging request at virtual

[PATCH net-next] drivers:net: dma_alloc_coherent: use __GFP_ZERO instead of memset(, 0)

2013-03-15 Thread Joe Perches
Reduce the number of calls required to alloc a zeroed block of memory. Trivially reduces overall object size. Other changes around these removals o Neaten call argument alignment o Remove an unnecessary OOM message after dma_alloc_coherent failure o Remove unnecessary gfp_t stack variable Signed

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Frederic Weisbecker
2013/3/15 Oleg Nesterov : > On 03/15, Ming Lei wrote: >> >> On Fri, Mar 15, 2013 at 9:46 PM, Oleg Nesterov wrote: >> > On 03/15, Ming Lei wrote: >> >> >> >> On Fri, Mar 15, 2013 at 12:24 AM, Oleg Nesterov wrote: >> >> > static inline int atomic_inc_unless_negative(atomic_t *p) >> >> > { >> >> >

Re: [PATCH 1/1] mfd: palmas: Add power off control

2013-03-15 Thread Stephen Warren
On 03/14/2013 11:51 PM, Bill Huang wrote: > On Fri, 2013-03-15 at 13:19 +0800, Stephen Warren wrote: >> On 03/14/2013 04:58 AM, Bill Huang wrote: >>> Hook up "pm_power_off" to palmas power off routine if there is DT >>> property "ti,system-power-controller" defined, so platform which is >>> powered

Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource()

2013-03-15 Thread Stephen Warren
On 03/15/2013 10:38 AM, gre...@linuxfoundation.org wrote: > On Sat, Feb 02, 2013 at 10:22:16AM +0530, Sachin Kamat wrote: >> >> >> On Friday, 1 February 2013, Stephen Warren wrote: >>> On 02/01/2013 02:49 AM, Sachin Kamat wrote: On 1 February 2013 09:54, Stephen Warren wrote: >> >> T

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 11:22:47PM -0600, Stephen Warren wrote: > Is clk_set_rate() only legal to call in non-atomic contexts then? The > header file doesn't say, although I guess since many other functions > explicitly say they can't, then by omission it can... I think when all this was discussed

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Russell King - ARM Linux
On Tue, Mar 12, 2013 at 10:40:04PM -0700, Bill Huang wrote: > That will be too bad, it looks like we deadlock in the mechanism, we > cannot change existing drivers behavior (that means some call > clk_disable/enable directly, some are not), and we cannot hook notifier > in clk_disable/enable either

Re: [PATCH v3 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-03-15 Thread Bryan Wu
On Tue, Mar 12, 2013 at 3:06 AM, Florian Vaussard wrote: > Hi Bryan, > > > > Bryan, I assume that you'll be taking this? It doesn't apply cleanly to > my tree, probably because of Peter's recent changes that you took > through your tree and Florian based his patches on top of that.

Re: lgetxattr()/getxattr() return different values on a file labelled with selinux disabled

2013-03-15 Thread Stephen Smalley
On 03/15/2013 11:24 AM, Thomas COUDRAY wrote: 2013/3/15 Stephen Smalley : f is truly a regular file and not a symlink pointing to a regular file? f is a truly regular file. before_t and after_t are both defined in the policy? Only before_t was defined in the policy. If not defined in pol

Re: Regression: Fixing recursive fault but reboot is needed at boot on HP 6730B - bisected

2013-03-15 Thread Rafael J. Wysocki
On Friday, March 15, 2013 02:10:24 PM Roberto Oppedisano wrote: > Hi! > > Il 15/03/2013 10:42, Roberto Oppedisano ha scritto: > > Il 14/03/2013 18:27, Rafael J. Wysocki ha scritto: > >> On Thursday, March 14, 2013 09:20:51 AM Roberto Oppedisano wrote: > >> As Toshi said, this particular commit doe

Re: [PATCH v2] mm/hugetlb: add more arch-defined huge_pte functions

2013-03-15 Thread Gerald Schaefer
On Fri, 15 Mar 2013 17:02:41 +0100 Michal Hocko wrote: > On Thu 14-03-13 18:51:03, Gerald Schaefer wrote: > > Commit abf09bed3c "s390/mm: implement software dirty bits" > > introduced another difference in the pte layout vs. the pmd layout > > on s390, thoroughly breaking the s390 support for hug

[PATCH] seccomp: allow BPF_XOR based ALU instructions.

2013-03-15 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan --- kernel/seccomp.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 5af44b5..b7a1004 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -160,6 +160,8 @@ static int seccomp_check_filter(struct sock_filter *fi

Re: [PATCH] perf,x86: fix kernel crash with PEBS/BTS after suspend/resume

2013-03-15 Thread Linus Torvalds
On Fri, Mar 15, 2013 at 6:26 AM, Stephane Eranian wrote: > > This patch fixes a kernel crash when using precise sampling (PEBS) > after a suspend/resume. Yup, works. Applied. Can we please get rid of the crazy CPU notifier crap from the perf code, and do this like we do most other wrmsr's etc? D

[PATCH 2/4] posix_cpu_timers: Consolidate timer list cleanups

2013-03-15 Thread Frederic Weisbecker
Cleaning up the posix cpu timers on task exit shares some common code among timer list types, most notably the list traversal and expiry time update. Unify this in a common helper. Signed-off-by: Frederic Weisbecker Cc: Stanislaw Gruszka Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Andrew Morto

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Russell King - ARM Linux
On Tue, Mar 12, 2013 at 10:42:30PM -0600, Stephen Warren wrote: > I believe the point Russell is making is not that the idea behind this > patch is wrong, but simply that the function where you put the hooks is > wrong. The hooks should at least be in clk_enable/clk_disable and not Indeed, remembe

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Russell King - ARM Linux
On Tue, Mar 12, 2013 at 06:47:53PM -0700, Bill Huang wrote: > On Tue, 2013-03-12 at 21:40 +0800, Russell King - ARM Linux wrote: > > On Tue, Mar 12, 2013 at 05:37:41AM -0700, Bill Huang wrote: > > > Add the below four notifier events so drivers which are interested in > > > knowing the clock status

[GIT PATCH] char/misc fixes for 3.9-rc2

2013-03-15 Thread Greg KH
The following changes since commit f6161aa153581da4a3867a2d1a7caf4be19b6ec9: Linux 3.9-rc2 (2013-03-10 16:54:19 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-3.9-rc2 for you to fetch changes up to 3d374d09f

RE: zsmalloc limitations and related topics

2013-03-15 Thread Dan Magenheimer
> From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] > Subject: Re: zsmalloc limitations and related topics > > On 03/14/2013 01:54 PM, Dan Magenheimer wrote: > >> From: Robert Jennings [mailto:r...@linux.vnet.ibm.com] > >> Subject: Re: zsmalloc limitations and related topics > >> > >> * Bob

[PATCH 4/4] selftests: Add basic posix timers selftests

2013-03-15 Thread Frederic Weisbecker
Add some initial basic tests on a few posix timers interface such as setitimer() and timer_settime(). These simply check that expiration happens in a reasonable timeframe after expected elapsed clock time (user time, user + system time, real time, ...). This is helpful for finding basic breakages

[PATCH 1/4] posix_cpu_timer: Consolidate expiry time type

2013-03-15 Thread Frederic Weisbecker
The posix cpu timer expiry time is stored in a union of two types: a 64 bits field if we rely on scheduler precise accounting, or a cputime_t if we rely on jiffies. This result in quite some duplicate code and special cases to handle the two types. Just unify this into a single 64 bits field. cpu

[PATCH 3/4] posix_cpu_timers: Consolidate expired timers check

2013-03-15 Thread Frederic Weisbecker
Consolidate the common code amongst per thread and per process timers list on tick time. List traversal, expiry check and subsequent updates can be shared in a common helper. Signed-off-by: Frederic Weisbecker Cc: Stanislaw Gruszka Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Andrew Morton Cc:

[PATCH 0/4] posix_cpu_timers: Some code consolidation v2

2013-03-15 Thread Frederic Weisbecker
Hi, In this version, just a few warnings fixed due to missing type updates. And also a selftest for quick basic breakage checks. The branch is pullable from: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/posix-cpu-timers Thanks. Frederic Weisbecker (4

Re: [PATCH] regmap: Remove __attribute__ ((packed))

2013-03-15 Thread Mark Brown
On Fri, Mar 15, 2013 at 11:16:02AM +, Dimitris Papastamos wrote: > On my system there was no benefit of using it, it just happens > that the struct is aligned properly and needs no padding. OK, so which system was that and is it not possible that other systems will get something useful from t

Re: + atomic-improve-atomic_inc_unless_negative-atomic_dec_unless_positive .patch added to -mm tree

2013-03-15 Thread Oleg Nesterov
On 03/15, Ming Lei wrote: > > On Fri, Mar 15, 2013 at 9:46 PM, Oleg Nesterov wrote: > > On 03/15, Ming Lei wrote: > >> > >> On Fri, Mar 15, 2013 at 12:24 AM, Oleg Nesterov wrote: > >> > static inline int atomic_inc_unless_negative(atomic_t *p) > >> > { > >> > int v, v1; > >> > - f

[PATCH 9/9] fsnotify: remove fsnotify_init()

2013-03-15 Thread Lai Jiangshan
Since fsnotify_init() is empty in runtime, remove it. The build time test is moved to notification.c Signed-off-by: Lai Jiangshan Cc: Eric Paris --- fs/notify/fsnotify.c |8 fs/notify/notification.c |2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/no

[PATCH 8/9] fsnotify: use BUILD_BUG_ON() to test the weight of ALL_FSNOTIFY_EVENTS

2013-03-15 Thread Lai Jiangshan
BUILD_BUG_ON() is build-time-test for constant. avoid runtime test. also use HWEIGHT32() for build-time. Signed-off-by: Lai Jiangshan Cc: Eric Paris --- fs/notify/fsnotify.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c ind

[PATCH 7/9] fsnotify: use existed call_srcu()

2013-03-15 Thread Lai Jiangshan
fsnotify implements its own call_srcu() by: dedicated thread + synchronize_srcu() But srcu provides call_srcu() now, so we should convert them to use existed call_srcu() and remove the thread. Signed-off-by: Lai Jiangshan Cc: Eric Paris --- fs/notify/mark.c | 59 +

[PATCH 5/9] tomoyo: use DEFINE_SRCU() to define tomoyo_ss

2013-03-15 Thread Lai Jiangshan
DEFINE_STATIC_SRCU() defines srcu struct and do init at build time. Signed-off-by: Lai Jiangshan --- security/tomoyo/tomoyo.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c index a2ee362..f0b756e 100644 --- a/secur

[PATCH 6/9] fsnotify: use DEFINE_SRCU() for srcu_struct

2013-03-15 Thread Lai Jiangshan
DEFINE_STATIC_SRCU() defines srcu struct and do init at build time. Signed-off-by: Lai Jiangshan Cc: Eric Paris --- fs/notify/fsnotify.c |6 -- fs/notify/mark.c |2 +- 2 files changed, 1 insertions(+), 7 deletions(-) diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c inde

[PATCH 4/9] netpoll: use DEFINE_STATIC_SRCU() to define netpoll_srcu

2013-03-15 Thread Lai Jiangshan
DEFINE_STATIC_SRCU() defines srcu struct and do init at build time. Signed-off-by: Lai Jiangshan --- net/core/netpoll.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/core/netpoll.c b/net/core/netpoll.c index fa32899..a3a17ae 100644 --- a/net/core/netpoll.c +++ b/

[PATCH 3/9] mmu_notifier: use DEFINE_STATIC_SRCU() to define srcu struct

2013-03-15 Thread Lai Jiangshan
DEFINE_STATIC_SRCU() defines srcu struct and do init at build time. also remove unneeded mmu_notifier_init(). Signed-off-by: Lai Jiangshan --- mm/mmu_notifier.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index be04122..aa

[PATCH 1/9] powerpc,kvm: fix imbalance srcu_read_[un]lock()

2013-03-15 Thread Lai Jiangshan
At the point of up_out label in kvmppc_hv_setup_htab_rma(), srcu read lock is still held. We have to release it before return. Signed-off-by: Lai Jiangshan Cc: Marcelo Tosatti Cc: Gleb Natapov Cc: Alexander Graf Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: k...@vger.kernel.org Cc: kvm-

[PATCH 2/9] events: use DEFINE_STATIC_SRCU() to define pmus_srcu

2013-03-15 Thread Lai Jiangshan
DEFINE_STATIC_SRCU() defines srcu struct and do init at build time. Signed-off-by: Lai Jiangshan --- kernel/events/core.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index b0cd865..c334f26 100644 --- a/kernel/events/core.

[PATCH 0/9 for-3.10] srcu: use-site fix and cleanups

2013-03-15 Thread Lai Jiangshan
All are simple cleanups(and one fix). Patch1: fix imbalance srcu_read_[un]lock() Patch2~6: use DEFINE[_STATIC]_SRCU macro Patch7: use call_srcu() and remove a lot of code Patch8~9: non-srcu related cleanup for fsnotify Lai Jiangshan (9): powerpc,kvm: fix imbalance srcu_read_[un]lock() event

Re: [PATCH 2/3] mfd: Make AB8500_CORE select POWER_SUPPLY to fix build error

2013-03-15 Thread Samuel Ortiz
Hi Arnd, On Fri, Mar 15, 2013 at 10:18:13AM +, Arnd Bergmann wrote: > On Friday 15 March 2013, Samuel Ortiz wrote: > > On Thu, Mar 14, 2013 at 10:56:39PM +0100, Arnd Bergmann wrote: > > > > > > Please apply to MFD tree for 3.9 > > Already applied to mfd-fixes. > > > > For some reason I did

Re: New MFD tree for linux-next

2013-03-15 Thread Samuel Ortiz
Hi Stephen, On Thu, Mar 14, 2013 at 01:02:01AM +0100, Samuel Ortiz wrote: > Hi Stephen, > > I am moving the MFD development from mfd-2.6.git/for-next to a new mfd-next > tree: > > git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-next.git > > Could you please point linux-next at it ? Many

Re: [PATCH] powerpc: remove "config 8260_PCI9"

2013-03-15 Thread Kumar Gala
On Mar 14, 2013, at 10:14 AM, Paul Bolle wrote: > The last user of Kconfig symbol 8260_PCI9 got removed in release v3.2. > Remove this symbol too. > > Signed-off-by: Paul Bolle > --- > 0) Untested. > > 1) This probably is a second order effect of my commit > 6805ab6daa2b589fe3242d05ddc47a9dbb0

Re: [PATCH 1/1] poweroff: change orderly_poweroff() to use schedule_work()

2013-03-15 Thread Oleg Nesterov
On 03/14, Andrew Morton wrote: > > On Wed, 13 Mar 2013 18:47:05 +0100 Oleg Nesterov wrote: > > > This means that orderly_poweroff() becomes async even if we do not > > run the command and always succeeds, schedule_work() can only fail > > if the work is already pending. We can export __orderly_pow

Re: [PATCH 3/3] serial: tegra: Convert to devm_ioremap_resource()

2013-03-15 Thread gre...@linuxfoundation.org
On Sat, Feb 02, 2013 at 10:22:16AM +0530, Sachin Kamat wrote: > > > On Friday, 1 February 2013, Stephen Warren wrote: > > On 02/01/2013 02:49 AM, Sachin Kamat wrote: > >> On 1 February 2013 09:54, Stephen Warren wrote: > > The entire series is merged in Greg's driver-core tree [1] and

Re: [Intel-gfx] [PATCH] drm/i915: Sanity check incoming ioctl data for a NULL pointer

2013-03-15 Thread Ben Widawsky
On Fri, Mar 15, 2013 at 08:24:03AM +, Chris Wilson wrote: > On Thu, Mar 14, 2013 at 09:50:04PM -0700, Ben Widawsky wrote: > > On Thu, Mar 14, 2013 at 12:59:57PM +, Chris Wilson wrote: > > > In order to prevent a potential NULL deference with hostile userspace, > > > we need to check whether

sctp: hang in sctp_remaddr_seq_show

2013-03-15 Thread Sasha Levin
Hi all, While fuzzing with trinity inside a KVM tools guest running latest -next kernel, I've stumbled on an interesting hang related to sctp. After some fuzzing, I get a hang message about procfs not able to grab a hold of a mutex for one of the files: [ 375.900309] INFO: task trinity-child21:

[RFC: PATCH 2/2] iio: adc: exynos_adc: Handle timeout and race conditions

2013-03-15 Thread Naveen Krishna Chatradhi
This patch does the following 1. Handle the return values of wait_for_completion_interruptible_timeout 2. Add spin locks to avoid race conditions during ISR. Signed-off-by: Naveen Krishna Chatradhi Cc: Doug Anderson Cc: Lars-Peter Clausen --- Discussion thread for this patch can be found at htt

Re: [PATCH] [media] ir: IR_RX51 only works on OMAP2

2013-03-15 Thread Tony Lindgren
* Timo Kokkonen [130314 23:43]: > On 03.14 2013 22:56:44, Arnd Bergmann wrote: > > This driver can be enabled on OMAP1 at the moment, which breaks > > allyesconfig for that platform. Let's mark it OMAP2PLUS-only > > in Kconfig, since that is the only thing it builds on. > > > > Acked-by: Timo Ko

Re: use after free in sysfs_find_dirent

2013-03-15 Thread Sasha Levin
On 03/15/2013 03:38 AM, Ming Lei wrote: > Hi, > > On Fri, Mar 15, 2013 at 1:04 PM, Sasha Levin wrote: >> On 03/15/2013 12:03 AM, Sasha Levin wrote: >>> >>> [ 350.140100] general protection fault: [#1] PREEMPT SMP >>> DEBUG_PAGEALLOC >>> [ 350.141468] Dumping ftrace buffer: >>> [ 350.1420

[PATCH 1/2] iio: adc: Kconfig: exynos_adc depends on CONFIG_OF

2013-03-15 Thread Naveen Krishna Chatradhi
As the exynos_adc driver only supports device tree registration. Making driver depend on CONFIG_OF solves possible errors during probe. Signed-off-by: Naveen Krishna Chatradhi Reported-by: Dan Carpenter Cc: Doug Anderson Cc: Lars-Peter Clausen --- Discussion thread for this patch can be found

[PATCH] [TRIVIAL] Fix comment typo "CONFIG_MISALIGN_ACCESS"

2013-03-15 Thread Paul Bolle
Signed-off-by: Paul Bolle --- Entirely untested. arch/arc/kernel/disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/kernel/disasm.c b/arch/arc/kernel/disasm.c index 2f39028..d14764a 100644 --- a/arch/arc/kernel/disasm.c +++ b/arch/arc/kernel/disasm.c @@ -535,4

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Jiri Kosina
On Fri, 15 Mar 2013, Greg KH wrote: > > > > > I have the same problem on my Lenovo T500. I think the graphics card > > > > > is > > > > > involved. > > > > > > > > > > This laptop has "hybrid graphics" - one Intel GMA 4500MHD and one ATI > > > > > Mobility Radeon HD 3650. When I boot with the In

Re: zsmalloc limitations and related topics

2013-03-15 Thread Seth Jennings
On 03/14/2013 01:54 PM, Dan Magenheimer wrote: >> From: Robert Jennings [mailto:r...@linux.vnet.ibm.com] >> Sent: Thursday, March 14, 2013 7:21 AM >> To: Bob >> Cc: Seth Jennings; Dan Magenheimer; minc...@kernel.org; Nitin Gupta; Konrad >> Wilk; linux...@kvack.org; >> linux-kernel@vger.kernel.org;

Re: [PATCH] powerpc/qe: remove useless Kconfig default

2013-03-15 Thread Kumar Gala
On Mar 12, 2013, at 4:49 PM, Paul Bolle wrote: > The Kconfig entry for QE_USB contains > default y if USB_GADGET_FSL_QE > > But USB_GADGET_FSL_QE got removed in commit > 193ab2a6070039e7ee2b9b9bebea754a7c52fd1b ("usb: gadget: allow multiple > gadgets to be built"). This default will theref

[PATCH] arc: remove #ifdef-ed out include of dead header

2013-03-15 Thread Paul Bolle
There's no (Kconfig) macro CONFIG_BLOCK_DEV_RAM. (CONFIG_BLK_DEV_RAM does exist though.) But linux/blk.h got killed in 2005 anyway (in a patch titled "kill blk.h"), so these three lines can be removed. Signed-off-by: Paul Bolle --- Untested (no relevant hardware or compiler). arch/arc/mm/init.c

Re: zsmalloc limitations and related topics

2013-03-15 Thread Seth Jennings
On 03/14/2013 01:54 PM, Dan Magenheimer wrote: >> From: Robert Jennings [mailto:r...@linux.vnet.ibm.com] >> Sent: Thursday, March 14, 2013 7:21 AM >> To: Bob >> Cc: Seth Jennings; Dan Magenheimer; minc...@kernel.org; Nitin Gupta; Konrad >> Wilk; linux...@kvack.org; >> linux-kernel@vger.kernel.org;

Re: [PATCH v2 06/23] ARM: OMAP3: 3430SDP: Adapt to ehci-omap changes

2013-03-15 Thread Tony Lindgren
Hi, I think you can get rid of quite a bit more of the repeated data for most boards, see below. * Roger Quadros [130315 08:21]: > Add 2 platform devices for 'nop-usb-xceiv'. These will be used > as PHYs for HS USB ports 1 and 2 so provide binding information > for them. > > Use usbhs_init_phys

RE: [PATCH] staging: comedi: drivers: ni_atmio.c: Add a missing semicolon

2013-03-15 Thread H Hartley Sweeten
On Friday, March 15, 2013 2:41 AM, Ian Abbott wrote: > On 2013-03-15 08:14, Kumar Amit Mehta wrote: >> fix a missing end-of-statement by adding a semicolon. >> >> Signed-off-by: Kumar Amit Mehta >> --- >> drivers/staging/comedi/drivers/ni_atmio.c |2 +- >> 1 file changed, 1 insertion(+), 1

Re: [PATCH] MAINTAINERS: add maintainer entry for atmel i2c driver

2013-03-15 Thread Nicolas Ferre
On 03/15/2013 04:32 PM, ludovic.desroc...@atmel.com : > From: Ludovic Desroches > > Create an entry for atmel i2c driver: i2c-at91.c > > Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre > --- > Hello, > > If there are no objections, I'll take the maintenance of the at91 i2c driver >

Re: [PATCH] staging: comedi: drivers: ni_atmio.c: Add a missing semicolon

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 01:14:29AM -0700, Kumar Amit Mehta wrote: > fix a missing end-of-statement by adding a semicolon. > > Signed-off-by: Kumar Amit Mehta > --- > drivers/staging/comedi/drivers/ni_atmio.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hartley sent a fix for this

Re: [PATCH v2] mm/hugetlb: add more arch-defined huge_pte functions

2013-03-15 Thread Michal Hocko
On Thu 14-03-13 18:51:03, Gerald Schaefer wrote: > Commit abf09bed3c "s390/mm: implement software dirty bits" introduced > another difference in the pte layout vs. the pmd layout on s390, > thoroughly breaking the s390 support for hugetlbfs. This requires > replacing some more pte_xxx functions in

[PATCH] MAINTAINERS: add maintainer entry for atmel i2c driver

2013-03-15 Thread ludovic.desroches
From: Ludovic Desroches Create an entry for atmel i2c driver: i2c-at91.c Signed-off-by: Ludovic Desroches --- Hello, If there are no objections, I'll take the maintenance of the at91 i2c driver since there is no maintainer. Wolfram, can you take this patch or do I have to ask someone else? R

[PATCH] fs: Make binfmt support for #! scripts modular and removable

2013-03-15 Thread Josh Triplett
Add a new configuration option CONFIG_BINFMT_SCRIPT to configure support for interpreted scripts starting with "#!"; allow compiling out that support, or building it as a module. Embedded systems running exclusively compiled binaries could leave this support out, and systems that don't need script

Re: [PATCH 1/4] usb: Fix linker errors during build

2013-03-15 Thread kishon
On Friday 15 March 2013 07:55 PM, Felipe Balbi wrote: On Fri, Mar 15, 2013 at 06:58:49PM +0530, Kishon Vijay Abraham I wrote: commit 63378a (usb: phy: remove CONFIG_USB_OTG_UTILS) removed CONFIG_USB_OTG_UTILS from Kconfig but failed to removed from Makefile. Fixed it here. Signed-off-by: Kishon

Re: [3.9-rc1] irq 16: nobody cared (was [3.9-rc1] very poor interrupt responses)

2013-03-15 Thread Greg KH
On Fri, Mar 15, 2013 at 04:37:56PM +0100, Jiri Kosina wrote: > On Fri, 15 Mar 2013, Greg KH wrote: > > > > > I have the same problem on my Lenovo T500. I think the graphics card is > > > > involved. > > > > > > > > This laptop has "hybrid graphics" - one Intel GMA 4500MHD and one ATI > > > > Mobi

Re: [PATCH v2 3/4] ARM: dts: Add adc to exynos5250 device tree file

2013-03-15 Thread Naveen Krishna Ch
On 14 March 2013 02:10, Doug Anderson wrote: > Add the device tree entry for the device-tree enabled ADC driver that > recently landed in the iio tree. > > Signed-off-by: Doug Anderson I've not used the "clock" binding yet, Will test with that and give a tag. > --- > Changes in v2: None > > arc

Re: [PATCH v2 2/4] iio: adc: Add dt support for turning on the phy in exynos-adc

2013-03-15 Thread Naveen Krishna Ch
On 15 March 2013 17:15, Naveen Krishna Ch wrote: > On 14 March 2013 02:10, Doug Anderson wrote: >> Without this change the exynos adc controller needed to have its phy >> enabled in some out-of-driver C code. Add support for specifying the >> phy enable register by listing it in the reg list. >>

RE: [PATCH]Skip unnecessary WARN_ON in panic case

2013-03-15 Thread Seiji Aguchi
Thank you for giving me the feedback. > > So it appears the problem occurs because the other CPUs are not offlined > correctly, and still have pending work which may generate > wakeup IPIs to them? Right. > > The fix would be to either offline them properly - or, if we don't want to do > tha

Re: [RFC PATCH] integrity: Use a new type for asymmetric signature

2013-03-15 Thread Vivek Goyal
On Thu, Mar 14, 2013 at 11:08:45PM +0200, Kasatkin, Dmitry wrote: > On Thu, Mar 14, 2013 at 10:37 PM, Vivek Goyal wrote: > > On Thu, Mar 14, 2013 at 04:30:28PM -0400, Vivek Goyal wrote: > > > > [..] > >> I thought explicitly using signature format is more intutive. Exporting > >> signature version

Re: [PATCH v2 4/4] ARM: dts: Add adc and thermistors for exynos5250-snow

2013-03-15 Thread Naveen Krishna Ch
On 15 March 2013 15:54, Naveen Krishna Ch wrote: > Doug, > > On 14 March 2013 02:10, Doug Anderson wrote: >> Hook up the exynos5250-snow thermistors via the device tree now that >> there's a driver available to use them. >> >> Signed-off-by: Doug Anderson Tested-by: Naveen Krishna Chatradhi use

<    1   2   3   4   5   6   7   >