[PATCH v3 05/23] PCI: endpoint: Create configfs entry for EPC device and EPF driver

2017-03-09 Thread Kishon Vijay Abraham I
Invoke API's provided by pci-ep-cfs to create configfs entry for every EPC device and EPF driver to help users in creating EPF device and binding the EPF device to the EPC device. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c |4 drivers/pci/endpoint/pci-

[PATCH v3 03/23] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-03-09 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the EP function with EP controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig |9 + drivers/pci/endpoint/Makefile |1

[PATCH v3 02/23] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-03-09 Thread Kishon Vijay Abraham I
Add Documentation to help users use endpoint library to enable endpoint mode in the PCI controller and add new PCI endpoint functions. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-endpoint.txt | 215 ++

[PATCH v3 15/23] dt-bindings: PCI: dra7xx: Add dt bindings to enable unaligned access

2017-03-09 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling unaligned mem access. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt |5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devic

Re: [lkp-robot] [blkcg] ad63af3cb7: BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h

2017-03-09 Thread Tahsin Erdogan
This is a good catch! I will post a v5 of the patch shortly to the other email thread. On Wed, Mar 8, 2017 at 9:25 PM, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: ad63af3cb70378a7f780dbef2387a6d13e53a6c9 ("blkcg: allocate struct > blkcg_gq outside request queu

[PATCH v3 00/23] PCI: Support for configurable PCI endpoint

2017-03-09 Thread Kishon Vijay Abraham I
This patch series *) add PCI endpoint core layer *) modify designware and dra7xx driver to be configured in EP mode *) add a PCI endpoint *test* function driver and corresponding host driver Changes from v2: *) changed the configfs structure as suggested by Christoph Hellwig. With this c

Re: [PATCH v3] Input: sparse-keymap - use a managed allocation for keymap copy

2017-03-09 Thread Michał Kępień
> On Wed, Mar 8, 2017 at 11:05 PM, Dmitry Torokhov > wrote: > > On Wed, Mar 08, 2017 at 10:50:16PM +0200, Andy Shevchenko wrote: > >> On Wed, Mar 8, 2017 at 8:12 PM, Dmitry Torokhov > >> wrote: > >> > On Wed, Mar 08, 2017 at 09:22:17AM +0100, Michał Kępień wrote: > > >> If there PDx86 related pa

[PATCH v3 19/23] tools: PCI: Add a userspace tool to test PCI endpoint

2017-03-09 Thread Kishon Vijay Abraham I
Add a userspace tool to invoke the ioctls exposed by the PCI endpoint test driver to perform various PCI tests. Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.c | 186 +++ 1 file changed, 186 insertions(+) create mode 100644 tools/pc

[PATCH v3 11/23] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-03-09 Thread Kishon Vijay Abraham I
No functional change. Split dra7xx_pcie_enable_interrupts into dra7xx_pcie_enable_wrapper_interrupts and dra7xx_pcie_enable_msi_interrupts so that wrapper interrupts and msi interrupts can be enabled independently. This is in preparation for adding EP mode support to dra7xx driver since EP mode doe

Re: ath9k_htc: Add support of AirTies 1eda:2315 AR9271 device

2017-03-09 Thread Kalle Valo
Dmitry Tunin wrote: > T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 7 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1 > P: Vendor=1eda ProdID=2315 Rev=01.08 > S: Manufacturer=ATHEROS > S: Product=USB2.0 WLAN > S: SerialNumber=12345 > C: #Ifs= 1 Cfg#= 1 Atr=80

Re: Arrays of variable length

2017-03-09 Thread Tomas Winkler
On Mon, Mar 6, 2017 at 2:31 AM, Måns Rullgård wrote: > Henrique de Moraes Holschuh writes: > >> On Sun, 05 Mar 2017, Måns Rullgård wrote: >>> Tomas Winkler writes: >>> > Sparse complains for arrays declared with variable length >>> > >>> > 'warning: Variable length array is used' >>> > >>> > Pri

[PATCH v3 22/23] MAINTAINERS: add PCI EP maintainer

2017-03-09 Thread Kishon Vijay Abraham I
Add maintainer for the newly introduced PCI EP framework. Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c265a5f..3c1b947 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9581,6 +9581,15 @@ F:

[PATCH v3 12/23] PCI: dwc: dra7xx: Add EP mode support

2017-03-09 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add endpoint mode support to dra7xx driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 31 +- drivers/pci/dwc/Makefile |4 +- drivers/pci/dwc/pci-dra7xx.c

[PATCH v1] perf report: Drop cycles 0 for LBR print

2017-03-09 Thread Jin Yao
For some platforms, for example Broadwell, it doesn't support cycles for LBR. But the perf always prints cycles:0, it's not necessary. The patch refactors the LBR info print code and drops the cycles:0. For example: perf report --branch-history --no-children --stdio On Broadwell: --0.91%--__rand

