Re: [WIP PATCH 03/15] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports

2018-12-18 Thread Lyude Paul
On Fri, 2018-12-14 at 10:29 +0100, Daniel Vetter wrote: > On Thu, Dec 13, 2018 at 08:25:32PM -0500, Lyude Paul wrote: > > The current way of handling refcounting in the DP MST helpers is really > > confusing and probably just plain wrong because it's been hacked up many > > times over the years wit

[PATCH v9 00/12] PECI device driver introduction

2018-12-18 Thread Jae Hyun Yoo
Introduction of the Platform Environment Control Interface (PECI) bus device driver. PECI is a one-wire bus interface that provides a communication channel from Intel processors and chipset components to external monitoring or control devices. PECI is designed to support the following sideband func

[PATCH v9 02/12] Documentation: ioctl: Add ioctl numbers for PECI subsystem

2018-12-18 Thread Jae Hyun Yoo
This commit updates ioctl-number.txt to reflect ioctl numbers used by the PECI subsystem. Cc: Jonathan Corbet Cc: Greg Kroah-Hartman Cc: Kishon Vijay Abraham I Cc: Lorenzo Pieralisi Cc: Gustavo Pimentel Cc: Darrick J. Wong Cc: Tomohiro Kusumi Cc: Eric Sandeen Cc: Frederic Barrat Cc: Bryan

[PATCH v9 01/12] dt-bindings: Add a document of PECI subsystem

2018-12-18 Thread Jae Hyun Yoo
This commit adds a document of generic PECI bus, adapter and client driver. Cc: Rob Herring Cc: Mark Rutland Cc: Andrew Jeffery Cc: Joel Stanley Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang Reviewed-by: James Feist Reviewed-by: Vernon Mauery Reviewed-by: Rob Herring --- .../devic

[PATCH v9 03/12] peci: Add support for PECI bus driver core

2018-12-18 Thread Jae Hyun Yoo
This commit adds driver implementation for PECI bus core into linux driver framework. PECI (Platform Environment Control Interface) is a one-wire bus interface that provides a communication channel from Intel processors and chipset components to external monitoring or control devices. PECI is desi

[PATCH v9 04/12] dt-bindings: Add a document of PECI adapter driver for ASPEED AST24xx/25xx SoCs

2018-12-18 Thread Jae Hyun Yoo
This commit adds a dt-bindings document of PECI adapter driver for ASPEED AST24xx/25xx SoCs. Cc: Mark Rutland Cc: Joel Stanley Cc: Andrew Jeffery Cc: Benjamin Herrenschmidt Cc: Greg Kroah-Hartman Cc: Jason M Biils Cc: Milton Miller II Cc: Pavel Machek Cc: Robin Murphy Cc: Ryan Chen Signe

[PATCH v9 06/12] peci: Add a PECI adapter driver for Aspeed AST24xx/AST25xx

2018-12-18 Thread Jae Hyun Yoo
This commit adds PECI adapter driver implementation for Aspeed AST24xx/AST25xx SoCs. Cc: Joel Stanley Cc: Andrew Jeffery Cc: Andy Shevchenko Cc: Greg Kroah-Hartman Cc: Robin Murphy Cc: Ryan Chen Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang Reviewed-by: James Feist Reviewed-by: Ver

[PATCH v9 05/12] ARM: dts: aspeed: peci: Add PECI node

2018-12-18 Thread Jae Hyun Yoo
This commit adds PECI bus/adapter node of AST24xx/AST25xx into aspeed-g4 and aspeed-g5. Cc: Rob Herring Cc: Mark Rutland Cc: Joel Stanley Cc: Andrew Jeffery Cc: Jason M Biils Cc: Ryan Chen Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang Reviewed-by: James Feist Reviewed-by: Vernon Ma

[PATCH v9 07/12] dt-bindings: mfd: Add a document for PECI client MFD

2018-12-18 Thread Jae Hyun Yoo
This commit adds a dt-bindings document for PECI client MFD. Cc: Lee Jones Cc: Rob Herring Cc: Mark Rutland Cc: Andrew Jeffery Cc: James Feist Cc: Jason M Biils Cc: Joel Stanley Cc: Vernon Mauery Signed-off-by: Jae Hyun Yoo Reviewed-by: Rob Herring --- .../bindings/mfd/intel-peci-client

