Re: [PATCHv2] mtd: spi-nor: Fix Cadence QSPI page fault kernel panic

2018-11-20 Thread Boris Brezillon
On Fri, 2018-11-16 at 14:25:49 UTC, thor.tha...@linux.intel.com wrote: > From: Thor Thayer > > The current Cadence QSPI driver caused a kernel panic sporadically > when writing to QSPI. The problem was caused by writing more bytes > than needed because the QSPI operated on 4 bytes at a time. > >

Re: [RFC PATCH v2 06/14] m68k: amiga: Convert to clocksource API

2018-11-20 Thread Linus Walleij
On Mon, Nov 19, 2018 at 2:22 AM Finn Thain wrote: > Add a platform clocksource by adapting the existing arch_gettimeoffset > implementation. > > Signed-off-by: Finn Thain > Acked-by: Linus Walleij > --- > Changed since v1: > - Moved clk_total access to within the irq lock. Came to think of it

Re: [PATCH 4.19 000/205] 4.19.3-stable review

2018-11-20 Thread Naresh Kamboju
On Mon, 19 Nov 2018 at 22:01, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.3 release. > There are 205 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

[PATCH v4 1/2] objtool: fix failed cold symbol doublefree

2018-11-20 Thread Artem Savkov
If read_symbols() fails during second list traversal (the one dealing with ".cold" subfunctions) it frees the symbol, but never deletes it from the list/hash_table resulting in symbol being freed again in elf_close(). Fix by just returning an error leaving cleanup to elf_close(). Fixes: 13810435b9

[PATCH v4 2/2] objtool: fix .cold functions parent symbols search

2018-11-20 Thread Artem Savkov
Because find_symbol_by_name() traverses the same lists as read_symbols() changing sym->name in place without copying it affects the result of find_symbol_by_name() and, in case when ".cold" function precedes it's parent in sec->symbol_list, can result in function being considered a parent of itself

[PATCH v4 0/2] objtool: read_symbols() fixes

2018-11-20 Thread Artem Savkov
The series started with 'parent symbol search' patch, but I found another issue in read_symbols() while testing the failure-path. Artem Savkov (2): objtool: fix failed cold symbol doublefree objtool: fix .cold functions parent symbols search tools/objtool/elf.c | 19 +++ 1 fi

Re: [PATCH 4.18 000/171] 4.18.20-stable review

2018-11-20 Thread Naresh Kamboju
On Mon, 19 Nov 2018 at 22:11, Greg Kroah-Hartman wrote: > > -- > NOTE, this is going to be the last 4.18.y release. After this one it is > end-of-life, please move to 4.19.y at this point in time. > -- > > This is the start of the stable review cycle for the 4.18.2

[PATCH v2 1/2] dt-bindings: gpio: add SAMA5D2 PIOBU support

2018-11-20 Thread Andrei.Stefanescu
This patch describes the compatible and the device tree bindings necessary for the SAMA5D2 PIOBU GPIO. Signed-off-by: Andrei Stefanescu --- .../bindings/gpio/gpio-sama5d2-piobu.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetr

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

2018-11-20 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). v2: - make driver be a subnode of the sys

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

2018-11-20 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 09/16] irqchip: Add RDA8810PL interrupt driver

2018-11-20 Thread Marc Zyngier
[dropping the @rdamicro.com addresses, as they bounce...] On Tue, 20 Nov 2018 03:19:58 +, Manivannan Sadhasivam wrote: > > Hi Marc, > > Thanks for the quick review! > > On Mon, Nov 19, 2018 at 05:36:49PM +, Marc Zyngier wrote: > > Manivannan, > > > > On 19/11/2018 17:09, Manivannan Sa

Re: [RFC PATCH v2 07/14] m68k: atari: Convert to clocksource API

