[PATCH v5] i2c: slave: use SPDX license information

2018-06-21 Thread Mawanda Henry
SPDX license helps developers and machines to know the license governing a particular file hence easing work Signed-off-by: Mawanda Henry --- drivers/i2c/i2c-core-slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-core-slave.c b/drivers/i2c/i2c-core-slave

Re: linux-next: manual merge of the tip tree with the vfs tree

2018-06-21 Thread Thomas Gleixner
On Thu, 21 Jun 2018, Reinette Chatre wrote: > I am the contributor of the pseudo-locking related code that caused the > conflict. > > Stephen, thank you very much for proceeding with the merge and fixing it > up. I copied your later fix addition to this email and combined they > look good. I did s

[PATCH v4] tpm: Return the actual size when receiving an unsupported command

2018-06-21 Thread Ricardo Schwarzmeier
The userpace expects to read the number of bytes stated in the header. Returning the size of the buffer instead would be unexpected. Fixes: 095531f891e6 ("tpm: return a TPM_RC_COMMAND_CODE response if command is not implemented") Signed-off-by: Ricardo Schwarzmeier --- drivers/char/tpm/tpm-inte

Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Naoya Horiguchi
On Thu, Jun 21, 2018 at 11:12:01PM -0700, Dan Williams wrote: > On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi > wrote: > > Reading /proc/kpageflags for pfns allocated by pmem namespace triggers > > kernel panic with a message like "BUG: unable to handle kernel paging > > request at fff

Re: [PATCH 2/4] lib/rhashtable: guarantee initial hashtable allocation

2018-06-21 Thread Herbert Xu
On Thu, Jun 21, 2018 at 02:28:23PM -0700, Davidlohr Bueso wrote: > rhashtable_init() may fail due to -ENOMEM, thus making the > entire api unusable. This patch removes this scenario, > however unlikely. In order to guarantee memory allocation, > this patch always ends up doing GFP_KERNEL|__GFP_NOFA

Re: [PATCH v2 0/4] have the vt console preserve unicode characters

2018-06-21 Thread Samuel Thibault
Adam Borowski, le ven. 22 juin 2018 03:54:45 +0200, a ecrit: > if the former, this is my way to show you how actual Latin letters > look like, without a lengthy description of letter shapes. :) ) What will unfortunately not work: braille displays only show one line at a time, so they can't show th

Re: [RESEND PATCH] dt-bindings: input: Add common keyboard document bindings

2018-06-21 Thread Chen Zhong
Hi Dmitry, The other patches in the series to add mediatek pmic keys support are now available in 4.18-rc1, but this patch seems not being merged. git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-input-rtc-v4.18 I have resend the patch, and rebase to 4.18-rc1. Could you help to

[PATCH 1/2] clk: imx6sll: add GPIO LPCGs

2018-06-21 Thread Anson Huang
According to Reference Manual Rev.0, 06/2017, there are GPIO LPCGs defined in CCM CCGRs, add them into clock tree. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx6sll.c | 6 ++ include/dt-bindings/clock/imx6sll-clock.h | 9 - 2 files changed, 14 insertions(+), 1 de

[PATCH 2/2] ARM: dts: imx6sll: add gpio clocks

2018-06-21 Thread Anson Huang
i.MX6SLL has GPIO clock gates in CCM CCGR, add clock property for GPIO driver to make sure all GPIO banks work as expected. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx6sll.dtsi b/arch/arm/boot/dts/i

Re: [PATCH v2] m68knommu: Fix typos in Coldfire 5272 DMA debug code

2018-06-21 Thread Geert Uytterhoeven
Hi Greg, On Fri, Jun 22, 2018 at 2:20 AM Greg Ungerer wrote: > On 22/06/18 06:30, Geert Uytterhoeven wrote: > > If DEBUG_DMA is defined: > > > > include/asm/dma.h: In function ‘set_dma_mode’: > > include/asm/dma.h:393: error: ‘dmabp’ undeclared (first use in this > > function) > >

Re: [PATCH 1/4] lib/rhashtable: simplify bucket_table_alloc()

2018-06-21 Thread Davidlohr Bueso
On Fri, 22 Jun 2018, NeilBrown wrote: On Thu, Jun 21 2018, Davidlohr Bueso wrote: As of ce91f6ee5 (mm: kvmalloc does not fallback to vmalloc for incompatible gfp flag), we can simplify the caller and trust kvzalloc() to just do the right thing. Hi, it isn't clear to me that this is true. Wi

[PATCH 1/2] usb: gadget: composite: fix delayed_status race condition when set_interface

