[PATCH] HID: thingm: fix workqueue race on remove

2014-09-04 Thread Jiri Kosina
thingm_remove_rgb() needs to flush the workqueue after all the LED classes have been unregistered, otherwise the removal might race with another LED event coming, causing thingm_led_set() to schedule additional work after thingm_remove_rgb() has flushed it. This obviously causes oops later, as

Re: [PATCH 3/4] KVM: x86: inject nested page faults on emulated instructions

2014-09-04 Thread Gleb Natapov
On Tue, Sep 02, 2014 at 05:13:49PM +0200, Paolo Bonzini wrote: > This is required for the following patch to work correctly. If a nested page > fault happens during emulation, we must inject a vmexit, not a page fault. > Luckily we already have the required machinery: it is enough to return > X86E

RE: [PATCH v3] uas: replace WARN_ON_ONCE() with lockdep_assert_held()

2014-09-04 Thread Sharma, Sanjeev
-Original Message- From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] Sent: Tuesday, August 19, 2014 3:01 PM To: Sharma, Sanjeev Cc: kra...@redhat.com; mdharm-...@one-eyed-alien.net; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-s...@vger.kernel.org; Ha

Re: [PATCH] eeepc-laptop: remove possible use of uninitialized value

2014-09-04 Thread Paul Bolle
On Thu, 2014-09-04 at 00:53 +0200, Frans Klaver wrote: > In store_sys_acpi, if count equals zero, or parse_arg()s sscanf call > fails, 'value' remains possibly uninitialized. In that case 'value' > shouldn't be used to produce the store_sys_acpi()s return value. > > Only test the return value of s

Re: task_numa_fault() && TASK_DEAD

2014-09-04 Thread Peter Zijlstra
On Wed, Sep 03, 2014 at 06:08:19PM +0200, Oleg Nesterov wrote: > On 09/02, Oleg Nesterov wrote: > > > > The usage of TASK_DEAD in task_numa_fault() is wrong in any case. > > Rik, I can't understand why task_numa_fault() needs this check at all, > but "if (p->state == TASK_DEAD)" looks certainly wr

Re: [PATCH resend 2/2] usb: serial: xsens_mt: always bind to interface number 1

2014-09-04 Thread Frans Klaver
Johan, I noticed I submitted an error here. Will resend later today. On Mon, Sep 1, 2014 at 11:39 AM, Frans Klaver wrote: > Probe is testing if the current interface provides two bulk endpoints. > While this achieves the goal of only binding to the correct interface, > we already know we can fin

