Re: [PATCH v2 15/30] xfs: Define usercopy region in xfs_inode slab cache

2017-08-30 Thread Christoph Hellwig
On Wed, Aug 30, 2017 at 07:51:57AM +1000, Dave Chinner wrote: > Right, I've looked at btrees, too, but it's more complex than just > using an rbtree. I originally looked at using Peter Z's old > RCU-aware btree code, but it doesn't hold data in the tree leaves. > So that needed significant modifica

[PATCH 0/6] [media] cx24116: Adjustments for two function implementations

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 30 Aug 2017 09:05:04 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (6): Delete an error message for a failed memory allocation in cx24116_writeregN() Return directly after a failed kmalloc() in cx24116_

[PATCH 1/6] [media] cx24116: Delete an error message for a failed memory allocation in cx24116_writeregN()

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 29 Aug 2017 22:56:29 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/cx24116.c | 1 - 1 file changed, 1 deletio

[PATCH 2/6] [media] cx24116: Return directly after a failed kmalloc() in cx24116_writeregN()

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 30 Aug 2017 07:55:49 +0200 * Return directly after a call of the function "kmalloc" failed at the beginning. * Delete the jump target "error" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/cx241

[PATCH 3/6] [media] cx24116: Delete an unnecessary variable initialisation in cx24116_writeregN()

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 30 Aug 2017 08:10:38 +0200 The variable "ret" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/cx24116.c | 2 +- 1 file changed, 1 in

[PATCH 4/6] [media] cx24116: Improve a size determination in cx24116_attach()

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 30 Aug 2017 08:15:33 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 5/6] [media] cx24116: Delete an unnecessary variable initialisation in cx24116_attach()

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 30 Aug 2017 08:30:12 +0200 The variable "state" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/dvb-frontends/cx24116.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v2 3/3] livepatch: force transition process to finish

2017-08-30 Thread Pavel Machek
On Thu 2017-08-10 12:48:15, Miroslav Benes wrote: > If a task sleeps in a set of patched functions uninterruptibly, it could > block the whole transition process indefinitely. Thus it may be useful > to clear its TIF_PATCH_PENDING to allow the process to finish. > > Admin can do that now by writi

[PATCH 6/6] [media] cx24116: Delete jump targets in cx24116_attach()

2017-08-30 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 30 Aug 2017 08:44:29 +0200 * Return directly after a call of the function "kzalloc" failed at the beginning. * Move a bit of exception handling code into an if branch. * Delete two jump targets which became unnecessary with this refactoring. Signed-off-by: Mar

[PATCH 1/2] arm64: stacktrace: avoid listing stacktrace functions in stacktrace

