Re: [PATCH 3/5] block: move poll code to blk-mq

2016-11-04 Thread Christoph Hellwig
On Thu, Nov 03, 2016 at 01:45:05PM -0600, Jens Axboe wrote: > The poll code is blk-mq specific, let's move it to blk-mq.c. This > is a prep patch for improving the polling code. > > Signed-off-by: Jens Axboe > Reviewed-by: Christoph Hellwig So I gave my ok earlier, but I spent some more time lo

Ahoj....

2016-11-04 Thread K. M Leung
Ahoj. Dobry vecer a jak se mas? Jen rychly jedno, je tu oficialni prilezitosti bych chtel diskutovat s vami soukrome. Ocenil bych vasi rychlou reakci tady na mem osobnim soukromeho e-mailu nize pro dalsi komunikaci. S pratelskym pozdravem, Paní Ko May Leung email: kleung...@gmail.com

Re: [PATCH 4/9] pinctrl: meson: allow gpio to request irq

2016-11-04 Thread Linus Walleij
On Wed, Oct 26, 2016 at 5:50 PM, Kevin Hilman wrote: >> Yes they are all wrong. They should all be using irq_find_mapping(). > > So, dumb question from someone trying (but having a hard time) to follow > and understand the rationale... > > If it's wrong enough to completely reject, why are change

RE: [PATCH 3/9] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-11-04 Thread Stuart Yoder
> -Original Message- > From: Ruxandra Ioana Radulescu > Sent: Wednesday, November 02, 2016 9:50 AM > To: Stuart Yoder ; gre...@linuxfoundation.org > Cc: German Rivera ; de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org; > ag...@suse.de; a...@arndb.de; Leo Li ; Roy Pledge > ; St

Re: [PATCH 2/2] kbuild: add -fno-PIE

2016-11-04 Thread Markus Trippelsdorf
On 2016.11.04 at 15:24 +0100, Sebastian Andrzej Siewior wrote: > On 2016-11-04 07:37:02 [-0400], Austin S. Hemmelgarn wrote: > > > clued enough to have known better. Reassigning bug reports in question > > > from gcc-6 to linux is beyond stupid; Balint is either being deliberately > > > obtuse, or

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

