[PATCH v6 09/14] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Marvell Xenon eMMC/SD/SDIO Host Controller contains PHY. Multiple types of PHYs are supported. Add support to multiple types of PHYs init and configuration. Add register definitions of PHYs. Xenon PHY cannot fit in kernel common PHY framework. Xenon SDHC PHY register is a part of

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Tony Lindgren
* Sergey Senozhatsky [170214 08:58]: > On (02/14/17 17:18), Peter Zijlstra wrote: > > On Wed, Feb 15, 2017 at 01:01:40AM +0900, Sergey Senozhatsky wrote: > > > > > > but I'm a bit confused by rt_b->rt_runtime_lock in this unsafe lock > > > scenario (so it's not ABBA, but ABAD) > > > > > > > lo

[PATCH v6 10/14] mmc: sdhci-xenon: Add SoC PHY PAD voltage control

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Some SoCs have PHY PAD outside Xenon IP. PHY PAD voltage should match signalling voltage in use. Add generic SoC PHY PAD voltage control interface. Implement Aramda-3700 SoC PHY PAD voltage control. Signed-off-by: Hu Ziji Tested-by: Russell King Signed-off-by: Gregory CLEMENT -

[PATCH v6 07/14] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Marvell Xenon SDHC can support eMMC/SD/SDIO. Add Xenon-specific properties. Also add properties for Xenon PHY setting. Signed-off-by: Hu Ziji Signed-off-by: Gregory CLEMENT --- Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.txt | 172 +++- 1 file changed, 172 inse

[PATCH v6 00/14] mmc: Add support to Marvell Xenon SD Host Controller

2017-02-14 Thread Gregory CLEMENT
Hello, This the sixth 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 actually). Most of the following changes had been discussed on the ma

[PATCH v6 06/14] mmc: sdhci: Export sdhci_enable_sdio_irq() from sdhci.c

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Export sdhci_enable_sdio_irq() from sdhci.c. Thus vendor SDHC driver can implement its specific SDIO irq control. Signed-off-by: Hu Ziji Signed-off-by: Gregory CLEMENT --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 1 + 2 files changed, 3 insertions(+), 1 delet

[PATCH v6 05/14] mmc: sdhci: Export sdhci_start_signal_voltage_switch() in sdhci.c

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Export sdhci_start_signal_voltage_switch() from sdhci.c. Thus vendor sdhci driver can implement its own signal voltage switch routine. Signed-off-by: Hu Ziji Signed-off-by: Gregory CLEMENT --- drivers/mmc/host/sdhci.c | 5 +++-- drivers/mmc/host/sdhci.h | 2 ++ 2 files changed,

Re: [PATCH v2] drm/amd/dc: resource: fix semicolon.cocci warnings (fwd)

2017-02-14 Thread Harry Wentland
Thanks for these fixes. I'll merge them. Reviewed-by: Harry Wentland Harry On 2017-02-14 04:47 AM, Christian König wrote: Am 14.02.2017 um 07:21 schrieb Julia Lawall: Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia L

Re: [PATCH net-next v1] bpf: Remove redundant ifdef

2017-02-14 Thread David Miller
From: "Wangnan (F)" Date: Mon, 13 Feb 2017 09:53:49 +0800 > > > On 2017/2/12 3:37, Mickaël Salaün wrote: >> Remove a useless ifdef __NR_bpf as requested by Wang Nan. >> >> Inline one-line static functions as it was in the bpf_sys.h file. >> >> Signed-off-by: Mickaël Salaün >> Cc: Alexei Starov

Re: [PATCH] drm/amd/dc: hw_sequencer: fix semicolon.cocci warnings

2017-02-14 Thread Harry Wentland
Reviewed-by: Harry Wentland Harry On 2017-02-14 01:19 AM, Julia Lawall wrote: Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: git://people.freedesktop.org/~agd5f/linux.

Re: [PATCH] drm/amd/dc: fix semicolon.cocci warnings

2017-02-14 Thread Harry Wentland
Reviewed-by: Harry Wentland Harry On 2017-02-14 01:13 AM, Julia Lawall wrote: Remove unneeded semicolons. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: git://people.freedesktop.org/~agd5f/linux

[PATCH] crypto: cavium: fix Kconfig dependencies

2017-02-14 Thread Arnd Bergmann
The driver fails to build if MSI support is disabled: In file included from /git/arm-soc/drivers/crypto/cavium/cpt/cptpf_main.c:18:0: drivers/crypto/cavium/cpt/cptpf.h:57:20: error: array type has incomplete element type 'struct msix_entry' struct msix_entry msix_entries[CPT_PF_MSIX_VECTORS];

[PATCH] xfs: fix len comparison in xfs_extent_busy_trim

