[PATCH 01/10] ARM: davinci: enable the clocksource driver for DT mode

2019-06-24 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Switch all davinci boards supporting device tree to using the new clocksource driver: remove the previous OF_TIMER_DECLARE() from mach-davinci and select davinci-timer for ARCH_DAVINCI. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/Kconfi

[PATCH 05/10] ARM: davinci: move timer definitions to davinci.h

2019-06-24 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Boards from the dm* family rely on register offset definitions from arch/arm/mach-davinci/include/mach/time.h. We'll be removing this file soon, so move the required defines to davinci.h where the rest of such constants live. Signed-off-by: Bartosz Golaszewski Reviewed

[PATCH 00/10] ARM: davinci: use the new clocksource driver

2019-06-24 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Hi Sekhar, once the clocksource driver is in some upstream branch, you can pick this series up - it contains the platform code necessary to use the new module. Tested on da850-evm/lcdk, da830-evm and dm365-evm. Bartosz Golaszewski (10): ARM: davinci: enable the cloc

Re: RISC-V nommu support v2

2019-06-24 Thread Christoph Hellwig
On Mon, Jun 24, 2019 at 02:08:50PM +0100, Vladimir Murzin wrote: > True, yet my observation was that elf2flt utility assumes that address > space cannot exceed 32-bit (for header and absolute relocations). So, > from my limited point of view straightforward way to guarantee that would > be to build

[PATCH v2 1/2] cpufreq: Move the IS_ENABLED(CPU_THERMAL) macro in a stub

2019-06-24 Thread Daniel Lezcano
The cpufreq_online and the cpufreq_offline [un]register the driver as a cooling device. This is done if the driver is flagged as a cooling device in addition with a IS_ENABLED macro to compile out the branching code. Group this test in a stub function added in the cpufreq header instead of having

[PATCH v2 2/2] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-24 Thread Daniel Lezcano
Currently the function cpufreq_cooling_register() returns a cooling device pointer which is used back as a pointer to call the function cpufreq_cooling_unregister(). Even if it is correct, it would make sense to not leak the structure inside a cpufreq driver and keep the code thermal code self-enca

Re: [PATCH 3/6] x86: Add nopv parameter to disable PV extensions

2019-06-24 Thread Juergen Gross
On 23.06.19 15:01, Zhenzhong Duan wrote: In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking) we want to disable PV extensions. As such int

Re: WARNING: ODEBUG bug in netdev_freemem (2)

2019-06-24 Thread Thomas Gleixner
On Mon, 24 Jun 2019, Dmitry Vyukov wrote: > On Mon, Jun 24, 2019 at 2:08 PM Eric Dumazet wrote: > > >>> [ cut here ] > > >>> ODEBUG: free active (active state 0) object type: timer_list hint: > > >>> delayed_work_timer_fn+0x0/0x90 arch/x86/include/asm/paravirt.h:767 > > >>

Re: [PATCH v6 5/6] khugepaged: enable collapse pmd for pte-mapped THP

2019-06-24 Thread Kirill A. Shutemov
On Sat, Jun 22, 2019 at 10:48:28PM -0700, Song Liu wrote: > khugepaged needs exclusive mmap_sem to access page table. When it fails > to lock mmap_sem, the page will fault in as pte-mapped THP. As the page > is already a THP, khugepaged will not handle this pmd again. > > This patch enables the kh

RE: [PATCH net-next 6/6] net/mssc/ocelot: Add basic Felix switch driver

2019-06-24 Thread Claudiu Manoil
>-Original Message- >From: Andrew Lunn >Sent: Saturday, June 22, 2019 11:57 PM >To: Claudiu Manoil [...] Ok for all, I can work more on refactoring if we agree on the basics. For instance I can change the driver to use reg-names, same as mscc-ocelot, and factor out the common code. So

Re: [PATCH v2] arm64: rename dump_instr as dump_kernel_instr

2019-06-24 Thread Will Deacon
On Thu, Jun 20, 2019 at 03:52:49PM +0900, jinho lim wrote: > [v2] The version information is not usually part of the commit message. Please drop that... > dump_kernel_instr does not work for user mode. > rename dump_instr function and remove __dump_instr. ... and rewrite this so it explains the

Re: [PATCH V34 10/29] hibernate: Disable when the kernel is locked down

2019-06-24 Thread Jiri Kosina
On Sat, 22 Jun 2019, Pavel Machek wrote: > > There is currently no way to verify the resume image when returning > > from hibernate. This might compromise the signed modules trust model, > > so until we can work with signed hibernate images we disable it when the > > kernel is locked down. > > I

Re: linux-next: Signed-off-by missing for commit in the imx-mxs tree

2019-06-24 Thread Shawn Guo
On Mon, Jun 24, 2019 at 10:23:59PM +1000, Stephen Rothwell wrote: > Hi all, > > Commit > > 9b5800c21b4d ("ARM: dts: imx6qdl-kontron-samx6i: add Kontron SMARC SoM > Support") > > is missing a Signed-off-by from its author. Thanks for spotting it, Stephen. @Michael, would you please give your

