Re: [patch] sched/fair: Move se->vruntime normalization state into struct sched_entity

2016-05-23 Thread Mike Galbraith
On Mon, 2016-05-23 at 18:13 +0800, Wanpeng Li wrote: > 2016-05-23 17:40 GMT+08:00 Mike Galbraith : > > On Mon, 2016-05-23 at 11:19 +0200, Peter Zijlstra wrote: > > > On Sun, May 22, 2016 at 09:00:01AM +0200, Mike Galbraith wrote: > > > > On Sat, 2016-05-21 at 21:00 +0200, Mike Galbraith wrote: > >

Re: [PATCH] spi: spidev: fix possible arithmetic overflow for multi-transfer message

2016-05-23 Thread Ian Abbott
On 21/05/16 17:50, Dmitry Torokhov wrote: On Mon, Mar 23, 2015 at 10:50 AM, Ian Abbott wrote: `spidev_message()` sums the lengths of the individual SPI transfers to determine the overall SPI message length. It restricts the total length, returning an error if too long, but it does not check fo

Re: [patch] sched/fair: Move se->vruntime normalization state into struct sched_entity

2016-05-23 Thread Wanpeng Li
2016-05-23 17:40 GMT+08:00 Mike Galbraith : > On Mon, 2016-05-23 at 11:19 +0200, Peter Zijlstra wrote: >> On Sun, May 22, 2016 at 09:00:01AM +0200, Mike Galbraith wrote: >> > On Sat, 2016-05-21 at 21:00 +0200, Mike Galbraith wrote: >> > > On Sat, 2016-05-21 at 16:04 +0200, Mike Galbraith wrote: >>

