]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
8 years agoarm64: dts: qcom: apq8016-sbc: Add Volume Up key device node
Ivan T. Ivanov [Thu, 17 Sep 2015 12:05:42 +0000 (15:05 +0300)]
arm64: dts: qcom: apq8016-sbc: Add Volume Up key device node

VOL/ZOOM+ button on DB410c is connected to
SoC GPIO 104. Add support for it.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

8 years agoarm64: dts: Align msm8916 cpu thermal trip point ranges
Georgi Djakov [Tue, 24 Nov 2015 13:24:38 +0000 (15:24 +0200)]
arm64: dts: Align msm8916 cpu thermal trip point ranges

Use the same temperature ranges for both CPU thermal sensors
(tsen3 and tsen4). Start cpufreq cooling at 75 degrees and
initiate linux shutdown at 100 degrees.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: msm8916-mdss.dtsi: Add bus scaling properties for mdp
Archit Taneja [Thu, 10 Dec 2015 10:58:02 +0000 (16:28 +0530)]
arm64: msm8916-mdss.dtsi: Add bus scaling properties for mdp

Add bus scaling properties in the mdp DT node so that the mdp client is
registered by the msm bus scaling driver. Pick up the bus scaling vector
properties from the downstream kernel.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
8 years agoarm64: apq8016-sbc.dtsi: Add regulators needed by adv7533
Archit Taneja [Thu, 10 Dec 2015 06:09:55 +0000 (11:39 +0530)]
arm64: apq8016-sbc.dtsi: Add regulators needed by adv7533

The adv7533 requires two supplies AVDD and V3P3 fed to it. These
are provided by L6 and L17 voltage regulators. Assing these to
the adv7533 node in DT.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
8 years agodts: arm64: qcom: apq8016-sbc: enable vidc and vidc-rproc
Stanimir Varbanov [Mon, 9 Nov 2015 09:12:27 +0000 (11:12 +0200)]
dts: arm64: qcom: apq8016-sbc: enable vidc and vidc-rproc

mark vidc and rproc-vidc dt nodes with status OK

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
8 years agodts: arm64: msm8916: add vidc dt nodes
Stanimir Varbanov [Mon, 7 Dec 2015 10:44:58 +0000 (12:44 +0200)]
dts: arm64: msm8916: add vidc dt nodes

and correct iommu ctx names

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agoarm64: dts: Add rpm_log support
Andy Gross [Tue, 3 Nov 2015 21:04:32 +0000 (15:04 -0600)]
arm64: dts: Add rpm_log support

Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoarm64: dts: usb: Add bus scaling suppport
Rajendra Nayak [Tue, 13 Oct 2015 12:08:52 +0000 (17:38 +0530)]
arm64: dts: usb: Add bus scaling suppport

Add msm bus scaling support and hack to request
max bandwith at probe

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
8 years agoarm64: dt: Add msm bus nodes
Andy Gross [Tue, 13 Oct 2015 04:00:42 +0000 (23:00 -0500)]
arm64: dt: Add msm bus nodes

Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoWIP:dts: arm64: add q6v5 pil support
Srinivas Kandagatla [Tue, 24 Nov 2015 16:56:56 +0000 (16:56 +0000)]
WIP:dts: arm64: add q6v5 pil support

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agowcn36xx: Update DT to support wcn36xx wifi driver
Yin, Fengwei [Fri, 23 Oct 2015 08:06:34 +0000 (16:06 +0800)]
wcn36xx: Update DT to support wcn36xx wifi driver

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
8 years agoarm64: dts: remove the #if 0 around bluetooth
Srinivas Kandagatla [Tue, 17 Nov 2015 16:38:25 +0000 (16:38 +0000)]
arm64: dts: remove the #if 0 around bluetooth

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
8 years agoarm64: dts: Fix the hypervisor and tz memory region size
Georgi Djakov [Thu, 24 Sep 2015 18:29:08 +0000 (21:29 +0300)]
arm64: dts: Fix the hypervisor and tz memory region size

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agodts: qcom: Add CoreSight components for MSM8916
Ivan T. Ivanov [Fri, 11 Sep 2015 11:48:23 +0000 (14:48 +0300)]
dts: qcom: Add CoreSight components for MSM8916

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agoarm64: dts: qcom: Add msm8916 CoreSight components
Ivan T. Ivanov [Wed, 29 Apr 2015 07:53:41 +0000 (10:53 +0300)]
arm64: dts: qcom: Add msm8916 CoreSight components

Add initial set of CoreSight components found on Qualcomm's 8x16 chipset.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: qcom: 8x16: Add fixed rate on-board XO oscillator
Georgi Djakov [Thu, 8 Oct 2015 08:51:09 +0000 (11:51 +0300)]
arm64: dts: qcom: 8x16: Add fixed rate on-board XO oscillator

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: add support to analog audio playback
Srinivas Kandagatla [Wed, 14 Oct 2015 10:40:02 +0000 (11:40 +0100)]
arm64: dts: add support to analog audio playback

This patch adds support to analog audio playback.
Only tested with headphones.
TODO: more testing on earphones and speakers.

