[PATCH v5 11/11] hugetlb: Introduce generic version of huge_ptep_get

2018-07-30 Thread Alexandre Ghiti
ia64, mips, parisc, powerpc, sh, sparc, x86 architectures use the same version of huge_ptep_get, so move this generic implementation into asm-generic/hugetlb.h. Signed-off-by: Alexandre Ghiti Reviewed-by: Mike Kravetz --- arch/arm/include/asm/hugetlb-3level.h | 1 + arch/arm64/include/asm/huget

[PATCH] Improve code readability

2018-07-30 Thread Liu Song
Merge the duplicated complex conditions to improve code readability. Signed-off-by: Liu Song Reviewed-by: Jiang Biao --- fs/ext4/inode.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 7d6c100..c2bc1fd 100644 --- a/fs/ex

Re: [PATCH 01/13] staging: gasket: core: hold reference to pci_dev while used

2018-07-30 Thread Dmitry Torokhov
On Sun, Jul 29, 2018 at 12:37 PM Todd Poynor wrote: > > From: Todd Poynor > > Hold a reference on the struct pci_dev while a pointer to it is held in > the gasket data structures. > > Signed-off-by: Todd Poynor > --- > drivers/staging/gasket/gasket_core.c | 4 ++-- > 1 file changed, 2 insertion

Re: [PATCH v4 03/10] arm64: dts: Add Mediatek SoC MT8183 and evaluation board dts and Makefile

2018-07-30 Thread Marc Zyngier
On Tue, 31 Jul 2018 06:38:00 +0100, Erin Lo wrote: > > From: Ben Ho > > Add basic chip support for Mediatek 8183 > > Signed-off-by: Ben Ho > Signed-off-by: Erin Lo > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 23 + > arch/

Re: [PATCH 1/2] leds: core: Introduce LED pattern trigger

2018-07-30 Thread Baolin Wang
Hi Bjorn, On 31 July 2018 at 11:54, Bjorn Andersson wrote: > On Mon 30 Jul 05:29 PDT 2018, Baolin Wang wrote: > >> Some LED controllers have support for autonomously controlling >> brightness over time, according to some preprogrammed pattern or >> function. >> >> This patch adds pattern trigger

Re: Linux 4.18-rc7

2018-07-30 Thread Kirill A. Shutemov
On Mon, Jul 30, 2018 at 06:01:26PM -0700, Linus Torvalds wrote: > On Mon, Jul 30, 2018 at 2:53 PM Hugh Dickins wrote: > > > > I have no problem with reverting -rc7's vma_is_anonymous() series. > > I don't think we need to revert the whole series: I think the rest are > all fairly obvious cleanups

Re: [PATCH 01/13] staging: gasket: core: hold reference to pci_dev while used

2018-07-30 Thread Todd Poynor
On Mon, Jul 30, 2018 at 11:19 PM Dmitry Torokhov wrote: > > On Sun, Jul 29, 2018 at 12:37 PM Todd Poynor wrote: > > > > From: Todd Poynor > > > > Hold a reference on the struct pci_dev while a pointer to it is held in > > the gasket data structures. > > > > Signed-off-by: Todd Poynor > > --- >

Re: [PATCH] pwm: pwm-omap-dmtimer: fix probing problems by returning EPROBE_DEFER

2018-07-30 Thread H. Nikolaus Schaller
> Am 31.07.2018 um 00:56 schrieb David Rivshin : > > On Sun, 29 Jul 2018 20:19:08 +0200 > "H. Nikolaus Schaller" wrote: > >> Hi, >> >>> Am 29.07.2018 um 20:08 schrieb Ladislav Michl : >>> >>> On Sun, Jul 29, 2018 at 08:32:41AM +0200, H. Nikolaus Schaller wrote: Hi, > Am 28.0

[char-misc-next 00/12] mei: Add DMA ring

2018-07-30 Thread Tomas Winkler
This series adds an alternative method for transferring data between the mei driver and the device via a DMA ring. The DMA ring allows transferring data in bigger chunks, up to 128K, than the HW ring 512B. The actual sizes depend on particular MEI generations. The HW ring is faster for packets that

[char-misc-next 03/12] mei: hbm: introduce dma bit in the message header

2018-07-30 Thread Tomas Winkler
Add dma_ring bit in the mei message header for conveying that the message data itself are on the dma ring. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/client.c | 1 + drivers/misc/mei/hbm.c | 1 + drivers/misc/mei/hw.h | 16 dr

[char-misc-next 06/12] mei: dma ring buffers allocation

