[PATCH 4/7] ASoC: cs42l51: add support of master mode

2019-04-03 Thread Olivier Moysan
Add support of master mode for cs42l51 cirrus audio codec. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 9b3ffa16b204..

Re: [PATCH] usb: musb: Force-disable pullup on shutdown

2019-04-03 Thread Bin Liu
On Tue, Apr 02, 2019 at 09:58:42PM +0200, Paul Cercueil wrote: > Hi, > > Le lun. 1 avril 2019 à 20:20, Bin Liu a écrit : > >On Mon, Apr 01, 2019 at 07:46:22PM +0200, Paul Cercueil wrote: > >> > >> > >> Le lun. 1 avril 2019 à 19:17, Bin Liu a écrit : > >> >On Thu, Mar 21, 2019 at 03:42:46PM +0100

[PATCH 3/7] ASoC: cs42l51: add reset management

2019-04-03 Thread Olivier Moysan
Manage cs42l51 audio codec reset pin. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index f43eb51d2d8d..9b3ffa16b204 100644 --- a/sound/soc/codecs/cs42l51.c

[PATCH 7/7] ASoC: cs42l51: add adc volume control

2019-04-03 Thread Olivier Moysan
Add ADC boost volume control for CS42L51 codec. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 25f17c0051e4..991e4ebd7a04 100644 --- a/sound/soc/codecs/cs42l51.c +++

[PATCH 1/7] ASoC: dt-bindings: update cs42l51 bindings

2019-04-03 Thread Olivier Moysan
Add compatible, reg, regulator, and reset to Cirrus CS42L51 audio codec bindings. Signed-off-by: Olivier Moysan --- Documentation/devicetree/bindings/sound/cs42l51.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/cs42l51.txt b/Doc

[PATCH 5/7] ASoC: cs42l51: change mic bias DAPM

2019-04-03 Thread Olivier Moysan
Use SND_SOC_DAPM_SUPPLY for mic bias DAPM instead of deprecated SND_SOC_DAPM_MICBIAS. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 397b68901d1c..332

[PATCH 6/7] ASoC: cs42l51: add power management

2019-04-03 Thread Olivier Moysan
Add sleep PM callbacks to support system low power modes. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51-i2c.c | 7 ++- sound/soc/codecs/cs42l51.c | 122 + sound/soc/codecs/cs42l51.h | 2 + 3 files changed, 129 insertions(+), 2 dele

Re: [PATCH 1/2] staging:iio:accel:adis16203: add SPDX license identifier tag

2019-04-03 Thread Greg Kroah-Hartman
On Wed, Apr 03, 2019 at 11:41:28AM +0200, Nicholas Mc Guire wrote: > Pop in the SPDX tag as the license is clearly indicated > as GPL V2 or later this should also be indicated with a SPDX license > identifier tag. > > Signed-off-by: Nicholas Mc Guire I sent patches yesterday to fix up all of dri

Re: [PATCH] tty: Add NULL TTY driver

2019-04-03 Thread Greg KH
On Wed, Apr 03, 2019 at 01:33:27PM +0200, Vincent Whitchurch wrote: > If no console driver is enabled (or if a non-present driver is selected > with something like console=null in an attempt to disable the console), > opening /dev/console errors out, and init scripts and other userspace > code that

Re: [PATCH v5] HID: intel-ish-hid: ISH firmware loader client driver

2019-04-03 Thread Rushikesh S Kadam
On Wed, Apr 03, 2019 at 03:11:02PM +0200, Jiri Kosina wrote: > On Tue, 2 Apr 2019, Rushikesh S Kadam wrote: > > > This driver adds support for loading Intel Integrated > > Sensor Hub (ISH) firmware from host file system to ISH > > SRAM and start execution. > > > > At power-on, the ISH subsystem s

Re: [PATCH v4 0/5] PCI: dwc: Support remove

2019-04-03 Thread Vidya Sagar
Verified it with Tegra194 PCIe host controller driver, but had to do EXPORT_SYMBOL_GPL() for a bunch of APIs. I'll push changes to export all those APIs as part of Tegra194 PCIe driver patch series. Thanks Vidya Sagar On 4/1/2019 7:20 PM, Lorenzo Pieralisi wrote: On Fri, Mar 29, 2019 at 11:55:

[GIT PULL] HID fixes

2019-04-03 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus to receive HID fixes: = - build dependency fix for hid-asus from Arnd Bergmann - addition of omitted mapping of _ASSISTANT key from Dmitry Torokhov - race condition fix in hid-debug inftastructure

Re: [PATCH 0/4] timers: Fix and improve tracing and documentation

