[PATCH v5 5/7] dmaengine: xilinx_dma: autodetect whether the HW supports scatter-gather

2018-09-07 Thread Andrea Merello
The AXIDMA and CDMA HW can be either direct-access or scatter-gather version. These are SW incompatible. The driver can handle both versions: a DT property was used to tell the driver whether to assume the HW is in scatter-gather mode. This patch makes the driver to autodetect this information.

[PATCH v5 4/7] dmaengine: xilinx_dma: program hardware supported buffer length

2018-09-07 Thread Andrea Merello
From: Radhey Shyam Pandey AXI-DMA IP supports configurable (c_sg_length_width) buffer length register width, hence read buffer length (xlnx,sg-length-width) DT property and ensure that driver doesn't program buffer length exceeding the supported limit. For VDMA and CDMA there is no change. Cc:

[PATCH v5 3/7] dt-bindings: dmaengine: xilinx_dma: add optional xlnx,sg-length-width property

2018-09-07 Thread Andrea Merello
The width of the "length register" cannot be autodetected, and it is now specified with a DT property. Add documentation for it. Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: Radhey Shyam Pandey Signed-off-by: Andrea Merello Reviewed-by: Radhey Shyam Pandey --- Changes

[PATCH v5 1/7] dmaengine: xilinx_dma: commonize DMA copy size calculation

2018-09-07 Thread Andrea Merello
This patch removes a bit of duplicated code by introducing a new function that implements calculations for DMA copy size. Suggested-by: Vinod Koul Signed-off-by: Andrea Merello --- Changes in v4: - introduce this patch in the patch series Changes in v5: None ---

[PATCH v5 2/7] dmaengine: xilinx_dma: in axidma slave_sg and dma_cyclic mode align split descriptors

