Re: [RFC] regmap-irq: add "main register" and level-irq support

2018-12-06 Thread Matti Vaittinen
Hello Again Mark, On Wed, Dec 05, 2018 at 05:27:01PM +, Mark Brown wrote: > On Wed, Dec 05, 2018 at 10:22:51AM +0200, Matti Vaittinen wrote: > > On Tue, Dec 04, 2018 at 05:21:37PM +, Mark Brown wrote: > > > On Fri, Nov 30, 2018 at 10:59:08AM +0200, Matti Vaittinen wrote: > > > > This soun

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-06 Thread Michal Hocko
On Fri 07-12-18 10:56:51, Pingfan Liu wrote: [...] > In a short word, the fix method should consider about the two factors: > semantic of online-node and the effect on all archs I am pretty sure there is a lot of room for unification in this area. Nevertheless I strongly believe the bug should be

Morning

2018-12-06 Thread Joy Smith Johnson
Hello; kindly see the attached my proposal Charities donation. Mrs. Joy Smith Johnson.rtf Description: RTF file

Re: MADV_HUGEPAGE vs. NUMA semantic (was: Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression)

2018-12-06 Thread Michal Hocko
On Thu 06-12-18 20:31:46, Linus Torvalds wrote: > [ Oops. different thread for me due to edited subject, so I saw this > after replying to the earlier email by David ] Sorry about that but I really wanted to make the actual discussion about semantic clearly distinguished because the thread just gr

Re: use generic DMA mapping code in powerpc V4

2018-12-06 Thread Christian Zigotzky
Good to know. Sorry because of the email. Sent from my iPhone > On 6. Dec 2018, at 20:36, Christoph Hellwig wrote: > >> On Thu, Dec 06, 2018 at 06:10:54PM +0100, Christian Zigotzky wrote: >> Please don’t merge this code. We are still testing and trying to figure out >> where the problems are i

[PATCH v3 1/2] dmaengine: 8250_mtk_dma: add Mediatek uart DMA support

2018-12-06 Thread Long Cheng
In DMA engine framework, add 8250 mtk dma to support it. Signed-off-by: Long Cheng --- drivers/dma/mediatek/8250_mtk_dma.c | 847 +++ drivers/dma/mediatek/Kconfig| 11 + drivers/dma/mediatek/Makefile |1 + 3 files changed, 859 insertions(+) c

Re: [PATCH v2 2/3] arm64: dts: allwinner: a64: Add A64 CSI controller

2018-12-06 Thread Maxime Ripard
On Thu, Dec 06, 2018 at 06:07:59PM +0100, Michael Nazzareno Trimarchi wrote: > On Thu, Dec 6, 2018 at 4:34 PM Maxime Ripard > wrote: > > On Thu, Dec 06, 2018 at 06:53:05PM +0530, Jagan Teki wrote: > > > Allwinner A64 CSI controller has similar features as like in > > > H3, So add support for A64

[PATCH v3 0/2] add uart DMA function

2018-12-06 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node, t

[PATCH v3 2/2] arm: dts: mt2701: add uart APDMA to device tree

2018-12-06 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 + 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/

Re: [PATCH v2 0/2] mtd: rawnand: denali: clean-up unnecessary hook and device reset

2018-12-06 Thread Miquel Raynal
Hi Masahiro, Masahiro Yamada wrote on Wed, 28 Nov 2018 14:27:35 +0900: > I sent this series on September, > and Miquel replied this series was applied: > http://patchwork.ozlabs.org/patch/967242/ > > But, It turned out not applied. > > I rebased it and resending now. > > > Masahiro Yamada (2

Re: [PATCH v6 0/8] AXP8x3 AC and battery power supply support

2018-12-06 Thread Chen-Yu Tsai
On Fri, Dec 7, 2018 at 3:28 PM Lee Jones wrote: > > On Wed, 05 Dec 2018, Sebastian Reichel wrote: > > > Hi, > > > > On Fri, Nov 30, 2018 at 04:31:28PM +0800, Chen-Yu Tsai wrote: > > > On Wed, Nov 21, 2018 at 1:52 AM Oskari Lemmela wrote: > > > > > > > > AXP813 AC power supply support with input c

Re: MADV_HUGEPAGE vs. NUMA semantic (was: Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression)

2018-12-06 Thread Michal Hocko
On Thu 06-12-18 15:49:04, David Rientjes wrote: > On Thu, 6 Dec 2018, Michal Hocko wrote: > > > MADV_HUGEPAGE changes the picture because the caller expressed a need > > for THP and is willing to go extra mile to get it. That involves > > allocation latency and as of now also a potential remote ac

[PATCH 1/1] virtio: remove deprecated VIRTIO_PCI_CONFIG()

2018-12-06 Thread Dongli Zhang
VIRTIO_PCI_CONFIG() is deprecated. Use VIRTIO_PCI_CONFIG_OFF() instead. Signed-off-by: Dongli Zhang --- drivers/virtio/virtio_pci_legacy.c | 6 -- include/uapi/linux/virtio_pci.h| 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/virtio/virtio_pci_legacy.c b/d