2017-02-14 Thread Arnd Bergmann
The length is now passed by reference, so the assertion has to be updated to match the other changes, as pointed out by this W=1 warning: fs/xfs/xfs_extent_busy.c: In function 'xfs_extent_busy_trim': fs/xfs/xfs_extent_busy.c:356:13: error: ordered comparison of pointer with integer zero [-Werror=

Re: [PATCH] drm/amd/dc: fix semicolon.cocci warnings

2017-02-14 Thread Harry Wentland
Reviewed-by: Harry Wentland Harry On 2017-02-14 01:14 AM, Julia Lawall wrote: Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: git://people.freedesktop.org/~agd5f/linux.

Re: [PATCH] crypto: cavium: fix Kconfig dependencies

2017-02-14 Thread David Daney
On 02/14/2017 09:07 AM, Arnd Bergmann wrote: The driver fails to build if MSI support is disabled: In file included from /git/arm-soc/drivers/crypto/cavium/cpt/cptpf_main.c:18:0: drivers/crypto/cavium/cpt/cptpf.h:57:20: error: array type has incomplete element type 'struct msix_entry' struct

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread Borislav Petkov
On Tue, Feb 14, 2017 at 05:47:08PM +0100, Mathias Krause wrote: > That's the reason I haven't folded this change into patch 2. I had > similar doubts but it's not documented in Documentation/ and kinda > useless to test anyway -- what would a "wp : no" tell one? Not that - the missing wp-line in t

Re: [PATCH] staging: vt6656: Alignment match open parenthesis

2017-02-14 Thread Greg KH
On Mon, Feb 13, 2017 at 04:01:13AM +0530, Arushi Singhal wrote: > Fix checkpatch issues: "CHECK: Alignment should match open parenthesis" > > Signed-off-by: Arushi Singhal > --- > drivers/staging/vt6656/firmware.c | 34 +- > drivers/staging/vt6656/key.h | 2

Re: [PATCH] Staging: wlan-ng: Fixed code style issue:

2017-02-14 Thread Kroah-Hartman
On Mon, Feb 13, 2017 at 09:20:05AM -0500, Bo YU wrote: > Statements should start on a tabstop > > Signed-off-by: YU Bo > --- > drivers/staging/wlan-ng/prism2mgmt.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Patch does not apply to my tree :(

Re: [PATCHv6 1/3] staging: wlan-ng: move logical continuations at the end of line

2017-02-14 Thread Greg Kroah-Hartman
On Mon, Feb 13, 2017 at 09:25:49AM -0500, Maksymilian Piechota wrote: > move logical continuations at the end of line > > Signed-off-by: Maksymilian Piechota > --- > drivers/staging/wlan-ng/prism2mgmt.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/stagin

Re: [PATCH]staging: fbtft: Fix sparse warnings about endianness

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 04:53:10PM +0800, maomao xu wrote: > Fixed sparse warnings about endianness. E.g.: > > warning: incorrect type in assignment (different base types) Why are these lines indented? > Signed-off-by: maomao xu > > diff --git a/drivers/staging/fbtft/fbtft-io.c > b/dr

Re: [PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Alexander Shishkin
Peter Zijlstra writes: > On Tue, Feb 14, 2017 at 06:17:30PM +0200, Alexander Shishkin wrote: >> This is called by pmu::add(), which checks hw.state afterwards and if it >> finds HES_STOPPED, it returns an error, which event_sched_in() captures >> and keeps the event in INACTIVE state. Should I ad

Status February 14, 2017

2017-02-14 Thread Mike Kravetz
- Finally some progress on sparc shared context efforts. Turns out that the mondo timeout issue I spent a large amount of time chasing was a HW/FW issue with the non-production system I was using in the lab. Sigh! Some good things did come from this: - I learned new debug techniques - I

Re: [PATCH v2 01/25] Staging: rtl8192u: r819xU_phy.c - style fix

2017-02-14 Thread Greg KH
On Mon, Feb 13, 2017 at 06:39:06PM +1300, Derek Robson wrote: > Fixed style of block comments > Found using checkpatch > > Signed-off-by: Derek Robson > --- > drivers/staging/rtl8192u/r819xU_phy.c | 41 > +++ > 1 file changed, 27 insertions(+), 14 deletions(-) T

Re: [PATCH v3 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP

2017-02-14 Thread Boris Ostrovsky
On 02/13/2017 12:03 PM, Paul Durrant wrote: > Recently a new dm_op[1] hypercall was added to Xen to provide a mechanism > for restricting device emulators (such as QEMU) to a limited set of > hypervisor operations, and being able to audit those operations in the > kernel of the domain in which they

Re: [PATCH 01/15] staging: rtl8192u: fixing white space issue

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 02:33:34AM +0530, simran singhal wrote: > Fix the following checkpatch.pl error and warnings: > WARNING: please, no space before tabs > > Signed-off-by: simran singhal > --- > drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 d

Re: [PATCH V2 2/2] sched/deadline: Throttle a constrained deadline task activated after the deadline

2017-02-14 Thread Daniel Bristot de Oliveira
On 02/14/2017 04:54 PM, Tommaso Cucinotta wrote: > On 13/02/2017 20:05, Daniel Bristot de Oliveira wrote: >> To avoid this problem, in the activation of a constrained deadline >> task after the deadline but before the next period, throttle the >> task and set the replenishing timer to the begin of

Re: [PATCH] usb: musb: add code comment for clarification

2017-02-14 Thread Greg KH
On Fri, Feb 10, 2017 at 06:57:41PM -0600, Gustavo A. R. Silva wrote: > Add code comment to make it clear that the fall-through is intentional. > Read the link for more details: https://lkml.org/lkml/2017/2/9/292 > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/usb/musb/musb_core.c | 1 + >

Re: v4.9, 4.4-final: 28 bioset threads on small notebook, 36 threads on cellphone

2017-02-14 Thread Mike Snitzer
On Thu, Feb 09 2017 at 4:25pm -0500, Kent Overstreet wrote: > On Wed, Feb 08, 2017 at 11:34:07AM -0500, Mike Snitzer wrote: > > On Tue, Feb 07 2017 at 11:58pm -0500, > > Kent Overstreet wrote: > > > > > On Tue, Feb 07, 2017 at 09:39:11PM +0100, Pavel Machek wrote: > > > > On Mon 2017-02-06 17:

Re: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-14 Thread Andy Lutomirski
On Tue, Feb 14, 2017 at 7:50 AM, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: > >> On Tue, 14 Feb 2017, Vitaly Kuznetsov wrote: >> >>> Hi, >>> >>> while we're still waiting for a definitive ACK from Microsoft that the >>> algorithm is good for SMP case (as we can't prevent the code in vdso f

Re: [PATCH] oom_reaper: switch to struct list_head for reap queue

2017-02-14 Thread Oleg Nesterov
On 02/15, Aleksa Sarai wrote: > > >This is an extra pointer to task_struct and more lines of code to > >accomplish the same thing. Why would we want to do that? > > I don't think it's more "actual" lines of code (I think the wrapping is > inflating the line number count), I too think it doesn't ma

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE

2017-02-14 Thread Borislav Petkov
On Thu, Feb 02, 2017 at 08:54:35PM +0800, Baoquan He wrote: > In x86, KERNEL_IMAGE_SIZE is used to limit the size of kernel image in > running space, but also represents the size of kernel image mapping area. > This looks good when kernel virtual address is invariable inside 512M > area and kernel

Re: [1/3] ath10k: remove ath10k_vif_to_arvif()

2017-02-14 Thread Kalle Valo
Amadeusz Sławiński wrote: > it adds unnecessary level of indirection, while we just access structure > field > > Signed-off-by: Amadeusz Sławiński 3 patches applied to ath-next branch of ath.git, thanks. 56ac13bfc703 ath10k: remove ath10k_vif_to_arvif() 182f1e5a626e ath10k: use size_t for len v

Re: [PATCH v3 5/9] fput: Don't reinvent the wheel but use existing llist API

2017-02-14 Thread Oleg Nesterov
On 02/14, Byungchul Park wrote: > > Although llist provides proper APIs, they are not used. Make them used. Reviewed-by: Oleg Nesterov > Signed-off-by: Byungchul Park > --- > fs/file_table.c | 12 +--- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/fs/file_table.c

[PATCH 1/1] crypto: brcm - Avoid double free in ahash_finup()

2017-02-14 Thread Rob Rice
In Broadcom SPU driver, in case where incremental hash is done in software in ahash_finup(), tmpbuf was freed twice. Reported-by: Dan Carpenter Signed-off-by: Rob Rice --- drivers/crypto/bcm/cipher.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto

Re: [PATCH 01/15] staging: rtl8192u: fixing white space issue

2017-02-14 Thread SIMRAN SINGHAL
While resending them ...do I have to mention v2. On Tue, Feb 14, 2017 at 10:54 PM, Greg KH wrote: > On Tue, Feb 14, 2017 at 02:33:34AM +0530, simran singhal wrote: >> Fix the following checkpatch.pl error and warnings: >> WARNING: please, no space before tabs >> >> Signed-off-by: simran singhal

Re: [PATCH 2/2] perf/x86/intel/pt: Fail event creation if VMX operation is on

2017-02-14 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 14, 2017 at 03:24:16PM +0200, Alexander Shishkin escreveu: > On systems where PT does not coexist with VMX, users get confused when > PT turns up with no data because they forgot they're running a kvm > session at the same time. > > This patch adds a preemptive check for any active VMX

Re: [PATCH 1/2] dt-bindings: arm-ccn: Add bindings info for CCN-502 compatible string

2017-02-14 Thread Mark Rutland
On Fri, Feb 10, 2017 at 12:42:47PM -0800, Velibor Markovski wrote: > Add CCN-502 to the list of supported devices by ARM CCN PMU driver. > > Signed-off-by: Velibor Markovski Acked-by: Mark Rutland I assume Pawel will take this along with the driver patch. Thanks, Mark. > --- > Documentation

[PATCH v3 0/6] genirq/gpio: Add driver for ThunderX and OCTEON-TX SoCs

2017-02-14 Thread David Daney
Per the Subject: Add driver for ThunderX and OCTEON-TX SoCs This GPIO hardware looks like a PCIe device, with the interrupt signal from each GPIO line being routed to a dedicated MSI-X. This interrupt routing requires that we add some custom processing to the beginning of the MSI-X irqdomain hier

[PATCH v3 4/6] dt-bindings: gpio: Add binding documentation for gpio-thunderx

2017-02-14 Thread David Daney
Signed-off-by: David Daney Acked-by: Rob Herring --- .../devicetree/bindings/gpio/gpio-thunderx.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-thunderx.txt diff --git a/Documentation/devicetree/bindings/gpio/

[PATCH] mfd: altr-a10sr: Add Arria10 SR sysfs attributes

2017-02-14 Thread thor . thayer
From: Thor Thayer Add the Altera Arria10 DevKit sysfs attributes to the MFD device. Update copyright and email. Signed-off-by: Thor Thayer --- drivers/mfd/altera-a10sr.c | 98 -- 1 file changed, 95 insertions(+), 3 deletions(-) diff --git a/drivers/

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread Geert Uytterhoeven
Hi Boris, On Tue, Feb 14, 2017 at 5:17 PM, Borislav Petkov wrote: > On Sun, Feb 12, 2017 at 10:12:07PM +0100, Mathias Krause wrote: >> Those member serve no purpose -- not even fill padding for alignment or >> such. So just get rid of them. > > Well, almost. You need the wp_works_ok removal patch

[PATCH] staging: fwserial: replace 'a' with '(a)' to avoid precedence issues

2017-02-14 Thread Arushi Singhal
Macro argument 'a' may be better as '(a)' to avoid precedence issues as reported by checkpatch.pl Signed-off-by: Arushi Singhal --- drivers/staging/fwserial/fwserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwser

Re: [PATCH v4 1/1] DM: inplace compressed DM target (fwd)

2017-02-14 Thread Ram Pai
stem] > > url: > https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170214-055727 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git > for-next > :: branch date: 3 hours ago > :: commit date: 3

[PATCH v3 6/6] MAINTAINERS: Add entry for THUNDERX GPIO Driver.

2017-02-14 Thread David Daney
Signed-off-by: David Daney --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 107c10e..9238cd0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10904,6 +10904,11 @@ M: Andreas Noever S: Maintained F: drivers/thunderbolt/ +THUNDE

[PATCH v3 1/6] genirq: Export more irq_chip_*_parent() functions.

2017-02-14 Thread David Daney
Many of the family of functions including irq_chip_mask_parent(), irq_chip_unmask_parent() are exported, but not all. Add EXPORT_SYMBOL_GPL to irq_chip_enable_parent, irq_chip_disable_parent and irq_chip_set_affinity_parent, so they likewise are usable from modules. Signed-off-by: David Daney --

[PATCH v3 2/6] genirq: Add handle_fasteoi_{level,edge}_irq flow handlers.

2017-02-14 Thread David Daney
Follow-on patch for gpio-thunderx uses a irqdomain hierarchy which requires slightly different flow handlers, add them to chip.c which contains most of the other flow handlers. Signed-off-by: David Daney --- include/linux/irq.h | 2 ++ kernel/irq/chip.c | 102

[PATCH v3 3/6] irqdomain: Add irq_domain_{push,pop}_irq() functions.

2017-02-14 Thread David Daney
For an already existing irqdomain hierarchy, as might be obtained via a call to pci_enable_msix(), a PCI driver wishing to add an additional irqdomain to the hierarchy needs to be able to insert the irqdomain to that already initialized hierarchy. Calling irq_domain_create_hierarchy() allows the n

[PATCH v3 5/6] gpio: Add gpio driver support for ThunderX and OCTEON-TX

2017-02-14 Thread David Daney
Cavium ThunderX and OCTEON-TX are arm64 based SoCs. Add driver for the on-chip GPIO pins. Signed-off-by: David Daney --- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile| 1 + drivers/gpio/gpio-thunderx.c | 490 +++ 3 files changed, 4

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-14 Thread Pavel Machek
Hi! > > > > Hmm. I moved keyboard between USB ports, and now 4.10-rc6 no longer > > > > boots. v4.6 works ok. Let me try with keyboard unplugged... no, I > > > > could not get it to work. I believe v4.9 and some v4.10-rc's worked, > > > > but I'll have to double check. > > > > > > But all the ker

Re: [PATCH V2] audit: log module name on init_module

2017-02-14 Thread Steve Grubb
On Monday, February 13, 2017 4:20:55 PM EST Paul Moore wrote: > On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: > > This adds a new auxiliary record MODULE_INIT to the SYSCALL event. > > > > We get finit_module for free since it made most sense to hook this in to > > load_module(). > >

[PATCH] f2fs: fix multiple f2fs_add_link() calls having same name

2017-02-14 Thread Jaegeuk Kim
VFS uses f2fs_lookup() to decide f2fs_add_link() call during file creation. But, if there is a race condition, f2fs_add_link() can be called multiple times, resulting in multiple dentries with a same name. This patches fixes it by adding __f2fs_find_entry() in f2fs_add_link() path. Cc: Signed-off

Re: [PATCH v4 net-next 0/8] sunvnet driver updates

2017-02-14 Thread David Miller
From: Shannon Nelson Date: Mon, 13 Feb 2017 10:56:56 -0800 > The sunvnet ldom virtual network driver was due for some updates and > a bugfix or two. These patches address a few items left over from > last year's make-over. > > v2: > - changed memory barrier fix to use smp_wmb > - put NETIF_F_

Re: [PATCH 3/4] ptp: use is_visible method to hide unused attributes

2017-02-14 Thread Dmitry Torokhov
Hi Richard, On Tue, Feb 14, 2017 at 09:42:26AM +0100, Richard Cochran wrote: > On Mon, Feb 13, 2017 at 07:51:07PM -0800, Dmitry Torokhov wrote: > > Instead of creating selected attributes after the device is created (and > > after userspace potentially seen uevent), lets use attribute group > > is

Re: [PATCH] staging: fwserial: replace 'a' with '(a)' to avoid precedence issues

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 11:26:20PM +0530, Arushi Singhal wrote: > Macro argument 'a' may be better as '(a)' to avoid precedence issues as > reported by checkpatch.pl > > Signed-off-by: Arushi Singhal > --- > drivers/staging/fwserial/fwserial.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/2] staging: vt6656: Alignment should match open parenthesis

2017-02-14 Thread Arushi Singhal
Fix checkpatch issues: "CHECK: Alignment should match open parenthesis" Signed-off-by: Arushi Singhal --- drivers/staging/vt6656/firmware.c | 34 +- drivers/staging/vt6656/key.h | 2 +- drivers/staging/vt6656/rf.c | 12 ++-- drivers/staging/vt6

Re: [PATCH 01/15] staging: rtl8192u: fixing white space issue

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 11:16:59PM +0530, SIMRAN SINGHAL wrote: > While resending them ...do I have to mention v2. Of course, why wouldn't you? :) thanks, greg k-h

Re: [PATCH v2 04/10] mm, page_alloc: count movable pages when stealing from pageblock

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:37PM +0100, Vlastimil Babka wrote: > When stealing pages from pageblock of a different migratetype, we count how > many free pages were stolen, and change the pageblock's migratetype if more > than half of the pageblock was free. This might be too conservative, as ther

Re: [PATCH V2] audit: log module name on init_module

2017-02-14 Thread Richard Guy Briggs
On 2017-02-14 13:02, Steve Grubb wrote: > On Monday, February 13, 2017 4:20:55 PM EST Paul Moore wrote: > > On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: > > > This adds a new auxiliary record MODULE_INIT to the SYSCALL event. > > > > > > We get finit_module for free since it made mos

Re: [PATCH] usb: musb: add code comment for clarification

2017-02-14 Thread Gustavo A. R. Silva
Quoting Greg KH : On Fri, Feb 10, 2017 at 06:57:41PM -0600, Gustavo A. R. Silva wrote: Add code comment to make it clear that the fall-through is intentional. Read the link for more details: https://lkml.org/lkml/2017/2/9/292 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/musb/musb_core

Re: [PATCH v2 05/10] mm, compaction: change migrate_async_suitable() to suitable_migration_source()

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:38PM +0100, Vlastimil Babka wrote: > Preparation for making the decisions more complex and depending on > compact_control flags. No functional change. > > Signed-off-by: Vlastimil Babka Acked-by: Johannes Weiner

Re: [PATCH] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby)

2017-02-14 Thread Jason Cooper
Hi Ralph, Imre, On Tue, Feb 14, 2017 at 09:59:17AM +0100, Ralph Sennhauser wrote: > The Linksys WRT1900ACS (Shelby) is another Armada 385 based router in > the Linksys WRT AC Series which got released in October 2015. > > The file armada-385-linksys-shelby.dts is taken from OpenWrt as-is and > or

Re: [PATCH 3/4] ptp: use is_visible method to hide unused attributes

2017-02-14 Thread Richard Cochran
On Tue, Feb 14, 2017 at 10:07:47AM -0800, Dmitry Torokhov wrote: > > At first glance, this patch and the next look like nice improvements. > > I don't futz around with sysfs code very often, and so may I ask how > > or whether you tested it? > > I used the hack below. OK, thats fine. I'll be sur

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread H. Peter Anvin
On 02/12/17 13:12, Mathias Krause wrote: > As of commit a5c2a893dbd4 ("x86, 386 removal: Remove > CONFIG_X86_WP_WORKS_OK") the kernel won't boot if CR0.WP isn't working > correctly. This makes a process reading this file always see "wp : yes" > here -- otherwise there would be no process to begin w

Re: [PATCH v2 06/10] mm, compaction: add migratetype to compact_control

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:39PM +0100, Vlastimil Babka wrote: > Preparation patch. We are going to need migratetype at lower layers than > compact_zone() and compact_finished(). > > Signed-off-by: Vlastimil Babka Acked-by: Johannes Weiner

Re: [PATCH 1/2] spi: imx: dynamic burst length adjust for PIO mode

2017-02-14 Thread Mark Brown
On Wed, Feb 08, 2017 at 03:20:27PM +0900, Jiada Wang wrote: This looks basically fine, a couple of fairly minor things here: > + for (i = 0; i < transfer->len / 4; i++) { > + u8 temp; > + > + temp = *(buf + i * 4); > + *(buf + i * 4) = *(buf + i * 4 + 3); >

[PATCH v2] usb: musb: add code comment for clarification

2017-02-14 Thread Gustavo A. R. Silva
Add code comment to make it clear that the fall-through is intentional. Read the link for more details: https://lkml.org/lkml/2017/2/9/292 Addresses-Coverity-ID: 1397608 Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Fix tabs and line-wrapping in previous patch. drivers/usb/musb/musb_co

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread Borislav Petkov
On Tue, Feb 14, 2017 at 06:56:22PM +0100, Geert Uytterhoeven wrote: > That's because No, what Mathias said. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

[PATCH v2 1/4] ptp: do not explicitly set drvdata in ptp_clock_register()

2017-02-14 Thread Dmitry Torokhov
We do not need explicitly call dev_set_drvdata(), as it is done for us by device_create(). Acked-by: Richard Cochran Signed-off-by: Dmitry Torokhov --- drivers/ptp/ptp_clock.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 9c13381b69

[PATCH v2 0/4] PTP attribute handling cleanup

2017-02-14 Thread Dmitry Torokhov
PTP core was creating some attributes, such as "period" and "fifo", and the entire "pins" attribute group, after creating class deevice, which creates a race for userspace: uevent may arrive before all attributes are created. This series of patches switches PTP to use is_visible() to control visib

[PATCH v2 3/4] ptp: use is_visible method to hide unused attributes

2017-02-14 Thread Dmitry Torokhov
Instead of creating selected attributes after the device is created (and after userspace potentially seen uevent), lets use attribute group is_visible() method to control which attributes are shown. This will allow us to create all attributes (except "pins" group, which will be taken care of later)

[PATCH v2 2/4] ptp: use kcalloc when allocating arrays

2017-02-14 Thread Dmitry Torokhov
kcalloc is more semantically correct when allocating arrays of objects, and overflow-safe. Signed-off-by: Dmitry Torokhov --- drivers/ptp/ptp_sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ptp/ptp_sysfs.c b/drivers/ptp/ptp_sysfs.c index 53d43954a974..27c

perf pmu: clang points out: address of array 'alias->unit' will always evaluate to 'true'

2017-02-14 Thread Arnaldo Carvalho de Melo
util/pmu.c:948:28: error: address of array 'alias->unit' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if ((info->unit && alias->unit) || ~~ ~~~^~~~ util/pmu.c:953:13: error: address of array 'alias->unit' will always evaluate to 'true' [-W

Re: [PATCH v2] usb: musb: add code comment for clarification

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 12:20:39PM -0600, Gustavo A. R. Silva wrote: > Add code comment to make it clear that the fall-through is intentional. > Read the link for more details: https://lkml.org/lkml/2017/2/9/292 > > Addresses-Coverity-ID: 1397608 > Signed-off-by: Gustavo A. R. Silva > --- > Chang

Re: [PATCH] crypto: cavium: fix Kconfig dependencies

2017-02-14 Thread Randy Dunlap
On 02/14/17 09:09, David Daney wrote: > On 02/14/2017 09:07 AM, Arnd Bergmann wrote: >> The driver fails to build if MSI support is disabled: >> >> In file included from >> /git/arm-soc/drivers/crypto/cavium/cpt/cptpf_main.c:18:0: >> drivers/crypto/cavium/cpt/cptpf.h:57:20: error: array type has i

Re: [RFC,v2 3/3] sched: ignore task_h_load for CPU_NEWLY_IDLE

2017-02-14 Thread Uladzislau Rezki
>> >> So that is useful information that should have been in the Changelog. >> >> OK, can you respin this patch with adjusted Changelog and taking Mike's >> feedback? >> > Yes, i will prepare a patch accordingly, no problem. > >> >> Also, I worry about the effects of this on !PREEMPT kernels, the f

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Peter Zijlstra
On Wed, Feb 15, 2017 at 01:56:45AM +0900, Sergey Senozhatsky wrote: > that crossed my mind, but I kinda assumed that we do printk() from > under tk_core using sched fair, and rt_runtime_lock is from sched rt. That's all true; lockdep doesn't care :-) All it knows is that at some point those locks

Re: [PATCH] crypto: cavium: fix Kconfig dependencies

2017-02-14 Thread David Daney
On 02/14/2017 10:26 AM, Randy Dunlap wrote: On 02/14/17 09:09, David Daney wrote: On 02/14/2017 09:07 AM, Arnd Bergmann wrote: The driver fails to build if MSI support is disabled: In file included from /git/arm-soc/drivers/crypto/cavium/cpt/cptpf_main.c:18:0: drivers/crypto/cavium/cpt/cptpf.h

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread Borislav Petkov
On Tue, Feb 14, 2017 at 10:13:22AM -0800, H. Peter Anvin wrote: > Potential userspace breakage, which is why the line was left in the We could keep the string in /proc/cpuinfo for compatibility but kill the cpuinfo_x86 members. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid

Re: [PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 14, 2017 at 07:21:34PM +0200, Alexander Shishkin wrote: > Peter Zijlstra writes: > > > On Tue, Feb 14, 2017 at 06:17:30PM +0200, Alexander Shishkin wrote: > >> This is called by pmu::add(), which checks hw.state afterwards and if it > >> finds HES_STOPPED, it returns an error, which e

Re: [PATCH V2] audit: log module name on init_module

2017-02-14 Thread Paul Moore
On Tue, Feb 14, 2017 at 1:11 PM, Richard Guy Briggs wrote: > On 2017-02-14 13:02, Steve Grubb wrote: >> On Monday, February 13, 2017 4:20:55 PM EST Paul Moore wrote: >> > On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: >> > > This adds a new auxiliary record MODULE_INIT to the SYSCALL e

Re: [PATCH v3 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP

2017-02-14 Thread Stefano Stabellini
On Tue, 14 Feb 2017, Boris Ostrovsky wrote: > On 02/13/2017 12:03 PM, Paul Durrant wrote: > > Recently a new dm_op[1] hypercall was added to Xen to provide a mechanism > > for restricting device emulators (such as QEMU) to a limited set of > > hypervisor operations, and being able to audit those op

[PATCHv5 1/5] x86/mm: introduce arch_rnd() to compute 32/64 mmap rnd

2017-02-14 Thread Dmitry Safonov
To fix 32-bit mmap() syscall returning pointer higher than 4Gb in 64-bit binaries, two mmap bases will be used: one for mapping with 32-bit syscalls and another for 64-bit syscall. To correctly place those two bases, introduce arch_rnd() function, which will return the random factor independently o

[PATCHv5 3/5] x86/mm: introduce mmap_compat_base for 32-bit mmap()

2017-02-14 Thread Dmitry Safonov
mmap() uses base address, from which it starts to look for a free space for allocation. At this moment there is one mm->mmap_base, which is calculated during exec(). The address depends on task's size, set rlimit for stack, ASLR randomization. As task size and number of random bits differ between 6

[PATCHv5 5/5] selftests/x86: add test for 32-bit mmap() return addr

2017-02-14 Thread Dmitry Safonov
This test calls 32-bit mmap() through int 0x80 and checks /proc/self/maps for allocated VMA's address - it should be downer than 4 Gb. Just accessing allocated with mmap pointer will not work, as we could have some VMA placed on the same address as lower 4 bytes of the new mapping. As allocation is

[PATCHv5 0/5] Fix compatible mmap() return pointer over 4Gb

2017-02-14 Thread Dmitry Safonov
There are a couple of fixes related to x86 mmap(): o 1-2 are just preparation to introduce new mmap bases o 3 fixes 32-bit syscall returning address over 4Gb in applications, launched from 64-bit binaries. This is done by introducing new bases: mmap_compat_base and mmap_compat_legacy_base. Th

[PATCHv5 2/5] x86/mm: add task_size parameter to mmap_base()

2017-02-14 Thread Dmitry Safonov
To correctly handle 32-bit and 64-bit mmap() syscalls, we need different mmap bases to start allocation from. So, introduce mmap_legacy_base() helper and change mmap_base() to return base address according to specified task size. It'll prepare the mmap base computing code for splitting mmap_base on

[PATCHv5 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-02-14 Thread Dmitry Safonov
Result of mmap() calls with MAP_32BIT flag at this moment depends on thread flag TIF_ADDR32, which is set during exec() for 32-bit apps. It's broken as the behavior of mmap() shouldn't depend on exec-ed application's bitness. Instead, it should check the bitness of mmap() syscall. How it worked bef

[PATCH v2 4/4] ptp: create "pins" together with the rest of attributes

2017-02-14 Thread Dmitry Torokhov
Let's switch to using device_create_with_groups(), which will allow us to create "pins" attribute group together with the rest of ptp device attributes, and before userspace gets notified about ptp device creation. Signed-off-by: Dmitry Torokhov --- drivers/ptp/ptp_clock.c | 20 +++

Re: [PATCH V2] audit: log module name on init_module

2017-02-14 Thread Steve Grubb
On Tuesday, February 14, 2017 1:38:36 PM EST Paul Moore wrote: > On Tue, Feb 14, 2017 at 1:11 PM, Richard Guy Briggs wrote: > > On 2017-02-14 13:02, Steve Grubb wrote: > >> On Monday, February 13, 2017 4:20:55 PM EST Paul Moore wrote: > >> > On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wro

Re: [PATCH] ACPI, APEI: Fix BERT resources conflict with ACPI NVS area

2017-02-14 Thread Baicar, Tyler
On 2/13/2017 7:01 PM, Huang, Ying wrote: From: Huang Ying It was reported that some firmware will use ACPI NVS area for BERT address range. This will cause resources conflict because the ACPI NVS area is marked as busy already. Fix this via excluding ACPI NVS area when requesting IO resources

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread H. Peter Anvin
On 02/14/17 09:56, Geert Uytterhoeven wrote: >> >> Well, almost. You need the wp_works_ok removal patch too, otherwise you >> have the 3 bytes hole below. > > That's because you removed a char in commit 93a829e8e2c292f1 > ("x86, cpu: Convert FDIV bug detection), without compensating with padding ;

Re: [PATCH v2] usb: musb: add code comment for clarification

2017-02-14 Thread Bin Liu
On Tue, Feb 14, 2017 at 10:25:11AM -0800, Greg KH wrote: > On Tue, Feb 14, 2017 at 12:20:39PM -0600, Gustavo A. R. Silva wrote: > > Add code comment to make it clear that the fall-through is intentional. > > Read the link for more details: https://lkml.org/lkml/2017/2/9/292 > > > > Addresses-Cover

Re: [PATCH]staging: fbtft: Fix sparse warnings about endianness

2017-02-14 Thread Al Viro
On Tue, Feb 14, 2017 at 09:18:25AM -0800, Greg KH wrote: > On Tue, Feb 14, 2017 at 04:53:10PM +0800, maomao xu wrote: > > Fixed sparse warnings about endianness. E.g.: > > > > warning: incorrect type in assignment (different base types) > > Why are these lines indented? > > > Signed-off-

[PATCH 1/3] powerpc: kprobes: add support for KPROBES_ON_FTRACE

2017-02-14 Thread Naveen N. Rao
Allow kprobes to be placed on ftrace _mcount() call sites. This optimization avoids the use of a trap, by riding on ftrace infrastructure. This depends on HAVE_DYNAMIC_FTRACE_WITH_REGS which depends on MPROFILE_KERNEL, which is only currently enabled on powerpc64le with newer toolchains. Based on

[PATCH 3/3] powerpc: kprobes: prefer ftrace when probing function entry

2017-02-14 Thread Naveen N. Rao
KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Though OPTPROBES provides us with similar performance, we have limited optprobes trampoline slots. As such, when asked to probe at a

[PATCH 2/3] powerpc: introduce a new helper to obtain function entry points

2017-02-14 Thread Naveen N. Rao
kprobe_lookup_name() is specific to the kprobe subsystem and may not always return the function entry point (in a subsequent patch). For looking up function entry points, introduce a separate helper and use the same in optprobes.c Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/code-pa

Re: [PATCH] mips: audit and remove any unnecessary uses of module.h

2017-02-14 Thread Paul Gortmaker
[Re: [PATCH] mips: audit and remove any unnecessary uses of module.h] On 14/02/2017 (Tue 10:10) James Hogan wrote: > On Sat, Jan 28, 2017 at 09:05:57PM -0500, Paul Gortmaker wrote: > > Historically a lot of these existed because we did not have > > a distinction between what was modular code and

Re: [PATCH] seccomp: Only dump core when single-threaded

2017-02-14 Thread Kees Cook
On Mon, Feb 13, 2017 at 10:37 PM, Andrei Vagin wrote: > On Tue, Feb 07, 2017 at 03:18:51PM -0800, Kees Cook wrote: >> The SECCOMP_RET_KILL filter return code has always killed the current >> thread, not the entire process. Changing this as a side-effect of dumping >> core isn't a safe thing to do

Re: [PATCH] xfs: fix len comparison in xfs_extent_busy_trim

2017-02-14 Thread Christoph Hellwig
Thanks Arnd, this looks good: Reviewed-by: Christoph Hellwig

make pdfdocs errors with 4.10-rc8

2017-02-14 Thread Jim Davis
On a Fedora 25 system, [...] build succeeded, 32 warnings. make PDFLATEX=xelatex LATEXOPTS="-interaction=batchmode" -C Documentation/output/./latex; xelatex -interaction=batchmode 'linux-user.tex' This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016) (preloaded format=xelatex) restricted

  1   2   3   4   5   6   7   8   >