2018-11-20 Thread Linus Walleij
On Mon, Nov 19, 2018 at 2:22 AM Finn Thain wrote: > Add a platform clocksource by adapting the existing arch_gettimeoffset > implementation. > > Normally the MFP timer C interrupt flag would be used to check for > timer counter wrap-around. Unfortunately, that flag gets cleared by the > MFP itsel

Re: [PATCH 4.14 000/124] 4.14.82-stable review

2018-11-20 Thread Naresh Kamboju
On Mon, 19 Nov 2018 at 22:18, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.82 release. > There are 124 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

Re: [PATCH 4.9 00/83] 4.9.138-stable review

2018-11-20 Thread Naresh Kamboju
On Mon, 19 Nov 2018 at 22:23, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.138 release. > There are 83 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH 02/13] x86/fault: Check user_mode(regs) when validating a stack extension

2018-11-20 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Andy Lutomirski wrote: > > > The fault handling code tries to validate that a page fault from > > user mode that would extend the stack is within a certain range of > > the user SP. regs->sp is only equal to the user SP if > > user_mode(regs). In the extremely un

Re: [PATCH 4.4 000/160] 4.4.164-stable review

2018-11-20 Thread Naresh Kamboju
On Mon, 19 Nov 2018 at 22:27, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.164 release. > There are 160 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

[tip:x86/mm] x86/fault: Check user_mode(regs) when avoiding an mmap_sem deadlock

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: 6344be608c039f3a787f1144c46fcb04c0f76561 Gitweb: https://git.kernel.org/tip/6344be608c039f3a787f1144c46fcb04c0f76561 Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:25 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:27 +0100 x86/fault: Check user_m

Re: [RFC PATCH v2 10/14] m68k: mac: Convert to clocksource API