Re: [PATCH v7 00/25] Unify vDSOs across more architectures

2019-06-24 Thread Vincenzo Frascino
Hi Thomas, On 24/06/2019 01:34, Thomas Gleixner wrote: > Vincenzo, > > On Fri, 21 Jun 2019, Vincenzo Frascino wrote: >> vDSO (virtual dynamic shared object) is a mechanism that the Linux >> kernel provides as an alternative to system calls to reduce where >> possible the costs in terms of cycles.

Re: [PATCH] wl18xx: Fix Wunused-const-variable

2019-06-24 Thread Kalle Valo
Nathan Huckleberry wrote: > Clang produces the following warning > > drivers/net/wireless/ti/wl18xx/main.c:1850:43: warning: unused variable > 'wl18xx_iface_ap_cl_limits' [-Wunused-const-variable] static const struct > ieee80211_iface_limit wl18xx_iface_ap_cl_limits[] = { ^ > drivers/net/wireles

Re: [f2fs-dev] [PATCH] f2fs: add wsync_mode for sysfs entry

2019-06-24 Thread Christoph Hellwig
Moreover if it makes sense it should be a generic setting. Please Cc Jens who added REQ_BACKGROUND and linux-mm to the cc list so that we can have a good discussion.

Re: [PATCH 5.2 1/2] mwifiex: Don't abort on small, spec-compliant vendor IEs

2019-06-24 Thread Kalle Valo
Brian Norris wrote: > Per the 802.11 specification, vendor IEs are (at minimum) only required > to contain an OUI. A type field is also included in ieee80211.h (struct > ieee80211_vendor_ie) but doesn't appear in the specification. The > remaining fields (subtype, version) are a convention used i

Re: KASAN: slab-out-of-bounds Read in p54u_load_firmware_cb

2019-06-24 Thread Kalle Valo
Andrey Konovalov writes: > On Thu, Jun 20, 2019 at 9:56 PM Christian Lamparter > wrote: >> >> On Thursday, June 20, 2019 9:46:32 PM CEST Alan Stern wrote: >> > On Wed, 19 Jun 2019, syzbot wrote: >> > >> > > syzbot has found a reproducer for the following crash on: >> > > >> > > HEAD commit:

Re: PREEMPT_RT_FULL on x86-32 machine

2019-06-24 Thread Sebastian Andrzej Siewior
On 2019-06-24 12:53:40 [+0200], Pavel Machek wrote: > Hi! Hi, > > >Is full preemption supposed to work on x86-32 machines? > > > > > >Because it does not work for me. It crashes early in boot, no messages > > >make it to console. Similar configuration for x86-64 boots ok. > > > > > > > Maybe you

[PATCH net-next] ipv4: enable route flushing in network namespaces

2019-06-24 Thread Christian Brauner
Tools such as vpnc try to flush routes when run inside network namespaces by writing 1 into /proc/sys/net/ipv4/route/flush. This currently does not work because flush is not enabled in non-initial network namespaces. Since routes are per network namespace it is safe to enable /proc/sys/net/ipv4/rou

[PATCH] x86/kvm/nVMCS: fix VMCLEAR when Enlightened VMCS is in use

2019-06-24 Thread Vitaly Kuznetsov
When Enlightened VMCS is in use, it is valid to do VMCLEAR and, according to TLFS, this should "transition an enlightened VMCS from the active to the non-active state". It is, however, wrong to assume that it is only valid to do VMCLEAR for the eVMCS which is currently active on the vCPU performing

Re: [PATCH v5 02/25] mm: userfault: return VM_FAULT_RETRY on signals

2019-06-24 Thread Linus Torvalds
On Mon, Jun 24, 2019 at 3:43 PM Peter Xu wrote: > > Should we still be able to react on signal_pending() as part of fault > handling (because that's what this patch wants to do, at least for an > user-mode page fault)? Please kindly correct me if I misunderstood... I think that with this patch (

Re: [PATCH v7 3/5] mtd: Add support for HyperBus memory devices

2019-06-24 Thread Vignesh Raghavendra
On 22/06/19 1:22 AM, Sergei Shtylyov wrote: > Hello! > > On 06/20/2019 08:22 PM, Vignesh Raghavendra wrote: > >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave >> interfaces. HyperBus is used to conne

Re: [PATCH] get_maintainer: Add --cc option

2019-06-24 Thread Peter Zijlstra
On Mon, Jun 24, 2019 at 03:03:23PM +0200, Sebastian Andrzej Siewior wrote: > The --cc adds a Cc: prefix infront of the email address so it can be > used by other Scripts directly instead of adding another wrapper for > this. Would it make sense to make '--cc' imply --no-roles --no-rolestats ? > S

Re: [GIT PULL] auxdisplay for v5.2-rc7

2019-06-24 Thread pr-tracker-bot
The pull request you sent on Sun, 23 Jun 2019 15:50:38 +0200: > https://github.com/ojeda/linux.git tags/auxdisplay-for-linus-v5.2-rc7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9216514602ac436c116664ac9eaf18127ccf34df Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [PATCH v7 04/25] arm64: Substitute gettimeofday with C implementation

2019-06-24 Thread Will Deacon
Hi Vincenzo, On Fri, Jun 21, 2019 at 10:52:31AM +0100, Vincenzo Frascino wrote: > To take advantage of the commonly defined vdso interface for > gettimeofday the architectural code requires an adaptation. > > Re-implement the gettimeofday vdso in C in order to use lib/vdso. > > With the new impl

Re: [PATCH] RDMA/core: Fix race when resolving IP address

2019-06-24 Thread Dag Moxnes
Hi Jason, Thanks for the review. On 6/21/19 4:56 PM, Jason Gunthorpe wrote: On Fri, Jun 21, 2019 at 04:09:16PM +0200, Dag Moxnes wrote: Use neighbour lock when copying MAC address from neighbour data struct in dst_fetch_ha. When not using the lock, it is possible for the function to race wi

Re: [PATCHv2] x86/mm: Handle physical-virtual alignment mismatch in phys_p4d_init()

2019-06-24 Thread Baoquan He
On 06/24/19 at 03:31pm, Kirill A. Shutemov wrote: > Kyle has reported that kernel crashes sometimes when it boots in > 5-level paging mode with KASLR enabled: > > WARNING: CPU: 0 PID: 0 at arch/x86/mm/init_64.c:87 phys_p4d_init+0x1d4/0x1ea > RIP: 0010:phys_p4d_init+0x1d4/0x1ea > Call Trace:

Re: [PATCH] x86/kvm/nVMCS: fix VMCLEAR when Enlightened VMCS is in use

2019-06-24 Thread Liran Alon
> On 24 Jun 2019, at 16:30, Vitaly Kuznetsov wrote: > > When Enlightened VMCS is in use, it is valid to do VMCLEAR and, > according to TLFS, this should "transition an enlightened VMCS from the > active to the non-active state". It is, however, wrong to assume that > it is only valid to do VMC

Re: [PATCH v5 2/5] net: macb: add support for sgmii MAC-PHY interface

2019-06-24 Thread Russell King - ARM Linux admin
On Mon, Jun 24, 2019 at 01:11:14PM +0100, Parshuram Thombare wrote: > This patch add support for SGMII interface) and > 2.5Gbps MAC in Cadence ethernet controller driver. > > Signed-off-by: Parshuram Thombare > --- > drivers/net/ethernet/cadence/macb.h | 54 +- > drivers/net

Re: [PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family

2019-06-24 Thread Anand Moon
Hi Marek / Krzysztof, On Mon, 24 Jun 2019 at 14:31, Marek Szyprowski wrote: > > Hi Krzysztof, > > On 2019-06-24 09:41, Krzysztof Kozlowski wrote: > > On Mon, 24 Jun 2019 at 09:20, Marek Szyprowski > > wrote: > >> On 2019-06-23 18:02, Anand Moon wrote: > >>> Thanks for this patch. Please add my

Re: [PATCH] x86/mm: Handle physical-virtual alignment mismatch in phys_p4d_init()

2019-06-24 Thread Baoquan He
On 06/24/19 at 03:23pm, Kirill A. Shutemov wrote: > On Mon, Jun 24, 2019 at 06:07:42PM +0800, Baoquan He wrote: > > On 06/21/19 at 01:54pm, Kirill A. Shutemov wrote: > > > > The code block as below is to zero p4d entries which are not coverred by > > > > the current memory range, and if haven't bee

Re: [PATCH v3 9/9] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3

2019-06-24 Thread Icenowy Zheng
于 2019年6月24日 GMT+08:00 下午8:43:01, Maxime Ripard 写到: >On Sun, Jun 23, 2019 at 12:38:01PM +0800, Icenowy Zheng wrote: >> Lichee zero plus is a core board made by Sipeed, which includes >on-board >> TF slot or SMT SD NAND, and optional SPI NOR or eMMC, a UART debug >> header, a microUSB slot and a

Re: [PATCH 1/2] CLONE_PIDFD: do not use the value pointed by parent_tidptr

2019-06-24 Thread Dmitry V. Levin
On Mon, Jun 24, 2019 at 01:59:43PM +0200, Christian Brauner wrote: > On Mon, Jun 24, 2019 at 11:49:40AM +0200, Christian Brauner wrote: > > On Sun, Jun 23, 2019 at 02:27:17PM +0300, Dmitry V. Levin wrote: > > > Userspace needs a cheap and reliable way to tell whether CLONE_PIDFD > > > is supported

Re: x86: Spurious vectors not handled robustly

2019-06-24 Thread Thomas Gleixner
On Mon, 24 Jun 2019, Thomas Gleixner wrote: > On Mon, 24 Jun 2019, Jan Kiszka wrote: > > On 24.06.19 12:09, Thomas Gleixner wrote: > > > If it is a vectored one it _IS_ acked. > > > > > > inc_irq_stat(irq_spurious_count); > > > > > > /* see sw-dev-man vol 3, chapter 7.4.13.5 */

Re: [PATCH v5 4/5] net: macb: add support for high speed interface

2019-06-24 Thread Russell King - ARM Linux admin
On Mon, Jun 24, 2019 at 01:12:35PM +0100, Parshuram Thombare wrote: > This patch add support for high speed USXGMII PCS and 10G > speed in Cadence ethernet controller driver. > > Signed-off-by: Parshuram Thombare > --- > drivers/net/ethernet/cadence/macb.h | 41 + > drivers/net/etherne

[bug report] read-ahead can't work properly

2019-06-24 Thread Weijie Yang
When try the file readahead by posix_fadvise(), I find it can't work properly. For example, posix_fadvise(POSIX_FADV_WILLNEED) a 10MB file, the kernel actually readahead only 512KB data to the page cache, even if there are enough free memory in the machine. When trace to kernel, I find the issu

Re: [PATCH 1/2] CLONE_PIDFD: do not use the value pointed by parent_tidptr

2019-06-24 Thread Christian Brauner
On Mon, Jun 24, 2019 at 04:45:31PM +0300, Dmitry V. Levin wrote: > On Mon, Jun 24, 2019 at 01:59:43PM +0200, Christian Brauner wrote: > > On Mon, Jun 24, 2019 at 11:49:40AM +0200, Christian Brauner wrote: > > > On Sun, Jun 23, 2019 at 02:27:17PM +0300, Dmitry V. Levin wrote: > > > > Userspace needs

Re: [PATCH] flow_dissector: Fix vlan header offset in __skb_flow_dissect

2019-06-24 Thread Jiri Pirko
Fri, Jun 21, 2019 at 02:33:17AM CEST, s...@fomichev.me wrote: >On 06/20, Yuehaibing wrote: >> On 2019/6/20 2:39, Stanislav Fomichev wrote: >> > On 06/20, YueHaibing wrote: >> >> We build vlan on top of bonding interface, which vlan offload >> >> is off, bond mode is 802.3ad (LACP) and xmit_hash_pol

Re: [PATCH V3 4/5] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-24 Thread Rob Herring
On Mon, Jun 24, 2019 at 2:09 AM Mircea Caprioru wrote: > > Convert AD7124 bindings documentation to YAML format. > > Signed-off-by: Mircea Caprioru > --- > > Changelog v2: > - modified SPDX license to GPL-2.0 OR BSD-2-Clause > - added regex for a range from 0 to 15 > - added minimum and maximum c

Re: [PATCH 3/6] x86: Add nopv parameter to disable PV extensions

2019-06-24 Thread Zhenzhong Duan
On 2019/6/24 21:18, Juergen Gross wrote: On 23.06.19 15:01, Zhenzhong Duan wrote: In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking) w

Re: [PATCH V3 5/5] dt-bindings: iio: adc: Add buffered input property

2019-06-24 Thread Rob Herring
On Mon, Jun 24, 2019 at 2:09 AM Mircea Caprioru wrote: > > This patch adds the buffered mode device tree property for positive and > negative inputs. Each option can be enabled independently. > > In buffered mode, the input channel feeds into a high impedance input stage > of the buffer amplifier.

Re: [PATCH v4 5/5] uprobe: collapse THP pmd after removing all uprobes

2019-06-24 Thread Song Liu
> On Jun 24, 2019, at 5:34 AM, Kirill A. Shutemov wrote: > > On Fri, Jun 21, 2019 at 06:04:14PM +, Song Liu wrote: >> >> >>> On Jun 21, 2019, at 9:30 AM, Song Liu wrote: >>> >>> >>> On Jun 21, 2019, at 6:45 AM, Song Liu wrote: > On Jun 21, 2019, at 6:36 AM

RE: [PATCH] x86/resctrl: Prevent possible overrun during bitmap operations

2019-06-24 Thread David Laight
From: Reinette Chatre > Sent: 19 June 2019 21:27 > > While the DOC at the beginning of lib/bitmap.c explicitly states that > "The number of valid bits in a given bitmap does _not_ need to be an > exact multiple of BITS_PER_LONG.", some of the bitmap operations do > indeed access BITS_PER_LONG port

Re: [PATCH V2 10/15] ARM: orion5x: cleanup cppcheck shifting errors

2019-06-24 Thread Andrew Lunn
On Mon, Jun 24, 2019 at 08:51:00PM +0700, Phong Tran wrote: > [arch/arm/mach-orion5x/pci.c:281]: (error) Shifting signed 32-bit value > by 31 bits is undefined behaviour > [arch/arm/mach-orion5x/pci.c:305]: (error) Shifting signed 32-bit value > by 31 bits is undefined behaviour > > Signed-off-by:

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-24 Thread John Ogness
Hi, I would like to point out an important typo related to memory barriers... On 2019-06-07, John Ogness wrote: > diff --git a/lib/printk_ringbuffer.c b/lib/printk_ringbuffer.c > new file mode 100644 > index ..d0b2b6a549b0 > --- /dev/null > +++ b/lib/printk_ringbuffer.c [...] > +stat

[PATCH] ARM: mm: print L310 cache controller version

2019-06-24 Thread Flavio Suligoi
The knowledge of the cache controller version is very useful during the comparison of the performances of similar boards, with similar CPU but different versions of the L310 controller. Signed-off-by: Flavio Suligoi --- arch/arm/mm/cache-l2x0.c | 28 1 file changed,

Re: [PATCH v7 01/25] kernel: Standardize vdso_datapage

2019-06-24 Thread Catalin Marinas
On Fri, Jun 21, 2019 at 10:52:28AM +0100, Vincenzo Frascino wrote: > In an effort to unify the common code for managing the vdso library in > between all the architectures that support it, this patch tries to > provide a common format for the vdso datapage. > > As a result of this, this patch gene

Re: [PATCH 1/6] x86/xen: Mark xen_hvm_need_lapic() and xen_hvm_need_lapic() as __init

2019-06-24 Thread Thomas Gleixner
On Sun, 23 Jun 2019, Zhenzhong Duan wrote: > .. as they are only called at early bootup stage. In fact, other > functions in x86_hyper_xen_hvm.init.* are all marked as __init. > > Unexport xen_hvm_need_lapic as it's never used outside. Can you please provide a cover letter for your patch series

Re: [PATCH v6] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice

2019-06-24 Thread Lee Jones
On Tue, 11 Jun 2019, Gwendal Grignou wrote: > With this patch, the cros_ec_ctl driver will register the legacy > accelerometer driver (named cros_ec_accel_legacy) if it fails to > register sensors through the usual path cros_ec_sensors_register(). > This legacy device is present on Chromebook devi

Re: [PATCH v7 04/25] arm64: Substitute gettimeofday with C implementation

2019-06-24 Thread Catalin Marinas
On Fri, Jun 21, 2019 at 10:52:31AM +0100, Vincenzo Frascino wrote: > diff --git a/arch/arm64/kernel/asm-offsets.c b/arch/arm64/kernel/asm-offsets.c > index 947e39896e28..9e4b7ccbab2f 100644 > --- a/arch/arm64/kernel/asm-offsets.c > +++ b/arch/arm64/kernel/asm-offsets.c > @@ -25,13 +25,13 @@ > #inc

Re: [PATCH V2 04/15] ARM: exynos: cleanup cppcheck shifting error

2019-06-24 Thread Russell King - ARM Linux admin
On Mon, Jun 24, 2019 at 08:50:54PM +0700, Phong Tran wrote: > [arch/arm/mach-exynos/suspend.c:288]: (error) Shifting signed 32-bit > value by 31 bits is undefined behaviour > > Signed-off-by: Phong Tran > --- > arch/arm/mach-exynos/suspend.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH v7 04/25] arm64: Substitute gettimeofday with C implementation

