Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Kirill A. Shutemov
On Tue, Feb 03, 2015 at 09:47:18AM +, Mel Gorman wrote: > On Mon, Feb 02, 2015 at 02:22:36PM -0800, Dave Hansen wrote: > > On 02/02/2015 08:55 AM, Mel Gorman wrote: > > > This patch identifies when a thread is frequently calling MADV_DONTNEED > > > on the same region of memory and starts ignori

Re: [Patch v3] firmware: dmi-sysfs: add SMBIOS entry point area raw attribute

2015-02-03 Thread Matt Fleming
On Wed, 28 Jan, at 05:56:25PM, Ivan Khoronzhuk wrote: > >diff --git a/drivers/firmware/dmi-sysfs.c b/drivers/firmware/dmi-sysfs.c > >index e0f1cb3..61b6a38 100644 > >--- a/drivers/firmware/dmi-sysfs.c > >+++ b/drivers/firmware/dmi-sysfs.c > >@@ -29,6 +29,8 @@ > > #define MAX_ENTRY_TYPE 255 /* Most

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Mel Gorman
On Mon, Feb 02, 2015 at 02:35:41PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 22:18:24 + Mel Gorman wrote: > > > > Is there something > > > preventing this from being addressed within glibc? > > > > I doubt it other than I expect they'll punt it back and blame either the > > applicati

Re: MADV_DONTNEED semantics? Was: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Kirill A. Shutemov
On Tue, Feb 03, 2015 at 09:19:15AM +0100, Vlastimil Babka wrote: > [CC linux-api, man pages] > > On 02/02/2015 11:22 PM, Dave Hansen wrote: > > On 02/02/2015 08:55 AM, Mel Gorman wrote: > >> This patch identifies when a thread is frequently calling MADV_DONTNEED > >> on the same region of memory a

Re: [PATCH 3/4] sched: Pull preemption disablement to __schedule() caller

2015-02-03 Thread Peter Zijlstra
On Mon, Feb 02, 2015 at 06:53:45PM +0100, Frederic Weisbecker wrote: > It looks like preempt_count_add/inc() mostly imply entering a context that we > want > to be seen right away (thus want barrier() after) and preempt_count_sub/dec() > mostly > want previous work to be visible before re-enablin

Re: [PATCH_V4 1/3] dt: usb: jz4740: Add DT binding document for OHCI

2015-02-03 Thread Zubair Lutfullah Kakakhel
On 03/02/15 10:32, Lars-Peter Clausen wrote: > On 02/03/2015 11:17 AM, Zubair Lutfullah Kakakhel wrote: > [...] >> V4 Changes >> Removed clock binding because of pending work in clock tree. Will add >> binding later. Rather than introduce a bad binding now and change later. > > But this patch is

[PATCH_V4 0/3] sound:soc: jz4740: Add DT, dynamic sampling

2015-02-03 Thread Zubair Lutfullah Kakakhel
Hi, Here are a few simple patches for the jz4740. First adds dynamic sampling support to jz4740-i2s. Then two to add a simple binding and DT support. Then a patch to set the clock rate for i2s. These are in preparation for jz4780 and ci20 later on. Patches are based on 3.19-rc7. Quite disjoint

[PATCH_V4 1/3] sound: soc: jz4740: Add dynamic sampling rate support to jz4740-i2s

2015-02-03 Thread Zubair Lutfullah Kakakhel
The div clock register is not modified during jz4740_i2s_hw_params. Hence, default sampling rates are actually used regardless of sampling rates input from userspace. This patch adds support to calculate the value of the divider from the parameters passed from userspace and update the relevant div

[PATCH_V4 2/3] dt: sound: jz4740: Add binding documentation for jz4740-i2s

2015-02-03 Thread Zubair Lutfullah Kakakhel
This patch adds binding for the jz4740-i2s driver. Signed-off-by: Zubair Lutfullah Kakakhel Acked-by: Lars-Peter Clausen --- The jz4740 is platform only at the moment. But DT support is being added See http://patchwork.linux-mips.org/bundle/paulburton/ci20-v3.20/ V4 changes: Added Acked-by: L

Re: [PATCH 1/6] x86/intel_cat: Intel Cache Allocation Technology detection

2015-02-03 Thread Matt Fleming
On Tue, 27 Jan, at 04:00:04PM, Vikas Shivappa wrote: > This patch adds support for the new Cache Allocation Technology (CAT) > feature found in future Intel Xeon processors. It includes CPUID > enumeration routines for CAT and new values to track CAT resources to > the cpuinfo_x86 structure. > >

[PATCH] ath9k_htc: add adaptive usb flow control to repair soft lockup with monitor mode

2015-02-03 Thread yuweizheng
From: Yuwei Zheng In the environment with heavy wifi traffic, set the ar9271 into monitor mode, will trigger a deadloop panic. The ath9k_hif_usb_rx_cb function excute on the interrupt context, and ath9k_rx_tasklet excute on the soft irq context. In other words, the ath9k_hif_usb_rx_cb have m

[PATCH_V4 3/3] sound: soc: jz4740: Add DT support to jz4740-i2s driver

2015-02-03 Thread Zubair Lutfullah Kakakhel
This patch adds device tree support for the jz4740 driver. Signed-off-by: Zubair Lutfullah Kakakhel Acked-by: Lars-Peter Clausen --- V4 changes: Added Acked-by: Lars-Peter Clausen V2 changes: Added ifdef config_of --- sound/soc/jz4740/jz4740-i2s.c | 10 ++ 1 file changed, 10 insertions

