Re: [RFC v3] zswap: Add CONFIG_ZSWAP_IO_SWITCH to handle swap IO issue

2019-09-26 Thread Dan Streetman
On Mon, Sep 23, 2019 at 4:14 PM Dan Streetman wrote: > > On Sun, Sep 22, 2019 at 11:32 PM Hui Zhu wrote: > > > > This is the third version of this patch. The first and second version > > is in [1] and [2]. > > This verion is updated according to the comments from Randy Dunlap > > in [3]. > > >

[PATCH v4 03/19] spi: make `cs_change_delay` the first user of the `spi_delay` logic

2019-09-26 Thread Alexandru Ardelean
Since the logic for `spi_delay` struct + `spi_delay_exec()` has been copied from the `cs_change_delay` logic, it's natural to make this delay, the first user. The `cs_change_delay` logic requires that the default remain 10 uS, in case it is unspecified/unconfigured. So, there is some special

[PATCH v4 07/19] spi: core,atmel: convert `word_delay_usecs` -> `word_delay` for spi_device

2019-09-26 Thread Alexandru Ardelean
This change does a conversion from the `word_delay_usecs` -> `word_delay` for the `spi_device` struct. This allows users to specify inter-word delays in other unit types (nano-seconds or clock cycles), depending on how users want. The Atmel SPI driver is the only current user of the

[PATCH -next 4/4] dmaengine: xilinx_dma: Remove clk_get error message for probe defer

2019-09-26 Thread Radhey Shyam Pandey
In dma probe, the driver checks for devm_clk_get return and print error message in the failing case. However for -EPROBE_DEFER this message is confusing so avoid it. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek --- drivers/dma/xilinx/xilinx_dma.c | 19 ++- 1

[PATCH -next 3/4] dmaengine: xilinx_dma: use devm_platform_ioremap_resource()

2019-09-26 Thread Radhey Shyam Pandey
Replace the chain of platform_get_resource() and devm_ioremap_resource() with devm_platform_ioremap_resource(). It simplifies the flow and there is no functional change. Fixes below cocinelle warning- WARNING: Use devm_platform_ioremap_resource for xdev -> regs Signed-off-by: Radhey Shyam Pandey

[PATCH -next 2/4] dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config

2019-09-26 Thread Radhey Shyam Pandey
In vdma_channel_set_config clear the delay, frame count and master mask before updating their new values. It avoids programming incorrect state when input parameters are different from default. Signed-off-by: Radhey Shyam Pandey Acked-by: Appana Durga Kedareswara rao Signed-off-by: Michal Simek

[PATCH -next 1/4] dmaengine: xilinx_dma: Fix 64-bit simple AXIDMA transfer

2019-09-26 Thread Radhey Shyam Pandey
In AXI DMA simple mode also pass MSB bits of source and destination address to xilinx_write function. It fixes simple AXI DMA operation mode using 64-bit addressing. Signed-off-by: Radhey Shyam Pandey --- drivers/dma/xilinx/xilinx_dma.c |3 ++- 1 files changed, 2 insertions(+), 1

[PATCH -next 0/4] dmaengine: xilinx_dma: Minor functional fixes

2019-09-26 Thread Radhey Shyam Pandey
This patchset fixes axidma simple mode 64-bit transfer. It clears vdma control registers before update, in probe use devm_platform API and remove clk_get error in case of EPROBE_DEFER. Radhey Shyam Pandey (4): dmaengine: xilinx_dma: Fix 64-bit simple AXIDMA transfer dmaengine: xilinx_dma:

SUPPLY CONTRACT.

2019-09-26 Thread BENJAMIN HULK
Sir, I got your email information through a search in the internet. I am an authorized agent registered with the Department for Business, Energy & Industrial Strategy{Project Procurement Division} as a sourcing agent for sundry products. I search for companies to bid for supply contracts on

Re: [RFC PATCH] xen/gntdev: Stop abusing DT of_dma_configure API

2019-09-26 Thread Robin Murphy
On 2019-09-26 11:17 am, Oleksandr Andrushchenko wrote: On 9/26/19 12:49 PM, Julien Grall wrote: Hi Rob, On 9/25/19 10:50 PM, Rob Herring wrote: As the comment says, this isn't a DT based device. of_dma_configure() is going to stop allowing a NULL DT node, so this needs to be fixed. And

[PATCH] clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call

2019-09-26 Thread Peter Ujfalusi
ti_clk_register() calls it already so the driver should not create duplicated alias. Signed-off-by: Peter Ujfalusi --- drivers/clk/ti/clk-dra7-atl.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c index

Re: [PATCH v5 1/3] x86/hyper-v: Suspend/resume the hypercall page for hibernation

2019-09-26 Thread Vitaly Kuznetsov
Dexuan Cui writes: > This is needed for hibernation, e.g. when we resume the old kernel, we need > to disable the "current" kernel's hypercall page and then resume the old > kernel's. > > Signed-off-by: Dexuan Cui > Reviewed-by: Michael Kelley > --- > arch/x86/hyperv/hv_init.c | 33

Re: [PATCH v2] KVM: LAPIC: Loose fluctuation filter for auto tune lapic_timer_advance_ns

2019-09-26 Thread Wanpeng Li
On Thu, 26 Sep 2019 at 18:25, Paolo Bonzini wrote: > > On 26/09/19 02:54, Wanpeng Li wrote: > > -#define LAPIC_TIMER_ADVANCE_ADJUST_MIN 100 > > -#define LAPIC_TIMER_ADVANCE_ADJUST_MAX 5000 > > -#define LAPIC_TIMER_ADVANCE_ADJUST_INIT 1000 > > +#define LAPIC_TIMER_ADVANCE_EXPIRE_MIN 100 > >