2019-06-24 Thread Vincenzo Frascino
On 24/06/2019 14:36, Will Deacon wrote: > Hi Vincenzo, > > On Fri, Jun 21, 2019 at 10:52:31AM +0100, Vincenzo Frascino wrote: >> To take advantage of the commonly defined vdso interface for >> gettimeofday the architectural code requires an adaptation. >> >> Re-implement the gettimeofday vdso i

Re: [PATCH V2 08/15] ARM: mmp: cleanup cppcheck shifting errors

2019-06-24 Thread Russell King - ARM Linux admin
On Mon, Jun 24, 2019 at 08:50:58PM +0700, Phong Tran wrote: > #define MPMU_PLL2_CTRL1 MPMU_REG(0x0414) > #define MPMU_CGR_PJ MPMU_REG(0x1024) > #define MPMU_WUCRM_PJMPMU_REG(0x104c) > -#define MPMU_WUCRM_PJ_WAK

Re: [PATCH v2 1/2] cpufreq: Move the IS_ENABLED(CPU_THERMAL) macro in a stub

2019-06-24 Thread Viresh Kumar
On 24-06-19, 15:17, Daniel Lezcano wrote: > The cpufreq_online and the cpufreq_offline [un]register the driver as > a cooling device. This is done if the driver is flagged as a cooling > device in addition with a IS_ENABLED macro to compile out the branching > code. > > Group this test in a stub f