[PATCH v9 09/12] Documentation: hwmon: Add documents for PECI hwmon client drivers

2018-12-18 Thread Jae Hyun Yoo
This commit adds hwmon documents for PECI cputemp and dimmtemp drivers. Cc: Guenter Roeck Cc: Jean Delvare Cc: Jonathan Corbet Cc: Jason M Biils Cc: Randy Dunlap Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang Reviewed-by: James Feist Reviewed-by: Vernon Mauery Acked-by: Guenter Roec

[PATCH v9 11/12] hwmon: Add PECI dimmtemp driver

2018-12-18 Thread Jae Hyun Yoo
This commit adds PECI dimmtemp hwmon driver. Cc: Guenter Roeck Cc: Jean Delvare Cc: Alan Cox Cc: Andrew Jeffery Cc: Andy Shevchenko Cc: Arnd Bergmann Cc: Jason M Biils Cc: Joel Stanley Cc: Miguel Ojeda Cc: Andrew Lunn Cc: Stef van Os Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang

[PATCH v9 08/12] mfd: intel-peci-client: Add PECI client MFD driver

2018-12-18 Thread Jae Hyun Yoo
This commit adds PECI client MFD driver. Cc: Lee Jones Cc: Randy Dunlap Cc: Rob Herring Cc: Andrew Jeffery Cc: James Feist Cc: Jason M Biils Cc: Joel Stanley Cc: Vernon Mauery Signed-off-by: Jae Hyun Yoo --- drivers/mfd/Kconfig | 14 +++ drivers/mfd/Makefile

[PATCH v9 12/12] Add maintainers for the PECI subsystem

2018-12-18 Thread Jae Hyun Yoo
This commit adds maintainer information for the PECI subsystem. Cc: David S. Miller Cc: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman Cc: Andrew Morton Cc: Linus Walleij Cc: Randy Dunlap Cc: Jason M Biils Signed-off-by: Jae Hyun Yoo --- MAINTAINERS | 22 ++ 1 file chang

[PATCH v9 10/12] hwmon: Add PECI cputemp driver

2018-12-18 Thread Jae Hyun Yoo
This commit adds PECI cputemp hwmon driver. Cc: Guenter Roeck Cc: Jean Delvare Cc: Alan Cox Cc: Andrew Jeffery Cc: Andy Shevchenko Cc: Arnd Bergmann Cc: Jason M Biils Cc: Joel Stanley Cc: Miguel Ojeda Cc: Andrew Lunn Cc: Stef van Os Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang

Re: [PATCH mm] kasan, arm64: use ARCH_SLAB_MINALIGN instead of manual aligning

2018-12-18 Thread Andrew Morton
On Tue, 18 Dec 2018 14:30:33 +0100 Andrey Konovalov wrote: > Instead of changing cache->align to be aligned to KASAN_SHADOW_SCALE_SIZE > in kasan_cache_create() we can reuse the ARCH_SLAB_MINALIGN macro. > > ... > > --- a/arch/arm64/include/asm/kasan.h > +++ b/arch/arm64/include/asm/kasan.h > @

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Suren Baghdasaryan
On Tue, Dec 18, 2018 at 11:18 AM Joel Fernandes wrote: > > On Tue, Dec 18, 2018 at 9:58 AM 'Suren Baghdasaryan' via kernel-team > wrote: > > > > Current design supports only whole percentages and if userspace needs > > more granularity then it has to use usecs. > > I agree that usecs cover % usec

Re: [PATCH v5 4/7] cgroup: cgroup v2 freezer