Re: [PATCH v7 0/7] Introduce STPMIC1 PMIC Driver

2018-12-06 Thread Lee Jones
On Wed, 05 Dec 2018, Pascal PAILLET-LME wrote: > > pascal paillet (p.pail...@st.com) Le Mans / France > Microcontrollers and Digital ICs Group | Application Development > TEL: +33.(0)2.44.02.74.69 | TINA: 166 7469 > > Le 12/05/2018 10:36 AM, Lee Jones a écrit : > > On Tue, 04 Dec 2018, Pascal PA

Re: [PATCH v6 0/8] AXP8x3 AC and battery power supply support

2018-12-06 Thread Lee Jones
On Wed, 05 Dec 2018, Sebastian Reichel wrote: > Hi, > > On Fri, Nov 30, 2018 at 04:31:28PM +0800, Chen-Yu Tsai wrote: > > On Wed, Nov 21, 2018 at 1:52 AM Oskari Lemmela wrote: > > > > > > AXP813 AC power supply support with input current and > > > voltage limiting support. > > > > > > AXP803 AC

Re: [PATCH v4 0/5] powerpc: system call table generation support

2018-12-06 Thread Satheesh Rajendran
On Fri, Dec 07, 2018 at 11:41:35AM +0530, Firoz Khan wrote: > The purpose of this patch series is, we can easily > add/modify/delete system call table support by cha- > nging entry in syscall.tbl file instead of manually > changing many files. The other goal is to unify the > system call table gen

Re: [PATCH v5 1/3] mm: Add support for kmem caches in DMA32 zone

2018-12-06 Thread Vlastimil Babka
On 12/7/18 7:16 AM, Nicolas Boichat wrote: > IOMMUs using ARMv7 short-descriptor format require page tables > to be allocated within the first 4GB of RAM, even on 64-bit systems. > On arm64, this is done by passing GFP_DMA32 flag to memory allocation > functions. > > For IOMMU L2 tables that only

Re: [PATCH 1/3] mfd: cros_ec: Add commands to control codec

2018-12-06 Thread Lee Jones
On Thu, 06 Dec 2018, Cheng-yi Chiang wrote: > On Wed, Dec 5, 2018 at 7:34 PM Lee Jones wrote: > > > > On Wed, 05 Dec 2018, Lee Jones wrote: > > > > > On Wed, 05 Dec 2018, Cheng-yi Chiang wrote: > > > > > > > Hi Lee, > > > > > > > > I tried to apply this patch based on > > > > for-mfd-next branch

Re: [PATCH v2] tps65218: Use devm_regmap_add_irq_chip and clean up error path in probe

2018-12-06 Thread Ladislav Michl
On Fri, Dec 07, 2018 at 06:19:48AM +0530, Keerthy wrote: > Use devm_regmap_add_irq_chip and clean up error path in probe. > Hence clean up the probe error path and the remove function. > > Reported-by: Christian Hohnstaedt > Signed-off-by: Keerthy > --- > > Changes in v2: > > * Cleaned up re

Re: [PATCH] thermal: uniphier: Convert to SPDX identifier

2018-12-06 Thread Daniel Lezcano
On 07/12/2018 02:06, Kunihiko Hayashi wrote: > This converts license boilerplate to SPDX identifier, and removes > unnecessary lines. > > Signed-off-by: Kunihiko Hayashi > --- Reviewed-by: Daniel Lezcano > drivers/thermal/uniphier_thermal.c | 13 + > 1 file changed, 1 insertion(+)

Re: [PATCH v2 1/3] binder: fix sparse warnings on locking context

2018-12-06 Thread Greg Kroah-Hartman
On Thu, Dec 06, 2018 at 08:37:41AM -0800, Todd Kjos wrote: > On Thu, Dec 6, 2018 at 6:51 AM Greg KH wrote: > > > > On Wed, Dec 05, 2018 at 03:19:24PM -0800, Todd Kjos wrote: > > > Add __acquire()/__release() annnotations to fix warnings > > > in sparse context checking > > > > > > There is one cas

Re: linux-next: manual merge of the jc_docs tree with the fscrypt tree

2018-12-06 Thread Jonathan Corbet
On Fri, 7 Dec 2018 11:53:40 +1100 Stephen Rothwell wrote: > Today's linux-next merge of the jc_docs tree got a conflict in: > > Documentation/filesystems/index.rst > > between commit: > > 1b71a6809f96 ("fs-verity: add a documentation file") > > from the fscrypt tree and commit: > > 7bb

Re: [PATCH] clocksource/drivers/timer-imx-tpm: Specify clock name for timer-of

2018-12-06 Thread Daniel Lezcano
On 07/12/2018 07:05, Anson Huang wrote: > i.MX TPM needs "ipg" clock for register access and "per" clock for > timer function, the driver gets "ipg" clock by searching the clock > name, but timer-of initialization will get first clock in device > tree TPM node since no clock name specified in of_cl

