[PATCH 3/3] x86/mm: Offset boot-time paging mode switching cost

2018-02-16 Thread Kirill A. Shutemov
By this point we have functioning boot-time switching between 4- and 5-level paging mode. But naive approach comes with cost. Numbers below are for kernel build, allmodconfig, 5 times. CONFIG_X86_5LEVEL=n: Performance counter stats for 'sh -c make -j100 -B -k >/dev/null' (5 runs): 17308719.

Re: [PATCH 7/8] arm64: dts: renesas: r8a77995-draak: Add HDMI Out through ADV7511

2018-02-16 Thread Kieran Bingham
Hi Laurent, On 15/02/18 14:16, Laurent Pinchart wrote: > Hi Kieran, > > Thank you for the patch. > > On Thursday, 15 February 2018 10:38:22 EET Kieran Bingham wrote: >> From: Kieran Bingham >> >> Provide a device node for the ADV7511 as found on the Draak D3 platform. >> >> The ADV7511 is conne

Re: [PATCH 15/20] phy: Remove SOC_EXYNOS4212 dep. from PHY_EXYNOS4X12_USB

2018-02-16 Thread Kishon Vijay Abraham I
On Monday 05 February 2018 01:30 PM, Krzysztof Kozlowski wrote: > On Mon, Feb 5, 2018 at 2:21 AM, Ulf Magnusson wrote: >> Exynos4212 support was removed by commit bca9085e0ae9 ("ARM: dts: >> exynos: remove Exynos4212 support (dead code)"). >> >> Remove the SOC_EXYNOS4212 dependency from PHY_EXYN

Re: [PATCH v3 1/2] ASoC: codecs: Add support for AK4458 DAC driver

2018-02-16 Thread Mark Brown
On Wed, Feb 14, 2018 at 03:21:06PM +0200, Cosmin-Gabriel Samoila wrote: > --- /dev/null > +++ b/sound/soc/codecs/ak4458.c > @@ -0,0 +1,659 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Audio driver for AK4458 DAC > + * Please don't mix C and C++ comments line this, just make the entire bl

Re: [PATCH 6/7] sched: Rename root_domain->overload to should_idle_balance

2018-02-16 Thread Valentin Schneider
On 02/16/2018 09:49 AM, Peter Zijlstra wrote: > On Fri, Feb 16, 2018 at 10:14:02AM +0100, Juri Lelli wrote: >>> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h >>> index 7d324b706e67..4215438667e5 100644 >>> --- a/kernel/sched/sched.h >>> +++ b/kernel/sched/sched.h >>> @@ -650,8 +650,12 @@

