Re: [PATCH v6 7/7] tpm: pass an array of tpm_bank_list structures to tpm_pcr_extend()

2018-12-13 Thread Jarkko Sakkinen
On Thu, Dec 13, 2018 at 08:57:17AM +0100, Roberto Sassu wrote: > > 1. The function does not fail if alg_id is not found. This will go > > silent. > > It is intentional. If alg_id is not found, the PCR is extended with the > first digest passed by the caller of tpm_pcr_extend(). If no digest

Re: [PATCH v2] Allow hwrng to initialize crng.

2018-12-13 Thread Jarkko Sakkinen
On Thu, Dec 13, 2018 at 05:18:48PM +0800, Louis Collard wrote: > Some systems, for example embedded systems, do not generate > enough entropy on boot through interrupts, and boot may be blocked for > several minutes waiting for a call to getrandom to complete. > > Currently, random data is read

[RESEND PATCH] kvm: svm: remove unused struct definition

2018-12-13 Thread Peng Hao
structure svm_init_data is never used. So remove it. Signed-off-by: Peng Hao --- arch/x86/kvm/svm.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 61ccfb1..5c7dc8b 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -675,11 +675,6

Re: [PATCH v2] f2fs: fix sbi->extent_list corruption issue

2018-12-13 Thread Sahitya Tummala
On Wed, Dec 12, 2018 at 11:36:08AM +0800, Chao Yu wrote: > On 2018/12/12 11:17, Sahitya Tummala wrote: > > On Fri, Dec 07, 2018 at 05:47:31PM +0800, Chao Yu wrote: > >> On 2018/12/1 4:33, Jaegeuk Kim wrote: > >>> On 11/29, Sahitya Tummala wrote: > > On Tue, Nov 27, 2018 at 09:42:39AM

[PATCH] pinctrl: xway: fix gpio-hog related boot issues

2018-12-13 Thread Martin Schiller
This patch is based on commit a86caa9ba5d7 ("pinctrl: msm: fix gpio-hog related boot issues"). It fixes the issue that the gpio ranges needs to be defined before gpiochip_add(). Therefore, we also have to swap the order of registering the pinctrl driver and registering the gpio chip. You also

Re: [PATCH] vhost: return EINVAL if iovecs size does not match the message size

2018-12-13 Thread Pavel Tikhomirov
On 12/13/2018 10:55 PM, Michael S. Tsirkin wrote: > On Thu, Dec 13, 2018 at 05:53:50PM +0300, Pavel Tikhomirov wrote: >> We've failed to copy and process vhost_iotlb_msg so let userspace at >> least know about it. For instance before these patch the code below runs >> without any error: >> >> int

[PATCH] mm/page_alloc.c: Allow error injection

2018-12-13 Thread Benjamin Poirier
Model call chain after should_failslab(). Likewise, we can now use a kprobe to override the return value of should_fail_alloc_page() and inject allocation failures into alloc_page*(). Signed-off-by: Benjamin Poirier --- include/asm-generic/error-injection.h | 1 + mm/page_alloc.c

Re: [PATCH V1] mmc: tegra: Fix for SDMMC pads autocal parsing from dt

2018-12-13 Thread Adrian Hunter
On 13/12/18 10:25 PM, Sowjanya Komatineni wrote: > Some of the SDMMC pads auto calibration values parsed from > devicetree are assigned incorrectly. This patch fixes it. > > Signed-off-by: Sowjanya Komatineni Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-tegra.c | 8 > 1

Re: A weird problem of Realtek r8168 after resume from S3

2018-12-13 Thread Heiner Kallweit
On 14.12.2018 04:33, Chris Chiu wrote: > On Thu, Dec 13, 2018 at 10:20 AM Chris Chiu wrote: >> >> Hi, >> We got an acer laptop which has a problem with ethernet networking after >> resuming from S3. The ethernet is popular realtek r8168. The lspci shows as >> follows. >> 02:00.1 Ethernet

Re: [PATCH 00/17] Backport rt/deadline crash and the ardous story of FUTEX_UNLOCK_PI to 4.4

2018-12-13 Thread Henrik Austad
On Fri, Dec 14, 2018 at 08:18:26AM +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 19, 2018 at 12:27:21PM +0100, Henrik Austad wrote: > > On Fri, Nov 09, 2018 at 11:35:31AM +0100, Henrik Austad wrote: > > > On Fri, Nov 09, 2018 at 11:07:28AM +0100, Henrik Austad wrote: > > > > From: Henrik Austad

