Re: [PATCH V3 8/9] cpufreq: Keep policy->freq_table sorted in ascending order

2016-06-06 Thread Viresh Kumar
On 6 June 2016 at 17:40, Rafael J. Wysocki wrote: > On Monday, June 06, 2016 09:22:31 AM Viresh Kumar wrote: >> I agree with that, though that requires larger changes across multiple >> sites. > > What changes and where? s/larger/some :) So we can change all the callers of cpufreq_frequency_tab

Re: [RFC v2 4/4] ARM: keystone: dma-coherent with safe fallback

2016-06-06 Thread Russell King - ARM Linux
On Mon, Jun 06, 2016 at 12:59:18PM +0100, Mark Rutland wrote: > I agree that whether or not devices are coherent in practice depends on > the kernel's configuration. The flip side, as you point out, is that > devices are coherent when a specific set of attributes are used. > > i.e. that if you rea

Re: [RFC v2 1/4] ARM: mm: add early page table attribute modification ability

2016-06-06 Thread William Mills
On 06/06/2016 08:18 AM, Russell King - ARM Linux wrote: > On Sun, Jun 05, 2016 at 11:20:26PM -0400, Bill Mills wrote: >> Allow early-init to specify modifications to be made to the boot time page >> table. Any modifications specified will be done with MMU off at the same >> time that any Phy<->Vi

Re: [PATCH v4 2/5] sched/fair: Fix attaching task sched avgs twice when switching to fair or changing task group

2016-06-06 Thread Vincent Guittot
Hi Yuyang, On 6 June 2016 at 02:20, Yuyang Du wrote: > Vincent reported that the first task to a new task group's cfs_rq will > be attached in attach_task_cfs_rq() and once more when it is enqueued > (see https://lkml.org/lkml/2016/5/25/388). > > Actually, it is worse. The sched avgs can be somet

Re: [PATCH v3 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-06-06 Thread Heiko Stübner
Am Montag, 6. Juni 2016, 12:27:54 schrieb Mark Rutland: > On Mon, Jun 06, 2016 at 05:20:03PM +0800, Frank Wang wrote: > > Signed-off-by: Frank Wang > > --- > > > > Changes in v3: > > - Added 'clocks' and 'clock-names' optional properties. > > - Specified 'otg-port' and 'host-port' as the sub-no

Re: [PATCH] iio: inv_mpu6050: Fix use-after-free in ACPI code

2016-06-06 Thread Daniel Baluta
On Fri, Jun 3, 2016 at 9:30 PM, Crestez Dan Leonard wrote: > In some cases this can result in incorrectly returning a negative value > from asus_acpi_get_sensor_info and the AK8963 magnetometer failing to > show up. > > Cc: Srinivas Pandruvada > Signed-off-by: Crestez Dan Leonard Looks good to

Re: [PATCH 09/12] net: mediatek: increase watchdog_timeo

2016-06-06 Thread John Crispin
On 06/06/2016 14:21, Andrew Lunn wrote: >> Hi Andrew, >> >> it is waiting for the watchdog to trigger :-) TBH the 1s seems to be too >> short to for the dma ring length to be flushed and i had to pick some >> value and 5 is used most places. >> >> it really depends on the amount of packets in the

Re: [RFC PATCH] drm: msm: Add ASoC generic hdmi audio codec support.

2016-06-06 Thread Srinivas Kandagatla
On 06/06/16 13:23, Jyri Sarha wrote: On 06/03/16 16:56, Srinivas Kandagatla wrote: >This patch adds support to generic audio codec via >ASoC hdmi-codec infrastucture which is merged recently. > I know nothing about msm HW, but from the hdmi-codec point of view this looks like a correct usage.

[PATCH v4 2/7] binding: Make "mdio-parent-bus" property from mandatory to optional

2016-06-06 Thread Pramod Kumar
Change "mdio-parent-bus" from mandatory section to optional as it won't be required by integrated MDIO multiplexer which has bus selection and mdio transaction generation logic, integrated inside. Signed-off-by: Pramod Kumar --- Documentation/devicetree/bindings/net/mdio-mux.txt | 3 ++- 1 file

[PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers

2016-06-06 Thread Pramod Kumar
An integrated multiplexer uses same address space for "muxed bus selection" and "generation of mdio transaction" hence its good to register parent bus from mux driver. Hence added a mechanism where mux driver could register a parent bus and pass it down to framework via mdio_mux_init api. Signed-

[PATCH v4 0/7] Add MDIO bus multiplexer support for iProc SoCs

2016-06-06 Thread Pramod Kumar
Broadcom iProc based SoCs use a MDIO bus multiplexer where child buses could be internal as well external to SoCs. These buses could supports MDIO transaction compatible to C-22/C-45. Broadcom MDIO bus multiplexer is an integrated multiplexer where child bus selection and mdio transaction logic li

[PATCH v4 7/7] phy: Add Northstar2 PCI Phy support

2016-06-06 Thread Pramod Kumar
Add PCI Phy support for Broadcom Northstar2 SoCs. This driver uses the interface from the iproc mdio mux driver to enable the devices respective phys. Reviewed-by: Andrew Lunn Signed-off-by: Jon Mason Signed-off-by: Pramod Kumar --- drivers/phy/Kconfig| 8 +++ drivers/phy/Makefi

[PATCH v4 6/7] binding: PHY: Binding doc for NS2 PCIe PHYs.

2016-06-06 Thread Pramod Kumar
Binding doc for NS2 PCIe PHYs. Acked-by: Rob Herring Signed-off-by: Jon Mason Signed-off-by: Pramod Kumar --- .../bindings/phy/brcm,mdio-mux-bus-pci.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/brcm,mdio-mu

[PATCH v4 3/7] binding: mdio-mux: Add DT binding doc for Broadcom MDIO bus multiplexer

2016-06-06 Thread Pramod Kumar
Add DT binding doc for Broadcom MDIO bus multiplexer driver. Reviewed-by: Andrew Lunn Signed-off-by: Pramod Kumar --- .../bindings/net/brcm,mdio-mux-iproc.txt | 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/brcm,

[PATCH v4 5/7] net: mdio-mux: Add MDIO mux driver for iProc SoCs

2016-06-06 Thread Pramod Kumar
iProc based SoCs supports the integrated mdio multiplexer which has the bus selection as well as mdio transaction generation logic inside. This multiplexer has child buses for PCIe, SATA, USB and ETH. These buses could be internal or external to SOC where PHYs are attached. These buses could use C

[PATCH v4 4/7] dt: mdio-mux: Add mdio multiplexer driver node

2016-06-06 Thread Pramod Kumar
Add integrated MDIO multiplexer driver node which contains two mux PCIe bus and one ethernet bus along with phys lying on these bus. Signed-off-by: Pramod Kumar --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 12 arch/arm64/boot/dts/broadcom/ns2.dtsi| 31 +

Re: [PATCH V5 7/9] irqchip/gic: Prepare for adding platform driver

2016-06-06 Thread Jon Hunter
On 06/06/16 12:53, Jon Hunter wrote: > To support GICs that require runtime power management, it is necessary > to add a platform driver, so that the probing of the chip can be > deferred if resources, such as a power-domain, is not yet available. > > To prepare for adding a platform driver: > 1

Re: [RFC PATCH v2] sched: reflect sched_entity movement into task_group's utilization

2016-06-06 Thread Vincent Guittot
On 6 June 2016 at 12:52, Dietmar Eggemann wrote: > On 24/05/16 10:55, Vincent Guittot wrote: > > [...] > >> +/* Take into account the change of the utilization of a child task group */ >> +static void update_tg_cfs_util(struct sched_entity *se, int blocked) >> +{ >> + int delta; >> + struc

Re: [PATCH v5 1/5] thermal: Add support for hardware-tracked trip points

2016-06-06 Thread Javi Merino
On Mon, Jun 06, 2016 at 07:44:45PM +0800, Caesar Wang wrote: > From: Sascha Hauer > > This adds support for hardware-tracked trip points to the device tree > thermal sensor framework. > > The framework supports an arbitrary number of trip points. Whenever > the current temperature is updated, th

Re: [PATCH] thermal: fix race condition when updating cooling device

2016-06-06 Thread Javi Merino
On Thu, Jun 02, 2016 at 03:25:31PM +0100, Michele Di Giorgio wrote: > When multiple thermal zones are bound to the same cooling device, multiple > kernel threads may want to update the cooling device state by calling > thermal_cdev_update(). Having cdev not protected by a mutex can lead to a race >

[PATCH] gtp: #define _UAPI_LINUX_GTP_H_ and not _UAPI_LINUX_GTP_H__

2016-06-06 Thread Colin King
From: Colin Ian King Fix clang build warning: ./include/uapi/linux/gtp.h:1:9: warning: '_UAPI_LINUX_GTP_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] fix by defining _UAPI_LINUX_GTP_H_ and not _UAPI_LINUX_GTP_H__ Signed-off-by: Colin Ian King -

Re: [RFC v2 4/4] ARM: keystone: dma-coherent with safe fallback

2016-06-06 Thread William Mills
On 06/06/2016 07:42 AM, Mark Rutland wrote: > On Mon, Jun 06, 2016 at 11:09:07AM +0200, Arnd Bergmann wrote: >> On Monday, June 6, 2016 9:56:27 AM CEST Mark Rutland wrote: >>> [adding devicetree] >>> >>> On Sun, Jun 05, 2016 at 11:20:29PM -0400, Bill Mills wrote: Keystone2 can do DMA coheren

Re: [PATCH V8 7/9] acpi: Add generic MCFG table handling

2016-06-06 Thread Tomasz Nowicki
On 03.06.2016 13:38, Lorenzo Pieralisi wrote: On Mon, May 30, 2016 at 05:14:20PM +0200, Tomasz Nowicki wrote: In order to handle PCI config space regions properly in ACPI, new MCFG interface is defined which does sanity checks on MCFG table and keeps its root pointer. The user is able to lookup

Re: [PATCH V3 8/9] cpufreq: Keep policy->freq_table sorted in ascending order

2016-06-06 Thread Rafael J. Wysocki
On Mon, Jun 6, 2016 at 2:24 PM, Viresh Kumar wrote: > On 6 June 2016 at 17:40, Rafael J. Wysocki wrote: >> On Monday, June 06, 2016 09:22:31 AM Viresh Kumar wrote: > >>> I agree with that, though that requires larger changes across multiple >>> sites. >> >> What changes and where? > > s/larger/so

Re: [PATCH V4 1/5] irqchip/gicv3-its: Introduce two helper functions for accessing BASERn

2016-06-06 Thread Marc Zyngier
On 06/06/16 06:40, Shanker Donthineni wrote: > This patch adds the two handy helper functions for reading and writing > ITS BASERn register. > > Signed-off-by: Shanker Donthineni > --- > drivers/irqchip/irq-gic-v3-its.c | 32 +--- > 1 file changed, 25 insertions(+), 7

Re: [RESEND PATCH 00/14] eeprom: at24: driver rework and at24cs/at24mac support

2016-06-06 Thread Bartosz Golaszewski
2016-06-06 13:13 GMT+02:00 Wolfram Sang : > Bartosz, > > the only thing you achieve by resending large series a week(!) after it > had been originally posted is to create annoyance. You should know by > now that I use patchwork which doesn't forget things... > > I appreciate the work you did; yet I

[PATCH v2 7/7] crypto: talitos - templates for AEAD using HMAC_SNOOP_NO_AFEU

2016-06-06 Thread Christophe Leroy
This will allow IPSEC on SEC1 Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 180 +++ 1 file changed, 180 insertions(+) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index dfd3a93..0418a2f 100644 --- a/drivers/crypto

[PATCH v2 5/7] crypto: talitos - sg_to_link_tbl() not used anymore, remove it

2016-06-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 4ff03c3..ff8cf39 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -,14 +,6 @@ next:

[PATCH v2 1/7] crypto: talitos - using helpers for all talitos_ptr operations

2016-06-06 Thread Christophe Leroy
Use helper for all modifications to talitos_ptr in preparation to the implementation of AEAD for SEC1 to_talitos_ptr_extent_clear() has been removed in favor of to_talitos_ptr_ext_set() to set any value and to_talitos_ptr_ext_or() to or the extent field with a value name has been shorten to help k

[PATCH v2 2/7] crypto: talitos - move mapping helpers before IPSEC functions

2016-06-06 Thread Christophe Leroy
In order to be able to use the mapping/unmapping helpers for IPSEC it needs to be move upper in the file Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 244 +++ 1 file changed, 122 insertions(+), 122 deletions(-) diff --git a/drivers/c

[PATCH v2 6/7] crypto: talitos - implement cra_priority

2016-06-06 Thread Christophe Leroy
SEC1 doesn't have IPSEC_ESP descriptor type but it is able to perform IPSEC using HMAC_SNOOP_NO_AFEU, which is also existing on SEC2 In order to be able to define descriptors templates for SEC1 without breaking SEC2+, we have to give lower priority to HMAC_SNOOP_NO_AFEU so that SEC2+ selects IPSEC_

Re: [PATCH 2/2] xen-pciback: clean up read_dev_bar()

2016-06-06 Thread Boris Ostrovsky
On 06/06/2016 04:12 AM, Jan Beulich wrote: > - drop unused function parameter > - simplify determination of 64-bit memory resource > - use const and unsigned > > Signed-off-by: Jan Beulich Reviewed-by: Boris Ostrovsky

Re: [PATCH 1/2] xen-pciback: return proper values during BAR sizing

2016-06-06 Thread Boris Ostrovsky
On 06/06/2016 04:11 AM, Jan Beulich wrote: > @@ -225,38 +225,42 @@ static inline void read_dev_bar(struct p > (PCI_BASE_ADDRESS_SPACE_MEMORY | > PCI_BASE_ADDRESS_MEM_TYPE_64))) { > bar_info->val = res[pos - 1].start >> 32;

[PATCH v2 3/7] crypto: talitos - making mapping helpers more generic

2016-06-06 Thread Christophe Leroy
In preparation of IPSEC for SEC1, first step is to make the mapping helpers more generic so that they can also be used by AEAD functions. First, the functions are moved before IPSEC functions in talitos.c talitos_sg_unmap() and unmap_sg_talitos_ptr() are merged as they are quite similar, the seco

[PATCH v2 0/7] crypto: talitos - implementation of AEAD for SEC1

2016-06-06 Thread Christophe Leroy
This set of patches provides the implementation of AEAD for talitos SEC1. Changes in v2: * Fixed compilation issue introduced by later cosmetic changes requested by checkpatch script * split "making mapping helpers more generic" in two parts to better see the changes done after the move. * reworke

Re: [PATCH] mm, thp: fix locking inconsistency in collapse_huge_page

2016-06-06 Thread Vlastimil Babka
On 06/03/2016 02:28 PM, Ebru Akagunduz wrote: After creating revalidate vma function, locking inconsistency occured due to directing the code path to wrong label. This patch directs to correct label and fix the inconsistency. Related commit that caused inconsistency: http://git.kernel.org/cgit/l

[PATCH v2 4/7] crypto: talitos - Implement AEAD for SEC1 using HMAC_SNOOP_NO_AFEU

2016-06-06 Thread Christophe Leroy
This patchs enhances the IPSEC_ESP related functions for them to also supports the same operations with descriptor type HMAC_SNOOP_NO_AFEU. The differences between the two descriptor types are: * pointeurs 2 and 3 are swaped (Confidentiality key and Primary EU Context IN) * HMAC_SNOOP_NO_AFEU

Re: [patch] futex: Fix v4.6+ ltp futex_wait04 regression

2016-06-06 Thread Peter Zijlstra
On Mon, Jun 06, 2016 at 11:40:41AM +0200, Mike Galbraith wrote: > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -469,7 +469,7 @@ get_futex_key(u32 __user *uaddr, int fsh > { > unsigned long address = (unsigned long)uaddr; > struct mm_struct *mm = current->mm; > - struct page *pa

Re: [PATCH 1/4] dt-bindings: Add A10 I2S controller binding documentation

2016-06-06 Thread Rob Herring
On Wed, Jun 01, 2016 at 07:54:27PM +0200, Maxime Ripard wrote: > Introduce the device tree binding for the I2S controller found in the > Allwinner A10 and later SoCs. > > Signed-off-by: Maxime Ripard > --- > .../devicetree/bindings/sound/sun4i-i2s.txt| 33 > ++ > 1 f

Re: [PATCH 3/2] xen-pciback: drop rom_init()

2016-06-06 Thread Boris Ostrovsky
On 06/06/2016 04:47 AM, Jan Beulich wrote: > It's identical to bar_init() now. > > Signed-off-by: Jan Beulich > --- > I'm sorry for this 3/2 - I only now noticed that this additional > simplification is now possible. I wonder whether we should also move content of read_dev_bar() into bar_init().

Re: [PATCH 20/32] dt-bindings: Add binding for brcm,bcm2835-sdhost.

2016-06-06 Thread Rob Herring
On Wed, Jun 01, 2016 at 11:43:29PM +0200, Gerd Hoffmann wrote: > From: Eric Anholt > > This is the other SD controller on the platform, which can be swapped > to the role of SD card host using pin muxing. > > Signed-off-by: Eric Anholt > --- > .../devicetree/bindings/mmc/brcm,bcm2835-sdhci.txt

Re: [PATCH 1/2] dt-bindings: Add jdi panel vendor

2016-06-06 Thread Rob Herring
On Thu, Jun 02, 2016 at 08:05:02AM +0530, Vinay Simha BN wrote: > Japan Display Inc. > > Cc: Archit Taneja > Cc: John Stultz > Cc: Thierry Reding > Cc: Sumit Semwal > Signed-off-by: Vinay Simha BN > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insert

Re: [PATCH 2/2] dt-bindings: Add jdi lt070me05000 panel bindings

2016-06-06 Thread Rob Herring
On Thu, Jun 02, 2016 at 08:05:03AM +0530, Vinay Simha BN wrote: > Add documentation for lt070me05000 panel > > Cc: Archit Taneja > Cc: John Stultz > Cc: Thierry Reding > Cc: Sumit Semwal > Signed-off-by: Vinay Simha BN > > -- > v2: > * incorporated rob herring and thierry reviews >gpio

Re: [PATCH v2 1/5] dt-bindings: Document the STM32 I2C bindings

2016-06-06 Thread Rob Herring
On Thu, Jun 02, 2016 at 04:26:04PM +0200, M'boumba Cedric Madianga wrote: > This patch adds documentation of device tree bindings for the STM32 I2C > controller. > > Signed-off-by: M'boumba Cedric Madianga > --- > .../devicetree/bindings/i2c/i2c-stm32.txt | 33 > ++

Re: [PATCH 1/2] clk: imx: do not sleep if IRQ's are still disabled

2016-06-06 Thread Thomas Gleixner
On Thu, 2 Jun 2016, Dong Aisheng wrote: > On Wed, Apr 27, 2016 at 12:15:00PM +0200, Thomas Gleixner wrote: > > Calling a function which might sleep _BEFORE_ kernel_init() is wrong. Don't > > try to work around such an issue by doing magic irq_disabled() checks and > > busy > > loops. Fix the call

[PATCH] Remove spurious blank lines in dw2101 kernel messages

2016-06-06 Thread Jonathan McDowell
The DW2102 DVB-S/S2 driver uses the info() logging function from dvb-usb.h. This function already appends a newline to the provided log message, causing the dmesg output from DW2102 to include blank lines. Fix this by removing the newline in the calls to info(). Signed-off-by: Jonathan McDowell

Re: [RFC PATCH 10/10] mm, oom: hide mm which is shared with kthread or global init

2016-06-06 Thread Michal Hocko
On Sat 04-06-16 00:16:32, Tetsuo Handa wrote: [...] > Leaving current thread from out_of_memory() without clearing TIF_MEMDIE might > cause OOM lockup, for there is no guarantee that current thread will not wait > for locks in unkillable state after current memory allocation request > completes >

Re: [PATCH 5/5] mfd: rn5t618: register restart handler

2016-06-06 Thread Marcel Ziswiler
On June 5, 2016 2:17:49 AM GMT+02:00, Stefan Agner wrote: >Use the PMIC's repower capability for reboots. Register a restart >handler with use a default priority of 128. Apart from that last sentence above which is not clear to me the whole series looks fine to me. Reviewed-by: Marcel Ziswile

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-06 Thread Heikki Krogerus
On Fri, Jun 03, 2016 at 11:39:27AM -0700, Guenter Roeck wrote: > On Fri, Jun 03, 2016 at 06:17:46PM +0300, Heikki Krogerus wrote: > [ ... ] > > > > > > > > > > In my test case, this gives me > > > > > /sys/class/type-c/usbc0/ > > > > > usbc0.svid:18d1 > > > > > usbc0.svid:18d1/mod

Re: [PATCH] device tree description for AD5820 camera auto-focus coil

2016-06-06 Thread Rob Herring
On Thu, Jun 02, 2016 at 09:30:27PM +0200, Pavel Machek wrote: > > Add documentation for ad5820 device tree binding. > > Signed-off-by: Pavel Machek > > diff --git a/Documentation/devicetree/bindings/media/i2c/ad5820.txt > b/Documentation/devicetree/bindings/media/i2c/ad5820.txt > new file mode

[PATCH] FMC: remove duplicated fru_strlen and unused variable len

2016-06-06 Thread Colin King
From: Colin Ian King The call to fru_strlen on tl is performed twice; remove the duplicate and the unsed variable len. This fixes the clang warning: drivers/fmc/fru-parse.c:39:2: warning: Value stored to 'len' is never read Signed-off-by: Colin Ian King --- drivers/fmc/fru-parse.c | 2 -- 1 f

Re: [PATCH v4 1/5] sched/fair: Clean up attach_entity_load_avg()

2016-06-06 Thread Matt Fleming
On Mon, 06 Jun, at 08:20:37AM, Yuyang Du wrote: > attach_entity_load_avg() is called (indirectly) from: > > - switched_to_fair(): switch between classes to fair > - task_move_group_fair(): move between task groups > - enqueue_entity_load_avg(): enqueue entity > > Only in switched_to_fair() is

Re: [PATCH v2 3/7] mm/page_owner: copy last_migrate_reason in copy_page_owner()

2016-06-06 Thread Vlastimil Babka
On 05/26/2016 04:37 AM, js1...@gmail.com wrote: From: Joonsoo Kim Currently, copy_page_owner() doesn't copy all the owner information. It skips last_migrate_reason because copy_page_owner() is used for migration and it will be properly set soon. But, following patch will use copy_page_owner() a

Re: [patch] futex: Fix v4.6+ ltp futex_wait04 regression

2016-06-06 Thread Mike Galbraith
On Mon, 2016-06-06 at 15:07 +0200, Peter Zijlstra wrote: > > @@ -654,12 +666,14 @@ get_futex_key(u32 __user *uaddr, int fsh > > > > > >> > > > key->both.offset |= FUT_OFF_INODE; /* inode-based > > key */ > > > >> > > > key->shared.inode = inode; > > -> >> >

Re: [linux-sunxi] [PATCH 1/5] ethernet: add sun8i-emac driver

2016-06-06 Thread LABBE Corentin
On Sun, Jun 05, 2016 at 11:32:11PM +0100, André Przywara wrote: > On 03/06/16 10:56, LABBE Corentin wrote: > > Hi, > > first: thanks for posting this and the time and work that you spent on > it. With the respective DT nodes this works for me on the Pine64 and > turns this board eventually into s

Re: [BUG] Possible silent data corruption in filesystems/page cache

2016-06-06 Thread Theodore Ts'o
On Mon, Jun 06, 2016 at 07:29:42AM +, Barczak, Mariusz wrote: > Hi, Let me elaborate problem in detail. > > For buffered IO data are copied into memory pages. For this case, > the write IO is not submitted (generally). In the background opportunistic > cleaning of dirty pages takes place and

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-06 Thread Oliver Neukum
On Mon, 2016-06-06 at 16:28 +0300, Heikki Krogerus wrote: > I would prefer lower case letters. I don't know the SIDs there are at > them moment, other then Display Port. Do you know them? > > I don't think we can ever guarantee that in every case we will be able > to provide a human readable name

Re: [PATCH v2 3/4] doc: dt: pwm: add binding for ChromeOS EC PWM

2016-06-06 Thread Rob Herring
On Thu, Jun 02, 2016 at 06:21:43PM -0700, Brian Norris wrote: > The ChromeOS Embedded Controller can support controlling its attached > PWMs via its host-command interface. The number of supported PWMs varies > on a per-board basis, but we can autodetect this by checking the error > codes, so we do

Re: [kernel-hardening] Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-06 Thread David Brown
On Fri, Jun 03, 2016 at 07:42:52PM +0200, Emese Revfy wrote: On Wed, 1 Jun 2016 12:42:27 -0700 Andrew Morton wrote: On Tue, 31 May 2016 01:31:45 +0200 Emese Revfy wrote: > This plugin mitigates the problem of the kernel having too little entropy during > and after boot for generating crypto

Re: [PATCH v4 1/5] sched/fair: Clean up attach_entity_load_avg()

2016-06-06 Thread Vincent Guittot
Hi Matt, On 6 June 2016 at 15:30, Matt Fleming wrote: > On Mon, 06 Jun, at 08:20:37AM, Yuyang Du wrote: >> attach_entity_load_avg() is called (indirectly) from: >> >> - switched_to_fair(): switch between classes to fair >> - task_move_group_fair(): move between task groups >> - enqueue_entity_

[tip:x86/urgent] x86/msr: Use the proper trace point conditional for writes

2016-06-06 Thread tip-bot for Dr. David Alan Gilbert
Commit-ID: 08dd8cd06ed95625b9e2fac43c78fcb45b7eaf94 Gitweb: http://git.kernel.org/tip/08dd8cd06ed95625b9e2fac43c78fcb45b7eaf94 Author: Dr. David Alan Gilbert AuthorDate: Fri, 3 Jun 2016 19:00:59 +0100 Committer: Thomas Gleixner CommitDate: Mon, 6 Jun 2016 15:33:39 +0200 x86/msr: Use th

Re: [PATCH v2] sched/cputime: add steal clock warp handling

2016-06-06 Thread Paolo Bonzini
On 03/06/2016 15:10, Rik van Riel wrote: > On Fri, 2016-06-03 at 13:21 +0800, Wanpeng Li wrote: >> From: Wanpeng Li >> >> I observed that sometimes st is 100% instantaneous, then idle is >> 100% >> even if there is a cpu hog on the guest cpu after the cpu hotplug >> comes >> back(N.B. this can

Re: [patch] futex: Fix v4.6+ ltp futex_wait04 regression

2016-06-06 Thread Mike Galbraith
On Mon, 2016-06-06 at 15:34 +0200, Mike Galbraith wrote: > On Mon, 2016-06-06 at 15:07 +0200, Peter Zijlstra wrote: > > > > @@ -654,12 +666,14 @@ get_futex_key(u32 __user *uaddr, int fsh > > > > > > > > > > > > key->both.offset |= FUT_OFF_INODE; > > > /* inode-based key */ > > > > >

Re: [PATCH 1/7] dt-bindings: Update QorIQ TMU thermal bindings

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 02:57:33PM +0800, Jia Hongtao wrote: > For different types of SoC the sensor id and endianness may vary. > "#thermal-sensor-cells" is used to provide sensor id information. > "little-endian" property is to tell the endianness of TMU. > > Signed-off-by: Jia Hongtao > --- >

Re: [PATCH 30/34] clk: stm32f3: Migrate to clk_hw based OF and registration APIs

2016-06-06 Thread Daniel Thompson
On 02/06/16 00:15, Stephen Boyd wrote: Minor nit but the subject is wrong [IIRC stm32f3 cannot run Linux ;-)]. Daniel. Now that we have clk_hw based provider APIs to register clks, we can get rid of struct clk pointers while registering clks in these drivers, allowing us to move closer to a c

Re: [PATCH] sched/cputime: add steal clock warps handling during cpu hotplug

2016-06-06 Thread Paolo Bonzini
On 02/06/2016 15:59, Rik van Riel wrote: > If a guest is saved to disk and later restored (eg. after > a host reboot), or live migrated to another host, I would > expect to get totally disjoint steal time statistics from > the "new run" of the guest (which is the same run of the > guest OS). Why

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-06 Thread Heikki Krogerus
Hi, On Fri, Jun 03, 2016 at 10:20:01PM +0200, Pavel Machek wrote: > On Thu 2016-05-19 15:44:54, Heikki Krogerus wrote: > > The purpose of this class is to provide unified interface for user > > space to get the status and basic information about USB Type-C > > Connectors in the system, control dat

Re: [PATCH v3] sched/cputime: add steal time support to full dynticks CPU time accounting

2016-06-06 Thread Paolo Bonzini
On 03/06/2016 09:16, Ingo Molnar wrote: > > But I'm very annoyed that this was in v3 and still has so many trivial > problems: > incredibly bad and confusing spelling, totally bad, fragile, apparently > write-only > code - and I counted like three acks from 3 other people who should really

Re: [PATCHv8 00/32] THP-enabled tmpfs/shmem using compound pages

2016-06-06 Thread Kirill A. Shutemov
On Wed, May 25, 2016 at 03:11:55PM -0400, neha agarwal wrote: > Hi All, > > I have been testing Hugh's and Kirill's huge tmpfs patch sets with > Cassandra (NoSQL database). I am seeing significant performance gap between > these two implementations (~30%). Hugh's implementation performs better > t

Re: [PATCH 1/2] xen-pciback: return proper values during BAR sizing

2016-06-06 Thread Jan Beulich
>>> On 06.06.16 at 15:03, wrote: > On 06/06/2016 04:11 AM, Jan Beulich wrote: >> @@ -225,38 +225,42 @@ static inline void read_dev_bar(struct p >> (PCI_BASE_ADDRESS_SPACE_MEMORY | >> PCI_BASE_ADDRESS_MEM_TYPE_64))) { >> bar_

Re: [PATCH 3/2] xen-pciback: drop rom_init()

2016-06-06 Thread Jan Beulich
>>> On 06.06.16 at 15:09, wrote: > On 06/06/2016 04:47 AM, Jan Beulich wrote: >> It's identical to bar_init() now. >> >> Signed-off-by: Jan Beulich >> --- >> I'm sorry for this 3/2 - I only now noticed that this additional >> simplification is now possible. > > I wonder whether we should also mo

Re: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-06-06 Thread Petr Mladek
On Thu 2016-04-28 15:44:48, Josh Poimboeuf wrote: > Change livepatch to use a basic per-task consistency model. This is the > foundation which will eventually enable us to patch those ~10% of > security patches which change function or data semantics. This is the > biggest remaining piece needed

Re: [PATCH v2 6/7] mm/page_owner: use stackdepot to store stacktrace

2016-06-06 Thread Michal Hocko
On Thu 26-05-16 11:37:54, Joonsoo Kim wrote: > From: Joonsoo Kim > > Currently, we store each page's allocation stacktrace on corresponding > page_ext structure and it requires a lot of memory. This causes the problem > that memory tight system doesn't work well if page_owner is enabled. > Moreov

Re: [PATCH 2/3] MIPS: BMIPS: Add BCM6345 support

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 10:12:03AM +0200, Álvaro Fernández Rojas wrote: > BCM6345 has only one CPU, so SMP support must be disabled. > > Signed-off-by: Álvaro Fernández Rojas > --- > Documentation/devicetree/bindings/mips/brcm/soc.txt | 2 +- > arch/mips/bmips/setup.c

Re: [PATCH 1/4] perf stat: Basic support for TopDown in perf stat

2016-06-06 Thread Arnaldo Carvalho de Melo
Em Mon, May 30, 2016 at 01:19:42PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, May 30, 2016 at 09:04:02AM -0700, Andi Kleen escreveu: > > > Which is a Broadwell-U, dual-core, 14 nm. > > > > > > [root@jouet linux]# echo 0 > /proc/sys/kernel/nmi_watchdog > > > [root@jouet linux]# perf stat -

Re: [PATCH] posix-clock: remove unneeded posix_clock_compat_ioctl()

2016-06-06 Thread Thomas Gleixner
On Wed, 1 Jun 2016, Jungseung Lee wrote: > posix_clock_compat_ioctl() is identical to posix_clock_ioctl(). > We don't need additional compat_ioctl in this time. > Remove posix_clock_compat_ioctl() and let posix_clock_ioctl() is in charge. Which will return -ENOTTY for all affected ioctls simply b

274ad65c9d02 ("drm/radeon: hard reset r600 and newer GPU when hibernating.")

2016-06-06 Thread Borislav Petkov
Hi, commit in $Subject breaks suspend to disk on my box here. Reverting it ontop of 4.7-rc2 fixes the problem. DRM-specific messages in dmesg are: [6.837698] [drm] radeon kernel modesetting enabled. [6.871372] [drm] initializing kernel modesetting (RV635 0x1002:0x9598 0x1043:0x01DA 0x00)

Re: [PATCH 2/2] aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-06-06 Thread Murali Karicheri
On 06/06/2016 03:32 AM, Po Liu wrote: > Hi Bjorn, > I confirm we met same problem with KeyStone base on DesignWare design. > > > Best regards, > Liu Po > >> -Original Message- >> From: Bjorn Helgaas [mailto:helg...@kernel.org] >> Sent: Saturday, June 04, 2016 11:49 AM >> To: Murali K

Re: [PATCH v4 3/5] sched/fair: Skip detach sched avgs for new task when changing task groups

2016-06-06 Thread Matt Fleming
On Mon, 06 Jun, at 08:20:39AM, Yuyang Du wrote: > Newly forked task has not been enqueued, so should not be removed from > cfs_rq in task_move_group_fair(). To do so, we need to pass the fork > information all the way from sched_move_task() to task_move_group_fair(). > > Signed-off-by: Yuyang Du

Re: [PATCH v4 1/5] sched/fair: Clean up attach_entity_load_avg()

2016-06-06 Thread Matt Fleming
On Mon, 06 Jun, at 03:40:18PM, Vincent Guittot wrote: > > The load average stuff is only enable for SMP system but it's not used > for UP system. Duh, right. My bad.

[PATCHv9 17/32] page-flags: relax policy for PG_mappedtodisk and PG_reclaim

2016-06-06 Thread Kirill A. Shutemov
These flags are in use for file THP. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 9602a8dd24ef..dba7f8b9e6cd 100644 --- a/include/linux/page

[PATCHv9 07/32] thp, vmstats: add counters for huge file pages

2016-06-06 Thread Kirill A. Shutemov
THP_FILE_ALLOC: how many times huge page was allocated and put page cache. THP_FILE_MAPPED: how many times file huge page was mapped. Signed-off-by: Kirill A. Shutemov --- include/linux/vm_event_item.h | 7 +++ mm/memory.c | 1 + mm/vmstat.c | 2 ++ 3 fil

[PATCHv9 30/32] thp: introduce CONFIG_TRANSPARENT_HUGE_PAGECACHE

2016-06-06 Thread Kirill A. Shutemov
For file mappings, we don't deposit page tables on THP allocation because it's not strictly required to implement split_huge_pmd(): we can just clear pmd and let following page faults to reconstruct the page table. But Power makes use of deposited page table to address MMU quirk. Let's hide THP p

[PATCHv9 25/32] shmem, thp: respect MADV_{NO,}HUGEPAGE for file mappings

2016-06-06 Thread Kirill A. Shutemov
Let's wire up existing madvise() hugepage hints for file mappings. MADV_HUGEPAGE advise shmem to allocate huge page on page fault in the VMA. It only has effect if the filesystem is mounted with huge=advise or huge=within_size. MADV_NOHUGEPAGE prevents hugepage from being allocated on page fault

[PATCHv9 05/32] rmap: support file thp

2016-06-06 Thread Kirill A. Shutemov
Naive approach: on mapping/unmapping the page as compound we update ->_mapcount on each 4k page. That's not efficient, but it's not obvious how we can optimize this. We can look into optimization later. PG_double_map optimization doesn't work for file pages since lifecycle of file pages is differe

[PATCHv9 21/32] mm, rmap: account shmem thp pages

2016-06-06 Thread Kirill A. Shutemov
Let's add ShmemHugePages and ShmemPmdMapped fields into meminfo and smaps. It indicates how many times we allocate and map shmem THP. NR_ANON_TRANSPARENT_HUGEPAGES is renamed to NR_ANON_THPS. Signed-off-by: Kirill A. Shutemov --- drivers/base/node.c| 13 + fs/proc/meminfo.c

[PATCHv9 11/32] thp: skip file huge pmd on copy_huge_pmd()

2016-06-06 Thread Kirill A. Shutemov
copy_page_range() has a check for "Don't copy ptes where a page fault will fill them correctly." It works on VMA level. We still copy all page table entries from private mappings, even if they map page cache. We can simplify copy_huge_pmd() a bit by skipping file PMDs. We don't map file private p

[PATCHv9 12/32] thp: prepare change_huge_pmd() for file thp

2016-06-06 Thread Kirill A. Shutemov
change_huge_pmd() has assert which is not relvant for file page. For shared mapping it's perfectly fine to have page table entry writable, without explicit mkwrite. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/hug

[PATCHv9 01/32] thp, mlock: update unevictable-lru.txt

2016-06-06 Thread Kirill A. Shutemov
Add description of THP handling into unevictable-lru.txt. Signed-off-by: Kirill A. Shutemov --- Documentation/vm/unevictable-lru.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/vm/unevictable-lru.txt b/Documentation/vm/unevictable-lru.txt index fa3b5

[PATCHv9 19/32] filemap: prepare find and delete operations for huge pages

2016-06-06 Thread Kirill A. Shutemov
For now, we would have HPAGE_PMD_NR entries in radix tree for every huge page. That's suboptimal and it will be changed to use Matthew's multi-order entries later. 'add' operation is not changed, because we don't need it to implement hugetmpfs: shmem uses its own implementation. Signed-off-by: Ki

[PATCHv9 26/32] thp: extract khugepaged from mm/huge_memory.c

2016-06-06 Thread Kirill A. Shutemov
khugepaged implementation grew to the point when it deserve separate file in source. Let's move it to mm/khugepaged.c. Signed-off-by: Kirill A. Shutemov --- include/linux/huge_mm.h| 10 + include/linux/khugepaged.h |6 + mm/Makefile|2 +- mm/huge_memory.c

[PATCHv9 03/32] mm: introduce fault_env

2016-06-06 Thread Kirill A. Shutemov
The idea borrowed from Peter's patch from patchset on speculative page faults[1]: Instead of passing around the endless list of function arguments, replace the lot with a single structure so we can change context without endless function signature changes. The changes are mostly mechanical with e

[PATCHv9 32/32] thp: update Documentation/{vm/transhuge,filesystems/proc}.txt

2016-06-06 Thread Kirill A. Shutemov
Add info about tmpfs/shmem with huge pages. Signed-off-by: Kirill A. Shutemov --- Documentation/filesystems/proc.txt | 9 +++ Documentation/vm/transhuge.txt | 128 ++--- 2 files changed, 101 insertions(+), 36 deletions(-) diff --git a/Documentation/filesyst

[PATCHv9 16/32] vmscan: split file huge pages before paging them out

2016-06-06 Thread Kirill A. Shutemov
This is preparation of vmscan for file huge pages. We cannot write out huge pages, so we need to split them on the way out. Signed-off-by: Kirill A. Shutemov --- mm/vmscan.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index c4a2f4512fca..c2c56b922f32 10064

Re: [PATCH 2/3] dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator bindings

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 10:47:00AM +0200, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindings/rng/amlogic,meson-rng.txt | 14 > ++ > 1 file changed, 14 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/rng/amlogic,meso

[PATCH] x86: include linux/ratelimit.h in nmi.c

2016-06-06 Thread Arnd Bergmann
When building random configurations, we now occasionally get a new build error: In file included from include/linux/kernel.h:13:0, from include/linux/list.h:8, from include/linux/preempt.h:10, from include/linux/spinlock.h:50,

[PATCH][RFC] x86, hotplug: Use zero page for monitor when resuming from hibernation

2016-06-06 Thread Chen Yu
Stress test from Varun Koyyalagunta reports that, the nonboot CPU would hang occasionally, when resuming from hibernation. Further investigation shows that, the precise phase when nonboot CPU hangs, is the time when the nonboot CPU been woken up incorrectly, and tries to monitor the mwait_ptr for t

Re: [PATCH 14/14] regulator: pwm: Document pwm-dutycycle-unit and pwm-dutycycle-range

2016-06-06 Thread Rob Herring
On Fri, Jun 03, 2016 at 10:23:12AM +0200, Boris Brezillon wrote: > Document the pwm-dutycycle-unit and pwm-dutycycle-range properties. > > Signed-off-by: Boris Brezillon > --- > .../devicetree/bindings/regulator/pwm-regulator.txt | 12 > > 1 file changed, 12 insertions(+)

[PATCHv9 27/32] khugepaged: move up_read(mmap_sem) out of khugepaged_alloc_page()

2016-06-06 Thread Kirill A. Shutemov
Both variants of khugepaged_alloc_page() do up_read(&mm->mmap_sem) first: no point keep it inside the function. Signed-off-by: Kirill A. Shutemov --- mm/khugepaged.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/mm/khugepaged.c b/mm/khugepaged.c

Re: [PATCH 1/4] perf stat: Basic support for TopDown in perf stat

2016-06-06 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 06, 2016 at 11:00:03AM -0300, Arnaldo Carvalho de Melo escreveu: > The kernel patches are in tip/perf/core now, so I applied the patches > and they seem to work, but they broke one 'perf test' entry: > # perf test -v 5 > > running test 50 '4:0x6530160/name=numpmu/' > running test 51

<    4   5   6   7   8   9   10   11   12   >