[PATCH 41/41] Documentation: ARM: Document new dependencies for MMC on DRA7

2017-05-19 Thread Kishon Vijay Abraham I
MMC on DRA7 SoCs require different IO Delay values to be configured depending on the MMC mode. In order to confgiure these IO Delay values CONFIG_PINCTRL_TI_IODELAY must be enabled. Document this dependency here so that it can be added by anyone using custom .config. Signed-off-by: Kishon Vijay

Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-19 Thread Greg KH
On Fri, May 19, 2017 at 01:42:55PM +0530, surenderpols...@gmail.com wrote: > -static DEVICE_ATTR(power_state, S_IRUGO | S_IWUSR, > - tsl2x7x_power_state_show, tsl2x7x_power_state_store); > +static DEVICE_ATTR_RW(tsl2x7x_power_state); You do realize you just renamed the sysfs file,

[PATCH 34/41] ARM: dts: dra7: Use new dra7-specific compatible string

2017-05-19 Thread Kishon Vijay Abraham I
Use the new compatible string "ti,dra7-hsmmc" that was specifically added for dra7 and dra72. This is required since for dra7 and dra72 processors iodelay values has to be set unlike other processors. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori ---

Re: [PATCHv2 0/6] mcp23s08 pinconf support

2017-05-19 Thread Arnd Bergmann
On Thu, May 11, 2017 at 3:38 PM, Linus Walleij wrote: > On Fri, Apr 28, 2017 at 10:43 AM, Sebastian Reichel > wrote: >> On Fri, Apr 28, 2017 at 10:22:24AM +0200, Linus Walleij wrote: >>> On Thu, Apr 27, 2017 at 4:19 PM, Sebastian Reichel >>> wrote: >>> >>> > Back in January I sent patches

[PATCH 23/41] ARM: dts: dra72x: Create a common file with MMC/SD IOdelay data

2017-05-19 Thread Kishon Vijay Abraham I
From: Sekhar Nori Add pinmux configuration for MMC module including IODELAY values suggested in the data manual for the various supported modes. IOdelay data for both silicon revision 1.0 and 2.0 is added here. The datamanual revisions used are: * AM571x Silicon Revision 2.0: SPRS957D,

[PATCH 30/41] ARM: dts: dra72-evm: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra72-evm.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm.dts | 14

Re: [PATCH 06/24] thunderbolt: Introduce thunderbolt bus and connection manager

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 07:43:13PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:38 PM, Mika Westerberg > wrote: > > Thunderbolt fabric consists of one or more switches. This fabric is > > called domain and it is controlled by an entity called connection > > manager. The connection

Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors

2017-05-19 Thread Christoph Hellwig
On Thu, May 18, 2017 at 11:42:34PM -0400, Steven Rostedt wrote: > > One of my the configs I use to test ftrace with (configs that have > caused failures in the past), has lots of irq issues and fails to > initialize the network of my box. I bisected the problem down to a > single commit, and when

[PATCH] uwb: i1480: add missing goto

2017-05-19 Thread Gustavo A. R. Silva
Add missing goto. Addresses-Coverity-ID: 1226913 Signed-off-by: Gustavo A. R. Silva --- drivers/uwb/i1480/dfu/phy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/uwb/i1480/dfu/phy.c b/drivers/uwb/i1480/dfu/phy.c index 3b1a87d..1ac8526 100644 --- a/drivers/uwb/i1480/dfu/phy.c +++

[PATCH 40/41] ARM: multi_v7_defconfig: Enable PINCTRL_TI_IODELAY

2017-05-19 Thread Kishon Vijay Abraham I
Enable PINCTRL_TI_IODELAY since it is required for MMC module in DRA7 family of processors to configure "IODelay" values depending on the enumerated MMC modes. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 2/2] mmc: core: Use device_property_read instead of of_property_read

2017-05-19 Thread Ulf Hansson
On 18 May 2017 at 00:17, David Woods wrote: > Using the device_property interfaces allows mmc drivers to work > on platforms which run on either device tree or ACPI. > > Signed-off-by: David Woods > Reviewed-by: Chris Metcalf > Cc: sta...@vger.linux.org > --- > drivers/mmc/core/host.c | 72 >

[PATCH 31/41] ARM: dts: dra72-evm-revc: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra72-evm-revc.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-revc.dts |

[PATCH 35/41] ARM: dts: dra7: Add supported MMC/SD modes in MMC dt nodes