Re: [PATCH V1] mmc: sdhci: Fix sdhci_do_enable_v4_mode

2018-12-13 Thread Adrian Hunter
On 13/12/18 10:34 PM, Sowjanya Komatineni wrote: > V4_MODE is Bit-15 of SDHCI_HOST_CONTROL2 register. > Need to perform word access to this register. > > Signed-off-by: Sowjanya Komatineni Fixes: b3f80b434f726 ("mmc: sdhci: Add sd host v4 mode") Acked-by: Adrian Hunter > --- >

Re: [PATCH] KVM: MMU: Introduce single thread to zap collapsible sptes

2018-12-13 Thread Wanpeng Li
ping, On Thu, 6 Dec 2018 at 15:58, Wanpeng Li wrote: > > From: Wanpeng Li > > Last year guys from huawei reported that the call of > memory_global_dirty_log_start/stop() > takes 13s for 4T memory and cause guest freeze too long which increases the > unacceptable > migration downtime. [1] [2] >

Re: [PATCH v2] arm64: invalidate TLB just before turning MMU on

2018-12-13 Thread Ard Biesheuvel
On Fri, 14 Dec 2018 at 05:08, Qian Cai wrote: > Also tried to move the local TLB flush part around a bit inside > __cpu_setup(), although it did complete kdump some times, it did trigger > "Synchronous Exception" in EFI after a cold-reboot fairly often that > seems no way to recover remotely

linux-next: Tree for Dec 14

2018-12-13 Thread Stephen Rothwell
Hi all, Changes since 20181213: The dma-mapping tree gained a conflict against the kbuild tree. The rdma tree still had its build failure so I used a supplied patch. The net-next tree gained a conflict against the bpf tree. The drm tree gained a conflict against the drm-fixes tree. The block

Re: [PATCH 00/17] Backport rt/deadline crash and the ardous story of FUTEX_UNLOCK_PI to 4.4

2018-12-13 Thread Greg Kroah-Hartman
On Mon, Nov 19, 2018 at 12:27:21PM +0100, Henrik Austad wrote: > On Fri, Nov 09, 2018 at 11:35:31AM +0100, Henrik Austad wrote: > > On Fri, Nov 09, 2018 at 11:07:28AM +0100, Henrik Austad wrote: > > > From: Henrik Austad > > > > > > Short story: > > > > Sorry for the spam, it looks like I was

Re: [PATCH v2] binder: implement binderfs

