Re: [PATCH] mm: Use octal not symbolic permissions

2018-03-28 Thread Michal Hocko
On Mon 26-03-18 15:22:32, Joe Perches wrote: > mm/*.c files use symbolic and octal styles for permissions. > > Using octal and not symbolic permissions is preferred by many as more > readable. > > https://lkml.org/lkml/2016/8/2/1945 > > Prefer the direct use of octal for permissions. > > Done

[PATCH 1/2] crypto: thunderx_zip: Fix fallout from CONFIG_VMAP_STACK

2018-03-28 Thread Jan Glauber
Enabling virtual mapped kernel stacks breaks the thunderx_zip driver. On compression or decompression the executing CPU hangs in an endless loop. The reason for this is the usage of __pa by the driver which does no longer work for an address that is not part of the 1:1 mapping. The zip driver

[PATCH 2/2] crypto: thunderx_zip: Limit result reading attempts

2018-03-28 Thread Jan Glauber
After issuing a request an endless loop was used to read the completion state from memory which is asynchronously updated by the ZIP coprocessor. Add an upper bound to the retry attempts to prevent a CPU getting stuck forever in case of an error. Additionally, add a read memory barrier and a

Jeg venter på at høre fra dig

2018-03-28 Thread Mr.Yuehan Pan
God dag, Jeg er Mr. Yuehan Pan, direktør for Bank of China Jeg leder efter en leder / investeringspartner, der vil arbejde sammen med mig for en fælles virksomhed. Kontakt mig i min private email for flere detaljer. email (yuehanpa...@gmail.com) Venter på at høre fra dig. Tak skal du have,

[PATCH -next] drm/amdgpu: fix error return code in amdgpu_amdkfd_gpuvm_create_process_vm()

2018-03-28 Thread Wei Yongjun
Fix to return error code -ENOMEM from the eviction fence create fail error handling case instead of 0, as done elsewhere in this function. Fixes: a46a2cd103a8 ("drm/amdgpu: Add GPUVM memory management functions for KFD") Signed-off-by: Wei Yongjun ---

Re: [PATCH v5 11/12] PCI: designware-ep: Make dw_pcie_ep_reset_bar() handle 64-bit BARs properly

2018-03-28 Thread Gustavo Pimentel
Hi Niklas, On 28/03/2018 12:50, Niklas Cassel wrote: > Since a 64-bit BAR consists of a BAR pair, we need to write to both > BARs in the BAR pair to clear the BAR properly. > > Signed-off-by: Niklas Cassel > --- > drivers/pci/dwc/pcie-designware-ep.c | 4 > 1 file

Re: [PATCH] fbdev: aty: fix missing indentation in if statement

2018-03-28 Thread Bartlomiej Zolnierkiewicz
On Thursday, March 15, 2018 06:16:24 PM Colin King wrote: > From: Colin Ian King > > There is a missing indentation following an if statement, fix this. > > Detected by Coccinelle: > drivers/video/fbdev/aty/mach64_ct.c:183:2-15: code aligned with > following code on

Re: [PATCH] xfs: always free inline data before resetting inode fork during ifree

2018-03-28 Thread Michal Hocko
On Wed 28-03-18 01:11:55, Sasha Levin wrote: > On Tue, Mar 27, 2018 at 09:06:37AM +0200, Michal Hocko wrote: > >On Mon 26-03-18 19:54:31, Sasha Levin wrote: > >[...] > >> About half a year ago. I'm not sure about the no visibility part - > >> maintainers and authors would receive at least 3 mails

tip/x86/dma fix for arc and s390 (at least)

2018-03-28 Thread Christoph Hellwig
Hi all, this restores previous __GFP_ZERO passthrough behavior for now as arc and s390 rely on it. Needs more work to sort out the API mess in the long run.

Re: [PATCH 4.14 000/101] 4.14.31-stable review

2018-03-28 Thread Guenter Roeck
On 03/27/2018 09:26 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.31 release. There are 101 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 4.15 000/105] 4.15.14-stable review

2018-03-28 Thread Guenter Roeck
On 03/27/2018 09:26 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.15.14 release. There are 105 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH] samples/bpf: fix spelling mistake: "revieve" -> "receive"

2018-03-28 Thread Daniel Borkmann
On 03/28/2018 12:07 PM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in error message text > > Signed-off-by: Colin Ian King Applied to bpf-next, thanks Colin!

[PATCHv4] irqchip: arm-gic: take gic_lock when updating irq type

2018-03-28 Thread Aniruddha Banerjee
From: Aniruddha Banerjee The kernel documentation states that the locking of the irq-chip registers should be handled by the irq-chip driver. In the irq-gic, the accesses to the irqchip are seemingly not protected and multiple writes to SPIs from different irq descriptors

Re: [PATCH v2 19/21] gcc-plugins: test GCC plugin support in Kconfig

2018-03-28 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > Run scripts/gcc-plugin.sh from Kconfig. Users can enable GCC_PLUGINS > only when it is supported. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > >

[PATCH v5 00/12] PCI endpoint 64-bit BAR fixes

2018-03-28 Thread Niklas Cassel
PCI endpoint fixes to improve the way 64-bit BARs are handled. There are still future improvements that could be made: pci-epf-test.c always allocates space for 6 BARs, even when using 64-bit BARs (which really only requires us to allocate 3 BARs). pcitest.sh will print "NOT OKAY" for BAR1,

[PATCH v5 05/12] PCI: endpoint: Setting a BAR size > 4 GB is invalid if 64-bit flag is not set

2018-03-28 Thread Niklas Cassel
Setting a BAR size > 4 GB is invalid if PCI_BASE_ADDRESS_MEM_TYPE_64 flag is not set. This sanity check is done in pci_epc_set_bar(), so that we don't need to do this sanity check in all epc->ops->set_bar() implementations. Signed-off-by: Niklas Cassel ---

[PATCH v5 01/12] PCI: endpoint: BAR width should not depend on sizeof dma_addr_t

2018-03-28 Thread Niklas Cassel
If a BAR supports 64-bit width or not depends on the hardware, and should thus not depend on sizeof(dma_addr_t). If a certain hardware doesn't support 64-bit BARs, its epc->ops->set_bar() implementation should return -EINVAL when PCI_BASE_ADDRESS_MEM_TYPE_64 is set. We can't change

Re: [PATCH v5 1/4] ioremap: Update pgtable free interfaces with addr

2018-03-28 Thread kbuild test robot
Hi Chintan, Thank you for the patch! Yet something to improve: [auto build test ERROR on v4.16-rc7] [also build test ERROR on next-20180328] [cannot apply to arm64/for-next/core tip/x86/core asm-generic/master] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH v2 21/21] arm64: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig

2018-03-28 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > This becomes much neater in Kconfig. > > Signed-off-by: Masahiro Yamada Is there a reason this doesn't have a cc-option test, or was this a silent addition to the compiler?

[PATCH v5 02/12] PCI: endpoint: Simplify epc->ops->set_bar()/pci_epc_set_bar()

2018-03-28 Thread Niklas Cassel
Add barno and flags to struct epf_bar. That way we can simplify epc->ops->set_bar()/pci_epc_set_bar() by passing a struct *epf_bar instead of a whole lot of arguments. This is needed so that epc->ops->set_bar() implementations can modify BAR flags. Will be utilized in a succeeding patch.

[PATCH] tracing: Uninitialized variable in create_tracing_map_fields()

2018-03-28 Thread Dan Carpenter
Smatch complains that idx can be used uninitialized when we check if (idx < 0). It has to be the first iteration through the loop and the HIST_FIELD_FL_STACKTRACE bit has to be clear and the HIST_FIELD_FL_VAR bit has to be set to reach the bug. Fixes: 30350d65ac56 ("tracing: Add variable support

Re: [PATCH] drm/atmel-hlcdc: add command line option to specify preferred depth

2018-03-28 Thread Daniel Vetter
On Wed, Mar 28, 2018 at 09:34:54AM +0200, Boris Brezillon wrote: > Hi Peter, > > On Mon, 26 Mar 2018 09:35:02 +0200 > Peter Rosin wrote: > > > I have an sama5d31-based system with 64MB of memory and a 1920x1080 > > LVDS display wired for 16-bpp. When I enable legacy fbdev

Re: [PATCH 01/16] initrd: Add generic code path for common initrd unloading logic.

2018-03-28 Thread Geert Uytterhoeven
On Wed, Mar 28, 2018 at 2:04 PM, Christoph Hellwig wrote: >> +#ifdef CONFIG_INITRAMFS_GENERIC_UNLOAD >> +void free_initrd_mem(unsigned long start, unsigned long end) >> +{ >> + free_reserved_area((void *)start, (void *)end, -1, "initrd"); >> +} >> +#endif > > Given how

Re: [PATCH v5 1/4] ioremap: Update pgtable free interfaces with addr

2018-03-28 Thread Chintan Pandya
On 3/28/2018 5:20 PM, kbuild test robot wrote: @725 if (!pmd_free_pte_page([i])) My bad ! Will fix this in v7 Chintan -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative

Re: [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support

2018-03-28 Thread Stefan Berger
On 03/28/2018 08:14 AM, Dr. Greg Wettstein wrote: On Wed, Mar 28, 2018 at 07:10:12AM -0400, Stefan Berger wrote: Good morning, I hope the day is starting out well for everyone. On 03/27/2018 07:01 PM, Eric W. Biederman wrote: Stefan Berger writes: From: Yuqiong

Re: [RFC PATCH for 4.17 02/21] rseq: Introduce restartable sequences system call (v12)

2018-03-28 Thread Peter Zijlstra
On Tue, Mar 27, 2018 at 12:05:23PM -0400, Mathieu Desnoyers wrote: > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > index fb5fc458547f..66b070444a7e 100644 > --- a/kernel/sched/sched.h > +++ b/kernel/sched/sched.h > @@ -1249,6 +1249,7 @@ static inline void __set_task_cpu(struct

[PATCH V3 0/2] mmc: sdhci-msm: Configuring IO_PAD support for sdhci-msm

2018-03-28 Thread Vijay Viswanath
>From the HPG: In some platform, SDCC controller can be connected to either an eMMC device or an SD card. The PADs for SD card are dual-voltage that support 3v/1.8v. Those PADs have a control signal (io_pad_pwr_switch/mode18 ) that indicates whether the PAD works in 3v or 1.8v. For SD usage the

[PATCH V3 2/2] mmc: sdhci-msm: support voltage pad switching

2018-03-28 Thread Vijay Viswanath
From: Krishna Konda The PADs for SD card are dual-voltage that support 3v/1.8v. Those PADs have a control signal (io_pad_pwr_switch/mode18 ) that indicates whether the PAD works in 3v or 1.8v. SDHC core on msm platforms should have IO_PAD_PWR_SWITCH bit set/unset based

[PATCH V3 1/2] mmc: sdhci-msm: Add support to store supported vdd-io voltages

2018-03-28 Thread Vijay Viswanath
During probe check whether the vdd-io regulator of sdhc platform device can support 1.8V and 3V and store this information as a capability of platform device. Signed-off-by: Vijay Viswanath --- drivers/mmc/host/sdhci-msm.c | 36 +++- 1

Re: [PATCH v3 0/6] clocksource: rework Atmel TCB timer driver

2018-03-28 Thread Daniel Lezcano
On 28/03/2018 12:29, Alexander Dahl wrote: > Hello Daniel, > > Am Dienstag, 27. März 2018, 13:30:22 CEST schrieb Daniel Lezcano: >> Can you can give a rough amount for the irq rate on the timer ? > > I used itop [1] now to get a rough estimate. First with kernel v4.14.29-rt25 > (fully preempt

Re: [PATCH] devicetree: Remove dangling symlinks

2018-03-28 Thread Rob Herring
+Arnd On Wed, Mar 28, 2018 at 3:32 AM, Libor Pechacek wrote: > Support for CRIS and Meta was dropped. > > Signed-off-by: Libor Pechacek > Fixes: bb6fb6dfcc17 ("metag: Remove arch/metag/") > Fixes: c690eddc2f3b ("CRIS: Drop support for the CRIS port") >

[PATCH V4 0/2] mmc: sdhci-msm: Configuring IO_PAD support for sdhci-msm

2018-03-28 Thread Vijay Viswanath
>From the HPG: In some platform, SDCC controller can be connected to either an eMMC device or an SD card. The PADs for SD card are dual-voltage that support 3v/1.8v. Those PADs have a control signal (io_pad_pwr_switch/mode18 ) that indicates whether the PAD works in 3v or 1.8v. For SD usage the

Re: [PATCH v3] hwmon: MC13783: add uid and die temperature sensor inputs

2018-03-28 Thread Guenter Roeck
On 03/28/2018 03:06 AM, Lee Jones wrote: On Tue, 27 Mar 2018, Guenter Roeck wrote: On 03/27/2018 07:19 AM, Andrey Gusakov wrote: The uid and die temperature can be read out on the ADIN7 using input mux. Map uid and die temperature sensor to channels 16 and 17. Signed-off-by: Andrey Gusakov

Re: [mm] b1f0502d04: INFO:trying_to_register_non-static_key

2018-03-28 Thread Laurent Dufour
On 26/03/2018 00:10, David Rientjes wrote: > On Wed, 21 Mar 2018, Laurent Dufour wrote: > >> I found the root cause of this lockdep warning. >> >> In mmap_region(), unmap_region() may be called while vma_link() has not been >> called. This happens during the error path if call_mmap() failed. >>

[PATCH] dma-mapping: don't clear GFP_ZERO in dma_alloc_attrs

2018-03-28 Thread Christoph Hellwig
Revert the clearing of __GFP_ZERO in dma_alloc_attrs and move it to dma_direct_alloc for now. While most common architectures always zero dma cohereny allocations (and x86 did so since day one) this is not documented and at least arc and s390 do not zero without the explicit __GFP_ZERO argument.

Re: [PATCH 2/2] smp: introduce kick_active_cpus_sync()

2018-03-28 Thread Yury Norov
On Mon, Mar 26, 2018 at 05:45:55AM -0700, Paul E. McKenney wrote: > On Sun, Mar 25, 2018 at 11:11:54PM +0300, Yury Norov wrote: > > On Sun, Mar 25, 2018 at 12:23:28PM -0700, Paul E. McKenney wrote: > > > On Sun, Mar 25, 2018 at 08:50:04PM +0300, Yury Norov wrote: > > > > kick_all_cpus_sync()

Re: [PATCH v2 2/2] video/fbdev/stifb: Delete an error message for a failed memory allocation in stifb_init_fb()

2018-03-28 Thread Bartlomiej Zolnierkiewicz
On Sunday, January 07, 2018 12:58:47 PM SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 7 Jan 2018 12:34:22 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software.

[PATCH][next] wil6210: fix potential null dereference of ndev before null check

2018-03-28 Thread Colin King
From: Colin Ian King The pointer ndev is being dereferenced before it is being null checked, hence there is a potential null pointer deference. Fix this by only dereferencing ndev after it has been null checked Detected by CoverityScan, CID#1467010 ("Dereference before

Re: NFS mounts failing when keytab present on client

2018-03-28 Thread Eric Biggers
On Wed, Mar 28, 2018 at 09:00:14AM +0100, M A Young wrote: > On Tue, 27 Mar 2018, Eric Biggers wrote: > > > Hi Michael, > > > > On Tue, Mar 27, 2018 at 11:06:14PM +0100, Michael Young wrote: > > > NFS mounts stopped working on one of my computers after a kernel update > > > from > > > 4.15.3 to

[PATCH] crypto: cavium: zip: Remove unnecessary parentheses

2018-03-28 Thread Varsha Rao
This patch fixes the clang warning of extraneous parentheses, with the following coccinelle script. @@ identifier i; constant c; @@ ( -((i == c)) +i == c | -((i <= c)) +i <= c ) Signed-off-by: Varsha Rao --- drivers/crypto/cavium/zip/zip_regs.h | 42

Re: [PATCH] mm: Use octal not symbolic permissions

2018-03-28 Thread Joe Perches
On Wed, 2018-03-28 at 21:07 +0200, Michal Hocko wrote: > I wasn't aware that checkpatch can perform changes as well. Someone (probably me) should write some better documentation for checkpatch one day. The command-line --help output isn't obvious.

[PATCH v2 01/19] powerpc/powermac: Mark variable x as unused

2018-03-28 Thread Mathieu Malaterre
Since the value of x is never intended to be read, declare it with gcc attribute as unused. Fix warning treated as error with W=1: arch/powerpc/platforms/powermac/bootx_init.c:471:21: error: variable ‘x’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre

Re: [PATCH 2/2] KVM: X86: Fix disable pv tlb flush when steal time is enabled

2018-03-28 Thread Radim Krčmář
2018-03-24 21:18-0700, Wanpeng Li: > From: Wanpeng Li > > PV TLB FLUSH can be turned on when steal time is enabled. The condition > reverse when the patch is sent out for several rounds review by mistake. It was just one round and the m/l patch actually looks correct,

Re: [PATCH v3 3/4] hwmon: add Gateworks System Controller support

2018-03-28 Thread Tim Harvey
On Wed, Mar 28, 2018 at 10:00 AM, Guenter Roeck wrote: > On Wed, Mar 28, 2018 at 08:14:02AM -0700, Tim Harvey wrote: >> The Gateworks System Controller has a hwmon sub-component that exposes >> up to 16 ADC's, some of which are temperature sensors, others which are >> voltage

Re: [PATCH v6 0/7] Enlightened VMCS support for KVM on Hyper-V

2018-03-28 Thread Radim Krčmář
2018-03-26 14:42+0200, Vitaly Kuznetsov: > Vitaly Kuznetsov writes: > > > Changes since v5: > > - Fix a couple of issues reported by kbuild test robot, both in > > PATCH7 (hope Radim's Reviewed-by: stands). > > > > When running nested KVM on Hyper-V it's possible to use so

Re: [PATCH v3 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings

2018-03-28 Thread Guenter Roeck
On Wed, Mar 28, 2018 at 12:17:34PM -0700, Tim Harvey wrote: > On Wed, Mar 28, 2018 at 9:24 AM, Guenter Roeck wrote: > > On Wed, Mar 28, 2018 at 08:14:00AM -0700, Tim Harvey wrote: > >> This patch adds documentation of device-tree bindings for the > >> Gateworks System

[PATCH v3 2/2] power/hibernate: Change message when writing to /sys/power/resume

2018-03-28 Thread Mario Limonciello
This file is used both for setting the wakeup device without kernel command line as well as for actually waking the system (when appropriate swap header is in place). To avoid confusion on incorrect logs in system log downgrade the message to debug and make it clearer. Signed-off-by: Mario

Re: [PATCH 4.15 000/105] 4.15.14-stable review

2018-03-28 Thread Greg Kroah-Hartman
On Wed, Mar 28, 2018 at 01:31:34PM -0300, Thadeu Lima de Souza Cascardo wrote: > On Tue, Mar 27, 2018 at 06:26:40PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.15.14 release. > > There are 105 patches in this series, all will be posted as a response

[PATCH v6 7/9] gpio: Add gpio driver for Actions OWL S900 SoC

2018-03-28 Thread Manivannan Sadhasivam
Add gpio driver for Actions Semi OWL family S900 SoC. Set of registers controlling the gpio shares the same register range with pinctrl block. GPIO registers are organized as 6 banks and each bank controls the maximum of 32 gpios. Signed-off-by: Manivannan Sadhasivam

[PATCH v6 8/9] MAINTAINERS: Add reviewer for ACTIONS platforms

2018-03-28 Thread Manivannan Sadhasivam
Since I'll be working on improving support for ACTIONS platforms, adding myself as the reviewer. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a7f76eadae9..640dabc4c311

[PATCH v6 9/9] MAINTAINERS: Add Actions Semi S900 pinctrl and gpio entries

2018-03-28 Thread Manivannan Sadhasivam
Add S900 pinctrl and gpio entries under ARCH_ACTIONS Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 640dabc4c311..d63793ee545e 100644 --- a/MAINTAINERS +++

[PATCH for v3.18 05/18] media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32

2018-03-28 Thread Mauro Carvalho Chehab
From: Hans Verkuil commit 486c521510c44a04cd756a9267e7d1e271c8a4ba upstream. These helper functions do not really help. Move the code to the __get/put_v4l2_format32 functions. Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus

[PATCH for v3.18 11/18] media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32

2018-03-28 Thread Mauro Carvalho Chehab
From: Hans Verkuil commit a751be5b142ef6bcbbb96d9899516f4d9c8d0ef4 upstream. put_v4l2_window32() didn't copy back the clip list to userspace. Drivers can update the clip rectangles, so this should be done. Signed-off-by: Hans Verkuil Acked-by:

Re: [PATCH 1/1] x86/platform/UV: Fix critical UV MMR address error

2018-03-28 Thread Thomas Gleixner
On Wed, 28 Mar 2018, mike.tra...@hpe.com wrote: > A critical error was found testing the fixed UV4 HUB in that an MMR > address was found to be incorrect. This causes the virtual address > space for accessing the MMIOH1 region to be allocated with the > incorrect size. Even if this is not

[PATCH for v3.18 10/18] media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha

2018-03-28 Thread Mauro Carvalho Chehab
From: Daniel Mentz commit 025a26fa14f8fd55d50ab284a30c016a5be953d0 upstream. Commit b2787845fb91 ("V4L/DVB (5289): Add support for video output overlays.") added the field global_alpha to struct v4l2_window but did not update the compat layer accordingly. This change

[PATCHv3] gpio: Remove VLA from gpiolib

2018-03-28 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. Using a kmalloc array is the easy way to fix this but kmalloc is still more expensive than stack allocation. Introduce a fast path with a fixed size stack array to cover most

[PATCH for v3.18 03/18] media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF

2018-03-28 Thread Mauro Carvalho Chehab
From: Hans Verkuil commit 3ee6d040719ae09110e5cdf24d5386abe5d1b776 upstream. The result of the VIDIOC_PREPARE_BUF ioctl was never copied back to userspace since it was missing in the switch. Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus

Re: [PATCH] debugfs: Check return value of debugfs_real_fops() for NULL

2018-03-28 Thread Greg Kroah-Hartman
On Wed, Mar 28, 2018 at 11:14:56AM -0700, Matthias Kaehlcke wrote: > El Wed, Mar 28, 2018 at 08:05:56PM +0200 Greg Kroah-Hartman ha dit: > > > > > A: Because it messes up the order in which people normally read text. > > Q: Why is top-posting such a bad thing? > > A: Top-posting. > > Q: What is

[tip:ras/core] Revert "x86/mce/AMD: Collect error info even if valid bits are not set"

2018-03-28 Thread tip-bot for Yazen Ghannam
Commit-ID: e2efacb6a54ab54626da3507be1008d0040492cc Gitweb: https://git.kernel.org/tip/e2efacb6a54ab54626da3507be1008d0040492cc Author: Yazen Ghannam AuthorDate: Mon, 26 Mar 2018 14:15:25 -0500 Committer: Thomas Gleixner CommitDate: Wed, 28

Re: [RFC PATCH ghak32 V2 01/13] audit: add container id

2018-03-28 Thread Jonathan Corbet
On Fri, 16 Mar 2018 05:00:28 -0400 Richard Guy Briggs wrote: > Implement the proc fs write to set the audit container ID of a process, > emitting an AUDIT_CONTAINER record to document the event. A little detail, but still... > +static int audit_set_containerid_perm(struct

[PATCH net-next 0/2] phylink: API changes

2018-03-28 Thread Florian Fainelli
Hi all, This patch series contains two API changes to PHYLINK which will later be used by DSA to migrate to PHYLINK. Because these are API changes that impact other outstanding work (e.g: MVPP2) I would rather get them included sooner to minimize conflicts. Thank you! Florian Fainelli (1):

Re: [PATCH] nvme-multipath: implement active-active round-robin path selector

2018-03-28 Thread Keith Busch
On Wed, Mar 28, 2018 at 10:06:46AM +0200, Christoph Hellwig wrote: > For PCIe devices the right policy is not a round robin but to use > the pcie device closer to the node. I did a prototype for that > long ago and the concept can work. Can you look into that and > also make that policy used

Re: [PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-03-28 Thread Christian König
Am 28.03.2018 um 20:57 schrieb Logan Gunthorpe: On 28/03/18 12:28 PM, Christian König wrote: I'm just using amdgpu as blueprint because I'm the co-maintainer of it and know it mostly inside out. Ah, I see. The resource addresses are translated using dma_map_resource(). As far as I know that

[PATCH] readv.2, io_submit.2: Document RWF_APPEND added in Linux 4.16

2018-03-28 Thread Jürg Billeter
Signed-off-by: Jürg Billeter --- man2/io_submit.2 | 10 ++ man2/readv.2 | 10 ++ 2 files changed, 20 insertions(+) diff --git a/man2/io_submit.2 b/man2/io_submit.2 index 397fd0b75..79fcdfee4 100644 --- a/man2/io_submit.2 +++ b/man2/io_submit.2 @@ -111,6

[PATCH v2 04/19] powerpc/kvm: Prefer fault_in_pages_readable function

2018-03-28 Thread Mathieu Malaterre
Directly use fault_in_pages_readable instead of manual __get_user code. Fix warning treated as error with W=1: arch/powerpc/kernel/kvm.c:675:6: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable] Suggested-by: Christophe Leroy Signed-off-by:

I am waiting to hear from you

2018-03-28 Thread Mr.Yuehan Pan
Good day, I am Mr. Yuehan Pan, Director of the Bank of China I am looking for a manager / investment partner who will work with me for a joint venture. Contact me in my private email for more details. email (yuehanpa...@gmail.com) Waiting to hear from you. Thank you, Mr.Yuehan Pan`

Re: [PATCH v2 3/5] KVM: VMX: Bring the common code to header file

2018-03-28 Thread Radim Krčmář
2018-03-16 16:37-0400, Babu Moger: > This patch brings some of the code from vmx to x86.h header file. Now, we > can share this code between vmx and svm. Modified couple functions to make > it common. > > Signed-off-by: Babu Moger > --- > diff --git a/arch/x86/kvm/vmx.c

Re: [PATCH v3 3/4] hwmon: add Gateworks System Controller support

2018-03-28 Thread Guenter Roeck
On Wed, Mar 28, 2018 at 08:14:02AM -0700, Tim Harvey wrote: > The Gateworks System Controller has a hwmon sub-component that exposes > up to 16 ADC's, some of which are temperature sensors, others which are > voltage inputs. The ADC configuration (register mapping and name) is > configured via

Re: [PATCH][next] wil6210: fix potential null dereference of ndev before null check

2018-03-28 Thread merez
On 2018-03-28 20:40, Colin King wrote: From: Colin Ian King The pointer ndev is being dereferenced before it is being null checked, hence there is a potential null pointer deference. Fix this by only dereferencing ndev after it has been null checked Detected by

[PATCH v6 3/9] pinctrl: actions: Add Actions S900 pinctrl driver

2018-03-28 Thread Manivannan Sadhasivam
Add pinctrl driver for Actions Semi S900 SoC. The driver supports pinctrl, pinmux and pinconf functionalities through a range of registers common to both gpio driver and pinctrl driver. Pinmux functionality is available only for the pin groups while the pinconf functionality is available for both

[PATCH v6 4/9] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC

2018-03-28 Thread Manivannan Sadhasivam
Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/gpio/actions,owl-gpio.txt | 87 ++ 1 file changed, 87 insertions(+) create mode 100644

[PATCH v6 6/9] arm64: dts: actions: Add gpio line names to Bubblegum-96 board

2018-03-28 Thread Manivannan Sadhasivam
Add gpio line names to Actions Semi S900 based Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 195 ++ 1 file changed, 195

Re: [RFC PATCH for 4.17 10/21] cpu_opv: Provide cpu_opv system call (v6)

2018-03-28 Thread Mathieu Desnoyers
- On Mar 28, 2018, at 11:22 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Mar 27, 2018 at 12:05:31PM -0400, Mathieu Desnoyers wrote: > >> 1) Allow algorithms to perform per-cpu data migration without relying on >>sched_setaffinity() >> >> The use-cases are migrating memory

Re: 98f929b1bd ("ipc/shm: Fix shmctl(..., IPC_STAT, ...) between .."): Oops: 0000 [#1]

2018-03-28 Thread Eric W. Biederman
Nagarathnam Muthusamy writes: > Hi Eric, > >     From > https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git/tree/ipc/shm.c?h=for-next > > It looks like if the following condition in Line 616 succeeds > > error = PTR_ERR(file); > if

[PATCH v6 5/9] arm64: dts: actions: Add S900 gpio nodes

2018-03-28 Thread Manivannan Sadhasivam
Add gpio nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 51 +++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi

[PATCH v6 2/9] arm64: actions: Enable PINCTRL in platforms Kconfig

2018-03-28 Thread Manivannan Sadhasivam
Select PINCTRL for Actions Semi SoCs Signed-off-by: Manivannan Sadhasivam Reviewed-by: Linus Walleij --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms

Re: [PATCH v9 09/24] mm: protect mremap() against SPF hanlder

2018-03-28 Thread Laurent Dufour
On 28/03/2018 00:12, David Rientjes wrote: > On Tue, 13 Mar 2018, Laurent Dufour wrote: > >> diff --git a/include/linux/mm.h b/include/linux/mm.h >> index 88042d843668..ef6ef0627090 100644 >> --- a/include/linux/mm.h >> +++ b/include/linux/mm.h >> @@ -2189,16 +2189,24 @@ void

[PATCH for v3.18 07/18] media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32

2018-03-28 Thread Mauro Carvalho Chehab
From: Hans Verkuil commit 8ed5a59dcb47a6f76034ee760b36e089f3e82529 upstream. The struct v4l2_plane32 should set m.userptr as well. The same happens in v4l2_buffer32 and v4l2-compliance tests for this. Signed-off-by: Hans Verkuil Acked-by: Sakari

Re: [PATCH 1/1] x86/platform/UV: Fix critical UV MMR address error

2018-03-28 Thread Mike Travis
On 3/28/2018 11:17 AM, Thomas Gleixner wrote: On Wed, 28 Mar 2018, mike.tra...@hpe.com wrote: A critical error was found testing the fixed UV4 HUB in that an MMR address was found to be incorrect. This causes the virtual address space for accessing the MMIOH1 region to be allocated with the

Re: [PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-03-28 Thread Christian König
Am 28.03.2018 um 18:25 schrieb Logan Gunthorpe: On 28/03/18 10:02 AM, Christian König wrote: Yeah, that looks very similar to what I picked up from the older patches, going to read up on that after my vacation. Yeah, I was just reading through your patchset and there are a lot of

[PATCH 6/8] perf vendor events s390: Add JSON files for IBM zEC12 zBC12

2018-03-28 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Add CPU measurement counter facility event description files (json files) for IBM zEC12 and zBC12. Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens

[PATCH 5/8] perf vendor events s390: Add JSON files for IBM z196

2018-03-28 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Add CPU measurement counter facility event description files (json files) for IBM z196. Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens

Re: [PATCH] debugfs: Check return value of debugfs_real_fops() for NULL

2018-03-28 Thread Matthias Kaehlcke
El Wed, Mar 28, 2018 at 08:19:36PM +0200 Greg Kroah-Hartman ha dit: > On Wed, Mar 28, 2018 at 11:14:56AM -0700, Matthias Kaehlcke wrote: > > El Wed, Mar 28, 2018 at 08:05:56PM +0200 Greg Kroah-Hartman ha dit: > > > > > > > > A: Because it messes up the order in which people normally read text.

[PATCH 3/8] perf mmap: Be consistent when checking for an unmaped ring buffer

2018-03-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The previous patch is insufficient to cure the reported 'perf trace' segfault, as it only cures the perf_mmap__read_done() case, moving the segfault to perf_mmap__read_init() functio, fix it by doing the same refcount check. Cc: Adrian Hunter

Re: [PATCH 1/1] Drivers: hv: vmbus: Fix ring buffer signaling

2018-03-28 Thread Stephen Hemminger
On Sun, 4 Mar 2018 22:24:08 -0700 k...@exchange.microsoft.com wrote: > From: Michael Kelley > > Fix bugs in signaling the Hyper-V host when freeing space in the > host->guest ring buffer: > > 1. The interrupt_mask must not be used to determine whether to signal >on

Re: [net-next,v2,01/10] soc: ti: K2G: enhancement to support QMSS in NSS

2018-03-28 Thread Grygorii Strashko
Hi Murali, On 03/27/2018 11:31 AM, Murali Karicheri wrote: > Navigator Subsystem (NSS) available on K2G SoC has a cut down > version of QMSS with less number of queues, internal linking ram > with lesser number of buffers etc. It doesn't have status and > explicit push register space as in QMSS

[PATCH v2 07/19] powerpc/powermac: Make some functions static

2018-03-28 Thread Mathieu Malaterre
These functions can all be static, make it so. Fix warnings treated as errors with W=1: arch/powerpc/platforms/powermac/pci.c:1022:6: error: no previous prototype for ‘pmac_pci_fixup_ohci’ [-Werror=missing-prototypes] arch/powerpc/platforms/powermac/pci.c:1057:6: error: no previous prototype

RE: [PATCH AUTOSEL for 4.4 093/167] ACPICA: Recognize the Windows 10 version 1607 and 1703 OSI strings

2018-03-28 Thread Mario.Limonciello
> -Original Message- > From: Moore, Robert [mailto:robert.mo...@intel.com] > Sent: Wednesday, March 28, 2018 2:53 PM > To: Limonciello, Mario ; > alexander.le...@microsoft.com; linux-kernel@vger.kernel.org; > sta...@vger.kernel.org > Cc: Schmauss, Erik

Re: [PATCH v3 3/4] hwmon: add Gateworks System Controller support

2018-03-28 Thread Guenter Roeck
On Wed, Mar 28, 2018 at 01:23:59PM -0700, Tim Harvey wrote: > On Wed, Mar 28, 2018 at 10:00 AM, Guenter Roeck wrote: > > On Wed, Mar 28, 2018 at 08:14:02AM -0700, Tim Harvey wrote: > >> The Gateworks System Controller has a hwmon sub-component that exposes > >> up to 16 ADC's,

[PATCHv2 02/14] x86/mm: Mask out KeyID bits from page table entry pfn

2018-03-28 Thread Kirill A. Shutemov
MKTME claims several upper bits of the physical address in a page table entry to encode KeyID. It effectively shrinks number of bits for physical address. We should exclude KeyID bits from physical addresses. For instance, if CPU enumerates 52 physical address bits and number of bits claimed for

[PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator

2018-03-28 Thread Kirill A. Shutemov
Modify several page allocation routines to pass down encryption KeyID to be used for the allocated page. There are two basic use cases: - alloc_page_vma() use VMA's KeyID to allocate the page. - Page migration and NUMA balancing path use KeyID of original page as KeyID for newly allocated

Re: [PATCHv2 12/14] x86/mm: Implement page_keyid() using page_ext

2018-03-28 Thread Dave Hansen
On 03/28/2018 09:55 AM, Kirill A. Shutemov wrote: > +static inline int page_keyid(struct page *page) > +{ > + if (!mktme_nr_keyids) > + return 0; > + > + return lookup_page_ext(page)->keyid; > +} This doesn't look very optimized. Don't we normally try to use X86_FEATURE_* for

Re: [PATCH V4 Resend] ZBOOT: fix stack protector in compressed boot phase

2018-03-28 Thread Kees Cook
On Wed, Mar 28, 2018 at 8:21 AM, James Hogan wrote: > On Wed, Mar 28, 2018 at 04:48:53PM +0800, Huacai Chen wrote: >> diff --git a/arch/mips/boot/compressed/decompress.c >> b/arch/mips/boot/compressed/decompress.c >> index fdf99e9..81df904 100644 >> ---

[PATCHv2 03/14] mm/shmem: Zero out unused vma fields in shmem_pseudo_vma_init()

2018-03-28 Thread Kirill A. Shutemov
shmem/tmpfs uses pseudo vma to allocate page with correct NUMA policy. The pseudo vma doesn't have vm_page_prot set. We are going to encode encryption KeyID in vm_page_prot. Having garbage there causes problems. Zero out all unused fields in the pseudo vma. Signed-off-by: Kirill A. Shutemov

[PATCHv2 05/14] mm/khugepaged: Do not collapse pages in encrypted VMAs

2018-03-28 Thread Kirill A. Shutemov
Pages for encrypted VMAs have to be allocated in a special way: we would need to propagate down not only desired NUMA node but also whether the page is encrypted. It complicates not-so-trivial routine of huge page allocation in khugepaged even more. It also puts more pressure on page allocator:

[RESEND PATCH v6 3/5] pwm-backlight: add support for PWM delays proprieties.

2018-03-28 Thread Enric Balletbo i Serra
Some panels (i.e. N116BGE-L41), in their power sequence specifications, request a delay between set the PWM signal and enable the backlight and between clear the PWM signal and disable the backlight. Add support for the new post-pwm-on-delay-ms and pwm-off-delay-ms proprieties to meet the timings.

[RESEND PATCH v6 4/5] ARM: dts: rockchip: set PWM delay backlight settings for Veyron.

2018-03-28 Thread Enric Balletbo i Serra
For veyron the binding should provide both PWM timings, the delay between you enable the PWM and set the enable signal, and the delay between you disable the PWM signal and clear the enable signal. Update the binding accordingly, in this case the panels connected to the veyron boards have a

[PATCH 1/1] x86/platform/UV: Fix critical UV MMR address error

2018-03-28 Thread mike.travis
A critical error was found testing the fixed UV4 HUB in that an MMR address was found to be incorrect. This causes the virtual address space for accessing the MMIOH1 region to be allocated with the incorrect size. Signed-off-by: Mike Travis --- arch/x86/include/asm/uv/uv_mmrs.h

[PATCH 0/1] x86/platform/UV: UV Fix patches for Intel processors

2018-03-28 Thread mike.travis
Updates to UV4 fix patches. --

Re: [PATCH RFC tools/memory-model] Add s390.{cfg,cat}

2018-03-28 Thread Alan Stern
On Wed, 28 Mar 2018, Paul E. McKenney wrote: > On Wed, Mar 28, 2018 at 11:01:25AM -0400, Alan Stern wrote: > > On Wed, 28 Mar 2018, Paul E. McKenney wrote: > > > > > Hello! > > > > > > The prototype patch shown below provides files required to allow herd7 to > > > evaluate C-language litmus

<    1   2   3   4   5   6   7   8   9   10   >