Re: [PATCH] vfs: remove redundant sanity check in do_mount

2014-09-12 Thread Al Viro
On Sat, Sep 13, 2014 at 12:53:32AM +0900, Seunghun Lee wrote: > In sys_mount, getname() checks dir_name. > So do_mount needn't check dir_name again. ... and simple grep shows four more call sites. At the very least, the commit message needs to cover those as well, *if* the check is, indeed, redun

Re: [PATCH v2] [media] v4l2-common: fix overflow in v4l_bound_align_image()

2014-09-12 Thread Greg KH
On Fri, Sep 12, 2014 at 06:11:49PM +0200, Maciej Matraszek wrote: > On Wed, 2014-09-10 at 10:10 -0700, Greg KH wrote: > > > Fixes: b0d3159be9a3 ("V4L/DVB (11901): v4l2: Create helper function for > > > bounding and aligning images") > > > Signed-off-by: Maciej Matraszek > > > Acked-by: Sakari Ail

Re: [PATCH] kernel: events: core: Replace rcu_assign_pointer() with RCU_INIT_POINTER()

2014-09-12 Thread Paul E. McKenney
On Wed, Sep 10, 2014 at 03:12:51PM +0200, Peter Zijlstra wrote: > On Tue, Sep 09, 2014 at 09:16:48AM -0700, Paul E. McKenney wrote: > > On Tue, Sep 09, 2014 at 11:42:35AM +0200, Peter Zijlstra wrote: > > > > Paul, why not do something like the below and do away with all this > > > nonsense? > > >

Re: [PATCH v4 05/18] ARM64 / ACPI: Introduce sleep-arm.c

2014-09-12 Thread Graeme Gregory
On Fri, Sep 12, 2014 at 04:49:03PM +0100, Catalin Marinas wrote: > On Fri, Sep 12, 2014 at 04:18:51PM +0100, Graeme Gregory wrote: > > On Fri, Sep 12, 2014 at 03:51:02PM +0100, Catalin Marinas wrote: > > > On Fri, Sep 12, 2014 at 03:00:03PM +0100, Hanjun Guo wrote: > > > > --- a/drivers/acpi/Makefi

Re: [PATCHv4 09/12] usb: dwc2: initialize the spin_lock for both host and gadget

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:20:00 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Move spin_lock_init to common location for both host and gadget. This should be done at the same time that gadget/host probing is merged to preserve bisec

Re: [PATCHv4 08/12] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:19:59 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Since the dwc2 hcd driver is currently not looking for a clock node during > init, we should not completely fail if there isn't a clock provided. > Add a c

[GIT PULL] Btrfs for rc5

2014-09-12 Thread Chris Mason
Hi Linus, My for-linus branch has some fixes for the next rc: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus Filipe is doing a careful pass through fsync problems, and these are the fixes so far. I'll have one more for rc6 that we're still testing. My big commit

Re: [PATCH V1 1/3] ARM: clk-imx6sl: refine clock tree for SSI

2014-09-12 Thread Fabio Estevam
On Tue, Sep 9, 2014 at 6:13 AM, Shengjiu Wang wrote: > Each SSI has "ssi", "ssi_ipg" clocks, and they share same gate bits. > > Signed-off-by: Shengjiu Wang This patch breaks audio playback on imx6q-sabresd: root@freescale /$ aplay /home/clarinet.wav Playing WAVE '/home/clarinet.wav' : Signed 1

Re: [PATCHv4 10/12] usb: dwc2: Add suspend/resume for gadget

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:20:01 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Move suspend/resume code to common platform code. This should be done at the same time that gadget/host probing is merged to preserve bisectability. > Si

Re: randconfig build error with next-20140912, in drivers/staging/lustre/lustre/obdclass

2014-09-12 Thread Greg Kroah-Hartman
On Fri, Sep 12, 2014 at 09:25:01AM -0700, Jim Davis wrote: > Building with the attached random configuration file, > > ERROR: "obd_memory" > [drivers/staging/lustre/lustre/obdclass/obdclass.ko] undefined! > make[1]: *** [__modpost] Error 1 You are bit slower than the 0-day bot, the proper develop

Re: [PATCH v3 0/9] Tegra xHCI support

2014-09-12 Thread Andrew Bresticker
On Tue, Sep 9, 2014 at 1:21 AM, Tomeu Vizoso wrote: > On 8 September 2014 18:22, Andrew Bresticker wrote: >> On Mon, Sep 8, 2014 at 8:34 AM, Tomeu Vizoso wrote: >>> On 2 September 2014 23:34, Andrew Bresticker wrote: Tested on Venice2, Jetson TK1, and Big with a variety of USB2.0 and

Re: [PATCHv4 11/12] usb: dwc2: check that the host work queue is valid

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:20:02 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > The Host workqueue will not get initialized if the driver is configured for > peripheral mode only. Thus we need to check for wq_otg before calling > queue

Re: [alsa-devel] [PATCH v2 2/4] ARM: dts: pbab01: enable I2S audio on phyFLEX-i.MX6 boards