2016-11-04 Thread Heiko Carstens
On Thu, Nov 03, 2016 at 03:50:07PM +0100, Sebastian Andrzej Siewior wrote: > @@ -1084,20 +1079,13 @@ static int smp_add_present_cpu(int cpu) > rc = sysfs_create_group(&s->kobj, &cpu_common_attr_group); > if (rc) > goto out_cpu; > - if (cpu_online(cpu)) { > -

Re: [PATCH v1] HID: udraw: Add support for the uDraw tablet for PS3

2016-11-04 Thread Benjamin Tissoires
On Oct 27 2016 or thereabouts, Bastien Nocera wrote: > This adds support for the THQ uDraw tablet for the PS3, as > 4 separate device nodes, so that user-space can easily consume > events coming from the hardware. > > Note that the touchpad two-finger support is fairly unreliable, > and a right-cl

Re: [PATCH 2/2] kbuild: add -fno-PIE

2016-11-04 Thread Sebastian Andrzej Siewior
On 2016-11-04 07:37:02 [-0400], Austin S. Hemmelgarn wrote: > > clued enough to have known better. Reassigning bug reports in question > > from gcc-6 to linux is beyond stupid; Balint is either being deliberately > > obtuse, or geniunely unable to imagine that somebody might be using the > > compi

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

2016-11-04 Thread Heiko Carstens
On Thu, Nov 03, 2016 at 03:50:06PM +0100, Sebastian Andrzej Siewior wrote: > 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

Re: [PATCH] procfs: Add mem_end to /proc//stat

2016-11-04 Thread Andy Lutomirski
On Fri, Nov 4, 2016 at 6:14 AM, Christopher Covington wrote: > Applications such as Just-In-Time (JIT) compilers, Checkpoint/Restore In > Userspace (CRIU), and User Mode Linux (UML) need to know the highest > virtual address, TASK_SIZE, to implement pointer tagging or make a first > educated guess

Re: [RFC v2 8/8] iommu/arm-smmu: implement add_reserved_regions callback

2016-11-04 Thread Robin Murphy
On 04/11/16 11:24, Eric Auger wrote: > The function populates the list of reserved regions with the > PCI host bridge windows and the MSI IOVA range. > > At the moment an arbitray MSI IOVA window is set at 0x800 > of size 1MB. > > Signed-off-by: Eric Auger > > --- > > RFC v1 -> v2: use def

Re: [PATCH v6 1/3] LSM: Add /sys/kernel/security/lsm

2016-11-04 Thread Tetsuo Handa
Casey Schaufler wrote: > On 11/1/2016 5:53 AM, Tetsuo Handa wrote: > > I didn't check past discussion, but how do you handle > > security_delete_hooks() > > case (I mean, "selinux" will remain there when reading > > /sys/kernel/security/lsm > > even after it is disabled at runtime)? > > Paul Moo

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pandruvada, Srinivas
On Fri, 2016-11-04 at 09:58 +0100, Pavel Machek wrote: > On Fri 2016-11-04 09:38:49, Pavel Machek wrote: > > > > [...] > > What is worse, they go to low frequency even with "performance" > governor on v4.8-rc1?! > > pavel@duo:/sys/devices/system/cpu/cpu0/cpufreq$ sudo cat > /sys/devices/system

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

2016-11-04 Thread Jes Sorensen
Joe Perches writes: > 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 legible") > wh

Re: [PATCH] hid: sensor: fix input and feature attributes in HID sensor custom sysfs interface

2016-11-04 Thread Benjamin Tissoires
On Nov 03 2016 or thereabouts, Ooi, Joyce wrote: > User is unable to access to input-X-yyy and feature-X-yyy where > X is a hex value and more than 9 (e.g. input-a-yyy, feature-b-yyy) in HID > sensor custom sysfs interface. > This is because when creating the attribute, the attribute index is > wri

[PATCH v2 3/3] remoteproc: qcom: Adding q6v56 reset sequence in existing reset sequence

2016-11-04 Thread Avaneesh Kumar Dwivedi
Adding additional steps required specific to q6v56 based on version check along with some trivial changes in name of local functions. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 137 ++--- 1 file changed, 98 insertions(+), 39 del

[PATCH v2 1/3] remoteproc: qcom: Encapsulate pvt data structure for q6v56 hexagon.

2016-11-04 Thread Avaneesh Kumar Dwivedi
Encapsulate resources specific to each version of hexagon chip to device node to avoid conditional check for manipulation of those resources in driver code. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c

[PATCH v2 2/3] remoteproc: qcom: Hexagon version independent resource handling

2016-11-04 Thread Avaneesh Kumar Dwivedi
Handling of clock and regulator resources as well as reset register programing differe depending upon version of hexagon chip version as number of resource to program differ and parameters to program also differ, hence it is needed to make these functions version independent. Signed-off-by: Avanee

Re: [RFC v2 4/8] iommu: Add a list of iommu_reserved_region in iommu_domain

2016-11-04 Thread Robin Murphy
Hi Eric, Thanks for posting this new series - the bottom-up approach is a lot easier to reason about :) On 04/11/16 11:24, Eric Auger wrote: > Introduce a new iommu_reserved_region struct. This embodies > an IOVA reserved region that cannot be used along with the IOMMU > API. The list is protecte

Re: [PATCH net] r8152: Fix broken RX checksums.

2016-11-04 Thread Mark Lord
Yeah, the device or driver is definitely getting confused with rx_desc structures. I added code to check for unlikely rx_desc values, and it found this for starters: rx_desc: 00480801 00480401 00480001 0048fc00 0048f800 0048f400 pkt_len=2045 rx_data: 00 f0 48 00 00 ec 48 00 00 e8 48 00 00 e4 48

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

2016-11-04 Thread SF Markus Elfring
>>> You could define an xprintf() macro that checks if the return value >>> is < 0 and simply calls perror() and exit(1) in such case. >> Does such a macro belong to any general header file from the Linux >> software library? > No. Would you like to add it? How do you think about to reuse it in m

Re: [PATCH (net.git) 0/3] stmmac: fix PTP support

2016-11-04 Thread Giuseppe CAVALLARO
Hi David, the series have some Acked-by, do you prefer a new series (I can rebase them if you ask me) or you can keep this one? Or you have some advice or issue to warn? Regards, peppe On 10/26/2016 8:56 AM, Giuseppe Cavallaro wrote: This subset of patches aim to fix the PTP support for the st

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

2016-11-04 Thread Miklos Szeredi
On Fri, Nov 4, 2016 at 10:29 AM, Amir Goldstein wrote: > You did not address my comment about the 'stack' allocation overflow > in ovl_lookup > I believe the (possible) overflow is demonstrated by the following debug > patch: Oops, missed that. Good spotting! And there's more shit that unionf

RE: [PATCH] MIPS: VDSO: Always select -msoft-float

2016-11-04 Thread Matthew Fortune
Maciej Rozycki writes: > On Tue, 1 Nov 2016, Guenter Roeck wrote: > > > > > Some toolchains fail to build mips images with the following build > error. > > > > > > > > arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires > '-mfp32' > > > > > > > > This is seen, for example, with the

