[RFC/RFT v3 05/14] soc: amlogic: meson-clk-measure: protect measure with a mutex

2019-07-01 Thread Neil Armstrong
In order to protect clock measuring when multiple process asks for a measure, protect the main measure function with mutexes. Reviewed-by: Kevin Hilman Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-clk-measure.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) d

[RFC/RFT v3 03/14] clk: meson: regmap: export regmap_div ops functions

2019-07-01 Thread Neil Armstrong
The G12A CPU Clock Postmux divider needs a custom div_set_rate() call. Export the clk_regmap_div_round_rate() and clk_regmap_div_recalc_rate() to be able to override the default clk_regmap_div_set_rate() callback. Signed-off-by: Neil Armstrong --- drivers/clk/meson/clk-regmap.c | 10 ++

[RFC/RFT v3 11/14] arm64: dts: meson-g12a: add cpus OPP table

2019-07-01 Thread Neil Armstrong
Add the OPP table taken from the vendor u200 and u211 DTS. The Amlogic G12A SoC seems to available in 3 types : - low-speed: up to 1,8GHz - mid-speed: up to 1,908GHz - high-speed: up to 2.1GHz And the S905X2 opp voltages are slightly higher than the S905D2 OPP voltages for the low-speed table. T

Re: [LKP] [x86/hotplug] e1056a25da: WARNING:at_arch/x86/kernel/apic/apic.c:#setup_local_APIC

2019-07-01 Thread Feng Tang
Hi Thomas, On Mon, Jul 01, 2019 at 09:13:54AM +0200, Thomas Gleixner wrote: > Feng, > > On Sun, 30 Jun 2019, Thomas Gleixner wrote: > > On Sun, 30 Jun 2019, Feng Tang wrote: > > > On Sun, Jun 30, 2019 at 01:35:39PM +0200, Thomas Gleixner wrote: > > > > On Sat, 29 Jun 2019, Thomas Gleixner wrote:

[RFC/RFT v3 09/14] arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi

2019-07-01 Thread Neil Armstrong
To simplify the representation of differences betweem the G12A and G12B SoCs, move the common nodes into a meson-g12-common.dtsi file and express the CPU nodes and differences in meson-g12a.dtsi and meson-g12b.dtsi. This separation will help for DVFS and future Amlogic SM1 Family support. The sd_

[RFC/RFT v3 13/14] arm64: dts: meson-g12b: add cpus OPP tables

2019-07-01 Thread Neil Armstrong
Add the OPP table taken from the HardKernel Odroid-N2 DTS. The Amlogic G12B SoC seems to available in 2 types : - low-speed: Cortex-A73 Cluster up to 1,704GHz - high-speed: Cortex-A73 Cluster up to 2.208GHz The Cortex-A73 Cluster can be clocked up to 1,896GHz for both types. The Vendor Amlogic A

[RFC/RFT v3 10/14] arm64: dts: meson-g12-common: add pwm_a on GPIOE_2 pinmux

2019-07-01 Thread Neil Armstrong
Add the ao_pinctrl subnode for the pwm_a function on GPIOE_2. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12

[RFC/RFT v3 06/14] soc: amlogic: meson-clk-measure: add G12B second cluster cpu clk

2019-07-01 Thread Neil Armstrong
Add the G12B second CPU cluster CPU and SYS_PLL measure IDs. These IDs returns 0Hz on G12A. Reviewed-by: Kevin Hilman Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-clk-measure.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/amlogic/meson-clk-measure.c b/drive

[RFC/RFT v3 14/14] arm64: dts: meson-g12b-odroid-n2: enable DVFS

2019-07-01 Thread Neil Armstrong
Enable DVFS for the Odroid-N2 by setting the clock, OPP and supply for each cores of each CPU clusters. The first cluster uses the "VDDCPU_B" power supply, and the second cluster uses the "VDDCPU_A" power supply. Each power supply can achieve 0.73V to 1.01V using 2 distinct PWM outputs clocked at

[RFC/RFT v3 02/14] clk: core: introduce clk_hw_set_parent()

2019-07-01 Thread Neil Armstrong
Introduce the clk_hw_set_parent() provider call to change parent of a clock by using the clk_hw pointers. This eases the clock reparenting from clock rate notifiers and implementing DVFS with simpler code avoiding the boilerplates functions as __clk_lookup(clk_hw_get_name()) then clk_set_parent().

linux-next: manual merge of the char-misc tree with the driver-core tree