2017-05-19 Thread Kishon Vijay Abraham I
On DRA7 family SoCs, MMC1 controller supports SDR104, SDR50, DDR50, SDR25 and SDR12 UHS modes (These UHS modes are not supported in beagle-x15 because it's not possible to switch IO lines supply voltage to 1.8v). MMC2 controller supports HS200 and DDR modes. (Since some of the boards like

[PATCH 39/41] ARM: omap2plus_defconfig: Enable PINCTRL_TI_IODELAY

2017-05-19 Thread Kishon Vijay Abraham I
Enable PINCTRL_TI_IODELAY since it is required for MMC module in DRA7 family of processors to configure "IODelay" values depending on the enumerated MMC modes. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 10:19:11PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg > wrote: > > The device DROM contains name of the vendor and device among other > > things. Extract this information and expose it to the userspace via two > > new attributes. > >

[PATCH 17/41] ARM: dts: dra72-evm: Add vmmc_aux supply to mmc1

2017-05-19 Thread Kishon Vijay Abraham I
Add vmmc_aux-supply property to mmc1 dt node and populate it with ldo1_reg to reflect ldo1_out is connected to mmc1 IO lines. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm.dts

[PATCH 13/41] mmc: host: omap_hsmmc: Add support to set IODELAY values

2017-05-19 Thread Kishon Vijay Abraham I
The data manual of J6/J6 Eco recommends to set different IODELAY values depending on the mode in which the MMC/SD is enumerated in order to ensure IO timings are met. Add support to set the IODELAY values depending on the various MMC modes using the pinctrl APIs. Signed-off-by: Kishon Vijay

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 10:35:19PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg > wrote: > > Starting from Intel Falcon Ridge the NVM firmware can be upgraded by > > using DMA configuration based mailbox commands. If we detect that the > > host or device

[PATCH 37/41] ARM: dts: am57xx-beagle-x15-common: Set MMC2 IO voltage to 3.3V

2017-05-19 Thread Kishon Vijay Abraham I
MMC2 interface on AM57xx Beagle-x15, connected to onboard eMMC, has IO voltage fixed to 3.3V. Add no-1-8-v device-tree property to mmc2 node in the board's device-tree file to reflect this. Note that the AM57xx SoC itself supports dual-voltage on MMC2. The limitation above is due to the board.

[PATCH 15/41] mmc: host: omap_hsmmc: Enable ADMA2

2017-05-19 Thread Kishon Vijay Abraham I
omap hsmmc host controller has ADMA2 feature. Enable it here for better read and write throughput. Signed-off-by: Kishon Vijay Abraham I [misael.lo...@ti.com: handle ADMA errors] Signed-off-by: Misael Lopez Cruz [nsek...@ti.com: restore adma settings after context loss] Signed-off-by: Sekhar

[PATCH 14/41] mmc: host: omap_hsmmc: Remove *use_dma* member

2017-05-19 Thread Kishon Vijay Abraham I
omap_hsmmc doesn't support polled I/O. So remove *use_dma* which is always set to '1'. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 37 - 1 file changed, 16 insertions(+), 21 deletions(-) diff --git

[PATCH 29/41] ARM: dts: am572x-idk: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra74x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra74x SoC and use it in the pinctrl properties of MMC devicetree nodes present in am572x-idk.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am572x-idk.dts | 19

[PATCH 16/41] mmc: omap_hsmmc: Support non-1.8V IO controllers

2017-05-19 Thread Kishon Vijay Abraham I
From: Sekhar Nori OMAP HSMMC driver assumes that if the controller does not support dual-volt, then it supports only 1.8V IO. This assumption can be incorrect. For example, on K2G MMC0 supports 3.3V IO only. AM57x Beagle-x15 and IDK boards support only 3.3V IO on eMMC interface. Support

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-19 Thread Andre Przywara
Hi, On 18/05/17 08:16, Icenowy Zheng wrote: > Add support of AXP803 regulators in the Pine64 device tree, in order to > enable many future functionalities, e.g. Wi-Fi. > > Signed-off-by: Icenowy Zheng > --- > Changes in v6: > - Rebased on next-20170517. > >

[PATCH 21/41] ARM: dts: dra72-evm-common: Correct vmmc-supply for mmc2

2017-05-19 Thread Kishon Vijay Abraham I
From: Ravikumar Kattekola On dra72/dra71 evms, mmc2 vdd/ios are connected to a common 1.8V supply not 3.3V. Also the regulator that supplies 1.8V is different on dra71-evm so move the supply property from common dtsi to evm specific dts files. Fixes: a4240d3af677 ("ARM: dts: Add support for

[PATCH 25/41] ARM: dts: dra7-evm: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra74x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra74 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra7-evm. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7-evm.dts | 18

RE: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-19 Thread Chen, Xiaoguang
Hi Gerd and Alex, >-Original Message- >From: Gerd Hoffmann [mailto:kra...@redhat.com] >Sent: Friday, May 19, 2017 4:05 PM >To: Alex Williamson >Cc: Chen, Xiaoguang ; Tian, Kevin >; linux-kernel@vger.kernel.org; zhen...@linux.intel.com; >Lv, Zhiyuan ; intel-gvt-...@lists.freedesktop.org;

[PATCH 09/41] mmc: host: omap_hsmmc: Add software timer when timeout greater than hardware capablility

2017-05-19 Thread Kishon Vijay Abraham I
From: Mugunthan V N DRA7 Errata No i834: When using high speed HS200 and SDR104 cards, the functional clock for MMC module will be 192MHz. At this frequency, the maximum obtainable timeout (DTO =0xE) in hardware is (1/192MHz)*2^27 = 700ms. Commands taking longer than 700ms will be affected by

[PATCH 10/41] mmc: host: omap_hsmmc: Prepare *set_timing() to be used for iodelay setting

2017-05-19 Thread Kishon Vijay Abraham I
No functional change. Add separate case statements for certain timing like MMC_TIMING_SD_HS and MMC_TIMING_MMC_HS even though AC12_UHSMC_RES has to be written to the AC12 register (same as for default modes). Also have separate case sections for MMC_TIMING_UHS_SDR104 and MMC_TIMING_UHS_HS200 even

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-19 Thread Icenowy Zheng
于 2017年5月19日 GMT+08:00 下午4:27:21, Andre Przywara 写到: >Hi, > >On 18/05/17 08:16, Icenowy Zheng wrote: >> Add support of AXP803 regulators in the Pine64 device tree, in order >to >> enable many future functionalities, e.g. Wi-Fi. >> >> Signed-off-by: Icenowy Zheng >> --- >> Changes in v6: >> -

[PATCH 12/41] mmc: host: omap_hsmmc: Fix error path sequence

2017-05-19 Thread Kishon Vijay Abraham I
Fix the error path sequence so that clk_disable, runtime_disable etc are done in the reverse order of how they were enabled. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

Re: [PATCH 0/5] mmc: cavium: bug fixes for 4.12

2017-05-19 Thread Ulf Hansson
On 16 May 2017 at 11:36, Jan Glauber wrote: > Hi Ulf, > > here are some bug fixes for the new mmc driver. The only > non-trivial fix should be the platform thing in patch #4 and #5. > > Tested on OcteonTx and on various MIPS boxes. > > thanks, > Jan > > David Daney (2): > mmc: cavium-octeon:

Re: [PATCH] mmc: sdhci-xenon: kill xenon_clean_phy()

2017-05-19 Thread Ulf Hansson
On 16 May 2017 at 08:17, Jisheng Zhang wrote: > Currently, the xenon_clean_phy() is only used for freeing phy_params. > The phy_params is allocated by devm_kzalloc(), there's no need to free > is explicitly. > > Signed-off-by: Jisheng Zhang Thanks, applied for fixes! Kind regards Uffe > --- >

[PATCH 03/41] mmc: host: omap_hsmmc: Program HCTL based on signal_voltage set by mmc core

2017-05-19 Thread Kishon Vijay Abraham I
HCTL is now set based on ios.signal_voltage set by mmc core and not hardcoded to 3V0 if OMAP_HSMMC_SUPPORTS_DUAL_VOLT is set. If OMAP_HSMMC_SUPPORTS_DUAL_VOLT is set, it means HCTL can be set to either 3V0 or 1V8. And it should be set to 3V0 or 1V8 depending on ios.signal_voltage. Also it is now

[PATCH 00/41] omap_hsmmc: Add ADMA support and UHS/HS200/DDR support

2017-05-19 Thread Kishon Vijay Abraham I
This series adds UHS, HS200, DDR mode and ADMA support to omap_hsmmc driver used to improve the throughput of MMC/SD in dra7 SoCs. The functionality implemented in this series was sent before ([1]) but was never followed up since supporting high speed modes in dra7 required IODelay values to be

[PATCH 01/41] mmc: host: omap_hsmmc: Support pbias and vmmc_aux to switch to 1.8v

2017-05-19 Thread Kishon Vijay Abraham I
Add support for vmmc_aux to switch to 1.8v. Also use "iov" instead of "vdd" to indicate io voltage. This is in preparation for adding support for io signal voltage switch. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 50

Re: [PATCH] mm/vmstat: add oom_kill counter

2017-05-19 Thread Konstantin Khlebnikov
On 19.05.2017 09:59, Konstantin Khlebnikov wrote: Show count of global oom killer invocations in /proc/vmstat Oops, this actually counts memcg kills too. Will redo. Signed-off-by: Konstantin Khlebnikov --- include/linux/vm_event_item.h |1 + mm/oom_kill.c |1 +

Re: [PATCH] firmware: ti_sci: fix strncat length check

2017-05-19 Thread Arnd Bergmann
On Tue, Mar 14, 2017 at 10:19 PM, santosh.shilim...@oracle.com wrote: > On 3/14/17 2:11 PM, Arnd Bergmann wrote: >> >> gcc-7 notices that the length we pass to strncat is wrong: >> >> drivers/firmware/ti_sci.c: In function 'ti_sci_probe': >> drivers/firmware/ti_sci.c:204:32: error: specified

Re: [PATCH] mmc: atmel-mci: Delete an error message for a failed memory allocation in atmci_of_init()

2017-05-19 Thread Ulf Hansson
On 13 May 2017 at 15:17, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 13 May 2017 15:05:28 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Link: >

[PATCH] usb: chipidea: core: check before accessing ci_role in ci_role_show

2017-05-19 Thread Michael Thalmeier
ci_role BUGs when the role is >= CI_ROLE_END. This is the case while the role is changing. Signed-off-by: Michael Thalmeier --- drivers/usb/chipidea/core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index

Re: [PATCH v4 0/6] clk: sunxi-ng: Add support for A83T CCU

2017-05-19 Thread Maxime Ripard
Hi, On Fri, May 19, 2017 at 03:06:06PM +0800, Chen-Yu Tsai wrote: > Hi everyone, > > This is v4 of my A83T CCU series. This is for 4.13. Applied the patches 1-5. Can you resubmit patch 6 after 4.13-rc1 ? Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering

[PATCH BUGFIX] block, bfq: access and cache blkg data only when safe

2017-05-19 Thread Paolo Valente
Operations on blkg objects in blk-cgroup are protected with the request_queue lock, which is no more the lock that protects I/O-scheduler operations in blk-mq. The latter are now protected with finer-grained per-scheduler-instance locks. As a consequence, if blkg and blkg-related objects are

[PATCH] bus: omap-ocp2scp: Fix error handling in omap_ocp2scp_probe

2017-05-19 Thread Kishon Vijay Abraham I
The error handling code in omap_ocp2scp_probe fails to invoke pm_runtime_disable and fails to initialize return value in certain cases. Fix it here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/bus/omap-ocp2scp.c | 9 +++-- 1 file changed, 7 insertions(+), 2

[PATCH v2 05/10] clk: renesas: Add r8a7793 CPG Core Clock Definitions

2017-05-19 Thread Geert Uytterhoeven
Add all R-Car M2-N Clock Pulse Generator Core Clock Outputs, as listed in Table 7.2b ("List of Clocks [R-Car M2-W/M2-N]") of the R-Car Gen2 Hardware User's Manual rev. 2.00. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- v2: - Add Reviewed-by. ---

[PATCH v2 01/10] clk: renesas: cpg-mssr: Document R-Car Gen2 support

2017-05-19 Thread Geert Uytterhoeven
Document use of the Renesas Clock Pulse Generator / Module Standby and Software Reset DT Bindings for various member of the R-Car Gen2 family (H2, M2-W, V2H, M2-N, and E2). Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - Add Acked-by. ---

[PATCH v2 02/10] clk: renesas: Add r8a7790 CPG Core Clock Definitions

2017-05-19 Thread Geert Uytterhoeven
Add all R-Car H2 Clock Pulse Generator Core Clock Outputs, as listed in Table 7.2a ("List of Clocks [R-Car H2]") of the R-Car Gen2 Hardware User's Manual rev. 2.00. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- v2: - Add Reviewed-by. ---

[PATCH v2 07/10] clk: renesas: r8a7790: Add new CPG/MSSR driver

2017-05-19 Thread Geert Uytterhoeven
Add a new R-Car H2 Clock Pulse Generator / Module Standby and Software Reset driver, using the CPG/MSSR driver core. This will enable support for module resets, which are not supported by the existing driver. The old driver can still be used through a Kconfig option, to preserve backward

[PATCH v2 09/10] clk: renesas: r8a7792: Add new CPG/MSSR driver

2017-05-19 Thread Geert Uytterhoeven
Add a new R-Car V2H Clock Pulse Generator / Module Standby and Software Reset driver, using the CPG/MSSR driver core. This will enable support for module resets, which are not supported by the existing driver. The old driver can still be used through a Kconfig option, to preserve backward

[PATCH v2 10/10] clk: renesas: r8a7794: Add new CPG/MSSR driver

2017-05-19 Thread Geert Uytterhoeven
Add a new R-Car E2 Clock Pulse Generator / Module Standby and Software Reset driver, using the CPG/MSSR driver core. This will enable support for module resets, which are not supported by the existing driver. The old driver can still be used through a Kconfig option, to preserve backward

[PATCH v2 03/10] clk: renesas: Add r8a7791 CPG Core Clock Definitions

2017-05-19 Thread Geert Uytterhoeven
Add all R-Car M2-W Clock Pulse Generator Core Clock Outputs, as listed in Table 7.2b ("List of Clocks [R-Car M2-W/M2-N]") of the R-Car Gen2 Hardware User's Manual rev. 2.00. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- v2: - Add Reviewed-by. ---

[PATCH v2 08/10] clk: renesas: r8a7791/r8a7793: Add new CPG/MSSR driver

2017-05-19 Thread Geert Uytterhoeven
Add a new R-Car M2-W/N Clock Pulse Generator / Module Standby and Software Reset driver, using the CPG/MSSR driver core. This will enable support for module resets, which are not supported by the existing driver. The old driver can still be used through a Kconfig option, to preserve backward

[PATCH v2 04/10] clk: renesas: Add r8a7792 CPG Core Clock Definitions

2017-05-19 Thread Geert Uytterhoeven
Add all R-Car V2H Clock Pulse Generator Core Clock Outputs, as listed in Table 7.2c ("List of Clocks [R-Car V2H]") of the R-Car Gen2 Hardware User's Manual rev. 2.00. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- v2: - Add Reviewed-by. ---

[PATCH v2 06/10] clk: renesas: Add r8a7794 CPG Core Clock Definitions

2017-05-19 Thread Geert Uytterhoeven
Add all R-Car E2 Clock Pulse Generator Core Clock Outputs, as listed in Table 7.2d ("List of Clocks [R-Car E2]") of the R-Car Gen2 Hardware User's Manual rev. 2.00. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- v2: - Add Reviewed-by. ---

[PATCH v2 00/10] clk: renesas: rcar-gen2: Add new CPG/MSSR drivers

2017-05-19 Thread Geert Uytterhoeven
Hi all, Currently Renesas R-Car Gen2 SoCs use the common clk-rcar-gen2, clk-mstp, and clk-div6 drivers, which depend on most clocks being described in DT. Especially the module (MSTP) clocks are cumbersome and error prone, due to 3 arrays (clocks, clock-indices, and clock-output-names)

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-19 Thread Archit Taneja
On 05/18/2017 08:25 PM, Laurent Pinchart wrote: Hi Archit, On Thursday 18 May 2017 13:56:19 Archit Taneja wrote: On 05/17/2017 12:16 AM, Eric Anholt wrote: [snip] In terms of physical connections: [15-pin "DSI" connector on 2835] | I2C | DSI / \SPI

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-19 Thread Andre Przywara
Hi, On 19/05/17 09:29, Icenowy Zheng wrote: > > > 于 2017年5月19日 GMT+08:00 下午4:27:21, Andre Przywara 写到: >> Hi, >> >> On 18/05/17 08:16, Icenowy Zheng wrote: >>> Add support of AXP803 regulators in the Pine64 device tree, in order >> to >>> enable many future functionalities, e.g. Wi-Fi. >>> >>>

Re: [PATCH 08/30] isa.txt: standardize document format

2017-05-19 Thread Mauro Carvalho Chehab
Hi William, Em Thu, 18 May 2017 22:13:55 -0400 William Breathitt Gray escreveu: > On Thu, May 18, 2017 at 10:24:00PM -0300, Mauro Carvalho Chehab wrote: > >Each text file under Documentation follows a different > >format. Some doesn't even have titles! > > > >Change its representation to follow

Re: [PATCH 11/14] mm, memory_hotplug: do not associate hotadded memory to zones until online

2017-05-19 Thread Vlastimil Babka
On 05/15/2017 10:58 AM, Michal Hocko wrote: > From: Michal Hocko > > The current memory hotplug implementation relies on having all the > struct pages associate with a zone/node during the physical hotplug phase > (arch_add_memory->__add_pages->__add_section->__add_zone). In the vast > majority

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/18 17:46, Xishi Qiu wrote: > Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be > freed. > The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if > it > exists in mainline, any reply is welcome! > When we alloc anon_vma, we will init

Re: [linux-sunxi] [PATCH v6 8/9] arm64: allwinner: a64: enable AXP803 regulators for Pine64

2017-05-19 Thread Maxime Ripard
On Fri, May 19, 2017 at 04:29:01PM +0800, Icenowy Zheng wrote: > > > 于 2017年5月19日 GMT+08:00 下午4:27:21, Andre Przywara 写到: > >Hi, > > > >On 18/05/17 08:16, Icenowy Zheng wrote: > >> Add support of AXP803 regulators in the Pine64 device tree, in order > >to > >> enable many future

Re: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-19 Thread Gerd Hoffmann
Hi, > >We could also do it the other way around: Instead of having the kernel > >returning > > >the plane description userspace could pass it in, and the kernel throws > >-EINVAL in > > >case it doesn't match due to things having changed meanwhile. > > Or just return a dmabuf based on

spread MSI(-X) vectors to all possible CPUs V2

2017-05-19 Thread Christoph Hellwig
Hi all, this series changes our automatic MSI-X vector assignment so that it takes all present CPUs into account instead of all online ones. This allows to better deal with cpu hotplug events, which could happen frequently due to power management for example. Changes since V1: - rebase to

[PATCH 1/7] genirq: allow assigning affinity to present but not online CPUs

2017-05-19 Thread Christoph Hellwig
This will allow us to spread MSI/MSI-X affinity over all present CPUs and thus better deal with systems where cpus are take on and offline all the time. Signed-off-by: Christoph Hellwig --- kernel/irq/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 2/7] genirq/affinity: assign vectors to all present CPUs

2017-05-19 Thread Christoph Hellwig
Currently we only assign spread vectors to online CPUs, which ties the IRQ mapping to the currently online devices and doesn't deal nicely with the fact that CPUs could come and go rapidly due to e.g. power management. Instead assign vectors to all present CPUs to avoid this churn.

[PATCH 7/7] nvme: allocate queues for all possible CPUs

2017-05-19 Thread Christoph Hellwig
Unlike most drіvers that simply pass the maximum possible vectors to pci_alloc_irq_vectors NVMe needs to configure the device before allocting the vectors, so it needs a manual update for the new scheme of using all present CPUs. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 2

[PATCH 3/7] genirq/affinity: factor out a irq_affinity_set helper

2017-05-19 Thread Christoph Hellwig
Factor out code from the x86 cpu hot plug code to program the affinity for a vector for a hot plug / hot unplug event. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/irq.c | 23 ++- include/linux/interrupt.h | 1 + kernel/irq/affinity.c | 26

[PATCH 6/7] blk-mq: create hctx for each present CPU

2017-05-19 Thread Christoph Hellwig
Currently we only create hctx for online CPUs, which can lead to a lot of churn due to frequent soft offline / online operations. Instead allocate one for each present CPU to avoid this and dramatically simplify the code. Signed-off-by: Christoph Hellwig --- block/blk-mq.c | 120

[PATCH 4/7] genirq/affinity: update CPU affinity for CPU hotplug events

2017-05-19 Thread Christoph Hellwig
Remove a CPU from the affinity mask when it goes offline and add it back when it returns. In case the vetor was assigned only to the CPU going offline it will be shutdown and re-started when the CPU reappears. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/irq.c | 3 +-

[PATCH 5/7] blk-mq: include all present CPUs in the default queue mapping

2017-05-19 Thread Christoph Hellwig
This way we get a nice distribution independent of the current cpu online / offline state. Signed-off-by: Christoph Hellwig --- block/blk-mq-cpumap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/block/blk-mq-cpumap.c b/block/blk-mq-cpumap.c index

[PATCH 00/37] perf intel-pt: Power events and PTWRITE

2017-05-19 Thread Adrian Hunter
Hi Here are some patches to support Intel PT Power events and PTWRITE. Power events report changes to C-state but I have also added support for the existing CBR (core-to-bus ratio) packet and included that when outputting power events. The PTWRITE packet is associated with the new ptwrite

[PATCH 17/37] perf tools: Fix message because cpu list option is -C not -c

2017-05-19 Thread Adrian Hunter
Fix message because cpu list option is -C not -c Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 7dc1096264c5..d19c40a81040 100644 ---

[PATCH 23/37] perf auxtrace: Add itrace option to output power events

2017-05-19 Thread Adrian Hunter
Add itrace option to output power events. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/itrace.txt | 5 +++-- tools/perf/util/auxtrace.c | 4 tools/perf/util/auxtrace.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git

[PATCH 30/37] perf intel-pt: Factor out intel_pt_set_event_name()

2017-05-19 Thread Adrian Hunter
Factor out intel_pt_set_event_name() so it can be reused. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index

[PATCH 10/37] perf intel-pt: Clear FUP flag on error

2017-05-19 Thread Adrian Hunter
Sometimes a FUP packet is associated with a TSX transaction and a flag is set to indicate that. Ensure that flag is cleared on any error condition because at that point the decoder can no longer assume it is correct. Signed-off-by: Adrian Hunter ---

Re: [PATCH v2 00/10] clk: renesas: rcar-gen2: Add new CPG/MSSR drivers

2017-05-19 Thread Geert Uytterhoeven
On Fri, May 19, 2017 at 10:45 AM, Geert Uytterhoeven wrote: > Currently Renesas R-Car Gen2 SoCs use the common clk-rcar-gen2, > clk-mstp, and clk-div6 drivers, which depend on most clocks being > described in DT. Especially the module (MSTP) clocks are cumbersome and > error prone, due to 3

[PATCH 36/37] perf auxtrace: Add CPU filter support

2017-05-19 Thread Adrian Hunter
Decoding auxtrace data can take a long time. To avoid decoding unnecessarily, filter auxtrace data that is collected per-cpu before it is decoded. Signed-off-by: Adrian Hunter --- tools/perf/builtin-report.c | 1 + tools/perf/builtin-script.c | 1 + tools/perf/util/auxtrace.c | 10 ++

[PATCH 37/37] perf intel-pt: Improve sample timestamp

2017-05-19 Thread Adrian Hunter
The decoder uses its current timestamp in samples. Usually that is a timestamp that has already passed, but in some cases it is a timestamp for a branch that the decoder is walking towards, and consequently hasn't reached. Improve that situation by using the pkt_state to determine when to use the

[PATCH 33/37] perf intel-pt: Add example script for power events and PTWRITE

2017-05-19 Thread Adrian Hunter
Add script intel-pt-events.py that provides an example of how to unpack the raw data for power events and PTWRITE. Signed-off-by: Adrian Hunter --- .../perf/scripts/python/bin/intel-pt-events-record | 13 +++ .../perf/scripts/python/bin/intel-pt-events-report | 3 +

[PATCH 35/37] perf intel-pt: Do not use TSC packets for calculating CPU cycles to TSC

2017-05-19 Thread Adrian Hunter
CBR (core-to-bus ratio) packets provide an indication of CPU frequency. A more accurate measure can be made by counting the cycles (given by CYC packets) in between other timing packets (either MTC or TSC). Using TSC packets has at least 2 issues: 1) timing might have stopped (e.g. mwait) or 2)