Re: [PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-23 Thread Roger Quadros
On 23/05/16 06:21, Peter Chen wrote: > On Sat, May 21, 2016 at 10:29:40AM +0800, Peter Chen wrote: >> On Thu, May 19, 2016 at 10:32:44AM +0300, Roger Quadros wrote: >>> On 18/05/16 17:46, Jun Li wrote: >>> >>> I didn't want to have complex Kconfig so decided to have otg as >>>

Re: [PATCH 1/1 RFC] net/phy: Add Lantiq PHY driver

2016-05-23 Thread Mathias Kresin
2016-05-23 11:49 GMT+02:00 Alexander Stein : >> The registers are set to some reset values after the chip is coming out of >> reset, but we should set them all to the same value, Mathias said that all >> except for one board he knows are using only one LED per port, but they are >> often using di

Re: [PATCH v8 08/14] usb: otg: add OTG/dual-role core

2016-05-23 Thread Roger Quadros
On 20/05/16 12:53, Peter Chen wrote: > On Fri, May 20, 2016 at 12:19:07PM +0300, Roger Quadros wrote: >> On 20/05/16 11:31, Roger Quadros wrote: >>> On 18/05/16 15:59, Roger Quadros wrote: Hi Peter, On 18/05/16 10:45, Peter Chen wrote: > > > On Mon, May 16, 2016 at 5:00 P

[PATCH 2/4 v7] ASoC: dwc: Do not use devm_clk_get() if using platform data

2016-05-23 Thread Jose Abreu
When using platform data the devm_clk_get() function is called causing a probe failure if the clock is not declared. As we can pass the clock handler by platform data call only devm_clk_get() when platform data is not used. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Mark Brown Cc: Liam G

[PATCH 1/4 v7] ASoC: dwc: Add helper functions to disable/enable irqs

2016-05-23 Thread Jose Abreu
Helper functions to disable and enable the I2S interrupts were added. Only the interrupts of the used channels are enabled. Also, there is no need to enable irqs at dw_i2s_config(), they are already enabled at startup. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Mark Brown Cc: Liam Girdw

[PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension

2016-05-23 Thread Jose Abreu
A PCM extension was added to I2S driver so that audio samples are transferred using PIO mode. The PCM supports two channels @ 16 or 32 bits with rates 32k, 44.1k and 48k. Although the mainline I2S driver uses ALSA DMA engine the I2S controller can be built without DMA support, therefore this is t

[PATCH 0/4 v7] Add I2S audio support for ARC AXS10x boards

2016-05-23 Thread Jose Abreu
ARC AXS10x platforms consist of a mainboard with several peripherals. One of those peripherals is an HDMI output port controlled by the ADV7511 transmitter. This patch set adds I2S audio for the AXS10x platform. NOTE: Although the mainline I2S driver uses ALSA DMA engine, this controller can be b

[PATCH 4/4 v7] ASoC: dwc: Add irq parameter to DOCUMENTATION

2016-05-23 Thread Jose Abreu
A parameter description for the interruptions of the I2S controller was added. This interrupt parameter should only be set when I2S does not have DMA support. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Mark Brown Cc: Liam Girdwood Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Rob Herring

[block] e0d3dd5854: INFO: suspicious RCU usage. ]

2016-05-23 Thread kernel test robot
u Haswell,+smep,+smap -kernel /pkg/linux/x86_64-nfsroot/gcc-6/e0d3dd5854af35d080411e2c51308f58f72ed18b/vmlinuz-4.6.0-rc3-00122-ge0d3dd5 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-1G-8/bisect_boot-1-debian-x86_64-2015-02-07.cgz-x86_64-nfsroot-e0d3dd5854af35d080411e2c51308f58f72ed18b-20160523-89777-1kpfl6n-

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

2016-05-23 Thread Heikki Krogerus
Hi Oliver, On Fri, May 20, 2016 at 04:19:59PM +0200, Oliver Neukum wrote: > On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > > Like I've told some of you guys, I'm trying to implement a bus for > > the Alternate Modes, but I'm still nowhere near finished with that > > one, so let's just

Re: [PATCH 3.12 00/76] 3.12.60-stable review

2016-05-23 Thread Jiri Slaby
On 05/19/2016, 03:52 PM, Guenter Roeck wrote: > On 05/19/2016 02:08 AM, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.60 release. >> There are 76 patches in this series, all will be posted as a response >> to this one. If anyone has any issues with these being appl

Re: [PATCH 1/1 RFC] net/phy: Add Lantiq PHY driver

2016-05-23 Thread Alexander Stein
Hi Hauke, On Monday 23 May 2016 09:12:54, Mehrtens, Hauke wrote: > > On Thursday 19 May 2016 12:03:10, Mathias Kresin wrote: > > > 2016-05-19 9:03 GMT+02:00 John Crispin : > > > > On 19/05/2016 08:57, Alexander Stein wrote: > > > >> Thanks for the link, I wasn't aware of that patch. I like it in >

[PATCH V3] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Peng Fan
The vfio No-IOMMU mode was supported by this 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', but it only support vfio-pci. Using vfio_iommu_group_get/put, but not iommu_group_get/put, the platform devices can be exposed to userspace with CONFIG_VFIO_NOIOMMU and the "enable_unsafe_noiomm

RE: livepatch: change to a per-task consistency model

2016-05-23 Thread David Laight
From: Jiri Kosina > Sent: 18 May 2016 21:23 > On Wed, 18 May 2016, Josh Poimboeuf wrote: > > > Yeah, I think this situation -- a task sleeping on an affected function > > in uninterruptible state for a long period of time -- would be > > exceedingly rare and not something we need to worry about fo

Re: [RFC v2 3/5] drm/mediatek: add *driver_data for different hardware settings

2016-05-23 Thread CK Hu
Hi, YT: One comment below. On Fri, 2016-05-20 at 23:05 +0800, yt.s...@mediatek.com wrote: > From: YT Shen > > There are some hardware settings changed, between MT8173 & MT2701: > DISP_OVL address offset changed, color format definition changed. > DISP_RDMA fifo size changed. > DISP_COLOR offset

Re: [patch] sched/fair: Move se->vruntime normalization state into struct sched_entity

2016-05-23 Thread Mike Galbraith
On Mon, 2016-05-23 at 11:19 +0200, Peter Zijlstra wrote: > On Sun, May 22, 2016 at 09:00:01AM +0200, Mike Galbraith wrote: > > On Sat, 2016-05-21 at 21:00 +0200, Mike Galbraith wrote: > > > On Sat, 2016-05-21 at 16:04 +0200, Mike Galbraith wrote: > > > > > > > Wakees that were not migrated/normali

Re: [PATCH] seqlock: fix raw_read_seqcount_latch()

2016-05-23 Thread Peter Zijlstra
On Sun, May 22, 2016 at 09:50:40PM +0300, Alexey Dobriyan wrote: > On Sun, May 22, 2016 at 12:48:27PM +0200, Peter Zijlstra wrote: > > On Sat, May 21, 2016 at 11:14:49PM +0300, Alexey Dobriyan wrote: > > > lockless_dereference() is supposed to take pointer not integer. > > > > Urgh :/ > > > > Is

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-23 Thread David Howells
Christoph Hellwig wrote: > Honestly I think this really matters on the amount of 'emulation' we > need - if it's just adding a new flag that can be trivially generated > in the syscall stub in userland that's probably fine, but if we have > actually differing semantics (like the stat weak attribu

Re: [PATCH 16/54] MAINTAINERS: Add file patterns for drm device tree bindings

2016-05-23 Thread Emil Velikov
On 22 May 2016 at 10:05, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: David Airlie > Cc: dri-de...@lists.freedesktop.org > --- > Please apply this patch dire

Re: [PATCH] doc: self-protection: provide initial details

2016-05-23 Thread James Morris
On Mon, 16 May 2016, Kees Cook wrote: > + Segregation of kernel memory from userspace memory > + > +The kernel must never execute userspace memory. The kernel must also never > +access userspace memory without explicit expectation to do so. These > +rules can be enforced either by support of h

Re: [PATCH 1/5] iommu/rockchip: fix devm_request_irq and devm_free_irq parameter

2016-05-23 Thread Heiko Stuebner
Am Montag, 23. Mai 2016, 09:37:15 schrieb Shunqian Zheng: > From: Simon generally a "firstname surename " is expected, so a first name is not really enough. > > When rk_iommu_attach_device or rk_iommu_detach_device be called, the > second parameter "dev" represent the device who own the iommu,

Re: [RFC PATCH] Increase in idle power with schedutil

2016-05-23 Thread Peter Zijlstra
On Sun, May 22, 2016 at 01:42:52PM -0700, Steve Muckle wrote: > > So does it actually matter what the frequency is when you idle? Isn't > > the whole thing clock gated anyway? > > > > Because this seems to generate contradictory requirements, on the one > > hand we want to stay idle as long as po

Re: [RFC PATCH] Increase in idle power with schedutil

2016-05-23 Thread Peter Zijlstra
On Mon, May 23, 2016 at 10:00:04AM +0100, Lorenzo Pieralisi wrote: > It is also related to static leakage power that depends on the operating > voltage (ie higher operating frequencies require higher voltage) so in a > way scaling frequency before going idle may not be effective if voltage > does n

[PATCH v2 RESEND] mfd: arizona: Check if AOD interrupts are pending before dispatching

2016-05-23 Thread Richard Fitzgerald
Previously the arizona_irq_thread implementation would call handle_nested_irqs() to handle AOD interrupts without checking if any were actually pending. The kernel will see these as spurious IRQs and will eventually disable the IRQ. This patch ensures we only launch the nested handler if there are

Re: [PATCH V2] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Peng Fan
Hi Eric, On Mon, May 23, 2016 at 10:59:24AM +0200, Eric Auger wrote: >Hi Peng, >On 05/23/2016 10:14 AM, Peng Fan wrote: >> The vfio No-IOMMU mode was supported by this >> 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', >> but it only support vfio-pci. >> >> Using vfio_iommu_group_get/p

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

2016-05-23 Thread Heikki Krogerus
On Fri, May 20, 2016 at 10:02:28AM -0700, Guenter Roeck wrote: > On Fri, May 20, 2016 at 01:47:03PM +0300, Heikki Krogerus wrote: > > On Thu, May 19, 2016 at 10:53:04AM -0700, Guenter Roeck wrote: > > > Hello Heikki, > > > > > > On Thu, May 19, 2016 at 03:44:54PM +0300, Heikki Krogerus wrote: > >

Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder

2016-05-23 Thread R, Vignesh
On 5/20/2016 10:04 PM, Dmitry Torokhov wrote: > On Thu, May 19, 2016 at 02:34:00PM +0530, Vignesh R wrote: >> There are rotary-encoders where GPIO lines reflect the actual position >> of the rotary encoder dial. For example, if dial points to 9, then four >> GPIO lines connected to the rotary enc

Re: [patch] sched/fair: Move se->vruntime normalization state into struct sched_entity

2016-05-23 Thread Peter Zijlstra
On Sun, May 22, 2016 at 09:00:01AM +0200, Mike Galbraith wrote: > On Sat, 2016-05-21 at 21:00 +0200, Mike Galbraith wrote: > > On Sat, 2016-05-21 at 16:04 +0200, Mike Galbraith wrote: > > > > > Wakees that were not migrated/normalized eat an unwanted min_vruntime, > > > and likely take a size XXL

Re: [PATCH 2/2] libnvdimm, dax: fix alignment validation

2016-05-23 Thread Johannes Thumshirn
On Wed, May 18, 2016 at 04:44:07PM -0700, Dan Williams wrote: > Testing the dax-device autodetect support revealed a probe failure with > the following result: > > dax0.1: bad offset: 0x820 dax disabled > > The original pfn-device implementation inferred the alignment from > ilog2(offset)

Re: [PATCH 1/2] libnvdimm, dax: autodetect support

2016-05-23 Thread Johannes Thumshirn
On Wed, May 18, 2016 at 04:44:02PM -0700, Dan Williams wrote: > For autodetecting a previously established dax configuration we need the > info block to indicate block-device vs device-dax mode, and we need to > have the default namespace probe hand-off the configuration to the > dax_pmem driver. >

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Matias Bjørling
On 05/23/2016 11:13 AM, Wenwei Tao wrote: From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the new target name unique in the system. Signed-off-by: Wenwei Tao --- drivers/lightnvm/g

Re: [PATCH] soc: mtk-pmic-wrap: avoid integer overflow warning

2016-05-23 Thread Henry Chen
Hi, Thanks to the patch. On Thu, 2016-05-12 at 23:01 +0200, Arnd Bergmann wrote: > On ARM64, the mtk-pmic-wrap driver causes a harmless warning: > > mtk-pmic-wrap.c:1062:16: warning: large integer implicitly truncated to > unsigned type [-Woverflow] > mtk-pmic-wrap.c:1074:16: warning: large int

RE: [PATCH 1/1 RFC] net/phy: Add Lantiq PHY driver

2016-05-23 Thread Mehrtens, Hauke
Hi Alexander, > -Original Message- > From: Alexander Stein [mailto:alexander.st...@systec-electronic.com] > Sent: Thursday, May 19, 2016 12:22 PM > To: Mathias Kresin > Cc: John Crispin ; Florian Fainelli ; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; and...@lunn.ch; > Mehrtens

[PATCH v2 1/2] lightnvm: hold lock until finish the target creation

2016-05-23 Thread Wenwei Tao
From: Wenwei Tao When create a target, we check whether the target is already exist first. If the answer is no, we release the lock and continue the creation. This cannot prevent concurrent creation of the same target, so hold the lock until finish the target creation. Signed-off-by: Wenwei Tao

[RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the new target name unique in the system. Signed-off-by: Wenwei Tao --- drivers/lightnvm/gennvm.c | 13 +++-- 1 file changed, 1

Re: [RFC v2 2/5] drm/mediatke: add support for Mediatek SoC MT2701

2016-05-23 Thread CK Hu
Hi, YT: Some comments below. On Fri, 2016-05-20 at 23:05 +0800, yt.s...@mediatek.com wrote: > From: YT Shen > > This patch add support for the Mediatek MT2701 DISP subsystem. > There is only one OVL engine in MT2701. > > Signed-off-by: YT Shen > > +static void mtk_ddp_mux_sel(void __iomem *

Re: [PATCH V7 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-23 Thread Jon Hunter
On 20/05/16 15:45, Laxman Dewangan wrote: > The IO pins of Tegra SoCs are grouped for common control of IO > interface like setting voltage signal levels and power state of > the interface. The group is generally referred as IO pads. The > power state and voltage control of IO pins can be done at

Re: [PATCH V2] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Eric Auger
Hi Peng, On 05/23/2016 10:14 AM, Peng Fan wrote: > The vfio No-IOMMU mode was supported by this > 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', > but it only support vfio-pci. > > Using vfio_iommu_group_get/put, but not iommu_group_get/put, > the platform devices can be exposed to use

Re: [RFC PATCH] Increase in idle power with schedutil

2016-05-23 Thread Lorenzo Pieralisi
On Sun, May 22, 2016 at 01:42:52PM -0700, Steve Muckle wrote: > On Sun, May 22, 2016 at 12:39:12PM +0200, Peter Zijlstra wrote: > > On Fri, May 20, 2016 at 05:53:41PM +0530, Shilpasri G Bhat wrote: > > > > > > Below are the comparisons by disabling watchdog. > > > Both schedutil and ondemand have

Re: [Intel-gfx] linux-next: build failure after merge of the drm-intel tree

2016-05-23 Thread Jani Nikula
On Mon, 23 May 2016, Stephen Rothwell wrote: > Hi all, > > After merging the drm-intel tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from drivers/gpu/drm/i915/i915_trace.h:10:0, > from drivers/gpu/drm/i915/i915_drv.h:2735, >

[x86] ad81363cd6: kernel BUG at lib/atomic64_test.c:184!

2016-05-23 Thread kernel test robot
6_64 -enable-kvm -kernel /pkg/linux/x86_64-nfsroot/gcc-6/ad81363cd63bc4700ad2f98e91cb20faf81e5c04/vmlinuz-4.6.0-00010-gad81363 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-vp-quantal-x86_64-61/bisect_boot-1-quantal-core-x86_64.cgz-x86_64-nfsroot-ad81363cd63bc4700ad2f98e91cb20faf81

Re: [PATCH] drivers: nvmem: atmel-secumod: New driver for Atmel Secumod nvram

2016-05-23 Thread Srinivas Kandagatla
Thanks for the patch, Few minors comments below. On 18/05/16 22:06, David Mosberger-Tang wrote: Signed-off-by: David Mosberger --- .../devicetree/bindings/nvmem/atmel-secumod.txt| 47 +++ drivers/nvmem/Kconfig | 7 + drivers/nvmem/Makefile

[PATCH] powerpc32: use stmw/lmw for non volatile registers save/restore

2016-05-23 Thread Christophe Leroy
lmw/stmw have a 1 cycle (2 cycles for lmw on some ppc) in addition and implies serialising, however it reduces the amount of instructions hence the amount of instruction fetch compared to the equivalent operation with several lzw/stw. It means less pressure on cache and less fetching delays on slow

[PATCH] powerpc: inline current_stack_pointer()

2016-05-23 Thread Christophe Leroy
current_stack_pointeur() is a single instruction function. it It is not worth breaking the execution flow with a bl/blr for a single instruction Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/reg.h | 7 ++- arch/powerpc/kernel/misc.S | 4 arch/powerpc/kernel/ppc_ksym

[PATCH] powerpc32: get rid of sub_reloc_offset()

2016-05-23 Thread Christophe Leroy
sub_reloc_offset() has not been used since commit 917f0af9e5a9 ("powerpc: Remove arch/ppc and include/asm-ppc") which removed include/asm-ppc/prom.h Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 14 -- 1 file changed, 14 deletions(-) diff --git a/arch/powerpc/k

Re: [RFC 06/13] mm, thp: remove __GFP_NORETRY from khugepaged and madvised allocations

2016-05-23 Thread Michal Hocko
On Fri 20-05-16 15:57:08, Vlastimil Babka wrote: [...] > From: Vlastimil Babka > Date: Wed, 4 May 2016 13:40:03 +0200 > Subject: [PATCH] mm, thp: remove __GFP_NORETRY from khugepaged and madvised > allocations > > After the previous patch, we can distinguish costly allocations that should be > r

Re: linux-next: Tree for May 17

2016-05-23 Thread Stephen Rothwell
Hi Xiong, On Mon, 23 May 2016 16:13:28 +0800 Xiong Zhou wrote: > > hi, > > On Tue, May 17, 2016 at 1:04 PM, Stephen Rothwell > wrote: > > > > I have created today's linux-next tree at > > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > (patches at http://www.kernel.org/pu

Re: [PATCH] gpio: remove redundant owner assignments of drivers

2016-05-23 Thread Charles Keepax
On Mon, May 23, 2016 at 10:49:10AM +0900, Masahiro Yamada wrote: > A platform_driver need not set an owner since it will be populated > by platform_driver_register(). > Likewise for mcb_driver (gpio-menz127.c). > > Signed-off-by: Masahiro Yamada > --- For the Wolfson bits: Acked-by: Charles Kee

Re: [PATCH] lightnvm: expose mark_blk through core

2016-05-23 Thread Matias Bjørling
On 05/10/2016 09:25 AM, Javier González wrote: Expose mark_blk through the core LightNVM operations to hid the media manager, as we do for the rest of the block operations. This is necessary for targets to mark a growing bad block as bad before returning it to the media manager. Signed-off-by: J

Re: [PATCH V7 04/11] pci: Add new function to unmap IO resources.

2016-05-23 Thread Jayachandran C
On Tue, May 10, 2016 at 8:49 PM, Tomasz Nowicki wrote: > It is very useful to release I/O resources so that the same I/O resources > can be allocated again (pci_remap_iospace), like in PCI hotplug removal > scenario. Therefore this patch implements new pci_unmap_iospace call which > unmaps I/O spa

[PATCH] powerpc/pseries: start rtasd before PCI probing

2016-05-23 Thread Greg Kurz
A strange behaviour is observed when comparing PCI hotplug in QEMU, between x86 and pseries. If you consider the following steps: - start a VM - add a PCI device via the QEMU monitor before the rtasd has started (for example starting the VM in paused state, or hotplug during FW or boot loader)

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-23 Thread Christoph Hellwig
On Fri, May 20, 2016 at 11:30:43AM -0700, Viacheslav Dubeyko wrote: > I am not sure that I follow to your point. The F2FS has "feature" field > (__le32 feature) into on-disk superblock (struct f2fs_super_block). The > suggested patch introduces the new F2FS_FEATURE_16TB_SUPPORT flag. And > it looks

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-23 Thread Christoph Hellwig
On Fri, May 13, 2016 at 05:28:11PM +0200, Arnd Bergmann wrote: > I'm trying to understand what that means for the 64-bit time_t syscalls. > > The patch series I did last year had a replacement 'sys_newfstatat()' > syscall but IIRC no other stat variant, the idea being that we would > only need to

[PATCH v3 0/2] kbuild: Remove stale asm-generic wrappers

2016-05-23 Thread James Hogan
This patchset attempts to fix kbuild to automatically remove stale asm-generic wrappers, i.e. when files are removed from generic-y and added directly into arch/*/include/uapi/asm/, but where the existing wrapper in arch/*/include/generated/asm/ continues to be used. MIPS was recently burned by th

Re: [PATCH] i2c_hid: enable i2c-hid devices to suspend/resume asynchronously

2016-05-23 Thread Mika Westerberg
On Thu, May 19, 2016 at 10:46:24AM +0800, Fu, Zhonghui wrote: > i2c-hid devices' suspend/resume are usually time-consuming process. > For example, the touch controller(i2c-ATML1000:00) on ASUS T100 tablet > takes about 160ms for suspending and 120ms for resuming. This patch > enables i2c-hid device

[PATCH v3 1/2] kbuild, x86: Track generated headers with generated-y

2016-05-23 Thread James Hogan
Track generated header files which aren't already in genhdr-y, alongside generic-y wrappers in the */include/generated/[uapi/]asm/ directories. Currently only x86 generates extra headers in these directories, for the purposes of enumerating system calls for different ABIs, and xen hypercalls. This

[PATCH v3 2/2] kbuild: Remove stale asm-generic wrappers

2016-05-23 Thread James Hogan
When a header file is removed from generic-y (often accompanied by the addition of an arch specific header), the generated wrapper file will persist, and in some cases may still take precedence over the new arch header. For example commit f1fe2d21f4e1 ("MIPS: Add definitions for extended context")

Re: [PATCH] mm: compact: remove watermark check at compact suitable

2016-05-23 Thread Vlastimil Babka
On 05/23/2016 05:20 AM, Chen Feng wrote: There are two paths calling this function. For direct compact, there is no need to check the zone watermark here. For kswapd wakeup kcompactd, since there is a reclaim before this. It makes sense to do compact even the watermark is ok at this time. Hi,

[PATCH V2] vfio: platform: support No-IOMMU mode

2016-05-23 Thread Peng Fan
The vfio No-IOMMU mode was supported by this 'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', but it only support vfio-pci. Using vfio_iommu_group_get/put, but not iommu_group_get/put, the platform devices can be exposed to userspace with CONFIG_VFIO_NOIOMMU and the "enable_unsafe_noiomm

Re: linux-next: Tree for May 17

2016-05-23 Thread Xiong Zhou
hi, On Tue, May 17, 2016 at 1:04 PM, Stephen Rothwell wrote: > Hi all, > > Please do not add any v4.8 destined material to your linux-next included > branches until after v4.7-rc1 has been released. > > Changes since 20160516: > > The vfs tree gained a conflict against the ext4 tree. > > The net-

[PATCH] PCI: pcie: Call pm_runtime_no_callbacks() after device is registered

2016-05-23 Thread Mika Westerberg
Commit 0195d2813547 ("PCI: Add runtime PM support for PCIe ports") added call to pm_runtime_no_callbacks() for each port service device to prevent them exposing unnecessary runtime PM sysfs files. However, that function tries to acquire dev->power.lock which is not yet initialized. This triggers f

[PATCH v8 2/3] SMAF: add CMA allocator

2016-05-23 Thread Benjamin Gaignard
SMAF CMA allocator implement helpers functions to allow SMAF to allocate contiguous memory. match() each if at least one of the attached devices have coherent_dma_mask set to DMA_BIT_MASK(32). For allocation it use dma_alloc_attrs() with DMA_ATTR_WRITE_COMBINE and not dma_alloc_writecombine to be

[PATCH v8 3/3] SMAF: add test secure module

2016-05-23 Thread Benjamin Gaignard
This module is allow testing secure calls of SMAF. Signed-off-by: Benjamin Gaignard --- drivers/smaf/Kconfig | 6 +++ drivers/smaf/Makefile | 1 + drivers/smaf/smaf-testsecure.c | 90 ++ 3 files changed, 97 insertions(+) create mode 1

[PATCH v8 1/3] create SMAF module

2016-05-23 Thread Benjamin Gaignard
Secure Memory Allocation Framework goal is to be able to allocate memory that can be securing. There is so much ways to allocate and securing memory that SMAF doesn't do it by itself but need help of additional modules. To be sure to use the correct allocation method SMAF implement deferred allocat

[PATCH v8 0/3] Secure Memory Allocation Framework

2016-05-23 Thread Benjamin Gaignard
version 8 chanegs: - rework of the structures used within ioctl by adding a version field and padding to be futur proof - rename fake secure moduel to test secure module - fix the various remarks done on the previous patcheset version 7 changes: - rebased on kernel 4.6-rc7 - simplify secur

[PATCH RESEND] printk: add tgid and comm in dump_stack_print_info

2016-05-23 Thread liuhailong
Some threads'name of android is the same in different process. So we need to get the tgid and the comm of thread's group_leader. Signed-off-by: Liu Hailong Signed-off-by: Li Pengcheng Signed-off-by: Chen Feng --- kernel/printk/printk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ker

Re: [RFC PATCH 2/3] mmc: host: omap_hsmmc: Enable ADMA2

2016-05-23 Thread Kishon Vijay Abraham I
Hi Felipe, On Monday 23 May 2016 12:48 PM, Felipe Balbi wrote: > > Hi Kishon, > > Kishon Vijay Abraham I writes: >> Hi Felipe, >> >> On Friday 20 May 2016 12:06 AM, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Tony Lindgren writes: * Peter Ujfalusi [160519 01:10]: > On 05/18/2016 10:30 PM

Re: [PATCH 1/2] Revert "mtd: atmel_nand: Support variable RB_EDGE interrupts"

2016-05-23 Thread Boris Brezillon
On Mon, 9 May 2016 14:51:18 +0800 Wenyou Yang wrote: > This reverts commit 5ddc7bd43ccc ("mtd: atmel_nand: Support variable > RB_EDGE interrupts") > > Because for current SoCs, the RB_EDGE3(i.e. bit 27) of HSMC_SR > register does not exist, the RB_EDGE0 (i.e. bit 24) is the ready/busy > line edg

Re: Mount namespace "dominant peer group"?

2016-05-23 Thread Miklos Szeredi
C is slave of B is slave of A. If a process can see (i.e. has under its root) A and C but not B then for C it will show master:B,propagate_from:A. This piece of information is shown because it can't see the immediate master (B) and so cannot determine the chain of propagation between the mounts i

[PATCH v9 1/2] memory: add Atmel EBI (External Bus Interface) driver

2016-05-23 Thread Boris Brezillon
The EBI (External Bus Interface) is used to access external peripherals (NOR, SRAM, NAND, and other specific devices like ethernet controllers). Each device is assigned a CS line and an address range and can have its own configuration (timings, access mode, bus width, ...). This driver provides a g

[PATCH v9 2/2] memory: atmel-ebi: add DT bindings documentation

2016-05-23 Thread Boris Brezillon
The EBI (External Bus Interface) is used to access external peripherals (NOR, SRAM, NAND, and other specific devices like ethernet controllers). Each device is assigned a CS line and an address range and can have its own configuration (timings, access mode, bus width, ...). This driver provides a g

[PATCH v9 0/2] memory: add Atmel EBI (External Bus Interface) driver

2016-05-23 Thread Boris Brezillon
Hello, This patch series provides support for the EBI bus. The EBI (External Bus Interface) is used to access external peripherals (NOR, SRAM, NAND, and other specific devices like ethernet controllers). Each device is assigned a CS line and an address range and can have its own configuration (ti

Re: [PATCH 13/54] MAINTAINERS: Add file patterns for cris device tree bindings

2016-05-23 Thread Jesper Nilsson
On Sun, May 22, 2016 at 11:05:50AM +0200, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: Mikael Starvik Acked-by: Jesper Nilsson > Cc: linux-cris-ker...@axi

Re: [PATCH 2/2] dma-buf/fence: add fence_array fences v4

2016-05-23 Thread Daniel Vetter
On Fri, May 20, 2016 at 11:47:28AM -0300, Gustavo Padovan wrote: > 2016-05-20 Christian König : > > > From: Gustavo Padovan > > > > struct fence_collection inherits from struct fence and carries a > > collection of fences that needs to be waited together. > > > > It is useful to translate a syn

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-23 Thread Pali Rohár
On Saturday 21 May 2016 14:43:43 Ivaylo Dimitrov wrote: > >diff --git a/include/media/ad5820.h b/include/media/ad5820.h > >new file mode 100644 > >index 000..f5a1565 > >--- /dev/null > >+++ b/include/media/ad5820.h > >@@ -0,0 +1,70 @@ > >+/* > >+ * include/media/ad5820.h > >+ * > >+ * Copyright

Re: [PATCH v2 0/5] Thermal: Support for hardware-tracked trip points

2016-05-23 Thread Caesar Wang
Hello Eduardo & 'Zhang Rui' Do we have the chance to merge this series patches for next kernel? I had picked them up in my github, and tested for a period of time with rockchip inside kernel. Let me know if someone have some suggestions or against opinios. Thanks, -Caesar On 2016年05月03日 17:33

Re: [PATCH 2/2] dma-buf/fence: add fence_array fences v4

2016-05-23 Thread Christian König
Am 20.05.2016 um 16:42 schrieb Chris Wilson: On Fri, May 20, 2016 at 03:56:11PM +0200, Christian König wrote: From: Gustavo Padovan struct fence_collection inherits from struct fence and carries a collection of fences that needs to be waited together. It is useful to translate a sync_file to

Re: [v2 PATCH] mm: move page_ext_init after all struct pages are initialized

2016-05-23 Thread Michal Hocko
On Fri 20-05-16 08:41:09, Shi, Yang wrote: > On 5/20/2016 6:16 AM, Michal Hocko wrote: > > On Thu 19-05-16 15:13:26, Yang Shi wrote: > > [...] > > > diff --git a/init/main.c b/init/main.c > > > index b3c6e36..2075faf 100644 > > > --- a/init/main.c > > > +++ b/init/main.c > > > @@ -606,7 +606,6 @@ a

[PATCH] regulator: mt6397: Constify struct regulator_ops

2016-05-23 Thread Henry Chen
Consitify the structure of regulator operations. Signed-off-by: Henry Chen --- drivers/regulator/mt6397-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/mt6397-regulator.c b/drivers/regulator/mt6397-regulator.c index 17a5b6c..1c45abb 100644

Re: zone_reclaimable() leads to livelock in __alloc_pages_slowpath()

2016-05-23 Thread Michal Hocko
Hi, Tetsuo has already pointed you at my oom detection rework which removes the zone_reclaimable ugliness (btw. one of the top reasons to rework this area) and it is likely to fix your problem. I would still like to understand what happens with your test case because we might want to prepare a stab

Re: [PATCH 23/54] MAINTAINERS: Add file patterns for led device tree bindings

2016-05-23 Thread Jacek Anaszewski
Hi Geert, On 05/22/2016 11:06 AM, Geert Uytterhoeven wrote: Submitters of device tree binding documentation may forget to CC the subsystem maintainer if this is missing. Signed-off-by: Geert Uytterhoeven Cc: Richard Purdie Cc: Jacek Anaszewski Cc: linux-l...@vger.kernel.org --- Please apply

Re: [PATCH 16/54] MAINTAINERS: Add file patterns for drm device tree bindings

2016-05-23 Thread Daniel Vetter
On Sun, May 22, 2016 at 11:05:53AM +0200, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: David Airlie > Cc: dri-de...@lists.freedesktop.org > --- > Please appl

Add support for regulator operation mode of mt6397

2016-05-23 Thread Henry Chen
Some regulators support different operating modes, but there is no suitable property that can pass the opeation mode constraints on runtime at present. This series making the change to specify supported modes as a devicetree list. Consumers can change or get the regulator operation mode by regulat

Re: [RFC PATCH 2/3] mmc: host: omap_hsmmc: Enable ADMA2

2016-05-23 Thread Felipe Balbi
Hi Kishon, Kishon Vijay Abraham I writes: > Hi Felipe, > > On Friday 20 May 2016 12:06 AM, Felipe Balbi wrote: >> >> Hi, >> >> Tony Lindgren writes: >>> * Peter Ujfalusi [160519 01:10]: On 05/18/2016 10:30 PM, Tony Lindgren wrote: > Ideally the adma support would be a separate loada

[PATCH v2 3/3] regulator: mt6397: Add buck change mode regulator interface for mt6397

2016-05-23 Thread Henry Chen
BUCKs of mt6397 have auto mode and pwm mode. User can use regulator interfaces to control modes Signed-off-by: Henry Chen --- drivers/regulator/mt6397-regulator.c | 89 1 file changed, 80 insertions(+), 9 deletions(-) diff --git a/drivers/regulator/mt6397-re

[PATCH v2 1/3] regulator: DT: Add DT property for operation mode configuration

2016-05-23 Thread Henry Chen
Some regulators support their operating mode to be changed by consumers for module specific purpose. Add a DT property to support this. Signed-off-by: Henry Chen --- Documentation/devicetree/bindings/regulator/regulator.txt | 5 + include/dt-bindings/regulator/regulator.h |

[PATCH v2 2/3] regulator: of: Add support for parsing operation mode

2016-05-23 Thread Henry Chen
Some regulators support their operating mode to be changed by consumers for module specific purpose. This patch adds support to parse those properties and fill the regulator constraints so the regulator core can call the regualtor_set_mode to change the modes. Signed-off-by: Henry Chen --- driv

[PATCH v3 02/11] perf record: Prevent reading invalid data in record__mmap_read

2016-05-23 Thread Wang Nan
When record__mmap_read() requires data more than the size of ring buffer, drop those data to avoid accessing invalid memory. This can happen when reading from overwritable ring buffer, which should be avoided. However, check this for robustness. Signed-off-by: Wang Nan Signed-off-by: He Kuang C

[PATCH v3 06/11] perf tools: Don't poll and mmap overwritable events

2016-05-23 Thread Wang Nan
There's no need to receive events from overwritable ring buffer. Instead, perf should make them run background until something happen. This patch makes normal events from overwrite events ignored. Overwritable events must be mapped readonly and backward, so if evlist and evsel is not match (evsel-

[PATCH v3 04/11] perf record: Read from backward ring buffer

2016-05-23 Thread Wang Nan
Introduce rb_find_range() to find start and end position from a backward ring buffer. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 52

[PATCH v3 03/11] perf record: Rename variable to make code clear

2016-05-23 Thread Wang Nan
record__mmap_read() write data from ring buffer into perf.data. 'head' is maintained by kernel, points to the last writtend record. 'old' is maintained by perf, points to the record read in previous round. record__mmap_read() saves data from 'old' to 'head' to perf.data. The names of these variabl

[PATCH v3 09/11] perf record: Toggle overwrite ring buffer for reading

2016-05-23 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: RUNNING --(1)--> DATA_PENDING --(2)--> EMPTY ^ ^ | | |___(disallow)___/| ||

[PATCH v3 07/11] perf tools: Enable overwrite settings

2016-05-23 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v3 10/11] perf tools: Don't warn about out of order event if write_backward is used

2016-05-23 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

[PATCH v3 00/11] perf tools: Support overwritable ring buffer

2016-05-23 Thread Wang Nan
This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and sampl

[PATCH] blk: remove NULL check before freeing functions

2016-05-23 Thread Mike Danese
Coccinelle complains: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. Signed-off-by: Mike Danese --- block/bio-integrity.c | 7 ++- block/

[PATCH v3 11/11] perf tools: Check write_backward during evlist config

2016-05-23 Thread Wang Nan
Before this patch, when using overwritable ring buffer on an old kernel, error message is misleading: # ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a Error: The raw_syscalls:sys_enter event is not supported. This patch output clear error message to tell user his/her kernel is too old: #

<    3   4   5   6   7   8   9   >