2014-09-12 Thread Fabio Estevam
On Fri, Sep 12, 2014 at 1:26 PM, Alexander Shiyan wrote: > Fri, 12 Sep 2014 19:04:30 +0300 от Dmitry Lavnikevich > : >> Audio on phyFLEX boards is presented by tlv320aic3007 codec connected >> over SSI interface. >> >> Signed-off-by: Dmitry Lavnikevich >> --- > ... >> +&ssi2 { >> + fsl,mode

Re: [RFC v2] device coredump: add new device coredump class

2014-09-12 Thread Greg Kroah-Hartman
On Mon, Sep 08, 2014 at 10:38:07AM +0200, Johannes Berg wrote: > On Fri, 2014-09-05 at 15:13 -0700, Greg Kroah-Hartman wrote: > > > > + /* > > > + * this seems racy, but I don't see a notifier or such on > > > + * a struct device to know when it goes away? > > > + */ > > > + if (devcd->failing_

Re: [PATCH 1/2] PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device

2014-09-12 Thread Rajat Jain
Hi, On Thu, Sep 11, 2014 at 3:24 PM, Bjorn Helgaas wrote: > Powering off a hot-pluggable device, e.g., with pci_set_power_state(D3cold), > normally generates a hot-remove event that unbinds the driver. > > Some drivers expect to remain bound to a device even while they power it > off and back on

Re: [PATCH V1 1/3] ARM: clk-imx6sl: refine clock tree for SSI

2014-09-12 Thread Fabio Estevam
On Fri, Sep 12, 2014 at 1:35 PM, Fabio Estevam wrote: > On Tue, Sep 9, 2014 at 6:13 AM, Shengjiu Wang > wrote: >> Each SSI has "ssi", "ssi_ipg" clocks, and they share same gate bits. >> >> Signed-off-by: Shengjiu Wang > > This patch breaks audio playback on imx6q-sabresd: > > root@freescale /$ a

Re: [PATCH 01/10] zsmalloc: fix init_zspage free obj linking

2014-09-12 Thread Dan Streetman
On Fri, Sep 12, 2014 at 12:59 AM, Minchan Kim wrote: > On Thu, Sep 11, 2014 at 04:53:52PM -0400, Dan Streetman wrote: >> When zsmalloc creates a new zspage, it initializes each object it contains >> with a link to the next object, so that the zspage has a singly-linked list >> of its free objects.

Re: [PATCHv4 00/12] usb: dwc2: Add support for dual role

2014-09-12 Thread Bartlomiej Zolnierkiewicz
[ added linux-kernel ML to cc: ] Hi, On Tuesday, August 26, 2014 11:19:51 AM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Hello, > > This is version 4 of the patch series that combines the dwc2 gadget and host > driver into a single dual role driver. Here are the main differe

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Catalin Marinas
On Fri, Sep 12, 2014 at 05:21:27PM +0100, Daniel Borkmann wrote: > On 09/12/2014 06:03 PM, Catalin Marinas wrote: > > On Fri, Sep 12, 2014 at 08:11:37AM +0100, Daniel Borkmann wrote: > >> Will, Catalin, Dave, this is more or less a heads-up: when net-next and > >> arm64-next tree will get both

Re: [PATCH 11/14] tools lib api: Adopt fdarray class from perf's evlist

2014-09-12 Thread Borislav Petkov
On Fri, Sep 12, 2014 at 11:22:25AM -0300, Arnaldo Carvalho de Melo wrote: > Yeah, to me as well, but then zfree() was such a nice pick and looked ok > at the time :-) > > I'm leaving this for later, different patchkit that would sweep thru > tools/ and find this pattern, make it use freez() (or so

Re: [GIT PULL] arm64: couple of fixes for -rc5

2014-09-12 Thread Linus Torvalds
On Fri, Sep 12, 2014 at 7:39 AM, Will Deacon wrote: > > To keep things interesting, I've signed the tag using my Yubikey from KS. > Given that it only supports 2048-bit keys, I've used a new subkey so you > may need to update your keyring to verify the signature. BTW, thanks for mentioning things

debug rx_busy

2014-09-12 Thread and...@polkaspots.com
Is there anywhere where I can see this? Or this happens only in monitor or ACS? CHANNEL_TIME_BUSY or rx_busy? Thanks -- 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/ma

Re: [PATCH] spi: pl022: Add support for chip select extension

2014-09-12 Thread Linus Walleij
On Thu, Sep 11, 2014 at 10:10 PM, Anders Berg wrote: > On Thu, Sep 11, 2014 at 3:26 PM, Linus Walleij > wrote: >> On Wed, Sep 10, 2014 at 4:40 PM, Anders Berg >> wrote: >> (...) >> > + /* >> > +* PL022 variant that has a chip select control register >> > whih >> > +

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-12 Thread Russell King - ARM Linux
On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: > - .macro svc_entry, stack_hole=0 > + .macro svc_entry, stack_hole=0, call_trace=1 > UNWIND(.fnstart ) > UNWIND(.save {r0 - pc} ) > sub sp, sp, #(S_FRAME_SIZE + \stack_hole - 4) > @@ -

[GIT PULL] Please pull NFS client fixes

2014-09-12 Thread Trond Myklebust
Hi Linus, The following changes since commit 2ce7598c9a453e0acd0e07be7be3f5eb39608ebd: Linux 3.17-rc4 (2014-09-07 16:09:43 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-3.17-4 for you to fetch changes up to 224ecbf5a674ec

Re: [PATCH 00/10] implement zsmalloc shrinking

2014-09-12 Thread Dan Streetman
On Fri, Sep 12, 2014 at 1:46 AM, Minchan Kim wrote: > On Thu, Sep 11, 2014 at 04:53:51PM -0400, Dan Streetman wrote: >> Now that zswap can use zsmalloc as a storage pool via zpool, it will >> try to shrink its zsmalloc zs_pool once it reaches its max_pool_percent >> limit. These patches implement

Re: [PATCHv4] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-12 Thread Ezequiel Garcia
On 12 September 2014 10:40, Alexandre Belloni wrote: > From: Boris BREZILLON > This patch needs a commit log. > Signed-off-by: Boris BREZILLON > Signed-off-by: Alexandre Belloni > --- > -- Ezequiel García, VanguardiaSur www.vanguardiasur.com.ar -- To unsubscribe from this list: send the lin

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-12 Thread Russell King - ARM Linux
On Fri, Sep 12, 2014 at 06:03:07PM +0100, Russell King - ARM Linux wrote: > On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: > > - .macro svc_entry, stack_hole=0 > > + .macro svc_entry, stack_hole=0, call_trace=1 > > UNWIND(.fnstart ) > > UNWIND(.save {r0 - pc}

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-12 Thread Russell King - ARM Linux
And another thing... On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: > + .align 5 > +__fiq_abt: > + svc_entry 0, 0 Right, so this function is called __fiq_abt. ... > + svc_exit_via_fiq > + UNWIND(.fnend ) > +ENDPROC(__fiq_svc) Or is it called __fiq_svc

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Will Deacon
On Fri, Sep 12, 2014 at 05:46:57PM +0100, Catalin Marinas wrote: > On Fri, Sep 12, 2014 at 05:21:27PM +0100, Daniel Borkmann wrote: > > On 09/12/2014 06:03 PM, Catalin Marinas wrote: > > > On Fri, Sep 12, 2014 at 08:11:37AM +0100, Daniel Borkmann wrote: > > >> Will, Catalin, Dave, this is more or

Re: [PATCHv2 8/8] ARM: at91: document Atmel SMART compatibles

2014-09-12 Thread Eric Bénard
Le Fri, 12 Sep 2014 17:43:07 +0200, Alexandre Belloni a écrit : > > Document all the available compatibles for Atmel "SMART" SoCs. > > Signed-off-by: Alexandre Belloni > --- > .../devicetree/bindings/arm/atmel-at91.txt | 40 > ++ > 1 file changed, 40 insertions(+)

Re: [PATCH v3 2/4] vfs,userns: Ensure real root is always capable towards inodes

2014-09-12 Thread Serge Hallyn
Quoting Seth Forshee (seth.fors...@canonical.com): > Currently root is restricted from performing some modifications > to inodes whose owner is INVALID_UID or group is INVALID_GID > because this id doesn't map into any user namespace. Add a > special case to the relevant checks to make sure root is

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-12 Thread Russell King - ARM Linux
On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: > This patch introduces a new default FIQ handler that is structured in a > similar way to the existing ARM exception handler and result in the FIQ > being handled by C code running on the SVC stack (despite this code run > in the FIQ

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Daniel Borkmann
On 09/12/2014 06:46 PM, Catalin Marinas wrote: On Fri, Sep 12, 2014 at 05:21:27PM +0100, Daniel Borkmann wrote: On 09/12/2014 06:03 PM, Catalin Marinas wrote: On Fri, Sep 12, 2014 at 08:11:37AM +0100, Daniel Borkmann wrote: Will, Catalin, Dave, this is more or less a heads-up: when net-next

Re: [PATCH RFC] memcg: revert kmem.tcp accounting

2014-09-12 Thread Michal Hocko
On Fri 12-09-14 19:26:58, Vladimir Davydov wrote: > memory.kmem.tcp.limit_in_bytes works as the system-wide tcp_mem sysctl, > but per memory cgroup. While the existence of the latter is justified > (it prevents the system from becoming unusable due to uncontrolled tcp > buffers growth) the reason w

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-12 Thread Russell King - ARM Linux
On Fri, Sep 12, 2014 at 06:14:04PM +0100, Russell King - ARM Linux wrote: > On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: > > This patch introduces a new default FIQ handler that is structured in a > > similar way to the existing ARM exception handler and result in the FIQ > > be

[PATCH] mmc: don't request CD IRQ until mmc_start_host()

2014-09-12 Thread Stephen Warren
From: Stephen Warren As soon as the CD IRQ is requested, it can trigger, since it's an externally controlled event. If it does, delayed_work host->detect will be scheduled. Many host controller probe()s are roughly structured as: *_probe() { host = sdhci_pltfm_init(); mmc_of_parse(host-

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Catalin Marinas
On Fri, Sep 12, 2014 at 06:16:38PM +0100, Daniel Borkmann wrote: > On 09/12/2014 06:46 PM, Catalin Marinas wrote: > > On Fri, Sep 12, 2014 at 05:21:27PM +0100, Daniel Borkmann wrote: > >> On 09/12/2014 06:03 PM, Catalin Marinas wrote: > >>> On Fri, Sep 12, 2014 at 08:11:37AM +0100, Daniel Borkmann

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-12 Thread Russell King - ARM Linux
On Fri, Sep 12, 2014 at 06:19:08PM +0100, Russell King - ARM Linux wrote: > On Fri, Sep 12, 2014 at 06:14:04PM +0100, Russell King - ARM Linux wrote: > > On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: > > > This patch introduces a new default FIQ handler that is structured in a >

Re: [PATCH] iio: adc: xilinx-xadc: assign auxiliary channels address correctly

2014-09-12 Thread Lars-Peter Clausen
On 09/11/2014 10:55 AM, Subbaraya Sundeep Bhatta wrote: This patch fixes incorrect logic for assigning address to auxiliary channels of xilinx xadc. Signed-off-by: Subbaraya Sundeep Bhatta Acked-by: Lars-Peter Clausen --- drivers/iio/adc/xilinx-xadc-core.c |2 +- 1 files changed, 1

Re: [PATCH/RESEND] tty: serial: msm: Add DT based earlycon support

2014-09-12 Thread Stephen Boyd
On 09/11/14 18:56, Rob Herring wrote: > On Thu, Sep 11, 2014 at 5:14 PM, Stephen Boyd wrote: >> Add support for DT based early console on platforms with the msm >> serial hardware. >> >> Cc: Rob Herring >> Signed-off-by: Stephen Boyd > One comment, but looks good to me. > > Acked-by: Rob Herring

[PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Andy Gross
This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some Qualcomm platforms. This driver uses the generic PHY framework and will interact with the DWC3 controller. Signed-off-by: Andy Gross --- drivers/phy/Kconfig | 11 + drivers/phy/Makefile|1 + driv

[PATCH v8 0/3] DWC3 USB support for Qualcomm platform

2014-09-12 Thread Andy Gross
These patches add basic support for USB3.0 controllers found on MSM platforms. USB3.0 core is based on Synopsys DesignWare SuperSpeed IP. This work was started by Ivan Ivanov and went through a number of iterations. I picked these patches up and did a little rework to get them working. Changes s

[PATCH v8 2/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2014-09-12 Thread Andy Gross
From: "Ivan T. Ivanov" DWC3 glue layer is hardware layer around Synopsys DesignWare USB3 core. Its purpose is to supply Synopsys IP with required clocks, voltages and interface it with the rest of the SoC. Signed-off-by: Ivan T. Ivanov Signed-off-by: Andy Gross --- drivers/usb/dwc3/Kconfig

[PATCH v8 1/3] usb: dwc3: qcom: Add device tree binding

2014-09-12 Thread Andy Gross
From: "Ivan T. Ivanov" QCOM USB3.0 core wrapper consist of USB3.0 IP from Synopsys (SNPS) and HS, SS PHY's control and configuration registers. It could operate in device mode (SS, HS, FS) and host mode (SS, HS, FS, LS). Signed-off-by: Ivan T. Ivanov Signed-off-by: Andy Gross --- .../devicet

Re: [PATCH RESEND 0/8] i2c: Relax mandatory I2C ID table passing

2014-09-12 Thread Javier Martinez Canillas
[adding Sjoerd as cc who was the one that raised the module auto-loading issue] Hello, On Fri, Sep 12, 2014 at 3:46 PM, Wolfram Sang wrote: >> >> Placing this firmly back on your plate. I truly hope we don't miss >> another merge-window. This patch-set has the support of some pretty >> senior

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-12 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: > On 09/12/2014 02:24 AM, Thomas Gleixner wrote: > > On Fri, 12 Sep 2014, Thomas Gleixner wrote: > >> On Thu, 11 Sep 2014, Dave Hansen wrote: > >>> Well, we use it to figure out whether we _potentially_ need to tear down > >>> an VM_MPX-flagged area. There's

[PATCH arm64-next v2] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Daniel Borkmann
This is the ARM64 variant for 314beb9bcab ("x86: bpf_jit_comp: secure bpf jit against spraying attacks"). Thanks to commit 11d91a770f1f ("arm64: Add CONFIG_DEBUG_SET_MODULE_RONX support") which added necessary infrastructure, we can now implement RO marking of eBPF generated JIT image pages and ra

Re: [PATCHv2 8/8] ARM: at91: document Atmel SMART compatibles

2014-09-12 Thread Alexandre Belloni
Hi, On 12/09/2014 at 18:47:54 +0200, Eric Bénard wrote : > > + > > + > > +In addition, the above compatible shall be extended with the specific > > +SoC and board used. Currently known SoC compatibles are: > > +"marvell,berlin2" for Marvell Armada 1500 (BG2, 88DE3100), > > +"marvell,b

Re: [RFC 2/2] perf: Marker software event and ioctl

2014-09-12 Thread David Ahern
On 9/12/14, 4:48 AM, Pawel Moll wrote: This patch adds a PERF_COUNT_SW_MARKER event type, which can be requested by user and a PERF_EVENT_IOC_MARKER ioctl command which will inject an event of said type into the perf buffer. The ioctl can take a zero-terminated string argument, similar to tracing

Re: linux-next: Tree for Sep 12

2014-09-12 Thread Randy Dunlap
On 09/12/14 00:38, Stephen Rothwell wrote: > Hi all, > > Changes since 20140911: > - > > I have created today's linux-next tree at > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > (patches at http://www.kern

Re: [PATCH 1/9] locktorture: Rename locktorture_runnable parameter

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 08:40:16PM -0700, Davidlohr Bueso wrote: > ... to just 'torture_runnable'. It follows other variable naming > and is shorter. > > Signed-off-by: Davidlohr Bueso Looks good -- and please see below for the corresponding change to the locktorture scripting. (Which I have qu

Re: [PATCH arm64-next] net: bpf: arm64: address randomize and write protect JIT code

2014-09-12 Thread Daniel Borkmann
On 09/12/2014 07:21 PM, Catalin Marinas wrote: ... We don't have a brk instruction for arm32 but we have guaranteed undefined space. Have a look at the kgdb support for example (or grep for register_undef_hook under arch/arm) to get an idea. Will do, thanks! Last but not least ;), if I would

Re: [Patch v3 1/2] kaslr: check if kernel location is changed

2014-09-12 Thread Kees Cook
On Fri, Sep 12, 2014 at 8:33 AM, Vivek Goyal wrote: > On Fri, Sep 12, 2014 at 11:22:44PM +0800, Baoquan He wrote: >> Function handle_relocations() is used to do the relocations handling >> for i686 and kaslr of x86_64. For 32 bit the relocation handling is >> mandotary to perform. For x86_64 only

Re: [PATCH 01/11 v6] coresight: add CoreSight core layer framework

2014-09-12 Thread Mathieu Poirier
Good morning and thanks for the review. Pls see comments below. Mathieu On 11 September 2014 14:33, Greg KH wrote: > Some first impressions in glancing at the code, not a complete review at > all: > > On Thu, Sep 11, 2014 at 09:49:08AM -0600, mathieu.poir...@linaro.org wrote: >> --- /dev/null >

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-12 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: > On 09/12/2014 01:11 AM, Thomas Gleixner wrote: > > So what you are saying is, that if user space sets the pointer to NULL > > via the unregister prctl, kernel can safely ignore vmas which have the > > VM_MPX flag set. I really can't follow that logic. > >

Re: [PATCH v8 2/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2014-09-12 Thread Felipe Balbi
Hi, On Fri, Sep 12, 2014 at 12:29:45PM -0500, Andy Gross wrote: > From: "Ivan T. Ivanov" > > DWC3 glue layer is hardware layer around Synopsys DesignWare > USB3 core. Its purpose is to supply Synopsys IP with required > clocks, voltages and interface it with the rest of the SoC. > > Signed-off-

Re: [PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-12 Thread Thomas Gleixner
On Fri, 12 Sep 2014, H. Peter Anvin wrote: > The correct limit is 15 bytes, not anything else, so this is a bug in > the existing decoder. A sequence of bytes longer than 15 bytes will Fine. Lets fix it there. > #UD, regardless of being "otherwise valid". > Keep in mind the instruction may not

[PATCH v3 0/4] arm64, thunder: Enable Cavium Thunder SoC Family

2014-09-12 Thread Robert Richter
From: Robert Richter This initial patches enable Cavium Thunder SoC Family. The patches add devicetree and Kconfig support and then add Thunder to the defconfig. The Thunder system needs more enablement patches for subsystems and devices, this includes network, ahci, gicv3/gicv3-its, pci, smmu,

[PATCH v3 2/4] arm64, thunder: Document devicetree bindings for Cavium Thunder SoC

2014-09-12 Thread Robert Richter
From: Radha Mohan Chintakuntla This patch adds documentation for the devicetree bindings used by the DT files of Cavium Thunder SoC platforms. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Robert Richter --- Documentation/devicetree/bindings/arm/cavium-thunder.txt | 10 ++ Do

[PATCH v3 3/4] arm64, thunder: Add Kconfig option for Cavium Thunder SoC Family

2014-09-12 Thread Robert Richter
From: Radha Mohan Chintakuntla This introduces ARCH_THUNDER to enable soc specific drivers and dtb files. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Robert Richter --- arch/arm64/Kconfig | 5 + arch/arm64/boot/dts/Makefile | 3 +-- 2 files changed, 6 insertions(+), 2

[PATCH] i2c-designware: Intel BayTrail PMIC I2C bus support

2014-09-12 Thread David E. Box
This patch implements an I2C bus sharing mechanism between the host and platform hardware on select Intel BayTrail SoC platforms using the XPower AXP288 PMIC. On these platforms access to the PMIC must be shared with platform hardware. The hardware unit assumes full control of the I2C bus and the

Re: [PATCH] ACPI / platform / LPSS: disable async suspend/resume of LPSS devices

2014-09-12 Thread Fu, Zhonghui
hi, Rafael Sorry for late response. Yes,Only removing the "enable" line is sufficient. I have verified this, and made a new patch as follows. Thanks, Zhonghui >From 3c89c22c5b35ddbdcadecd391f2521a15ffc2f4f Mon Sep 17 00:00:00 2001 From: Fu Zhonghui Date: Sat, 13 Sep 2014 01:26:04 +0800 Subje

[PATCH v3 4/4] arm64, defconfig: Enable Cavium Thunder SoC in defconfig

2014-09-12 Thread Robert Richter
From: Robert Richter This patch enables Thunder SoCs in the arm64 defconfig. This is esp. useful to add Thunder platforms to automated builds based on arm64 defconfig. Signed-off-by: Robert Richter --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/

Re: [PATCH 1/9] locktorture: Rename locktorture_runnable parameter

2014-09-12 Thread Paul E. McKenney
On Fri, Sep 12, 2014 at 10:40:26AM -0700, Paul E. McKenney wrote: [ . . . ] > locktorture: Make torture scripting account for new _runnable name > > Signed-off-by: Paul E. McKenney > > diff --git a/tools/testing/selftests/rcutorture/configs/lock/ver_functions.sh > b/tools/testing/selftests/rc

Re: [PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Felipe Balbi
Hi, On Fri, Sep 12, 2014 at 12:29:46PM -0500, Andy Gross wrote: > This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some > Qualcomm platforms. This driver uses the generic PHY framework and will > interact with the DWC3 controller. > > Signed-off-by: Andy Gross Kishon, t

Re: [PATCH v8 07/10] x86, mpx: decode MPX instruction to get bound violation information

2014-09-12 Thread Thomas Gleixner
On Thu, 11 Sep 2014, H. Peter Anvin wrote: > On 09/11/2014 03:32 PM, Dave Hansen wrote: > > On 09/11/2014 03:18 PM, Thomas Gleixner wrote: > >> On Thu, 11 Sep 2014, Qiaowei Ren wrote: > >>> This patch sets bound violation fields of siginfo struct in #BR > >>> exception handler by decoding the user

[PATCH v3 1/4] arm64, thunder: Add initial dts for Cavium Thunder SoC

2014-09-12 Thread Robert Richter
From: Radha Mohan Chintakuntla Add initial device tree nodes for Cavium Thunder SoCs with support of 48 cores and gicv3. The dtsi file requires further changes, esp. for pci, gicv3-its and smmu. This changes will be added later together with the device drivers. Signed-off-by: Radha Mohan Chintak

Re: [PATCH] ACPI / platform / LPSS: disable async suspend/resume of LPSS devices

2014-09-12 Thread Fu, Zhonghui
On 2014/9/10 15:50, Mika Westerberg wrote: > On Tue, Sep 09, 2014 at 01:36:48PM +0800, Fu, Zhonghui wrote: >> >From 6deb00230f5df68da3ca7490402a0c537bf386bb Mon Sep 17 00:00:00 2001 >> From: Fu Zhonghui >> Date: Tue, 9 Sep 2014 13:02:25 +0800 >> Subject: [PATCH] ACPI / platform / LPSS: disable as

Re: [PATCH RFC] memcg: revert kmem.tcp accounting

2014-09-12 Thread Tejun Heo
Hello, guys. On Fri, Sep 12, 2014 at 07:18:09PM +0200, Michal Hocko wrote: > On Fri 12-09-14 19:26:58, Vladimir Davydov wrote: > > memory.kmem.tcp.limit_in_bytes works as the system-wide tcp_mem sysctl, > > but per memory cgroup. While the existence of the latter is justified > > (it prevents the

Re: [PATCH v8 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-12 Thread Josh Cartwright
Hey Andy- Mostly cosmetic things below: On Fri, Sep 12, 2014 at 12:29:46PM -0500, Andy Gross wrote: > This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some > Qualcomm platforms. This driver uses the generic PHY framework and will > interact with the DWC3 controller. > >

[PATCH v1 03/13] PCI: Add pci_configure_device() during enumeration

2014-09-12 Thread Bjorn Helgaas
Some platforms can tell the OS how to configure PCI devices, e.g., how to set cache line size, error reporting enables, etc. ACPI defines _HPP and _HPX methods for this purpose. This configuration was previously done by some of the hotplug drivers using pci_configure_slot(). But not all hotplug

Re: [PATCH 3/9] locktorture: Support mutexes

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 08:40:18PM -0700, Davidlohr Bueso wrote: > Add a "mutex_lock" torture test. The main difference with the already > existing spinlock tests is that the latency of the critical region > is much larger. We randomly delay for (arbitrarily) either 500 ms or, > otherwise, 25 ms. W

[PATCH v1 00/13] PCI: Device configuration cleanup

2014-09-12 Thread Bjorn Helgaas
The motivation for this is to fix Linus' complaint about too many _HPP messages (https://bugzilla.kernel.org/show_bug.cgi?id=84391): pci :00:00.0: no hotplug settings from platform pci :00:00.0: using default PCI settings The first patch drops the messages and I intend it for v3.1

[PATCH v1 04/13] PCI: pciehp: Configure hot-added display devices

2014-09-12 Thread Bjorn Helgaas
We configure cache line size and other settings of hot-added devices, e.g., based on ACPI _HPP or _HPX methods. Previously we skipped this configuration for display devices, but there is no spec requirement for that. Remove the check so we configure display devices the same way we configure other

[PATCH v1 05/13] PCI: pciehp: Remove pci_configure_slot() usage

2014-09-12 Thread Bjorn Helgaas
We now configure each PCI device as it is enumerated, in pci_device_add(), so remove the configuration done in pciehp. That configuration, in pci_configure_device(), does not include the MPS/MRRS configuration done by pcie_bus_configure_settings(), so keep that here. Signed-off-by: Bjorn Helgaas

[PATCH v1 01/13] PCI: Remove "no hotplug settings from platform" warning

2014-09-12 Thread Bjorn Helgaas
We print way too many messages like this: pci :00:00.0: no hotplug settings from platform pci :00:00.0: using default PCI settings This usually happens when the platform doesn't supply an ACPI _HPP method, but the method is optional, so there's no point in warning about it. Not o

[PATCH v1 02/13] PCI: Move pci_configure_slot() to drivers/pci/probe.c

2014-09-12 Thread Bjorn Helgaas
Move pci_configure_slot() and related functions from drivers/pci/hotplug/pcihp_slot to drivers/pci/probe.c. This is to prepare for doing device configuration during the normal enumeration process instead of just after hot-add. No functional change. Signed-off-by: Bjorn Helgaas --- drivers/pci/

[PATCH v1 06/13] PCI: shpchp: Remove pci_configure_slot() usage

2014-09-12 Thread Bjorn Helgaas
We now configure each PCI device as it is enumerated, in pci_device_add(), so remove the configuration done in shpchp. That configuration, in pci_configure_device(), does not include the MPS/MRRS configuration done by pcie_bus_configure_settings(), so keep that here. Signed-off-by: Bjorn Helgaas

[PATCH v1 13/13] PCI: Configure *all* devices, not just hot-added ones

2014-09-12 Thread Bjorn Helgaas
There's not really a good way to determine whether firmware has already configured a device with _HPP/_HPX settings. On legacy systems, the BIOS has probably configured everything, but on UEFI systems it is not required to do so. Per the PCI Firmware Specification, rev 3.1, sec 3.5, if PCI_COMMAN

[PATCH v1 09/13] PCI: Apply _HPP settings to PCIe devices as well as PCI and PCI-X

2014-09-12 Thread Bjorn Helgaas
The ACPI _HPP method was defined before PCIe existed, so its documentation only mentions PCI. The _HPX Type 0 setting record is essentially identical to _HPP, but the spec (ACPI rev 5.0, sec 6.2.8.1) says it should be applied to PCI, PCI-X, and PCIe devices, with settings being ignored if they are

[PATCH v1 11/13] PCI: Apply _HPP settings to all hot-added PCI devices

2014-09-12 Thread Bjorn Helgaas
We currently apply _HPP settings only to: - non-bridge devices, and - PCI-to-PCI bridges i.e., we do not apply them to PCI-to-ISA bridges and the like. It has been that way since _HPP support was added by 40abb96c51bb ("pciehp: Fix programming hotplug parameters"), but I don't think ther

Re: [PATCH 7/9] locktorture: Add infrastructure for torturing read locks

2014-09-12 Thread Davidlohr Bueso
On Fri, 2014-09-12 at 09:06 -0700, Paul E. McKenney wrote: > On Thu, Sep 11, 2014 at 09:40:41PM -0700, Davidlohr Bueso wrote: > > In addition, introduce a new nreaders_stress module parameter. The > > default number of readers will be the same number of writers threads. > > Writer threads are inter

[PATCH v1 08/13] PCI: Remove unused pci_configure_slot()

2014-09-12 Thread Bjorn Helgaas
All pci_configure_slot() uses have been removed, so remove the definition as well. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 27 --- include/linux/pci_hotplug.h |2 -- 2 files changed, 29 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/

Re: [PATCH 6/9] torture: Address race in module cleanup

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 08:40:21PM -0700, Davidlohr Bueso wrote: > When performing module cleanups by calling torture_cleanup() the > 'torture_type' string in nullified However, callers are not necessarily > done, and might still need to reference the variable. This impacts > both rcutorture and lo

Re: [PATCH 0/8] nohz: Fix nohz kick irq work on tick v2

2014-09-12 Thread Frederic Weisbecker
On Thu, Sep 11, 2014 at 10:28:12AM +0200, Peter Zijlstra wrote: > On Wed, Sep 10, 2014 at 11:33:20PM +0200, Frederic Weisbecker wrote: > > > Frederic Weisbecker (7): > > nohz: Move nohz full init call to tick init > > irq_work: Force raised irq work to run on irq work interrupt > >

[PATCH v1 10/13] PCI: Preserve BIOS PCI_COMMAND_SERR and PCI_COMMAND_PARITY settings

2014-09-12 Thread Bjorn Helgaas
Do not clear PCI_COMMAND_SERR or PCI_COMMAND_PARITY based on _HPP. The spec (ACPI rev 5.0, sec 6.2.7) says that when "Enable SERR" is set to 1, we should enable SERR in the command register. It says nothing about *disabling* SERR or PERR; in fact, the example in 6.2.7.1 says we should leave PERR

[PATCH v1 12/13] PCI: Preserve MPS and MRRS when applying _HPX settings

2014-09-12 Thread Bjorn Helgaas
Linux manages MPS and MRRS settings to keep them consistent across the PCIe fabric. BIOS doesn't participate in Linux scheme, so ignore that part of any _HPX settings it supplies. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 10 ++ 1 file changed, 10 insertions(+) diff --gi

[PATCH v1 07/13] ACPI / hotplug / PCI: Remove pci_configure_slot() usage

2014-09-12 Thread Bjorn Helgaas
We now configure each PCI device as it is enumerated, in pci_device_add(), so remove the configuration done in acpiphp. That configuration, in pci_configure_device(), does not include the MPS/MRRS configuration done by pcie_bus_configure_settings(), so keep that here. Signed-off-by: Bjorn Helgaas

Re: [PATCH 8/9] locktorture: Support rwsems

2014-09-12 Thread Paul E. McKenney
On Thu, Sep 11, 2014 at 09:41:30PM -0700, Davidlohr Bueso wrote: > We can easily do so with our new reader lock support. Just an arbitrary > design default: readers have higher (5x) critical region latencies than > writers: 50 ms and 10 ms, respectively. Except in the massive contention case, wher

Re: [PATCH 1/4] usb: hub: convert khubd into workqueue

2014-09-12 Thread Tejun Heo
On Fri, Sep 12, 2014 at 02:21:05PM +0200, Petr Mladek wrote: > There is no need to have separate kthread for handling USB hub events. > It is more elegant to use the workqueue framework. > > The workqueue is allocated as unbound, cpu intensive, and freezable. I'd just go with WQ_FREEZABLE. As a

Re: [PATCH 01/11 v6] coresight: add CoreSight core layer framework

2014-09-12 Thread Greg KH
On Fri, Sep 12, 2014 at 11:41:44AM -0600, Mathieu Poirier wrote: > Good morning and thanks for the review. Pls see comments below. > > Mathieu > > On 11 September 2014 14:33, Greg KH wrote: > > Some first impressions in glancing at the code, not a complete review at > > all: > > > > On Thu, Sep

[GIT PULL] USB driver fixes for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.17-rc5 for you to fetch changes up to e2c60989dc7e9c6fd28

[GIT PULL] TTY/Serial patches for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-3.17-rc5 for you to fetch changes up to 6731af573ac28de2297

Re: [PATCH] staging: unisys: uislib: uislib.c: sparse warning of context imbalance

2014-09-12 Thread Ben Romer
Sudip Mukherjee wrote: > fixed sparse warning : context imbalance in 'destroy_device' > unexpected unlock > this patch will generate warning from checkpatch for > lines over 80 character , but since those are user-visible strings > so it was not modified. > > Signed-off-by

[GIT PULL] Staging driver fixes for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.17-rc5 for you to fetch changes up to 3ea411c56ef

[GIT PULL] char/misc driver fixes for 3.17-rc5

2014-09-12 Thread Greg KH
The following changes since commit 69e273c0b0a3c337a521d083374c918dc52c666f: Linux 3.17-rc3 (2014-08-31 18:23:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-3.17-rc5 for you to fetch changes up to 3f0d97d

Re: [PATCH 6/9] torture: Address race in module cleanup

2014-09-12 Thread Davidlohr Bueso
On Fri, 2014-09-12 at 11:04 -0700, Paul E. McKenney wrote: > On Thu, Sep 11, 2014 at 08:40:21PM -0700, Davidlohr Bueso wrote: > > When performing module cleanups by calling torture_cleanup() the > > 'torture_type' string in nullified However, callers are not necessarily > > done, and might still ne

[PATCH 1/2] pstore-ram: Fix hangs by using write-combine mappings

2014-09-12 Thread Tony Lindgren
From: Rob Herring Currently trying to use pstore on at least ARMs can hang as we're mapping the peristent RAM with pgprot_noncached(). On ARMs, pgprot_noncached() will actually make the memory strongly ordered, and as the atomic operations pstore uses are implementation defined for strongly orde

[PATCH 2/2] pstore-ram: Allow optional mapping with pgprot_noncached

2014-09-12 Thread Tony Lindgren
On some ARMs at least the memory can be mapped pgprot_noncached() and still be working for atomic operations. As pointed out by Colin Cross , in some cases you do want to use pgprot_noncached() if the SoC supports it to see a debug printk just before a write hanging the system. On ARMs, the atomic

<    1   2   3   4   5   6   7   8   >