2019-04-03 Thread Peter Zijlstra
On Thu, Mar 21, 2019 at 01:09:17PM +0100, Anna-Maria Gleixner wrote: > Hi, > > the patch series was developed during investigating timer problems and > timer improvements. It contains a struct documentation fix in tick-sched > and a fixes as well as an improvement for timer tracing. > > Thanks, >

[PATCH 0/3] Add support for STPMIC1

2019-04-03 Thread Pascal PAILLET-LME
Add support for STPMIC1 on: - stm32mp157c ed1 board - stm32mp157a dk1 board - arm multi_v7_defconfig Pascal Paillet (3): ARM: dts: stm32: add stpmic1 support on stm32mp157c ed1 board ARM: dts: stm32: add stpmic1 support on stm32mp157a dk1 board ARM: multi_v7_defconfig: Enable support for STP

[PATCH 3/3] ARM: multi_v7_defconfig: Enable support for STPMIC1

2019-04-03 Thread Pascal PAILLET-LME
STPMIC1 is a PMIC from STMicroelectronics. The STPMIC1 integrates 10 regulators, 3 power switches, a watchdog and an input for a power on key. Signed-off-by: Pascal Paillet --- arch/arm/configs/multi_v7_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/multi_v7_d

[PATCH 1/3] ARM: dts: stm32: add stpmic1 support on stm32mp157c ed1 board

2019-04-03 Thread Pascal PAILLET-LME
This patch adds stpmic1 support on stm32mp157c ed1 board. The STPMIC1 is a PMIC from STMicroelectronics. The STPMIC1 integrates 10 regulators, 3 power switches, a watchdog and an input for a power on key. Signed-off-by: Pascal Paillet --- arch/arm/boot/dts/stm32mp157c-ed1.dts | 155 +

[PATCH v1 01/12] ASoC: rockchip: pdm: fix regmap_ops hang issue

2019-04-03 Thread Sugar Zhang
This is because set_fmt ops maybe called when PD is off, and in such case, regmap_ops will lead system hang. enale PD before doing regmap_ops. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c

[PATCH v1 0/12] Patches to update pdm for rockchip socs

2019-04-03 Thread Sugar Zhang
These patches to add support pdm for rk322x/rk1808/rk3308/px30 socs and fix some issues. Sugar Zhang (12): ASoC: rockchip: pdm: fix regmap_ops hang issue ASoC: rockchip: pdm: using left justified store mode ASoC: rockchip: pdm: add default regs ASoC: rockchip: pdm: optimize clear logic

[PATCH 2/3] ARM: dts: stm32: add stpmic1 support on stm32mp157a dk1 board

2019-04-03 Thread Pascal PAILLET-LME
This patch adds stpmic1 support on stm32mp157a dk1 board. The STPMIC1 is a PMIC from STMicroelectronics. The STPMIC1 integrates 10 regulators, 3 power switches, a watchdog and an input for a power on key. Signed-off-by: Pascal Paillet --- arch/arm/boot/dts/stm32mp157a-dk1.dts | 157 +

[PATCH v1 02/12] ASoC: rockchip: pdm: using left justified store mode

2019-04-03 Thread Sugar Zhang
This patch set left justified store mode default. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 1 + sound/soc/rockchip/rockchip_pdm.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 8a2e3b

[PATCH v1 03/12] ASoC: rockchip: pdm: add default regs

2019-04-03 Thread Sugar Zhang
This patch add default regs value for controller. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 360ebf2..8c1be59 100644 --- a/sound/soc/roc

[PATCH v1 04/12] ASoC: rockchip: pdm: optimize clear logic

2019-04-03 Thread Sugar Zhang
There is no need to reset controller every time, do this once in pdm_probe. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 8c1b

[PATCH] platform/chrome: cros_ec_debugfs: Remove dev_warn when console log is not supported

2019-04-03 Thread Enric Balletbo i Serra
If the debugfs interface is enabled, every time a CrOS device is instantiated a warning like this can appear for every probed device. "device does not support reading the console log" The warning message adds nothing, rather it is source of confusion as this is expected on some cases. For exampl

Actualiza tu cuenta

2019-04-03 Thread Administrador de cuenta
Web de correo electrónico de administración de notificaciones Este mensaje es de nuestro centro de mensajería Web Admin a todos nuestros propietarios de cuentas de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web. Su cuenta de correo electrónico se actual

Re: [4/7] cpufreq: maple: Checking implementation of maple_cpufreq_init()

2019-04-03 Thread Markus Elfring
> @@ -210,7 +210,7 @@ static int __init maple_cpufreq_init(void) >*/ > valp = of_get_property(cpunode, "clock-frequency", NULL); > if (!valp) > - return -ENODEV; > + goto bail_noprops; > max_freq = (*valp)/1000; > maple_cpu_freqs[0].frequency

[PATCH] platform/chrome: cros_ec_proto: Also return invalid command in cros_ec_cmd_xfer_status