2018-09-07 Thread Andrea Merello
Whenever a single or cyclic transaction is prepared, the driver could eventually split it over several SG descriptors in order to deal with the HW maximum transfer length. This could end up in DMA operations starting from a misaligned address. This seems fatal for the HW if DRE (Data Realignment

[PATCH v5 7/7] dmaengine: xilinx_dma: Drop SG support for VDMA IP

2018-09-07 Thread Andrea Merello
xilinx_vdma_start_transfer() is used only for VDMA IP, still it contains conditional code on has_sg variable. has_sg is set only whenever the HW does support SG mode, that is never true for VDMA IP. This patch drops the never-taken branches. Signed-off-by: Andrea Merello --- Changes in V4:

[PATCH v5 6/7] dt-bindings: dmaengine: xilinx_dma: drop has-sg property

2018-09-07 Thread Andrea Merello
This property is not needed anymore, because the driver now autodetects it. Delete references in documentation. Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: Radhey Shyam Pandey Signed-off-by: Andrea Merello Reviewed-by: Radhey Shyam Pandey Reviewed-by: Rob Herring ---

Re: [PATCH AUTOSEL 4.14 27/67] ARM: exynos: Define EINT_WAKEUP_MASK registers for S5Pv210 and Exynos5433

2018-09-07 Thread Krzysztof Kozlowski
On Fri, 7 Sep 2018 at 02:54, Sasha Levin wrote: > > From: Krzysztof Kozlowski > > [ Upstream commit e5cda42c16d89720c29678f51d95a119490ef7d8 ] > > S5Pv210 and Exynos5433/Exynos7 have different address of > EINT_WAKEUP_MASK register. Rename existing S5P_EINT_WAKEUP_MASK to > avoid confusion and

Re: [RFC PATCH 00/11] Avoid synchronous TLB invalidation for intermediate page-table entries on arm64

2018-09-07 Thread Jon Masters
On 09/05/2018 08:28 AM, Will Deacon wrote: > On Tue, Sep 04, 2018 at 02:38:02PM -0400, Jon Masters wrote: >> On 08/24/2018 11:52 AM, Will Deacon wrote: >> >>> I hacked up this RFC on the back of the recent changes to the mmu_gather >>> stuff in mainline. It's had a bit of testing and it looks

Re: [LKP] [tty] 0b4f83d510: INFO:task_blocked_for_more_than#seconds

2018-09-07 Thread Jiri Slaby
On 09/07/2018, 06:50 AM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 0b4f83d510f6fef6bb9da25f122c8d733d50516f ("[PATCH 2/4] tty: Hold > tty_ldisc_lock() during tty_reopen()") > url: >

Re: [PATCH v2 1/8] perf/x86: add a function to get the lbr stack

2018-09-07 Thread Wei Wang
On 09/07/2018 11:28 AM, Andi Kleen wrote: +int perf_get_lbr_stack(struct perf_lbr_stack *stack) +{ + stack->lbr_nr = x86_pmu.lbr_nr; + stack->lbr_tos = x86_pmu.lbr_tos; + stack->lbr_from = x86_pmu.lbr_from; + stack->lbr_to = x86_pmu.lbr_to; + + if

Re: [PATCH V3 00/26] C-SKY(csky) Linux Kernel Port

2018-09-07 Thread Guo Ren
On Thu, Sep 06, 2018 at 07:08:18PM -0700, Guenter Roeck wrote: > Hi, > > On Wed, Sep 05, 2018 at 08:07:39PM +0800, Guo Ren wrote: > > This is the 3th version patchset to add the Linux kernel port for > > C-SKY(csky). > > Thanks to everyone who provided feedback on the previous version. > > > >

Re: [PATCH V3 19/26] dt-bindings: timer: gx6605s SOC timer

2018-09-07 Thread Guo Ren
On Thu, Sep 06, 2018 at 10:02:29AM +0800, Guo Ren wrote: > On Wed, Sep 05, 2018 at 07:47:29PM -0500, Rob Herring wrote: > > On Wed, Sep 5, 2018 at 7:09 AM Guo Ren wrote: > > > > > > Signed-off-by: Guo Ren > > > --- > > > .../bindings/timer/csky,gx6605s-timer.txt | 46 > > >

[PATCH v8 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-09-07 Thread Alexey Budankov
Currently in record mode the tool implements trace writing serially. The algorithm loops over mapped per-cpu data buffers and stores ready data chunks into a trace file using write() system call. At some circumstances the kernel may lack free space in a buffer because the other buffer's half

[PATCH] Input: elantech - enable middle button of touchpad on ThinkPad P72

2018-09-07 Thread Aaron Ma
Adding 2 new touchpad IDs to support middle button support. Cc: sta...@vger.kernel.org Signed-off-by: Aaron Ma --- drivers/input/mouse/elantech.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index

[PATCH v8 1/3]: perf util: map data buffer for preserving collected data

2018-09-07 Thread Alexey Budankov
The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov --- Changes in v7: - implemented handling record.aio setting from perfconfig file

Re: [PATCH AUTOSEL 4.18 043/131] ASoC: soc-pcm: Use delay set in component pointer function

2018-09-07 Thread Agrawal, Akshu
On 9/7/2018 5:53 AM, Sasha Levin wrote: > On Mon, Sep 03, 2018 at 12:16:26PM +0100, Mark Brown wrote: >> On Sun, Sep 02, 2018 at 01:03:55PM +, Sasha Levin wrote: >>> From: Akshu Agrawal >>> >>> [ Upstream commit 9fb4c2bf130b922c77c16a8368732699799c40de ] >>> >>> Take into account the base

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-09-07 Thread Juri Lelli
On 06/09/18 16:25, Dietmar Eggemann wrote: > Hi Juri, > > On 08/23/2018 11:54 PM, Juri Lelli wrote: > > On 23/08/18 18:52, Dietmar Eggemann wrote: > > > Hi, > > > > > > On 08/21/2018 01:54 AM, Miguel de Dios wrote: > > > > On 08/17/2018 11:27 AM, Steve Muckle wrote: > > > > > From: John Dias >

[PATCH v8 2/3]: perf record: enable asynchronous trace writing

2018-09-07 Thread Alexey Budankov
Trace file offset is calculated and updated linearly prior enqueuing aio write at record__pushfn(). record__aio_sync() blocks till completion of started AIO operation and then proceeds. record__mmap_read_sync() implements a barrier for all incomplete aio write requests. Signed-off-by: Alexey

Re: [PATCH resend 0/2] irqchip: convert to SPDX for Renesas drivers

2018-09-07 Thread Marc Zyngier
On Fri, 07 Sep 2018 02:50:13 +0100, Kuninori Morimoto wrote: > > > Hi Thomas, Marc, Jason > > 2weeks passed. I resend this patch again > > Kuninori Morimoto (2): > pinctrl: sh-pfc: convert to SPDX identifiers > pinctrl: rza1: convert to SPDX identifiers > >

Re: [PATCH] vme: remove unneeded kfree

2018-09-07 Thread Greg Kroah-Hartman
On Thu, Sep 06, 2018 at 10:04:49PM -0700, Linus Torvalds wrote: > On Thu, Sep 6, 2018 at 1:51 AM Ding Xiang > wrote: > > > > put_device will call vme_dev_release to free vdev, kfree is > > unnecessary here. > > That does seem to be the case. I think "unnecessary" is overly kind, > it does seem

[PATCH 1/2] mtd: rawnand: denali: remove ->dev_ready() hook

2018-09-07 Thread Masahiro Yamada
The Denali NAND IP has no way to read out the current signal level of the R/B# pin. Instead, denali_dev_ready() checks if the R/B# transition has already happened. (The INTR__INT_ACT interrupt is asserted at the rising edge of the R/B# pin.) It is not a correct way to implement the ->dev_ready()

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

2018-09-07 Thread Masahiro Yamada
As I replied to Boris [1], I took a closer look for further cleanups. I test this series on my board. Remove mis-implemented ->dev_ready hook. Remove unnecessary device resetting because nand_scan_ident() reset devices anyway. [1] http://patchwork.ozlabs.org/patch/960160/ Masahiro Yamada

[PATCH 2/2] mtd: rawnand: denali: remove denali_reset_banks()

2018-09-07 Thread Masahiro Yamada
In nand_scan_ident(), the controller driver resets every NAND chip. This is done by sending NAND_CMD_RESET. The Denali IP provides another way to do the equivalent thing; if a bit is set in the DEVICE_RESET register, the controller sends the RESET command to the corresponding device.

Re: [PATCH 1/2] platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform.

2018-09-07 Thread Benson Leung
Hi Enric, On Wed, Jul 18, 2018 at 06:09:55PM +0200, Enric Balletbo i Serra wrote: > The cros-ec-lpc driver lives in drivers/platform because is platform > specific, however there are two includes (cros_ec_lpc_mec.h and > cros_ec_lpc_reg.h) that lives in include/linux/mfd. These two includes > are

Re: [PATCH v7 1/2] leds: core: Introduce LED pattern trigger

2018-09-07 Thread Pavel Machek
Hi! > +What:/sys/class/leds//hw_pattern > +Date:September 2018 > +KernelVersion: 4.20 > +Description: > + Specify a hardware pattern for the SC27XX LED. For the SC27XX > + LED controller, it only supports 4 hardware patterns to >

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Peter Zijlstra
On Wed, Sep 05, 2018 at 09:33:34PM -0400, Steven Rostedt wrote: > do_idle { > > [interrupts enabled] > > [interrupts disabled] > TRACE_IRQS_OFF [lockdep says irqs off] > [...] > TRACE_IRQS_IRET > test if pt_regs say return to interrupts enabled [yes] >

Re: [PATCH v9 3/6] kernel/reboot.c: export pm_power_off_prepare

2018-09-07 Thread Oleksij Rempel
Hi Mark, On Thu, Sep 06, 2018 at 11:15:17AM +0100, Mark Brown wrote: > On Mon, Aug 27, 2018 at 09:48:16AM +0800, Shawn Guo wrote: > > > Can you ACK on those two regulator patches, so that I can queue this > > series up on IMX tree? > > I was expecting to get a pull request with the precursor

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v4

2018-09-07 Thread Daniel Drake
On Thu, Sep 6, 2018 at 5:43 AM, Johannes Weiner wrote: > Peter, do the changes from v3 look sane to you? > > If there aren't any further objections, I was hoping we could get this > lined up for 4.20. That would be excellent. I just retested the latest version at

[PATCH v8 3/3]: perf record: extend trace writing to multi AIO

2018-09-07 Thread Alexey Budankov
Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With aio-cblocks option value different from 1, current

Re: [PATCH] sched/fair: fix load_balance redo for null imbalance

2018-09-07 Thread Vincent Guittot
Le Friday 07 Sep 2018 à 13:37:49 (+0200), Peter Zijlstra a écrit : > On Fri, Sep 07, 2018 at 09:51:04AM +0200, Vincent Guittot wrote: > > It can happen that load_balance finds a busiest group and then a busiest rq > > but the calculated imbalance is in fact null. > > Cute. Does that happen often?

Re: [PATCH 4/4] sched/numa: Do not move imbalanced load purely on the basis of an idle CPU

2018-09-07 Thread Mel Gorman
On Fri, Sep 07, 2018 at 01:33:09PM +0200, Peter Zijlstra wrote: > > --- > > kernel/sched/fair.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index d59d3e00a480..d4c289c11012 100644 > > --- a/kernel/sched/fair.c > >

Re: [GIT PULL] ext4 updates for 3.11

2018-09-07 Thread Greg KH
Digging up an email thread from 2013... On Wed, Jul 03, 2013 at 01:29:41PM +1000, Dave Chinner wrote: > On Tue, Jul 02, 2013 at 06:01:11PM -0700, Greg KH wrote: > > On Tue, Jul 02, 2013 at 05:58:15PM -0700, Linus Torvalds wrote: > > > On Tue, Jul 2, 2013 at 5:54 PM, Greg KH wrote: > > > > On

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 15:45:32 +0200 Peter Zijlstra wrote: > Yes really, we should not muck with the IRQ state from NMI context. Right, and we didn't. Your patch didn't change anything, but allow for printk_nmi_enter/exit() to be traced by ftrace, but that's wrong to begin with because it

Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 12:16:34PM +0200, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 01:22:57PM -0400, Johannes Weiner wrote: > > +enum psi_states { > > + PSI_IO_SOME, > > + PSI_IO_FULL, > > + PSI_MEM_SOME, > > + PSI_MEM_FULL, > > + PSI_CPU_SOME, > > + /* Only per-CPU, to weigh

Re: [PATCH v11 0/3] remain and optimize memblock_next_valid_pfn on arm and arm64

2018-09-07 Thread Will Deacon
On Thu, Sep 06, 2018 at 01:24:22PM +0200, Ard Biesheuvel wrote: > On 22 August 2018 at 05:07, Jia He wrote: > > Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns > > where possible") optimized the loop in memmap_init_zone(). But it causes > > possible panic bug. So Daniel

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Sergey Senozhatsky
On (09/07/18 16:03), Peter Zijlstra wrote: > > > > I would even argue that placing printk_nmi_enter() between > > lockdep_off() and ftrace_nmi_enter() is wrong because if in the future > > printk_nmi_enter() were to do any ftrace tracing, it wont be caught, as > > it was by having it before

Re: [tip:x86/paravirt] x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella

2018-09-07 Thread Juergen Gross
On 07/09/18 16:49, Borislav Petkov wrote: > Hi Jürgen, > > On Mon, Sep 03, 2018 at 08:01:40AM -0700, tip-bot for Juergen Gross wrote: >> Commit-ID: 6da63eb241a05b0e676d68975e793c0521387141 >> Gitweb: >> https://git.kernel.org/tip/6da63eb241a05b0e676d68975e793c0521387141 >> Author:

Re: [PATCH v6 1/5] seccomp: add a return code to trap to userspace

2018-09-07 Thread Tycho Andersen
Hey Tyler, On Thu, Sep 06, 2018 at 10:15:12PM +, Tyler Hicks wrote: > > +Users can read via ``ioctl(SECCOMP_NOTIF_RECV)`` (or ``poll()``) on a > > seccomp > > +notification fd to receive a ``struct seccomp_notif``, which contains five > > +members: the input length of the structure, a

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread Tetsuo Handa
On 2018/09/08 0:29, syzbot wrote: > syzbot has found a reproducer for the following crash on: > > HEAD commit:    28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. > git tree:   bpf > console output: https://syzkaller.appspot.com/x/log.txt?x=124e64d140 > kernel config: 

Re: [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-09-07 Thread Doug Anderson
Hi, On Fri, Sep 7, 2018 at 3:00 AM, wrote: >> In v2, I said: >> >>> I'm not sure where to comment about this, so adding it to the end: >>> >>> Between v1 and v2 you totally removed all the locking. Presumably >>> this is because you didn't want to hold the lock in >>> handle_fifo_timeout()

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-07 Thread Daniel Lustig
On 9/7/2018 9:09 AM, Will Deacon wrote: > On Fri, Sep 07, 2018 at 12:00:19PM -0400, Alan Stern wrote: >> On Thu, 6 Sep 2018, Andrea Parri wrote: >> Have you noticed any part of the generic code that relies on ordinary acquire-release (rather than atomic RMW acquire-release) in order to

Re: [PATCH v4 0/3] mtd: rawnand: ams-delta: Cleanups and optimizations

2018-09-07 Thread Tony Lindgren
Hi, * Janusz Krzysztofik [180905 20:56]: > On Wednesday, September 5, 2018 8:47:57 AM CEST Miquel Raynal wrote: > > Patch 2/3 does not apply on nand/next. Indeed the driver does not look > > the same as in the diff. > > That's because I built it on top of my former series from the mid of July,

[PATCH 1/4] 9p: acl: fix uninitialized iattr access

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet iattr is passed to v9fs_vfs_setattr_dotl which does send various values from iattr over the wire, even if it tells the server to only look at iattr.ia_valid fields this could leak some stack data. Addresses-Coverity-ID: 1195601 ("Uninitalized scalar variable")

[PATCH 3/4] 9p: p9dirent_read: check network-provided name length

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet strcpy to dirent->d_name could overflow the buffer, use strscpy to check the provided string length and error out if the size was too big. While we are here, make the function return an error when the pdu parsing failed, instead of returning the pdu offset as if it had

[PATCH 2/4] 9p/rdma: remove useless check in cm_event_handler

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet the client c is always dereferenced to get the rdma struct, so c has to be a valid pointer at this point. Gcc would optimize that away but let's make coverity happy... Addresses-Coverity-ID: 102778 ("Dereference before null check") Signed-off-by: Dominique Martinet ---

Re: [PATCH v3 0/4] pci-dra7xx: Enable errata i870 workaround for RC mode

2018-09-07 Thread Tony Lindgren
* Vignesh R [180810 10:10]: > > > On Wednesday 08 August 2018 10:27 PM, Lorenzo Pieralisi wrote: > > On Tue, Jul 24, 2018 at 11:01:46PM +0530, Vignesh R wrote: > >> Make workaround for errata i870 applicable in Host mode as > >> well(previously it was enabled only for EP mode) as per errata >

Re: [PATCH 4.4 31/43] mm: fix cache mode tracking in vm_insert_mixed()

2018-09-07 Thread Ben Hutchings
On Tue, 2018-08-14 at 19:18 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Dan Williams > > commit 87744ab3832b83ba71b931f86f9cfdb000d07da5 upstream > > vm_insert_mixed() unlike

Re: [PATCH 6/7] HID: logitech-hidpp: support the G700 over wireless

2018-09-07 Thread Harry Cutts
Hi Benjamin, On Fri, 7 Sep 2018 at 03:35, Benjamin Tissoires wrote: > > The G700 is using a non unifying receiver, so it's easy to add its support > in hid-logitech-hidpp now. > [snip] > @@ -3671,6 +3671,9 @@ static const struct hid_device_id hidpp_devices[] = { > { /* Solar Keyboard

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-07 Thread Alan Stern
On Fri, 7 Sep 2018, Daniel Lustig wrote: > On 9/7/2018 9:09 AM, Will Deacon wrote: > > On Fri, Sep 07, 2018 at 12:00:19PM -0400, Alan Stern wrote: > >> On Thu, 6 Sep 2018, Andrea Parri wrote: > >> > Have you noticed any part of the generic code that relies on ordinary > acquire-release

Re: [PATCH V2 6/8] input: stpmic1: add stpmic1 onkey driver

2018-09-07 Thread dmitry.torok...@gmail.com
Hi Pascal, On Fri, Sep 07, 2018 at 12:59:45PM +, Pascal PAILLET-LME wrote: > From: pascal paillet > > The stpmic1 pmic is able to manage an onkey button. This driver exposes > the stpmic1 onkey as an input device. It can also be configured to > shut-down the power supplies on a long

Re: [PATCH v2 0/3] mtd concat device driver

2018-09-07 Thread Bernhard Frauendienst
Apologies, again, I seem not to be able to handle git-send-mail correctly, the cover letter got lost in operation (using get_maintainers on a cover letter is not a good idea). Here it is again: Hi everybody, when porting my router board from a mach-file based OpenWRT target to a device-tree

Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

2018-09-07 Thread Luc Van Oostenryck
On Fri, Sep 07, 2018 at 10:22:56AM -0700, Nick Desaulniers wrote: > On Fri, Sep 7, 2018 at 7:34 AM Christophe LEROY > wrote: > > > > Cc linux-spa...@vger.kernel.org > > > > Le 07/09/2018 à 14:22, Christophe Leroy a écrit : > > > Since commit cafa0010cd51f ("Raise the minimum required gcc version

[PATCH] ring-buffer: Allow for rescheduling when removing pages

2018-09-07 Thread Vaibhav Nagarnaik
When reducing ring buffer size, pages are removed by scheduling a work item on each CPU for the corresponding CPU ring buffer. After the pages are removed from ring buffer linked list, the pages are free()d in a tight loop. The loop does not give up CPU until all pages are removed. In a worst case

Re: [PATCH] ring-buffer: Allow for rescheduling when removing pages

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 11:21:31 -0700 Vaibhav Nagarnaik wrote: > When reducing ring buffer size, pages are removed by scheduling a work > item on each CPU for the corresponding CPU ring buffer. After the pages > are removed from ring buffer linked list, the pages are free()d in a > tight loop. The

[PATCH] sched/fair: fix 1 task per CPU

2018-09-07 Thread Vincent Guittot
When CPUs have different capacity because of RT/DL tasks or micro-architecture or max frequency differences, there are situation where the imbalance is not correctly set to migrate waiting task on the idle CPU. The UC uses the force_balance case : if (env->idle != CPU_NOT_IDLE &&

Applied "spi: pic32: remove unnecessary of_node_get()" to the spi tree

2018-09-07 Thread Mark Brown
The patch spi: pic32: remove unnecessary of_node_get() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Applied "regmap: fix comment for regmap.use_single_write" to the regmap tree

2018-09-07 Thread Mark Brown
The patch regmap: fix comment for regmap.use_single_write has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-07 Thread Will Deacon
On Fri, Sep 07, 2018 at 12:00:19PM -0400, Alan Stern wrote: > On Thu, 6 Sep 2018, Andrea Parri wrote: > > > > Have you noticed any part of the generic code that relies on ordinary > > > acquire-release (rather than atomic RMW acquire-release) in order to > > > implement locking constructs? > >

[PATCH 2/6] md: convert to kvmalloc

2018-09-07 Thread Kent Overstreet
The code really just wants a big flat buffer, so just do that. Signed-off-by: Kent Overstreet Cc: Shaohua Li Cc: linux-r...@vger.kernel.org --- drivers/md/raid5-ppl.c | 7 ++-- drivers/md/raid5.c | 82 +++--- drivers/md/raid5.h | 9 ++--- 3 files

[PATCH 3/6] selinux: convert to kvmalloc

2018-09-07 Thread Kent Overstreet
The flex arrays were being used for constant sized arrays, so there's no benefit to using flex_arrays over something simpler. Signed-off-by: Kent Overstreet Cc: linux-security-mod...@vger.kernel.org --- security/selinux/ss/avtab.c | 40 +- security/selinux/ss/avtab.h | 4

[PATCH 4/6] Generic radix trees

2018-09-07 Thread Kent Overstreet
Very simple radix tree implementation that supports storing arbitrary size entries, up to PAGE_SIZE - upcoming patches will convert existing flex_array users to genradixes. The new genradix code has a much simpler API and implementation, and doesn't have a hard limit on the number of elements like

[PATCH 6/6] Drop flex_arrays

2018-09-07 Thread Kent Overstreet
All existing users have been converted to generic radix trees Signed-off-by: Kent Overstreet Acked-by: Dave Hansen --- Documentation/core-api/flexible-arrays.rst | 130 --- Documentation/flexible-arrays.txt | 123 --- include/linux/flex_array.h | 149

Re: [PATCH 0/3] ARM: OMAP1: ams-delta: Clean up GPIO setup for MODEM

2018-09-07 Thread Tony Lindgren
* Janusz Krzysztofik [180820 11:16]: > > Convert modem related GPIO setup from integer space to GPIO descriptors. > Also, restore original initialization order of the MODEM device and its > related GPIO pins. > > Cleanup of MODEM relaated regulator setup is postponed while waiting for >

[PATCH 1/6] openvswitch: convert to kvmalloc

2018-09-07 Thread Kent Overstreet
There was no real need for this code to be using flexarrays, it's just implementing a hash table - ideally it would be using rhashtables, but that conversion would be significantly more complicated. Signed-off-by: Kent Overstreet Cc: Pravin B Shelar Cc: d...@openvswitch.org ---

[PATCH 0/6] flex_arrays -> genradix; prep work for bcachefs

2018-09-07 Thread Kent Overstreet
Generic radix trees are a dead simple radix tree implementation that can store types of different sizes, needed for bcachefs. The patch series was sent out previously and was pretty uncontroversial - this is a respin that converts most users to just use kvmalloc. Kent Overstreet (6):

Re: [PATCH v13 11/13] platform/x86: Intel SGX driver

2018-09-07 Thread Sean Christopherson
On Thu, Sep 06, 2018 at 05:50:01PM -0700, Joe Perches wrote: > On Thu, 2018-09-06 at 19:35 +0200, Miguel Ojeda wrote: > > > Which one is right and why the kernel tree is polluted with C99-headers > > > when they do not pass checkpatch.pl? > > checkpatch ignores c99 headers since 2016. Jarkko was

Re: [PATCH] mfd: ti-lmu: constify mfd_cell tables

2018-09-07 Thread Dan Murphy
Pavel On 09/07/2018 04:39 AM, Pavel Machek wrote: > On Wed 2018-08-29 11:31:08, Pavel Machek wrote: >> From: Sebastian Reichel >> >> mfd: ti-lmu: constify mfd_cell tables >> >> Add const attribute to all mfd_cell structures. >> >> Signed-off-by: Sebastian Reichel >> Signed-off-by:

Re: [PATCH 2/6] md: convert to kvmalloc

2018-09-07 Thread Matthew Wilcox
On Fri, Sep 07, 2018 at 12:56:31PM -0400, Kent Overstreet wrote: > @@ -165,7 +164,7 @@ ops_run_partial_parity(struct stripe_head *sh, struct > raid5_percpu *percpu, > struct dma_async_tx_descriptor *tx) > { > int disks = sh->disks; > - struct page **srcs =

Re: [PATCH] ASoC: max98373: usleep_range() needs include/delay.h

2018-09-07 Thread Mark Brown
On Fri, Sep 07, 2018 at 10:52:24AM -0700, Grant Grundler wrote: > On Fri, Sep 7, 2018 at 5:11 AM Mark Brown wrote: > > Note that this isn't causing a warning upstream, presumably due to an > > implicit inclusion that isn't present in the v4.4 kernel that you appear > > to be using, or gets

[PATCH v6 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-07 Thread Brijesh Singh
Currently, the per-cpu pvclock data is allocated dynamically when cpu > HVC_BOOT_ARRAY_SIZE. The physical address of this variable is shared between the guest and the hypervisor hence it must be mapped as unencrypted (ie. C=0) when SEV is active. The C-bit works on a page, hence we will be

[PATCH v6 3/5] x86/mm: add .data..decrypted section to hold shared variables

2018-09-07 Thread Brijesh Singh
kvmclock defines few static variables which are shared with the hypervisor during the kvmclock initialization. When SEV is active, memory is encrypted with a guest-specific key, and if guest OS wants to share the memory region with hypervisor then it must clear the C-bit before sharing it.

[PATCH v6 4/5] x86/kvm: use __decrypted attribute in shared variables

2018-09-07 Thread Brijesh Singh
Commit: 368a540e0232 (x86/kvmclock: Remove memblock dependency) caused SEV guest regression. When SEV is active, we map the shared variables (wall_clock and hv_clock_boot) with C=0 to ensure that both the guest and the hypervisor are able to access the data. To map the variables we use

Re: Patch "arm64: mm: always enable CONFIG_HOLES_IN_ZONE" has been added to the 4.9-stable tree

2018-09-07 Thread Nathan Chancellor
On Fri, Sep 07, 2018 at 02:57:51PM +0200, gre...@linuxfoundation.org wrote: > > This is a note to let you know that I've just added the patch titled > > arm64: mm: always enable CONFIG_HOLES_IN_ZONE > > to the 4.9-stable tree which can be found at: > >

Re: [PATCH] of: Split up name & type in modalias generation

2018-09-07 Thread Rob Herring
On Fri, Sep 7, 2018 at 9:22 AM Thierry Reding wrote: > > From: Thierry Reding > > The kernel's vsnprintf() implementation discards all alpha-numeric > characters following a %p conversion specifier. This is done in order to > generically skip any of the various modifiers that the kernel

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-07 Thread Alan Stern
On Thu, 6 Sep 2018, Andrea Parri wrote: > > Have you noticed any part of the generic code that relies on ordinary > > acquire-release (rather than atomic RMW acquire-release) in order to > > implement locking constructs? > > There are several places in code where the "lock-acquire" seems to be

Re: [PATCH] apparmor: Fix network performance issue in aa_label_sk_perm

2018-09-07 Thread John Johansen
On 09/06/2018 09:33 PM, Tony Jones wrote: > The netperf benchmark shows a 5.73% reduction in throughput for > small (64 byte) transfers by unconfined tasks. > > DEFINE_AUDIT_SK() in aa_label_sk_perm() should not be performed > unconditionally, rather only when the label is confined. > >

[PATCH 0/4] 9p coverity fixes

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet Since we already had one coverity fix for 9p, I figured I could request an account and look at stuff that actually could matter. The leak of glock.client_id wasn't found by coverity but when I was looking at a false positive there, of the rest the rdma one is useless

[PATCH 4/4] 9p locks: fix glock.client_id leak in do_lock

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet the 9p client code overwrites our glock.client_id pointing to a static buffer by an allocated string holding the network provided value which we do not care about; free and reset the value as appropriate. This is almost identical to the leak in v9fs_file_getlock() fixed

Re: [PATCH 01/12] blkcg: fix ref count issue with bio_blkcg using task_css

2018-09-07 Thread Tejun Heo
On Thu, Sep 06, 2018 at 05:10:34PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > The accessor function bio_blkcg either returns the blkcg associated with > the bio or finds one in the current context. This can cause an issue > when trying to associate a bio with a blkcg.

[PATCH] firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings

2018-09-07 Thread Sudeep Holla
Replace all the memcpy() for copying name strings from the firmware with strlcpy() to make sure we are bounded by the source buffer size and we also always have NULL-terminated strings. This is needed to avoid out of bounds accesses if the firmware returns a non-terminated string. Reported-by:

Re: [PATCH 2/2] Add tests for memory.oom.group

2018-09-07 Thread Roman Gushchin
On Fri, Sep 07, 2018 at 09:49:24AM -0700, jgka...@fb.com wrote: > From: Jay Kamat > > Add tests for memory.oom.group for the following cases: > - Killing all processes in a leaf cgroup, but leaving the > parent untouched > - Killing all processes in a parent and leaf cgroup > - Keeping

[PATCH 5/6] proc: commit to genradix

2018-09-07 Thread Kent Overstreet
the new generic radix trees have a simpler API and implementation, and no limitations on number of elements, so all flex_array users are being converted Signed-off-by: Kent Overstreet Cc: Al Viro --- fs/proc/base.c | 43 +++ 1 file changed, 15

Re: [PATCH 4.4 105/124] xen-netfront: wait xenbus state change when load module manually

2018-09-07 Thread Boris Ostrovsky
On 09/06/2018 08:21 PM, Ben Hutchings wrote: > On Sat, 2018-08-04 at 11:01 +0200, Greg Kroah-Hartman wrote: >> 4.4-stable review patch.  If anyone has any objections, please let me know. >> >> -- >> >> From: Xiao Liang >> >> [ Upstream commit

Re: [PATCH v2 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants)

2018-09-07 Thread Tony Lindgren
* Tony Lindgren [180829 19:40]: > * H. Nikolaus Schaller [180829 07:24]: > > Hi OMAP3 DTS Maintainers, > > is there any progress in merging this patch series? > > Looks good to me in general, I'll be getting into applying > patches for v4.20 in few days. Applying all into omap-for-v4.20/dt

Re: Regression in next with filesystem context concept

2018-09-07 Thread Andreas Kemnade
Hi, On Fri, 7 Sep 2018 09:10:23 -0700 Tony Lindgren wrote: > * David Howells [180907 08:51]: > > Tony Lindgren wrote: > > > > > Looks like next-20180906 now has a regression where mounting > > > root won't work with commit fd0002870b45 ("vfs: Implement a > > > filesystem superblock

[RESEND PATCH] mm: percpu: remove unnecessary unlikely()

2018-09-07 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Acked-by: Dennis Zhou Cc: Tejun Heo Cc: zijun_hu Cc: Christoph Lameter Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/percpu.c | 2 +- 1 file changed, 1

Re: [PATCH v2 2/9] nios2: build .dtb files in dts directory

2018-09-07 Thread Rob Herring
On Thu, Sep 6, 2018 at 9:21 PM Ley Foon Tan wrote: > > On Wed, 2018-09-05 at 18:53 -0500, Rob Herring wrote: > > Align nios2 with other architectures which build the dtb files in the > > same directory as the dts files. This is also in line with most other > > build targets which are located in

Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

2018-09-07 Thread Nick Desaulniers
On Fri, Sep 7, 2018 at 11:13 AM Luc Van Oostenryck wrote: > > On Fri, Sep 07, 2018 at 10:22:56AM -0700, Nick Desaulniers wrote: > > On Fri, Sep 7, 2018 at 7:34 AM Christophe LEROY > > wrote: > > > > > > Cc linux-spa...@vger.kernel.org > > > > > > Le 07/09/2018 à 14:22, Christophe Leroy a écrit

Re: [PATCH 1/2] Fix cg_read_strcmp()

2018-09-07 Thread Jay Kamat
Shuah Khan writes: > On 09/07/2018 10:49 AM, jgka...@fb.com wrote: >> From: Jay Kamat >> >> Fix a couple issues with cg_read_strcmp(), to improve correctness of >> cgroup tests >> - Fix cg_read_strcmp() always returning 0 for empty "needle" strings >> - Fix a memory leak in cg_read_strcmp() >>

Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

2018-09-07 Thread Luc Van Oostenryck
On Fri, Sep 07, 2018 at 11:19:43AM -0700, Nick Desaulniers wrote: > On Fri, Sep 7, 2018 at 11:13 AM Luc Van Oostenryck wrote: > > > > Sparse expand these macros to the same version than the compiler used > > to compile GCC. I find a bit strange though to have sparse v0.5.2 but > > using an old

[PATCH v2] optee: allow to work without static shared memory

2018-09-07 Thread Volodymyr Babchuk
From: Volodymyr Babchuk On virtualized systems it is possible that OP-TEE will provide only dynamic shared memory support. So it is fine to boot without static SHM enabled if dymanic one is supported. Signed-off-by: Volodymyr Babchuk --- Changes from v1: Patch is now can be applied to

[GIT PULL] MD update for 4.19-rc2

2018-09-07 Thread Shaohua Li
Hi, Please pull MD fixes for 4.19-rc2: - Fix a locking issue for md-cluster from Guoqing - Fix a sync crash for raid10 from Ni - Fix a reshape bug with raid5 cache enabled from Me Thanks, Shaohua The following changes since commit 420f51f4ab6bce6e580390729fadb89c31123636: Merge tag

Re: [PATCH] mtd: rawnand: denali: add DT property to specify skipped bytes in OOB

2018-09-07 Thread Masahiro Yamada
Hi Boris, 2018-09-07 23:53 GMT+09:00 Boris Brezillon : > On Fri, 7 Sep 2018 23:42:53 +0900 > Masahiro Yamada wrote: > >> Hi Boris, >> >> 2018-09-07 23:08 GMT+09:00 Boris Brezillon : >> > Hi Masahiro, >> > >> > On Fri, 7 Sep 2018 19:56:23 +0900 >> > Masahiro Yamada wrote: >> > >> >> NAND

Re: Regression in next with filesystem context concept

2018-09-07 Thread Tony Lindgren
* David Howells [180907 08:51]: > Tony Lindgren wrote: > > > Looks like next-20180906 now has a regression where mounting > > root won't work with commit fd0002870b45 ("vfs: Implement a > > filesystem superblock creation/configuration context"). > > Am I right in thinking you're not using any

[PATCH] cpufreq: remove unnecessary unlikely()

2018-09-07 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Srivatsa S. Bhat Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH v2 3/3] x86/pti/64: Remove the SYSCALL64 entry trampoline

2018-09-07 Thread Josh Poimboeuf
On Mon, Sep 03, 2018 at 03:59:44PM -0700, Andy Lutomirski wrote: > The SYSCALL64 trampoline has a couple of nice properties: > > - The usual sequence of SWAPGS followed by two GS-relative accesses to >set up RSP is somewhat slow because the GS-relative accesses need >to wait for SWAPGS

[REGRESSION] Commit 5745392e0c2b ("PCI: Apply the new generic I/O management on PCI IO hosts") breaks PCI for legacy virtio devices with kvmtool on arm64

2018-09-07 Thread Will Deacon
Hi all, I'm seeing a regression in Linux guests since 4.17 under kvmtool, where legacy virtio devices using the PCI transport fail to probe. Legacy virtio PCI devices must be accessed via "I/O space" (e.g. BAR0, which is IORESOURCE_IO) and kvmtool assigns this to the guest physical range 0x0 -

Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 04:58:58PM +0200, Peter Zijlstra wrote: > On Fri, Sep 07, 2018 at 10:44:22AM -0400, Johannes Weiner wrote: > > > > This does the whole seqcount thing 6x, which is a bit of a waste. > > > > [...] > > > > > It's a bit cumbersome, but that's because of C. > > > > I was

Re: [PATCH 3/6] selinux: convert to kvmalloc

2018-09-07 Thread Kent Overstreet
On Sat, Sep 08, 2018 at 02:08:03AM +0900, Tetsuo Handa wrote: > On 2018/09/08 1:56, Kent Overstreet wrote: > > @@ -329,8 +328,7 @@ int avtab_alloc(struct avtab *h, u32 nrules) > > nslot = MAX_AVTAB_HASH_BUCKETS; > > mask = nslot - 1; > > > > - h->htable =

  1   2   3   4   5   6   7   8   9   10   >