[PATCH v3 2/8] block: move two bvec structure into bvec.h

2016-04-03 Thread Ming Lei
This patch moves 'struct bio_vec' and 'struct bvec_iter' into 'include/linux/bvec.h', then always include this header into 'include/linux/blk_types.h'. With this change, both 'struct bvec_iter' and bvec iterator helpers don't depend on CONFIG_BLOCK any more, then we can use bvec iterator to implem

[PATCH v3 7/8] block: drbd: avoid to use BIO_MAX_SIZE

2016-04-03 Thread Ming Lei
drbd is the only user of BIO_MAX_SIZE, so use BIO_MAX_PAGES instead. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- drivers/block/drbd/drbd_int.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h ind

[PATCH v3 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES

2016-04-03 Thread Ming Lei
BIO_MAX_PAGES is used as maximum count of bvecs, so replace BIO_MAX_SECTORS with BIO_MAX_PAGES since BIO_MAX_SECTORS is to be removed. Signed-off-by: Ming Lei --- fs/xfs/xfs_buf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 9a2

[PATCH v3 4/8] iov_iter: use bvec iterator to implement iterate_bvec()

2016-04-03 Thread Ming Lei
bvec has provided one iterator already, so not necessary to reinvent a new wheel for this job. Signed-off-by: Ming Lei --- lib/iov_iter.c | 30 ++ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 5fecddc..c8691ac 10

[PATCH v3 6/8] block: bio: remove BIO_MAX_SECTORS

2016-04-03 Thread Ming Lei
No one need this macro, so remove it. The motivation is for supporting multipage bvecs, in which we only know what the max count of bvecs is supported in the bio, instead of max size or max sectors. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- include/linux/bio.h | 1 - 1 file cha

[PATCH v3 1/8] block: move bvec iterator into include/linux/bvec.h

2016-04-03 Thread Ming Lei
bvec iterator helpers should be used to implement by iterate_bvec():lib/iov_iter.c too, and move them into one header, so that we can keep bvec iterator header out of CONFIG_BLOCK. Then we can remove the reinventing of wheel in iterate_bvec(). Signed-off-by: Ming Lei --- include/linux/bio.h | 5

[PATCH v3 0/8] block: prepare for multipage bvecs

2016-04-03 Thread Ming Lei
Hi, Interests[1] have been shown in multipage bvecs, so this patchset try to prepare for the support and do two things: 1) the 1st 4 patches use bvec iterator to implement iterate_bvec(), then we can drop the non-standard way for iterating bvec, which can be thought as a good cleanup for lib/iov_

[PATCH v3 3/8] block: mark 1st parameter of bvec_iter_advance as const

2016-04-03 Thread Ming Lei
bvec_iter_advance() only writes the parameter of iterator, so the base address of bvec can be marked as const safely. Without the change, we can see compiling warning in the following patch for implementing iterate_bvec(): lib/iov_iter.c with bvec iterator. Reviewed-by: Christoph Hellwig Signed-

[4.6-rc1/rc2][snd_usb_audio] regression: BUG usb_audio_probe+0x2ca/0x9a0

