Re: [PATCH 1/1] dmi_scan: uuid: fix endianess for smbios >= 0x206

2016-01-06 Thread Jean Delvare
Hi Matt, Andrea, On Tue, 22 Dec 2015 15:17:51 +, Matt Fleming wrote: > (Cc'ing Jean since he's the maintainer) > > On Tue, 22 Dec, at 02:53:10PM, Andrea Arcangeli wrote: > > The dmi_ver wasn't updated correctly before the dmi_decode method run > > to save the uuid. > > > > That resulted in "

[PATCH 2/2] printk, Add printk.clock kernel parameter

2016-01-06 Thread Prarit Bhargava
The script used in the analysis below: dmesg_with_human_timestamps () { $(type -P dmesg) "$@" | perl -w -e 'use strict; my ($uptime) = do { local @ARGV="/proc/uptime";<>}; ($uptime) = ($uptime =~ /^(\d+)\./); foreach my $line (<>) { printf( ($line=~/^\[\s*(\d+)\.\d

Re: [RESEND PATCH v1 4/4] clk: rockchip: rk3036: fix and add node id for emac clock

2016-01-06 Thread Xing Zheng
Hi Heiko, On 2016年01月02日 10:34, Xing Zheng wrote: > Hi Heiko, > Thank you for your patch, I will apply and test it later. > > Thanks. > >> 在 2016年1月2日,06:10,Heiko Stübner 写道: >> >> Hi Xing, >> >> Am Dienstag, 29. Dezember 2015, 10:34:09 schrieb Xing Zheng: >>> On 2015年12月29日 09:59, Yakir Yang

Re: [patch] mtip32xx: calling kfree() on an error pointer

2016-01-06 Thread Al Viro
On Wed, Jan 06, 2016 at 01:05:03PM +0300, Dan Carpenter wrote: > If memdup_user() fails then we end up passing an ERR_PTR to kfree() > which is a bug. Mind if I fold it (with credit, obviously)? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFD] CAT user space interface revisited

2016-01-06 Thread Tejun Heo
Hello, Marcelo. On Wed, Jan 06, 2016 at 10:46:15AM -0200, Marcelo Tosatti wrote: > Well, i suppose cgroups has facilities to handle this? That is, what is > required is: No, it doesn't. > On task creation, move the new task to a particular cgroup, based on > some visible characteristic of the ta

[PATCH v4 0/3] Add basic support for Allwinner A83T SOC

2016-01-06 Thread Vishnu Patekar
Hello, Re-sending after corrections, I've some more patches on top of this will send them separately to avoid delaying this one with new comments. This patch series adds very basic support for Allwinner A83T SOC. Clock, peripherals, smp support will be added later. Allwinner A83T is octa-core co

[PATCH v4 3/3] ARM: dts: sun8i: Add A83T HomletV2 Board by Allwinner

2016-01-06 Thread Vishnu Patekar
H8Homlet Proto v2.0 Board is A83T Dev Board by Allwinner. It has UART, ethernet, USB, HDMI, etc ports on it. A83T patches are tested on this board. It has UART, ethernet, USB, HDMI, etc ports on it. For FEL mode it needs USB A-A(Male) cable. I used uart0 which is multiplexed to microsd pins PF2 a

[PATCH v4 1/3] ARM: sunxi: Introduce Allwinner for A83T support

2016-01-06 Thread Vishnu Patekar
Allwinner A83T is octa-core cortex-a7 based SoC. It's clock control unit and prcm, pinmux are different from previous sun8i series. Its processor cores are arragned in two clusters 4 cores each, similar to A80. Signed-off-by: Vishnu Patekar Acked-by: Rob Herring Acked-by: Chen-Yu Tsai --- Docu

Re: [PATCH v2 02/12] mtd: nand_bbt: introduce struct nand_bbt

2016-01-06 Thread Boris Brezillon
Brian, Peter, On Tue, 15 Dec 2015 05:59:28 + Peter Pan wrote: > From: Brian Norris > > Currently nand_bbt.c is tied with struct nand_chip, and it makes other > NAND family chips hard to use nand_bbt.c. Maybe it's the reason why > onenand has own bbt(onenand_bbt.c). > > Separate struct nan

Re: [PATCH v3 06/12] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-06 Thread Ludovic Desroches
On Wed, Jan 06, 2016 at 06:31:37PM +0800, Jisheng Zhang wrote: > Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") > allows users of sdhci_pltfm to allocate private space in calls to > sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the > sdhci-of-at91 driver to th

[PATCH v4 2/3] ARM: dts: sun8i: Add Allwinner A83T dtsi

2016-01-06 Thread Vishnu Patekar
Allwinner A83T is new octa-core cortex-a7 SOC. This adds the basic dtsi, the clocks differs from earlier sun8i SOCs. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 204 ++ 1 file changed, 204 insertions(+) create mode 100644 arch/arm/bo

Re: [PATCH v2 4/4] mfd: arizona: Add device tree binding documentation for new clock driver

2016-01-06 Thread Rob Herring
On Wed, Jan 06, 2016 at 12:34:32PM +, Charles Keepax wrote: > Specify the device tree binding for the input clocks to Arizona devices. > > Signed-off-by: Charles Keepax > --- > > No changes since v1. > > Thanks, > Charles > > Documentation/devicetree/bindings/mfd/arizona.txt | 7 +++ >