Re: [PATCH v2] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-12-06 Thread Daniel Lezcano
On 07/12/2018 02:13, Tao Ren wrote: > On 11/5/18, 11:00 AM, "Tao Ren" wrote: > >> On 11/5/18, 10:51 AM, "Daniel Lezcano" wrote: >>> Oh right, sorry. Should it go to stable also ? Is there a Fixes tag it can >>> apply ? >>> >> Personally I don't think it needs to go to stable, because I don't se

Re: > [PATCH] Security: Handle hidepid option correctly

2018-12-06 Thread 程洋
@Nick. Would mind giving this patch an "Acked-by"? This issue causes any Android who uses latest kernel cannot mount proc with "hidepid=2" option. Which causes problems 程洋 于2018年12月5日周三 下午3:26写道: > > Anyone who can review my patch? > > 程洋 于2018年11月30日周五 上午10:34写道: > > > > Here is an article illus

Re: linux-next: build failure after merge of the thermal tree

2018-12-06 Thread Amit Kucheria
to enable the config and test it correctly. There was bug on where the .config file ended up. I've fixed it and sent v4 of the patches. Please consider applying them instead. Regards, Amit > I have used the thermal tree from next-20181206 for today. > > -- > Cheers, > Stephen Rothwell

[PATCH v4 0/2] driver: thermal: Move some drivers into subdirs