[PATCH 31/37] perf intel-pt: Move code in intel_pt_synth_events() to simplify attr setting

2017-05-19 Thread Adrian Hunter
intel_pt_synth_events() uses the same attr structure to create each event. Move the code around a bit to simplify that. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 45 ++--- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git

[PATCH 34/37] perf intel-pt: Update documentation to include new ptwrite and power events

2017-05-19 Thread Adrian Hunter
Update documentation to include new ptwrite and power events. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/intel-pt.txt | 42 +-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/intel-pt.txt

[PATCH 32/37] perf intel-pt: Synthesize new power and ptwrite events

2017-05-19 Thread Adrian Hunter
Synthesize new power and ptwrite events. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 283 + 1 file changed, 283 insertions(+) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index ace79a405f98..754e92ee6c3e

[PATCH 29/37] perf intel-pt: Tidy messages into called function intel_pt_synth_event()

2017-05-19 Thread Adrian Hunter
Tidy print messages into called function intel_pt_synth_event(). Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 42 ++ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c

[PATCH 24/37] perf script: Add synthesized Intel PT power and ptwrite events

2017-05-19 Thread Adrian Hunter
Add definitions for synthesized Intel PT events for power and ptwrite. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c | 114 +++- tools/perf/util/event.h | 90 ++ 2 files changed, 203 insertions(+), 1

