[RFC PATCH] mm: use ACCESS_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Xishi Qiu
By reading the code, I find the following code maybe optimized by compiler, maybe page->flags and old_flags use the same register, so use ACCESS_ONCE in page_cpupid_xchg_last() to fix the problem. Signed-off-by: Xishi Qiu --- mm/mmzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH v3 4/7] PWM: add pwm driver for stm32 plaftorm

2016-12-05 Thread Lee Jones
On Mon, 05 Dec 2016, Thierry Reding wrote: > On Fri, Dec 02, 2016 at 11:17:19AM +0100, Benjamin Gaignard wrote: > > This driver add support for pwm driver on stm32 platform. > > "adds". Also please use PWM in prose because it's an abbreviation. > > > The SoC have multiple instances of the hardwa

Re: [RFC PATCH] mm: use ACCESS_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Christian Borntraeger
On 12/05/2016 09:23 AM, Xishi Qiu wrote: > By reading the code, I find the following code maybe optimized by > compiler, maybe page->flags and old_flags use the same register, > so use ACCESS_ONCE in page_cpupid_xchg_last() to fix the problem. please use READ_ONCE instead of ACCESS_ONCE for future

Re: [PATCH]PTP:PTP_CHARDEV:add input parameters check to avoid the NULL pointer reference

2016-12-05 Thread Richard Cochran
On Mon, Dec 05, 2016 at 08:02:02AM +, Deng Feng wrote: > When we call one function which contained pointers as input parameters, > we must check the pointers are NULL or not before we make use of them, > which avoid the NULL pointer reference . NAK. These functions belong to an internal kerne

Re: [PATCH v3 3/7] PWM: add pwm-stm32 DT bindings

2016-12-05 Thread Lee Jones
On Mon, 05 Dec 2016, Thierry Reding wrote: > On Fri, Dec 02, 2016 at 11:17:18AM +0100, Benjamin Gaignard wrote: > > Define bindings for pwm-stm32 > > > > version 2: > > - use parameters instead of compatible of handle the hardware configuration > > > > Signed-off-by: Benjamin Gaignard > > --- >

Re: [PATCH v2 2/3] locking/percpu-rwsem: Rework writer block/wake to not use wait-queues

2016-12-05 Thread Peter Zijlstra
On Fri, Dec 02, 2016 at 06:18:39PM -0800, Davidlohr Bueso wrote: > @@ -102,8 +103,13 @@ void __percpu_up_read(struct percpu_rw_semaphore *sem) >*/ > __this_cpu_dec(*sem->read_count); > > + rcu_read_lock(); > + writer = rcu_dereference(sem->writer); Don't think this is correc

Re: [PATCH v6 1/2] mtd: arasan: Add device tree binding documentation

2016-12-05 Thread Boris Brezillon
On Mon, 5 Dec 2016 05:25:54 +0100 Marek Vasut wrote: > On 12/05/2016 05:11 AM, Punnaiah Choudary Kalluri wrote: > > This patch adds the dts binding document for arasan nand flash > > controller. > > > > Signed-off-by: Punnaiah Choudary Kalluri > > Acked-by: Rob Herring > > --- > > changes in v

Re: [PATCH] drm/radeon: don't add files at control minor debugfs directory

2016-12-05 Thread Nicolai Stange
Christian König writes: > Am 05.12.2016 um 08:27 schrieb Daniel Vetter: >> On Sat, Dec 03, 2016 at 03:47:00PM +0100, Nicolai Stange wrote: >>> Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a >>> struct drm_device's ->control member is always NULL. >>> >>> In the case of CONFIG_DEBUG_

Re: [PATCH v2 1/3] ARM: da850: fix infinite loop in clk_set_rate()

2016-12-05 Thread Sekhar Nori
On Friday 02 December 2016 09:08 PM, Bartosz Golaszewski wrote: > The aemif clock is added twice to the lookup table in da850.c. This > breaks the children list of pll0_sysclk3 as we're using the same list > links in struct clk. When calling clk_set_rate(), we get stuck in > propagate_rate(). > >

TO

2016-12-05 Thread 78
Office.pdf Description: Adobe PDF document

[PATCH] e820: use module_platform_driver

2016-12-05 Thread Johannes Thumshirn
Use module_platform_driver for the e820 driver instead of open-coding it. Signed-off-by: Johannes Thumshirn --- drivers/nvdimm/e820.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/nvdimm/e820.c b/drivers/nvdimm/e820.c index 11ea901..6f9a6ff 100644 --- a

Re: [RFC PATCH] mm: use ACCESS_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Christian Borntraeger
On 12/05/2016 09:31 AM, Christian Borntraeger wrote: > On 12/05/2016 09:23 AM, Xishi Qiu wrote: >> By reading the code, I find the following code maybe optimized by >> compiler, maybe page->flags and old_flags use the same register, >> so use ACCESS_ONCE in page_cpupid_xchg_last() to fix the proble

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

2016-12-05 Thread 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. > > Signed-off-by: Icenowy Zheng I'd like to see more consolidation before that change is needed. If we find more boar

Re: [PATCH 1/2 v2] sched: fix find_idlest_group for fork