2018-12-18 Thread Roman Gushchin
On Tue, Dec 18, 2018 at 06:12:30PM +0100, Oleg Nesterov wrote: > On 12/18, Roman Gushchin wrote: > > > > On Wed, Dec 12, 2018 at 06:49:02PM +0100, Oleg Nesterov wrote: > > > > > and btw what about suspend? try_to_freeze_tasks() will obviously > > > > > fail > > > > > if there is a ->frozen thr

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Joel Fernandes
On Tue, Dec 18, 2018 at 9:58 AM 'Suren Baghdasaryan' via kernel-team wrote: > > Current design supports only whole percentages and if userspace needs > more granularity then it has to use usecs. > I agree that usecs cover % usecase and "threshold * win / 100" is > simple enough for userspace to ca

Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io

2018-12-18 Thread Paolo Valente
> Il giorno 18 dic 2018, alle ore 18:22, Paolo Valente > ha scritto: > > > >> Il giorno 18 dic 2018, alle ore 17:41, Tejun Heo ha >> scritto: >> >> Hello, Paolo. >> >> On Tue, Dec 18, 2018 at 08:48:10AM +0100, Paolo Valente wrote: >>> If Tejun cannot see any solution to his concern, the

Re: [RFC][PATCH 0/3] arm64 relaxed ABI

2018-12-18 Thread Catalin Marinas
On Tue, Dec 18, 2018 at 04:03:38PM +0100, Andrey Konovalov wrote: > On Wed, Dec 12, 2018 at 4:02 PM Catalin Marinas > wrote: > > The summary of our internal discussions (mostly between kernel > > developers) is that we can't properly describe a user ABI that covers > > future syscalls or syscall

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Suren Baghdasaryan
Current design supports only whole percentages and if userspace needs more granularity then it has to use usecs. I agree that usecs cover % usecase and "threshold * win / 100" is simple enough for userspace to calculate. I'm fine with changing to usecs only. On Tue, Dec 18, 2018 at 9:30 AM Johanne

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Johannes Weiner
On Tue, Dec 18, 2018 at 11:46:22AM +0100, Peter Zijlstra wrote: > On Mon, Dec 17, 2018 at 05:21:05PM -0800, Suren Baghdasaryan wrote: > > On Mon, Dec 17, 2018 at 8:22 AM Peter Zijlstra wrote: > > > > How well has this thing been fuzzed? Custom string parser, yay! > > > > Honestly, not much. Norm

Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io

2018-12-18 Thread Paolo Valente
> Il giorno 18 dic 2018, alle ore 17:41, Tejun Heo ha scritto: > > Hello, Paolo. > > On Tue, Dec 18, 2018 at 08:48:10AM +0100, Paolo Valente wrote: >> If Tejun cannot see any solution to his concern, then can we just >> switch to this extension, considering that >> - for non-shared names the

Re: [PATCH v9 0/8] arm64: untag user pointers passed to the kernel

2018-12-18 Thread Andrey Konovalov
On Wed, Dec 12, 2018 at 6:01 PM Dave Martin wrote: > > On Mon, Dec 10, 2018 at 01:50:57PM +0100, Andrey Konovalov wrote: > > arm64 has a feature called Top Byte Ignore, which allows to embed pointer > > tags into the top byte of each pointer. Userspace programs (such as > > HWASan, a memory debugg

Re: [PATCH v5 4/7] cgroup: cgroup v2 freezer

2018-12-18 Thread Oleg Nesterov
On 12/18, Roman Gushchin wrote: > > On Wed, Dec 12, 2018 at 06:49:02PM +0100, Oleg Nesterov wrote: > > > > and btw what about suspend? try_to_freeze_tasks() will obviously > > > > fail > > > > if there is a ->frozen thread? > > > > > > I have to think a bit more here, but something like this w

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread kbuild test robot
Hi Suren, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.20-rc7] [cannot apply to next-20181218] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io

2018-12-18 Thread Tejun Heo
Hello, Paolo. On Tue, Dec 18, 2018 at 08:48:10AM +0100, Paolo Valente wrote: > If Tejun cannot see any solution to his concern, then can we just > switch to this extension, considering that > - for non-shared names the interface is *identical* to the current > one; > - by using this new interfac

Re: [PATCH v8 03/26] dt-bindings: Add doc for the Ingenic TCU drivers