[PATCH 28/37] perf intel-pt: Tidy Intel PT evsel lookup into separate function

2017-05-19 Thread Adrian Hunter
Tidy the lookup of the Intel PT selected event (perf_evsel) into a separate function. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/intel-pt.c

Re: [PATCH 4/6] arch/sparc: Enable queued rwlocks for SPARC

2017-05-19 Thread Peter Zijlstra
On Thu, May 18, 2017 at 10:31:13PM -0400, David Miller wrote: > From: Babu Moger > Date: Thu, 18 May 2017 18:36:08 -0600 > > > @@ -82,6 +82,7 @@ config SPARC64 > > select HAVE_ARCH_AUDITSYSCALL > > select ARCH_SUPPORTS_ATOMIC_RMW > > select HAVE_NMI > > + select

[PATCH 27/37] perf intel-pt: Join needlessly wrapped lines

2017-05-19 Thread Adrian Hunter
Join needlessly wrapped lines. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index f8237a0e2946..b670502b0264 100644 --- a/tools/perf/util/intel-pt.c

[PATCH 26/37] perf intel-pt: Remove unused instructions_sample_period

2017-05-19 Thread Adrian Hunter
Remove unused struct intel_pt member instructions_sample_period. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index dbff5dca09f0..f8237a0e2946 100644 ---

