Re: [2/2] hwmon: (pmbus/lm25066) Add support for TI LM5066I

2017-08-29 Thread Guenter Roeck
On Tue, Aug 29, 2017 at 02:21:17PM -0700, Xo Wang wrote: > The TI LM5066I hotswap controller is a more accurate version of the > LM5066 device already supported. It has different measurement conversion > coefficients than the LM5066, so it needs to be recognized as a > different device. > > Signed

Re: [1/2] hwmon: (pmbus/lm25066) Offset coefficient depends on CL

2017-08-29 Thread Guenter Roeck
On Tue, Aug 29, 2017 at 02:21:16PM -0700, Xo Wang wrote: > When converting the DIRECT format CURRENT_IN and POWER commands, make > the offset coefficient ("b") predicate on the value of the current limit > setting. > > Signed-off-by: Xo Wang Applied to hwmon-next. Thanks, Guenter > --- > driv

[PATCH] Documentation:input: fix typo

2017-08-29 Thread John de la Garza
Signed-off-by: John de la Garza --- Documentation/input/input.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/input/input.rst b/Documentation/input/input.rst index 3b3a22975106..47f86a4bf16c 100644 --- a/Documentation/input/input.rst +++ b/Documentation/input

[PATCH 1/2] hwmon: (pmbus/lm25066) Offset coefficient depends on CL

2017-08-29 Thread Xo Wang
When converting the DIRECT format CURRENT_IN and POWER commands, make the offset coefficient ("b") predicate on the value of the current limit setting. Signed-off-by: Xo Wang --- drivers/hwmon/pmbus/lm25066.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon

[PATCH 2/2] hwmon: (pmbus/lm25066) Add support for TI LM5066I

2017-08-29 Thread Xo Wang
The TI LM5066I hotswap controller is a more accurate version of the LM5066 device already supported. It has different measurement conversion coefficients than the LM5066, so it needs to be recognized as a different device. Signed-off-by: Xo Wang --- Documentation/hwmon/lm25066 | 9 +++--

[PATCH 0/2] Add hwmon support for TI LM5066I hotswap controller

2017-08-29 Thread Xo Wang
Tested with hardware on Aspeed AST2500 connected to LM5066I on a custom board. Xo Wang (2): hwmon: (pmbus/lm25066) Offset coefficient depends on CL hwmon: (pmbus/lm25066) Add support for TI LM5066I Documentation/hwmon/lm25066 | 9 +++-- drivers/hwmon/pmbus/lm25066.c | 47 +

Re: [PATCH] Documentation: small fixes for LEDs, hide notes about vibration

2017-08-29 Thread Pavel Machek
Hi! > > -As a specific example of this use-case, let's look at vibrate feature on > > -phones. Vibrate function on phones is implemented using PWM pins on SoC or > > -PMIC. There is a need to activate one shot timer to control the vibrate > > -feature, to prevent user space crashes leaving the pho

Re: [PATCH] Documentation: fix little inconsistencies

2017-08-29 Thread Pavel Machek
On Tue 2017-08-29 13:09:45, Jonathan Corbet wrote: > On Tue, 29 Aug 2017 09:50:57 -0700 > "Darrick J. Wong" wrote: > > > > Anything wrong here? It is fixing extra '+' in the ascii art... > > > > There's nothing incorrect here, I merely thought it odd to send a fix > > for networking documentat

Re: [PATCH] Documentation: small fixes for LEDs, hide notes about vibration

2017-08-29 Thread Jacek Anaszewski
Hi Pavel, Thanks for the patch. On 08/28/2017 11:50 AM, Pavel Machek wrote: > > Spell "LED" consistently with uppercase. > > We do not want people to use LED subsystem for vibrations; there's > already support for that in input subsystem. Remove notes about > vibrations not to confuse people. >

Re: [PATCH] Documentation: fix little inconsistencies

2017-08-29 Thread Jonathan Corbet
On Tue, 29 Aug 2017 09:50:57 -0700 "Darrick J. Wong" wrote: > > Anything wrong here? It is fixing extra '+' in the ascii art... > > There's nothing incorrect here, I merely thought it odd to send a fix > for networking documentation to the ext4 list, but not netdev? In fact, davem likes to ha

