[PATCH 2/2] clk: bcm2835: Add PWM clock support

2015-11-04 Thread Remi Pommarel
Register the pwm clock for bcm2835. This patch also adds the ability to set a clock default rate. Signed-off-by: Remi Pommarel --- arch/arm/boot/dts/bcm2835.dtsi | 8 drivers/clk/bcm/clk-bcm2835.c | 28 +++- include/dt-bindings/clock/bcm2835.h | 3 ++

[PATCH 0/2] Add PWM clock support for bcm2835

2015-11-04 Thread Remi Pommarel
Hi, This patchset add support for pwm clock. At boot, this clock does not have a default parent nor a default rate set. Thus we should be able to change its parent to get this clock working. The current clock implementation is using a mux to select the parent, but these clocks need to add a passwo

Re: [PATCH] livepatch: Cleanup page permission changes

2015-11-04 Thread Josh Poimboeuf
On Wed, Nov 04, 2015 at 11:56:13PM +0100, Jiri Kosina wrote: > On Tue, 3 Nov 2015, Josh Poimboeuf wrote: > > > Subject: [PATCH] livepatch: Cleanup page permission changes > > > > Calling set_memory_rw() and set_memory_ro() for every iteration of the > > loop in klp_write_object_relocations() is m

Re: [Xen-devel] Linux 4.4 MW: Boot under Xen fails with CONFIG_DEBUG_WX enabled: RIP: ptdump_walk_pgd_level_core