[PATCH 25/37] perf intel-pt: Factor out common code synthesizing event samples

2017-05-19 Thread Adrian Hunter
Factor out common code in functions synthesizing event samples i.e. intel_pt_synth_branch_sample(), intel_pt_synth_instruction_sample() and intel_pt_synth_transaction_sample(). Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 222 - 1

[PATCH 22/37] perf auxtrace: Add itrace option to output ptwrite events

2017-05-19 Thread Adrian Hunter
Add itrace option to output ptwrite events. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/itrace.txt | 7 --- tools/perf/util/auxtrace.c | 4 tools/perf/util/auxtrace.h | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git

[PATCH 21/37] tools include: Add byte-swapping macros to kernel.h

2017-05-19 Thread Adrian Hunter
Add byte-swapping macros to kernel.h Signed-off-by: Adrian Hunter --- tools/include/linux/kernel.h | 35 +-- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h index

[PATCH 16/37] perf intel-pt: Fix transactions_sample_type

2017-05-19 Thread Adrian Hunter
'transactions_sample_type' is needed to correctly inject transactions samples but it was not being set. Set it from the event sample type. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/intel-pt.c

[PATCH 19/37] perf script: Add 'synth' event type for synthesized events

2017-05-19 Thread Adrian Hunter
Instruction trace decoders such as Intel PT may have additional information recorded in the trace. For example, Intel PT has power information and a there is a new instruction 'ptwrite' that can write a value into a PTWRITE trace packet. Such information may be associated with an IP and so can be