Re: [PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-09-04 Thread Peter Zijlstra
On Wed, Sep 03, 2014 at 05:18:48PM +0200, Oleg Nesterov wrote: > On 09/03, Peter Zijlstra wrote: > > > > On Wed, Sep 03, 2014 at 03:36:40PM +0200, Oleg Nesterov wrote: > > > > > > // Ensure that the previous __set_current_state(RUNNING) can't > > > // leak after spin_unlock_wait() > > > smp_m

Re: [PATCH] PM / sleep: add configurable delay for pm_test

2014-09-04 Thread Pavel Machek
Hi! > When CONFIG_PM_DEBUG=y, we provide a sysfs file (/sys/power/pm_test) for > selecting one of a few suspend test modes, where rather than entering a > full suspend state, the kernel will perform some subset of suspend > steps, wait 5 seconds, and then resume back to normal operation. > > This

Re: [PATCH v5 03/12] sched: fix avg_load computation

2014-09-04 Thread Vincent Guittot
On 4 September 2014 01:43, Tim Chen wrote: > On Wed, 2014-09-03 at 13:09 +0200, Vincent Guittot wrote: >> On 30 August 2014 14:00, Preeti U Murthy wrote: >> > Hi Vincent, >> > >> > On 08/26/2014 04:36 PM, Vincent Guittot wrote: >> >> The computation of avg_load and avg_load_per_task should only t

Re: [kernel.org PATCH] Li Zefan is now the 3.4 stable maintainer

2014-09-04 Thread Li Zefan
Hi Guenter, Sorry for my late reply. On 2014/8/27 12:59, Guenter Roeck wrote: > On Tue, Aug 26, 2014 at 04:08:58PM -0700, Greg KH wrote: >> Li has agreed to continue to support the 3.4 stable kernel tree until >> September 2016. Update the releases.html page on kernel.org to reflect >> this. >>

[PATCH 2/2] usb: serial: xsens_mt: always bind to interface number 1

2014-09-04 Thread Frans Klaver
Probe is testing if the current interface provides two bulk endpoints. While this achieves the goal of only binding to the correct interface, we already know we can find the device on interface number 1. Stop checking the endpoints and just return successfully when interface number 1 is probed. Si

Re: [REGRESSION] "efi: efistub: Convert into static library" and preparation patches

2014-09-04 Thread Matt Fleming
On Wed, 03 Sep, at 02:47:32PM, H. Peter Anvin wrote: > > I think we really have two options: either fix up the GOT (which may be > a null operation, if the GOT is empty) or we add a compile-time check > that the GOT is empty, lest we will keep having these problems. > > Since the GOT fixup loop i

Re: [PATCH 1/3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-04 Thread Sebastian Andrzej Siewior
On 2014-09-04 02:00:03 [+], Chen, Alvin wrote: > > > > > --- a/drivers/gpio/Kconfig > > > +++ b/drivers/gpio/Kconfig > > > @@ -136,7 +136,6 @@ config GPIO_DWAPB > > > tristate "Synopsys DesignWare APB GPIO driver" > > > select GPIO_GENERIC > > > select GENERIC_IRQ_CHIP > > > - depends on

[PATCH 2/3] smp: Adding new function wake_up_all_idle_cpus()

2014-09-04 Thread Chuansheng Liu
Currently kick_all_cpus_sync() can break non-polling idle cpus thru IPI interrupts. But sometimes we need to break the polling idle cpus immediately to reselect the suitable c-state, also for non-idle cpus, we need to do nothing if we try to wake up them. Here adding one new function wake_up_all_

[PATCH 3/3] cpuidle: Using the wake_up_all_idle_cpus() to wake up all idle cpus

2014-09-04 Thread Chuansheng Liu
Currently kick_all_cpus_sync() or smp_call_function() can not break the polling idle cpu immediately. Here using wake_up_all_idle_cpus() which can wake up the polling idle cpu quickly is much helpful for power. Signed-off-by: Chuansheng Liu --- drivers/cpuidle/cpuidle.c |9 ++--- 1 file

[PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-09-04 Thread Chuansheng Liu
Implementing one new API wake_up_if_idle(), which is used to wake up the idle CPU. Suggested-by: Andy Lutomirski Signed-off-by: Chuansheng Liu --- include/linux/sched.h |1 + kernel/sched/core.c | 19 +++ 2 files changed, 20 insertions(+) diff --git a/include/linux/sche

Re: How is pivot_root intended to be used?

2014-09-04 Thread Steven Stewart-Gallus
Thank you, I think I will change the code to be like: int old_root = open("/", O_DIRECTORY); if (-1 == old_root) { perror("open"); return EXIT_FAILURE; } if (-1 == syscall(__NR_pivot_root, ".", ".")) { perror("pivot_root"); return EXIT_FAILURE;

Re: [PATCH v5 09/11] sched: add usage_load_avg

2014-09-04 Thread Vincent Guittot
The update of update_rq_runnable_avg interface is missing for CONFIG_FAIR_GROUP_SCHED in the original patch "[PATCH v5 09/12] sched: add usage_load_avg" Signed-off-by: Vincent Guittot --- Hi Peter, Do you prefer that I sent a new version of "[PATCH v5 09/12] sched: add usage_load_avg" patch wi

Re: [REGRESSION] "efi: efistub: Convert into static library" and preparation patches

2014-09-04 Thread Matt Fleming
On Thu, 04 Sep, at 08:47:57AM, Ard Biesheuvel wrote: > > So how about we: > - add ASSERT(_got == _egot, "GOT entries not supported in > boot/compressed") to the linker script > - #define __nogotentry __attribute__((visibility(hidden))) somewhere > in compiler.h or wherever else it belongs > - add

Re: [PATCH 0/3] lockless sys_times and posix_cpu_clock_get

2014-09-04 Thread Peter Zijlstra
> Peter, Ingo, Andrew, > > Do any of you have an objection to these patches? > > Which tree should I merge them through? > > I am happy to resubmit them against any tree, just let > me know where you want the patches to go. I suppose I can try and stuff them in -tip. I picked up this lot which

[PATCHv4 0/3] new APIs to allocate buffer-cache with user specific flag

2014-09-04 Thread Gioh Kim
Hello, This patch try to solve problem that a long-lasting page caches of ext4 superblock and journaling of superblock disturb page migration. I've been testing CMA feature on my ARM-based platform and found that two page caches cannot be migrated. They are page caches of superblock of ext4 files

Re: [REGRESSION] "efi: efistub: Convert into static library" and preparation patches

2014-09-04 Thread Maarten Lankhorst
Op 04-09-14 om 09:40 schreef Matt Fleming: > On Thu, 04 Sep, at 08:47:57AM, Ard Biesheuvel wrote: >> So how about we: >> - add ASSERT(_got == _egot, "GOT entries not supported in >> boot/compressed") to the linker script >> - #define __nogotentry __attribute__((visibility(hidden))) somewhere >> in

[PATCHv4 3/3] jbd/jbd2: use non-movable memory for the jbd superblock

2014-09-04 Thread Gioh Kim
A long-lasting buffer-cache can distrub page migration so that it must be allocated from non-movable area. The journal_init_inode is creating a buffer-cache for superblock journaling. The superblock exists until system shutdown so that the buffer-cache for the superblock would also exist for a lon

[PATCHv4 2/3] ext4: use non-movable memory for the ext4 superblock

2014-09-04 Thread Gioh Kim
A buffer-cache for superblock is disturbing page migration, because the buffer-cache is not released until unmount. The buffer-cache must be allocated from non-movable area. Signed-off-by: Gioh Kim Reviewed-by: Jan Kara --- fs/ext4/super.c |6 +++--- 1 file changed, 3 insertions(+), 3 delet

Re: OT: Open letter to the Linux World

2014-09-04 Thread Peter Zijlstra
On Mon, Aug 18, 2014 at 08:15:45PM +0200, Alexander Holler wrote: > > Hmm, a sane and maintainable solution would use C++ with which people don't > have to manually build lists or hashes for every structure like in the > kernel (generic programming done right). So you won't find much kernel > deve

[PATCHv4 1/3] fs.c: support buffer cache allocations with gfp modifiers

2014-09-04 Thread Gioh Kim
A buffer cache is allocated from movable area because it is referred for a while and released soon. But some filesystems are taking buffer cache for a long time and it can disturb page migration. New APIs are introduced to allocate buffer cache with user specific flag. *_gfp APIs are for user want

Re: [PATCH] eeepc-laptop: remove possible use of uninitialized value

2014-09-04 Thread Frans Klaver
On Thu, Sep 4, 2014 at 9:08 AM, Paul Bolle wrote: > On Thu, 2014-09-04 at 00:53 +0200, Frans Klaver wrote: >> In store_sys_acpi, if count equals zero, or parse_arg()s sscanf call >> fails, 'value' remains possibly uninitialized. In that case 'value' >> shouldn't be used to produce the store_sys_ac

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-04 Thread Anton Altaparmakov
On 4 Sep 2014, at 03:30, Andrew Morton wrote: > __GFP_FS and __GFP_IO are (or were) for communicating to vmscan: don't > enter the fs for writepage, don't write back swapcache. > > I guess those concepts have grown over time without a ton of thought > going into it. Yes, I suppose that if a file

[PATCH net-next v3 1/2] r8152: change the location of rtl8152_set_mac_address

2014-09-04 Thread Hayes Wang
Exchange the location of rtl8152_set_mac_address() and set_ethernet_addr(). Then, the set_ethernet_addr() could set the MAC address by calling rtl8152_set_mac_address() later. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 34 +- 1 file changed, 17 insert

Re: [PATCH 1/2] perf/x86/intel: Add Haswell-EP uncore support

2014-09-04 Thread Peter Zijlstra
On Fri, Aug 22, 2014 at 07:29:26AM +0200, Andi Kleen wrote: > > diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c > > b/arch/x86/kernel/cpu/perf_event_intel_uncore.c > > index 4785ee8..2485fd9 100644 > > --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c > > +++ b/arch/x86/kernel/cpu/per

Re: [PATCH resend 2/2] usb: serial: xsens_mt: always bind to interface number 1

2014-09-04 Thread Johan Hovold
On Thu, Sep 04, 2014 at 09:12:05AM +0200, Frans Klaver wrote: > > static int xsens_mt_probe(struct usb_serial *serial, > > const struct usb_device_id *id) > > { > > - if (!has_required_endpoints(serial->interface->cur_altsetting)) > > -

Re: [PATCH net-next 2/2] net: exit busy loop when another process is runnable

2014-09-04 Thread Michael S. Tsirkin
On Thu, Sep 04, 2014 at 09:51:33AM +0300, Eliezer Tamir wrote: > On 03/09/2014 10:51, Michael S. Tsirkin wrote: > > On Wed, Sep 03, 2014 at 09:49:10AM +0300, Eliezer Tamir wrote: > >> On 02/09/2014 11:31, Michael S. Tsirkin wrote: > >>> On Tue, Sep 02, 2014 at 09:15:18AM +0300, Eliezer Tamir wrote:

Re: [PATCH v4 00/22] perf: Add infrastructure and support for Intel PT

2014-09-04 Thread Peter Zijlstra
On Tue, Sep 02, 2014 at 02:18:16PM -0600, Mathieu Poirier wrote: > Pawell, many thanks for looping me in. > > I am definitely not a perf-internal guru and as such won't be able to > comment on the implementation. On the flip side it is easy for me to see > how the work on coresight done at Linaro

Re: [PATCH v9 0/6] Per-user clock constraints

2014-09-04 Thread Tomeu Vizoso
On 09/03/2014 07:26 PM, Mike Turquette wrote: > Quoting Tomeu Vizoso (2014-09-03 08:29:07) >> Hi, >> >> I'm sending this v9 in order to fix a few build errors found by Intel's 0day >> build farm. Notable changes are: >> >> * Changes to mxs-saif.c have been folded into 2/6, in order for >> bisecta

Re: [SMP BUG?] the return value of is_smp() is bug?

2014-09-04 Thread Peter Maydell
On 4 September 2014 02:13, long.wanglong wrote: > When i revert the commit bc41b8724f24, the secondary core can boot. > The problem is that qemu doesn't provide emulation of the SCU base > address register. When reading the SCU base, qemu just return 0. You need to upgrade your QEMU -- we improve

RE: [PATCH 5/5] Clocksource: Flextimer: Use Macro for clock source selection.

2014-09-04 Thread Thomas Gleixner
On Thu, 4 Sep 2014, li.xi...@freescale.com wrote: > > So you remove the FTM_SC_PS_MASK without mentioning it in the > > changelog. Either this is by mistake or it wants to be documented WHY > > it is not needed in the first place. > > > > This is just prepare for the other new features in the fut

RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-04 Thread Thomas Gleixner
On Thu, 4 Sep 2014, li.xi...@freescale.com wrote: > > Subject: Re: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource > > read > > API. > > > > On Tue, 26 Aug 2014, Xiubo Li wrote: > > > > > Since the Flextimer device will be implemented in BE mode on > > > LS1 SoC, and in LE mode on

Re: [PATCH] staging: comedi: hwdrv_apci1500: use dev->class_dev in calls to dev_warn()

2014-09-04 Thread Ian Abbott
On 2014-09-04 00:58, Chase Southwood wrote: git-grep reveals that hwdrv_apci1500.c is the only file in comedi that uses dev->hw_dev in calls to dev_{err,warn}(). The rest of the drivers pass dev->class_dev to these macros instead. Switch the dev_warn() calls in this driver to use dev->class_dev

Re: [PATCH] mfd: da9052: Avoid setting read_flag_mask for da9052-i2c driver

2014-09-04 Thread Lee Jones
On Sat, 16 Aug 2014, Axel Lin wrote: > Current code init regmap with &da9052_regmap_config for both da9052-spi and > da9052-i2c drivers. da9052-spi sets the read_flag_mask. > The same setting may be applied for da9052-i2c if da9052-spi driver is loaded > first because they actually use the same re

Re: [PATCH 1/1] PWM Backlight: Fix a bug which could cause the PWM backlight driver use the wrong PWM chip and fail the driver probing if multiple PWM chips exist. This defect could also cause the uni

2014-09-04 Thread Lee Jones
> I'm guessing this is your first patch. > > Please read: Documentation/SubmittingPatches > > A few notes for you search for and read about in the above document. > > - Subject line formatting (short, succinct) > - Commit logs (present, descriptive [what changed and why], succinct) > - Autho

RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-04 Thread li.xi...@freescale.com
> > > > Since the FTM will be in BE mode on LS1 platform, but will be in LE mode > > On LS2 platform. > > > > And ftm_clocksource_read_up() will adapt to this different. > > You are missing the point. Why do you want a conditional in a hot > path? You know at init time whether the thing is BE or L

Re: [PATCH v3 1/4] Documentation/scheduler/sched-deadline.txt: fix terminology and improve clarity

2014-09-04 Thread Juri Lelli
Hi Henrik, On 02/09/14 22:10, Henrik Austad wrote: > On Thu, Aug 28, 2014 at 11:00:26AM +0100, Juri Lelli wrote: >> From: Luca Abeni >> >> Several small changes regarding SCHED_DEADLINE documentation that fix >> terminology and improve clarity and readability: >> >> - "current runtime" becomes "

RE: bit fields && data tearing

2014-09-04 Thread David Laight
From: Benjamin Herrenschmidt > On Wed, 2014-09-03 at 18:51 -0400, Peter Hurley wrote: > > > Apologies for hijacking this thread but I need to extend this discussion > > somewhat regarding what a compiler might do with adjacent fields in a > > structure. > > > > The tty subsystem defines a large

RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-04 Thread Thomas Gleixner
On Thu, 4 Sep 2014, li.xi...@freescale.com wrote: > > > > > > Since the FTM will be in BE mode on LS1 platform, but will be in LE mode > > > On LS2 platform. > > > > > > And ftm_clocksource_read_up() will adapt to this different. > > > > You are missing the point. Why do you want a conditional in

RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-04 Thread li.xi...@freescale.com
Hi Thomas, > > > > Since the FTM will be in BE mode on LS1 platform, but will be in LE mode > > > > On LS2 platform. > > > > > > > > And ftm_clocksource_read_up() will adapt to this different. > > > > > > You are missing the point. Why do you want a conditional in a hot > > > path? You know at ini

Re: [PATCH v9 5/6] clk: Add floor and ceiling constraints to clock rates

2014-09-04 Thread Tomeu Vizoso
On 09/04/2014 02:53 AM, Mike Turquette wrote: > Quoting Stephen Boyd (2014-09-03 16:39:37) >> On 09/03/14 08:33, Tomeu Vizoso wrote: >>> +int clk_set_ceiling_rate(struct clk *clk_user, unsigned long rate) >>> +{ >>> + struct clk_core *clk = clk_to_clk_core(clk_user); >>> + >>> + WARN(rate >

Re: [PATCH v4] x86, hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-04 Thread Wanpeng Li
On Thu, Sep 04, 2014 at 07:20:34AM +0200, Ingo Molnar wrote: > >* Wanpeng Li wrote: > >> BUG: unable to handle kernel NULL pointer dereference at 0004 >> IP: [..] find_busiest_group >> PGD 5a9d5067 PUD 13067 PMD 0 >> Oops: [#3] SMP >> [...] >> Call Trace: >> load_balance >> ? _raw

Re: [PATCH v3 2/4] Documentation/scheduler/sched-deadline.txt: Rewrite section 4 intro

2014-09-04 Thread Juri Lelli
Hi Henrik, On 02/09/14 22:14, Henrik Austad wrote: > On Thu, Aug 28, 2014 at 11:00:27AM +0100, Juri Lelli wrote: >> Section 4 intro was still describing the old interface. Rewrite it. >> >> Signed-off-by: Juri Lelli >> Signed-off-by: Luca Abeni >> Cc: Randy Dunlap >> Cc: Peter Zijlstra >> Cc:

Re: [PATCH v4 01/11] cpumask: factor out show_cpumap into separate helper function

2014-09-04 Thread Sudeep Holla
Hi Peter, On 04/09/14 07:20, Peter Zijlstra wrote: On Wed, Sep 03, 2014 at 06:00:07PM +0100, Sudeep Holla wrote: diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 2997af6d2ccd..26d8348292dd 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -11,6 +11,8 @@

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-04 Thread Ulf Hansson
Hi On 3 September 2014 15:08, Jean-Michel Hautbois wrote: > 2014-09-03 11:09 GMT+02:00 Ulf Hansson : >> On 3 September 2014 11:02, Adrian Hunter wrote: >>> On 09/03/2014 11:30 AM, Ulf Hansson wrote: On 2 September 2014 17:49, Jean-Michel Hautbois wrote: > This property is useful w

[PATCH] ipmi: Clear drvdata when interface is removed by hotmod

2014-09-04 Thread Takao Indoh
This patch fixes a bug on hotmod removing. After ipmi interface is removed using hotmod, kernel panic occurs when rmmod impi_si. For example, try this: # echo "remove,"`cat /proc/ipmi/0/params` > \ /sys/module/ipmi_si/parameters/hotmod # rmmod ipmi_si Then, rmmod fails with the following mess

Re: bit fields && data tearing

2014-09-04 Thread Mikael Pettersson
Benjamin Herrenschmidt writes: > On Wed, 2014-09-03 at 18:51 -0400, Peter Hurley wrote: > > > Apologies for hijacking this thread but I need to extend this discussion > > somewhat regarding what a compiler might do with adjacent fields in a > > structure. > > > > The tty subsystem defines

Re: [PATCH v4] x86, hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-04 Thread Wanpeng Li
On Thu, Sep 04, 2014 at 02:40:07PM +0900, Yasuaki Ishimatsu wrote: >(2014/09/04 14:20), Ingo Molnar wrote: >> >>* Wanpeng Li wrote: >> >>>BUG: unable to handle kernel NULL pointer dereference at 0004 >>>IP: [..] find_busiest_group >>>PGD 5a9d5067 PUD 13067 PMD 0 >>>Oops: [#3] SMP

[PATCH net-next v3 2/2] r8152: use eth_hw_addr_random

2014-09-04 Thread Hayes Wang
If the hw doesn't have a valid MAC address, give a random one and set it to the hw. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c in

Re: [PATCH resend 2/2] usb: serial: xsens_mt: always bind to interface number 1

2014-09-04 Thread Frans Klaver
On Thu, Sep 04, 2014 at 10:15:22AM +0200, Johan Hovold wrote: > On Thu, Sep 04, 2014 at 09:12:05AM +0200, Frans Klaver wrote: > > > > static int xsens_mt_probe(struct usb_serial *serial, > > > const struct usb_device_id *id) > > > { > > > - if (!has_

Re: [PATCH v10 03/19] arm: fiq: Replace default FIQ handler

2014-09-04 Thread Daniel Thompson
On 03/09/14 20:34, Russell King - ARM Linux wrote: > On Wed, Sep 03, 2014 at 11:21:30AM +0100, Daniel Thompson wrote: >> On 02/09/14 17:42, Russell King - ARM Linux wrote: >>> Yes, it does, because unlike the x86 community, we have a wide range >>> of platforms, and platform code does not go throug

Re: mm: BUG in unmap_page_range

2014-09-04 Thread Sasha Levin
On 08/29/2014 09:23 PM, Sasha Levin wrote: > On 08/27/2014 11:26 AM, Mel Gorman wrote: >> > diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h >> > index 281870f..ffea570 100644 >> > --- a/include/asm-generic/pgtable.h >> > +++ b/include/asm-generic/pgtable.h >> > @@ -723,6

[PATCH net-next v3 0/2] r8152: random MAC address

2014-09-04 Thread Hayes Wang
If the interface has invalid MAC address, it couldn't be used. In order to let it work normally, give a random one. v3: Remove ether_addr_copy(dev->perm_addr, dev->dev_addr); v2: Use "%pM" format specifier for printing a MAC address. Hayes Wang (2): r8152: change the location of rt

Re: [PATCH] mm: ksm: Remove unused function process_timeout()

2014-09-04 Thread Chintan Pandya
On 08/11/2014 04:52 PM, Murilo Opsfelder Araujo wrote: This patch fixes compilation warning: mm/ksm.c:1711:13: warning: ‘process_timeout’ defined but not used [-Wunused-function] Signed-off-by: Murilo Opsfelder Araujo --- mm/ksm.c | 5 - 1 file changed, 5 deletions(-) diff --git a/mm/k

Re: [PATCH 1/3] mfd: max77693: Initialize haptic register map

2014-09-04 Thread Lee Jones
On Mon, 01 Sep 2014, Jaewon Kim wrote: > This patch add regmap_haptic initialization to use haptic register map > in haptic device driver. > > Signed-off-by: Jaewon Kim > Acked-by: Chanwoo Choi > --- > drivers/mfd/max77693.c | 21 ++--- > 1 file changed, 18 insertions(+), 3 d

Re: [PATCH 0/2] Add exit_prepare callback to the cpufreq_driver interface.

2014-09-04 Thread Preeti U Murthy
Hi, I went through the cpufreq code and the previous discussion in the context of this patch and I propose the below patch. Please let me know if it misses something that you all had discussed. On 09/04/2014 11:38 AM, Viresh Kumar wrote: > On 19 March 2014 19:49, Rafael J. Wysocki wrote: > >> T

Re: bit fields && data tearing

2014-09-04 Thread Jakub Jelinek
On Thu, Sep 04, 2014 at 10:57:40AM +0200, Mikael Pettersson wrote: > Benjamin Herrenschmidt writes: > > On Wed, 2014-09-03 at 18:51 -0400, Peter Hurley wrote: > > > > > Apologies for hijacking this thread but I need to extend this discussion > > > somewhat regarding what a compiler might do wi

Re: [PATCH 3/3] mfd: max77693: add haptic of_compatible in mfd_cell

2014-09-04 Thread Lee Jones
On Mon, 01 Sep 2014, Jaewon Kim wrote: > This patch add haptic of_compatible in order to use the Haptic device driver > using devicetree. and added the related documentation and example. > > Signed-off-by: Jaewon Kim > Acked-by: Chanwoo Choi > --- > Documentation/devicetree/bindings/mfd/max776

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-04 Thread Dave Chinner
On Wed, Sep 03, 2014 at 04:10:00PM -0700, Andrew Morton wrote: > On Wed, 3 Sep 2014 13:54:54 +0800 Junxiao Bi wrote: > > > commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O > > during memory allocation") > > introduces PF_MEMALLOC_NOIO flag to avoid doing I/O inside memor

Re: [PATCH 0/2] Add exit_prepare callback to the cpufreq_driver interface.

2014-09-04 Thread Viresh Kumar
On 4 September 2014 14:40, Preeti U Murthy wrote: > cpufreq: Allow stop CPU callback to be used by all cpufreq drivers > > Commit 367dc4aa introduced the stop CPU callback for intel_pstate > drivers. During the CPU_DOWN_PREPARE stage, this callback is invoked > so that drivers can take some action

Re: [PATCH v6 2/4] drivers/watchdog/menf21bmc_wdt: introduce MEN 14F021P00 BMC Watchdog driver

2014-09-04 Thread Lee Jones
Wim, We're still waiting on your Ack? > Added driver to support the 14F021P00 BMC Watchdog. > The BMC is a Board Management Controller including watchdog functionality. > > Signed-off-by: Andreas Werner > --- > drivers/watchdog/Kconfig | 10 ++ > drivers/watchdog/Makefile| 1

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-04 Thread Dave Chinner
On Wed, Sep 03, 2014 at 01:54:54PM +0800, Junxiao Bi wrote: > commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O > during memory allocation") > introduces PF_MEMALLOC_NOIO flag to avoid doing I/O inside memory allocation, > __GFP_IO is cleared > when this flag is set, but __

Re: [PATCH v4 01/11] cpumask: factor out show_cpumap into separate helper function

2014-09-04 Thread Peter Zijlstra
On Thu, Sep 04, 2014 at 10:03:25AM +0100, Sudeep Holla wrote: > If I don't, every file including this header generates "warning: > ‘cpumap_copy_to_buf’ defined but not used". Alternatively I can just > declare here and define it elsewhere but I could not find more apt > place than this. Any suggest

Re: [PATCH 3/4] watchdog: add driver for Ricoh RN5T618 watchdog

2014-09-04 Thread Lee Jones
Wim, Still waiting on a Watchdog Ack, so I can take this set in. > This adds a driver for the watchdog timer available in Ricoh RN5T618 > PMIC. The device supports a programmable expiration time of 1, 8, 32 > or 128 seconds. > > Signed-off-by: Beniamino Galvani > --- > drivers/watchdog/Kconfig

Re: [PATCH resend 2/2] usb: serial: xsens_mt: always bind to interface number 1

2014-09-04 Thread Johan Hovold
On Thu, Sep 04, 2014 at 11:05:47AM +0200, Frans Klaver wrote: > On Thu, Sep 04, 2014 at 10:15:22AM +0200, Johan Hovold wrote: > > On Thu, Sep 04, 2014 at 09:12:05AM +0200, Frans Klaver wrote: > > > > > > static int xsens_mt_probe(struct usb_serial *serial, > > > >

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-04 Thread Dave Chinner
On Wed, Sep 03, 2014 at 07:30:58PM -0700, Andrew Morton wrote: > > PF_MEMALLOC_NOIO is only set for some special processes. I think it > > won't affect much. > > Maybe not now. But once we add hacks like this, people say "goody" and > go and use them rather than exerting the effort to sort out th

Re: [PATCH] checkpatch: allow optional shorter config descriptions

2014-09-04 Thread Joe Perches
On Wed, 2014-09-03 at 09:32 -0700, Vadim Bendebury wrote: > This script is used by many other projects, and in some of them the > requirement of at least 4 line long description for all Kconfig items > is excessive. This patch adds a command line option to control the > required minimum length. >

Re: [PATCH v4 4/8] arm: use fixmap for text patching when text is RO

2014-09-04 Thread Will Deacon
On Wed, Sep 03, 2014 at 10:43:58PM +0100, Kees Cook wrote: > On Wed, Aug 20, 2014 at 5:28 AM, Kees Cook wrote: > > On Tue, Aug 19, 2014 at 7:29 AM, Will Deacon wrote: > >> On Wed, Aug 13, 2014 at 06:06:29PM +0100, Kees Cook wrote: > >>> +static void __kprobes *patch_map(void *addr, int fixmap, un

Re: [PATCH resend 2/2] usb: serial: xsens_mt: always bind to interface number 1

2014-09-04 Thread Frans Klaver
On Thu, Sep 04, 2014 at 11:22:26AM +0200, Johan Hovold wrote: > On Thu, Sep 04, 2014 at 11:05:47AM +0200, Frans Klaver wrote: > > > > The new version is applied, built and tested with some actual hardware > > on 3.17-rc3. > > Good. Both patches applied now. Thanks again, Frans -- To unsubscribe

Re: [PATCH v2.1 1/7] Adding Skyworks SKY81452 MFD driver

2014-09-04 Thread Lee Jones
You need a nice commit log here. > v2.1: > Clear mfd_cells to zero before setting. > Added of_compatible into mfd_cells The changelog should be below the '---' so it doesn't appear in the commit log. > --- > drivers/mfd/Kconfig | 12 + > drivers/mfd/Makefile | 1 + > dri

[git pull] drm fixes

2014-09-04 Thread Dave Airlie
Hi Linus, just i915 and vmwgfx fixes, i915 contains a bunch of fixes for recent regressions in outputs, vmwgfx fixes a possible loop for ever and a bad return code. Dave. The following changes since commit 59753a805499f1ffbca4ac0a24b3dff67bf1: Merge tag 'backlight-fixes-3.17' of git://

Re: [PATCH 0/3 v5] sched: Rewrite per entity runnable load average tracking

2014-09-04 Thread Yuyang Du
Ping Peter and Ingo, and Paul and Ben. Yuyang On Fri, Aug 01, 2014 at 08:30:59AM +0800, Yuyang Du wrote: > v5 changes: > > Thank Peter intensively for reviewing this patchset in detail and all his > comments. > And Mike for general and cgroup pipe-test. Morten, Ben, and Vincent in the > discus

[PATCH] ARM: clk-imx6sl: correct the pxp and epdc axi clock selections

2014-09-04 Thread Fancy Fang
The parent clocks of IMX6SL_CLK_PXP_AXI_SEL and IMX6SL_CLK_EPDC_AXI_SEL clocks are not the same. So split the epdc_pxp_sels into two different clock selections 'pxp_axi_sels' and 'epdc_axi_sels'. Signed-off-by: Fancy Fang Signed-off-by: Robby Cai Acked-by: Shawn Guo --- arch/arm/mach-imx/clk-i

Re: [PATCH v3 3/4] Documentation/scheduler/sched-deadline.txt: improve and clarify AC bits

2014-09-04 Thread Juri Lelli
Hi, On 03/09/14 10:18, Juri Lelli wrote: > Hi, > > On 03/09/14 07:49, Luca Abeni wrote: >> Hi, >> >> On 09/02/2014 11:45 PM, Henrik Austad wrote: >> [...] + On multiprocessor systems with global EDF scheduling (non partitioned + systems), a sufficient test for schedulability can not be

[PATCH] mfd: pcf50633: use sprintf directly

2014-09-04 Thread Andy Shevchenko
When dump a content of the registers let's use snprintf() directly with %*ph specifier. Signed-off-by: Andy Shevchenko --- drivers/mfd/pcf50633-core.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c index c87f7a0..

Re: [PATCH v4] x86, hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-04 Thread Wanpeng Li
Hi Ingo, On Thu, Sep 04, 2014 at 04:56:41PM +0800, Wanpeng Li wrote: >On Thu, Sep 04, 2014 at 07:20:34AM +0200, Ingo Molnar wrote: >> >>* Wanpeng Li wrote: >> >>> BUG: unable to handle kernel NULL pointer dereference at 0004 >>> IP: [..] find_busiest_group >>> PGD 5a9d5067 PUD 13067 PM

Re: [PATCH v6 2/3] mfd: qcom-rpm: Driver for the Qualcomm RPM

2014-09-04 Thread Lee Jones
On Mon, 25 Aug 2014, Bjorn Andersson wrote: > Driver for the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 > and 8064 based devices. The driver exposes resources that child drivers > can operate on; to implementing regulator, clock and bus frequency > drivers. > > Signed-off-by: Bjorn

Re: [PATCH 04/19] serial: samsung: Remove support for legacy clock code

2014-09-04 Thread Paul Bolle
On Wed, 2014-07-16 at 16:43 +0200, Tomasz Figa wrote: > On 16.07.2014 16:35, Paul Bolle wrote: > > On Wed, 2014-07-16 at 16:26 +0200, Paul Bolle wrote: > >> On Wed, 2014-07-16 at 14:43 +0200, Tomasz Figa wrote: > >>> That's right. Apparently I missed them. I guess that's not critical, > >>> though,

Re: [PATCH v8 2/3] mfd: Add hi6421 PMIC core driver

2014-09-04 Thread Lee Jones
On Mon, 01 Sep 2014, Guodong Xu wrote: > This adds driver to support HiSilicon Hi6421 PMIC. Hi6421 includes multi- > functions, such as regulators, codec, ADCs, Coulomb counter, etc. > This driver includes core APIs _only_. > > Drivers for individul components, like voltage regulators, are > impl

Re: [PATCH 04/19] serial: samsung: Remove support for legacy clock code

2014-09-04 Thread Paul Bolle
[Use Tomasz's new address and add Sylwester.] On Thu, 2014-09-04 at 11:39 +0200, Paul Bolle wrote: > On Wed, 2014-07-16 at 16:43 +0200, Tomasz Figa wrote: > > On 16.07.2014 16:35, Paul Bolle wrote: > > > On Wed, 2014-07-16 at 16:26 +0200, Paul Bolle wrote: > > >> On Wed, 2014-07-16 at 14:43 +0200,

Re: [PATCH v8 1/3] Documentation: mfd: add docs for hi6421 dt

2014-09-04 Thread Lee Jones
On Mon, 01 Sep 2014, Guodong Xu wrote: > Add documentation for HiSilicon Hi6421 PMIC dt binding. > > Signed-off-by: Guodong Xu > --- > Documentation/devicetree/bindings/mfd/hi6421.txt | 38 > > 1 file changed, 38 insertions(+) > create mode 100644 Documentation/device

[PATCH] [media] videobuf-dma-contig: replace vm_iomap_memory() with remap_pfn_range().

2014-09-04 Thread Fancy Fang
When user requests V4L2_MEMORY_MMAP type buffers, the videobuf-core will assign the corresponding offset to the 'boff' field of the videobuf_buffer for each requested buffer sequentially. Later, user may call mmap() to map one or all of the buffers with the 'offset' parameter which is equal to its

[PATCH] ARM: clk-imx6sl: correct the pxp and epdc axi clock selections

2014-09-04 Thread Fancy Fang
The parent clocks of IMX6SL_CLK_PXP_AXI_SEL and IMX6SL_CLK_EPDC_AXI_SEL clocks are not the same. So split the epdc_pxp_sels into two different clock selections 'pxp_axi_sels' and 'epdc_axi_sels'. Signed-off-by: Fancy Fang Signed-off-by: Robby Cai Acked-by: Shawn Guo --- arch/arm/mach-imx/clk-i

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-04 Thread Jean-Michel Hautbois
Hi Ulf, > I am not sure adding a DT binding for non access to rpmb would be > needed. At least until we heard of a similar case as Adrian describes > but for rpmb. > > BTW, I just posted a patch which disabled partition scan of the boot > area, what to you think about that? > http://marc.info/?l=l

Re: [PATCH v10 03/19] arm: fiq: Replace default FIQ handler

2014-09-04 Thread Russell King - ARM Linux
On Thu, Sep 04, 2014 at 10:09:20AM +0100, Daniel Thompson wrote: > On 03/09/14 20:34, Russell King - ARM Linux wrote: > > I would say that the ARM specific changes to entry-armv.S and setup.c > > are correct. All that you're doing there is to replace the existing > > default no-op FIQ handler with

Re: Some questions about DEBUG_PAGEALLOC on ARMv8

2014-09-04 Thread Catalin Marinas
Hi Zhichang, (cc'ing Steve Capper for the huge page stuff) On Fri, Aug 22, 2014 at 01:38:26PM +0100, zhichang.yuan wrote: > I am working to implement the DEBUG_PAGEALLOC on ARMv8. I assume that's the arm64 kernel. > After i investigated the DEBUG_PAGEALLOC implementation on x86 arch, > some que

[PATCH V1 1/2] ARM: clk-imx6q: refine clock tree for ASRC

2014-09-04 Thread Shengjiu Wang
ASRC has "asrc", "asrc_ipg", "asrc_mem" clocks, and they share the same gate bits. Signed-off-by: Shengjiu Wang --- arch/arm/mach-imx/clk-imx6q.c |5 - include/dt-bindings/clock/imx6qdl-clock.h |4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/a

[PATCH V1 2/2] ARM: clk-imx6q: refine clock tree for SSI

2014-09-04 Thread Shengjiu Wang
Each SSI has "ssi", "ssi_ipg" clocks, and they share same gate bits. Signed-off-by: Shengjiu Wang --- arch/arm/mach-imx/clk-imx6q.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c index d5bf1e2..013d

Re: bit fields && data tearing

2014-09-04 Thread Benjamin Herrenschmidt
On Thu, 2014-09-04 at 08:43 +, David Laight wrote: > From: Benjamin Herrenschmidt > > On Wed, 2014-09-03 at 18:51 -0400, Peter Hurley wrote: > > > > > Apologies for hijacking this thread but I need to extend this discussion > > > somewhat regarding what a compiler might do with adjacent field

Urgent and Confidencial

2014-09-04 Thread Attorney Peter Kono
Dear Friend This is Attorney Peter Kono again; I really do not mean to waste your time. Considering the fact that this is a £16,000,000.00 British Pounds.deal shear rate 50/50 % and it's bank to bank wire trasaction within three workind days. I carefully contact you due to many Internet frauds

Re: [PATCH 24/24] Add documentation about ARM64 ILP32 ABI

2014-09-04 Thread Arnd Bergmann
On Wednesday 03 September 2014 14:19:18 Andrew Pinski wrote: > +This document describes the ILP32 syscall ABI and where it differs > +from the generic linux syscall interface. > +ILP32 sets __kernel_long_t and __kernel_ulong_t both to 64bit > +(long long). This effects the following types: > +* ti

Re: [PATCH -v4] x86: only load initrd above 4g on second try

2014-09-04 Thread Matt Fleming
On Wed, 03 Sep, at 09:50:07PM, Yinghai Lu wrote: > Mantas found that after commit 4bf7111f5016 ("x86/efi: Support initrd > loaded above 4G"), the kernel freezes at the earliest possible moment > when trying to boot via UEFI on Asus laptop. > > Revert to old way to load initrd under 4G on first try

Re: [PATCH 0/2] Add exit_prepare callback to the cpufreq_driver interface.

2014-09-04 Thread Preeti U Murthy
On 09/04/2014 02:46 PM, Viresh Kumar wrote: > On 4 September 2014 14:40, Preeti U Murthy wrote: >> cpufreq: Allow stop CPU callback to be used by all cpufreq drivers >> >> Commit 367dc4aa introduced the stop CPU callback for intel_pstate >> drivers. During the CPU_DOWN_PREPARE stage, this callback

Re: [PATCH v10 03/19] arm: fiq: Replace default FIQ handler

2014-09-04 Thread Daniel Thompson
On 04/09/14 10:45, Russell King - ARM Linux wrote: > On Thu, Sep 04, 2014 at 10:09:20AM +0100, Daniel Thompson wrote: >> On 03/09/14 20:34, Russell King - ARM Linux wrote: >>> I would say that the ARM specific changes to entry-armv.S and setup.c >>> are correct. All that you're doing there is to r

Re: [PATCH] mfd: pcf50633: use sprintf directly

2014-09-04 Thread Lee Jones
On Thu, 04 Sep 2014, Andy Shevchenko wrote: > When dump a content of the registers let's use snprintf() directly with %*ph > specifier. > > Signed-off-by: Andy Shevchenko > --- > drivers/mfd/pcf50633-core.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) Applied, thanks. > diff --

  1   2   3   4   5   6   7   8   >