Re: KASLR causes intermittent boot failures on some systems

2017-04-08 Thread Dan Williams
On Fri, Apr 7, 2017 at 9:08 PM, Baoquan He wrote: > On 04/07/17 at 10:41am, Jeff Moyer wrote: >> Hi, >> >> commit 021182e52fe01 ("x86/mm: Enable KASLR for physical mapping memory >> regions") causes some of my systems with persistent memory (whether real >> or emulated) to fail to boot with a coup

[PATCH] reset: hi6220: Set module license so that it can be loaded

2017-04-08 Thread Jeremy Linton
The hi6220_reset driver can be built as a standalone module yet it cannot be loaded because it depends on GPL exported symbols. Lets set the module license so that the module loads, and things like the on-board kirin drm starts working. Signed-off-by: Jeremy Linton --- drivers/reset/hisilicon/h

Re: [kernel-hardening] Re: [RFC v2][PATCH 04/11] x86: Implement __arch_rare_write_begin/unmap()

2017-04-08 Thread Daniel Micay
> grsecurity and PaX are great projects. They have a lot of good ideas, > and they're put together quite nicely. The upstream kernel should > *not* do things differently from they way they are in grsecurity/PaX > just because it wants to be different. Conversely, the upstream > kernel should not

[PATCH 1/3] gpio - Add EXAR XRA1403 SPI GPIO expander driver

2017-04-08 Thread Han, Nandor (GE Healthcare)
> -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: 07 April 2017 13:07 > To: Han, Nandor (GE Healthcare) > Cc: Alexandre Courbot ; Rob Herring ; > Mark Rutland > ; linux-g...@vger.kernel.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org;

Re: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs

2017-04-08 Thread Lukas Wunner
On Fri, Apr 07, 2017 at 04:32:18PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > ATS is broken on this hardware and causes IOMMU stalls and > system failure. Disable ATS on these devices to make them > usable again with IOMMU enabled. AMD Stoney Ridge is an x86 CPU + GPU combo and this qui

Re: KASLR causes intermittent boot failures on some systems

2017-04-08 Thread Baoquan He
Hi Dan, Thanks! On 04/08/17 at 12:02am, Dan Williams wrote: > > I got below problem when configure ndctl, didn't find a package named > > libkmod: > > > > ~ > > configure: error: Package requirements (libkmod) were not met: > > > > No package 'libkmod' found > > kmod-devel provides that

Re: [PATCH 4.4 25/26] blk: Ensure users for current->bio_list can see the full list.

2017-04-08 Thread Greg Kroah-Hartman
On Fri, Apr 07, 2017 at 02:37:56PM +0100, Ben Hutchings wrote: > On Fri, 2017-04-07 at 15:03 +0200, Jinpu Wang wrote: > [...] > > Thanks, you're right, just found commit > > cd8ad4d9eb6d9ee04e77b42c6a7a15eabada85ac was included in 4.4.55+, > > I see, the device-mapper code changed after you prepar

Linux 4.4.60

2017-04-08 Thread Greg KH
I'm announcing the release of the 4.4.60 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.4.60

2017-04-08 Thread Greg KH
diff --git a/Makefile b/Makefile index 083724c6ca4d..fb7c2b40753d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 59 +SUBLEVEL = 60 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index 2e7f60c9fc5

Linux 4.9.21

2017-04-08 Thread Greg KH
I'm announcing the release of the 4.9.21 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 4.10.9

2017-04-08 Thread Greg KH
I'm announcing the release of the 4.10.9 kernel. All users of the 4.10 kernel series must upgrade. The updated 4.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.10.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.21

2017-04-08 Thread Greg KH
diff --git a/Makefile b/Makefile index 44960184701a..1523557bd61f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 20 +SUBLEVEL = 21 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi i

Re: Linux 4.10.9

2017-04-08 Thread Greg KH
diff --git a/Documentation/devicetree/bindings/rng/omap_rng.txt b/Documentation/devicetree/bindings/rng/omap_rng.txt index 471477299ece..9cf7876ab434 100644 --- a/Documentation/devicetree/bindings/rng/omap_rng.txt +++ b/Documentation/devicetree/bindings/rng/omap_rng.txt @@ -12,7 +12,8 @@ Required

[PATCH (resend)] ia64: fix module loading for gcc-5.4

2017-04-08 Thread Sergei Trofimovich
Starting from gcc-5.4+ gcc geperates MLX instructions in more cases to refer local symbols: https://gcc.gnu.org/bugzilla/60465 That caused ia64 module loader to choke on such instructions: fuse: invalid slot number 1 for IMM64 Linux kernel used to handle only case where relocation pointed

