Coding Style: Reverse XMAS tree declarations ? (was Re: [PATCH net-next v6 02/10] dpaa_eth: add support for DPAA Ethernet)

2016-11-03 Thread Joe Perches
On Thu, 2016-11-03 at 15:58 -0400, David Miller wrote: > From: Madalin Bucur > Date: Wed, 2 Nov 2016 22:17:26 +0200 > > > This introduces the Freescale Data Path Acceleration Architecture > > +static inline size_t bpool_buffer_raw_size(u8 index, u8 cnt) > > +{ > > + u8 i; > > + size_t res

RE: [PATCH v8: 1/4] x86/msr: Add MSR_MISC_FEATURE_ENABLES and PHIR3MWAIT bit

2016-11-03 Thread Andrejczuk, Grzegorz
>>On Tue, 1 Nov 2016, Grzegorz Andrejczuk wrote: >> >> +/* Intel Xeon Phi x200 ring 3 MONITOR/MWAIT */ > >Oh well. I asked you to make that whole PHI thing go away. > >This is a feature which has nothing to do with PHI. It just happens to be >implemented on PHI. The FEATURES_ENABLES MSR is not

[PATCH 1/6] perf config: Add support for getting config key-value pairs

2016-11-03 Thread Taeung Song
Add a functionality getting specific config key-value pairs. For the syntax examples, perf config [] [section.name ...] e.g. To query config items 'report.queue-size' and 'report.children', do # perf config report.queue-size report.children Cc: Namhyung Kim Cc: Jiri Olsa Cc: Wang Nan

[PATCH 6/6] perf config: Mark where are config items from (user or system)

2016-11-03 Thread Taeung Song
To write config items to a particular config file, we should know where is each config section and item from. Current setting functionality of perf-config use autogenerating way by overwriting collected config items to a config file. For example, When collecting config items from user and system c

[PATCH 2/6] perf config: Document examples to get config key-value pairs in man page

2016-11-03 Thread Taeung Song
Explain how to query particular config items in config file and how to get several config items from user or system config file using '--user' or '--system' options. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Wang Nan Signed-off-by: Taeung Song --- tools/perf/Documentation/perf-config.txt | 18 ++

[PATCH 4/6] perf config: Add support for writing configs to a config file

2016-11-03 Thread Taeung Song
Add setting feature that can add config variables with their values to a config file (i.e. user or system config file) or modify config key-value pairs in a config file. For the syntax examples, perf config [] [section.name[=value] ...] e.g. You can set the ui.show-headers to false with

[PATCH 3/6] perf config: Parse config variable arguments before getting functionality

2016-11-03 Thread Taeung Song
You can get several config items as below, # perf config report.queue-size call-graph.record-mode but it would be needed to more precisely check arguments, before show_spec_config() takes over the arguments. The function would be also used when parse config key-value pairs arguments in the ne

[PATCH 0/6] perf config: Add support for setting and getting functionalities

2016-11-03 Thread Taeung Song
Hello, :) Add setting and getting features to perf-config. I had worked at the related patchset https://lkml.org/lkml/2016/2/22/38 But I remake new this patchset for only support for read/write config file. And There're Namhyung's requests https://lkml.org/lkml/2016/10/24/47. In particular, I a

[PATCH 5/6] perf config: Document examples to set config variables with values in man page

2016-11-03 Thread Taeung Song
Explain how to add or modify particular config items in config file and how to set several config items from user or system config file using '--user' or '--system' options. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Wang Nan Signed-off-by: Taeung Song --- tools/perf/Documentation/perf-config.txt | 1

[PATCH v3] clk: mediatek: Allow changing PLL rate when it is off

2016-11-03 Thread James Liao
Some modules may need to change its clock rate before turn on it. So changing PLL's rate when it is off should be allowed. This patch removes PLL enabled check before set rate, so that PLLs can set new frequency even if they are off. On MT8173 for example, ARMPLL's enable bit can be controlled by

Re: [PATCH 2/2] cpufreq: powernv: Use PMSR to verify global and local pstate

2016-11-03 Thread Viresh Kumar
On 04-11-16, 10:57, Akshay Adiga wrote: > As fast_switch may get called in interrupt disable mode, it does not s/in interrupt disable mode/with interrupts disabled s/it does/it may > update the global_pstate_info data structure. Hence the global_pstate_info > has stale data whenever pstate is upd

Re: [PATCH 1/2] cpufreq: powernv: Adding fast_switch for schedutil

2016-11-03 Thread Viresh Kumar
On 04-11-16, 10:57, Akshay Adiga wrote: > Adding fast_switch which does light weight operation to > set the desired pstate. > > Signed-off-by: Akshay Adiga > --- > drivers/cpufreq/powernv-cpufreq.c | 22 +- > 1 file changed, 21 insertions(+), 1 deletion(-) > > diff --git a/d

[PATCH] drm/sun4i: Propagate error to the caller

2016-11-03 Thread Christophe JAILLET
If 'sun4i_layers_init()' returns an error, propagate it instead of returning -EINVAL unconditionally. Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/s

[PATCH] crypto: rsa: rename two rsa key files