Re: spi: Add call to spi_slave_abort() function when spidev driver is released

2019-09-26 Thread Geert Uytterhoeven
Hi Lukasz, On Thu, Sep 26, 2019 at 12:14 PM Lukasz Majewski wrote: > > Static analysis with Coverity has detected an potential dereference > > of a free'd object with commit: > > > > commit 9f918a728cf86b2757b6a7025e1f46824bfe3155 > > Author: Lukasz Majewski > > Date: Wed Sep 25 11:11:42 2019

Re: [PATCH v3 01/11] PCI: designware-ep: Add multiple PFs support for DWC

2019-09-26 Thread Andrew Murray
On Tue, Sep 03, 2019 at 03:43:15AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月3日 0:26 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com;

Re: [PATCH v3] KVM: X86: Fix userspace set invalid CR4

2019-09-26 Thread Paolo Bonzini
On 18/09/19 11:50, Wanpeng Li wrote: > From: Wanpeng Li > > Reported by syzkaller: > > WARNING: CPU: 0 PID: 6544 at > /home/kernel/data/kvm/arch/x86/kvm//vmx/vmx.c:4689 handle_desc+0x37/0x40 > [kvm_intel] > CPU: 0 PID: 6544 Comm: a.out Tainted: G OE 5.3.0-rc4+ #4 >

Re: [PATCH 1/2] HID: i2c-hid: allow delay after SET_POWER

2019-09-26 Thread Benjamin Tissoires
Hi, On Wed, Sep 25, 2019 at 11:43 AM You-Sheng Yang wrote: > > According to HID over I2C specification v1.0 section 7.2.8, a device is > allowed to take at most 1 second to make the transition to the specified > power state. On some touchpad devices implements Microsoft Precision > Touchpad, it

[PATCH] power: reset: at91-poweroff: lookup for proper PMC DT node

2019-09-26 Thread Claudiu Beznea
Driver has been enabled also for SAM9X60. At the moment the patch which did this has been sent to mainline the PMC for SAM9X60 wasn't integrated. SAM9X60 has a new PMC compatible (see commit 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")). Do to this we have to look for proper PMC compatible

