Re: [PATCH RT] Align rt_mutex inlining with upstream behavior

2017-02-10 Thread Sebastian Andrzej Siewior
On 2017-02-10 10:09:29 [-0800], Andy Ritger wrote: > Is the > > WARN_ON(rt_mutex_is_locked(lock)); > > in rt_mutex_destroy() valuable in non-CONFIG_DEBUG_MUTEXES kernels, > such that it would be better to always call it, and not noop away > mutex_destroy() > non-CONFIG_DEBUG_MUTEXES kernels?

RE: [PATCH 2/2] x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method

2017-02-10 Thread Thomas Gleixner
On Fri, 10 Feb 2017, Stephen Hemminger wrote: > Since sequence count algorithm is done by hypervisor, better to not reuse > seqcount. > Still concerned that the code is racy. That's a different question and can only be answered by the hypervisor folks. Dunno, whether they have barrier requiremen

Re: [PATCH] timers: Don't wake ktimersoftd on every tick

2017-02-10 Thread Sebastian Andrzej Siewior
On 2017-02-03 12:21:12 [-0600], Haris Okanovic wrote: > Collect expired timers in interrupt context to avoid overhead of waking > ktimersoftd on every tick. ktimersoftd now wakes only when one or more > timers are ready, which yields a minor reduction in small latency spikes. > > This is implement

Re: [PATCH RT] Align rt_mutex inlining with upstream behavior

2017-02-10 Thread Sebastian Andrzej Siewior
On 2017-02-03 08:49:24 [-0800], Andy Ritger wrote: > > So your problem is simply that your non-GPL module can't link anymore > > with -RT. Would it help you if I simply replace the export for > > mutex_destroy with EXPORT_SYMBOL and leave it the function as is? > > Yes, definitely. So this is wh

[PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices

2017-02-10 Thread Oscar Campos
Hi all, Since I have a Corsair Scimitar PRO RGB that does not works on Linux, I tried to find a solution doing some research but was not able to find any. The kernel just complained about not being able to parse one of the report descriptor items giving back an error -22, enabling the hid debug s

Re: [PATCH 1/1] mtd: spi-nor: remove WARN_ONCE() message in spi_nor_write()

2017-02-10 Thread Brian Norris
On Thu, Feb 09, 2017 at 02:50:02PM +0100, Cyrille Pitchen wrote: > In most, if not all, cases this warning is a false positive as for most > memories it is valid to write a single page with more than one Page Program > commands or to write data starting from the middle of the page. Right, I agree

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-10 Thread Abel Vesa
On Fri, Feb 10, 2017 at 02:57:38PM +0100, Jean-Jacques Hiblot wrote: > 2017-02-10 13:03 GMT+01:00 Abel Vesa : > > On Fri, Feb 10, 2017 at 11:36:12AM +0100, Jean-Jacques Hiblot wrote: > >> 2017-02-09 17:29 GMT+01:00 Russell King - ARM Linux > >> : > >> > On Tue, Feb 07, 2017 at 10:57:55PM +, Ab

Re: [PATCH 0/4] Whitespace checkpatch fixes

2017-02-10 Thread David Miller
From: "Tobin C. Harding" Date: Thu, 9 Feb 2017 17:56:03 +1100 > This patch set fixes various whitespace checkpatch errors and warnings. Series applied.

[PATCH v3 net-next 6/9] sunvnet: straighten up message event handling logic

2017-02-10 Thread Shannon Nelson
The use of gotos for handling the incoming events made this code harder to read and support than it should be. This patch straightens out and clears up the logic. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/sun/sunvnet_common.c | 94 ++--- 1 files changed, 4

[PATCH v3 net-next 0/9] sunvnet driver updates

2017-02-10 Thread Shannon Nelson
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_SG back into the advertised ldmvsw hw_features v3: - the sunvnet_common m

Re: [PATCH net-next v3 06/10] net: dsa: Migrate to device_find_class()

2017-02-10 Thread Florian Fainelli
On 02/10/2017 05:02 AM, Greg KH wrote: > On Thu, Jan 19, 2017 at 04:51:55PM +, Russell King - ARM Linux wrote: >> (This is mainly for Greg's benefit to help him understand the issue.) >> >> I think the diagram you gave initially made this confusing, as it >> talks about a CPU(sic) producing the

Re: net/packet: use-after-free in packet_rcv_fanout

2017-02-10 Thread Cong Wang
On Fri, Feb 10, 2017 at 10:02 AM, Eric Dumazet wrote: > On Fri, 2017-02-10 at 09:59 -0800, Eric Dumazet wrote: >> On Fri, 2017-02-10 at 09:49 -0800, Cong Wang wrote: >> > On Thu, Feb 9, 2017 at 7:23 PM, Eric Dumazet >> > wrote: >> > > On Thu, 2017-02-09 at 19:19 -0800, Eric Dumazet wrote: >> > >

Re: [PATCH V2 net] net: hns: Fix the device being used for dma mapping during TX

2017-02-10 Thread David Miller
From: Salil Mehta Date: Thu, 9 Feb 2017 11:46:15 + > From: Kejian Yan > > This patch fixes the device being used to DMA map skb->data. > Erroneous device assignment causes the crash when SMMU is enabled. > This happens during TX since buffer gets DMA mapped with device > correspondign to ne

[PATCH] ASoC: fsl_sai: support more than 2 channels

2017-02-10 Thread Alexandre Belloni
The FSL SAI can support up to 32 channels using TDM. Report that value so they can actually be used. Tested using 8 channels. Signed-off-by: Alexandre Belloni --- sound/soc/fsl/fsl_sai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/

[PATCH v3 net-next 8/9] ldmvsw: update and simplify version string

2017-02-10 Thread Shannon Nelson
New version and simplify the print code. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/sun/ldmvsw.c | 14 -- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/sun/ldmvsw.c b/drivers/net/ethernet/sun/ldmvsw.c index 3999fb7..3ef5c08 100644

[PATCH v3 net-next 2/9] sunvnet: remove unused variable in maybe_tx_wakeup

2017-02-10 Thread Shannon Nelson
From: Sowmini Varadhan The vio_dring_state *dr variable is unused in maybe_tx_wakeup(). As the comments indicate, we call maybe_tx_wakeup() whenever we get a STOPPED LDC message on the port. If the queue is stopped, we want to wake it up so that we will send another START message at the next TX a

[PATCH v3 net-next 5/9] sunvnet: add memory barrier before check for tx enable

2017-02-10 Thread Shannon Nelson
In order to allow the underlying LDC and outstanding memory operations to potentially catch up with the driver's Tx requests, add a memory barrier before checking again for available tx descriptors. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/sun/sunvnet_common.c |1 + 1 files cha

Re: [RFC][PATCH 00/21] tracing: Inter-event (e.g. latency) support

2017-02-10 Thread Tom Zanussi
Hi Namhyung, On Fri, 2017-02-10 at 13:16 +0900, Namhyung Kim wrote: > Hi Tom, > > On Wed, Feb 08, 2017 at 11:24:56AM -0600, Tom Zanussi wrote: > > This patchset adds support for 'inter-event' quantities to the trace > > event subsystem. The most important example of inter-event quantities > > ar

Re: alarm timer/timerfd expiration does not abort suspend operation

2017-02-10 Thread John Stultz
On Fri, Feb 10, 2017 at 1:43 AM, Thomas Gleixner wrote: > On Fri, 3 Feb 2017, Gabriel Beddingfield wrote: >> Hi Thomas and John, >> >> TL;DR: if an alarmtimer-backed timerfd expires just prior to >> alarmtimer_suspend() begin called, the system will continue to go into >> suspend (with possibly no

[PATCH v3 net-next 9/9] ldmvsw: disable tso and gso for bridge operations

2017-02-10 Thread Shannon Nelson
The ldmvsw driver is specifically for supporting the ldom virtual networking by running in the primary ldom and using the LDC to connect the remaining ldoms to the outside world via a bridge. With TSO and GSO supported while connected the bridge, things tend to misbehave as seen in our case by del

[PATCH v3 net-next 4/9] sunvnet: add driver stats for ethtool support

2017-02-10 Thread Shannon Nelson
Since we're collecting some stats in the driver code, let's support use of the ethtool driver stats facility in both sunvnet and ldmvsw. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/sun/ldmvsw.c | 63 + drivers/net/ethernet/sun/sunvnet.c|

[PATCH v3 net-next 3/9] sunvnet: update version and version printing

2017-02-10 Thread Shannon Nelson
There have been several changes since the first version of this code, so we bump the version number. While we're at it, we can simplify the version printing a bit and drop a couple lines of code. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/sun/sunvnet.c | 14 -- 1 files

Re: [PATCH] compiler/compiler-gcc: Add __fallthrough

2017-02-10 Thread Joe Perches
On Fri, 2017-02-10 at 14:18 -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 10, 2017 at 09:08:35AM -0800, Joe Perches escreveu: > > gcc v7.0 can warn on missing break statements from case labels > > using a special __attribute__((fallthrough))__ marker. > > > > Add a __fallthrough convenience

Re: [PATCH v5 3/8] PCI: Don't block runtime PM for Thunderbolt host hotplug ports

2017-02-10 Thread Bjorn Helgaas
On Sun, Jan 15, 2017 at 09:03:45PM +0100, Lukas Wunner wrote: > Hotplug ports generally block their parents from suspending to D3hot as > otherwise their interrupts couldn't be delivered. This sounds related to PCIe r3.1, sec 5.3.1.4, which says functions supporting PME generation from D3 must sup

[ANNOUNCE] v4.9.9-rt6

2017-02-10 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.9.9-rt6 patch set. Changes since v4.9.9-rt5: - The timer softirq was woken up under certain circumstances where it could have been avoided. Patch by Haris Okanovic. - Alex Goins noticed that a GPL only symbol will be forced on -RT which

Re: [PATCH] net: ethernet: ti: netcp_core: remove netif_trans_update

2017-02-10 Thread David Miller
From: Ivan Khoronzhuk Date: Thu, 9 Feb 2017 16:17:40 +0200 > No need to update jiffies in txq->trans_start twice and only for tx 0, > it's supposed to be done in netdev_start_xmit() and per tx queue. > > Signed-off-by: Ivan Khoronzhuk > --- > Based on net-next/master Applied, thanks.

[PATCH v2] staging: bcm2835-audio: fix trailing statements

2017-02-10 Thread AbdAllah-MEZITI
Trailing statements should be on next line. Signed-off-by: AbdAllah-MEZITI v2:braces {} should be used on all arms of this statement --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835-vch

Re: [PATCH] x86/selftests: add clobbers for int80 on x86_64

2017-02-10 Thread Dmitry Safonov
On 02/10/2017 07:45 PM, Andy Lutomirski wrote: On Fri, Feb 10, 2017 at 8:28 AM, Dmitry Safonov wrote: On 02/10/2017 07:13 PM, Andy Lutomirski wrote: On Fri, Feb 10, 2017 at 3:52 AM, Dmitry Safonov wrote: Kernel erases R8..R11 registers prior returning to userspace from int80: https://lkml.

[PATCH 2/2] HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e

2017-02-10 Thread Oscar Campos
This mouse sold by Corsair as Scimitar PRO RGB defines two consecutive Logical Minimum items in its Application (Consumer.0001) report making it non parseable. This driver fixes the report descriptor overriding byte 77 in rdesc from 0x16 (Logical Minimum with 16 bits value) to 0x26 (Logical Maximum

Re: [PATCH] xen-netfront: Delete rx_refill_timer in xennet_disconnect_backend()

2017-02-10 Thread David Miller
From: Boris Ostrovsky Date: Thu, 9 Feb 2017 08:42:59 -0500 > Are you going to take this to your tree or would you rather it goes > via Xen tree? Ok, I just did. > And the same question for > > https://lists.xenproject.org/archives/html/xen-devel/2017-02/msg00625.html As I stated in the thread

Re: pull-request: wireless-drivers-next 2017-02-09

2017-02-10 Thread David Miller
From: Kalle Valo Date: Thu, 09 Feb 2017 16:08:25 +0200 > another pull request for net-next. If the merge window starts on Sunday > this would be the last pull request from me with new features. But if it > doesn't open, I'm planning to send one more next week. > > Please let me know if there any

Re: [PATCH] staging: r8712u: remove unnecessary le32_to_cpu

2017-02-10 Thread Perry Hooker
Ouch. My apologies. I'll take more care next time. I've supplied an updated patch that uses the __le32 type for *(pbuf + 1). On Fri, Feb 10, 2017 at 8:07 AM, Larry Finger wrote: > On 02/10/2017 08:58 AM, Greg KH wrote: >> >> On Fri, Feb 10, 2017 at 08:52:12AM -0600, Larry Finger wrote: >>> >>> On

Re: [RFC][PATCH 00/21] tracing: Inter-event (e.g. latency) support

2017-02-10 Thread Tom Zanussi
Hi Masami, On Fri, 2017-02-10 at 18:34 +0900, Masami Hiramatsu wrote: > On Fri, 10 Feb 2017 13:16:17 +0900 > Namhyung Kim wrote: > > > > > > > Example - wakeup latency > > > > > > > > > This basically implements the -RT latency_hist 'wakeup_latency' > > > histogram using the

Re: [PATCH v2] media: s5p_mfc print buf pointer in hex constistently

2017-02-10 Thread Joe Perches
On Fri, 2017-02-10 at 08:40 -0700, Shuah Khan wrote: > Fix s5p_mfc_set_dec_frame_buffer_v6() to print buffer pointer in hex to be > consistent with the rest of the messages in the routine. More curiously, why is buf_addr a size_t and not a dma_addr_t? > Signed-off-by: Shuah Khan > --- > > Fixed

[PATCH v2] staging: bcm2835-audio: fix trailing statements

2017-02-10 Thread AbdAllah-MEZITI
Trailing statements should be on next line. Signed-off-by: AbdAllah-MEZITI v2:braces {} should be used on all arms of this statement --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835-vch

Re: [PATCH] jump_label: don't export section tags

2017-02-10 Thread Steven Rostedt
On Fri, 10 Feb 2017 19:29:44 +0200 "Michael S. Tsirkin" wrote: > These are supplied by the linker and only used by jump_label.c. > This trivial patch moves them out of jump_label.h. > > Cc: Jason Baron > Cc: Peter Zijlstra > Cc: Steven Rostedt > Cc: Borislav Petkov > Cc: Andrew Morton > Cc:

[PATCH] perf/x86/intel: Add Kabylake support

2017-02-10 Thread Srinivas Pandruvada
Added Kabylake mobile and desktop models for rapl, cstates and uncore. They should be same as Skylake. Signed-off-by: Srinivas Pandruvada --- arch/x86/events/intel/cstate.c | 3 +++ arch/x86/events/intel/rapl.c | 3 +++ arch/x86/events/intel/uncore.c | 2 ++ 3 files changed, 8 insertions(+) d

[PATCH] getirq: fix /proc/interrupts output alignment

2017-02-10 Thread H Hartley Sweeten
If the irq_desc being output does not have a domain the information following the 'name' is not aligned correctly. Signed-off-by: H Hartley Sweeten Cc: Thomas Gleixner --- kernel/irq/proc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index feaa813

[PATCH v3 net-next 7/9] sunvnet: remove extra rcu_read_unlocks

2017-02-10 Thread Shannon Nelson
The RCU read lock is grabbed first thing in sunvnet_start_xmit_common() so it always needs to be released. This removes the conditional release in the dropped packet error path and removes a couple of superfluous calls in the middle of the code. Reported-by: Bijan Mottahedeh Signed-off-by: Shann

Re: [PATCH V2 2/7] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-10 Thread Shaohua Li
On Fri, Feb 10, 2017 at 02:02:36PM +0100, Michal Hocko wrote: > On Fri 03-02-17 15:33:18, Shaohua Li wrote: > > Userspace indicates MADV_FREE pages could be freed without pageout, so > > it pretty much likes used once file pages. For such pages, we'd like to > > reclaim them once there is memory pr

Re: [PATCH V2 6/7] proc: show MADV_FREE pages info in smaps

2017-02-10 Thread Shaohua Li
On Fri, Feb 10, 2017 at 02:30:40PM +0100, Michal Hocko wrote: > $DESCRIPTION_OF_YOUR_USECASE_GOES_HERE > > Moreover Documentation/filesystems/proc.txt should be updated as well. > > Other than that, the patch looks good to me. Ok, will add more description and add doc for proc.txt. I don't have

Re: [PATCH] NET: mkiss: Fix panic

2017-02-10 Thread David Miller
From: Ralf Baechle Date: Thu, 9 Feb 2017 14:12:11 +0100 > If a USB-to-serial adapter is unplugged, the driver re-initializes, with > dev->hard_header_len and dev->addr_len set to zero, instead of the correct > values. If then a packet is sent through the half-dead interface, the > kernel will pa

Re: [PATCH] jump_label: don't export section tags

2017-02-10 Thread Jason Baron
On 02/10/2017 12:29 PM, Michael S. Tsirkin wrote: These are supplied by the linker and only used by jump_label.c. This trivial patch moves them out of jump_label.h. Cc: Jason Baron Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Borislav Petkov Cc: Andrew Morton Cc: Linus Torvalds Cc: Thomas G

Re: [PATCH 6/6] tpm2: add session handle context saving and restoring to the space code'

2017-02-10 Thread Jarkko Sakkinen
On Fri, Feb 10, 2017 at 08:11:18AM -0800, James Bottomley wrote: > On Fri, 2017-02-10 at 10:52 +0200, Jarkko Sakkinen wrote: > > On Wed, Feb 08, 2017 at 01:07:08PM +0200, Jarkko Sakkinen wrote: > > > + rc = tpm2_load_context(chip, space->session_buf, > > > +&

Re: [PATCH 6/6] tpm2: add session handle context saving and restoring to the space code

2017-02-10 Thread Jarkko Sakkinen
On Fri, Feb 10, 2017 at 08:17:11AM -0800, James Bottomley wrote: > On Fri, 2017-02-10 at 14:32 +0200, Jarkko Sakkinen wrote: > > On Wed, Feb 08, 2017 at 01:07:08PM +0200, Jarkko Sakkinen wrote: > > > From: James Bottomley > [...] > > > +static int tpm2_session_add(struct tpm_chip *chip, u32 handl

Re: [tpmdd-devel] [PATCH 6/6] tpm2: add session handle context saving and restoring to the space code

2017-02-10 Thread James Bottomley
On Fri, 2017-02-10 at 21:10 +0200, Jarkko Sakkinen wrote: > On Fri, Feb 10, 2017 at 08:17:11AM -0800, James Bottomley wrote: > > On Fri, 2017-02-10 at 14:32 +0200, Jarkko Sakkinen wrote: > > > On Wed, Feb 08, 2017 at 01:07:08PM +0200, Jarkko Sakkinen wrote: > > > > From: James Bottomley > > [...]

[PATCH] ubifs: Fix memory leak in error path in ubifs_mknod

2017-02-10 Thread Richard Weinberger
When fscrypt_setup_filename() fails we have to free dev. Signed-off-by: Richard Weinberger --- fs/ubifs/dir.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 528369f3e472..e164782f8bc8 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @

[PATCH v2 02/10] mm, compaction: remove redundant watermark check in compact_finished()

2017-02-10 Thread Vlastimil Babka
When detecting whether compaction has succeeded in forming a high-order page, __compact_finished() employs a watermark check, followed by an own search for a suitable page in the freelists. This is not ideal for two reasons: - The watermark check also searches high-order freelists, but has a less

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

2017-02-10 Thread Vlastimil Babka
Preparation patch. We are going to need migratetype at lower layers than compact_zone() and compact_finished(). Signed-off-by: Vlastimil Babka --- mm/compaction.c | 15 +++ mm/internal.h | 1 + 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mm/compaction.c b/mm/com

Re: [PATCH RT] Align rt_mutex inlining with upstream behavior

2017-02-10 Thread Alex Goins
This should work. Reviewed-by: Alex Goins Thanks, Alex On Fri, 10 Feb 2017, Sebastian Andrzej Siewior wrote: > On 2017-02-10 10:09:29 [-0800], Andy Ritger wrote: > > Is the > > > > WARN_ON(rt_mutex_is_locked(lock)); > > > > in rt_mutex_destroy() valuable in non-CONFIG_DEBUG_MUTEXES k

[PATCH v2 01/10] mm, compaction: reorder fields in struct compact_control

2017-02-10 Thread Vlastimil Babka
While currently there are (mostly by accident) no holes in struct compact_control (on x86_64), but we are going to add more bool flags, so place them all together to the end of the structure. While at it, just order all fields from largest to smallest. Signed-off-by: Vlastimil Babka --- mm/inter

Re: [PATCH] building libtraceevent with clang

2017-02-10 Thread Steven Rostedt
On Fri, 10 Feb 2017 14:03:17 -0300 Arnaldo Carvalho de Melo wrote: > Hi Steven, > > I tried building perf (and thus libtraceevent) with clang and > got this one: > > kbuffer-parse.c:312:7: warning: variable 'length' is used uninitialized > whenever switch case is taken [-Wsometimes-unini

[PATCH v2 00/10] try to reduce fragmenting fallbacks

2017-02-10 Thread Vlastimil Babka
Hi, this is a v2 of [1] from last year, which was a response to Johanes' worries about mobility grouping regressions. There are some new patches and the order goes from cleanups to "obvious wins" towards "just RFC" (last two patches). But it's all theoretical for now, I'm trying to run some tests

Re: [PATCH] perf/x86/intel: Add Kabylake support

2017-02-10 Thread Thomas Gleixner
On Fri, 10 Feb 2017, Srinivas Pandruvada wrote: > Added Kabylake mobile and desktop models for rapl, cstates and uncore. > They should be same as Skylake. Should be the same? Either they are or they are not. Thanks, tglx

Re: net/packet: use-after-free in packet_rcv_fanout

2017-02-10 Thread Sowmini Varadhan
On (02/10/17 10:00), Cong Wang wrote: > My understanding about the race here is packet_release() doesn't > wait for flying packets correctly, which leads to a flying packet still > refers to the struct sock which is being released. > > This could happen because struct packet_fanout is refcn'ted, i

RE: [PATCH 05/13] vmbus: remove per channel state

2017-02-10 Thread Stephen Hemminger
-Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Friday, February 10, 2017 6:47 AM To: KY Srinivasan Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; jasow...@redhat.com; leann.ogasaw...@ca

[PATCH] device-dax: don't set kobj parent during cdev init

2017-02-10 Thread Logan Gunthorpe
I copied this code and per feedback from Greg Kroah-Hartman [1] the cdev's kobject's parent should not be set to the related device. This should have minor consequences but isn't doing what anyone expects it to. This patch then fixes device-dax so it doesn't make the same mistake. [1] https://lkm

[PATCH] checkpatch: Notice unbalanced else braces in a patch

2017-02-10 Thread Joe Perches
Patches that add or modify code like } else or else { where one branch appears to have a brace and the other branch does not have a brace should emit a --strict style message. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 6 ++ 1 fi

Re: [PATCH -next] mtd: aspeed: remove redundant dev_err call in aspeed_smc_probe()

2017-02-10 Thread Brian Norris
On Thu, Feb 09, 2017 at 09:50:23AM +0100, Marek Vasut wrote: > On 02/08/2017 05:23 PM, Wei Yongjun wrote: > > From: Wei Yongjun > > > > There is a error message within devm_ioremap_resource > > already, so remove the dev_err call to avoid redundant > > error message. > > > > Signed-off-by: Wei Y

[PATCH v2 03/10] mm, page_alloc: split smallest stolen page in fallback

2017-02-10 Thread Vlastimil Babka
The __rmqueue_fallback() function is called when there's no free page of requested migratetype, and we need to steal from a different one. There are various heuristics to make this event infrequent and reduce permanent fragmentation. The main one is to try stealing from a pageblock that has the mos

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-10 Thread Logan Gunthorpe
Hey, Also on the subject of very minor fixes: I noticed drivers/dax is not in the maintainers file. I just assumed the nvdimm list should have been included with those from get_maintainers. Thanks, Logan On 10/02/17 12:19 PM, Logan Gunthorpe wrote: > I copied this code and per feedback from Gre

[tip:irq/core] genirq: Fix /proc/interrupts output alignment

2017-02-10 Thread tip-bot for H Hartley Sweeten
Commit-ID: f435da416beaacc8934fc21820d9488269b39c98 Gitweb: http://git.kernel.org/tip/f435da416beaacc8934fc21820d9488269b39c98 Author: H Hartley Sweeten AuthorDate: Fri, 10 Feb 2017 09:54:16 -0700 Committer: Thomas Gleixner CommitDate: Fri, 10 Feb 2017 20:17:52 +0100 genirq: Fix /proc/

Re: [RFC] syscalls: Restore address limit after a syscall

2017-02-10 Thread Russell King - ARM Linux
On Thu, Feb 09, 2017 at 06:42:34PM -0800, Andy Lutomirski wrote: > On Thu, Feb 9, 2017 at 3:41 PM, Thomas Garnier wrote: > > So by default it is in the wrapper. If selected, an architecture can > > disable the wrapper put it in the best places. Understood correctly? > > Sounds good to me. > > Pr

Re: alarm timer/timerfd expiration does not abort suspend operation

2017-02-10 Thread Gabriel Beddingfield
Hi John, Re-sending because VGER rejected my hipster HTML mail... sorry! On Fri, Feb 10, 2017 at 10:49 AM, John Stultz wrote: >> I see a few ways to fix it: >> >> 1. Create a wakeup_source for each timerfd, and if it's an alarm timer >> call >> __pm_stay_awake() in timerfd_triggered() and __pm_r

Re: [PATCH] perf/x86/intel: Add Kabylake support

2017-02-10 Thread Srinivas Pandruvada
On Fri, 2017-02-10 at 20:16 +0100, Thomas Gleixner wrote: > On Fri, 10 Feb 2017, Srinivas Pandruvada wrote: > > > Added Kabylake mobile and desktop models for rapl, cstates and > > uncore. > > They should be same as Skylake. > > Should be the same? Either they are or they are not. They are same.

[PATCH] staging: r8712u: use __le32 type for little-endian data

2017-02-10 Thread Perry Hooker
This patch fixes the following sparse warning: drivers/staging/rtl8712/usb_ops_linux.c:212:33: warning: cast to restricted __le32 Signed-off-by: Perry Hooker --- drivers/staging/rtl8712/usb_ops_linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-10 Thread Bart Van Assche
On Tue, 2017-02-07 at 18:24 +0100, Paolo Valente wrote: > (lock assertions, BUG_ONs, ...). Hello Paolo, If you are using BUG_ON(), does that mean that you are not aware of Linus' opinion about BUG_ON()? Please read https://lkml.org/lkml/2016/10/4/1. Thanks, Bart.

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

2017-02-10 Thread kbuild test robot
Hi Paul, [auto build test ERROR on xen-tip/linux-next] [also build test ERROR on v4.10-rc7 next-20170210] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Paul-Durrant/xen-privcmd-support-for

Re: [PATCH v4 0/3] Miscellaneous fixes for BPF (perf tree)

2017-02-10 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 08, 2017 at 09:27:41PM +0100, Mickaël Salaün escreveu: > This series brings some fixes and small improvements to the BPF samples. > > This is intended for the perf tree and apply on 7a5980f9c006 ("tools lib bpf: > Add missing header to the library"). Wang, are you ok with this series?

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-10 Thread Paolo Valente
> Il giorno 10 feb 2017, alle ore 19:34, Bart Van Assche > ha scritto: > > On Tue, 2017-02-07 at 18:24 +0100, Paolo Valente wrote: >> (lock assertions, BUG_ONs, ...). > > Hello Paolo, > > If you are using BUG_ON(), does that mean that you are not aware of Linus' > opinion about BUG_ON()? Plea

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

2017-02-10 Thread Boris Ostrovsky
On 02/10/2017 11:28 AM, Paul Durrant wrote: >> -Original Message- >> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] >> Sent: 10 February 2017 16:18 >> To: Paul Durrant ; xen-de...@lists.xenproject.org; >> linux-kernel@vger.kernel.org >> Cc: Juergen Gross >> Subject: Re: [PATCH v

[PATCH] checkpatch: add warning on %pk instead of %pK usage

2017-02-10 Thread william . c . roberts
From: William Roberts Sample output: WARNING: %pk is close to %pK, did you mean %pK?. \#20: FILE: drivers/char/applicom.c:230: + printk(KERN_INFO "Could not allocate IRQ %d for PCI Applicom device. %pk\n", dev->irq, pci_get_class); Signed-off-by: William Roberts --- scri

[Update][PATCH] perf/x86/intel: Add Kabylake support

2017-02-10 Thread Srinivas Pandruvada
Added Kabylake mobile and desktop models for rapl, cstates and uncore matching Skylake. Signed-off-by: Srinivas Pandruvada --- Update: Removed "should be" from commit description. arch/x86/events/intel/cstate.c | 3 +++ arch/x86/events/intel/rapl.c | 3 +++ arch/x86/events/intel/uncor

Re: [PATCH v2 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-10 Thread Russell King - ARM Linux
On Thu, Feb 09, 2017 at 05:04:17PM -0300, Thibault Saunier wrote: > From: Javier Martinez Canillas > > The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace > should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV. But drivers > don't agree on the display resolution that

Re: [PATCH 10/10] ARM: davinci: add pdata-quirks for da850-evm vpif display

2017-02-10 Thread Kevin Hilman
Hi Bartosz, Bartosz Golaszewski writes: > Similarly to vpif capture: we need to register the vpif display driver > and the corresponding adv7343 encoder in pdata-quirks as the DT > support is not complete. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/mach-davinci/pdata-quirks.c | 86

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-10 Thread Dan Williams
On Fri, Feb 10, 2017 at 11:19 AM, Logan Gunthorpe wrote: > I copied this code and per feedback from Greg Kroah-Hartman [1] the > cdev's kobject's parent should not be set to the related device. > This should have minor consequences but isn't doing what anyone > expects it to. > > This patch then f

Re: [PATCH] net: ethernet: ti: netcp_core: return netdev_tx_t in xmit

2017-02-10 Thread David Miller
From: Ivan Khoronzhuk Date: Thu, 9 Feb 2017 16:24:14 +0200 > @@ -1300,7 +1301,7 @@ static int netcp_ndo_start_xmit(struct sk_buff *skb, > struct net_device *ndev) > dev_warn(netcp->ndev_dev, "padding failed (%d), packet > dropped\n", >ret);

[PATCH v2] powerpc/pseries: Fix missing of_node_put

2017-02-10 Thread Christophe JAILLET
If 'dlpar_configure_connector()' fails, 'parent_dn' should be released. Signed-off-by: Christophe JAILLET --- v2: Reorder code in order to simplify the proposed patch --- arch/powerpc/platforms/pseries/mobility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/pl

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-10 Thread Greg Kroah-Hartman
On Fri, Feb 10, 2017 at 12:19:30PM -0700, Logan Gunthorpe wrote: > I copied this code and per feedback from Greg Kroah-Hartman [1] the > cdev's kobject's parent should not be set to the related device. > This should have minor consequences but isn't doing what anyone > expects it to. > > This patc

[PATCH 0/2] sched/deadline: Fixes for constrained deadline tasks

2017-02-10 Thread Daniel Bristot de Oliveira
While reading sched deadline code, I find out that a constrained deadline task could be replenished before the next period if activated after the deadline, opening the window to run for more than Q/P. The patch [2] explains and fixes this problem. Furthermore, while fixing this issue, I found that

[PATCH 1/2] sched/deadline: Replenishment timer should fire in the next period

2017-02-10 Thread Daniel Bristot de Oliveira
Currently, the replenishment timer is set to fire at the deadline of a task. Although that works for implicit deadline tasks because the deadline is equals to the begin of the next period, that is not correct for constrained deadline tasks (deadline < period). For instance: f.c: ---

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

2017-02-10 Thread Daniel Bristot de Oliveira
During the activation, CBS checks if it can reuse the current task's runtime and period. If the deadline of the task is in the past, CBS cannot use the runtime, and so it replenishes the task. This rule works fine for implicit deadline tasks (deadline == period), and the CBS was designed for implic

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-10 Thread Frank Rowand
On 02/03/17 19:36, Rob Herring wrote: > Many drivers have a common pattern of searching the OF graph for either an > attached panel or bridge and then finding the DRM struct for the panel > or bridge. Also, most drivers need to handle deferred probing when the > DRM device is not yet instantiated.

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-10 Thread Paolo Valente
> Il giorno 10 feb 2017, alle ore 19:13, Bart Van Assche > ha scritto: > > On 02/10/2017 08:49 AM, Paolo Valente wrote: >>> $ grep '^C.*_MQ_' .config >>> CONFIG_BLK_MQ_PCI=y >>> CONFIG_MQ_IOSCHED_BFQ=y >>> CONFIG_MQ_IOSCHED_DEADLINE=y >>> CONFIG_MQ_IOSCHED_NONE=y >>> CONFIG_DEFAULT_MQ_BFQ_MQ=y

Re: [PATCH] devicetree: Add video bus switch

2017-02-10 Thread Pavel Machek
> >>> > diff --git > >>> > a/Documentation/devicetree/bindings/media/video-bus-switch.txt > >>> > b/Documentation/devicetree/bindings/media/video-bus-switch.txt > >>> > new file mode 100644 > >>> > index 000..1b9f8e0 > >>> > --- /dev/null > >>> > +++ b/Documentation/devicetree/bindings/media

Re: [PATCH] [net-next] ARM: orion: fix PHYLIB dependency

2017-02-10 Thread Arnd Bergmann
On Friday, February 10, 2017 9:42:21 AM CET Florian Fainelli wrote: > On 02/10/2017 12:20 AM, Arnd Bergmann wrote: > > On Thu, Feb 9, 2017 at 7:22 PM, Florian Fainelli > > wrote: > >> On 02/09/2017 07:08 AM, Arnd Bergmann wrote: > >> I disabled CONFIG_NETDEVICES to force CONFIG_PHY not to be set

Re: [PATCHv4 1/5] x86/mm: split arch_mmap_rnd() on compat/native versions

2017-02-10 Thread Thomas Gleixner
On Thu, 9 Feb 2017, Borislav Petkov wrote: > I can't say that I'm thrilled about the ifdeffery this is adding. > > But I can't think of a cleaner approach at a quick glance, though - > that's generic and arch-specific code intertwined muck. Sad face. It's trivial enough to do Thanks,

Re: [PATCH] checkpatch: add warning on %pk instead of %pK usage

2017-02-10 Thread Joe Perches
On Fri, 2017-02-10 at 11:37 -0800, william.c.robe...@intel.com wrote: > From: William Roberts > > Sample output: > WARNING: %pk is close to %pK, did you mean %pK?. > \#20: FILE: drivers/char/applicom.c:230: > + printk(KERN_INFO "Could not allocate IRQ %d for PCI > Applicom de

[PATCH v3 net-next 1/9] sunvnet: make sunvnet common code dynamically loadable

2017-02-10 Thread Shannon Nelson
When the sunvnet_common code was split out for use by both sunvnet and the newer ldmvsw, it was made into a static kernel library, which limits the usefulness of sunvnet and ldmvsw as loadables, since most of the real work is being done in the shared code. Also, this is simply dead code in kernels

Re: [PATCH] PCI/MSI: Return error code if memory allocation fails

2017-02-10 Thread Bjorn Helgaas
On Fri, Jan 27, 2017 at 04:14:53PM +0100, Christophe JAILLET wrote: > If 'alloc_msi_entry()' fails, a few lines above, we free resources and set > 'ret = -ENOMEM'. > > However, the function returns 0, inconditionaly. > Returns the error code instead. > > Fixes: e75eafb9b039 ("genirq/msi: Switch t

[PATCH 2/2] net: fs_enet: Simplify code

2017-02-10 Thread Christophe JAILLET
There is no need to use an intermediate variable to handle an error code in this case. Signed-off-by: Christophe JAILLET --- I think that the remaining use of 'err' a few lines above could also be dropped. However, it could change the return value (i.e. propagation of the error returned by 'of_ph

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-10 Thread Greg Kroah-Hartman
On Fri, Feb 10, 2017 at 11:41:20AM -0800, Dan Williams wrote: > On Fri, Feb 10, 2017 at 11:19 AM, Logan Gunthorpe wrote: > > I copied this code and per feedback from Greg Kroah-Hartman [1] the > > cdev's kobject's parent should not be set to the related device. > > This should have minor consequen

[PATCH 1/2] net: fs_enet: Fix an error handling path

2017-02-10 Thread Christophe JAILLET
'of_node_put(fpi->phy_node)' should also be called if we branch to 'out_deregister_fixed_link' error handling path. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet

Re: [PATCHv4 1/5] x86/mm: split arch_mmap_rnd() on compat/native versions

2017-02-10 Thread Borislav Petkov
On Fri, Feb 10, 2017 at 09:10:30PM +0100, Thomas Gleixner wrote: > On Thu, 9 Feb 2017, Borislav Petkov wrote: > > I can't say that I'm thrilled about the ifdeffery this is adding. > > > > But I can't think of a cleaner approach at a quick glance, though - > > that's generic and arch-specific code

Re: [PATCH] PCI: Xilinx NWL: Remove mask for messages not supported by AXI

2017-02-10 Thread Bjorn Helgaas
On Tue, Jan 31, 2017 at 02:29:30PM +0530, Bharat Kumar Gogada wrote: > - Removing support for vendor defined messages which are not > suppoerted by AXI > > Signed-off-by: Bharat Kumar Gogada Applied to pci/host-xilinx for v4.11, thanks. Bharat, get_maintainer.pl lists you as a contributor, but

Re: [PATCH 1/3 v2] usb: host: fotg2: add device tree probing

2017-02-10 Thread Arnd Bergmann
On Friday, February 10, 2017 2:12:36 PM CET Linus Walleij wrote: > > > + /* Right now device-tree probed devices don't get dma_mask set. > > +* Since shared usb code relies on it, set it here for now. > > +* Once we have dma capability bindings this can go away. > > +

Re: two small PCI MSI cleanups V2

2017-02-10 Thread Bjorn Helgaas
On Wed, Feb 08, 2017 at 06:17:42PM +0100, Christoph Hellwig wrote: > Now with even more dead code removal thanks to the review from Thomas! Both applied with Thomas' acks to pci/msi for v4.11, thanks!

[PATCH INTERNAL 2/2] bus: arm-ccn: Enable stats for CCN-502 interconnect

2017-02-10 Thread Velibor Markovski
Add compatible string for the ARM CCN-502 interconnect Signed-off-by: Velibor Markovski --- drivers/bus/arm-ccn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/arm-ccn.c b/drivers/bus/arm-ccn.c index 4d6a2b7..98a6995 100644 --- a/drivers/bus/arm-ccn.c +++ b/drivers/bus/arm-ccn.

[PATCH INTERNAL 0/2] Add support for ARM CCN-502 interconnect

2017-02-10 Thread Velibor Markovski
Add compatible string for ARM CCN-502 interconnect. CCN-502 interconnect is already compatible with the existing ARM CCN driver, which supports CCN-504. This patchset is based on v4.10-rc3 and is available from github: repo: https://github.com/Broadcom/arm64-linux branch: arm64-ccn502 Velibor Ma

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

2017-02-10 Thread Velibor Markovski
Add CCN-502 to the list of supported devices by ARM CCN PMU driver. Signed-off-by: Velibor Markovski --- Documentation/devicetree/bindings/arm/ccn.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/ccn.txt b/Documentation/devicetree/bindings/arm/ccn.tx

<    1   2   3   4   5   6   7   8   >