2018-06-21 Thread Chunfeng Yun
It happens when enable debug log, if set_alt() returns USB_GADGET_DELAYED_STATUS and usb_composite_setup_continue() is called before increasing count of @delayed_status, so fix it by using spinlock of @cdev->lock. Signed-off-by: Chunfeng Yun Tested-by: Jay Hsu --- drivers/usb/gadget/composite.c

Re: [PATCH V2] i2c: ocores: update HDL sources URL

2018-06-21 Thread Peter Korsgaard
> "Wolfram" == Wolfram Sang writes: > On Mon, May 28, 2018 at 10:59:14AM +0200, Federico Vaga wrote: >> The URL is broken. This patch fix it >> >> Signed-off-by: Federico Vaga > Shortened the URL a bit and applied to for-current, thanks! > @Peter: since the patch is trivial and nice

[PATCH] ARM: dts: imx6sll-evk: make pfuze100 sw4 always on

2018-06-21 Thread Anson Huang
On i.MX6SLL EVK board, PFuze100's SW4 is supplying LPDDR3, it needs to be always on. This patch fixes Linux kernel boot up hang caused by SW4 being turned off: [1.693613] cfg80211: failed to load regulatory.db [1.700063] SW4: disabling [1.703973] SWBST: disabling Signed-off-by: Anson

Re: [PATCH] rcu: Refactor rcu_{nmi,irq}_{enter,exit}()

2018-06-21 Thread Byungchul Park
On Fri, Jun 22, 2018 at 03:12:06PM +0900, Byungchul Park wrote: > When passing through irq or NMI contexts, the current code uses > ->dynticks_nmi_nesting to detect if it's in the ourmost at the moment. > > Here, the thing is that all the related functions, rcu_irq_enter(), > rcu_nmi_enter(), rcu_

[RESEND PATCH] dt-bindings: input: Add common keyboard document bindings

2018-06-21 Thread Chen Zhong
This patch adds the device tree binding documentation for common keyboard. Acked-by: Rob Herring Acked-by: Dmitry Torokhov Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/input/keys.txt | 8 1 file changed, 8 insertions(+) create mode 100644 Documentation/devicetree/b

Re: [PATCH v5 0/7] add virt-dma support for imx-sdma

2018-06-21 Thread Sascha Hauer
On Wed, Jun 20, 2018 at 12:56:57AM +0800, Robin Gong wrote: > Robin Gong (6): > tty: serial: imx: correct dma cookie status > dmaengine: imx-sdma: add virt-dma support > dmaengine: imx-sdma: remove useless 'lock' and 'enabled' in 'struct > sdma_channel' > dmaengine: imx-sdma: remove the

Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Dan Williams
On Thu, Jun 21, 2018 at 11:12 PM, Dan Williams wrote: > On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi > wrote: >> Reading /proc/kpageflags for pfns allocated by pmem namespace triggers >> kernel panic with a message like "BUG: unable to handle kernel paging >> request at fffe". >>

Re: linux-next: manual merge of the tip tree with the vfs tree

2018-06-21 Thread Reinette Chatre
All, On 6/21/2018 6:53 PM, Stephen Rothwell wrote: > Today's linux-next merge of the tip tree got a conflict in: > > arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > > between commit: > > 58e4e43911f8 ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") > > from the vfs tree and commit: > >