RE: [PATCH 4/9] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-11-04 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: Stuart Yoder [mailto:stuart.yo...@nxp.com] > Sent: Friday, October 21, 2016 9:02 AM > To: gre...@linuxfoundation.org > Cc: German Rivera ; de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org; ag...@suse.de; a...@arndb.de; Leo Li > ; Roy Pledge ; Stuart Yo

Re: [PATCH] proc: Trivial brace balancing

2016-11-04 Thread Alexey Dobriyan
On Fri, Nov 4, 2016 at 3:55 PM, Christopher Covington wrote: > - } else > + } else { > seq_puts(m, " 0 0 0 0 0 0 0"); > + } Oh, come on, people.

Re: [PATCH 2/3] ARM: cache-uniphier: refactor jump label to follow coding style guideline

2016-11-04 Thread Russell King - ARM Linux
On Fri, Nov 04, 2016 at 09:50:56PM +0900, Masahiro Yamada wrote: > Hi Russell, > > 2016-11-04 21:23 GMT+09:00 Russell King - ARM Linux : > > On Fri, Nov 04, 2016 at 08:43:35PM +0900, Masahiro Yamada wrote: > >> Documentation/CodingStyle recommends to use label names which say > >> what the goto do

Re: [PATCH v6 7/7] arm64: dts: NS2: add AMAC ethernet support

2016-11-04 Thread Sergei Shtylyov
Hello. On 11/4/2016 8:11 AM, Jon Mason wrote: Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 + arch/arm64/boot/dts/broadcom/ns2.dtsi| 12 2 files changed, 17 inserti

Re: [PATCH] usbnet: prevent device rpm suspend in usbnet_probe function

2016-11-04 Thread Alan Stern
On Fri, 4 Nov 2016, Kai-Heng Feng wrote: > Sometimes cdc_mbim failed to probe if runtime pm is enabled: > [9.305626] cdc_mbim: probe of 2-2:1.12 failed with error -22 > > This can be solved by increase its pm usage counter. This should not be needed. The USB core increments the PM usage co

Re: [REGRESSION] "console: don't prefer first registered if DT specifies stdout-path" breaks console on video outputs of various ARM boards

2016-11-04 Thread Hans de Goede
Hi, On 04-11-16 13:30, Paul Burton wrote: Hi Hans, On Friday, 4 November 2016 13:11:34 GMT Hans de Goede wrote: Hi All, While booting 4.9-rc# for the first time on an Allwinner A33 tablet, I noticed that after u-boot the LCD display stayed black. It turns out that there was an issue which cau

[PATCH] procfs: Add mem_end to /proc//stat

2016-11-04 Thread Christopher Covington
Applications such as Just-In-Time (JIT) compilers, Checkpoint/Restore In Userspace (CRIU), and User Mode Linux (UML) need to know the highest virtual address, TASK_SIZE, to implement pointer tagging or make a first educated guess at where to find a large, unused region of memory. Unfortunately the

Re: [PATCH 1/1] usb: xhci: remove the use of xhci->addr_dev

2016-11-04 Thread Mathias Nyman
On 02.11.2016 04:30, Lu Baolu wrote: xhci->addr_dev is used for the completion of both address device and enable slot commands. It's shared by enumerations of all USB devices connected to an xhci host. Hence, it's just a source for possible races. Since we've introduced command structure and the

Re: net/sctp: use-after-free in __sctp_connect

2016-11-04 Thread Marcelo Ricardo Leitner
On Fri, Nov 04, 2016 at 08:59:58AM -0400, Neil Horman wrote: > On Thu, Nov 03, 2016 at 04:35:33PM -0200, Marcelo Ricardo Leitner wrote: > > On Thu, Nov 03, 2016 at 07:02:47PM +0100, Andrey Konovalov wrote: > > > On Thu, Nov 3, 2016 at 6:52 PM, Marcelo Ricardo Leitner > > > wrote: > > > > On Thu, N

[PATCH v3 1/3] bus: simple-pm: add support to pm clocks

2016-11-04 Thread Srinivas Kandagatla
This patch adds support to pm clocks via device tree, so that the clocks can be turned on and off during runtime pm. This patch is required for Qualcomm msm8996 pcie controller which sits on a bus with its own power-domain and clocks. Without this patch the clock associated with the bus are never

[PATCH v3 3/3] PCI: qcom: add runtime pm support to pcie_port

2016-11-04 Thread Srinivas Kandagatla
This patch is required when the pcie controller sits on a bus with its own power domain and clocks which are controlled via a bus driver like simple pm bus. As these bus driver have runtime pm enabled, it makes sense to update the usage counter so that the runtime pm does not suspend the clks or po

Re: [PATCH 3/3] tpm: move documentation under Documentation/security

