Re: [PATCH 2/5] KVM: x86: do not scan IRR twice on APICv vmentry

2016-11-03 Thread Paolo Bonzini
On 03/11/2016 16:03, Radim Krčmář wrote: > 2016-11-03 14:30+0100, Paolo Bonzini: >> On 26/10/2016 21:59, Radim Krčmář wrote: >>> 2016-10-14 20:21+0200, Paolo Bonzini: Calling apic_find_highest_irr results in IRR being scanned twice, once in vmx_sync_pir_from_irr and once in apic_search_

[PATCH v4 3/4] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Tested-by: David Lechner --- drivers/usb/musb/da8xx.c | 46 ++ 1 file changed, 46 insertions(+) dif

[PATCH v4 2/4] usb: musb: core: added helper function for parsing DT

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy This adds the function musb_get_mode() to get the DT property "dr_mode" Signed-off-by: Petr Kulhavy Acked-by: Sergei Shtylyov Signed-off-by: Alexandre Bailon Tested-by: David Lechner Reviewed-by: Kevin Hilman --- drivers/usb/musb/musb_core.c | 19 +++ dri

[PATCH v4 1/4] dt/bindings: Add binding for the DA8xx MUSB driver

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver. Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Acked-by: Rob Herring --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create mo

[PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-03 Thread Alexandre Bailon
This adds the device tree node for the usb otg controller present in the da850 family of SoC's. This also enables the otg usb controller for the lcdk board. Signed-off-by: Alexandre Bailon --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi | 15 +++

Re: [PATCHv2 6/6] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-11-03 Thread Mark Rutland
On Wed, Nov 02, 2016 at 06:05:38PM -0600, Laura Abbott wrote: > On 11/02/2016 05:06 PM, Mark Rutland wrote: > >On Wed, Nov 02, 2016 at 03:00:54PM -0600, Laura Abbott wrote: > >>+CFLAGS_physaddr.o := -DTEXT_OFFSET=$(TEXT_OFFSET) > >>+obj-$(CONFIG_DEBUG_VIRTUAL)+= physaddr.o > >>+

Re: scripts/basic/fixdep: Complete error handling in print_cmdline()

2016-11-03 Thread Michal Marek
Dne 2.11.2016 v 19:30 Masahiro Yamada napsal(a): > 2016-11-03 2:38 GMT+09:00 SF Markus Elfring : > + if (printf("cmd_%s := %s\n\n", target, cmdline) < 10) { Rather than scatter fragile magic numbers, like 10, throughout the code, if you're hell-bent on checking for printf e

Re: [PATCH 2/6] pinctrl: rockchip: add support for rk1108

2016-11-03 Thread Heiko Stübner
Am Donnerstag, 3. November 2016, 20:34:30 schrieb Andy Yan: > Add basic support for rk1108 soc > > Signed-off-by: Andy Yan nice when support for a new soc is that easy in a driver :-) There are two small issues below and with those fixed Reviewed-by: Heiko Stuebner > --- > > drivers/pinctrl

Re: [PATCH 17/25] ia64/topology: Convert to hotplug state machine

2016-11-03 Thread kbuild test robot
-Siewior/fs-buffer-Convert-to-hotplug-state-machine/20161103-230222 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [RFC PATCH 2/3] rtc: Add Amlogic Virtual Wake RTC

2016-11-03 Thread Neil Armstrong
On 11/03/2016 04:36 PM, Mark Rutland wrote: > On Thu, Nov 03, 2016 at 03:29:24PM +0100, Neil Armstrong wrote: >> The Amlogic Meson GX SoCs uses a special register to store the >> time in seconds to wakeup after a system suspend. > > Where does this register live, exactly? What IP block is it part

Re: [Intel-wired-lan] [PATCH] e1000e: free IRQ when the link is up or down

2016-11-03 Thread Baicar, Tyler
On 11/3/2016 2:09 AM, Ruinskiy, Dima wrote: -Original Message- From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On Behalf Of Tyler Baicar Sent: Wednesday, 02 November, 2016 23:08 To: Kirsher, Jeffrey T; intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux

Re: [PATCHv2 5/6] arm64: Use __pa_symbol for _end

2016-11-03 Thread Mark Rutland
On Wed, Nov 02, 2016 at 05:56:42PM -0600, Laura Abbott wrote: > On 11/02/2016 04:52 PM, Mark Rutland wrote: > >On Wed, Nov 02, 2016 at 03:00:53PM -0600, Laura Abbott wrote: > >> > >>__pa_symbol is technically the marco that should be used for kernel > >>symbols. Switch to this as a pre-requisite fo

Re: [PATCH] xattr: Fix setting security xattrs on sockfs

2016-11-03 Thread Casey Schaufler
On 11/3/2016 6:45 AM, Andreas Gruenbacher wrote: > Casey, the first patch broke filesystems that support setxattr for some xattrs > but not security xattrs. Here's an updated patch; could you please test? This patch does not fix the problem. I am back to EOPTNOTSUP. > > Al, does this look mergea

Re: [PATCH 16/25] ia64/salinfo: Convert to hotplug state machine

2016-11-03 Thread kbuild test robot
-Siewior/fs-buffer-Convert-to-hotplug-state-machine/20161103-230222 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-11-03 Thread Miklos Szeredi
On Fri, Oct 28, 2016 at 6:15 PM, Al Viro wrote: > On Tue, Oct 25, 2016 at 09:34:47AM +0200, Miklos Szeredi wrote: >> Current code returns EXDEV when a directory would need to be copied up to >> move. We could copy up the directory tree in this case, but there's >> another solution: point to old l

Re: [PATCH 1/2] procfs: use an enum for possible hidepid values

2016-11-03 Thread Kees Cook
On Thu, Nov 3, 2016 at 9:30 AM, Lafcadio Wluiki wrote: > (Third, rebased submission, since first two submissions yielded no replies.) Hm, I didn't see this series before, for some reason. > Previously, the hidepid parameter was checked by comparing literal > integers 0, 1, 2. Let's add a proper

Re: net/ipv6: null-ptr-deref in inet6_bind

2016-11-03 Thread Andrey Konovalov
Hi Eric, It seems that your patch fixes the issue, I'm not seeing the report any more. Tested-by: Andrey Konovalov Thanks! On Thu, Nov 3, 2016 at 4:39 PM, Eric Dumazet wrote: > On Wed, Nov 2, 2016 at 2:14 PM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while r

Re: [RFC] make kmemleak scan __ro_after_init section (was: Re: [PATCH 0/5] genetlink improvements)

2016-11-03 Thread Johannes Berg
Hi, Sorry for not chipping in earlier - LPC is taking my time. > > > > Looks like we are missing a kfree(family->attrbuf); on error > > > > path, but it is not related to Johannes' recent patches. Actually, I think it *is* related to my patch - I inserted the code there in the wrong place or so.

Re: [PATCH v4 10/10] IB/mlx5: Simplify completion into a wait_event

2016-11-03 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 11:59 PM, Binoy Jayan wrote: > Convert the completion 'mlx5_ib_umr_context:done' to a wait_event as it > just waits for the return value to be filled. This is wrong. Since that "umr_context" variable is on the stack, and you are waiting for it to be fully done, it really

[PATCH 1/2] drm/i915: Remove redundant reprobe in i915_drm_resume

2016-11-03 Thread Lyude
Weine's investigation on benchmarking the suspend/resume process pointed out a lot of the time in suspend/resume is being spent reprobing. While the reprobing process is a lengthy one for good reason, we don't need to hold up the entire suspend/resume process while we wait for it to finish. Luckily

[PATCH 2/2] drm/i915: Reinit polling before hpd when resuming

2016-11-03 Thread Lyude
Now that we don't run the connector reprobing from i915_drm_resume(), we need to make it so we don't have to wait for reprobing to finish so that we actually speed things up. In order to do this, we need to make sure that i915_drm_resume() doesn't get blocked by i915_hpd_poll_init_work() while tryi

Applied "spi: sun6i: Support Allwinner H3 SPI controller" to the spi tree

2016-11-03 Thread Mark Brown
The patch spi: sun6i: Support Allwinner H3 SPI controller has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Li

[PATCH 0/2] Small fixes to speed up resume

2016-11-03 Thread Lyude
Recently David Weinehall has been investigating how we can make the resume process in i915 faster, and poked me to take a look at why we were taking so long while reprobing. As it turns out the main issue is just that we hold up the entire resume process while we reprobe connectors, which isn't rea

Re: [PATCH] usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER

2016-11-03 Thread Bin Liu
On Wed, Nov 02, 2016 at 10:45:59PM +0100, Ladislav Michl wrote: > Hi, > > On Tue, Oct 25, 2016 at 02:02:50PM -0500, David Lechner wrote: > > This suppresses printing the error message "failed to get phy" in the > > kernel log when the error is -EPROBE_DEFER. This prevents usless noise > > in the k

Applied "spi: sun6i: Add binding for Allwinner H3 SPI controller" to the spi tree

2016-11-03 Thread Mark Brown
The patch spi: sun6i: Add binding for Allwinner H3 SPI controller has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and se

Applied "ASoC: bcm: add depends on HAS_DMA" to the asoc tree

2016-11-03 Thread Mark Brown
The patch ASoC: bcm: add depends on HAS_DMA has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during

Re: [PATCH 2/2] rtl8xxxu: Fix for bogus data used to determine macpower

2016-11-03 Thread Larry Finger
On 11/03/2016 03:41 AM, Joe Perches wrote: On Sun, 2016-10-30 at 19:02 -0400, Jes Sorensen wrote: Code is 80 characters wide, and comments are /* */ never the ugly C++ crap. You might look at the recent Linus Torvalds authored commit 5e467652ffef (?printk: re-organize log_output() to be more l

Re: [RFC PATCH 0/3] ARM64: meson-gxbb: Add support for system suspend

2016-11-03 Thread Mark Rutland
Urrgh, I accidentally sent this when trying to save this to my drafts folder; sorry for the half-finished reply. On Thu, Nov 03, 2016 at 03:25:46PM +, Mark Rutland wrote: > On Thu, Nov 03, 2016 at 03:29:22PM +0100, Neil Armstrong wrote: > > Thie patchset is a very experiment patchset to suppor

Re: scripts/basic/bin2c: Complete error handling in main()

2016-11-03 Thread Michal Marek
Dne 2.11.2016 v 19:46 SF Markus Elfring napsal(a): >> I like the code as is. > > Do you really prefer to ignore important return values in the discussed > function? You could define an xprintf() macro that checks if the return value is < 0 and simply calls perror() and exit(1) in such case. Mic

Results: Linux Foundation Technical Advisory Board Election 2016

2016-11-03 Thread Steven Rostedt
The TAB elections are now complete. Thank you to all the candidates for putting their names forward, and a big thank you to Grant Likely, Shuah Khan, Jes Sorensen, H. Peter Anvin, Chris Mason and the Linux Foundation staff who helped handle the election logistics. With 108 ballots cast, the top 5

Re: net/ipv6: null-ptr-deref in inet6_bind

2016-11-03 Thread Eric Dumazet
On Wed, Nov 2, 2016 at 2:14 PM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while running the syzkaller fuzzer: > > BUG: unable to handle kernel NULL pointer dereference at (null) > IP: [< (null)>] (null) > PGD 66b6f067 [ 102.549865] PUD 66c6

Re: [PATCH 2/2] loop: support 4k physical blocksize

2016-11-03 Thread Ming Lei
On Thu, Nov 3, 2016 at 10:26 PM, Christoph Hellwig wrote: >> -figure_loop_size(struct loop_device *lo, loff_t offset, loff_t sizelimit) >> +figure_loop_size(struct loop_device *lo, loff_t offset, loff_t sizelimit, >> + loff_t logical_blocksize) >> { >> loff_t size = get_size(of

Re: [PATCH 1/2] rtl8xxxu: Fix for authentication failure

2016-11-03 Thread Larry Finger
On 11/03/2016 02:10 AM, John Heenan wrote: On 3 November 2016 at 11:00, Larry Finger wrote: On 10/30/2016 05:20 AM, John Heenan wrote: This fix enables the same sequence of init behaviour as the alternative working driver for the wireless rtl8723bu IC at https://github.com/lwfinger/rtl8723bu

Re: [RFC PATCH 2/3] rtc: Add Amlogic Virtual Wake RTC

2016-11-03 Thread Mark Rutland
On Thu, Nov 03, 2016 at 03:29:24PM +0100, Neil Armstrong wrote: > The Amlogic Meson GX SoCs uses a special register to store the > time in seconds to wakeup after a system suspend. Where does this register live, exactly? What IP block is it part of? > In order to be able to reuse the RTC wakealar

Re: [RFC PATCH 0/3] ARM64: meson-gxbb: Add support for system suspend

2016-11-03 Thread Mark Rutland
On Thu, Nov 03, 2016 at 03:29:22PM +0100, Neil Armstrong wrote: > Thie patchset is a very experiment patchset to support the System Suspend > feature of the Amlogic Meson GX SoCs. > > These SoCs implements system suspend using a non-standard PSCI CPU_SUSPEND > parameter to enter system suspend. T

[PATCH v3 0/5] usb: musb: da8xx: Fix few issues

2016-11-03 Thread Alexandre Bailon
Currently, the USB OTG of the da8xx doesn't work. This series intend to fix them. Change in v2: * Fix the error path da8xx_musb_init() Changes in v3: * Remove the host workaround that was not working on every platform * Add a property to the devicetree node of phy to force the phy in a specific

[PATCH v3 4/5] phy: da8xx-usb: Use usb20_force_mode property to configure the phy mode

2016-11-03 Thread Alexandre Bailon
The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the PHY in host or peripheral mode whereas OTG is able to

Re: [PATCH 1/4] sched: move IO scheduling accounting from io_schedule_timeout() to __schedule()

2016-11-03 Thread Pavan Kondeti
Hi Tejun, > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 94732d1..f6baa38 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -3336,11 +3336,17 @@ static void __sched notrace __schedule(bool preempt) > unsigned long *switch_count; > struct pin_cook

Re: [PATCH v2] of, numa: Return NUMA_NO_NODE from disable of_node_to_nid() if nid not possible.

2016-11-03 Thread David Daney
On 11/02/2016 08:37 PM, Rob Herring wrote: On Fri, Oct 28, 2016 at 4:15 PM, David Daney wrote: From: David Daney On arm64 NUMA kernels we can pass "numa=off" on the command line to disable NUMA. A side effect of this is that kmalloc_node() calls to non-zero nodes will crash the system with a

[PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread Alexandre Bailon
The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the PHY in host or peripheral mode whereas OTG is able to

Re: [PATCH] ASoC: sun4i-i2s: Implement capture support

2016-11-03 Thread Mark Brown
On Thu, Nov 03, 2016 at 11:20:48AM +0100, Maxime Ripard wrote: > The i2s driver was only implementing playback for now. Implement capture to > make sure that's not a limitation anymore. This doesn't apply against current code, please check and resend. signature.asc Description: PGP signature

Re: [PATCH v7 3/3] iio: adc: add support for Allwinner SoCs ADC

2016-11-03 Thread Julia Lawall
v4.9-rc2 > v4.9-rc1 v4.9-rc3] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Quentin-Schulz/add-support-for-Allwinner-SoCs-ADC/20161103-182828 > :: branch dat

[PATCH 1/2] procfs: use an enum for possible hidepid values

2016-11-03 Thread Lafcadio Wluiki
(Third, rebased submission, since first two submissions yielded no replies.) Previously, the hidepid parameter was checked by comparing literal integers 0, 1, 2. Let's add a proper enum for this, to make the checking more expressive: 0 → HIDEPID_OFF 1 → HIDEPID_NO_ACCESS 2

[PATCH 2/2] procfs/tasks: add a simple per-task procfs hidepid= field

2016-11-03 Thread Lafcadio Wluiki
(Third, rebased submission, since first two submissions yielded no replies.) This adds a new per-task hidepid= flag that is honored by procfs when presenting /proc to the user, in addition to the existing hidepid= mount option. So far, hidepid= was exclusively a per-pidns setting. Locking down a s

Re: [RFC PATCH 1/3] ARM64: meson: Add Amlogic Meson GX PM Suspend

2016-11-03 Thread Mark Rutland
On Thu, Nov 03, 2016 at 03:29:23PM +0100, Neil Armstrong wrote: > The Amlogic Meson GX SoCs uses a non-standard argument to the > PSCI CPU_SUSPEND call to enter system suspend. > > Implement such call within platform_suspend_ops. While I am very much not happy with platform-specific extensions to

Re: net/netlink: global-out-of-bounds in genl_family_rcv_msg/validate_nla

2016-11-03 Thread Andrey Konovalov
Hi Cong, Yes, the last patch fixes the issue. Tested-by: Andrey Konovalov Thanks! On Thu, Nov 3, 2016 at 6:29 AM, Cong Wang wrote: > On Wed, Nov 2, 2016 at 10:25 PM, Cong Wang wrote: >> On Wed, Nov 2, 2016 at 5:25 PM, Andrey Konovalov >> wrote: >>> Hi, >>> >>> I've got the following error

[PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread Alexandre Bailon
The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the PHY in host or peripheral mode whereas OTG is able to

[PATCH v3 1/5] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-03 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 17 - 1 file changed, 8 insert

[PATCH v3 2/5] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-03 Thread Alexandre Bailon
If we configure the da8xx OTG phy in OTG mode, neither device or host mode will work. That is because the PHY is not able to detect and notify the driver that value of ID pin changed. To work despite this hardware limitation, the da8xx glue implement a workaround. But to work, the workaround requir

Re: [PATCH v3 04/16] scsi: Unify interfaces of fc_bsg_jobdone and bsg_job_done

2016-11-03 Thread Christoph Hellwig
On Thu, Oct 13, 2016 at 05:00:20PM +0200, Johannes Thumshirn wrote: > Unify the interfaces of fc_bsg_jobdone and bsg_job_done. This will reduce the > diff when moving from 'struct fc_bsg_job' to a plain 'struct bsg_job' later > on. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reine

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-03 Thread Christoph Hellwig
On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: > > Hm, still behaves for me like I reported for v2: > > http://marc.info/?l=linux-scsi&m=147637177902937&w=2 > > Hi Steffen, > > Can you please try the following o

Re: [PATCH v3 03/16] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-11-03 Thread Christoph Hellwig
On Thu, Oct 13, 2016 at 05:00:19PM +0200, Johannes Thumshirn wrote: > Export fc_bsg_jobdone so drivers can use it directly instead of doing > the round-trip via struct fc_bsg_job::job_done() and use it in the LLDDs. > > As we've converted all LLDDs over to use fc_bsg_jobdone() directly, > we can r

Re: [PATCH v3 01/16] scsi: Get rid of struct fc_bsg_buffer

2016-11-03 Thread Christoph Hellwig
On Thu, Oct 13, 2016 at 05:00:17PM +0200, Johannes Thumshirn wrote: > struct fc_bsg_buffer is just a clone of struct bsg_buffer from bsg-lib, > so use this one instead. > > Signed-off-by: Johannes Thumshirn > Reviewed-by: Hannes Reinecke Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH RESEND] media: omap3isp: Use dma_request_chan() to requesting DMA channel

2016-11-03 Thread Laurent Pinchart
Hi Peter, On Thursday 03 Nov 2016 15:14:19 Peter Ujfalusi wrote: > On 11/03/2016 11:23 AM, Peter Ujfalusi wrote: > > On 11/02/2016 11:19 PM, Laurent Pinchart wrote: > >>> On Wednesday 02 Nov 2016 14:39:59 Peter Ujfalusi wrote: > > With the new dma_request_chan() the client driver does not need

Re: [PATCH] userns: suppress kmemleak message

2016-11-03 Thread Jakub Kicinski
On Thu, 03 Nov 2016 09:54:25 -0500, Eric W. Biederman wrote: > Dmitry Torokhov writes: > > > We do not ever intend to unregister "user" sysctl table, unfortunately > > it leads kmemleak to believe that we are leaking memory: > > Sounds like an issue with kmemleak because we do retain reference

Re: [RFC] v4l2 support for thermopile devices

2016-11-03 Thread Luca Barbato
On 03/11/2016 14:21, Attila Kinali wrote: > On Wed, 2 Nov 2016 23:10:41 -0700 > Matt Ranostay wrote: > >> >> So does anyone know of any software that is using V4L2_PIX_FMT_Y12 >> currently? Want to test my driver but seems there isn't anything that >> uses that format (ffmpeg, mplayer, etc). >> >

Re: [PATCH RESEND] media: omap3isp: Use dma_request_chan() to requesting DMA channel

2016-11-03 Thread Laurent Pinchart
Hi Peter, On Thursday 03 Nov 2016 11:23:50 Peter Ujfalusi wrote: > On 11/02/2016 11:19 PM, Laurent Pinchart wrote: > > On Wednesday 02 Nov 2016 14:39:59 Peter Ujfalusi wrote: > >> With the new dma_request_chan() the client driver does not need to look > >> for the DMA resource and it does not need

[PATCH v2] arc: Implement arch-specific dma_map_ops.mmap

2016-11-03 Thread Alexey Brodkin
We used to use generic implementation of dma_map_ops.mmap which is dma_common_mmap() but that only worked for simpler cached mappings when vaddr = paddr. If a driver requests uncached DMA buffer kernel maps it to virtual address so that MMU gets involved and page uncached status takes into account

Re: [PATCH 2/5] KVM: x86: do not scan IRR twice on APICv vmentry

2016-11-03 Thread Radim Krčmář
2016-11-03 14:30+0100, Paolo Bonzini: > On 26/10/2016 21:59, Radim Krčmář wrote: >> 2016-10-14 20:21+0200, Paolo Bonzini: >>> Calling apic_find_highest_irr results in IRR being scanned twice, >>> once in vmx_sync_pir_from_irr and once in apic_search_irr. Change >>> sync_pir_from_irr to do the RVI

RE: [mm PATCH v2 01/26] swiotlb: Drop unused functions swiotlb_map_sg and swiotlb_unmap_sg

2016-11-03 Thread Duyck, Alexander H
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Thursday, November 3, 2016 7:46 AM > To: Konrad Rzeszutek Wilk > Cc: Christoph Hellwig ; Duyck, Alexander H > ; linux...@kvack.org; akpm@linux- > foundation.org; net...@vger.kernel.org; linux-kernel@vger.ker

[PATCH 02/25] kernel/printk: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: Andrew Morton Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/cpuhotplug.h | 1 + kernel/printk/printk.c | 27 --- 2 files changed, 13 insertions(+), 15 deletions(-) diff --

[PATCH 25/25] x86/mcheck: Move CPU_DEAD to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
This moves the last piece of the old hotplug notifier code in MCE to the new hotplug state machine. Cc: Tony Luck Cc: Borislav Petkov Cc: linux-e...@vger.kernel.org Cc: x...@kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/mcheck/mce.c

Re: [PATCH 1/4] block: add scalable completion tracking of requests

2016-11-03 Thread Ming Lei
On Thu, Nov 3, 2016 at 9:38 PM, Jens Axboe wrote: > On 11/03/2016 05:17 AM, Ming Lei wrote: >>> >>> diff --git a/block/blk-core.c b/block/blk-core.c >>> index 0bfaa54d3e9f..ca77c725b4e5 100644 >>> --- a/block/blk-core.c >>> +++ b/block/blk-core.c >>> @@ -2462,6 +2462,8 @@ void blk_start_request(st

Re: [PATCH v8: 3/4] x86/cpufeature: Add PHIR3MWAIT to CPU features

2016-11-03 Thread Borislav Petkov
On Tue, Nov 01, 2016 at 11:14:49AM +0100, Grzegorz Andrejczuk wrote: > Add Intel Xeon Phi x200 (KnightsLanding) cpu feature - ring 3 monitor/mwait @tip guys: s/cpu/CPU/, s!monitor/mwait!MONITOR/MWAIT! and add a fullstop when committing. > Signed-off-by: Grzegorz Andrejczuk > --- > arch/x86/inc

Re: [PATCH] userns: suppress kmemleak message

2016-11-03 Thread Eric W. Biederman
Dmitry Torokhov writes: > We do not ever intend to unregister "user" sysctl table, unfortunately > it leads kmemleak to believe that we are leaking memory: Sounds like an issue with kmemleak because we do retain references. So no we don't intend to unregister the table. As for the patch. Nack

[PATCH 01/25] fs/buffer: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: Alexander Viro Cc: linux-fsde...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- fs/buffer.c| 16 ++-- include/linux/cpuhotplug.h | 1 + 2 files changed, 7 insertions(+), 1

[PATCH 05/25] lib/radix-tree: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: Andrew Morton Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/cpuhotplug.h | 1 + lib/radix-tree.c | 25 - 2 files changed, 13 insertions(+), 13 deletions(-) diff --gi

Re: [PATCH v8: 1/4] x86/msr: Add MSR_MISC_FEATURE_ENABLES and PHIR3MWAIT bit

2016-11-03 Thread Borislav Petkov
On Tue, Nov 01, 2016 at 11:14:47AM +0100, Grzegorz Andrejczuk wrote: > Intel Xeon Phi x200 (codenamed Knights Landing) allows to enable > MONITOR and MWAIT instructions outside of ring 0. > > The feature is controlled by MSR MISC_FEATURE_ENABLES (0x140). > Setting bit 1 of this register enables it

[PATCH 04/25] lib/percpu_counter: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/cpuhotplug.h | 1 + lib/percpu_counter.c | 25 ++--- 2 files changed

[PATCH 03/25] mm/memcg: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: Johannes Weiner Cc: Michal Hocko Cc: cgro...@vger.kernel.org Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/cpuhotplug.h | 1 + mm/memcontrol.c| 24 -

[PATCH 07/25] mm/vmscan: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- mm/vmscan.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 76fda226

cpu hotplug: convert more drivers (batch #4)

2016-11-03 Thread Sebastian Andrzej Siewior
Another small batch of drivers converted to the new hotplug state engine. The whole series is also available at git://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/hotplug-staging.git smp/hotplug on top of v4.9-rc3. Sebastian

[PATCH 13/25] drivers base/topology: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. The removal of the files happens now in the prepare down stage as there is no reason to keep them around until the cpu has actually died. Cc: Greg Kroah-Hartman Signed-off-by: Sebastian

[PATCH 16/25] ia64/salinfo: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- arch/ia64/kernel/salinfo.c | 83 +++

[PATCH 14/25] ia64/err-inject: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. The removal of the files happens now in the prepare down stage as there is no reason to keep them around until the cpu has actually died. Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vge

[PATCH 15/25] ia64/palinfo: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. The removal of the files happens now in the prepare down stage as there is no reason to keep them around until the cpu has actually died. Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vge

[PATCH 10/25] s390/smp: Make cpu notifier symetric

2016-11-03 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner There is no reason to remove the sysfs cpu files when the CPU is dead, they can be removed when the cpu is prepared to go down. Doing it at DOWN_PREPARE allows us to convert it to a symetric hotplug state in the next step. Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: lin

[PATCH 09/25] net/flowcache: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Use multi state support to avoid custom list handling for the multiple instances. Cc: "David S. Miller" Cc: Steffen Klassert Cc: Herbert Xu Cc: net...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- incl

[PATCH 19/25] x86/mcheck: Explicit cleanup on failure in mce_amd

2016-11-03 Thread Sebastian Andrzej Siewior
If the ONLINE callback fails, the driver does not any clean up right away instead it waits to get to the DEAD stage to do it. Yes, it waits. Since we don't pass the error code back to the caller, no one knows. Do the clean up right away so it does not look like a leak. Cc: Tony Luck Cc: Borislav

[PATCH 17/25] ia64/topology: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- arch/ia64/kernel/topology.c | 55 +++---

[PATCH 21/25] x86/mcheck: Split threshold_cpu_callback into two callbacks

2016-11-03 Thread Sebastian Andrzej Siewior
The threshold_cpu_callback callbacks looks like one of the notifier and its arguments are almost the same. Split this out and have one ONLINE and one DEAD callback. This will come handy later once the main code gets changed to use the callback mechanism. Also, handle threshold_cpu_callback_online()

[PATCH 22/25] x86/mcheck: Do the init in one place

2016-11-03 Thread Sebastian Andrzej Siewior
Part of the init (memory allocation and so on) is done in mcheck_cpu_init(). While moving the the allocation to mcheck_init_device() (where the hotplug calls are initialized) it becomes necessary to move the callback (mcheck_cpu_init()), too. The callback is now removed from identify_cpu() and reg

[PATCH 11/25] s390/smp: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
cpuhp_setup_state() invokes the startup callback on all online cpus with the proper protection, so we can remove the cpu hotplug protection from the init function and the creation of the per cpu files for online cpus in smp_add_present_cpu(). smp_add_present_cpu() is called also called from __smp_r

[PATCH 18/25] x86/mcheck: Move threshold_create_device()

2016-11-03 Thread Sebastian Andrzej Siewior
Move the threshold_create_device() so it can use threshold_remove_device() without a a declaration. Cc: Tony Luck Cc: Borislav Petkov Cc: linux-e...@vger.kernel.org Cc: x...@kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/mcheck/mce_a

[PATCH 23/25] x86/mcheck: Make CPU_DOWN_PREPARE the counter part of CPU_STARTING

2016-11-03 Thread Sebastian Andrzej Siewior
The previous patch moved mcheck_cpu_init() out of identify_cpu() and put it as the first CPU hotplug callback which is invoked on the target CPU during bring up. It enables MCE and starts the MCE timer. If a CPU goes down then those two things have to be reverted and this happens currently in CPU_D

[PATCH 20/25] x86/mcheck: Be prepared for a rollback back to the ONLINE state

2016-11-03 Thread Sebastian Andrzej Siewior
If we try a CPU down and fail in the middle then we roll back to the online state. This means we would perform CPU_ONLINE() without invoking CPU_DEAD() for the cleanup of what was allocated in CPU_ONLINE. Be prepared for this and don't allocate the struct if we have it already. Cc: Tony Luck Cc:

[PATCH 24/25] x86/mcheck: Move CPU_ONLINE to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
This callback is still partly asymmetrical since the counterpart of mce_device_create is done in CPU_DEAD. On failure we don't undo mce_device_create() doing _but_ it will happen once we move CPU_DEAD to the state machine. Cc: Tony Luck Cc: Borislav Petkov Cc: linux-e...@vger.kernel.org Cc: x..

[PATCH 06/25] mm/page_alloc: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: linux...@kvack.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/cpuhotplug.h | 1 + mm/page_alloc.c| 49 +++--- 2 files changed, 26 insertions(+), 2

[PATCH 12/25] drivers base/cacheinfo: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine and let the core invoke the callbacks on the already online CPUs. No functional change. Cc: Greg Kroah-Hartman Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- drivers/base/cacheinfo.c | 57 +

[PATCH 08/25] net/dev: Convert to hotplug state machine

2016-11-03 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. Cc: "David S. Miller" Cc: net...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner --- include/linux/cpuhotplug.h | 1 + net/core/dev.c | 16 ++-- 2 files changed, 7 insertions(+), 10 de

Re: [PATCH v7 3/3] iio: adc: add support for Allwinner SoCs ADC

2016-11-03 Thread Lee Jones
On Thu, 03 Nov 2016, Quentin Schulz wrote: > The Allwinner SoCs all have an ADC that can also act as a touchscreen > controller and a thermal sensor. This patch adds the ADC driver which is > based on the MFD for the same SoCs ADC. > > This also registers the thermal adc channel in the iio map ar

Re: [mm PATCH v2 01/26] swiotlb: Drop unused functions swiotlb_map_sg and swiotlb_unmap_sg

2016-11-03 Thread Christoph Hellwig
On Thu, Nov 03, 2016 at 10:29:52AM -0400, Konrad Rzeszutek Wilk wrote: > Somehow I thought you wanted to put them through your tree (which > is why I acked them). > > I can take them and also the first couple of Alexander through > my tree. Or if it makes it simpler - they can go through the -mm t

Re: [PATCHv3 1/4] dt-bindings: mfd: Add Altera Arria10 SR Monitor

2016-11-03 Thread Lee Jones
On Wed, 02 Nov 2016, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the Arria10 DevKit System Resource Chip register and state > monitoring module to the MFD. > > Signed-off-by: Thor Thayer > --- > Note: This needs to be applied to the bindings document that > was Acked & App

Re: [PATCH] clk: rockchip: fix some clocks' name to be more standard style

2016-11-03 Thread Heiko Stübner
Am Donnerstag, 3. November 2016, 16:52:48 schrieb Shawn Lin: > On 2016/11/2 15:04, Jianqun Xu wrote: > > Fix aclk_emmcgrf to aclk_emmc_grf, and fix aclk_emmccore to be > > aclk_emmc_core. > > What is the standard style should be? > > TRM uses aclk_emmccore but not aclk_emmc_core, so should it be

[RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-03 Thread John Garry
The following patch introduces an annoying WARN when a device is removed from the SAS topology: [SCSI] libsas: prevent domain rediscovery competing with ata error handling A sample WARN is as follows: [ 236.842227] WARNING: CPU: 7 PID: 1520 at fs/sysfs/group.c:237 sysfs_remove_group+0x90/0x98 [

Re: [mm PATCH v2 01/26] swiotlb: Drop unused functions swiotlb_map_sg and swiotlb_unmap_sg

2016-11-03 Thread Konrad Rzeszutek Wilk
On Thu, Nov 03, 2016 at 07:14:46AM -0700, Christoph Hellwig wrote: > On Wed, Nov 02, 2016 at 07:12:31AM -0400, Alexander Duyck wrote: > > There are no users for swiotlb_map_sg or swiotlb_unmap_sg so we might as > > well just drop them. > > FYI, I sent the same patch already on Sep, 11 and Konrad a

[RFC PATCH 2/3] rtc: Add Amlogic Virtual Wake RTC

2016-11-03 Thread Neil Armstrong
The Amlogic Meson GX SoCs uses a special register to store the time in seconds to wakeup after a system suspend. In order to be able to reuse the RTC wakealarm feature, this driver implements a fake RTC device which uses the system time to deduce a suspend delay. Signed-off-by: Neil Armstrong --

[RFC PATCH 0/3] ARM64: meson-gxbb: Add support for system suspend

2016-11-03 Thread Neil Armstrong
Thie patchset is a very experiment patchset to support the System Suspend feature of the Amlogic Meson GX SoCs. These SoCs implements system suspend using a non-standard PSCI CPU_SUSPEND parameter to enter system suspend. A small driver is added to properly fill the platform_suspend_ops and make t

[RFC PATCH 3/3] ARM64: dts: meson-gxbb: Add support for PM and Virtual RTC

2016-11-03 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 2d69a3b..6c08d21 100644 --- a/arch/arm64/boot/dts/amlogic/mes

[RFC PATCH 1/3] ARM64: meson: Add Amlogic Meson GX PM Suspend

2016-11-03 Thread Neil Armstrong
The Amlogic Meson GX SoCs uses a non-standard argument to the PSCI CPU_SUSPEND call to enter system suspend. Implement such call within platform_suspend_ops. Signed-off-by: Neil Armstrong --- drivers/firmware/meson/Kconfig | 6 +++ drivers/firmware/meson/Makefile | 1 + drivers/fir

<    1   2   3   4   5   6   7   8   >