Re: wcn36xx: Fix error handling

2017-03-09 Thread Kalle Valo
Christophe Jaillet wrote: > Reorder 'out_free_dxe_pool' and 'out_free_dxe_ctl' error handling labels > in order to match the way resources have been allocated. > > Signed-off-by: Christophe JAILLET Patch applied to ath-next branch of ath.git, thanks. 4aa2d31f5df8 wcn36xx: Fix error handling -

[PATCH v3 20/23] tools: PCI: Add sample test script to invoke pcitest

2017-03-09 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.sh | 56 ++ 1

[PATCH v3 09/23] PCI: dwc: designware: Add EP mode support

2017-03-09 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device in order to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig

[PATCH v3 23/23] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-03-09 Thread Kishon Vijay Abraham I
The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO in RC mode. However in EP mode, the host system is not able to access the MEMSPACE and setting the CLKSTCTRL to SW_WKUP fixes it. Acked-by: Tony Lindgren

[PATCH v3 14/23] PCI: dwc: dra7xx: Workaround for errata id i870

2017-03-09 Thread Kishon Vijay Abraham I
According to errata i870, access to the PCIe slave port that are not 32-bit aligned will result in incorrect mapping to TLP Address and Byte enable fields. Accessing non 32-bit aligned data causes incorrect data in the target buffer if memcpy is used. Implement the workaround for this errata here.

[PATCH v3 01/23] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-03-09 Thread Kishon Vijay Abraham I
Introduce a new EP core layer in order to support endpoint functions in linux kernel. This comprises of EPC library (Endpoint Controller Library) and EPF library (Endpoint Function Library). EPC library implements functions that is specific to an endpoint controller and EPF library implements funct

Re: [PATCH v5 2/5] powerpc: kretprobes: override default function entry offset

2017-03-09 Thread Naveen N. Rao
On 2017/03/09 05:37PM, Michael Ellerman wrote: > "Naveen N. Rao" writes: > > On 2017/03/08 11:29AM, Arnaldo Carvalho de Melo wrote: > >> > I wasn't sure if you were planning on picking up KPROBES_ON_FTRACE for > >> > v4.11. If so, it would be good to take this patch through the powerpc > >> > tr

[PATCH v3 18/23] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-03-09 Thread Kishon Vijay Abraham I
Add Documentation for pci-endpoint-test driver. Signed-off-by: Kishon Vijay Abraham I --- Documentation/misc-devices/pci-endpoint-test.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/misc-devices/pci-endpoint-test.txt diff --git a/Documentat

[PATCH v3 04/23] Documentation: PCI: Guide to use pci endpoint configfs

2017-03-09 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-endpoint-cfs.txt | 1

[PATCH v3 21/23] Documentation: PCI: Add userguide for PCI endpoint test function

2017-03-09 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-test function driver and pci_endpoint_test host driver for testing PCI. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX|2 + Documentation/PCI/endpoint/pci-test-howto.txt | 179 + 2

[PATCH v3 17/23] misc: Add host side pci driver for pci test function device

2017-03-09 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/Kconfig

[PATCH v3 06/23] Documentation: PCI: Add specification for the *pci test* function device

2017-03-09 Thread Kishon Vijay Abraham I
Add specification for the *pci test* virtual function device. The endpoint function driver and the host pci driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-te

Re: + compaction-add-def_blk_aops-migrate-function-for-memory-compaction.patch added to -mm tree

2017-03-09 Thread Vlastimil Babka
On 03/09/2017 12:55 AM, a...@linux-foundation.org wrote: > > The patch titled > Subject: compaction: add def_blk_aops migrate function for memory > compaction > has been added to the -mm tree. Its filename is > compaction-add-def_blk_aops-migrate-function-for-memory-compaction.patch >

Re: [TRIVIAL PATCH 1/2] doc: trace/kprobes: add information about NOKPROBE_SYMBOL

2017-03-09 Thread Masami Hiramatsu
On Wed, 8 Mar 2017 22:34:14 +0530 "Naveen N. Rao" wrote: > Update kprobe tracer documentation to also mention that > NOKPROBE_SYMBOL() and nokprobe_inline add symbols to the kprobes > blacklist. Thanks for update! Acked-by: Masami Hiramatsu > > Signed-off-by: Naveen N. Rao > --- > Documen

[PATCH v5] blkcg: allocate struct blkcg_gq outside request queue spinlock

2017-03-09 Thread Tahsin Erdogan
blkg_conf_prep() currently calls blkg_lookup_create() while holding request queue spinlock. This means allocating memory for struct blkcg_gq has to be made non-blocking. This causes occasional -ENOMEM failures in call paths like below: pcpu_alloc+0x68f/0x710 __alloc_percpu_gfp+0xd/0x10 __per