[PATCH] pwm: Delete an unnecessary check before the function call "of_node_put"

2015-02-03 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 3 Feb 2015 11:54:28 +0100 The of_node_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- driver

Re: [RFC] change non-atomic bitops method

2015-02-03 Thread Andrew Morton
On Tue, 3 Feb 2015 16:42:14 +0800 "Wang, Yalin" wrote: > I make a change in kernel to test hit/miss ratio: Neat, thanks. > > ... > > After use the phone some time: > root@D5303:/ # cat /proc/meminfo > VmallocUsed: 10348 kB > VmallocChunk: 75632 kB > __set_bit_miss_count:10002 __set_

Re: [PATCH RFC] Make rcu_dereference_raw() safe for NMI etc.

2015-02-03 Thread Peter Zijlstra
On Mon, Feb 02, 2015 at 11:55:33AM -0800, Paul E. McKenney wrote: > As promised/threatened on IRC. > > Thanx, Paul > > > > rcu: Reverse rcu_dereference_check() condition

Re: [Xen-devel] [PATCH v5 1/2] xen: add xen_is_preemptible_hypercall()

2015-02-03 Thread David Vrabel
On 27/01/15 01:51, Luis R. Rodriguez wrote: > > +#ifndef CONFIG_PREEMPT > +extern struct { char _entry[32]; } preemptible_hypercall_page[]; > + > +static inline bool xen_is_preemptible_hypercall(struct pt_regs *regs) > +{ > + return !user_mode_vm(regs) && > + regs->ip >= (unsigned

Re: [PATCH] Remove might_sleep from wait_event_cmd

2015-02-03 Thread Peter Zijlstra
On Tue, Feb 03, 2015 at 09:12:53AM +1100, NeilBrown wrote: > I support this patch. It should hopefully already be en-route to tip. > However in case it doesn't get in, I've queued up a patch to change raid5.c > to use __wait_event_cmd instead... So those primitives are useful in their own; their

[PATCH v2 2/3] ARM: EXYNOS: Constify exynos_pm_data and of_device_id array

2015-02-03 Thread Krzysztof Kozlowski
The 'exynos5420_pm_data' and of_device_id array are not modified and can be made const. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch. --- arch/arm/mach-exynos/suspend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/suspend.

[PATCH v2 1/3] ARM: EXYNOS: Add missing static to file-scope declarations

2015-02-03 Thread Krzysztof Kozlowski
The 'pm_data', 'exynos_release_ret_regs', 'exynos3250_release_ret_regs' and 'exynos5420_release_ret_regs' are not exported nor used outside of suspend.c file. Make them static. This fixes following sparse warnings: arch/arm/mach-exynos/suspend.c:83:23: warning: symbol 'pm_data' was not declared.

[PATCH v2 3/3] ARM: EXYNOS: Remove left over 'extra_save'

2015-02-03 Thread Krzysztof Kozlowski
Since 32b0aa9aaeb4 ("ARM: EXYNOS: Remove i2c sys configuration related code") the Exynos 5250 no longer saves additional registers under 'exynos_pm_data.extra_save' field. No one else uses this code so get rid of it making also 'exynos_pm_data' const everywhere. Signed-off-by: Krzysztof Kozlowski

Re: MADV_DONTNEED semantics? Was: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Mel Gorman
On Tue, Feb 03, 2015 at 09:19:15AM +0100, Vlastimil Babka wrote: > [CC linux-api, man pages] > > On 02/02/2015 11:22 PM, Dave Hansen wrote: > > On 02/02/2015 08:55 AM, Mel Gorman wrote: > >> This patch identifies when a thread is frequently calling MADV_DONTNEED > >> on the same region of memory a

Re: Linux 3.19-rc5

2015-02-03 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, Jan 29, 2015 at 05:25:07PM -0800, Linus Torvalds wrote: > > > PeterZ, please don't make "debugging" patches like this. Ever > > again. Because this was just stupid, and it took me too long > > to realize that despite the warning being shut up, the debug > > p

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Mel Gorman
On Tue, Feb 03, 2015 at 12:47:56PM +0200, Kirill A. Shutemov wrote: > On Tue, Feb 03, 2015 at 09:47:18AM +, Mel Gorman wrote: > > On Mon, Feb 02, 2015 at 02:22:36PM -0800, Dave Hansen wrote: > > > On 02/02/2015 08:55 AM, Mel Gorman wrote: > > > > This patch identifies when a thread is frequentl

[tip:sched/urgent] sched/wait: Remove might_sleep() from wait_event_cmd()

2015-02-03 Thread tip-bot for Mikulas Patocka
Commit-ID: 3e87523897e18a3e17fc8955ed795188be737ff1 Gitweb: http://git.kernel.org/tip/3e87523897e18a3e17fc8955ed795188be737ff1 Author: Mikulas Patocka AuthorDate: Mon, 2 Feb 2015 09:39:02 -0500 Committer: Ingo Molnar CommitDate: Tue, 3 Feb 2015 12:14:25 +0100 sched/wait: Remove might_s

Re: [GIT PULL] x86/vdso for 3.20