[PATCH] sched/core: silence a warning in sched_init()

2019-06-24 Thread Qian Cai
Compiling a kernel with both FAIR_GROUP_SCHED=n and RT_GROUP_SCHED=n will generate a warning using W=1, kernel/sched/core.c: In function 'sched_init': kernel/sched/core.c:5906:32: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] unsigned long alloc_size = 0, ptr;

Re: linux-next: Signed-off-by missing for commit in the imx-mxs tree

2019-06-24 Thread Michael Grzeschik
On Mon, Jun 24, 2019 at 09:20:57PM +0800, Shawn Guo wrote: > On Mon, Jun 24, 2019 at 10:23:59PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Commit > > > > 9b5800c21b4d ("ARM: dts: imx6qdl-kontron-samx6i: add Kontron SMARC SoM > > Support") > > > > is missing a Signed-off-by from its au

Re: [PATCH v7 10/25] arm64: compat: Add vDSO

2019-06-24 Thread Catalin Marinas
On Fri, Jun 21, 2019 at 10:52:37AM +0100, Vincenzo Frascino wrote: > --- /dev/null > +++ b/arch/arm64/include/asm/vdso/compat_barrier.h > @@ -0,0 +1,51 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2018 ARM Limited > + */ > +#ifndef __COMPAT_BARRIER_H > +#define __COMPAT_BA