2018-12-18 Thread Rob Herring
On Mon, Dec 17, 2018 at 4:04 PM Paul Cercueil wrote: > > Hi Rob, > > Le lun. 17 déc. 2018 à 22:05, Rob Herring a écrit : > > On Wed, Dec 12, 2018 at 11:08:58PM +0100, Paul Cercueil wrote: > >> Add documentation about how to properly use the Ingenic TCU > >> (Timer/Counter Unit) drivers from dev

Re: [RFC][PATCH 0/3] arm64 relaxed ABI

2018-12-18 Thread Andrey Konovalov
On Wed, Dec 12, 2018 at 4:02 PM Catalin Marinas wrote: > > Hi Andrey, > > On Wed, Dec 12, 2018 at 03:23:25PM +0100, Andrey Konovalov wrote: > > On Mon, Dec 10, 2018 at 3:31 PM Vincenzo Frascino > > wrote: > > > On arm64 the TCR_EL1.TBI0 bit has been set since Linux 3.x hence > > > the userspace (

Re: [PATCH v13 19/25] kasan: add hooks implementation for tag-based mode

2018-12-18 Thread Andrey Konovalov
On Mon, Dec 17, 2018 at 9:38 PM Andrew Morton wrote: > > On Mon, 17 Dec 2018 20:33:42 +0100 Andrey Konovalov > wrote: > > > > Curiosity, did you try your patches with SLUB red zoning enabled? > > > Since the area used for the Redzone is just after the payload, aligning > > > the > > > object_si

[PATCH mm] kasan, arm64: use ARCH_SLAB_MINALIGN instead of manual aligning

2018-12-18 Thread Andrey Konovalov
Instead of changing cache->align to be aligned to KASAN_SHADOW_SCALE_SIZE in kasan_cache_create() we can reuse the ARCH_SLAB_MINALIGN macro. Suggested-by: Vincenzo Frascino Signed-off-by: Andrey Konovalov --- arch/arm64/include/asm/kasan.h | 4 mm/kasan/common.c | 2 -- 2 file

Re: [PATCH 1/2 v3] kdump: add the vmcoreinfo documentation

2018-12-18 Thread Borislav Petkov
On Tue, Dec 18, 2018 at 03:31:32PM +0800, lijiang wrote: > The printk_log is used to output human readable text, it will encapsulate > header > information for log_buf, such as timestamp, syslog level, etc. Me asking those questions is supposed to hint that the explanations need improvement. But

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Peter Zijlstra
On Tue, Dec 18, 2018 at 11:46:22AM +0100, Peter Zijlstra wrote: > On Mon, Dec 17, 2018 at 05:21:05PM -0800, Suren Baghdasaryan wrote: > > On Mon, Dec 17, 2018 at 8:22 AM Peter Zijlstra wrote: > > > > How well has this thing been fuzzed? Custom string parser, yay! > > > > Honestly, not much. Norm

[PATCH] usb: typec: Improve Alt Mode documentation

2018-12-18 Thread Heikki Krogerus
Adding the document to the usb index file and fixing a few references. Also, exposing the code examples as "literal blocks" so they are more easy to read. Signed-off-by: Heikki Krogerus --- Documentation/driver-api/usb/index.rst | 1 + Documentation/driver-api/usb/typec.rst | 1 + Docu

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Peter Zijlstra
On Mon, Dec 17, 2018 at 05:21:05PM -0800, Suren Baghdasaryan wrote: > On Mon, Dec 17, 2018 at 8:22 AM Peter Zijlstra wrote: > > How well has this thing been fuzzed? Custom string parser, yay! > > Honestly, not much. Normal cases and some obvious corner cases. Will > check if I can use some fuzze

Re: [PATCH 4/6] psi: introduce state_mask to represent stalled psi states

2018-12-18 Thread Peter Zijlstra
On Mon, Dec 17, 2018 at 05:14:53PM -0800, Suren Baghdasaryan wrote: > On Mon, Dec 17, 2018 at 7:55 AM Peter Zijlstra wrote: > > > + if (state_mask & (1 << s)) > > > > We have the BIT() macro, but I'm honestly not sure that will improve > > things. > > I was mimicking the rest of the c