Re: [PATCH v9 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-26 Thread Kirill A. Shutemov
On Wed, Sep 25, 2019 at 10:59:22AM +0800, Jia He wrote: > When we tested pmdk unit test [1] vmmalloc_fork TEST1 in arm64 guest, there > will be a double page fault in __copy_from_user_inatomic of cow_user_page. > > Below call trace is from arm64 do_page_fault for debugging purpose > [

Re: [PATCH v2] KVM: LAPIC: Loose fluctuation filter for auto tune lapic_timer_advance_ns

2019-09-26 Thread Paolo Bonzini
On 26/09/19 02:54, Wanpeng Li wrote: > -#define LAPIC_TIMER_ADVANCE_ADJUST_MIN 100 > -#define LAPIC_TIMER_ADVANCE_ADJUST_MAX 5000 > -#define LAPIC_TIMER_ADVANCE_ADJUST_INIT 1000 > +#define LAPIC_TIMER_ADVANCE_EXPIRE_MIN 100 > +#define LAPIC_TIMER_ADVANCE_EXPIRE_MAX 1 > +#define

Re: [PATCH v3 2/2] x86/boot/64: round memory hole size up to next PMD page.

2019-09-26 Thread Kirill A. Shutemov
On Tue, Sep 24, 2019 at 04:04:31PM -0500, Steve Wahl wrote: > The kernel image map is created using PMD pages, which can include > some extra space beyond what's actually needed. Round the size of the > memory hole we search for up to the next PMD boundary, to be certain > all of the space to be

Re: [PATCH v3 1/2] x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area.

2019-09-26 Thread Kirill A. Shutemov
On Tue, Sep 24, 2019 at 04:03:55PM -0500, Steve Wahl wrote: > Our hardware (UV aka Superdome Flex) has address ranges marked > reserved by the BIOS. Access to these ranges is caught as an error, > causing the BIOS to halt the system. > > Initial page tables mapped a large range of physical

Re: [PATCH v3 3/4] mm: don't expose non-hugetlb page to fast gup prematurely

2019-09-26 Thread Kirill A. Shutemov
On Wed, Sep 25, 2019 at 04:26:54PM -0600, Yu Zhao wrote: > On Wed, Sep 25, 2019 at 10:25:30AM +0200, Peter Zijlstra wrote: > > On Tue, Sep 24, 2019 at 05:24:58PM -0600, Yu Zhao wrote: > > > We don't want to expose a non-hugetlb page to the fast gup running > > > on a remote CPU before all local

[PATCH] [media] MAINTAINERS: Update MAX2175 & R-Car DRIF driver maintainer email

2019-09-26 Thread Chris Paterson
Ramesh is now using a new email address. Update the maintainer entry for the MAX2175 SDR tuner and the Renesas R-Car DRIF drivers. Signed-off-by: Chris Paterson --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [RFC PATCH] xen/gntdev: Stop abusing DT of_dma_configure API

2019-09-26 Thread Oleksandr Andrushchenko
On 9/26/19 12:49 PM, Julien Grall wrote: > Hi Rob, > > > On 9/25/19 10:50 PM, Rob Herring wrote: >> As the comment says, this isn't a DT based device. of_dma_configure() >> is going to stop allowing a NULL DT node, so this needs to be fixed. > > And this can't work on arch not selecting CONFIG_OF

RE: [PATCH 2/5] dt-bindings: mfd: da9062: add regulator voltage selection documentation

2019-09-26 Thread Adam Thomson
On 26 September 2019 09:10, Marco Felsch wrote: > On 19-09-25 16:18, Adam Thomson wrote: > > On 25 September 2019 16:52, Marco Felsch wrote: > > > > > Hi Adam, > > > > > > On 19-09-24 09:23, Adam Thomson wrote: > > > > On 17 September 2019 13:43, Marco Felsch wrote: > > > > > > > > > Add the

RE: [PATCH] sample/hw_breakpoint: avoid sample hw_breakpoint recursion for arm/arm64

2019-09-26 Thread wangxu (AE)
-Original Message- From: Peter Zijlstra [mailto:pet...@infradead.org] Sent: Thursday, September 26, 2019 5:14 PM To: wangxu (AE) Cc: mi...@redhat.com; a...@kernel.org; mark.rutl...@arm.com; alexander.shish...@linux.intel.com; namhy...@kernel.org; gre...@linuxfoundation.org;

Re: spi: Add call to spi_slave_abort() function when spidev driver is released

2019-09-26 Thread Colin Ian King
On 26/09/2019 11:14, Lukasz Majewski wrote: > Hi Colin, > >> Hi, >> >> Static analysis with Coverity has detected an potential dereference >> of a free'd object with commit: >> >> commit 9f918a728cf86b2757b6a7025e1f46824bfe3155 >> Author: Lukasz Majewski >> Date: Wed Sep 25 11:11:42 2019 +0200

Re: spi: Add call to spi_slave_abort() function when spidev driver is released

2019-09-26 Thread Lukasz Majewski
Hi Colin, > Hi, > > Static analysis with Coverity has detected an potential dereference > of a free'd object with commit: > > commit 9f918a728cf86b2757b6a7025e1f46824bfe3155 > Author: Lukasz Majewski > Date: Wed Sep 25 11:11:42 2019 +0200 > > spi: Add call to spi_slave_abort() function

Re: [Xen-devel] [PATCH] xen: xen-pciback: Reset MSI-X state when exposing a device

2019-09-26 Thread Pasi Kärkkäinen
Hello Stanislav, On Fri, Sep 13, 2019 at 11:28:20PM +0800, Chao Gao wrote: > On Fri, Sep 13, 2019 at 10:02:24AM +, Spassov, Stanislav wrote: > >On Thu, Dec 13, 2018 at 07:54, Chao Gao wrote: > >>On Thu, Dec 13, 2018 at 12:54:52AM -0700, Jan Beulich wrote: > >> On 13.12.18 at 04:46,

Re: [PATCH] arm64: zynqmp: Add dr_mode property to usb node

2019-09-26 Thread Michal Simek
On 10. 09. 19 17:17, Anurag Kumar Vulisha wrote: > This patch adds dr_mode property to the usb node for > zynqmp boards. > > Signed-off-by: Anurag Kumar Vulisha > --- > arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts | 1 + > arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts | 1 + >

Re: [PATCH v2] soc: xilinx: Set CAP_UNUSABLE requirement for versal while powering down domain

2019-09-26 Thread Michal Simek
On 26. 08. 19 22:30, Jolly Shah wrote: > From: Tejas Patel > > For "0" requirement which is used to inform firmware that device is > not required currently by master, Versal PLM (Platform Loader and > Manager) which runs on Platform Management Controller and is responsible > platform management

Re: [PATCH] x86: uaccess: fix regression in unsafe_get_user

2019-09-26 Thread Arthur Gautier
On Mon, Feb 18, 2019 at 09:51:50PM +, Arthur Gautier wrote: > On Mon, Feb 18, 2019 at 11:15:44AM -0800, Andy Lutomirski wrote: > > This seems like it's just papering over the underlying problem: with > > Jann's new checks in place, strncpy_from_user() is simply buggy. Does > > the patch below

Re: [PATCH] firmware: imx: Skip return value check for some special SCU firmware APIs

2019-09-26 Thread Marco Felsch
Hi Anson, On 19-09-26 08:03, Anson Huang wrote: > Hi, Marco > > > On 19-09-25 18:07, Anson Huang wrote: > > > The SCU firmware does NOT always have return value stored in message > > > header's function element even the API has response data, those > > > special APIs are defined as void function

Re: [PATCH V2 1/1] tick: broadcast-hrtimer: Fix a race in bc_set_next

2019-09-26 Thread Thomas Gleixner
On Wed, 25 Sep 2019, Balasubramani Vivekanandan wrote: > > Since it is now allowed to start the hrtimer from the callback, there is Is now allowed? > no need for the try to cancel logic. All that is now removed. Sure I can see that it is removed from the patch, but why and why is it correct?

Re: [PATCH v2 1/2] drm/komeda: Add line size support

2019-09-26 Thread Lowry Li (Arm Technology China)
Hi Lowry, On Wed, Sep 25, 2019 at 10:24:58AM +, Liviu Dudau wrote: > Hi Lowry, > > On Tue, Sep 24, 2019 at 08:00:44AM +, Lowry Li (Arm Technology China) > wrote: > > From: "Lowry Li (Arm Technology China)" > > > > On D71, we are using the global line size. From D32, every > > component

re: spi: Add call to spi_slave_abort() function when spidev driver is released

2019-09-26 Thread Colin Ian King
Hi, Static analysis with Coverity has detected an potential dereference of a free'd object with commit: commit 9f918a728cf86b2757b6a7025e1f46824bfe3155 Author: Lukasz Majewski Date: Wed Sep 25 11:11:42 2019 +0200 spi: Add call to spi_slave_abort() function when spidev driver is released

RE: [v4,1/3] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2019-09-26 Thread Biwen Li
Hi all, the linux patch depended by RCPM driver,FlexTimer driver and FlexTimer dts, need apply these patches as follows: 1. RCPM driver: https://patchwork.kernel.org/series/162731/mbox/ (https://patchwork.kernel.org/patch/11105279/) 2. FlexTimer dts:

Re: [RFC PATCH] xen/gntdev: Stop abusing DT of_dma_configure API

2019-09-26 Thread Julien Grall
Hi Rob, On 9/25/19 10:50 PM, Rob Herring wrote: As the comment says, this isn't a DT based device. of_dma_configure() is going to stop allowing a NULL DT node, so this needs to be fixed. And this can't work on arch not selecting CONFIG_OF and can select CONFIG_XEN_GRANT_DMA_ALLOC. We are

Re: [PATCH] drm: Don't free jobs in wait_event_interruptible()

2019-09-26 Thread Steven Price
On 26/09/2019 08:07, Koenig, Christian wrote: > Am 25.09.19 um 17:14 schrieb Steven Price: >> drm_sched_cleanup_jobs() attempts to free finished jobs, however because >> it is called as the condition of wait_event_interruptible() it must not >> sleep. Unfortunately some free callbacks (notably for

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-09-26 Thread Masahiro Yamada
Hi Geert, On Thu, Sep 26, 2019 at 6:26 PM Geert Uytterhoeven wrote: > > Hi Yamada-san, > > On Thu, Sep 26, 2019 at 11:03 AM Masahiro Yamada > wrote: > > On Thu, Sep 26, 2019 at 5:54 PM Geert Uytterhoeven > > wrote: > > > On Fri, Aug 30, 2019 at 5:44 AM Masahiro Yamada > > > wrote: > > > >

Re: [PATCH v3 5/5] media: platform: Add jpeg dec/enc feature

2019-09-26 Thread Hans Verkuil
On 9/24/19 9:43 AM, Xia Jiang wrote: > Add mtk jpeg encode v4l2 driver based on jpeg decode, because that jpeg > decode and encode have great similarities with function operation. > > Signed-off-by: Xia Jiang > --- > v3: delete Change-Id > only test once handler->error after the last

Re: [PATCH v3 0/3] Add MMC software queue support

2019-09-26 Thread Baolin Wang
Hi Adrian and Ulf, On Thu, 19 Sep 2019 at 13:59, Baolin Wang wrote: > > Hi All, > > Now the MMC read/write stack will always wait for previous request is > completed by mmc_blk_rw_wait(), before sending a new request to hardware, > or queue a work to complete request, that will bring context

Re: [PATCH] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry()

2019-09-26 Thread Hannes Reinecke
On 9/26/19 9:46 AM, Daniel Wagner wrote: > Commit 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not > called from the completion path") introduced the WARN_ON_ONCE in > qla2x00_status_cont_entry(). The assumption was that there is only one > status continuations element. According to the

[PATCH v5 16/16] mm/userfaultfd: Honor FAULT_FLAG_KILLABLE in fault path

2019-09-26 Thread Peter Xu
Userfaultfd fault path was by default killable even if the caller does not have FAULT_FLAG_KILLABLE. That makes sense before in that when with gup we don't have FAULT_FLAG_KILLABLE properly set before. Now after previous patch we've got FAULT_FLAG_KILLABLE applied even for gup code so it should

[PATCH v5 12/16] mm: Introduce FAULT_FLAG_INTERRUPTIBLE

2019-09-26 Thread Peter Xu
handle_userfaultfd() is currently the only one place in the kernel page fault procedures that can respond to non-fatal userspace signals. It was trying to detect such an allowance by checking against USER & KILLABLE flags, which was "un-official". In this patch, we introduced a new flag

[PATCH v5 11/16] mm: Introduce FAULT_FLAG_DEFAULT

2019-09-26 Thread Peter Xu
Although there're tons of arch-specific page fault handlers, most of them are still sharing the same initial value of the page fault flags. Say, merely all of the page fault handlers would allow the fault to be retried, and they also allow the fault to respond to SIGKILL. Let's define a default

[PATCH v5 14/16] mm/gup: Allow VM_FAULT_RETRY for multiple times

2019-09-26 Thread Peter Xu
This is the gup counterpart of the change that allows the VM_FAULT_RETRY to happen for more than once. One thing to mention is that we must check the fatal signal here before retry because the GUP can be interrupted by that, otherwise we can loop forever. Signed-off-by: Peter Xu --- mm/gup.c

[PATCH v5 13/16] mm: Allow VM_FAULT_RETRY for multiple times

2019-09-26 Thread Peter Xu
The idea comes from a discussion between Linus and Andrea [1]. Before this patch we only allow a page fault to retry once. We achieved this by clearing the FAULT_FLAG_ALLOW_RETRY flag when doing handle_mm_fault() the second time. This was majorly used to avoid unexpected starvation of the

[PATCH v5 15/16] mm/gup: Allow to react to fatal signals

2019-09-26 Thread Peter Xu
The existing gup code does not react to the fatal signals in many code paths. For example, in one retry path of gup we're still using down_read() rather than down_read_killable(). Also, when doing page faults we don't pass in FAULT_FLAG_KILLABLE as well, which means that within the faulting

[PATCH v5 10/16] userfaultfd: Don't retake mmap_sem to emulate NOPAGE

2019-09-26 Thread Peter Xu
This patch removes the risk path in handle_userfault() then we will be sure that the callers of handle_mm_fault() will know that the VMAs might have changed. Meanwhile with previous patch we don't lose responsiveness as well since the core mm code now can handle the nonfatal userspace signals

[PATCH v5 08/16] sh/mm: Use helper fault_signal_pending()

2019-09-26 Thread Peter Xu
Let SH to use the new fault_signal_pending() helper. Here we'll need to move the up_read() out because that's actually needed as long as !RETRY cases. At the meantime we can drop all the rest of up_read()s now (which seems to be cleaner). Signed-off-by: Peter Xu --- arch/sh/mm/fault.c | 10

[PATCH v5 09/16] mm: Return faster for non-fatal signals in user mode faults

2019-09-26 Thread Peter Xu
The idea comes from the upstream discussion between Linus and Andrea: https://lore.kernel.org/lkml/20171102193644.gb22...@redhat.com/ A summary to the issue: there was a special path in handle_userfault() in the past that we'll return a VM_FAULT_NOPAGE when we detected non-fatal signals when

[PATCH v5 07/16] powerpc/mm: Use helper fault_signal_pending()

2019-09-26 Thread Peter Xu
Let powerpc code to use the new helper, by moving the signal handling earlier before the retry logic. Signed-off-by: Peter Xu --- arch/powerpc/mm/fault.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index

[PATCH v5 04/16] x86/mm: Use helper fault_signal_pending()

2019-09-26 Thread Peter Xu
Let's move the fatal signal check even earlier so that we can directly use the new fault_signal_pending() in x86 mm code. Signed-off-by: Peter Xu --- arch/x86/mm/fault.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/arch/x86/mm/fault.c

[PATCH v5 03/16] mm: Introduce fault_signal_pending()

2019-09-26 Thread Peter Xu
For most architectures, we've got a quick path to detect fatal signal after a handle_mm_fault(). Introduce a helper for that quick path. It cleans the current codes a bit so we don't need to duplicate the same check across archs. More importantly, this will be an unified place that we handle

[PATCH v5 06/16] arm64/mm: Use helper fault_signal_pending()

2019-09-26 Thread Peter Xu
Let the arm64 fault handling to use the new fault_signal_pending() helper, by moving the signal handling out of the retry logic. Signed-off-by: Peter Xu --- arch/arm64/mm/fault.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/arch/arm64/mm/fault.c

[PATCH v5 05/16] arc/mm: Use helper fault_signal_pending()

2019-09-26 Thread Peter Xu
Let ARC to use the new helper fault_signal_pending() by moving the signal check out of the retry logic as standalone. This should also helps to simplify the code a bit. Signed-off-by: Peter Xu --- arch/arc/mm/fault.c | 34 +- 1 file changed, 13 insertions(+), 21

[PATCH v5 01/16] mm/gup: Rename "nonblocking" to "locked" where proper

2019-09-26 Thread Peter Xu
There's plenty of places around __get_user_pages() that has a parameter "nonblocking" which does not really mean that "it won't block" (because it can really block) but instead it shows whether the mmap_sem is released by up_read() during the page fault handling mostly when VM_FAULT_RETRY is

[PATCH v5 00/16] mm: Page fault enhancements

2019-09-26 Thread Peter Xu
This is v5 of the series. As Matthew suggested, I split the previous patch "mm: Return faster for non-fatal signals in user mode faults" into a few smaller ones: 1. One patch to introduce fatal_signal_pending(), and use it in archs that can directly apply 2. A few more patches to let

[PATCH v5 02/16] mm/gup: Fix __get_user_pages() on fault retry of hugetlb

2019-09-26 Thread Peter Xu
When follow_hugetlb_page() returns with *locked==0, it means we've got a VM_FAULT_RETRY within the fauling process and we've released the mmap_sem. When that happens, we should stop and bail out. Signed-off-by: Peter Xu --- mm/gup.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH] ipc/sem: Fix race between to-be-woken task and waker

2019-09-26 Thread Peter Zijlstra
On Fri, Sep 20, 2019 at 11:54:02AM -0400, Waiman Long wrote: > While looking at a customr bug report about potential missed wakeup in > the system V semaphore code, I spot a potential problem. The fact that > semaphore waiter stays in TASK_RUNNING state while checking queue status > may lead to

[PATCH v2] arch/x86/boot: use prefix map to avoid embedded paths

2019-09-26 Thread Ross Burton
From: Bruce Ashfield It was observed that the kernel embeds the path in the x86 boot artifacts. >From https://bugzilla.yoctoproject.org/show_bug.cgi?id=13458: [ If you turn on the buildpaths QA test, or try a reproducible build, you discover that the kernel image contains build paths.

Re: [PATCH] PCI: mobiveil: Fix csr_read/write build issue

2019-09-26 Thread Andrew Murray
On Wed, Sep 25, 2019 at 10:21:21PM +0800, Kefeng Wang wrote: > The riscv has csr_read/write macro, see arch/riscv/include/asm/csr.h, > the same function naming will cause build error, rename them to > __csr_read/write to fix it. > > drivers/pci/controller/pcie-mobiveil.c:238:69: error: macro

Re: [PATCH v3 4/5] media: v4l2-ctrl: Add jpeg enc exif mode control

2019-09-26 Thread Hans Verkuil
On 9/24/19 9:43 AM, Xia Jiang wrote: > Add jpeg enc CID definition for exif mode control. > > Signed-off-by: Xia Jiang > --- > v3: new add patch for V4L2_CID_JPEG_ENABLE_EXIF > --- > Documentation/media/uapi/v4l/ext-ctrls-jpeg.rst | 10 ++ > drivers/media/v4l2-core/v4l2-ctrls.c

Re: [PATCH 2/3] mm, debug, kasan: save and dump freeing stack trace for kasan

2019-09-26 Thread Vlastimil Babka
On 9/26/19 11:16 AM, Kirill A. Shutemov wrote: > On Wed, Sep 25, 2019 at 04:30:51PM +0200, Vlastimil Babka wrote: >> The commit 8974558f49a6 ("mm, page_owner, debug_pagealloc: save and dump >> freeing stack trace") enhanced page_owner to also store freeing stack trace, >> when debug_pagealloc is

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-09-26 Thread Geert Uytterhoeven
Hi Yamada-san, On Thu, Sep 26, 2019 at 11:03 AM Masahiro Yamada wrote: > On Thu, Sep 26, 2019 at 5:54 PM Geert Uytterhoeven > wrote: > > On Fri, Aug 30, 2019 at 5:44 AM Masahiro Yamada > > wrote: > > > Commit 9012d011660e ("compiler: allow all arches to enable > > > CONFIG_OPTIMIZE_INLINING")

Re: [PATCH] arch/x86/boot: use prefix map to avoid embedded paths

2019-09-26 Thread Borislav Petkov
Don't forget to CC: lkml and x...@kernel.org on x86 patches. On Thu, Sep 26, 2019 at 10:11:32AM +0100, Ross Burton wrote: > From: Bruce Ashfield > > It was observed that the kernel embeds the path in the x86 boot > artifacts. > > From https://bugzilla.yoctoproject.org/show_bug.cgi?id=13458: >

Re: [PATCH 3/3] mm, page_owner: rename flag indicating that page is allocated

2019-09-26 Thread Vlastimil Babka
On 9/26/19 11:18 AM, Kirill A. Shutemov wrote: > On Wed, Sep 25, 2019 at 04:30:52PM +0200, Vlastimil Babka wrote: >> Commit 37389167a281 ("mm, page_owner: keep owner info when freeing the page") >> has introduced a flag PAGE_EXT_OWNER_ACTIVE to indicate that page is tracked >> as >> being

RE: [PATCH v9 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-09-26 Thread Justin He (Arm Technology China)
Hi Catalin > -Original Message- > From: Catalin Marinas > Sent: 2019年9月25日 22:38 > To: Justin He (Arm Technology China) > Cc: Will Deacon ; Mark Rutland > ; James Morse ; Marc > Zyngier ; Matthew Wilcox ; Kirill A. > Shutemov ; linux-arm- > ker...@lists.infradead.org;

RE: [PATCH 2/2] regulator: da9063: Simplify da9063_buck_set_mode for BUCK_MODE_MANUAL case

2019-09-26 Thread Adam Thomson
On 26 September 2019 06:51, Axel Lin wrote: > The sleep flag bit decides the mode for BUCK_MODE_MANUAL case, simplify > the logic as the result is the same. > > Signed-off-by: Axel Lin Reviewed-by: Adam Thomson > --- > drivers/regulator/da9063-regulator.c | 9 +++-- > 1 file changed, 3

Re: [PATCH v4 2/8] mm/memory_hotplug: Don't access uninitialized memmaps in shrink_zone_span()

2019-09-26 Thread David Hildenbrand
On 26.09.19 11:12, Aneesh Kumar K.V wrote: > David Hildenbrand writes: > >> Let's limit shrinking to !ZONE_DEVICE so we can fix the current code. We >> should never try to touch the memmap of offline sections where we could >> have uninitialized memmaps and could trigger BUGs when calling >>

Re: [PATCH v5] dt-bindings: sound: Convert Samsung I2S controller to dt-schema

2019-09-26 Thread Krzysztof Kozlowski
On Wed, Sep 25, 2019 at 03:26:28PM +0200, Marek Szyprowski wrote: > From: Maciej Falkowski > > Convert Samsung I2S controller to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- > v5: > - Removed '#clock-cells' property from required

RE: [PATCH 1/2] regulator: da9062: Simplify da9062_buck_set_mode for BUCK_MODE_MANUAL case

2019-09-26 Thread Adam Thomson
On 26 September 2019 06:51, Axel Lin wrote: > The sleep flag bit decides the mode for BUCK_MODE_MANUAL case, simplify > the logic as the result is the same. > > Signed-off-by: Axel Lin This patch will need to be rebased on Marco's update titled: "regulator: da9062: fix

Re: [PATCH v4 1/8] dt-bindings: timer: Convert Exynos MCT bindings to json-schema

2019-09-26 Thread Krzysztof Kozlowski
On Wed, Sep 25, 2019 at 03:40:52PM +0200, Marek Szyprowski wrote: > Hi Krzysztof, > > On 23.09.2019 18:14, Krzysztof Kozlowski wrote: > > Convert Samsung Exynos Soc Multi Core Timer bindings to DT schema format > > using json-schema. > > > > Signed-off-by: Krzysztof Kozlowski > > > > --- > > > >

Re: [PATCH 3/3] mm, page_owner: rename flag indicating that page is allocated

2019-09-26 Thread Kirill A. Shutemov
On Wed, Sep 25, 2019 at 04:30:52PM +0200, Vlastimil Babka wrote: > Commit 37389167a281 ("mm, page_owner: keep owner info when freeing the page") > has introduced a flag PAGE_EXT_OWNER_ACTIVE to indicate that page is tracked > as > being allocated. Kirril suggested naming it

[PATCH] csky: Bugfix add zero_fp fixup perf backtrace panic

2019-09-26 Thread guoren
From: Guo Ren We need set fp zero to let backtrace know the end. The patch fixup perf callchain panic problem, because backtrace didn't know what is the end of fp. Signed-off-by: Guo Ren Reported-by: Mao Han --- arch/csky/kernel/entry.S | 50 +++---

Re: [PATCH 2/3] soc: amlogic: Add support for Secure power domains controller

2019-09-26 Thread Jianxin Pan
Hi Kevin, Thanks for your review. Please see my comments below. On 2019/9/26 6:41, Kevin Hilman wrote: > Hi Jianxin, > > Jianxin Pan writes: > >> Add support for the Amlogic Secure Power controller. In A1/C1 series, power >> control registers are in secure domain, and should be accessed by

RE: [PATCH V9 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-26 Thread Peng Fan
Hi Andre, > Subject: Re: [PATCH V9 1/2] dt-bindings: mailbox: add binding doc for the > ARM SMC/HVC mailbox > [...] > > + supported identifier are passed from consumers, or listed in the > > + the arm,func-id > > ^ > This is now

Re: [PATCH 2/3] mm, debug, kasan: save and dump freeing stack trace for kasan

2019-09-26 Thread Kirill A. Shutemov
On Wed, Sep 25, 2019 at 04:30:51PM +0200, Vlastimil Babka wrote: > The commit 8974558f49a6 ("mm, page_owner, debug_pagealloc: save and dump > freeing stack trace") enhanced page_owner to also store freeing stack trace, > when debug_pagealloc is also enabled. KASAN would also like to do this [1] to

Re: [PATCH] sample/hw_breakpoint: avoid sample hw_breakpoint recursion for arm/arm64

2019-09-26 Thread Peter Zijlstra
On Mon, Sep 23, 2019 at 04:09:35PM +0800, wangxu wrote: > From: Wang Xu > > For x86/ppc, hw_breakpoint is triggered after the instruction is > executed. > > For arm/arm64, which is triggered before the instruction executed. > Arm/arm64 skips the instruction by using single step. But it only >

Re: [PATCH v4 4/8] mm/memory_hotplug: Poison memmap in remove_pfn_range_from_zone()

2019-09-26 Thread David Hildenbrand
On 26.09.19 11:10, Aneesh Kumar K.V wrote: > David Hildenbrand writes: > @@ -134,11 +134,12 @@ void memunmap_pages(struct dev_pagemap *pgmap) > >> mem_hotplug_begin(); >> +remove_pfn_range_from_zone(page_zone(pfn_to_page(pfn)), pfn, >> +

Re: [PATCH v4 2/8] mm/memory_hotplug: Don't access uninitialized memmaps in shrink_zone_span()

2019-09-26 Thread Aneesh Kumar K.V
David Hildenbrand writes: > Let's limit shrinking to !ZONE_DEVICE so we can fix the current code. We > should never try to touch the memmap of offline sections where we could > have uninitialized memmaps and could trigger BUGs when calling > page_to_nid() on poisoned pages. > > Stopping to

Re: mtd raw nand denali.c broken for Intel/Altera Cyclone V

2019-09-26 Thread Tim Sander
Hi Am Mittwoch, 11. September 2019, 04:37:46 CEST schrieb Masahiro Yamada: > Hi Dinh, > > On Wed, Sep 11, 2019 at 12:22 AM Dinh Nguyen wrote: > > On 9/10/19 8:48 AM, Tim Sander wrote: > > > Hi > > > > > > I have noticed that my SPF records where not in place after moving the > > > server, so

Re: [PATCH v4 4/8] mm/memory_hotplug: Poison memmap in remove_pfn_range_from_zone()

2019-09-26 Thread Aneesh Kumar K.V
David Hildenbrand writes: @@ -134,11 +134,12 @@ void memunmap_pages(struct dev_pagemap *pgmap) > mem_hotplug_begin(); > + remove_pfn_range_from_zone(page_zone(pfn_to_page(pfn)), pfn, > +PHYS_PFN(resource_size(res))); That should be part of PATCH 3?

[PATCH] arch/x86/boot: use prefix map to avoid embedded paths

2019-09-26 Thread Ross Burton
From: Bruce Ashfield It was observed that the kernel embeds the path in the x86 boot artifacts. >From https://bugzilla.yoctoproject.org/show_bug.cgi?id=13458: [ If you turn on the buildpaths QA test, or try a reproducible build, you discover that the kernel image contains build paths.

[GIT PULL] tracing/probe: Fix same probe event argument matching

2019-09-26 Thread Steven Rostedt
Linus, Srikar Dronamraju fixed a bug in the new multi probe code. Please pull the latest trace-v5.4-2 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git trace-v5.4-2 Tag SHA1: ba75d3b05b6e1e995b9c934f8e387c93e879c18b Head SHA1:

Re: [PATCH 1/3] mm, page_owner: fix off-by-one error in __set_page_owner_handle()

2019-09-26 Thread Kirill A. Shutemov
On Wed, Sep 25, 2019 at 04:30:50PM +0200, Vlastimil Babka wrote: > As noted by Kirill, commit 7e2f2a0cd17c ("mm, page_owner: record page owner > for > each subpage") has introduced an off-by-one error in __set_page_owner_handle() > when looking up page_ext for subpages. As a result, the head page

Re: [RFC PATCH] xen/gntdev: Stop abusing DT of_dma_configure API

2019-09-26 Thread Nicolas Saenz Julienne
On Wed, 2019-09-25 at 16:50 -0500, Rob Herring wrote: > As the comment says, this isn't a DT based device. of_dma_configure() > is going to stop allowing a NULL DT node, so this needs to be fixed. > > Not sure exactly what setup besides arch_setup_dma_ops is needed... > > Cc: Robin Murphy > Cc:

Re: [Patch V10 0/8] Tegra XUSB gadget driver support

2019-09-26 Thread Thierry Reding
On Mon, Sep 23, 2019 at 01:55:44PM +0530, Nagarjuna Kristam wrote: > Patches 1-3 are phy driver changes to add support for device > mode. > Patches 4-7 are changes related to XUSB device mode > controller driver. > Patch 8 is to enable drivers for XUDC support in defconfig > > Test Steps(USB

Re: [PATCH V2 1/2] string: Add stracpy and stracpy_pad mechanisms

2019-09-26 Thread Stephen Kitt
Le 26/09/2019 09:29, Rasmus Villemoes a écrit : On 26/09/2019 02.01, Stephen Kitt wrote: Le 25/09/2019 23:50, Andrew Morton a écrit : On Tue, 23 Jul 2019 06:51:36 -0700 Joe Perches wrote: Several uses of strlcpy and strscpy have had defects because the last argument of each function is

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-09-26 Thread Masahiro Yamada
Hi Geert, On Thu, Sep 26, 2019 at 5:54 PM Geert Uytterhoeven wrote: > > Hi Yamada-san, > > On Fri, Aug 30, 2019 at 5:44 AM Masahiro Yamada > wrote: > > Commit 9012d011660e ("compiler: allow all arches to enable > > CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable > > this option.

[PATCH net] net: dsa: qca8k: Use up to 7 ports for all operations

2019-09-26 Thread Michal Vokáč
The QCA8K family supports up to 7 ports. So use the existing QCA8K_NUM_PORTS define to allocate the switch structure and limit all operations with the switch ports. This was not an issue until commit 0394a63acfe2 ("net: dsa: enable and disable all ports") disabled all unused ports. Since the

Re: [PATCHv2] Bluetooth: trivial: tidy up printk message output from btrtl.

2019-09-26 Thread Rui Salvaterra
Hi, Marcel, On Thu, 26 Sep 2019 at 07:34, Marcel Holtmann wrote: > > Hi Rui, [patch snipped] > I have some similar patch in my tree. Can you check what is still missing and > send a new version. Thanks. Yeah, from a cursory look at your tree, it seems about the same as mine. I'll take a

Re: Regression in dbdda842fe96 ("printk: Add console owner and waiter logic to load balance console writes") [Was: Regression in fd5f7cde1b85 ("...")]

2019-09-26 Thread Petr Mladek
On Wed 2019-09-18 16:52:52, Sergey Senozhatsky wrote: > On (09/18/19 09:11), Uwe Kleine-König wrote: > > I rechecked and indeed fd5f7cde1b85's parent has the problem, too, so I > > did a mistake during my bisection :-| > > > > Redoing the bisection (a bit quicker this time) points to > > > >

Re: [PATCH v4 05/10] mm: Return faster for non-fatal signals in user mode faults

2019-09-26 Thread Peter Xu
On Tue, Sep 24, 2019 at 08:45:18AM -0700, Matthew Wilcox wrote: [...] > Oh, and while you're looking at the callers of handle_mm_fault(), a > lot of them don't check conditions in the right order. x86, at least, > handles FAULT_RETRY before handling FAULT_ERROR, which is clearly wrong. > >

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-09-26 Thread Geert Uytterhoeven
Hi Yamada-san, On Fri, Aug 30, 2019 at 5:44 AM Masahiro Yamada wrote: > Commit 9012d011660e ("compiler: allow all arches to enable > CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable > this option. A couple of build errors were reported by randconfig, > but all of them have been

Re: [PATCH V2 1/2] string: Add stracpy and stracpy_pad mechanisms

2019-09-26 Thread Rasmus Villemoes
On 26/09/2019 10.25, Stephen Kitt wrote: > Le 26/09/2019 09:29, Rasmus Villemoes a écrit : >> On 26/09/2019 02.01, Stephen Kitt wrote: >>> Le 25/09/2019 23:50, Andrew Morton a écrit : On Tue, 23 Jul 2019 06:51:36 -0700 Joe Perches wrote: >> >> Please don't. At least not for the cases

[PATCH 1/2] can: D_CAN: perform a sofware reset on open

2019-09-26 Thread Jeroen Hofstee
When the C_CAN interface is closed it is put in power down mode, but does not reset the error counters / state. So reset the D_CAN on open, so the reported state and the actual state match. According to [1], the C_CAN module doesn't have the software reset. [1]

[PATCH 2/2] can: C_CAN: add bus recovery events

2019-09-26 Thread Jeroen Hofstee
While the state is update when the error counters increase and decrease, there is no event when the bus recovers and the error counters decrease again. So add that event as well. Change the state going downward to be ERROR_PASSIVE -> ERROR_WARNING -> ERROR_ACTIVE instead of directly to

<    1   2   3   4   5   6   7   >