Re: [PATCH 2/3] module: Fix up module_notifier return values.

2019-06-24 Thread Mathieu Desnoyers
- On Jun 24, 2019, at 5:18 AM, Peter Zijlstra pet...@infradead.org wrote: > While auditing all module notifiers I noticed a whole bunch of fail > wrt the return value. Notifiers have a 'special' return semantics. > > Cc: Robert Richter > Cc: Steven Rostedt > Cc: Ingo Molnar > Cc: Alexei St

Re: [PATCH v7 5/6] mm,thp: add read-only THP support for (non-shmem) FS

2019-06-24 Thread Song Liu
> On Jun 24, 2019, at 5:47 AM, Kirill A. Shutemov wrote: > > On Sat, Jun 22, 2019 at 10:47:48PM -0700, Song Liu wrote: >> This patch is (hopefully) the first step to enable THP for non-shmem >> filesystems. >> >> This patch enables an application to put part of its text sections to THP >> via

Re: [PATCH v7 6/6] mm,thp: avoid writes to file with THP in pagecache

2019-06-24 Thread Song Liu
> On Jun 24, 2019, at 5:49 AM, Kirill A. Shutemov wrote: > > On Sat, Jun 22, 2019 at 10:47:49PM -0700, Song Liu wrote: >> In previous patch, an application could put part of its text section in >> THP via madvise(). These THPs will be protected from writes when the >> application is still runn