2015-02-03 Thread Ingo Molnar
* Andy Lutomirski wrote: > Hi Ingo and Thomas, > > Please consider pulling this trivial fix for tip:x86/vdso. > > Thanks, > Andy > > The following changes since commit c59c961ca511dc7ee2f4f7e9c224d16f5c76ca6e: > > Merge branch 'drm-fixes' of > git://people.freedesktop.org/~airlied/linux (2

Re: [GIT PULL] x86/asm changes for 3.20

2015-02-03 Thread Ingo Molnar
* Andy Lutomirski wrote: > Hi Ingo and Thomas, > > Please consider pulling for x86/asm. The sysret stuff hasn't been in > -next, but it's been floating around for a while, and got a reasonably > favorable reception. > > If you think it's too late for the sysret stuff for 3.20, then please > p

Re: [GIT PULL] liblockdep fixes for v3.19

2015-02-03 Thread Ingo Molnar
* Sasha Levin wrote: > Hi Ingo, > > Two fixes for liblockdep. One prevents git from trying to track the generated > .so libraries, and the other avoids mixups with header files when building > liblockdep inside a kernel tree that doesn't match the one being currently > used in the system. > >

Re: [GIT PULL] aio: fix sleeping while TASK_INTERRUPTIBLE

2015-02-03 Thread Peter Zijlstra
On Sun, Feb 01, 2015 at 05:18:17PM -0800, Linus Torvalds wrote: > Ahh. That would be a bug, yes, but it wouldn't be one in the aio code. > > If somebody just does a "schedule()" and thinks that their own private > events are the only thing that can wake it up, and doesn't use one of > the millions

[PATCH] ARM: berlin: add a defconfig

2015-02-03 Thread Antoine Tenart
Marvell Berlin SoCs did not have a custom defconfig and were only supported in multi_v7_defconfig. Adds a proper defconfig, allowing to boot a Berlin SoC with all the currently supported features: SMP, Pinmux, AHCI, Ethernet, I2C, GPIO, USB, SDHCI. Booting with the rootfs on NFS is also supported

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-03 Thread Arnd Bergmann
On Tuesday 03 February 2015 10:38:25 Marc Zyngier wrote: > > That's exactly what I thought until Lorenzo reported kvmtool falling > over because of this write. Obviously, some platforms must actually > require this (possibly for bridges that are not known by the firmware). This sounds much like a

Re: [GIT PULL] aio: fix sleeping while TASK_INTERRUPTIBLE

2015-02-03 Thread Peter Zijlstra
On Tue, Feb 03, 2015 at 12:27:33PM +0100, Peter Zijlstra wrote: > On Sun, Feb 01, 2015 at 05:18:17PM -0800, Linus Torvalds wrote: > > Ahh. That would be a bug, yes, but it wouldn't be one in the aio code. > > > > If somebody just does a "schedule()" and thinks that their own private > > events are

Re: [PATCH 1/5] i8042: intel-8042 DT documentation

2015-02-03 Thread Mark Rutland
On Mon, Feb 02, 2015 at 09:48:46PM +, Roman Volkov wrote: > Documentation for 'intel,8042' DT compatible node. > > Signed-off-by: Tony Prisk > Signed-off-by: Roman Volkov > --- > .../devicetree/bindings/input/intel-8042.txt | 29 > ++ > 1 file changed, 29 insertio

[PATCH v3 05/11] powerpc/8xx: Optimise access to swapper_pg_dir

2015-02-03 Thread Christophe Leroy
All accessed to PGD entries are done via 0(r11). By using lower part of swapper_pg_dir as load index to r11, we can remove the ori instruction. Signed-off-by: Christophe Leroy --- v2: fixed/added comments to explain what is the real content of M_TW v3: no change arch/powerpc/kernel/head_8xx.S

Re: [PATCH v2] kprobes/x86: Use 5-byte NOP when the code might be modified by ftrace

2015-02-03 Thread Petr Mladek
On Tue 2015-02-03 16:41:39, Masami Hiramatsu wrote: > (2015/02/03 2:48), Petr Mladek wrote: > > can_probe() checks if the given address points to the beginning of > > an instruction. It analyzes all the instructions from the beginning > > of the function until the given address. The code might be m

Re: [PATCH v8 02/21] acpi: fix acpi_os_ioremap for arm64

2015-02-03 Thread Catalin Marinas
On Tue, Feb 03, 2015 at 09:08:42AM +, Hanjun Guo wrote: > On 2015年02月03日 06:14, Rafael J. Wysocki wrote: > > On Monday, February 02, 2015 08:45:30 PM Hanjun Guo wrote: > >> From: Mark Salter > >> > >> The acpi_os_ioremap() function may be used to map normal RAM or IO > >> regions. The current

Re: [PATCH 8/8] phy: add driver for TI TUSB1210 ULPI PHY

2015-02-03 Thread Heikki Krogerus
Hi David, Felipe, > > > > why would you have dwc3 mess around with the PHY's gpios ? Doesn't look > > > > very good. > > > > > > ..but unfortunately we can't use the bus without it :(. We depend on > > > being able to read the vendor and product id's in the bus driver. > > > > Doesn't the ugly p

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-03 Thread Marc Zyngier
On 03/02/15 11:31, Arnd Bergmann wrote: > On Tuesday 03 February 2015 10:38:25 Marc Zyngier wrote: >> >> That's exactly what I thought until Lorenzo reported kvmtool falling >> over because of this write. Obviously, some platforms must actually >> require this (possibly for bridges that are not kno