2015-11-04 Thread Boris Ostrovsky
18.459943] IP: [] ptdump_walk_pgd_level_core+0x20e/0x440 [ 18.465847] PGD 2212067 PUD 0 [ 18.471564] Oops: [#1] SMP [ 18.477248] Modules linked in: [ 18.482918] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.3.0-mw-20151104-linus-doflr+ #1 [ 18.488804] Hardware name: MSI MS-7640/890FXA-GD7

Re: [PATCH v2 2/4] e1000e: Do not read icr in Other interrupt

2015-11-04 Thread Benjamin Poirier
On 2015/10/30 12:19, Alexander Duyck wrote: > On 10/30/2015 10:31 AM, Benjamin Poirier wrote: > >Using eiac instead of reading icr allows us to avoid interference with > >rx and tx interrupts in the Other interrupt handler. > > > >According to the 82574 datasheet section 10.2.4.1, interrupt causes

[PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM

2015-11-04 Thread Sowmini Varadhan
This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC address in Open Firmware or IDPROM"). As with that fix, attempt to look up the MAC address in Open Firmware on systems that support it, and use IDPROM on SPARC if no OF address is found. In the case of the i40e there is an a

Re: [PATCH net] net: dsa: mv88e6xxx: isolate unbridged ports

2015-11-04 Thread Andrew Lunn
> > +int mv88e6xxx_port_bridge_join(struct dsa_switch *ds, int port, u32 > > members) > > +{ > > + struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); > > + const u16 pvid = 4000 + ds->index * DSA_MAX_PORTS + port; > > + int err; > > + > > + /* The port joined a bridge, so leave its reserved

Re: [PATCH v2 2/4] e1000e: Do not read icr in Other interrupt

2015-11-04 Thread Alexander Duyck
On 11/04/2015 03:19 PM, Benjamin Poirier wrote: On 2015/10/30 12:19, Alexander Duyck wrote: On 10/30/2015 10:31 AM, Benjamin Poirier wrote: Using eiac instead of reading icr allows us to avoid interference with rx and tx interrupts in the Other interrupt handler. According to the 82574 datashe

[PATCH] usb: misc: usbtest: Remove timeval usage

2015-11-04 Thread Deepa Dinamani
timeval is deprecated and not y2038 safe. Its size also changes according to 32 bit/ 64 bit compilation. Replace it with 32 and 64 bit versions of its individual fields, giving two ioctls with different code values. The two ioctls are necessary to maintain the 32 bit and 64 bit userspace compatib

Re: [PATCH v6 6/8] ARM: rockchip: add support smp for rk3036

2015-11-04 Thread Heiko Stuebner
Am Mittwoch, 4. November 2015, 20:25:16 schrieb Xing Zheng: > From: Heiko Stuebner > > The dual-core Cortex A7 rk3036 is a bit special in that it does not allow > to control the actual powerdomain of the cpu cores, while the rest of the > smp-bringup like reset control and entry address handling

Re: [PATCH v6 8/8] rockchip: make sure timer5 is enabled on rk3036 platforms

2015-11-04 Thread Heiko Stuebner
Am Mittwoch, 4. November 2015, 20:25:57 schrieb Xing Zheng: > The timer5 supplies the architected timer and thus as has to run when > the system clocksource and clockevents drivers are registered. > > --- > > Changes in v6: > Signed-off-by: Xing Zheng > Reviewed-by: Heiko Stuebner This patch

Re: [PATCH 1/8] phy: rockchip-usb: fix clock get-put mismatch

2015-11-04 Thread Doug Anderson
Heiko On Wed, Nov 4, 2015 at 1:44 PM, Heiko Stuebner wrote: > Currently the phy driver only gets the optional clock reference but > never puts it again, neither during error handling nor on remove. > Fix that by moving the clk_put to a devm-action that gets called at > the right time when all oth

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Daniel Micay
>>> It probably makes sense to stop thinking about them as anonymous pages >>> entirely at this point when it comes to aging. They're really not. The >>> LRU lists are split to differentiate access patterns and cost of page >>> stealing (and restoring). From that angle, MADV_FREE pages really have

Re: [GIT PULL] x86/mm changes for v4.4

2015-11-04 Thread Dave Jones
On Wed, Nov 04, 2015 at 11:26:12AM -0800, Linus Torvalds wrote: > On Tue, Nov 3, 2015 at 3:16 AM, Ingo Molnar wrote: > > > > The new CONFIG_DEBUG_WX=y warning is marked default-y if > > CONFIG_DEBUG_RODATA=y is > > already eanbled, as a special exception, as these bugs are hard to notice >

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
Hi Sergey, On Wed, Nov 04, 2015 at 11:16:24AM +0900, Sergey Senozhatsky wrote: > Hi Minchan, > > On (11/04/15 10:25), Minchan Kim wrote: > [..] > >+static int madvise_free_pte_range(pmd_t *pmd, unsigned long addr, > >+ unsigned long end, struct mm_walk *walk) > >+ >

Re: [PATCH v6 1/8] dt-bindings: add documentation of rk3036 clock controller

2015-11-04 Thread Heiko Stuebner
Hi, Am Mittwoch, 4. November 2015, 20:18:16 schrieb Xing Zheng: > Add the devicetree binding for the cru on the rk3036 which quite similar > structured as previous clock controllers. > > Signed-off-by: Xing Zheng > Reviewed-by: Heiko Stuebner > --- your recipient-list is missing the clock main

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 11:29:51AM +0900, Sergey Senozhatsky wrote: > On (11/04/15 10:25), Minchan Kim wrote: > [..] > > +static int madvise_free_pte_range(pmd_t *pmd, unsigned long addr, > > + unsigned long end, struct mm_walk *walk) > > + > > +{ > > + struct mmu_gather

Re: [PATCH] __div64_32: implement division by multiplication for 32-bit arches

2015-11-04 Thread Nicolas Pitre
On Fri, 30 Oct 2015, Måns Rullgård wrote: > Nicolas Pitre writes: > > > I'm going to do it anyway given that I already have it for ARM. It'll > > be opt-in, so if your arch doesn't provide it then the current C > > implementation will be used by default. > > Great. I'll try it out on MIPS o

Re: [PATCH 2/8] phy: rockchip-usb: introduce a common data-struct for the device

2015-11-04 Thread Doug Anderson
Hi, On Wed, Nov 4, 2015 at 1:44 PM, Heiko Stuebner wrote: > This introduces a common struct that holds data belonging to > the umbrella device that contains all the phys and that we > want to use later. > > Signed-off-by: Heiko Stuebner > --- > drivers/phy/phy-rockchip-usb.c | 24 ++

Re: [PATCH] __div64_32: implement division by multiplication for 32-bit arches

2015-11-04 Thread Nicolas Pitre
On Wed, 4 Nov 2015, Nicolas Pitre wrote: > On Fri, 30 Oct 2015, Måns Rullgård wrote: > > > Nicolas Pitre writes: > > > > > I'm going to do it anyway given that I already have it for ARM. It'll > > > be opt-in, so if your arch doesn't provide it then the current C > > > implementation will be

Re: [PATCH] __div64_32: implement division by multiplication for 32-bit arches

2015-11-04 Thread Måns Rullgård
Nicolas Pitre writes: > On Fri, 30 Oct 2015, Måns Rullgård wrote: > >> Nicolas Pitre writes: >> >> > I'm going to do it anyway given that I already have it for ARM. It'll >> > be opt-in, so if your arch doesn't provide it then the current C >> > implementation will be used by default. >> >>

Re: [Y2038] [PATCH] usb: misc: usbtest: Remove timeval usage

2015-11-04 Thread Arnd Bergmann
On Wednesday 04 November 2015 15:29:11 Deepa Dinamani wrote: > timeval is deprecated and not y2038 safe. Its size also changes according > to 32 bit/ 64 bit compilation. Replace it with 32 and 64 bit versions of > its individual fields, giving two ioctls with different code values. > The two ioct

[PATCH v6.1 3/8] clk: rockchip: add new pll-type for rk3036 and similar socs

2015-11-04 Thread Heiko Stuebner
The rk3036's pll and clock are different with base on the rk3066(rk3188, rk3288, rk3368 use it), there are different adjust foctors and control registers, so these should be independent and separate from the series of rk3066s. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- Hi, it loo

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Daniel Micay
> From a user perspective, it doesn't depend on swap. It's just slower > without swap because it does what MADV_DONTNEED does. The current > implementation can be dropped in where MADV_DONTNEED was previously used. It just wouldn't replace existing layers of purging logic until that edge case is f

[PATCH v6.1 4/8] clk: rockchip: add clock controller for rk3036

2015-11-04 Thread Heiko Stuebner
Add the clock tree definition for the new rk3036 SoC. Signed-off-by: Xing Zheng Reviewed-by: Heiko Stuebner --- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-rk3036.c | 478 ++ drivers/clk/rockchip/clk.h| 9 +- 3 files changed,

[PATCH V2] Intel device IDs Audio

2015-11-04 Thread Alexandra Yates
Adding Intel codename Lewisburg platform device IDs for audio. Signed-off-by: Alexandra Yates --- sound/pci/hda/hda_intel.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index c38c68f..e8d1151 100644 --- a/sound/pci/hda/hda_intel.c

Re: [PATCH 3/8] phy: rockchip-usb: move per-phy init into a separate function

2015-11-04 Thread Doug Anderson
Heiko, On Wed, Nov 4, 2015 at 1:44 PM, Heiko Stuebner wrote: > for_each_available_child_of_node(dev->of_node, child) { > - rk_phy = devm_kzalloc(dev, sizeof(*rk_phy), GFP_KERNEL); > - if (!rk_phy) > - return -ENOMEM; > - > -

Re: [PATCH 2/8] phy: rockchip-usb: introduce a common data-struct for the device

2015-11-04 Thread Heiko Stuebner
Am Mittwoch, 4. November 2015, 15:46:04 schrieb Doug Anderson: > Hi, > > On Wed, Nov 4, 2015 at 1:44 PM, Heiko Stuebner wrote: > > This introduces a common struct that holds data belonging to > > the umbrella device that contains all the phys and that we > > want to use later. > > > > Signed-off-

Re: [PATCH v14 00/24] Compile-time stack metadata validation

2015-11-04 Thread Josh Poimboeuf
On Wed, Oct 21, 2015 at 11:11:39AM -0500, Josh Poimboeuf wrote: > This is v14 of the compile-time stack metadata validation patch set, > along with proposed fixes for many of the warnings it found. It's based > on the tip/master branch. > > v13 can be found here: > > https://lkml.kernel.org/r/

RE: [PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM

2015-11-04 Thread Nelson, Shannon
> From: Sowmini Varadhan [mailto:sowmini.varad...@oracle.com] > Sent: Wednesday, November 04, 2015 3:21 PM > > This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC > address in Open Firmware or IDPROM"). > > As with that fix, attempt to look up the MAC address in Open Firmware

Re: [PATCH] bpf: fix trivial comment typo

2015-11-04 Thread Matthew Fernandez
On 03/11/15 20:48, Daniel Borkmann wrote: On 11/02/2015 10:48 PM, Matthew Fernandez wrote: On 03/11/15 08:31, David Miller wrote: From: Matthew Fernandez Date: Mon, 2 Nov 2015 11:59:03 +1100 bpf: fix trivial comment typo Signed-off-by: Matthew Fernandez This doesn't apply to any tree.

[PATCH net v2] bpf: fix trivial comment typo

2015-11-04 Thread Matthew Fernandez
bpf: fix trivial comment typo Signed-off-by: Matthew Fernandez diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 334b1bd..0bd41f5 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -462,7 +462,7 @@ select_insn: /* ARG1 at this point is guaranteed to point to CTX f

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
On Tue, Nov 03, 2015 at 07:41:35PM -0800, Andy Lutomirski wrote: > On Nov 3, 2015 5:30 PM, "Minchan Kim" wrote: > > > > Linux doesn't have an ability to free pages lazy while other OS already > > have been supported that named by madvise(MADV_FREE). > > > > The gain is clear that kernel can discar

Re: kernel oops on mmotm-2015-10-15-15-20

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 04:21:35PM +0200, Kirill A. Shutemov wrote: > On Wed, Nov 04, 2015 at 12:20:19AM +0900, Minchan Kim wrote: > > On Tue, Nov 03, 2015 at 04:33:29PM +0900, Minchan Kim wrote: > > > On Tue, Nov 03, 2015 at 09:16:50AM +0200, Kirill A. Shutemov wrote: > > > > On Tue, Nov 03, 2015

From Will

2015-11-04 Thread Will C
good evening http://blite.logiko.co.za/chicken.php?note=sfg1fvn028pncbt2 Yours Truly Will C -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html P

Re: [PATCH 2/3] usb: dwc2: host: Giveback URB in tasklet context

2015-11-04 Thread Doug Anderson
Hi, On Wed, Nov 4, 2015 at 2:53 PM, Douglas Anderson wrote: > In commit 94dfd7edfd5c ("USB: HCD: support giveback of URB in tasklet > context") support was added to give back the URB in tasklet context. > Let's take advantage of this in dwc2. > > This speeds up the dwc2 interrupt handler consider

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Andy Lutomirski
On Wed, Nov 4, 2015 at 4:13 PM, Minchan Kim wrote: > On Tue, Nov 03, 2015 at 07:41:35PM -0800, Andy Lutomirski wrote: >> On Nov 3, 2015 5:30 PM, "Minchan Kim" wrote: >> > >> > Linux doesn't have an ability to free pages lazy while other OS already >> > have been supported that named by madvise(MA

Re: [PATCH 07/10] staging: lustre: Handle nodemask on UMP machines

2015-11-04 Thread kbuild test robot
Hi James, [auto build test WARNING on: staging/staging-next] [also build test WARNING on: next-20151104] [cannot apply to: v4.3] url: https://github.com/0day-ci/linux/commits/James-Simmons/staging-lustre-wrong-parameter-to-cfs_hash_keycpy/20151105-024407 config: m68k-allmodconfig (attached

[PATCH v2 03/20] x86: Update compat_siginfo_t to be closer to the generic version

2015-11-04 Thread Amanieu d'Antras
x86 can't use the generic compat_siginfo_t because it needs to support x32, so we just change it to be closer to the generic version. The only significant change is the addition of several fields in _sigfault that were previously omitted. Signed-off-by: Amanieu d'Antras --- arch/x86/include/asm

[PATCH v2 04/20] x86: Rewrite copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
x86 can't use the generic versions because it needs to support x32, so we replace the ad-hoc implementations with something that is closer to the generic versions. This is done by completely replacing the existing code with the generic version, with some minor modifications to support x32. The new

[PATCH v2 18/20] sparc: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/sparc/include/asm/compat.h | 3 -- arch/sparc/kernel/signal32.c| 69 - 2 files changed, 72 deletions(-) diff --git a/arch/sparc/include/asm/compat.h b/arch/sparc/include/asm/compat.h index 8f85fcd..1b4edd1 1006

[PATCH v2 13/20] powerpc: Use generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/powerpc/include/asm/compat.h | 62 ++- 1 file changed, 2 insertions(+), 60 deletions(-) diff --git a/arch/powerpc/include/asm/compat.h b/arch/powerpc/include/asm/compat.h index cdc8638..f0f8392 100644 --- a/arch/powerp

[PATCH v2 20/20] signal: Remove unnecessary zero-initialization of siginfo_t

2015-11-04 Thread Amanieu d'Antras
This is no longer required since copy_siginfo_from_user32 now initializes all siginfo_t fields properly. Signed-off-by: Amanieu d'Antras --- kernel/ptrace.c | 1 - kernel/signal.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 787

[PATCH v2 19/20] signalfd: Fix some issues in signalfd_copyinfo

2015-11-04 Thread Amanieu d'Antras
There are several issues here: 1) The value of ssi_ptr was incorrect for compat tasks. It was previously copied directly from si_ptr, which contains garbage for 32-bit processes, especially on big-endian architectures. 2) A SIGSYS would cause various fields to be filled with incorrect val

[PATCH v2 17/20] sparc: Use generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/sparc/include/asm/compat.h | 54 - 1 file changed, 54 deletions(-) diff --git a/arch/sparc/include/asm/compat.h b/arch/sparc/include/asm/compat.h index 9357014..8f85fcd 100644 --- a/arch/sparc/include/asm/compat.h +

[PATCH v2 16/20] tile: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/tile/include/asm/compat.h | 3 -- arch/tile/kernel/compat_signal.c | 75 2 files changed, 78 deletions(-) diff --git a/arch/tile/include/asm/compat.h b/arch/tile/include/asm/compat.h index 302a9f5..74720ce 10064

[PATCH v2 12/20] s390: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/s390/include/asm/compat.h | 3 -- arch/s390/kernel/compat_signal.c | 102 --- 2 files changed, 105 deletions(-) diff --git a/arch/s390/include/asm/compat.h b/arch/s390/include/asm/compat.h index fbb6365..5b26a92 100

[PATCH v2 14/20] powerpc: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/powerpc/include/asm/compat.h | 5 --- arch/powerpc/kernel/signal_32.c | 72 +-- 2 files changed, 1 insertion(+), 76 deletions(-) diff --git a/arch/powerpc/include/asm/compat.h b/arch/powerpc/include/asm/compat.h ind

[PATCH v2 11/20] s390: Use generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/s390/include/asm/compat.h | 52 -- 1 file changed, 52 deletions(-) diff --git a/arch/s390/include/asm/compat.h b/arch/s390/include/asm/compat.h index 497af62..fbb6365 100644 --- a/arch/s390/include/asm/compat.h +++

[PATCH v2 15/20] tile: Use generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/tile/include/asm/compat.h | 57 -- 1 file changed, 57 deletions(-) diff --git a/arch/tile/include/asm/compat.h b/arch/tile/include/asm/compat.h index e0c61da..302a9f5 100644 --- a/arch/tile/include/asm/compat.h +++

[PATCH v2 02/20] compat: Add generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
These routines try to match the behavior of native 32-bit kernels as closely as possible. They will replace architecture-specific versions that are missing support for some fields and have various bugs that cause behavior to diverge from that of a 32-bit kernel. The only problematic situation is w

[PATCH v2 10/20] parsic: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/parisc/include/asm/compat.h | 3 -- arch/parisc/kernel/signal32.c| 102 --- 2 files changed, 105 deletions(-) diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h index 6c80ae2..b56188b

Re: perf related lockdep bug

2015-11-04 Thread Paul E. McKenney
On Wed, Nov 04, 2015 at 09:58:36PM +0100, Andi Kleen wrote: > > I tested my perf stress workload with the patch applied on 4.3, > unfortunately got a hang again :-/ Any diagnostics, sysrq-T output, or whatever? Thanx, Paul -- To unsubscrib

[PATCH v2 09/20] parisc: Use generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/parisc/include/asm/compat.h | 53 1 file changed, 53 deletions(-) diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h index 46a0a8a..6c80ae2 100644 --- a/arch/parisc/include/asm/compat.

[PATCH v2 07/20] arm64: Use generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/arm64/include/asm/compat.h | 60 - 1 file changed, 60 deletions(-) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 5eae749..dc7cfc1 100644 --- a/arch/arm64/include/asm/compat.h +

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 04:42:37PM -0800, Andy Lutomirski wrote: > On Wed, Nov 4, 2015 at 4:13 PM, Minchan Kim wrote: > > On Tue, Nov 03, 2015 at 07:41:35PM -0800, Andy Lutomirski wrote: > >> On Nov 3, 2015 5:30 PM, "Minchan Kim" wrote: > >> > > >> > Linux doesn't have an ability to free pages la

[PATCH v2 08/20] arm64: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/arm64/include/asm/compat.h | 3 -- arch/arm64/kernel/signal32.c| 85 - 2 files changed, 88 deletions(-) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index dc7cfc1..824be1dd 100

[PATCH v2 06/20] mips: Use generic copy_siginfo_{to,from}_user32

2015-11-04 Thread Amanieu d'Antras
Signed-off-by: Amanieu d'Antras --- arch/mips/include/asm/compat.h | 3 -- arch/mips/kernel/signal32.c| 62 -- 2 files changed, 65 deletions(-) diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h index 29ca129..abc4fe4 100644

[PATCH v2 05/20] mips: Clean up compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
While mips can't use the generic compat_siginfo_t directly because its si_code and si_errno are inverted, we can still make it as close to the generic version as possible. This makes it easier to update when new members are added to siginfo_t. The main changes are adding a missing _sigsys union me

[PATCH v2 00/20] Fix handling of compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
The current handling of compat_siginfo_t is a mess: each architecture has its own implementation, all of which are incorrect in different ways. This patch series replaces all of the arch-specific versions with a single generic one that is guaranteed to produce the same results as a 32-bit kernel.

[PATCH v2 01/20] compat: Add generic compat_siginfo_t

2015-11-04 Thread Amanieu d'Antras
This matches the normal siginfo_t as closely as possible, unlike some architecture-specific versions which are missing some fields. Signed-off-by: Amanieu d'Antras --- arch/arm64/include/asm/compat.h | 2 ++ arch/mips/include/asm/compat.h| 1 + arch/parisc/include/asm/compat.h | 2 ++

[PATCH] arm: Use kernel mm when updating section permissions

2015-11-04 Thread Laura Abbott
Currently, read only permissions are not being applied even when CONFIG_DEBUG_RODATA is set. This is because section_update uses current->mm for adjusting the page tables. current->mm need not be equivalent to the kernel version. Use pgd_offset_k to get the proper page directory for updating. Sign

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 09:53:42AM -0800, Shaohua Li wrote: > On Tue, Nov 03, 2015 at 09:52:23AM +0900, Minchan Kim wrote: > > On Fri, Oct 30, 2015 at 10:22:12AM -0700, Shaohua Li wrote: > > > On Fri, Oct 30, 2015 at 04:01:41PM +0900, Minchan Kim wrote: > > > > MADV_FREE is a hint that it's okay to

Re: [PATCH] arm: Use kernel mm when updating section permissions

2015-11-04 Thread Kees Cook
On Wed, Nov 4, 2015 at 5:00 PM, Laura Abbott wrote: > Currently, read only permissions are not being applied even > when CONFIG_DEBUG_RODATA is set. This is because section_update > uses current->mm for adjusting the page tables. current->mm > need not be equivalent to the kernel version. Use pgd_

Re: [PATCH 5/8] mm: move lazily freed pages to inactive list

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 10:20:47AM -0800, Shaohua Li wrote: > On Wed, Nov 04, 2015 at 09:53:42AM -0800, Shaohua Li wrote: > > On Tue, Nov 03, 2015 at 09:52:23AM +0900, Minchan Kim wrote: > > > On Fri, Oct 30, 2015 at 10:22:12AM -0700, Shaohua Li wrote: > > > > On Fri, Oct 30, 2015 at 04:01:41PM +09

Re: [PATCH] arm: Use kernel mm when updating section permissions

2015-11-04 Thread Kees Cook
On Wed, Nov 4, 2015 at 5:06 PM, Kees Cook wrote: > On Wed, Nov 4, 2015 at 5:00 PM, Laura Abbott > wrote: >> Currently, read only permissions are not being applied even >> when CONFIG_DEBUG_RODATA is set. This is because section_update >> uses current->mm for adjusting the page tables. current->m

Re: [RFC v2 1/2] Documentation: bridge: Add documentation for ps8640 DT properties

2015-11-04 Thread jitao shi
On Mon, 2015-11-02 at 12:09 +0100, Philipp Zabel wrote: > Hi Jitao, > > Am Montag, den 02.11.2015, 11:53 +0800 schrieb jitao shi: > [...] > > > +Example: > > > + edp-bridge@18 { > > > + compatible = "parade,ps8640"; > > > + reg = <0x18>; > > > + sleep-gpios = <&pio 116 GPIO

Re: [PATCH 1/1] signal: kill the obsolete SIGNAL_UNKILLABLE check in complete_signal()

2015-11-04 Thread Andrew Morton
On Wed, 4 Nov 2015 20:19:12 +0100 Oleg Nesterov wrote: > complete_signal() checks SIGNAL_UNKILLABLE before it starts to destroy the > thread group, today this is unnecessary and even not 100% correct. > > After the commit f008faff0e27 ("signals: protect init from unwanted signals > more") we rel

Re: [RFC v2 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2015-11-04 Thread jitao shi
Hi Philipp I'll fixed those comments on V3. Thank you very much. Best Regards. On Mon, 2015-11-02 at 12:34 +0100, Philipp Zabel wrote: > Hi Jitao, > > a few comments below. > > Am Montag, den 02.11.2015, 11:54 +0800 schrieb jitao shi: > [...] > > > +static int ps8640_check_valid_id(struct ps8

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Andy Lutomirski
On Wed, Nov 4, 2015 at 4:56 PM, Minchan Kim wrote: > On Wed, Nov 04, 2015 at 04:42:37PM -0800, Andy Lutomirski wrote: >> On Wed, Nov 4, 2015 at 4:13 PM, Minchan Kim wrote: >> > On Tue, Nov 03, 2015 at 07:41:35PM -0800, Andy Lutomirski wrote: >> >> On Nov 3, 2015 5:30 PM, "Minchan Kim" wrote: >>

Re: [GIT PULL] x86/mm changes for v4.4

2015-11-04 Thread Linus Torvalds
On Wed, Nov 4, 2015 at 3:39 PM, Dave Jones wrote: > > FWIW I'm seeing this too. > > [0.468368] ---[ Low Kernel Mapping ]--- > [0.468381] 0x8800-0x8880 8M RW >GLB NX pte > [0.468391] 0x8880-0x8890

Re: [PATCH] powerpc: on crash, kexec'ed kernel needs all CPUs are online

2015-11-04 Thread David Gibson
On Wed, 4 Nov 2015 14:54:51 +0100 Laurent Vivier wrote: > > > On 04/11/2015 13:34, Hari Bathini wrote: > > On 10/16/2015 12:30 AM, Laurent Vivier wrote: > >> On kexec, all secondary offline CPUs are onlined before > >> starting the new kernel, this is not done in the case of kdump. > >> > >> If

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 12:00:06PM -0800, Shaohua Li wrote: > On Wed, Nov 04, 2015 at 10:25:55AM +0900, Minchan Kim wrote: > > Linux doesn't have an ability to free pages lazy while other OS already > > have been supported that named by madvise(MADV_FREE). > > > > The gain is clear that kernel can

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
On Thu, Nov 05, 2015 at 10:33:50AM +0900, Minchan Kim wrote: > On Wed, Nov 04, 2015 at 12:00:06PM -0800, Shaohua Li wrote: > > On Wed, Nov 04, 2015 at 10:25:55AM +0900, Minchan Kim wrote: > > > Linux doesn't have an ability to free pages lazy while other OS already > > > have been supported that na

[PATCH V2 2/5] PM / OPP: Add {opp-microvolt|opp-microamp|turbo-mode|opp-suspend}- binding

2015-11-04 Thread Viresh Kumar
Depending on the version of hardware or its properties, which are only known at runtime, various properties of the OPP can change. For example, an OPP with frequency 1.2 GHz, may have different voltage/current requirements based on the version of the hardware it is running on. Similarly, it may or

[PATCH V2 3/5] PM / OPP: Remove 'operating-points-names' binding

2015-11-04 Thread Viresh Kumar
These aren't used until now by any DT files and wouldn't be used now as we have a better scheme in place now, i.e. opp-property- properties. Remove the (useless) binding without breaking ABI. Reviewed-by: Stephen Boyd Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/opp/opp.tx

[PATCH V2 1/5] PM / OPP: Add "opp-supported-hw" binding

2015-11-04 Thread Viresh Kumar
We may want to enable only a subset of OPPs, from the bigger list of OPPs, based on what version of the hardware we are running on. This would enable us to not duplicate OPP tables for every version of the hardware we support. To enable that, this patch defines a new property 'opp-supported-hw'. I

Re: [PATCH 1/4] perf tools: Pass available CPU number to clang compiler

2015-11-04 Thread Wangnan (F)
On 2015/11/5 6:09, Arnaldo Carvalho de Melo wrote: Em Wed, Nov 04, 2015 at 11:20:04AM +, Wang Nan escreveu: This patch introduces a new macro "__NR_CPUS__" to perf's embedded clang compiler, which represent the available CPU counters in this available "CPU counters"? ENOPARSE :-) Your c

[PATCH V2 5/5] ARM: dts: exynos4412: Rename OPP nodes as opp@

2015-11-04 Thread Viresh Kumar
OPP bindings got updated to name OPP nodes this way, make changes according to that. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/exynos4412.dtsi | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/

[PATCH V2 4/5] PM / OPP: Rename OPP nodes as opp@

2015-11-04 Thread Viresh Kumar
It would be better to name OPP nodes as opp@ as that will ensure that multiple DT nodes don't contain the same frequency. Of course we expect the writer to name the node with its opp-hz frequency and not any other frequency. And that will let the compile error out if multiple nodes are using the s

Re: [PATCH 1/6] dmaengine: tegra-apb: Correct runtime-pm usage

2015-11-04 Thread Rafael J. Wysocki
On Wednesday, November 04, 2015 08:59:43 AM Kevin Hilman wrote: > Vinod Koul writes: > > > On Tue, Nov 03, 2015 at 01:25:09PM -0800, Kevin Hilman wrote: > >> > /* Enable clock before accessing register */ > >> > -ret = tegra_dma_runtime_resume(dev); > >> > +ret = pm_runti

Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting

2015-11-04 Thread Wangnan (F)
On 2015/11/5 6:01, Arnaldo Carvalho de Melo wrote: Em Wed, Nov 04, 2015 at 02:25:58AM +, Wang Nan escreveu: In this patch, a series libbpf specific error numbers and libbpf_strerror() are created to help reporting error to caller. Functions are updated to pass correct error number through

Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE)

2015-11-04 Thread Minchan Kim
On Wed, Nov 04, 2015 at 05:29:57PM -0800, Andy Lutomirski wrote: > On Wed, Nov 4, 2015 at 4:56 PM, Minchan Kim wrote: > > On Wed, Nov 04, 2015 at 04:42:37PM -0800, Andy Lutomirski wrote: > >> On Wed, Nov 4, 2015 at 4:13 PM, Minchan Kim wrote: > >> > On Tue, Nov 03, 2015 at 07:41:35PM -0800, Andy

[PATCH] alarmtimer: fix unexpected rtc interrupt when system resume

2015-11-04 Thread zhuo-hao . lee
From: zhuo-hao Before the system go to suspend (S3), if user create a timer with clockid CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM and set a "large" timeout value to this timer. The function alarmtimer_suspend will be called to setup a timeout value to RTC timer to avoid the system sleep over tim

Re: [PATCH V2 5/5] ARM: dts: exynos4412: Rename OPP nodes as opp@

2015-11-04 Thread Krzysztof Kozlowski
On 05.11.2015 10:41, Viresh Kumar wrote: > OPP bindings got updated to name OPP nodes this way, make changes > according to that. > > Signed-off-by: Viresh Kumar > --- > arch/arm/boot/dts/exynos4412.dtsi | 28 ++-- > 1 file changed, 14 insertions(+), 14 deletions(-) I se

Re: [PATCH] PCI: altera: use fwnode API for pci_msi_create_irq_domain

2015-11-04 Thread Ley Foon Tan
On Wed, Nov 4, 2015 at 8:39 PM, Arnd Bergmann wrote: > There is a new conflict between Thomas Gleixner's IRQ tree that contains > a patch from Marc Zyngier to change the prototype for > pci_msi_create_irq_domain, and Bjorn Helgaas' PCI tree that contains > a new driver for the Altera PCI MSI host,

Re: perf related lockdep bug

2015-11-04 Thread Paul E. McKenney
On Wed, Nov 04, 2015 at 03:34:19PM +0100, Peter Zijlstra wrote: > On Wed, Nov 04, 2015 at 06:01:33AM -0800, Paul E. McKenney wrote: > > On Wed, Nov 04, 2015 at 11:28:00AM +0100, Peter Zijlstra wrote: > > > On Wed, Nov 04, 2015 at 11:21:51AM +0100, Peter Zijlstra wrote: > > > > > > > The problem ap

Re: [PATCH V2 5/5] ARM: dts: exynos4412: Rename OPP nodes as opp@

2015-11-04 Thread Viresh Kumar
On 05-11-15, 10:51, Krzysztof Kozlowski wrote: > I see this patch does not depend on the rest of patchset so I presume > this can co through samsung-soc? Yeah, I wouldn't mind that. But I would wait for a confirmation from Rafael for the bindings first, for an unlikely case where he doesn't like t

Re: [Linaro-acpi] [PATCH v8 5/5] Watchdog: introduce ARM SBSA watchdog driver

2015-11-04 Thread Timur Tabi
On Tue, Oct 27, 2015 at 11:06 AM, wrote: > +static irqreturn_t sbsa_gwdt_interrupt(int irq, void *dev_id) > +{ > + struct sbsa_gwdt *gwdt = (struct sbsa_gwdt *)dev_id; > + struct watchdog_device *wdd = &gwdt->wdd; > + > + /* We don't use pretimeout, trigger WS1 now */ > +

Re: perf related lockdep bug

2015-11-04 Thread Paul E. McKenney
On Wed, Nov 04, 2015 at 04:55:28PM -0800, Paul E. McKenney wrote: > On Wed, Nov 04, 2015 at 09:58:36PM +0100, Andi Kleen wrote: > > > > I tested my perf stress workload with the patch applied on 4.3, > > unfortunately got a hang again :-/ > > Any diagnostics, sysrq-T output, or whatever? Given t

[PATCH 3/4] dm verity: add support for forward error correction

2015-11-04 Thread Sami Tolvanen
Add support for correcting corrupted blocks using Reed-Solomon. This code uses RS(255, N) interleaved across data and hash blocks. Each error-correcting block covers N bytes evenly distributed across the combined total data, so that each byte is a maximum distance away from the others. This makes

[PATCH 1/4] dm verity: clean up duplicate hashing code

2015-11-04 Thread Sami Tolvanen
Handle dm-verity salting in one place to simplify the code. Signed-off-by: Sami Tolvanen --- drivers/md/dm-verity.c | 262 +++-- 1 file changed, 147 insertions(+), 115 deletions(-) diff --git a/drivers/md/dm-verity.c b/drivers/md/dm-verity.c index edc

[PATCH 4/4] dm verity: ignore zero blocks

2015-11-04 Thread Sami Tolvanen
Add ignore_zero_blocks option, which returns zeros for blocks matching a zero hash without validating the content. Signed-off-by: Sami Tolvanen --- Documentation/device-mapper/verity.txt | 5 ++ drivers/md/dm-verity.c | 88 ++ 2 files changed, 83

Re: [PATCH 1/2] clk: bcm2835: Support for clock parent selection

2015-11-04 Thread Eric Anholt
Remi Pommarel writes: > Some bcm2835 clocks used by hardware (like "PWM" or "H264") can have multiple > parents. These clocks divide the rate of one parent which can be selected by > setting the proper bits in their clock control register. > > Previously all these parents where handled by a mux c

[PATCH 0/4] dm verity: add support for error correction

2015-11-04 Thread Sami Tolvanen
This patch set adds error correction support to dm-verity, which makes it possible to recover from data corruption in exchange of increased space overhead. The feature is implemented as part of dm-verity to take advantage of the existing hash tree to improve performance and locate known erasures.

[PATCH 2/4] dm verity: separate function for parsing opt args

2015-11-04 Thread Sami Tolvanen
Move optional argument parsing into a separate function to make it easier to add more of them without making verity_ctr even longer. Signed-off-by: Sami Tolvanen --- drivers/md/dm-verity.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/driver

Re: [PATCH RFC net-next 2/2] tcp: Add Redundant Data Bundling (RDB)

2015-11-04 Thread Bendik Rønning Opstad
On Monday, November 02, 2015 09:37:54 AM David Laight wrote: > From: Bendik Rønning Opstad > > Sent: 23 October 2015 21:50 > > RDB is a mechanism that enables a TCP sender to bundle redundant > > (already sent) data with TCP packets containing new data. By bundling > > (retransmitting) already sent

Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting

2015-11-04 Thread Wangnan (F)
On 2015/11/5 9:48, Wangnan (F) wrote: On 2015/11/5 6:01, Arnaldo Carvalho de Melo wrote: Em Wed, Nov 04, 2015 at 02:25:58AM +, Wang Nan escreveu: In this patch, a series libbpf specific error numbers and libbpf_strerror() are created to help reporting error to caller. Functions are upda

Re: [PATCH V4] usb: remove unnecessary CONFIG_PM dependency from USB_OTG

2015-11-04 Thread Peter Chen
On Tue, Nov 03, 2015 at 09:51:11PM -0600, Felipe Balbi wrote: > > Hi, > > Peter Chen writes: > > On Tue, Nov 03, 2015 at 07:56:55AM -0600, Felipe Balbi wrote: > >> > >> Hi, > >> > >> Nathan Sullivan writes: > >> > The USB OTG support currently depends on power management > >> > (CONFIG_PM) be

Re: [GIT PULL] x86/mm changes for v4.4

2015-11-04 Thread Dave Jones
On Wed, Nov 04, 2015 at 05:31:59PM -0800, Linus Torvalds wrote: > On Wed, Nov 4, 2015 at 3:39 PM, Dave Jones wrote: > > > > FWIW I'm seeing this too. > > > > [0.468368] ---[ Low Kernel Mapping ]--- > > [0.468381] 0x8800-0x8880 8M RW > >

  1   2   3   4   5   6   7   8   9   10   >