[git pull] m68k updates for 4.9 (take two)

2016-12-09 Thread Geert Uytterhoeven
Hi Linus, I almost forgot I still had some commits queued for v4.9, so here they are. Unfortunately the fixes for the pr_cont() breakage aren't ready yet, so they'll have to wait for (a second PR for) v4.10. Thanks for pulling! The following changes since commit 1001354ca34179f3db924eb66

Re: [RFC PATCH 0/3] staging: remove fbdev drivers

2016-12-09 Thread Geert Uytterhoeven
Hi Dave, On Fri, Dec 9, 2016 at 1:08 AM, Dave Airlie wrote: > On 9 December 2016 at 07:28, Benjamin Herrenschmidt > wrote: >> On Thu, 2016-12-08 at 11:10 +0100, Daniel Vetter wrote: >>> > With drmfb you basically have to shadow everything into memory & copy >>> > over everything, and locks you o

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-09 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > On Thu, Dec 08, 2016 at 05:43:09PM +1300, Eric W. Biederman wrote: >> "Serge E. Hallyn" writes: >> Any chance of a singed-off-by? > > Yes, sorry, Stéphane had pointed out that I'd apparently forgotten to do > -s. Do you want me to resend the whole shebang, or does >

Re: [PATCH 2/2] arm: dts: sun8i: reuse the uart1 node of iNet D978 rev2 board

2016-12-09 Thread Maxime Ripard
On Mon, Dec 05, 2016 at 05:03:35PM +0800, Icenowy Zheng wrote: > > 2016年12月5日 16:50于 Maxime Ripard 写道: > > > > On Fri, Dec 02, 2016 at 11:19:13PM +0800, Icenowy Zheng wrote: > > > As a uart1 node is added into sun8i-reference-design-tablet.dtsi, simply > > > use it in iNet D978 rev2 device tree.

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-09 Thread Nicholas Piggin
On Fri, 9 Dec 2016 08:55:51 +0100 Stanislav Kozina wrote: > >> The question is how to provide a similar guarantee if a different way? > > As a tool to aid distro reviewers, modversions has some value, but the > > debug info parsing tools that have been mentioned in this thread seem > > superior

Re: [PATCH] tracing: (backport) Replace kmap with copy_from_user() in trace_marker

2016-12-09 Thread Henrik Austad
On Fri, Dec 09, 2016 at 08:22:05AM +0100, Greg KH wrote: > On Fri, Dec 09, 2016 at 07:34:04AM +0100, Henrik Austad wrote: > > Instead of using get_user_pages_fast() and kmap_atomic() when writing > > to the trace_marker file, just allocate enough space on the ring buffer > > directly, and write int

Re: [RFC PATCH 0/3] staging: remove fbdev drivers

2016-12-09 Thread Daniel Vetter
On Fri, Dec 09, 2016 at 08:43:13AM +1100, Benjamin Herrenschmidt wrote: > On Fri, 2016-12-09 at 08:23 +1100, Benjamin Herrenschmidt wrote: > > > From memory, David claimed you cannot directly work on the fb with a > > > "proper" > > > > DRM driver. Maybe I misunderstood but then the DRM shines by

Xen/cdrom: Ubuntu 16.04 VM read the content from CD-ROM abnormally

2016-12-09 Thread Ken
Hi all, I run the Ubuntu 16.04 server (2 vcpu/2G, Linux 4.4.0) on the Xen-4.1.2, and installed gcc through the CDROM used by 16.04 iso file, when I installed gcc that depends deb packages to decompress failed. But uploaded the ISO files into the VM are mounted by loop or used as CDROM for oth

Re: [PATCH v3 -next 2/2] ARM: dts: sunxi: add support for Orange Pi Zero board

2016-12-09 Thread Maxime Ripard
On Fri, Dec 02, 2016 at 11:05:13PM +0800, Icenowy Zheng wrote: > Orange Pi Zero is a board that came with the new Allwinner H2+ SoC and a > SDIO Wi-Fi chip by Allwinner (XR819). > > Add a device tree file for it. > > Signed-off-by: Icenowy Zheng Applied, thanks! Maxime -- Maxime Ripard, Free

[PATCH] mfd:rtsx: do retry when dma transfer error

2016-12-09 Thread steven_feng
From: steven_feng the request should be reissued when dma transfer error. for rts5227, the clock freq need to step reduce when error occurred. Signed-off-by: steven_feng --- drivers/mfd/rtsx_pcr.c | 15 +-- include/linux/mfd/rtsx_pci.h | 2 ++ 2 files changed, 15 insertions(

Re: [PATCH v18 03/15] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-12-09 Thread Fu Wei
Hi Joe, On 9 December 2016 at 05:10, Joe Perches wrote: > On Fri, 2016-12-09 at 01:33 +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> This patch defines pr_fmt(fmt) for all pr_* functions, >> then the pr_* doesn't need to add "arch_timer:" everytime. > > trivia: > >> diff --git a/drivers/c

Re: [PATCH] tracing: (backport) Replace kmap with copy_from_user() in trace_marker

2016-12-09 Thread Greg KH
On Fri, Dec 09, 2016 at 09:05:51AM +0100, Henrik Austad wrote: > On Fri, Dec 09, 2016 at 08:22:05AM +0100, Greg KH wrote: > > On Fri, Dec 09, 2016 at 07:34:04AM +0100, Henrik Austad wrote: > > > Instead of using get_user_pages_fast() and kmap_atomic() when writing > > > to the trace_marker file, ju

Re: [patch 5/6] [RFD] timekeeping: Provide optional 128bit math

2016-12-09 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 07:38:47AM +0100, Peter Zijlstra wrote: > On Fri, Dec 09, 2016 at 06:26:38AM +0100, Peter Zijlstra wrote: > > Just for giggles, on tilegx the branch is actually slower than doing the > > mult unconditionally. > > > > The problem is that the two multiplies would otherwise c

Re: [RFC PATCH 0/3] staging: remove fbdev drivers

2016-12-09 Thread Daniel Vetter
On Thu, Dec 08, 2016 at 04:21:34PM +0100, Daniel Vetter wrote: > [back from my walk, the sunset here is stellar ;-)] > > On Thu, Dec 08, 2016 at 03:44:30PM +0100, Geert Uytterhoeven wrote: > > Hi Thomas, > > > > On Thu, Dec 8, 2016 at 3:37 PM, Thomas Petazzoni > > wrote: > > > On Thu, 8 Dec 2016