2016-11-03 Thread yanjiang.jin
From: Yanjiang Jin This is to eliminate the below compile error: crypto/rsa_helper.c:19:29: fatal error: rsaprivkey-asn1.h: No such file or directory #include "rsaprivkey-asn1.h" ^ compilation terminated. Signed-off-by: Yanjiang Jin --- crypto/{rsaprivkey.asn1 =

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-03 Thread kbuild test robot
Hi Tony, [auto build test WARNING on pinctrl/for-next] [also build test WARNING on v4.9-rc3 next-20161028] [cannot apply to robh/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Tony-Lin

[PATCH v3 3/3] arm: dts: mt2701: Add node for Mediatek JPEG Decoder

2016-11-03 Thread Rick Chang
Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- This patch depends on: CCF "Add clock support for Mediatek MT2701"[1] iommu and smi "Add the dtsi node of iommu and smi for mt2701"[2] [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-October/007271.html [2] https://patc

[PATCH v3 1/3] dt-bindings: mediatek: Add a binding for Mediatek JPEG Decoder

2016-11-03 Thread Rick Chang
Add a DT binding documentation for Mediatek JPEG Decoder of MT2701 SoC. Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- .../bindings/media/mediatek-jpeg-codec.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindi

[PATCH v3 2/3] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

2016-11-03 Thread Rick Chang
Add v4l2 driver for Mediatek JPEG Decoder Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig | 15 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-jpeg/Makefile |2 + drivers/media/pla

[PATCH v3 0/3] Add Mediatek JPEG Decoder

2016-11-03 Thread Rick Chang
This series of patches provide a v4l2 driver to control Mediatek JPEG decoder for decoding JPEG image and Motion JPEG bitstream. changes since v2: - Revise DT binding documentation changes since v1: - Rebase for v4.9-rc1. - Update Compliance test version and result - Remove redundant path in Mak

[PATCH] vfio: Fix build break when SPAPR_TCE_IOMMU=n

2016-11-03 Thread Michael Ellerman
Currently the kconfig logic for VFIO_IOMMU_SPAPR_TCE and VFIO_SPAPR_EEH is broken when SPAPR_TCE_IOMMU=n. Leading to: warning: (VFIO) selects VFIO_IOMMU_SPAPR_TCE which has unmet direct dependencies (VFIO && SPAPR_TCE_IOMMU) warning: (VFIO) selects VFIO_IOMMU_SPAPR_TCE which has unmet dir

Re: [PATCH 1/3] clk: keystone: Fix an error checking

2016-11-03 Thread Christophe JAILLET
Le 02/11/2016 à 01:22, Stephen Boyd a écrit : On 10/24, Christophe JAILLET wrote: clk_register_pll() can return ERR_PTR(-ENOMEM) so checking the return value against NULL only is not correct. The code just doesn't propagate the error up to the caller. Instead the caller treats NULL as an error

Re: linux-next: manual merge of the mali-dp tree with the drm-misc tree

2016-11-03 Thread Stephen Rothwell
Hi Liviu, On Thu, 3 Nov 2016 17:19:58 + Liviu Dudau wrote: > > I have revamped the mali-dp tree and rebased it on the newer > version of drm-next (which includes the drm-misc change) and pushed the > updated patch in my tree. Thanks for that. However, several of the commits in your tree now

Re: [PATCH 2/3] phy: da8xx-usb: rename the ohci device to ohci-da8xx

2016-11-03 Thread Sekhar Nori
Hi Kishon, On Thursday 03 November 2016 10:20 PM, Kishon Vijay Abraham I wrote: > > > On Wednesday 02 November 2016 06:14 PM, Axel Haslam wrote: >> There is only one ohci on the da8xx series of chips, >> so remove the ".0" when creating the phy. Also add >> the "-da8xx" postfix to be consistent

RE: [PATCH v2] arc: Implement arch-specific dma_map_ops.mmap

2016-11-03 Thread Alexey Brodkin
Hi Vineet, > -Original Message- > From: Vineet Gupta [mailto:vgu...@synopsys.com] > Sent: Thursday, November 03, 2016 8:04 PM > To: Alexey Brodkin ; > linux-snps-...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org; Vineet Gupta > ; Marek Szyprowski > ;

Re: [PATCH 1/3] powerpc: Emulation support for load/store instructions on LE

2016-11-03 Thread Ravi Bangoria
On Friday 04 November 2016 07:37 AM, Andrew Donnellan wrote: > On 03/11/16 21:27, Ravi Bangoria wrote: >> Yes, kernel-space hw-breakpoint feature is broken on LE without this. > > Is there any actual user-visible feature that depends on this, or is this > solely for debugging and development pur

Re: [PATCH v6 0/9] Fix kdump faults on system with amd iommu

2016-11-03 Thread Baoquan He
On 11/04/16 at 01:14pm, Baoquan He wrote: > Hi Joerg, > > Ping! > > About the v6 post, do you have any suggestions? > > Because of GCR3 special handling in patch 9/9, I spent several days to > study the knowledge and change code. Then when I tried to post, the > virtual interrupt remapping featu

[PATCH 1/2] cpufreq: powernv: Adding fast_switch for schedutil

2016-11-03 Thread Akshay Adiga
Adding fast_switch which does light weight operation to set the desired pstate. Signed-off-by: Akshay Adiga --- drivers/cpufreq/powernv-cpufreq.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powern

[PATCH 2/2] cpufreq: powernv: Use PMSR to verify global and local pstate

2016-11-03 Thread Akshay Adiga
As fast_switch may get called in interrupt disable mode, it does not update the global_pstate_info data structure. Hence the global_pstate_info has stale data whenever pstate is updated through fast_swtich(). So the gpstate_timer can fire after a fast_switch() call has update the pstates to a diff

Re: [PATCH 1/2] tpm/tpm-interface: place kdoc just above tpm_pcr_extend

2016-11-03 Thread Jarkko Sakkinen
On Wed, Nov 02, 2016 at 04:02:20AM -0600, Jarkko Sakkinen wrote: > On Tue, Nov 01, 2016 at 03:05:13AM +0200, Tomas Winkler wrote: > > Place kdoc just above tpm_pcr_extend so it can be parsed > > correctly. > > > > Signed-off-by: Tomas Winkler > > Reviewed-by: Jarkko Sakkinen I applied this alt

[PATCH v6 1/7] net: phy: broadcom: add bcm54xx_auxctl_read

2016-11-03 Thread Jon Mason
Add a helper function to read the AUXCTL register for the BCM54xx. This mirrors the bcm54xx_auxctl_write function already present in the code. Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli --- drivers/net/phy/broadcom.c | 10 ++ include/linux/brcmphy.h| 1 + 2 files chang

Re: [PATCH v6 0/9] Fix kdump faults on system with amd iommu

2016-11-03 Thread Baoquan He
Hi Joerg, Ping! About the v6 post, do you have any suggestions? Because of GCR3 special handling in patch 9/9, I spent several days to study the knowledge and change code. Then when I tried to post, the virtual interrupt remapping feature caused kernel hang with this pachset applied. So it took

[PATCH v6 2/7] Documentation: devicetree: add PHY lane swap binding

2016-11-03 Thread Jon Mason
Add the documentation for PHY lane swapping. This is a boolean entry to notify the phy device drivers that the TX/RX lanes need to be swapped. Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- Documentation/devicetree/bindings/net/phy.txt | 4 1 file cha

[PATCH v6 3/7] net: phy: broadcom: Add BCM54810 PHY entry

2016-11-03 Thread Jon Mason
The BCM54810 PHY requires some semi-unique configuration, which results in some additional configuration in addition to the standard config. Also, some users of the BCM54810 require the PHY lanes to be swapped. Since there is no way to detect this, add a device tree query to see if it is applicable

Re: [RFC] v4l2 support for thermopile devices

2016-11-03 Thread Matt Ranostay
On Thu, Nov 3, 2016 at 8:11 AM, Luca Barbato wrote: > On 03/11/2016 14:21, Attila Kinali wrote: >> On Wed, 2 Nov 2016 23:10:41 -0700 >> Matt Ranostay wrote: >> >>> >>> So does anyone know of any software that is using V4L2_PIX_FMT_Y12 >>> currently? Want to test my driver but seems there isn't an

[PATCH v6 4/7] Documentation: devicetree: net: add NS2 bindings to amac

2016-11-03 Thread Jon Mason
Clean-up the documentation to the bgmac-amac driver, per suggestion by Rob Herring, and add details for NS2 support. Signed-off-by: Jon Mason Reviewed-by: Florian Fainelli --- Documentation/devicetree/bindings/net/brcm,amac.txt | 16 +++- 1 file changed, 11 insertions(+), 5 deletion

[PATCH v6 7/7] arm64: dts: NS2: add AMAC ethernet support

2016-11-03 Thread Jon Mason
Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 + arch/arm64/boot/dts/broadcom/ns2.dtsi| 12 2 files changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/

[PATCH v6 6/7] net: ethernet: bgmac: add NS2 support

2016-11-03 Thread Jon Mason
Add support for the variant of amac hardware present in the Broadcom Northstar2 based SoCs. Northstar2 requires an additional register to be configured with the port speed/duplexity (NICPM). This can be added to the link callback to hide it from the instances that do not use this. Also, clearing

[PATCH v6 5/7] net: ethernet: bgmac: device tree phy enablement

2016-11-03 Thread Jon Mason
Change the bgmac driver to allow for phy's defined by the device tree Signed-off-by: Jon Mason --- drivers/net/ethernet/broadcom/bgmac-bcma.c | 22 +++ drivers/net/ethernet/broadcom/bgmac-platform.c | 22 ++- drivers/net/ethernet/broadcom/bgmac.c | 29

[PATCH v6 0/7] add NS2 support to bgmac

2016-11-03 Thread Jon Mason
Changes in v6: * Use a common bgmac_phy_connect_direct (per Rafal Milecki) * Rebased on latest net-next * Added Reviewed-by to the relevant patches Changes in v5: * Change a pr_err to netdev_err (per Scott Branden) * Reword the lane swap binding documentation (per Andrew Lunn) Changes in v4: *

[PATCH v7 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-11-03 Thread Joel Holdsworth
The Lattice iCE40 is a family of FPGAs with a minimalistic architecture and very regular structure, designed for low-cost, high-volume consumer and system applications. This patch adds support to the FPGA manager for configuring the SRAM of iCE40LM, iCE40LP, iCE40HX, iCE40 Ultra, iCE40 UltraLite a

[PATCH v7 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-11-03 Thread Joel Holdsworth
--- .../bindings/fpga/lattice-ice40-fpga-mgr.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice-ice40-fpga-mgr.txt diff --git a/Documentation/devicetree/bindings/fpga/lattice-ice40-fpga-mgr.txt b/Documentati

[PATCH v7 1/3] of: Add vendor prefix for Lattice Semiconductor

2016-11-03 Thread Joel Holdsworth
Acked-by: Rob Herring --- 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-prefixes.txt index 1992aa9..d64a835 100644 --- a/Documentation/devi

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-03 Thread Matt Ranostay
On Wed, Nov 2, 2016 at 1:22 AM, Pavel Machek wrote: > Hi! > >> >> >> Better then previous one. >> >> >> >> >> >> But my version of bq27xxx_battery.c already contains this: >> >> > >> >> > This is for allowing udev rule to set the properties as well. >> >> > otherwise a kinda crude RUN = " echo val

Re: [RFC v2 6/7] mm/powerpc: Use generic VDSO remap and unmap functions

2016-11-03 Thread Michael Ellerman
Christopher Covington writes: > The PowerPC VDSO remap and unmap code was copied to a generic location, > only modifying the variable name expected in mm->context (vdso instead of > vdso_base) to match most other architectures. Having adopted this generic > naming, drop the code in arch/powerpc a

Re: [PATCH v2 1/3] dt-bindings: mediatek: Add a binding for Mediatek JPEG Decoder

2016-11-03 Thread Rick Chang
Hi Laurent, Thank you for the comments.I will fix them in the next patch (v3). On Thu, 2016-11-03 at 20:34 +0200, Laurent Pinchart wrote: > Hi Rick, > > A few more comments. > > On Thursday 03 Nov 2016 20:33:12 Laurent Pinchart wrote: > > On Monday 31 Oct 2016 15:16:55 Rick Chang wrote: > > > A

Re: printk considered harmful (was: [TECH TOPIC] asynchronous printk)

2016-11-03 Thread Jan Kara
On Fri 04-11-16 03:01:31, Sergey Senozhatsky wrote: > fix a typo > > On (11/04/16 02:31), Sergey Senozhatsky wrote: > [..] > > #4 console semaphore > > discussion outcome: > > we agreed that we can do better here and that it makes sense to do > IOW, console

Re: [PATCH v2 2/3] irqchip: mtk-cirq: Add mediatek mtk-cirq implement

2016-11-03 Thread Youlin Pei
On Tue, 2016-11-01 at 20:49 +, Marc Zyngier wrote: > On Tue, Nov 01 2016 at 11:52:01 AM, Youlin Pei > wrote: > > In Mediatek SOCs, the CIRQ is a low power interrupt controller > > designed to works outside MCUSYS which comprises with Cortex-Ax > > cores,CCI and GIC. > > > > The CIRQ controlle

Re: [PATCH v3 5/6] Documentation: bindings: add documentation for ir-spi device driver

2016-11-03 Thread Andi Shyti
Hi Jacek, > > > Only DT bindings of LED class drivers should be placed in > > > Documentation/devicetree/bindings/leds. Please move it to the > > > media bindings. > > > > that's where I placed it first, but Rob asked me to put it in the > > LED directory and Cc the LED mailining list. > > > > T

Re: [PATCH 04/12] xen: make use of xenbus_read_unsigned() in xen-tpmfront

2016-11-03 Thread Jarkko Sakkinen
On Mon, Oct 31, 2016 at 05:48:22PM +0100, Juergen Gross wrote: > Use xenbus_read_unsigned() instead of xenbus_scanf() when possible. > This requires to change the type of one read from int to unsigned, > but this case has been wrong before: negative values are not allowed > for the modified case. >

Re: [PATCH 2/2] tpm/tpm2-chip: fix kdoc errors

2016-11-03 Thread Jarkko Sakkinen
On Tue, Nov 01, 2016 at 03:05:14AM +0200, Tomas Winkler wrote: > Use correct kdoc format, describe correct parameters and return values. > > Signed-off-by: Tomas Winkler > --- > drivers/char/tpm/tpm2-cmd.c | 107 > +++- > 1 file changed, 66 insertions(+),

Re: [PATCH v2 1/3] dt-bindings: mediatek: Add a binding for Mediatek JPEG Decoder

2016-11-03 Thread Rick Chang
Hi Laurent, Thanks for your patient review.I will fix them in the next patch (v3). On Thu, 2016-11-03 at 20:33 +0200, Laurent Pinchart wrote: > Hi Rick, > > Thank you for the patch. > > On Monday 31 Oct 2016 15:16:55 Rick Chang wrote: > > Add a DT binding documentation for Mediatek JPEG Decoder

Re: [RFC 0/8] KVM PCIe/MSI passthrough on ARM/ARM64 (Alt II)

2016-11-03 Thread Alex Williamson
On Thu, 3 Nov 2016 21:39:30 + Eric Auger wrote: > Following Will & Robin's suggestions, this series attempts to propose > an alternative to [1] where the host would arbitrarily decide the > location of the IOVA MSI window and would be able to report to the > userspace the list of reserved IO

Re: [PATCH V2 2/2] blk-mq: immediately dispatch big size request

2016-11-03 Thread Jens Axboe
On 11/03/2016 06:13 PM, Shaohua Li wrote: On Thu, Nov 03, 2016 at 05:09:54PM -0700, Christoph Hellwig wrote: On Thu, Nov 03, 2016 at 05:03:54PM -0700, Shaohua Li wrote: This is corresponding part for blk-mq. Disk with multiple hardware queues doesn't need this as we only hold 1 request at most.

Re: [PATCH v2 4/6] pinctrl: aspeed: Read and write bits in LPCHC and GFX controllers

2016-11-03 Thread Andrew Jeffery
On Fri, 2016-11-04 at 09:54 +1030, Joel Stanley wrote: > On Thu, Nov 3, 2016 at 1:07 AM, Andrew Jeffery wrote: > > > > The System Control Unit IP block in the Aspeed SoCs is typically where > > the pinmux configuration is found, but not always. A number of pins > > depend on state in one of LPC H

Re: vmalloced stacks and scatterwalk_map_and_copy()

2016-11-03 Thread Andy Lutomirski
On Thu, Nov 3, 2016 at 4:10 PM, Eric Biggers wrote: > On Thu, Nov 03, 2016 at 02:12:07PM -0700, Eric Biggers wrote: >> On Thu, Nov 03, 2016 at 01:30:49PM -0700, Andy Lutomirski wrote: >> > >> > Also, Herbert, it seems like the considerable majority of the crypto >> > code is acting on kernel virtu

Re: [PATCH v2 3/6] mfd: dt: Add bindings for the Aspeed LPC Host Controller (LPCHC)

2016-11-03 Thread Andrew Jeffery
On Fri, 2016-11-04 at 09:36 +1030, Joel Stanley wrote: > On Thu, Nov 3, 2016 at 1:07 AM, Andrew Jeffery wrote: > > > > The Aspeed LPC Host Controller is presented as a syscon device to > > arbitrate access by LPC and pinmux drivers. LPC pinmux configuration on > > fifth generation SoCs depends on

Re: [PATCH 1/2] arm64: hugetlb: remove the wrong pmd check in find_num_contig()

2016-11-03 Thread Huang Shijie
On Thu, Nov 03, 2016 at 06:16:16PM -0600, Catalin Marinas wrote: > On Thu, Nov 03, 2016 at 10:27:38AM +0800, Huang Shijie wrote: > > diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c > > index 2e49bd2..4811ef1 100644 > > --- a/arch/arm64/mm/hugetlbpage.c > > +++ b/arch/arm64/mm

Re: [mm PATCH v2 18/26] arch/powerpc: Add option to skip DMA sync as a part of mapping

2016-11-03 Thread Michael Ellerman
Alexander Duyck writes: > This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to > avoid invoking cache line invalidation if the driver will just handle it > via a sync_for_cpu or sync_for_device call. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman

Re: [PATCH 4/6] g_NCR5380: Add IRQ auto-configuration for HP C2502

2016-11-03 Thread Finn Thain
On Thu, 3 Nov 2016, Ondrej Zary wrote: > On Thursday 03 November 2016, Finn Thain wrote: > > On Wed, 2 Nov 2016, Ondrej Zary wrote: > > > > > > The card is almost Plug&Play. The base address is already configured > > > automatically by the driver so doing the same for IRQ makes sense. > > > > W

[PATCH] remoteproc: qcom_wcnss: Fix circular module dependency

2016-11-03 Thread Bjorn Andersson
The tie between the main WCNSS driver and the IRIS driver causes a circular dependency between the two modules. Neither part makes sense to have on their own so lets merge them into one module. For the sake of picking up the clock and regulator resources described in the iris of_node we need an as

[PATCH net-next v2 07/11] net: dsa: mv88e6xxx: add port link setter

2016-11-03 Thread Vivien Didelot
Most of the chips will have a port register control bits to force the port's link up, down, or let normal link detection occurs. Implement such operation to use it later when setting duplex, etc. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 17 +++ drive

[PATCH net-next v2 00/11] net: dsa: mv88e6xxx: refine port operations

2016-11-03 Thread Vivien Didelot
The Marvell chips have one internal SMI device per port, containing a set of registers used to configure a port's link, STP state, default VLAN or addresses database, etc. This patchset creates port files to implement the port operations as described in datasheets, and extend the chip ops structur

[PATCH net-next v2 03/11] net: dsa: mv88e6xxx: add port vlan map setter

2016-11-03 Thread Vivien Didelot
Add a port function to access the Port Based VLAN Map register. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 14 ++ drivers/net/dsa/mv88e6xxx/port.c | 25 + drivers/net/dsa/mv88e6xxx/port.h | 2 ++ 3 files changed, 29 insertions(+), 12

[PATCH net-next v2 08/11] net: dsa: mv88e6xxx: add port duplex setter

2016-11-03 Thread Vivien Didelot
Similarly to port's link, add setter to force port's half duplex, full duplex or let normal duplex detection occurs. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 17 + drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 9 + drivers/net/dsa/mv88e6xxx/por

[PATCH net-next v2 06/11] net: dsa: mv88e6xxx: add port 802.1Q mode setter

2016-11-03 Thread Vivien Didelot
Add port functions to set the port 802.1Q mode. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 33 ++--- drivers/net/dsa/mv88e6xxx/port.c | 32 drivers/net/dsa/mv88e6xxx/port.h | 3 +++ 3 files changed, 37 insert

[PATCH net-next v2 09/11] net: dsa: mv88e6xxx: add port's RGMII delay setter

2016-11-03 Thread Vivien Didelot
Some chips such as 88E6352 and 88E6390 can be programmed to add delays to RXCLK for IND inputs or to GTXCLK for OUTD outputs when port is in RGMII mode. Add a port function to program such delays according to the provided PHY interface mode. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv8

[PATCH net-next v2 01/11] net: dsa: mv88e6xxx: add port files

2016-11-03 Thread Vivien Didelot
The Marvell switches contains one internal SMI device per port, called "Port Registers". Depending on the model, the addresses of these devices start from 0x0, 0x8 or 0x10. Start moving Port Registers specific code to their own files. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/

[PATCH net-next v2 11/11] net: dsa: mv88e6xxx: setup port's MAC

2016-11-03 Thread Vivien Didelot
Now that we have setters to configure the port's MAC, use them to refactor the port setup and adjust_link code. Note that port's MAC speed, duplex or RGMII delay must not be changed unless the port's link is forced down. So wrap all that in a mv88e6xxx_port_setup_mac function. Signed-off-by: Vivi

[PATCH net-next v2 10/11] net: dsa: mv88e6xxx: add port's MAC speed setter

2016-11-03 Thread Vivien Didelot
While the two bits for link, duplex or RGMII delays are used the same way on chips supporting the said feature, the two bits for speed have different meaning for most of the chips out there. Speed value is stored in bits 1:0, 0x3 means unforce (normal detection). Some chips reuse values for alter

[PATCH net-next v2 02/11] net: dsa: mv88e6xxx: add port state setter

2016-11-03 Thread Vivien Didelot
Add the port STP state setter to the port files. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 49 drivers/net/dsa/mv88e6xxx/port.c | 31 + drivers/net/dsa/mv88e6xxx/port.h | 2 ++ 3 files changed, 37 insert

[PATCH net-next v2 05/11] net: dsa: mv88e6xxx: add port PVID accessors

2016-11-03 Thread Vivien Didelot
Add port functions to access the ports default VID. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 51 drivers/net/dsa/mv88e6xxx/port.c | 38 ++ drivers/net/dsa/mv88e6xxx/port.h | 3 +++ 3 files changed,

[PATCH net-next v2 04/11] net: dsa: mv88e6xxx: add port FID accessors

2016-11-03 Thread Vivien Didelot
Add functions to port files to access the ports default FID. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 77 +++- drivers/net/dsa/mv88e6xxx/port.c | 67 ++ drivers/net/dsa/mv88e6xxx/port.h | 3 ++ 3 fil

Re: [RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted

2016-11-03 Thread zhong jiang
On 2016/11/4 3:17, Andrew Morton wrote: > On Sat, 29 Oct 2016 14:08:31 +0800 zhongjiang wrote: > >> From: zhong jiang >> >> Since 'commit 3e89e1c5ea84 ("hugetlb: make mm and fs code explicitly >> non-modular")' >> bring in the mainline. mount hugetlbfs will result in the following issue. >> >> m

Re: [PATCH] cpufreq: stats: clear statistics

2016-11-03 Thread Viresh Kumar
On 04-11-16, 01:28, Rafael J. Wysocki wrote: > On Thu, Nov 3, 2016 at 9:46 PM, Markus Mayer wrote: > > From: Markus Mayer > > > > Allow cpufreq statistics to be cleared by writing anything to > > /sys/.../cpufreq/stats/reset. Reading this new sysfs entry returns > > nothing. > > > > Resetting the

Re: [PATCH 3/6] clk: rockchip: add clock controller for rk1108

2016-11-03 Thread Shawn Lin
Hi Andy, On 2016/11/3 20:38, Andy Yan wrote: From: Shawn Lin Add the clock tree definition and driver for rk1108 SoC. We should spilt out another patch for adding clock/rst ID as it should be in a shared branch. :) You could respin it after Heiko reviews the other parts of your patchset.

Re: [PATCH 1/3] powerpc: Emulation support for load/store instructions on LE

2016-11-03 Thread Andrew Donnellan
On 03/11/16 21:27, Ravi Bangoria wrote: Yes, kernel-space hw-breakpoint feature is broken on LE without this. Is there any actual user-visible feature that depends on this, or is this solely for debugging and development purposes? It would of course be *nice* to have it in stable trees (part

Hi linux

2016-11-03 Thread Steven Newbury
hiya linux http://vicky.medncomp.com/libraries/pattemplate/patTemplate/Modifier/HTML/weak.php?faster=h208bhngdzwa27 Steven Newbury

Re: [PATCH v2 06/14] ASoC: sun4i-codec: Add support for A31 playback through headphone output

2016-11-03 Thread Chen-Yu Tsai
On Fri, Nov 4, 2016 at 1:36 AM, Maxime Ripard wrote: > Hi, > > On Thu, Nov 03, 2016 at 03:55:48PM +0800, Chen-Yu Tsai wrote: >> +/* headphone controls */ >> +static const char * const sun6i_codec_hp_src_enum_text[] = { >> + "DAC", "Mixer", >> +}; >> + >> +static SOC_ENUM_DOUBLE_DECL(sun6i_code

Re: [PATCH 2/2] kbuild: add -fno-PIE

2016-11-03 Thread Al Viro
On Thu, Nov 03, 2016 at 04:50:55PM -0600, Ben Hutchings wrote: > On Wed, 2016-11-02 at 18:20 +0100, Sebastian Andrzej Siewior wrote: > > Debian started to build the gcc with -fPIE by default so the kernel > > build ends before it starts properly with: > > |kernel/bounds.c:1:0: error: code model ker

Re: bpf: kernel BUG in htab_elem_free

2016-11-03 Thread Dmitry Vyukov
On Thu, Nov 3, 2016 at 10:36 AM, Daniel Borkmann wrote: > On 11/03/2016 03:15 PM, Dmitry Vyukov wrote: >> >> On Wed, Nov 2, 2016 at 11:14 PM, Dmitry Vyukov wrote: >>> >>> Here we go. >>> >>> The following program triggers kernel BUG in htab_elem_free. >>> On commit 0c183d92b20b5c84ca655b45ef57b33

Re: [PATCH v3 07/10] ARC: breakout aux handling into a separate header

2016-11-03 Thread kbuild test robot
Hi Vineet, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3 next-20161028] [cannot apply to arc/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Vineet-Gupta/Mo

Re: more hangs in the tty layer

2016-11-03 Thread Peter Hurley
On Tue, Oct 4, 2016 at 2:10 AM, Nikolay Borisov wrote: > Hello Peter, > > I've emailed you before re. spurious hangs in the TTY layer, but > at that time I was running a rather old (but LTS) 3.12 kernel. Now, > I'm running a 4.4.10 and I still observe the following lock-ups. > I have multiple proc

Re: [PATCH] clk: rockchip: fix some clocks' name to be more standard style

2016-11-03 Thread jay.xu
Hi Heiko and Shawn: ok, I agree with you, and the root fix seems to fix it in the TRM first. I'll feedback to TRM makers. Thanks. On 2016年11月03日 22:32, Heiko Stübner wrote: Am Donnerstag, 3. November 2016, 16:52:48 schrieb Shawn Lin: On 2016/11/2 15:04, Jianqun Xu wrote: Fix aclk_emmcgrf to

Re: [PATCH 1/1] usb: xhci: cleanup cmd_completion in xhci_virt_device

2016-11-03 Thread Lu Baolu
Hi, On 11/03/2016 07:36 PM, Mathias Nyman wrote: > On 03.11.2016 12:22, Sergei Shtylyov wrote: >> On 11/3/2016 9:48 AM, Lu Baolu wrote: >> >>> cmd_completion in struct xhci_virt_device is legacy. With command >>> strutcture and command queue introduced in xhci, cmd_completion is >> >> Structur

Re: [PATCH] cpufreq: stats: clear statistics

2016-11-03 Thread Rafael J. Wysocki
On Thu, Nov 3, 2016 at 9:46 PM, Markus Mayer wrote: > From: Markus Mayer > > Allow cpufreq statistics to be cleared by writing anything to > /sys/.../cpufreq/stats/reset. Reading this new sysfs entry returns > nothing. > > Resetting the statistics can be useful in a test environment (test > gover

Re: [RFC 0/6] vfs: Add timestamp range check support

2016-11-03 Thread Andreas Dilger
> On Nov 3, 2016, at 2:43 PM, Theodore Ts'o wrote: > > On Thu, Nov 03, 2016 at 09:48:27AM +1100, Dave Chinner wrote: >> >> We're going to need regression tests for this to ensure that it >> works properly and that we don't inadvertantly break it in future. >> Can you write some xfstests that ex

Re: console issue since 3.6, console=ttyS1 hangs

2016-11-03 Thread Peter Hurley
On Wed, Nov 2, 2016 at 9:29 AM, Nathan Zimmer wrote: > On Mon, Oct 31, 2016 at 08:55:49PM -0600, Peter Hurley wrote: >> On Mon, Oct 31, 2016 at 2:27 PM, Sean Young wrote: >> > On Sun, Oct 30, 2016 at 10:33:02AM -0500, Nathan wrote: >> >> I think this should be PNP0501 instead of PNP0c02. >> >> On

Re: [PATCH 1/2] arm64: hugetlb: remove the wrong pmd check in find_num_contig()

2016-11-03 Thread Catalin Marinas
On Thu, Nov 03, 2016 at 10:27:38AM +0800, Huang Shijie wrote: > diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c > index 2e49bd2..4811ef1 100644 > --- a/arch/arm64/mm/hugetlbpage.c > +++ b/arch/arm64/mm/hugetlbpage.c > @@ -61,10 +61,6 @@ static int find_num_contig(struct mm_st

Re: [PATCH V2 2/2] blk-mq: immediately dispatch big size request

2016-11-03 Thread Shaohua Li
On Thu, Nov 03, 2016 at 05:09:54PM -0700, Christoph Hellwig wrote: > On Thu, Nov 03, 2016 at 05:03:54PM -0700, Shaohua Li wrote: > > This is corresponding part for blk-mq. Disk with multiple hardware > > queues doesn't need this as we only hold 1 request at most. > > Any reason you only do this fo

[PATCH v2 2/3] firmware: qcom: scm: Remove core, iface and bus clocks dependency

2016-11-03 Thread Sarangdhar Joshi
Core, iface and bus clocks are not required to be voted from SCM driver for some of the Qualcomm chipsets. Remove dependency on these clocks from driver. Suggested-by: Bjorn Andersson Signed-off-by: Sarangdhar Joshi --- drivers/firmware/qcom_scm.c | 49 ++

[PATCH v2 0/3] Remove clocks dependency from SCM driver

2016-11-03 Thread Sarangdhar Joshi
On earlier chiptsets (APQ8064, MSM8660, MSM8690, MSM8916, APQ8084, MSM8974) crypto operations of TZ were depends on crypto clocks controlled by users/clients. However on MSM8996 crypto clocks control is handled internally in TZ itself. The current series of patches handle this clock dependency in S

[PATCH v2 3/3] firmware: qcom: scm: Return PTR_ERR when devm_clk_get fails

2016-11-03 Thread Sarangdhar Joshi
When devm_clk_get fails for core clock, the failure was ignored and the core_clk was explicitly set to NULL so that other remaining clocks can be queried. However, now that we have a cleaner way of expressing the clock dependency, return failure when devm_clk_get fails for core clock. Signed-off-b

[PATCH v2 1/3] dt-bindings: firmware: scm: Add MSM8996 DT bindings

2016-11-03 Thread Sarangdhar Joshi
Add SCM DT bindings for Qualcomm's MSM8996 platform. Acked-by: Rob Herring Signed-off-by: Sarangdhar Joshi --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Documentation/d

Re: [PATCH V2 2/2] blk-mq: immediately dispatch big size request

2016-11-03 Thread Christoph Hellwig
On Thu, Nov 03, 2016 at 05:03:54PM -0700, Shaohua Li wrote: > This is corresponding part for blk-mq. Disk with multiple hardware > queues doesn't need this as we only hold 1 request at most. Any reason you only do this for the SQ and not the MQ case?

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-03 Thread Sebastian Reichel
Hi, On Fri, Nov 04, 2016 at 01:05:01AM +0200, Sakari Ailus wrote: > On Thu, Nov 03, 2016 at 11:48:43PM +0100, Sebastian Reichel wrote: > > On Tue, Nov 01, 2016 at 12:54:08AM +0200, Sakari Ailus wrote: > > > > > Thanks, this answered half of my questions already. ;-) > > > > :-). > > > > > > > > I

[PATCH V2 1/2] block: immediately dispatch big size request

2016-11-03 Thread Shaohua Li
Currently block plug holds up to 16 non-mergeable requests. This makes sense if the request size is small, eg, reduce lock contention. But if request size is big enough, we don't need to worry about lock contention. Holding such request makes no sense and it lows the disk utilization. In practice,

[PATCH V2 2/2] blk-mq: immediately dispatch big size request

2016-11-03 Thread Shaohua Li
This is corresponding part for blk-mq. Disk with multiple hardware queues doesn't need this as we only hold 1 request at most. Signed-off-by: Shaohua Li --- block/blk-mq.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index f3d27a6..a72

[PATCH] clk: sunxi: Fix M factor computation for APB1

2016-11-03 Thread Stéphan Rafin
commit cfa636886033 ("clk: sunxi: factors: Consolidate get_factors parameters into a struct") introduced a regression for m factor computation in sun4i_get_apb1_factors function. The old code reassigned the "parent_rate" parameter to the targeted divisor value and was buggy for the returned freque

[PATCH 1/3] tpm, tpm_vtpm_proxy: add kdoc comments for VTPM_PROXY_IOC_NEW_DEV

2016-11-03 Thread Jarkko Sakkinen
Added kdoc comments for VTPM_PROXY_IOC_NEW_DEV so that these can be imported to the kernel documentation written with rst markup and generated with Sphinx. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_vtpm_proxy.c | 72 +-- include/uapi/linux/vtpm_p

[PATCH 2/3] tpm: transition tpm_vtpm_proxy documentation to the Sphinx

2016-11-03 Thread Jarkko Sakkinen
Transitioned the tpm_vtpm_proxy documentation to the Sphinx infrastructure and removed parts from the documentation that are easier to pull from the sources. Restructured vtpm_proxy.h and tpm_vtpm_proxy.c to be compatible with this approach and wrote associated documentation comments. Signed-off-b

  1   2   3   4   5   6   7   8   >