[PATCH 1/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer

2018-02-16 Thread Adrian Hunter
UFS host controllers may support an autonomous power management feature called the Auto-Hibernate Idle Timer. The timer is set to the number of microseconds of idle time before the UFS host controller will autonomously put the link into Hibernate state. That will save power at the expense of increa

[PATCH 0/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer

2018-02-16 Thread Adrian Hunter
Hi Micha?? Potomski has previously sent a patch for this, but this patch is slightly different, based on the latest ufs-sysfs changes, it also takes care to restore auto-hibernate during resume, and otherwise avoids updating the register if the device is runtime suspended. Also a default value of

Re: [PATCH 5/5] regmap: Remove regmap_get_raw_read_max

2018-02-16 Thread Mark Brown
On Thu, Feb 15, 2018 at 05:52:20PM +, Charles Keepax wrote: > Since the handling for max_raw_read is now inside regmap_raw_read there > should be no need for client drivers to query as max_raw_read. No, they might need to know if things are going to be combined into a single transaction - some

Re: [PATCH v3 0/2] phy: rockchip-emmc: fixes emmc-phy power on failed with rk3399 SoCs

2018-02-16 Thread Kishon Vijay Abraham I
On Thursday 11 January 2018 08:10 AM, Caesar Wang wrote: > Hi Kishon, > > Since the Shawn isn't available, I take over this series patches for now. > > As the original bug had tracked on https://issuetracker.google.com/71561742. > In some cases, the mmc phy power on failed during booting up. >

Applied "ASoC: ak4458: Add bindings for AK4458 DAC" to the asoc tree

2018-02-16 Thread Mark Brown
The patch ASoC: ak4458: Add bindings for AK4458 DAC has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "ASoC: ak4458: Add support for AK4458 DAC driver" to the asoc tree

2018-02-16 Thread Mark Brown
The patch ASoC: ak4458: Add support for AK4458 DAC driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "regmap: Tidy up regmap_raw_read chunking code" to the regmap tree

2018-02-16 Thread Mark Brown
The patch regmap: Tidy up regmap_raw_read chunking code has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "regmap: Use _regmap_read in regmap_bulk_read" to the regmap tree

2018-02-16 Thread Mark Brown
The patch regmap: Use _regmap_read in regmap_bulk_read has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "regmap: Move the handling for max_raw_read into regmap_raw_read" to the regmap tree

2018-02-16 Thread Mark Brown
The patch regmap: Move the handling for max_raw_read into regmap_raw_read has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

[PATCH v3 3/6] phy: rockchip-typec: enable usb3 host during usb3 phy power on

2018-02-16 Thread Enric Balletbo i Serra
From: William wu We have forced usb3 to work in usb2 only mode in firmware by setting usb3tousb2_en (bit3 of GRF_USB3PHY0/1_CON0) to 1, and setting host_u3_port_disable (bit0 of GRF_USB3OTG0/1_CON1) to 1 and host_u3_port (bit15~12 of GRF_USB3OTG0/1_CON1) to 0. So we need to re-enable usb3 host.

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-16 Thread David Woodhouse
On Fri, 2018-02-16 at 12:04 +0100, Paolo Bonzini wrote: > On 16/02/2018 11:21, David Woodhouse wrote: > > > > Why? With IBRS_ALL the guest *never* gets to affect the actual hardware > > MSR, which is always on. The MSR is purely an emulated no-op. Why does > > that affect migration? > Because even

Re: [PATCH] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version

2018-02-16 Thread Hans de Goede
Hi, On 16-02-18 12:45, Marcel Holtmann wrote: Hi Hans, Commit 7d06d5895c15 ("Revert "Bluetooth: btusb: fix QCA...suspend/resume"") removed the setting of the BTUSB_RESET_RESUME quirk for QCA Rome devices, instead favoring adding USB_QUIRK_RESET_RESUME quirks in usb/core/quirks.c. This was don

[PATCH v3 6/6] drm/rockchip: cdn-dp: remove the DP phy switch

2018-02-16 Thread Enric Balletbo i Serra
From: Chris Zhong There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0.

[PATCH v3 4/6] phy: rockchip-typec: force to USB2 if DP at 4 lanes mode

2018-02-16 Thread Enric Balletbo i Serra
From: Chris Zhong The usb3tousb2_en BIT will be clear to 0 in probe(), it make USB controller work at USB3 mode, and if the USB phy is turned on with DP only mode(4 lanes DP), the rockchip_usb3_phy_power_on() will return directly, so usb3_host_disable and usb3_host_port these 2 BIT will keep a sa

[PATCH v3 1/6] phy: rockchip-typec: deprecate some DT properties for various register fields.

2018-02-16 Thread Enric Balletbo i Serra
Adding properties for various register fields in the DT doesn't scale and this information should be in the driver instead. Before this patch these registers (description below) were specified in the DT, every register node contained 3 sections: offset, enable bit, write mask bit. - rockchip,typ

[PATCH v3 5/6] phy: rockchip-typec: support DP phy switch

2018-02-16 Thread Enric Balletbo i Serra
From: Chris Zhong There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0.

[PATCH v3 2/6] dt-bindings: phy-rockchip-typec: deprecate some register properties.

2018-02-16 Thread Enric Balletbo i Serra
As now the following register properties are in the driver, document as deprecated these properties and recommend to not use them on new bindings. The deprecated properties are: - rockchip,typec-conn-dir : the register of type-c connector direction - rockchip,usb3tousb2-en : the register of type-

Re: [PATCH v5 1/3] sched: Stop nohz stats when decayed

2018-02-16 Thread Valentin Schneider
On 02/14/2018 03:26 PM, Vincent Guittot wrote: > Stopped the periodic update of blocked load when all idle CPUs have fully > decayed. We introduce a new nohz.has_blocked that reflect if some idle > CPUs has blocked load that have to be periodiccally updated. nohz.has_blocked > is set everytime that

Re: [PATCH v4 1/2] ASoC: codecs: Add support for AK5558 ADC driver

2018-02-16 Thread Mark Brown
On Tue, Feb 13, 2018 at 04:29:33PM +0200, Daniel Baluta wrote: > +++ b/sound/soc/codecs/ak5558.c > @@ -0,0 +1,417 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* Just make this a C++ commment, don't mix C and C++ - it looks neater. Otherwise this looks good so I'll apply, please send a followup p

Applied "ASoC: ak5558: Add bindings for AK5558 ADC" to the asoc tree

2018-02-16 Thread Mark Brown
The patch ASoC: ak5558: Add bindings for AK5558 ADC has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "ASoC: ak5558: Add support for AK5558 ADC driver" to the asoc tree

2018-02-16 Thread Mark Brown
The patch ASoC: ak5558: Add support for AK5558 ADC driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH] input: Add driver for USB ELAN Touchpad

2018-02-16 Thread Jiri Kosina
On Sun, 14 Jan 2018, Alexandrov Stansilav wrote: > This is driver for usb touchpad found on HP Pavilion x2 10-p0xx > laptop. On this device keyboard and touchpad connected as a single > usb device with two interfaces: keyboard, which exposes ordinary keys > and second interface is touchpad which a

Re: [PATCH v4 1/2] ASoC: codecs: Add support for AK5558 ADC driver

2018-02-16 Thread Daniel Baluta
On Vi, 2018-02-16 at 12:14 +, Mark Brown wrote: > On Tue, Feb 13, 2018 at 04:29:33PM +0200, Daniel Baluta wrote: > > > > > +++ b/sound/soc/codecs/ak5558.c > > @@ -0,0 +1,417 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > Just make this a C++ commment, don't mix C and C++ - it looks nea

Re: [PATCH] HID: corsair: Add support for the GLAIVE RGB gaming mouse

2018-02-16 Thread Jiri Kosina
On Sat, 10 Feb 2018, Guus Sliepen wrote: > This mouse sold by Corsair as the GLAIVE RGB gaming mouse has the same > problem with its HID reports as the Scimitar PRO RGB, so reuse the > same fix for the GLAIVE RGB. Applied to for-4.16/upstream-fixes. -- Jiri Kosina SUSE Labs

Re: [PATCH v2 1/1] clk: npcm7xx: add clock controler. fixed clock at DT

2018-02-16 Thread Philippe Ombredanne
Tali, On Thu, Feb 15, 2018 at 2:30 PM, Tali Perry wrote: > --- /dev/null > +++ b/drivers/clk/clk-npcm7xx.c > @@ -0,0 +1,759 @@ > +/* > + * Nuvoton NPCM7xx Clock Generator > + * All the clocks are initialized by the bootloader, so this driver allow > only > + * reading of current settings directl

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-16 Thread Jiri Kosina
On Sat, 3 Feb 2018, Aaron Ma wrote: > Could anyone review and apply these 2 patch? I have applied all 3 patches to for-4.16/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs

[PATCH v2] arm64: dts: renesas: r8a77995-draak: Enable DU

2018-02-16 Thread Kieran Bingham
From: Kieran Bingham Enable the DU, providing only the VGA output for now. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- Just a v2 update to fix the PFC name, and collect Laurent's RB tag. The remainder of the series will likely be postponed due to dependencies on LVDS chan

Re: [PATCH][next] HID: asus: make array 'buf' static const, shrinks object size

2018-02-16 Thread Jiri Kosina
On Sat, 6 Jan 2018, Colin King wrote: > From: Colin Ian King > > Don't populate the const read-only array 'buf' on the stack but instead > make it stati. Makes the object code smaller by 26 bytes: > > Before: >text data bss dec hex filename > 14378 2384

Re: [PATCH v3 6/7] arm64: tegra: Add Tegra194 chip device tree

2018-02-16 Thread Philippe Ombredanne
Mikko, On Thu, Feb 15, 2018 at 3:52 PM, Mikko Perttunen wrote: > Add the chip-level device tree, including binding headers, for the > NVIDIA Tegra194 "Xavier" system-on-chip. Only a small subset of devices > are initially available, enough to boot to UART console. > > Signed-off-by: Mikko Perttun

Re: [PATCH v3 33/43] drm/panel: simple: Change mode for Sharp lq123p1jx31

2018-02-16 Thread Enric Balletbo Serra
Hi, 2018-01-31 17:52 GMT+01:00 Doug Anderson : > Hi, > > > On Wed, Jan 31, 2018 at 7:16 AM, Sean Paul wrote: >> On Wed, Jan 31, 2018 at 7:54 AM, Lucas Stach wrote: >>> Am Dienstag, den 30.01.2018, 21:29 +0100 schrieb Thierry Escande: From: Sean Paul Change the mode for Sharp lq12

[PATCH] perf report: Fix memory corruption in --branch-history mode --branch-history

2018-02-16 Thread Jiri Olsa
On Fri, Feb 16, 2018 at 08:53:04AM +0100, Jiri Olsa wrote: > On Fri, Feb 16, 2018 at 10:25:31AM +0800, Jin, Yao wrote: > > SNIP > > > > From my opinion, the option '--max-stack' in perf report looks not very > > > necessary. While it's just my personal opinion, need to hear from more > > > peopl

Re: [PATCH] HID: uhid: use strlcpy() instead of strncpy()

2018-02-16 Thread Jiri Kosina
On Tue, 9 Jan 2018, Xiongfeng Wang wrote: > From: Xiongfeng Wang > > gcc-8 reports > > drivers/hid/uhid.c: In function 'uhid_dev_create2': > ./include/linux/string.h:245:9: warning: '__builtin_strncpy' output may > be truncated copying 127 bytes from a string of length 127 > [-Wstringop-truncat

[PATCH 0/3] PATA-MacIO: Adjustments for five function implementations

2018-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 16 Feb 2018 13:32:23 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in two functions Improve a size determination in two functions Adjust 11

Re: [PATCH] drm: fix off-by-one in logger

2018-02-16 Thread David Woodhouse
On Fri, 2018-02-16 at 10:43 +0100, Norbert Manthey wrote: > The current implementation will leak a byte to the log via memmove. The > specified 27 bytes are off-by-one, as the payload is 25 bytes, and the > termination character is only one byte large. To avoid this, factor out > the error messag

[PATCH 1/3] pata_macio: Delete an error message for a failed memory allocation in two functions

2018-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 16 Feb 2018 13:01:45 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/ata/pata_macio.c | 12 1 file changed, 4 insert

Re: [PATCH V2] HID: corsair: Add K70 Vengeance and K70 RAPIDFIRE to

2018-02-16 Thread Jiri Kosina
On Fri, 22 Dec 2017, Aaron Bottegal wrote: > K70 Vengeance sends garbage keypresses when changing backlight brightness. > This hooks to the existing corsair driver, which filters out those > invalid keypresses on similar devices in the input mapping code. Applied to for-4.16/upstream-fixes. --

[PATCH 2/3] pata_macio: Improve a size determination in two functions

2018-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 16 Feb 2018 13:08:14 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detec

arc: mm->mmap_sem gets locked in do_page_fault() in case of OOM killer invocation

2018-02-16 Thread Alexey Brodkin
Hi Vineet, While playing with OOM killer I bumped in a pure software deadlock on ARC which is even observed in simulation (i.e. it has nothing to do with HW peculiarities). What's nice kernel even sees that lock-up if "Lock Debugging" is enabled. That's what I see: --

[PATCH 3/3] pata_macio: Adjust 11 checks for null pointers

2018-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 16 Feb 2018 13:20:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

Re: [PATCH] PCI: Add quirk for Cavium Thunder-X2 PCIe erratum #173

2018-02-16 Thread Rafael J. Wysocki
On Friday, February 16, 2018 12:39:00 AM CET Bjorn Helgaas wrote: > On Thu, Feb 15, 2018 at 10:57:25PM +0100, Rafael J. Wysocki wrote: > > On Wednesday, February 14, 2018 9:16:53 PM CET Bjorn Helgaas wrote: > > > On Wed, Feb 14, 2018 at 04:58:08PM +0530, George Cherian wrote: > > > > On 02/13/2018

Re: [PATCH v3] PCI: qcom: add missing supplies required for msm8996

2018-02-16 Thread Stanimir Varbanov
Hi Srini, On 02/15/2018 03:22 PM, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds supplies that are required for msm8996. vdda > is analog supply that go in to controller, and vddpe_3v3 is > supply to PCIe endpoint. > > Without these supplies PCIe endpoints

Re: [PATCH v3] rtc: ac100: Fix ac100 determine rate bug

2018-02-16 Thread Philipp Rossak
On 16.02.2018 05:10, Chen-Yu Tsai wrote: On Fri, Feb 16, 2018 at 1:53 AM, Philipp Rossak wrote: On 15.02.2018 15:11, Maxime Ripard wrote: On Wed, Feb 14, 2018 at 02:56:12PM +0100, Philipp Rossak wrote: This patch fixes a bug, that prevents the Allwinner A83T and the A80 from a successfu

Re: [PATCH 2/3] Documentation: convert trace/ftrace-design.txt to rst format

2018-02-16 Thread Jonathan Corbet
On Thu, 15 Feb 2018 22:57:05 -0500 Steven Rostedt wrote: > This document is out of date, and I rather have it updated before we > make it more "available" elsewhere. Imagine that, an out-of-date doc in the kernel :) Seriously, though, I'd argue that (1) it's already highly available, and (2) it

[PATCH] staging: iio/meter: add name to function definition arguments

2018-02-16 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning: drivers/staging/iio/meter/ade7854.h:157: WARNING: function definition argument 'struct device *' should also have an identifier name... Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/meter/ade7854.h | 28 ++-- 1 file c

Re: [PATCH 3/3] percpu: Remove inert tracepoint in __init code

2018-02-16 Thread Josh Poimboeuf
On Fri, Feb 16, 2018 at 10:02:33AM +0100, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > On Thu, Feb 15, 2018 at 07:22:46AM -0800, Tejun Heo wrote: > > > On Wed, Feb 14, 2018 at 10:40:43AM -0600, Josh Poimboeuf wrote: > > > > The jump_label code doesn't patch init code, so this tracepoint

Re: [PATCH] phy: allwinner: sun4i-usb: poll vbus changes on A23/A33 when driving VBUS

2018-02-16 Thread Chen-Yu Tsai
On Fri, Feb 16, 2018 at 7:20 PM, Kishon Vijay Abraham I wrote: > > > On Friday 19 January 2018 08:15 PM, Maxime Ripard wrote: >> On Fri, Jan 19, 2018 at 05:25:41PM +0800, Chen-Yu Tsai wrote: >>> The AXP223 PMIC, like the AXP221, does not generate VBUS change >>> interrupts when N_VBUSEN is used to

Re: [PATCH v5 1/3] sched: Stop nohz stats when decayed

2018-02-16 Thread Valentin Schneider
On 02/14/2018 03:26 PM, Vincent Guittot wrote: > Stopped the periodic update of blocked load when all idle CPUs have fully > decayed. We introduce a new nohz.has_blocked that reflect if some idle > CPUs has blocked load that have to be periodiccally updated. nohz.has_blocked > is set everytime that

Re: [PATCH] Staging: nvec: fix line should not end with a open parenthesis.

2018-02-16 Thread Dan Carpenter
On Fri, Feb 16, 2018 at 05:06:34PM +0530, Yash Omer wrote: > This patch fix line should not end with open parenthesis found by > checkpatch.plscript. > > Signed-off-by: Yash Omer > --- > drivers/staging/nvec/nvec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/dr

Re: [PATCH] staging: iio/meter: add name to function definition arguments

2018-02-16 Thread Daniel Baluta
Hi Rodrigo, I think this is a nice finding. One comment inline: On Vi, 2018-02-16 at 10:50 -0200, rodrigosiqueira wrote: > This patch fixes the checkpatch.pl warning: > > drivers/staging/iio/meter/ade7854.h:157: WARNING: function definition > argument 'struct device *' should also have an identi

Re: [PATCH v3] rtc: ac100: Fix ac100 determine rate bug

2018-02-16 Thread Chen-Yu Tsai
On Fri, Feb 16, 2018 at 8:49 PM, Philipp Rossak wrote: > > > On 16.02.2018 05:10, Chen-Yu Tsai wrote: >> >> On Fri, Feb 16, 2018 at 1:53 AM, Philipp Rossak wrote: >>> >>> >>> >>> On 15.02.2018 15:11, Maxime Ripard wrote: On Wed, Feb 14, 2018 at 02:56:12PM +0100, Philipp Rossak wrot

Re: [PATCH] perf report: Fix memory corruption in --branch-history mode --branch-history

2018-02-16 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 16, 2018 at 01:36:19PM +0100, Jiri Olsa escreveu: > > here it is.. I think we want this change now to fix the crash, and > some more fixes later to ensure that the branch stack code follows > properly the logic of --max-stack, which is not the case now Thanks, applied. - Arnaldo

Re: [PATCH 0/4] Move DP phy switch to PHY driver

2018-02-16 Thread Heiko Stübner
Hi Kishon, Am Freitag, 16. Februar 2018, 12:04:42 CET schrieb Kishon Vijay Abraham I: > On Friday 10 February 2017 01:14 PM, Chris Zhong wrote: > > There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence > > only one PHY can connect to DP controller at one time, the other should > > b

Re: [PATCH v3] rtc: ac100: Fix ac100 determine rate bug

2018-02-16 Thread Maxime Ripard
On Fri, Feb 16, 2018 at 12:10:18PM +0800, Chen-Yu Tsai wrote: > > diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > > b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > > index 6550bf0e594b..6f56d429f17e 100644 > > --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > > +++ b/arch/arm/boot/d

Re: [v4 4/6] mm/memory_hotplug: optimize probe routine

2018-02-16 Thread Pavel Tatashin
> Reviewed-by: Ingo Molnar Thank you!

Re: [PATCH 11/12] platform/x86: intel_cht_int33fe: Add device connections for the Type-C port

2018-02-16 Thread Andy Shevchenko
On Fri, Feb 16, 2018 at 12:47 PM, Hans de Goede wrote: > We need to add device-connections for the TYPE-C mux/switch and usb-role > code to be able to find the PI3USB30532 Type-C cross-switch and the > device/host switch integrated in the CHT SoC. > Acked-by: Andy Shevchenko > Signed-off-by: Ha

Re: [v4 3/6] mm: uninitialized struct page poisoning sanity checking

2018-02-16 Thread Pavel Tatashin
OK, I will update the title. > > Please always start patch titles with a verb, i.e.: > > mm: Add uninitialized struct page poisoning sanity check OK, I will update the title.

Re: [v4 5/6] mm/memory_hotplug: don't read nid from struct page during hotplug

2018-02-16 Thread Pavel Tatashin
> The namespace of all these memory range handling functions is horribly random, > and I think now it got worse: we add an assumption that register_new_memory() > is > implicitly called as part of hotplugged memory (where things are pre-cleared) > - > but nothing in its naming suggests so. > > Ho

Re: [v4 6/6] mm/memory_hotplug: optimize memory hotplug

2018-02-16 Thread Pavel Tatashin
> > Reviewed-by: Ingo Molnar Thank you for your review! I will address all of your comments in the next patch iteration. Pavel

Re: [PATCH v3] rtc: ac100: Fix ac100 determine rate bug

2018-02-16 Thread Chen-Yu Tsai
On Fri, Feb 16, 2018 at 9:07 PM, Maxime Ripard wrote: > On Fri, Feb 16, 2018 at 12:10:18PM +0800, Chen-Yu Tsai wrote: >> > diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts >> > b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts >> > index 6550bf0e594b..6f56d429f17e 100644 >> > --- a/arch/arm/

Re: [PATCH 4.9 43/92] x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown

2018-02-16 Thread Nick Lowe
Hi I do not have a tested patch, but I expect the change would be something like: skip: - if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) + if (!static_cpu_has_bug(X86_BUG_CPU_MELTDOWN)) goto disable; Cheers, Nick On Tue, Feb 13, 2018 at 4:32 PM, Greg Kroah-Hartman

[PATCH 1/2] ARM: dts: stm32: add RTC support on STM32H743

2018-02-16 Thread Amelie Delaunay
This patch adds support for RTC on STM32H743 SoC. It also adds dt-bindings/interrupt-controller/irq.h include and uses it to configure RTC alarm interrupt. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32h743.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arc

Re: [PATCH] staging: iio/meter: add name to function definition arguments

2018-02-16 Thread Rodrigo Siqueira
Hi Daniel > Hi Rodrigo, > > I think this is a nice finding. One comment inline: > > On Vi, 2018-02-16 at 10:50 -0200, rodrigosiqueira wrote: > > This patch fixes the checkpatch.pl warning: > > > > drivers/staging/iio/meter/ade7854.h:157: WARNING: function definition > > argument 'struct device

[PATCH 2/2] ARM: dts: stm32: enable RTC on stm32h743i-eval

2018-02-16 Thread Amelie Delaunay
This patch enables RTC on stm32h743i-eval. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32h743i-eval.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743i-eval.dts b/arch/arm/boot/dts/stm32h743i-eval.dts index 9f0e72c..cc8e458 100644 --- a/arch/arm/

[PATCH 0/2] RTC support on STM32H743

2018-02-16 Thread Amelie Delaunay
This patchset add support for RTC on STM32H743 and enables it on stm32h743i-eval. Tested on stm32-next. Amelie Delaunay (2): ARM: dts: stm32: add RTC support on STM32H743 ARM: dts: stm32: enable RTC on stm32h743i-eval arch/arm/boot/dts/stm32h743.dtsi | 15 +++ arch/arm/boot

Re: [PATCH v4 2/2] perf stat: Add support to print counts after a period of time

2018-02-16 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 15, 2018 at 10:39:21AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Jan 29, 2018 at 10:25:23AM +0100, ufo19890607 escreveu: > > From: yuzhoujian > > > > Introduce a new option to print counts after N milliseconds > > This doesn't just print counts after N ms, it _stops_ the wo

Re: [PATCH 05/12] usb: typec: tcpm: Set USB role switch to device mode when configured as such

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:44AM +0100, Hans de Goede wrote: > Setting the mux to MUX_NONE and the switch to USB_SWITCH_DISCONNECT when > the data-role is device is not correct. Plenty of devices support > operating as USB device through a (separate) USB device controller. > > We really need 2 d

Re: [PATCH 12/12] extcon: axp288: Set USB role where necessary

2018-02-16 Thread Andy Shevchenko
On Fri, Feb 16, 2018 at 12:47 PM, Hans de Goede wrote: > The AXP288 BC1.2 charger detection / extcon code may seem like a strange > place to add code to control the USB role-switch on devices with an AXP288, > but there are 2 reasons to do this inside the axp288 extcon code: > > 1) On many devices

Re: [PATCH 06/12] usb: typec: tcpm: Use new Type-C switch/mux and usb-role-switch functions

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:45AM +0100, Hans de Goede wrote: > Remove the unused (not implemented anywhere) tcpc_mux_dev abstraction > and replace it with calling the new typec_set_orientation, > usb_role_switch_set and typec_set_mode functions. > > Signed-off-by: Hans de Goede Reviewed-by: He

Re: [PATCH 07/12] xhci: Add option to get next extended capability in list by passing id = 0

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:46AM +0100, Hans de Goede wrote: > From: Mathias Nyman > > Modify xhci_find_next_ext_cap(base, offset, id) to return the next > capability offset if 0 is passed for id. Otherwise it will behave as > previously and return the offset of the next capability with matchin

Re: [PATCH-next] sched/headers: Clean up

2018-02-16 Thread Christopher Díaz Riveros
El vie, 16-02-2018 a las 10:44 +0100, Juri Lelli escribió: > On 15/02/18 17:52, Peter Zijlstra wrote: > > On Thu, Feb 15, 2018 at 10:43:18AM -0500, Christopher Diaz Riveros > > wrote: > > [...] > > > > @@ -437,20 +437,28 @@ struct sched_dl_entity { > > >* during sched_setattr(), they will rem

Re: [PATCHv4 1/4] dt-bindings: sound: add motorola,cpcap-audio-codec

2018-02-16 Thread Sebastian Reichel
Hi Mark, On Fri, Feb 16, 2018 at 11:30:08AM +, Mark Brown wrote: > On Wed, Feb 14, 2018 at 11:07:38PM +0100, Sebastian Reichel wrote: > > > +&cpcap { > > + audio-codec { > > + compatible = "motorola,cpcap-audio-codec"; > > + }; > > Why are we adding a separate DT node with no c

[PATCH 3/4] qxl: hook monitors_config updates into crtc, not encoder.

2018-02-16 Thread Gerd Hoffmann
The encoder callbacks are only called in case the video mode changes. So any layout changes without mode changes will go unnoticed. Add qxl_crtc_update_monitors_config(), based on the old qxl_write_monitors_config_for_encoder() function. Hook it into the enable, disable and flush atomic crtc call

[PATCH 4/4] qxl: drop dummy functions

2018-02-16 Thread Gerd Hoffmann
These days drm core checks function pointers everywhere before calling them. So we can drop a bunch of dummy functions now. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 50 --- 1 file changed, 50 deletions(-) diff --git a/drivers/gpu/

[PATCH 1/4] qxl: remove qxl_io_log()

2018-02-16 Thread Gerd Hoffmann
qxl_io_log() sends messages over to the host (qemu) for logging. Remove the function and all callers, we can just use standard DRM_DEBUG calls (and if needed a serial console). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 3 --- drivers/gpu/drm/qxl/qxl_cmd.c | 34 ++-

[PATCH 2/4] qxl: move qxl_send_monitors_config()

2018-02-16 Thread Gerd Hoffmann
Needed to avoid a forward declaration in a followup patch. Pure code move, no functional change. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 47 +++ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/qxl/qx

Re: [PATCHv4 2/4] ASoC: codec: cpcap: new codec

2018-02-16 Thread Sebastian Reichel
Hi Philippe, On Thu, Feb 15, 2018 at 10:50:22AM +0100, Philippe Ombredanne wrote: > Dear Sebastian, > > On Wed, Feb 14, 2018 at 11:07 PM, Sebastian Reichel > wrote: > > Motorola CPCAP is a PMIC with audio functionality, that can be > > found on Motorola Droid 4 and probably a few other phones fr

Re: [PATCH 08/12] xhci: Add Intel extended cap / otg phy mux handling

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:47AM +0100, Hans de Goede wrote: > The xHCI controller on various Intel SoCs has an extended cap mmio-range > which contains registers to control the muxing to the xHCI (host mode) > or the dwc3 (device mode) and vbus-detection for the otg usb-phy. > > Having a role-s

Re: [PATCH 10/12] usb: typec: driver for Pericom PI3USB30532 Type-C cross switch

2018-02-16 Thread Andy Shevchenko
On Fri, Feb 16, 2018 at 12:47 PM, Hans de Goede wrote: > Add a driver for the Pericom PI3USB30532 Type-C cross switch / > mux chip found on some devices with a Type-C port. > +static int pi3usb30532_set_conf(struct pi3usb30532 *pi, u8 new_conf) > +{ > + int ret = 0; > + > + if (pi->c

Re: [PATCH v3 3/5] arm64: dts: renesas: r8a7795-es1: Fix register mappings on VSPs

2018-02-16 Thread Simon Horman
On Wed, Feb 14, 2018 at 12:08:56PM +0200, Laurent Pinchart wrote: > Hi Kieran, > > Thank you for the patch. > > On Wednesday, 14 February 2018 11:55:06 EET Kieran Bingham wrote: > > From: Kieran Bingham > > > > The VSPD includes a CLUT on RPF2. Ensure that the register space is > > mapped corre

Re: [PATCH v3 4/5] arm64: dts: renesas: r8a7795: Fix register mappings on VSPs

2018-02-16 Thread Simon Horman
On Wed, Feb 14, 2018 at 09:55:07AM +, Kieran Bingham wrote: > From: Kieran Bingham > > The VSPD includes a CLUT on RPF2. Ensure that the register space is > mapped correctly to support this. > > Signed-off-by: Kieran Bingham > Reviewed-by: Laurent Pinchart Thanks, applied

Re: [PATCH 00/12] USB Type-C device-connection, mux and switch support

2018-02-16 Thread Andy Shevchenko
On Fri, Feb 16, 2018 at 12:47 PM, Hans de Goede wrote: While I'm going through patches, one notice to all of them: be consistent with xHCI abbreviation. Also check others, like vBus (or whatever is standard de facto to show it in comments and to the user in messages). -- With Best Regards, Andy

Re: [PATCH v3 5/5] arm64: dts: renesas: r8a7796: Fix register mappings on VSPs

2018-02-16 Thread Simon Horman
On Wed, Feb 14, 2018 at 09:55:08AM +, Kieran Bingham wrote: > From: Kieran Bingham > > The VSPD includes a CLUT on RPF2. Ensure that the register space is > mapped correctly to support this. > > Signed-off-by: Kieran Bingham > Reviewed-by: Laurent Pinchart Thanks, applied.

[PATCH] iio: apply coding-style into ms5611_probe function

2018-02-16 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning and error: iio/pressure/ms5611.h:66: ERROR: code indent should use tabs where possible iio/pressure/ms5611.h:66: WARNING: please, no spaces at the start of a line iio/pressure/ms5611.h:66: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Rodrigo Siq

Re: [PATCH 0/6] isolation: 1Hz residual tick offloading v6

2018-02-16 Thread Peter Zijlstra
On Thu, Feb 15, 2018 at 01:48:08AM +0100, Frederic Weisbecker wrote: > The version addresses the reviews from Ingo on v5: > > * Start changelog titles with verbs. > * Improve/reword several comments. > * Improve/reword documentation. > * Various cosmetic changes. > * Use BUG_ON() on boot allocatio

Re: [PATCH 09/12] usb: roles: Add Intel XHCI USB role switch driver

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:48AM +0100, Hans de Goede wrote: > diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile > index 060643a1b5c8..7d1b8c82b208 100644 > --- a/drivers/usb/Makefile > +++ b/drivers/usb/Makefile > @@ -65,3 +65,5 @@ obj-$(CONFIG_USB_COMMON)+= common/ > obj-$(CONFIG_US

Re: [PATCH 06/15] Documentation: devicetree: dma: Add r8a77965 dmac

2018-02-16 Thread Simon Horman
On Fri, Feb 16, 2018 at 10:01:33AM +0100, Geert Uytterhoeven wrote: > On Thu, Feb 15, 2018 at 4:56 PM, Simon Horman wrote: > > On Thu, Feb 15, 2018 at 04:39:49PM +0100, Simon Horman wrote: > >> On Tue, Feb 13, 2018 at 10:45:53AM +0100, Jacopo Mondi wrote: > >> > Add documentation for r8a77965 comp

Re: [PATCH 10/12] usb: typec: driver for Pericom PI3USB30532 Type-C cross switch

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:49AM +0100, Hans de Goede wrote: > Add a driver for the Pericom PI3USB30532 Type-C cross switch / > mux chip found on some devices with a Type-C port. > > Signed-off-by: Hans de Goede Reviewed-by: Heikki Krogerus Thanks, -- heikki

Re: [PATCH v2] arm64: dts: renesas: r8a77995-draak: Enable DU

2018-02-16 Thread Simon Horman
On Fri, Feb 16, 2018 at 12:32:35PM +, Kieran Bingham wrote: > From: Kieran Bingham > > Enable the DU, providing only the VGA output for now. > > Signed-off-by: Kieran Bingham > Reviewed-by: Laurent Pinchart > --- > > Just a v2 update to fix the PFC name, and collect Laurent's RB tag. The

Re: [PATCH 11/12] platform/x86: intel_cht_int33fe: Add device connections for the Type-C port

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:50AM +0100, Hans de Goede wrote: > We need to add device-connections for the TYPE-C mux/switch and usb-role > code to be able to find the PI3USB30532 Type-C cross-switch and the > device/host switch integrated in the CHT SoC. > > Signed-off-by: Hans de Goede Reviewe

Re: [PATCH v5 1/3] sched: Stop nohz stats when decayed

2018-02-16 Thread Vincent Guittot
On 16 February 2018 at 13:13, Valentin Schneider wrote: > On 02/14/2018 03:26 PM, Vincent Guittot wrote: >> Stopped the periodic update of blocked load when all idle CPUs have fully >> decayed. We introduce a new nohz.has_blocked that reflect if some idle >> CPUs has blocked load that have to be p

Re: [PATCHv4 1/4] dt-bindings: sound: add motorola,cpcap-audio-codec

2018-02-16 Thread Mark Brown
On Fri, Feb 16, 2018 at 02:25:38PM +0100, Sebastian Reichel wrote: > On Fri, Feb 16, 2018 at 11:30:08AM +, Mark Brown wrote: > > Why are we adding a separate DT node with no content for this? This is > > a single chip, we already know that the CODEC part is there from the DT > > telling us th

Re: [PATCH 12/12] extcon: axp288: Set USB role where necessary

2018-02-16 Thread Heikki Krogerus
On Fri, Feb 16, 2018 at 11:47:51AM +0100, Hans de Goede wrote: > The AXP288 BC1.2 charger detection / extcon code may seem like a strange > place to add code to control the USB role-switch on devices with an AXP288, > but there are 2 reasons to do this inside the axp288 extcon code: > > 1) On many

Re: [PATCH 1/7] sched: Add static_key for asymmetric cpu capacity optimizations

2018-02-16 Thread Peter Zijlstra
On Thu, Feb 15, 2018 at 04:20:48PM +, Morten Rasmussen wrote: > +static void update_asym_cpucapacity(int cpu) > +{ > + if (!static_branch_unlikely(&sched_asym_cpucapacity) && > + lowest_flag_domain(cpu, SD_ASYM_CPUCAPACITY)) > + static_branch_enable(&sched_asym_cpucapaci

[PATCH] ARM: dts: stm32: enable RTC on stm32f769-disco

2018-02-16 Thread Amelie Delaunay
This patch enables RTC on stm32f769-disco. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32f769-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index 4463ca1..48cb47f 100644 --- a/arch/arm/

[PATCH] mm: don't defer struct page initialization for Xen pv guests

2018-02-16 Thread Juergen Gross
Commit f7f99100d8d95dbcf09e0216a143211e79418b9f ("mm: stop zeroing memory during allocation in vmemmap") broke Xen pv domains in some configurations, as the "Pinned" information in struct page of early page tables could get lost. Avoid this problem by not deferring struct page initialization when

<    1   2   3   4   5   6   7   8   9   >