2018-11-20 Thread Linus Walleij
On Mon, Nov 19, 2018 at 2:22 AM Finn Thain wrote: > Add a platform clocksource by adapting the existing arch_gettimeoffset > implementation. > > Signed-off-by: Finn Thain > Acked-by: Linus Walleij > Tested-by: Stan Johnson As noted for the Amiga CIA (which is pretty much a sibling to this MOS

[tip:x86/mm] x86/fault: Fold smap_violation() into do_user_addr_fault()

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: a15781b536293edc32bf374233f3b8ad77c3f72b Gitweb: https://git.kernel.org/tip/a15781b536293edc32bf374233f3b8ad77c3f72b Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:28 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:28 +0100 x86/fault: Fold smap_vi

Re: [PATCH 12/16] clocksource: Add clock driver for RDA8810PL SoC

2018-11-20 Thread Marc Zyngier
On Tue, 20 Nov 2018 05:06:50 +, Manivannan Sadhasivam wrote: > > Hi Marc, > > On Mon, Nov 19, 2018 at 05:57:12PM +, Marc Zyngier wrote: > > On 19/11/2018 17:09, Manivannan Sadhasivam wrote: > > > Add clock driver for RDA Micro RDA8810PL SoC supporting OSTIMER > > > and HWTIMER. > > > >

[tip:x86/mm] x86/cpufeatures, x86/fault: Mark SMAP as disabled when configured out

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: dae0a10593007d049ea71601357ac41d4f247ee9 Gitweb: https://git.kernel.org/tip/dae0a10593007d049ea71601357ac41d4f247ee9 Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:27 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:28 +0100 x86/cpufeatures, x86/fa

Re: [PATCH 01/13] x86/fault: Check user_mode(regs) when avoiding an mmap_sem deadlock

2018-11-20 Thread Peter Zijlstra
On Mon, Nov 19, 2018 at 02:45:25PM -0800, Andy Lutomirski wrote: > The fault-handling code that takes mmap_sem needs to avoid a > deadlock that could occur if the kernel took a bad (OOPS-worthy) > page fault on a user address while holding mmap_sem. This can only > happen if the faulting instructi

[tip:x86/mm] x86/fault: Fix SMAP #PF handling buglet for implicit supervisor accesses

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: e50928d7213e72ee95507221a89ed07d2bb6517b Gitweb: https://git.kernel.org/tip/e50928d7213e72ee95507221a89ed07d2bb6517b Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:29 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:29 +0100 x86/fault: Fix SMAP #PF

[tip:x86/mm] x86/fault: Improve the condition for signalling vs OOPSing

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: 6ea59b074f15e7ef4b042a108950861b383e7b02 Gitweb: https://git.kernel.org/tip/6ea59b074f15e7ef4b042a108950861b383e7b02 Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:30 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:29 +0100 x86/fault: Improve the

Re: [RFC PATCH ghak100 V1 1/2] audit: avoid fcaps on MNT_FORCE

2018-11-20 Thread Miklos Szeredi
On Mon, Nov 19, 2018 at 11:59 PM Richard Guy Briggs wrote: > The simple answer is that the audit PATH record format expects the four > cap_f* fields to be there and a best effort is being attempted to fill > in that information in an expected way with meaningful values. Perhaps > better to accep

Re: [PATCH v2] mtd: spi-nor: cast to u64 to avoid uint overflows

2018-11-20 Thread Geert Uytterhoeven
Hi Huijin, On Thu, Nov 15, 2018 at 6:08 AM Huijin Park wrote: > From: "huijin.park" > > The "params->size" is defined as "u64". > And "info->sector_size" and "info->n_sectors" are defined as > unsigned int and u16. > Thus, u64 data might have strange data(loss data) if the result > overflows an

[tip:x86/mm] x86/fault: Make error_code sanitization more robust

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: e49d3cbef0176c182b86206185f137a87f16ab91 Gitweb: https://git.kernel.org/tip/e49d3cbef0176c182b86206185f137a87f16ab91 Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:31 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:29 +0100 x86/fault: Make error_c

[tip:x86/mm] x86/fault: Don't set thread.cr2, etc before OOPSing

2018-11-20 Thread tip-bot for Andy Lutomirski
Commit-ID: 1ad33f5aec20f53785dbad44c6fb3b204aefd921 Gitweb: https://git.kernel.org/tip/1ad33f5aec20f53785dbad44c6fb3b204aefd921 Author: Andy Lutomirski AuthorDate: Mon, 19 Nov 2018 14:45:32 -0800 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 08:44:30 +0100 x86/fault: Don't set th

Re: [RFC PATCH v2 07/14] m68k: atari: Convert to clocksource API

2018-11-20 Thread Geert Uytterhoeven
Hi Linus, On Tue, Nov 20, 2018 at 9:10 AM Linus Walleij wrote: > As with the Amiga, this chip also has an RTC clock that should > go to the RTC subsystem, naturally. Please note the Amiga CIA is an 8520, not 6526, hence it has a 24-bit TOD instead of a BCD TOD, so it's not suitable for use as an

Re: [PATCH] ia64: export node_distance function

2018-11-20 Thread Matias Bjørling
On 11/03/2018 07:37 PM, Matias Bjørling wrote: The numa_slit variable used by node_distance is available to a module as long as it is linked at compile-time. However, it is not available to loadable modules. Leading to errors such as: ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefi

[PATCH] KVM: X86: Fix scan ioapic use-before-initialization

2018-11-20 Thread Wanpeng Li
From: Wanpeng Li Reported by syzkaller: BUG: unable to handle kernel NULL pointer dereference at 01c8 PGD 8003ec4da067 P4D 8003ec4da067 PUD 3f7bfa067 PMD 0 Oops: [#1] PREEMPT SMP PTI CPU: 7 PID: 5059 Comm: debug Tainted: G OE 4.19.0-rc5 #16 RIP: 0010:

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-20 Thread Linus Walleij
On Mon, Nov 19, 2018 at 9:32 AM Uwe Kleine-König wrote: > To sumarize: When the pwm driver probes it is not yet clear if the idle > state of the output pin is high or low. Even when the pinctrl device has > an "init" and a "default" pinctrl, it is not yet fixed when its > "default" is configured.

Re: [PATCH 2/3] pinctrl: stm32: protect configuration registers with a hwspinlock

2018-11-20 Thread Benjamin Gaignard
Le lun. 19 nov. 2018 à 13:20, Linus Walleij a écrit : > > On Tue, Nov 13, 2018 at 10:51 AM Benjamin Gaignard > wrote: > > > If a hwspinlock if defined in device tree use it to protect > > configuration registers. > > > > Signed-off-by: Benjamin Gaignard > > Patch applied with Alex' ACK. Thanks

[PATCH] kernfs: Add check for NULL pointer before writing to it.

2018-11-20 Thread Ashish Mhetre
From: Bo Yan The strlcpy function returns the length of source pointer when the requested size is 0. This behavior is relied upon for sched tracing. We can't simply return when buf is 0, but we have to protect against the scenario when buf is 0 and requested size is non-zero, in which case the st

Re: [PATCH 0/3] ARM: davinci: fix ethernet support on da850-evm

2018-11-20 Thread Linus Walleij
On Mon, Nov 19, 2018 at 10:11 AM Bartosz Golaszewski wrote: > pt., 16 lis 2018 o 22:51 Linus Walleij napisał(a): > > I have some patches starting to move DaVinci over to using only > > descriptor tables, but that's not somthing we can pull off overnight > > so I guess we have to go for this solu

[PATCH 1/2] spi: mediatek: Add bindings for mediatek MT7629 soc platform

2018-11-20 Thread Leilk Liu
This patch adds a DT binding documentation for the MT7629 soc. Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi-

[PATCH 0/2] add SPI driver support for mt7629

2018-11-20 Thread Leilk Liu
>From 51ab18abe1ad0f8ef0bc88696d956431f3e01f3f Mon Sep 17 00:00:00 2001 From: Leilk Liu Date: Tue, 20 Nov 2018 16:34:22 +0800 Subject: [PATCH 0/2] add SPI driver support for mt7629 This series are based on 4.20-rc1 and provide two patches to support mt7629 IC. Leilk Liu (2): spi: mediatek: Add

[PATCH 2/2] spi: mediatek: add spi support for mt7629 IC

2018-11-20 Thread Leilk Liu
this patch add support for mt7629 IC. Change-Id: Icb8ced408ebd1340fb0340592b91f24740d07e1e Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 9ee1fe9..0cce6f0 100644 --- a/drive

Re: [PATCH] thermal: imx: fix for dependency on cpu-freq

2018-11-20 Thread Daniel Lezcano
On 24/10/2018 08:39, Anson Huang wrote: > The thermal driver is a standalone driver for monitoring SoC temperature > by enabling thermal sensor, so it can be enabled even when CONFIG_CPU_FREQ > is NOT set. So remove the dependency with CPU_THERMAL. > > Add CONFIG_CPU_FREQ check for cpu-freq relate

Re: [PATCH 2/3] gpio: mockup: add locking

2018-11-20 Thread Linus Walleij
On Mon, Nov 19, 2018 at 10:09 AM Bartosz Golaszewski wrote: > pt., 16 lis 2018 o 22:43 Linus Walleij napisał(a): > > __gpio_* > > I tend to dislike __underscore_notation because I feel it > > is semantically ambguous. I prefer a proper name, even > > to the point that I prefer inner_function_foo

RE: [PATCH] thermal: imx: fix for dependency on cpu-freq

2018-11-20 Thread Anson Huang
Hi, Daniel Best Regards! Anson Huang > -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: 2018年11月20日 16:45 > To: Anson Huang ; rui.zh...@intel.com; > edubez...@gmail.com; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subj

Re: [PATCH 3.18 16/90] cpupower: Fix coredump on VMWare

2018-11-20 Thread Greg Kroah-Hartman
On Mon, Nov 19, 2018 at 01:11:54PM -0500, Prarit Bhargava wrote: > > > On 11/19/2018 11:28 AM, Greg Kroah-Hartman wrote: > > 3.18-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Prarit Bhargava > > > > [ Upstream commit f69ffc5d

Re: [PATCH 4.19 000/205] 4.19.3-stable review

2018-11-20 Thread Greg Kroah-Hartman
On Tue, Nov 20, 2018 at 01:35:39PM +0530, Naresh Kamboju wrote: > On Mon, 19 Nov 2018 at 22:01, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 4.19.3 release. > > There are 205 patches in this series, all will be posted as a response > > to this one. If a

Re: [PATCH] thermal: imx: fix for dependency on cpu-freq

2018-11-20 Thread Daniel Lezcano
On 20/11/2018 09:47, Anson Huang wrote: > Hi, Daniel > > Best Regards! > Anson Huang > >> -Original Message- >> From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] >> Sent: 2018年11月20日 16:45 >> To: Anson Huang ; rui.zh...@intel.com; >> edubez...@gmail.com; linux...@vger.kernel.org; >>

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

2018-11-20 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 -V7 RESEND 05/21] swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-11-20 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 -V7 RESEND 09/21] swap: Swapin a THP in one piece

