Re: [PATCH net-next V4 2/2] intel: ixgbevf: Support Windows hosts (Hyper-V)

2016-04-19 Thread Alexander Duyck
On Tue, Apr 19, 2016 at 1:12 PM, K. Y. Srinivasan wrote: > On Hyper-V, the VF/PF communication is a via software mediated path > as opposed to the hardware mailbox. Make the necessary > adjustments to support Hyper-V. > > Signed-off-by: K. Y. Srinivasan > --- > V2: Addressed most of the c

Re: [PATCH 01/16] devpts: Attempting to get it right

2016-04-19 Thread Eric W. Biederman
"H. Peter Anvin" writes: > It's really too bad we can't just use follow_link :-/ Well follow_link is actually impossible to use as it doesn't exist anymore. The routine now is get_link. ;-) That said just to be certain of where everything stands I took a look to verify that we can't. I got ab

Re: linux-next: Tree for Apr 19 (waketorture.c)

2016-04-19 Thread Paul E. McKenney
On Tue, Apr 19, 2016 at 10:55:21AM -0700, Randy Dunlap wrote: > On 04/19/16 09:56, Paul E. McKenney wrote: > > On Tue, Apr 19, 2016 at 09:20:24AM -0700, Randy Dunlap wrote: > >> On 04/18/16 22:13, Stephen Rothwell wrote: > >>> Hi all, > >>> > >>> Changes since 20160418: > >>> > >> > >> on x86_64: >

coccinelle: bool if (foo) return true; else return false;