2018-07-30 Thread Tomas Winkler
Allocate DMA ring buffers from managed coherent memory. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/Makefile | 1 + drivers/misc/mei/dma-ring.c | 103 drivers/misc/mei/hw-me.c| 6 +++ drivers/misc/mei/

[char-misc-next 01/12] mei: add support for variable length mei headers.

2018-07-30 Thread Tomas Winkler
Remove header size knowledge from me and txe hw layers, this requires to change the write handler to accept header and its length as well as data and its length. HBM messages are fixed to use basic header, hence we add mei_hbm2slots() that converts HBM message length and mei message header, while

[char-misc-next 02/12] mei: hbm: define dma ring setup protocol

2018-07-30 Thread Tomas Winkler
The protocol defines how to setup an I/O ring on top of host memory to utilize the device DMA engine for faster transport. Three memory buffers are allocated. A Host circular buffer for from the Host to Device communication. A Device circular buffer for from Device to the Host communication. And f

[char-misc-next 09/12] mei: dma ring: implement rx circular buffer logic

2018-07-30 Thread Tomas Winkler
Implement circular buffer protocol over receive dma buffer. Add extension to the mei message header that holds length of the buffer on the dma buffer. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/client.c| 2 +- drivers/misc/mei/dma-ring.c | 63 ++

[char-misc-next 04/12] mei: restrict dma ring support to hbm version 2.1

2018-07-30 Thread Tomas Winkler
Only a firmware with version 2.1 and above supports dma ring feature. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/debugfs.c | 2 ++ drivers/misc/mei/hbm.c | 6 ++ drivers/misc/mei/hw.h | 6 ++ drivers/misc/mei/mei_dev.h | 2 ++ 4 files cha

[char-misc-next 10/12] mei: dma ring: implement transmit flow

2018-07-30 Thread Tomas Winkler
Implement a circular buffer on allocated system memory. Read and write indices are stored on the control block which is also shared between the device and the host. Two new functions are exported from the DMA module: mei_dma_ring_write, and mei_dma_ring_empty_slots. The former simply copy a packet

[char-misc-next 07/12] mei: hbm: setup dma ring

2018-07-30 Thread Tomas Winkler
DMA ring is allocated upon HBM handshake and the ring parameters are set via dedicated HBM_DMA_SETUP request command. The firmware will perform its setup and respond with a status. On failure the DMA buffers are released. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers

[char-misc-next 08/12] mei: hw: add dma ring control block

2018-07-30 Thread Tomas Winkler
The DMA ring control block contains write and read indices for host and device circular buffers. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/dma-ring.c | 21 + drivers/misc/mei/hbm.c | 2 ++ drivers/misc/mei/hw.h | 23 ++

[char-misc-next 11/12] mei: bump hbm version to 2.1

2018-07-30 Thread Tomas Winkler
From: Alexander Usyskin Bump HBM version to 2.1 to indicate DMA transfer support. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index acb

[char-misc-next 12/12] mei: me: mark CNP devices as having dma support

2018-07-30 Thread Tomas Winkler
From: Alexander Usyskin Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/pci-me.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index ea4e152270a3..73ace2d59dea 100644 --- a/driver

[char-misc-next 05/12] mei: define dma ring buffer sizes for PCH12 HW and newer

2018-07-30 Thread Tomas Winkler
From: Alexander Usyskin Define dma ring buffer sizes for PCH12 (CLN HW and newer) Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw-me.c | 13 + drivers/misc/mei/hw-me.h | 4 2 files changed, 17 insertions(+) diff --git a/drivers/misc/mei

Re: [PATCH 1/3] ext4: super: Fix spectre gadget in ext4_quota_on

2018-07-30 Thread Andreas Dilger
> On Jul 27, 2018, at 11:46 AM, Josh Poimboeuf wrote: > > On Fri, Jul 27, 2018 at 04:23:55PM +, Jeremy Cline wrote: >> 'type' is a user-controlled value used to index into 's_qf_names', which >> can be used in a Spectre v1 attack. Clamp 'type' to the size of the >> array to avoid a speculati

Re: [PATCH v5] PCI: Check for PCIe downtraining conditions

2018-07-30 Thread Tal Gilboa
On 7/24/2018 12:52 AM, Tal Gilboa wrote: On 7/24/2018 12:01 AM, Jakub Kicinski wrote: On Mon, 23 Jul 2018 15:03:38 -0500, Alexandru Gagniuc wrote: PCIe downtraining happens when both the device and PCIe port are capable of a larger bus width or higher speed than negotiated. Downtraining might b