2018-12-13 Thread Dan Carpenter
On Thu, Dec 13, 2018 at 10:59:11PM +0100, Christian Brauner wrote: > +/** > + * binderfs_new_inode - allocate inode from super block of a binderfs mount > + * @ref_inode: inode from wich the super block will be taken > + * @userp: buffer to copy information about new device for userspace to >

Re: [PATCH 4.19 051/118] flexfiles: use per-mirror specified stateid for IO

2018-12-13 Thread Greg Kroah-Hartman
On Wed, Dec 12, 2018 at 08:06:14AM +0100, Greg Kroah-Hartman wrote: > On Tue, Dec 11, 2018 at 07:49:27PM +0100, Mkrtchyan, Tigran wrote: > > > > > > Hi Greg, > > > > Thanks for pushing this into sable as well. However, I think patch makes > > more sense > > with

Re: [PATCH 0/6] microblaze: fix various problems in building boot images

2018-12-13 Thread Michal Simek
On 07. 12. 18 12:33, Masahiro Yamada wrote: > This patch set fixes various issues in microblaze Makefiles. > > V2 reflected Michal's comments, and cleaned up a little more. > > I did not add Michals' Acked-by. > If this patch set goes to the MicroBlaze tree, he will add > Signed-off-by anyway. >

Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent

2018-12-13 Thread Oleksandr Andrushchenko
On 12/13/18 5:48 PM, Daniel Vetter wrote: On Thu, Dec 13, 2018 at 12:17:54PM +0200, Oleksandr Andrushchenko wrote: Daniel, could you please comment? Cross-revieweing someone else's stuff would scale better, fair enough I don't think I'll get around to anything before next year. I put you

[PATCH] partitions: fix coding style

2018-12-13 Thread jotun9935
From: Sungkyung Kim Fix coding style of osf.c Signed-off-by: Sungkyung Kim --- block/partitions/osf.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/partitions/osf.c b/block/partitions/osf.c index 4b873973d6c0..96921a1e31ce 100644 ---

Re: [PATCH] ARM: dts: exynos: Specify I2S assigned clocks in proper node

2018-12-13 Thread Greg KH
On Thu, Dec 13, 2018 at 09:56:56PM +0100, Krzysztof Kozlowski wrote: > On Wed, Dec 12, 2018 at 06:57:44PM +0100, Sylwester Nawrocki wrote: > > The assigned parent clocks should be normally specified in the consumer > > device's DT node, this ensures respective driver always sees correct clock > >

Re: [PATCH 2/3] ASoC: xlnx: Add i2s driver

2018-12-13 Thread Michal Simek
Hi Mark, On 13. 12. 18 16:31, Mark Brown wrote: > On Sat, Dec 08, 2018 at 12:02:37AM +0530, Maruthi Srinivas Bayyavarapu wrote: > >> @@ -0,0 +1,185 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Xilinx ASoC I2S audio support >> + * > > This looks otherwise good so I've applied it but

RE: [RFC PATCH v2 08/15] usb:cdns3: Implements device operations part of the API

2018-12-13 Thread Pawel Laszczak
Hi, > >On Wed, Dec 12, 2018 at 3:49 AM Pawel Laszczak wrote: >> >> Hi, >> >> >On 10/12/18 7:42 AM, Peter Chen wrote: >> +static struct usb_ep *cdns3_gadget_match_ep(struct usb_gadget *gadget, >> + struct >> usb_endpoint_descriptor *desc, >>

Re: [PATCH 0/2] of: phandle_cache, fix refcounts, remove stale entry

2018-12-13 Thread Frank Rowand
Hi Michael Bringmann, On 12/13/18 10:42 PM, frowand.l...@gmail.com wrote: > From: Frank Rowand > > Non-overlay dynamic devicetree node removal may leave the node in > the phandle cache. Subsequent calls to of_find_node_by_phandle() > will incorrectly find the stale entry. This bug exposed the

[v4] PCI: imx: make msi work without CONFIG_PCIEPORTBUS=y

2018-12-13 Thread Richard Zhu
Assertion of the MSI Enable bit of RC's MSI CAP is mandatory required to trigger MSI on i.MX6 PCIe. This bit would be asserted when CONFIG_PCIEPORTBUS=y. Thus, the MSI works fine on i.MX6 PCIe before the commit "f3fdfc4". Assert it unconditionally when MSI is enabled. Otherwise, the MSI wouldn't

[PATCH 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-13 Thread frowand . list
From: Frank Rowand Non-overlay dynamic devicetree node removal may leave the node in the phandle cache. Subsequent calls to of_find_node_by_phandle() will incorrectly find the stale entry. Remove the node from the cache. Add paranoia checks in of_find_node_by_phandle() as a second level of

[PATCH 0/2] of: phandle_cache, fix refcounts, remove stale entry

2018-12-13 Thread frowand . list
From: Frank Rowand Non-overlay dynamic devicetree node removal may leave the node in the phandle cache. Subsequent calls to of_find_node_by_phandle() will incorrectly find the stale entry. This bug exposed the foloowing phandle cache refcount bug. The refcount of phandle_cache entries is not

[PATCH 1/2] of: of_node_get()/of_node_put() nodes held in phandle cache

2018-12-13 Thread frowand . list
From: Frank Rowand The phandle cache contains struct device_node pointers. The refcount of the pointers was not incremented while in the cache, allowing use after free error after kfree() of the node. Add the proper increment and decrement of the use count. Fixes: 0b3ce78e90fc ("of: cache

Re: [PATCH V3 6/6] PM / Domains: Propagate performance state updates

2018-12-13 Thread Viresh Kumar
On 13-12-18, 16:53, Ulf Hansson wrote: > On Wed, 12 Dec 2018 at 11:58, Viresh Kumar wrote: > > update_state: > > - return _genpd_set_performance_state(genpd, state); > > + return _genpd_set_performance_state(genpd, state, depth); > > Instead of calling _genpd_set_performance_state()

Re: [v7, PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712

2018-12-13 Thread biao huang
Dear Florian, Thanks for your comments. On Thu, 2018-12-13 at 21:11 -0800, Florian Fainelli wrote: > Le 12/13/18 à 7:01 PM, biao huang a écrit : > > Dear Andrew, > > Thanks for your comments. > > > > On Thu, 2018-12-13 at 13:33 +0100, Andrew Lunn wrote: > >> Hi Biao > >> > >>> + case

[PATCH] mm: remove unused page state adjustment macro

2018-12-13 Thread Wei Yang
These four macro are not used anymore. Just remove them. Signed-off-by: Wei Yang --- include/linux/vmstat.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index f25cef84b41d..2db8d60981fe 100644 --- a/include/linux/vmstat.h +++

[PATCH -V9 05/21] swap: Support PMD swap mapping in put_swap_page()

2018-12-13 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 -V9 18/21] swap: Support PMD swap mapping for MADV_WILLNEED

2018-12-13 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

[PATCH -V9 19/21] swap: Support PMD swap mapping in mincore()

2018-12-13 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:

[PATCH -V9 07/21] swap: Support PMD swap mapping when splitting huge PMD

2018-12-13 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

[PATCH -V9 12/21] swap: Add sysfs interface to configure THP swapin

2018-12-13 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

[PATCH -V9 03/21] swap: Add __swap_duplicate_locked()

2018-12-13 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

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

2018-12-13 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

[PATCH -V9 20/21] swap: Support PMD swap mapping in common path

2018-12-13 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:

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

2018-12-13 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.

[PATCH -V9 15/21] swap: Support to move swap account for PMD swap mapping

2018-12-13 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

[PATCH -V9 17/21] swap: Free PMD swap mapping when zap_huge_pmd()

2018-12-13 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

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

2018-12-13 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

[PATCH -V9 08/21] swap: Support PMD swap mapping in split_swap_cluster()

2018-12-13 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

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

2018-12-13 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

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

2018-12-13 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],

[PATCH -V9 04/21] swap: Support PMD swap mapping in swap_duplicate()

2018-12-13 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

[PATCH -V9 14/21] swap: Support PMD swap mapping in madvise_free()

2018-12-13 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

[PATCH -V9 02/21] swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-12-13 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

[PATCH -V9 13/21] swap: Support PMD swap mapping in swapoff

2018-12-13 Thread Huang Ying
During swapoff, for each PMD swap mapping, we will allocate a THP, read the contents of the huge swap cluster into the THP and change the PMD swap mapping to the PMD page mapping to the THP, then try to free the huge swap cluster. If failed to allocate a THP, the huge swap cluster will be split.

[PATCH -V9 10/21] swap: Swapin a THP in one piece

2018-12-13 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

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

2018-12-13 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

[PATCH -V9 01/21] swap: Deal with PTE mapped THP when unuse PTE

2018-12-13 Thread Huang Ying
A PTE swap entry may map to a normal swap slot inside a huge swap cluster. To free the huge swap cluster and the corresponding THP (transparent huge page), all PTE swap entry mappings need to be unmapped. The original implementation only checks current PTE swap entry mapping, this is fixed via

Re: [PATCH 04/11] staging: iio: adt7316: fix handling of dac high resolution option

2018-12-13 Thread Dan Carpenter
On Thu, Dec 13, 2018 at 03:01:46PM -0700, Jeremy Fertic wrote: > On Wed, Dec 12, 2018 at 11:23:16AM +0300, Dan Carpenter wrote: > > On Tue, Dec 11, 2018 at 05:54:56PM -0700, Jeremy Fertic wrote: > > > @@ -651,10 +649,12 @@ static ssize_t > > > adt7316_store_da_high_resolution(struct device *dev,

Re: [PATCH] powerpc/prom: fix early DEBUG messages

2018-12-13 Thread Michael Ellerman
Christophe Leroy writes: > diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c > index fe758cedb93f..d8e56e03c9c6 100644 > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -749,7 +749,11 @@ void __init early_init_devtree(void *params) >

[RFC v2 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2018-12-13 Thread Yash Shah
DT documentation for PWM controller added with updated compatible string. Signed-off-by: Wesley W. Terpstra [Atish: Compatible string update] Signed-off-by: Atish Patra Signed-off-by: Yash Shah --- .../devicetree/bindings/pwm/pwm-sifive.txt | 44 ++ 1 file changed,

[RFC v2 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2018-12-13 Thread Yash Shah
Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. Signed-off-by: Wesley W. Terpstra [Atish: Various fixes and code cleanup] Signed-off-by: Atish Patra Signed-off-by: Yash Shah --- drivers/pwm/Kconfig | 10 +++ drivers/pwm/Makefile | 1 +

[PATCH v2 2/3] f2fs: check PageWriteback flag for ordered case

2018-12-13 Thread Chao Yu
For all ordered cases in f2fs_wait_on_page_writeback(), we need to check PageWriteback status, so let's clean up to relocate the check into f2fs_wait_on_page_writeback(). Signed-off-by: Chao Yu --- - cover f2fs_sync_meta_pages and f2fs_write_cache_pages as well. fs/f2fs/checkpoint.c | 2 --

[RFC v2 0/2] PWM support for HiFive Unleashed

2018-12-13 Thread Yash Shah
This patch series adds PWM drivers and DT documentation for HiFive Unleashed board. The patches are mostly based on Wesley's patch. V2 of this patchset incorporates below items pointed out in v1. V2 changed from V1: 1. Remove inclusion of dt-bindings/pwm/pwm.h 2. Remove artificial alignments

Re: [PATCH 02/11] staging: iio: adt7316: invert the logic of the check for an ldac pin

2018-12-13 Thread Dan Carpenter
On Thu, Dec 13, 2018 at 03:06:29PM -0700, Jeremy Fertic wrote: > On Wed, Dec 12, 2018 at 11:19:49AM +0300, Dan Carpenter wrote: > > On Tue, Dec 11, 2018 at 05:54:54PM -0700, Jeremy Fertic wrote: > > > ADT7316_DA_EN_VIA_DAC_LDCA is set when the dac and ldac registers are > > > being > > > used to

Re: ubifs: fix page_count in ->ubifs_migrate_page()

2018-12-13 Thread zhangjun
On 2018/12/14 上午6:57, Dave Chinner wrote: On Thu, Dec 13, 2018 at 03:23:37PM +0100, Richard Weinberger wrote: Hello zhangjun, thanks a lot for bringing this up! Am Mittwoch, 12. Dezember 2018, 15:13:57 CET schrieb zhangjun: Because the PagePrivate() in UBIFS is different meanings,

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-13 Thread John Hubbard
On 12/13/18 9:21 PM, Dan Williams wrote: > On Thu, Dec 13, 2018 at 7:53 PM John Hubbard wrote: >> >> On 12/12/18 4:51 PM, Dave Chinner wrote: >>> On Wed, Dec 12, 2018 at 04:59:31PM -0500, Jerome Glisse wrote: On Thu, Dec 13, 2018 at 08:46:41AM +1100, Dave Chinner wrote: > On Wed, Dec 12,

RE: [PATCH] dt-bindings: usb: renesas_usbhs: Add r8a774c0 support

2018-12-13 Thread Yoshihiro Shimoda
Hi Fabrizio, > From: Fabrizio Castro, Sent: Friday, December 14, 2018 5:21 AM > > Document RZ/G2E (R8A774C0) SoC bindings. > > Signed-off-by: Fabrizio Castro Thank you for the patch! Reviewed-by: Yoshihiro Shimoda By the way, I'm not sure, but I'm wondering that we need to add .compatible

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-13 Thread Dave Chinner
On Wed, Dec 12, 2018 at 09:02:29PM -0500, Jerome Glisse wrote: > On Thu, Dec 13, 2018 at 11:51:19AM +1100, Dave Chinner wrote: > > On Wed, Dec 12, 2018 at 04:59:31PM -0500, Jerome Glisse wrote: > > > On Thu, Dec 13, 2018 at 08:46:41AM +1100, Dave Chinner wrote: > > > > On Wed, Dec 12, 2018 at

[PATCH] fix page_count in ->iomap_migrate_page()

2018-12-13 Thread zhangjun
IOMAP uses PG_private a little different with buffer_head based filesystem. It uses it as marker and when set, the page counter is not incremented, migrate_page_move_mapping() assumes that PG_private indicates a counter of +1. so, we have to pass a extra count of -1 to migrate_page_move_mapping()

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-13 Thread Firoz Khan
Hi Paul, On Fri, 14 Dec 2018 at 01:45, Paul Burton wrote: > I've applied v5 but undone the change from __NR_64_* to __NR_N64_* > because it's part of the UAPI & a github code search showed that it's > actually used. > > Could you take a look at this branch & check that you're OK with it > before

RE: [PATCH 2/2] scsi: ufs: add inline crypto support to UFS HCD

2018-12-13 Thread Parshuram Raju Thombare
Hi Ladvine, >From: Ladvine D Almeida >Sent: Friday, December 14, 2018 1:10 AM >Subject: Re: [PATCH 2/2] scsi: ufs: add inline crypto support to UFS HCD >Where is Crypto target 'crypto-ufs' implementation available? Did you submitted >any other patch for the same? >Also, it is better to provide a

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-13 Thread Eric Biggers
On Fri, Dec 14, 2018 at 12:17:22AM -0500, Theodore Y. Ts'o wrote: > Furthermore, it would require extra complexity in the common fsverity code > --- which looks for the Merkle tree at the end of file data --- for no real > benefit. To clarify, while this is technically true currently, as I

Re: rcu_preempt caused oom

2018-12-13 Thread Paul E. McKenney
On Thu, Dec 13, 2018 at 09:10:12PM -0800, Paul E. McKenney wrote: > On Fri, Dec 14, 2018 at 02:40:50AM +, He, Bo wrote: > > another experiment we have done with the enclosed debug patch, and also > > have more rcu trace event enable but without CONFIG_RCU_BOOST config, we > > don't reproduce

Re: [PATCH v13 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Stephen Boyd
Quoting Taniya Das (2018-12-13 20:10:24) > The CPUfreq HW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this hardware engine. > > Signed-off-by: Saravana Kannan > Signed-off-by: Stephen

Re: [PATCH v13 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-13 Thread Stephen Boyd
Quoting Taniya Das (2018-12-13 20:10:23) > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- Reviewed-by: Stephen Boyd

Re: [PATCH] power: reset: msm: Add support for download-mode control

2018-12-13 Thread Bjorn Andersson
On Wed 21 Nov 10:26 PST 2018, Stephen Boyd wrote: > Quoting Stephen Boyd (2018-07-20 10:44:53) > > Quoting Rajendra Nayak (2018-07-18 23:59:20) > > > On 7/19/2018 11:12 AM, Bjorn Andersson wrote: > > > > On Wed 18 Jul 22:18 PDT 2018, Rajendra Nayak wrote: > > > >> diff --git > > > >>

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-13 Thread Dan Williams
On Thu, Dec 13, 2018 at 7:53 PM John Hubbard wrote: > > On 12/12/18 4:51 PM, Dave Chinner wrote: > > On Wed, Dec 12, 2018 at 04:59:31PM -0500, Jerome Glisse wrote: > >> On Thu, Dec 13, 2018 at 08:46:41AM +1100, Dave Chinner wrote: > >>> On Wed, Dec 12, 2018 at 10:03:20AM -0500, Jerome Glisse

Re: [PATCH] Linux: Implement membarrier function

2018-12-13 Thread Paul E. McKenney
On Thu, Dec 13, 2018 at 09:26:47PM -0500, Alan Stern wrote: > On Thu, 13 Dec 2018, Paul E. McKenney wrote: > > > > > A good next step would be to automatically generate random tests along > > > > with an automatically generated prediction, like I did for RCU a few > > > > years back. I should be

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-13 Thread Theodore Y. Ts'o
On Thu, Dec 13, 2018 at 12:22:49PM -0800, Christoph Hellwig wrote: > On Wed, Dec 12, 2018 at 12:26:10PM -0800, Eric Biggers wrote: > > > As this apparently got merged despite no proper reviews from VFS > > > level persons: > > > > fs-verity has been out for review since August, and Cc'ed to all

Re: [v7, PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712

2018-12-13 Thread Florian Fainelli
Le 12/13/18 à 7:01 PM, biao huang a écrit : > Dear Andrew, > Thanks for your comments. > > On Thu, 2018-12-13 at 13:33 +0100, Andrew Lunn wrote: >> Hi Biao >> >>> + case PHY_INTERFACE_MODE_RGMII: >>> + /* the PHY is not responsible for inserting any internal >>> +*

Re: rcu_preempt caused oom

2018-12-13 Thread Paul E. McKenney
On Fri, Dec 14, 2018 at 02:40:50AM +, He, Bo wrote: > another experiment we have done with the enclosed debug patch, and also have > more rcu trace event enable but without CONFIG_RCU_BOOST config, we don't > reproduce the issue after 90 Hours until now on 10 boards(the issue should >

Re: [PATCH v3] mm: Create the new vm_fault_t type

2018-12-13 Thread Souptick Joarder
Hi Andrew, On Sat, Nov 24, 2018 at 10:16 AM Souptick Joarder wrote: > > On Thu, Nov 15, 2018 at 7:17 AM Mike Rapoport wrote: > > > > On Tue, Nov 06, 2018 at 05:36:42PM +0530, Souptick Joarder wrote: > > > Page fault handlers are supposed to return VM_FAULT codes, > > > but some drivers/file

Re: [PATCH v2] arm64: invalidate TLB just before turning MMU on

2018-12-13 Thread Bhupesh Sharma
On Fri, Dec 14, 2018 at 9:39 AM Qian Cai wrote: > > On this HPE Apollo 70 arm64 server with 256 CPUs, triggering a crash > dump just hung. It has 4 threads on each core. Each 2-core share a same > L1 and L2 caches, so that is 8 CPUs shares those. All CPUs share a same > L3 cache. > > It turned

[PATCH 1/3] f2fs: use kvmalloc, if kmalloc is failed

2018-12-13 Thread Jaegeuk Kim
One report says memalloc failure during mount. (unwind_backtrace) from [] (show_stack+0x10/0x14) (show_stack) from [] (dump_stack+0x8c/0xa0) (dump_stack) from [] (warn_alloc+0xc4/0x160) (warn_alloc) from [] (__alloc_pages_nodemask+0x3f4/0x10d0) (__alloc_pages_nodemask) from []

[PATCH 3/3] f2fs: flush stale issued discard candidates

2018-12-13 Thread Jaegeuk Kim
Sometimes, I could observe # of issuing_discard to be 1 which blocks background jobs due to is_idle()=false. The only way to get out of it was to trigger gc_urgent. This patch avoids that by checking any candidates as done in the list. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 4

[PATCH 2/3] f2fs: correct wrong spelling, issing_*

2018-12-13 Thread Jaegeuk Kim
Let's use "queued" instead of "issuing". Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 4 ++-- fs/f2fs/f2fs.h| 10 +- fs/f2fs/segment.c | 26 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index

Re: [PATCH] arm64: dts: qcom: sdm845: Add Q6V5 MSS node

2018-12-13 Thread Bjorn Andersson
On Thu 13 Dec 14:17 PST 2018, Doug Anderson wrote: > On Tue, Nov 27, 2018 at 12:58 AM Sibi Sankar wrote: [..] > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > index 58870273dbc9..df16ee464872 100644 > > ---

Re: Generic kernel fails to boot on Alpha bisected to b38d08f3181c

2018-12-13 Thread Michael Cree
On Thu, Dec 13, 2018 at 08:07:24AM -0800, Tejun Heo wrote: > Hello, Michael. > > On Thu, Dec 13, 2018 at 09:26:12PM +1300, Michael Cree wrote: > > A kernel built for generic UP Alpha had been noted to fail to boot > > for quite some time (since the release of 3.18). The kernel either > > locks

Re: [PATCH v2 01/12] fs-verity: add a documentation file

2018-12-13 Thread Eric Biggers
Hi Christoph, On Thu, Dec 13, 2018 at 12:22:49PM -0800, Christoph Hellwig wrote: > On Wed, Dec 12, 2018 at 12:26:10PM -0800, Eric Biggers wrote: > > > As this apparently got merged despite no proper reviews from VFS > > > level persons: > > > > fs-verity has been out for review since August, and

Re: [PATCH v6 08/27] csky: define syscall_get_arch()

2018-12-13 Thread Guo Ren
Thx Dmitry, Reviewed-by: Guo Ren On Thu, Dec 13, 2018 at 08:22:07PM +0300, Dmitry V. Levin wrote: > syscall_get_arch() is required to be implemented on all architectures > in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO > request. > > Cc: Guo Ren > Cc: Paul Moore > Cc:

Re: [PATCH v6 07/27] elf-em.h: add EM_CSKY

2018-12-13 Thread Guo Ren
Reviewed-by: Guo Ren On Thu, Dec 13, 2018 at 08:22:00PM +0300, Dmitry V. Levin wrote: > The uapi/linux/audit.h header is going to use EM_CSKY in order > to define AUDIT_ARCH_CSKY which is needed to implement > syscall_get_arch() which in turn is required to extend > the generic ptrace API with

Re: [PATCH v13 0/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW

2018-12-13 Thread Viresh Kumar
On 14-12-18, 09:40, Taniya Das wrote: > [v13] >* Update Documentation binding to #freq-domain-cells in description. >* Replace devm_ioremap_resource() to use devm_ioremap() API. Acked-by: Viresh Kumar -- viresh

Re: [PATCH net-next 0/3] vhost: accelerate metadata access through vmap()

2018-12-13 Thread Jason Wang
On 2018/12/14 上午4:12, Michael S. Tsirkin wrote: On Thu, Dec 13, 2018 at 06:10:19PM +0800, Jason Wang wrote: Hi: This series tries to access virtqueue metadata through kernel virtual address instead of copy_user() friends since they had too much overheads like checks, spec barriers or even

Re: [PATCH V14 0/3] blk-mq: refactor and fix the code of issue directly

2018-12-13 Thread Jens Axboe
On 12/13/18 6:28 PM, Jianchao Wang wrote: > Hi Jens > > After commit c616cbee ( blk-mq: punt failed direct issue to dispatch > list ), we always insert request to hctx dispatch list whenever get a > BLK_STS_RESOURCE or BLK_STS_DEV_RESOURCE, this is overkill and will > harm the merging. We just

Re: [PATCH RESEND v7 3/4] clk: meson: add sub MMC clock controller driver

2018-12-13 Thread Jianxin Pan
On 2018/12/13 17:01, Jerome Brunet wrote: > On Thu, 2018-12-13 at 12:55 +0800, Jianxin Pan wrote: >> On 2018/12/12 0:59, Jerome Brunet wrote: >>> On Tue, 2018-12-11 at 00:04 +0800, Jianxin Pan wrote: From: Yixun Lan >> [...] +config COMMON_CLK_MMC_MESON + tristate

[PATCH v13 0/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW

2018-12-13 Thread Taniya Das
[v13] * Update Documentation binding to #freq-domain-cells in description. * Replace devm_ioremap_resource() to use devm_ioremap() API. [v12] * Remove per-cpu domain global structure. [v11] * Updated the code logic as per Stephen. * Default boost enabled is removed. * Update

[PATCH v13 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Taniya Das
The CPUfreq HW present in some QCOM chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine. Signed-off-by: Saravana Kannan Signed-off-by: Stephen Boyd Signed-off-by: Taniya Das ---

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-13 Thread Taniya Das
Hello Stephen, Viresh, On 12/13/2018 3:28 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-12-12 23:49:54) The CPUfreq HW present in some QCOM chipsets offloads the steps necessary for changing the frequency of CPUs. The driver implements the cpufreq driver interface for this hardware engine.

[PATCH v13 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-13 Thread Taniya Das
Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's SoCs. This is required for managing the cpu frequency transitions which are controlled by the hardware engine. Signed-off-by: Taniya Das --- .../bindings/cpufreq/cpufreq-qcom-hw.txt | 172 + 1

Re: [PATCH v12 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-13 Thread Taniya Das
Hello Stephen, On 12/13/2018 1:58 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-12-12 23:49:53) diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt new file mode 100644 index 000..2b82965 ---

[PATCH v2] arm64: invalidate TLB just before turning MMU on

2018-12-13 Thread Qian Cai
On this HPE Apollo 70 arm64 server with 256 CPUs, triggering a crash dump just hung. It has 4 threads on each core. Each 2-core share a same L1 and L2 caches, so that is 8 CPUs shares those. All CPUs share a same L3 cache. It turned out that this was due to the TLB contained stale entries (or

[PATCHv2] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2018-12-13 Thread Pingfan Liu
Customer reported a bug on a high end server with many pcie devices, where kernel bootup with crashkernel=384M, and kaslr is enabled. Even though we still see much memory under 896 MB, the finding still failed intermittently. Because currently we can only find region under 896 MB, if w/0 ',high'

Re: linux-next: manual merge of the block tree with the scsi-fixes tree

2018-12-13 Thread Jens Axboe
On 12/13/18 7:23 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the block tree got a conflict in: > > drivers/scsi/sd.c > > between commit: > > 61cce6f6eece ("scsi: sd: use mempool for discard special page") > > from the scsi-fixes tree and commit: > >

[PATCH] arm64: replace arm64-obj-* in Makefile with obj-*

2018-12-13 Thread Masahiro Yamada
Use the standard obj-$(CONFIG_...) syntex. The behavior is still the same. Signed-off-by: Masahiro Yamada --- arch/arm64/kernel/Makefile | 59 +++--- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/arch/arm64/kernel/Makefile

  1   2   3   4   5   6   7   8   9   10   >