2018-12-06 Thread Amit Kucheria
(Apologies for the build failure. My scripts to enable these configs and build-test them failed. They've been fixed now) Move the various drivers for Intel platforms into their own subdir. Also consolidate Qualcomm drivers into the qcom subdir. This cleans up the directory making it easier to fin

[PATCH v4 1/2] drivers: thermal: Move various drivers for intel platforms into a subdir

2018-12-06 Thread Amit Kucheria
This cleans up the directory a bit, now that we have several other platforms using platform-specific sub-directories. Compile-tested with ARCH=x86 defconfig and the drivers explicitly enabled with menuconfig. Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- drivers/thermal/Kconfig

[PATCH v4 2/2] drivers: thermal: Move QCOM_SPMI_TEMP_ALARM into the qcom subdir

2018-12-06 Thread Amit Kucheria
This cleans up the directory a bit allowing just one place to look for thermal related drivers for QCOM platforms instead of being scattered in the root directory and the qcom/ subdirectory. Compile-tested with ARCH=arm64 defconfig and the driver explicitly enabled with menuconfig. Signed-off-by:

Re: [PATCH AUTOSEL 4.19 040/123] bpf: allocate local storage buffers using GFP_ATOMIC

2018-12-06 Thread Naresh Kamboju
On Fri, 7 Dec 2018 at 12:10, Naresh Kamboju wrote: > > On Wed, 5 Dec 2018 at 15:08, Sasha Levin wrote: > > > > From: Roman Gushchin > > > > [ Upstream commit 569a933b03f3c48b392fe67c0086b3a6b9306b5a ] > > > > Naresh reported an issue with the non-atomic memory allocation of > > cgroup local stor

RE: [PATCH v2 2/3] ALSA: hda/realtek: Enable audio jacks of ASUS UX533FD with ALC294

2018-12-06 Thread Kailang
Hi Jian Hong, I call our agent guy @ WTMEC. Please modify as bellowing then test again. Remove EAPD control by hidden. If this modify patch was pass audio test, please regenerate patch to Takashi. If this patch will solve the speaker no sound issue, I think the model name maybe could rename to AL

Re: [PATCH 4.19 00/41] 4.19.8-stable review

2018-12-06 Thread Greg Kroah-Hartman
On Thu, Dec 06, 2018 at 03:10:03PM -0700, shuah wrote: > On 12/6/18 7:38 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.8 release. > > There are 41 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with t

[PATCH v3 0/2] add SAMA5D2 PIOBU GPIO driver

2018-12-06 Thread Andrei.Stefanescu
On SAMA5D2 SoC the PIOBU pins do not lose their voltage during Backup/Self-refresh mode. This can be useful, for example, when the voltage must remain positive for a peripheral during Backup/Self-refresh mode (suspend-to ram is the Linux equivalent state). v3: - change driver's compatible to atmel

[PATCH v3 1/2] dt-bindings: arm: atmel: describe SECUMOD usage as a GPIO controller

2018-12-06 Thread Andrei.Stefanescu
This patch describes the Security Module's usage as a GPIO controller for its PIOBU pins. These pins have the special property of maintaining their voltage during suspend-to-mem. Signed-off-by: Andrei Stefanescu --- Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 12 +++- 1 fil

[PATCH v3 2/2] gpio: add driver for SAMA5D2 PIOBU pins

2018-12-06 Thread Andrei.Stefanescu
PIOBU pins do not lose their voltage during Backup/Self-refresh. This patch adds a simple GPIO controller for them and a maintainer for the driver. This driver adds support for using the pins as GPIO offering the possibility to read/set the voltage. Signed-off-by: Andrei Stefanescu --- MAINTAIN

Re: [PATCH AUTOSEL 4.19 040/123] bpf: allocate local storage buffers using GFP_ATOMIC

2018-12-06 Thread Naresh Kamboju
On Wed, 5 Dec 2018 at 15:08, Sasha Levin wrote: > > From: Roman Gushchin > > [ Upstream commit 569a933b03f3c48b392fe67c0086b3a6b9306b5a ] > > Naresh reported an issue with the non-atomic memory allocation of > cgroup local storage buffers: > > [ 73.047526] BUG: sleeping function called from inv

[PATCH -next] powerpc/mm: drop test in pp_601

2018-12-06 Thread YueHaibing
The test selects between two identical values, so it doesn't look useful. It turns out that the tested expression can only be true anyway, so drop the test, the corresponding parameter, and the corresponding argument at the only call site. The semantic match that finds this problem is as follows:

Re: [PATCH RFC 1/1] swiotlb: add debugfs to track swiotlb buffer usage

2018-12-06 Thread Joe Jin
On 12/6/18 9:49 PM, Dongli Zhang wrote: > > > On 12/07/2018 12:12 AM, Joe Jin wrote: >> Hi Dongli, >> >> Maybe move d_swiotlb_usage declare into swiotlb_create_debugfs(): > > I assume the call of swiotlb_tbl_map_single() might be frequent in some > situations, e.g., when 'swiotlb=force'. > > Th

[PATCHv2 net 3/3] sctp: fa_resize sctp stream instead of redo fa_alloc

2018-12-06 Thread Xin Long
Now when doing 4-shakehand or adding new streams, sctp has to allocate new memory for asoc->stream and copy the old stream's information from the old asoc->stream to the new one. It also cause the stream pointers to change, by which a panic was even caused due to stream->out_curr's change. To fix

[PATCHv2 net 2/3] flex_array: support flex_array_resize

2018-12-06 Thread Xin Long
This function can dynamically change total_nr_elements of a flex_array, and keep the old elements of the same memory. Returns 0 if it succeeds. Note that it won't do any memory allocation or shrinking for elements, which should be only done by flex_array_prealloc and flex_array_shrink. Suggested-

[PATCHv2 net 0/3] net: add support for flex_array_resize in flex_array

2018-12-06 Thread Xin Long
Without the support for the total_nr_elements's growing or shrinking dynamically, flex_array is not that 'flexible'. Like when users want to change the size, they have to redo flex_array_alloc and copy all the elements from the old to the new one. The worse thing is every element's memory gets cha

[PATCHv2 net 1/3] flex_array: make FLEX_ARRAY_BASE_SIZE the same value of FLEX_ARRAY_PART_SIZE

2018-12-06 Thread Xin Long
This patch is to separate the base data memory from struct flex_array and save it into a page. With this change, total_nr_elements of a flex_array can grow or shrink without having the old element's memory changed when the new size of the flex_arry crosses FLEX_ARRAY_BASE_SIZE, which will be added

Re: [PATCH net-next v2 0/4] net: mitigate retpoline overhead

2018-12-06 Thread David Miller
From: David Miller Date: Thu, 06 Dec 2018 22:24:09 -0800 (PST) > Series applied, thanks! Erm... actually reverted. Please fix these build failures: ld: net/ipv6/ip6_offload.o: in function `ipv6_gro_receive': ip6_offload.c:(.text+0xda2): undefined reference to `udp6_gro_receive' ld: ip6_offload

Re: [PATCH v1 0/4] phy: qcom-qmp: Fix clock-cells binding and provider

2018-12-06 Thread Vivek Gautam
Hi, On Fri, Dec 7, 2018 at 10:15 AM Kishon Vijay Abraham I wrote: > > Vivek, > > On 04/12/18 6:07 PM, Vivek Gautam wrote: > > Hi Kishon, > > > > On Tue, Dec 4, 2018 at 1:44 PM Kishon Vijay Abraham I wrote: > >> > >> Hi Andy Gross, David Brown, Vivek, > >> > >> On 30/11/18 3:43 AM, Evan Green wro

Re: [PATCH net-next v2 0/4] net: mitigate retpoline overhead

2018-12-06 Thread David Miller
From: Paolo Abeni Date: Wed, 5 Dec 2018 19:13:38 +0100 > The spectre v2 counter-measures, aka retpolines, are a source of measurable > overhead[1]. We can partially address that when the function pointer refers to > a builtin symbol resorting to a list of tests vs well-known builtin function >

Re: [PATCH -V8 00/21] swap: Swapout/swapin THP in one piece

2018-12-06 Thread Huang, Ying
Huang Ying writes: > Hi, Andrew, could you help me to check whether the overall design is > reasonable? > > Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the > swap part of the patchset? Especially [02/21], [03/21], [04/21], > [05/21], [06/21], [07/21], [08/21], [09/21], [10/21

Re: [PATCH v5 00/11] crypto: crypto_user_stat: misc enhancement

2018-12-06 Thread Herbert Xu
On Thu, Nov 29, 2018 at 02:42:15PM +, Corentin Labbe wrote: > Hello > > This patchset fixes all reported problem by Eric biggers. > > Regards > > Changes since v4: > - Inlined functions when !CRYPTO_STATS > > Changes since v3: > - Added a crypto_stats_init as asked vy Neil Horman > - Fixed

Re: [PATCH] crypto: cavium/nitrox convert to DEFINE_SHOW_ATTRIBUTE

2018-12-06 Thread Herbert Xu
On Sat, Dec 01, 2018 at 04:56:30AM -0500, Yangtao Li wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li > --- > drivers/crypto/cavium/nitrox/nitrox_debugfs.c | 48 --- > 1 file changed, 9 insertions(+), 39 deletions(-) Patch applied. Th

Re: [PATCH] MAINTAINERS: change NX/VMX maintainers

2018-12-06 Thread Herbert Xu
On Tue, Nov 27, 2018 at 03:27:21PM -0200, Paulo Flabiano Smorigo wrote: > Add Breno and Nayna as NX/VMX crypto driver maintainers. Also change my > email address to my personal account and remove Leonidas since he's not > working with the driver anymore. > > Signed-off-by: Paulo Flabiano Smorigo

Re: [PATCH 0/3] new HW version and co-maintainer

2018-12-06 Thread Herbert Xu
On Tue, Nov 13, 2018 at 09:40:34AM +, Gilad Ben-Yossef wrote: > Add support for CryptoCell 703 HW revision and a new co-maintainer. > > Gilad Ben-Yossef (3): > crypto: ccree: add support for CryptoCell 703 > dt-bindings: crypto: ccree: add dt bindings for ccree 703 > MAINTAINERS: ccree:

[PATCH v5 1/3] mm: Add support for kmem caches in DMA32 zone

2018-12-06 Thread Nicolas Boichat
IOMMUs using ARMv7 short-descriptor format require page tables to be allocated within the first 4GB of RAM, even on 64-bit systems. On arm64, this is done by passing GFP_DMA32 flag to memory allocation functions. For IOMMU L2 tables that only take 1KB, it would be a waste to allocate a full page u

[PATCH v5 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables

2018-12-06 Thread Nicolas Boichat
This is a follow-up to the discussion in [1], [2]. IOMMUs using ARMv7 short-descriptor format require page tables (level 1 and 2) to be allocated within the first 4GB of RAM, even on 64-bit systems. For L1 tables that are bigger than a page, we can just use __get_free_pages with GFP_DMA32 (on arm

Re: [PATCH v4 0/5] powerpc: system call table generation support

2018-12-06 Thread Firoz Khan
++ sathn...@linux.vnet.ibm.com, Hi Satheesh, On Fri, 7 Dec 2018 at 11:42, Firoz Khan wrote: > > > Changes since v3: > - split compat syscall table out from native table. > - modified the script to add new line in the generated >file. I have fixed few major issue. Could you perform boot te

[PATCH v5 3/3] mm: Add /sys/kernel/slab/cache/cache_dma32

2018-12-06 Thread Nicolas Boichat
A previous patch in this series adds support for SLAB_CACHE_DMA32 kmem caches. This adds the corresponding /sys/kernel/slab/cache/cache_dma32 entries, and fixes slabinfo tool. Signed-off-by: Nicolas Boichat --- There were different opinions on whether this sysfs entry should be added, so I'll le

[PATCH v5 2/3] iommu/io-pgtable-arm-v7s: Request DMA32 memory, and improve debugging

2018-12-06 Thread Nicolas Boichat
IOMMUs using ARMv7 short-descriptor format require page tables (level 1 and 2) to be allocated within the first 4GB of RAM, even on 64-bit systems. For level 1/2 pages, ensure GFP_DMA32 is used if CONFIG_ZONE_DMA32 is defined (e.g. on arm64 platforms). For level 2 pages, allocate a slab cache in

Re: [PATCH] mm, kmemleak: Little optimization while scanning

2018-12-06 Thread Oscar Salvador
> > + > > This one maybe not necessary. Yeah, that is a remind of an include file I used for time measurement. I hope Andrew can drop that if this is taken. > > /* > > * Kmemleak configuration and common defines. > > */ > > @@ -1547,11 +1548,14 @@ static void kmemleak_scan(void) > >

Re: [PATCH v2] mailbox: Hi3660: Fixup mailbox state machine malfunction issue

2018-12-06 Thread leo . yan
On Mon, Dec 03, 2018 at 02:13:08PM +0800, Kevin Wangtao wrote: > Current mailbox driver of Hi3660 release the mailbox directly > before sending a new message which may cause last message lost > and next message sending doesn't take effect actually. > > This patch fixes this issue by following the

Crypto Fixes for 4.20

2018-12-06 Thread Herbert Xu
Hi Linus: This push fixes the following issues: - Disable the new crypto stats interface as it's still being changed. - Fix potential uses-after-free in cbc/cfb/pcbc. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Herbert Xu (1): crypto: us

[PATCH v4 5/5] powerpc: generate uapi header and system call table files

2018-12-06 Thread Firoz Khan
System call table generation script must be run to gener- ate unistd_32/64.h and syscall_table_32/64/c32/spu.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32/64.h and syscall_table- _32/64/c32/spu.h files by the syscall table generation script

[PATCH v4 3/5] powerpc: add system call table generation support

2018-12-06 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add or modify the system calls in the respective files. To make it easy by keeping a script and which will generate the uapi header and syscall table file. This change will also help to unify the

[PATCH v4 4/5] powerpc: split compat syscall table out from native table

2018-12-06 Thread Firoz Khan
PowerPC uses a syscall table with native and compat calls interleaved, which is a slightly simpler way to define two matching tables. As we move to having the tables generated, that advantage is no longer important, but the interleaved table gets in the way of using the same scripts as on the othe

[PATCH v4 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-06 Thread Firoz Khan
Move the macro definition for compat_sys_sigsuspend from asm/systbl.h to the file which it is getting included. One of the patch in this patch series is generating uapi header and syscall table files. In order to come up with a common implimentation across all architecture, we need to do this chan

[PATCH v4 1/5] powerpc: add __NR_syscalls along with NR_syscalls

2018-12-06 Thread Firoz Khan
NR_syscalls macro holds the number of system call exist in powerpc architecture. We have to change the value of NR_syscalls, if we add or delete a system call. One of the patch in this patch series has a script which will generate a uapi header based on syscall.tbl file. The syscall.tbl file conta

[PATCH v4 0/5] powerpc: system call table generation support

2018-12-06 Thread Firoz Khan
The purpose of this patch series is, we can easily add/modify/delete system call table support by cha- nging entry in syscall.tbl file instead of manually changing many files. The other goal is to unify the system call table generation support implementation across all the architectures. The sy

RE: [PATCH v7 09/10] usb: dwc3: Check for IOC/LST bit in both event->status and TRB->ctrl fields

2018-12-06 Thread Felipe Balbi
Hi, Anurag Kumar Vulisha writes: >>> @@ -2286,7 +2286,12 @@ static int >>dwc3_gadget_ep_reclaim_completed_trb(struct dwc3_ep *dep, >>> if (event->status & DEPEVT_STATUS_SHORT && !chain) >>> return 1; >>> >>> - if (event->status & (DEPEVT_STATUS_IOC | DEPEVT_STATUS_LST)) >>> +

Re: [PATCH] mm, kmemleak: Little optimization while scanning

2018-12-06 Thread Oscar Salvador
I just realized I forgot to add that this was suggested by Michal. Sorry, I was a but rushy. On Thu, 2018-12-06 at 14:19 +0100, Oscar Salvador wrote: > kmemleak_scan() goes through all online nodes and tries > to scan all used pages. > We can do better and use pfn_to_online_page(), so in case we h

[PATCH] clocksource/drivers/timer-imx-tpm: Specify clock name for timer-of

2018-12-06 Thread Anson Huang
i.MX TPM needs "ipg" clock for register access and "per" clock for timer function, the driver gets "ipg" clock by searching the clock name, but timer-of initialization will get first clock in device tree TPM node since no clock name specified in of_clk, that means the "per" clock MUST be the first

RE: [PATCH v7 01/10] usb: gadget: udc: Add timer support for usb requests

2018-12-06 Thread Felipe Balbi
hi, Anurag Kumar Vulisha writes: >>Does the data book suggest a value for the timeout? >> > > No, the databook doesn't mention about the timeout value > >>> >At this point, it seems that the generic approach will be messier than >>> >having every >>> >controller driver implement its own fix.

Re: [PATCH v8 1/7] xen/pvh: Split CONFIG_XEN_PVH into CONFIG_PVH and CONFIG_XEN_PVH

2018-12-06 Thread Juergen Gross
On 06/12/2018 23:11, Paolo Bonzini wrote: > On 06/12/18 07:04, Maran Wilson wrote: >> +config PVH >> +bool "Support for running PVH guests" >> +---help--- >> + This option enables the PVH entry point for guest virtual machines >> + as specified in the x86/HVM direct boot ABI. >> +

Re: [PATCH] clk: qcom: Fix gpll0_out_main parent

2018-12-06 Thread Bjorn Andersson
On Thu 06 Dec 21:37 PST 2018, Vinod Koul wrote: > From: Srinivas Kandagatla > > gpll0_out_main parent is cxo so fix it. > > Fixes: 652f1813c113 ("clk: qcom: gcc: Add global clock controller driver for > QCS404") > Signed-off-by: Srinivas Kandagatla > Signed-off-by: Vinod Koul Reviewed-by: B

[PATCH v3] ptp: fix an IS_ERR() vs NULL check

2018-12-06 Thread Dan Carpenter
We recently modified pps_register_source() to return error pointers instead of NULL but it seems like there was a merge issue and part of the commit was lost. Anyway, the ptp_clock_register() function needs to be updated to check for IS_ERR() as well. Fixes: 3b1ad360acad ("pps: using ERR_PTR inst

Re: [PATCH v5 00/11] crypto: crypto_user_stat: misc enhancement

2018-12-06 Thread Herbert Xu
On Thu, Nov 29, 2018 at 10:16:26AM -0800, Eric Biggers wrote: > > Herbert, can you send this series to Linus for v4.20 after reviewing it? > We don't want to be stuck with a bad UAPI, and the use-after-free needs to be > fixed anyway too. On second thought, I'm just going to revert the whole inter

Re: [PATCH RFC 1/1] swiotlb: add debugfs to track swiotlb buffer usage

2018-12-06 Thread Dongli Zhang
On 12/07/2018 12:12 AM, Joe Jin wrote: > Hi Dongli, > > Maybe move d_swiotlb_usage declare into swiotlb_create_debugfs(): I assume the call of swiotlb_tbl_map_single() might be frequent in some situations, e.g., when 'swiotlb=force'. That's why I declare the d_swiotlb_usage out of any functio

RE:Business proposition for you

2018-12-06 Thread Melvin M.Greg
Hello, Re: Business proposition for you. I have a client in Russia who will like to invest with your company. My client is willing to invest $10 Million to $50 million. Can I have your company website to show to my client your company so that they will check and decide if they will invest th

RE: [PATCH v7 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-12-06 Thread Yogesh Narayan Gaur
Hi Frieder, > -Original Message- > From: Schrempf Frieder [mailto:frieder.schre...@kontron.de] > Sent: Tuesday, December 4, 2018 7:45 PM > To: linux-...@lists.infradead.org; boris.brezil...@bootlin.com; linux- > s...@vger.kernel.org; Marek Vasut ; Mark Brown > ; Han Xu > Cc: dw...@infrade

Re: [RESEND PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-12-06 Thread Guochun Mao
On Thu, 2018-12-06 at 15:36 +0100, Boris Brezillon wrote: > On Thu, 29 Nov 2018 14:29:54 +0800 > Ryder Lee wrote: > > > From: Guochun Mao > > > > Replace mtd_device_register with mtd_device_parse_register for > > parsing partitions and add ofpart support. > > What's the problem with the defaul

[PATCH -V8 02/21] swap: Add __swap_duplicate_locked()

2018-12-06 Thread Huang Ying
The part of __swap_duplicate() with lock held is separated into a new function __swap_duplicate_locked(). Because we will add more logic about the PMD swap mapping into __swap_duplicate() and keep the most PTE swap mapping related logic in __swap_duplicate_locked(). Just mechanical code refactori

[PATCH -V8 05/21] swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-12-06 Thread Huang Ying
When a PMD swap mapping is removed from a huge swap cluster, for example, unmap a memory range mapped with PMD swap mapping, etc, free_swap_and_cache() will be called to decrease the reference count to the huge swap cluster. free_swap_and_cache() may also free or split the huge swap cluster, and f

[PATCH -V8 08/21] swap: Support to read a huge swap cluster for swapin a THP

2018-12-06 Thread Huang Ying
To swapin a THP in one piece, we need to read a huge swap cluster from the swap device. This patch revised the __read_swap_cache_async() and its callers and callees to support this. If __read_swap_cache_async() find the swap cluster of the specified swap entry is huge, it will try to allocate a T

[PATCH -V8 18/21] swap: Support PMD swap mapping in mincore()

2018-12-06 Thread Huang Ying
During mincore(), for PMD swap mapping, swap cache will be looked up. If the resulting page isn't compound page, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johan

[PATCH -V8 12/21] swap: Support PMD swap mapping in swapoff

2018-12-06 Thread Huang Ying
During swapoff, for a huge swap cluster, we need to allocate a THP, read its contents into the THP and unuse the PMD and PTE swap mappings to it. If failed to allocate a THP, the huge swap cluster will be split. During unuse, if it is found that the swap cluster mapped by a PMD swap mapping is sp

[PATCH -V8 13/21] swap: Support PMD swap mapping in madvise_free()

2018-12-06 Thread Huang Ying
When madvise_free() found a PMD swap mapping, if only part of the huge swap cluster is operated on, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Otherwise, if all huge swap cluster is operated on, free_swap_and_cache() will be called to decrease the PMD swap mapp

[PATCH -V8 16/21] swap: Free PMD swap mapping when zap_huge_pmd()

2018-12-06 Thread Huang Ying
For a PMD swap mapping, zap_huge_pmd() will clear the PMD and call free_swap_and_cache() to decrease the swap reference count and maybe free or split the huge swap cluster and the THP in swap cache. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc:

[PATCH -V8 14/21] swap: Support to move swap account for PMD swap mapping

2018-12-06 Thread Huang Ying
Previously the huge swap cluster will be split after the THP is swapout. Now, to support to swapin the THP in one piece, the huge swap cluster will not be split after the THP is reclaimed. So in memcg, we need to move the swap account for PMD swap mappings in the process's page table. When the p

[PATCH -V8 11/21] swap: Add sysfs interface to configure THP swapin

2018-12-06 Thread Huang Ying
Swapin a THP as a whole isn't desirable in some situations. For example, for completely random access pattern, swapin a THP in one piece will inflate the reading greatly. So a sysfs interface: /sys/kernel/mm/transparent_hugepage/swapin_enabled is added to configure it. Three options as follow ar

[PATCH -V8 17/21] swap: Support PMD swap mapping for MADV_WILLNEED

2018-12-06 Thread Huang Ying
During MADV_WILLNEED, for a PMD swap mapping, if THP swapin is enabled for the VMA, the whole swap cluster will be swapin. Otherwise, the huge swap cluster and the PMD swap mapping will be split and fallback to PTE swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea A

[PATCH -V8 20/21] swap: create PMD swap mapping when unmap the THP

2018-12-06 Thread Huang Ying
This is the final step of the THP swapin support. When reclaiming a anonymous THP, after allocating the huge swap cluster and add the THP into swap cache, the PMD page mapping will be changed to the mapping to the swap space. Previously, the PMD page mapping will be split before being changed. I

[PATCH -V8 19/21] swap: Support PMD swap mapping in common path

2018-12-06 Thread Huang Ying
Original code is only for PMD migration entry, it is revised to support PMD swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc: Dave Hansen Cc: N

[PATCH -V8 21/21] swap: Update help of CONFIG_THP_SWAP

2018-12-06 Thread Huang Ying
The help of CONFIG_THP_SWAP is updated to reflect the latest progress of THP (Tranparent Huge Page) swap optimization. Signed-off-by: "Huang, Ying" Reviewed-by: Dan Williams Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins C

[PATCH -V8 10/21] swap: Support to count THP swapin and its fallback

2018-12-06 Thread Huang Ying
2 new /proc/vmstat fields are added, "thp_swapin" and "thp_swapin_fallback" to count swapin a THP from swap device in one piece and fallback to normal page swapin. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li C

[PATCH -V8 15/21] swap: Support to copy PMD swap mapping when fork()

2018-12-06 Thread Huang Ying
During fork, the page table need to be copied from parent to child. A PMD swap mapping need to be copied too and the swap reference count need to be increased. When the huge swap cluster has been split already, we need to split the PMD swap mapping and fallback to PTE copying. When swap count co

[PATCH -V8 00/21] swap: Swapout/swapin THP in one piece

2018-12-06 Thread Huang Ying
Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the swap part of the patchset? Especially [02/21], [03/21], [04/21], [05/21], [06/21], [07/21], [08/21], [09/21], [10/21], [11/21], [12/21], [20/21], [2

[PATCH -V8 04/21] swap: Support PMD swap mapping in put_swap_page()

2018-12-06 Thread Huang Ying
Previously, during swapout, all PMD page mapping will be split and replaced with PTE swap mapping. And when clearing the SWAP_HAS_CACHE flag for the huge swap cluster in put_swap_page(), the huge swap cluster will be split. Now, during swapout, the PMD page mappings to the THP will be changed to

[PATCH -V8 01/21] swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-12-06 Thread Huang Ying
Currently, "the swap entry" in the page tables is used for a number of things outside of actual swap, like page migration, etc. We support the THP/PMD "swap entry" for page migration currently and the functions behind this are tied to page migration's config option (CONFIG_ARCH_ENABLE_THP_MIGRATIO

[PATCH -V8 06/21] swap: Support PMD swap mapping when splitting huge PMD

2018-12-06 Thread Huang Ying
A huge PMD need to be split when zap a part of the PMD mapping etc. If the PMD mapping is a swap mapping, we need to split it too. This patch implemented the support for this. This is similar as splitting the PMD page mapping, except we need to decrease the PMD swap mapping count for the huge swa

[PATCH -V8 09/21] swap: Swapin a THP in one piece

2018-12-06 Thread Huang Ying
With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP in one piece. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page() is added in th

[PATCH -V8 03/21] swap: Support PMD swap mapping in swap_duplicate()

2018-12-06 Thread Huang Ying
To support to swapin the THP in one piece, we need to create PMD swap mapping during swapout, and maintain PMD swap mapping count. This patch implements the support to increase the PMD swap mapping count (for swapout, fork, etc.) and set SWAP_HAS_CACHE flag (for swapin, etc.) for a huge swap clus

[PATCH -V8 07/21] swap: Support PMD swap mapping in split_swap_cluster()

2018-12-06 Thread Huang Ying
When splitting a THP in swap cache or failing to allocate a THP when swapin a huge swap cluster, the huge swap cluster will be split. In addition to clear the huge flag of the swap cluster, the PMD swap mapping count recorded in cluster_count() will be set to 0. But we will not touch PMD swap map

Re: [PATCH net-next] rhashtable: further improve stability of rhashtable_walk

2018-12-06 Thread Herbert Xu
On Wed, Dec 05, 2018 at 02:51:02PM +1100, NeilBrown wrote: > > If the sequence: >obj = rhashtable_walk_next(iter); >rhashtable_walk_stop(iter); >rhashtable_remove_fast(ht, &obj->head, params); >rhashtable_walk_start(iter); > > races with another thread inserting or removing > an

[PATCH] clk: qcom: Fix gpll0_out_main parent

2018-12-06 Thread Vinod Koul
From: Srinivas Kandagatla gpll0_out_main parent is cxo so fix it. Fixes: 652f1813c113 ("clk: qcom: gcc: Add global clock controller driver for QCS404") Signed-off-by: Srinivas Kandagatla Signed-off-by: Vinod Koul --- drivers/clk/qcom/gcc-qcs404.c | 2 +- 1 file changed, 1 insertion(+), 1 del

  1   2   3   4   5   6   7   8   9   10   >