Re: [PATCH] alarmtimer: don't rate limit one-shot timers

2017-07-25 Thread Thomas Gleixner
On Mon, 24 Jul 2017, Greg KH wrote: > On Mon, Jul 24, 2017 at 02:41:10PM -0700, Greg Hackmann wrote: > > On 07/24/2017 11:21 AM, Greg KH wrote: > > > On Mon, Jul 24, 2017 at 10:19:24AM -0700, Greg Hackmann wrote: > > > > Commit ff86bf0c65f1 ("alarmtimer: Rate limit periodic intervals") sets a > >

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-25 Thread Tomi Sarvela
On 24/07/17 19:37, Martin Peres wrote: On 24/07/17 19:35, Thomas Gleixner wrote: On Mon, 24 Jul 2017, Martin Peres wrote: On 24/07/17 18:28, Thomas Gleixner wrote: Output of 'cat /proc/interrupts' and a description what kind of 'old' Intel platform that is. Sorry, I should have repeated the

Re: [RFC PATCH v1 8/8] sched/deadline: make bandwidth enforcement scale-invariant

2017-07-25 Thread Luca Abeni
Hi Peter, On Mon, 24 Jul 2017 18:43:49 +0200 Peter Zijlstra wrote: > On Wed, Jul 19, 2017 at 12:16:24PM +0100, Juri Lelli wrote: > > On 19/07/17 13:00, Peter Zijlstra wrote: > > > On Wed, Jul 19, 2017 at 10:20:29AM +0100, Juri Lelli wrote: > > > > On 19/07/17 09:21, Peter Zijlstra wrote: >

RE: [PATCH] cpufreq: intel_pstate: Fix cpuinfo_cur_freq after performance governor changes

2017-07-25 Thread Huaisheng HS1 Ye
Hi Srinivas, Your idea is great, but your patch at cpufreq.c will force all platforms to use scaling_cur_freq as first choice when userspace wants to access cpuinfo_cur_freq. It is ok for intel x86 platfrom but hard to say with other platforms. I modified it like that, it looks more reasonable.

Re: [PATCH] USB: musb: fix external abort on suspend

2017-07-25 Thread Johan Hovold
On Mon, Jul 24, 2017 at 01:13:22PM -0400, Alan Stern wrote: > On Mon, 24 Jul 2017, Johan Hovold wrote: > > > On Mon, Jul 24, 2017 at 10:38:41AM -0400, Alan Stern wrote: > > > On Mon, 24 Jul 2017, Johan Hovold wrote: > > > > > > > Make sure that the controller is runtime resumed when system suspen

Re: [PATCH] ARM: OMAP2+: omap_device: drop broken RPM status update from suspend_noirq