2018-11-20 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 -V7 RESEND 03/21] swap: Support PMD swap mapping in swap_duplicate()

2018-11-20 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 -V7 RESEND 04/21] swap: Support PMD swap mapping in put_swap_page()

2018-11-20 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 -V7 RESEND 07/21] swap: Support PMD swap mapping in split_swap_cluster()

2018-11-20 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

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

2018-11-20 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 -V7 00/21] swap: Swapout/swapin THP in one piece

2018-11-20 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 -V7 RESEND 01/21] swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-11-20 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 -V7 RESEND 06/21] swap: Support PMD swap mapping when splitting huge PMD

2018-11-20 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

Re: linux-next: manual merge of the staging tree with the drm tree

2018-11-20 Thread Greg KH
On Tue, Nov 20, 2018 at 01:16:16PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the staging tree got a conflict in: > > drivers/staging/vboxvideo/vbox_ttm.c > > between commits: > > a64f784bb14a ("drm/ttm: initialize globals during device init (v2)") > > from t

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

2018-11-20 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 -V7 RESEND 12/21] swap: Support PMD swap mapping in swapoff

2018-11-20 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 -V7 RESEND 10/21] swap: Support to count THP swapin and its fallback

2018-11-20 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 -V7 RESEND 18/21] swap: Support PMD swap mapping in mincore()