Re: [PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Dan Williams
On Thu, Jun 21, 2018 at 11:08 PM, Naoya Horiguchi wrote: > Reading /proc/kpageflags for pfns allocated by pmem namespace triggers > kernel panic with a message like "BUG: unable to handle kernel paging > request at fffe". > > The first few pages (controlled by altmap passed to memmap_i

[PATCH] rcu: Refactor rcu_{nmi,irq}_{enter,exit}()

2018-06-21 Thread Byungchul Park
When passing through irq or NMI contexts, the current code uses ->dynticks_nmi_nesting to detect if it's in the ourmost at the moment. Here, the thing is that all the related functions, rcu_irq_enter(), rcu_nmi_enter(), rcu_irq_exit() and rcu_nmi_exit() are carrying out the check within each under

Re: [PATCH] arm: dts: qcom: Fix 'interrupts = <>' property to use proper macros

2018-06-21 Thread Abhishek Sahu
On 2018-06-20 14:53, Sricharan R wrote: Fix all nodes to use proper GIC_* macros for the interrupt type and the interrupt trigger settings to avoid the boot warnings. Thanks Sricharan for fixing these warnings. Applied over 4.18 rc1 and tested in IPQ8064 AP148 board. No backtraces are comin

[PATCH v1] mm: initialize struct page for reserved pages in ZONE_DEVICE

2018-06-21 Thread Naoya Horiguchi
Reading /proc/kpageflags for pfns allocated by pmem namespace triggers kernel panic with a message like "BUG: unable to handle kernel paging request at fffe". The first few pages (controlled by altmap passed to memmap_init_zone()) in the ZONE_DEVICE can skip struct page initialization,

Re: [PATCH 1/4] lib/rhashtable: simplify bucket_table_alloc()

2018-06-21 Thread NeilBrown
On Thu, Jun 21 2018, Davidlohr Bueso wrote: > As of ce91f6ee5 (mm: kvmalloc does not fallback to vmalloc for incompatible > gfp flag), > we can simplify the caller and trust kvzalloc() to just do the right thing. Hi, it isn't clear to me that this is true. With this change we lose __GFP_NOWARN

Re: [PATCH v7 00/16] tracing: probeevent: Improve fetcharg features

2018-06-21 Thread Masami Hiramatsu
Hi Steve, On Thu, 21 Jun 2018 16:16:48 -0400 Steven Rostedt wrote: > Hi Masami, > > Are you going to post another version of this patch set? No, this is the latest one which I sent to LKML. Oops, it was 2 month ago now... Thank you, > > -- Steve > > > On Wed, 25 Apr 2018 21:16:06 +0900 >

Re: [RFC PATCH 1/2] spi: Add QuadSPI driver for Atmel SAMA5D2

2018-06-21 Thread Piotr Bugalski
Hi Boris, I'm a bit allergic to personal preferences in coding style, anyway thank you for comments and some important findings. On Thu, 21 Jun 2018, Boris Brezillon wrote: Hi Piotr, On Mon, 18 Jun 2018 18:21:23 +0200 Piotr Bugalski wrote: Kernel contains QSPI driver strongly tied to MTD

Re: [RFC 2/2] rcu: Remove ->dynticks_nmi_nesting from struct rcu_dynticks

2018-06-21 Thread Joel Fernandes
Hi Paul, On Wed, Jun 20, 2018 at 09:49:02AM -0700, Paul E. McKenney wrote: > On Thu, Jun 21, 2018 at 01:05:22AM +0900, Byungchul Park wrote: > > On Wed, Jun 20, 2018 at 11:58 PM, Paul E. McKenney > > wrote: > > > On Wed, Jun 20, 2018 at 05:47:20PM +0900, Byungchul Park wrote: > > >> Hello folks,

Re: [PATCH v2 1/3] dt-bindings: thermal: Add binding document for SR thermal

2018-06-21 Thread Srinath Mannam
Hi Rob, Please find my comments for the reason to have multiple DT nodes. On Thu, Jun 21, 2018 at 1:22 AM, Rob Herring wrote: > On Mon, Jun 18, 2018 at 02:01:17PM +0530, Srinath Mannam wrote: >> From: Pramod Kumar >> >> Add binding document for supported thermal implementation >> in Stingray. >

[PATCH] ARM: imx: enable bus auto clock gating function for i.mx6sll

2018-06-21 Thread Anson Huang
i.MX6SLL has HW bus auto clock gating function, enable it by default to save VDD_SOC_IN power, about 5% ~ 20% saved depends on different use cases. Signed-off-by: Anson Huang --- arch/arm/mach-imx/pm-imx6.c | 11 +-- include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | 3 +++ 2

[RFC PATCH 02/14] fsi: Move code around to avoid forward declaration

2018-06-21 Thread Benjamin Herrenschmidt
Move fsi_slave_set_smode() and its helpers to before it's first user and remove the corresponding forward declaration. Signed-off-by: Benjamin Herrenschmidt --- drivers/fsi/fsi-core.c | 94 +- 1 file changed, 46 insertions(+), 48 deletions(-) diff --git a

Re: [PATCH] devres: Add devm_of_iomap()

2018-06-21 Thread Greg Kroah-Hartman
On Fri, Jun 22, 2018 at 02:13:15PM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2018-06-14 at 13:31 +1000, Benjamin Herrenschmidt wrote: > > There are still quite a few cases where a device might want > > to get to a different node of the device-tree, obtain the > > resources and map them. > > >

Re: [PATCH v2] PCI: controller: Move PCI_DOMAINS selection to arch Kconfig

2018-06-21 Thread Scott Branden
On 18-06-21 09:54 AM, Lorenzo Pieralisi wrote: On Wed, Jun 20, 2018 at 10:07:33AM +0200, Jan Kiszka wrote: On 2018-06-19 13:21, Lorenzo Pieralisi wrote: Commit 51bc085d6454 ("PCI: Improve host drivers compile test coverage") added configuration options to allow PCI host controller drivers to

linux-next: Tree for Jun 22

2018-06-21 Thread Stephen Rothwell
Hi all, Changes since 20180621: New tree: fsi The tip tree gained a conflict against the vfs tree. The rcu tree gained a conflict against the tip tree. Non-merge commits (relative to Linus' tree): 1714 1747 files changed, 55739 insertions(+), 30108 dele

RE: [PATCH v2] panic: move bust_spinlocks(0) after console_flush_on_panic() to avoid deadlocks

2018-06-21 Thread Hoeun Ryu
+CC sergey.senozhatsky.w...@gmail.com pmla...@suse.com Please review this patch. > -Original Message- > From: Hoeun Ryu [mailto:hoeun@lge.com.com] > Sent: Tuesday, June 05, 2018 11:19 AM > To: Andrew Morton ; Kees Cook > ; Andi Kleen ; Borislav Petkov > ; Thomas Gleixner ; Steven Rost

[RFC PATCH 01/14] devres: Add devm_of_iomap()

2018-06-21 Thread Benjamin Herrenschmidt
There are still quite a few cases where a device might want to get to a different node of the device-tree, obtain the resources and map them. We have of_iomap() and of_io_request_and_map() but they both have shortcomings, such as not returning the size of the resource found (which can be useful) a

[RFC PATCH 00/14] fsi: Fixes and Coldfire coprocessor offload

2018-06-21 Thread Benjamin Herrenschmidt
This series implements support for offloading the FSI protocol bitbanging to the ColdFire secondary core of the Aspeed SoCs. The result increases FSI performance by a factor of 4, and on systems that don't support async FSI clock, provide much more regular and continuous clocking which helps reliab

Re: [PATCH] devres: Add devm_of_iomap()

2018-06-21 Thread Benjamin Herrenschmidt
On Thu, 2018-06-14 at 13:31 +1000, Benjamin Herrenschmidt wrote: > There are still quite a few cases where a device might want > to get to a different node of the device-tree, obtain the > resources and map them. > > This is generally open coded in drivers which is quite error prone > > We have o

[PATCH -mm -v4 03/21] mm, THP, swap: Support PMD swap mapping in swap_duplicate()

2018-06-21 Thread Huang, Ying
From: Huang Ying To support to swapin the THP as a whole, 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

[PATCH -mm -v4 06/21] mm, THP, swap: Support PMD swap mapping when splitting huge PMD

2018-06-21 Thread Huang, Ying
From: 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 cou

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

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

[PATCH -mm -v4 09/21] mm, THP, swap: Swapin a THP as a whole

2018-06-21 Thread Huang, Ying
From: Huang Ying With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP as a whole. 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

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

2018-06-21 Thread Huang, Ying
From: Huang Ying To swapin a THP as a whole, 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 tr

[PATCH -mm -v4 07/21] mm, THP, swap: Support PMD swap mapping in split_swap_cluster()

2018-06-21 Thread Huang, Ying
From: 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

[PATCH -mm -v4 17/21] mm, THP, swap: Support PMD swap mapping for MADV_WILLNEED

2018-06-21 Thread Huang, Ying
From: 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. Shut

[PATCH -mm -v4 14/21] mm, cgroup, THP, swap: Support to move swap account for PMD swap mapping

2018-06-21 Thread Huang, Ying
From: Huang Ying Previously the huge swap cluster will be split after the THP is swapout. Now, to support to swapin the THP as a whole, 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 t

[PATCH -mm -v4 12/21] mm, THP, swap: Support PMD swap mapping in swapoff

2018-06-21 Thread Huang, Ying
From: 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

[PATCH -mm -v4 21/21] mm, THP: Avoid to split THP when reclaim MADV_FREE THP

2018-06-21 Thread Huang, Ying
From: Huang Ying Previously, to reclaim MADV_FREE THP, the THP will be split firstly, then reclaim each sub-pages. This wastes cycles to split THP and unmap and free each sub-pages, and split THP even if it has been written since MADV_FREE. We have to do this because MADV_FREE THP reclaiming sh

[PATCH -mm -v4 19/21] mm, THP, swap: Support PMD swap mapping in common path

2018-06-21 Thread Huang, Ying
From: 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:

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

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

[PATCH -mm -v4 18/21] mm, THP, swap: Support PMD swap mapping in mincore()

2018-06-21 Thread Huang, Ying
From: 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: Mich

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

2018-06-21 Thread Huang, Ying
From: 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 befor

[PATCH -mm -v4 16/21] mm, THP, swap: Free PMD swap mapping when zap_huge_pmd()

2018-06-21 Thread Huang, Ying
From: 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

[PATCH -mm -v4 15/21] mm, THP, swap: Support to copy PMD swap mapping when fork()

2018-06-21 Thread Huang, Ying
From: 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.

[PATCH -mm -v4 13/21] mm, THP, swap: Support PMD swap mapping in madvise_free()

2018-06-21 Thread Huang, Ying
From: 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 decreas

[PATCH -mm -v4 05/21] mm, THP, swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-06-21 Thread Huang, Ying
From: 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

[PATCH -mm -v4 01/21] mm, THP, swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-06-21 Thread Huang, Ying
From: Huang Ying Previously, the PMD swap operations are only enabled for CONFIG_ARCH_ENABLE_THP_MIGRATION. Because they are only used by the THP migration support. We will support PMD swap mapping to the huge swap cluster and swapin the THP as a whole. That will be enabled via CONFIG_THP_SWAP

[PATCH -mm -v4 04/21] mm, THP, swap: Support PMD swap mapping in swapcache_free_cluster()

2018-06-21 Thread Huang, Ying
From: 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 swapcache_free_cluster(), the huge swap cluster will be split. Now, during swapout, the PMD page mapping wil

[PATCH -mm -v4 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP

2018-06-21 Thread Huang, Ying
From: Huang Ying It's unreasonable to optimize swapping for THP without basic swapping support. And this will cause build errors when THP_SWAP functions are defined in swapfile.c and called elsewhere. The comments are fixed too to reflect the latest progress. Signed-off-by: "Huang, Ying" Cc:

[PATCH -mm -v4 00/21] mm, THP, swap: Swapout/swapin THP in one piece

2018-06-21 Thread Huang, Ying
From: 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], [

Re: [PATCH 2/3] perf script: Fix crash because of missing evsel->priv

2018-06-21 Thread Ravi Bangoria
Hi Arnaldo, On 06/20/2018 07:22 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Jun 20, 2018 at 07:00:29PM +0530, Ravi Bangoria escreveu: >> perf script in pipped mode is crashing because evsel->priv is not >> set properly. Fix it. >> >> Before: >> # ./perf record -o - -- ls | ./perf script >>

[PATCH 3/7] pinctrl: mt7622: fix that pinctrl_claim_hogs cannot work

2018-06-21 Thread sean.wang
From: Sean Wang To allow claiming hogs by pinctrl, we cannot enable pinctrl until all groups and functions are being added done. Also, it's necessary that the corresponding gpiochip is being added when the pinctrl device is enabled. Cc: sta...@vger.kernel.org Fixes: d6ed93551320 ("pinctrl: media

[PATCH 4/7] pinctrl: mt7622: stop using the deprecated pinctrl_add_gpio_range

2018-06-21 Thread sean.wang
From: Sean Wang If the pinctrl node has the gpio-ranges property, the range will be added by the gpio core and doesn't need to be added by the pinctrl driver. But for keeping backward compatibility, an explicit pinctrl_add_gpio_range is still needed to be called when there is a missing gpio-rang

[PATCH 1/7] pinctrl: mt7622: fix error path on failing at groups building

2018-06-21 Thread sean.wang
From: Sean Wang It should be to return an error code when failing at groups building. Cc: sta...@vger.kernel.org Fixes: d6ed93551320 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC") Signed-off-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 +- 1 file changed, 1 inserti

[PATCH 7/7] arm64: dts: mt7622: add earlycon to mt7622-rfb1 board

2018-06-21 Thread sean.wang
From: Sean Wang Add earlycon to mt7622-rfb1 as to know what was going on when a certain fault is happening at the early initialization stage. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64

[PATCH 6/7] arm64: dts: mt7622: use gpio-ranges to pinctrl device

2018-06-21 Thread sean.wang
From: Sean Wang Using gpio-ranges property represent which GPIOs correspond to which pins on MT7622 pin controllers. For details, we can see section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt to know how to bind pinctrl and gpio drivers via the "gpio-ranges" property. Signed-off-by:

[PATCH 5/7] pinctrl: mt7622: fix a kernel panic when gpio-hog is being applied

2018-06-21 Thread sean.wang
From: Sean Wang When we are explicitly using GPIO hogging mechanism in the pinctrl node, such as: &pio { line_input { gpio-hog; gpios = <95 0>, <96 0>, <97 0>; input; }; }; A

[PATCH 2/7] pinctrl: mt7622: fix initialization sequence between eint and gpiochip

2018-06-21 Thread sean.wang
From: Sean Wang Because gpichip applied in the driver must depend on mtk eint to implement the input data debouncing and the translation between gpio and irq, it's better to keep logic consistent with mtk eint being built prior to gpiochip being added. Cc: sta...@vger.kernel.org Fixes: e6dabd38d

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-06-21 Thread Paul E. McKenney
On Thu, Jun 21, 2018 at 08:04:22PM +0200, Peter Zijlstra wrote: > On Thu, Jun 21, 2018 at 01:27:12PM -0400, Alan Stern wrote: > > More than one kernel developer has expressed the opinion that the LKMM > > should enforce ordering of writes by release-acquire chains and by > > locking. In other word

Re: [PATCH v2 3/4] ima: Use tpm_chip_find() and access TPM functions using it

2018-06-21 Thread Jason Gunthorpe
On Thu, Jun 21, 2018 at 04:59:55PM -0400, Stefan Berger wrote: > On 06/21/2018 04:53 PM, Mimi Zohar wrote: > >On Wed, 2018-06-20 at 16:42 -0400, Stefan Berger wrote: > >>Rather than accessing the TPM functions using a NULL pointer, which > >>causes a lookup for a suitable chip every time, get a hol

[PATCH 0/3] k3dma: add support to reserved channels

2018-06-21 Thread Guodong Xu
This patchset fixes bug people found on hikey960 when allocating DMA channels to peripherals such as SPI. It fails because the channel is reserved, and is not accessible by kernel. Patch 1 and 2 add support to reserved channels for K3 DMA. Patch 3 includes a removal of axi_config who controls DMA

[PATCH 3/3] k3dma: delete axi_config

2018-06-21 Thread Guodong Xu
From: Li Yu Axi_config controls whether DMA resources can be accessed in non-secure mode, such as linux kernel. The setting is actually done in bootloader stage. This patch removes axi_config from k3dma driver. Signed-off-by: Li Yu Signed-off-by: Guodong Xu --- drivers/dma/k3dma.c | 3 --- 1

[PATCH 2/3] k3dma: add support to reserved minimum channels

2018-06-21 Thread Guodong Xu
From: Li Yu On k3 series of SoC, DMA controller reserves some channels for other on-chip coprocessors. By adding support to dma_min_chan, kernel will not be able to use these reserved channels. One example is on Hi3660 platform, channel 0 is reserved to lpm3. Please also refer to Documentation/

[PATCH 1/3] dt-bindings: k3dma: add optional property dma_min_chan

2018-06-21 Thread Guodong Xu
From: Li Yu Add optional property dma_min_chan for k3dma. Signed-off-by: Li Yu --- Documentation/devicetree/bindings/dma/k3dma.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b/Documentation/devicetree/bindings/dma/k3dma.txt index

Re: linux-next: Please add the fsi tree

2018-06-21 Thread Stephen Rothwell
Hi Ben, On Fri, 22 Jun 2018 11:53:50 +1000 Benjamin Herrenschmidt wrote: > > Please add the fsi tree at > > https://git.kernel.org/pub/scm/linux/kernel/git/benh/linux-fsi.git (master) > > To linux-next. It contains the changes that I will send to Greg KH to the FSI > subsystem used by the serv

[PATCH] Fix for clk disable issue on imx6ul

2018-06-21 Thread Chakra Divi
isiot engicam board is not booting after the commit cf091ee994ec266e33c3a305d6fc8c5ccb1f8acd done by . Modified the commit to support imx6ul based SOMs too along with imx6ull processors Signed-off-by: Chakra Divi --- drivers/clk/imx/clk-imx6ul.c | 6 -- 1 file changed, 4 insertions(+), 2 del

Re: [RFC 2/2] rcu: Remove ->dynticks_nmi_nesting from struct rcu_dynticks

2018-06-21 Thread Byungchul Park
On Thu, Jun 21, 2018 at 08:04:07AM -0700, Paul E. McKenney wrote: > Nothing quite like concurrent programming to help one see one's own > mistakes. ;-) Haha. > Your reasoning has merit, but the nice thing about keeping "nmi" is > that it helps casual readers see that NMIs must be handled. If w

Re: [PATCH 3/3][RFC] tools: create power/crypto utility

2018-06-21 Thread Eric Biggers
Hi Yu, On Fri, Jun 22, 2018 at 10:39:13AM +0800, Yu Chen wrote: > Hi Eric, > On Wed, Jun 20, 2018 at 10:41:42AM -0700, Eric Biggers wrote: > > Hi Chen, > > > > On Wed, Jun 20, 2018 at 05:40:51PM +0800, Chen Yu wrote: > > > crypto_hibernate is a user-space utility to generate > > > 512bits AES key

pi433: initialization of tx config in pi433_open()

2018-06-21 Thread Hugo Lefeuvre
Hi Marcus, I'm currently working on the following TODO: 966 /* setup instance data*/ 967 instance->device = device; 968 instance->tx_cfg.bit_rate = 4711; 969 // TODO: fill instance->tx_cfg; If a user calls write() right after open()-ing an instance, the driver

Re: [PATCH 4/4] perf stat: Add transaction flag (-T) support for s390

2018-06-21 Thread Andi Kleen
Thomas Richter writes: > > + /* Handle -T as -M transaction. Once platform specific metrics > + * support has been added to the json files, all archiectures > + * will use this approach. > + */ > + if (!strcmp(perf_env__arch(NULL), "

Re: [PATCH 3/3][RFC] tools: create power/crypto utility

2018-06-21 Thread Yu Chen
Hi Eric, On Wed, Jun 20, 2018 at 10:41:42AM -0700, Eric Biggers wrote: > Hi Chen, > > On Wed, Jun 20, 2018 at 05:40:51PM +0800, Chen Yu wrote: > > crypto_hibernate is a user-space utility to generate > > 512bits AES key and pass it to the kernel via ioctl > > for hibernation encryption.(We can als

[PATCH v3 1/2] HID: i2c-hid: Use devm to allocate i2c_hid struct

2018-06-21 Thread Stephen Boyd
Use devm here to save some lines and prepare for bulk regulator usage in this driver. Otherwise, when we devm bulk get regulators we'll free the containing i2c_hid structure and try to put regulator pointers from freed memory. Cc: Benjamin Tissoires Cc: Hans de Goede Cc: Andy Shevchenko Cc: Dmi

[PATCH v3 0/2] Add another regulator to i2c-hid

2018-06-21 Thread Stephen Boyd
The wacom w9013 device has two supplies that need to be turned on and in some cases these come from two different power supplies. This patch series supports that case. Changes from v1: * Use the bulk regulator APIs instead of open coding it (Dmitry) Changes from v2: * Split out devm for allocat

[PATCH v3 2/2] HID: i2c-hid: Add vddl regulator control

2018-06-21 Thread Stephen Boyd
Some wacom w9013 devices have a vddl supply for "low valtage" requirements. Add support in this driver to turn on this low voltage supply. We can also drop a handful of error messages because the regulator core is already printing an error when bulk regulators fail to enable or disable. Cc: Benjam

linux-next: manual merge of the rcu tree with the tip tree

2018-06-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rcu tree got a conflict in: kernel/rcu/tree_plugin.h between commit: b3dae109fa89 ("sched/swait: Rename to exclusive") from the tip tree and commit: 57ada0a7f942 ("rcu: Convert grace-period requests to ->gp_seq") from the rcu tree. I fixed it up

Re: [PATCH v3 0/7] x86/ptrace: regset access to the GDT and LDT

2018-06-21 Thread hpa
On June 21, 2018 6:58:51 PM PDT, Ingo Molnar wrote: > >* H. Peter Anvin, Intel wrote: > >> From: "H. Peter Anvin" >> >> Give a debugger access to the visible part of the GDT and LDT. This >> allows a debugger to find out what a particular segment descriptor >> corresponds to; e.g. if %cs is 16

[tip:locking/urgent] locking/qspinlock: Fix build for anonymous union in older GCC compilers

2018-06-21 Thread tip-bot for Steven Rostedt (VMware)
Commit-ID: 6cc65be4f6f2a7186af8f3e09900787c7912dad2 Gitweb: https://git.kernel.org/tip/6cc65be4f6f2a7186af8f3e09900787c7912dad2 Author: Steven Rostedt (VMware) AuthorDate: Thu, 21 Jun 2018 20:35:26 -0400 Committer: Ingo Molnar CommitDate: Fri, 22 Jun 2018 04:19:16 +0200 locking/qspinlo

[PATCH -next] ASoC: rt5682: use devm_snd_soc_register_component()

2018-06-21 Thread Wei Yongjun
Using devm_snd_soc_register_component() and drop all of the code related to .remove hook. Signed-off-by: Wei Yongjun --- sound/soc/codecs/rt5682.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 61a9730..

[PATCH -next] ASoC: rt1305: use devm_snd_soc_register_component()

2018-06-21 Thread Wei Yongjun
Using devm_snd_soc_register_component() and drop all of the code related to .remove hook. Signed-off-by: Wei Yongjun --- sound/soc/codecs/rt1305.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/rt1305.c b/sound/soc/codecs/rt1305.c index 421b8fb..

Re: [RESEND PATCH v5 2/2] sched/deadline: Set cp->elements[0].cpu to -1 when the heap is empty

2018-06-21 Thread Byungchul Park
On Thu, Jun 21, 2018 at 03:04:52PM -0400, Steven Rostedt wrote: > On Mon, 18 Jun 2018 13:58:25 +0900 > Byungchul Park wrote: > > > Hello Steven and Daniel, > > > > I've changed the 2nd patch a little bit to consider cpudl_clear() > > additionally. Can I keep your Acked-by on? > > Actually, I th

Re: [PATCH 0/3][RFC] Introduce the in-kernel hibernation encryption

2018-06-21 Thread Yu Chen
Hi, On Thu, Jun 21, 2018 at 09:14:43PM +0200, Pavel Machek wrote: > On Thu 2018-06-21 14:08:40, Rafael J. Wysocki wrote: > > On Thu, Jun 21, 2018 at 10:53 AM, Pavel Machek wrote: > > > Hi! > > > > > >> As security becomes more and more important, we add the in-kernel > > >> encryption support for

Re: fpga: fpga_mgr_get() buggy ?

2018-06-21 Thread Alan Tull
On Thu, Jun 21, 2018 at 8:13 AM, Federico Vaga wrote: Hi Federico, Thanks for the analysis. I'll probably not be able to look into this very much until next week. A few notes below. > Hello, > > I believe that this patch > > fpga: manager: change api, don't use drvdata > 7085e2a94f7df5f419e3c

Re: [PATCH v4 12/12] mfd: cros_ec: Add throttler sub-device

2018-06-21 Thread Brian Norris
On Wed, Jun 20, 2018 at 06:52:37PM -0700, Matthias Kaehlcke wrote: > Instantiate the CrOS EC throttler if it is enabled in the kernel > configuration. > > Signed-off-by: Matthias Kaehlcke Reviewed-by: Brian Norris > --- > Changes in v4: > - register throttler in cros_ec_dev.c instead of cros_e

Re: [PATCH] locking/qspinlock: Fix build for anonymous union in older gcc compilers

2018-06-21 Thread Waiman Long
On 06/22/2018 08:35 AM, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > One of my tests compiles the kernel with gcc 4.5.3, and I hit the > following build error: > > /work/git/linux-trace.git/include/linux/semaphore.h: In function 'sema_init': > /work/git/linux-trace.git/include/linux/s

Re: rf69_set_deviation in rf69.c (pi433 driver)

2018-06-21 Thread Hugo Lefeuvre
Hi Marcus, > > According to the datasheet[0], the deviation should always be smaller > > than 300kHz, and the following equation should be respected: > > > > (1) FDA + BRF/2 =< 500 kHz > > > > Why did you choose 500kHz as max for FDA, instead of 300kHz ? It looks like > > a bug to me. > > My

Re: [PATCH v4 10/12] misc: throttler: Add core support for non-thermal throttling

2018-06-21 Thread Brian Norris
Hi, A few more things I noticed; probably my last thoughts on this particular patch; and I think I reviewed the rest: On Wed, Jun 20, 2018 at 06:52:35PM -0700, Matthias Kaehlcke wrote: > The purpose of the throttler is to provide support for non-thermal > throttling. Throttling is triggered by ex

Re: [PATCH v3 0/7] x86/ptrace: regset access to the GDT and LDT

2018-06-21 Thread Ingo Molnar
* H. Peter Anvin, Intel wrote: > From: "H. Peter Anvin" > > Give a debugger access to the visible part of the GDT and LDT. This > allows a debugger to find out what a particular segment descriptor > corresponds to; e.g. if %cs is 16, 32, or 64 bits. > > v3: > Requalify LDT segments fo

Re: linux-next: manual merge of the tip tree with the vfs tree

2018-06-21 Thread Stephen Rothwell
Hi all, On Fri, 22 Jun 2018 11:53:46 +1000 Stephen Rothwell wrote: > > diff --cc arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > index 38a54f56ff40,7b4a09d81a30.. > --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > @@@ -1270,9 -1861,16 +1842

Re: [PATCH v2 0/4] have the vt console preserve unicode characters

2018-06-21 Thread Adam Borowski
On Wed, Jun 20, 2018 at 10:21:37PM -0400, Dave Mielke wrote: > [quoted lines by Adam Borowski on 2018/06/21 at 03:43 +0200] > > >It's meant for displaying braille to _sighted_ people. And in real world, > >the main [ab]use is a way to show images that won't get corrupted by > >proportional fonts.

linux-next: manual merge of the tip tree with the vfs tree

2018-06-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/kernel/cpu/intel_rdt_rdtgroup.c between commit: 58e4e43911f8 ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") from the vfs tree and commit: a3dbd01e6c9d ("x86/intel_rdt: Create character device exposing

linux-next: Please add the fsi tree

2018-06-21 Thread Benjamin Herrenschmidt
Hi Stephen ! Please add the fsi tree at https://git.kernel.org/pub/scm/linux/kernel/git/benh/linux-fsi.git (master) To linux-next. It contains the changes that I will send to Greg KH to the FSI subsystem used by the service processor to communicate with IBM Power chips (and eventually S390 as we

  1   2   3   4   5   6   7   >