2019-04-03 Thread Enric Balletbo i Serra
The commit 9798ac6d32c1 ("mfd: cros_ec: Add cros_ec_cmd_xfer_status() helper") was introduced to remove duplicated code in several users of the cros_ec_cmd_xfer function. The idea behind that commit is mask all the EC errors as protocol error when the EC command fails, what is really useful because

Re: [PATCH 4.4 078/131] PM / Hibernate: Call flush_icache_range() on pages restored in-place

2019-04-03 Thread Greg Kroah-Hartman
On Wed, Apr 03, 2019 at 12:00:51PM +0100, Catalin Marinas wrote: > On Mon, Apr 01, 2019 at 10:39:18PM +0200, Pavel Machek wrote: > > On Mon 2019-04-01 19:02:28, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me > > > know. > > > > > > --

Re: [RFC PATCH v4 4/8] KVM:VMX: Pass through host CET related MSRs to Guest.

2019-04-03 Thread Yang Weijiang
On Tue, Apr 02, 2019 at 01:27:33PM -0700, Sean Christopherson wrote: > On Mon, Mar 18, 2019 at 11:03:47PM +0800, Yang Weijiang wrote: > > The CET runtime settings, i.e., CET state control bits(IA32_U_CET/ > > IA32_S_CET), CET SSP(IA32_PL3_SSP/IA32_PL0_SSP) and SSP table address > > (IA32_INTERRUPT_

[PATCH 2/2] mfd: cros_ec: Instantiate the CrOS USB PD logger driver

2019-04-03 Thread Enric Balletbo i Serra
Add the cros-usbpd-logger driver for logging event data for the USB PD charger available in the Embedded Controller on ChromeOS systems. The logging feature is logically separate functionality from charge manager, hence is instantiated as a different driver. Signed-off-by: Enric Balletbo i Serra

[PATCH 1/2] platform/chrome: Add CrOS USB PD logging driver

2019-04-03 Thread Enric Balletbo i Serra
From: Guenter Roeck The CrOS USB PD logging feature is logically separate functionality of the charge manager, hence has its own driver. The driver logs the event data for the USB PD charger available in some ChromeOS Embedded Controllers. Signed-off-by: Guenter Roeck [remove APPEND_STRING macr

Regulator Potential Deadlock

2019-04-03 Thread Charles Keepax
Hi Guys, Was testing some of my hardware and hit this potential lockup: Possible unsafe locking scenario: CPU0CPU1 lock((work_completion)(&(&rdev->disable_work)->work)); lock(regulator_list_mutex); l

Re: [PATCH 4.19 BACKPORT] arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals

2019-04-03 Thread Greg KH
On Wed, Apr 03, 2019 at 11:34:08AM +0100, Will Deacon wrote: > Commit b9a4b9d084d978f80eb9210727c81804588b42ff upstream. > > FAR_EL1 is UNKNOWN for all debug exceptions other than those caused by > taking a hardware watchpoint. Unfortunately, if a debug handler returns > a non-zero value, then we

Re: [PATCH] update my email address

2019-04-03 Thread Nicolas Pitre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 2 Apr 2019, Linus Torvalds wrote: > On Tue, Apr 2, 2019 at 7:18 AM Nicolas Pitre wrote: > > > > The @linaro version won't be valid much longer. > > Generally I like seeing these come in from the old address just to verify. > > But at least

Re: [PATCH 6/6] arm64/mm: Enable ZONE_DEVICE

2019-04-03 Thread Robin Murphy
[ +Dan, Jerome ] On 03/04/2019 05:30, Anshuman Khandual wrote: Arch implementation for functions which create or destroy vmemmap mapping (vmemmap_populate, vmemmap_free) can comprehend and allocate from inside device memory range through driver provided vmem_altmap structure which fulfils all re

Re: ext3 file system livelock and file system corruption, 4.9.166 stable kernel

2019-04-03 Thread Greg Kroah-Hartman
On Tue, Apr 02, 2019 at 12:15:58PM -0400, Theodore Ts'o wrote: > On Tue, Apr 02, 2019 at 12:35:07PM +0200, Greg Kroah-Hartman wrote: > > So you need 5e86bdda4153 ("ext4: cleanup bh release code in > > ext4_ind_remove_space()") applied to all of the stable and LTS kernels > > at the moment (as that

Re: [PATCH] psi: Clarify the units used in pressure files

2019-04-03 Thread Waiman Long
On 04/02/2019 05:18 PM, Johannes Weiner wrote: > On Tue, Apr 02, 2019 at 03:38:10PM -0400, Waiman Long wrote: >> The output of the PSI files show a bunch of numbers with no unit. >> The psi.txt documentation file also does not indicate what units >> are used. One can only find out by looking at th

Re: [PATCH 1/2] Input: synaptics-rmi4 - clear irqs before set irqs

2019-04-03 Thread Aaron Ma
On 4/3/19 12:16 AM, Christopher Heiny wrote: > On Thu, 2019-03-28 at 14:02 +0800, Aaron Ma wrote: >> Hi Dmitry and Chiristopher: >> >> Do you have any suggestion about these 2 patches? >> >> Many users confirmed that they fixed issues of Trackpoint/Touchpad >> after S3. >> >> Will you consider t

Re: [PATCH] kernel/sysctl.c: fix out of bounds access in fs.file-max

2019-04-03 Thread Christian Brauner
On Thu, Mar 28, 2019 at 02:03:06PM +0100, Matteo Croce wrote: > fs.file-max sysctl uses proc_doulongvec_minmax() as proc handler, which > accesses *extra1 and *extra2 as unsigned long, but commit 32a5ad9c2285 > ("sysctl: handle overflow for file-max") assigns &zero, which is an int, > to extra1, ge

Re: [PATCH 2/2] mfd: cros_ec: Instantiate the CrOS USB PD logger driver

2019-04-03 Thread Enric Balletbo i Serra
On 3/4/19 15:54, Enric Balletbo i Serra wrote: > Add the cros-usbpd-logger driver for logging event data for the USB PD > charger available in the Embedded Controller on ChromeOS systems. The > logging feature is logically separate functionality from charge manager, > hence is instantiated as a

[PATCH v2 2/2] mfd: cros_ec: Instantiate the CrOS USB PD logger driver

2019-04-03 Thread Enric Balletbo i Serra
Add the cros-usbpd-logger driver for logging event data for the USB PD charger available in the Embedded Controller on ChromeOS systems. The logging feature is logically separate functionality from charge manager, hence is instantiated as a different driver. Signed-off-by: Enric Balletbo i Serra

[PATCH v2 1/2] platform/chrome: Add CrOS USB PD logging driver

2019-04-03 Thread Enric Balletbo i Serra
From: Guenter Roeck The CrOS USB PD logging feature is logically separate functionality of the charge manager, hence has its own driver. The driver logs the event data for the USB PD charger available in some ChromeOS Embedded Controllers. Signed-off-by: Guenter Roeck [remove macro to APPEND_ST

[tip:core/objtool 2/25] arch/x86/kernel/dumpstack.o: warning: objtool: show_regs()+0x9: undefined stack state

2019-04-03 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/objtool head: 64604d54d3115fee89598bfb6d8d2252f8a2d114 commit: 37686b1353cfc30e127cef811959cdbcd0495d98 [2/25] tracing: Improve "if" macro code generation config: x86_64-randconfig-x011-201913 (attached as .config) compiler

Re: [4.14-stable PATCH] mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified

2019-04-03 Thread Greg KH
On Tue, Apr 02, 2019 at 07:16:20AM +0800, Yang Shi wrote: > commit a7f40cfe3b7ada57af9b62fd28430eeb4a7cfcb7 upstream > > When MPOL_MF_STRICT was specified and an existing page was already on a > node that does not follow the policy, mbind() should return -EIO. But > commit 6f4576e3687b ("mempolic

[PATCH] KVM: x86: svm: make sure NMI is injected after nmi_singlestep

2019-04-03 Thread Vitaly Kuznetsov
I noticed that apic test from kvm-unit-tests always hangs on my EPYC 7401P, the hanging test nmi-after-sti is trying to deliver 3 NMIs and tracing shows that we're sometimes able to deliver a few but never all. When we're trying to inject an NMI we may fail to do so immediately for various rea

Re: [PATCH] tty: Add NULL TTY driver

2019-04-03 Thread Vincent Whitchurch
On Wed, Apr 03, 2019 at 03:12:13PM +0200, Greg KH wrote: > On Wed, Apr 03, 2019 at 01:33:27PM +0200, Vincent Whitchurch wrote: > > If no console driver is enabled (or if a non-present driver is selected > > with something like console=null in an attempt to disable the console), > > opening /dev/con

[PATCH 00/12] clocksource: improve Atmel TCB timer driver

2019-04-03 Thread Alexandre Belloni
Hi, This series immproves the Atmel TCB clocksource driver to address the most urgent shortcomings: - the current tcb_clksrc driver is probed too late to be able to be used at boot and we now have SoCs that don't have a PIT. They currently are not able to boot an upstream kernel. - using t

[PATCH 04/12] clocksource/drivers/tcb_clksrc: stop depending on atmel_tclib

2019-04-03 Thread Alexandre Belloni
atmel_tclib is probed too late in the boot process to be able to use the TCB as the boot clocksource. This is an issue for SoCs without the PIT (sams70, samv70 and samv71 families) as they simply currently can't boot. Get rid of the atmel_tclib dependency and probe everything on our own using the

[PATCH 03/12] misc: atmel_tclib: move definitions to header file

2019-04-03 Thread Alexandre Belloni
Move atmel_tc_divisors and atmel_tcb_dt_ids definitions to the header file so they can be used without using tclib. Signed-off-by: Alexandre Belloni --- drivers/misc/atmel_tclib.c | 24 include/soc/at91/atmel_tcb.h | 21 - 2 files changed, 20 insert

[PATCH 01/12] ARM: at91: move SoC specific definitions to SoC folder

2019-04-03 Thread Alexandre Belloni
Move linux/atmel_tc.h to the SoC specific folder include/soc/at91. Cc: Thierry Reding Signed-off-by: Alexandre Belloni --- drivers/clocksource/tcb_clksrc.c | 2 +- drivers/misc/atmel_tclib.c | 2 +- drivers/pwm/pwm-atmel-tcb.c| 2

[PATCH 05/12] clocksource/drivers/tcb_clksrc: Use tcb as sched_clock

2019-04-03 Thread Alexandre Belloni
Now that the driver is registered early enough, use the TCB as the sched_clock which is much more accurate than the jiffies implementation. Signed-off-by: Alexandre Belloni --- drivers/clocksource/tcb_clksrc.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clocksou

[PATCH 07/12] clocksource/drivers/tcb_clksrc: move Kconfig option

2019-04-03 Thread Alexandre Belloni
Move the ATMEL_TCB_CLKSRC option to drivers/clocksource and make it silent if COMPILE_TEST is not selected. Signed-off-by: Alexandre Belloni --- drivers/clocksource/Kconfig | 7 +++ drivers/misc/Kconfig| 14 -- 2 files changed, 7 insertions(+), 14 deletions(-) diff --gi

[PATCH 06/12] ARM: at91: Implement clocksource selection

2019-04-03 Thread Alexandre Belloni
Allow selecting and unselecting the PIT clocksource driver so it doesn't have to be compiled when unused. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/K

[PATCH 10/12] ARM: configs: at91: unselect PIT

2019-04-03 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 + arch/arm/configs/sama5_defconfig

[PATCH 09/12] clocksource/drivers/tcb_clksrc: Rename the file for consistency

2019-04-03 Thread Alexandre Belloni
For the sake of consistency, let's rename the file to a name similar to other file names in this directory. Signed-off-by: Alexandre Belloni --- drivers/clocksource/Makefile| 2 +- drivers/clocksource/{tcb_clksrc.c => timer-atmel-tcb.c} | 0 2 files changed, 1 inserti

[PATCH 08/12] clocksource/drivers/timer-atmel-pit: rework Kconfig option

2019-04-03 Thread Alexandre Belloni
Allow building the PIT driver when COMPILE_TEST is enabled. Also remove its default value so it can be disabled. Signed-off-by: Alexandre Belloni --- drivers/clocksource/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksou

[PATCH 02/12] misc: atmel_tclib: drop AVR32 support

2019-04-03 Thread Alexandre Belloni
AVR32 is gone from the kernel, remove its support from tclib. Signed-off-by: Alexandre Belloni --- drivers/misc/atmel_tclib.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/misc/atmel_tclib.c b/drivers/misc/atmel_tclib.c index 194f774ab3a1..3af27ce7e514 100644 --- a/drivers/m

Re: [PATCH 3.16 00/99] 3.16.65-rc1 review

2019-04-03 Thread Ben Hutchings
On Tue, 2019-04-02 at 19:22 -0700, Guenter Roeck wrote: > On 4/2/19 6:38 AM, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.65 release. > > There are 99 patches in this series, which will be posted as responses > > to this one. If anyone has any issues with thes

[PATCH 11/12] misc: atmel_tclib: do not probe already used TCBs

2019-04-03 Thread Alexandre Belloni
The TCBs that have children are using the new (proper) DT bindings and don't need to be handled by tclib. Signed-off-by: Alexandre Belloni --- drivers/misc/atmel_tclib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/atmel_tclib.c b/drivers/misc/atmel_tclib.c index c79190525

[PATCH 12/12] clocksource/drivers/timer-atmel-tcb: Use ARRAY_SIZE instead of hardcoded size

2019-04-03 Thread Alexandre Belloni
Use ARRAY_SIZE to replace the hardcoded size so we will never have a mismatch. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-atmel-tcb.c b/drivers/clocksource/timer-atmel-t

Re: [RFC PATCH v3 0/3] x86/perf/amd: AMD PMC counters and NMI latency

2019-04-03 Thread Vince Weaver
On Wed, 3 Apr 2019, Cyrill Gorcunov wrote: > > Shame on Intel though for not providing perf JSON files for the > > Pentium 4 event names. > > Mind to point me where json events should lay, I could try to convert > names. I was mostly joking about that. But the event lists are in the kernel tr

[PATCH v8 00/20] Convert x86 & arm64 to use generic page walk

2019-04-03 Thread Steven Price
Most architectures current have a debugfs file for dumping the kernel page tables. Currently each architecture has to implement custom functions for walking the page tables because the generic walk_page_range() function is unable to walk the page tables used by the kernel. This series extends the

[PATCH v8 02/20] arm64: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information will be provided by the p?d_large() functions/macros. For arm64, we already have p?d_sect() macros which we

[PATCH v8 03/20] mips: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For mips, we only support large pages on 64 bit. For 64 b

[PATCH v8 04/20] powerpc: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For powerpc pmd_large() was already implemented, so hoist

[PATCH v8 08/20] sparc: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For sparc 64 bit, pmd_large() and pud_large() are already

[PATCH v8 07/20] s390: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For s390, pud_large() and pmd_large() are already implemen

[PATCH v8 09/20] x86: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For x86 we already have static inline functions, so simply

[PATCH v8 06/20] riscv: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For riscv a page is large when it has a read, write or exe

[PATCH v8 10/20] mm: Add generic p?d_large() macros

2019-04-03 Thread Steven Price
Exposing the pud/pgd levels of the page tables to walk_page_range() means we may come across the exotic large mappings that come with large areas of contiguous memory (such as the kernel's linear map). For architectures that don't provide p?d_large() macros, provide generic does nothing defaults.

[PATCH v8 12/20] mm: pagewalk: Allow walking without vma

2019-04-03 Thread Steven Price
Since 48684a65b4e3: "mm: pagewalk: fix misbehavior of walk_page_range for vma(VM_PFNMAP)", page_table_walk() will report any kernel area as a hole, because it lacks a vma. This means each arch has re-implemented page table walking when needed, for example in the per-arch ptdump walker. Remove the

[PATCH v8 11/20] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-04-03 Thread Steven Price
pgd_entry() and pud_entry() were removed by commit 0b1fbfe50006c410 ("mm/pagewalk: remove pgd_entry() and pud_entry()") because there were no users. We're about to add users so reintroduce them, along with p4d_entry() as we now have 5 levels of tables. Note that commit a00cc7d9dd93d66a ("mm, x86:

[PATCH v8 13/20] mm: pagewalk: Add test_p?d callbacks

2019-04-03 Thread Steven Price
It is useful to be able to skip parts of the page table tree even when walking without VMAs. Add test_p?d callbacks similar to test_walk but which are called just before a table at that level is walked. If the callback returns non-zero then the entire table is skipped. Signed-off-by: Steven Price

[PATCH v8 15/20] x86: mm: Don't display pages which aren't present in debugfs

2019-04-03 Thread Steven Price
For the /sys/kernel/debug/page_tables/ files, rather than outputing a mostly empty line when a block of memory isn't present just skip the line. This keeps the output shorter and will help with a future change switching to using the generic page walk code as we no longer care about the 'level' that

[PATCH v8 14/20] arm64: mm: Convert mm/dump.c to use walk_page_range()

2019-04-03 Thread Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the arm64 ptdump code over to using it, simplifying the code. Signed-off-by: Steven Price --- arch/arm64/mm/dump.c | 117 ++- 1 file changed, 59 insertions(+), 58 deletions(-) diff --git a/a

[PATCH v8 16/20] x86: mm: Point to struct seq_file from struct pg_state

2019-04-03 Thread Steven Price
mm/dump_pagetables.c passes both struct seq_file and struct pg_state down the chain of walk_*_level() functions to be passed to note_page(). Instead place the struct seq_file in struct pg_state and access it from struct pg_state (which is private to this file) in note_page(). Signed-off-by: Steven

[PATCH v8 18/20] x86: mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-04-03 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price --- arch/x86/i

[PATCH v8 19/20] x86: mm: Convert ptdump_walk_pgd_level_core() to take an mm_struct

2019-04-03 Thread Steven Price
An mm_struct is needed to enable x86 to use of the generic walk_page_range() function. In the case of walking the user page tables (when CONFIG_PAGE_TABLE_ISOLATION is enabled), it is necessary to create a fake_mm structure because there isn't an mm_struct with a pointer to the pgd of the user pag

[PATCH v8 20/20] x86: mm: Convert dump_pagetables to use walk_page_range

2019-04-03 Thread Steven Price
Make use of the new functionality in walk_page_range to remove the arch page walking code and use the generic code to walk the page tables. The effective permissions are passed down the chain using new fields in struct pg_state. The KASAN optimisation is implemented by including test_p?d callback

[PATCH v8 17/20] x86: mm+efi: Convert ptdump_walk_pgd_level() to take a mm_struct

2019-04-03 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level() need to pass an mm_struct rather than the raw pgd_t pointer. Luckily since commit 7e904a91bf60 ("efi: Use efi_mm in x86 as well as ARM") we now have an mm_struct for EFI on x86. Signed-off-by: Steve

Re: [PATCHv1] fpga: mgr: add FPGA configuration log

2019-04-03 Thread Moritz Fischer
Hi Richard, On Tue, Apr 02, 2019 at 05:25:43PM -0500, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Add a log for user to know FPGA configuration is successful > > Signed-off-by: Richard Gong > --- > drivers/fpga/fpga-mgr.c | 1 + > 1 file changed, 1 insertion(+) > > diff --gi

How to calculate instruction executed for function

2019-04-03 Thread Pankaj Suryawanshi
Hello, How to calculate instruction executed for function ? For eg. I need to calculate instruction executed for CMA_ALLOC function. How many instruction executed for cma_alloc ? Any help would be appreciated. Regards, Pankaj

Re: [RFC PATCH v3 0/3] x86/perf/amd: AMD PMC counters and NMI latency

2019-04-03 Thread Cyrill Gorcunov
On Wed, Apr 03, 2019 at 10:15:33AM -0400, Vince Weaver wrote: > > Mind to point me where json events should lay, I could try to convert > > names. > > I was mostly joking about that. But the event lists are in the kernel > tree in > tools/perf/pmu-events/arch/x86/ > > I don't think anythin

Re: [PATCH 01/12] ARM: at91: move SoC specific definitions to SoC folder

2019-04-03 Thread Thierry Reding
On Wed, Apr 03, 2019 at 04:11:09PM +0200, Alexandre Belloni wrote: > Move linux/atmel_tc.h to the SoC specific folder include/soc/at91. > > Cc: Thierry Reding > Signed-off-by: Alexandre Belloni > --- > drivers/clocksource/tcb_clksrc.c | 2 +- > drivers/misc/atmel_tclib.c

[BUG] perf: intel_pt won't display kernel function

2019-04-03 Thread Jiri Olsa
hi, perf script --call-trace stop working for me recently, and displays only user space functions I bisected that to: 7b612e291a5a perf tools: Synthesize PERF_RECORD_* for loaded BPF programs data from following comands will display user space functions only: # perf-with-kcore record pt -e in

Re: [PATCH v3 1/2] platform/chrome: wilco_ec: Standardize mailbox interface

2019-04-03 Thread Enric Balletbo i Serra
Hi Nick, On 3/4/19 4:05, Nick Crews wrote: > The current API for the wilco EC mailbox interface is bad. > > It assumes that most messages sent to the EC follow a similar structure, > with a command byte in MBOX[0], followed by a junk byte, followed by > actual data. This doesn't happen in several

Re: [PATCH 3/3] clk: sunxi-ng: h6: Allow video & vpu clocks to change parent rate

2019-04-03 Thread Jernej Škrabec
Dne sreda, 03. april 2019 ob 15:22:52 CEST je Chen-Yu Tsai napisal(a): > On Wed, Apr 3, 2019 at 3:54 PM Maxime Ripard wrote: > > On Tue, Apr 02, 2019 at 11:06:23PM +0200, Jernej Skrabec wrote: > > > Video related clocks need to set rate as close as possible to the > > > requested one, so they sho

[PATCH] spi: spi-gpio: Remove spi->controller_data comment

2019-04-03 Thread Geert Uytterhoeven
The conversion from GPIO numbers to GPIO descriptors removed the use of spi->controller_data, but forgot to update a comment referring to it. Fixes: 9b00bc7b901ff672 ("spi: spi-gpio: Rewrite to use GPIO descriptors") Signed-off-by: Geert Uytterhoeven --- drivers/spi/spi-gpio.c | 1 - 1 file chan

Re: [PATCH v2] RISC-V: Fix Maximum Physical Memory 2GiB option for 64bit systems

2019-04-03 Thread Christoph Hellwig
> + if ((reg->base + mem_size) < end) No need for the braces. Otherwise looks fine: Reviewed-by: Christoph Hellwig

[PATCH] spi: Add missing error handling for CS GPIOs

2019-04-03 Thread Geert Uytterhoeven
While devm_gpiod_get_index_optional() returns NULL if the GPIO is not present (i.e. -ENOENT), it may still return other error codes, like -EPROBE_DEFER. Currently these are not handled, leading to unrecoverable failures later in case of probe deferral: gpiod_set_consumer_name: invalid GPIO (e

Re: [PATCH v3 1/2] platform/chrome: wilco_ec: Standardize mailbox interface

2019-04-03 Thread Alexandre Belloni
On 03/04/2019 16:39:35+0200, Enric Balletbo i Serra wrote: > Hi Nick, > > On 3/4/19 4:05, Nick Crews wrote: > > The current API for the wilco EC mailbox interface is bad. > > > > It assumes that most messages sent to the EC follow a similar structure, > > with a command byte in MBOX[0], followed

[tip:perf/urgent 4/5] arch/x86//events/amd/core.c:542:9: error: 'NMI_HANDLED' undeclared; did you mean 'IRQ_HANDLED'?

2019-04-03 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/urgent head: 60f52ab61c7dc0a991125903ae06a35d1812698c commit: 6d3edaae16c6c7d238360f2841212c2b26774d5e [4/5] x86/perf/amd: Resolve NMI latency issues for active PMCs config: i386-tinyconfig (attached as .config) compiler: g

[PATCH 1/2] dt-bindings: rtc: add battery-low-hw-alarm property

2019-04-03 Thread Flavio Suligoi
Some RTC devices have a battery-low automatic detection circuit. The battery-low event is usually reported with: - a bit change in a RTC status register - a hw signaling (generally using an interrupt generation), changing the hw level of a specific pin; The new property "battery-low-hw-alarm" e

[PATCH 2/2] rtc: pcf2127: add battery-low INTn generation

2019-04-03 Thread Flavio Suligoi
The pcf2127 has an automatic battery-low detection function. In case of battery-low event, an interrupt generation through the pin INTn (active low) can be enabled, setting the flag BLIE in the register Control_3. This function is activated by the "battery-low-hw-alarm" DT property. Example of u

Re: [RFC PATCH 1/4] ARM: dts: dra7: Keep usb_otg_ss3 and usb_otg_ss4 disabled

2019-04-03 Thread Roger Quadros
Tony, On 02/04/2019 19:22, Tony Lindgren wrote: > * Roger Quadros [190402 13:38]: >> These 2 modules are not present on all families (e.g. AM57). >> Keep them disabled. > > Can you please add comments to the dtsi file for why "disabled" > is set? Otherwise we may end up removing them at some poi

Re: [BUG] perf: intel_pt won't display kernel function

2019-04-03 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 03, 2019 at 04:37:38PM +0200, Jiri Olsa escreveu: > hi, > perf script --call-trace stop working for me recently, > and displays only user space functions > > I bisected that to: > 7b612e291a5a perf tools: Synthesize PERF_RECORD_* for loaded BPF programs > > data from following coman

Re: [tip:perf/urgent 4/5] arch/x86//events/amd/core.c:542:9: error: 'NMI_HANDLED' undeclared; did you mean 'IRQ_HANDLED'?

2019-04-03 Thread Lendacky, Thomas
On 4/3/19 9:47 AM, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > perf/urgent > head: 60f52ab61c7dc0a991125903ae06a35d1812698c > commit: 6d3edaae16c6c7d238360f2841212c2b26774d5e [4/5] x86/perf/amd: Resolve > NMI latency issues for active PMCs >

Re: [PATCH 1/2] dt-bindings: rtc: add battery-low-hw-alarm property

2019-04-03 Thread Alexandre Belloni
Hi, On 03/04/2019 16:52:44+0200, Flavio Suligoi wrote: > Some RTC devices have a battery-low automatic detection circuit. > The battery-low event is usually reported with: > > - a bit change in a RTC status register > - a hw signaling (generally using an interrupt generation), changing > the hw

[PATCH] Staging: gasket: Use DIV_ROUND_UP

2019-04-03 Thread Madhumitha Prabakaran
Use DIV_ROUND_UP in-kernel function to make code simple and more understandable. Issue found using Coccinelle. Signed-off-by: Madhumitha Prabakaran --- Changes in v2: - Commit log modified --- drivers/staging/gasket/gasket_page_table.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

perf: perf_fuzzer crashes on Pentium 4 systems

2019-04-03 Thread Vince Weaver
so moving this to its own thread. There was a two-part question asked. 1. Can the perf-fuzzer crash a Pentium 4 system 2. Does anyone care anymore? The answer to #1 turns out to be "yes" I'm not sure about #2 (but it's telling my p4 test system hadn't been turned on in over 3 y

Re: [RFC PATCH v3 0/3] x86/perf/amd: AMD PMC counters and NMI latency

2019-04-03 Thread Cyrill Gorcunov
On Wed, Apr 03, 2019 at 05:27:54PM +0300, Cyrill Gorcunov wrote: > On Wed, Apr 03, 2019 at 10:15:33AM -0400, Vince Weaver wrote: > > > Mind to point me where json events should lay, I could try to convert > > > names. > > > > I was mostly joking about that. But the event lists are in the kernel

<    1   2   3   4   5   6   7   8   9   10   >