Re: [PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-08 Thread Akinobu Mita
2017-04-08 5:45 GMT+09:00 Dmitry Vyukov : > On Thu, Apr 6, 2017 at 4:56 PM, Akinobu Mita wrote: >> The fail-nth file is created with 0666 and the access is permitted if >> and only if the task is current. >> >> This file is owned by the currnet user. So we can create it with 0644 >> and allow the

Re: [PATCH v2 2/5] perf/x86/intel: Record branch type

2017-04-08 Thread Jin, Yao
Without this patch, we don't know if it's conditional or something else. And the kernel already knows this for its filtering, so it can as well report it. Right the CROSS_* and forward backward information could be computed later. -Andi OK, I will move CROSS_* and JCC forward/backward computi

Re: [PATCH 1/2] leds: Add driver for Qualcomm LPG

2017-04-08 Thread Pavel Machek
On Fri 2017-04-07 13:36:49, Bjorn Andersson wrote: > On Fri 07 Apr 06:32 PDT 2017, Pavel Machek wrote: > > > > For the patterns I don't know how a trigger for this would look like, > > > how would setting the pattern of a trigger be propagated down to the > > > hardware? > > > > Well... I'm not s

Re: [PATCH 1/2] leds: Add driver for Qualcomm LPG

2017-04-08 Thread Pavel Machek
Hi! > > On 04/03/2017 09:00 PM, Bjorn Andersson wrote: > [..] > > > For the patterns I don't know how a trigger for this would look like, > > > how would setting the pattern of a trigger be propagated down to the > > > hardware? > > > > We'd need a new op and API similar to blink_set()/led_blink_

[GIT PULL] Please pull powerpc/linux.git powerpc-4.11-7 tag

2017-04-08 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.11: The following changes since commit cc638a488a5205713b51eabd047be6ea641cc328: gcc-plugins: update architecture list in documentation (2017-03-21 22:20:05 +1100) are available in the git repository at: git://git.kernel.org/pub/scm/linu

[PATCH v2] ARM: dts: armada-38x: label USB and SATA nodes

2017-04-08 Thread Ralph Sennhauser
Recently most nodes got labels to make them referenceable. The USB 3.0 nodes as well as the nodes for the SATA controllers were left out, rectify the omission. The labels "sataX" are already used by some boards for the SATA ports, therefore use "ahciX" to label the SATA controller nodes. To avoid

Re: [PATCH v2] dt-bindings: Add documentation for GP10B GPU

2017-04-08 Thread Alexandre Courbot
On Fri, Mar 31, 2017 at 9:56 PM, Thierry Reding wrote: > On Thu, Mar 30, 2017 at 06:26:44PM +0900, Alexandre Courbot wrote: >> GP10B's definition is mostly similar to GK20A's and GM20B's. The only >> noticeable difference is the use of power domains instead of a regulator >> for power supply. >> >

[GIT PULL] pin control fix for v4.11

2017-04-08 Thread Linus Walleij
Hi Linus, this late fix for pin control is hopefully the last I send this cycle. The problem was detected early in the v4.11 release cycle and there has been some back and forth on how to solve it. Sadly the proper fix arrives late, but at least not too late. Please pull it in! Yours, Linus Wall

Re: [PATCH] Convert __le16 to cpu before casting to u32

2017-04-08 Thread Greg Kroah-Hartman
On Sun, Mar 26, 2017 at 12:24:14AM +0100, Guillaume Brogi wrote: > > This patch fixes the following sparse warnings: > drivers/staging/rtl8192u/r8192U_dm.c:2307:49: warning: cast from restricted > __le16 > drivers/staging/rtl8192u/r8192U_dm.c:2308:44: warning: cast from restricted > __le16 > dri

Re: [regression v4.11] 617f01211baf ("8139too: use napi_complete_done()")

2017-04-08 Thread Francois Romieu
David Miller : [...] > One theory is that the interrupt masking isn't working properly > and interrupts are still arriving and hitting the NAPI state even > when we are actively polling NAPI. > > And this problem was masked by the locking done here. Yes. Ville, can you rule out irq sharing betw

Re: [PATCHv3 00/22] Ion clean up in preparation in moving out of staging

2017-04-08 Thread Greg Kroah-Hartman
On Mon, Apr 03, 2017 at 11:57:42AM -0700, Laura Abbott wrote: > Hi, > > This is v3 of the series to do some serious Ion cleanup in preparation for > moving out of staging. I didn't hear much on v2 so I'm going to assume > people are okay with the series as is. I know there were still some open > q

Re: [PATCH] drivers/staging: lustre: Avoiding multiple line dereference

2017-04-08 Thread Greg Kroah-Hartman
On Tue, Apr 04, 2017 at 02:59:30PM +0530, Pushkar Jambhlekar wrote: > Making references in single line Why? Now the line is too long :( Will this be a constant stream of patches, one making this change, and the other the original? sorry, greg k-h

Re: [PATCH v2] staging: vt6656: fixed an indentation coding style issue

2017-04-08 Thread Greg KH
On Sat, Mar 25, 2017 at 05:40:48PM +0530, Prasant Jalan wrote: > > Replacing spaces with tabs for indetation to fix checkpatch.pl error > "code indent should use tabs where possible". > > > Signed-off-by: Prasant Jalan > --- > > v2: > - improved changelog comments > - fixed only one

Re: [PATCH] power: supply: lp8788: prevent out of bounds array access

2017-04-08 Thread Giedrius Statkevičius
Ping. On Tue, Mar 28, 2017 at 2:23 AM, Kim, Milo wrote: > On 3/26/2017 1:00 AM, Giedrius Statkevičius wrote: >> >> val might become 7 in which case stime[7] (array of length 7) would be >> accessed during the scnprintf call later and that will cause issues. >> Obviously, string concatenation is n

Re: [PATCH 1/3] Fixed checkpatch warning about unaligned function params

2017-04-08 Thread Greg KH
On Wed, Mar 29, 2017 at 06:15:35AM +0100, Andrea della Porta wrote: > Fixed issues: > CHECK: Alignment should match open parenthesis > #71: FILE: drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c:71: > + audio_info("alsa_stream=%p substream=%p\n", alsa_stream, > + alsa_s

Re: [PATCH] staging wlan-ng: mark PDA buf as __le16

2017-04-08 Thread Greg Kroah-Hartman
On Fri, Apr 07, 2017 at 02:47:55PM +0200, Maciek Borzecki wrote: > PDA buffer contains little-endian data, clearly mark it as such. > > Fixes sparse warnings: > drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted > __le16 > drivers/staging/wlan-ng/hfa384x_usb.c:2360:35:

Re: [PATCH] add blank line after declarations

2017-04-08 Thread Greg Kroah-Hartman
On Fri, Apr 07, 2017 at 08:41:11AM -0400, Manny Vindiola wrote: > Add blank line after variable declarations as part of checkpatch.pl style > fixup. > > Signed-off-by: Manny Vindiola > --- > drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c | 1 + > 1 file changed, 1 insertion(+) Your s

Re: [tpmdd-devel] Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot

2017-04-08 Thread Denis 'GNUtoo' Carikli
Hi Paul, On Thu, 6 Apr 2017 10:55:57 -0600 Jason Gunthorpe wrote: > We added direct ACPI binding to the driver in addition to PNP, so if > you have an ACPI table it goes down that path and does some additional > validation of what is in the TPM. The BIOS must provide a > acpi_dev_resource_memory

[PATCH 0/3] InfiniBand-SRP: Fine-tuning for some function implementations

2017-04-08 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 8 Apr 2017 14:04:04 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use kmalloc_array() in srp_alloc_req_data() Enclose 14 expressions for the sizeof operator by parentheses Delete unwanted spaces

[PATCH 1/3] IB/srp: Use kmalloc_array() in srp_alloc_req_data()

2017-04-08 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 8 Apr 2017 11:11:44 +0200 Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle software. Sig

[PATCH 2/3] IB/srp: Enclose 14 expressions for the sizeof operator by parentheses

2017-04-08 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 8 Apr 2017 13:49:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. WARNING: sizeof … should be sizeof(…) Thus fix the affected source code plac

[PATCH 3/3] IB/srp: Delete unwanted spaces behind usages of the sizeof operator

2017-04-08 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 8 Apr 2017 13:56:33 +0200 Replace the source code "sizeof (" by "sizeof(" according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/infiniband/ulp/srp/ib_srp.c | 22 +++--- 1 file changed, 11 insertions(+), 11 dele

Re: [PATCH 1/3] ptr_ring: batch ring zeroing

2017-04-08 Thread Jesper Dangaard Brouer
On Fri, 7 Apr 2017 08:49:57 +0300 "Michael S. Tsirkin" wrote: > A known weakness in ptr_ring design is that it does not handle well the > situation when ring is almost full: as entries are consumed they are > immediately used again by the producer, so consumer and producer are > writing to a shar

Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1.

2017-04-08 Thread Krzysztof Kozlowski
On Sat, Apr 08, 2017 at 10:02:46AM +0800, Herbert Xu wrote: > On Thu, Apr 06, 2017 at 05:54:14PM +0800, Herbert Xu wrote: > > On Mon, Mar 13, 2017 at 07:06:01PM +0200, Krzysztof Kozlowski wrote: > > > > > > I bisected this to commit f1c131b45410 ("crypto: xts - Convert to > > > skcipher"). The s5p-

Re: [PATCH 06/12] audit: Use timespec64 to represent audit timestamps

2017-04-08 Thread Paul Moore
On Fri, Apr 7, 2017 at 8:57 PM, Deepa Dinamani wrote: > struct timespec is not y2038 safe. > Audit timestamps are recorded in string format into > an audit buffer for a given context. > These mark the entry timestamps for the syscalls. > Use y2038 safe struct timespec64 to represent the times. > T

Re: [PATCH] staging wlan-ng: mark PDA buf as __le16

2017-04-08 Thread Maciek Borzecki
On Sat, Apr 8, 2017 at 1:01 PM, Greg Kroah-Hartman wrote: > On Fri, Apr 07, 2017 at 02:47:55PM +0200, Maciek Borzecki wrote: >> PDA buffer contains little-endian data, clearly mark it as such. >> >> Fixes sparse warnings: >> drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restric

Re: [PATCH] staging wlan-ng: mark PDA buf as __le16

2017-04-08 Thread Maciek Borzecki
On Sat, Apr 8, 2017 at 3:18 PM, Maciek Borzecki wrote: > On Sat, Apr 8, 2017 at 1:01 PM, Greg Kroah-Hartman > wrote: >> On Fri, Apr 07, 2017 at 02:47:55PM +0200, Maciek Borzecki wrote: >>> PDA buffer contains little-endian data, clearly mark it as such. >>> >>> Fixes sparse warnings: >>> driver

[PATCH v4 1/2] linux/kernel.h: Add ALIGN_DOWN macro

2017-04-08 Thread Krzysztof Kozlowski
Few parts of kernel define their own macro for aligning down so provide a common define for this, with the same usage and assumptions as existing ALIGN. Convert also three existing implementations to this one. Signed-off-by: Krzysztof Kozlowski --- The metag change was not even compiled due to

[PATCH v4 0/2] crypto: hw_random - Add new Exynos RNG driver

2017-04-08 Thread Krzysztof Kozlowski
Hi, This is a follow up of my questions around exynos-rng [1]. Changes since v3: = 1. New patch: 1/2 for ALIGN_DOWN macro. The change in metag architecture was not compiled. Please test it. 2. Dropped patches touching ARM defconfig as they are not changing and they pollute t

[PATCH v4 2/2] crypto: hw_random - Add new Exynos RNG driver

2017-04-08 Thread Krzysztof Kozlowski
Replace existing hw_ranndom/exynos-rng driver with a new, reworked one. This is a driver for pseudo random number generator block which on Exynos4 chipsets must be seeded with some value. On newer Exynos5420 chipsets it might seed itself from true random number generator block but this is not impl

Re: [PATCH 1/2] leds: Add driver for Qualcomm LPG

2017-04-08 Thread Pavel Machek
Hi! > [..] > > > For the patterns I don't know how a trigger for this would look like, > > > how would setting the pattern of a trigger be propagated down to the > > > hardware? > > > > We'd need a new op and API similar to blink_set()/led_blink_set(). > > > > I've tried to find different LED c

NULL pointer dereference in the kernel 3.10

2017-04-08 Thread zhong jiang
when runing the stabile docker cases in the vm. The following issue will come up. #40 [8801b57ffb30] async_page_fault at 8165c9f8 [exception RIP: down_read_trylock+5] RIP: 810aca65 RSP: 8801b57ffbe8 RFLAGS: 00010202 RAX: RBX: 88018ae85

Re: [PATCH] net: davinci_mdio: add GPIO reset logic

2017-04-08 Thread David Miller
From: Roger Quadros Date: Wed, 5 Apr 2017 11:33:57 +0300 > Some boards [1] leave the PHYs at an invalid state > during system power-up or reset thus causing unreliability > issues with the PHY like not being detected by the mdio bus > or link not functional. To work around these boards have > a G

[PATCH] staging wlan-ng: fix type mismatch warnings in mkpdrlist()

2017-04-08 Thread Maciek Borzecki
struct hfa384x_pdrec len and code fields as clearly little endian, mark both fields as such. pda->buf is also clearly little endian. Fixes sparse warnings: drivers/staging/wlan-ng/prism2fw.c:613:16: warning: cast to restricted __le16 drivers/staging/wlan-ng/prism2fw.c:616:21: warning: cast t

[GIT PULL 0/5] ARM: exynos: Stuff for v4.12

2017-04-08 Thread Krzysztof Kozlowski
Hi, No external dependencies, no specific order of pulling, nothing special. Best regards, Krzysztof

[GIT PULL 5/5] ARM: defconfig: exynos for v4.12

2017-04-08 Thread Krzysztof Kozlowski
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-defconfig-4.12 for you to fetch changes up to fd2694a11

[GIT PULL 4/5] arm64: dts: exynos: DTS for v4.12

2017-04-08 Thread Krzysztof Kozlowski
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt64-4.12 for you to fetch changes up to e3c07546747cde

[GIT PULL 2/5] ARM: soc: samsung: exynos for v4.12

2017-04-08 Thread Krzysztof Kozlowski
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-drivers-4.12 for you to fetch changes up to a0ebf66267e

[GIT PULL 3/5] ARM: dts: exynos: DTS for v4.12

2017-04-08 Thread Krzysztof Kozlowski
Hi, I provided some of the patches as sub-tags to other maintainers who needed it. Best regards, Krzysztof Cc: Hans Verkuil The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: g

[GIT PULL 1/5] arm64: soc: exynos for v4.12

2017-04-08 Thread Krzysztof Kozlowski
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc64-4.12 for you to fetch changes up to 0edf17984f251

[GIT PULL] pinctrl: samsung: Fixes for v4.11 and stuff for v4.12

2017-04-08 Thread Krzysztof Kozlowski
Hi Linus, Both pulls rebased on v4.11-rc1. The stuff for v4.12 was also shared (as separate sub-tag) to MFD (Lee Jones) for his work (it is a dependency). Best regards, Krzysztof

[GIT PULL] pinctrl: samsung: Stuff for v4.12

2017-04-08 Thread Krzysztof Kozlowski
Hi, Update for v4.12. Marek's commits were also shared (as separate sub-tag) to MFD (Lee Jones) for his work (it is a dependency). Best regards, Krzysztof Cc: Lee Jones The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) a

[GIT PULL] pinctrl: samsung: Fix for v4.11

2017-04-08 Thread Krzysztof Kozlowski
The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/samsung.git tags/samsung-pinctrl-fixes-4.11 for you to fetch changes up to

Re: [PATCH] rtc: cpcap: fix improper use of IRQ_NONE for request_threaded_irq

2017-04-08 Thread Alexandre Belloni
On 26/03/2017 at 20:34:23 -0700, Tony Lindgren wrote: > There's a funny typo where IRQ_NONE is used instead of IRQF_TRIGGER_NONE > for request_threaded_irq(). Let's fix it before it gets copied elsewhere. > > Fixes: dd3bf50b35e3 ("rtc: cpcap: new rtc driver") > Cc: Sebastian Reichel > Signed-off-

Re: [PATCH 2/3] IB/srp: Enclose 14 expressions for the sizeof operator by parentheses

2017-04-08 Thread Joe Perches
On Sat, 2017-04-08 at 14:12 +0200, SF Markus Elfring wrote: [] > diff --git a/drivers/infiniband/ulp/srp/ib_srp.c > b/drivers/infiniband/ulp/srp/ib_srp.c [] > @@ -3308,7 +3308,7 @@ static ssize_t srp_create_target(struct device *dev, > target_host->max_channel = 0; > target_host->max_i

RE: [PATCH 0/7] Hyper-V: praravirtualized remote TLB flushing and hypercall improvements

2017-04-08 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, April 7, 2017 4:27 AM > To: de...@linuxdriverproject.org; x...@kernel.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Thomas Gleixner ; Ingo > Molnar

Re: [PATCH v2] staging: bcm2835-audio: remove unnecessary log messages

2017-04-08 Thread Greg Kroah-Hartman
On Tue, Apr 04, 2017 at 12:03:43AM +0530, Aishwarya Pant wrote: > Remove unnecessary log messages in the driver which are just tracking > function entry and exits. > > Signed-off-by: Aishwarya Pant > --- > Changes in v2: > Patch v1 introduced a compile error; remove it by deleting the log > conti

Re: [PATCH] staging: goldfish: Add parenthesis around macros arguments

2017-04-08 Thread Greg KH
On Thu, Mar 30, 2017 at 12:11:05AM +0300, aviyae wrote: > Fix style issues by adding parenthesis around macros > arguments > > Signed-off-by: Aviya Erenfeld > --- > drivers/staging/goldfish/goldfish_audio.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/

Re: [PATCH] staging: goldfish: Add parenthesis around macros arguments

2017-04-08 Thread Greg KH
On Thu, Mar 30, 2017 at 12:11:05AM +0300, aviyae wrote: > Fix style issues by adding parenthesis around macros > arguments > > Signed-off-by: Aviya Erenfeld Also your From: line does not match this line...

Re: [PATCH] net: davinci_mdio: add GPIO reset logic

2017-04-08 Thread Andrew Lunn
On Sat, Apr 08, 2017 at 06:55:45AM -0700, David Miller wrote: > From: Roger Quadros > Date: Wed, 5 Apr 2017 11:33:57 +0300 > > > Some boards [1] leave the PHYs at an invalid state > > during system power-up or reset thus causing unreliability > > issues with the PHY like not being detected by the

Re: [PATCH][-next] nfp: don't dereference a null nn->eth_port to print a warning

2017-04-08 Thread David Miller
From: Colin King Date: Thu, 6 Apr 2017 13:54:35 +0100 > From: Colin Ian King > > On the case where nn->eth_port is null the warning message > is printing the port by dereferencing this null pointer. > Remove the deference to avoid a crash when printing the > warning message. > > Detected by C

RE: [PATCH 2/7] x86/hyper-v: fast hypercall implementation

2017-04-08 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, April 7, 2017 4:27 AM > To: de...@linuxdriverproject.org; x...@kernel.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Thomas Gleixner ; Ingo > Molnar

Re: [PATCH] net: davinci_mdio: add GPIO reset logic

2017-04-08 Thread Florian Fainelli
On 04/08/2017 08:10 AM, Andrew Lunn wrote: > On Sat, Apr 08, 2017 at 06:55:45AM -0700, David Miller wrote: >> From: Roger Quadros >> Date: Wed, 5 Apr 2017 11:33:57 +0300 >> >>> Some boards [1] leave the PHYs at an invalid state >>> during system power-up or reset thus causing unreliability >>> i

Re: [PATCH 31/38] Annotate hardware config module parameters in drivers/tty/

2017-04-08 Thread Greg KH
On Wed, Apr 05, 2017 at 06:01:26PM +0100, David Howells wrote: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access

Re: [PATCH] rtc: ds1307: support m41t0 variant

2017-04-08 Thread Alexandre Belloni
On 23/03/2017 at 16:54:57 -0700, Stefan Agner wrote: > The m41t0 variant is very similar to the already supported m41t00 > variant, with the notable exception of the oscillator fail bit. > The data sheet notes: > > If the oscillator fail (OF) bit is internally set to a '1,' this > indicates th

Re: [kernel-hardening] Re: [RFC v2][PATCH 04/11] x86: Implement __arch_rare_write_begin/unmap()

2017-04-08 Thread Andy Lutomirski
On Sat, Apr 8, 2017 at 12:33 AM, Daniel Micay wrote: > The > submitted code is aimed at rare writes to globals, but this feature is > more than that and design decisions shouldn't be based on just the > short term. Then, if you disagree with a proposed design, *explain why* in a standalone manner

Re: [PATCH 05/38] Annotate hardware config module parameters in drivers/char/

2017-04-08 Thread Greg KH
On Wed, Apr 05, 2017 at 05:57:30PM +0100, David Howells wrote: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access

Re: [PATCH 14/38] Annotate hardware config module parameters in drivers/misc/

2017-04-08 Thread Greg KH
On Wed, Apr 05, 2017 at 05:58:48PM +0100, David Howells wrote: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access

Re: [PATCH 29/38] Annotate hardware config module parameters in drivers/staging/speakup/

2017-04-08 Thread Greg KH
On Wed, Apr 05, 2017 at 06:01:10PM +0100, David Howells wrote: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access

Re: [PATCH 28/38] Annotate hardware config module parameters in drivers/staging/media/

2017-04-08 Thread Greg KH
On Wed, Apr 05, 2017 at 06:01:01PM +0100, David Howells wrote: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access

Re: [PATCH net-next v2] net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static

2017-04-08 Thread David Miller
From: Florian Fainelli Date: Thu, 6 Apr 2017 12:42:16 -0700 > The SMI clause 22 & 45 read/write operations are local to the global2.c file, > so make them static. This eliminates the following warning: ... > Suggested-by: Andrew Lunn > Signed-off-by: Florian Fainelli Applied, thanks Florian.

Re: [PATCH net-next 1/1] netvsc: Initialize all channel related state prior to opening the channel

2017-04-08 Thread David Miller
From: k...@exchange.microsoft.com Date: Thu, 6 Apr 2017 14:59:21 -0700 > From: K. Y. Srinivasan > > Prior to opening the channel we should have all the state setup to handle > interrupts. The current code does not do that; fix the bug. This bug > can result in faults in the interrupt path. >

Re: [git pull] base: soc: Improvements for the SoC bus and soc_device_match()

2017-04-08 Thread Greg Kroah-Hartman
On Mon, Apr 03, 2017 at 06:28:31AM -0400, Simon Horman wrote: > On Fri, Mar 31, 2017 at 10:54:20AM +0200, Geert Uytterhoeven wrote: > > Hi Greg, > > Hi Arnd, Kevin, Olof, > > Hi Magnus, Simon, > > > > The following changes since commit c470abd4fde40ea6a0846a2beab642a578c0b8cd: > > > >

Re: `pci_apply_final_quirks()` taking half a second

2017-04-08 Thread Bjorn Helgaas
On Fri, Apr 07, 2017 at 11:07:15PM +0200, Paul Menzel wrote: > Dear Linux folks, > > > Measuring where time is spent during boot with `systemd-bootchart` > on an Asus A780FullHD, it turns out that half a second is spent in > `pci_apply_final_quirks()`. I agree, that seems like a crazy amount of

RE: [PATCH 5/7] hyper-v: globalize vp_index

2017-04-08 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, April 7, 2017 4:27 AM > To: de...@linuxdriverproject.org; x...@kernel.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Thomas Gleixner ; Ingo > Molnar

[PATCH] net: ipv6: Remove unneccessary comments

2017-04-08 Thread Arushi Singhal
This comments are obsolete and should go, as there are no set of rules per CPU anymore. Signed-off-by: Arushi Singhal --- net/ipv6/netfilter/ip6_tables.c | 9 - 1 file changed, 9 deletions(-) diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 1e15c54fd5

[PATCH net-next] net: dsa: mt7530: Include gpio/consumer.h for GPIO functions

2017-04-08 Thread Florian Fainelli
Fixes build errors seen with CONFIG_GPIOLIB disabled and warnings enabled: drivers/net/dsa/mt7530.c: In function 'mt7530_setup': drivers/net/dsa/mt7530.c:948:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration] gpiod_set_value_cansleep(p

Linux next-20170407 failed to build on ARM due to usage of mod in btrfs code

2017-04-08 Thread Icenowy Zheng
Hello everyone, Today I tried to build a kernel with btrfs enabled on ARM, then when linking I met such an error: ``` fs/built-in.o: In function `scrub_bio_end_io_worker': acl.c:(.text+0x2f0450): undefined reference to `__aeabi_uldivmod' fs/built-in.o: In function `scrub_extent_for_parity': acl

[bug report] checkpatch: if statement does not need to be enclosed in parentheses

2017-04-08 Thread Alfonso Lima
Hi, In current linux-next, if you run the script on this piece of code: #define FOO(a) \ if (a) {\ something();\ something_else(); \ } You should get: ERROR: Macros with complex va

Re: [PATCH] char: misc: minor code cleanup

2017-04-08 Thread Greg Kroah-Hartman
On Mon, Feb 27, 2017 at 11:27:58PM +0100, Martin Kaiser wrote: > Fix a couple of minor issues found by checkpatch.pl: > > Add/remove spaces where required. > Move EXPORT_SYMBOL() to the end of the function it refers to. > Set the access mode for the proc entry explicity. > Use pr_warn() instead of

Re: [PATCH v5 2/2] iio: Aspeed ADC

2017-04-08 Thread Jonathan Cameron
On 05/04/17 22:50, Stephen Boyd wrote: > On 04/01, Jonathan Cameron wrote: >> On 28/03/17 22:52, Rick Altherr wrote: >>> Aspeed BMC SoCs include a 16 channel, 10-bit ADC. Low and high threshold >>> interrupts are supported by the hardware but are not currently implemented. >>> >>> Signed-off-by: Ri

Re: [PATCH] kobject: support passing in variables for synthetic uevents

2017-04-08 Thread Greg KH
On Wed, Mar 15, 2017 at 04:17:24PM +0100, Peter Rajnoha wrote: > This patch makes it possible to pass additional arguments in addition > to uevent action name when writing /sys/.../uevent attribute. These > additional arguments are then inserted into generated synthetic uevent > as additional envir

[PATCH v2 0/3] staging: vc04_services: bcm2835-audio: bcm2835-pcm.c - Fixed several checkpatch issues

2017-04-08 Thread Andrea della Porta
Andrea della Porta (3): staging: vc04_services: bcm2835-audio: bcm2835-pcm.c Fixed checkpatch warning about unaligned function params staging: vc04_services: bcm2835-audio: bcm2835-pcm.c Fixed codepatch coding style issue, line over 80 staging: vc04_services: bcm2835-audio: bcm2835-pc

[PATCH v2 1/3] staging: vc04_services: bcm2835-audio: bcm2835-pcm.c Fixed checkpatch warning about unaligned function params

2017-04-08 Thread Andrea della Porta
Fixed unaligned function parameters issues, as per checkpatch warning Signed-off-by: Andrea della Porta --- Changes in v2: - subject line more explicit - checkpatch output removed as requested, summarized in one line .../vc04_services/bcm2835-audio/bcm2835-pcm.c | 47 ++

[PATCH v2 2/3] staging: vc04_services: bcm2835-audio: bcm2835-pcm.c Fixed codepatch coding style issue, line over 80

2017-04-08 Thread Andrea della Porta
Fixed checkpatch warning about line over 80 chars Signed-off-by: Andrea della Porta --- Changes in v2: - subject line more explicit - chekpatch output removed as requested, summarized in one line drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH v2 3/3] staging: vc04_services: bcm2835-audio: bcm2835-pcm.c Fixed extra space coding style issue

2017-04-08 Thread Andrea della Porta
Removed an extra spaces at the end of the line Signed-off-by: Andrea della Porta --- Changes in v2: - subject line more explicit drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-au

Re: [PATCH v3 5/9] arm, arm64: factorize common cpu capacity default code

2017-04-08 Thread Greg KH
On Mon, Mar 27, 2017 at 02:18:21PM +0100, Juri Lelli wrote: > arm and arm64 share lot of code relative to parsing CPU capacity > information from DT, using that information for appropriate scaling and > exposing a sysfs interface for chaging such values at runtime. > > Factorize such code in a com

Re: [PATCH v4 4/8] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-04-08 Thread Jonathan Cameron
On 05/04/17 10:06, Quentin Schulz wrote: > This adds support for the Allwinner A33 thermal sensor. > > Unlike the A10, A13 and A31, the Allwinner A33 only has one channel > which is dedicated to the thermal sensor. Moreover, its thermal sensor > does not generate interruptions, thus we only need t

RE: [PATCH 6/7] x86/hyper-v: use hypercall for remove TLB flush

2017-04-08 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, April 7, 2017 4:27 AM > To: de...@linuxdriverproject.org; x...@kernel.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Thomas Gleixner ; Ingo > Molnar

Re: [PATCHv3 02/10] serdev: add serdev_device_wait_until_sent

2017-04-08 Thread Greg Kroah-Hartman
On Tue, Mar 28, 2017 at 05:59:31PM +0200, Sebastian Reichel wrote: > Add method, which waits until the transmission buffer has been sent. > Note, that the change in ttyport_write_wakeup is related, since > tty_wait_until_sent will hang without that change. > > Acked-by: Rob Herring > Acked-by: Pa

Re: `pci_apply_final_quirks()` taking half a second

2017-04-08 Thread David Woodhouse
On Sat, 2017-04-08 at 10:41 -0500, Bjorn Helgaas wrote: > > > Measuring where time is spent during boot with `systemd-bootchart` > > on an Asus A780FullHD, it turns out that half a second is spent in > > `pci_apply_final_quirks()`. > > I agree, that seems like a crazy amount of time. > > Can you

Re: Is it safe for kthreadd to drain_all_pages?

2017-04-08 Thread Hugh Dickins
On Fri, 7 Apr 2017, Hugh Dickins wrote: > On Fri, 7 Apr 2017, Michal Hocko wrote: > > On Fri 07-04-17 09:58:17, Hugh Dickins wrote: > > > On Fri, 7 Apr 2017, Michal Hocko wrote: > > > > On Fri 07-04-17 09:25:33, Hugh Dickins wrote: > > > > [...] > > > > > 24 hours so far, and with a clean /var/log/

[PATCH] lockd: remove redundant check on block

2017-04-08 Thread Colin King
From: Colin Ian King A null check followed by a return is being performed already, so block is always non-null at the second check on block, hence we can remove this redundant null-check (Detected by PVS-Studio). Also re-work comment to clean up a check-patch warning. Signed-off-by: Colin Ian K

Re: [PATCH 2/4] iio: dac: add support for stm32 DAC

2017-04-08 Thread Jonathan Cameron
On 05/04/17 16:48, Fabrice Gasnier wrote: > On 04/02/2017 01:32 PM, Jonathan Cameron wrote: >> On 31/03/17 12:45, Fabrice Gasnier wrote: >>> Add support for STMicroelectronics STM32 DAC. It's a 12-bit, voltage >>> output digital-to-analog converter. It has two output channels, each >>> with its own

Re: [PATCH] Documentation: stable-kernel-rules: fix stable-tag format

2017-04-08 Thread Jonathan Corbet
On Mon, 3 Apr 2017 15:53:34 +0200 Johan Hovold wrote: > A patch documenting how to specify which kernels a particular fix should > be backported to (seemingly) inadvertently added a minus sign after the > kernel version. This particular stable-tag format had never been used > prior to this patch

[PATCH] net: netfilter: ipvs: Replace explicit NULL comparison

2017-04-08 Thread Arushi Singhal
Replace explicit NULL comparison to simplify code. Signed-off-by: Arushi Singhal --- net/netfilter/ipvs/ip_vs_ctl.c | 40 net/netfilter/ipvs/ip_vs_proto.c | 22 +++--- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/net/

  1   2   3   >