2017-07-25 Thread Tony Lindgren
* Grygorii Strashko [170724 15:17]: > My personal thought here is that removing of pm_runtime_set_active() will not > fix > root cause of the problem, but rather hide it :( and, probably, real fix will > be > to update USB framework to ensure that all suspend devices are also PM > runtime susp

[PATCH v1] clk: rockchip: rk3128: modify rk3128 clk driver to support rk3126

2017-07-25 Thread Elaine Zhang
rk3128 and rk3126 have some gate registers describe differences. So need to make some distinctions. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3128.c | 59 +++--- include/dt-bindings/clock/rk3128-cru.h | 3 ++ 2 files changed, 57 insertions(+), 5

Re: [PATCH] [v2] kasan: avoid -Wmaybe-uninitialized warning

2017-07-25 Thread Arnd Bergmann
On Mon, Jul 24, 2017 at 1:35 PM, Alexander Potapenko wrote: > On Fri, Jul 21, 2017 at 11:02 PM, Arnd Bergmann wrote: >> diff --git a/mm/kasan/report.c b/mm/kasan/report.c >> index 04bb1d3eb9ec..28fb222ab149 100644 >> --- a/mm/kasan/report.c >> +++ b/mm/kasan/report.c >> @@ -111,6 +111,9 @@ stati

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-25 Thread Johannes Thumshirn
On Fri, Jul 21, 2017 at 02:23:16PM -0500, Jason L Tibbitts III wrote: > I can also apply the debugging patch and try again if that would give > you more useful information. Yes please (on top of the snippet I've sent you last). Thanks a lot, Johannes -- Johannes Thumshirn

Re: [PATCH 2/2] platform/x86: alienware-wmi: fix format string overflow warning

2017-07-25 Thread Arnd Bergmann
On Mon, Jul 24, 2017 at 11:22 AM, Andy Shevchenko wrote: > On Thu, Jul 20, 2017 at 7:00 PM, Arnd Bergmann wrote: >> gcc points out a possible format string overflow for a large value of 'zone': >> >> drivers/platform/x86/alienware-wmi.c: In function 'alienware_wmi_init': >> drivers/platform/x86/a

Re: [PATCH v3] KVM: LAPIC: Fix reentrancy issues with preempt notifiers

2017-07-25 Thread Paolo Bonzini
On 25/07/2017 00:43, Wanpeng Li wrote: > - WARN_ON(!apic->lapic_timer.hv_timer_in_use); > + preempt_disable(); > + /* The preempt notifier has called apic_timer_expired already */ > + if (!apic->lapic_timer.hv_timer_in_use) > + goto out; > WARN_ON(swait_active(&vcp

Re: [PATCH] perf, tools: Make build fail on JSON parse error

2017-07-25 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 05:16:38PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Today, when a JSON file fails parsing the build continues, > but there are no json files built in, which is difficult to debug later. > Make the build stop on a parse error instead. > > v2: Add fixes from Sukadev.

Re: [PATCH] zsmalloc: zs_page_migrate: skip unnecessary loops but not return -EBUSY if zspage is not inuse

2017-07-25 Thread Minchan Kim
On Mon, Jul 24, 2017 at 05:45:35PM +0800, Hui Zhu wrote: > The first version is in [1]. > > Got -EBUSY from zs_page_migrate will make migration > slow (retry) or fail (zs_page_putback will schedule_work free_work, > but it cannot ensure the success). > > I noticed this issue because my Kernel pat

Re: [PATCH 1/2] drm/edid: Add helper to detect whether EDID changed

2017-07-25 Thread Paul Kocialkowski
On Tue, 2017-07-25 at 08:53 +0200, Daniel Vetter wrote: > On Mon, Jul 24, 2017 at 05:54:46PM +0300, Paul Kocialkowski wrote: > > This adds a common drm helper to detect whether the EDID changed > > from > > the last known cached one. This is useful help detect that a monitor > > was > > changed dur

Re: [PATCH v3 01/10] clk: sunxi-ng: Add interface to query or configure MMC timing modes.

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:58:56PM +0800, Chen-Yu Tsai wrote: > Starting with the A83T SoC, Allwinner introduced a new timing mode for > its MMC clocks. The new mode changes how the MMC controller sample and > output clocks are delayed to match chip and board specifics. There are > two controls for

Re: [PATCH v3 02/10] clk: sunxi-ng: Add MP_MMC clocks that support MMC timing modes switching

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:58:57PM +0800, Chen-Yu Tsai wrote: > All of our MMC clocks are of the MP clock type. A few MMC clocks on some > SoCs, such as MMC2 on the A83T, support new/old timing mode switching. > > From a clock rate point of view, when the new timing mode is active. the > output cl

Re: [PATCH] [RESEND] gpu: ipu-v3: add DRM dependency

2017-07-25 Thread Arnd Bergmann
On Mon, Jul 24, 2017 at 10:05 AM, Philipp Zabel wrote: > On Fri, 2017-07-21 at 22:56 +0200, Arnd Bergmann wrote: >> The new PRE/PRG driver code causes a link failure when DRM is disabled: >> >> drivers/gpu/ipu-v3/ipu-pre.o: In function `ipu_pre_configure': >> ipu-pre.c:(.text.ipu_pre_configure+0x1

Re: [PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:58:58PM +0800, Chen-Yu Tsai wrote: > The MMC2 clock supports a new timing mode. When the new mode is active, > the output clock rate is halved. > > This patch sets the feature flag for the new timing mode, and adds > a pre-divider based on the mode bit. > > Signed-off-b

Re: [PATCH 1/2] drm/edid: Add helper to detect whether EDID changed

2017-07-25 Thread Daniel Vetter
On Tue, Jul 25, 2017 at 9:25 AM, Paul Kocialkowski wrote: > On Tue, 2017-07-25 at 08:53 +0200, Daniel Vetter wrote: >> On Mon, Jul 24, 2017 at 05:54:46PM +0300, Paul Kocialkowski wrote: >> > This adds a common drm helper to detect whether the EDID changed >> > from >> > the last known cached one.

Re: [PATCH v3 07/10] ARM: dts: sun8i: a83t: Add MMC controller device nodes

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:59:02PM +0800, Chen-Yu Tsai wrote: > The A83T has 3 MMC controllers. The third one is a bit special, as it > supports a wider 8-bit bus, and a "new timing mode". > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks, Maxime -- Maxime Ripard, Free Electrons

Re: [PATCH 00/13] net: dsa: lan9303: unicast offload, fdb,mdb,STP

2017-07-25 Thread Egil Hjelmeland
On 24. juli 2017 18:54, Florian Fainelli wrote: > > First thing would be to get your patch submissions square, because the > patches do not appear to have been sent as a reply to this cover letter, > and worse yet, they are all appearing with their commit date, which is > highly confusing since th

Re: [PATCH v3 08/10] ARM: dts: sun8i: a83t: Add pingroup for 8-bit eMMC on mmc2

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:59:03PM +0800, Chen-Yu Tsai wrote: > mmc2 can support 8-bit eMMC chips, with a dedicated reset line. > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.

Re: [PATCH v3 09/10] ARM: dts: sun8i: a83t: cubietruck-plus: Enable micro-SD card and eMMC

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:59:04PM +0800, Chen-Yu Tsai wrote: > Now that we support the MMC controllers on the A83T SoC, we can enable > them on some boards. > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engi

Re: [PATCH v3 10/10] ARM: dts: sun8i: a83t: h8homlet: Enable micro-SD card and onboard eMMC

2017-07-25 Thread Maxime Ripard
On Mon, Jul 24, 2017 at 09:59:05PM +0800, Chen-Yu Tsai wrote: > The H8 homlet has a micro-SD card slot connected to mmc0, > and onboard eMMC from FORESEE, connected to mmc2. > > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux

[PATCH v4 9/9] ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd

2017-07-25 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds the pin muxing for classd and enables it. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch

[PATCH v4 3/9] clk: at91: add audio pll clock drivers

2017-07-25 Thread Quentin Schulz
This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes hav

[PATCH v4 5/9] clk: at91: clk-generated: create function to find best_diff

2017-07-25 Thread Quentin Schulz
The way to find the best_diff and do the appropriate process afterwards can be re-used. This patch prepares the driver for an upcoming patch that will allow clk_generated to determine the rate of the audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk/at91/clk-ge

[PATCH v4 8/9] ASoC: atmel-classd: remove aclk clock

2017-07-25 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. Thus, remove all mentions to aclk in classd driver and update macros and variable names. Signed-off-by: Quen

[PATCH v4 7/9] ASoC: atmel-classd: remove aclk clock from DT binding

2017-07-25 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. This binding is used by no board in mainline so it is safe to be modified. Signed-off-by: Quentin Schulz Ac

[PATCH v4 6/9] clk: at91: clk-generated: make gclk determine audio_pll rate

2017-07-25 Thread Quentin Schulz
This allows gclk to determine audio_pll rate and set the parent rate accordingly. However, there are multiple children clocks that could technically change the rate of audio_pll (via gck). With the rate locking, the first consumer to enable the clock will be the one definitely setting the rate of

Re: [PATCH 00/13] net: dsa: lan9303: unicast offload, fdb,mdb,STP

2017-07-25 Thread Egil Hjelmeland
On 24. juli 2017 22:32, David Miller wrote: They are all over the place, over a period of 3 days. I will do "git rebase --ignore-date master" from now on. You must also say in your subject line which of my two GIT networking trees ('net' or 'net-next') your changes are targetting. If you don

[PATCH v4 4/9] ARM: dts: at91: sama5d2: add classd nodes

2017-07-25 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds nodes for the classd device and its generated clock. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sama5d2.dtsi | 39 ++- 1 file changed, 38 insertions(+),

[PATCH v4 1/9] clk: at91: clk-generated: remove useless divisor loop

2017-07-25 Thread Quentin Schulz
The driver requests the current clk rate of each of its parent clocks to decide whether a clock rate is suitable or not. It does not request determine_rate from a parent clock which could request a rate change in parent clock (i.e. there is no parent rate propagation). We know the rate we want (pa

[PATCH v4] KVM: LAPIC: Fix reentrancy issues with preempt notifiers

2017-07-25 Thread Wanpeng Li
From: Wanpeng Li Preempt can occur in the preemption timer expiration handler: CPU0CPU1 preemption timer vmexit handle_preemption_timer(vCPU0) kvm_lapic_expired_hv_timer hv_timer_is_use == true sched_out sched_in

[PATCH v4 2/9] dt-bindings: clk: at91: add audio plls to the compatible list

2017-07-25 Thread Quentin Schulz
This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes hav

[PATCH v4 0/9] add support for Sama5d2 audio PLLs and enable ClassD

2017-07-25 Thread Quentin Schulz
This patch series adds support for the audio PLLs and enables ClassD that can be found in ATMEL Sama5d2 SoC. There are two audio PLLs (PMC and PAD) that shares the same parent (FRAC). FRAC can output between 620 and 700MHz and only multiply the rate of its parent. The two audio PLLs then divide th

Re: [PATCH v3] KVM: LAPIC: Fix reentrancy issues with preempt notifiers

2017-07-25 Thread Wanpeng Li
2017-07-25 15:25 GMT+08:00 Paolo Bonzini : > On 25/07/2017 00:43, Wanpeng Li wrote: >> - WARN_ON(!apic->lapic_timer.hv_timer_in_use); >> + preempt_disable(); >> + /* The preempt notifier has called apic_timer_expired already */ >> + if (!apic->lapic_timer.hv_timer_in_use) >> +

Re: [PATCH 1/4] ARM: sun9i: Support SMP on A80 with Multi-Cluster Power Management (MCPM)

2017-07-25 Thread Maxime Ripard
Hi Chen-Yu, On Tue, Jul 25, 2017 at 01:09:16PM +0800, Chen-Yu Tsai wrote: > The A80 is a big.LITTLE SoC with 1 cluster of 4 Cortex-A7s and > 1 cluster of 4 Cortex-A15s. > > This patch adds support to bring up the second cluster and thus all > cores using the common MCPM code. Core/cluster power d

[PATCH] kselftest/timers: fix build failure

2017-07-25 Thread Santosh Sivaraj
"message" parameter was not passed to ksft_exit_skip. Signed-off-by: Santosh Sivaraj --- tools/testing/selftests/timers/freq-step.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timers/freq-step.c b/tools/testing/selftests/timers/freq-step.c index e

Re: [PATCH 13/13] net: dsa: lan9303: lan9303_port_mdb_del remove port 0

2017-07-25 Thread Egil Hjelmeland
On 24. juli 2017 18:57, Florian Fainelli wrote: On 07/20/2017 06:57 AM, Egil Hjelmeland wrote: Workaround for dsa_switch_mdb_add adding CPU port to group, but forgetting to remove it: Should not we move this logic one layer above into DSA then such that insertions and removals are strictly sym

[PATCH v1 2/2] spi: imx: add SPI_NO_CS support

2017-07-25 Thread Oleksij Rempel
To run spi-loopback-tests on HW without modifications, we need to disable Chip Select. This should avoid surprising side effects for SPI devices by testing patterns. Signed-off-by: Oleksij Rempel --- drivers/spi/spi-imx.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v1 1/2] spi: loopback-test: implement testing with no CS

2017-07-25 Thread Oleksij Rempel
To run spi-loopback-tests on HW without modifications, we need to disable Chip Select. This should avoid surprising side effects for SPI devices by testing patterns. Signed-off-by: Oleksij Rempel --- drivers/spi/spi-loopback-test.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(

Re: [PATCH 1/2] drm/edid: Add helper to detect whether EDID changed

2017-07-25 Thread Paul Kocialkowski
On Tue, 2017-07-25 at 09:34 +0200, Daniel Vetter wrote: > On Tue, Jul 25, 2017 at 9:25 AM, Paul Kocialkowski > wrote: > > On Tue, 2017-07-25 at 08:53 +0200, Daniel Vetter wrote: > > > On Mon, Jul 24, 2017 at 05:54:46PM +0300, Paul Kocialkowski wrote: > > > > This adds a common drm helper to detect

Re: [PATCH v4 2/2] ARM: dts: imx: add CX9020 Embedded PC device tree

2017-07-25 Thread Shawn Guo
On Fri, Jul 21, 2017 at 06:06:40AM +0200, linux-kernel-...@beckhoff.com wrote: > From: Patrick Bruenn > > The CX9020 differs from i.MX53 Quick Start Board by: > - use uart2 instead of uart1 > - DVI-D connector instead of VGA > - no audio > - no SATA connector > - CCAT FPGA connected to emi > - en

Re: [PATCH 07/11] mfd: Drop unnecessary static

2017-07-25 Thread Lee Jones
On Sat, 15 Jul 2017, Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any possible use. Thus, the static has no benefit. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @bad exists@ > position

[PATCH v3 0/3] Introduce USB charger support in USB phy

2017-07-25 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not b

[PATCH v3 1/3] include: uapi: usb: Introduce USB charger type and state definition

2017-07-25 Thread Baolin Wang
Introducing USB charger type and state definition can help to support USB charging which will be added in USB phy core. Signed-off-by: Baolin Wang --- include/uapi/linux/usb/charger.h | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 include/uapi/linux/

[PATCH v3 2/3] usb: phy: Add USB charger support

2017-07-25 Thread Baolin Wang
This patch introduces the usb charger support based on usb phy that makes an enhancement to a power driver. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from the extcon device state change, the usb charger will report to power user to set th

[PATCH v3 3/3] power: wm831x_power: Support USB charger current limit management

2017-07-25 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others. Signed-off-

Re: [PATCH v5 1/5] mm: add vm_insert_mixed_mkwrite()

2017-07-25 Thread Christoph Hellwig
On Tue, Jul 25, 2017 at 01:14:00AM +0300, Kirill A. Shutemov wrote: > I guess it's up to filesystem if it wants to reuse the same spot to write > data or not. I think your assumptions works for ext4 and xfs. I wouldn't > be that sure for btrfs or other filesystems with CoW support. Or XFS with ref

Re: [PATCH v2] arm64: dts: ls1012a: add USB host controller nodes

2017-07-25 Thread Shawn Guo
On Fri, Jul 14, 2017 at 02:49:09PM +0800, Ran Wang wrote: > LS1012A has one USB 3.0(DWC3) controller and > one USB 2.0 controller. > > Signed-off-by: Ran Wang Applied, thanks.

Re: [PATCH] [RESEND] gpu: ipu-v3: add DRM dependency

2017-07-25 Thread Philipp Zabel
On Tue, 2017-07-25 at 09:33 +0200, Arnd Bergmann wrote: > On Mon, Jul 24, 2017 at 10:05 AM, Philipp Zabel > wrote: > > On Fri, 2017-07-21 at 22:56 +0200, Arnd Bergmann wrote: > >> The new PRE/PRG driver code causes a link failure when DRM is disabled: > >> > >> drivers/gpu/ipu-v3/ipu-pre.o: In fu

Re: [PATCH v1] clk: rockchip: rk3128: modify rk3128 clk driver to support rk3126

2017-07-25 Thread Heiko Stübner
Hi Elaine, Am Dienstag, 25. Juli 2017, 15:16:36 CEST schrieb Elaine Zhang: > rk3128 and rk3126 have some gate registers describe differences. > So need to make some distinctions. > > Signed-off-by: Elaine Zhang > --- > drivers/clk/rockchip/clk-rk3128.c | 59 > ++

Re: [PATCH v4 2/2] x86/amd: Fixup cpu_core_id for family17h downcore configuration

2017-07-25 Thread Borislav Petkov
On Tue, Jul 25, 2017 at 01:02:49PM +0700, Suravee Suthikulpanit wrote: > Actually, this commit change how we derive the cpu_core_id fro family17h to > use CPUID_Fn801E_EBX instead of from APIC ID for family17h and later. Is the CPUID info correct also for downcored, MCM configurations? If so,

Re: [PATCH v2 2/5] nvmem: core: Add nvmem_cell_read_u32

2017-07-25 Thread Shawn Guo
On Fri, Jul 14, 2017 at 05:11:07PM +0300, Leonard Crestez wrote: > This function does a quick and easy read of an u32 value without any > kind of resource management code on the consumer side. > > Signed-off-by: Leonard Crestez Reviewed-by: Shawn Guo

Re: [PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-07-25 Thread Shawn Guo
On Fri, Jul 14, 2017 at 05:11:08PM +0300, Leonard Crestez wrote: > On newer imx SOCs accessing OCOTP directly is wrong because the ocotp clock > needs to be enabled first. Add support for reading those same values through > the nvmem API instead. > > The older path is preserved for compatibility w

Re: [PATCH v2 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-07-25 Thread Daniel Vetter
On Tue, Jul 25, 2017 at 08:57:34AM +0200, Maxime Ripard wrote: > Hi Daniel, > > On Thu, Jul 20, 2017 at 08:46:28PM +0200, Daniel Vetter wrote: > > On Thu, Jul 20, 2017 at 03:01:16PM +0200, Maxime Ripard wrote: > > > The current drm_atomic_helper_commit_tail helper works only if the CRTC is > > > a

[PATCH 1/3] usb: mtu3: handle delayed status of the control transfer

2017-07-25 Thread Chunfeng Yun
Add the delayed status handling. This is used by mass storage etc to gain some extra time to setup its internal status before it can proceed further requests, and once the gadget is ready, it will enqueue an empty packet which is used for synchronization. The issue may happen on some FGPA platform

[PATCH 3/3] usb: mtu3: fix ip sleep auto-exit issue when enable DRD mode

2017-07-25 Thread Chunfeng Yun
Ip sleep will auto exit if vbus comparison circuit of u2 phy is disabled when system tries to enter suspend mode, so get vbus-valid status from mac but not from u2 phy when enable DRD mode to fix the issue. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_hw_regs.h |4 +++- 1 file chang

[PATCH 2/3] usb: mtu3: clear u1/u2_enable to 0 in mtu3_gadget_reset

2017-07-25 Thread Chunfeng Yun
when the device is reset by host, the status of u1_enable and u2_enable should also be restored to default value. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_gadget.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.

Re: [PATCH v2 4/5] ARM: dts: imx6sx: Use nvmem-cells for tempmon

2017-07-25 Thread Shawn Guo
On Fri, Jul 14, 2017 at 05:11:09PM +0300, Leonard Crestez wrote: > On imx6sx accessing OCOTP directly is wrong because the ocotp clock > needs to be enabled first. Use the nvmem-cells binding instead. > > This requirement does not apply to older imx6qdl chips because there the > ocotp access clock

Re: [PATCH 5/5] arm64: dts: msm8996: Add QFPROM node

2017-07-25 Thread Vivek Gautam
On Tue, Jul 25, 2017 at 12:00 PM, Bjorn Andersson wrote: > On Mon 24 Jul 23:09 PDT 2017, Vivek Gautam wrote: > >> Hi Bjorn, >> >> >> On Tue, Jul 25, 2017 at 11:17 AM, Bjorn Andersson >> wrote: >> > From: Vivek Gautam >> > >> > Signed-off-by: Vivek Gautam >> > Signed-off-by: Bjorn Andersson >>

Re: [PATCH 2/3] lib/int_sqrt: Optimize initial value compute

2017-07-25 Thread Peter Zijlstra
On Mon, Jul 24, 2017 at 10:35:56AM -0700, Linus Torvalds wrote: > Ack. You have numbers, it's all good. Thanks! > Except I'd still want you to comment on why you cared and about which > piece of your upcoming code this is going to matter for, ok? I did an RFC here: https://lkml.kernel.org/r/

Re: [PATCH 1/2] drm/edid: Add helper to detect whether EDID changed

2017-07-25 Thread Daniel Vetter
On Tue, Jul 25, 2017 at 10:58:55AM +0300, Paul Kocialkowski wrote: > On Tue, 2017-07-25 at 09:34 +0200, Daniel Vetter wrote: > > On Tue, Jul 25, 2017 at 9:25 AM, Paul Kocialkowski > > wrote: > > > On Tue, 2017-07-25 at 08:53 +0200, Daniel Vetter wrote: > > > > On Mon, Jul 24, 2017 at 05:54:46PM +0

Re: [PATCH] ARM: OMAP2+: omap_device: drop broken RPM status update from suspend_noirq

2017-07-25 Thread Johan Hovold
On Mon, Jul 24, 2017 at 05:16:02PM -0500, Grygorii Strashko wrote: > On 07/24/2017 04:52 AM, Johan Hovold wrote: > > Since commit a8636c89648a ("PM / Runtime: Don't allow to suspend a > > device with an active child"), which went into 4.10, it is no longer > > permitted to set RPM_SUSPENDED state f

Re: [PATCH] drm: tegra: add CONFIG_OF dependency

2017-07-25 Thread Jon Hunter
On 21/07/17 17:13, Arnd Bergmann wrote: > Without CONFIG_OF, we can run into a build error: > > drivers/gpu/drm/tegra/dpaux.c:378:20: error: > 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function); > did you mean 'pinconf_generic_params'? > .dt_node_to_map = pinconf_gener

Re: [PATCH 1/4] gpio: tegra: Remove unnecessary check

2017-07-25 Thread Jon Hunter
On 24/07/17 15:55, Thierry Reding wrote: > From: Thierry Reding > > of_device_get_match_data() can never return NULL, therefore the check > for NULL values is unnecessary. > > Signed-off-by: Thierry Reding > --- > drivers/gpio/gpio-tegra.c | 11 ++- > 1 file changed, 2 insertions(+),

Re: [PATCH 2/4] gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies

2017-07-25 Thread Jon Hunter
On 24/07/17 15:55, Thierry Reding wrote: > From: Thierry Reding > > Rather than manually compute the size of an array, pass the number and > element size to kcalloc(). > > Signed-off-by: Thierry Reding > --- > drivers/gpio/gpio-tegra.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH] KVM: VMX: Fix losing blocking by NMI in the guest interruptibility-state field

2017-07-25 Thread Wanpeng Li
2017-07-14 19:36 GMT+08:00 Paolo Bonzini : > On 14/07/2017 11:39, Wanpeng Li wrote: >> However, commit 0be9c7a89f750 (KVM: VMX: set "blocked by NMI" flag if EPT >> violation happens during IRET from NMI) just fixes the fault due to EPT >> violation. >> This patch tries to fix the fault due to the

[ Linux 4.4 stable ] missing 'printk: set may_schedule for some of console_trylock() callers'

2017-07-25 Thread Michael Wang
Hi, greg k-h During our testing with 4.4.73 we got soft lockup like: NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [systemd-udevd:856] ... Call Trace: [] vprintk_emit+0x319/0x4a0 [] printk_emit+0x33/0x3b [] ? simple_strtoull+0x2c/0x50 [] devkmsg_write+0xaa/0x100 [] ? vprintk

Re: [RFC Part2 PATCH v3 02/26] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-07-25 Thread Kamil Konieczny
Hi, minor misspelling, On 24.07.2017 22:02, Brijesh Singh wrote: > Platform Security Processor (PSP) is part of AMD Secure Processor (AMD-SP), > PSP is a dedicated processor that provides the support for key management > commands in a Secure Encrypted Virtualiztion (SEV) mode, along with > softwa

Re: [PATCH 3/4] gpio: tegra: Fix checkpatch warnings

2017-07-25 Thread Jon Hunter
On 24/07/17 15:55, Thierry Reding wrote: > From: Thierry Reding > > Fix a couple of checkpatch warnings, such as complaints about bare > unsigned being used (instead of unsigned int) and missing blank lines > after declarations. > > Signed-off-by: Thierry Reding > --- > drivers/gpio/gpio-teg

Re: [PATCH 1/4] ARM: sun9i: Support SMP on A80 with Multi-Cluster Power Management (MCPM)

2017-07-25 Thread Chen-Yu Tsai
default ARCH_SUNXI On Tue, Jul 25, 2017 at 3:47 PM, Maxime Ripard wrote: > Hi Chen-Yu, > > On Tue, Jul 25, 2017 at 01:09:16PM +0800, Chen-Yu Tsai wrote: >> The A80 is a big.LITTLE SoC with 1 cluster of 4 Cortex-A7s and >> 1 cluster of 4 Cortex-A15s. >> >> This patch adds support to bring

Re: [zram] ltp inspired explosion - master v4.13-rc1-3-g87b2c3fc6317

2017-07-25 Thread Mike Galbraith
On Tue, 2017-07-25 at 15:26 +0900, Minchan Kim wrote: > Hi, > > On Mon, Jul 24, 2017 at 08:17:01PM +0200, Mike Galbraith wrote: > > Now bisected and verified via revert, the culprit is: > > > > cf8e0fedf078 mm/zsmalloc: simplify zs_max_alloc_size handling > > > > Reproducer: ltp::testcases/bin/z

Re: [PATCH 1/2] staging: net: wireless: add ESP8089 WiFi driver

2017-07-25 Thread Kalle Valo
(adding linux-wireless) Quentin Schulz writes: > Hi Marcel, > > On 21/07/2017 18:52, Marcel Holtmann wrote: >> Hi Quentin, >> > The Espressif ESP8089 WiFi chips can be often found in cheap tablets. > There is one in A23 Polaroid tablets for example. > > The chip is often embedde

Re: [PATCH 12/13] net: dsa: lan9303: Added "stp_enable" sysfs attribute

2017-07-25 Thread Egil Hjelmeland
On 24. juli 2017 18:55, Florian Fainelli wrote: On 07/20/2017 06:42 AM, Egil Hjelmeland wrote: Must be set to 1 by user space when STP is used on the lan9303. If bridging without local STP, leave at 0, so external STP BPDUs are forwarded. Hopefully the kernel can be improved so the driver can h

Re: [PATCH 11/13] net: dsa: lan9303: Added "alr_dump" sysfs port attribute

2017-07-25 Thread Egil Hjelmeland
On 24. juli 2017 18:54, Florian Fainelli wrote: On 07/20/2017 01:49 AM, Egil Hjelmeland wrote: Added read only file /sys/class/net//lan9303/alr_dump, that output 168 first ALR entires. Currently "bridge fdb show" does not include the CPU port, while "alr_dump" list all three ports per entry.

Re: [PATCH v2 6/6] perf: ARM DynamIQ Shared Unit PMU support

2017-07-25 Thread Jonathan Cameron
On Mon, 24 Jul 2017 16:44:51 +0100 Suzuki K Poulose wrote: > Hi Jonathan, > > > On 24/07/17 15:50, Jonathan Cameron wrote: > > On Mon, 24 Jul 2017 11:29:21 +0100 > > Suzuki K Poulose wrote: > > > >> Add support for the Cluster PMU part of the ARM DynamIQ Shared Unit (DSU). > >> The DSU integ

Re: [PATCH] drm/amdgpu: fix spelling mistake: "suuport"-> "support"

2017-07-25 Thread Christian König
Am 25.07.2017 um 00:45 schrieb Colin King: From: Colin Ian King Trivial fix to spelling mistake in WARN_ONCE message Signed-off-by: Colin Ian King Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v7 06/16] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-07-25 Thread Peter Zijlstra
On Tue, Jul 25, 2017 at 03:29:45PM +0900, Byungchul Park wrote: > _No_, as I already said. > > > (/me copy paste from older email) > > > > That gives: > > > > xhist[ 0] = A1 > > xhist[ 1] = B1 > > ... > > xhist[63] = B63 > > > > then we wrap and have: > > > >

Re: [PATCH] KVM: VMX: Fix losing blocking by NMI in the guest interruptibility-state field

2017-07-25 Thread Paolo Bonzini
On 25/07/2017 10:27, Wanpeng Li wrote: > 2017-07-14 19:36 GMT+08:00 Paolo Bonzini : >> On 14/07/2017 11:39, Wanpeng Li wrote: >>> However, commit 0be9c7a89f750 (KVM: VMX: set "blocked by NMI" flag if EPT >>> violation happens during IRET from NMI) just fixes the fault due to EPT >>> violation. >>>

Re: [PATCH 4/7] gpio: acpi: Fixup kerneldoc

2017-07-25 Thread Mika Westerberg
On Mon, Jul 24, 2017 at 06:13:47PM +0300, Andy Shevchenko wrote: > On Mon, 2017-07-24 at 16:57 +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Fix up a parameter description to match the code and fix markup for a > > constant to prettify output. > > > > Acked-by: Andy Shevchenko

Re: bfq/ext4 disk IO hangs forever on resume

2017-07-25 Thread Jan Kara
Hello, On Sun 25-06-17 23:07:56, Alex Xu wrote: > I get hangs when resuming when using bfq-mq with ext4 on 4.12-rc6+ > (currently a4fd8b3accf43d407472e34403d4b0a4df5c0e71). > > Steps to reproduce: > 1. boot computer > 2. systemctl suspend > 3. wait few seconds > 4. press power button > 5. type "l

Re: ERROR: "gen_pool_virt_to_phys" [drivers/staging/vboxvideo/vboxvideo.ko] undefined!

2017-07-25 Thread Hans de Goede
Hi, I've just send a patch titled: "[PATCH] staging: vboxvideo: select GENERIC_ALLOCATOR" Fixing this. Regards, Hans On 25-07-17 06:51, kbuild test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 520eccdfe187591a51ea9ab4c1a024ae4d0f68d

Re: v4.13-rc2: usb mouse stopped working?

2017-07-25 Thread Mikael Pettersson
Jiri Kosina writes: > On Mon, 24 Jul 2017, Pavel Machek wrote: > > > On thinkpad x220, USB mouse stopped working in v4.13-rc2. v4.12 was > > ok, iirc. > > > > Now, USB mouse is so common hw that I may have something wrong in my > > config...? But I did not change anything there. > > Wel

v4.12: register_dcache lockdep problem on boot

2017-07-25 Thread Pavel Machek
Hi! I get this one during boot... Pavel [0.00] Linux version 4.12.0+ (pavel@duo) (gcc version 4.9.2 (Debian 4.9.2-10) ) #411 SMP Tue Jul 25 09:04:04 CEST 2017 [0.00] Disabled fast string operations [0.00] x

Re: [PATCH] ARM: OMAP2+: omap_device: drop broken RPM status update from suspend_noirq

2017-07-25 Thread Tony Lindgren
* Johan Hovold [170724 02:53]: > Since commit a8636c89648a ("PM / Runtime: Don't allow to suspend a > device with an active child"), which went into 4.10, it is no longer > permitted to set RPM_SUSPENDED state for a device with active children > (unless power.ignore_children is set). > > This spe

Re: [PATCH] efifb: allow user to disable write combined mapping.

2017-07-25 Thread Bartlomiej Zolnierkiewicz
On Tuesday, July 25, 2017 02:00:00 PM Dave Airlie wrote: > On 19 July 2017 at 00:34, Peter Jones wrote: > > On Tue, Jul 18, 2017 at 04:09:09PM +1000, Dave Airlie wrote: > >> This patch allows the user to disable write combined mapping > >> of the efifb framebuffer console using an nowc option. > >

Re: [PATCH] ARM: OMAP2+: omap_device: drop broken RPM status update from suspend_noirq

2017-07-25 Thread Tony Lindgren
* Tony Lindgren [170725 00:11]: > * Grygorii Strashko [170724 15:17]: > > My personal thought here is that removing of pm_runtime_set_active() will > > not fix > > root cause of the problem, but rather hide it :( and, probably, real fix > > will be > > to update USB framework to ensure that al

Re: [PATCH 3/3] soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC

2017-07-25 Thread Matthias Brugger
On 07/21/2017 05:57 AM, sean.w...@mediatek.com wrote: From: Chen Zhong Add SCPSYS power domain driver for MT7622 SoC having four power domains which are respectively ETHSYS for Ethernet including embedded switch, WBSYS for WIFI and Bluetooth, HIF0SYS for PCI-E and SATA, and HIF1SYS for USB. T

[PATCH RFC] tty: don't force !TTYB_NORMAL flip buffers if not required

2017-07-25 Thread Jeremy Kerr
In change acc0f67f30, we introduced flip buffers that skipped allocation of the flags buffer for characters received with TTY_NORMAL flags. However, the slow path of tty_insert_flip_char() calls tty_insert_flip_string_flags() (providing a flag buffer pointer), which forces the buffer code to alloc

Re: [PATCH 3/5] iommu/arm-smmu-v3: add IOMMU_CAP_BYPASS to the ARM SMMUv3 driver

2017-07-25 Thread Anup Patel
On Tue, Jul 25, 2017 at 12:36 AM, Alex Williamson wrote: > On Mon, 24 Jul 2017 18:23:20 +0100 > Robin Murphy wrote: > >> On 24/07/17 18:16, Alex Williamson wrote: >> > On Thu, 20 Jul 2017 12:17:12 +0100 >> > Robin Murphy wrote: >> > >> >> On 20/07/17 10:10, Will Deacon wrote: >> >>> On Thu, Jul

Re: [PATCHv4 1/3] dt-bindings: input: add pwm-vibrator

2017-07-25 Thread Sebastian Reichel
Hi, On Mon, Jul 24, 2017 at 09:20:17PM +0200, Pavel Machek wrote: > On Fri 2017-07-14 12:01:49, Sebastian Reichel wrote: > > Add DT binding document for PWM controlled vibrator devices. > > > > Signed-off-by: Sebastian Reichel > > Acked-by: Pavel Machek > > > index ..09145d18491d

Re: [PATCH 3/4] ACPI: Introduce DMA ranges parsing

2017-07-25 Thread Lorenzo Pieralisi
On Mon, Jul 24, 2017 at 08:42:15PM +0200, Rafael J. Wysocki wrote: > On Mon, Jul 24, 2017 at 12:40 PM, Lorenzo Pieralisi > wrote: > > On Sat, Jul 22, 2017 at 12:15:42AM +0200, Rafael J. Wysocki wrote: > > > > [cut] > > > > >> > + return -EINVAL; > >> > + } > >> > + > >> > + ret = a

[PATCH 1/5] dt-bindings: rockchip-thermal: Support the RK3328 SoC compatible

2017-07-25 Thread Rocky Hao
attempt to new compatible for thermal founding on RK3328 SoC. Change-Id: Ie6f6d7b4e545891a0035851a923c0412f584140c Signed-off-by: Rocky Hao --- Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/the

[PATCH 4/5] arm64: dts: rockchip: add thermal nodes for rk3328 SoC

2017-07-25 Thread Rocky Hao
add thermal zone and dynamic CPU power coefficients for rk3328 Change-Id: I227468506c0b978a0fd4dd9596631e026743910e Signed-off-by: Rocky Hao --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 43 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/rock

[PATCH 2/5] thermal: rockchip: Support the RK3328 SOC in thermal driver

2017-07-25 Thread Rocky Hao
RK3328 SOC has one Temperature Sensor for CPU. Change-Id: I176c76bae1801d815a513986cfefcb55272c69a8 Signed-off-by: Rocky Hao --- drivers/thermal/rockchip_thermal.c | 65 ++ 1 file changed, 65 insertions(+) diff --git a/drivers/thermal/rockchip_thermal.c b/dr

[PATCH 3/5] arm64: dts: rockchip: add tsadc node for rk3328 SoC

2017-07-25 Thread Rocky Hao
add tsadc needed main information for rk3328 SoC. 5Hz is the max clock rate supported by tsadc module. Change-Id: I2429c24edccd4c797e2f4577151be76372adfbe5 Signed-off-by: Rocky Hao --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 20 1 file changed, 20 insertions(+) diff

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-25 Thread Kirill A. Shutemov
On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > Xen PV guests will never run with 5-level-paging enabled. So I guess you > can drop the complete if (IS_ENABLED(CONFIG_X86_5LEVEL)) {} block. There is more code to drop from mmu_pv.c. But while there, I thought if with boot-time 5-l

[PATCH 0/5] thermal: rockchip: add tsadc support in thermal driver and IPA thermal control for rk3328 in dts

2017-07-25 Thread Rocky Hao
This series patches add the tsadc support in thermal driver and in devicetree for rk3328. Also add thermal control with Intelligent Power Allocation (IPA) policy by default. Please refer to https://developer.arm.com/open-source/intelligent-power-allocation for more information about IPA. Rock

  1   2   3   4   5   6   7   8   9   10   >