2016-11-04 Thread Jarkko Sakkinen
On Fri, Nov 04, 2016 at 02:06:00PM +0200, Jani Nikula wrote: > On Fri, 04 Nov 2016, Jarkko Sakkinen wrote: > > In order too make Documentation root directory cleaner move the tpm > > directory under Documentation/security. > > FWIW I like this. Thx. I just realized that I should have CC'd to lin

[GIT PULL] GPIO fixes for v4.9

2016-11-04 Thread Linus Walleij
Hi Linus, here is a bunch of GPIO fixes for the v4.9 series. The most prominent thing is the largeish file descriptor leak fix, and the regression fix for multiple-instance chips is pretty important too. Please pull it in! Yours, Linus Walleij The following changes since commit a909d3e636995ba

Re: net/sctp: use-after-free in __sctp_connect

2016-11-04 Thread Neil Horman
On Thu, Nov 03, 2016 at 04:35:33PM -0200, Marcelo Ricardo Leitner wrote: > On Thu, Nov 03, 2016 at 07:02:47PM +0100, Andrey Konovalov wrote: > > On Thu, Nov 3, 2016 at 6:52 PM, Marcelo Ricardo Leitner > > wrote: > > > On Thu, Nov 03, 2016 at 06:11:01PM +0100, Andrey Konovalov wrote: > > >> On Wed,

[PATCH v3 0/3] PCI: qcom: Add support to msm8996 pcie controller.

2016-11-04 Thread Srinivas Kandagatla
This patchset adds support to msm8996 pcie controller. I tested this patch on v4.9-rc2 along with phy driver patch [1] and "PCI: designware: check for iATU unroll support after initializing host" fix [2] on DB820c APQ8096 board on port B and port C using sata and ethernet controller. Changes since

[PATCH v3 2/3] PCI: qcom: add support to msm8996 PCIE controller

2016-11-04 Thread Srinivas Kandagatla
This patch adds support to msm8996/apq8096 pcie, MSM8996 supports Gen 1/2, One lane, 3 pcie root-complex with support to MSI and legacy interrupts and it conforms to PCI Express Base 2.1 specification. This patch adds post_init callback to qcom_pcie_ops, as this is pcie pipe clocks are only setup

Re: redraw issues on i915 since 4.9-rc