2018-11-20 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 -V7 RESEND 17/21] swap: Support PMD swap mapping for MADV_WILLNEED

2018-11-20 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 -V7 RESEND 19/21] swap: Support PMD swap mapping in common path

2018-11-20 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

Re: [PATCH] x86/mm: Drop usage of __flush_tlb_all() in kernel_physical_mapping_init()

2018-11-20 Thread Peter Zijlstra
On Mon, Nov 19, 2018 at 03:19:04PM -0800, Dan Williams wrote: > [1]: https://lore.kernel.org/patchwork/patch/1009434/#1193941 > [2]: https://lore.kernel.org/patchwork/patch/1009434/#1194540 FWIW, that is not the canonical form to refer to emails. Please use: https://lkml.kernel.org/r/$msgid (

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

2018-11-20 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 -V7 RESEND 16/21] swap: Free PMD swap mapping when zap_huge_pmd()

2018-11-20 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 -V7 RESEND 15/21] swap: Support to copy PMD swap mapping when fork()

2018-11-20 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 -V7 RESEND 14/21] swap: Support to move swap account for PMD swap mapping

2018-11-20 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 -V7 RESEND 21/21] swap: Update help of CONFIG_THP_SWAP

2018-11-20 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 -V7 RESEND 11/21] swap: Add sysfs interface to configure THP swapin