2016-04-19 Thread Joe Perches
There's ~150 of these in the kernel. Maybe there's use for this conversion to be added to scripts/coccinelle/misc/boolreturn.cocci or in a separate file. $ cat booltruefalse.cocci @@ identifier fn; expression e; typedef bool; symbol true; symbol false; @@ bool fn ( ... ) { <... - if (e) re

Re: [PATCH 14/16] vfs: Implement mount_super_once

2016-04-19 Thread Eric W. Biederman
"H. Peter Anvin" writes: >>- Support for reserving ptys for the system devpts instance using >> /proc/sys/kernel/pty/reserve needs to be removed. >> >>Eric > > pty capping should probably be a devpts mount option There is a max option so pty capping is a per devpts option. > , and perhaps a >

Re: coccinelle: bool if (foo) return true; else return false;

2016-04-19 Thread Julia Lawall
On Tue, 19 Apr 2016, Joe Perches wrote: > There's ~150 of these in the kernel. > > Maybe there's use for this conversion to be added > to scripts/coccinelle/misc/boolreturn.cocci or in > a separate file. > > $ cat booltruefalse.cocci > @@ > identifier fn; > expression e; > typedef bool; > symb

Re: [PATCH 1/2] mmc: core: Improve marking broken HPI through devicetree

2016-04-19 Thread Ulf Hansson
[...] > Well I think we still have a very small sample size, the sun4i, sun5i and > sun7i boards (all using the same mmc controller afaik) have the broken-hpi > set, the sun6i and sun8i seem to be working fine (different mmc > controller?). > I'm not so sure it is an eMMC specific problem though.

Re: Does anyone care about a race free ptsname?

2016-04-19 Thread H. Peter Anvin
On April 19, 2016 11:44:40 AM PDT, ebied...@xmission.com wrote: >Linus Torvalds writes: > >> What this does is get rid of the horrible notion of having that >> >> struct inode *ptmx_inode >> >> be the interface between the pty code and devpts. By de-emphasizing >the >> ptmx inode, a lot of th

Re: [PATCH 14/16] vfs: Implement mount_super_once

2016-04-19 Thread H. Peter Anvin
On April 19, 2016 12:03:47 PM PDT, ebied...@xmission.com wrote: >"H. Peter Anvin" writes: > >>>- Support for reserving ptys for the system devpts instance using >>> /proc/sys/kernel/pty/reserve needs to be removed. >>> >>>Eric >> >> pty capping should probably be a devpts mount option > >There is

Re: [PATCH 14/16] vfs: Implement mount_super_once

2016-04-19 Thread H. Peter Anvin
On April 19, 2016 12:25:03 PM PDT, "H. Peter Anvin" wrote: >On April 19, 2016 12:03:47 PM PDT, ebied...@xmission.com wrote: >>"H. Peter Anvin" writes: >> - Support for reserving ptys for the system devpts instance using /proc/sys/kernel/pty/reserve needs to be removed. Eric >>>

Re: linux-next: Tree for Apr 19 (waketorture.c)

2016-04-19 Thread Randy Dunlap
On 04/19/16 12:05, Paul E. McKenney wrote: > On Tue, Apr 19, 2016 at 10:55:21AM -0700, Randy Dunlap wrote: >> On 04/19/16 09:56, Paul E. McKenney wrote: >>> On Tue, Apr 19, 2016 at 09:20:24AM -0700, Randy Dunlap wrote: On 04/18/16 22:13, Stephen Rothwell wrote: > Hi all, > > Change

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Steven Rostedt
On Tue, 19 Apr 2016 11:57:32 -0700 "H. Peter Anvin" wrote: > Also, I understand there is one of these bitmaps per ring buffer, and > the ring buffer is in the tens of megabytes. Right, there's only one bitmap per tracing instance, which in most cases is just one (I know of people who make more).

Re: [RESEND PATCH v2 3/5] security: Introduce security_settime64()

2016-04-19 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > On Mon, Apr 18, 2016 at 9:54 AM, John Stultz wrote: > > On Thu, Apr 7, 2016 at 11:02 PM, Baolin Wang wrote: > >> security_settime() uses a timespec, which is not year 2038 safe > >> on 32bit systems. Thus this patch introduces the security_settime64()

Re: linux-next: Tree for Apr 19 (waketorture.c)

2016-04-19 Thread Paul E. McKenney
On Tue, Apr 19, 2016 at 12:34:10PM -0700, Randy Dunlap wrote: > On 04/19/16 12:05, Paul E. McKenney wrote: > > On Tue, Apr 19, 2016 at 10:55:21AM -0700, Randy Dunlap wrote: > >> On 04/19/16 09:56, Paul E. McKenney wrote: > >>> On Tue, Apr 19, 2016 at 09:20:24AM -0700, Randy Dunlap wrote: > On

[PATCH 1/2] i2c: s3c2410: Print errno code in error logs

2016-04-19 Thread Javier Martinez Canillas
The driver not always prints the error code in case of a failure but this information can be very useful for debugging. So let's print if available. Signed-off-by: Javier Martinez Canillas --- Hello, This patch and 2/2 were only build tested because I don't have access to a board using this IP

[PATCH 2/2] i2c: s3c2410: Check clk_prepare_enable() return value

2016-04-19 Thread Javier Martinez Canillas
The clk_prepare_enable() function can fail so check the return value and propagate the error in case of a failure. Signed-off-by: Javier Martinez Canillas --- drivers/i2c/busses/i2c-s3c2410.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-s3c24

Re: [PATCH v6 00/17] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2016-04-19 Thread Boris Brezillon
On Tue, 19 Apr 2016 15:46:19 +0300 Roger Quadros wrote: > > After all the changes we discussed in [1] I was able to test > nand/next-with-gpmc-rework > and it worked fine. > > [1] - > http://thread.gmane.org/gmane.comp.hardware.netbook.arm.sunxi/22596/focus=22936 > > I'd be happy to test the

Re: [PATCH] ARM: dts: exynos: Remove unsupported s2mps11 regulator bindings from Exynos5420 boards

2016-04-19 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/19/2016 01:46 AM, Krzysztof Kozlowski wrote: > On 04/18/2016 06:52 PM, Javier Martinez Canillas wrote: [snip] >> >> On a related note, the s5m8767 regulator driver parses similar DT properties >> ("s5m8767,pmic-buck-ramp-delay", "s5m8767,pmic-buck2-ramp-enable", etc) that

Re: [PATCH v2] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-04-19 Thread Ashwin Chaugule
+ Ryan Hi Al, On 18 April 2016 at 20:11, Al Stone wrote: > When CPPC is being used by ACPI on arm64, user space tools such as > cpupower report CPU frequency values from sysfs that are incorrect. > > What the driver was doing was reporting the values given by ACPI tables > in whatever scale was

Re: [PATCH RFC] fixup! virtio: convert to use DMA api

2016-04-19 Thread Michael S. Tsirkin
On Tue, Apr 19, 2016 at 11:01:38AM -0700, Andy Lutomirski wrote: > On Tue, Apr 19, 2016 at 10:49 AM, Michael S. Tsirkin wrote: > > On Tue, Apr 19, 2016 at 12:26:44PM -0400, David Woodhouse wrote: > >> On Tue, 2016-04-19 at 19:20 +0300, Michael S. Tsirkin wrote: > >> > > >> > > I thought that PLATF

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2016, at 3:41 PM, rostedt rost...@goodmis.org wrote: > On Tue, 19 Apr 2016 11:57:32 -0700 > "H. Peter Anvin" wrote: > >> Also, I understand there is one of these bitmaps per ring buffer, and >> the ring buffer is in the tens of megabytes. > > Right, there's only one bitmap per

Re: [PATCH RFC] fixup! virtio: convert to use DMA api

2016-04-19 Thread Andy Lutomirski
On Tue, Apr 19, 2016 at 1:16 PM, Michael S. Tsirkin wrote: > On Tue, Apr 19, 2016 at 11:01:38AM -0700, Andy Lutomirski wrote: >> On Tue, Apr 19, 2016 at 10:49 AM, Michael S. Tsirkin wrote: >> > On Tue, Apr 19, 2016 at 12:26:44PM -0400, David Woodhouse wrote: >> >> On Tue, 2016-04-19 at 19:20 +030

Re: [RFC][PATCH 3/4] tracing: Add infrastructure to allow set_event_pid to follow children

2016-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2016, at 1:13 PM, rostedt rost...@goodmis.org wrote: > On Tue, 19 Apr 2016 16:55:11 + (UTC) > Mathieu Desnoyers wrote: > >> - On Apr 19, 2016, at 10:34 AM, rostedt rost...@goodmis.org wrote: >> >> > From: Steven Rostedt >> > >> > Add the infrastructure needed to have

[PATCH 4.6] mm: wake kcompactd before kswapd's short sleep

2016-04-19 Thread Vlastimil Babka
When kswapd goes to sleep it checks if the node is balanced and at first it sleeps only for HZ/10 time, then rechecks if the node is still balanced and nobody has woken it during the initial sleep. Only then it goes fully sleep until an allocation slowpath wakes it up again. For higher-order alloc

[PATCH] drm/vc4: Kick out the simplefb framebuffer before we set up KMS.

2016-04-19 Thread Eric Anholt
If we don't, then simplefb stays loaded on /dev/fb0 even though scanout isn't happening from simplefb's memory area any more, and you end up with no console. Signed-off-by: Eric Anholt --- Dave: It would be nice if I could merge this patch through bcm2835-dt-next, where I'm trying to get the VC4

Re: [PATCH] mailbox: pcc: Support HW-Reduced Communication Subspace Type 2

2016-04-19 Thread Hoan Tran
Hi Alexey, On Tue, Apr 19, 2016 at 12:02 PM, Alexey Klimov wrote: > Hi Hoan, > > On Tue, Apr 5, 2016 at 11:14 PM, hotran wrote: >> ACPI 6.1 has a HW-Reduced Communication Subspace Type 2 intended for >> use on HW-Reduce ACPI Platform, which requires read-modify-write sequence >> to acknowledge

[PATCH v4 2/3] drm/i915/vlv: Reset the ADPA in vlv_display_power_well_init()

2016-04-19 Thread Lyude
While VGA hotplugging worked(ish) before, it looks like that was mainly because we'd unintentionally enable it in valleyview_crt_detect_hotplug() when we did a force trigger. This doesn't work reliably enough because whenever the display powerwell on vlv gets disabled, the values set in VLV_ADPA ge

[PATCH v10 RESEND 3/3] staging/android: refactor SYNC IOCTLs

2016-04-19 Thread Gustavo Padovan
From: Gustavo Padovan Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid future API breaks and optimize buffer allocation. Now num_fences can be filled by the caller to inform how many fences it wants to retrieve from the kernel. If the num_fences passed is greater than ze

[PATCH v10 RESEND 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-19 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: Does anyone care about a race free ptsname?

2016-04-19 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Linus Torvalds writes: > > > What this does is get rid of the horrible notion of having that > > > > struct inode *ptmx_inode > > > > be the interface between the pty code and devpts. By de-emphasizing the > > ptmx inode, a lot of things a

[PATCH v10 RESEND 2/3] kernel.h: add u64_to_user_ptr()

2016-04-19 Thread Gustavo Padovan
From: Gustavo Padovan This function had copies in 3 different files. Unify them in kernel.h. Cc: Joe Perches Cc: Andrew Morton Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 11 +++ drivers/gpu/drm

Re: Does anyone care about a race free ptsname?

2016-04-19 Thread Eric W. Biederman
"H. Peter Anvin" writes: > We could add another ioctl for that purpose of we need to. Perhaps an > ioctl which returns a file descriptor to the slave device? > > However, since we are now defining ptmx to explicitly look up pts/ by > name it seems like /dev/ptmx -> /dev/pts/# is true by definiti

[PATCH] fs: reintroduce freezing nesting

2016-04-19 Thread Florian Margaine
The behavior was removed in 18e9e5104fcd9a973ffe3eed3816c87f2a1b6cd2 noting that this was a better idea than using a counter. However, this behavior is actually wanted if multiple applications want to freeze concurrently while remaining non-racy. This patch reintroduces this feature by using a cou

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Steven Rostedt
On Tue, 19 Apr 2016 20:17:29 + (UTC) Mathieu Desnoyers wrote: > Ah indeed, since there is a hard limit to 4194304, that makes the > worse case bitmap 512k. Yep. > > We could argue that given a sparse dataset in the PID table (typical > in our use-cases), a small hash table would have bett

Re: [PATCH RFC] fixup! virtio: convert to use DMA api

2016-04-19 Thread Michael S. Tsirkin
On Tue, Apr 19, 2016 at 01:27:29PM -0700, Andy Lutomirski wrote: > On Tue, Apr 19, 2016 at 1:16 PM, Michael S. Tsirkin wrote: > > On Tue, Apr 19, 2016 at 11:01:38AM -0700, Andy Lutomirski wrote: > >> On Tue, Apr 19, 2016 at 10:49 AM, Michael S. Tsirkin > >> wrote: > >> > On Tue, Apr 19, 2016 at

Re: Does anyone care about a race free ptsname?

2016-04-19 Thread H. Peter Anvin
On 04/19/2016 01:32 PM, Eric W. Biederman wrote: > > The challenge came in operations such as granpt. Where you are passed > in a ptmx file descriptor from who knows where, and you pass it on > to applications such as pt_chown which run with elevatated privileged. > > As the information is avail

Re: [PATCH] bcache: bch_writeback_thread() is not freezable

2016-04-19 Thread Eric Wheeler
On Tue, 19 Apr 2016, Jiri Kosina wrote: > From: Jiri Kosina > > bch_writeback_thread() is calling try_to_freeze(), but that's just an > expensive no-op given the fact that the thread is not marked freezable. > > I/O helper kthreads, exactly such as the bcache writeback thread, actually > sho

Re: [PATCH v2 1/2] clk: bcm2835: Fix compiler warnings on 64-bit builds

2016-04-19 Thread Stephen Boyd
On 04/13, Eric Anholt wrote: > Signed-off-by: Eric Anholt > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2 2/2] clk: bcm2835: Fix PLL poweron

2016-04-19 Thread Stephen Boyd
On 04/13, Eric Anholt wrote: > In poweroff, we set the reset bit and the power down bit, but only > managed to unset the reset bit for poweron. This meant that if HDMI > did -EPROBE_DEFER after it had grabbed its clocks, we'd power down the > PLLH (that had been on at boot time) and never recover.

Re: [PATCH RFC] fixup! virtio: convert to use DMA api

2016-04-19 Thread Andy Lutomirski
On Tue, Apr 19, 2016 at 1:54 PM, Michael S. Tsirkin wrote: > On Tue, Apr 19, 2016 at 01:27:29PM -0700, Andy Lutomirski wrote: >> On Tue, Apr 19, 2016 at 1:16 PM, Michael S. Tsirkin wrote: >> > On Tue, Apr 19, 2016 at 11:01:38AM -0700, Andy Lutomirski wrote: >> >> On Tue, Apr 19, 2016 at 10:49 AM,

Re: [PATCH v3] of/overlay: add of overlay notifications

2016-04-19 Thread Rob Herring
On Thu, Mar 3, 2016 at 9:10 AM, Alan Tull wrote: > This patch add of overlay notifications. > > When DT overlays are being added, some drivers/subsystems > need to see device tree overlays before the changes go into > the live tree. > > This is distinct from reconfig notifiers that are > post-appl

Re: [PATCH] platform:x86 decouple telemetry driver from the optional IPC resources

2016-04-19 Thread Darren Hart
On Fri, Apr 15, 2016 at 10:18:58AM +0800, Li, Aubrey wrote: > On 2016/4/15 8:32, Darren Hart wrote: > > On Sun, Apr 10, 2016 at 09:46:48PM +0800, Li, Aubrey wrote: > >> On 2016/4/10 21:17, Andy Shevchenko wrote: > >>> On Thu, Mar 31, 2016 at 10:28 PM, Aubrey Li > >>> wrote: > Currently the o

Re: [lkp] [selinux] 759b31c1d4: unixbench.score -9.7% regression

2016-04-19 Thread Paul Moore
On Wed, Mar 30, 2016 at 10:38 PM, kernel test robot wrote: > FYI, we noticed that unixbench.score -9.7% regression on > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > commit 759b31c1d4295a1dab34b4669ee838fb3131cd91 ("selinux: simply inode label > states to INVALID

Re: [PATCH v2 all 00/14] use of_platform_default_populate() to populate default bus

2016-04-19 Thread Rob Herring
On Wed, Mar 16, 2016 at 2:35 AM, Kefeng Wang wrote: > Use helper of_platform_default_populate() in linux/of_platform > when possible, instead of calling of_platform_populate() with > the default match table. > > Then it is possible for driver code build as a module, and no > need to export of_defa

Re: [PATCH v1] ARM: dts: omap3-n900: Specify peripherals LDO regulators initial mode

2016-04-19 Thread Javier Martinez Canillas
Hello Ivaylo, On Sun, Apr 17, 2016 at 10:29 AM, Ivaylo Dimitrov wrote: > Without that, regulators are left in the mode last set by the bootloader or > by the kernel the device was rebooted from. This leads to various problems, > like non-working peripherals. > > Signed-off-by: Ivaylo Dimitrov >

Re: [PATCH] PCI: Quirk broken INTx masking on Intel i40e NICs

2016-04-19 Thread Bjorn Helgaas
On Thu, Mar 24, 2016 at 01:03:49PM -0600, Alex Williamson wrote: > All of the i40e (XL710/X710) 10/20/40GbE NICs lack support for > indicating INTx is asserted via the interrupt bit in the PCI status > register. The DisINTx bit in the command register is functional, > causing these devices to be i

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2016, at 4:50 PM, rostedt rost...@goodmis.org wrote: > On Tue, 19 Apr 2016 20:17:29 + (UTC) > Mathieu Desnoyers wrote: > > >> Ah indeed, since there is a hard limit to 4194304, that makes the >> worse case bitmap 512k. > > Yep. > >> >> We could argue that given a sparse

[PATCH] mfd: twl4030-power: Fix driver path in file comment

2016-04-19 Thread Javier Martinez Canillas
The driver's file path in the comment is wrong, use the correct one. Signed-off-by: Javier Martinez Canillas --- drivers/mfd/twl4030-power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 04b539850e72..f832233

Re: [PATCH v2 1/2] clk: Add Oxford Semiconductor OXNAS Standard Clocks

2016-04-19 Thread Stephen Boyd
On 04/18, Neil Armstrong wrote: > + > +static int oxnas_stdclk_probe(struct platform_device *pdev) > +{ > + struct device_node *np = pdev->dev.of_node; > + struct clk_oxnas_data *clk_oxnas; > + struct regmap *regmap; > + int i; > + > + clk_oxnas = devm_kzalloc(&pdev->dev, sizeof

Re: [PATCH] fdt: fix extend of cmd line

2016-04-19 Thread Rob Herring
On Wed, Apr 13, 2016 at 4:52 AM, Max Uvarov wrote: > On arm CONFIG_CMDLINE_EXTEND does not append build-in > cmdline in kernel to U-boot parameters. Fix it here. > Theoretically this patch should repair kdump work where > it adds elfcorehdr= and memmap additional parameters > to second kernel. > >

Re: [PATCH] drm/vc4: Kick out the simplefb framebuffer before we set up KMS.

2016-04-19 Thread Dave Airlie
On 20 April 2016 at 06:37, Eric Anholt wrote: > If we don't, then simplefb stays loaded on /dev/fb0 even though > scanout isn't happening from simplefb's memory area any more, and you > end up with no console. > > Signed-off-by: Eric Anholt > --- > > Dave: It would be nice if I could merge this p

Re: [PATCH v2 1/1] powerpc/86xx: Add support for Emerson/Artesyn MVME7100

2016-04-19 Thread Scott Wood
On Tue, 2016-04-19 at 10:33 +0200, Alessio Igor Bogani wrote: > Hi Scott, > > Thanks for reviewing it! > > On 19 April 2016 at 06:26, Scott Wood wrote: > > On Mon, 2016-04-18 at 09:57 +0200, Alessio Igor Bogani wrote: > > > + pci0: pcie@f1008000 { > > > + reg = <0xf1008000 0x1000

linux-next: error when fetching the c6x tree

2016-04-19 Thread Stephen Rothwell
Hi Mark, Attempting to fetch the c6x tree (git://linux-c6x.org/git/projects/linux-c6x-upstreaming.git#for-linux-next) produced this error: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. -- Cheers, Stephen Rothwell

Re: [PATCH] fs: reintroduce freezing nesting

2016-04-19 Thread Mateusz Guzik
On Tue, Apr 19, 2016 at 10:48:41PM +0200, Florian Margaine wrote: > The behavior was removed in 18e9e5104fcd9a973ffe3eed3816c87f2a1b6cd2 > noting that this was a better idea than using a counter. However, this > behavior is actually wanted if multiple applications want to freeze > concurrently whil

Re: [PATCH V6 08/13] PCI: generic, thunder: update to use generic ECAM API

2016-04-19 Thread Arnd Bergmann
On Friday 15 April 2016 19:06:43 Tomasz Nowicki wrote: > From: Jayachandran C > > Add config option PCI_GENERIC_ECAM and file drivers/pci/ecam.c to > provide generic functions for accessing memory mapped PCI config space. > > The API is defined in drivers/pci/ecam.h and is written to replace the >

[PATCH 0/2 v3] fsl-mc binding and device tree updates

2016-04-19 Thread Stuart Yoder
This patch series adds a few missing things from the binding for the fsl-mc node on the ls2080a Soc-- msi-parent, ranges, dpmac definition. The ls2080a device tree is updated to reflect the binding updates. -v3 -updated dpmac unit addresses to be in hex, to match the reg property -v2 -a

Re: [PATCH 0/5] Live patching for powerpc

2016-04-19 Thread Balbir Singh
On 16/04/16 01:07, Jiri Kosina wrote: > On Thu, 14 Apr 2016, Michael Ellerman wrote: > >> Topic branch here: >> >> >> https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/log/?h=topic/livepatch >> >> I will merge that before Monday (my time) if I don't hear any objections. > > I've

Re: [PATCH 4.4 000/137] 4.4.8-stable review

2016-04-19 Thread Kevin Hilman
Greg Kroah-Hartman writes: > On Mon, Apr 18, 2016 at 12:47:13AM -0700, kernelci.org bot wrote: >> stable-queue boot: 207 boots: 4 failed, 202 passed with 1 offline >> (v4.4.7-137-ge7e3ac8ffeb8) >> >> Full Boot Summary: >> https://kernelci.org/boot/all/job/stable-queue/kernel/v4.4.7-137-ge7e3ac

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

2016-04-19 Thread Stuart Yoder
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 and the system address space. -The fsl-mc node may optionally have dpmac su

Re: [PATCH 0/5] Live patching for powerpc

2016-04-19 Thread Jiri Kosina
On Wed, 20 Apr 2016, Balbir Singh wrote: > Thanks, do we have a summary of what the relocation changes look like? This work is queued in livepatching.git#for-4.7/arch-independent-klp-relocations -- Jiri Kosina SUSE Labs

[PATCH 2/2 v3] arm64: dts: ls2080a: fsl-mc dt node updates

2016-04-19 Thread Stuart Yoder
updates to the fsl-mc node for full functionality: -msi-parent is needed for interrupt support -ranges is needed to enable the bus driver to translate bus addresses -dpmac nodes provide a basis for relating dpmac objects to PHYs Signed-off-by: Stuart Yoder --- -v3 -updated unit addres

Re: [PATCH] Documentation: devicetree: bindings: regulator: palmas-pmic.txt

2016-04-19 Thread Rob Herring
On Tue, Mar 29, 2016 at 06:12:43PM +0530, Keerthy wrote: > From: Schuyler Patton > > Adding support for the tps659038 pmic so it doesn't generate a warning > when running the patch check script to > Documentation/devicetree/bindings/regulator/palmas-pmic.txt > > Adding a note that the tps659037

Re: [PATCH v2] Documentation: devicetree: Clean up gpio-keys example

2016-04-19 Thread Rob Herring
On Wed, Mar 16, 2016 at 12:53:29PM +0100, Andreas Färber wrote: > Drop #address-cells and #size-cells, which are not required by the > gpio-keys binding documentation, as button sub-nodes are not devices. > > Rename sub-nodes to avoid new dtc unit address warnings when copied. > > While at it, ad

Re: [PATCH v2] Documentation: devicetree: Clean up gpio-keys example

2016-04-19 Thread Javier Martinez Canillas
Hello Rob, On Tue, Apr 19, 2016 at 6:13 PM, Rob Herring wrote: > On Wed, Mar 16, 2016 at 12:53:29PM +0100, Andreas Färber wrote: >> Drop #address-cells and #size-cells, which are not required by the >> gpio-keys binding documentation, as button sub-nodes are not devices. >> >> Rename sub-nodes to

Re: [PATCH 01/16] devpts: Attempting to get it right

2016-04-19 Thread Eric W. Biederman
Linus Torvalds writes: > So I've looked at the devpts patches some more, and I'm still not happy > with them. > > And one thing I really detest about them is that the 16-patch series > didn't really make me warm and fuzzy in general. Some of the patches were > fine, but on the whole it all sti

Re: [PATCH] of: Add vendor prefix for Shenzhen Embest Technology

2016-04-19 Thread Rob Herring
On Sat, Apr 09, 2016 at 03:14:25PM -0300, Sergio Prado wrote: > Signed-off-by: Sergio Prado Applied, thanks. Rob > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt > b/Do

Re: [PATCH 1/2] of: Add Arrow Electronics to vendor prefix list

2016-04-19 Thread Rob Herring
On Tue, Apr 12, 2016 at 10:29:56AM +0100, Srinivas Kandagatla wrote: > This patch adds Arrow Electronics to vendor perfix list, as this vendor > makes some of the Qualcomm SOC based 96boards like DB600c and DB410c. > > Signed-off-by: Srinivas Kandagatla Applied, thanks. Rob > --- > Documentat

Re: [PATCH 2/2] of: Add Inforce Computing to vendor prefix list

2016-04-19 Thread Rob Herring
On Tue, Apr 12, 2016 at 10:29:57AM +0100, Srinivas Kandagatla wrote: > This patch adds Inforce Computing to vendor prefix list. > This vendor makes boards like IFC6410, IFC6540 based on Qualcomm SOCs. > > Signed-off-by: Srinivas Kandagatla Applied, thanks. Rob > --- > Documentation/devicetree

Re: [PATCH/TRIVIAL] devicetree: bindings: designware-pcie: Fix unit address

2016-04-19 Thread Rob Herring
On Tue, Apr 12, 2016 at 01:01:34PM -0700, Stephen Boyd wrote: > Remove the 0x in the unit address because it shouldn't be there. > > Cc: Joao Pinto > Signed-off-by: Stephen Boyd Applied, thanks. Rob > --- > Documentation/devicetree/bindings/pci/designware-pcie.txt | 2 +- > 1 file changed, 1

Re: [PATCH] bcache: bch_writeback_thread() is not freezable

2016-04-19 Thread Jiri Kosina
On Tue, 19 Apr 2016, Eric Wheeler wrote: > > bch_writeback_thread() is calling try_to_freeze(), but that's just an > > expensive no-op given the fact that the thread is not marked freezable. > > > > I/O helper kthreads, exactly such as the bcache writeback thread, actually > > shouldn't be free

Re: [PATCH] kernel/futex: handle the case where we got a "late" waiter

2016-04-19 Thread Davidlohr Bueso
On Fri, 15 Apr 2016, Sebastian Andrzej Siewior wrote: futex_unlock_pi() gets uval before taking the hb lock. Now imagine someone in futex_lock_pi() took the lock. While futex_unlock_pi() waits for the hb lock, the LOCK_PI sets FUTEX_WAITERS and drops the lock. Now, futex_unlock_pi() figures out

Re: [PATCH 0/6 v2] of: Implement iterator for phandles

2016-04-19 Thread Rob Herring
On Mon, Apr 4, 2016 at 10:49 AM, Joerg Roedel wrote: > Hi, > > here is a new version of the implementation of the iterator > over phandles concept which Rob Herring suggested to me some > time ago. My approach is a little bit different from what > the diff showed back then, but it gets rid of the

Re: [PATCH 3/3] RTC: Update seconds time programming logic

2016-04-19 Thread Alexandre Belloni
Hi, Please use rtc: zynqmp in your subject line. On 12/04/2016 at 17:45:46 +0530, Anurag Kumar Vulisha wrote : > @@ -78,6 +85,17 @@ static int xlnx_rtc_set_time(struct device *dev, struct > rtc_time *tm) > > writel(new_time, xrtcdev->reg_base + RTC_SET_TM_WR); > > + /* > + *

Re: [PATCH 1/3] RTC: Enable RTC switching to battery power when VCC_PSAUX is N/A

2016-04-19 Thread Alexandre Belloni
On 12/04/2016 at 17:45:44 +0530, Anurag Kumar Vulisha wrote : > In order to conserve battery energy, during the PS operation, > it is expected that the supply for the battery-powered domain > to be switched from the battery (VCC_PSBATT) to (VCC_PSAUX) and > automatically be switched back to battery

[RFC PATCH v2 01/10] kernel: add TAINT_OVERLAY_ACPI_TABLE

2016-04-19 Thread Octavian Purdila
Add a new tain flag that indicates wheather the user has loaded ACPI SSDT overlays. This will provide a clean indication in bug reports that the user has added new information to the ACPI tables. Signed-off-by: Octavian Purdila --- Documentation/acpi/ssdt-overlays.txt | 64 ++

[RFC PATCH v2 00/10] ACPI overlays

2016-04-19 Thread Octavian Purdila
This patch set enables custom ACPI board configuration by adding mechanisms in the Linux kernel for loading user defined SSDTs. In order to support ACPI open-ended hardware configurations we need a way to augment the ACPI configuration provided by the firmware image. A common example is connecting

[RFC PATCH v2 03/10] acpi: fix enumeration (visited) flags for bus rescans

2016-04-19 Thread Octavian Purdila
If the ACPI tables changes as a result of a dinamically loaded table and a bus rescan is required the enumeration/visited flag are not consistent. I2C/SPI are not directly enumerated in acpi_bus_attach(), however the visited flag is set. This makes it impossible to check if an ACPI device has alre

Re: [PATCH 2/3] RTC: Write Calibration value before set time

2016-04-19 Thread Alexandre Belloni
On 12/04/2016 at 17:45:45 +0530, Anurag Kumar Vulisha wrote : > It is suggested to programe CALIB_WRITE register with the calibration > value before updating the SET_TIME_WRITE register, doing so will > clear the Tick Counter and force the next second to be signaled > exactly in 1 second. > > This

[RFC PATCH v2 05/10] i2c: add support for ACPI reconfigure notifications

2016-04-19 Thread Octavian Purdila
This patch adds supports for I2C device enumeration and removal via ACPI reconfiguration notifications that are send as a result of an ACPI table load or unload operation. Signed-off-by: Octavian Purdila --- drivers/i2c/i2c-core.c | 170 ++--- 1 file c

[RFC PATCH v2 09/10] acpi: add support for loading SSDTs via configfs

2016-04-19 Thread Octavian Purdila
Add support for acpi_user_table configfs items that allows the user to load new tables. The data attributes contains the table data and once it is filled from userspace the table is loaded and ACPI devices are enumerated. Signed-off-by: Octavian Purdila --- Documentation/ABI/testing/configfs-acp

[RFC PATCH v2 10/10] HACK: acpi: configfs: add unload_hanlde_path attribute for tables

2016-04-19 Thread Octavian Purdila
Because there is no way to get a references to a table that we can use to unload a table this patch adds an attribute allows the user to attach a path to an ACPI handle to be used when unloading the table. The ACPI handle must have been loaded with the table to which attribute is part of, otherwise

[RFC PATCH v2 07/10] efi: load SSTDs from EFI variables

2016-04-19 Thread Octavian Purdila
This patch allows SSDTs to be loaded from EFI variables. It works by specifying the EFI variable name containing the SSDT to be loaded. All variables with the same name (regardless of the vendor GUID) will be loaded. Note that we can't use acpi_install_table and we must rely on the dynamic ACPI ta

[RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications

2016-04-19 Thread Octavian Purdila
This patch adds supports for SPI device enumeration and removal via ACPI reconfiguration notifications that are send as a result of an ACPI table load or unload operation. Signed-off-by: Octavian Purdila --- drivers/spi/spi.c | 94 ++- 1 file c

[RFC PATCH v2 08/10] acpi: add support for configfs

2016-04-19 Thread Octavian Purdila
Register the ACPI subsystem with configfs. Signed-off-by: Octavian Purdila --- Documentation/ABI/testing/configfs-acpi | 7 ++ MAINTAINERS | 1 + drivers/acpi/Kconfig| 9 drivers/acpi/Makefile | 1 + drivers/acpi/

Re: [PATCH 3/6] cifs: quit playing games with draining iovecs

2016-04-19 Thread Al Viro
On Tue, Apr 19, 2016 at 01:53:17PM -0400, Jeff Layton wrote: > What's the advantage of using iov_iter_bvec over iov_iter_kvec ? No need to screw with kmap() in the caller; moreover, when it comes to actual copying it gets away with kmap_atomic() just around the memcpy(), which is considerably che

[RFC PATCH v2 02/10] acpi: decouple initrd table install from CONFIG_ACPI_INITRD_TABLE_OVERRIDE

2016-04-19 Thread Octavian Purdila
The ACPI override and overlay functionality is different, with the latter being more then a debug option. Allow loading of ACPI tables from initrd even if CONFIG_ACPI_INITRD_TABLE_OVERRIDE is not selected. The patch also switches to using TAINT_OVERLAY_ACPI_TABLE and adds documentation about how t

[RFC PATCH v2 04/10] acpi: add support for ACPI reconfiguration notifiers

2016-04-19 Thread Octavian Purdila
Add support for ACPI reconfiguration notifiers to allow subsystems to react to changes in the ACPI tables that happen after the initial enumeration. This is similar with the way dynamic device tree notifications work. The reconfigure notifications supported for now are device add and device remove

Re: [PATCH v2 1/1] drivers: net: cpsw: Prevent NUll pointer dereference with two PHYs

2016-04-19 Thread David Miller
From: Grygorii Strashko Date: Tue, 19 Apr 2016 21:44:09 +0300 > May be you can send revert + your patch 1 (only fix for this issue). > > Dave, Does that sound good to you? Sure.

[PATCH] fuse: Fix fuse_get_user_pages() return value

2016-04-19 Thread Seth Forshee
fuse_direct_io() expects this to return either 0 or a negative error code, but on success it may return a positive value. fuse_direct_io() may return this same value when the subsequent I/O operation doesn't transfer any data, which means that it will return a positive value when no bytes were tran

Re: [PATCH] rtc-pcf2123: use sign_extend32() for sign extension

2016-04-19 Thread Alexandre Belloni
Please always include a commit message else, I'm fine with the patch. On 18/04/2016 at 12:17:44 +0200, Martin Kepplinger wrote : > Signed-off-by: Martin Kepplinger > --- > drivers/rtc/rtc-pcf2123.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/rtc/rtc-pcf2

[PATCH] x86/vdso: Use RDPID in preference to LSL when available

2016-04-19 Thread Andy Lutomirski
RDPID is a new instruction that reads MSR_TSC_AUX quickly. This should be considerably faster than reading the GDT. Add a cpufeature for it and use it from __vdso_getcpu when available. Signed-off-by: Andy Lutomirski --- I don't have a Cannonlake CPU (or whatever CPU I'd need for this). Could

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Steven Rostedt
On Tue, 19 Apr 2016 21:22:21 + (UTC) Mathieu Desnoyers wrote: > It makes sense. Anyway, looking back at my own implementation, I have > an array of 64 hlist_head entries (64 * 8 = 512 bytes), typically > populated by NULL pointers. It's only a factor 8 smaller than the > bitmap, so it's not a

Re: [PATCH] ARM: dts: r8a7791: Don't disable referenced optional clocks

2016-04-19 Thread Simon Horman
On Tue, Apr 19, 2016 at 09:18:55AM +0200, Geert Uytterhoeven wrote: > On Wed, Apr 6, 2016 at 2:52 PM, Sjoerd Simons > wrote: > > clk_get on a disabled clock node will return EPROBE_DEFER, which can > > cause drivers to be deferred forever if such clocks are referenced in > > their clocks property.

Re: [PATCH v2] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-04-19 Thread Al Stone
On 04/19/2016 02:12 PM, Ashwin Chaugule wrote: > + Ryan > > Hi Al, > > On 18 April 2016 at 20:11, Al Stone wrote: >> When CPPC is being used by ACPI on arm64, user space tools such as >> cpupower report CPU frequency values from sysfs that are incorrect. >> >> What the driver was doing was repor

Re: [PATCH] rtc: ds1307: Use irq when available for wakeup-source device

2016-04-19 Thread Alexandre Belloni
On 19/04/2016 at 11:23:54 -0500, Nishanth Menon wrote : > With commit 8bc2a40730ec ("rtc: ds1307: add support for the > DT property 'wakeup-source'") we lost the ability for rtc irq > functionality for devices that are actually hooked on a real IRQ > line and have capability to wakeup as well. This

Re: [fuse-devel] [PATCH] fuse: Fix fuse_get_user_pages() return value

2016-04-19 Thread Ashish Samant
Hi Seth, On 04/19/2016 03:43 PM, Seth Forshee wrote: fuse_direct_io() expects this to return either 0 or a negative error code, but on success it may return a positive value. fuse_direct_io() may return this same value when the subsequent I/O operation doesn't transfer any data, which means that

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2016, at 6:49 PM, rostedt rost...@goodmis.org wrote: > On Tue, 19 Apr 2016 21:22:21 + (UTC) > Mathieu Desnoyers wrote: > >> It makes sense. Anyway, looking back at my own implementation, I have >> an array of 64 hlist_head entries (64 * 8 = 512 bytes), typically >> populated

Re: [PATCH v3 1/2] ext4: Pass in DIO_SKIP_DIO_COUNT flag if inode_dio_begin() called

2016-04-19 Thread Dave Chinner
On Mon, Apr 18, 2016 at 03:46:46PM -0400, Waiman Long wrote: > On 04/15/2016 06:19 PM, Dave Chinner wrote: > >On Fri, Apr 15, 2016 at 01:17:41PM -0400, Waiman Long wrote: > >>On 04/15/2016 04:17 AM, Dave Chinner wrote: > >>>On Thu, Apr 14, 2016 at 12:21:13PM -0400, Waiman Long wrote: > What the

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-19 Thread Steven Rostedt
On Tue, 19 Apr 2016 22:59:14 + (UTC) Mathieu Desnoyers wrote: > - On Apr 19, 2016, at 6:49 PM, rostedt rost...@goodmis.org wrote: > > > On Tue, 19 Apr 2016 21:22:21 + (UTC) > > Mathieu Desnoyers wrote: > > > >> It makes sense. Anyway, looking back at my own implementation, I have

Re: Does anyone care about a race free ptsname?

2016-04-19 Thread Linus Torvalds
On Tue, Apr 19, 2016 at 11:44 AM, Eric W. Biederman wrote: > > I will take a look in a minute. Before I do that I want to mention > why I care about /dev/pts/ptmx. > > There is a posix function that is widely used called ptsname. It's > function is to take a master file descriptor and returns t

<    3   4   5   6   7   8   9   >