2016-12-05 Thread Peter Zijlstra
On Tue, Nov 29, 2016 at 02:46:10PM +, Morten Rasmussen wrote: > On Tue, Nov 29, 2016 at 12:42:43PM +0100, Peter Zijlstra wrote: > > On Tue, Nov 29, 2016 at 10:57:59AM +, Morten Rasmussen wrote: > > > > @@ -5708,13 +5708,6 @@ static int select_idle_cpu(struct task_struct > > > > *p, struct

Re: [PATCH v1 1/2] Add crypto driver support for some MediaTek chips

2016-12-05 Thread Corentin Labbe
Hello I have two minor comment. On Mon, Dec 05, 2016 at 03:01:23PM +0800, Ryder Lee wrote: > This adds support for the MediaTek hardware accelerator on > mt7623/mt2701/mt8521p SoC. > > This driver currently implement: > - SHA1 and SHA2 family(HMAC) hash alogrithms. There is a typo for algorithm

Re: [PATCH v2 2/3] ARM: dts: sunxi: add support for Orange Pi Zero board

2016-12-05 Thread Maxime Ripard
On Fri, Dec 02, 2016 at 10:22:30PM +0800, Icenowy Zheng wrote: > > > 01.12.2016, 17:36, "Maxime Ripard" : > > On Mon, Nov 28, 2016 at 12:29:07AM +, André Przywara wrote: > >>  > Something more interesting happened. > >>  > > >>  > Xunlong made a add-on board for Orange Pi Zero, which exposes

Re: [PATCH v2] arm64: dts: zx: add pcu_domain node for zx296718

2016-12-05 Thread Shawn Guo
On Mon, Dec 05, 2016 at 04:17:51PM +0800, Baoyou Xie wrote: > This patch adds the pcu_domain node, so it can be used > by zte-soc's power domain driver. > > Signed-off-by: Baoyou Xie I'm fine with the patch itself, but I need to wait the driver and bindings being accepted to apply it. Shawn >

Re: [PATCH] perf/core: remove invalid warning from list_update_cgroup_event

2016-12-05 Thread Peter Zijlstra
On Sun, Dec 04, 2016 at 12:46:17AM -0800, David Carrillo-Cisneros wrote: > The warning introduced in commit: > > 979bfef8607c ("perf/core: Do not set cpuctx->cgrp for unscheduled cgroups") That commit doesn't exist. You instead mean this one, right? 864c2357ca89 ("perf/core: Do not set cpuctx

Re: [tip:efi/core] efi/libstub: Make efi_random_alloc() allocate below 4 GB on 32-bit

2016-12-05 Thread Ard Biesheuvel
On 4 December 2016 at 21:38, Matt Fleming wrote: > On Sun, 04 Dec, at 02:31:23PM, Ard Biesheuvel wrote: >> On 4 December 2016 at 14:17, Matt Fleming wrote: >> > >> > Ard, was this picked up for the correct tip branch? If it fixes a >> > build failure it should have gone into tip/efi/urgent, right

Re: [RFC PATCH 0/3] Add a new flag for ITS device to control indirect route

2016-12-05 Thread Marc Zyngier
On 05/12/16 03:11, majun (Euler7) wrote: > Hi Marc: > > 在 2016/12/2 17:35, Marc Zyngier 写道: >> On 02/12/16 09:29, majun (Euler7) wrote: >>> >>> >>> 在 2016/12/1 17:07, Marc Zyngier 写道: On 01/12/16 07:45, Majun wrote: > From: MaJun > > For current ITS driver, two level table (indir

Re: [PATCH v3 7/7] ARM: dts: stm32: add stm32 general purpose timer driver in DT

2016-12-05 Thread Lee Jones
On Sat, 03 Dec 2016, Jonathan Cameron wrote: > On 02/12/16 13:22, Lee Jones wrote: > > On Fri, 02 Dec 2016, Benjamin Gaignard wrote: > > > >> Add general purpose timers and it sub-nodes into DT for stm32f4. > >> Define and enable pwm1 and pwm3 for stm32f469 discovery board > >> > >> version 3: > >

Re: [PATCH v2 2/3] ARM: dts: sunxi: add support for Orange Pi Zero board

2016-12-05 Thread Maxime Ripard
On Fri, Dec 02, 2016 at 04:10:46PM +, Andre Przywara wrote: > Hi, > > On 02/12/16 14:32, Icenowy Zheng wrote: > > > > > > 02.12.2016, 22:30, "Hans de Goede" : > >> Hi, > >> > >> On 02-12-16 15:22, Icenowy Zheng wrote: > >>> 01.12.2016, 17:36, "Maxime Ripard" : > On Mon, Nov 28, 2016 a

[PATCH v2 0/6] net: stmmac: make DMA programmable burst length more configurable

2016-12-05 Thread Niklas Cassel
hardware. All new DT properties are optional, and created in a way that it will not affect any existing DT configurations. Changes since V1: Created cover-letter. Rebased patch set against next-20161205, since conflicting patches to stmmac_platform.c has been merged since V1. Niklas Cassel (6

[PATCH v2 3/6] net: stmmac: stmmac_platform: fix parsing of DT binding

2016-12-05 Thread Niklas Cassel
From: Niklas Cassel commit 64c3b252e9fc ("net: stmmac: fixed the pbl setting with DT") changed the parsing of the DT binding. Before 64c3b252e9fc, snps,fixed-burst and snps,mixed-burst were parsed regardless if the property snps,pbl existed or not. After the commit, fixed burst and mixed burst a

[PATCH v2 4/6] net: stmmac: dwmac1000: fix define DMA_BUS_MODE_RPBL_MASK

2016-12-05 Thread Niklas Cassel
From: Niklas Cassel DMA_BUS_MODE_RPBL_MASK is really 6 bits, just like DMA_BUS_MODE_PBL_MASK. Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/dwmac1000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000.h b/

Re: [PATCH] drm/radeon: don't add files at control minor debugfs directory

2016-12-05 Thread Michel Dänzer
On 05/12/16 05:48 PM, Christian König wrote: > Am 05.12.2016 um 09:39 schrieb Nicolai Stange:>> >> I'll send compile-only tested patches either tonight or tomorrow. Shall >> they cover the oopses only or the dead code as well? > > Please start with the ops, cause we certainly will get complains ab

Re: [PATCH linux-firmware] LICENCE.siano: Add copyright years

2016-12-05 Thread Mauro Carvalho Chehab
Em Mon, 5 Dec 2016 04:11:05 + Ben Hutchings escreveu: > A copyright notice is supposed to specify the years the work was > created. > > Mauro Carvalho Chehab writes: > > The oldest copyright I found for the Siano Linux driver is 2005, as > > you can see at: > > drivers/media/common/

[PATCH 1/3] mfd: cros_ec: Add activity motion sense definitions

2016-12-05 Thread Thierry Escande
From: Gwendal Grignou This adds motion sense definitions to the commands header related to the activity sensors attached behind the ChromeOS Embedded Controller. Supported activities are MOTION and DOUBLE_TAP. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- include/linux/mfd

Re: [PATCH v2 1/3] ARM: da850: fix infinite loop in clk_set_rate()

2016-12-05 Thread Bartosz Golaszewski
2016-12-05 9:38 GMT+01:00 Sekhar Nori : > On Friday 02 December 2016 09:08 PM, Bartosz Golaszewski wrote: >> The aemif clock is added twice to the lookup table in da850.c. This >> breaks the children list of pll0_sysclk3 as we're using the same list >> links in struct clk. When calling clk_set_rate

Re: [PATCH 2/2] HID: i2c-hid: support regulator power on/off

2016-12-05 Thread Benjamin Tissoires
On Dec 02 2016 or thereabouts, Dmitry Torokhov wrote: > On Fri, Dec 02, 2016 at 02:19:00PM -0800, Brian Norris wrote: > > On some boards, we need to enable a regulator before using the HID, and > > it's also nice to save power in suspend by disabling it. Support an > > optional "vdd-supply" and a c

[PATCH v2 5/6] net: stmmac: add support for independent DMA pbl for tx/rx

2016-12-05 Thread Niklas Cassel
From: Niklas Cassel GMAC and newer supports independent programmable burst lengths for DMA tx/rx. Add new optional devicetree properties representing this. To be backwards compatible, snps,pbl will still be valid, but snps,txpbl/snps,rxpbl will override the value in snps,pbl if set. If the IP i

[PATCH v2 6/6] net: smmac: allow configuring lower pbl values

2016-12-05 Thread Niklas Cassel
From: Niklas Cassel The driver currently always sets the PBLx8/PBLx4 bit, which means that the pbl values configured via the pbl/txpbl/rxpbl DT properties are always multiplied by 8/4 in the hardware. In order to allow the DT to configure lower pbl values, while at the same time not changing beh

Re: [PATCH 1/1 v2] xen: set error code on failures

2016-12-05 Thread Juergen Gross
On 05/12/16 09:23, Pan Bian wrote: > Variable rc is reset in the loop, and its value will be non-negative > during the second and after repeat of the loop. If it fails to allocate > memory then, it may return a non-negative integer, which indicates no > error. This patch fixes the bug, assigning "-

[PATCH 2/3] iio: core: Add double tap as possible gesture

2016-12-05 Thread Thierry Escande
From: Gwendal Grignou This adds the IIO_MOD_DOUBLE_TAP entry to the iio_modifier enum and the corresponding "double_tap" string to the iio_modifier_names array. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/iio/industrialio-core.c | 1 + include/uapi/linux/iio/type

Re: [PATCH 1/1] input: usbhid: fix improper check

2016-12-05 Thread Oliver Neukum
On Sun, 2016-12-04 at 13:10 +0800, Pan Bian wrote: > From: Pan Bian > > Function hid_post_reset() returns 0 on success, or 1 on failures. It seems like hid_post_reset() is buggy in not returning a proper error code in the failure case. So your diagnosis is right, but the fix is at the wrong plac

Re: [PATCH 1/1 v2] xen: xenbus: set error code on failure

2016-12-05 Thread Juergen Gross
On 05/12/16 09:22, Pan Bian wrote: > Variable err is initialized with 0. As a result, the return value may > be 0 even if get_zeroed_page() fails to allocate memory. This patch fixes > the bug, initializing err with "-ENOMEM". > > v1 is reviewed by: Juergen Gross I didn't say so. > Signed-off-

[PATCH 0/3] Add ChromeOS EC Activity Sensors driver

2016-12-05 Thread Thierry Escande
Hi, This patchset adds support for an activity sensors driver handling activity/gesture recognition coming from the EC. Only significant motion is currently supported. Moreover it is an incomplete driver: activity can be set and ring buffer must be used to receive interruption. This patchset depe

[PATCH 3/3] iio: cros_ec_activity: add ChromeOS EC Activity Sensors

2016-12-05 Thread Thierry Escande
From: Gwendal Grignou This patch adds a driver for handling activity/gesture recognition coming from the EC. Only significant motion is currently supported. It is an incomplete driver: activity can be set, but ring buffer must be used to receive interruption. Signed-off-by: Gwendal Grignou Sign

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

2016-12-05 Thread Maxime Ripard
Hi Icenowy, On Sat, Dec 03, 2016 at 09:24:19PM +0800, Icenowy Zheng wrote: > > 2016年12月3日 下午5:43于 Jernej Skrabec > 写道: > > > > Hi, > > > > Dne petek, 02. december 2016 17.42.04 UTC+1 je oseba Chen-Yu Tsai > napisala: > >> > >> Hi, > >> > >> On Fri, Dec 2, 2016 at 11:0

Re: [patch net v2] net: fec: fix compile with CONFIG_M5272

2016-12-05 Thread Geert Uytterhoeven
On Mon, Dec 5, 2016 at 9:16 AM, Nikita Yushchenko wrote: > Commit 4dfb80d18d05 ("net: fec: cache statistics while device is down") > introduced unconditional statistics-related actions. > > However, when driver is compiled with CONFIG_M5272, staticsics-related > definitions do not exist, which res

Re: [PATCH v3 1/3] powernv:idle: Add IDLE_STATE_ENTER_SEQ_NORET macro

2016-12-05 Thread Gautham R Shenoy
Hi Balbir, On Tue, Nov 29, 2016 at 09:42:20PM +1100, Balbir Singh wrote: > > > On 10/11/16 18:54, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > Currently all the low-power idle states are expected to wake up > > at reset vector 0x100. Which is why the macro IDLE_STATE_ENTER_SE

Re: [PATCH v5 2/3] mtd: nand: Add support for Arasan Nand Flash Controller

2016-12-05 Thread Boris Brezillon
+Marek who reviewed v6 Hi Punnaiah, I see you sent a v6, but you never answered the questions/remarks I had in this email. Can you please try to answer them (I'd like to understand how the controller works)? Thanks, Boris On Wed, 9 Mar 2016 10:50:07 +0100 Boris Brezillon wrote: > Hi Punnaia

Re: [PATCH v3 -next 1/2] ARM: sunxi: add support for H2+ SoC

2016-12-05 Thread Maxime Ripard
On Fri, Dec 02, 2016 at 11:05:12PM +0800, Icenowy Zheng wrote: > Allwinner H2+ is a quad-core Cortex-A7 SoC. > > It is very like H3, that they share the same SoC ID (0x1680), and H3 > memory maps as well as drivers works well on the SoC. > > Signed-off-by: Icenowy Zheng Fixed the alphabetical o

Re: [RFC PATCH] mm: use ACCESS_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Xishi Qiu
On 2016/12/5 16:50, Christian Borntraeger wrote: > On 12/05/2016 09:31 AM, Christian Borntraeger wrote: >> On 12/05/2016 09:23 AM, Xishi Qiu wrote: >>> By reading the code, I find the following code maybe optimized by >>> compiler, maybe page->flags and old_flags use the same register, >>> so use

Re: [PATCH] overlayfs: ignore empty NFSv4 ACLs in ext4 upperdir

2016-12-05 Thread Miklos Szeredi
[Added a few more CCs] On Mon, Dec 5, 2016 at 1:51 AM, Patrick Plagwitz wrote: > Mounting an overlayfs with an NFSv4 lowerdir and an ext4 upperdir causes > copy_up operations, specifically the function copy_up.c:ovl_copy_xattr, to > fail with EOPNOTSUPP. > For example, having the following fold

[RFC PATCH v2] mm: use ACCESS_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Xishi Qiu
A compiler could re-read "old_flags" from the memory location after reading and calculation "flags" and passes a newer value into the cmpxchg making the comparison succeed while it should actually fail. Signed-off-by: Xishi Qiu Suggested-by: Christian Borntraeger --- mm/mmzone.c | 2 +- 1 file

Re: [PATCH] ARM: dts: sunxi: Add num-cs for A20 spi nodes

2016-12-05 Thread Maxime Ripard
On Thu, Dec 01, 2016 at 11:24:14AM +0100, Emmanuel Vadot wrote: > > > > > If num-cs isn't present nothing prevent to start a transfer > > > > > with a non-valid CS pin, resulting in an error. num-cs are > > > > > default property especially made for this and a SPI driver > > > > > should try to g

Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group

2016-12-05 Thread Vincent Guittot
Le Saturday 03 Dec 2016 à 21:47:07 (+), Matt Fleming a écrit : > On Fri, 02 Dec, at 07:31:04PM, Brendan Gregg wrote: > > > > For background, is this from the "A decade of wasted cores" paper's > > patches? > > No, this patch fixes an issue I originally reported here, > > https://lkml.kerne

Re: [PATCH v2 3/3] ARM: da850: fix da850_set_pll0rate()

2016-12-05 Thread Bartosz Golaszewski
2016-12-05 9:45 GMT+01:00 Sekhar Nori : > On Friday 02 December 2016 09:08 PM, Bartosz Golaszewski wrote: >> This function is broken - its second argument is an index to the freq >> table, not the requested clock rate in Hz. It leads to an oops when >> called from clk_set_rate() since this argument

Re: [PATCH v6 2/2] mtd: nand: Add support for Arasan Nand Flash Controller

2016-12-05 Thread kbuild test robot
Hi Punnaiah, [auto build test ERROR on mtd/master] [also build test ERROR on v4.9-rc8 next-20161205] [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/Punnaiah-Choudary-Kalluri/mtd-arasan-Add

Re: [PATCH 1/2 v2] sched: fix find_idlest_group for fork

2016-12-05 Thread Vincent Guittot
On 4 December 2016 at 00:25, Matt Fleming wrote: > On Fri, 25 Nov, at 04:34:32PM, Vincent Guittot wrote: >> During fork, the utilization of a task is init once the rq has been >> selected because the current utilization level of the rq is used to set >> the utilization of the fork task. As the tas

Re: [PATCH 1/1] usb: xhci: fix possible wild pointer

2016-12-05 Thread Lu Baolu
Hi, On 12/02/2016 09:39 PM, Mathias Nyman wrote: > On 02.12.2016 04:29, Lu Baolu wrote: >> handle_cmd_completion() frees a command structure which might >> be still referenced by xhci->current_cmd. This might cause >> problem when xhci->current_cmd is accessed after that. >> >> A real-life case co

Re: [PATCH] ARM: dts: sunxi: Add num-cs for A20 spi nodes

2016-12-05 Thread Emmanuel Vadot
On Mon, 5 Dec 2016 10:28:21 +0100 Maxime Ripard wrote: > On Thu, Dec 01, 2016 at 11:24:14AM +0100, Emmanuel Vadot wrote: > > > > > > If num-cs isn't present nothing prevent to start a transfer > > > > > > with a non-valid CS pin, resulting in an error. num-cs are > > > > > > default property es

Re: [PATCH] perf/core: remove invalid warning from list_update_cgroup_event

2016-12-05 Thread David Carrillo-Cisneros
>> The warning introduced in commit: >> >> 979bfef8607c ("perf/core: Do not set cpuctx->cgrp for unscheduled cgroups") > > That commit doesn't exist. > > You instead mean this one, right? Ups, got it from the wrong tree. Yes, that's the one I meant. > > 864c2357ca89 ("perf/core: Do not set cpuc

Re: [PATCH v2 2/3] ARM: dts: sunxi: add support for Orange Pi Zero board

2016-12-05 Thread Maxime Ripard
On Mon, Dec 05, 2016 at 04:59:44PM +0800, Icenowy Zheng wrote: > > 2016年12月5日 16:52于 Maxime Ripard 写道: > > > > On Fri, Dec 02, 2016 at 10:22:30PM +0800, Icenowy Zheng wrote: > > > > > > > > > 01.12.2016, 17:36, "Maxime Ripard" : > > > > On Mon, Nov 28, 2016 at 12:29:07AM +, André Przywara

Re: [RFC PATCH v2] mm: use ACCESS_ONCE in page_cpupid_xchg_last()

2016-12-05 Thread Christian Borntraeger
On 12/05/2016 10:26 AM, Xishi Qiu wrote: > A compiler could re-read "old_flags" from the memory location after reading > and calculation "flags" and passes a newer value into the cmpxchg making > the comparison succeed while it should actually fail. > > Signed-off-by: Xishi Qiu > Suggested-by: C

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-05 Thread Amelie DELAUNAY
Hi Mathieu, Thanks for reviewing On 12/02/2016 06:56 PM, Mathieu Poirier wrote: > On Fri, Dec 02, 2016 at 03:09:56PM +0100, Amelie Delaunay wrote: >> This patch adds support for the STM32 RTC. > > Hello Amelie, > >> >> Signed-off-by: Amelie Delaunay >> --- >> drivers/rtc/Kconfig | 10 + >>

Re: [PATCH] drm/radeon: don't add files at control minor debugfs directory

2016-12-05 Thread Christian König
Am 05.12.2016 um 09:39 schrieb Nicolai Stange: Christian König writes: Am 05.12.2016 um 08:27 schrieb Daniel Vetter: On Sat, Dec 03, 2016 at 03:47:00PM +0100, Nicolai Stange wrote: Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a struct drm_device's ->control member is always NUL

Re: [net-next][PATCH 02/18] RDS: mark few internal functions static to make sparse build happy

2016-12-05 Thread Sergei Shtylyov
Hello! On 12/5/2016 9:57 AM, Santosh Shilimkar wrote: Fixes below warnings: warning: symbol 'rds_send_probe' was not declared. Should it be static? warning: symbol 'rds_send_ping' was not declared. Should it be static? warning: symbol 'rds_tcp_accept_one_path' was not declared. Should it be sta

Re: [PATCH 1/1] mtd: ubi: fix improper return value

2016-12-05 Thread Artem Bityutskiy
On Mon, 2016-12-05 at 09:23 +0100, Boris Brezillon wrote: > I started to implement that too but unfortunately never had the time > to > finish it :-(. > Don't know why you were trying to move to kzalloc-ed buffer, but my > goal was to avoid the extra copy when the controller transfers data > using

RE: [PATCH v9 07/16] drivers: acpi: implement acpi_dma_configure

2016-12-05 Thread Sricharan
Hi Lorenzo, > >On Sat, Dec 3, 2016 at 11:39 AM, Lorenzo Pieralisi > wrote: >> On Sat, Dec 03, 2016 at 03:11:09AM +0100, Rafael J. Wysocki wrote: >>> On Fri, Dec 2, 2016 at 4:38 PM, Lorenzo Pieralisi >>> wrote: >>> > Rafael, Mark, Suravee, >>> > >>> > On Mon, Nov 21, 2016 at 10:01:39AM +, Lore

Re: [PATCH] drm/radeon: don't add files at control minor debugfs directory

2016-12-05 Thread Daniel Vetter
On Mon, Dec 05, 2016 at 09:48:02AM +0100, Christian König wrote: > Am 05.12.2016 um 09:39 schrieb Nicolai Stange: > > Christian König writes: > > > > > Am 05.12.2016 um 08:27 schrieb Daniel Vetter: > > > > On Sat, Dec 03, 2016 at 03:47:00PM +0100, Nicolai Stange wrote: > > > > > Since commit 8a35

Re: [PATCH 3/8] rtc: add STM32 RTC driver

2016-12-05 Thread Amelie DELAUNAY
On 12/02/2016 07:05 PM, Mathieu Poirier wrote: On Fri, Dec 02, 2016 at 03:09:56PM +0100, Amelie Delaunay wrote: This patch adds support for the STM32 RTC. Signed-off-by: Amelie Delaunay --- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile| 1 + drivers/rtc/rtc-stm32.c | 777 +++

Re: [PATCH 2/2] mm: page_alloc: High-order per-cpu page allocator v5

2016-12-05 Thread Mel Gorman
On Mon, Dec 05, 2016 at 12:06:19PM +0900, Joonsoo Kim wrote: > On Fri, Dec 02, 2016 at 09:04:49AM +, Mel Gorman wrote: > > On Fri, Dec 02, 2016 at 03:03:46PM +0900, Joonsoo Kim wrote: > > > > @@ -1132,14 +1134,17 @@ static void free_pcppages_bulk(struct zone > > > > *zone, int count, > > > >

Re: [PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-12-05 Thread Takashi Sakamoto
On Dec 5 2016 16:32, Jiada Wang wrote: Hi Sakamoto On 11/30/2016 02:45 AM, Takashi Sakamoto wrote: Hi Jiada, I don't oppose this patch. Nevertheless, your description is not necessarily correct. On Nov 30 2016 16:59, Jiada Wang wrote: From: Daniel Girnus ALSA usually calls the prepare func

Re: [patch net v2] net: fec: fix compile with CONFIG_M5272

2016-12-05 Thread Fabio Estevam
On Mon, Dec 5, 2016 at 6:16 AM, Nikita Yushchenko wrote: > Commit 4dfb80d18d05 ("net: fec: cache statistics while device is down") > introduced unconditional statistics-related actions. > > However, when driver is compiled with CONFIG_M5272, staticsics-related > definitions do not exist, which res

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

2016-12-05 Thread Michael Ellerman
Hi Linus, Please pull what is hopefully the last batch of powerpc fixes for 4.9. The following changes since commit 984d7a1ec67ce3a46324fa4bcb4c745bbc266cf2: powerpc/mm: Fixup kernel read only mapping (2016-11-25 14:18:25 +1100) are available in the git repository at: git://git.kernel.org/

Re: [PATCH 04/15] Drivers: hv: vmbus: Prevent sending data on a rescinded channel

2016-12-05 Thread Dan Carpenter
On Thu, Dec 01, 2016 at 09:28:41AM -0800, k...@exchange.microsoft.com wrote: > From: K. Y. Srinivasan > > After the channel is rescinded, the host does not read from the rescinded > channel. > Fail writes to a channel that has already been rescinded What are the user visible effects of this bug

[PATCH] MAINTAINERS: add 2967 SoC drivers to ARM ZTE architecture

2016-12-05 Thread Baoyou Xie
Add the 2967 SoC drivers as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ad199da..ba787ac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH 1/2] devicetree: i2c-hid: Add regulator support

2016-12-05 Thread Benjamin Tissoires
On Dec 02 2016 or thereabouts, Brian Norris wrote: > From: Caesar Wang > > Document a "vdd-supply" and an initialization delay. Can be used for > powering on/off a HID. > > Signed-off-by: Caesar Wang > Cc: Rob Herring > Cc: Jiri Kosina > Cc: linux-in...@vger.kernel.org > Signed-off-by: Brian

Build regressions/improvements in v4.9-rc8

2016-12-05 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.9-rc8[1] compared to v4.8[2]. Summarized: - build errors: +7/-3 - build warnings: +1620/-1082 JFYI, when comparing v4.9-rc8[1] to v4.9-rc7[3], the summaries are: - build errors: +5/-10 - build warnings: +426/-271 Not

[PATCH v2 1/6] net: stmmac: return error if no DMA configuration is found

2016-12-05 Thread Niklas Cassel
From: Niklas Cassel All drivers except pci glue layer calls stmmac_probe_config_dt. stmmac_probe_config_dt does a kzalloc dma_cfg. pci glue layer does kzalloc dma_cfg explicitly, so all current drivers does a kzalloc dma_cfg. Return an error if no DMA configuration is found, that way we can ass

[PATCH v2 2/6] net: stmmac: simplify the common DMA init API

2016-12-05 Thread Niklas Cassel
From: Niklas Cassel Use struct stmmac_dma_cfg *dma_cfg as an argument rather than using all the struct members as individual arguments. Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/common.h| 4 ++-- drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 13 +

Re: [PATCH 2/8] dt-bindings: document the STM32 RTC bindings

2016-12-05 Thread Alexandre Belloni
Hi, On 02/12/2016 at 15:09:55 +0100, Amelie Delaunay wrote : > This patch adds documentation of device tree bindings for the STM32 RTC. > > Signed-off-by: Amelie Delaunay > --- > .../devicetree/bindings/rtc/st,stm32-rtc.txt | 31 > ++ > 1 file changed, 31 insertions(+

[PATCH] i2c: rk3x: keep i2c irq ON in suspend

2016-12-05 Thread David Wu
During suspend there may still be some i2c access happening. And if we don't keep i2c irq ON, there may be i2c access timeout if i2c is in irq mode of operation. Signed-off-by: David Wu --- drivers/i2c/busses/i2c-rk3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

Re: ILP32 for ARM64: testing with glibc testsuite

2016-12-05 Thread Andreas Schwab
On Dez 05 2016, "Zhangjian (Bamvor)" wrote: > Is there some progresses on it? We could collabrate to fix those issues. All the elf/nptl/rt fails should be fixed by the recent binutils fixes. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE

[PATCH v3 0/3] ARM: da850: fix pll0 rate setting

2016-12-05 Thread Bartosz Golaszewski
While trying to set the pll0 rate from the kernel I noticed there are two issues with da850 clocks. The first patch fixes an infinite loop in propagate_rate(). The third fixes an oops in da850_set_pll0rate(). The second patch is just a coding style fix, while we're at it. v1 -> v2: - change the ap

[PATCH v3 3/3] ARM: da850: fix da850_set_pll0rate()

2016-12-05 Thread Bartosz Golaszewski
This function is confusing - its second argument is an index to the freq table, not the requested clock rate in Hz, but it's used as the set_rate callback for the pll0 clock. It leads to an oops when the caller doesn't know the internals and passes the rate in Hz as argument instead of the cpufreq

[PATCH v3 1/3] ARM: da850: fix infinite loop in clk_set_rate()

2016-12-05 Thread Bartosz Golaszewski
The aemif clock is added twice to the lookup table in da850.c. This breaks the children list of pll0_sysclk3 as we're using the same list links in struct clk. When calling clk_set_rate(), we get stuck in propagate_rate(). Create a separate clock for nand, inheriting the rate of the aemif clock and

Re: ILP32 for ARM64: testing with glibc testsuite

2016-12-05 Thread Zhangjian (Bamvor)
Hi, Steve On 2016/11/18 5:45, Steve Ellcey wrote: On Wed, 2016-11-16 at 15:22 +0400, Maxim Kuvyrkov wrote: On Nov 9, 2016, at 1:56 PM, Yury Norov wrote: Below is the results of glibc testsuite run for aarch64/lp64 I have been running the glibc testsuite as well. I have only run it on an

[PATCH v3 2/3] ARM: da850: coding style fix

2016-12-05 Thread Bartosz Golaszewski
Fix alignment of the clock lookup table entries. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index c008e5e..006ec56 100644 --- a/arch/arm/mac

Re: [PATCH 3/3 v3] ALSA: usb-audio: fix race in snd_usb_endpoint_stop

2016-12-05 Thread Jiada Wang
Hi, Takashi On 11/30/2016 01:00 AM, Takashi Iwai wrote: On Wed, 30 Nov 2016 08:59:23 +0100, Jiada Wang wrote: From: Mark Craske Kernel crash seen once: Unable to handle kernel NULL pointer dereference at virtual address 0008 pgd = a1d7c000 [0008] *pgd=31c93831, *pte=, *ppte=00

[PATCH v2] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay

2016-12-05 Thread Javi Merino
In asds configured with V4L2_ASYNC_MATCH_OF, the v4l2 subdev can be part of a devicetree overlay, for example: &media_bridge { ... my_port: port@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; ep: endpoint@0 {

Re: [PATCH v2 3/3] ARM: da850: fix da850_set_pll0rate()

2016-12-05 Thread Sekhar Nori
On Friday 02 December 2016 09:08 PM, Bartosz Golaszewski wrote: > This function is broken - its second argument is an index to the freq > table, not the requested clock rate in Hz. It leads to an oops when > called from clk_set_rate() since this argument isn't bounds checked > either. > > Fix it b

Re: [PATCH v3 1/3] ARM: da850: fix infinite loop in clk_set_rate()

2016-12-05 Thread Sekhar Nori
On Monday 05 December 2016 03:39 PM, Bartosz Golaszewski wrote: > The aemif clock is added twice to the lookup table in da850.c. This > breaks the children list of pll0_sysclk3 as we're using the same list > links in struct clk. When calling clk_set_rate(), we get stuck in > propagate_rate(). > >

Re: ILP32 for ARM64 - testing with lmbench

2016-12-05 Thread Zhangjian (Bamvor)
Hi, Catalin, Guys Do you have suggestion of next move of upstreaming ILP32? There are already the test results of lmbench and specint. Do you they are ok or need more data to prove no regression? I have also noticed that there are ILP32 failures in glibc testsuite. Is it the only blocker for me

Re: [PATCH 2/8] dt-bindings: document the STM32 RTC bindings

2016-12-05 Thread Amelie DELAUNAY
Hi Alexandre, Thanks for reviewing On 12/05/2016 11:06 AM, Alexandre Belloni wrote: Hi, On 02/12/2016 at 15:09:55 +0100, Amelie Delaunay wrote : This patch adds documentation of device tree bindings for the STM32 RTC. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/rtc/st,stm32-

Re: linux-next: unable to fetch the watchdog tree

2016-12-05 Thread Wim Van Sebroeck
Hi Stephen, Yes, I am setting up a new server. Kind regards, Wim. > Hi Wim, > > On Tue, 22 Nov 2016 09:49:19 +1100 Stephen Rothwell > wrote: > > > > On Mon, 14 Nov 2016 16:26:16 +0100 Wim Van Sebroeck wrote: > > > > > > This has been fixed. Thanks for notifying me about it. > > > > > > >

can you establish this charity work

2016-12-05 Thread anisa.ibra...@ono.com
I am Amy Riddering, 41 years old, wife of late Mr. Michael James Riddering, USA citizen who was killed On 15 January 2016 in the Al Qaeda terrorist attack in Burkina Faso, I am a cancer victim, respond to me now because I want you to do a charity work for me. I want to hand over to you a fund w

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

2016-12-05 Thread Matthias Brugger
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 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/m

Re: 4.3 kernel panics when MMC/SDHC card is inserted on thinkpad

2016-12-05 Thread Joerg Roedel
Hi David, On Sun, Dec 04, 2016 at 06:57:57PM -0600, David F wrote: > Aug 19 13:32:20 taz [ 156.425627] [ cut here ] > Aug 19 13:32:20 taz [ 156.428136] kernel BUG at > drivers/iommu/intel-iommu.c:3682! This BUG_ON triggered because the IOMMU driver can't find a domain fo

Re: ILP32 for ARM64: testing with glibc testsuite

2016-12-05 Thread Zhangjian (Bamvor)
On 2016/12/5 18:07, Andreas Schwab wrote: On Dez 05 2016, "Zhangjian (Bamvor)" wrote: Is there some progresses on it? We could collabrate to fix those issues. All the elf/nptl/rt fails should be fixed by the recent binutils fixes. Cool. How about the conform and other failures? Regards

Re: [PATCH] perf/x86: fix event counter update issue

2016-12-05 Thread Peter Zijlstra
On Fri, Dec 02, 2016 at 12:58:17PM +, Odzioba, Lukasz wrote: > On Tuesday, November 29, 2016 9:33 PM, Liang, Kan wrote: > > Yes, the patch as below fixes the issue on my SLM. > > It works for me as well. > Can we still have it in 4.9? I'll certainly, try. I've queued it as per the below. --

[PATCH v8 6/6] powerpc/pv-qspinlock: Optimise native unlock path

2016-12-05 Thread Pan Xinhui
Avoid a function call under native version of qspinlock. On powerNV, bafore applying this patch, every unlock is expensive. This small optimizes enhance the performance. We use static_key with jump_label which removes unnecessary loads of lppaca and its stuff. Signed-off-by: Pan Xinhui --- arch

[PATCH v8 0/6] Implement qspinlock/pv-qspinlock on ppc

2016-12-05 Thread Pan Xinhui
Hi All, this is the fairlock patchset. You can apply them and build successfully. patches are based on linux-next qspinlock can avoid waiter starved issue. It has about the same speed in single-thread and it can be much faster in high contention situations especially when the spinlock is embedd

Re: [RFC PATCH 2/2] Documentation: devictree: Add macb mdio bindings

2016-12-05 Thread Nicolas Ferre
Le 05/12/2016 à 03:55, Harini Katakam a écrit : > Hi Rob, > > > Thanks for the review. > On Sun, Dec 4, 2016 at 3:05 AM, Rob Herring wrote: >> On Mon, Nov 28, 2016 at 03:19:27PM +0530, Harini Katakam wrote: > >>> +Required properties: >>> +- compatible: Should be "cdns,macb-mdio" >> >> Only one

[PATCH v8 5/6] powerpc: pSeries: Add pv-qspinlock build config/make

2016-12-05 Thread Pan Xinhui
pSeries run as a guest and might need pv-qspinlock. Signed-off-by: Pan Xinhui --- arch/powerpc/kernel/Makefile | 1 + arch/powerpc/platforms/pseries/Kconfig | 8 2 files changed, 9 insertions(+) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 19

[PATCH v8 3/6] powerpc: lib/locks.c: Add cpu yield/wake helper function

2016-12-05 Thread Pan Xinhui
Add two corresponding helper functions to support pv-qspinlock. For normal use, __spin_yield_cpu will confer current vcpu slices to the target vcpu(say, a lock holder). If target vcpu is not specified or it is in running state, such conferging to lpar happens or not depends. Because hcall itself

Re: [PATCH 3/3 v3] ALSA: usb-audio: fix race in snd_usb_endpoint_stop

2016-12-05 Thread Takashi Iwai
On Mon, 05 Dec 2016 11:10:59 +0100, Jiada Wang wrote: > > Hi, Takashi > > On 11/30/2016 01:00 AM, Takashi Iwai wrote: > > On Wed, 30 Nov 2016 08:59:23 +0100, > > Jiada Wang wrote: > >> From: Mark Craske > >> > >> Kernel crash seen once: > >> > >> Unable to handle kernel NULL pointer dereference a

Re: [RFC][PATCH] x86: Verify access_ok() context

2016-12-05 Thread Peter Zijlstra
On Tue, Nov 22, 2016 at 11:42:19AM -0800, Linus Torvalds wrote: > On Tue, Nov 22, 2016 at 11:37 AM, Peter Zijlstra wrote: > > > > CONFIG_DEBUG_VM seems somehow inappropriate. > > The usual might_fault() logic? That uses > > defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_DEBUG_ATOMIC_SLEEP)

<    3   4   5   6   7   8   9   >