Re: [RFC PATCH v2 5/7] Documentation: Add three sysctls for smart idle poll

2017-08-29 Thread Luis R. Rodriguez
On Tue, Aug 29, 2017 at 11:46:39AM +, Yang Zhang wrote: > To reduce the cost of poll, we introduce three sysctl to control the > poll time. This commit does not describe in any way the fact that these knobs are all for and only for PARAVIRT. > diff --git a/Documentation/sysctl/kernel.txt b/Do

Re: [PATCH] Documentation: fix little inconsistencies

2017-08-29 Thread Darrick J. Wong
On Tue, Aug 29, 2017 at 09:27:08AM +0200, Pavel Machek wrote: > > > > > index 5e40e1f..6309e90 100644 > > > --- a/Documentation/networking/switchdev.txt > > > +++ b/Documentation/networking/switchdev.txt > > > @@ -29,7 +29,7 @@ with SR-IOV or soft switches, such as OVS, are possible. > > >  

Re: [RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Michael S. Tsirkin
On Tue, Aug 29, 2017 at 11:46:34AM +, Yang Zhang wrote: > Some latency-intensive workload will see obviously performance > drop when running inside VM. But are we trading a lot of CPU for a bit of lower latency? > The main reason is that the overhead > is amplified when running inside VM. T

Re: [RFC PATCH v2 3/7] sched/idle: Add poll before enter real idle path

2017-08-29 Thread Borislav Petkov
On Tue, Aug 29, 2017 at 11:46:37AM +, Yang Zhang wrote: > Add poll in do_idle. For UP VM, if there are running task, it will not > goes into idle path, so we only enable poll in SMP VM. > > Signed-off-by: Yang Zhang > Signed-off-by: Quan Xu > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H.

Re: [RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Michael S. Tsirkin
On Tue, Aug 29, 2017 at 10:02:15PM +0800, Wanpeng Li wrote: > Actually I'm not sure how much sense it makes to introduce this pv > stuff and the duplicate adaptive halt-polling logic as what has > already been done in kvm w/o obvious benefit for real workload like > netperf. In fact, I would reall

Re: [RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Konrad Rzeszutek Wilk
On Tue, Aug 29, 2017 at 10:02:15PM +0800, Wanpeng Li wrote: > > Here is the data we get when running benchmark netperf: > > > >2. w/ patch: > > halt_poll_threshold=1 -- 15803.89 bits/s -- 159.5 %CPU > > halt_poll_threshold=2 -- 15899.04 bits/s -- 161.5 %CPU > > halt_po

Re: [RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Wanpeng Li
> Here is the data we get when running benchmark netperf: > >2. w/ patch: > halt_poll_threshold=1 -- 15803.89 bits/s -- 159.5 %CPU > halt_poll_threshold=2 -- 15899.04 bits/s -- 161.5 %CPU > halt_poll_threshold=3 -- 15642.38 bits/s -- 161.8 %CPU > halt_poll_th

Re: [RFC PATCH v2 1/7] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-08-29 Thread Konrad Rzeszutek Wilk
On Tue, Aug 29, 2017 at 11:46:35AM +, Yang Zhang wrote: > So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called in > idle path which will polling for a while before we enter the real idle > state. > > In virtualization, idle path includes several heavy operations > includes tim

[PATCH v6 2/7] media: open.rst: better document device node naming

2017-08-29 Thread Mauro Carvalho Chehab
Right now, only kAPI documentation describes the device naming. However, such description is needed at the uAPI too. Add it, and describe how to get an unique identify for a given device. Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/open.rst | 44

[PATCH v6 6/7] media: videodev2: add a flag for MC-centric devices

2017-08-29 Thread Mauro Carvalho Chehab
As both vdev-centric and MC-centric devices may implement the same APIs, we need a flag to allow userspace to distinguish between them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/open.rst| 7 +++ Documentation/media/uapi/v4l/vidioc-querycap.rst | 5

[PATCH v6 0/7] document types of hardware control for V4L2

2017-08-29 Thread Mauro Carvalho Chehab
On Kernel 2.6.39, the omap3 driver was introduced together with a new way to control complex V4L2 devices used on embedded systems, but this was never documented, as the original idea were to have "soon" support for standard apps to use it as well, via libv4l, but that didn't happen so far. Also,

[PATCH v6 5/7] media: open.rst: Adjust some terms to match the glossary

2017-08-29 Thread Mauro Carvalho Chehab
As we now have a glossary, some terms used on open.rst require adjustments. Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/open.rst | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/media/uapi/v4l/open.rs

[PATCH v6 4/7] media: open.rst: document devnode-centric and mc-centric types

2017-08-29 Thread Mauro Carvalho Chehab
When we added support for omap3, back in 2010, we added a new type of V4L2 devices that aren't fully controlled via the V4L2 device node. Yet, we have never clearly documented in the V4L2 specification the differences between the two types. Let's document them based on the the current implementat

[PATCH v6 7/7] media: open.rst: add a notice about subdev-API on vdev-centric

2017-08-29 Thread Mauro Carvalho Chehab
The documentation doesn't mention if vdev-centric hardware control would have subdev API or not. Add a notice about that, reflecting the current status, where three drivers use it, in order to support some subdev-specific controls. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/ua

[PATCH v6 1/7] media: add glossary.rst with a glossary of terms used at V4L2 spec

2017-08-29 Thread Mauro Carvalho Chehab
Add a glossary of terms for V4L2, as several concepts are complex enough to cause misunderstandings. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/glossary.rst | 150 ++ Documentation/media/uapi/v4l/v4l2.rst | 1 + 2 files changed, 151 in

[PATCH v6 3/7] media: open.rst: remove the minor number range

2017-08-29 Thread Mauro Carvalho Chehab
minor numbers use to range between 0 to 255, but that was changed a long time ago. While it still applies when CONFIG_VIDEO_FIXED_MINOR_RANGES, when the minor number is dynamically allocated, this may not be true. In any case, this is not relevant, as udev will take care of it. So, remove this use

Re: [PATCH v5 1/7] media: add glossary.rst with a glossary of terms used at V4L2 spec

2017-08-29 Thread Mauro Carvalho Chehab
Em Tue, 29 Aug 2017 10:47:48 +0300 Sakari Ailus escreveu: > Hi Mauro, > > Thanks for the update. A few comments below. > > On Mon, Aug 28, 2017 at 09:53:55AM -0300, Mauro Carvalho Chehab wrote: > > Add a glossary of terms for V4L2, as several concepts are complex > > enough to cause misundersta

Re: [RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Andi Kleen
Yang Zhang writes: > Some latency-intensive workload will see obviously performance > drop when running inside VM. The main reason is that the overhead > is amplified when running inside VM. The most cost i have seen is > inside idle path. You could test with https://lkml.org/lkml/2017/7/9/2

Re: [RFC PATCH v2 7/7] sched/idle: update poll time when wakeup from idle

2017-08-29 Thread Peter Zijlstra
On Tue, Aug 29, 2017 at 11:46:41AM +, Yang Zhang wrote: > In ttwu_do_wakeup, it will update avg_idle when wakeup from idle. Here > we just reuse this logic to update the poll time. It may be a little > late to update the poll in ttwu_do_wakeup, but the test result shows no > obvious performance

Re: [RFC PATCH v2 3/7] sched/idle: Add poll before enter real idle path

2017-08-29 Thread Peter Zijlstra
On Tue, Aug 29, 2017 at 11:46:37AM +, Yang Zhang wrote: > Add poll in do_idle. For UP VM, if there are running task, it will not > goes into idle path, so we only enable poll in SMP VM. > > Signed-off-by: Yang Zhang > Signed-off-by: Quan Xu Broken SoB chain. > diff --git a/kernel/sched/idl

Re: [PATCH v5 0/6] Add HiSilicon SoC uncore Performance Monitoring Unit driver

2017-08-29 Thread Zhangshaokun
Hi Mark/Will, Do you have any comments on this patch set? Appreciate your comments. Thanks, Shaokun On 2017/8/22 16:07, Shaokun Zhang wrote: > This patchset adds support for HiSilicon SoC uncore PMUs driver. It > includes L3C, Hydra Home Agent (HHA) and DDRC. > > Changes in v5: > * remove unnec

Re: [RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Alexander Graf
On 08/29/2017 01:46 PM, Yang Zhang wrote: Some latency-intensive workload will see obviously performance drop when running inside VM. The main reason is that the overhead is amplified when running inside VM. The most cost i have seen is inside idle path. This patch introduces a new mechanism to

Re: [PATCH V3 2/8] drivers: boot_constraint: Add boot_constraints_disable kernel parameter

2017-08-29 Thread Greg Kroah-Hartman
On Tue, Aug 29, 2017 at 12:02:41PM +0200, Viresh Kumar wrote: > On 29-08-17, 08:37, Greg Kroah-Hartman wrote: > > On Tue, Aug 01, 2017 at 02:53:43PM +0530, Viresh Kumar wrote: > > > + boot_constraints_disable > > > + Do not set any boot constraints for devices. > > > > Shouldn't th

[RFC PATCH v2 1/7] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-08-29 Thread Yang Zhang
So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called in idle path which will polling for a while before we enter the real idle state. In virtualization, idle path includes several heavy operations includes timer access(LAPIC timer or TSC deadline timer) which will hurt performance

[RFC PATCH v2 2/7] KVM guest: register kvm_idle_poll for pv_idle_ops

2017-08-29 Thread Yang Zhang
Although smart idle poll has nothing to do with paravirt, it can not bring any benifit to native. So we only enable it when Linux runs as a KVM guest(it can extend to other hypervisor like Xen, HyperV and VMware). Introduce per-CPU variable poll_duration_ns to control the max poll time. Signed-of

[RFC PATCH v2 0/7] x86/idle: add halt poll support

2017-08-29 Thread Yang Zhang
Some latency-intensive workload will see obviously performance drop when running inside VM. The main reason is that the overhead is amplified when running inside VM. The most cost i have seen is inside idle path. This patch introduces a new mechanism to poll for a while before entering idle s

[RFC PATCH v2 4/7] x86/paravirt: Add update in x86/paravirt pv_idle_ops

2017-08-29 Thread Yang Zhang
.update is used to adjust the next poll time. Signed-off-by: Yang Zhang Signed-off-by: Quan Xu Cc: Jeremy Fitzhardinge Cc: Chris Wright Cc: Alok Kataria Cc: Rusty Russell Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Peter Zijlstra Cc: Andy Lutomirski

[RFC PATCH v2 5/7] Documentation: Add three sysctls for smart idle poll

2017-08-29 Thread Yang Zhang
To reduce the cost of poll, we introduce three sysctl to control the poll time. Signed-off-by: Yang Zhang Signed-off-by: Quan Xu Cc: Jonathan Corbet Cc: Jeremy Fitzhardinge Cc: Chris Wright Cc: Alok Kataria Cc: Rusty Russell Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x.

[RFC PATCH v2 6/7] KVM guest: introduce smart idle poll algorithm

2017-08-29 Thread Yang Zhang
using smart idle poll to reduce the useless poll when system is idle. Signed-off-by: Yang Zhang Signed-off-by: Quan Xu Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: k...@vger.kernel.org Cc: linux-ker...@vger.kernel.org --- arch/x86/kernel

[RFC PATCH v2 7/7] sched/idle: update poll time when wakeup from idle

2017-08-29 Thread Yang Zhang
In ttwu_do_wakeup, it will update avg_idle when wakeup from idle. Here we just reuse this logic to update the poll time. It may be a little late to update the poll in ttwu_do_wakeup, but the test result shows no obvious performance gap compare with updating poll in irq handler. one problem is that

[RFC PATCH v2 3/7] sched/idle: Add poll before enter real idle path

2017-08-29 Thread Yang Zhang
Add poll in do_idle. For UP VM, if there are running task, it will not goes into idle path, so we only enable poll in SMP VM. Signed-off-by: Yang Zhang Signed-off-by: Quan Xu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Peter Zijlstra Cc: Borislav Petkov

Re: [PATCH V3 2/8] drivers: boot_constraint: Add boot_constraints_disable kernel parameter

2017-08-29 Thread Viresh Kumar
On 29-08-17, 08:37, Greg Kroah-Hartman wrote: > On Tue, Aug 01, 2017 at 02:53:43PM +0530, Viresh Kumar wrote: > > + boot_constraints_disable > > + Do not set any boot constraints for devices. > > Shouldn't that be the default? As really, that is what the situation is > today,

Re: [PATCH v4 7/7] media: open.rst: add a notice about subdev-API on vdev-centric

2017-08-29 Thread Mauro Carvalho Chehab
Em Tue, 29 Aug 2017 10:39:52 +0200 Hans Verkuil escreveu: > On 29/08/17 10:31, Ramesh Shanmugasundaram wrote: > > Hi Hans, > > > >> On 28/08/17 12:30, Mauro Carvalho Chehab wrote: > >>> Em Mon, 28 Aug 2017 12:05:06 +0200 > >>> Hans Verkuil escreveu: > >>> > On 26/08/17 13:53, Mauro C

Re: [PATCH v5 2/7] media: open.rst: better document device node naming

2017-08-29 Thread Mauro Carvalho Chehab
Hi Sakari, Em Tue, 29 Aug 2017 11:34:06 +0300 Sakari Ailus escreveu: > Hi Mauro, > > On Mon, Aug 28, 2017 at 09:53:56AM -0300, Mauro Carvalho Chehab wrote: > > Right now, only kAPI documentation describes the device naming. > > However, such description is needed at the uAPI too. Add it, > > an

Re: [PATCH v4 7/7] media: open.rst: add a notice about subdev-API on vdev-centric

2017-08-29 Thread Hans Verkuil
On 29/08/17 10:31, Ramesh Shanmugasundaram wrote: > Hi Hans, > >> On 28/08/17 12:30, Mauro Carvalho Chehab wrote: >>> Em Mon, 28 Aug 2017 12:05:06 +0200 >>> Hans Verkuil escreveu: >>> On 26/08/17 13:53, Mauro Carvalho Chehab wrote: > The documentation doesn't mention if vdev-centric hard

Re: [PATCH v5 3/7] media: open.rst: remove the minor number range

2017-08-29 Thread Sakari Ailus
On Mon, Aug 28, 2017 at 09:53:57AM -0300, Mauro Carvalho Chehab wrote: > minor numbers use to range between 0 to 255, but that > was changed a long time ago. While it still applies when > CONFIG_VIDEO_FIXED_MINOR_RANGES, when the minor number is > dynamically allocated, this may not be true. In any

Re: [PATCH v5 2/7] media: open.rst: better document device node naming

2017-08-29 Thread Sakari Ailus
Hi Mauro, On Mon, Aug 28, 2017 at 09:53:56AM -0300, Mauro Carvalho Chehab wrote: > Right now, only kAPI documentation describes the device naming. > However, such description is needed at the uAPI too. Add it, > and describe how to get an unique identify for a given device. > > Acked-by: Hans Ver

RE: [PATCH v4 7/7] media: open.rst: add a notice about subdev-API on vdev-centric

2017-08-29 Thread Ramesh Shanmugasundaram
Hi Hans, > On 28/08/17 12:30, Mauro Carvalho Chehab wrote: > > Em Mon, 28 Aug 2017 12:05:06 +0200 > > Hans Verkuil escreveu: > > > >> On 26/08/17 13:53, Mauro Carvalho Chehab wrote: > >>> The documentation doesn't mention if vdev-centric hardware control > >>> would have subdev API or not. > >>>

Re: [PATCH v5 1/7] media: add glossary.rst with a glossary of terms used at V4L2 spec

2017-08-29 Thread Sakari Ailus
Hi Mauro, Thanks for the update. A few comments below. On Mon, Aug 28, 2017 at 09:53:55AM -0300, Mauro Carvalho Chehab wrote: > Add a glossary of terms for V4L2, as several concepts are complex > enough to cause misunderstandings. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/

Re: [PATCH] Documentation: fix little inconsistencies

2017-08-29 Thread Pavel Machek
> > index 5e40e1f..6309e90 100644 > > --- a/Documentation/networking/switchdev.txt > > +++ b/Documentation/networking/switchdev.txt > > @@ -29,7 +29,7 @@ with SR-IOV or soft switches, such as OVS, are possible. > >   sw1p1  + sw1p3 +  sw1p5 + eth1 > >