2016-04-03 Thread Shawn Starr
Hello kernel devs, USB audio devices broke: [ 13.873279] BUG: unable to handle kernel NULL pointer dereference at 0014 [ 13.874701] IP: [] usb_audio_probe+0x2ca/0x9a0 [snd_usb_audio] [ 13.876050] *PGD 0 * [ 13.876942] Oops*: [#1] SMP * [ 13.877896] Modules linked

Re: [PATCH] mtd: brcmnand: Add support for v6.2 controllers

2016-04-03 Thread Brian Norris
+ Boris, Richard On Thu, Mar 10, 2016 at 03:34:16PM -0800, Florian Fainelli wrote: > Document and match the brcm,brcmnand-v6.2 compatible string, the controller > has > a register layout identical to the v6.0 version and supports prefetch. Update > the > command shift logic to account for v6.2 c

Re: [RFC] weird semantics of SG_DXFER_TO_FROM_DEV in BLK_DEV_SKD (drivers/block/skd*)

2016-04-03 Thread Christoph Hellwig
On Mon, Apr 04, 2016 at 04:38:45AM +0100, Al Viro wrote: > I've no idea if anything is still using SG_DXFER_TO_FROM_DEV, but this > behaviour AFAICS doesn't match that of write() on /dev/sg* (both > in and out are done) or normal SG_IO (either both in and out, in case if it > hits bio_map_user_iov(

Re: [PATCH v2] mtd: avoid stack overflow in MTD CFI code

2016-04-03 Thread Brian Norris
On Fri, Mar 18, 2016 at 09:25:23PM +0100, Arnd Bergmann wrote: > On Friday 18 March 2016 10:44:19 Brian Norris wrote: > > FWIW, I took a little look at this, and I can reproduce this myself. I > > can get a large frame size on at least 2 of the 3 functions you report. > > I think most of the gain y

Re: [PATCH] x86: Add a turbo mode sysctl

2016-04-03 Thread Nikolay Borisov
On 04/01/2016 06:49 PM, Andy Lutomirski wrote: > Sadly, hardware turbo mode buttons are few and far between in these > degenerate times. Add a software control at /proc/sys/turbo_mode. > > Unfortunately, Linux graphical environments have become very > heavy-weight and are essentially unusable o

Re: [RFC] Create an audit record of USB specific details

2016-04-03 Thread Oliver Neukum
On Mon, 2016-04-04 at 00:02 -0400, wmealing wrote: > From: Wade Mealing > > Gday, > > I'm looking to create an audit trail for when devices are added or removed > from the system. > > The audit subsystem is a logging subsystem in kernel space that can be > used to create advanced filters on gen

Re: [RESEND PATCH v9] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-04-03 Thread Brian Norris
Hi Jiancheng, Looking good. In addition to Marek's comments, I have just a few small comments. I'll post a small diff at the end, and a few inline comments. On Mon, Mar 28, 2016 at 05:15:28PM +0800, Jiancheng Xue wrote: > Hi Marek, > Firstly, thank you very much for your comments. > > On 201

Re: [PATCH] MIPS: Fix broken malta qemu

2016-04-03 Thread Paul Burton
On Sat, Apr 02, 2016 at 01:19:03PM +0100, Qais Yousef wrote: > Hi Paul, > > On 01/04/2016 13:48, Paul Burton wrote: > >On Thu, Mar 17, 2016 at 09:08:09PM +, Qais Yousef wrote: > >>Malta defconfig compiles with GIC on. Hence when compiling for SMP it > >>causes the > >>new IPI code to be activ

[PATCH 2/4] rtmutex: Use waiter debug init,free magic numbers

2016-04-03 Thread Davidlohr Bueso
... we already use these for regular mutexes, rtmutex can also use it, and while at it rename the whole thing since this is specific to waiters. Signed-off-by: Davidlohr Bueso --- include/linux/poison.h | 4 ++-- kernel/locking/mutex-debug.c | 4 ++-- kernel/locking/rtmutex-debug.c | 4

[PATCH 3/4] rtmutex: Add rt_mutex_init_waiter helper

2016-04-03 Thread Davidlohr Bueso
... encapsulates debug and regular waiter initialization. In the case of rtmutexes, we now also set the waiter to nil until later explicitly set to whatever task instead of the magic number. This is safe as the waiter is on he stack and we are doing very basic initialization anyway. Signed-off-by:

[PATCH -tip v2 0/4] rtmutex: Another crack at spin on owner

2016-04-03 Thread Davidlohr Bueso
Changes from v1: - Dropped patch 4 that removed the barrier in the deadlock path. - Added patch 2 (trivial) to use poison.h defines. - sprinkled READ/WRITE_ONCE around lock->owner, even if updated inside the cr. (peterz) - More testing time. This is a followup to proposal sometime ago

[PATCH 4/4] rtmutex: Reduce top-waiter blocking on a lock

2016-04-03 Thread Davidlohr Bueso
By applying well known spin-on-lock-owner techniques, we can avoid the blocking overhead during the process of when the task is trying to take the rtmutex. The idea is that as long as the owner is running, there is a fair chance it'll release the lock soon, and thus a task trying to acquire the rtm

[PATCH 1/4] rtmutex: Delete save_state member of struct rt_mutex

2016-04-03 Thread Davidlohr Bueso
This field (debug) is unused. Furthermore it looks like a result of rtmutex from -rt into upstream, where it serves to determine if the wakeup is for a task blocked on a "sleeping spinlock", iow if this is a regular rt_mutex_lock() or rt_spin_lock(). Of course, upstream we only have regular rt_mut

Re: [PATCH v3 2/2] usb:dwc3: pass arch data to xhci-hcd child

2016-04-03 Thread Felipe Balbi
santosh shilimkar writes: > +Arnd, RMK, > > On 4/1/2016 4:57 AM, Felipe Balbi wrote: >> >> Hi, >> >> Grygorii Strashko writes: >>> On 04/01/2016 01:20 PM, Felipe Balbi wrote: > > [...] > >>> commit 7ace8fc8219e4cbbfd5b4790390d9a01a2541cdf >>> Author: Yoshihiro Shimoda >>> Date: Mon Jul 13 18:1

Re: [PATCH RFC v2 0/2] pxa_camera transition to v4l2 standalone device

2016-04-03 Thread Robert Jarzmik
Hans Verkuil writes: > Hi Robert, > > It's been a very busy time for me, and both Guennadi and myself are attending > the > ELC the coming week. Speaking for myself that means that it is unlikely I'll > have > time to review anything for the next two weeks. > > My own renesas driver conversion

Re: [patch] ext4 crypto: fix some error handling

2016-04-03 Thread Theodore Ts'o
On Sat, Apr 02, 2016 at 07:49:16AM +0300, Dan Carpenter wrote: > We should be testing for -ENOMEM but the minus sign is missing. > > Fixes: c9af28fdd449 ('ext4 crypto: don't let data integrity writebacks fail > with ENOMEM') > Signed-off-by: Dan Carpenter Thanks, applied.

RE: [intel-pstate driver regression] processor frequency very high even if in idle

2016-04-03 Thread Doug Smythies
On 2016.03.04 22:14 Sedat Dilek wrote: > On Sun, Apr 3, 2016 at 8:59 PM, Doug Smythies wrote: >> On 2016.04.02 11:21 Sedat Dilek wrote: >>> On Sat, Apr 2, 2016 at 7:19 PM, Jörg Otte wrote: 2016-04-02 17:28 GMT+02:00 Srinivas Pandruvada wrote: > are you involved in the Ubuntu-OS? Develop

Re: [PATCH v2 0/5] mempool based chained scatterlist alloc/free api

2016-04-03 Thread Ming Lin
On Mon, Mar 28, 2016 at 7:48 AM, Ming Lin wrote: > On Thu, Mar 24, 2016 at 8:46 AM, James Bottomley > wrote: >> On Thu, 2016-03-24 at 08:09 -0700, Ming Lin wrote: >>> On Wed, Mar 23, 2016 at 12:40 AM, Christoph Hellwig >>> wrote: >>> > On Tue, Mar 22, 2016 at 03:03:11PM -0700, Ming Lin wrote: >>

[PATCH] mm/hwpoison: fix wrong num_poisoned_pages account

2016-04-03 Thread Minchan Kim
Currently, migration code increases num_poisoned_pages on failed migration page as well as successfully migrated one at the trial of memory-failure. It will make the stat wrong. As well, it marks page as PG_HWPoison even if the migration trial failed. It would make we cannot recover the corrupted

[PATCH v2] Security: Keys: Big keys stored encrypted

2016-04-03 Thread Kirill Marinushkin
Solved TODO task: big keys saved to shmem file are now stored encrypted. The encryption key is randomly generated and saved to payload[big_key_data]. Signed-off-by: Kirill Marinushkin --- security/keys/Kconfig | 4 + security/keys/big_key.c | 198 +++--

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-03 Thread Minchan Kim
On Mon, Apr 04, 2016 at 03:53:59PM +1000, Balbir Singh wrote: > > > On 30/03/16 18:12, Minchan Kim wrote: > > Procedure of page migration is as follows: > > > > First of all, it should isolate a page from LRU and try to > > migrate the page. If it is successful, it releases the page > > for freei

[PATCH] iio: ak8975: Fix NULL pointer exception on early interrupt

2016-04-03 Thread Krzysztof Kozlowski
In certain probe conditions the interrupt came right after registering the handler causing a NULL pointer exception because of uninitialized waitqueue: $ udevadm trigger i2c-gpio i2c-gpio-1: using pins 143 (SDA) and 144 (SCL) i2c-gpio i2c-gpio-3: using pins 53 (SDA) and 52 (SCL) Unable to handle k

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-03 Thread Balbir Singh
On 30/03/16 18:12, Minchan Kim wrote: > Procedure of page migration is as follows: > > First of all, it should isolate a page from LRU and try to > migrate the page. If it is successful, it releases the page > for freeing. Otherwise, it should put the page back to LRU > list. > > For LRU pages, w

Re: [PATCH 0/3] ARM: OMAP2: Make suspend work again.

2016-04-03 Thread Keerthy
On Saturday 02 April 2016 04:23 AM, Nishanth Menon wrote: Hi, series of patches for fixing up attempt to suspend on X15 Test: http://pastebin.ubuntu.com/15582436/ Based on v4.6-rc1 Also needs https://patchwork.kernel.org/patch/8724791/ if kernel modules are installed Thanks for the series

Re: mm/hwpoison: fix wrong num_poisoned_pages account

2016-04-03 Thread Naoya Horiguchi
On Mon, Apr 04, 2016 at 02:38:30PM +0900, Minchan Kim wrote: > > Forking new thread, > > Hello Naoya, > > On Mon, Apr 04, 2016 at 04:45:12AM +, Naoya Horiguchi wrote: > > On Mon, Apr 04, 2016 at 10:39:17AM +0900, Minchan Kim wrote: > > > On Fri, Apr 01, 2016 at 02:58:21PM +0200, Vlastimil Ba

mm/hwpoison: fix wrong num_poisoned_pages account

2016-04-03 Thread Minchan Kim
Forking new thread, Hello Naoya, On Mon, Apr 04, 2016 at 04:45:12AM +, Naoya Horiguchi wrote: > On Mon, Apr 04, 2016 at 10:39:17AM +0900, Minchan Kim wrote: > > On Fri, Apr 01, 2016 at 02:58:21PM +0200, Vlastimil Babka wrote: > > > On 03/30/2016 09:12 AM, Minchan Kim wrote: > > > >Procedure

[PATCH v3] ARM: dts: dra7: Correct clock tree for sys_32k_ck

2016-04-03 Thread Keerthy
This is w.r.t J6/J6eco: 32clk is pseudo (erratum i856) - clock source. Errata i856 for the AM572x (DRA7xx) points out that the 32.768KHz external crystal is not enabled at power up. Instead the CPU falls back to using an emulation for the 32KHz clock which is SYSCLK1/610. SYSCLK1 is usually 20MHz

[GIT PULL] f2fs fixes for v4.6-rc3

2016-04-03 Thread Jaegeuk Kim
Hi Linus, Could you please pull the below commits for v4.6-rc3? Thanks, The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs

Re: [PATCH v3 2/3] ata: ahci-platform: Add ports-implemented DT bindings.

2016-04-03 Thread Rob Herring
On Fri, Apr 01, 2016 at 08:52:57AM +0100, Srinivas Kandagatla wrote: > On some SOCs PORTS_IMPL register value is never programmed by the > firmware and left at zero value. Which means that no sata ports are > available for software. AHCI driver used to cope up with this by > fabricating the port_ma

Re: [PATCH v2 5/9] Documentation: dt-bindings: Add IRQ related properties of STM32 pinctrl

2016-04-03 Thread Rob Herring
On Thu, Mar 31, 2016 at 05:09:35PM +0200, Maxime Coquelin wrote: > Signed-off-by: Maxime Coquelin > --- > Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt | 3 +++ > 1 file changed, 3 insertions(+) Acked-by: Rob Herring

Re: [PATCH v2] mtd: nand: document the NAND controller/NAND chip DT representation

2016-04-03 Thread Rob Herring
On Fri, Apr 01, 2016 at 02:26:35PM +0200, Boris Brezillon wrote: > Standardize the NAND controller/NAND chip DT representation. Now, all new > NAND controller drivers should comply with this representation, even if > they are only supporting a single NAND chip. > > Existing drivers can keep suppor

Re: [PATCH v6 14/24] of/unittest: convert to use an explicit i2c mux core

2016-04-03 Thread Rob Herring
On Sun, Apr 03, 2016 at 10:52:44AM +0200, Peter Rosin wrote: > From: Peter Rosin > > Allocate an explicit i2c mux core to handle parent and child adapters > etc. Update the select op to be in terms of the i2c mux core instead > of the child adapter. > > Signed-off-by: Peter Rosin > --- > drive

Re: [PATCH 2/2] arm64: Fix watchpoint recursion when single-step is wrongly triggered in irq

2016-04-03 Thread Pratyush Anand
Hi Li, On 31/03/2016:08:45:05 PM, Li Bin wrote: > Hi Pratyush, > > on 2016/3/21 18:24, Pratyush Anand wrote: > > On 21/03/2016:08:37:50 AM, He Kuang wrote: > >> On arm64, watchpoint handler enables single-step to bypass the next > >> instruction for not recursive enter. If an irq is triggered rig

Re: [PATCH 1/2] Documentation: fsl-mc: binding updates for MSIs, ranges, PHYs

2016-04-03 Thread Rob Herring
On Fri, Apr 01, 2016 at 03:54:29PM -0500, Stuart Yoder wrote: > From: Stuart Yoder > > -The Freescale Management Complex and all associated objects > use message interrupts, and thus an msi-parent is required. > > -Define a ranges property to specify the mapping between > the MC address space

Re: [PATCH v2 02/16] arm64: dts: add sp804 timer node for Hi6220

2016-04-03 Thread Rob Herring
On Sun, Apr 03, 2016 at 09:23:42PM +0200, Linus Walleij wrote: > On Sat, Apr 2, 2016 at 11:29 AM, Guodong Xu wrote: > > > From: Leo Yan > > > > Add sp804 timer for hi6220, so it can be used as broadcast timer. > > > > Signed-off-by: Leo Yan > > Signed-off-by: Wei Xu > > --- > > arch/arm64/boo

Re: [RFC][PATCH 1/2] dt/bindings: display: Add DT bindings for Mali Display Processors.

2016-04-03 Thread Rob Herring
On Fri, Apr 01, 2016 at 05:21:51PM +0100, Liviu Dudau wrote: > Add DT bindings documentation for the Mali Display Processor. The bindings > describe the Mali DP500, DP550 and DP650 processors from ARM Ltd. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar G

Re: [PATCH v2 06/16] arm64: dts: add Hi6220 spi configuration nodes

2016-04-03 Thread Rob Herring
On Sat, Apr 02, 2016 at 05:29:33PM +0800, Guodong Xu wrote: > From: Zhong Kaihua > > Add Hi6220 spi configuration nodes > > Signed-off-by: Zhong Kaihua > Signed-off-by: Wei Xu > --- > arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + > arch/arm64/boot/dts/hisilicon/hi6220.dtsi|

Re: [PATCH v2 14/16] arm64: dts: hikey: Add hi655x pmic dts node

2016-04-03 Thread Rob Herring
On Sat, Apr 02, 2016 at 05:29:41PM +0800, Guodong Xu wrote: > From: Chen Feng > > Add the mfd hi655x dts node and regulator support on > hi6220 platform. > > Signed-off-by: Chen Feng > Signed-off-by: Fei Wang > Signed-off-by: Xinwei Kong > Reviewed-by: Haojian Zhuang > Reviewed-by: Guodong X

Re: [PATCH v2 08/16] arm64: dts: hikey: enable i2c0 and i2c1 for working with mezzanine boards

2016-04-03 Thread Rob Herring
On Sat, Apr 02, 2016 at 05:29:35PM +0800, Guodong Xu wrote: > Signed-off-by: Guodong Xu > --- > arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts > b/arch/arm64/boot/dts/hisilicon/hi622

Re: [PATCH v2 13/16] arm64: dts: add LED nodes for hi6220-hikey

2016-04-03 Thread Rob Herring
On Sat, Apr 02, 2016 at 05:29:40PM +0800, Guodong Xu wrote: > Signed-off-by: Guodong Xu > --- > arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 41 > ++ > 1 file changed, 41 insertions(+) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts > b/arch/arm64/bo

Re: [v7, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-04-03 Thread Rob Herring
On Fri, Apr 01, 2016 at 11:07:29AM +0800, Yangbo Lu wrote: > Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ > since it's used by not only PowerPC but also ARM. And add a specification > for 'little-endian' property. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: >

Re: [PATCH 2/2] dt-bindings: Add Oxford Semiconductor OXNAS pinctrl and gpio bindings

2016-04-03 Thread Rob Herring
On Sun, Apr 03, 2016 at 03:26:09PM +0200, Neil Armstrong wrote: > Add pinctrl and gpio DT bindings for Oxford Semiconductor OXNAS SoC Family. > This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. > > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindings/gpio/gpio_oxna

Re: [PATCHv2 4/7] Documentation: dt: socfpga: Add Altera Arria10 OCRAM binding

2016-04-03 Thread Rob Herring
On Thu, Mar 31, 2016 at 01:48:04PM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree bindings needed to support the Altera On-Chip > RAM ECC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > v2: Align Required Properties descriptions > --- > .../

Re: [PATCH v12 2/9] add UFS 2.0 to ufshcd-pltfrm bindings

2016-04-03 Thread Rob Herring
On Thu, Mar 31, 2016 at 07:57:15PM +0100, Joao Pinto wrote: > Add UFS 2.0 to the ufshcd-pltfrm devicetree binding. > > Signed-off-by: Joao Pinto > --- > Changes v0->v12 (Tomas Winkler): > - This patch only appeared in v12 > > Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt | 4 ++-- > 1

Re: [PATCH v12 8/9] add TC G210 platform driver

2016-04-03 Thread Rob Herring
On Thu, Mar 31, 2016 at 07:57:21PM +0100, Joao Pinto wrote: > This patch adds a glue platform driver for the Synopsys G210 Test Chip. > > Signed-off-by: Joao Pinto > --- > Changes v11->v12 (Tomas Winkler): > - custom_phy_initialization replaced by phy_initialization > Changes v10->v11 (Arnd Bergm

Re: [PATCH v2 1/9] Documentation: dt-bindings: Document STM32 EXTI controller bindings

2016-04-03 Thread Rob Herring
On Thu, Mar 31, 2016 at 05:09:31PM +0200, Maxime Coquelin wrote: > Signed-off-by: Maxime Coquelin > --- > .../bindings/interrupt-controller/st,stm32-exti.txt | 20 > > 1 file changed, 20 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/interrupt-cont

Re: [intel-pstate driver regression] processor frequency very high even if in idle

2016-04-03 Thread Sedat Dilek
On Sun, Apr 3, 2016 at 8:59 PM, Doug Smythies wrote: > On 2016.04.02 11:21 Sedat Dilek wrote: >> On Sat, Apr 2, 2016 at 7:19 PM, Jörg Otte wrote: >>> 2016-04-02 17:28 GMT+02:00 Srinivas Pandruvada wrote: Hi Doug, are you involved in the Ubuntu-OS? Developer for Canonical? If you are u

Re: [PATCH v3 02/16] mm/compaction: support non-lru movable page migration

2016-04-03 Thread Minchan Kim
On Fri, Apr 01, 2016 at 11:29:14PM +0200, Vlastimil Babka wrote: > Might have been better as a separate migration patch and then a > compaction patch. It's prefixed mm/compaction, but most changed are > in mm/migrate.c Indeed. The title is rather misleading but not sure it's a good idea to separat

Re: [PATCH v4 2/5] printk/nmi: use IRQ work only when ready

2016-04-03 Thread Sergey Senozhatsky
Hello, On (03/30/16 17:53), Petr Mladek wrote: > NMIs could happen at any time. This patch makes sure that the safe > printk() in NMI will schedule IRQ work only when the related structs are > initialized. > > All pending messages are flushed when the IRQ work is being initialized. so, does thi

Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic

2016-04-03 Thread Sergey Senozhatsky
Hello, On (03/31/16 14:36), Petr Mladek wrote: [..] > #ifdef CONFIG_PRINTK_NMI > +#define deferred_console_in_nmi() in_nmi() > #else > +#define deferred_console_in_nmi() 0 [..] > + if (!in_sched && !deferred_console_in_nmi()) { > lockdep_off(); > /* >

Re: [PATCH v4 1/5] printk/nmi: generic solution for safe printk in NMI

2016-04-03 Thread Sergey Senozhatsky
Hello, On (03/30/16 17:53), Petr Mladek wrote: [..] > @@ -67,10 +67,12 @@ extern void irq_exit(void); > preempt_count_add(NMI_OFFSET + HARDIRQ_OFFSET); \ > rcu_nmi_enter();\ > trace_hardirq_enter();

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-03 Thread Naoya Horiguchi
On Mon, Apr 04, 2016 at 10:39:17AM +0900, Minchan Kim wrote: > On Fri, Apr 01, 2016 at 02:58:21PM +0200, Vlastimil Babka wrote: > > On 03/30/2016 09:12 AM, Minchan Kim wrote: > > >Procedure of page migration is as follows: > > > > > >First of all, it should isolate a page from LRU and try to > > >m

Re: [RFC PATCH v1 1/9] selftest: sync: basic tests for sw_sync framework

2016-04-03 Thread Emilio López
Hi, El 28/03/16 a las 10:48, Emil Velikov escribió: These tests are based on the libsync test suite from Android. This commit lays the ground for future tests, as well as includes tests for a variety of basic allocation commands. Signed-off-by: Gustavo Padovan Signed-off-by: Emilio López ---

linux-next: Tree for Apr 4

2016-04-03 Thread Stephen Rothwell
Hi all, Changes since 20160401: My fixes tree is empty again. The qcom tree lost its build failure. The pm tree lost its build failure. The akpm tree lost a patch that turned up elsewhere. Non-merge commits (relative to Linus' tree): 1950 1797 files changed, 75443 insertions(+), 50320 deleti

[RFC] Create an audit record of USB specific details

2016-04-03 Thread wmealing
From: Wade Mealing Gday, I'm looking to create an audit trail for when devices are added or removed from the system. The audit subsystem is a logging subsystem in kernel space that can be used to create advanced filters on generated events. It has partnered userspace utilities ausearch, auditd

Re: [PATCH v3 2/2] mmc: dw_mmc: add resets support to dw_mmc

2016-04-03 Thread Jaehoon Chung
On 04/02/2016 03:42 AM, Heiko Stuebner wrote: > Am Mittwoch, 30. März 2016, 20:40:31 schrieb Jaehoon Chung: >> modified Rob's mail address. >> >> On 03/30/2016 04:24 PM, Guodong Xu wrote: >>> mmc registers may in abnormal state if mmc is used in bootloader, >>> eg. to support booting from eMMC. So

Re: 4.6-rc1 regression in SPI core -- deadlock

2016-04-03 Thread Vignesh R
On 04/04/2016 06:50 AM, Rich Felker wrote: > I've spent several days trying to debug a deadlock using our local > (not yet ready for upstream) driver for the J-Core SPI device and it > seems to be a new deadlock in the SPI core caused by commit > 556351f14e74 and unrelated to the particular drive

Re: [PATCH 6/7] drivers/mfd: make max77693.c explicitly non-modular

2016-04-03 Thread Krzysztof Kozlowski
On 04.04.2016 06:24, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_MAX77693 > drivers/mfd/Kconfig:bool "Maxim Semiconductor MAX77693 PMIC Support" > > ...meaning that it currently is not being built as a module by any

Re: [PATCH 5/7] drivers/mfd: make max77686.c explicitly non-modular

2016-04-03 Thread Krzysztof Kozlowski
On 04.04.2016 06:24, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_MAX77686 > drivers/mfd/Kconfig:bool "Maxim Semiconductor MAX77686/802 PMIC Support" > > ...meaning that it currently is not being built as a module by

Re: [PATCH 4/7] drivers/mfd: make max14577.c explicitly non-modular

2016-04-03 Thread Krzysztof Kozlowski
On 04.04.2016 06:24, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > mfd/Kconfig:config MFD_MAX14577 > mfd/Kconfig: bool "Maxim Semiconductor MAX14577/77836 MUIC + Charger > Support" > > ...meaning that it currently is not being built as a module by a

[RFC] weird semantics of SG_DXFER_TO_FROM_DEV in BLK_DEV_SKD (drivers/block/skd*)

2016-04-03 Thread Al Viro
SG_DXFER_TO_FROM_DEV is weird everywhere, but skd manages to get it even stranger than usual: copying to/from userland happens in skd_sg_io_copy_buffer(), which is called twice - once before the actual talking to device and once after. The first call either does nothing or copies from user

Re: [RESPIN 1/6] dt-bindings: EXYNOS: Add exynos-srom device tree binding

2016-04-03 Thread Krzysztof Kozlowski
On 05.03.2016 13:42, pankaj.dubey wrote: > Hi, > > On Wednesday 02 March 2016 11:23 PM, Rob Herring wrote: >> On Thu, Feb 25, 2016 at 02:03:37PM +0530, Pankaj Dubey wrote: >>> This patch adds exynos-srom binding information for SROM Controller >>> driver on Exynos SoCs. >>> >>> CC: Rob Herring >>

Re: [PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-04-03 Thread Vishnu Patekar
Hello Maxime, On Thu, Mar 17, 2016 at 6:40 PM, Maxime Ripard wrote: > On Thu, Mar 17, 2016 at 12:04:25AM +0800, Vishnu Patekar wrote: >> AHB1 on A83T is similar to ahb1 on A31, except parents are different. >> clock index 0b1x is PLL6. >> >> Signed-off-by: Vishnu Patekar >> Acked-by: Chen-Yu Tsa

[PATCH] ext4:Remove unneeded function definition and prototype for ext4_ext_calc_metadata_amount

2016-04-03 Thread Bastien Philbert
This removes the unneeded function definition and prototype for ext4_ext_calc_metadata_amount in the files ext4.c and extents.c as there are no more callers of this particular function and thus it can now be removed without issues in order to remove unnessary code from ext4 codebase. Signed-off-by

[PATCH v2] ARM: avoid duplicated "Kernel: arch/arm/boot/*Image is ready" log

2016-04-03 Thread Masahiro Yamada
Commit 3939f3345050 ("ARM: 8418/1: add boot image dependencies to not generate invalid images") fixed bad image generation in case of parallel building, but as a side effect, Kbuild now descends into arch/arm/boot/ again and again, duplicating the log messages. It is clumsy, so let's display the s

Re: [PATCH v3 03/16] mm: add non-lru movable page support document

2016-04-03 Thread Minchan Kim
On Fri, Apr 01, 2016 at 04:38:34PM +0200, Vlastimil Babka wrote: > On 03/30/2016 09:12 AM, Minchan Kim wrote: > >This patch describes what a subsystem should do for non-lru movable > >page supporting. > > Intentionally reading this first without studying the code to better > catch things that woul

Re: [PATCH net-next v2 0/6] net: dsa: mv88e6131: HW bridging support for 6185

2016-04-03 Thread Andrew Lunn
On Thu, Mar 31, 2016 at 04:53:40PM -0400, Vivien Didelot wrote: > All packets passing through a switch of the 6185 family are currently all > directed to the CPU port. This means that port bridging is software driven. > > To enable hardware bridging for this switch family, we need to implement the

Re: [RFC PATCH 0/9] ARM: start to move arch/arm/mach-* to arch/arm/platforms/*

2016-04-03 Thread Masahiro Yamada
Hi Russell, 2016-04-04 3:25 GMT+09:00 Russell King - ARM Linux : > On Sun, Apr 03, 2016 at 11:39:18PM +0900, Masahiro Yamada wrote: >> We have growing number of mach-* directories in arch/arm, and I guess >> it might be a good time to discuss moving them into a sub-directory. > > What does it buy

Re: [RFC PATCH 0/9] ARM: start to move arch/arm/mach-* to arch/arm/platforms/*

2016-04-03 Thread Florian Fainelli
On April 3, 2016 11:25:43 AM PDT, Russell King - ARM Linux wrote: >On Sun, Apr 03, 2016 at 11:39:18PM +0900, Masahiro Yamada wrote: >> We have growing number of mach-* directories in arch/arm, and I guess >> it might be a good time to discuss moving them into a sub-directory. > >What does it buy

Re: [PATCH v2 02/16] arm64: dts: add sp804 timer node for Hi6220

2016-04-03 Thread Leo Yan
Hi Linus, Thanks for review. On Sun, Apr 03, 2016 at 09:23:42PM +0200, Linus Walleij wrote: > On Sat, Apr 2, 2016 at 11:29 AM, Guodong Xu wrote: > > > From: Leo Yan > > > > Add sp804 timer for hi6220, so it can be used as broadcast timer. > > > > Signed-off-by: Leo Yan > > Signed-off-by: Wei

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-03 Thread Minchan Kim
On Fri, Apr 01, 2016 at 02:58:21PM +0200, Vlastimil Babka wrote: > On 03/30/2016 09:12 AM, Minchan Kim wrote: > >Procedure of page migration is as follows: > > > >First of all, it should isolate a page from LRU and try to > >migrate the page. If it is successful, it releases the page > >for freeing

Re: [PATCH] intel_pstate: Avoid pointless FRAC_BITS shifts under div_fp()

2016-04-03 Thread Rafael J. Wysocki
On Friday, April 01, 2016 09:44:43 AM Philippe Longepe wrote: > I proposed also to simplify the intel_pstate_calc_busy function: > > core_pct = int_tofp(sample->aperf) * int_tofp(100); > core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); > > is equivalent to: > > core_pct =

4.6-rc1 regression in SPI core -- deadlock

2016-04-03 Thread Rich Felker
I've spent several days trying to debug a deadlock using our local (not yet ready for upstream) driver for the J-Core SPI device and it seems to be a new deadlock in the SPI core caused by commit 556351f14e74 and unrelated to the particular driver. Commit 49023d2e4ead tried to solve a related deadl

Re: [PATCH] cpufreq: intel_pstate: fix inconsistency in setting policy limits

2016-04-03 Thread Rafael J. Wysocki
On Sun, Apr 3, 2016 at 10:06 PM, Srinivas Pandruvada wrote: > When user sets performance policy using cpufreq interface, it is possible > that because of policy->max limits, the actual performance is still > limited. But the current implementation will silently switch the > policy to powersave and

Re: zram: per-cpu compression streams

2016-04-03 Thread Sergey Senozhatsky
Hello Minchan, On (04/04/16 09:27), Minchan Kim wrote: > Hello Sergey, > > On Sat, Apr 02, 2016 at 12:38:29AM +0900, Sergey Senozhatsky wrote: > > Hello Minchan, > > > > On (03/31/16 15:34), Sergey Senozhatsky wrote: > > > > I tested with you suggested parameter. > > > > In my side, win is bette

RE: [PATCH 1/2] kexec: update VMCOREINFO for compound_order/dtor

2016-04-03 Thread Atsushi Kumagai
>On Tue, 1 Mar 2016 06:14:32 + Atsushi Kumagai >wrote: > >> makedumpfile refers page.lru.next to get the order of compound pages >> for page filtering. However, now the order is stored in page.compound_order, >> hence VMCOREINFO should be updated to export the offset of >> page.compound_order

Re: [PATCH V2] extcon: palmas: Drop stray IRQF_EARLY_RESUME flag

2016-04-03 Thread Chanwoo Choi
On 2016년 04월 01일 22:52, Nishanth Menon wrote: > Palmas extcon IRQs are nested threaded and wired to the Palmas > interrupt controller. So, this flag is not required for nested > IRQs anymore, since commit 3c646f2c6aa9 ("genirq: Don't suspend > nested_thread irqs over system suspend") was merged. Ho

Re: [PATCH 6/8] tools rpmb: add RPBM access tool

2016-04-03 Thread kbuild test robot
-Protected-Memory-Block-RPMB-subsystem/20160403-174929 config: x86_64-allyesconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): make[3]: *** No rule to make target 'arch/x86/events/core

Re: zram: per-cpu compression streams

2016-04-03 Thread Minchan Kim
Hello Sergey, On Sat, Apr 02, 2016 at 12:38:29AM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (03/31/16 15:34), Sergey Senozhatsky wrote: > > > I tested with you suggested parameter. > > > In my side, win is better compared to my previous test but it seems > > > your test is so fast.

Re: [RFC 0/6] drm/fences: add in-fences to DRM

2016-04-03 Thread Inki Dae
2016년 03월 31일 23:10에 Rob Clark 이(가) 쓴 글: > On Thu, Mar 31, 2016 at 7:26 AM, Inki Dae wrote: >> Hi Daniel, >> >> 2016-03-31 19:56 GMT+09:00 Daniel Stone : >>> Hi Inki, >>> >>> On 31 March 2016 at 11:05, Inki Dae wrote: 2016년 03월 31일 18:35에 Daniel Stone 이(가) 쓴 글: > On 31 March 2016 at 08:

Re: [PATCH] mm: vmscan: reclaim highmem zone if buffer_heads is over limit

2016-04-03 Thread Minchan Kim
On Fri, Apr 01, 2016 at 01:14:58PM -0700, Andrew Morton wrote: > On Fri, 1 Apr 2016 10:03:50 +0200 Michal Hocko wrote: > > > On Fri 01-04-16 17:00:58, Minchan Kim wrote: > > [...] > > > [2] commit 5acbd3bfc93b ("mm, oom: rework oom detection") > > > > I didn't look a tht patch yet but wanted to

Re: [PATCH v2 0/3] Cleanup setup_clock callback from dw_mmc

2016-04-03 Thread Jaehoon Chung
Hi, Picked this patch-set on my repository. Best Regards, Jaehoon Chung On 03/31/2016 04:33 PM, Shawn Lin wrote: > Hello Jeahoon > > Currently dw_mmc is a little too queen-size. As we had cleanup > prepare_command callback some days before, there are also some > ones deserve to remove. Also we

[PATCH] mm: vmscan: reclaim highmem zone if buffer_heads is over limit

2016-04-03 Thread Minchan Kim
We have been reclaimed highmem zone if buffer_heads is over limit but [1] changed the behavior so it doesn't reclaim highmem zone although buffer_heads is over the limit. This patch restores the logic. [1] commit 6b4f7799c6a5 ("mm: vmscan: invoke slab shrinkers from shrink_zone()") Cc: Johannes W

[PATCH] mm:vmscan: clean up classzone_idx

2016-04-03 Thread Minchan Kim
[1] removed classzone_idx so we don't need code related to it. This patch cleans it up. [1] mm, oom: rework oom detection Cc: Johannes Weiner Cc: Michal Hocko Signed-off-by: Minchan Kim --- mm/vmscan.c | 8 1 file changed, 8 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index

Re: [PATCH 2/3] MIPS: BMIPS: improve BCM6358 device tree

2016-04-03 Thread Ralf Baechle
On Sun, Apr 03, 2016 at 02:13:04PM +0200, Álvaro Fernández Rojas wrote: > - Switch to bcm6345-l1-intc interrupt controller. > - Add ehci0 and ohci0 nodes. > - Use proper native-endian syscon property. > > Signed-off-by: Álvaro Fernández Rojas > --- > arch/mips/boot/dts/brcm/bcm6358.dtsi | 29 ++

[PATCH] bridge:Fix incorrect variable assignment on error path in br_sysfs_addbr

2016-04-03 Thread Bastien Philbert
This fixes the incorrect variable assignment on error path in br_sysfs_addbr for when the call to kobject_create_and_add fails to assign the value of -EINVAL to the returned variable of err rather then incorrectly return zero making callers think this function has succeededed due to the previous as

[PATCH 2/2] cgroups: Fixing comment typo

2016-04-03 Thread Khaled Ahmed
Signed-off-by: Khaled Ahmed --- include/linux/cgroup-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 789471d..f81e6fd 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -241,7 +2

Re: [PATCH 2/6] net: ethernet: renesas: ravb_main: test clock rate to avoid division by 0

2016-04-03 Thread Sergei Shtylyov
On 04/04/2016 12:36 AM, Wolfram Sang wrote: From: Wolfram Sang The clk API may return 0 on clk_get_rate, so we should check the result before using it as a divisor. Signed-off-by: Wolfram Sang Ping. http://patchwork.ozlabs.org/patch/591160/ I have no idea why it's marked this way.

[PATCH v2 05/15] wcn36xx: Use define for invalid index and fix typo

2016-04-03 Thread Bjorn Andersson
From: Pontus Fuchs Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 2 +- drivers/net/wireless/ath/wcn36xx/main.c | 4 ++-- drivers/net/wireless/ath/wcn36xx/smd.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH v2 01/15] wcn36xx: Clean up wcn36xx_smd_send_beacon

2016-04-03 Thread Bjorn Andersson
From: Pontus Fuchs Needed for coming improvements. No functional changes. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/hal.h | 7 +-- drivers/net/wireless/ath/wcn36xx/smd.c | 12 +--- 2 files changed, 10 insertions(+), 9 deletion

[PATCH v2 04/15] wcn36xx: Use consistent name for private vif

2016-04-03 Thread Bjorn Andersson
From: Pontus Fuchs Some code used priv_vif and some used vif_priv. Convert all to vif_priv for consistency. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-

[PATCH v2 11/15] wcn36xx: Use allocated self sta index instead of hard coded

2016-04-03 Thread Bjorn Andersson
From: Pontus Fuchs Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index ebb446272d21..e0d5

  1   2   3   >