Re: [patch] mtip32xx: calling kfree() on an error pointer

2016-01-06 Thread Dan Carpenter
On Wed, Jan 06, 2016 at 01:08:00PM +, Al Viro wrote: > On Wed, Jan 06, 2016 at 01:05:03PM +0300, Dan Carpenter wrote: > > If memdup_user() fails then we end up passing an ERR_PTR to kfree() > > which is a bug. > > Mind if I fold it (with credit, obviously)? No problem, that's fine. regards,

Re: [RFC][PATCH] sysrq: ensure manual invocation of the OOM killerunder OOM livelock

2016-01-06 Thread Michal Hocko
ogether but they are not that different in principle so I guess this could be acceptable. Maybe s@oom_reaper@async_oom_killer@ would be more appropriate to reflect that fact. [...] > While testing above patch, I once hit depletion of memory reserves. [...] > Complete log is at http://I-love.SAKURA.

[PATCH] net: add per device sg_max_frags for skb

2016-01-06 Thread Hans Westgaard Ry
Devices may have limits on the number of fragments in an skb they support. Current codebase uses a constant as maximum for number of fragments (MAX_SKB_FRAGS) one skb can hold and use. When enabling scatter/gather and running traffic with many small messages the codebase uses the maximum number of

Re: [PATCH 2/2] drm: bridge: add sil902x DT bindings doc

2016-01-06 Thread Rob Herring
On Wed, Jan 06, 2016 at 12:25:51PM +0100, Boris Brezillon wrote: > Add Sil9022 DT bindings description. > > Signed-off-by: Boris Brezillon > --- > .../devicetree/bindings/display/bridge/sil902x.txt | 31 > ++ > 1 file changed, 31 insertions(+) > create mode 100644 > Docume

Re: [RFC PATCH] X.509: Don't check the signature on apparently self-signed keys [ver #2]

2016-01-06 Thread David Howells
Mimi Zohar wrote: > The x509_validate_trust() was originally added for IMA to ensure, on a > secure boot system, a certificate chain of trust rooted in hardware. > The IMA MOK keyring extends this certificate chain of trust to the > running system. The problem is that because 'trusted' is a bool

Re: [PATCH v2 0/8] i2c mux cleanup and locking update

2016-01-06 Thread Crt Mori
Hi Wolfram and Peter, I will give my opinion about the path chosen although it should be taken lightly. I can see that hardware guys missed the software guys again on the development path, but since this happens more often than not, I would say it seems OK to have support for this as long as it do

Re: [PATCH 2/2] drm: bridge: add sil902x DT bindings doc

2016-01-06 Thread Boris Brezillon
Hi Rob, On Wed, 6 Jan 2016 07:19:59 -0600 Rob Herring wrote: > On Wed, Jan 06, 2016 at 12:25:51PM +0100, Boris Brezillon wrote: > > Add Sil9022 DT bindings description. > > > > Signed-off-by: Boris Brezillon > > --- > > .../devicetree/bindings/display/bridge/sil902x.txt | 31 > >

Re: [PATCH v4 2/3] ARM: dts: sun8i: Add Allwinner A83T dtsi