Re: [RFC PATCH 0/3] staging: remove fbdev drivers

2016-12-09 Thread Daniel Vetter
On Fri, Dec 09, 2016 at 08:57:29AM +1100, Benjamin Herrenschmidt wrote: > On Fri, 2016-12-09 at 08:34 +1100, Benjamin Herrenschmidt wrote: > > As I mentioned earlier, probably 1 or 2 years ago, Dave made the > > argument that shadowing through memory was necessary and precluded 2D > > accel, though

Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2016-12-09 Thread Maxime Ripard
Hi Eric, On Wed, Dec 07, 2016 at 11:16:32AM -0800, Eric Anholt wrote: > Maxime Ripard writes: > > > [ Unknown signature status ] > > On Thu, Nov 24, 2016 at 07:22:31PM +0800, Chen-Yu Tsai wrote: > >> The panels shipped with Allwinner devices are very "generic", i.e. > >> they do not have model n

Re: Timeslice of vCPU thread in QEMU/KVM is not stable

2016-12-09 Thread Pankaj Gupta
Hello, > > Hi everyone, > > I am testing the timeslice of vCPU thread in QEMU/KVM. In principle, > the timeslice should be stable under following workload but it is > unstable after I do experiments with following workload. I appreciate > it if you can give me some suggestions. Thanks in advance

Re: [RFC PATCH 0/3] staging: remove fbdev drivers

2016-12-09 Thread Daniel Vetter
On Fri, Dec 09, 2016 at 09:34:42AM +0100, Daniel Vetter wrote: > On Fri, Dec 09, 2016 at 08:57:29AM +1100, Benjamin Herrenschmidt wrote: > > On Fri, 2016-12-09 at 08:34 +1100, Benjamin Herrenschmidt wrote: > > > As I mentioned earlier, probably 1 or 2 years ago, Dave made the > > > argument that sh

Re: [PATCH] ARM: dts: sun8i-q8-common: enable bluetooth on SDIO Wi-Fi

2016-12-09 Thread Maxime Ripard
On Tue, Dec 06, 2016 at 04:08:38PM +0800, Icenowy Zheng wrote: > Some SDIO Wi-Fi chips (such as RTL8703AS) have a UART bluetooth, which > has a dedicated enable pin (PL8 in the reference design). > > Enable the pin in the same way as the WLAN enable pins. > > Tested on an A33 Q8 tablet with RTL87

Fwd: Antwort: Re: vUDC

2016-12-09 Thread Krzysztof Opasiak
FYI to the list for next generations;) Forwarded Message Subject: Antwort: Re: vUDC Date: Fri, 9 Dec 2016 09:00:04 +0100 From: Elen Niedermeyer To: Krzysztof Opasiak Hi, so your script solved my problem. I didn't know that I should start the daemon with 'usbipd --device' af

[RFC 2/5] rcu: Use leaf_node_for_each_mask_possible_cpu() in RCU stall checking

2016-12-09 Thread Boqun Feng
Replace for_each_leaf_node_possible_cpu() loop with leaf_node_for_each_mask_possible_cpu() loop to gain fewer checks in RCU stall checking code. Signed-off-by: Boqun Feng --- kernel/rcu/tree.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/kernel/rc

[RFC 1/5] rcu: Introduce primitives to iterate mask bits in an RCU leaf node

2016-12-09 Thread Boqun Feng
There are some places inside RCU core, where we need to iterate all mask (->qsmask, ->expmask, etc) bits in a leaf node, in order to iterate all corresponding CPUs. The current code iterates all possible CPUs in this leaf node and then checks with the mask to see whether the bit is set. However, g

[RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend

2016-12-09 Thread Boqun Feng
Hi Paul, While reading the discussion at: https://marc.info/?l=linux-kernel&m=148044253400769 I figured we might use this fact to save some extra checks in RCU core code, currently we iterate over all the possible CPUs on a leaf node, check whether they were masked in a certain mask and do somet

[RFC 4/5] rcu: Use leaf_node_for_each_mask_possible_cpu() in force_qs_rnp()

2016-12-09 Thread Boqun Feng
->qsmask of an RCU leaf node is usually more sparse than the corresponding cpu_possible_mask. So replace the for_each_leaf_node_possible_cpu() in force_qs_rnp() with leaf_node_for_each_mask_possible_cpu() to save several checks. Signed-off-by: Boqun Feng --- kernel/rcu/tree.c | 13 ++---

[RFC 5/5] rcu: Use leaf_node_for_each_mask_*() for leaf node online CPU iteration

2016-12-09 Thread Boqun Feng
Though mostly identical, ->qsmaskinit(A.K.A rcu_rnp_online_cpus) is sometimes more sparse than the corresponding part of cpu_possible_mask for an RCU leaf node. So we use leaf_node_for_each_mask_possible_cpu() in rcu_boost_kthread_setaffinity() instead to save some extra checks. Signed-off-by: Boq

[RFC 3/5] rcu: Use leaf_node_for_each_mask_possible_cpu() for ->expmask iteration

2016-12-09 Thread Boqun Feng
The ->expmask of an RCU leaf node should be more sparse than the corresponding part of cpu_possible_mask, iterating on ->expmask bitmap rather cpu_possible_mask to save some checks. Signed-off-by: Boqun Feng --- kernel/rcu/tree_exp.h | 17 + 1 file changed, 5 insertions(+), 12 de

Re: [PATCH v5 1/7] MFD: add bindings for STM32 General Purpose Timer driver

2016-12-09 Thread Lee Jones
Sorry to do this Ben. Not much to do now though! > Add bindings information for STM32 General Purpose Timer > > version 2: > - rename stm32-mfd-timer to stm32-gptimer > - only keep one compatible string > > Signed-off-by: Benjamin Gaignard > --- > .../bindings/mfd/stm32-general-purpose-timer.

Re: [PATCH 3/6] net: ethernet: ti: cpts: add support of cpts HW_TS_PUSH

2016-12-09 Thread Richard Cochran
On Thu, Dec 08, 2016 at 01:04:11PM -0600, Grygorii Strashko wrote: > huh. Seems this is not really good idea, because MISC Irq will be > triggered for *any* CPTS event and there is no way to enable it just for > HW_TS_PUSH. So what? That is not a problem. > So, this doesn't work will with curre

Re: [PATCH v6 0/3] spi-nor: Add support for Intel SPI serial flash controller

2016-12-09 Thread Lee Jones
On Wed, 07 Dec 2016, Marek Vasut wrote: > On 12/07/2016 09:53 AM, Mika Westerberg wrote: > > On Tue, Dec 06, 2016 at 09:45:25AM +, Lee Jones wrote: > >> I'm happy either way. However if you take them, I will require a > >> pull-request to an immutable branch containing only these patches. > >

Re: [PATCH v4 6/7] IIO: add STM32 timer trigger driver

2016-12-09 Thread Lee Jones
On Wed, 07 Dec 2016, Daniel Thompson wrote: > On 07/12/16 11:00, Benjamin Gaignard wrote: > > 2016-12-07 11:50 GMT+01:00 Lee Jones : > > > On Tue, 06 Dec 2016, Benjamin Gaignard wrote: > > > > > > > [snip] > > > > > > + > > > > > > +static const char * const triggers0[] = { > > > > > > + TIM1

Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2016-12-09 Thread Maxime Ripard
Moi, On Wed, Dec 07, 2016 at 11:48:55AM +0200, Laurent Pinchart wrote: > On Wednesday 07 Dec 2016 10:26:25 Chen-Yu Tsai wrote: > > On Wed, Dec 7, 2016 at 1:29 AM, Maxime Ripard wrote: > > > On Thu, Nov 24, 2016 at 07:22:31PM +0800, Chen-Yu Tsai wrote: > > >> The panels shipped with Allwinner devic

Re: [RFC PATCH net-next v3 1/2] macb: Add 1588 support in Cadence GEM.

2016-12-09 Thread Richard Cochran
On Fri, Dec 09, 2016 at 11:07:23AM +0530, Harini Katakam wrote: > I'm afraid I don't get why we are choosing the most limited max adj.. > Sorry if I'm missing something - could you please help me understand? This max_adj is only important when the local clock offset is large and user space chooses

Re: uvcvideo logging kernel warnings on device disconnect

2016-12-09 Thread Laurent Pinchart
Hi Greg, On Friday 09 Dec 2016 08:25:52 Greg KH wrote: > On Fri, Dec 09, 2016 at 01:09:21AM +0200, Laurent Pinchart wrote: > > On Thursday 08 Dec 2016 12:31:55 Dave Stevenson wrote: > >> Hi All. > >> > >> I'm working with a USB webcam which has been seen to spontaneously > >> disconnect when in u

Re: [RFC PATCH v3 1/2] Add support for eXclusive Page Frame Ownership (XPFO)

2016-12-09 Thread AKASHI Takahiro
On Thu, Nov 24, 2016 at 07:56:30PM +0900, AKASHI Takahiro wrote: > Hi, > > I'm trying to give it a spin on arm64, but ... In my experiment on hikey, the kernel boot failed, catching a page fault around cache operations, (a) __clean_dcache_area_pou() on 4KB-page kernel, (b) __inval_cache_range()

Re: [PATCH v3] pinctrl: sh-pfc: r8a7791: Add ADI pinconf support

2016-12-09 Thread Geert Uytterhoeven
Hi Jacopo, On Thu, Dec 1, 2016 at 11:14 PM, Jacopo Mondi wrote: > Add pin configuration support for Gyro-ADC, named ADI on r8a7791 SoC. Thanks! > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven I'll wait with queuing it up for upstream until it's been tested, but in the mean tim

Re: [PATCH v4 1/2] backlight: pwm_bl: Move the checks for initial power state to a separate function

2016-12-09 Thread Lee Jones
On Tue, 22 Nov 2016, Peter Ujfalusi wrote: > Move the checks to select the initial state for the backlight to a new > function and document the checks we are doing. > > With the separate function it is going to be easier to fix or improve the > initial power state configuration later and it is ea

Re: [PATCH v4 2/2] backlight: pwm_bl: Check the PWM state for initial backlight power state

2016-12-09 Thread Lee Jones
On Tue, 22 Nov 2016, Peter Ujfalusi wrote: > If the PWM is not enabled the backlight initially should not be enabled > either if we have booted with DT and there is a phandle pointing to the > backlight node. > > The patch extends the checks to decide if we should keep the backlight off > initial

Re: uvcvideo logging kernel warnings on device disconnect

2016-12-09 Thread Greg KH
On Fri, Dec 09, 2016 at 10:59:24AM +0200, Laurent Pinchart wrote: > Hi Greg, > > On Friday 09 Dec 2016 08:25:52 Greg KH wrote: > > On Fri, Dec 09, 2016 at 01:09:21AM +0200, Laurent Pinchart wrote: > > > On Thursday 08 Dec 2016 12:31:55 Dave Stevenson wrote: > > >> Hi All. > > >> > > >> I'm workin

Re: [patch 5/6] [RFD] timekeeping: Provide optional 128bit math

2016-12-09 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 09:30:11AM +0100, Peter Zijlstra wrote: > > > Just for giggles, on tilegx the branch is actually slower than doing the > > > mult unconditionally. > > > > > > The problem is that the two multiplies would otherwise completely > > > pipeline, whereas with the conditional you

Re: uvcvideo logging kernel warnings on device disconnect

2016-12-09 Thread Laurent Pinchart
Hi Greg, On Friday 09 Dec 2016 10:11:13 Greg KH wrote: > On Fri, Dec 09, 2016 at 10:59:24AM +0200, Laurent Pinchart wrote: > > On Friday 09 Dec 2016 08:25:52 Greg KH wrote: > >> On Fri, Dec 09, 2016 at 01:09:21AM +0200, Laurent Pinchart wrote: > >>> On Thursday 08 Dec 2016 12:31:55 Dave Stevenson

Re: [PATCH 1/7] dell-led: remove GUID check from dell_micmute_led_set()

2016-12-09 Thread Pali Rohár
On Thursday 08 December 2016 13:36:12 Michał Kępień wrote: > As dell_micmute_led_set() no longer uses the dell_wmi_perform_query() > method, which was removed in 0c41a08 ("dell-led: use > dell_smbios_send_request() for performing SMBIOS calls"), the > DELL_APP_GUID check is redundant and thus can b

RE: [RFC PATCH net-next v3 1/2] macb: Add 1588 support in Cadence GEM.

2016-12-09 Thread Rafal Ozieblo
-Original Message- > From: andrei.pistir...@microchip.com [mailto:andrei.pistir...@microchip.com] > Sent: 8 grudnia 2016 15:42 > To: richardcoch...@gmail.com > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; da...@davemloft.net; > nicolas.

[PATCH/RFC net-next] net: fec: allow "mini jumbo" frames

2016-12-09 Thread Nikita Yushchenko
This adds support for MTU slightly larger than default, on modern FEC flavours. Currently FEC driver uses single hardware Rx buffer per frame. On most FEC flavours, size of single buffer is limited by 11-bit field, and has to be multiple of 64 (in the worst case). Thus maximum usable Rx buffer siz

Re: [PATCH v2 1/4] mfd: arizona: Disable IRQs during driver remove

2016-12-09 Thread Lee Jones
On Tue, 22 Nov 2016, Charles Keepax wrote: > As DCVDD will often be supplied by a child node of the MFD, we > can't call mfd_remove_devices as the first step in arizona_dev_exit > as might be expected (tidy up the children before we tidy up the > MFD). We need to disable and put the DCVDD regulato

[PATCH] ocfs2: fix crash caused by stale lvb with fsdlm plugin

2016-12-09 Thread Eric Ren
The crash happens rather often when we reset some cluster nodes while nodes contend fiercely to do truncate and append. The crash backtrace is below: " [ 245.197849] dlm: C21CBDA5E0774F4BA5A9D4F317717495: dlm_recover_grant 1 locks on 971 resources [ 245.197859] dlm: C21CBDA5E0774F4BA5A9D4F31771

[PATCH] sched/pid fix use-after free in task_tgid_vnr

2016-12-09 Thread EunTaik Lee
There is a use-after-free case with below call stack. pid_nr_ns+0x10/0x38 cgroup_pidlist_start+0x144/0x400 cgroup_seqfile_start+0x1c/0x24 kernfs_seq_start+0x54/0x90 seq_read+0x15c/0x3a8 kernfs_fop_read+0x38/0x160 __vfs_read+0x28/0xc8 vfs_read+0x84/0xfc A task in the cg_list was dying and the grou

Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2016-12-09 Thread Maxime Ripard
On Wed, Dec 07, 2016 at 10:26:25AM +0800, Chen-Yu Tsai wrote: > > Some panels require an exact frequency, some have a minimal frequency > > but no maximum, some have a maximum frequency but no minimal, and I > > guess most of them deviates by how much exactly they can take (and > > possibly can tak

Re: [PATCH v2] intelrdt: resctrl: recommend locking for resctrlfs

2016-12-09 Thread Thomas Gleixner
On Fri, 2 Dec 2016, Marcelo Tosatti wrote: > Actually, using flock(2) allows one to use LOCK_SH for readers and > this allows consistent writer/reader behaviour (say, a reader > won't see a partially written directory). Indeed. > So the procedure would be: > > /var/lock/resctrl/fs.lock crea

[PATCH 2/2] mm, page_alloc: avoid page_to_pfn() when merging buddies

2016-12-09 Thread Vlastimil Babka
On architectures that allow memory holes, page_is_buddy() has to perform page_to_pfn() to check for the memory hole. After the previous patch, we have the pfn already available in __free_one_page(), which is the only caller of page_is_buddy(), so move the check there and avoid page_to_pfn(). Signe

[PATCH 1/2] mm, page_alloc: don't convert pfn to idx when merging

2016-12-09 Thread Vlastimil Babka
In __free_one_page() we do the buddy merging arithmetics on "page/buddy index", which is just the lower MAX_ORDER bits of pfn. The operations we do that affect the higher bits are bitwise AND and subtraction (in that order), where the final result will be the same with the higher bits left unmasked

Re: uvcvideo logging kernel warnings on device disconnect

2016-12-09 Thread Greg KH
On Fri, Dec 09, 2016 at 11:14:41AM +0200, Laurent Pinchart wrote: > Hi Greg, > > On Friday 09 Dec 2016 10:11:13 Greg KH wrote: > > On Fri, Dec 09, 2016 at 10:59:24AM +0200, Laurent Pinchart wrote: > > > On Friday 09 Dec 2016 08:25:52 Greg KH wrote: > > >> On Fri, Dec 09, 2016 at 01:09:21AM +0200,

Re: [PATCH v1 2/2] crypto: mediatek - add DT bindings documentation

2016-12-09 Thread Matthias Brugger
On 08/12/16 10:19, Ryder Lee wrote: Hello, On Mon, 2016-12-05 at 11:18 +0100, Matthias Brugger wrote: On 05/12/16 08:01, Ryder Lee wrote: Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 +

Re: [PATCH] ocfs2: fix crash caused by stale lvb with fsdlm plugin

2016-12-09 Thread Eric Ren
Sorry, this email is not delivered to Mark successfully because of one weird character trailing his email address somehow. So, resend later... Thanks, Eric On 12/09/2016 05:24 PM, Eric Ren wrote: The crash happens rather often when we reset some cluster nodes while nodes contend fiercely to d

[PATCH] ASoC: wm_adsp: wm_adsp_buf_alloc should use kfree in error path

2016-12-09 Thread Richard Fitzgerald
buf was allocated by kzalloc() so it should be passed to kfree() Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index ff111a82..593b7d1 100644 --- a/sound

[PATCH] splice: introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE

2016-12-09 Thread Johannes Thumshirn
Introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE. These modes check whether it is legal to read or write a file using splice. Both get automatically set on regular files and are not checked when a 'struct fileoperations' includes the splice_{read,write} methods. Suggested-by: Linus Torvalds Cc:

[PATCH v2 2/2] ARCv2: MCIP: Deprecate setting of affinity in Device Tree

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

[PATCH v2 1/2] ARC: SMP: Set the default affinity to the boot cpu

2016-12-09 Thread Yuriy Kolerov
By default the kernel sets a value for default affinity which may not correspond to the real bitmap of potentially online CPUs. E.g. for ARC HS processors with 2 cores the default value of affinity in the kernel may be 0xF and it is wrong in this case. This happens because init_irq_default_affinity

Re: [patch 5/6] [RFD] timekeeping: Provide optional 128bit math

2016-12-09 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 09:30:11AM +0100, Peter Zijlstra wrote: > +static inline u64 mul_u32_u32(u32 a, u32 b) > +{ > + u64 ret; > + > + asm ("mull %[b]" : "=A" (ret) : [a] "a" (a), [b] "g" (b) ); > + > + return ret; > +} ARGH, that's broken on x86_64, it needs to be: u32 high

Re: [PATCH] x86/tsc: RFC: re-synchronize TSCs to boot cpu TSC

2016-12-09 Thread Thomas Gleixner
On Fri, 9 Dec 2016, Roland Scheidegger wrote: > > I saw some system lockups though: > When doing a cold boot, this kernel never managed to boot up. The last > message seen is: > x86: Booting SMP configuration: > node #0, CPUs:#1 Weird. That really would be interesting to figure out

[PATCH net-next] net: macb: Added PCI wrapper for Platform Driver.

2016-12-09 Thread Bartosz Folta
There are hardware PCI implementations of Cadence GEM network controller. This patch will allow to use such hardware with reuse of existing Platform Driver. Signed-off-by: Bartosz Folta --- drivers/net/ethernet/cadence/Kconfig| 9 ++ drivers/net/ethernet/cadence/Makefile | 1 + driver

Re: [RFC][PATCH] HACK: usb: dwc2: Workaround case where GOTGCTL state is wrong

2016-12-09 Thread Chen Yu
On 2016/12/9 15:32, John Stultz wrote: > On Thu, Dec 8, 2016 at 11:09 PM, Chen Yu wrote: >> On 2016/12/9 7:29, John Youn wrote: >>> On 12/8/2016 2:43 PM, John Stultz wrote: On Tue, Dec 6, 2016 at 7:52 PM, John Youn wrote: > On 12/6/2016 5:48 PM, John Stultz wrote: >> This patch wor

Re: [PATCH v2 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info

2016-12-09 Thread Hari Bathini
On Friday 09 December 2016 12:10 AM, Hari Bathini wrote: Hi Peter, Sorry for taking so long to respond... On Thursday 24 November 2016 08:40 PM, Peter Zijlstra wrote: On Thu, Nov 24, 2016 at 08:14:29PM +0530, Hari Bathini wrote: @@ -862,6 +875,19 @@ enum perf_event_type { */

[PATCH] Documentation: ti-syscon-reset: fix header path

2016-12-09 Thread yegorslists
From: Yegor Yefremov 'include' was missing from path. Signed-off-by: Yegor Yefremov --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/reset/ti-syscon-reset.txt b/Documentation/d

Re: [PATCH 1/2] x86: Make E820_X_MAX unconditionally larger than E820MAX

2016-12-09 Thread Juergen Gross
On 05/12/16 18:49, Alex Thorlton wrote: > It's really not necessary to limit E820_X_MAX to 128 in the non-EFI > case. This commit drops E820_X_MAX's dependency on CONFIG_EFI, so that > E820_X_MAX is always at least slightly larger than E820MAX. > > The real motivation behind this is actually to p

Re: [PATCH 2/2] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

2016-12-09 Thread Juergen Gross
On 05/12/16 18:49, Alex Thorlton wrote: > On systems with sufficiently large e820 tables, and several IOAPICs, it > is possible for the XENMEM_machine_memory_map callback (and its > counterpart, XENMEM_memory_map) to attempt to return an e820 table with > more than 128 entries. This callback adds

Re: [PATCH v2] xen/scsifront: don't request a slot on the ring until request is ready

2016-12-09 Thread Juergen Gross
On 02/12/16 07:15, Juergen Gross wrote: > Instead of requesting a new slot on the ring to the backend early, do > so only after all has been setup for the request to be sent. This > makes error handling easier as we don't need to undo the request id > allocation and ring slot allocation. > > Sugge

Re: [patch 5/6] [RFD] timekeeping: Provide optional 128bit math

2016-12-09 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 07:38:47AM +0100, Peter Zijlstra wrote: > Turns out using GCC-6.2.1 we have the same problem on i386, GCC doesn't > recognise the 32x32 mults and generates crap. > > This used to work :/ I tried: gcc-4.4: good gcc-4.6, gcc-4.8, gcc-5.4, gcc-6.2: bad

Re: [PATCH SND/USB]: Add QuickCam Communicate Deluxe/S7500 to volume_control_quirks.

2016-12-09 Thread Takashi Iwai
On Fri, 09 Dec 2016 05:15:57 +0100, Con Kolivas wrote: > > The Logitech QuickCam Communicate Deluxe/S7500 microphone fails with the > following warning. > > [6.778995] usb 2-1.2.2.2: Warning! Unlikely big volume range (=3072), > cval->res is probably wrong. > [6.778996] usb 2-1.2.2.2: [5]

[PATCH v8 2/3] mfd: Kconfig: MFD_SUN4I_GPADC depends on !TOUCHSCREN_SUN4I_GPADC

2016-12-09 Thread Quentin Schulz
MFD_SUN4I_GPADC and TOUCHSCREEN_SUN4I are incompatible (both are drivers for Allwinner SoCs' ADC). This makes sure TOUCHSCREEN_SUN4I isn't enabled while MFD_SUN4I_GPADC is enabled. Signed-off-by: Quentin Schulz --- added in v8. I wrongly put the XOR dependance for SUN4I_GPADC and TOUCHSCREEN_SUN

[PATCH v8 0/3] add support for Allwinner SoCs ADC

2016-12-09 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in drivers/i

[PATCH v8 1/3] ARM: sunxi_defconfig: Add CONFIG_THERMAL_OF

2016-12-09 Thread Quentin Schulz
This enables CONFIG_THERMAL_OF by default for sunxi_defconfig. It is required to get Allwinner SoCs' temperature from the GPADC driver. The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or t

[PATCH v8 3/3] iio: adc: add support for Allwinner SoCs ADC

2016-12-09 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. This patch adds the ADC driver which is based on the MFD for the same SoCs ADC. This also registers the thermal adc channel in the iio map array so iio_hwmon could use it without modifying the De

Re: Tearing down DMA transfer setup after DMA client has finished

2016-12-09 Thread Sebastian Frias
On 09/12/16 07:59, Vinod Koul wrote: > On Thu, Dec 08, 2016 at 04:48:18PM +, Måns Rullgård wrote: >> Vinod Koul writes: >> >>> To make it efficient, disregarding your Sbox HW issue, the solution is >>> virtual channels. You can delink physical channels and virtual channels. If >>> one has SW c

Re: [RFC, PATCHv1 00/28] 5-level paging

2016-12-09 Thread Arnd Bergmann
On Friday, December 9, 2016 6:01:30 AM CET Ingo Molnar wrote: > > - Handle opt-in wider address space for userspace. > > > > Not all userspace is ready to handle addresses wider than current > > 47-bits. At least some JIT compiler make use of upper bits to encode > > their info. > >

[PATCH] mfd: mc13xxx-spi: make SPI buffers DMA-safe

2016-12-09 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson --- drivers/mfd/mc13xxx-spi.c | 14 +++--- drivers/mfd/mc13xxx.h | 4 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c index cbc1e5ed599c..f6bfbee9d9ef 100644 --- a/drivers/mfd/m

[PATCH] mfd: mc13xxx-spi: make SPI buffers DMA-safe

2016-12-09 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson --- drivers/mfd/mc13xxx-spi.c | 14 +++--- drivers/mfd/mc13xxx.h | 4 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c index cbc1e5ed599c..f6bfbee9d9ef 100644 --- a/drivers/mfd/m

[PATCH] iio: adc: max1027: allocate DMA-safe buffer

2016-12-09 Thread Marcus Folkesson
The buffer needs to be DMA-safe when used with spi_read() Signed-off-by: Marcus Folkesson --- drivers/iio/adc/max1027.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index 712fbd2b1f16..ff1f1f15a873 100644 --- a/drivers/

Re: [RFC, PATCHv1 00/28] 5-level paging

2016-12-09 Thread Kirill A. Shutemov
On Fri, Dec 09, 2016 at 06:01:30AM +0100, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > x86-64 is currently limited to 256 TiB of virtual address space and 64 TiB > > of physical address space. We are already bumping into this limit: some > > vendors offers servers with 64 TiB of memo

[PATCH 0/1] scripts/gdb: scripts/gdb: Updates for 4.10

2016-12-09 Thread Kieran Bingham
Hi Andrew, Please include the following enhancement for gdb scripts in your queue. A particularly short series, as I have only the one patch from Peter Griffin for integration. His addition provides the ability to extract the current device tree from memory, and save it to a file. I've tested it

[PATCH 1/1] scripts/gdb: add lx-fdtdump command

2016-12-09 Thread Kieran Bingham
From: Peter Griffin lx-fdtdump dumps the flattened device tree passed to the kernel from the bootloader to the filename specified as the command argument. If no argument is provided it defaults to fdtdump.dtb. This then allows further post processing on the machine running GDB. The fdt header is

Re: enabling COMPILE_TEST support for GCC plugins in v4.11

2016-12-09 Thread Arnd Bergmann
On Thursday, December 8, 2016 11:00:42 AM CET Kees Cook wrote: > If you have a moment, applying 215e2aa6c024[1] and reverting > a519167e753e for an allyesconfig/allmodconfig build should let you > know if things are working correctly with headers installed. If anyone > sees any problems, please le

[PATCH] misc: lis3lv02d: use spi_write_then_read() instead of spi_write()

2016-12-09 Thread Marcus Folkesson
spi_write() needs a DMA-safe buffer. Signed-off-by: Marcus Folkesson --- drivers/misc/lis3lv02d/lis3lv02d_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/lis3lv02d/lis3lv02d_spi.c b/drivers/misc/lis3lv02d/lis3lv02d_spi.c index e575475123c8..7e592df6f0d2 10

Re: [PATCH v2 2/4] mfd: arizona: Use arizona_map_irq instead of hard coding it

2016-12-09 Thread Lee Jones
On Tue, 22 Nov 2016, Charles Keepax wrote: > We have arizona_map_irq we might as well use it rather than hard coding > it in several places. > > Signed-off-by: Charles Keepax > --- > > Changes since v1: > - Just a rebase > > Thanks, > Charles > > drivers/mfd/arizona-irq.c | 22 ++---

Re: [PATCH 3/4] mfd: arizona: Add defines for IRQs on the main Arizona IRQ domain

2016-12-09 Thread Lee Jones
On Tue, 22 Nov 2016, Charles Keepax wrote: > Signed-off-by: Charles Keepax > --- > drivers/mfd/arizona-irq.c | 21 +++-- > 1 file changed, 15 insertions(+), 6 deletions(-) Applied for v4.11, thanks. > diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c > index 72

Re: netlink: GPF in sock_sndtimeo

2016-12-09 Thread Dmitry Vyukov
On Fri, Dec 9, 2016 at 7:02 AM, Richard Guy Briggs wrote: > On 2016-11-29 23:52, Richard Guy Briggs wrote: >> On 2016-11-29 15:13, Cong Wang wrote: >> > On Tue, Nov 29, 2016 at 8:48 AM, Richard Guy Briggs >> > wrote: >> > > On 2016-11-26 17:11, Cong Wang wrote: >> > >> It is racy on audit_sock,

[PATCH 0/2] irqchip/renesas-intc-irqpin: fallback enhancements

2016-12-09 Thread Simon Horman
Hi, this short series aims to improve the fallback compatibility strings for the renesas-intc-irqpin driver. Based on v4.9-rc1. Simon Horman (2): irqchip/renesas-intc-irqpin: List fallback compatibility last irqchip/renesas-intc-irqpin: Add R-Car Gen1 fallback binding .../interrupt-control

Re: ATH9 driver issues on ARM64

2016-12-09 Thread Marc Zyngier
On 09/12/16 02:07, Bharat Kumar Gogada wrote: >> On 08/12/16 18:33, Bharat Kumar Gogada wrote: On 08/12/16 15:29, Bharat Kumar Gogada wrote: > 218: 61 0 0 0 GICv2 81 Level > mmc0 > 219: 0 0 0 0 GIC

[PATCH 2/2] irqchip/renesas-intc-irqpin: Add R-Car Gen1 fallback binding

2016-12-09 Thread Simon Horman
In the case of Renesas R-Car hardware we know that there are generations of SoCs, e.g. Gen 1, Gen 2 and Gen 3. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe that r8a7779 is older than r8a7778 but that doesn't imply that the latter is a descen

[PATCH 1/2] irqchip/renesas-intc-irqpin: List fallback compatibility last

2016-12-09 Thread Simon Horman
Improve readability by listing the rmobile fallback compatibility string after the more-specific compatibility strings they provide a fallback for. This does not effect run-time behaviour as it is the order in the DTB that determines which compatibility string is used. Signed-off-by: Simon Horman

Re: [RFC, PATCHv1 00/28] 5-level paging

2016-12-09 Thread Catalin Marinas
On Fri, Dec 09, 2016 at 11:24:12AM +0100, Arnd Bergmann wrote: > On Friday, December 9, 2016 6:01:30 AM CET Ingo Molnar wrote: > > > - Handle opt-in wider address space for userspace. > > > > > > Not all userspace is ready to handle addresses wider than current > > > 47-bits. At least so

Re: [PATCH] mm, vmscan: add cond_resched into shrink_node_memcg

2016-12-09 Thread Donald Buczek
On 12/02/16 10:58, Michal Hocko wrote: From: Michal Hocko Boris Zhmurov has reported RCU stalls during the kswapd reclaim: 17511.573645] INFO: rcu_sched detected stalls on CPUs/tasks: [17511.573699] 23-...: (22 ticks this GP) idle=92f/140/0 softirq=2638404/2638404 fqs=23 [17511.57

Re: [PATCH v4 4/4] mfd: arizona: Correctly clean up after IRQs

2016-12-09 Thread Lee Jones
On Tue, 22 Nov 2016, Charles Keepax wrote: > Currently we leak a lot of things when tearing down the IRQs this patch > fixes this cleaning up both the IRQ mappings and the IRQ domain itself. > > Signed-off-by: Charles Keepax > --- > > Changes since v3: > - Just included the other patches in th

Re: [PATCH V4 05/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Fast Path for RAID 1/10 Writes

2016-12-09 Thread Tomas Henzl
On 7.12.2016 00:00, Sasikumar Chandrasekaran wrote: > To improve RAID 1/10 Write performance, OS drivers need to issue the required > Write > IOs as Fast Path IOs (after the appropriate checks allowing Fast Path to be > used) > to the appropriate physical drives (translated from the OS logical IO

Re: [PATCH 1/1] arm64: mm: add config options for page table configuration

2016-12-09 Thread Will Deacon
On Thu, Dec 08, 2016 at 11:33:39AM -0800, Scott Branden wrote: > Since I currently have your attention: I do think there is fundamental bug > in the ARM64 mm implementation. If you look at /sys/devices/system/memory > it only shows the last memoryX section created after init. That directory does

Re: [PATCH 3/3] powerpc: enable support for GCC plugins

2016-12-09 Thread PaX Team
On 9 Dec 2016 at 13:48, Andrew Donnellan wrote: > >> as for the solutions, the general advice should enable the use of otherwise > >> failing gcc versions instead of forcing updating to new ones (though the > >> latter is advisable for other reasons but not everyone's in the position to > >> do so

Re: netlink: GPF in sock_sndtimeo

2016-12-09 Thread Richard Guy Briggs
On 2016-12-08 22:57, Cong Wang wrote: > On Thu, Dec 8, 2016 at 10:02 PM, Richard Guy Briggs wrote: > > I also tried to extend Cong Wang's idea to attempt to proactively respond > > to a > > NETLINK_URELEASE on the audit_sock and reset it, but ran into a locking > > error > > stack dump using mut

Re: [PATCH v2 1/2] mfd: axp20x: Add address extension registers for AXP806 regmap

2016-12-09 Thread Lee Jones
On Wed, 23 Nov 2016, Chen-Yu Tsai wrote: > The AXP806 supports either master/standalone or slave mode. > Slave mode allows sharing the serial bus, even with multiple > AXP806 which all have the same hardware address. > > This is done with extra "serial interface address extension", > or AXP806_BU

[PATCH v2 07/11] ARM: dtsi: add DTSI for AXP223

2016-12-09 Thread Quentin Schulz
The AXP223 shares most of its logic with the AXP221 but it has some differences for the VBUS driver. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- v2: - adding small explanation of AXP223 variation compared to AXP221, arch/arm/boot/dts/axp223.dtsi | 58

[PATCH v2 03/11] power: supply: axp20x_usb_power: set min voltage and max current from sysfs

2016-12-09 Thread Quentin Schulz
AXP20X and AXP22X PMICs allow setting the min voltage and max current of VBUS power supply. This adds entries in sysfs to allow to do so. Signed-off-by: Quentin Schulz --- v2: - moving defines from header mfd/axp20x.h to the driver, - adding two functions to reduce indentation in axp20x_usb_po

[PATCH v2 04/11] Documentation: DT: binding: axp20x_usb_power: add axp223 compatible

2016-12-09 Thread Quentin Schulz
This adds the "x-powers,axp223-usb-power-supply" to the list of compatibles for AXP20X VBUS power supply driver. Signed-off-by: Quentin Schulz --- v2: - adding small explanation on AXP223 variation compared to the AXP221, Documentation/devicetree/bindings/power/supply/axp20x_usb_power.txt | 5

  1   2   3   4   5   6   7   >