[PATCH v3 08/23] Documentation: PCI: Add binding documentation for pci-test endpoint function

2017-03-09 Thread Kishon Vijay Abraham I
Add binding documentation for pci-test endpoint function that helps in adding and configuring pci-test endpoint function. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 ++ .../PCI/endpoint/function/binding/pci-test.txt | 17

[PATCH v3 07/23] PCI: endpoint: functions: Add an EP function to test PCI

2017-03-09 Thread Kishon Vijay Abraham I
Adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig |2 + drivers/pci/endpoint/Makefile |2 +- drivers/pci/endpoint/functions/Kc

Re: [PATCH v2] irq: generic-chip: provide irq_free_generic_chip()

2017-03-09 Thread Marc Zyngier
On Wed, Mar 08 2017 at 5:04:05 pm GMT, Bartosz Golaszewski wrote: > Some users of irq_alloc_generic_chip() are modules which can be > removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated > generic chip. Provide a function for that. > > Signed-off-by: Bartosz Golaszewski Acked-

[PATCH v3 10/23] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-03-09 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/designware-pcie.txt| 26 ++-- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetr

[PATCH v2 2/8] ARM: DRA7: Thermal: Add slope and offset values

2017-03-09 Thread Keerthy
Currently the slope and offset values for calculating the hot spot temperature of a particular thermal zone is part of driver data. Pass them here instead and obtain the values while of node parsing. Signed-off-by: Keerthy --- arch/arm/boot/dts/dra7.dtsi | 17 + 1 file changed, 1

[PATCH v2 7/8] thermal: ti-soc-thermal: Remove redundant constants

2017-03-09 Thread Keerthy
Now that slope and offset data are being passed from device tree no need to populate in driver data. Signed-off-by: Keerthy --- drivers/thermal/ti-soc-thermal/dra752-thermal-data.c | 10 -- drivers/thermal/ti-soc-thermal/omap3-thermal-data.c | 4 drivers/thermal/ti-soc-thermal/oma

[PATCH v2 1/8] arm: dts: omap3: Add cpu_thermal zone

2017-03-09 Thread Keerthy
Add cpu_thermal zone. Signed-off-by: Keerthy --- arch/arm/boot/dts/omap3-cpu-thermal.dtsi | 20 arch/arm/boot/dts/omap34xx.dtsi | 8 ++-- arch/arm/boot/dts/omap36xx.dtsi | 8 ++-- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 1006

[PATCH v2 3/8] ARM: OMAP5: Thermal: Add slope and offset values

2017-03-09 Thread Keerthy
Currently the slope and offset values for calculating the hot spot temperature of a particular thermal zone is part of driver data. Pass them here instead and obtain the values while of node parsing. Signed-off-by: Keerthy --- arch/arm/boot/dts/omap5.dtsi | 9 + 1 file changed, 9 inserti

[PATCH v2 8/8] thermal: ti-soc-thermal: Remove redundant code

2017-03-09 Thread Keerthy
ti_thermal_expose_sensor always takes the devm_thermal_zone_of_sensor_register call for registration with the device tree nodes present for all the bandgap sensors for omap3/4/5 and dra7 family. There are large chunks of unused code. Removing all of them. Signed-off-by: Keerthy --- drivers/therm

[PATCH v2 5/8] ARM: OMAP4460: Thermal: Add slope and offset values

2017-03-09 Thread Keerthy
Currently the slope and offset values for calculating the hot spot temperature of a particular thermal zone is part of driver data. Pass them here instead and obtain the values while of node parsing. Signed-off-by: Keerthy --- arch/arm/boot/dts/omap4460.dtsi | 4 1 file changed, 4 insertion

[PATCH v2 6/8] thermal: ti-soc-thermal: Fetch slope and offset from DT

2017-03-09 Thread Keerthy
Currently slope and offset values for calculating the hot spot temperature of a thermal zone is being taken directly from driver data. So fetch them from device tree. Signed-off-by: Keerthy --- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH net] rxrpc: rxrpc_kernel_send_data() needs to handle failed call better

2017-03-09 Thread David Howells
If rxrpc_kernel_send_data() is asked to send data through a call that has already failed (due to a remote abort, received protocol error or network error), then return the associated error code saved in the call rather than ESHUTDOWN. This allows the caller to work out whether to ask for the abort

[PATCH net] net: Work around lockdep limitation in sockets that use sockets

2017-03-09 Thread David Howells
Lockdep issues a circular dependency warning when AFS issues an operation through AF_RXRPC from a context in which the VFS/VM holds the mmap_sem. The theory lockdep comes up with is as follows: (1) If the pagefault handler decides it needs to read pages from AFS, it calls AFS with mmap_sem

Re: [PATCH] phy: phy-exynos-pcie: fix the wrong error return