2018-11-20 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

Re: [PATCH 12/16] clocksource: Add clock driver for RDA8810PL SoC

2018-11-20 Thread Linus Walleij
On Tue, Nov 20, 2018 at 9:17 AM Marc Zyngier wrote: > How does this change anything with the fact that the above code is > broken? 56 or 64 bit, you cannot read this counter with a single > access, or two. The canonical way of reading such a counter is > something like this: > > do { >

Re: [LKP] dd2283f260 [ 97.263072] WARNING:at_kernel/locking/lockdep.c:#lock_downgrade

2018-11-20 Thread Kirill A. Shutemov
On Fri, Nov 16, 2018 at 08:56:04AM -0800, Yang Shi wrote: > > > a8dda165ec vfree: add debug might_sleep() > > dd2283f260 mm: mmap: zap pages with read mmap_sem in munmap > > 5929a1f0ff Merge tag 'riscv-for-linus-4.20-rc2' of > > git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux

RE: [PATCH] thermal: imx: fix for dependency on cpu-freq

2018-11-20 Thread Anson Huang
Hi, Daniel Best Regards! Anson Huang > -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: 2018年11月20日 16:54 > To: Anson Huang ; rui.zh...@intel.com; > edubez...@gmail.com; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subj

Re: [RFC PATCH v2 10/14] m68k: mac: Convert to clocksource API

2018-11-20 Thread Finn Thain
On Tue, 20 Nov 2018, Linus Walleij wrote: > On Mon, Nov 19, 2018 at 2:22 AM Finn Thain wrote: > > > Add a platform clocksource by adapting the existing arch_gettimeoffset > > implementation. > > > > Signed-off-by: Finn Thain > > Acked-by: Linus Walleij > > Tested-by: Stan Johnson > > As note

Re: Cleaning up numbering for new x86 syscalls?

2018-11-20 Thread Florian Weimer
* Andy Lutomirski: > 5. Adjust the scripts so that we only have to wire up new syscalls > once. They'll have a nr above 1024, and they'll have the same nr on > all x86 variants. Is there a sufficiently sized gap on all other architectures as well? The restriction to the x86 variants seems arbitr

Re: [PATCH] x86/mm: Drop usage of __flush_tlb_all() in kernel_physical_mapping_init()

2018-11-20 Thread Peter Zijlstra
On Tue, Nov 20, 2018 at 02:59:32AM +, Williams, Dan J wrote: > On Mon, 2018-11-19 at 15:43 -0800, Dave Hansen wrote: > > On 11/19/18 3:19 PM, Dan Williams wrote: > > > Andy wondered why a path that can sleep was using __flush_tlb_all() > > > [1] > > > and Dave confirmed the expectation for TLB

RE: [PATCH v3 0/4] Correct dma pool for imx-sdma

2018-11-20 Thread Robin Gong
> -Original Message- > From: Lucas Stach > Sent: 2018年11月12日 23:56 > To: Robin Gong ; vk...@kernel.org > Cc: dmaeng...@vger.kernel.org; linux-kernel@vger.kernel.org; dl-linux-imx > > Subject: Re: [PATCH v3 0/4] Correct dma pool for imx-sdma > > Hi Robin, > > Am Dienstag, den 06.11.201

Re: [PATCH v3 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-11-20 Thread Pavel Machek
On Tue 2018-11-20 08:07:09, Takashi Iwai wrote: > On Tue, 20 Nov 2018 00:57:13 +0100, > Pavel Machek wrote: > > > > > +#if IS_ENABLED(CONFIG_HUAWEI_LAPTOP) > > > +#include > > > + > > > +static int (*huawei_wmi_micmute_led_set_func)(bool); > > > + > > > > So we should not be doing this. > > > >

Re: [RFC PATCH] mm: thp: implement THP reservations for anonymous memory

2018-11-20 Thread Kirill A. Shutemov
On Sat, Nov 10, 2018 at 11:44:12AM -0500, Andrea Arcangeli wrote: > I would prefer to add intelligence to detect when COWs after fork > should be done at 2m or 4k granularity (in the latter case by > splitting the pmd before the actual COW while leaving the transhuge > pmd intact in the other mm),

[tip:x86/timers] x86/TSC: Use RDTSCP

2018-11-20 Thread tip-bot for Borislav Petkov
Commit-ID: 2e94061096c5c3aa6c3fe3ec2bec176c1f9c1b07 Gitweb: https://git.kernel.org/tip/2e94061096c5c3aa6c3fe3ec2bec176c1f9c1b07 Author: Borislav Petkov AuthorDate: Thu, 12 Apr 2018 13:11:36 +0200 Committer: Borislav Petkov CommitDate: Mon, 19 Nov 2018 21:55:32 +0100 x86/TSC: Use RDTSCP

[PATCH] thermal: tegra: add get_trend ops

2018-11-20 Thread Wei Ni
Add support for get_trend ops that allows soctherm sensors to be used with the step-wise governor. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal

Re: [PATCH] ACPI / battery: Fix reporting "Not charging" when capacity is 100%

2018-11-20 Thread Pavel Machek
Hi! > > > Anyways this ultimately is Rafael's call. If Rafael is ok with this > > > patch then I would like to see Pavel's comment addressed and otherwise > > > it is fine with me. > > > > > If we can get to an agreement on this I'll send a v2 without division. > > > > Note that we will still of

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-20 Thread Viresh Kumar
On 20-11-18, 09:35, Linus Walleij wrote: > The whole issue with splash screens and different hardware > turned over to Linux in running state is a bit imperfect I would > say, I think Viresh was working on boot constraints to get > handover of different systems components into some kind > of shape

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-20 Thread Jonathan Cameron
+CC Jean-Phillipe and iommu list. On Mon, 19 Nov 2018 20:29:39 -0700 Jason Gunthorpe wrote: > On Tue, Nov 20, 2018 at 11:07:02AM +0800, Kenneth Lee wrote: > > On Mon, Nov 19, 2018 at 11:49:54AM -0700, Jason Gunthorpe wrote: > > > Date: Mon, 19 Nov 2018 11:49:54 -0700 > > > From: Jason Gunthor

Re: [PATCH v3 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-11-20 Thread Takashi Iwai
On Tue, 20 Nov 2018 10:10:39 +0100, Pavel Machek wrote: > > On Tue 2018-11-20 08:07:09, Takashi Iwai wrote: > > On Tue, 20 Nov 2018 00:57:13 +0100, > > Pavel Machek wrote: > > > > > > > +#if IS_ENABLED(CONFIG_HUAWEI_LAPTOP) > > > > +#include > > > > + > > > > +static int (*huawei_wmi_micmute_led

[PATCHv2 00/25] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is aim to refactor the Mobiveil driver and add PCIe support for NXP Layerscape series SoCs integrated Mobiveil's PCIe Gen4 controller. Hou Zhiqiang (25): PCI: mobiveil: uniform the register accessors PCI: mobiveil: format the code without function change P

Re: [PATCH 06/10] swiotlb: use swiotlb_map_page in swiotlb_map_sg_attrs

2018-11-20 Thread Christoph Hellwig
On Mon, Nov 19, 2018 at 03:22:13PM -0800, John Stultz wrote: > > + sg->dma_address = dma_addr; > > sg_dma_len(sg) = sg->length; > > } > > I know Robin has already replied with more detailed info, but just to > close the loop as I'm finally home, applying this

Re: [RFC PATCH v2 09/14] m68k: hp300: Remove hp300_gettimeoffset()

2018-11-20 Thread Kars de Jong
Op ma 19 nov. 2018 om 02:10 schreef Finn Thain : > > hp300_gettimeoffset() never checks the timer interrupt flag and will > fail to notice when the timer counter gets reloaded. That means the > clock could jump backwards. > > Remove this code and leave this platform on the 'jiffies' clocksource. >

Re: [PATCH] mmc: core: Remove timeout when enabling cache

2018-11-20 Thread Ulf Hansson
On 7 November 2018 at 09:47, Wolfram Sang wrote: > >> That also happens to be one of the cards we deploy; However i did >> wonder about adding a quirk but decided against it as it was not clear >> to me from the specification that CACHE ON really is meant to complete >> within GENERIC_CMD6_TIMEOUT

[PATCHv2 01/25] PCI: mobiveil: uniform the register accessors

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang It's confused that R/W some registers by csr_readl()/csr_writel(), while others by read_paged_register()/write_paged_register(). Actually the low 3KB of 4KB PCIe configure space can be accessed directly and high 1KB is paging area. So this patch uniformed the register accessors

[PATCHv2 09/25] PCI: mobiveil: correct inbound/outbound window setup routines

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Outbound window routine: - Removed unused var definition and register read operations. - Added the upper 32-bit cpu address setup of the window. - Instead of blindly write, only change the fields specified. - Masked the lower bits of window size in case override the cont

[PATCHv2 08/25] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang The inbound windows have different register set with outbound windows. This patch change the MEM inbound window to the first one. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCHv2 11/25] PCI: mobiveil: only fix up the Class Code field

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Fix up the Class Code to PCI bridge, do not change the Revision ID. And move the fixup to mobiveil_host_init function. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang --- V2: - Added fixes entry. drivers/pci/contro

[PATCHv2 06/25] PCI: mobiveil: replace the resource list iteration function

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang As it won't delete any node in this iteration, replaced the function resource_list_for_each_entry_safe() with the resource_list_for_each_entry(). Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+

[PATCHv2 05/25] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang It should get PCI base address from the DT node property 'ranges' to setup MEM/IO outbound windows instead of always zero. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang --- V2: - Added fixes entry. drivers/pci/co

[PATCHv2 02/25] PCI: mobiveil: format the code without function change

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Just format the code without functionality change. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 261 + 1 file changed, 137 insertions(+), 124 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil

[PATCHv2 10/25] PCI: mobiveil: fix the INTx process error

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang In the loop block, there is not code change the loop key, this patch updated the loop key by re-read the INTx status register. This patch also change to clear the handled INTx status. Note: Need MV to test this fix. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host

[PATCHv2 07/25] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang As the .map_bus() use the WIN_NUM_0 for CFG transactions, it's better passing WIN_NUM_0 explicitly when initialize the CFG outbound window. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCHv2 12/25] PCI: mobiveil: move out the link up waiting from mobiveil_host_init

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Host initial sequence does not depend on PCIe link up, so move it to the place just before the enumeration. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --

[PATCHv2 04/25] PCI: mobiveil: remove flag MSI_FLAG_MULTI_PCI_MSI

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang The current code does not support multiple MSIs, so remove the corresponding flag from the msi_domain_info structure. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Signed-off-by: Hou Zhiqiang --- V2: - Added fixes entry. drivers/pci/controller/pcie-mobiveil.c | 2

[PATCHv2 03/25] PCI: mobiveil: correct the returned error number

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang This patch corrected the returned error number by convention, and removed a unnecessary error check. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/p

[PATCHv2 15/25] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Change the "gpio_slave" and "apb_csr" to optional, the "gpio_slave" is not used in current code, and "apb_csr" is not used by some platforms. Signed-off-by: Hou Zhiqiang Acked-by: Subrahmanya Lingappa Acked-by: Rob Herring --- V2: - no change Documentation/devicetree/bin

  1   2   3   4   5   6   7   8   9   >