2017-08-30 Thread Prakash Gupta
The stacktraces always begin as follows: [] save_stack_trace_tsk+0x0/0x98 [] save_stack_trace+0x24/0x28 ... This is because the stack trace code includes the stack frames for itself. This is incorrect behaviour, and also leads to "skip" doing the wrong thing (which is the number of stack frame

[PATCH 2/2] mm, page_owner: Skip unnecessary stack_trace entries

2017-08-30 Thread Prakash Gupta
The page_owner stacktrace always begin as follows: [] save_stack+0x40/0xc8 [] __set_page_owner+0x3c/0x6c These two entries do not provide any useful information and limits the available stacktrace depth. The page_owner stacktrace was skipping caller function from stack entries but this was misse

Re: [RFC PATCH v2 1/7] x86/paravirt: Add pv_idle_ops to paravirt ops

2017-08-30 Thread Juergen Gross
On 29/08/17 15:55, Konrad Rzeszutek Wilk wrote: > On Tue, Aug 29, 2017 at 11:46:35AM +, Yang Zhang wrote: >> So far, pv_idle_ops.poll is the only ops for pv_idle. .poll is called in >> idle path which will polling for a while before we enter the real idle >> state. >> >> In virtualization, idle

Re: [PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-30 Thread Jiri Pirko
Tue, Aug 29, 2017 at 05:57:54PM CEST, vivien.dide...@savoirfairelinux.com wrote: >Hi David, Jiri, > >Jiri Pirko writes: > >> Tue, Aug 29, 2017 at 06:38:37AM CEST, da...@davemloft.net wrote: >>>From: Vivien Didelot >>>Date: Mon, 28 Aug 2017 15:17:38 -0400 >>> This patch series adds a generic

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-30 Thread Byungchul Park
On Wed, Aug 30, 2017 at 11:09:53AM +0900, Byungchul Park wrote: > On Tue, Aug 29, 2017 at 10:59:39AM +0200, Peter Zijlstra wrote: > > Subject: lockdep: Untangle xhlock history save/restore from task > > independence > > > > Where XHLOCK_{SOFT,HARD} are save/restore points in the xhlocks[] to > >

Re: d82fed7529 ("locking/lockdep/selftests: Fix mixed read-write .."): BUG: -1 unexpected failures (out of 262) - debugging disabled! |

2017-08-30 Thread Peter Zijlstra
On Wed, Aug 30, 2017 at 08:29:47AM +0200, Peter Zijlstra wrote: > On Wed, Aug 30, 2017 at 11:37:21AM +0800, kernel test robot wrote: > > > [0.004000] > > - > > [0.004000] BUG: -1 unexpected failures (out of 262) - debugging

Re: [PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-30 Thread Jiri Pirko
Tue, Aug 29, 2017 at 02:50:04PM CEST, and...@lunn.ch wrote: >On Tue, Aug 29, 2017 at 08:25:23AM +0200, Jiri Pirko wrote: >> Mon, Aug 28, 2017 at 10:08:34PM CEST, and...@lunn.ch wrote: >> >> I see this overlaps a lot with DPIPE. Why won't you use that to expose >> >> your hw state? >> > >> >We took

Re: [PATCH v2] USB: serial: option: add support for D-Link DWM-157 C1

2017-08-30 Thread Johan Hovold
On Tue, Aug 29, 2017 at 09:50:03PM +0200, Maciej S. Szmigiero wrote: > This commit adds support (an ID, really) for D-Link DWM-157 hardware > version C1 USB modem to option driver. > > According to manufacturer-provided Windows INF file the device has four > serial ports: > "D-Link HSPA+DataCard D

Re: [PATCH] USB: serial: option: simplify 3 D-Link device entries

2017-08-30 Thread Johan Hovold
On Tue, Aug 29, 2017 at 04:41:21PM +0200, Johan Hovold wrote: > On Tue, Aug 29, 2017 at 10:45:13AM +0200, Bjørn Mork wrote: > > All the vendor specific interfaces on these devices are serial > > functions handled by this driver, so we can use a single class > > match entry for each. > > > > P: V

Re: [PATCH v2] mm/hugetlb.c: make huge_pte_offset() consistent and document behaviour

2017-08-30 Thread Michal Hocko
On Fri 18-08-17 15:54:15, Punit Agrawal wrote: > When walking the page tables to resolve an address that points to > !p*d_present() entry, huge_pte_offset() returns inconsistent values > depending on the level of page table (PUD or PMD). > > It returns NULL in the case of a PUD entry while in the

Re: [PATCH v3 3/3] eeprom: at24: enable runtime pm support

2017-08-30 Thread Sakari Ailus
Hi Divagar, Thanks for the update. A few more comments below. On Wed, Aug 30, 2017 at 09:41:06AM +0530, Divagar Mohandass wrote: > Currently the device is kept in D0, there is an opportunity > to save power by enabling runtime pm. > > Device can be daisy chained from PMIC and we can't rely on I2

[PATCH] Input: synaptics - Lenovo Thinkpad X1 Carbon G5 (2017) with Elantech trackpoints should use RMI.

2017-08-30 Thread edvard . holst
From: Edvard Holst Lenovo use two different trackpoints in the fifth generation Thinkpad X1 Carbon. Both are accessible over SMBUS/RMI but the pnpIDs are missing. This patch is for the Elantech trackpoint specifically which also reports SMB version 3 so rmi_smbus needs to be updated in order t

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-30 Thread Pierre Yves MORDRET
On 08/28/2017 01:48 PM, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > Thanks for your invaluable inputs. This is more clear now and revise my driver > > I would not bother with mix

Re: [PATCH v3] mfd: tps65217: Introduce dependency on CONFIG_OF

2017-08-30 Thread Javier Martinez Canillas
Hello Keerthy, On Wed, Aug 30, 2017 at 7:50 AM, Keerthy wrote: > Currently the driver boots only via device tree hence add a > dependency on CONFIG_OF. This leaves with a bunch of unused code > so clean that up. This patch also makes use of probe_new function > in place of the probe function so a

Re: [PATCH v2 15/30] xfs: Define usercopy region in xfs_inode slab cache

2017-08-30 Thread Dave Chinner
On Wed, Aug 30, 2017 at 12:14:03AM -0700, Christoph Hellwig wrote: > On Wed, Aug 30, 2017 at 07:51:57AM +1000, Dave Chinner wrote: > > Right, I've looked at btrees, too, but it's more complex than just > > using an rbtree. I originally looked at using Peter Z's old > > RCU-aware btree code, but it

Re: I/O hangs after resuming from suspend-to-ram

2017-08-30 Thread Ming Lei
Hi, On Wed, Aug 30, 2017 at 08:15:02AM +0200, oleksa...@natalenko.name wrote: > Hello. > > Addressing your questions below. > > > Can't reproduce even with putting dmcypt on raid10 after applying my > > patch. > > Just a side note, that dm-crypt is not necessary here — I am able to trigger > ha

(Kernel Bug report) Make kaby lake cpu crash Ethernet

2017-08-30 Thread Chiwu Yung
Hello Sir, i am using cpu i7 7700k kaby lake, i have no overclock the CPU but i think i7 7700k come across with Ethernet crash issue. Don't know why it will keeping crash. I tested the kernel since 4.8 - 4.12 almost 2-3months and i can see that the issue is still exist. Kernel error then the Ethe

Re: kvm splat in mmu_spte_clear_track_bits

2017-08-30 Thread Michal Hocko
On Tue 29-08-17 16:09:24, Andrea Arcangeli wrote: [...] > The other bug where you can reproduce the same corruption with OOM is > unrelated and caused by the OOM reaper. OOM reaper was even corrupting > data if a task was writing to disk and stuck in OOM in write() syscall > or async io write. > >

Re: (Kernel Bug report) Make kaby lake cpu crash Ethernet

2017-08-30 Thread Greg KH
On Wed, Aug 30, 2017 at 04:16:54PM +0800, Chiwu Yung wrote: > Hello Sir, i am using cpu i7 7700k kaby lake, i have no overclock the > CPU but i think i7 7700k come across with Ethernet crash issue. Don't > know why it will keeping crash. > I tested the kernel since 4.8 - 4.12 almost 2-3months and

Re: [PATCH 3/7] ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Nanopi M1 Plus

2017-08-30 Thread Chen-Yu Tsai
On Wed, Aug 30, 2017 at 11:01 AM, Philipp Rossak wrote: > From: Philipp Rossak > > The dwmac-sun8i hardware is present on the Nanopi M1 Plus. Support for this has been reverted. Please send this once it has been added again. ChenYu > It uses an external PHY. > > Signed-off-by: Philipp Rossak

[PATCH net-next v4 03/13] Documentation/bindings: phy: document the Marvell comphy driver

2017-08-30 Thread Antoine Tenart
The Marvell Armada 7K/8K SoCs contains an hardware block called COMPHY that provides a number of shared PHYs used by various interfaces in the SoC: network, SATA, PCIe, etc. This Device Tree binding allows to describe this COMPHY hardware block. Signed-off-by: Antoine Tenart --- .../devicetree/b

[PATCH net-next v4 11/13] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports

2017-08-30 Thread Antoine Tenart
This patch adds comphy phandles to the Ethernet ports in the mcbin device tree. The comphy is used to configure the serdes PHYs used by these ports. Signed-off-by: Antoine Tenart --- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm

[PATCH net-next v4 13/13] arm64: defconfig: enable Marvell CP110 comphy

2017-08-30 Thread Antoine Tenart
From: Miquel Raynal The comphy is an hardware block giving access to common PHYs that can be used by various other engines (Network, SATA, ...). This is used on Marvell 7k/8k platforms for now. Enable the corresponding driver. Signed-off-by: Miquel Raynal Signed-off-by: Antoine Tenart --- arc

[PATCH net-next v4 08/13] net: mvpp2: dynamic reconfiguration of the comphy/GoP/MAC

2017-08-30 Thread Antoine Tenart
This patch adds logic to reconfigure the comphy/GoP/MAC when the link state is updated at runtime. This is very useful on boards where many link speed are supported: depending on what is negotiated the PPv2 driver will automatically reconfigures the link between the PHY and the MAC. Signed-off-by:

Re: [PATCH] drm: vmwgfx: constify vmw_fence_ops

2017-08-30 Thread Daniel Vetter
On Wed, Aug 30, 2017 at 08:21:46AM +0200, Thomas Hellstrom wrote: > On 08/30/2017 07:47 AM, Arvind Yadav wrote: > > vmw_fence_ops are not supposed to change at runtime. Functions > > "dma_fence_init" working with const vmw_fence_ops provided > > by . So mark the non-const structs as const. > > > >

Re: [PATCH v6 1/3] perf/core: use rb trees for pinned/flexible groups

2017-08-30 Thread Alexey Budankov
On 29.08.2017 16:51, Alexander Shishkin wrote: > Alexey Budankov writes: > >> Now I figured that not all indexed events are always located under >> the root with the same cpu, and it depends on the order of insertion >> e.g. with insertion order 01,02,03,14,15,16 we get this: >> >> 02 >>

[PATCH net-next] xfrm: Add support for network devices capable of removing the ESP trailer

2017-08-30 Thread yossiku
From: Yossi Kuperman In conjunction with crypto offload [1], removing the ESP trailer by hardware can potentially improve the performance by avoiding (1) a cache miss incurred by reading the nexthdr field and (2) the necessity to calculate the csum value of the trailer in order to keep skb->csum

[PATCH net-next v4 10/13] arm64: dts: marvell: add comphy nodes on cp110 master and slave

2017-08-30 Thread Antoine Tenart
Now that the comphy driver is available, this patch adds the corresponding nodes in the cp110 master and slave device trees. Signed-off-by: Antoine Tenart --- .../boot/dts/marvell/armada-cp110-master.dtsi | 38 ++ .../arm64/boot/dts/marvell/armada-cp110-slave.dtsi | 38 +

[PATCH net-next v4 05/13] net: mvpp2: simplify the link_event function

2017-08-30 Thread Antoine Tenart
The link_event function is somewhat complicated. This cosmetic patch simplifies it. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/etherne

[PATCH net-next v4 12/13] arm64: dts: marvell: 7040-db: add comphy references to Ethernet ports

2017-08-30 Thread Antoine Tenart
This patch adds comphy phandles to the Ethernet ports in the 7040-db device tree. The comphy is used to configure the serdes PHYs used by these ports. Signed-off-by: Antoine Tenart --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/b

[PATCH net-next v4 00/13] net: mvpp2: comphy configuration

2017-08-30 Thread Antoine Tenart
Hi all, This series, following up the one one the GoP/MAC configuration, aims at stopping to depend on the firmware/bootloader configuration when using the PPv2 engine. With this series the PPv2 driver does not need to rely on a previous configuration, and dynamic reconfiguration while the kernel

[PATCH net-next v4 06/13] net: mvpp2: improve the link management function

2017-08-30 Thread Antoine Tenart
When the link status changes, the phylib calls the link_event function in the mvpp2 driver. Before this patch only the egress/ingress transmit was enabled/disabled. This patch adds more functionality to the link status management code by enabling/disabling the port per-cpu interrupts, and the port

[PATCH] hwmon: (asc7621): make several arrays static const

2017-08-30 Thread Colin King
From: Colin Ian King Don't populate the arrays on the stack, instead make them static. Makes the object code smaller by over 950 bytes: Before: textdata bss dec hex filename 26144 18768 352 45264b0d0 drivers/hwmon/asc7621.o After: textdata bss dec

[PATCH net-next v4 07/13] net: mvpp2: do not set GMAC autoneg when using XLG MAC

2017-08-30 Thread Antoine Tenart
When using the XLG MAC, it does not make sense to force the GMAC autoneg parameters. This patch adds checks to only set the GMAC autoneg parameters when needed (i.e. when not using the XLG MAC). Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 64 +++--

Re: [PATCH v2 15/30] xfs: Define usercopy region in xfs_inode slab cache

2017-08-30 Thread Christoph Hellwig
On Wed, Aug 30, 2017 at 06:05:58PM +1000, Dave Chinner wrote: > Ok, that's sounds like it'll fit right in with what I've been > prototyping for the extent code in xfs_bmap.c. I can make that work > with a cursor-based lookup/inc/dec/ins/del API similar to the bmbt > API. I've been looking to abstra

[PATCH net-next v4 09/13] arm64: dts: marvell: extend the cp110 syscon register area length

2017-08-30 Thread Antoine Tenart
This patch extends on both cp110 the system register area length to include some of the comphy registers as well. Signed-off-by: Antoine Tenart --- arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi | 2 +- arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi | 2 +- 2 files changed, 2 inserti

[PATCH net-next v4 02/13] phy: add the mvebu cp110 comphy driver

2017-08-30 Thread Antoine Tenart
On the CP110 unit, which can be found on various Marvell platforms such as the 7k and 8k (currently), a comphy (common PHYs) hardware block can be found. This block provides a number of PHYs which can be used in various modes by other controllers (network, SATA ...). These common PHYs must be confi

[PATCH net-next v4 01/13] phy: add sgmii and 10gkr modes to the phy_mode enum

2017-08-30 Thread Antoine Tenart
This patch adds more generic PHY modes to the phy_mode enum, to allow configuring generic PHYs to the SGMII and/or the 10GKR mode by using the set_mode callback. Signed-off-by: Antoine Tenart Acked-by: Kishon Vijay Abraham I --- include/linux/phy/phy.h | 2 ++ 1 file changed, 2 insertions(+) d

[PATCH net-next v4 04/13] net: mvpp2: initialize the comphy

2017-08-30 Thread Antoine Tenart
On some platforms, the comphy is between the MAC GoP and the PHYs. The mvpp2 driver currently relies on the firmware/bootloader to configure the comphy. As a comphy driver was added to the generic PHY framework, this patch uses it in the mvpp2 driver to configure the comphy at boot time to avoid re

RE: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-08-30 Thread Gabriele Paoloni
ping... > -Original Message- > From: Gabriele Paoloni > Sent: 18 August 2017 12:02 > To: helg...@kernel.org > Cc: Gabriele Paoloni; Linuxarm; liudongdong (C); linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH v2] PCIe AER: report uncorrectable errors only to the

Re: [PATCH 14/14] arm64: kexec_file: add vmlinux format support

2017-08-30 Thread Michael Ellerman
Mark Rutland writes: > On Thu, Aug 24, 2017 at 06:30:50PM +0100, Mark Rutland wrote: >> On Thu, Aug 24, 2017 at 05:18:11PM +0900, AKASHI Takahiro wrote: >> > The first PT_LOAD segment, which is assumed to be "text" code, in vmlinux >> > will be loaded at the offset of TEXT_OFFSET from the beginin

Re: [PATCH 00/13] mmu_notifier kill invalidate_page callback

2017-08-30 Thread Mike Galbraith
On Tue, 2017-08-29 at 20:56 -0400, Jerome Glisse wrote: > On Tue, Aug 29, 2017 at 05:11:24PM -0700, Linus Torvalds wrote: > > > People - *especially* the people who saw issues under KVM - can you > > try out Jérôme's patch-series? I aded some people to the cc, the full > > series is on lkml. Jérôm

Re: [PATCH] perf report: calculate the average cycles of iterations

2017-08-30 Thread Jin, Yao
Hi Arnaldo, Andi has reviewed this patch yet. https://patchwork.kernel.org/patch/9884399/ Is this patch OK for merging or any other comments? Thanks Jin Yao On 8/15/2017 11:19 AM, Andi Kleen wrote: On Mon, Aug 14, 2017 at 01:30:29AM +, Jin, Yao wrote: Hi Andi, Do you have any comments

Re: possible circular locking dependency detected [was: linux-next: Tree for Aug 22]

2017-08-30 Thread Peter Zijlstra
On Wed, Aug 30, 2017 at 03:15:11PM +0900, Sergey Senozhatsky wrote: > Hi, > > On (08/30/17 14:43), Byungchul Park wrote: > [..] > > > notably slower than earlier 4.13 linux-next. (e.g. scrolling in vim > > > is irritatingly slow) > > > > To Ingo, > > > > I cannot decide if we have to roll back C

[RFC PATCH] mm, oom_reaper: skip mm structs with mmu notifiers

2017-08-30 Thread Michal Hocko
From: Michal Hocko Andrea has noticed that the oom_reaper doesn't invalidate the range via mmu notifiers (mmu_notifier_invalidate_range_start, mmu_notifier_invalidate_range_end) and that can corrupt the memory of the kvm guest for example. As the callback is allowed to sleep and the implementatio

Re: possible circular locking dependency detected [was: linux-next: Tree for Aug 22]

2017-08-30 Thread Peter Zijlstra
On Wed, Aug 30, 2017 at 10:42:07AM +0200, Peter Zijlstra wrote: > > So the overhead looks to be spread out over all sorts, which makes it > harder to find and fix. > > stack unwinding is done lots and is fairly expensive, I've not yet > checked if crossrelease does too much of that. Aah, we do a

[PATCH 02/13] thermal/drivers/hisi: Remove the multiple sensors support

2017-08-30 Thread Daniel Lezcano
By essence, the tsensor does not really support multiple sensor at the same time. It allows to set a sensor and use it to get the temperature, another sensor could be switched but with a delay of 3-5ms. It is difficult to read simultaneously several sensors without a big delay. Today, just one sen

[PATCH 12/13] thermal/drivers/hisi: Remove thermal data back pointer

2017-08-30 Thread Daniel Lezcano
The presence of the thermal data pointer in the sensor structure has the unique purpose of accessing the thermal data in the interrupt handler. The sensor pointer is passed when registering the interrupt handler, replace the cookie by the thermal data pointer, so the back pointer is no longer need

[PATCH 10/13] thermal/drivers/hisi: Rename and remove unused field

2017-08-30 Thread Daniel Lezcano
Rename the 'sensors' field to 'sensor' as we describe only one sensor. Remove the 'sensor_temp' as it is no longer used. Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/thermal/hisi_t

[PATCH 11/13] thermal/drivers/hisi: Convert long to int

2017-08-30 Thread Daniel Lezcano
There is no point to specify the temperature as long variable, the int is enough. Replace all long variables to int, so making the code consistent. Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/th

[PATCH 13/13] thermal/drivers/hisi: Remove mutex_lock in the code

2017-08-30 Thread Daniel Lezcano
The mutex is used to protect against writes in the configuration register. That happens at probe time, with no possible race yet. Then when the module is unloaded and at suspend/resume. When the module is unloaded, it is an userspace operation, thus via a process. Suspending the system goes thro

[PATCH 07/13] thermal/drivers/hisi: Encapsulate register writes into helpers

2017-08-30 Thread Daniel Lezcano
Hopefully, the function name can help to clarify the semantic of the operations when writing in the register. Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 96 +++--- 1 file changed, 72 insertions(+), 24 deletions(-) diff --git a/drivers/

[PATCH 08/13] thermal/drivers/hisi: Fix configuration register setting

2017-08-30 Thread Daniel Lezcano
The TEMP0_CFG configuration register contains different field to set up the temperature controller. However in the code, nothing prevents a setup to overwrite the previous one: eg. writing the hdak value overwrites the sensor selection, the sensor selection overwrites the hdak value. In order to p

[PATCH 05/13] thermal/drivers/hisi: Fix multiple alarm interrupts firing

2017-08-30 Thread Daniel Lezcano
The DT specifies a threshold of 65000, we setup the register with a value in the temperature resolution for the controller, 64656. When we reach 64656, the interrupt fires, the interrupt is disabled. Then the irq thread runs and calls thermal_zone_device_update() which will call in turn hisi_therm

[PATCH 09/13] thermal/drivers/hisi: Remove costly sensor inspection

2017-08-30 Thread Daniel Lezcano
The sensor is all setup, bind, resetted, acked, etc... every single second. That was the way to workaround a problem with the interrupt bouncing again and again. With the following changes, we fix all in one: - Do the setup, one time, at probe time - Add the IRQF_ONESHOT, ack the interrupt in

[PATCH 04/13] thermal/drivers/hisi: Simplify the temperature/step computation

2017-08-30 Thread Daniel Lezcano
The step and the base temperature are fixed values, we can simplify the computation by converting the base temperature to milli celsius and use a pre-computed step value. That saves us a lot of mult + div for nothing at runtime. Take also the opportunity to change the function names to be consiste

[PATCH 06/13] thermal/drivers/hisi: Remove pointless lock

2017-08-30 Thread Daniel Lezcano
The threaded interrupt inspect the sensors structure to look in the temp threshold field, but this field is read-only in all the code, except in the probe function before the threaded interrupt is set. In other words there is not race window in the threaded interrupt when reading the field value.

[PATCH 01/13] thermal/drivers/hisi: Fix missing interrupt enablement

2017-08-30 Thread Daniel Lezcano
The interrupt for the temperature threshold is not enabled at the end of the probe function, enable it after the setup is complete. On the other side, the irq_enabled is not correctly set as we are checking if the interrupt is masked where 'yes' means irq_enabled=false. irq_get_irqchip_st

[PATCH 03/13] thermal/drivers/hisi: Fix kernel panic on alarm interrupt

2017-08-30 Thread Daniel Lezcano
The threaded interrupt for the alarm interrupt is requested before the temperature controller is setup. This one can fire an interrupt immediately leading to a kernel panic as the sensor data is not initialized. In order to prevent that, move the threaded irq after the Tsensor is setup. Signed-of

Re: [[PATCH v1] 15/37] [CIFS] SMBD: Post a SMBD data transfer message with data payload

2017-08-30 Thread Christoph Hellwig
On Wed, Aug 30, 2017 at 02:17:56AM +, Long Li wrote: > I partially addressed this issue in the V3 patch. Most of the duplicate > code on sending path is merged. > > The difficulty with translating the buffer to pages is that: I don't > know how many pages will be translated, and how many struc

RE: possible circular locking dependency detected [was: linux-next: Tree for Aug 22]

2017-08-30 Thread Byungchul Park
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Wednesday, August 30, 2017 5:48 PM > To: Sergey Senozhatsky > Cc: Byungchul Park; Bart Van Assche; linux-kernel@vger.kernel.org; linux- > bl...@vger.kernel.org; martin.peter...@oracle.com; ax...@kernel.dk; lin

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-30 Thread Peter Zijlstra
On Wed, Aug 30, 2017 at 04:41:17PM +0900, Byungchul Park wrote: > On Wed, Aug 30, 2017 at 11:09:53AM +0900, Byungchul Park wrote: > > > Signed-off-by: Peter Zijlstra (Intel) > > > --- > > > diff --git a/kernel/workqueue.c b/kernel/workqueue.c > > > index c0331891dec1..ab3c0dc8c7ed 100644 > > > --

Re: [PATCH v2 14/20] mm: Provide speculative fault infrastructure

2017-08-30 Thread Laurent Dufour
On 27/08/2017 02:18, Kirill A. Shutemov wrote: > On Fri, Aug 18, 2017 at 12:05:13AM +0200, Laurent Dufour wrote: >> +/* >> + * vm_normal_page() adds some processing which should be done while >> + * hodling the mmap_sem. >> + */ >> +int handle_speculative_fault(struct mm_struct *mm, unsigned long a

Re: [PATCH v3] mfd: tps65217: Introduce dependency on CONFIG_OF

2017-08-30 Thread Keerthy
On Wednesday 30 August 2017 01:35 PM, Javier Martinez Canillas wrote: > Hello Keerthy, > > On Wed, Aug 30, 2017 at 7:50 AM, Keerthy wrote: >> Currently the driver boots only via device tree hence add a >> dependency on CONFIG_OF. This leaves with a bunch of unused code >> so clean that up. This

RE: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-30 Thread Byungchul Park
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Wednesday, August 30, 2017 5:54 PM > To: Byungchul Park > Cc: mi...@kernel.org; t...@kernel.org; boqun.f...@gmail.com; > da...@fromorbit.com; johan...@sipsolutions.net; o...@redhat.com; linux- > ker...@vger.ke

[PATCH] usb: host: make ehci_fsl_overrides const and __initconst

2017-08-30 Thread Bhumika Goyal
Make this structure const as it is not modified. And replace __initdata with __initconst to avoid section conflict error. Signed-off-by: Bhumika Goyal --- drivers/usb/host/ehci-fsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/hos

Re: [PATCH v5 1/2] platform: Add driver for RAVE Supervisory Processor

2017-08-30 Thread Pavel Machek
On Mon 2017-08-28 09:23:10, Andrey Smirnov wrote: > On Thu, Aug 24, 2017 at 9:04 AM, Pavel Machek wrote: > > On Fri 2017-07-28 07:27:03, Andrey Smirnov wrote: > >> Add a driver for RAVE Supervisory Processor, an MCU implementing > >> varoius bits of housekeeping functionality (watchdoging, backlig

[PATCH V1] regulator: pv88090: Exception handling for out of bounds

2017-08-30 Thread Eric Jeong
From: Eric Jeong This is a patch for exception handlding that the index of array is out of bounds. And the definitions have been updated to use proper device name. Signed-off-by: Eric Jeong --- This patch applies against linux-next and next-20170829 drivers/regulator/pv88090-regulator.c |

Re: [RFC PATCH] mm, oom_reaper: skip mm structs with mmu notifiers

2017-08-30 Thread Michal Hocko
On Wed 30-08-17 10:46:00, Michal Hocko wrote: > From: Michal Hocko > > Andrea has noticed that the oom_reaper doesn't invalidate the range > via mmu notifiers (mmu_notifier_invalidate_range_start, > mmu_notifier_invalidate_range_end) and that can corrupt the memory > of the kvm guest for example.

Re: [PATCH] drm: vmwgfx: constify vmw_fence_ops

2017-08-30 Thread Thomas Hellstrom
On 08/30/2017 10:30 AM, Daniel Vetter wrote: On Wed, Aug 30, 2017 at 08:21:46AM +0200, Thomas Hellstrom wrote: On 08/30/2017 07:47 AM, Arvind Yadav wrote: vmw_fence_ops are not supposed to change at runtime. Functions "dma_fence_init" working with const vmw_fence_ops provided by . So mark the n

[PATCH] [SCSI] esas2r: make default_sas_nvram const

2017-08-30 Thread Bhumika Goyal
Make this const as it is never modified. Signed-off-by: Bhumika Goyal --- drivers/scsi/esas2r/esas2r_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/esas2r/esas2r_flash.c b/drivers/scsi/esas2r/esas2r_flash.c index 7bd376d..f8414b5 100644 --- a/drivers/sc

Re: [RESEND PATCH 2/3] regulator: Add support for stm32-vrefbuf

2017-08-30 Thread Fabrice Gasnier
On 08/29/2017 08:57 PM, Mark Brown wrote: > On Mon, Aug 28, 2017 at 02:58:52PM +0200, Fabrice Gasnier wrote: > >> +ret = clk_prepare_enable(priv->clk); >> +if (ret) { >> +dev_err(&pdev->dev, "clk prepare failed\n"); > > If you're printing an error include the error code, it'll

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-30 Thread Peter Zijlstra
On Wed, Aug 30, 2017 at 06:01:59PM +0900, Byungchul Park wrote: > My point is that we inevitably lose valuable dependencies by yours. That's > why I've endlessly asked you 'do you have any reason you try those patches?' > a ton of times. And you have never answered it. The only dependencies that a

Re: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-30 Thread Peter Zijlstra
On Wed, Aug 30, 2017 at 11:12:23AM +0200, Peter Zijlstra wrote: > On Wed, Aug 30, 2017 at 06:01:59PM +0900, Byungchul Park wrote: > > My point is that we inevitably lose valuable dependencies by yours. That's > > why I've endlessly asked you 'do you have any reason you try those patches?' > > a ton

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-30 Thread Oza Oza
On Wed, Aug 30, 2017 at 1:32 AM, Bjorn Helgaas wrote: > On Tue, Aug 29, 2017 at 11:02:23AM +0530, Oza Oza wrote: >> On Tue, Aug 29, 2017 at 3:17 AM, Bjorn Helgaas wrote: >> > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> >> PCIe spec r3.1, sec 2.3.2 >> >> If CRS software visib

Re: [PATCH v3 3/6] dt: booting-without-of: DT fix s/#interrupt-cell/#interrupt-cells/

2017-08-30 Thread Michael Ellerman
Geert Uytterhoeven writes: > Signed-off-by: Geert Uytterhoeven > Acked-by: Rob Herring > --- Rob this has your ack, but I'd expect it to go via your tree? Or should I grab it? cheers > diff --git a/Documentation/devicetree/booting-without-of.txt > b/Documentation/devicetree/booting-without-

[RFC PATCH] arm64: move THREAD_* definitions to separated header

2017-08-30 Thread Yury Norov
Hi Mark, all. In patch 'dbc9344a68e506f19f8 ("arm64: clean up THREAD_* definitions")' you move THREAD_* definitions from arch/arm64/include/asm/thread_info.h to asm/memory.h. After that asm/thread_info.h starts to depend on asm/memory.h. When I try to apply ilp32 series on top of it [1], it cause

RE: [PATCH 4/4] lockdep: Fix workqueue crossrelease annotation

2017-08-30 Thread Byungchul Park
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Wednesday, August 30, 2017 6:12 PM > To: Byungchul Park > Cc: mi...@kernel.org; t...@kernel.org; boqun.f...@gmail.com; > da...@fromorbit.com; johan...@sipsolutions.net; o...@redhat.com; linux- > ker...@vger.ke

[PATCH] net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const

2017-08-30 Thread Bhumika Goyal
Make this const as it is never modified. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 61a88b6..4

Linux 4.4.85

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

Re: Linux 3.18.68

2017-08-30 Thread Greg KH
diff --git a/Makefile b/Makefile index 7d6526eed64a..0d7f1e91e910 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 67 +SUBLEVEL = 68 EXTRAVERSION = NAME = Diseased Newt diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index fc5f780bb

Linux 3.18.68

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

Re: Linux 4.9.46

2017-08-30 Thread Greg KH
diff --git a/Makefile b/Makefile index ccd6d91f616e..846ef1b57a02 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 45 +SUBLEVEL = 46 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index b

Linux 4.9.46

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

Re: Linux 4.4.85

2017-08-30 Thread Greg KH
diff --git a/Makefile b/Makefile index 9d77ac063ec0..0f3d843f42a7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 84 +SUBLEVEL = 85 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index

Linux 4.12.10

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

[PATCH v4] mfd: tps65217: Introduce dependency on CONFIG_OF

2017-08-30 Thread Keerthy
Currently the driver boots only via device tree hence add a dependency on CONFIG_OF. This leaves with a bunch of unused code so clean that up. This patch also makes use of probe_new function in place of the probe function so as to avoid passing i2c_device_id. Signed-off-by: Keerthy Reviewed-by: J

Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared with user space

2017-08-30 Thread Dan Carpenter
On Tue, Aug 29, 2017 at 05:46:59PM -0700, Sherry Yang wrote: > Binder driver allocates buffer meta data in a region that is mapped > in user space. These meta data contain pointers in the kernel. > > This patch allocates buffer meta data on the kernel heap that is > not mapped in user space, and u

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-08-30 Thread H. Nikolaus Schaller
Hi Liam and Sebastian, > Am 29.08.2017 um 22:20 schrieb Liam Breck : > > Hi Nikolaus, thanks for the patch... > > On Tue, Aug 29, 2017 at 1:10 PM, H. Nikolaus Schaller > wrote: >> Tested on Pyra prototype with bq27421. >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> drivers/power/supply/

Re: [PATCH v2 14/20] mm: Provide speculative fault infrastructure

2017-08-30 Thread Laurent Dufour
On 30/08/2017 07:58, Peter Zijlstra wrote: > On Wed, Aug 30, 2017 at 10:33:50AM +0530, Anshuman Khandual wrote: >> diff --git a/mm/filemap.c b/mm/filemap.c >> index a497024..08f3042 100644 >> --- a/mm/filemap.c >> +++ b/mm/filemap.c >> @@ -1181,6 +1181,18 @@ int __lock_page_killable(struct page *__

Re: (Kernel Bug report) Make kaby lake cpu crash Ethernet

2017-08-30 Thread Andrey Jr. Melnikov
Chiwu Yung wrote: > Hello Sir, i am using cpu i7 7700k kaby lake, i have no overclock the > CPU but i think i7 7700k come across with Ethernet crash issue. Don't > know why it will keeping crash. > I tested the kernel since 4.8 - 4.12 almost 2-3months and i can see > that the issue is still exis

  1   2   3   4   5   6   7   8   9   >