[PATCH v2 0/2] powerpc32: Optimise some IP checksum functions.

2015-02-03 Thread Christophe Leroy
This patchset provides a few optimisations related to IP checksum functions. Signed-off-by: Christophe Leroy Tested-by: Christophe Leroy --- arch/powerpc/include/asm/checksum.h | 28 arch/powerpc/lib/checksum_32.S | 16 2 files changed, 28 ins

[PATCH v3 07/11] powerpc/8xx: macro for handling CPU15 errata

2015-02-03 Thread Christophe Leroy
Having a macro will help keep clear code. Signed-off-by: Christophe Leroy --- v2: no change v3: Fixed the macro (missing -) and changed macro name to be more explicit arch/powerpc/kernel/head_8xx.S | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/pow

[PATCH v3 11/11] powerpc/8xx: Add support for TASK_SIZE greater than 0x80000000

2015-02-03 Thread Christophe Leroy
By default, TASK_SIZE is set to 0x8000 for PPC_8xx, which is most likely sufficient for most cases. However, kernel configuration allows to set TASK_SIZE to another value, so the 8xx shall handle it. Signed-off-by: Christophe Leroy --- v2: no change v3: no change (but impacted by patch 07)

[PATCH v3 09/11] powerpc/8xx: dont save CR in SCRATCH registers

2015-02-03 Thread Christophe Leroy
CR only needs to be preserved when checking if we are handling a kernel address. So we can preserve CR in a register: - In ITLBMiss, check is done only when CONFIG_MODULES is defined. Otherwise we don't need to do anything at all with CR. - We use r10, then we reload SRR0/MD_EPN into r10 when CR is

[PATCH v2 2/2] powerpc32: add support for csum_add()

2015-02-03 Thread Christophe Leroy
The C version of csum_add() as defined in include/net/checksum.h gives the following assembly: 0: 7c 04 1a 14 add r0,r4,r3 4: 7c 64 00 10 subfc r3,r4,r0 8: 7c 63 19 10 subfe r3,r3,r3 c: 7c 63 00 50 subfr3,r3,r0 include

Re: [PATCH v8 02/21] acpi: fix acpi_os_ioremap for arm64

2015-02-03 Thread Ard Biesheuvel
On 3 February 2015 at 11:37, Catalin Marinas wrote: > On Tue, Feb 03, 2015 at 09:08:42AM +, Hanjun Guo wrote: >> On 2015年02月03日 06:14, Rafael J. Wysocki wrote: >> > On Monday, February 02, 2015 08:45:30 PM Hanjun Guo wrote: >> >> From: Mark Salter >> >> >> >> The acpi_os_ioremap() function ma

[PATCH v3 10/11] powerpc/8xx: Use SPRG2 instead of DAR for saving r3

2015-02-03 Thread Christophe Leroy
We now have SPRG2 available as in it not used anymore for saving CR, so we don't need to crash DAR anymore for saving r3 for CPU6 ERRATA handling. Signed-off-by: Christophe Leroy --- v2: no change v3: no change arch/powerpc/kernel/head_8xx.S | 9 - 1 file changed, 4 insertions(+), 5 de

[PATCH v2 1/2] powerpc32: put csum_tcpudp_magic inline

2015-02-03 Thread Christophe Leroy
csum_tcpudp_magic() is only a few instructions, and does not modifies any other register than the returned result. So it is not worth having it as a separate function and suffer function branching and saving of volatile registers. This patch makes it inline by use of the already existing csum_tcpud

[PATCH] powerpc32: rearrange instructions order in ip_fast_csum()

2015-02-03 Thread Christophe Leroy
On PPC_8xx, lwz has a 2 cycles latency, and branching also takes 2 cycles. As the size of the header is minimum 5 words, we can unroll the loop for the first words to reduce number of branching, and we can re-order the instructions to limit loading latency. Signed-off-by: Christophe Leroy --- a

Re: [PATCH] regmap: Fix i2c word access when using SMBus access functions

