[PATCH 0/2] GICv3 ITS fixes for v4.3

2015-10-02 Thread Marc Zyngier
Thomas, Jason, A couple of relatively minor fixes for the GICv3 ITS code: - Silence a warning that seems to happen when GCC is a bit inlining happy, - Fix a thinko when trying to account for PCI aliases. Thanks, M. Marc Zyngier (2): irqchip/gic-v3-its: Silence warning when its_lpi_all

[PATCH 1/2] irqchip/gic-v3-its: Silence warning when its_lpi_alloc_chunks gets inlined

2015-10-02 Thread Marc Zyngier
More agressive inlining in recent versions of GCC have uncovered a new set of warnings: drivers/irqchip/irq-gic-v3-its.c: In function its_msi_prepare: drivers/irqchip/irq-gic-v3-its.c:1148:26: warning: lpi_base may be used uninitialized in this function [-Wmaybe-uninitializ

Missing operand for tlbie instruction on Power7

2015-10-02 Thread Laura Abbott
Hi, We received a report (https://bugzilla.redhat.com/show_bug.cgi?id=1267395) of bad assembly when compiling on powerpc with little endian [labbott@labbott-redhat-machine linux_upstream]$ make ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- CHK include/config/kernel.release CHK in

[git pull] m68k updates for 4.3 (take two)

2015-10-02 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 9ffecb10283508260936b96022d4ee43a7798b4c: Linux 4.3-rc3 (2015-09-27 07:50:08 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-linus for you to fetch changes up to 95bc0

Re: [PATCH 09/15] arm64: Add page size to the kernel image header

2015-10-02 Thread Catalin Marinas
On Tue, Sep 15, 2015 at 04:41:18PM +0100, Suzuki K. Poulose wrote: > From: Ard Biesheuvel > > This patch adds the page size to the arm64 kernel image header > so that one can infer the PAGESIZE used by the kernel. This will > be helpful to diagnose failures to boot the kernel with page size > not

Re: [PATCH] drm/gma500: fix double freeing

2015-10-02 Thread Sudip Mukherjee
On Thu, Oct 01, 2015 at 07:07:33PM +0200, Patrik Jakobsson wrote: > On Wed, Sep 30, 2015 at 8:12 AM, Sudip Mukherjee > wrote: > > On Tue, Sep 29, 2015 at 03:20:35PM +0200, Patrik Jakobsson wrote: > >> On Thu, Sep 24, 2015 at 5:57 PM, Sudip Mukherjee > >> wrote: > >> > On Wed, Sep 09, 2015 at 06:2

Re: [PATCH perf/core ] perf-probe: Allow probing on kmodules without dwarf

2015-10-02 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 02, 2015 at 09:58:32PM +0900, Masami Hiramatsu escreveu: > Allow probing on kernel modules without debuginfo support. > Currently perf-probe --module requires libdw support, but > it does not make sense. Thanks, applied. - Arnaldo -- To unsubscribe from this list: send the line "unsub

Re: [PATCH v3 2/2] sched: consider missed ticks when updating global cpu load

2015-10-02 Thread Peter Zijlstra
On Fri, Oct 02, 2015 at 04:46:14PM +0900, byungchul.p...@lge.com wrote: > From: Byungchul Park > > in hrtimer_interrupt(), the first tick_program_event() can be failed > because the next timer could be already expired due to, > (see the comment in hrtimer_interrupt()) > > - tracing > - long last

Re: [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Roger Pau Monné
El 05/09/15 a les 14.39, Bob Liu ha escrit: > Document multi queues/rings of xen-block. > > Signed-off-by: Bob Liu As said by Konrad, you should send this against the Xen public headers also (or even before). I have a comment below. > --- > include/xen/interface/io/blkif.h | 32 +

Re: Queueing b0a688ddcc50 "usb: musb: cppi41: allow it to work again" for -stable

2015-10-02 Thread Felipe Balbi
On Fri, Oct 02, 2015 at 02:23:45AM -0300, Ezequiel Garcia wrote: > Hello, > > Commit b0a688ddcc50 "usb: musb: cppi41: allow it to work again" seems > to fix a regression. It applies cleanly on v4.1 and removes the > "musb-hdrc musb-hdrc.1.auto: Need DT for the DMA engine." error. > > Any chance y

Re: [PATCH 3.12 00/84] 3.12.49-stable review

2015-10-02 Thread Guenter Roeck
On 10/02/2015 06:25 AM, Jiri Slaby wrote: This is the start of the stable review cycle for the 3.12.49 release. There are 84 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by T

Re: [PATCH 1/3] Documentation: dt: keystone: provide SoC specific compatible flags

2015-10-02 Thread santosh shilimkar
Nishant, On 9/25/2015 10:38 AM, Nishanth Menon wrote: On 09/25/2015 11:15 AM, santosh shilimkar wrote: 9/25/2015 9:01 AM, Nishanth Menon wrote: [..] Please refresh the series commit messages based on the discussion so far and repost. Will pick it up then. Thanks. I will do so (probably ea

Re: [Xen-devel] [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Wei Liu
On Fri, Oct 02, 2015 at 06:04:35PM +0200, Roger Pau Monné wrote: > El 05/09/15 a les 14.39, Bob Liu ha escrit: > > Document multi queues/rings of xen-block. > > > > Signed-off-by: Bob Liu > > As said by Konrad, you should send this against the Xen public headers > also (or even before). I have a

[PATCH] mfd: tps6105x: Use i2c regmap to access registers

2015-10-02 Thread Grigoryev Denis
This patch modifies tps6105x and associated function driver to use regmap instead of operating directly on i2c. Signed-off-by: Denis Grigoryev --- drivers/mfd/tps6105x.c | 78 ++ drivers/regulator/tps6105x-regulator.c | 16 +++ include/linux/mf

Re: linux-next: Tree for Sep 18 (build failures, up to 10/02)

2015-10-02 Thread Guenter Roeck
`memmap' > drivers/built-in.o: In function `efi_mem_attributes': > (.text+0xde971): undefined reference to `memmap' > > Bisect points to 'efi, x86: Rearrange efi_mem_attributes()'. > On a side note, 'memmap' is really a bad name for a global varia

[PATCH 1/1] perf,stat: reduce interval-print to 10ms

2015-10-02 Thread kan . liang
From: Kan Liang The interval-print used to be limited to 100ms. However, for example, 10ms is required to do sophisticated bandwidth analysis using uncore event. The test shows that the overhead of the system-wide uncore monitoring with 10ms interval is only ~2%. So this patch reduces interval-pr

Re: [Xen-devel] [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Roger Pau Monné
El 02/10/15 a les 18.12, Wei Liu ha escrit: > On Fri, Oct 02, 2015 at 06:04:35PM +0200, Roger Pau Monné wrote: >> El 05/09/15 a les 14.39, Bob Liu ha escrit: >>> Document multi queues/rings of xen-block. >>> >>> Signed-off-by: Bob Liu >> >> As said by Konrad, you should send this against the Xen p

Re: [PATCH v3] arm64: Introduce IRQ stack

2015-10-02 Thread James Morse
Hi, On 22/09/15 13:11, Jungseok Lee wrote: > Currently, kernel context and interrupts are handled using a single > kernel stack navigated by sp_el1. This forces a system to use 16KB > stack, not 8KB one. This restriction makes low memory platforms suffer > from memory pressure accompanied by perfo

Re: [PATCH v2 0/3] leds: add device trigger

2015-10-02 Thread Maciek Borzecki
On 10/02 16:27, Jacek Anaszewski wrote: > Hi Maciek, > > I tested your trigger, and it works fine, but I wonder if > it really improves the things. > > Basically, similarly as Josh, I have doubts related to associating > triggers with dev_t. It requires from user to figure out how they can > obtain

v5 of seccomp filter c/r patches

2015-10-02 Thread Tycho Andersen
Hi all, Here's v5 of the seccomp filter c/r set. The individual patch notes have changes, but two highlights are: * This series is now based on http://patchwork.ozlabs.org/patch/525492/ and will need to be built with that patch applied. This gets rid of two incorrect patches in the previous s

[PATCH v5 1/3] seccomp: add the concept of a seccomp filter FD

2015-10-02 Thread Tycho Andersen
This patch introduces the concept of a seccomp fd, with a similar interface and usage to ebpf fds. Initially, one is allowed to create, install, and dump these fds. Any manipulation of seccomp fds requires users to be root in their own user namespace, matching the checks done for SECCOMP_SET_MODE_F

[PATCH v5 3/3] kcmp: add KCMP_SECCOMP_FD

2015-10-02 Thread Tycho Andersen
This command allows for comparing the filters pointed to by two seccomp fds. This is useful e.g. to find out if a seccomp filter is inherited, since struct seccomp_filter are unique across tasks and are the private_data seccomp fds. v2: switch to KCMP_SECCOMP_FD instead of KCMP_FILE_PRIVATE_DATA

[PATCH v5 2/3] seccomp: add a ptrace command to get seccomp filter fds

2015-10-02 Thread Tycho Andersen
I just picked 40 for the constant out of thin air, but there may be a more appropriate value for this. Also, we return EINVAL when there is no filter for the index the user requested, but ptrace also returns EINVAL for invalid commands, making it slightly awkward to test whether or not the kernel s

Re: [PATCH 09/15] arm64: Add page size to the kernel image header

2015-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2015 at 04:49:01PM +0100, Catalin Marinas wrote: > On Tue, Sep 15, 2015 at 04:41:18PM +0100, Suzuki K. Poulose wrote: > > From: Ard Biesheuvel > > > > This patch adds the page size to the arm64 kernel image header > > so that one can infer the PAGESIZE used by the kernel. This wil

Re: [PATCH v4 2/5] firmware: arm_scpi: Extend to support sensors

2015-10-02 Thread Sudeep Holla
On 15/09/15 17:50, Punit Agrawal wrote: ARM System Control Processor (SCP) provides an API to query and use the sensors available in the system. Extend the SCPI driver to support sensor messages. Signed-off-by: Punit Agrawal Cc: Sudeep Holla Acked-by: Sudeep Holla -- To unsubscribe from

[PATCH] mmc: read alias from device-tree if probing via of.

2015-10-02 Thread Ben Dooks
The mmc host controller fails to check for the presence of an aliases entry in the device tree when creating a new mmc host. This means that mmc bus numbers are not as specified in the aliases node. For example, the following on an imx6 would make mmc0 the second sdhci, and mmc2 the first sdhci:

[PATCH 4/5] irqchip/gic: Warn if GICv3 system registers are enabled

2015-10-02 Thread Marc Zyngier
When using a GICv3 in compatibility (v2) mode, having GICv3 system register access enabled is not really compliant with the architecture. Warn if the firmware (or the hypervisor) has been lazy. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic.c | 15 +++ 1 file changed, 15 in

[PATCH 3/5] arm64: cpufeatures: Check ICC_EL1_SRE.SRE before enabling ARM64_HAS_SYSREG_GIC_CPUIF

2015-10-02 Thread Marc Zyngier
As the firmware (or the hypervisor) may have disabled SRE access, check that SRE can actually be enabled before declaring that we do have that capability. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/cpufeature.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) dif

[PATCH 5/5] arm64: Update booting requirements for GICv3 in GICv2 mode

2015-10-02 Thread Marc Zyngier
The current requirements do not describe the case where a GICv3 system gets booted with system register access disabled, and expect the kernel to drive GICv3 in GICv2 mode. Describe the expected settings for that particular case. Signed-off-by: Marc Zyngier --- Documentation/arm64/booting.txt |

[PATCH 1/5] arm64: el2_setup: Make sure ICC_SRE_EL2.SRE sticks before using GICv3 sysregs

2015-10-02 Thread Marc Zyngier
Contrary to what was originally expected, EL3 firmware can (for whatever reason) disable GICv3 system register access. In this case, the kernel explodes very early. Work around this by testing if the SRE bit sticks or not. If it doesn't, abort the GICv3 setup, and pray that the firmware has passed

[PATCH 2/5] irqchip/gic-v3: Make gic_enable_sre an inline function

2015-10-02 Thread Marc Zyngier
In order for gic_enable_sre to be used by the arm64 core code, move it to arm-gic-v3.h. As a bonus, we now also check if system registers have been already enabled, and return early if they have. In all cases, the function now returns a boolean indicating if the enabling has been successful. Sign

[PATCH 0/5] arm64: Allow booting with GICv3 in GICv2 mode

2015-10-02 Thread Marc Zyngier
Recent evolutions of the ARM Trusted Firmware have outlined issues when the system is equipped with a GICv3 interrupt controller, but the firmware has decided to restrict it to GICv2 compatibility mode. In this mode, system registers cannot be enabled, and the firmware is expected to pass a GICv2

Re: [PATCH 16/18] Input: elan_i2c - simplify function return logic

2015-10-02 Thread Benson Leung
On Fri, Oct 2, 2015 at 6:40 AM, Javier Martinez Canillas wrote: > The invoked function already returns zero on success or a negative > errno code so there is no need to open code the logic in the caller. > > This also fixes the following make coccicheck warning: > > drivers/input/mouse/elan_i2c_sm

[PATCH] f2fs: merge meta writes as many possible

2015-10-02 Thread Jaegeuk Kim
This patch tries to merge IOs as many as possible when background flusher conducts flushing the dirty meta pages. [Before] ... 2fs_submit_write_bio: dev = (8,18), WRITE_SYNC(MP), META, sector = 124320, size = 4096 f2fs_submit_write_bio: dev = (8,18), WRITE_SYNC(MP), META, sector = 124560, size

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-02 Thread Mark Brown
On Thu, Oct 01, 2015 at 12:58:49PM -0500, Felipe Balbi wrote: > On Thu, Oct 01, 2015 at 06:43:08PM +0100, Mark Brown wrote: > > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > > Frankly, I wanted all of this to be decided in userland with the > > > kernel just providing notificat

Re: [PATCH 09/15] arm64: Add page size to the kernel image header

2015-10-02 Thread Marc Zyngier
On 02/10/15 17:31, Catalin Marinas wrote: > On Fri, Oct 02, 2015 at 04:49:01PM +0100, Catalin Marinas wrote: >> On Tue, Sep 15, 2015 at 04:41:18PM +0100, Suzuki K. Poulose wrote: >>> From: Ard Biesheuvel >>> >>> This patch adds the page size to the arm64 kernel image header >>> so that one can inf

[PATCH] serial: 8250: add uart_config entry for PORT_RT2880

2015-10-02 Thread Mans Rullgard
This adds an entry to the uart_config table for PORT_RT2880 enabling rx/tx FIFOs. The UART is actually a Palmchip BK-3103 which is found in several devices from Alchemy/RMI, Ralink, and Sigma Designs. Signed-off-by: Mans Rullgard --- drivers/tty/serial/8250/8250_port.c | 8 1 file chan

[PATCH v2 2/5] extcon: arizona: Add device binding for the general purpose switch

2015-10-02 Thread Charles Keepax
The switch is generally used in conjunction with the MICDET clamp to suppress pops and clicks associated with jack insertion. This patch adds a binding that allows the user to select the mode of operation for this switch. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi --- drivers/extcon/e

[PATCH v2 5/5] mfd: arizona: Update DT binding document for jack detection invert

2015-10-02 Thread Charles Keepax
Add additional binding for inverting the polarity of the detection on the jack detection pins. Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/arizo

[PATCH v2 1/5] extcon: arizona: Add device binding to enable ADC mode micdet

2015-10-02 Thread Charles Keepax
Add a simple boolean binding to turn on and off the use of ADC microphone detection mode to determine 3/4 pole jack. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi --- drivers/extcon/extcon-arizona.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/extcon

Re: [RFC PATCH 14/20] coresight: etm-perf: implementing 'event_init()' API

2015-10-02 Thread Mathieu Poirier
On 30 September 2015 at 03:43, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> On 22 September 2015 at 08:29, Alexander Shishkin >> wrote: >>> Mathieu Poirier writes: >>> +static void etm_event_destroy(struct perf_event *event) +{ + /* switching off the source will a

[PATCH v2 4/5] mfd: arizona: Update DT binding documentation for mic detection

2015-10-02 Thread Charles Keepax
Add additional bindings to allow configuration of the system specific microphone detection settings. Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt | 21 + include/dt-bindings/mfd/arizona.h |5 + 2 files changed,

[PATCH v2 0/5] Arizona Extcon Update Device Bindings

2015-10-02 Thread Charles Keepax
This patch chain adds device bindings for the jack and microphone detection system specific settings. Mark, I have added you on the chain as getting a DT ack is proving challenging and Lee said he would appreciate your opinion on these, hope that is ok. Note that some of the changes backing the DT

[PATCH v2 3/5] extcon: arizona: Add device binding for jack detect polarity inversion

2015-10-02 Thread Charles Keepax
By default the driver expects the jackdet pin to be pulled low when a jack is inserted. This patch adds a device binding that allows the user to specify that the jackdet pin will be pulled high when a jack is inserted. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi --- drivers/extcon/extc

Re: [PATCH v2 0/2] Add support to make output voltage determined by VSET2[] bits

2015-10-02 Thread Mark Brown
On Wed, Sep 30, 2015 at 03:25:48PM +0800, Wenyou Yang wrote: > The patch is to add support to make the output voltage of ACT8865 > DC/DC regulator determined by VSET2[] bits. The DT property > "active-semi,vsel-high" is used to specify the VSEL pin at high > on the board. When the VSEL pin is high,

Re: [PATCH 1/1] perf,stat: reduce interval-print to 10ms

2015-10-02 Thread Jiri Olsa
On Fri, Oct 02, 2015 at 05:04:34AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > SNIP > diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c > index a96fb5c..5ef88f7 100644 > --- a/tools/perf/builtin-stat.c > +++ b/tools/perf/builtin-stat.c > @@ -1179,7 +1179,7 @@ int cmd_

Re: [PATCH v3 3/9] xen/blkfront: separate per ring information out of device info

2015-10-02 Thread Roger Pau Monné
El 05/09/15 a les 14.39, Bob Liu ha escrit: > Split per ring information to an new structure:blkfront_ring_info, also rename > per blkfront_info to blkfront_dev_info. ^ removed. > > A ring is the representation of a hardware queue, every vbd device can > associate > with one or more blkfront_ri

Re: [RESEND PATCH v2 1/1] ASoC: dwc: fix dma stop transferring issue

2015-10-02 Thread Mark Brown
On Thu, Oct 01, 2015 at 10:24:42AM +0800, yitian wrote: > I think maybe two reasons: > 1. designware I2S IP in my chipset(new design) is using tx empty and rx > available signal as the DMA handshaking signal, but it may be not true > for all chipsets. If I2S has separate signal as DMA handshaking

Re: [RESEND PATCH v2 1/1] ASoC: dwc: fix dma stop transferring issue

2015-10-02 Thread Mark Brown
On Tue, Sep 29, 2015 at 10:43:17PM +0800, yitian wrote: > --- a/sound/soc/dwc/designware_i2s.c > +++ b/sound/soc/dwc/designware_i2s.c > @@ -141,13 +141,22 @@ static inline void i2s_clear_irqs(struct dw_i2s_dev > *dev, u32 stream) This doesn't apply because it's been corrupted by line wrapping - g

Re: [PATCH v2 5/5] ACPI / processor_idle: Add support for Low Power Idle(LPI) states

2015-10-02 Thread Ashwin Chaugule
Hi Sudeep, On 16 September 2015 at 09:59, Sudeep Holla wrote: > ACPI 6.0 introduced an optional object _LPI that provides an alternate > method to describe Low Power Idle states. It defines the local power > states for each node in a hierarchical processor topology. The OSPM can > use _LPI object

Re: [PATCH v2 1/3] leds: add device activity LED triggers

2015-10-02 Thread Josh Cartwright
On Fri, Oct 02, 2015 at 09:45:37AM +0200, Maciek Borzecki wrote: > On 10/01 09:47, Josh Cartwright wrote: > > On Thu, Oct 01, 2015 at 04:04:31PM +0200, Maciek Borzecki wrote: > > > The patch adds LED triggers for indicating an activity on a selected > > > device. The drivers that intend to use trig

Re: [PATCH] storvsc: use small sg_tablesize on x86

2015-10-02 Thread Olaf Hering
On Thu, Oct 01, James Bottomley wrote: > On Thu, 2015-10-01 at 20:30 +, KY Srinivasan wrote: > > > +#if defined(CONFIG_X86_32) > Um, this is a bit architecture specific (I know Azure is x86, but > still). Can you make the define check CONFIG_32BIT rather than > CONFIG_X86_32? According to

Applied "regulator: arizona: add support for WM8998 and WM1814" to the regulator tree

2015-10-02 Thread Mark Brown
The patch regulator: arizona: add support for WM8998 and WM1814 has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hou

Applied "regulator: act8865: add DT binding for property "active-semi,vsel-high"" to the regulator tree

2015-10-02 Thread Mark Brown
The patch regulator: act8865: add DT binding for property "active-semi,vsel-high" has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: act8865: support output voltage by VSET2[] bits" to the regulator tree

2015-10-02 Thread Mark Brown
The patch regulator: act8865: support output voltage by VSET2[] bits has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 2

Re: [PATCH v7 02/11] task_isolation: add initial support

2015-10-02 Thread Chris Metcalf
On 10/01/2015 05:20 PM, Thomas Gleixner wrote: On Thu, 1 Oct 2015, Chris Metcalf wrote: But first I want to address the question of the basic semantics of the patch series. I wrote up a description of why it's useful in my email yesterday: https://lkml.kernel.org/r/560c4cf4.9090...@ezchip.com

Re: [RFC PATCH 06/20] coresight: etm3x: unlocking tracer in default arch init

2015-10-02 Thread Mathieu Poirier
On 1 October 2015 at 22:47, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> On 30 September 2015 at 05:33, Alexander Shishkin >> wrote: >>> Mathieu Poirier writes: >>> Calling function 'smp_call_function_single()' to unlock the tracer and calling it right after to perform the

[PATCH 1/2] powerpc/iommu: expose IOMMU page shift

2015-10-02 Thread Nishanth Aravamudan
We will leverage this macro in the NVMe driver, which needs to know the configured IOMMU page shift to properly configure its device's page size. Signed-off-by: Nishanth Aravamudan --- Given this is available, it seems reasonable to expose -- and it doesn't really make sense to make the driver d

[PATCH 0/2] Fix NVMe driver support on Power with 32-bit DMA

2015-10-02 Thread Nishanth Aravamudan
We received a bug report recently when DDW (64-bit direct DMA on Power) is not enabled for NVMe devices. In that case, we fall back to 32-bit DMA via the IOMMU, which is always done via 4K TCEs (Translation Control Entries). The NVMe device driver, though, assumes that the DMA alignment for the PR

Re: Queueing b0a688ddcc50 "usb: musb: cppi41: allow it to work again" for -stable

2015-10-02 Thread Ezequiel Garcia
On 2 October 2015 at 13:09, Felipe Balbi wrote: > On Fri, Oct 02, 2015 at 02:23:45AM -0300, Ezequiel Garcia wrote: >> Hello, >> >> Commit b0a688ddcc50 "usb: musb: cppi41: allow it to work again" seems >> to fix a regression. It applies cleanly on v4.1 and removes the >> "musb-hdrc musb-hdrc.1.auto

Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function

2015-10-02 Thread Mark Brown
On Thu, Oct 01, 2015 at 08:29:19AM -0400, Jon Ringle wrote: > On Thu, 1 Oct 2015, Mark Brown wrote: > > This completely bypasses and therefore breaks the cache infrastructure. > Right after sending the v2 patch, I realized that calling the > custom reg_update_bits would only be applicable for re

[PATCH] devicetree: add Sigma Designs vendor prefix

2015-10-02 Thread Mans Rullgard
Add the "sigma" vendor prefix for Sigma Designs, Inc. Signed-off-by: Mans Rullgard --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefi

[PATCH 2/2] drivers/nvme: default to the IOMMU page size on Power

2015-10-02 Thread Nishanth Aravamudan
We received a bug report recently when DDW (64-bit direct DMA on Power) is not enabled for NVMe devices. In that case, we fall back to 32-bit DMA via the IOMMU, which is always done via 4K TCEs (Translation Control Entries). The NVMe device driver, though, assumes that the DMA alignment for the PR

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-02 Thread Felipe Balbi
Hi, On Fri, Oct 02, 2015 at 05:47:43PM +0100, Mark Brown wrote: > On Thu, Oct 01, 2015 at 12:58:49PM -0500, Felipe Balbi wrote: > > On Thu, Oct 01, 2015 at 06:43:08PM +0100, Mark Brown wrote: > > > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > > > > Frankly, I wanted all of th

Re: Queueing b0a688ddcc50 "usb: musb: cppi41: allow it to work again" for -stable

2015-10-02 Thread Felipe Balbi
On Fri, Oct 02, 2015 at 02:16:50PM -0300, Ezequiel Garcia wrote: > On 2 October 2015 at 13:09, Felipe Balbi wrote: > > On Fri, Oct 02, 2015 at 02:23:45AM -0300, Ezequiel Garcia wrote: > >> Hello, > >> > >> Commit b0a688ddcc50 "usb: musb: cppi41: allow it to work again" seems > >> to fix a regressi

Re: Force mkiss to reset the line discipline when serial device is removed

2015-10-02 Thread Jean-Christian de Rivaz
Le 02. 10. 15 15:48, Jean-Christian de Rivaz a écrit : Le 02. 10. 15 12:35, Thomas Osterried a écrit : I also wonder why userspace processes like kissattach do not get a signal by the kernel, indicating that the filedescriptor is not valid anymore. Who’s job would it be to signal, the serial d

Re: [PATCH 2/2] drivers/nvme: default to the IOMMU page size on Power

2015-10-02 Thread Christoph Hellwig
Hi Nishanth, please expose this value through the generic DMA API instead of adding architecture specific hacks to drivers. -- 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.or

Re: linux-next: Tree for Oct 2 (kvm)

2015-10-02 Thread Randy Dunlap
On 10/01/15 22:27, Stephen Rothwell wrote: > Hi all, > > There will be no linux-next release on Monday. > > Changes since 20151001: > on x86_64: ERROR: "irq_set_vcpu_affinity" [arch/x86/kvm/kvm-intel.ko] undefined! Full randconfig file is attached. -- ~Randy # # Automatically generated fi

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-02 Thread Felipe Balbi
Hi, On Fri, Oct 02, 2015 at 07:41:07AM +0200, Greg KH wrote: > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > On Thu, Sep 24, 2015 at 10:39:23AM -0700, Baolin Wang wrote: > > > The usb charger framework is based on usb gadget. The usb charger > > > need to be notified the state

Re: [PATCH 01/14] RFC: usb/host/fotg210: Fix coding style issues

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:05PM +0200, Peter Senna Tschudin wrote: > This patch fix coding style issues reported by checkpatch that do not > change semantics of the code. > > Signed-off-by: Peter Senna Tschudin > --- > drivers/usb/host/fotg210-hcd.c | 1248 > +

Re: [PATCH 02/14] RFC: usb/host/fotg210: remove KERN_WARNING from pr_info

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:06PM +0200, Peter Senna Tschudin wrote: > This patch remove KERN_WARNING from a call to pr_info(). s/pr_info/pr_warn/ other than that, looks good > > Signed-off-by: Peter Senna Tschudin > --- > drivers/usb/host/fotg210-hcd.c | 2 +- > 1 file changed, 1 insertion(

[PATCH] percpu_counter: return precise count from __percpu_counter_compare()

2015-10-02 Thread Waiman Long
In __percpu_counter_compare(), if the current imprecise count is within (batch*nr_cpus) of the input value to be compared, a call to percpu_counter_sum() will be made to get the precise count. The percpu_counter_sum() call, however, can be expensive especially on large systems where there are a lot

Re: [PATCH 04/14] RFC: usb/host/fotg210: Remove NULL checks dma_pool_destroy

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:08PM +0200, Peter Senna Tschudin wrote: > This patch remove NULL checks before calls to dma_pool_destroy() as the > function now can handle NULL pointers. > > Signed-off-by: Peter Senna Tschudin looks good to me > --- > drivers/usb/host/fotg210-hcd.c | 12

Re: [PATCH 06/14] RFC: usb/host/fotg210: replace msleep by usleep_range

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:10PM +0200, Peter Senna Tschudin wrote: > msleep under 20ms can result in sleeping up to 20ms, which may not be > intended. Replace msleep(5) by usleep_range(5000, 6000). > > Signed-off-by: Peter Senna Tschudin good catch. I'd apply this straight away. Alan ? > ---

Re: [PATCH v4 2/5] mtd: nand: Qualcomm NAND controller driver

2015-10-02 Thread Brian Norris
One more nit noticed by my build tests: On Wed, Aug 19, 2015 at 10:19:03AM +0530, Archit Taneja wrote: [...] > +static int qcom_nandc_ecc_init(struct qcom_nandc_data *this) > +{ > + struct mtd_info *mtd = &this->mtd; > + struct nand_chip *chip = &this->chip; > + struct nand_ecc_ctrl

Re: [PATCH 03/14] RFC: usb/host/fotg210: Remove useless else statement

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:07PM +0200, Peter Senna Tschudin wrote: > This patch remove an else statement after a return to make the code > easier to understand. > > Signed-off-by: Peter Senna Tschudin looks good to me. > --- > drivers/usb/host/fotg210-hcd.c | 5 ++--- > 1 file changed, 2 in

Re: [PATCH 05/14] RFC: usb/host/fotg210: change kmalloc by kmalloc_array

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:09PM +0200, Peter Senna Tschudin wrote: > This patch change: > > kmalloc(DBG_SCHED_LIMIT * sizeof(*seen), GFP_ATOMIC) > > by: > > kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC) > > as kmalloc_array() should be used for allocating arrays. > > Signed-off-

Re: [PATCH 07/14] RFC: usb/host/fotg210: Remove a macro from snprintf

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:11PM +0200, Peter Senna Tschudin wrote: > This patch removes a macro from a call to snprintf() and moves it's > content to just before the call to snprintf() assigning a value to a new > variable named tmp. The goal of this patch is to make the code easier to > underst

Re: [PATCH 08/14] RFC: usb/host/fotg210: convert macro to inline function

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:12PM +0200, Peter Senna Tschudin wrote: > This patch convert the macro speed_char in an inline function. The goal > of this patch is to make the code easier to read. > > Signed-off-by: Peter Senna Tschudin looks good > --- > drivers/usb/host/fotg210-hcd.c | 27 +++

Re: [PATCH 4/6] regulator: core: Propagate voltage changes to supply regulators

2015-10-02 Thread Mark Brown
On Wed, Sep 30, 2015 at 04:05:44PM +0200, Sascha Hauer wrote: > A new min_dropout_uv field is added to struct regulator_desc. Regulators > can specify the minimun dropout voltage they need for proper function > here. Now when the voltage is changed on a regulator the regulator core > makes sure th

Re: [PATCH 09/14] RFC: usb/host/fotg210: Add function: output_buf_tds_dir()

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:13PM +0200, Peter Senna Tschudin wrote: > checkpatch complains about too many leading tabs because the switch > statement starts after 6 tabs. > > fill_periodic_buffer() -> for() -> do -> switch() -> if() -> > list_for_each_entry() and finally the last switch(). > >

Re: [PATCH 6/6] ARM: i.MX6 Phytec PFLA02: Add supplies for the SoC internal regulators

2015-10-02 Thread Mark Brown
On Wed, Sep 30, 2015 at 04:05:46PM +0200, Sascha Hauer wrote: > The SoC internal regulators for the CPU and the SoC come from the > DA9063 vdd_core and vdd_soc. Add this relationship to the device tree > so that the voltage drop on the SoC internal LDO regulators can be > minimized. Acked-by: Mark

Re: [PATCH 10/14] RFC: usb/host/fotg210: Add function scan_frame_queue()

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:14PM +0200, Peter Senna Tschudin wrote: > checkpatch complains about too many leading tabs because the if > statement starts after 6 tabs: > > scan_iosoc() -> for() -> while() -> switch() -> if() -> for() -> if() > > There is also a goto statement going backwards in

Re: [PATCH 11/14] RFC: usb/host: Rename fotg210-hcd to faraday-hcd

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:15PM +0200, Peter Senna Tschudin wrote: > This patch renames fotg210-hcd to faraday-hcd as a first step of > consolitating Faraday fotg210 and fusbh200 EHCI-like drivers. > > The patch also updates Kconfig and Makefile. > > Signed-off-by: Peter Senna Tschudin pleas

Re: [PATCH 12/14] RFC: usb/host/faraday-hcd: Replace fotg210 by fhcd2xx

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:16PM +0200, Peter Senna Tschudin wrote: > This patch replaces the strings: > FOTG210 by FHCD2XX > fotg210 by fhcd2xx > > The goal is to remove all references to fotg210 as the driver will > support both fotg210 and fusbh200. > > Signed-off-by: Peter Senna Tschudin

Re: [PATCH v6.1 1/1] Input: Add userio module

2015-10-02 Thread Dmitry Torokhov
On Wed, Sep 23, 2015 at 01:54:59PM -0400, cp...@redhat.com wrote: > +static int userio_device_write(struct serio *id, unsigned char val) > +{ > + struct userio_device *userio = id->port_data; > + unsigned long flags; > + > + if (!userio) > + return -1; I still have the same

Re: [PATCH v6 0/2] Enable capsule loader interface for efi firmware updating

2015-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2015 at 05:05:52AM +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > Dear maintainers & communities, > > This patchset is created on top of Matt's patchset: > 1.)https://lkml.org/lkml/2014/10/7/390 > "[PATCH 1/2] efi: Move efi_status_to_err() to efi.h" > 2.)https://lk

Re: [PATCH] mfd: tps6105x: Use i2c regmap to access registers

2015-10-02 Thread Mark Brown
On Fri, Oct 02, 2015 at 04:14:41PM +, Grigoryev Denis wrote: > This patch modifies tps6105x and associated function driver to use regmap > instead of operating directly on i2c. Acked-by: Mark Brown You could also have done this by just implementing the existing functions in terms of the regm

Re: [PATCH v6 1/2] efi: export efi_capsule_supported() function symbol

2015-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2015 at 05:05:53AM +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > This patch export efi_capsule_supported() function symbol for capsule > kernel module to use. > > Cc: Matt Fleming > Signed-off-by: Kweh, Hock Leong > --- > drivers/firmware/efi/capsule.c |1 +

Re: [PATCH 13/14] RFC: usb/host/faraday-hcd: Move #defines outside struct

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:17PM +0200, Peter Senna Tschudin wrote: > For making the code more readable and to facilitate supporting multiple > hardware versions, move #defines to outside the struct declaration. This > patch also renames fhcd2xx_regs to fotg210_regs as this struct is > specific t

Re: [PATCH 14/14] RFC: usb/host/faraday-hcd: Import FUSBH200 parameters

2015-10-02 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 05:01:18PM +0200, Peter Senna Tschudin wrote: > This patch adds FUSBH200 parameters to faraday-hcd.h. > > Signed-off-by: Peter Senna Tschudin fine by me -- balbi signature.asc Description: PGP signature

Re: [PATCH] mtd: mtdram: check offs and len in mtdram->erase

2015-10-02 Thread Brian Norris
On Fri, Oct 02, 2015 at 03:31:33PM +0530, Sudip Mukherjee wrote: > On Fri, Oct 02, 2015 at 05:39:02PM +0800, Dongsheng Yang wrote: > > On 10/01/2015 12:41 AM, Sudip Mukherjee wrote: > > >We should prevent user to erasing mtd device with an unaligned offset > > >or length. > > > > > >Signed-off-by:

[PATCH] cpufreq: arm_big_little: fix frequency check when bL switcher is active

2015-10-02 Thread Jon Medhurst (Tixy)
The check for correct frequency being set in bL_cpufreq_set_rate is broken when the big.LITTLE switcher is active, for two reasons. 1. The 'new_rate' variable gets overwritten before the test by the code calculating the frequency of the old cluster. 2. The frequency returned by bL_cpufreq_get_rat

Re: [RFC PATCH 3/3] net: dsa: exit probe if no switch were found

2015-10-02 Thread Florian Fainelli
On 02/10/15 05:10, Neil Armstrong wrote: > On 10/01/2015 06:32 PM, Andrew Lunn wrote: >> On Thu, Oct 01, 2015 at 05:27:32PM +0200, Neil Armstrong wrote: >>> On 09/30/2015 10:21 AM, Neil Armstrong wrote: If no switch were found in dsa_setup_dst, return -ENODEV and exit the dsa_probe cleanl

Re: [PATCH 2/2] drivers/nvme: default to the IOMMU page size on Power

2015-10-02 Thread Nishanth Aravamudan
On 02.10.2015 [10:25:44 -0700], Christoph Hellwig wrote: > Hi Nishanth, > > please expose this value through the generic DMA API instead of adding > architecture specific hacks to drivers. Ok, I'm happy to do that instead -- what I struggled with is that I don't have enough knowledge of the vario

Re: [PATCH v6 2/2] efi: a misc char interface for user to update efi firmware

2015-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2015 at 05:05:54AM +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > Introducing a kernel module to expose capsule loader interface > (misc char device file note) for user to upload capsule binaries. > > Example method to load the capsule binary: > cat firmware.bin >

Re: [PATCH 1/1] integrity: prevent loading untrusted certificates to IMA trusted keyring

2015-10-02 Thread Mimi Zohar
On Thu, 2015-09-10 at 22:06 +0300, Dmitry Kasatkin wrote: > If IMA_LOAD_X509 is enabled either directly or indirectly via > IMA_APPRAISE_SIGNED_INIT, it enables certificate loading to the IMA trusted > keyring from the kernel. Due to the overlook, KEY_ALLOC_TRUSTED was used in > the > key_create_o

Re: [PATCH] usb-host: Remove fusbh200 driver

2015-10-02 Thread Felipe Balbi
On Fri, Oct 02, 2015 at 01:18:27PM +0200, Peter Senna Tschudin wrote: > fusbh200 and fotg210 are very similar. The initial idea was to consolidate > both drivers but I'm afraid fusbh200 is not being used. > > This patch remove the fusbh200 source code, update Kconfig and two > Makefiles. > > Sign

[GIT PULL] arm64 fixes for 4.3

2015-10-02 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit 9ffecb10283508260936b96022d4ee43a7798b4c: Linux 4.3-rc3 (2015-09-27 07:50:08 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes fo

Re: [PATCH 2/2] drivers/nvme: default to the IOMMU page size on Power

2015-10-02 Thread Christoph Hellwig
On Fri, Oct 02, 2015 at 10:39:47AM -0700, Nishanth Aravamudan wrote: > Ok, I'm happy to do that instead -- what I struggled with is that I > don't have enough knowledge of the various architectures to provide the > right default implementation. It should be sufficient for the default to > return PA

<    1   2   3   4   5   6   7   8   >