to play analog audio on headpones:
amixer cset numid=18,iface=MIXER,name='RX1 MIX1 INP1' 'RX1'
amixer cset numid=21,iface=MIXER,name='RX2 MIX1 INP1' 'RX2'
amixer cset numid=5,iface=MIXER,name='RX1 Digital Volume' 60
amixer cset numid=6,iface=MIXER,name='RX2 Digital Volume' 60
amixer cset numid=25,iface=MIXER,name='RDAC2 MUX' 'RX2'
aplay -D hw:0,0 /usr/share/sounds/alsa/*

To play audio on HDMI:
aplay -D hw:0,1 /usr/share/sounds/alsa/*

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
8 years agoarm64: dts: msm8916: add wcd codec support
Srinivas Kandagatla [Wed, 14 Oct 2015 10:32:30 +0000 (11:32 +0100)]
arm64: dts: msm8916: add wcd codec support

This patch adds wcd codec support in the soc layer.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
8 years agoarm64: dts: Fix memory region descriptions
Georgi Djakov [Thu, 24 Sep 2015 17:49:03 +0000 (20:49 +0300)]
arm64: dts: Fix memory region descriptions

Update the reserved memory region descriptions.
0x86400000 - hypervisor memory
0x86800000 - adsp memory

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoARM64: dts: Fix the missing usb otg regulators.
Srinivas Kandagatla [Thu, 24 Sep 2015 17:16:16 +0000 (18:16 +0100)]
ARM64: dts: Fix the missing usb otg regulators.

This patch fixes up the usb otg node with correct regulators.
Without this patch the otg on the DB410c is not functional.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
8 years agodts: arm64: apq8016-sbc: enable LS 1.8v regulator by default
Srinivas Kandagatla [Fri, 22 May 2015 07:24:56 +0000 (08:24 +0100)]
dts: arm64: apq8016-sbc: enable LS 1.8v regulator by default

This patch is a temporary fix to enable 1.8v on Low speed expansion on
DB410c board.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
8 years agoarm64: dt: Add WCNSS related nodes
Andy Gross [Tue, 14 Jul 2015 03:47:03 +0000 (22:47 -0500)]
arm64: dt: Add WCNSS related nodes

This patch addes DT nodes for reservered memory, smp2p, wcnss/pronto

Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoDT: arm64: add iommu dtsi files
Stanimir Varbanov [Tue, 28 Apr 2015 11:07:43 +0000 (14:07 +0300)]
DT: arm64: add iommu dtsi files

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agoWIP: dt: add support for gpu on msm8916/apq8016
Rob Clark [Wed, 6 May 2015 17:16:10 +0000 (13:16 -0400)]
WIP: dt: add support for gpu on msm8916/apq8016

8 years agoarm64: dts: msm8916: Add cpu cooling maps
Rajendra Nayak [Tue, 2 Jun 2015 05:30:15 +0000 (11:00 +0530)]
arm64: dts: msm8916: Add cpu cooling maps

Add cpu cooling maps for cpu passive trip points. The cpu cooling
device states are mapped to cpufreq based scaling frequencies.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
8 years agoarm64: dts: Add spmi-regulator nodes for pm8916
Georgi Djakov [Thu, 16 Jul 2015 08:52:38 +0000 (11:52 +0300)]
arm64: dts: Add spmi-regulator nodes for pm8916

Add the necessary nodes for the pm8916 PMIC regulators.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: msm8916: Add thermal zones, tsens and eeprom nodes
Rajendra Nayak [Wed, 8 Jul 2015 09:47:18 +0000 (15:17 +0530)]
arm64: dts: msm8916: Add thermal zones, tsens and eeprom nodes

Add thermal zones, tsens and eeprom nodes

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
8 years agoarm: dts: apq8084: Add thermal zones, tsens and eeprom nodes
Rajendra Nayak [Wed, 8 Jul 2015 09:47:17 +0000 (15:17 +0530)]
arm: dts: apq8084: Add thermal zones, tsens and eeprom nodes

Add thermal zones, tsens and eeprom nodes

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
8 years agoarm: dts: msm8974: Add thermal zones, tsens and eeprom nodes
Rajendra Nayak [Wed, 8 Jul 2015 09:47:15 +0000 (15:17 +0530)]
arm: dts: msm8974: Add thermal zones, tsens and eeprom nodes

Add thermal zones, tsens and eeprom nodes

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
8 years agoarm64: dts: Add cpu-supply properties for cpufreq
Georgi Djakov [Mon, 1 Jun 2015 09:51:33 +0000 (12:51 +0300)]
arm64: dts: Add cpu-supply properties for cpufreq

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: Add CPR DT node for msm8916
Stephen Boyd [Thu, 2 Apr 2015 06:07:52 +0000 (23:07 -0700)]
arm64: dts: Add CPR DT node for msm8916

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: Add clock-latency for msm8916
Georgi Djakov [Tue, 9 Jun 2015 09:13:39 +0000 (12:13 +0300)]
arm64: dts: Add clock-latency for msm8916

Add clock-latency property for msm8916, so that we can use
ondemand governor.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: Add cpufreq-dt support for msm8916
Georgi Djakov [Wed, 20 May 2015 14:32:45 +0000 (17:32 +0300)]
arm64: dts: Add cpufreq-dt support for msm8916

Add a reference to the cpu frequency scaling clock.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: qcom: msm8916: Add A53 DT node
Georgi Djakov [Wed, 22 Apr 2015 13:56:21 +0000 (16:56 +0300)]
arm64: dts: qcom: msm8916: Add A53 DT node

Add node for the A53 clocks, so that the driver can probe
and register the CPU clocks.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: qcom: msm8916: Add RPMCC DT node
Georgi Djakov [Wed, 22 Apr 2015 12:22:12 +0000 (15:22 +0300)]
arm64: dts: qcom: msm8916: Add RPMCC DT node

Add the RPM Clock Controller DT node and include the necessary header
file for clocks.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: qcom: Enable USB manual pullup on msm8916
Ivan T. Ivanov [Tue, 7 Jul 2015 13:38:06 +0000 (16:38 +0300)]
arm64: dts: qcom: Enable USB manual pullup on msm8916

On msm8916 based chipset vbus is not routed to USB controller/phy
and controller driver therefore enables pull-up explicitly
before starting controller using usbcmd run/stop bit.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: Fix MPP's function used for LED control
Ivan T. Ivanov [Tue, 7 Jul 2015 11:14:39 +0000 (14:14 +0300)]
arm64: dts: qcom: Fix MPP's function used for LED control

The qcom-spmi-mpp driver is now using string "digital" to denote
old "normal" functionality. Update DTS file.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: apq8016-sbc: Enable SD card slot
Ivan T. Ivanov [Mon, 8 Jun 2015 09:57:01 +0000 (12:57 +0300)]
arm64: dts: qcom: apq8016-sbc: Enable SD card slot

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: apq8016-sbc: Fix sdhci pinctrl default state name
Ivan T. Ivanov [Fri, 5 Jun 2015 12:38:47 +0000 (15:38 +0300)]
arm64: dts: qcom: apq8016-sbc: Fix sdhci pinctrl default state name

Pinctrl framework is using "default" string to find and activate
device pin configuration before driver probe method. s/active/default.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: apq8016-sbc: add D+/D- route switch GPIO
Ivan T. Ivanov [Fri, 29 May 2015 12:47:21 +0000 (15:47 +0300)]
arm64: dts: qcom: apq8016-sbc: add D+/D- route switch GPIO

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: Fix apq8016-sbc board USB related pin definitions
Ivan T. Ivanov [Thu, 21 May 2015 06:44:48 +0000 (09:44 +0300)]
arm64: dts: qcom: Fix apq8016-sbc board USB related pin definitions

USB2513B HUB reset line is connected to PMIC GPIO 3 not to GPIO 1.
TC7USB40MU Dual SPDT Switch select input line is connected to PMIC
GPIO 4 not to GPIO 2. Fix this. Remove unused LED nodes.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: apq8016-sbc: Don't hog client driver pins
Ivan T. Ivanov [Fri, 8 May 2015 09:26:19 +0000 (12:26 +0300)]
arm64: dts: qcom: apq8016-sbc: Don't hog client driver pins

Hogging pins from pinctrl driver prevents client drivers
to probe.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: Add apq8016-sbc hdmi audio support
Srinivas Kandagatla [Wed, 6 May 2015 08:57:34 +0000 (09:57 +0100)]
arm64: dts: Add apq8016-sbc hdmi audio support

This patch adds hdmi audio support to apq8016-sbc board.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agoarm64: sb8016: Add ADV7533 bridge in sbc8016 dtsi
Archit Taneja [Thu, 16 Apr 2015 10:23:07 +0000 (15:53 +0530)]
arm64: sb8016: Add ADV7533 bridge in sbc8016 dtsi

- Add adv7533 bridge child to mdss_dsi
- Add pinmux configs required gpios connected to ADV7533

Signed-off-by: Archit Taneja <architt@codeaurora.org>
8 years agoarm64: msm8916 dtsi: Add mdss support
Archit Taneja [Thu, 16 Apr 2015 10:20:34 +0000 (15:50 +0530)]
arm64: msm8916 dtsi: Add mdss support

Add a DT node for mdss mdp and mdss_dsi and dsi phy. A new dtsi file is created
for this.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agoARM: dts: Enable SD card (disable vmcc)
Georgi Djakov [Thu, 26 Mar 2015 15:41:01 +0000 (17:41 +0200)]
ARM: dts: Enable SD card (disable vmcc)

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
8 years agoarm64: dts: Add nodes we need for SMP boot
Kumar Gala [Fri, 27 Feb 2015 22:11:57 +0000 (16:11 -0600)]
arm64: dts: Add nodes we need for SMP boot

Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

8 years agoarm64: dts: qcom: Add sdhci support for APQ8016 SBC board
Ivan T. Ivanov [Tue, 7 Apr 2015 11:47:01 +0000 (12:47 +0100)]
arm64: dts: qcom: Add sdhci support for APQ8016 SBC board

Currently it have the same functionality as MTP board.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: Add USB related device nodes on APQ8016 SBC board
Ivan T. Ivanov [Fri, 3 Apr 2015 12:31:34 +0000 (15:31 +0300)]
arm64: dts: qcom: Add USB related device nodes on APQ8016 SBC board

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
8 years agoarm64: dts: qcom: Add APQ8016 SBC support
Andy Gross [Tue, 31 Mar 2015 19:26:15 +0000 (14:26 -0500)]
arm64: dts: qcom: Add APQ8016 SBC support

This patch set adds support for the APQ8016 SBC.

Signed-off-by: Andy Gross <agross@codeaurora.org>
[Srinivas Kandagatla]: rebased on top of kumars original patch
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
8 years agoDT: arm64: msm8916-mtp: enable spi3
Stanimir Varbanov [Tue, 17 Mar 2015 16:25:32 +0000 (18:25 +0200)]
DT: arm64: msm8916-mtp: enable spi3

This enable spi3 on msm8916 mtp board

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
8 years agoarm64: dts: Add Qualcomm MSM8916 & MTP8916 ids
Kumar Gala [Wed, 11 Mar 2015 20:51:20 +0000 (15:51 -0500)]
arm64: dts: Add Qualcomm MSM8916 & MTP8916 ids

Add qcom,msm-id and qcom,board-id to allow bootloader to identify which
device tree to boot on the MTP8916 boards.

Signed-off-by: Kumar Gala <galak@codeaurora.org>
8 years agodevicetree: bindings: Document qcom,msm-id and qcom,board-id
Kumar Gala [Wed, 11 Mar 2015 20:51:19 +0000 (15:51 -0500)]
devicetree: bindings: Document qcom,msm-id and qcom,board-id

The top level qcom,msm-id and qcom,board-id are utilized by bootloaders
on Qualcomm MSM platforms to determine which device tree should be
utilized and passed to the kernel.

Cc: <devicetree@vger.kernel.org>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
8 years agoarm64: dts: apq8016-sbc: add label properties for UART, I2C, and SPI
Rob Herring [Thu, 10 Dec 2015 21:21:12 +0000 (15:21 -0600)]
arm64: dts: apq8016-sbc: add label properties for UART, I2C, and SPI

Add label properties to provide a way to identify UART, I2C and SPI
ports based on their connector names. This follows naming convention in
96boards CE spec. Ports without external connections are not labelled.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Andy Gross <agross@codeaurora.org>
Acked-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoarm64: dts: apq8016-sbc: enable UART0 on LS connector
Rob Herring [Thu, 10 Dec 2015 21:21:11 +0000 (15:21 -0600)]
arm64: dts: apq8016-sbc: enable UART0 on LS connector

The LS UART0 is not used by anything else and should be enabled for
expansion boards.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Andy Gross <agross@codeaurora.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoarm64: dts: qcom: Add pm8994 gpios and MPPs
Stephen Boyd [Wed, 18 Nov 2015 01:12:29 +0000 (17:12 -0800)]
arm64: dts: qcom: Add pm8994 gpios and MPPs

Add the gpio and MPP devices to the pm8994 pmic dts.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
8 years agoarm64: dts: qcom: Add pm8994, pmi8994, pm8004 PMIC skeletons
Stephen Boyd [Wed, 18 Nov 2015 01:12:28 +0000 (17:12 -0800)]
arm64: dts: qcom: Add pm8994, pmi8994, pm8004 PMIC skeletons

Add the skeleton nodes for the PMICs found on msm8996-mtp
devices.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
8 years agoarm64: dts: Add PM8916 support on MSM8916
Andy Gross [Thu, 24 Sep 2015 19:18:54 +0000 (14:18 -0500)]
arm64: dts: Add PM8916 support on MSM8916

This patch adds the PM8916 regulator nodes found on MSM8916 platforms.

Signed-off-by: Andy Gross <agross@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
8 years agoarm64: dts: qcom: Add RPM/SMD support on MSM8916
Andy Gross [Thu, 24 Sep 2015 19:18:53 +0000 (14:18 -0500)]
arm64: dts: qcom: Add RPM/SMD support on MSM8916

Add support for the SMD and RPM devices found on MSM8916 platforms.

Signed-off-by: Andy Gross <agross@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
8 years agoarm64: dts: qcom: Add MSM8916 SMEM nodes
Andy Gross [Thu, 24 Sep 2015 19:18:52 +0000 (14:18 -0500)]
arm64: dts: qcom: Add MSM8916 SMEM nodes

This patch adds the nodes necessary to support the SMEM driver on MSM8916
platforms.

Signed-off-by: Andy Gross <agross@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
8 years agoarm64: dts: set the default i2c pin drive strength to 16mA
Srinivas Kandagatla [Fri, 11 Dec 2015 18:13:12 +0000 (18:13 +0000)]
arm64: dts: set the default i2c pin drive strength to 16mA

2mA drive strength is not enough when we connect multiple i2c devices
on the bus with different pull up resistors.

This issue was detected when multiple i2c devices connected on the other side
of level shifters on Linaro sensor board. Maxing up to 16mA made i2c much stable.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
8 years agoarm64: dts: fix the i2c aliasing to match to schematics.
Srinivas Kandagatla [Fri, 11 Dec 2015 18:12:50 +0000 (18:12 +0000)]
arm64: dts: fix the i2c aliasing to match to schematics.

This patch fixes the i2c bus number aliasing so that it matches with the
schematics bus naming.

Without this patch the user might would get bus numbers depending on
the order the devices are probed.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
8 years agoarm64: dts: qcom: msm8916: Add fixed rate on-board oscillators
Georgi Djakov [Thu, 3 Dec 2015 14:02:52 +0000 (16:02 +0200)]
arm64: dts: qcom: msm8916: Add fixed rate on-board oscillators

Currently the rates of the xo and sleep clocks are hard-coded in the
GCC driver, but this is a board layout description that actually should
be in the DT. Moving them into DT also allows us to insert the RPM
controlled clocks between the DT and GCC clocks.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoarm64: dts: qcom: Alias pm8916 on msm8916 devices
Stephen Boyd [Fri, 20 Nov 2015 23:31:19 +0000 (15:31 -0800)]
arm64: dts: qcom: Alias pm8916 on msm8916 devices

Add an alias for pm8916 on msm8916 based SoCs so that the newly
updated dtbTool can find the pmic compatible string and add the
pmic-id element to the QCDT header.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoarm64: dts: qcom: Make msm8916-mtp compatible string compliant
Stephen Boyd [Fri, 20 Nov 2015 23:31:17 +0000 (15:31 -0800)]
arm64: dts: qcom: Make msm8916-mtp compatible string compliant

This compatible string isn't compliant with the format for
subtypes. Replace it with a compliant compatible type.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoarm64: dts: qcom: 8x16: UART1 and UART2 use DMA for RX and TX
Ivan T. Ivanov [Fri, 18 Sep 2015 13:18:54 +0000 (16:18 +0300)]
arm64: dts: qcom: 8x16: UART1 and UART2 use DMA for RX and TX

Add DMA channels definitions for UART1 and UART2 controllers.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoarm64: dts: qcom: 8x16: UART1 add CTS_N, RTS_N pin configurations
Ivan T. Ivanov [Fri, 18 Sep 2015 13:18:53 +0000 (16:18 +0300)]
arm64: dts: qcom: 8x16: UART1 add CTS_N, RTS_N pin configurations

Add devicetree bindings for UART1 CTS_N and RTS_N pins.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
8 years agoLinux 4.4 v4.4
Linus Torvalds [Sun, 10 Jan 2016 23:01:32 +0000 (15:01 -0800)]
Linux 4.4

8 years agoMerge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Linus Torvalds [Sat, 9 Jan 2016 22:53:48 +0000 (14:53 -0800)]
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fix from James Bottomley:
 "A single fix for machines with pages > 4k (PPC mostly).

  There's a bug in our optimal transfer size code where we don't account
  for pages > 4k and can set the transfer size to be less than the page
  size causing nasty failures"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  sd: Reject optimal transfer length smaller than page size

8 years agoMerge tag 'pci-v4.4-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Linus Torvalds [Sat, 9 Jan 2016 22:44:44 +0000 (14:44 -0800)]
Merge tag 'pci-v4.4-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci

Pull PCI fixlet from Bjorn Helgaas:
 "This marks the TI DRA7xx host bridge driver as broken.  Apparently it
  has never worked without some additional out-of-tree code, so I'm
  going to mark it broken now and remove it completely next cycle unless
  it's fixed"

* tag 'pci-v4.4-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
  PCI: dra7xx: Mark driver as broken

8 years agovmstat: allocate vmstat_wq before it is used
Michal Hocko [Fri, 8 Jan 2016 10:18:29 +0000 (11:18 +0100)]
vmstat: allocate vmstat_wq before it is used

kernel test robot has reported the following crash:

  BUG: unable to handle kernel NULL pointer dereference at 00000100
  IP: [<c1074df6>] __queue_work+0x26/0x390
  *pdpt = 0000000000000000 *pde = f000ff53f000ff53 *pde = f000ff53f000ff53
  Oops: 0000 [#1] PREEMPT PREEMPT SMP SMP
  CPU: 0 PID: 24 Comm: kworker/0:1 Not tainted 4.4.0-rc4-00139-g373ccbe #1
  Workqueue: events vmstat_shepherd
  task: cb684600 ti: cb7ba000 task.ti: cb7ba000
  EIP: 0060:[<c1074df6>] EFLAGS: 00010046 CPU: 0
  EIP is at __queue_work+0x26/0x390
  EAX: 00000046 EBX: cbb37800 ECX: cbb37800 EDX: 00000000
  ESI: 00000000 EDI: 00000000 EBP: cb7bbe68 ESP: cb7bbe38
   DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
  CR0: 8005003b CR2: 00000100 CR3: 01fd5000 CR4: 000006b0
  Stack:
  Call Trace:
    __queue_delayed_work+0xa1/0x160
    queue_delayed_work_on+0x36/0x60
    vmstat_shepherd+0xad/0xf0
    process_one_work+0x1aa/0x4c0
    worker_thread+0x41/0x440
    kthread+0xb0/0xd0
    ret_from_kernel_thread+0x21/0x40

The reason is that start_shepherd_timer schedules the shepherd work item
which uses vmstat_wq (vmstat_shepherd) before setup_vmstat allocates
that workqueue so if the further initialization takes more than HZ we
might end up scheduling on a NULL vmstat_wq.  This is really unlikely
but not impossible.

Fixes: 373ccbe59270 ("mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress")
Reported-by: kernel test robot <ying.huang@linux.intel.com>
Signed-off-by: Michal Hocko <mhocko@suse.com>
Tested-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: stable@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
8 years agoMerge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
Linus Torvalds [Sat, 9 Jan 2016 00:11:05 +0000 (16:11 -0800)]
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc

Pull ARM SoC fixes from Arnd Bergmann:
 "This is the final small set of ARM SoC bug fixes for linux-4.4, almost
  all regressions:

  OMAP:
   - data corruption on the Nokia N900 flash

  Allwinner:
   - Two defconfig change to get USB working again

  ARM Versatile:
   - Interrupt numbers gone bad after an older bug fix

  Nomadik:
   - Crashes from incorrect L2 cache settings

  VIA vt8500:
   - SD/MMC support on WM8650 never worked"

* tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  dts: vt8500: Add SDHC node to DTS file for WM8650
  ARM: Fix broken USB support in multi_v7_defconfig for sunxi devices
  ARM: versatile: fix MMC/SD interrupt assignment
  ARM: nomadik: set latencies to 8 cycles
  ARM: OMAP2+: Fix onenand rate detection to avoid filesystem corruption
  ARM: Fix broken USB support in sunxi_defconfig

8 years agoMerge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Linus Torvalds [Fri, 8 Jan 2016 23:58:14 +0000 (15:58 -0800)]
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull KVM fix from Paolo Bonzini:
 "A simple fix.  I'm sending it before the merge window, because it
  refines a patch found in your master branch but not yet in the
  kvm/next branch that is destined for 4.5"

* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
  kvm: x86: only channel 0 of the i8254 is linked to the HPET

8 years agoMerge tag 'pm+acpi-4.4-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
Linus Torvalds [Fri, 8 Jan 2016 23:50:59 +0000 (15:50 -0800)]
Merge tag 'pm+acpi-4.4-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull ACPI fix from Rafael Wysocki:
 "Just one obvious fix that adds a missing function argument in ACPI
  code introduced recently (Kees Cook)"

* tag 'pm+acpi-4.4-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  ACPI / property: avoid leaking format string into kobject name

8 years agoMerge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 8 Jan 2016 23:21:48 +0000 (15:21 -0800)]
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Ingo Molnar:
 "A handful of x86 fixes:

   - a syscall ABI fix, fixing an Android breakage
   - a Xen PV guest fix relating to the RTC device, causing a
     non-working console
   - a Xen guest syscall stack frame fix
   - an MCE hotplug CPU crash fix"

* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/numachip: Fix NumaConnect2 MMCFG PCI access
  x86/entry: Restore traditional SYSENTER calling convention
  x86/entry: Fix some comments
  x86/paravirt: Prevent rtc_cmos platform device init on PV guests
  x86/xen: Avoid fast syscall path for Xen PV guests
  x86/mce: Ensure offline CPUs don't participate in rendezvous process

8 years agoMerge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 8 Jan 2016 21:57:13 +0000 (13:57 -0800)]
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fixes from Ingo Molnar:
 "Misc scheduler fixes"

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/core: Reset task's lockless wake-queues on fork()
  sched/core: Fix unserialized r-m-w scribbling stuff
  sched/core: Check tgid in is_global_init()
  sched/fair: Fix multiplication overflow on 32-bit systems

8 years agoMerge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 8 Jan 2016 21:52:59 +0000 (13:52 -0800)]
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf fixes from Ingo Molnar:
 "Two core subsystem fixes, plus a handful of tooling fixes"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  perf: Fix race in swevent hash
  perf: Fix race in perf_event_exec()
  perf list: Robustify event printing routine
  perf list: Add support for PERF_COUNT_SW_BPF_OUT
  perf hists browser: Fix segfault if use symbol filter in cmdline
  perf hists browser: Reset selection when refresh
  perf hists browser: Add NULL pointer check to prevent crash
  perf buildid-list: Fix return value of perf buildid-list -k
  perf buildid-list: Show running kernel build id fix

8 years agoMerge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 8 Jan 2016 21:46:59 +0000 (13:46 -0800)]
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull irq fix from Ingo Molnar:
 "Fixes a core IRQ subsystem deadlock"

* 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  genirq: Prevent chip buslock deadlock

8 years agoMerge branch 'for-linus' of git://git.kernel.dk/linux-block
Linus Torvalds [Fri, 8 Jan 2016 21:39:09 +0000 (13:39 -0800)]
Merge branch 'for-linus' of git://git.kernel.dk/linux-block

Pull block revert from Jens Axboe:
 "The previous pull request had a split fix for NVMe, however there are
  corner cases where that ends up blowing up.

  So let's revert it for 4.4.  The regression isn't introduced in this
  cycle, and it's "just" a performance regression, not a
  stability/integrity issue"

* 'for-linus' of git://git.kernel.dk/linux-block:
  Revert "block: Split bios on chunk boundaries"

8 years agoMerge tag 'dmaengine-fix-4.4' of git://git.infradead.org/users/vkoul/slave-dma
Linus Torvalds [Fri, 8 Jan 2016 20:23:00 +0000 (12:23 -0800)]
Merge tag 'dmaengine-fix-4.4' of git://git.infradead.org/users/vkoul/slave-dma

Pull dmaengine fixes from Vinod Koul:
 "Late fixes for 4.4 are three fixes for drivers which include a revert
  of mic-x100 fix which is causing regression, xgene fix for double IRQ
  and async_tx fix to use GFP_NOWAIT"

* tag 'dmaengine-fix-4.4' of git://git.infradead.org/users/vkoul/slave-dma:
  dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag
  async_tx: use GFP_NOWAIT rather than GFP_IO
  dmaengine: Revert "dmaengine: mic_x100: add missing spin_unlock"

8 years agoMerge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvar...
Linus Torvalds [Fri, 8 Jan 2016 20:18:45 +0000 (12:18 -0800)]
Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging

Pull dmi fix from Jean Delvare.

* 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
  firmware: dmi_scan: Fix UUID endianness for SMBIOS >= 2.6

8 years agoMerge tag 'sound-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Linus Torvalds [Fri, 8 Jan 2016 19:52:18 +0000 (11:52 -0800)]
Merge tag 'sound-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
 "A slightly higher volume than a new year's wish, but not too
  worrisome: a large LOC is only for HD-audio device-specific quirks, so
  fairly safe to apply.  The rest ASoC fixes are all trivial and small;
  a simple replacement of mutex call with nested lock version, a few
  Arizona and Realtek codec fixes, and a regression fix for Skylake
  firmware handling"

* tag 'sound-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
  ASoC: Intel: Skylake: Fix the memory leak
  ASoC: Intel: Skylake: Revert previous broken fix memory leak fix
  ASoC: Use nested lock for snd_soc_dapm_mutex_lock
  ASoC: rt5645: add sys clk detection
  ALSA: hda - Add keycode map for alc input device
  ALSA: hda - Add mic mute hotkey quirk for Lenovo ThinkCentre AIO
  ASoC: arizona: Fix bclk for sample rates that are multiple of 4kHz

8 years agoMerge tag 'omap-for-v4.4/onenand-corruption' of git://git.kernel.org/pub/scm/linux...
Arnd Bergmann [Fri, 8 Jan 2016 16:46:45 +0000 (17:46 +0100)]
Merge tag 'omap-for-v4.4/onenand-corruption' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes

Pull "urgent onenand file system corruption fix for n900" from Tony Lindgren:

Last minute urgent pull request to prevent file system corruption
on Nokia N900.

Looks like we have a GPMC bus timing bug that has gone unnoticed
because of bootloader configured registers until few days ago. We
are not detecting the onenand clock rate properly unless we have
CONFIG_OMAP_GPMC_DEBUG set and this causes onenand corruption
that can be easily be reproduced.

There seems to be also an additional bug still lurking around for
onenand corruption. But that is still being investigated and
it does not seem to be GPMC timings related.

Meanwhile, it would be good to get this fix into v4.4 to prevent
wrong timings from corrupting onenand.

* tag 'omap-for-v4.4/onenand-corruption' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: OMAP2+: Fix onenand rate detection to avoid filesystem corruption

8 years agoRevert "block: Split bios on chunk boundaries"
Jens Axboe [Fri, 8 Jan 2016 16:00:29 +0000 (09:00 -0700)]
Revert "block: Split bios on chunk boundaries"

This reverts commit d3805611130af9b911e908af9f67a3f64f4f0914.

If we end up splitting on the first segment, we don't adjust
the sector count. That results in hitting a BUG() with attempting
to split 0 sectors.

As this is just a performance issue and not a regression since
4.3 release, let's just rever this change. That gives us more
time to test a real fix for 4.5, which would be marked for
stable anyway.

8 years agoPCI: dra7xx: Mark driver as broken
Richard Cochran [Fri, 8 Jan 2016 15:58:31 +0000 (09:58 -0600)]
PCI: dra7xx: Mark driver as broken

Mark the dra7xx PCI host driver as broken.  This driver was first merged in
v3.17 and has never worked.  Although the driver compiles just fine, it is
missing an essential device reset.  If the driver is included, the kernel
locks up hard shortly after booting, before any console output appears.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
8 years agofirmware: dmi_scan: Fix UUID endianness for SMBIOS >= 2.6
Andrea Arcangeli [Fri, 8 Jan 2016 08:00:54 +0000 (09:00 +0100)]
firmware: dmi_scan: Fix UUID endianness for SMBIOS >= 2.6

The dmi_ver wasn't updated correctly before the dmi_decode method run
to save the uuid.

That resulted in "dmidecode -s system-uuid" and
/sys/class/dmi/id/product_uuid disagreeing. The latter was buggy and
this fixes it.

Reported-by: Federico Simoncelli <fsimonce@redhat.com>
Fixes: 9f9c9cbb6057 ("drivers/firmware/dmi_scan.c: fetch dmi version from SMBIOS if it exists")
Fixes: 79bae42d51a5 ("dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present()")
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
8 years agoACPI / property: avoid leaking format string into kobject name
Kees Cook [Thu, 7 Jan 2016 19:24:29 +0000 (11:24 -0800)]
ACPI / property: avoid leaking format string into kobject name

The dn->name is expected to be used as a literal, so add the missing
"%s".

Fixes: 263b4c1a64bc (ACPI / property: Expose data-only subnodes via sysfs)
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
8 years agoMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
Linus Torvalds [Thu, 7 Jan 2016 21:06:35 +0000 (13:06 -0800)]
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

Pull drm nouveau fix from Dave Airlie:
 "Still not back to work, but I decided to forward this fix"

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm/nouveau/gr/nv40: fix oops in interrupt handler

8 years agoMerge tag 'iommu-fixes-v4.4-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Thu, 7 Jan 2016 20:56:23 +0000 (12:56 -0800)]
Merge tag 'iommu-fixes-v4.4-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu

Pull IOMMU fixes from Joerg Roedel:

 - Two build issues, one in the ipmmu-vmsa driver and one for the new
   generic dma-api implemention used on arm64

 - A performance fix for said dma-api implemention

 - An issue caused by a wrong offset in map_sg in the same code as above

* tag 'iommu-fixes-v4.4-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
  iommu/dma: Use correct offset in map_sg
  iommu/ipmmu-vmsa: Don't truncate ttbr if LPAE is not enabled
  iommu/dma: Avoid unlikely high-order allocations
  iommu/dma: Add some missing #includes

8 years agoMerge tag 'trace-v4.4-rc4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
Linus Torvalds [Thu, 7 Jan 2016 20:42:22 +0000 (12:42 -0800)]
Merge tag 'trace-v4.4-rc4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull ftrace fix from Steven Rostedt:
 "PeiyangX Qiu reported that if a module fails to load between calling
  ftrace_module_init() and do_init_module() that the allocations made in
  ftrace_module_init() will not be freed, resulting in a memory leak.

  The solution is to call ftrace_release_mod() on the failing module in
  the fail path befor do_init_module() is called.  This will remove any
  allocations made for that module, and nothing if ftrace_module_init()
  wasn't called yet for that module.

  Note, once do_init_module() is called, the MODULE_GOING notifiers are
  called for the failed module, which calls into the ftrace code to do
  the proper clean up (basically calling ftrace_release_mod())"

* tag 'trace-v4.4-rc4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  ftrace/module: Call clean up function when module init fails early

8 years agoftrace/module: Call clean up function when module init fails early
Steven Rostedt (Red Hat) [Wed, 6 Jan 2016 01:32:47 +0000 (20:32 -0500)]
ftrace/module: Call clean up function when module init fails early

If the module init code fails after calling ftrace_module_init() and before
calling do_init_module(), we can suffer from a memory leak. This is because
ftrace_module_init() allocates pages to store the locations that ftrace
hooks are placed in the module text. If do_init_module() fails, it still
calls the MODULE_GOING notifiers which will tell ftrace to do a clean up of
the pages it allocated for the module. But if load_module() fails before
then, the pages allocated by ftrace_module_init() will never be freed.

Call ftrace_release_mod() on the module if load_module() fails before
getting to do_init_module().

Link: http://lkml.kernel.org/r/567CEA31.1070507@intel.com
Reported-by: "Qiu, PeiyangX" <peiyangx.qiu@intel.com>
Fixes: a949ae560a511 "ftrace/module: Hardcode ftrace_module_init() call into load_module()"
Cc: stable@vger.kernel.org # v2.6.38+
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
8 years agodts: vt8500: Add SDHC node to DTS file for WM8650
Roman Volkov [Fri, 1 Jan 2016 13:38:11 +0000 (16:38 +0300)]
dts: vt8500: Add SDHC node to DTS file for WM8650

Since WM8650 has the same 'WMT' SDHC controller as WM8505, and the driver
is already in the kernel, this node enables the controller support for
WM8650

Signed-off-by: Roman Volkov <rvolkov@v1ros.org>
Reviewed-by: Alexey Charkov <alchark@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
8 years agoARM: Fix broken USB support in multi_v7_defconfig for sunxi devices
Timo Sigurdsson [Fri, 1 Jan 2016 13:38:22 +0000 (14:38 +0100)]
ARM: Fix broken USB support in multi_v7_defconfig for sunxi devices

Commit 69fb4dcada77 ("power: Add an axp20x-usb-power driver") introduced a
new driver for the USB power supply used on various Allwinner based SBCs.
However, the driver was not added to multi_v7_defconfig which breaks USB
support for some boards (e.g. LeMaker BananaPi) as the kernel will now
turn off the USB power supply during boot by default if the driver isn't
present. (This was not the case in linux 4.3 or lower where the USB power
was always left on.)

Hence, add the driver to multi_v7_defconfig in order to keep USB support
working on those boards that require it.

Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
Tested-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
8 years agokvm: x86: only channel 0 of the i8254 is linked to the HPET
Paolo Bonzini [Thu, 7 Jan 2016 12:50:38 +0000 (13:50 +0100)]
kvm: x86: only channel 0 of the i8254 is linked to the HPET

While setting the KVM PIT counters in 'kvm_pit_load_count', if
'hpet_legacy_start' is set, the function disables the timer on
channel[0], instead of the respective index 'channel'. This is
because channels 1-3 are not linked to the HPET.  Fix the caller
to only activate the special HPET processing for channel 0.

Reported-by: P J P <pjp@fedoraproject.org>
Fixes: 0185604c2d82c560dab2f2933a18f797e74ab5a8
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
8 years agoiommu/dma: Use correct offset in map_sg
Robin Murphy [Mon, 4 Jan 2016 16:19:42 +0000 (16:19 +0000)]
iommu/dma: Use correct offset in map_sg

When mapping a non-page-aligned scatterlist entry, we copy the original
offset to the output DMA address before aligning it to hand off to
iommu_map_sg(), then later adding the IOVA page address portion to get
the final mapped address. However, when the IOVA page size is smaller
than the CPU page size, it is the offset within the IOVA page we want,
not that within the CPU page, which can easily be larger than an IOVA
page and thus result in an incorrect final address.

Fix the bug by taking only the IOVA-aligned part of the offset as the
basis of the DMA address, not the whole thing.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
8 years agoMerge branch 'linux-4.4' of git://github.com/skeggsb/linux into drm-fixes
Dave Airlie [Thu, 7 Jan 2016 07:18:45 +0000 (17:18 +1000)]
Merge branch 'linux-4.4' of git://github.com/skeggsb/linux into drm-fixes

single nv40 oops fix.

* 'linux-4.4' of git://github.com/skeggsb/linux:
  drm/nouveau/gr/nv40: fix oops in interrupt handler

8 years agodmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag
Rameshwar Prasad Sahu [Wed, 23 Dec 2015 12:58:15 +0000 (18:28 +0530)]
dmaengine: xgene-dma: Fix double IRQ issue by setting IRQ_DISABLE_UNLAZY flag

For interrupt controller that doesn't support irq_disable and hardware
with level interrupt, an extra interrupt can be pending. This patch fixes
the issue by setting IRQ_DISABLE_UNLAZY flag for the interrupt line.

Reference: http://git.kernel.org/tip/e9849777d0e27cdd2902805be51da73e7c79578c

Signed-off-by: Rameshwar Prasad Sahu <rsahu@apm.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
8 years agoasync_tx: use GFP_NOWAIT rather than GFP_IO
NeilBrown [Thu, 7 Jan 2016 00:02:34 +0000 (11:02 +1100)]
async_tx: use GFP_NOWAIT rather than GFP_IO

These async_XX functions are called from md/raid5 in an atomic
section, between get_cpu() and put_cpu(), so they must not sleep.
So use GFP_NOWAIT rather than GFP_IO.

Dan Williams writes: Longer term async_tx needs to be merged into md
directly as we can allocate this unmap data statically per-stripe
rather than per request.

Fixed: 7476bd79fc01 ("async_pq: convert to dmaengine_unmap_data")
Cc: stable@vger.kernel.org (v3.13+)
Reported-and-tested-by: Stanislav Samsonov <slava@annapurnalabs.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
8 years agoARM: versatile: fix MMC/SD interrupt assignment
Linus Walleij [Tue, 5 Jan 2016 08:59:30 +0000 (09:59 +0100)]
ARM: versatile: fix MMC/SD interrupt assignment

Commit 0976c946a610d06e907335b7a3afa6db046f8e1b
"arm/versatile: Fix versatile irq specifications"
has an off-by-one error on the Versatile AB that has
been regressing the Versatile AB hardware for some time.

However it seems like the interrupt assignments have
never been correct and I have now adjusted them according
to the specification. The masks for the valid interrupts
made it impossible to assign the right SIC interrupt
for the MMCI, so I went in and fixed these to correspond
to the specifications, and added references if anyone
wants to double-check.

Due to the Versatile PB including the Versatile AB
as a base DTS file, we need to override and correct
some values to correspond to the actual changes in the
hardware.

For the Versatile PB I don't think the IRQ line
assignment for MMCI has ever been correct for either of
the two MMCI blocks. It would be nice if someone with the
physical PB board could test this.

Patch tested on the Versatile AB, QEMU for Versatile AB
and QEMU for Versatile PB.

Cc: Rob Herring <robh@kernel.org>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: stable@vger.kernel.org
Fixes: 0976c946a610 ("arm/versatile: Fix versatile irq specifications")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoARM: nomadik: set latencies to 8 cycles
Linus Walleij [Mon, 4 Jan 2016 01:18:28 +0000 (02:18 +0100)]
ARM: nomadik: set latencies to 8 cycles

The Nomadik has sporadic crashes because of these latencies, setting
them to max makes the platform work nicely, so use this values for
now.

These latencies were set to 2 since the Nomadik platform was merged,
but I suspect they never took effect until the right size and
associativity for the cache was specified in the device tree and
that is why the crash comes now.

Cc: stable@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>