Re: [PATCH v2 2/4] power: bq25890_charger.c: Remove unused table

2018-07-30 Thread Krzysztof Kozlowski
On 27 July 2018 at 17:26, Angus Ainslie wrote: > Hi Krzysztof, > > On 2018-07-26 00:51, Krzysztof Kozlowski wrote: >> >> On 25 July 2018 at 21:46, Angus Ainslie (Purism) wrote: >>> >>> The BATCMP table isn't used so drop it >> >> >> TBL_VCLAMP also looks unused. TBL_IPRECHG does not have table en

Re: Linux 4.18-rc7

2018-07-30 Thread Amit Pundir
On Tue, 31 Jul 2018 at 09:55, John Stultz wrote: > > On Mon, Jul 30, 2018 at 8:26 PM, Hugh Dickins wrote: > > On Mon, 30 Jul 2018, Linus Torvalds wrote: > >> On Mon, Jul 30, 2018 at 2:53 PM Hugh Dickins wrote: > >> > > >> > I have no problem with reverting -rc7's vma_is_anonymous() series. > >>

Re: checkpatch: SPDX integration breaks --root

2018-07-30 Thread Charlemagne Lasse
> OK. How about: > > though this might not work on a path with spaces > or some such... > > --- > scripts/checkpatch.pl | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index f25f708cd2a7..afb9fb27908c 100755 > --- a/scri

Re: [PATCH] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-30 Thread kbuild test robot
Hi Nick, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.18-rc7 next-20180727] [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/l

Re: [PATCH 1/2] leds: core: Introduce LED pattern trigger

2018-07-30 Thread Baolin Wang
On 31 July 2018 at 14:22, Baolin Wang wrote: > Hi Bjorn, > > On 31 July 2018 at 11:54, Bjorn Andersson wrote: >> On Mon 30 Jul 05:29 PDT 2018, Baolin Wang wrote: >> >>> Some LED controllers have support for autonomously controlling >>> brightness over time, according to some preprogrammed pattern

Re: [LKP] [mm, oom] c1e4c54f9c: BUG:KASAN:null-ptr-deref_in_d

2018-07-30 Thread Michal Hocko
On Mon 30-07-18 19:05:50, David Rientjes wrote: > On Mon, 30 Jul 2018, Michal Hocko wrote: > > > On Mon 30-07-18 17:03:20, kernel test robot wrote: > > [...] > > > [9.034310] BUG: KASAN: null-ptr-deref in dump_header+0x10c/0x448 > > > > Could you faddr2line on the offset please? > > > > It'

[PATCH 1/5] mfd: rk808: Add RK817 and RK809 support

2018-07-30 Thread Tony Xie
The rk809 and rk817 are a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK809 and RK817 chips are using a similar register map, so we can reuse the RTC and Clocking a

[PATCH 2/5] regulator: rk808: Add regulator driver for RK809 and RK817.

2018-07-30 Thread Tony Xie
Add support for the rk809 and rk817 regulator driver. Their specifications are as follows: 1、The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2、The dcdc5 is a boost dcdc for RK817 and is a buck for RK809. 3、The

[PATCH 2/5] regulator: rk808: add RK809 and RK817 support.

2018-07-30 Thread Tony Xie
Add support for the rk809 and rk817 regulator driver. Their specifications are as follows: 1、The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2、The dcdc5 is a boost dcdc for RK817 and is a buck for RK809. 3、The

[PATCH 3/5] dt-bindings: mfd: rk808: Add binding informations for RK809 and RK817.

2018-07-30 Thread Tony Xie
Add device tree bindings documentation for Rockchip's RK809 & RK817 PMIC. Signed-off-by: Tony Xie --- Documentation/devicetree/bindings/mfd/rk808.txt | 55 + 1 file changed, 55 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/rk808.txt b/Documentation/de

Re: Linux 4.18-rc7

2018-07-30 Thread Kirill A. Shutemov
On Tue, Jul 31, 2018 at 12:10:06PM +0530, Amit Pundir wrote: > On Tue, 31 Jul 2018 at 09:55, John Stultz wrote: > > > > On Mon, Jul 30, 2018 at 8:26 PM, Hugh Dickins wrote: > > > On Mon, 30 Jul 2018, Linus Torvalds wrote: > > >> On Mon, Jul 30, 2018 at 2:53 PM Hugh Dickins wrote: > > >> > > > >>

<    3   4   5   6   7   8