[PATCH] kbuild: clang: disable unused variable warnings only when constant

2018-02-06 Thread Prasad Sodagudi
Currently, GCC disables -Wunused-const-variable, but not -Wunused-variable, so warns unused variables if they are non-constant. While, Clang does not warn unused variables at all regardless of the const qualifier because -Wno-unused-const-variable is implied by the stronger option -Wno-unused-vari

Re: staging: ion: ION allocation fall back order depends on heap linkage order

2018-02-06 Thread Laura Abbott
On 01/28/2018 08:24 AM, Alexey Skidanov wrote: Hi, According to my understanding, the allocation fall back order completely depends on heap->id that is assigned during the heap creation: plist_for_each_entry(heap, &dev->heaps, node) { /* if the caller didn't specify this heap id */

linux-next: manual merge of the btrfs-kdave tree with Linus' tree

2018-02-06 Thread Stephen Rothwell
Hi David, Today's linux-next merge of the btrfs-kdave tree got a conflict in: fs/btrfs/tree-log.c between commit: c7f88c4e78f5 ("btrfs: convert to new i_version API") from Linus' tree and commit: 8bd2a9b19fd7 ("btrfs: Remove custom crc32c init code") from the btrfs-kdave tree. I fixed

Re: [PATCH 2/2] x86/speculation: Simplify indirect_branch_prediction_barrier()

2018-02-06 Thread Josh Poimboeuf
On Tue, Feb 06, 2018 at 11:31:18PM +, David Woodhouse wrote: > > > On Tue, 2018-02-06 at 17:25 -0600, Josh Poimboeuf wrote: > > On Tue, Feb 06, 2018 at 07:44:52PM +, David Woodhouse wrote: > > > > > > On Fri, 2018-01-26 at 21:08 +0100, Borislav Petkov wrote: > > > > > > > > Make it all

[PATCH] selftests/android: Fix line continuation in Makefile

2018-02-06 Thread Daniel Díaz
The Makefile lacks a couple of line continuation backslashes in an `if' clause, which can make the subsequent rsync command go awry over the whole filesystem (`rsync -a / /`). /bin/sh: -c: line 5: syntax error: unexpected end of file make[1]: [all] Error 1 (ignored) TEST=$DIR"_test.sh"; \

Re: [PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions

2018-02-06 Thread Andi Kleen
> The reason for that complexity is purely the system call fastpath case > that no longer exists, I think. > > Am I missing something? Yes merging the macros should be fine without fast path. But for push, on older CPUs (older AMD, most Atoms, really old Intel big core) sub+mov is a lot faster

[PATCHv2 1/1] ext4/f2fs: don't put symlink in pagecache into highmem

2018-02-06 Thread Jin Qian
From: Jin Qian partial backport from 21fc61c73c3903c4c312d0802da01ec2b323d174 upstream to v4.4 to prevent virt_to_page on highmem. ext4_encrypted_follow_link uses kmap() for cpage caddr = kmap(cpage); _ext4_fname_disk_to_usr calls virt_to_page on the kmapped address. _ext4_fname_disk_to_usr

Re: [PATCH v3] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-02-06 Thread Laura Abbott
On 01/31/2018 10:10 PM, Alexey Skidanov wrote: On 01/31/2018 03:00 PM, Greg KH wrote: On Wed, Jan 31, 2018 at 02:03:42PM +0200, Alexey Skidanov wrote: Any driver may access shared buffers, created by ion, using dma_buf_vmap and dma_buf_vunmap dma-buf API that maps/unmaps previosuly allocated b

[PATCH] ACPI / CPPC: Use 64-bit arithmetic instead of 32-bit

2018-02-06 Thread Gustavo A. R. Silva
Add suffix ULL to constant 500 in order to give the compiler complete information about the proper arithmetic to use. Notice that this constant is used in a context that expects an expression of type u64 (64 bits, unsigned). The expression NUM_RETRIES * cppc_ss->latency at line 578, which at prepr

[RFC PATCH 1/4] Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()"

2018-02-06 Thread David Woodhouse
This reverts commit 64e16720ea0879f8ab4547e3b9758936d483909b. We cannot call C functions like that, without marking all the call-clobbered registers as, well, clobbered. We might have got away with it for now because the __ibp_barrier() function was *fairly* unlikely to actually use any other regi

[RFC PATCH 2/4] KVM: x86: Reduce retpoline performance impact in slot_handle_level_range()

2018-02-06 Thread David Woodhouse
With retpoline, tight loops of "call this function for every XXX" are very much pessimised by taking a prediction miss *every* time. This one showed up very high in our early testing. By marking the iterator slot_handle_…() functions always_inline, we can ensure that the indirect function call can

[RFC PATCH 4/4] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-06 Thread David Woodhouse
The original IBRS hack in microcode is horribly slow. For the next generation of CPUs, as a stopgap until we get a proper fix, Intel promise an "Enhanced IBRS" which will be fast. The assumption is that predictions in the BTB/RSB will be tagged with the VMX mode and ring that they were learned in,

[PATCH] video: fbdev: vermilion: use 64-bit arithmetic instead of 32-bit

2018-02-06 Thread Gustavo A. R. Silva
Cast _pitch_ to u64 in order to give the compiler complete information about the proper arithmetic to use. Notice that this variable is being used in a context that expects an expression of type u64 (64 bits, unsigned). The expression pitch * var->yres_virtual is currently being evaluated using 32

[RFC PATCH 0/4] Retpoline / IBRS_ALL

2018-02-06 Thread David Woodhouse
Using retpoline ensures the kernel is safe because it doesn't contain any indirect branches, but firmware still can — and we make calls into firmware at runtime. Where the IBRS microcode support is available, use that before calling into firmware. While doing that, I noticed that we were calling C

[RFC PATCH] vfio/pci: Add ioeventfd support

2018-02-06 Thread Alex Williamson
The ioeventfd here is actually irqfd handling of an ioeventfd such as supported in KVM. A user is able to pre-program a device write to occur when the eventfd triggers. This is yet another instance of eventfd-irqfd triggering between KVM and vfio. The impetus for this is high frequency writes to

[RFC PATCH 3/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-06 Thread David Woodhouse
Retpoline means the kernel is safe because it has no indirect branches. But firmware isn't, so use IBRS for firmware calls if it's available. Signed-off-by: David Woodhouse --- arch/x86/include/asm/apm.h | 6 ++ arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/efi

Re: [PATCH] kbuild: clang: disable unused variable warnings only when constant

2018-02-06 Thread Masahiro Yamada
2018-02-07 8:46 GMT+09:00 Prasad Sodagudi : > Currently, GCC disables -Wunused-const-variable, but not > -Wunused-variable, so warns unused variables if they are > non-constant. > > While, Clang does not warn unused variables at all regardless of > the const qualifier because -Wno-unused-const-vari

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Dan Williams
On Tue, Feb 6, 2018 at 2:52 PM, Linus Torvalds wrote: > On Tue, Feb 6, 2018 at 1:37 PM, Dan Williams wrote: >> >> At that point we're basically just back to the array_ptr() version >> that returned a sanitized pointer to an array element. > > .. that one does an extra unnecessary 'andq' instead o

Re: [RESEND RFC PATCH V3] sched: Improve scalability of select_idle_sibling using SMT balance

2018-02-06 Thread Subhra Mazumdar
On 02/06/2018 01:12 AM, Peter Zijlstra wrote: On Mon, Feb 05, 2018 at 02:09:11PM -0800, Subhra Mazumdar wrote: The pseudo random is also used for choosing a random core to compare with, how will transposing achieve that? Not entirely sure what your point is. Current code doesn't compare to ju

Re: [PATCH 1/1] scsi: storvsc: Spread interrupts when picking a channel for I/O requests

2018-02-06 Thread Martin K. Petersen
Michael, > Update the algorithm in storvsc_do_io to look for a channel starting > with the current CPU + 1 and wrap around (within the current NUMA > node). This spreads VMbus interrupts more evenly across CPUs. Previous > code always started with first CPU in the current NUMA node, skewing > the

Re: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices

2018-02-06 Thread Martin K. Petersen
Michael, > Increase cmd_per_lun to allow more I/Os in progress per device, > particularly for NVMe's. The Hyper-V host side can handle the higher > count with no issues. Applied to 4.16/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering

mmotm 2018-02-06-16-41 uploaded

2018-02-06 Thread akpm
The mm-of-the-moment snapshot 2018-02-06-16-41 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH] staging: android: ion: minor cleanup for ion_page_pool

2018-02-06 Thread Yisheng Xie
Hi Laura, On 2018/2/7 6:51, Laura Abbott wrote: > On 01/31/2018 01:50 AM, Yisheng Xie wrote: >> ion_page_pool.c now is used to apply pool APIs for system heap, which do >> not need do any initial at device_initcall. >> >> Meanwhile, this patch also remove some useless include files. >> > > Acked-

[PATCH] ARM: multi_v7_defconfig: Enable serial console on RPi 3

2018-02-06 Thread Tuomas Tynkkynen
The Raspberry Pi 3 uses the 8250-based auxilary UART of the BCM2837 SoC as the primary serial console of the board, so enable it in the multiplatform defconfig. Signed-off-by: Tuomas Tynkkynen --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm

Re: [PATCH 1/2] staging: android: ion: Remove dead code in ion_page_pool_free

2018-02-06 Thread Yisheng Xie
Hi Laura, On 2018/2/7 7:11, Laura Abbott wrote: > On 02/06/2018 03:10 PM, Laura Abbott wrote: >> On 02/04/2018 07:26 PM, Yisheng Xie wrote: >>> ion_page_pool_add will always return 0, however ion_page_pool_free will >>> call ion_page_pool_free_pages when ion_page_pool_add's return value is >>> not

Re: [PATCH] char: rtc: remove unused rtc_control() API

2018-02-06 Thread Alexandre Belloni
On 07/02/2018 at 00:24:11 +0100, Arnd Bergmann wrote: > On Tue, Feb 6, 2018 at 11:12 PM, Alexandre Belloni > wrote: > > Since commit 34ce71a96dcb ("ALSA: timer: remove legacy rtctimer"), the > > rtc_register/rtc_control/rtc_unregister API is unused. As it is highly > > unlikely to be needed again,

Re: [PATCH v2] mm: hwpoison: disable memory error handling on 1GB hugepage

2018-02-06 Thread Naoya Horiguchi
Hi Punit, On Mon, Feb 05, 2018 at 03:05:43PM +, Punit Agrawal wrote: > Naoya Horiguchi writes: > > > Recently the following BUG was reported: > > > > Injecting memory failure for pfn 0x3c at process virtual address > > 0x7fe3 > > Memory failure: 0x3c: recovery action

[PATCH] net: ethernet: ti: cpsw: fix net watchdog timeout

2018-02-06 Thread Grygorii Strashko
It was discovered that simple program which indefinitely sends 200b UDP packets and runs on TI AM574x SoC (SMP) under RT Kernel triggers network watchdog timeout in TI CPSW driver (<6 hours run). The network watchdog timeout is triggered due to race between cpsw_ndo_start_xmit() and cpsw_tx_handler

Re: [PATCH v3 1/2] drm/virtio: Add window server support

2018-02-06 Thread Michael S. Tsirkin
On Tue, Feb 06, 2018 at 03:23:02PM +0100, Gerd Hoffmann wrote: > > Creation of shareable buffer by guest > > - > > > > 1. Client requests virtio driver to create a buffer suitable for sharing > > with host (DRM_VIRTGPU_RESOURCE_CREATE) > > client or

Re: [PATCH v3 0/2] phy: rockchip-emmc: fixes emmc-phy power on failed with rk3399 SoCs

2018-02-06 Thread Caesar Wang
Kishon, Can you help merge this in your  or next tree?  I'm hoping that we can land this somewhere.:-) Thanks, -Caesar 在 2018年01月11日 10:40, Caesar Wang 写道: Hi Kishon, Since the Shawn isn't available, I take over this series patches for now. As the original bug had tracked on https://issuet

Re: [PATCH v8 1/7] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-06 Thread Randy Dunlap
On 02/06/2018 12:27 PM, Tim Harvey wrote: > From: Hans Verkuil > > Add the v4l2_hdmi_colorimetry() function so we have a single function > that determines the colorspace, YCbCr encoding, quantization range and > transfer function from the InfoFrame data. > > Signed-off-by: Hans Verkuil > Signed

Re: [PATCH v4 07/10] x86: narrow out of bounds syscalls to sys_read under speculation

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 4:33 PM, Dan Williams wrote: > > Should we go with array_element_nospec() in the meantime? So we're not > depending on jump labels? With the constraint fix and killing that > superfluous AND the assembly is now: > > e26: 48 81 fd 4d 01 00 00cmp$0x14d,%rbp

Re: [PATCH] scsi: libfc: remove redundant initialization of 'disc'

2018-02-06 Thread Martin K. Petersen
Colin, > Pointer disc is being intializated a value that is never read and then > re-assigned the same value later on, hence the initialization is redundant > and can be removed. Applied to 4.17/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

linux-next: manual merge of the kvm tree with the arm64 tree

2018-02-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/arm64/include/asm/pgtable-prot.h between commit: 41acec624087 ("arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0()") from the arm64 tree and commit: d0e22b4ac3ba ("KVM: arm/arm64: Limit icache

Re: [PATCH 5/6] scsi: qedi: fix building with LTO

2018-02-06 Thread Martin K. Petersen
Arnd, > When link-time optimizations are enabled, qedi fails to build because > of mismatched prototypes: Applied to 4.17/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH tip-pti 2/2] x86/entry: interleave XOR register clearing with PUSH/MOV instructions

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 3:54 PM, Andi Kleen wrote: > > But for push, on older CPUs (older AMD, most Atoms, really old Intel big core) > sub+mov is a lot faster than push because push has additional dependencies > causing pipeline bubbles. So you would make these cases slower if you > use PUSH. I r

Re: [PATCH] scsi: qedf: remove redundant initialization of 'fcport'

2018-02-06 Thread Martin K. Petersen
Colin, > Pointer fcport is initialized with a value that is never read, it is > re-assigned a new value later on, hence the initialization is redundant > and can be removed. Applied to 4.17/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH]nvme-pci: Fixes EEH failure on ppc

2018-02-06 Thread Ming Lei
On Tue, Feb 06, 2018 at 02:01:05PM -0600, wenxiong wrote: > On 2018-02-06 10:33, Keith Busch wrote: > > On Mon, Feb 05, 2018 at 03:49:40PM -0600, wenxi...@vmlinux.vnet.ibm.com > > wrote: > > > @@ -1189,6 +1183,12 @@ static enum blk_eh_timer_return > > > nvme_timeout(struct request *req, bool reserv

[PATCH v5 4/4] irqchip/gic-v3-its: add ability to resend MAPC on resume

2018-02-06 Thread Derek Basehore
This adds functionality to resend the MAPC command to an ITS node on resume. If the ITS is powered down during suspend and the collections are not backed by memory, the ITS will lose that state. This just sets up the known state for the collections after the ITS is restored. This is enabled via th

[PATCH v5 3/4] DT/arm,gic-v3-its: add reset-on-suspend property

2018-02-06 Thread Derek Basehore
This adds documentation for the new reset-on-suspend property. This property enables saving and restoring the ITS for when it loses state in system suspend. Signed-off-by: Derek Basehore --- Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt | 3 +++ 1 file changed, 3 insertio

[PATCH v13 2/4] fw_cfg: add DMA register

2018-02-06 Thread Marc-André Lureau
Add an optional kernel module (or command line) parameter using the following syntax: [qemu_fw_cfg.]ioport=@[::[:]] or [qemu_fw_cfg.]mmio=@[::[:]] and initializes the register address using given or default offset. Signed-off-by: Marc-André Lureau Reviewed-by: Gabriel Somlo ---

[PATCH v5 2/4] irqchip/gic-v3-its: add ability to save/restore ITS state

2018-02-06 Thread Derek Basehore
Some platforms power off GIC logic in suspend, so we need to save/restore state. The distributor and redistributor registers need to be handled in platform code due to access permissions on those registers, but the ITS registers can be restored in the kernel. Signed-off-by: Derek Basehore --- dr

[PATCH] x86/nospec: Fixup array_index_nospec_mask() asm constraint

2018-02-06 Thread Dan Williams
Allow the compiler to handle @size as an immediate value rather than allocating a register. Reported-by: Linus Torvalds Cc: Ingo Molnar Cc: Andy Lutomirski Cc: H. Peter Anvin Cc: Thomas Gleixner Signed-off-by: Dan Williams --- arch/x86/include/asm/barrier.h |2 +- 1 file changed, 1 inse

[PATCH v13 1/4] crash: export paddr_vmcoreinfo_note()

2018-02-06 Thread Marc-André Lureau
The following patch is going to use the symbol from the fw_cfg module, to call the function and write the note location details in the vmcoreinfo entry, so qemu can produce dumps with the vmcoreinfo note. CC: Andrew Morton CC: Baoquan He CC: Dave Young CC: Dave Young CC: Hari Bathini CC: Tony

[PATCH v5 0/5] GICv3 Save and Restore

2018-02-06 Thread Derek Basehore
A lot of changes in v2. The distributor and redistributor saving and restoring is left to the PSCI/firmware implementation after discussions with ARM. This reduces the line changes by a lot and removes now unneeded patches. Patches are verified on an RK3399 platform with pending patches in the ARM

[PATCH v13 4/4] RFC: fw_cfg: do DMA read operation

2018-02-06 Thread Marc-André Lureau
Modify fw_cfg_read_blob() to use DMA if the device supports it. Return errors, because the operation may fail. So far, only one call in fw_cfg_register_dir_entries() is using kmalloc'ed buf and is thus clearly eligible to DMA read. Initially, I didn't implement DMA read to speed up boot time, but

[PATCH v13 3/4] fw_cfg: write vmcoreinfo details

2018-02-06 Thread Marc-André Lureau
If the "etc/vmcoreinfo" fw_cfg file is present and we are not running the kdump kernel, write the addr/size of the vmcoreinfo ELF note. The DMA operation is expected to run synchronously with today qemu, but the specification states that it may become async, so we run "control" field check in a lo

[PATCH v5 1/4] cpu_pm: add syscore_suspend error handling

2018-02-06 Thread Derek Basehore
If cpu_cluster_pm_enter() fails, cpu_pm_exit() should be called. This will put the CPU in the correct state to resume from the failure. Signed-off-by: Derek Basehore --- kernel/cpu_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/cpu_pm.c b/kernel/cpu_pm.c index 67b02e138a47..0

[PATCH v13 0/4] fw_cfg: add DMA operations & etc/vmcoreinfo support

2018-02-06 Thread Marc-André Lureau
Hi, This series adds DMA operations support to the qemu fw_cfg kernel module and populates "etc/vmcoreinfo" with vmcoreinfo location details (entry added since qemu 2.11 with -device vmcoreinfo). v13: - reorder patch series, introduce DMA write before DMA read - do some measurements of DMA read s

[RFCv3 00/17] Request API, take three

2018-02-06 Thread Alexandre Courbot
As discussed yesterday, here is a rebase on the media master branch. A few minor fixes for typos have also slept in, but otherwise this is equivalent to v2. I expect to have the buffer queueing behavior fixed in the next version. Alexandre Courbot (9): media: add request API core and UAPI medi

[RFCv3 11/17] v4l2-ctrls: add v4l2_ctrl_request_setup

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil Add a helper function that can set controls from a request. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ctrls.c | 71 include/media/v4l2-ctrls.h | 2 + 2 files changed, 73 inse

[RFCv3 04/17] media: vb2: add support for requests in QBUF ioctl

2018-02-06 Thread Alexandre Courbot
Support the request argument of the QBUF ioctl. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ioctl.c | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-

[RFCv3 09/17] v4l2-ctrls: use ref in helper instead of ctrl

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil The next patch needs the reference to a control instead of the control itself, so change struct v4l2_ctrl_helper accordingly. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ctrls.c | 18 +- 1 file changed, 9 ins

[RFCv3 01/17] media: add request API core and UAPI

2018-02-06 Thread Alexandre Courbot
The request API provides a way to group buffers and device parameters into units of work to be queued and executed. This patch introduces the UAPI and core framework. This patch is based on the previous work by Laurent Pinchart. The core has changed considerably, but the UAPI is mostly untouched.

[RFCv3 13/17] videodev2.h: add request_fd field to v4l2_ext_controls

2018-02-06 Thread Alexandre Courbot
Allow to specify a request to be used with the S_EXT_CTRLS and G_EXT_CTRLS operations. Signed-off-by: Alexandre Courbot --- include/uapi/linux/videodev2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 4

[RFCv3 16/17] media: vim2m: add media device

2018-02-06 Thread Alexandre Courbot
Request API requires a media node. Add one to the vim2m driver so we can use requests with it. Signed-off-by: Alexandre Courbot --- drivers/media/platform/vim2m.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform

[RFCv3 17/17] media: vim2m: add request support

2018-02-06 Thread Alexandre Courbot
Set the necessary ops for supporting requests in vim2m. Signed-off-by: Alexandre Courbot --- drivers/media/platform/vim2m.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c index e0eb60

[RFCv3 15/17] v4l2: document the request API interface

2018-02-06 Thread Alexandre Courbot
Document how the request API can be used along with the existing V4L2 interface. Signed-off-by: Alexandre Courbot --- Documentation/media/uapi/v4l/buffer.rst| 10 +- Documentation/media/uapi/v4l/common.rst| 1 + Documentation/media/uapi/v4l/request-api.rst | 236

[RFCv3 07/17] v4l2-ctrls: prepare internal structs for request API

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil Add a refcount and is_request bool to struct v4l2_ctrl_handler: this is used to refcount a handler that represents a request. Add a p_req field to struct v4l2_ctrl_ref that will store the request value. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drive

Re: [PATCH] x86/nospec: Fixup array_index_nospec_mask() asm constraint

2018-02-06 Thread Linus Torvalds
On Tue, Feb 6, 2018 at 5:33 PM, Dan Williams wrote: > Allow the compiler to handle @size as an immediate value rather than > allocating a register. Actually, maybe that "ir" should be "g". Because it's fine if it's a memory location too. "cmp" takes pretty much anything, as long as the thing we

[RFCv3 14/17] v4l2-ctrls: support requests in EXT_CTRLS ioctls

2018-02-06 Thread Alexandre Courbot
Read and use the request_fd field of struct v4l2_ext_controls to apply VIDIOC_G_EXT_CTRLS or VIDIOC_S_EXT_CTRLS to a request when asked by userspace. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ioctl.c | 36 1 file changed, 36 insertions

[RFCv3 12/17] v4l2: add request API support

2018-02-06 Thread Alexandre Courbot
Add a v4l2 request entity data structure that takes care of storing the request-related state of a V4L2 device ; in this case, its controls. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/Makefile | 2 +- drivers/media/v4l2-core/v4l2-request.c | 54 ++

[RFCv3 10/17] v4l2-ctrls: support g/s_ext_ctrls for requests

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil The v4l2_g/s_ext_ctrls functions now support control handlers that represent requests. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ctrls.c | 37 1 file changed, 33 insertions(+), 4 deleti

[RFCv3 08/17] v4l2-ctrls: add core request API

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil Add the four core request functions: v4l2_ctrl_request_init() initializes a new (empty) request. v4l2_ctrl_request_clone() resets a request based on another request (or clears it if that request is NULL). v4l2_ctrl_request_get(): increase refcount v4l2_ctrl_request_put(): decr

[RFCv3 03/17] media: videobuf2: add support for requests

2018-02-06 Thread Alexandre Courbot
Make vb2 aware of requests. Drivers can specify whether a given queue can accept requests or not. Queues that accept requests will block on a buffer that is part of a request until that request is submitted. Signed-off-by: Alexandre Courbot --- drivers/media/common/videobuf2/videobuf2-core.c | 1

[RFCv3 06/17] v4l2-ctrls: v4l2_ctrl_add_handler: add from_other_dev

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil Add a 'bool from_other_dev' argument: set to true if the two handlers refer to different devices (e.g. it is true when inheriting controls from a subdev into a main v4l2 bridge driver). This will be used later when implementing support for the request API since we need to skip

[RFCv3 02/17] videodev2.h: Add request_fd field to v4l2_buffer

2018-02-06 Thread Alexandre Courbot
From: Hans Verkuil When queuing buffers allow for passing the request that should be associated with this buffer. Signed-off-by: Hans Verkuil [acour...@chromium.org: make request ID 32-bit] Signed-off-by: Alexandre Courbot --- drivers/media/common/videobuf2/videobuf2-v4l2.c | 3 ++- drivers/m

[RFCv3 05/17] media: Document the media request API

2018-02-06 Thread Alexandre Courbot
From: Laurent Pinchart The media request API is made of a new ioctl to implement request management. Document it. Signed-off-by: Laurent Pinchart [acour...@chromium.org: adapt for newest API] Signed-off-by: Alexandre Courbot --- Documentation/media/uapi/mediactl/media-funcs.rst | 1 + .../

Re: [PATCH] char: nvram: disable on ARM

2018-02-06 Thread Alexandre Belloni
On 06/02/2018 at 23:55:02 +0100, Arnd Bergmann wrote: > * arch/arm/kernel/time.c has this code > > #if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) || \ > defined(CONFIG_NVRAM) || defined(CONFIG_NVRAM_MODULE) > /* this needs a better home */ > DEFINE_SPINLOCK(rtc_lock);

Re: [PATCH] x86/nospec: Fixup array_index_nospec_mask() asm constraint

2018-02-06 Thread Dan Williams
On Tue, Feb 6, 2018 at 5:50 PM, Linus Torvalds wrote: > On Tue, Feb 6, 2018 at 5:33 PM, Dan Williams wrote: >> Allow the compiler to handle @size as an immediate value rather than >> allocating a register. > > Actually, maybe that "ir" should be "g". > > Because it's fine if it's a memory locatio

Re: [PATCH 1/2] of_pci_irq: add a check to fallback to standard device tree parsing

2018-02-06 Thread Ryder Lee
Hi, Arnd On Wed, 2018-02-07 at 09:31 +1100, Benjamin Herrenschmidt wrote: > On Tue, 2018-02-06 at 13:42 +0800, Ryder Lee wrote: > > Thanks for explanation. > > > > So I guess the better way to achieve my aim - one IRQ per slot that is > > connected to all INTx and get propagated through the bridg

RE: [RFC, PATCH v1] platform/x86: intel-vbtn: Convert to pure ACPI driver

2018-02-06 Thread Mario.Limonciello
>Yeah, that's fixed in the branch. >P.S. Apologies for top-posting, wrote from phone in order to not waste time Andy, I tested your review branch on XPS 9365 which uses power button through intel-vbtn. I confirmed it worked properly both with usage in OS and during S2I. Thanks,

Re: [PATCH 2/6] nvme-pci: fix the freeze and quiesce for shutdown and reset case

2018-02-06 Thread jianchao.wang
Hi Keith Thanks for your time and kindly response on this. On 02/06/2018 11:13 PM, Keith Busch wrote: > On Tue, Feb 06, 2018 at 09:46:36AM +0800, jianchao.wang wrote: >> Hi Keith >> >> Thanks for your kindly response. >> >> On 02/05/2018 11:13 PM, Keith Busch wrote: >>> but how many requests are

linux-next: build failure after merge of the vhost tree

2018-02-06 Thread Stephen Rothwell
Hi Michael, After merging the vhost tree, today's linux-next build (x86_64 allmodconfig) failed like this: Caused by commit 96bcd04462b9 ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT") I have used the vhost tree from next-20180206 for today. -- Cheers, Stephen Rothwell

Re: [PATCH 2/6] nvme-pci: fix the freeze and quiesce for shutdown and reset case

2018-02-06 Thread jianchao.wang
Hi Keith Sorry for bothering you again. On 02/07/2018 10:03 AM, jianchao.wang wrote: > Hi Keith > > Thanks for your time and kindly response on this. > > On 02/06/2018 11:13 PM, Keith Busch wrote: >> On Tue, Feb 06, 2018 at 09:46:36AM +0800, jianchao.wang wrote: >>> Hi Keith >>> >>> Thanks for

Re: [PATCHv2 1/1] ext4: don't put symlink in pagecache into highmem

2018-02-06 Thread Theodore Ts'o
On Tue, Feb 06, 2018 at 03:38:09PM -0800, Eric Biggers wrote: > I don't think backporting this change for other filesystems is particularly > important, since if I understand correctly, the reasons that Al made the > change > originally were: > > - to allow following symlinks in RCU mode, but tha

Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-06 Thread Paul E. McKenney
On Tue, Feb 06, 2018 at 01:19:29PM +0300, Kirill Tkhai wrote: > Recent times kvmalloc() begun widely be used in kernel. > Some of such memory allocations have to be freed after > rcu grace period, and this patchset introduces a generic > primitive for doing this. > > Actually, everything is made i

Re: [GIT PULL REQUEST] watchdog - v4.16 merge window

2018-02-06 Thread Guenter Roeck
On 02/05/2018 10:42 AM, Guenter Roeck wrote: On Mon, Feb 05, 2018 at 09:50:54AM -0800, Linus Torvalds wrote: On Mon, Feb 5, 2018 at 2:20 AM, Wim Van Sebroeck wrote: git://www.linux-watchdog.org/linux-watchdog.git Hmm. I really want to know why I should pull this. You have the shortlog an

Re: [PATCH -mm] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-06 Thread Huang, Ying
Minchan Kim writes: > On Tue, Feb 06, 2018 at 09:34:44PM +0800, huang ying wrote: >> On Tue, Feb 6, 2018 at 5:02 PM, Minchan Kim wrote: >> > On Tue, Feb 06, 2018 at 04:39:18PM +0800, Huang, Ying wrote: >> >> Hi, Minchan, >> >> >> >> Minchan Kim writes: >> >> >> >> > Hi Huang, >> >> > >> >> > On

[PATCH v2] x86/nospec: Fixup array_index_nospec_mask() asm constraint

2018-02-06 Thread Dan Williams
Allow the compiler to handle @size as an immediate value or memory directly rather than allocating a register. Reported-by: Linus Torvalds Cc: Ingo Molnar Cc: Andy Lutomirski Cc: H. Peter Anvin Cc: Thomas Gleixner Signed-off-by: Dan Williams --- v2: use the 'g' constraint since CMP handles m

Re: [PATCH] arm64: Enable SPRD_TIMER

2018-02-06 Thread Chunyan Zhang
Hi Baolin, On 6 February 2018 at 18:36, Baolin Wang wrote: > Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used > as tick broadcast device. > > Signed-off-by: Baolin Wang > --- > arch/arm64/Kconfig.platforms |1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch

Re: Can RCU stall lead to hard lockups?

2018-02-06 Thread Serge E. Hallyn
On Sat, Feb 03, 2018 at 12:50:32PM -0800, Paul E. McKenney wrote: > On Fri, Feb 02, 2018 at 05:44:30PM -0600, Serge E. Hallyn wrote: > > Quoting Paul E. McKenney (paul...@linux.vnet.ibm.com): > > > On Tue, Jan 09, 2018 at 06:11:14AM -0800, Tejun Heo wrote: > > > > Hello, Paul. > > > > > > > > On M

Re: linux-next: build failure after merge of the vhost tree

2018-02-06 Thread Michael S. Tsirkin
N_F_FREE_PAGE_HINT") > > I have used the vhost tree from next-20180206 for today. > > -- > Cheers, > Stephen Rothwell Thanks, I'll revert to that too. -- MST

Re: Can RCU stall lead to hard lockups?

2018-02-06 Thread Paul E. McKenney
On Tue, Feb 06, 2018 at 08:33:03PM -0600, Serge E. Hallyn wrote: > On Sat, Feb 03, 2018 at 12:50:32PM -0800, Paul E. McKenney wrote: > > On Fri, Feb 02, 2018 at 05:44:30PM -0600, Serge E. Hallyn wrote: > > > Quoting Paul E. McKenney (paul...@linux.vnet.ibm.com): > > > > On Tue, Jan 09, 2018 at 06:1

Re: linux-next: build failure after merge of the vhost tree

2018-02-06 Thread Stephen Rothwell
commit > > 96bcd04462b9 ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT") > > I have used the vhost tree from next-20180206 for today. -- Cheers, Stephen Rothwell

Re: Can RCU stall lead to hard lockups?

2018-02-06 Thread Serge E. Hallyn
On Tue, Feb 06, 2018 at 06:53:37PM -0800, Paul E. McKenney wrote: > On Tue, Feb 06, 2018 at 08:33:03PM -0600, Serge E. Hallyn wrote: > > On Sat, Feb 03, 2018 at 12:50:32PM -0800, Paul E. McKenney wrote: > > > On Fri, Feb 02, 2018 at 05:44:30PM -0600, Serge E. Hallyn wrote: > > > > Quoting Paul E. M

Re: linux-next: build failure after merge of the vhost tree

2018-02-06 Thread Michael S. Tsirkin
> > ERROR: "page_poisoning_enabled" [drivers/virtio/virtio_balloon.ko] undefined! > > > Caused by commit > > > > 96bcd04462b9 ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT") > > > > I have used the vhost tree from next-20180206 for today.

[GIT PULL] gcc-plugins updates for v4.16-rc1

2018-02-06 Thread Kees Cook
Hi Linus, Please pull these gcc-plugins changes for v4.16-rc1. This is a small set of changes entirely in support of the coming gcc 8 release. Thanks! -Kees The following changes since commit d8a5b80568a9cb66810e75b182018e9edb68e8ff: Linux 4.15 (2018-01-28 13:20:33 -0800) are available in t

Re: [PATCH] atm: idt77252: Replace mdelay with usleep_range in idt77252_preset

2018-02-06 Thread Maciej W. Rozycki
On Fri, 26 Jan 2018, Jia-Ju Bai wrote: > diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c > index 0277f36..cea4bf2 100644 > --- a/drivers/atm/idt77252.c > +++ b/drivers/atm/idt77252.c > @@ -3563,7 +3563,7 @@ static int idt77252_preset(struct idt77252_dev *card) > > /* Software

Re: [PATCH] net: ethernet: ti: cpsw: fix net watchdog timeout

2018-02-06 Thread Ivan Khoronzhuk
On Tue, Feb 06, 2018 at 07:17:06PM -0600, Grygorii Strashko wrote: > It was discovered that simple program which indefinitely sends 200b UDP > packets and runs on TI AM574x SoC (SMP) under RT Kernel triggers network > watchdog timeout in TI CPSW driver (<6 hours run). The network watchdog > timeout

Re: [PATCH 01/18] tracing: Add function based events

2018-02-06 Thread Steven Rostedt
On Mon, 5 Feb 2018 10:00:50 -0500 Steven Rostedt wrote: > On Mon, 5 Feb 2018 09:24:23 +0100 > Jiri Olsa wrote: > > > > should this be done under 'func_event_mutex' ? > > Probably. I think we only need to add the list. > > > > > I tried and crashed the system by running 2 scripts with: >

Re: [PATCH] arm64: Enable SPRD_TIMER

2018-02-06 Thread Baolin Wang
On 7 February 2018 at 10:31, Chunyan Zhang wrote: > Hi Baolin, > > On 6 February 2018 at 18:36, Baolin Wang wrote: >> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used >> as tick broadcast device. >> >> Signed-off-by: Baolin Wang >> --- >> arch/arm64/Kconfig.platforms |

Re: Can RCU stall lead to hard lockups?

2018-02-06 Thread Paul E. McKenney
On Tue, Feb 06, 2018 at 08:55:04PM -0600, Serge E. Hallyn wrote: > On Tue, Feb 06, 2018 at 06:53:37PM -0800, Paul E. McKenney wrote: > > On Tue, Feb 06, 2018 at 08:33:03PM -0600, Serge E. Hallyn wrote: > > > On Sat, Feb 03, 2018 at 12:50:32PM -0800, Paul E. McKenney wrote: > > > > On Fri, Feb 02, 2

[PATCH v26 2/2 RESEND] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-02-06 Thread Wei Wang
Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates the support of reporting hints of guest free pages to host via virtio-balloon. Host requests the guest to report free page hints by sending a new cmd id to the guest via the free_page_report_cmd_id configuration register. When t

Re: [PATCH v2 06/16] arm64: dts: mt7622: add cpufreq related device nodes

2018-02-06 Thread Viresh Kumar
On 06-02-18, 17:52, sean.w...@mediatek.com wrote: > cpus { > #address-cells = <2>; > #size-cells = <0>; > @@ -26,6 +70,10 @@ > device_type = "cpu"; > compatible = "arm,cortex-a53", "arm,armv8"; > reg

[PATCH] memremap: fix softlockup reports at teardown

2018-02-06 Thread Dan Williams
The cond_resched() currently in the setup path needs to be duplicated in the teardown path. Rather than require each instance of for_each_device_pfn() to open code the same sequence, embed it in the helper. Link: https://github.com/intel/ixpdimm_sw/issues/11 Cc: "Jérôme Glisse" Cc: Michal Hocko

Re: [PATCH 12/15] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-02-06 Thread Sricharan R
Hi Abhishek, >> +// SPDX-License-Identifier: GPL-2.0 >> +// Copyright (c) 2017, The Linux Foundation. All rights reserved. >> + >> +#include "qcom-ipq4019-ap.dk07.1.dtsi" >> + >> +/ { >> +    model = "Qualcomm Technologies, Inc. IPQ40xx/AP-DK07.1-C2"; > >  s/IPQ40xx/IPQ4019 > ok >> + >> +   

Re: [PATCH] crypto: s5p-sss.c: Fix kernel Oops in AES-ECB mode

2018-02-06 Thread Anand Moon
Hi Kamil On 6 February 2018 at 22:40, Kamil Konieczny wrote: > > On 06.02.2018 17:48, Anand Moon wrote: >> Hi Kamil, >> >> Thanks for providing the fix to this issue. >> >> On 5 February 2018 at 23:10, Kamil Konieczny >> wrote: >>> >>> In AES-ECB mode crypt is done with key only, so any use of I

[PATCH 2/2] staging: android: ion: Combine cache and uncache pools

2018-02-06 Thread Yisheng Xie
Now we call dma_map in the dma_buf API callbacks and handle explicit caching by the dma_buf sync API, which make cache and uncache pools in the same handling flow, which can be combined. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.c | 5 -- drivers/staging/android

[PATCH 1/2] staging: android: ion: Cleanup ion_page_pool_alloc_pages

2018-02-06 Thread Yisheng Xie
ion_page_pool_alloc_pages calls alloc_pages to allocate pages for page pools. If alloc_pages return NULL, it will return NULL, or it will return the pages allocate from alloc_pages. So we can just return alloc_pages without any judgement. Signed-off-by: Yisheng Xie --- drivers/staging/android/io

<    4   5   6   7   8   9   10   >