Re: [PATCH] mm/vmstat: add oom_kill counter

2017-05-19 Thread Vlastimil Babka
On 05/19/2017 08:59 AM, Konstantin Khlebnikov wrote: > Show count of global oom killer invocations in /proc/vmstat Maybe some more rationale why is that useful? Vlastimil > Signed-off-by: Konstantin Khlebnikov > --- > include/linux/vm_event_item.h |1 + > mm/oom_kill.c |

[PATCH 20/37] perf script: Add 'synth' field for synthesized event payloads

2017-05-19 Thread Adrian Hunter
Add a field to display the content the raw_data of a synthesized event. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/perf-script.txt | 6 +- tools/perf/builtin-script.c | 20 ++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git

[PATCH 14/37] perf intel-pt: Add decoder support for CBR events

2017-05-19 Thread Adrian Hunter
Add decoder support for informing the tools of changes to the core-to-bus ratio (CBR). Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 19 +++ tools/perf/util/intel-pt-decoder/intel-pt-decoder.h | 2 ++ 2 files changed, 21 insertions(+)

[PATCH 13/37] perf intel-pt: Move decoder error setting into one condition

2017-05-19 Thread Adrian Hunter
Move decoder error setting into one condition. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c

[PATCH 18/37] perf script: Fix message because field list option is -F not -f

2017-05-19 Thread Adrian Hunter
Fix message because field list option is -F not -f. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index d05aec491cff..79a101e0e13b 100644 ---

[PATCH 12/37] perf intel-pt: Add reserved byte to CBR packet payload

2017-05-19 Thread Adrian Hunter
Future proof CBR packet decoding by passing through also the undefined 'reserved' byte in the packet payload. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 2 +- tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c | 2 +- 2 files changed, 2

[PATCH 15/37] perf intel-pt: Remove redundant initial_skip checks

2017-05-19 Thread Adrian Hunter
'initial_skip' is checked inside the sample synthesis functions which means it is actually being done twice for 'instructions' and 'transactions' samples. Remove the redundant checks. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 8 ++-- 1 file changed, 2 insertions(+), 6

<    6   7   8   9   10   11   12   13   14   15   >