2017-03-09 Thread Kishon Vijay Abraham I
On Wednesday 08 March 2017 01:52 PM, Jaehoon Chung wrote: > When it doesn't get the blk_base's resource, it was returned > the error about phy_base, not blk_base. > This patch is for fixing the wrong error return about blk_base. > > Fixes: cf0adb8e281b ("phy: phy-exynos-pcie: Add support for Exy

Re: [lkp-robot] [x86] ed3ce2a917: BUG:unable_to_handle_kernel

2017-03-09 Thread Borislav Petkov
On Thu, Mar 09, 2017 at 10:13:10AM +0800, Ye Xiaolong wrote: > >Anyway, the diff is below, please try that ontop of tip's x86/asm branch > >which already has the clear_page patch: > > > >http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/log/?h=x86/asm > > > >Thanks! > > Hmm, I've checkout th

Re: [PATCH v19 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2017-03-09 Thread Baolin Wang
Hi, On 9 March 2017 at 09:50, Jun Li wrote: > Hi, > >> -Original Message- >> From: Baolin Wang [mailto:baolin.w...@linaro.org] >> Sent: Tuesday, March 07, 2017 5:39 PM >> To: NeilBrown >> Cc: Felipe Balbi ; Greg KH ; >> Sebastian Reichel ; Dmitry Eremin-Solenikov >> ; David Woodhouse ; >

Re: [lkp-robot] [x86] ed3ce2a917: BUG:unable_to_handle_kernel

2017-03-09 Thread Borislav Petkov
On Thu, Mar 09, 2017 at 10:30:52AM +0800, Fengguang Wu wrote: > One possible improvement is to provide "lkp qemu" reproduce steps for > kernel oops -- it would be way more convenient and safe to follow than > "lkp run", since the later risks hang the physical machine. Right, that would mean that t

Re: [PATCH 4/4] ASoC: sun8i-codec: Convert to use SND_SOC_DAPM_AIF_IN

2017-03-09 Thread Mylene Josserand
Hi Chen-Yu, Thank you for the review. On 06/03/2017 10:56, Chen-Yu Tsai wrote: On Fri, Feb 10, 2017 at 5:41 PM, Mylène Josserand wrote: Update the driver to use SND_SOC_DAPM_AIF_IN instead of SND_SOC_DAPM_DAC. Set the route names so it must be updated on the device tree too. Signed-off-by:

Re: [RESEND PATCH v3 4/8] phy: phy-mt65xx-usb3: move clock from phy node into port nodes

2017-03-09 Thread Kishon Vijay Abraham I
Hi, On Monday 06 March 2017 07:19 PM, Chunfeng Yun wrote: > the reference clock of HighSpeed port is 48M which comes from PLL; > the reference clock of SuperSpeed port is 26M which usually comes > from 26M oscillator directly, but some SoCs are not, add it for > compatibility, and put them into po

[PATCH v2 0/8] thermal: ti-soc-thermal: Migrate slope/offset data to device tree

2017-03-09 Thread Keerthy
Currently the slope and offset values for calculating the hot spot temperature of a particular thermal zone is part of driver data. Pass them here instead and obtain the values while of node parsing. Tested for the slope and constant values on DRA7-EVM, OMAP3-BEAGLE. Changes in v2: * Added OM

[PATCH v2 4/8] ARM: OMAP443x: Thermal: Add slope and offset values

2017-03-09 Thread Keerthy
Currently the slope and offset values for calculating the hot spot temperature of a particular thermal zone is part of driver data. Pass them here instead and obtain the values while of node parsing. Signed-off-by: Keerthy --- arch/arm/boot/dts/omap443x.dtsi | 4 1 file changed, 4 insertion

Re: phy-qcom-usb-hs.c:undefined reference to `extcon_unregister_notifier'

2017-03-09 Thread Kishon Vijay Abraham I
On Tuesday 07 March 2017 09:31 PM, Stephen Boyd wrote: > Quoting kbuild test robot (2017-03-06 09:19:50) >> Hi Stephen, >> >> FYI, the error/warning still remains. >> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: c1ae3cfa0e89fa1a7ecc4c99031f5e

Re: [PATCH 1/4] s390: get rid of superfluous __GFP_REPEAT

2017-03-09 Thread Heiko Carstens
On Wed, Mar 08, 2017 at 03:11:10PM +0100, Michal Hocko wrote: > On Wed 08-03-17 09:23:40, Heiko Carstens wrote: > > On Tue, Mar 07, 2017 at 04:48:40PM +0100, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > __GFP_REPEAT has a rather weak semantic but since it has been introduced > > > aro

Re: linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681: suspicious mask ?

2017-03-09 Thread Andrzej Hajda
On 09.03.2017 08:34, Inki Dae wrote: > Hello David, > > Thanks for report. > > 2017년 03월 06일 19:05에 David Binderman 이(가) 쓴 글: >> Hello there, >> >> linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681]: (warning) >> Result of operator '|' is always true if one operand is non-zero. Did

[PATCH] cpufreq: qoriq: enhance bus frequency calculation

2017-03-09 Thread YuanTian Tang
From: Tang Yuantian On some platforms, property device-type may be missed in soc node in dts which caused the bus-frequency can not be obtained correctly. This patch enhanced the bus-frequency calculation. When property device-type is missed in dts, bus-frequency will be obtained by looking up c

[PATCH] selftests: firmware/config: add FW_LOADER_USER_HELPER_FALLBACK

2017-03-09 Thread Li Zhijian
fw_fallback.sh requires FW_LOADER_USER_HELPER_FALLBACK Signed-off-by: Li Zhijian --- tools/testing/selftests/firmware/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/firmware/config b/tools/testing/selftests/firmware/config index c8137f7..965ed11 100644 --- a/

Re: [PATCH] edac i5000, i5400: fix use of MTR_DRAM_WIDTH macro

2017-03-09 Thread Borislav Petkov
On Wed, Mar 08, 2017 at 08:18:09PM -0500, Jérémy Lefaure wrote: > The MTR_DRAM_WIDTH macro returns the data width. It is sometimes used as > if it returned a boolean true if the width if 8. This patch fixes the > tests where MTR_DRAM_WIDTH is misused. > > Signed-off-by: Jérémy Lefaure > --- > dr

Re: [RESEND PATCH] arm: assabet_defconfig: disable IDE subsystem

2017-03-09 Thread Sekhar Nori
Hi Bartlomiej, On Wednesday 08 March 2017 08:30 PM, Sekhar Nori wrote: >> It took a while to get to it but here is the draft driver patch >> against v4.11-rc1. Please test. > > I tested this on DM6446 EVM. I was able to mount existing partitions on > the hard disk and see that the directory li

Re: [PATCH 1/1] HID: clamp input to logical range if no null state

2017-03-09 Thread Benjamin Tissoires
On Mar 08 2017 or thereabouts, Tomasz Kramkowski wrote: > This patch fixes an issue in drivers/hid/hid-input.c where values > outside of the logical range are not clamped when "null state" bit of > the input control is not set. > > This was discussed on the lists [1] and this change stems from the

Re: [RESEND PATCH v3 4/8] phy: phy-mt65xx-usb3: move clock from phy node into port nodes

2017-03-09 Thread Chunfeng Yun
On Thu, 2017-03-09 at 13:51 +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 06 March 2017 07:19 PM, Chunfeng Yun wrote: > > the reference clock of HighSpeed port is 48M which comes from PLL; > > the reference clock of SuperSpeed port is 26M which usually comes > > from 26M oscillator dire

Re: [PATCH v2 6/9] arm, arm64: factorize common cpu capacity default code

2017-03-09 Thread Juri Lelli
Hi Greg, did you have a chance to have a look at my replies below? It would be really helpful to understand from you how to move forward with this set. Best Regards, - Juri On 13/02/17 15:09, Juri Lelli wrote: > Hi Greg, > > On 10/02/17 15:28, Greg KH wrote: > > On Thu, Feb 09, 2017 at 09:25:

Re: [sched] 1827adb11a BUG kmalloc-128 (Not tainted): Poison overwritten

2017-03-09 Thread Dmitry Vyukov
On Thu, Mar 9, 2017 at 4:01 AM, Fengguang Wu wrote: > Hi Ingo, > > FYI this also shows up in next-20170308 and tip/master 7f27de49 > ("Merge branch 'WIP.sched/core'"). The attached reproduce-* script may > help, however note that this bug may not show up in every boot. This is not KASAN-detected

Re: [PATCH 22/29] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-09 Thread Johannes Thumshirn
On 03/09/2017 08:18 AM, Reshetova, Elena wrote: >> On Mon, Mar 06, 2017 at 04:21:09PM +0200, Elena Reshetova wrote: >>> refcount_t type and corresponding API should be >>> used instead of atomic_t when the variable is used as >>> a reference counter. This allows to avoid accidental >>> refcounter o

RE: [PATCH 1/2] dt-bindings: qoriq-clock: Add coreclk

2017-03-09 Thread Y.T. Tang
Hi Michael and Stephen, This patch set was acked by Rob Herring. Do you have any comments on them? BTW: Scott should stay in author, do I need to resend them with author changed or you can change it when applying? Regards, Yuantian > -Original Message- > From: Rob Herring [mailto:r...

[PATCH] usb: xhci: bInterval quirk for TI TUSB73x0

2017-03-09 Thread Roger Quadros
As per [1] issue #4, "The periodic EP scheduler always tries to schedule the EPs that have large intervals (interval equal to or greater than 128 microframes) into different microframes. So it maintains an internal counter and increments for each large interval EP added. When the counter is greater

[PATCH v1 4/4] mfd: rk808: Add RK805 support

2017-03-09 Thread Elaine Zhang
The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality. Signed-off-by: Elai

[PATCH v1 3/4] regulator: rk808: Add regulator driver for RK805

2017-03-09 Thread Elaine Zhang
Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang --- drivers/regulator/Kconfig | 4 +-- drivers/regulator/r

Re: "mm: fix lazyfree BUG_ON check in try_to_unmap_one()" build error

2017-03-09 Thread Michal Hocko
On Thu 09-03-17 15:02:26, Minchan Kim wrote: [...] > >From 38b10e560d066c2cef8f9d028e14008cefdaa3e0 Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Thu, 9 Mar 2017 14:58:23 +0900 > Subject: [PATCH] mm: do not use VM_WARN_ON_ONCE as if condition > > Sergey reported VM_WARN_ON_ONCE returns voi

Re: [f2fs-dev] [PATCH 1/4] f2fs: fix wrong error injection for evict_inode

2017-03-09 Thread Chao Yu
Hi Jaegeuk, On 2017/3/8 6:13, Jaegeuk Kim wrote: > The previous one was not a proper location to inject an error, since there > is no point to get errors. Instead, we can emulate EIO during truncation, > and the below logic should handle it correctly. > > Signed-off-by: Jaegeuk Kim > --- > fs/f

Re: [PATCH 5/5] staging/lustre: Use generic range rwlock

2017-03-09 Thread kbuild test robot
Hi Davidlohr, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.11-rc1 next-20170309] [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/Davidlohr-Bueso/locking

[PATCH v3 13/23] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-03-09 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 37 ++ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/b

Re: [PATCH 1/3] PCI: rockchip: fix sign issues for current limits

2017-03-09 Thread Shawn Lin
On 2017/3/9 7:37, Brian Norris wrote: The regulator framework can return negative error codes via regulator_get_current_limit() for regulators that don't provide current information. The subsequent check for postive values isn't very useful, if the variable is unsigned. Let's just match the sign

Re: [PATCH 3/4] phy: rockchip-typec: support DP phy switch

2017-03-09 Thread Heiko Stübner
Hi Brian, Am Mittwoch, 8. März 2017, 19:10:50 CET schrieb Brian Norris: > On Thu, Mar 09, 2017 at 02:02:54AM +0100, Heiko Stuebner wrote: > > Am Mittwoch, 8. März 2017, 16:39:23 CET schrieb Brian Norris: > > > On Fri, Feb 10, 2017 at 03:44:13PM +0800, Chris Zhong wrote: > > > > There are 2 Type-c

Re: NULL pointer dereference in cgroup

2017-03-09 Thread Luis Henriques
On Wed, Mar 08, 2017 at 05:30:29PM -0600, Eric W. Biederman wrote: > Luis Henriques writes: > > > Hi, > > > > I've seen this only once, and can't reproduce it. But here it is anyway: > > > > https://postimg.org/image/pn94k1yov > > > > (Not sure png files are accepted on LKML.) > > > > This occur

[PATCH v5 0/4] phy: USB and PCIe phy drivers for Qcom chipsets

2017-03-09 Thread Vivek Gautam
This patch series adds couple of PHY drivers for Qualcomm chipsets. a) qcom-qusb2 phy driver: that provides High Speed USB functionality. b) qcom-qmp phy driver: that is a combo phy providing support for USB3, PCIe, UFS and few other controllers. The patches are based on next branch of linux-ph

[PATCH v5 1/4] dt-bindings: phy: Add support for QUSB2 phy

2017-03-09 Thread Vivek Gautam
Qualcomm chipsets have QUSB2 phy controller that provides HighSpeed functionality for DWC3 controller. Adding dt binding information for the same. Signed-off-by: Vivek Gautam Acked-by: Rob Herring --- Changes since v4: - None. Changes since v3: - Added 'Acked-by' from Rob. - Removed 'reset-

[PATCH v5 2/4] phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips

2017-03-09 Thread Vivek Gautam
PHY transceiver driver for QUSB2 phy controller that provides HighSpeed functionality for DWC3 controller present on Qualcomm chipsets. Signed-off-by: Vivek Gautam Reviewed-by: Stephen Boyd --- Changes since v4: - Updated the copyright year to 2017. - Removed unnecessary of_match_ptr() cast f

[PATCH v5 3/4] dt-bindings: phy: Add support for QMP phy

2017-03-09 Thread Vivek Gautam
Qualcomm chipsets have QMP phy controller that provides support to a number of controller, viz. PCIe, UFS, and USB. Adding dt binding information for the same. Signed-off-by: Vivek Gautam Cc: Rob Herring --- Hi Rob, I have removed your Acked-by tag because of the change in bindings. Please cons

[PATCH v5 4/4] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2017-03-09 Thread Vivek Gautam
Qualcomm SOCs have QMP phy controller that provides support to a number of controller, viz. PCIe, UFS, and USB. Add a new driver, based on generic phy framework, for this phy controller. Signed-off-by: Vivek Gautam Tested-by: Srinivas Kandagatla --- Changes since v4: - Added provision for chil

[PATCH 5/6] mm/migrate: Add new migration flag MPOL_MF_MOVE_MT for syscalls

2017-03-09 Thread Anshuman Khandual
From: Zi Yan This change adds a new mode flag MPOL_MF_MOVE_MT for migration system calls like move_pages() and mbind() which indicates request for using the multi threaded copy method. Signed-off-by: Zi Yan Signed-off-by: Anshuman Khandual --- * Updated include/linux/migrate_mode.h comment as

Re: [f2fs-dev] [PATCH 2/4] f2fs: build stat_info before orphan inode recovery

2017-03-09 Thread Chao Yu
On 2017/3/8 6:13, Jaegeuk Kim wrote: > f2fs_sync_fs() -> write_checkpoint() calls stat_inc_cp_count(sbi->stat_info), > which needs stat_info allocation. > Otherwise, we can hit: > > [254042.598623] ? count_shadow_nodes+0xa0/0xa0 > [254042.598633] f2fs_sync_fs+0x65/0xd0 [f2fs] > [254042.598645]

Re: [PATCH] mm,hugetlb: compute page_size_log properly

2017-03-09 Thread Michal Hocko
On Wed 08-03-17 09:06:01, Davidlohr Bueso wrote: > The SHM_HUGE_* stuff was introduced in: > >42d7395feb5 (mm: support more pagesizes for MAP_HUGETLB/SHM_HUGETLB) > > It unnecessarily adds another layer, specific to sysv shm, without > anything special about it: the macros are identical to t

Re: [PATCH 3/3] Documentation: cpu-freq: cpu-drivers: Fix repetition of word 'to'

2017-03-09 Thread Viresh Kumar
On Thu, Mar 9, 2017 at 12:24 PM, sayli karnik wrote: > The patch replaces 'to to' with 'to' in the documentation. > > Signed-off-by: sayli karnik > --- > Documentation/cpu-freq/cpu-drivers.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Viresh Kumar

Re: [PATCH] staging, android: remove lowmemory killer from the tree

2017-03-09 Thread Michal Hocko
Greg, do you see any obstacle to have this merged. The discussion so far shown that a) vendors are not using the code as is b) there seems to be an agreement that something else than we have in the kernel is really needed. On Wed 22-02-17 13:01:21, Michal Hocko wrote: > From: Michal Hocko > > Lo

Re: [PATCH v2] arm64: kvm: Use has_vhe() instead of hyp_alternate_select()

2017-03-09 Thread Christoffer Dall
Hi Shanker, On Sun, Mar 05, 2017 at 08:33:18PM -0600, Shanker Donthineni wrote: > Now all the cpu_hwcaps features have their own static keys. We don't > need a separate function hyp_alternate_select() to patch the vhe/nvhe > code. We can achieve the same functionality by using has_vhe(). It > impr

Re: [RFC PATCH 3/4] xfs: map KM_MAYFAIL to __GFP_RETRY_MAYFAIL

2017-03-09 Thread Michal Hocko
On Wed 08-03-17 07:06:59, Christoph Hellwig wrote: > On Tue, Mar 07, 2017 at 04:48:42PM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > KM_MAYFAIL didn't have any suitable GFP_FOO counterpart until recently > > so it relied on the default page allocator behavior for the given set > > of

Re: [PATCH 0/3] Add RTC support on STM32F746

2017-03-09 Thread Alexandre Torgue
Hi Amélie, On 01/19/2017 02:45 PM, Amelie Delaunay wrote: This patchset enables STM32 RTC on STM32F746 MCU. Amelie Delaunay (3): ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746 ARM: dts: stm32: Add RTC support for STM32F746 MCU ARM: dts: stm32: enable RTC on stm32746g-e

Re: [Question] devm_kmalloc() for DMA ?

2017-03-09 Thread Russell King - ARM Linux
On Thu, Mar 09, 2017 at 12:25:07PM +0900, Masahiro Yamada wrote: > (c) Use kmalloc() and kfree(). (be careful for memory leak) This is quite simple. For the first one, it doesn't seem that it's DMA'd into, so there's no need to use GFP_DMA. - /* allocate a temporary buffer for nand_scan_

Re: [PATCH] mm, vmscan: do not loop on too_many_isolated for ever

2017-03-09 Thread Michal Hocko
On Wed 08-03-17 10:54:57, Rik van Riel wrote: > On Wed, 2017-03-08 at 10:21 +0100, Michal Hocko wrote: > > > > Could that create problems if we have many concurrent > > > reclaimers? > > > > As the changelog mentions it might cause a premature oom killer > > invocation theoretically. We could eas

Re: [PATCH 0/3] mm/fs: get PG_error out of the writeback reporting business

2017-03-09 Thread Jan Kara
On Wed 08-03-17 21:57:25, Ted Tso wrote: > On Tue, Mar 07, 2017 at 11:26:22AM +0100, Jan Kara wrote: > > On a more general note (DAX is actually fine here), I find the current > > practice of clearing page dirty bits on error and reporting it just once > > problematic. It keeps the system running b

Re: [PATCH] usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers

2017-03-09 Thread Mathias Nyman
On 08.03.2017 21:49, Guenter Roeck wrote: Upstream commit 98d74f9ceaef ("xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers") fixes a problem with hot pluggable PCI xhci controllers which can result in excessive timeouts, to the point where the system reports a deadlock.

Re: cgroup: WARNING in cgroup_kill_sb

2017-03-09 Thread Zefan Li
On 2017/3/3 3:15, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in cgroup_kill_sb: > https://gist.githubusercontent.com/dvyukov/47a37d3b899ece1f57e512dc6c90bca6/raw/250894f3d6e2954eed01bac39e4c3b7ec59a9c31/gistfile1.txt > > > WARNING: CPU: 2 PID: 3092 at lib/percpu-ref

[PATCH v1 0/4] rk808: Add RK805 support

2017-03-09 Thread Elaine Zhang
Elaine Zhang (4): mfd: rk808: fix up the chip id get failed linux: mfd: rk808: add rk805 regs addr and ID regulator: rk808: Add regulator driver for RK805 mfd: rk808: Add RK805 support drivers/clk/Kconfig | 4 +- drivers/mfd/Kconfig | 4 +- drivers/mfd/

RE: [PATCH 22/29] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-09 Thread Reshetova, Elena
> On 03/09/2017 08:18 AM, Reshetova, Elena wrote: > >> On Mon, Mar 06, 2017 at 04:21:09PM +0200, Elena Reshetova wrote: > >>> refcount_t type and corresponding API should be > >>> used instead of atomic_t when the variable is used as > >>> a reference counter. This allows to avoid accidental > >>>

[PATCH RESEND 4/4] mfd: arizona: Use regmap_read_poll_timeout instead of hard coding it

2017-03-09 Thread Charles Keepax
arizona_poll_reg essentially hard-codes regmap_read_poll_timeout, this patch updates the implementation to use regmap_read_poll_timeout. We still keep arizona_poll_reg around as regmap_read_poll_timeout is a macro so rather than expand this for each caller keep it wrapped in arizona_poll_reg. Whil

[PATCH v1 1/4] mfd: rk808: fix up the chip id get failed

2017-03-09 Thread Elaine Zhang
the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index fd087cbb0bde..

Re: [PATCH 5/6] KVM: VMX: add missing exit reasons

2017-03-09 Thread David Hildenbrand
Am 08.03.2017 um 19:03 schrieb Paolo Bonzini: > In order to simplify adding exit reasons in the future, > the array of exit reason names is now also sorted by > exit reason code. > > Signed-off-by: Paolo Bonzini Reviewed-by: David Hildenbrand -- Thanks, David

[PATCH v1 2/4] linux: mfd: rk808: add rk805 regs addr and ID

2017-03-09 Thread Elaine Zhang
Signed-off-by: Elaine Zhang --- include/linux/mfd/rk808.h | 91 +++ 1 file changed, 91 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 54feb140c210..7f4bab38c1d6 100644 --- a/include/linux/mfd/rk808.h +++ b/includ

[PATCH RESEND 1/4] mfd: arizona: Remove duplicate set of ret variable

2017-03-09 Thread Charles Keepax
arizona_poll_reg already returns ETIMEDOUT if we don't see the expected register changes before the time out, so remove pointless local setting of ETIMEDOUT. Signed-off-by: Charles Keepax --- drivers/mfd/arizona-core.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/d

[PATCH] ahci: qoriq: correct the sata ecc setting error

2017-03-09 Thread Yuantian Tang
Sata ecc is controlled by only 1 bit which is 24bit in big-endian in ecc register. So only setting 24bit to disable sata ecc prevents other bits from being overwritten in ecc register. Signed-off-by: Tang Yuantian --- drivers/ata/ahci_qoriq.c | 6 -- 1 file changed, 4 insertions(+), 2 deleti

[PATCH RESEND 3/4] mfd: arizona: Update arizona_poll_reg to take a timeout in milliseconds

2017-03-09 Thread Charles Keepax
Currently, we specify the timeout in terms of the number of polls but it is more clear from a user of the functions perspective to specify the timeout directly in milliseconds, as such update the function to these new semantics. Signed-off-by: Charles Keepax --- drivers/mfd/arizona-core.c | 18 +

  1   2   3   4   5   6   7   8   9   10   >