2016-01-06 Thread Mark Rutland
Hi, > + chosen { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + }; What is the ranges property doing here? [...] > + clocks { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + >

Re: [patch] mtip32xx: calling kfree() on an error pointer

2016-01-06 Thread Al Viro
On Wed, Jan 06, 2016 at 04:16:50PM +0300, Dan Carpenter wrote: > On Wed, Jan 06, 2016 at 01:08:00PM +, Al Viro wrote: > > On Wed, Jan 06, 2016 at 01:05:03PM +0300, Dan Carpenter wrote: > > > If memdup_user() fails then we end up passing an ERR_PTR to kfree() > > > which is a bug. > > > > Mind

Re: [PATCH 2/2] phy: ti-pipe3: configure usb3 phy to be used as pcie phy

2016-01-06 Thread Rob Herring
On Wed, Jan 06, 2016 at 04:29:08PM +0530, Kishon Vijay Abraham I wrote: > DRA72 uses USB3 PHY for the 2nd lane of PCIE. The configuration > required to make USB3 PHY used for the 2nd lane of PCIe is done > here. > > Signed-off-by: Kishon Vijay Abraham I > --- > Documentation/devicetree/bindings/

Re: [PATCH 3.12 25/91] x86/setup: Extend low identity map to cover whole kernel range

2016-01-06 Thread Matt Fleming
On Wed, 06 Jan, at 11:24:55AM, Luis Henriques wrote: > On Wed, Jan 06, 2016 at 11:00:31AM +, Matt Fleming wrote: > > On Wed, 06 Jan, at 11:47:20AM, Paolo Bonzini wrote: > > > > > > Without testing the problematic scenario explicitly (32-bit UEFI > > > kernel), I think this patch and 26/91 shou

[PATCH] staging: wilc1000: Removed unnecessary braces

2016-01-06 Thread Anjali Menon
Removed unnecessary braces for single statement blocks to fix the warning detected by checkpatch.pl WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Anjali Menon --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

Re: [PATCH v2 05/12] mtd: nand: use new BBT API instead of old ones

2016-01-06 Thread Boris Brezillon
On Tue, 15 Dec 2015 05:59:31 + Peter Pan wrote: > From: Brian Norris > > Use new BBT APIs (nand_bbt_*()) in NAND. Keep old APIs (nand_*_bbt()) > exist temporarily. > > Signed-off-by: Brian Norris > [Peter: 1. use nand_bbt_markbad_factory() in docg4.c and implement > 2. nand_create

Re: [PATCH v1 3/3] ARM64 LPC: update binding doc

2016-01-06 Thread Rongrong Zou
在 2016/1/5 20:19, Arnd Bergmann 写道: On Tuesday 05 January 2016 19:59:49 Rongrong Zou wrote: 在 2016/1/5 0:34, Arnd Bergmann 写道: On Tuesday 05 January 2016 00:04:19 Rongrong Zou wrote: 在 2016/1/4 19:13, Arnd Bergmann 写道: On Sunday 03 January 2016 20:24:14 Rongrong Zou wrote: 在 2015/12/31 23:00

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-06 Thread Austin S. Hemmelgarn
On 2016-01-04 10:34, Pierre Paul MINGOT wrote: > Hello, > > In Linux there is no way to set the number of tty devices or console > to create. By default the kernel create 64 /dev/tty devices. what is > too much for embedded system with limited resources. As all these 64 > devices are not necessary

Re: [PATCH 2/2] arm64: factor work_pending state machine to C

2016-01-06 Thread Mark Rutland
On Tue, Jan 05, 2016 at 05:33:35PM +, Mark Rutland wrote: > Currently ret_fast_syscall, work_pending, and ret_to_user form an ad-hoc > state machine that can be difficult to reason about due to duplicated > code and a large number of branch targets. > > This patch factors the common logic out

[PATCH] X.509: Partially revert patch to add validation against IMA MOK keyring

2016-01-06 Thread David Howells
Partially revert commit 41c89b64d7184a780f12f2cccdabe65cb2408893: Author: Petko Manolov Date: Wed Dec 2 17:47:55 2015 +0200 IMA: create machine owner and blacklist keyrings The problem is that prep->trusted is a simple boolean and the additional x509_validate_trust() ca

Re: [PATCH 1/2] drm: bridge: sil902x

2016-01-06 Thread Sascha Hauer
Hi Boris, On Wed, Jan 06, 2016 at 12:25:50PM +0100, Boris Brezillon wrote: > Add basic support for the sil902x RGB -> HDMI bridge. > This driver does not support audio output yet. > > Signed-off-by: Boris Brezillon > --- > Hello, > > This patch is only adding basic support for the sil9022 chip.

Re: [PATCH 10/10] [media] tvp5150: Configure data interface via pdata or DT

2016-01-06 Thread Laurent Pinchart
Hi Javier, On Wednesday 06 January 2016 08:27:26 Javier Martinez Canillas wrote: > On 01/06/2016 07:56 AM, Laurent Pinchart wrote: > > On Monday 04 January 2016 09:25:32 Javier Martinez Canillas wrote: > >> The video decoder supports either 8-bit 4:2:2 YUV with discrete syncs > >> or 8-bit ITU-R B

Re: [PATCH v2 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2016-01-06 Thread Boris Brezillon
On Tue, 15 Dec 2015 05:59:32 + Peter Pan wrote: > From: Brian Norris > > Since NAND already create its nand_bbt struct, we can use erase() > hook instead of call nand_erase_nand() directly. Also, we can use > is_bad_bbm() to avoid passing badblock_pattern to BBT. > > Signed-off-by: Brian N

[RFC v2 3/4] i2c: mux: demux-pinctrl: add driver

2016-01-06 Thread Wolfram Sang
From: Wolfram Sang This driver allows an I2C bus to switch between multiple masters. This is not hot-swichting because connected I2C slaves will be re-instantiated. It is meant to select the best I2C core at runtime once the task is known. Example: Prefer i2c-gpio over another I2C core because of

[RFC v2 1/4] of: make of_mutex public

2016-01-06 Thread Wolfram Sang
From: Wolfram Sang If we want to use OF_DYNAMIC features outside the of framework, we need to access this lock. Signed-off-by: Wolfram Sang --- drivers/of/of_private.h | 1 - include/linux/of.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/of_private.h b

[RFC v2 4/4] ARM: shmobile: r8a7790: rework dts to use i2c demuxer

2016-01-06 Thread Wolfram Sang
From: Wolfram Sang Create a seperate bus for HDMI related I2C slaves and assign it to a i2c-gpio master. It can be switched to the i2c-rcar or i2c-sh_mobile core at runtime. Signed-off-by: Wolfram Sang --- arch/arm/boot/dts/r8a7790-lager.dts | 141 ++-- 1 file c

[RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings

2016-01-06 Thread Wolfram Sang
From: Wolfram Sang These bindings allow an I2C bus to switch between multiple masters. This is not hot-swichting because connected I2C slaves will be re-instantiated. It is meant to select the best I2C core at runtime once the task is known. Example: Prefer i2c-gpio over another I2C core because

[RFC v2 0/4] i2c/of: switch I2C IP cores at runtime via OF_DYNAMIC

2016-01-06 Thread Wolfram Sang
I know this is gonna be a controversial series, but we have a usecase for this :) This series allows an I2C bus to switch between multiple masters, i.e. a n-to-1-demuxer. This is not hot-switching because connected I2C slaves will be re-instantiated. It is meant to select the best I2C core at run

Re: [PATCH 1/2] drm: bridge: sil902x

2016-01-06 Thread Boris Brezillon
Hi Sascha, On Wed, 6 Jan 2016 14:47:36 +0100 Sascha Hauer wrote: > Hi Boris, > > On Wed, Jan 06, 2016 at 12:25:50PM +0100, Boris Brezillon wrote: > > Add basic support for the sil902x RGB -> HDMI bridge. > > This driver does not support audio output yet. > > > > Signed-off-by: Boris Brezillon

[PATCH v2] ipr: fix out-of-bounds null overwrite

2016-01-06 Thread Insu Yun
Return value of snprintf is not bound by size value, 2nd argument. (https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html). Return value is number of printed chars, can be larger than 2nd argument. Therefore, it can write null byte out of bounds ofbuffer. Since snprintf puts null, it doe

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-06 Thread One Thousand Gnomes
> In fact, there already appears to be some degree of allocation on demand > for VT's (otherwise deallocvt has no point), just not for everything > associated with the VT. I'd be willing to bet that almost everything > that reasonably can be dynamically allocated already is, there is a bare >

RE: [PATCH] net: add per device sg_max_frags for skb

2016-01-06 Thread David Laight
From: Hans Westgaard Ry > Sent: 06 January 2016 13:16 > Devices may have limits on the number of fragments in an skb they > support. Current codebase uses a constant as maximum for number of > fragments (MAX_SKB_FRAGS) one skb can hold and use. > > When enabling scatter/gather and running traffic

[PATCH 0/8] Goldfish: partial resync with Google tree

2016-01-06 Thread Alan
The Goldfish virtual platform has been aligning itself a bit more with convenional interfaces. It now uses things like virtio, it uses ACPI in preference to a magic goldfish bus interface and slowly gets closer to upstream qemu. These patches pull relevant changes back from the Goldfish Googl

[PATCH 1/8] goldfish: refactor goldfish platform configs

2016-01-06 Thread Alan
From: Greg Hackmann On new virtual devices, the goldfish virtual bus can be replaced with autoprobing infrastructure like Device Tree. Refactor the goldfish kernel configs to better accommodate this. Move the goldfish platform into a menuconfig in the style of the chrome platform, and separate

[PATCH 2/8] android_pipe: don't be clever with #define offsets

2016-01-06 Thread Alan
From: Alex Bennée It just makes it harder to figure out which commands are being used. Signed-off-by: Alex Bennée Signed-off-by: Jin Qian Signed-off-by: Alan Cox --- drivers/platform/goldfish/goldfish_pipe.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --gi

Re: [PATCH v4 2/3] ARM: dts: sun8i: Add Allwinner A83T dtsi

2016-01-06 Thread Maxime Ripard
Hi Mark, On Wed, Jan 06, 2016 at 01:25:05PM +, Mark Rutland wrote: > > + clocks { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges; > > + > > + osc24M: osc24M_clk { > > + #clock-cells = <0>; > > + co

[PATCH 4/8] platform: goldfish: pipe: add devicetree bindings

2016-01-06 Thread Alan
From: Greg Hackmann Add bindings so we don't need to rely on goldfish virtual bus for probing any more, which means we don't need ARM and MIPS goldfish board code for instantiating the bus. In the long term we would like to move towards replacing the Android pipe with virtio-vsock that is curren

[PATCH 3/8] android_pipe: Pin pages to memory while copying and other cleanups

2016-01-06 Thread Alan
From: Christoffer Dall The existing code had a troubling TODO statement concerning the fact that it just did a check if the page that the QEMU backend was going to read from / write to was there before the call to the QEMU backend and then relying on the fact that the page stayed around, even in

Re: [PATCH] net: add per device sg_max_frags for skb

2016-01-06 Thread Eric Dumazet
On Wed, 2016-01-06 at 14:16 +0100, Hans Westgaard Ry wrote: > Devices may have limits on the number of fragments in an skb they > support. Current codebase uses a constant as maximum for number of > fragments (MAX_SKB_FRAGS) one skb can hold and use. > > When enabling scatter/gather and running tr

[PATCH 5/8] platform: goldfish: pipe: don't log when dropping PIPE_ERROR_AGAIN

2016-01-06 Thread Alan
From: Greg Hackmann On PIPE_ERROR_AGAIN, just stopping in the middle of a transfer and returning the number of bytes actually handled is the right behavior. Other errors should be returned on the next read() or write() call. Continue logging those until we confirm nothing actually relies on the

[PATCH 6/8] [MIPS] Enable platform support for Goldfish virtual devices

2016-01-06 Thread Alan
From: Miodrag Dinic Enable CONFIG_GOLDFISH for MIPS platforms. Signed-off-by: Miodrag Dinic Signed-off-by: Jin Qian Signed-off-by: Alan Cox --- drivers/platform/goldfish/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/goldfish/Kconfig b/driver

[PATCH 8/8] goldfish: Enable ACPI-based enumeration for android pipe

2016-01-06 Thread Alan
From: Jason Hu Add ACPI binding to the android pipe driver Signed-off-by: Jason Hu Signed-off-by: Jin Qian Signed-off-by: Alan Cox --- drivers/platform/goldfish/goldfish_pipe.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers

[PATCH 7/8] goldfish_pipe: Pass physical addresses to the device if supported

2016-01-06 Thread Alan
From: Yu Ning For reading and writing guest user space buffers, currently the kernel sends the guest virtual address of the buffer to the pipe device. This virtual address has to be first converted to a guest physical address. Doing this translation on the QEMU side is inefficient and requires ad

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-06 Thread Austin S. Hemmelgarn
On 2016-01-06 08:54, One Thousand Gnomes wrote: In fact, there already appears to be some degree of allocation on demand for VT's (otherwise deallocvt has no point), just not for everything associated with the VT. I'd be willing to bet that almost everything that reasonably can be dynamically al

Re: [PATCH 1/1] regulator: max8973: add support for junction thermal warning

2016-01-06 Thread Laxman Dewangan
On Wednesday 06 January 2016 06:07 PM, Mark Brown wrote: * PGP Signed by an unknown key In one of design, interrupt from MAX77620, and alert from both MAX77621 shorted and going to Arm GIC controller. On this case, I need to register the interrupt as SHARED interrupt. This property can not be

[PATCH] usb: hid: Add new PID for Microchip Pick16F1454

2016-01-06 Thread Kristian Evensen
From: Kristian Evensen There seems to be a new version of the Microchip Pick16F1454 with a different PID (0xf2f7). This device should also be ignored by the HID driver. The PID was observed with the second version of the Yepkit Ykush USB hub. Signed-off-by: Kristian Evensen --- drivers/hid/hid

Re: [PATCH 2/2] pci: host: pci-dra7xx: Enable x2 mode support

2016-01-06 Thread Rob Herring
On Wed, Jan 06, 2016 at 04:19:53PM +0530, Kishon Vijay Abraham I wrote: > Perform syscon configurations to get x2 mode to working in DRA74x and > DRA72x. Also add a new compatible string to dfferentiate > DRA72x and DRA74x, since b1c0 mask is different for both these platforms. > > Signed-off-by:

Re: [PATCH v3 0/4] um: Add seccomp support

2016-01-06 Thread David Drysdale
On Mon, Jan 4, 2016 at 8:13 PM, Kees Cook wrote: > On Tue, Dec 29, 2015 at 12:35 PM, Mickaël Salaün wrote: >> This series add seccomp support to User-mode Linux (i386 and x86_64 >> subarchitectures) and fix ptrace issues. This apply on v4.4-rc7 and pass all >> the 48 tests from selftest/seccomp p

Re: [PATCH v5 0/9] ftrace with regs + live patching for ppc64 LE (ABI v2)

2016-01-06 Thread Petr Mladek
On Fri 2015-12-04 15:45:29, Torsten Duwe wrote: > Changes since v4: > * change comment style in entry_64.S to C89 > (nobody is using assembler syntax comments there). > * the bool function restore_r2 shouldn't return 2, > that's a little confusing. > * Test whether the compiler suppor

Re: [PATCH 2/2] arm64: factor work_pending state machine to C

2016-01-06 Thread Catalin Marinas
On Wed, Jan 06, 2016 at 01:43:14PM +, Mark Rutland wrote: > On Tue, Jan 05, 2016 at 05:33:35PM +, Mark Rutland wrote: > > Currently ret_fast_syscall, work_pending, and ret_to_user form an ad-hoc > > state machine that can be difficult to reason about due to duplicated > > code and a large n

Re: [PATCHv9 0/3] perf stat: Add scripting support

2016-01-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 06, 2016 at 11:49:54AM +0100, Jiri Olsa escreveu: > hi, > sending another version of stat scripting. > v9 changes: > - rebased on top of accepted patches > - desribed CPI metric in changelog [Arnaldo] > - fixed cpu conversion [Arnaldo] Thanks, applied. Testing the cpi script wi

Re: [PATCH v3 0/4] um: Add seccomp support

2016-01-06 Thread Richard Weinberger
Am 06.01.2016 um 15:15 schrieb David Drysdale: > On Mon, Jan 4, 2016 at 8:13 PM, Kees Cook wrote: >> On Tue, Dec 29, 2015 at 12:35 PM, Mickaël Salaün wrote: >>> This series add seccomp support to User-mode Linux (i386 and x86_64 >>> subarchitectures) and fix ptrace issues. This apply on v4.4-rc7

Re: [RFC PATCH] X.509: Don't check the signature on apparently self-signed keys [ver #2]

2016-01-06 Thread David Howells
Mimi Zohar wrote: > Once the builtin keys are loaded onto the system keyring, isn't the > system keyring locked? No. David -- 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.

Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver

2016-01-06 Thread Geert Uytterhoeven
Hi Wolfram, On Wed, Jan 6, 2016 at 2:51 PM, Wolfram Sang wrote: > From: Wolfram Sang > > This driver allows an I2C bus to switch between multiple masters. This > is not hot-swichting because connected I2C slaves will be switching > re-instantiated. It is meant to select the best I2C core at ru

[PATCH] mm: mempolicy: skip non-migratable VMAs when setting MPOL_MF_LAZY

2016-01-06 Thread Liang Chen
MPOL_MF_LAZY is not visible from userspace since 'commit a720094ded8c ("mm: mempolicy: Hide MPOL_NOOP and MPOL_MF_LAZY from userspace for now")' , but it should still skip non-migratable VMAs. Signed-off-by: Liang Chen Signed-off-by: Gavin Guo --- We have been evaluating the enablement of MPOL_M

Re: [PATCH 3.12 25/91] x86/setup: Extend low identity map to cover whole kernel range

2016-01-06 Thread Luis Henriques
[ Adding Greg and Kamal ] On Wed, Jan 06, 2016 at 01:31:55PM +, Matt Fleming wrote: > On Wed, 06 Jan, at 11:24:55AM, Luis Henriques wrote: > > On Wed, Jan 06, 2016 at 11:00:31AM +, Matt Fleming wrote: > > > On Wed, 06 Jan, at 11:47:20AM, Paolo Bonzini wrote: > > > > > > > > Without testin

Re: [PATCH v5 9/9] Enable LIVEPATCH to be configured on ppc64le and add livepatch.o if it is selected.

2016-01-06 Thread Petr Mladek
On Fri 2015-12-04 15:13:44, Torsten Duwe wrote: > Signed-off-by: Torsten Duwe > --- > arch/powerpc/Kconfig | 5 + > arch/powerpc/kernel/Makefile | 1 + > 2 files changed, 6 insertions(+) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 89b1a2a..62a3f54 100644 > --

Re: [RFC PATCH] X.509: Don't check the signature on apparently self-signed keys [ver #2]

2016-01-06 Thread Mimi Zohar
On Wed, 2016-01-06 at 13:21 +, David Howells wrote: > Mimi Zohar wrote: > > > The x509_validate_trust() was originally added for IMA to ensure, on a > > secure boot system, a certificate chain of trust rooted in hardware. > > The IMA MOK keyring extends this certificate chain of trust to the

Re: linux-next: manual merge of the rdma tree with the nfsd tree

2016-01-06 Thread Chuck Lever
> On Jan 6, 2016, at 7:15 AM, Christoph Hellwig wrote: > > On Wed, Jan 06, 2016 at 07:01:14AM -0500, Chuck Lever wrote: >> Part of the plan was that Doug's tree would be merged before >> Bruce's. But the above problem description looks like the >> maintainer trees were merged into linux-next in

Re: [PATCH v3 0/3] clocksource/vt8500: Fix hangs in small delays

2016-01-06 Thread Daniel Lezcano
On 01/01/2016 02:24 PM, Roman Volkov wrote: From: Roman Volkov vt8500 hangs in nanosleep() function, starting from commit c6eb3f70d4482806dc2d3e1e3c7736f497b1d418, making the system unusable. Per investigation, looks like set_next_event() now receives too small delta and fails with -ETIME. H

Re: [PATCH 1/1] regulator: max8973: add support for junction thermal warning

2016-01-06 Thread Rob Herring
On Wed, Jan 06, 2016 at 12:37:35PM +, Mark Brown wrote: > On Wed, Jan 06, 2016 at 05:49:22PM +0530, Laxman Dewangan wrote: > > On Wednesday 06 January 2016 05:48 PM, Mark Brown wrote: > > >* PGP Signed by an unknown key > > > >On Wed, Jan 06, 2016 at 11:45:22AM +0530, Laxman Dewangan wrote: >

Re: [RFC v2 1/4] of: make of_mutex public

2016-01-06 Thread Geert Uytterhoeven
Hi Wolfram, On Wed, Jan 6, 2016 at 2:51 PM, Wolfram Sang wrote: > From: Wolfram Sang > > If we want to use OF_DYNAMIC features outside the of framework, we need > to access this lock. As I2C_DEMUX_PINCTRL is tristate, you want to add an EXPORT_SYMBOL_GPL(), too. Gr{oetje,eeting}s,

Re: [PATCH 1/2] mm, oom: introduce oom reaper

2016-01-06 Thread Paul Gortmaker
[Re: [PATCH 1/2] mm, oom: introduce oom reaper] On 06/01/2016 (Wed 10:10) Michal Hocko wrote: > On Mon 21-12-15 15:38:21, Paul Gortmaker wrote: > [...] > > ...use one of the non-modular initcalls here? I'm trying to clean up most > > of > > the non-modular uses of modular macros etc. since: >

Re: [PATCH v2 00/12] mtd: nand_bbt: introduce independent nand BBT

2016-01-06 Thread Boris Brezillon
On Wed, 30 Dec 2015 09:31:06 +0100 Boris Brezillon wrote: > Hi Peter, > > On Wed, 30 Dec 2015 15:18:39 +0800 > 潘栋 wrote: > > > Hi Boris and Ezequiel, > > > > 2015-12-29 23:11 GMT+08:00 Boris Brezillon > > : > > > On Tue, 29 Dec 2015 12:07:50 -0300 > > > Ezequiel Garcia wrote: > > > > > >> O

Re: [PATCH 1/1] regulator: max8973: add support for junction thermal warning

2016-01-06 Thread Laxman Dewangan
On Wednesday 06 January 2016 07:55 PM, Rob Herring wrote: On Wed, Jan 06, 2016 at 12:37:35PM +, Mark Brown wrote: On Wed, Jan 06, 2016 at 05:49:22PM +0530, Laxman Dewangan wrote: On Wednesday 06 January 2016 05:48 PM, Mark Brown wrote: * PGP Signed by an unknown key On Wed, Jan 06, 2016 a

Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings

2016-01-06 Thread Geert Uytterhoeven
Hi Wolfram, On Wed, Jan 6, 2016 at 2:51 PM, Wolfram Sang wrote: > These bindings allow an I2C bus to switch between multiple masters. This > is not hot-swichting because connected I2C slaves will be > re-instantiated. It is meant to select the best I2C core at runtime once > the task is known. Ex

Re: [PATCH v2 31/32] sh: support a 2-byte smp_store_mb

2016-01-06 Thread Peter Zijlstra
On Wed, Jan 06, 2016 at 01:52:17PM +0200, Michael S. Tsirkin wrote: > > > Peter, what do you think? How about I leave this patch as is for now? > > > > No, and I object to removing the single byte implementation too. Either > > remove the full arch or fix xchg() to conform. xchg() should work on a

Re: [PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery

2016-01-06 Thread Nishanth Menon
On 01/06/2016 02:13 AM, Laxman Dewangan wrote: > > On Wednesday 06 January 2016 01:12 PM, H. Nikolaus Schaller wrote: >> Hi, >> >> Am 06.01.2016 um 00:40 schrieb Nishanth Menon : >> >>> On 01/05/2016 06:01 AM, H. Nikolaus Schaller wrote: +rtc { +compatible = "ti,palma

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2016-01-06 Thread Jiri Kosina
On Mon, 4 Jan 2016, Benjamin Tissoires wrote: > Jiri, I *think* this commit still is in your next pull request for > Linus. We might want to drop it before it hits Linus' tree. What exactly would be the reasoning for dropping it? I am all for implementing the skeleton HID driver to take over the

[PATCH 2/2] Bluetooth: btmrvl: don't send data to firmware while processing suspend

2016-01-06 Thread Amitkumar Karwar
From: Chin-Ran Lo Usually when driver sends data to firmware it receives TX_DONE (DN_LD_HOST_INT_STATUS) interrupt from firmware right away. It's also observed that some times the fireware could delay sending DN_LD_HOST_INT_STATUS interrupt. If driver sends data to firmware during suspend process

[PATCH v2 net-next] ethernet/atheros/alx: sanitize buffer sizing and padding

2016-01-06 Thread Jarod Wilson
This is based on the work done by Przemek Rudy in bug 70761 at bugzilla.kernel.org, but with some work done to disentagle and clarify things a bit. Similar to Przemek's work and other drivers, we're adding a padding of 16 here, but we're also disentangling mtu size calculations from max buffer siz

Re: [PATCH v2 05/12] mtd: nand: use new BBT API instead of old ones

2016-01-06 Thread Boris Brezillon
On Tue, 15 Dec 2015 05:59:31 + Peter Pan wrote: > From: Brian Norris > > Use new BBT APIs (nand_bbt_*()) in NAND. Keep old APIs (nand_*_bbt()) > exist temporarily. > > Signed-off-by: Brian Norris > [Peter: 1. use nand_bbt_markbad_factory() in docg4.c and implement > 2. nand_create

[PATCH 1/2] Bluetooth: btmrvl: max out host sleep parameter 'gap'

2016-01-06 Thread Amitkumar Karwar
From: Chin-Ran Lo For gpio=0xff (wake up host through SDIO interface) case, gap=0xff means no delay (same as gap=0) for incoming data packet to be sent to host after host sleep is activated. Change it to the maximum delay to reduce the chance that RX interrupt could be delivered while host contro

18-year-old bug

2016-01-06 Thread Albert Cahalan
This bug was introduced with SE Linux, 18 years ago. People have been adding hacks to work around it as the bug bites them, but really the bug ought to be fixed. Signals related to a tty are supposed to come from the kernel. This got broken for pty devices. We now act as if the signal is sent from

Re: [PATCHv9 0/3] perf stat: Add scripting support

2016-01-06 Thread Jiri Olsa
On Wed, Jan 06, 2016 at 11:18:02AM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Jan 06, 2016 at 11:49:54AM +0100, Jiri Olsa escreveu: > > hi, > > sending another version of stat scripting. > > > v9 changes: > > - rebased on top of accepted patches > > - desribed CPI metric in changelog [A

Re: [PATCH] af_unix: Fix splice-bind deadlock

2016-01-06 Thread Rainer Weikusat
Hannes Frederic Sowa writes: > On Sun, Jan 3, 2016, at 19:03, Rainer Weikusat wrote: [reorder i_mutex and readlock locking] > I was concerned because of the comment in skb_socket_splice: > > /* Drop the socket lock, otherwise we have reverse > * locking dependencies between sk_l

Re: [PATCH 00/19] irqchip: atmel-aic: make unified AIC driver

2016-01-06 Thread Jason Cooper
Hey Milo, On Wed, Jan 06, 2016 at 10:07:55AM +0100, Boris Brezillon wrote: > On Wed, 6 Jan 2016 16:48:23 +0900 Milo Kim wrote: > > On 01/04/2016 06:02 PM, Boris Brezillon wrote: > > > On Mon, 4 Jan 2016 13:28:24 +0900 Milo Kim wrote: > > > > > >> This patch-set provides unified Atmel AIC (Advanc

Re: [PATCH v2 8/8] i2c-mux: relax locking of the top i2c adapter during i2c controlled muxing

2016-01-06 Thread Rob Herring
On Tue, Jan 05, 2016 at 04:57:18PM +0100, Peter Rosin wrote: > From: Peter Rosin > > With a i2c topology like the following > >GPIO ---| -- BAT1 > | v / >I2C -+--+ MUX > | \ >

Re: [PATCH] Add support for usbfs zerocopy.

2016-01-06 Thread Steinar H. Gunderson
On Tue, Jan 05, 2016 at 10:49:49PM -0800, Christoph Hellwig wrote: > This is a completely broken usage of the mmap interface. if you use > mmap on a device file you must use the actual mmap for the data > transfer. Really? V4L does exactly the same thing, from what I can see. It's just a way of a

Re: [PATCH v5 net-next 3/3] dt-bindings: net: macb: Add NP4 macb variant

2016-01-06 Thread Rob Herring
On Tue, Jan 05, 2016 at 02:39:18PM +0100, Neil Armstrong wrote: > Add NP4 macb SoC variant. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/net/macb.txt | 1 + > 1 file changed, 1 insertion(+) Acked-by: Rob Herring -- To unsubscribe from this list: send the line "u

Re: [PATCH V2 2/3] NTB: Add AMD NTB support in Kconfig and Makefile

2016-01-06 Thread Jon Mason
On Wed, Dec 23, 2015 at 8:43 AM, Xiangliang Yu wrote: > This patch is to enable AMD NTB support in Kconfig and Makefile. > > Signed-off-by: Xiangliang Yu > --- > drivers/ntb/hw/Kconfig | 1 + > drivers/ntb/hw/Makefile | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/ntb/hw/Kco

Re: [PATCH 1/2] mm, oom: introduce oom reaper

2016-01-06 Thread Michal Hocko
On Wed 06-01-16 09:26:12, Paul Gortmaker wrote: > [Re: [PATCH 1/2] mm, oom: introduce oom reaper] On 06/01/2016 (Wed 10:10) > Michal Hocko wrote: > > > On Mon 21-12-15 15:38:21, Paul Gortmaker wrote: > > [...] > > > ...use one of the non-modular initcalls here? I'm trying to clean up > > > mos

[PATCH] clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h

2016-01-06 Thread Geliang Tang
to_clk_*(_hw) macros have been repeatedly defined in many places. This patch moves all the to_clk_*(_hw) definations in the common clock framework to public header clk-provider.h, and drop the local definations. Signed-off-by: Geliang Tang --- drivers/clk/clk-composite.c | 2 -- driver

Re: linux-next: manual merge of the rdma tree with the nfsd tree

2016-01-06 Thread Or Gerlitz
On 1/6/2016 4:24 PM, Chuck Lever wrote: Actually, one of Or's for-4.5 devattr patches doesn't appear to have the proper Ack's for the changes under net/sunrpc/xprtrdma either. Chuck, Lets be concrete... anything wrong with patch [1]? Or. [1] commit e3e45b1 "xprtrdma: Avoid calling ib_query

Re: [PATCH v2 2/3] Input: cyttsp - add device tree support

2016-01-06 Thread Rob Herring
On Tue, Jan 05, 2016 at 01:59:14PM +0100, Oreste Salerno wrote: > Add support for retrieving the platform data from the device > tree. Converting platform data to DT as is is typically not the right thing to do. There's some overlap, but it is not typically 1-1. > Signed-off-by: Oreste Salerno

Re: [PATCH V2 1/3] NTB: Add AMD PCI-Express NTB driver

2016-01-06 Thread Jon Mason
On Wed, Dec 23, 2015 at 8:42 AM, Xiangliang Yu wrote: > AMD NTB support following main features: > (1) Three memory windows; > (2) Sixteen 32-bit scratch pad; > (3) Two 16-bit doorbell interrupt; > (4) Five event interrupts; > (5) One system can wake up opposite system of NTB; > (6) Flush previous

Re: [PATCH 10/10] [media] tvp5150: Configure data interface via pdata or DT

2016-01-06 Thread Javier Martinez Canillas
Hello Laurent, On 01/06/2016 10:48 AM, Laurent Pinchart wrote: [snip] @@ -940,6 +948,16 @@ static int tvp5150_cropcap(struct v4l2_subdev *sd, struct v4l2_cropcap *a) static int tvp5150_g_mbus_config(struct v4l2_subdev *sd, struct v4l2_mbus_config

Re: [PATCH v3 0/4] thermal: re-calculate k_po/k_pu when update sustainable power

2016-01-06 Thread Javi Merino
On Wed, Jan 06, 2016 at 11:21:54AM +, Daniel Thompson wrote: > On 06/01/16 10:07, Javi Merino wrote: > >On Wed, Jan 06, 2016 at 04:53:44PM +0800, Leo Yan wrote: > >>k_po/k_pu are two proportional term constants and essentially they have > >>fixed ratio compared with sustainable power. In curren

Re: [PATCHv9 0/3] perf stat: Add scripting support

2016-01-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 06, 2016 at 03:38:53PM +0100, Jiri Olsa escreveu: > On Wed, Jan 06, 2016 at 11:18:02AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Jan 06, 2016 at 11:49:54AM +0100, Jiri Olsa escreveu: > > > hi, > > > sending another version of stat scripting. > > > > > v9 changes: > > > - re

Re: [PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-01-06 Thread Rob Herring
On Tue, Jan 05, 2016 at 02:30:18PM +0800, James Liao wrote: > This patch adds the binding documentation for apmixedsys, bdpsys, > ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and > vdecsys for Mediatek MT2701. > > Signed-off-by: James Liao [...] > diff --git > a/Documentation/dev

[PATCH] rapidio: use kobj_to_dev()

2016-01-06 Thread Geliang Tang
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/rapidio/rio-sysfs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index cdb005c..eda4156 100644 --- a/drivers/rapidio/rio-sys

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