2015-02-03 Thread Mark Brown
On Mon, Feb 02, 2015 at 06:30:02AM -0800, Guenter Roeck wrote: > On 02/02/2015 03:56 AM, Mark Brown wrote: > >Yes, we really ought to handle _NATIVE too (though the chances of it > >being used with I2C are minimal, it's mostly for MMIO). This also feels > Well, we do; it is handled similar to th

[PATCH v3 08/11] powerpc/8xx: Handle CR out of exception PROLOG/EPILOG

2015-02-03 Thread Christophe Leroy
In order to be able to reduce scope during which CR is saved, we take CR saving/restoring out of exception PROLOG and EPILOG Signed-off-by: Christophe Leroy --- v2: no change v3: no change (but impacted by patch 07) arch/powerpc/kernel/head_8xx.S | 10 +++--- 1 file changed, 7 insertions(+

[PATCH v3 06/11] powerpc/8xx: Remove duplicated code in set_context()

2015-02-03 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- v2: no change v3: no change arch/powerpc/kernel/head_8xx.S | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index a485ad7..a1571b3 100644 --- a/arch/powerpc/kernel/h

[PATCH v3 04/11] powerpc/8xx: Take benefit of aligned PGDIR

2015-02-03 Thread Christophe Leroy
L1 base address is now aligned so we can insert L1 index into r11 directly and then preserve r10 Signed-off-by: Christophe Leroy --- v2: no change v3: no change arch/powerpc/kernel/head_8xx.S | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git

[PATCH v3 03/11] powerpc32: Use kmem_cache memory for PGDIR

2015-02-03 Thread Christophe Leroy
When pages are not 4K, PGDIR table is allocated with kmalloc(). In order to optimise TLB handlers, aligned memory is needed. kmalloc() doesn't provide aligned memory blocks, so lets use a kmem_cache pool instead. Signed-off-by: Christophe Leroy --- v2: changed to apply cleanly to linux-next (due

[PATCH v3 00/11] powerpc8xx: Further optimisation of TLB handling

2015-02-03 Thread Christophe Leroy
This patchset provides a further optimisation of TLB handling in the 8xx. Main changes are based on: - Using processor handling of PGD/PTE Validity bits instead of testing ourselves the entries validity - Aligning PGD address to allow direct bit manipulation - Not saving registers like CR when not

[PATCH v3 02/11] powerpc/8xx: remove tests on PGDIR entry validity

2015-02-03 Thread Christophe Leroy
Kernel MMU handling code handles validity of entries via _PMD_PRESENT which corresponds to V bit in MD_TWC and MI_TWC. When the V bit is not set, MPC8xx triggers TLBError exception. So we don't have to check that and branch ourself to TLBError. We can set TLB entries with non present entries, remov

Re: MADV_DONTNEED semantics? Was: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-03 Thread Vlastimil Babka
On 02/03/2015 11:53 AM, Kirill A. Shutemov wrote: > On Tue, Feb 03, 2015 at 09:19:15AM +0100, Vlastimil Babka wrote: >> [CC linux-api, man pages] >> >> On 02/02/2015 11:22 PM, Dave Hansen wrote: >> > On 02/02/2015 08:55 AM, Mel Gorman wrote: >> >> This patch identifies when a thread is frequently

[PATCH v3 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-02-03 Thread Christophe Leroy
Since commit 33fb845a6f01 ("powerpc/8xx: Don't use MD_TWC for walk"), MD_EPN and MD_TWC are not writen anymore in FixupDAR so saving r3 has become useless. Signed-off-by: Christophe Leroy --- v2: no change v3: no change arch/powerpc/kernel/head_8xx.S | 6 -- 1 file changed, 6 deletions(-)

Re: [PATCH v3] x86/devicetree: Fix build for amd64

2015-02-03 Thread Maciej W. Rozycki
On Mon, 2 Feb 2015, Ricardo Ribalda Delgado wrote: > apic_force_enable is not defined for amd64. > > Without this patch: > > LD init/built-in.o > arch/x86/built-in.o: In function `dtb_lapic_setup': > kernel/devicetree.c:155: > undefined reference to `apic_force_enable' > Makefile:923: recip

[PATCH] x86: Intel-perf_event: Delete an unnecessary check before the function call "pci_dev_put"

2015-02-03 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 3 Feb 2015 12:40:54 +0100 The pci_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/x

Re: Re: [PATCH v2] kprobes/x86: Use 5-byte NOP when the code might be modified by ftrace

2015-02-03 Thread Masami Hiramatsu
(2015/02/03 20:38), Petr Mladek wrote: > On Tue 2015-02-03 16:41:39, Masami Hiramatsu wrote: >> (2015/02/03 2:48), Petr Mladek wrote: >>> can_probe() checks if the given address points to the beginning of >>> an instruction. It analyzes all the instructions from the beginning >>> of the function un

Re: [PATCH 5/5] i8042: Add i8042_dt.h glue for DT support

2015-02-03 Thread Mark Rutland
On Mon, Feb 02, 2015 at 09:48:50PM +, Roman Volkov wrote: > This header file designed to be similar to other glue layers found > for i8042. The difference is that interrupt numbers, device address, > and other information should be retrieved from the device tree. > > Signed-off-by: Tony Prisk

Re: [PATCH] ath9k_htc: add adaptive usb flow control to repair soft lockup with monitor mode

2015-02-03 Thread Kalle Valo
yuweizh...@139.com writes: > From: Yuwei Zheng > > In the environment with heavy wifi traffic, set the ar9271 into monitor mode, > will > trigger a deadloop panic. > > The ath9k_hif_usb_rx_cb function excute on the interrupt context, and > ath9k_rx_tasklet excute > on the soft irq context. I

Re: [PATCH] drm: Kconfig: Let all DRM_GEM_CMA_HELPER related macros depend on HAVE_DMA_ATTRS

2015-02-03 Thread Chen Gang S
On 02/03/2015 06:45 PM, Laurent Pinchart wrote: > Hi Chen, > > Thank you for the patch. > > On Sunday 01 February 2015 22:08:33 Chen Gang S wrote: >> DRM_GEM_CMA_HELPER is depend on HAVE_DMA_ATTRS, or it will break the >> building. The related error (with allmodconfig under xtensa): >> >> CC

Re: [PATCH_V4 1/3] dt: usb: jz4740: Add DT binding document for OHCI

2015-02-03 Thread Sergei Shtylyov
Hello. On 2/3/2015 1:17 PM, Zubair Lutfullah Kakakhel wrote: From: Paul Burton Add the binding documentation for the JZ4740 OHCI controller. Signed-off-by: Paul Burton Signed-off-by: Zubair Lutfullah Kakakhel [...] diff --git a/Documentation/devicetree/bindings/usb/ingenic,jz4740-o

Re: [GIT PULL] aio: fix sleeping while TASK_INTERRUPTIBLE

2015-02-03 Thread Peter Zijlstra
On Tue, Feb 03, 2015 at 12:33:48PM +0100, Peter Zijlstra wrote: > > block/bsg.c-prepare_to_wait(&bd->wq_done, &wait, TASK_UNINTERRUPTIBLE); > > block/bsg.c-spin_unlock_irq(&bd->lock); > > block/bsg.c:io_schedule(); > > block/bsg.c-finish_wait(&bd->wq_done, &wait); > > > > Which is

[PATCH] samples: Fix `echo 1 > /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
echo 99 > /proc/int-fifo > Never return echo 1000 > /proc/int-fifo > Never return this patch fix it. Signed-off-by: Wang Long --- samples/kfifo/inttype-example.c | 51 - 1 file changed, 40 insertions(+), 11 deletions(-)

[PATCH] samples: Fix `echo 1 > /proc/int-fifo` never return error

2015-02-03 Thread Wang Long
With the kernel module *samples/kfifo/inttype-example.ko*, the system will create file /proc/int-fifo. but the current code for this module may have some bug, as the following: # echo 100 > /proc/int-fifo > OK # echo 100 > /proc/int-fifo > OK # echo 99 >

Re: [PATCH] pwm: Delete an unnecessary check before the function call "of_node_put"

2015-02-03 Thread Thierry Reding
On Tue, Feb 03, 2015 at 11:58:29AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 3 Feb 2015 11:54:28 +0100 > > The of_node_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detec

Re: [PATCH 2/2] coresight: Adding coresight support to arm64

2015-02-03 Thread Catalin Marinas
On Mon, Feb 02, 2015 at 10:06:16PM +, Mathieu Poirier wrote: > On 2 February 2015 at 06:45, Will Deacon wrote: > > On Fri, Jan 30, 2015 at 10:54:26PM +, mathieu.poir...@linaro.org wrote: > >> From: Mathieu Poirier > >> > >> Aside from tracers, all currently supported coresight IP blocks >

Re: [PATCH v2] kprobes/x86: Use 5-byte NOP when the code might be modified by ftrace

2015-02-03 Thread Petr Mladek
On Tue 2015-02-03 12:38:28, Petr Mladek wrote: > On Tue 2015-02-03 16:41:39, Masami Hiramatsu wrote: > > (2015/02/03 2:48), Petr Mladek wrote: > > > can_probe() checks if the given address points to the beginning of > > > an instruction. It analyzes all the instructions from the beginning > > > of

[PATCH] sched/rt: Check to push the task when changing its affinity

2015-02-03 Thread Xunlei Pang
From: Xunlei Pang We may suffer from extra rt overload rq due to the affinity, so when the affinity of any runnable rt task is changed, we should check to trigger balancing, otherwise it will cause some unnecessary delayed real-time response. Unfortunately, current RT global scheduler doesn't tri

Re: [PATCH] floppy: Avoid manual call of device_create_file()

2015-02-03 Thread Jiri Kosina
On Mon, 2 Feb 2015, Takashi Iwai wrote: > Use the static attribute groups assigned to the device instead of > calling device_create_file() after the device registration. > > Signed-off-by: Takashi Iwai Applied, thanks Takashi. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send th

Re: [PATCH] ata: Delete unnecessary checks before the function call "pci_dev_put"

2015-02-03 Thread Tejun Heo
On Mon, Feb 02, 2015 at 10:22:32PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 2 Feb 2015 22:08:29 +0100 > > The pci_dev_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detec

Re: [PATCH 1/2] sata_mv: Delete unnecessary checks before the function call "phy_power_off"

2015-02-03 Thread Tejun Heo
On Tue, Feb 03, 2015 at 09:33:53AM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 2 Feb 2015 22:55:53 +0100 > > The phy_power_off() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was det

Re: [PATCH 2/2] sata_mv: More error handling for phy_power_off() in mv_platform_remove()

2015-02-03 Thread Tejun Heo
On Tue, Feb 03, 2015 at 09:36:01AM +0100, SF Markus Elfring wrote: ... > @@ -4215,7 +4215,9 @@ static int mv_platform_remove(struct platform_device > *pdev) > clk_disable_unprepare(hpriv->port_clks[port]); > clk_put(hpriv->port_clks[port]); >

[GIT PULL] floppy update

2015-02-03 Thread Jiri Kosina
Hi Jens, please pull from https://git.kernel.org/pub/scm/linux/kernel/git/jikos/linux-block.git for-jens (the branch is based on your for-3.20/drivers branch) to receive simple floppy fix for static attribute group assignment, from Takashi Iwai. Thanks! ---

Re: [PATCH v2] ata: libahci: Use of_platform_device_create only if supported

2015-02-03 Thread Tejun Heo
On Sat, Jan 31, 2015 at 10:36:22AM -0800, Guenter Roeck wrote: > of_platform_device_create does not exist if OF_ADDRESS is not configured, > so limit its use accordingly. > > Without this fix, the sparc64:allmodconfig build fails with > > ERROR: "of_platform_device_create" [drivers/ata/libahci_pl

Re: [PATCH v8 06/21] ARM64 / ACPI: Introduce PCI stub functions for ACPI

2015-02-03 Thread Catalin Marinas
On Mon, Feb 02, 2015 at 12:45:34PM +, Hanjun Guo wrote: > diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c > index ce5836c..c17e7ea 100644 > --- a/arch/arm64/kernel/pci.c > +++ b/arch/arm64/kernel/pci.c > @@ -10,6 +10,7 @@ > * > */ > > +#include > #include > #include >

[PATCH 3/3] ARM: dts: qcom: Add APQ8084 chipset SPMI PMIC's nodes

2015-02-03 Thread Ivan T. Ivanov
PMA8084 have 2 SPMI devices per physical package. Add their configuration nodes and include them in boards which are using AQP8084 based chipset. Signed-off-by: Ivan T. Ivanov --- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 1 + arch/arm/boot/dts/qcom-apq8084-mtp.dts | 1 + arch/arm/boot/

[PATCH 0/3] Add initial DT support for Qualcomm SPMI PMIC devices

2015-02-03 Thread Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1]. Regards, Ivan [1] http://lwn.net/Articles/564637/ Ivan T. Ivanov (3): ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and

Re: [PATCH v1] spi: imx: use pio mode for i.mx6dl

2015-02-03 Thread Mark Brown
On Tue, Feb 03, 2015 at 10:25:53AM +0800, Robin Gong wrote: > For TKT238285 hardware issue which may cause txfifo store data twice can only > be caught on i.mx6dl, we use pio mode instead of DMA mode on i.mx6dl. Applied, thanks. signature.asc Description: Digital signature

[PATCH 2/3] ARM: dts: qcom: Add 8x74 chipset SPMI PMIC's nodes

2015-02-03 Thread Ivan T. Ivanov
PM8841 and PM8941 have 2 SPMI devices per physical package. Add their configuration nodes and include them in boards which are using 8x74 based chipset. Signed-off-by: Ivan T. Ivanov --- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts| 2 ++ arch/arm/boot/dts/qcom-msm8974-sony-xperia-hon

[PATCH 1/3] ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974

2015-02-03 Thread Ivan T. Ivanov
Add SPMI PMIC Arbiter configuration nodes for APQ8084 and MSM8974. Signed-off-by: Ivan T. Ivanov --- arch/arm/boot/dts/qcom-apq8084.dtsi | 16 arch/arm/boot/dts/qcom-msm8974.dtsi | 16 2 files changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq808

Re: [PATCH v5 08/13] clk: samsung: exynos5433: Add clocks for CMU_DISP domain

2015-02-03 Thread Sylwester Nawrocki
Hi Chanwoo, On 02/02/15 15:24, Chanwoo Choi wrote: > This patch adds the the mux/divider/gate clocks for CMU_DISP domain which > includes the clocks of Display IPs (DECON/HDMI/DSIM/MIXER). The CMU_DISP > clocks > is used to need the source clock of CMU_MIF domain so, the CMU_MIF's clocks > relate

Re: [PATCH 3/5] iommu: Limit iommu_attach/detach_device to devices with their own group

2015-02-03 Thread Thierry Reding
On Tue, Jan 27, 2015 at 01:08:57AM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > This patch changes the behavior of the iommu_attach_device > and iommu_detach_device functions. With this change these > functions only work on devices that have their own group. > For all other devices the iom

[x86_64] Question about early page tables initialization

2015-02-03 Thread Alex Kuleshov
Hello All, I have a question about page tables initialization in the arch/x86/boot/compressed/head_64.S After we clear memory for page tables, there is code which build PML4: lealpgtable + 0(%ebx), %edi leal0x1007(%edi), %eax movl%eax, 0(%edi) W

[PATCH] iommu/amd: Fix amd_iommu_free_device()

2015-02-03 Thread Peter Zijlstra
On Tue, Feb 03, 2015 at 12:27:33PM +0100, Peter Zijlstra wrote: > drivers/iommu/amd_iommu_v2.c-static void put_device_state_wait(struct > device_state *dev_state) > drivers/iommu/amd_iommu_v2.c-{ > drivers/iommu/amd_iommu_v2.c- DEFINE_WAIT(wait); > drivers/iommu/amd_iommu_v2.c- > drivers/iommu/a

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-03 Thread Russell King - ARM Linux
On Tue, Feb 03, 2015 at 08:48:56AM +0100, Daniel Vetter wrote: > On Mon, Feb 02, 2015 at 03:30:21PM -0500, Rob Clark wrote: > > On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: > > >> My initial thought is for dma-buf to not try to prevent something than > > >> an exporter can actually do.. I

Re: [PATCH v5 08/13] clk: samsung: exynos5433: Add clocks for CMU_DISP domain

2015-02-03 Thread Sylwester Nawrocki
On 03/02/15 13:17, Sylwester Nawrocki wrote: >> diff --git a/drivers/clk/samsung/clk-exynos5433.c >> b/drivers/clk/samsung/clk-exynos5433.c >> > index 3d6164e..cf3f0ac 100644 >> > --- a/drivers/clk/samsung/clk-exynos5433.c >> > +++ b/drivers/clk/samsung/clk-exynos5433.c >> > @@ -245,6 +245,8 @@ PN

Re: How to fix CDROM/DVD eject mess?

2015-02-03 Thread Takashi Iwai
At Mon, 2 Feb 2015 20:03:05 +0100, Kay Sievers wrote: > > On Mon, Feb 2, 2015 at 2:20 PM, Takashi Iwai wrote: > > we've got a bug report about the mishandling of DVD/CDROM media eject > > button, and it seems indeed broken since some time ago. In short: > > when the eject button is pressed, the

Re: How to fix CDROM/DVD eject mess?

2015-02-03 Thread Takashi Iwai
At Mon, 2 Feb 2015 21:12:34 + (GMT), Maciej W. Rozycki wrote: > > > > I for one want to see the medium locked if in use, just as it has been > > > since 1990s. If I wanted to do an emergency eject (the equivalent of > > > ripping out a USB cable), then I would use a paperclip in the manual e

Re: [PATCH 1/3] gpio: pxa: remove mach IRQ includes

2015-02-03 Thread Linus Walleij
On Tue, Jan 27, 2015 at 5:46 AM, Rob Herring wrote: > In preparation to enable ARCH_MMP on ARM64, the include of mach/irqs.h > must be eliminated. mach/irqs.h was being included for IRQ_GPIO{0,1}, > but these IRQs are always passed in as resources now. We can use irq0 > and irq1 and get rid of IR

Re: [PATCH 2/3] dt/bindings: gpio: add compatible string for marvell,pxa1928-gpio

2015-02-03 Thread Linus Walleij
On Tue, Jan 27, 2015 at 5:46 AM, Rob Herring wrote: > Add a new compatible string for PXA1928 GPIO controller. The IP block is > same as prior chips with a 6th bank added. > > Signed-off-by: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: devicet...@

Re: [PATCH 3/3] gpio: pxa: add PXA1928 gpio type support

2015-02-03 Thread Linus Walleij
On Tue, Jan 27, 2015 at 5:46 AM, Rob Herring wrote: > Add support for PXA1928 GPIOs. The PXA1928 adds a 6th bank from previous > generations. > > Signed-off-by: Jing Xiang > Signed-off-by: Xiangzhan Meng > [robh: ported to 3.19 from vendor kernel] > Signed-off-by: Rob Herring > Cc: Linus Walle

[PATCH RFC] staging: comedi: dt282x: condition with no effect - if identical to else

2015-02-03 Thread Nicholas Mc Guire
comment string if that is still valid now. Patch was only compile tested for x86_64_defconfig + CONFIG_STAGING=y CONFIG_COMEDI=m, COMEDI_ISA_DRIVERS=y, CONFIG_COMEDI_DT282X=m Patch is against 3.0.19-rc7 (localversion = -next-20150203) drivers/staging/comedi/drivers/dt282x.c | 10 ++

Re: [PATCH v5 08/13] clk: samsung: exynos5433: Add clocks for CMU_DISP domain

2015-02-03 Thread Chanwoo Choi
Hi Sylwester, On 02/03/2015 09:29 PM, Sylwester Nawrocki wrote: > On 03/02/15 13:17, Sylwester Nawrocki wrote: >>> diff --git a/drivers/clk/samsung/clk-exynos5433.c >>> b/drivers/clk/samsung/clk-exynos5433.c index 3d6164e..cf3f0ac 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +

Re: [RFC PATCH] ASoC: wm8731: let codec to manage clock by itself

2015-02-03 Thread Mark Brown
On Tue, Feb 03, 2015 at 08:54:57AM +0100, Manuel Lauss wrote: > +wm8731->mclk = devm_clk_get(&spi->dev, "mclk"); > +if (IS_ERR(wm8731->mclk)) { > +wm8731->mclk = NULL; > +dev_warn(&spi->dev, "assuming static MCLK\n"); > +} This is broken for both deferred probe and in

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-03 Thread Alexander Holler
Am 03.02.2015 um 10:23 schrieb Alexander Holler: Or to give another more common example: If you delete your contact list, I likely might find again by just searching for 0x6f726956 at the device level (assuming you've stored a contact in that list with the same surname as yours. And, because I'

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-03 Thread Alexander Holler
Am 03.02.2015 um 13:48 schrieb Alexander Holler: E.g. my parents are stull successfully using contact lists on paper. These are still more readable, easier to handle and smaller than any available electronic replacement. And they have absolutely no problem to destroy an old one when they replace

Re: [PATCH v4] gpio_wdt: Add "always_running" feature to GPIO watchdog

2015-02-03 Thread Wim Van Sebroeck
Hi Mike, > On some chips, like the TPS386000, the trigger cannot be disabled > and the CPU must keep toggling the line at all times. Add a switch > "always_running" to keep toggling the GPIO line regardless of the > state of the soft part of the watchdog. The "armed" member keeps > track of whethe

Re: [PATCH] ARM: berlin: add a defconfig

2015-02-03 Thread Arnd Bergmann
On Tuesday 03 February 2015 12:28:52 Antoine Tenart wrote: > Marvell Berlin SoCs did not have a custom defconfig and were only > supported in multi_v7_defconfig. > > Adds a proper defconfig, allowing to boot a Berlin SoC with all the > currently supported features: SMP, Pinmux, AHCI, Ethernet, I2C

[PATCH 1/1] Fix perf probe help message typo issue.

2015-02-03 Thread Bryton Lee
Fix perf probe help message typo issue. Signed-off-by: Bryton Lee --- tools/perf/util/probe-event.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 94a717b..8d3ac0f 100644 --- a/tools/perf/util/probe-

<    1   2   3   4   5   6   7   8   9   10   >