2016-11-04 Thread Chris Wilson
On Fri, Nov 04, 2016 at 08:40:47PM +0900, Norbert Preining wrote: > Dear all, > > since 4.9-rc series started I see heavy redraw problems on i915. Starting > or resizing for example the digikam window messes up completely the content. > > I have seen this at least since rc2 (I often wait till rc2

[PATCH] proc: Trivial brace balancing

2016-11-04 Thread Christopher Covington
As suggested by Documentation/CodingStyle right before section 3.1: Spaces, use braces on all branches of a conditional statement if they are used on any branch. No functional changes. Signed-off-by: Christopher Covington --- fs/proc/array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-

Re: [PATCH] MIPS: VDSO: Always select -msoft-float

2016-11-04 Thread Maciej W. Rozycki
On Tue, 1 Nov 2016, Guenter Roeck wrote: > > > Some toolchains fail to build mips images with the following build error. > > > > > > arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires '-mfp32' > > > > > > This is seen, for example, with the 'mipsel-linux-gnu-gcc (Debian 6.1.1-9) >

[PATCH] uapi/auxvec.h: Trivial formatting cleanup

2016-11-04 Thread Christopher Covington
Make alignment and tab usage consistent across file. No functional changes. Signed-off-by: Christopher Covington --- include/uapi/linux/auxvec.h | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/auxvec.h b/include/uapi/linux/auxvec.h index 835c065..8

Re: [PATCH 2/3] ARM: cache-uniphier: refactor jump label to follow coding style guideline

2016-11-04 Thread Masahiro Yamada
Hi Russell, 2016-11-04 21:23 GMT+09:00 Russell King - ARM Linux : > On Fri, Nov 04, 2016 at 08:43:35PM +0900, Masahiro Yamada wrote: >> Documentation/CodingStyle recommends to use label names which say >> what the goto does or why the goto exists. >> >> Just in case, split it up into three labels

Re: [Ksummit-discuss] Results: Linux Foundation Technical Advisory Board Election 2016

2016-11-04 Thread Chris Mason
On Thu, Nov 03, 2016 at 08:38:44PM +0200, Laurent Pinchart wrote: Hi Chris, On Thursday 03 Nov 2016 10:47:03 Chris Mason wrote: On Thu, Nov 03, 2016 at 06:06:35PM +0200, Laurent Pinchart wrote: > On Thursday 03 Nov 2016 11:39:51 Steven Rostedt wrote: >> The TAB elections are now complete. Thank

Re: [PATCH] ARM: mvebu: Update comment for main PLL frequency

2016-11-04 Thread Gregory CLEMENT
Hi Chris, On mer., oct. 26 2016, Chris Packham wrote: > The actual frequency was updated in commit ae142bd99765 ("ARM: mvebu: > Fix the main PLL frequency on Armada 375, 38x and 39x SoCs") but the > comment was not updated. Update it now. > > Signed-off-by: Chris Packham Applied on mvebu/dt

Re: [PATCH] Documentation: networking: dsa: Update tagging protocols

2016-11-04 Thread Andrew Lunn
On Fri, Nov 04, 2016 at 01:16:14PM +0100, Fabian Mewes wrote: > Add Qualcomm QCA tagging introduced in cafdc45c9 to the > list of supported protocols. > > Signed-off-by: Fabian Mewes Thanks Reviewed-by: Andrew Lunn Andrew

Re: [REGRESSION] "console: don't prefer first registered if DT specifies stdout-path" breaks console on video outputs of various ARM boards

2016-11-04 Thread Paul Burton
Hi Hans, On Friday, 4 November 2016 13:11:34 GMT Hans de Goede wrote: > Hi All, > > While booting 4.9-rc# for the first time on an Allwinner A33 tablet, > I noticed that after u-boot the LCD display stayed black. It turns out > that there was an issue which caused X to never get up, and all kerne

Re: [PATCH 01/14] pinctrl-sx150x: Rely on of_modalias_node for OF matching

2016-11-04 Thread Linus Walleij
On Tue, Nov 1, 2016 at 4:57 PM, Andrey Smirnov wrote: > None of the OF match table entries contain any compatiblity strings that > could not be matched against using i2c_device_id table above and > of_modalias_node. Besides that entries in OF match table do not cary > proper device variant inform

[PATCH] Documentation: networking: dsa: Update tagging protocols

2016-11-04 Thread Fabian Mewes
Add Qualcomm QCA tagging introduced in cafdc45c9 to the list of supported protocols. Signed-off-by: Fabian Mewes --- Documentation/networking/dsa/dsa.txt |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/networking/dsa/dsa.txt b/Documentation/networking/dsa/

Re: [PATCH 2/3] ARM: cache-uniphier: refactor jump label to follow coding style guideline

2016-11-04 Thread Russell King - ARM Linux
On Fri, Nov 04, 2016 at 08:43:35PM +0900, Masahiro Yamada wrote: > Documentation/CodingStyle recommends to use label names which say > what the goto does or why the goto exists. > > Just in case, split it up into three labels because the CodingStyle > says "one err bugs" is a common type of bug (a

Re: [RFC PATCH] perf/x86/intel/rapl: avoid access unallocate memory

2016-11-04 Thread Charles (Chas) Williams
On 11/03/2016 01:47 PM, Sebastian Andrzej Siewior wrote: On 2016-11-02 18:47:49 [-0400], Charles (Chas) Williams wrote: I don't this this is a race. Here is some debugging from the two CPU VM (2 sockets, 1 core per socket). In identify_cpu() we have: /* The boot/hotplug time assigme

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

2016-11-04 Thread Michal Marek
On 2016-11-03 20:48, SF Markus Elfring wrote: >> You could define an xprintf() macro that checks if the return value >> is < 0 and simply calls perror() and exit(1) in such case. > > Does such a macro belong to any general header file from the Linux > software library? No. Michal

Re: [PATCH 00/14] pinctrl-sx150x: Various bug-fixes and code simplifications

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 11:22 PM, Andrey Smirnov wrote: >>> This is good, you went faster than me ! >>> >>> Small point, could you add Kconfig dependency on REGMAP ? > > Good catch! Will fix in v2 of the set. OK I wait for a v2 with the ACK/test tags then I'll apply that. Yours, Linus Walleij

[RFC] ARCv2: MCIP: Deprecate setting of affinity in Device Tree

2016-11-04 Thread Yuriy Kolerov
Ignore value of interrupt distribution mode for common interrupts in IDU since setting an affinity using value from Device Tree is deprecated in ARC. Originially it is done in idu_irq_xlate function and it is semantically wrong and does not guaranty that an affinity value will be set properly. How

Re: [PATCH net] r8152: Fix broken RX checksums.

2016-11-04 Thread Mark Lord
On 16-11-02 02:29 PM, Mark Lord wrote: I have poked at it some more, and thus far it appears that it is only necessary to disable TCP rx checksums. The system doesn't crash when only IP/UDP checksums are enabled, but does when TCP checksums are on. This happens regardless of whether RX_AGG is

[PATCH] Revert "console: don't prefer first registered if DT specifies stdout-path"

2016-11-04 Thread Hans de Goede
This reverts commit 05fd007e4629 ("console: don't prefer first registered if DT specifies stdout-path"). The reverted commit changes existing behavior on which many ARM boards rely. Many ARM small-board-computers, like e.g. the Raspberry Pi have both a video output and a serial console. Depending

[REGRESSION] "console: don't prefer first registered if DT specifies stdout-path" breaks console on video outputs of various ARM boards

2016-11-04 Thread Hans de Goede
Hi All, While booting 4.9-rc# for the first time on an Allwinner A33 tablet, I noticed that after u-boot the LCD display stayed black. It turns out that there was an issue which caused X to never get up, and all kernel (and other startup) messages prior to that only went to ttyS0 which consists of

Re: [PATCH 3/3] tpm: move documentation under Documentation/security

2016-11-04 Thread Jani Nikula
On Fri, 04 Nov 2016, Jarkko Sakkinen wrote: > In order too make Documentation root directory cleaner move the tpm > directory under Documentation/security. FWIW I like this. BR, Jani. > > Signed-off-by: Jarkko Sakkinen > --- > Documentation/index.rst | 2 +- > Doc

Re: [PATCH] leds: Add mutex protection in brightness_show()

2016-11-04 Thread Hans de Goede
Hi, On 04-11-16 08:52, Jacek Anaszewski wrote: Initially the claim about no need for lock in brightness_show() was valid as the function was just returning unchanged LED brightness. After the addition of led_update_brightness() this is no longer true, as the function can change the brightness if

[PATCH 0/3] ARM: cache-uniphier: slight cleanups and trivial coding style fix

2016-11-04 Thread Masahiro Yamada
The cache-uniphier is a full-custom outer-cache for Socionext UniPhier SoC family. This series includes SoC-specific cleanups and a trivial coding style fix suggested by Documentation/CodingStyle. Masahiro Yamada (3): ARM: cache-uniphier: call kzalloc() after DT property parsing ARM: cache-

[PATCH 2/3] ARM: cache-uniphier: refactor jump label to follow coding style guideline

2016-11-04 Thread Masahiro Yamada
Documentation/CodingStyle recommends to use label names which say what the goto does or why the goto exists. Just in case, split it up into three labels because the CodingStyle says "one err bugs" is a common type of bug (although, I do not believe the current code includes such a bug). During th

[PATCH 3/3] ARM: cache-uniphier: clean up active way setup code

2016-11-04 Thread Masahiro Yamada
Now, the active way setup function is called with a fixed value zero for the second argument only when enabling the outer-cache. The code can be simpler. Signed-off-by: Masahiro Yamada --- arch/arm/mm/cache-uniphier.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-)

[PATCH 1/3] ARM: cache-uniphier: call kzalloc() after DT property parsing

2016-11-04 Thread Masahiro Yamada
Allocate memory after DT property parsing that has more possibility of failure. This will decrease the number of bail-out points for kfree(). Signed-off-by: Masahiro Yamada --- arch/arm/mm/cache-uniphier.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(

[PATCH net-next v3] cadence: Add LSO support.

2016-11-04 Thread Rafal Ozieblo
New Cadence GEM hardware support Large Segment Offload (LSO): TCP segmentation offload (TSO) as well as UDP fragmentation offload (UFO). Support for those features was added to the driver. Signed-off-by: Rafal Ozieblo --- Changed in v2: macb_lso_check_compatibility() changed to macb_features_chec

Re: [PATCH 2/2] kbuild: add -fno-PIE

2016-11-04 Thread Austin S. Hemmelgarn
On 2016-11-03 21:08, Al Viro wrote: On Thu, Nov 03, 2016 at 04:50:55PM -0600, Ben Hutchings wrote: On Wed, 2016-11-02 at 18:20 +0100, Sebastian Andrzej Siewior wrote: Debian started to build the gcc with -fPIE by default so the kernel build ends before it starts properly with: |kernel/bounds.c:

[RFC v2 8/8] iommu/arm-smmu: implement add_reserved_regions callback

2016-11-04 Thread Eric Auger
The function populates the list of reserved regions with the PCI host bridge windows and the MSI IOVA range. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. Signed-off-by: Eric Auger --- RFC v1 -> v2: use defines for MSI IOVA base and length --- drivers/iommu/arm-sm

[RFC v2 3/8] iommu/dma: Allow MSI-only cookies

2016-11-04 Thread Eric Auger
From: Robin Murphy IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other

[RFC v2 6/8] iommu: Handle the list of reserved regions

2016-11-04 Thread Eric Auger
A new callback is introduced, add_reserved_regions. This function aims at populating the iommu domain reserved region list with regions associated with the device. The function is called on device attachment. The list is freed on iommu_domain_free(). Signed-off-by: Eric Auger --- drivers/iommu/i

[RFC v2 5/8] vfio/type1: Introduce RESV_IOVA_RANGE capability

2016-11-04 Thread Eric Auger
This patch allows the user-space to retrieve the reserved IOVA range(s), if any. The implementation is based on capability chains, now also added to VFIO_IOMMU_GET_INFO. Signed-off-by: Eric Auger --- RFC v1 -> v2: - add resv_mutex lock/unlock --- drivers/vfio/vfio_iommu_type1.c | 70 ++

[RFC v2 7/8] iommu/vt-d: Implement add_reserved_regions callback

2016-11-04 Thread Eric Auger
Implement the add_reserved_regions callback by registering the [FEE0_h - FEF0_000h] 1MB range as a reserved region (MSI address space). Signed-off-by: Eric Auger --- RFC v1 -> RFC v2: - fix intel_iommu_add_reserved_regions name - use IOAPIC_RANGE_START and IOAPIC_RANGE_END defines - return

[RFC v2 4/8] iommu: Add a list of iommu_reserved_region in iommu_domain

2016-11-04 Thread Eric Auger
Introduce a new iommu_reserved_region struct. This embodies an IOVA reserved region that cannot be used along with the IOMMU API. The list is protected by a dedicated mutex. An iommu domain now owns a list of those. Signed-off-by: Eric Auger --- --- drivers/iommu/iommu.c | 2 ++ include/linux

[RFC v2 1/8] vfio: fix vfio_info_cap_add/shift

2016-11-04 Thread Eric Auger
Capability header next field is an offset relative to the start of the INFO buffer. tmp->next is assigned the proper value but iterations implemented in vfio_info_cap_add and vfio_info_cap_shift use next as an offset between the headers. When coping with multiple capabilities this leads to an Oops.

[RFC v2 0/8] KVM PCIe/MSI passthrough on ARM/ARM64 - Alt II

2016-11-04 Thread Eric Auger
Following Will & Robin's suggestions, this series attempts to propose an alternative to [1] where the host would arbitrarily decide the location of the IOVA MSI window and would be able to report to the userspace the list of reserved IOVA regions that cannot be used along with VFIO_IOMMU_MAP_DMA. T

[RFC v2 2/8] iommu/iova: fix __alloc_and_insert_iova_range

2016-11-04 Thread Eric Auger
Fix the size check within start_pfn and limit_pfn. Signed-off-by: Eric Auger --- the issue was observed when playing with 1 page iova domain with higher iova reserved. --- drivers/iommu/iova.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iova.c b/drivers/io

Re: [PATCH v3] EDAC: expose per-dimm error counts in sysfs

2016-11-04 Thread Borislav Petkov
On Thu, Nov 03, 2016 at 03:01:53PM -0700, Aaron Miller wrote: > The old 'csrowX' sysfs directories had per-csrow error counters, but the > new 'dimmX' directories do not currently expose error counts. > > EDAC already keeps these counts, add them to sysfs so per-dimm counts > are still available w

Re: [PATCH 0/10] mmc: Add support to Marvell Xenon SD Host Controller

2016-11-04 Thread Gregory CLEMENT
Hi, On lun., oct. 31 2016, Gregory CLEMENT wrote: > Hello, > > This the second version of the series adding support for the SDHCI > Xenon controller. It can be currently found on the Armada 37xx and the > Armada 7K/8K but will be also used in more Marvell SoC (and not only > the mvebu ones ac

Re: [PATCH 10/13] ARM: dts: exynos: replace to "max-frequecy" instead of "clock-freq-min-max"

2016-11-04 Thread Heiko Stuebner
Hi Jaehoon, Am Freitag, 4. November 2016, 19:21:30 CET schrieb Jaehoon Chung: > On 11/04/2016 03:41 AM, Krzysztof Kozlowski wrote: > > On Thu, Nov 03, 2016 at 03:21:32PM +0900, Jaehoon Chung wrote: > >> In drivers/mmc/core/host.c, there is "max-frequency" property. > >> It should be same behavior.

Re: [PATCH 6/6] ARM: dts: rockchip: add rockchip RK1108 Evaluation board

2016-11-04 Thread Heiko Stuebner
Am Freitag, 4. November 2016, 18:54:35 CET schrieb Andy Yan: > Hi Heiko: > > On 2016年11月04日 18:03, Heiko Stuebner wrote: > > Am Donnerstag, 3. November 2016, 20:43:59 CET schrieb Andy Yan: > >> RK1108EVB is designed by Rockchip for CVR field. > >> This patch add basic support for it, which can boo

Re: [PATCH] virtio-net: drop legacy features in virtio 1 mode

2016-11-04 Thread Cornelia Huck
On Fri, 4 Nov 2016 12:55:36 +0200 "Michael S. Tsirkin" wrote: > Virtio 1.0 spec says VIRTIO_F_ANY_LAYOUT and VIRTIO_NET_F_GSO are > legacy-only feature bits. Do not negotiate them in virtio 1 mode. Note > this is a spec violation so we need to backport it to stable/downstream > kernels. > > Cc:

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

2016-11-04 Thread Alexandre Bailon
On 11/03/2016 06:50 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 03 November 2016 10:56 PM, Alexandre Bailon wrote: >> On 11/03/2016 05:34 PM, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Thursday 03 November 2016 08:56 PM, Alexandre Bailon wrote: The USB PHY is able to operate

Re: Coding Style: Reverse XMAS tree declarations ? (was Re: [PATCH net-next v6 02/10] dpaa_eth: add support for DPAA Ethernet)

2016-11-04 Thread Lino Sanfilippo
Hi, On 04.11.2016 07:53, Joe Perches wrote: CHECK:REVERSE_XMAS_TREE: Prefer ordering declarations longest to shortest #446: FILE: drivers/net/ethernet/ethoc.c:446: + int size = bd.stat >> 16; + struct sk_buff *skb; should not this case be valid? Op

Re: [PATCH v3] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-11-04 Thread Borislav Petkov
Please CC me on your future submissions, thanks. On Fri, Nov 04, 2016 at 03:07:19PM +0800, He Chen wrote: > The spec can be found in Intel Software Developer Manual or in > Instruction Set Extensions Programming Reference. This commit message is completely useless. Write commit messages in the wa

[PATCH] virtio-net: drop legacy features in virtio 1 mode

2016-11-04 Thread Michael S. Tsirkin
Virtio 1.0 spec says VIRTIO_F_ANY_LAYOUT and VIRTIO_NET_F_GSO are legacy-only feature bits. Do not negotiate them in virtio 1 mode. Note this is a spec violation so we need to backport it to stable/downstream kernels. Cc: sta...@vger.kernel.org Signed-off-by: Michael S. Tsirkin --- drivers/net/

Re: [RFC PATCH v2 0/5] ARM64: Add Internal PHY support for Meson GXL

2016-11-04 Thread Neil Armstrong
On 10/31/2016 05:56 PM, Neil Armstrong wrote: > The Amlogic Meson GXL SoCs have an internal RMII PHY that is muxed with the > external RGMII pins. > > In order to support switching between the two PHYs links, extended registers > size for mdio-mux-mmioreg must be added. > > Finally, the internal

Re: [PATCH 6/6] ARM: dts: rockchip: add rockchip RK1108 Evaluation board

2016-11-04 Thread Andy Yan
Hi Heiko: On 2016年11月04日 18:03, Heiko Stuebner wrote: Am Donnerstag, 3. November 2016, 20:43:59 CET schrieb Andy Yan: RK1108EVB is designed by Rockchip for CVR field. This patch add basic support for it, which can boot with initramfs into shell. Signed-off-by: Andy Yan looks good, the only

Re: [RFC 00/17] clk: Add per-controller locks to fix deadlocks

2016-11-04 Thread Marek Szyprowski
Hi Stephen, Krzysztof has left Samsung, but we would like to continue this task, because the ABBA dead-locks related to global prepare lock becomes more and more problematic for us to workaround. On 2016-09-09 02:24, Stephen Boyd wrote: On 08/16, Krzysztof Kozlowski wrote: RFC, please, do not

[PATCH 2/2] i2c: uniphier-f: rename jump label to follow coding style guideline

2016-11-04 Thread Masahiro Yamada
Documentation/CodingStyle recommends to use label names which say what the goto does or why the goto exists. Signed-off-by: Masahiro Yamada --- drivers/i2c/busses/i2c-uniphier-f.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-uniphier-f.c b/dr

[PATCH 1/2] i2c: uniphier: rename jump label to follow coding style guideline

2016-11-04 Thread Masahiro Yamada
Documentation/CodingStyle recommends to use label names which say what the goto does or why the goto exists. Signed-off-by: Masahiro Yamada --- drivers/i2c/busses/i2c-uniphier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-uniphier.c b/driver

[PATCH 09/22] mtd: nand: plat_nand: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/plat_nand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/na

[PATCH 12/22] mtd: nand: fsmc: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/fsmc_nand.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/nand/fsmc_nand.c

[PATCH 15/22] mtd: nand: mxc: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/mxc_nand.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c

[PATCH 01/22] mtd: nand: ams-delta: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/ams-delta.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/na

[PATCH 16/22] mtd: nand: omap2: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/omap2.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/driver

[PATCH 07/22] mtd: nand: orion: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/orion_nand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/

[PATCH 10/22] mtd: nand: atmel: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/atmel_nand.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/atmel_nan

[PATCH 08/22] mtd: nand: pasemi: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/pasemi_nand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/pasemi_nand.c b/drivers/mt

[PATCH 04/22] mtd: nand: gpio: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/gpio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c

[PATCH 02/22] mtd: nand: cmx270: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/cmx270_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd

<    1   2   3   4   5   >