Re: [PATCH] KVM: nVMX: reorganize initial steps of vmx_set_nested_state

2019-06-24 Thread Aaron Lewis
On Thu, Jun 20, 2019 at 6:18 AM Paolo Bonzini wrote: > > On 20/06/19 14:18, Vitaly Kuznetsov wrote: > > There's also something wrong with the patch as it fails to apply because > > of (not only?) whitespace issues or maybe I'm just applying it to the > > wrong tree... > > Yes, there's a change to

[PATCH] dmaengine: imx-sdma: fix use-after-free on probe error path

2019-06-24 Thread Sven Van Asbroeck
If probe() fails anywhere beyond the point where sdma_get_firmware() is called, then a kernel oops may occur. Problematic sequence of events: 1. probe() calls sdma_get_firmware(), which schedules the firmware callback to run when firmware becomes available, using the sdma instance structure

[PATCH 00/25] VFS: Introduce filesystem information query syscall [ver #14]

2019-06-24 Thread David Howells
Hi Al, Here are a set of patches that adds a syscall, fsinfo(), that allows attributes of a filesystem/superblock to be queried. Attribute values are of four basic types: (1) Version dependent-length structure (size defined by type). (2) Variable-length string (up to PAGE_SIZE). (3) Array

Re: [PATCH v2 13/28] drivers: Introduce class_find_device_by_of_node() helper

2019-06-24 Thread Peter Rosin
On 2019-06-24 10:34, Suzuki K Poulose wrote: > Hi Peter, > > On 22/06/2019 06:25, Peter Rosin wrote: >> On 2019-06-14 19:54, Suzuki K Poulose wrote: >>> Add a wrapper to class_find_device() to search for a device >>> by the of_node pointer, reusing the generic match function. >>> Also convert the

[PATCH 02/25] fsinfo: Add syscalls to other arches [ver #14]

2019-06-24 Thread David Howells
Add the fsinfo syscall to the other arches. Signed-off-by: David Howells --- arch/alpha/kernel/syscalls/syscall.tbl |1 + arch/arm/tools/syscall.tbl |1 + arch/arm64/include/asm/unistd.h |2 +- arch/ia64/kernel/syscalls/syscall.tbl |1 + a

[PATCH 01/25] vfs: syscall: Add fsinfo() to query filesystem information [ver #14]

2019-06-24 Thread David Howells
Add a system call to allow filesystem information to be queried. A request value can be given to indicate the desired attribute. Support is provided for enumerating multi-value attributes. === NEW SYSTEM CALL === The new system call looks like: int ret = fsinfo(

Re: [PATCH V3 4/5] dt-bindings: iio: adc: Convert ad7124 documentation to YAML

2019-06-24 Thread Caprioru, Mircea
On Mon, 2019-06-24 at 07:50 -0600, Rob Herring wrote: > [External] > > > On Mon, Jun 24, 2019 at 2:09 AM Mircea Caprioru > wrote: > > > > Convert AD7124 bindings documentation to YAML format. > > > > Signed-off-by: Mircea Caprioru > > --- > > > > Changelog v2: > > - modified SPDX license to

[PATCH 03/25] vfs: Allow fsinfo() to query what's in an fs_context [ver #14]

2019-06-24 Thread David Howells
Allow fsinfo() to be used to query the filesystem attached to an fs_context once a superblock has been created or if it comes from fspick(). The caller must specify AT_FSINFO_FROM_FSOPEN in the parameters and must supply the fd from fsopen() as dfd and must set filename to NULL. This is done with

[PATCH 04/25] vfs: Allow fsinfo() to be used to query an fs parameter description [ver #14]

2019-06-24 Thread David Howells
Provide fsinfo() attributes that can be used to query a filesystem parameter description. To do this, fsinfo() can be called on an fs_context that doesn't yet have a superblock created and attached. It can be obtained by doing, for example: fd = fsopen("ext4", 0); struct fsinfo_

[PATCH 05/25] vfs: Implement parameter value retrieval with fsinfo() [ver #14]

2019-06-24 Thread David Howells
Implement parameter value retrieval with fsinfo() - akin to parsing /proc/mounts. This allows all the parameters to be retrieved in one go with: struct fsinfo_params params = { .request= FSINFO_ATTR_PARAMETER, }; Each parameter comes as a pair of blobs wit

Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation

2019-06-24 Thread Petr Mladek
On Mon 2019-06-24 10:33:15, John Ogness wrote: > > 1. Linked list of descriptors > > - > > > > The list of descriptors makes the code more complicated > > and I do not see much gain. It is possible that I just missed > > something. > > > > If I get it correctly then the

Re: [PATCH -mm] autonuma: Fix scan period updating

2019-06-24 Thread Mel Gorman
On Mon, Jun 24, 2019 at 10:56:04AM +0800, Huang Ying wrote: > The autonuma scan period should be increased (scanning is slowed down) > if the majority of the page accesses are shared with other processes. > But in current code, the scan period will be decreased (scanning is > speeded up) in that si

[PATCH 09/25] vfs: Add mount notification count [ver #14]

2019-06-24 Thread David Howells
Add a notification count on mount objects so that the user can easily check to see if a mount has changed its attributes or its children. Future patches will: (1) Provide this value through fsinfo() attributes. (2) Hook into the notify_mount() function to provide a notification interface

[PATCH 07/25] vfs: Introduce a non-repeating system-unique superblock ID [ver #14]

2019-06-24 Thread David Howells
Introduce a non-repeating system-unique superblock ID that can be used to tag superblock notification messages. The ID is time-based to make it harder to use it as a covert communications channel. Make it so that this ID can be fetched by the fsinfo() system call. Signed-off-by: David Howells -

[next][PowerPC] RCU stalls while booting linux-next on PowerVM LPAR

2019-06-24 Thread Sachin Sant
Latest -next fails to boot on POWER9 PowerVM LPAR due to RCU stalls. This problem was introduced with next-20190620 (dc636f5d78). next-20190619 was last good kernel. Reverting following commit allows the kernel to boot. 2fd4aeea6b603 : mm/memory_hotplug: move and simplify walk_memory_blocks() [

[PATCH 08/25] vfs: Allow fsinfo() to look up a mount object by ID [ver #14]

2019-06-24 Thread David Howells
Allow the fsinfo() syscall to look up a mount object by ID rather than by pathname. This is necessary as there can be multiple mounts stacked up at the same pathname and there's no way to look through them otherwise. This is done by passing AT_FSINFO_MOUNTID_PATH to fsinfo() in the parameters and

Re: [PATCH v3 9/9] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3

2019-06-24 Thread Maxime Ripard
On Mon, Jun 24, 2019 at 09:43:23PM +0800, Icenowy Zheng wrote: > >> +&usb_otg { > >> + dr_mode = "otg"; > >> + status = "okay"; > >> +}; > >> + > >> +&usbphy { > >> + usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; > >> + status = "okay"; > >> +}; > > > >How can it do OTG if there's no control

[PATCH 06/25] fsinfo: Implement retrieval of LSM parameters with fsinfo() [ver #14]

2019-06-24 Thread David Howells
Implement LSM parameter value retrieval with fsinfo() - akin to parsing /proc/mounts. This allows all the LSM parameters to be retrieved in one go with: struct fsinfo_params params = { .request= FSINFO_ATTR_LSM_PARAMETER, }; The format is a blob containing

[PATCH 11/25] vfs: fsinfo sample: Mount listing program [ver #14]

2019-06-24 Thread David Howells
Implement a program to demonstrate mount listing using the new fsinfo() syscall, for example: # ./test-mntinfo -M 21 MOUNT MOUNT ID NOTIFY#TYPE & DEVICE - -- -- --- 21

[PATCH 12/25] fsinfo: Add API documentation [ver #14]

2019-06-24 Thread David Howells
Add API documentation for fsinfo. Signed-off-by: David Howells --- Documentation/filesystems/fsinfo.rst | 596 ++ 1 file changed, 596 insertions(+) create mode 100644 Documentation/filesystems/fsinfo.rst diff --git a/Documentation/filesystems/fsinfo.rst b/Doc

[PATCH 10/25] vfs: Allow mount information to be queried by fsinfo() [ver #14]

2019-06-24 Thread David Howells
Allow mount information, including information about the topology tree to be queried with the fsinfo() system call. Usage of AT_FSINFO_MOUNTID_PATH allows overlapping mounts to be queried. To this end, four fsinfo() attributes are provided: (1) FSINFO_ATTR_MOUNT_INFO. This is a structure

[PATCH 13/25] hugetlbfs: Add support for fsinfo() [ver #14]

2019-06-24 Thread David Howells
Add support for fsinfo(). Signed-off-by: David Howells --- fs/hugetlbfs/inode.c | 57 ++ 1 file changed, 57 insertions(+) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 1dcc57189382..62d5d5dec447 100644 --- a/fs/hugetlbfs/inode.

[PATCH 14/25] kernfs, cgroup: Add fsinfo support [ver #14]

2019-06-24 Thread David Howells
Add support for fsinfo() to kernfs and cgroup. Signed-off-by: David Howells --- fs/kernfs/mount.c | 20 include/linux/kernfs.h|4 kernel/cgroup/cgroup-v1.c | 44 kernel/cgroup/cgroup.c| 19 +

[PATCH 15/25] fsinfo: Support SELinux superblock parameter retrieval [ver #14]

2019-06-24 Thread David Howells
Add support to SELinux for retrieval of the superblock parameters by fsinfo(FSINFO_ATTR_LSM_PARAMETERS). Signed-off-by: David Howells --- security/selinux/hooks.c| 41 + security/selinux/include/security.h |2 + security/selinux/ss/services.c |

[PATCH 16/25] fsinfo: Support Smack superblock parameter retrieval [ver #14]

2019-06-24 Thread David Howells
Add support to Smack for retrieval of the superblock parameters. Signed-off-by: David Howells --- security/smack/smack_lsm.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 0de725f88

[PATCH 17/25] afs: Support fsinfo() [ver #14]

2019-06-24 Thread David Howells
Add fsinfo support to the AFS filesystem. Signed-off-by: David Howells --- fs/afs/internal.h |1 fs/afs/super.c | 180 +++ fs/fsinfo.c |3 + include/uapi/linux/fsinfo.h | 12 +++ samples/vfs/test-fsinfo.c

[PATCH 19/25] fsinfo: autofs - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 18/25] fsinfo: proc - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 23/25] fsinfo: debugfs - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 20/25] fsinfo: shmem - add tmpfs sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 21/25] fsinfo: devpts - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 22/25] fsinfo: pstore - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 25/25] fsinfo: ufs - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

[PATCH 24/25] fsinfo: bpf - add sb operation fsinfo() [ver #14]

2019-06-24 Thread David Howells
From: Ian Kent The new fsinfo() system call adds a new super block operation ->fsinfo() which is used by file systems to provide file system specific information for fsinfo() requests. The fsinfo() request FSINFO_ATTR_PARAMETERS provides the same function as sb operation ->show_options() so it n

Re: [PATCH] x86/kvm/nVMCS: fix VMCLEAR when Enlightened VMCS is in use

2019-06-24 Thread Vitaly Kuznetsov
Liran Alon writes: >> On 24 Jun 2019, at 16:30, Vitaly Kuznetsov wrote: >> >> When Enlightened VMCS is in use, it is valid to do VMCLEAR and, >> according to TLFS, this should "transition an enlightened VMCS from the >> active to the non-active state". It is, however, wrong to assume that >> it

Re: [PATCH v7 00/25] Unify vDSOs across more architectures

2019-06-24 Thread Thomas Gleixner
Vincenzo, On Mon, 24 Jun 2019, Thomas Gleixner wrote: > I did not merge the ARM and MIPS parts as they lack any form of > acknowlegment from their maintainers. Please talk to those folks. If they > ack/review the changes then I can pick them up and they go into 5.3 or they > have to go in a later

Re: [PATCH net-next v2] hinic: implement the statistical interface of ethtool

2019-06-24 Thread David Miller
From: Xue Chaojing Date: Mon, 24 Jun 2019 03:50:12 + > This patch implement the statistical interface of ethtool, user can use > ethtool -S to show hinic statistics. > > Signed-off-by: Xue Chaojing Applied.

Re: [RFC] deadlock with flush_work() in UAS

2019-06-24 Thread Alan Stern
On Mon, 24 Jun 2019, Oliver Neukum wrote: > Am Donnerstag, den 20.06.2019, 07:10 -0700 schrieb Tejun Heo: > > Hello, > > > > On Tue, Jun 18, 2019 at 11:59:39AM -0400, Alan Stern wrote: > > > > > Even if you disagree, perhaps we should have a global workqueue with a > > > > > permanently set noio

Re: [PATCH V2] net: ethernet: ti: cpsw: Fix suspend/resume break

2019-06-24 Thread David Miller
From: Keerthy Date: Mon, 24 Jun 2019 10:46:19 +0530 > Commit bfe59032bd6127ee190edb30be9381a01765b958 ("net: ethernet: > ti: cpsw: use cpsw as drv data")changes > the driver data to struct cpsw_common *cpsw. This is done > only in probe/remove but the suspend/resume functions are > still left wit

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