2019-07-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/hwtracing/coresight/of_coresight.c between commit: 418e3ea157ef ("bus_find_device: Unify the match callback with class_find_device") from the driver-core tree and commits: 22aa495a6477 ("coresight: Rename

Re: [RFC/RFT v2 12/14] arm64: dts: meson-g12a: enable DVFS on G12A boards

2019-07-01 Thread Neil Armstrong
On 28/06/2019 20:08, Kevin Hilman wrote: > Neil Armstrong writes: > >> Enable DVFS for the U200, SEI520 and X96-Max Amlogic G12A based board >> by setting the clock, OPP and supply for each CPU cores. >> >> The CPU cluster power supply can achieve 0.73V to 1.01V using a PWM >> output clocked at 8

Re: [PATCH] ipv6_sockglue: Fix a missing-check bug in ip6_ra_control()

2019-07-01 Thread Gen Zhang
On Mon, Jul 01, 2019 at 10:57:36AM +0200, Jiri Slaby wrote: > On 24. 05. 19, 5:19, Gen Zhang wrote: > > In function ip6_ra_control(), the pointer new_ra is allocated a memory > > space via kmalloc(). And it is used in the following codes. However, > > when there is a memory allocation error, kmal

RE: [PATCH V3 1/5] clocksource: timer-of: Support getting clock frequency from DT

2019-07-01 Thread Anson Huang
Hi, Daniel > Subject: Re: [PATCH V3 1/5] clocksource: timer-of: Support getting clock > frequency from DT > > > Hi Anson, > > thanks for taking care of adding the clock-frequency handling in the timer-of. Sure. > > On 28/06/2019 05:30, anson.hu...@nxp.com wrote: > > From: Anson Huang > > >

Re: [GIT PULL] extcon next for v5.3

2019-07-01 Thread Greg KH
On Fri, Jun 28, 2019 at 10:32:45AM +0900, Chanwoo Choi wrote: > Dear Greg, > > This is extcon-next pull request for v5.3. I add detailed description of > this pull request on below. Please pull extcon with following updates. > > [Detailed description for this pull request] > 1. Add new extcon-fsa

Re: [RESEND PATCH v3 0/7] Improve scheduler scalability for fast path

2019-07-01 Thread Peter Zijlstra
On Wed, Jun 26, 2019 at 06:29:12PM -0700, subhra mazumdar wrote: > Hi, > > Resending this patchset, will be good to get some feedback. Any suggestions > that will make it more acceptable are welcome. We have been shipping this > with Unbreakable Enterprise Kernel in Oracle Linux. > > Current sele

Re: [PATCH 1/2] habanalabs: Add debugfs node for engines status

2019-07-01 Thread Oded Gabbay
On Mon, Jul 1, 2019 at 11:36 AM Tomer Tayar wrote: > > Command submissions sent to the device are composed of command buffers > which are targeted to different device engines, like DMA and compute > entities. When a command submission gets stuck, knowing in which engine > the stuck is, is crucial

Re: [Question] Should direct reclaim time be bounded?

2019-07-01 Thread Mel Gorman
On Fri, Jun 28, 2019 at 11:20:42AM -0700, Mike Kravetz wrote: > On 4/24/19 7:35 AM, Vlastimil Babka wrote: > > On 4/23/19 6:39 PM, Mike Kravetz wrote: > >>> That being said, I do not think __GFP_RETRY_MAYFAIL is wrong here. It > >>> looks like there is something wrong in the reclaim going on. > >>

Re: [PATCH V3 1/5] clocksource: timer-of: Support getting clock frequency from DT

2019-07-01 Thread Daniel Lezcano
Hi Anson, thanks for taking care of adding the clock-frequency handling in the timer-of. On 28/06/2019 05:30, anson.hu...@nxp.com wrote: > From: Anson Huang > > More and more platforms use platform driver model for clock driver, > so the clock driver is NOT ready during timer initialization p

Re: [PATCH v6 14/14] arm64: dts: Add power controller device node of MT8183

2019-07-01 Thread CK Hu
Hi, Weiyi: On Thu, 2019-06-20 at 10:38 +0800, Weiyi Lu wrote: > Add power controller node and smi-common node for MT8183 > In scpsys node, it contains clocks and regmapping of > infracfg and smi-common for bus protection. > > Signed-off-by: Weiyi Lu > --- > arch/arm64/boot/dts/mediatek/mt8183.d

Re: [PATCH] ipv6_sockglue: Fix a missing-check bug in ip6_ra_control()

2019-07-01 Thread Jiri Slaby
On 24. 05. 19, 5:19, Gen Zhang wrote: > In function ip6_ra_control(), the pointer new_ra is allocated a memory > space via kmalloc(). And it is used in the following codes. However, > when there is a memory allocation error, kmalloc() fails. Thus null > pointer dereference may happen. And it wil

Re: [PATCH] sound/soc/codecs/tas5720.c: add ACPI support

2019-07-01 Thread Nikolaus Voss
On Fri, 28 Jun 2019, Andrew F. Davis wrote: On 6/28/19 8:34 AM, Nikolaus Voss wrote: Add support for ACPI enumeration for tas5720 and tas5722. Use device_match API to unify access to driver data for DT and ACPI. Aggregate variant stuff into its own struct and directly reference it in variant dat

Re: [PATCH] sound/soc/codecs/tas5720.c: add ACPI support

2019-07-01 Thread Nikolaus Voss
On Fri, 28 Jun 2019, Mark Brown wrote: On Fri, Jun 28, 2019 at 02:34:16PM +0200, Nikolaus Voss wrote: Add support for ACPI enumeration for tas5720 and tas5722. Use device_match API to unify access to driver data for DT and ACPI. Aggregate variant stuff into its own struct and directly reference

Re: [PATCH] sched/fair: util_est: fast ramp-up EWMA on utilization increases

2019-07-01 Thread Patrick Bellasi
On 30-Jun 10:43, Vincent Guittot wrote: > On Fri, 28 Jun 2019 at 16:10, Patrick Bellasi wrote: > > On 28-Jun 15:51, Vincent Guittot wrote: > > > On Fri, 28 Jun 2019 at 14:38, Peter Zijlstra wrote: > > > > On Fri, Jun 28, 2019 at 11:08:14AM +0100, Patrick Bellasi wrote: > > > > > On 26-Jun 13:40,

Re: [PATCH v3 11/11] mm/memory_hotplug: Remove "zone" parameter from sparse_remove_one_section

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:52, David Hildenbrand wrote: > The parameter is unused, so let's drop it. Memory removal paths should > never care about zones. This is the job of memory offlining and will > require more refactorings. > > Reviewed-by: Dan Williams > Signed-off-by: David Hildenbrand Acked-

Re: [PATCH 2/6] Adjust watch_queue documentation to mention mount and superblock watches. [ver #5]

2019-07-01 Thread David Howells
Randy Dunlap wrote: > I'm having a little trouble parsing that sentence. > Could you clarify it or maybe rewrite/modify it? > Thanks. How about: * ``info_filter`` and ``info_mask`` act as a filter on the info field of the notification record. The notification is only written into the buf

Re: [PATCH v3 10/11] mm/memory_hotplug: Make unregister_memory_block_under_nodes() never fail

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:51, David Hildenbrand wrote: > We really don't want anything during memory hotunplug to fail. > We always pass a valid memory block device, that check can go. Avoid > allocating memory and eventually failing. As we are always called under > lock, we can use a static piece of m

Re: [PATCH v2 4/7] powerpc/ftrace: Additionally nop out the preceding mflr with -mprofile-kernel

2019-07-01 Thread Naveen N. Rao
Steven Rostedt wrote: On Thu, 27 Jun 2019 20:58:20 +0530 "Naveen N. Rao" wrote: > But interesting, I don't see a synchronize_rcu_tasks() call > there. We felt we don't need it in this case. We patch the branch to ftrace with a nop first. Other cpus should see that first. But, now that I

Re: [patch V2 3/6] genirq: Add optional hardware synchronization for shutdown

2019-07-01 Thread Marc Zyngier
On 28/06/2019 12:11, Thomas Gleixner wrote: > free_irq() ensures that no hardware interrupt handler is executing on a > different CPU before actually releasing resources and deactivating the > interrupt completely in a domain hierarchy. > > But that does not catch the case where the interrupt is o

Re: [PATCH 01/13] vfs: verify param type in vfs_parse_sb_flag()

2019-07-01 Thread Miklos Szeredi
Hi David, Ping? Have you had a chance of looking at this series? Köszi, Miklos On Wed, Jun 19, 2019 at 2:30 PM Miklos Szeredi wrote: > > vfs_parse_sb_flag() accepted any kind of param with a matching key, not > just a flag. This is wrong, only allow flag type and return -EINVAL > otherwise. >

Re: [PATCH 1/2] staging:kpc2000:Fix symbol not declared warning

2019-07-01 Thread Greg KH
On Fri, Jun 28, 2019 at 10:57:23PM +0530, Harsh Jain wrote: > It fixes "symbol was not declared. Should it be static?" > sparse warning. > > Signed-off-by: Harsh Jain > --- > drivers/staging/kpc2000/kpc_i2c/i2c_driver.c | 4 ++-- This file isn't even in the linux-next tree at all, it has moved w

Re: [PATCH] staging: kpc2000: fix brace issues in kpc2000_spi.c

2019-07-01 Thread Greg KH
On Thu, Jun 27, 2019 at 09:53:23PM +0200, Simon Sandström wrote: > Fixes issues found by checkpatch: > > - "WARNING: braces {} are not necessary for single statement blocks" > - "WARNING: braces {} are not necessary for any arm of this statement" > > Signed-off-by: Simon Sandström > --- > drive

Re: [PATCH 1/8] staging: kpc2000: add line breaks

2019-07-01 Thread Greg Kroah-Hartman
On Wed, Jun 26, 2019 at 09:35:19AM +0200, Fabian Krueger wrote: > To fix some checkpatch-warnings some lines of this module had to be > shortened so that they do not exceed 80 characters per line. > This refactoring makes the code more readable. > > Signed-off-by: Fabian Krueger > Signed-off-by:

Re: [PATCH v3 09/11] mm/memory_hotplug: Remove memory block devices before arch_remove_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:50, David Hildenbrand wrote: > Let's factor out removing of memory block devices, which is only > necessary for memory added via add_memory() and friends that created > memory block devices. Remove the devices before calling > arch_remove_memory(). > > This finishes factoring

[PATCH 1/2] habanalabs: Add debugfs node for engines status

2019-07-01 Thread Tomer Tayar
Command submissions sent to the device are composed of command buffers which are targeted to different device engines, like DMA and compute entities. When a command submission gets stuck, knowing in which engine the stuck is, is crucial for debugging. This patch adds a debugfs node that exports thi

Re: Investment offer to you,

2019-07-01 Thread Ayesha Muammar
Greetings Dear Friend, It’s my pleasure to contact you through this media as i am in need of your urgent assistance. My names are Mrs. Ayesha Al-Qaddafi a single Mother and a Widow with three Children. I am the only biologicalDaughter of late Libyan President (Late Colonel Muammar Al-Qaddafi). I

[PATCH 2/2] habanalabs: Add busy engines bitmask to HW idle IOCTL

2019-07-01 Thread Tomer Tayar
The information which is currently provided as a response to the "HL_INFO_HW_IDLE" IOCTL is merely a general boolean value. This patch extends it and provides also a bitmask that indicates which of the device engines are busy. Signed-off-by: Tomer Tayar --- drivers/misc/habanalabs/debugfs.c

Re: [PATCHv2 1/2] hmat: Register memory-side cache after parsing

2019-07-01 Thread Brice Goglin
Le 15/05/2019 à 23:54, Keith Busch a écrit : > Instead of registering the hmat cache attributes in line with parsing > the table, save the attributes in the memory target and register them > after parsing completes. This will make it easier to register the > attributes later when hot add is support

Re: [PATCH] HID: apple: Fix stuck function keys when using FN

2019-07-01 Thread Benjamin Tissoires
Hi João, On Sun, Jun 30, 2019 at 10:15 PM João Moreno wrote: > > Hi Jiri & Benjamin, > > Let me know if you need something else to get this patch moving forward. This > fixes an issue I hit daily, it would be great to get it fixed. Sorry for the delay, I am very busy with internal corporate stuf

linux-next: manual merge of the driver-core tree with the pm tree

2019-07-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the driver-core tree got a conflict in: drivers/acpi/sleep.c between commit: a3487d8f3063 ("ACPI / sleep: Switch to use acpi_dev_get_first_match_dev()") from the pm tree and commit: 418e3ea157ef ("bus_find_device: Unify the match callback with class_

[PATCH v2] media: xilinx: fix leaked of_node references

2019-07-01 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: drivers/media/platform/xilinx/xilinx-vipp.c:487:3-9: ERROR: missing of_node_put; acquired a node point

Re: [PATCH] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-07-01 Thread Daniel Drake
Hi Chris, On Thu, Jun 27, 2019 at 5:53 PM Chris Chiu wrote: > The WiFi tx power of RTL8723BU is extremely low after booting. So > the WiFi scan gives very limited AP list and it always fails to > connect to the selected AP. This module only supports 1x1 antenna > and the antenna is switched to bl

Re: [PATCH v8 6/8] cgroup/cpuset: Change cpuset_rwsem and hotplug lock order

2019-07-01 Thread Peter Zijlstra
On Mon, Jul 01, 2019 at 08:52:33AM +0200, Juri Lelli wrote: > Hi, > > On 28/06/19 15:03, Peter Zijlstra wrote: > > On Fri, Jun 28, 2019 at 10:06:16AM +0200, Juri Lelli wrote: > > > cpuset_rwsem is going to be acquired from sched_setscheduler() with a > > > following patch. There are however paths

[PATCH v3 1/2] drivers/staging/rtl8192u: drop first comment line

2019-07-01 Thread Christian Müller
As stated in coding-styles.rst multiline comments should be structured in a way, that the actual comment starts on the second line of the commented portion. E.g: /* * Multiline comments * should look like * this. */ However, there is an exception to files in drivers/net/ and net/, where multi

[PATCH v3 2/2] drivers/staging/rtl8192u: style nonstyled comments

2019-07-01 Thread Christian Müller
The coding-styles.rst states, that multiline comments should allways contain a leading "*" in each line. For multiline comments in general they /* * should look * like this. */ For multiline comments in either net/ or drivers/net/ however, they should /* omit * the first * empty line. */

INFO: task hung in exit_mm

2019-07-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:249155c2 Merge branch 'parisc-5.2-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1306be61a0 kernel config: https://syzkaller.appspot.com/x/.config?x=9a31528e58cc12e2 da

kernel panic: corrupted stack end in dput

2019-07-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7b75e49d net: dsa: mv88e6xxx: wait after reset deactivation git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=10f51b13a0 kernel config: https://syzkaller.appspot.com/x/.config?x=e7c31a94f66cc0aa dashboar

Re: [PATCH] media: davinci-vpbe: remove obsolete includes

2019-07-01 Thread Lad, Prabhakar
Hi Arnd, Thank you for the patch. On Fri, Jun 28, 2019 at 11:51 AM Arnd Bergmann wrote: > > The driver builds fine without these, and they cause build > problems once davinci multiplatform support is enabled. > > Signed-off-by: Arnd Bergmann > --- > drivers/media/platform/davinci/vpbe_display.

Re: [PATCH] locking/lockdep: clean up #ifdef checks

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 12:03:54PM +0100, Will Deacon wrote: > Hi Arnd, > > On Fri, Jun 28, 2019 at 12:29:03PM +0200, Arnd Bergmann wrote: > > As Will Deacon points out, CONFIG_PROVE_LOCKING implies TRACE_IRQFLAGS, > > so the conditions I added in the previous patch, and some others in the > > sam

Re: [PATCH 1/2 RESEND3] perf/x86/amd/uncore: Do not set ThreadMask and SliceMask for non-L3 PMCs

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 09:59:20PM +, Phillips, Kim wrote: > From: Kim Phillips > > Commit d7cbbe49a930 ("perf/x86/amd/uncore: Set ThreadMask and SliceMask > for L3 Cache perf events") enables L3 PMC events for all threads and > slices by writing 1s in ChL3PmcCfg (L3 PMC PERF_CTL) register fi

Re: [PATCH v2] Input: atmel_mxt_ts - fix -Wunused-const-variable

2019-07-01 Thread Dmitry Torokhov
On Thu, Jun 13, 2019 at 11:26:41AM -0700, Nick Desaulniers wrote: > On Thu, Jun 13, 2019 at 11:24 AM 'Nathan Huckleberry' via Clang Built > Linux wrote: > > Changes from v1 -> v2 > > * Moved definition of mxt_video_fops into existing ifdef > > Thanks for the v2. > Reviewed-by: Nick Desaulniers

Re: [PATCH v3 7/7] Input: add IOC3 serio driver

2019-07-01 Thread Dmitry Torokhov
Hi Thomas, On Thu, Jun 13, 2019 at 07:06:33PM +0200, Thomas Bogendoerfer wrote: > This patch adds a platform driver for supporting keyboard and mouse > interface of SGI IOC3 chips. > > Signed-off-by: Thomas Bogendoerfer > --- > drivers/input/serio/Kconfig | 10 +++ > drivers/input/serio/Make

[PATCH v2 1/4] dt-bindings: regulator: add support for the stm32-booster

2019-07-01 Thread Fabrice Gasnier
Document the 3.3V booster regulator embedded in stm32h7 and stm32mp1 devices, that can be used to supply ADC analog input switches. It's controlled by using system configuration registers (SYSCFG). Introduce two compatibles as the booster regulator is controlled by: - a unique register/bit in STM32

[PATCH v2 0/4] regulator: add support for the STM32 ADC booster

2019-07-01 Thread Fabrice Gasnier
Add support for the 3.3V booster regulator embedded in stm32h7 and stm32mp1 devices, that can be used to supply ADC analog input switches. It's useful to reach full ADC performance when their supply is below 2.7V (vdda by default). Changes in v2: - rebase on top of for-next branch Fabrice Gasnier

[PATCH v2 4/4] ARM: dts: stm32: add booster for ADC analog switches on stm32mp157c

2019-07-01 Thread Fabrice Gasnier
Booster for ADC analog input switches can be used when Vdda is below 2.7V to get maximum ADC analog performances. Add booster for ADC analog switches on stm32mp157c. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ar

[PATCH v2 3/4] ARM: multi_v7_defconfig: enable STM32 booster regulator

2019-07-01 Thread Fabrice Gasnier
This enables the driver for STM32 booster regulator found on stm32mp1. Signed-off-by: Fabrice Gasnier --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 6b748f2..230e7e0 1006

Re: [PATCH v3 08/11] mm/memory_hotplug: Drop MHP_MEMBLOCK_API

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:49, David Hildenbrand wrote: > No longer needed, the callers of arch_add_memory() can handle this > manually. > > Cc: Andrew Morton > Cc: David Hildenbrand > Cc: Michal Hocko > Cc: Oscar Salvador > Cc: Pavel Tatashin > Cc: Wei Yang > Cc: Joonsoo Kim > Cc: Qian Cai > C

Re: [PATCH v3 07/11] mm/memory_hotplug: Create memory block devices after arch_add_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:48, David Hildenbrand wrote: > Only memory to be added to the buddy and to be onlined/offlined by > user space using /sys/devices/system/memory/... needs (and should have!) > memory block devices. > > Factor out creation of memory block devices. Create all devices after > arc

[PATCH v2 2/4] regulator: add support for the stm32-booster

2019-07-01 Thread Fabrice Gasnier
Add support for the 3.3V booster regulator embedded in stm32h7 and stm32mp1 devices, that can be used to supply ADC analog input switches. This regulator is supplied by vdda. It's controlled by using SYSCFG: - STM32H7 has a unique register to set/clear the booster enable bit - STM32MP1 has separat

[PATCH v3 1/1] iio: common: cros_ec_sensors: determine protocol version

2019-07-01 Thread Fabien Lahoudere
This patch adds a function to determine which version of the protocol is used to communicate with EC. Signed-off-by: Fabien Lahoudere Signed-off-by: Nick Vaccaro Reviewed-by: Gwendal Grignou Tested-by: Gwendal Grignou --- .../cros_ec_sensors/cros_ec_sensors_core.c| 36 ++-

[PATCH v3 0/1] iio: common: cros_ec_sensors: Add protocol v3 support

2019-07-01 Thread Fabien Lahoudere
This patch is part of a split of the following patch: https://lkml.org/lkml/2019/6/18/268 To fix Enric comments from https://lkml.org/lkml/2019/6/25/949 I extract it from the other serie to speed up acceptance because other patches need it to be upstreamed. Changes since v2: - Use patch 1 from v1

Re: WARNING in is_bpf_text_address

2019-07-01 Thread Dmitry Vyukov
On Fri, Jun 28, 2019 at 5:17 PM Bart Van Assche wrote: > > On 6/28/19 6:05 AM, syzbot wrote: > > syzbot has bisected this bug to: > > > > commit a0b0fd53e1e67639b303b15939b9c653dbe7a8c4 > > Author: Bart Van Assche > > Date: Thu Feb 14 23:00:46 2019 + > > > > locking/lockdep: Free lock

Re: [PATCH] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Wed, 26 Jun 2019 08:27:58 -0600 Alex Williamson wrote: > This allows udev to trigger rules when a parent device is registered > or unregistered from mdev. > > Signed-off-by: Alex Williamson > --- > drivers/vfio/mdev/mdev_core.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletio

[PATCH] mm: vmscan: scan anonymous pages on file refaults

2019-07-01 Thread Kuo-Hsin Yang
When file refaults are detected and there are many inactive file pages, the system never reclaim anonymous pages, the file pages are dropped aggressively when there are still a lot of cold anonymous pages and system thrashes. This issue impacts the performance of applications with large executable

Re: [PATCH] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Thu, 27 Jun 2019 19:42:32 +0530 Kirti Wankhede wrote: > On 6/27/2019 1:51 PM, Cornelia Huck wrote: > > On Thu, 27 Jun 2019 00:33:59 +0530 > > Kirti Wankhede wrote: > > > >> On 6/26/2019 11:35 PM, Alex Williamson wrote: > >>> On Wed, 26 Jun 2019 23:23:00 +0530 > >>> Kirti Wankhede wrote:

Re: [PATCH v10 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-07-01 Thread CK Hu
Hi, Bibby: On Mon, 2019-07-01 at 15:48 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, this function > can help cmdq client to get the cmdq_client_reg structure. > Reviewed-by: CK Hu > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 28 +

Re: [PATCH next] sysctl: add proc_dointvec_jiffies_minmax to limit the min/max write value

2019-07-01 Thread Zhiqiang Liu
friendly ping ... On 2019/6/4 23:27, Zhiqiang Liu wrote: >> On Wed, May 15, 2019 at 10:53:55PM +0800, Zhiqiang Liu wrote: >> >> (Please include akpm on CC for next versions of this, as he's likely >> the person to take this patch.) > Thanks for your advice. And sorry to reply you so late. > >

Re: nvmem creates multiple devices with the same name

2019-07-01 Thread Sascha Hauer
Hi Srinivas, On Tue, May 21, 2019 at 11:21:07AM +0200, Sascha Hauer wrote: > On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: > > > > > > On 21/05/2019 09:56, Sascha Hauer wrote: > > > . Are there any suggestions how to register the nvmem devices > > > with a different name?

Re: [PATCH] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Fri, 28 Jun 2019 09:56:08 -0600 Alex Williamson wrote: > On Thu, 27 Jun 2019 10:19:14 +0200 > Cornelia Huck wrote: > > > On Wed, 26 Jun 2019 08:27:58 -0600 > > Alex Williamson wrote: > > > @@ -243,6 +247,8 @@ void mdev_unregister_device(struct device *dev) > > > up_write(&parent->unreg_s

Re: [PATCH 0/3] Marvell HCI fixes and serdev support

2019-07-01 Thread Sascha Hauer
Hi, On Fri, Jun 14, 2019 at 09:23:48AM +0200, Sascha Hauer wrote: > First two patches are a fix for the Marvell HCI driver which fails to > properly upload the firmware. Third patch adds simple serdev support > to the driver. > > Sascha > > Sascha Hauer (3): > Bluetooth: hci_ldisc: Add functio

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-01 Thread Viresh Kumar
On 28-06-19, 18:16, Subhra Mazumdar wrote: > > On 6/25/19 10:06 PM, Viresh Kumar wrote: > > We try to find an idle CPU to run the next task, but in case we don't > > find an idle CPU it is better to pick a CPU which will run the task the > > soonest, for performance reason. > > > > A CPU which is

Re: [Kernel BUG?] SMSW operation get success on UMIP KVM guest

2019-07-01 Thread Thomas Gleixner
On Mon, 1 Jul 2019, Li Wang wrote: > Hello there, > > LTP/umip_basic_test get failed on KVM UMIP system(kernel-v5.2-rc4.x86_64). > The test is only trying to do > asm volatile("smsw %0\n" : "=m" (val)); > and expect to get SIGSEGV in this SMSW operation, but it exits with 0 > unexpectedly. >

Re: [PATCH] dmaengine: at_xdmac: check for non-empty xfers_list before invoking callback

2019-07-01 Thread Ludovic Desroches
On Sat, Jun 29, 2019 at 01:50:48PM +0530, Raag Jadav wrote: > > tx descriptor retrieved from an empty xfers_list may not have valid > pointers to the callback functions. > Avoid calling dmaengine_desc_get_callback_invoke if xfers_list is empty. > > Signed-off-by: Raag Jadav Acked-by: Ludovic Des

Re: [RFC PATCH v5] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-07-01 Thread Daniel Drake
On Mon, Jun 17, 2019 at 2:56 PM Chris Chiu wrote: > With this commit, the tx rate of each data and qos data packet will > be 39Mbps (MCS4) with the 0xF0 as the tx rate mask. The 20th bit > to 23th bit means MCS4 to MCS7. It means that the firmware still picks > the lowest rate from the rate ma

Re: [PATCH v2] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-07-01 Thread Kuo-Hsin Yang
On Fri, Jun 28, 2019 at 10:32:01AM -0400, Johannes Weiner wrote: > On Fri, Jun 28, 2019 at 07:16:27PM +0800, Kuo-Hsin Yang wrote: > > Commit 2a2e48854d70 ("mm: vmscan: fix IO/refault regression in cache > > workingset transition") introduced actual_reclaim parameter. When file > > refaults are det

Re: [PATCH v3 05/11] drivers/base/memory: Pass a block_id to init_memory_block()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:46, David Hildenbrand wrote: > We'll rework hotplug_memory_register() shortly, so it no longer consumes > pass a section. > > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Signed-off-by: David Hildenbrand Acked-by: Michal Hocko > --- > drivers/base/memory.c | 15 +

Re: linux-next: build failure after merge of the rdma tree

2019-07-01 Thread wangxi
在 2019/7/1 12:14, Stephen Rothwell 写道: > Hi all, > > After merging the rdma tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/infiniband/hw/hns/hns_roce_ah.o > see include/linux/module.h for more information >

[PATCH net] r8152: fix the setting of detecting the linking change for runtime suspend

2019-07-01 Thread Hayes Wang
1. Rename r8153b_queue_wake() to r8153_queue_wake(). 2. Correct the setting. The enable bit should be 0xd38c bit 0. Besides, the 0xd38a bit 0 and 0xd398 bit 8 have to be cleared for both enabled and disabled. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 38 +

Re: [PATCH 2/4] input: keyboard/mouse/touchscreen/misc: Use dev_get_drvdata()

2019-07-01 Thread Dmitry Torokhov
Hi Fuqian, On Mon, Jul 01, 2019 at 11:23:12AM +0800, Fuqian Huang wrote: > Using dev_get_drvdata directly. > I prefer using proper bus accessors. Thanks. -- Dmitry

[PATCH v10 08/12] soc: mediatek: cmdq: change the type of input parameter

2019-07-01 Thread Bibby Hsieh
According to the cmdq hardware design, the subsys is u8, the offset is u16 and the event id is u16. This patch changes the type of subsys, offset and event id to the correct type. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 10 +- include/l

[PATCH v10 05/12] mailbox: mediatek: cmdq: support mt8183 gce function

2019-07-01 Thread Bibby Hsieh
add mt8183 compatible name for supporting gce function Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 8fddd26288e8..69daaadc3a

[PATCH v10 00/12] support gce on mt8183 platform

2019-07-01 Thread Bibby Hsieh
Changes since v8 and v9: - change the error return code in cmdq_dev_get_client_reg() Changes since v7: - remove the memory allocation out of cmdq_dev_get_client_reg() - rebase onto 5.2-rc1 Changes since v6: - remove cmdq_dev_get_event function and gce event property - separate some changes t

[PATCH v10 07/12] soc: mediatek: cmdq: reorder the parameter

2019-07-01 Thread Bibby Hsieh
The order of gce instructions is [subsys offset value] so reorder the parameter of cmdq_pkt_write_mask and cmdq_pkt_write function. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 6 +++--- include/linux/soc/mediatek/mtk-cmdq.h | 10 +- 2 fil

[PATCH v10 01/12] dt-binding: gce: remove thread-num property

2019-07-01 Thread Bibby Hsieh
"thread-num" is an unused property so we remove it from example. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentatio

[PATCH v10 10/12] soc: mediatek: cmdq: add polling function

2019-07-01 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 15 + 3 files changed,

[PATCH v10 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-07-01 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the cmdq_client_reg structure. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 ++ include/linux/soc/mediatek/mtk-cmdq.h | 21 +++ 2 files chan

Re: linux-next: build failure after merge of the pm tree

2019-07-01 Thread Viresh Kumar
On 01-07-19, 13:37, Stephen Rothwell wrote: > In file included from drivers/cpufreq/intel_pstate.c:11: > drivers/cpufreq/intel_pstate.c: In function 'intel_pstate_update_max_freq': > drivers/cpufreq/intel_pstate.c:912:31: error: 'struct cpufreq_policy' has no > member named 'user_policy'; did you

[PATCH v10 12/12] arm64: dts: add gce node for mt8183

2019-07-01 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 08274bfcebd8..42b7cc9e7304 100644 ---

[PATCH v10 06/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-07-01 Thread Bibby Hsieh
GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event but not really trigger the corresponding hardware. In order to make sure that th

[PATCH v10 03/12] dt-binding: gce: add binding for gce client reg property

2019-07-01 Thread Bibby Hsieh
cmdq driver provide a function that get the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-client-reg. Signed-off-by: Bibby Hsieh --- .../devicetree/bindings/mailbox/mtk-gce.txt| 18 ++ 1 file changed, 14 inser

[PATCH v10 04/12] mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

2019-07-01 Thread Bibby Hsieh
The interrupt mask and thread number has positive correlation, so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate it by thread number. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletio

[PATCH v10 02/12] dt-binding: gce: add gce header file for mt8183

2019-07-01 Thread Bibby Hsieh
Add documentation for the mt8183 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8183. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- include/dt-bindings/gce/mt8183-gce.h | 177 +

[PATCH v10 09/12] soc: mediatek: cmdq: define the instruction struct

2019-07-01 Thread Bibby Hsieh
Define an instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 103 +++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2

Re: [PATCH 2/2] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-01 Thread Peter Zijlstra
On Fri, Jun 28, 2019 at 05:49:52PM -0700, Michel Lespinasse wrote: > - Change the definition of the RBCOMPUTE function. The propagate > callback repeatedly calls RBCOMPUTE as it moves from leaf to root. > it wants to stop recomputing once the augmented subtree information > doesn't change. Th

Re: [PATCH v3] Bluetooth: btrtl: HCI reset on close for Realtek BT chip

2019-07-01 Thread Daniel Drake
On Tue, Jun 25, 2019 at 4:32 PM Jian-Hong Pan wrote: > Realtek RTL8822BE BT chip on ASUS X420FA cannot be turned on correctly > after on-off several times. Bluetooth daemon sets BT mode failed when > this issue happens. Scanning must be active while turning off for this > bug to be hit. > > blueto

Re: [PATCH v3 03/11] s390x/mm: Implement arch_remove_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:44, David Hildenbrand wrote: > Will come in handy when wanting to handle errors after > arch_add_memory(). I do not understand this. Why do you add a code for something that is not possible on this HW (based on the comment - is it still valid btw?) > Cc: Martin Schwidefsky

Re: [PATCH v3 02/11] s390x/mm: Fail when an altmap is used for arch_add_memory()

2019-07-01 Thread Michal Hocko
On Mon 27-05-19 13:11:43, David Hildenbrand wrote: > ZONE_DEVICE is not yet supported, fail if an altmap is passed, so we > don't forget arch_add_memory()/arch_remove_memory() when unlocking > support. Why do we need this? Sure ZONE_DEVICE is not supported for s390 and so might be the case for oth

Re: [PATCH v3 01/11] mm/memory_hotplug: Simplify and fix check_hotplug_memory_range()

2019-07-01 Thread Michal Hocko
[Sorry for a really late response] On Mon 27-05-19 13:11:42, David Hildenbrand wrote: > By converting start and size to page granularity, we actually ignore > unaligned parts within a page instead of properly bailing out with an > error. I do not expect any code path would ever provide an unalign

Re: [PATCH v3 0/5] Introduce MADV_COLD and MADV_PAGEOUT

2019-07-01 Thread Minchan Kim
Hi Folks, Do you guys have comments? I think it would be long enough to be pending. If there is no further comments, I want to ask to merge. Thanks. On Thu, Jun 27, 2019 at 08:54:00PM +0900, Minchan Kim wrote: > This patch is part of previous series: > https://lore.kernel.org/lkml/201905310643

Re: [PATCH] vfs: move_mount: reject moving kernel internal mounts

2019-07-01 Thread David Howells
Al Viro wrote: > /* The thing moved must be mounted... */ > if (!is_mounted(old_path->mnt)) > goto out; Um... Doesn't that stuff up fsmount()? David

<    3   4   5   6   7   8   9   >