Linux 3.18.49

2017-04-17 Thread Greg KH
I'm announcing the release of the 3.18.49 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser:

Re: linux-next: manual merge of the mux tree with the i2c tree

2017-04-17 Thread Peter Rosin
On 2017-04-18 07:59, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the mux tree got conflicts in: > > drivers/i2c/muxes/Makefile > drivers/i2c/muxes/Kconfig > > between commit: > > dbed8a803bd3 ("i2c: mux: ltc4306: LTC4306 and LTC4305 I2C > multiplexer/switch") > > f

Re: [PATCH] drm/cma: Fix recent regression of mmap() in the MMU case.

2017-04-17 Thread Daniel Vetter
On Mon, Apr 17, 2017 at 04:31:24PM -0700, Eric Anholt wrote: > The stub get_unmapped_area() function was actually getting called, so > all of our mmap()s failed. > > Cc: Yannick Fertre > Fixes: 97bf3a9aa60f ("drm/cma: Update DEFINE_DRM_GEM_CMA_FOPS to add > get_unmapped_area") > Signed-off-by: E

Re: Linux 4.10.11

2017-04-17 Thread Greg KH
diff --git a/Makefile b/Makefile index 52858726495b..412f2a0a3814 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 10 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 9a6e11b6f457..5a4f2eb

Linux 4.10.11

2017-04-17 Thread Greg KH
I'm announcing the release of the 4.10.11 kernel. All users of the 4.10 kernel series must upgrade. The updated 4.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.10.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.23

2017-04-17 Thread Greg KH
diff --git a/Makefile b/Makefile index 4bf4648d97db..0de75976cad5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 22 +SUBLEVEL = 23 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 9a6e11b6f457..5a4f2eb9d

Linux 4.9.23

2017-04-17 Thread Greg KH
I'm announcing the release of the 4.9.23 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.4.62

2017-04-17 Thread Greg KH
diff --git a/Makefile b/Makefile index ef5045b8201d..0309acc34472 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 61 +SUBLEVEL = 62 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 75bfca69e418..d5cfa93

Re: PCI / PM: Crashes in PME scan during system suspend

2017-04-17 Thread Geert Uytterhoeven
Hi Lukas, On Sun, Apr 16, 2017 at 9:55 AM, Lukas Wunner wrote: > On Sat, Apr 15, 2017 at 12:27:31AM +0200, Rafael J. Wysocki wrote: >> On Friday, April 14, 2017 10:22:49 AM Lukas Wunner wrote: >> > Below is a tentative patch which moves PME polling to a freezable >> > workqueue, so it is frozen b

Linux 4.4.62

2017-04-17 Thread Greg KH
I'm announcing the release of the 4.4.62 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 05/22] drm/i915: Make use of the new sg_map helper function

2017-04-17 Thread Daniel Vetter
On Thu, Apr 13, 2017 at 04:05:18PM -0600, Logan Gunthorpe wrote: > This is a single straightforward conversion from kmap to sg_map. > > Signed-off-by: Logan Gunthorpe Acked-by: Daniel Vetter Probably makes sense to merge through some other tree, but please be aware of the considerable churn ra

Re: [PATCH] mm: Add additional consistency check

2017-04-17 Thread Michal Hocko
On Mon 17-04-17 10:22:29, Cristopher Lameter wrote: > On Tue, 11 Apr 2017, Michal Hocko wrote: > > > On Tue 11-04-17 13:59:44, Cristopher Lameter wrote: > > > On Tue, 11 Apr 2017, Michal Hocko wrote: > > > > > > > I didn't say anything like that. Hence the proposed patch which still > > > > needs

Re: [PATCH] powerpc/32: Fix protection of kernel RAM after freeing unused memory

2017-04-17 Thread Michael Ellerman
Christophe Leroy writes: > diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c > index 9ee536ec0739..e95931c4e6cf 100644 > --- a/arch/powerpc/mm/mem.c > +++ b/arch/powerpc/mm/mem.c > @@ -401,6 +401,9 @@ void free_initmem(void) > { > ppc_md.progress = ppc_printk_progress; > fre

Re: cgroup: avoid attaching a cgroup root to two different superblocks

2017-04-17 Thread Tejun Heo
Hello, Li. On Mon, Apr 17, 2017 at 06:41:38PM +0800, Zefan Li wrote: > Now I remember why it didn't check NULL pointer... Could you try the > following fix? > It also reverts my previous patch. I would appreciate if you run the full > test suit, > to make sure it won't break anything. Can you p

RE: [PATCH 15/19] kernel: convert audit_tree.count from atomic_t to refcount_t

2017-04-17 Thread Reshetova, Elena
> On Tue, Feb 28, 2017 at 5:11 PM, Paul Moore wrote: > > On Tue, Feb 21, 2017 at 2:15 AM, Reshetova, Elena > > wrote: > >>> On Mon, Feb 20, 2017 at 5:19 AM, Elena Reshetova > >>> wrote: > >>> > refcount_t type and corresponding API should be > >>> > used instead of atomic_t when the variable is

[PATCH v3 08/11] x86/xen: use capabilities instead of fake cpuid values for x2apic

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the x2apic feature is indicated as not being present by special casing the related cpuid leaf. Instead of delivering fake cpuid values clear the cpu capability bit for x2apic instead. Signed-off-by: Juer

[PATCH v3 09/11] x86/xen: use capabilities instead of fake cpuid values for xsave

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the xsave feature availability is indicated by special casing the related cpuid leaf. Instead of delivering fake cpuid values set or clear the cpu capability bits for xsave instead. Signed-off-by: Juerge

[PATCH v3 03/11] x86/xen: use capabilities instead of fake cpuid values for aperf

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the aperf/mperf feature is indicated as not being present by special casing the related cpuid leaf. Instead of delivering fake cpuid values clear the cpu capability bit for aperf/mperf instead. Signed-of

[PATCH v3 05/11] x86/xen: use capabilities instead of fake cpuid values for acc

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the acc feature (thermal monitoring) is indicated as not being present by special casing the related cpuid leaf. Instead of delivering fake cpuid values clear the cpu capability bit for acc instead. Sign

[PATCH v3 04/11] x86/xen: use capabilities instead of fake cpuid values for mtrr

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the mtrr feature is indicated as not being present by special casing the related cpuid leaf. Instead of delivering fake cpuid values clear the cpu capability bit for mtrr instead. Signed-off-by: Juergen

[PATCH v3 07/11] x86/xen: use capabilities instead of fake cpuid values for mwait

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the mwait feature is indicated to be present or not by special casing the related cpuid leaf. Instead of delivering fake cpuid values use the cpu capability bit for mwait instead. Signed-off-by: Juergen

[PATCH v3 06/11] x86/xen: use capabilities instead of fake cpuid values for acpi

2017-04-17 Thread Juergen Gross
When running as pv domain xen_cpuid() is being used instead of native_cpuid(). In xen_cpuid() the acpi feature is indicated as not being present by special casing the related cpuid leaf in case we are not the initial domain. Instead of delivering fake cpuid values clear the cpu capability bit for

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-17 Thread Benjamin Herrenschmidt
On Mon, 2017-04-17 at 23:43 -0600, Logan Gunthorpe wrote: > > On 17/04/17 03:11 PM, Benjamin Herrenschmidt wrote: > > Is it ? Again, you create a "concept" the user may have no idea about, > > "p2pmem memory". So now any kind of memory buffer on a device can could > > be use for p2p but also poten

[PATCH v3 02/11] x86/xen: don't indicate DCA support in pv domains

2017-04-17 Thread Juergen Gross
Xen doesn't support DCA (direct cache access) for pv domains. Clear the corresponding capability indicator. Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- arch/x86/xen/enlighten_pv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/en

[PATCH v3 01/11] xen: set cpu capabilities from xen_start_kernel()

2017-04-17 Thread Juergen Gross
There is no need to set the same capabilities for each cpu individually. This can easily be done for all cpus when starting the kernel. Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- arch/x86/xen/enlighten_pv.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCH v3 00/11] x86: xen cpuid() cleanup

2017-04-17 Thread Juergen Gross
Reduce special casing of xen_cpuid() by using cpu capabilities instead of faked cpuid nodes. This cleanup enables us remove the hypervisor specific set_cpu_features callback as the same effect can be reached via setup_[clear|force]_cpu_cap(). Removing the rest faked nodes from xen_cpuid() require

[PATCH v3 10/11] vmware: set cpu capabilities during platform initialization

2017-04-17 Thread Juergen Gross
There is no need to set the same capabilities for each cpu individually. This can be done for all cpus in platform initialization. Cc: Alok Kataria Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: virtualizat...@lists.linux-foundation.org Signed-off-by: Juergen

[PATCH v3 11/11] x86/cpu: remove hypervisor specific set_cpu_features

2017-04-17 Thread Juergen Gross
There is no user of x86_hyper->set_cpu_features() any more. Remove it. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- arch/x86/include/asm/hypervisor.h | 5 - arch/x86/kernel/cpu/common.c | 1

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

2017-04-17 Thread Stephen Rothwell
Hi Greg, On Tue, 18 Apr 2017 07:54:40 +0200 Greg KH wrote: > > On Tue, Apr 18, 2017 at 03:32:20PM +1000, Stephen Rothwell wrote: > > Hi Greg, > > > > After merging the staging tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > make[7]: *** No rule to make target

[PATCH] net/mlx4: suppress 'may be used uninitialized' warning

2017-04-17 Thread Greg Thelen
gcc 4.8.4 complains that mlx4_SW2HW_MPT_wrapper() uses an uninitialized 'mpt' variable: drivers/net/ethernet/mellanox/mlx4/resource_tracker.c: In function 'mlx4_SW2HW_MPT_wrapper': drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:2802:12: warning: 'mpt' may be used uninitialized in this

[PATCH v2] powerpc/mm: Fix page table dump build on PPC32

2017-04-17 Thread Christophe Leroy
On PPC32 (ex: mpc885_ads_defconfig), page table dump compilation fails as follows. This is because the memory layout is slightly different on PPC32. This patch adapts it. CC arch/powerpc/mm/dump_linuxpagetables.o arch/powerpc/mm/dump_linuxpagetables.c: In function 'walk_pagetables': arch/po

[PATCH] powerpc/mm: Rename table dump file name

2017-04-17 Thread Christophe Leroy
Page table dump debugfs file is named 'kernel_page_tables' on all other architectures implementing it, while is is named 'kernel_pagetables' on powerpc. This patch renames it. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/dump_linuxpagetables.c | 2 +- 1 file changed, 1 insertion(+), 1 del

Re: 8250: Possible race between console message vs DMA?

2017-04-17 Thread Vignesh R
On Tuesday 18 April 2017 11:46 AM, Andy Shevchenko wrote: > On Mon, Apr 10, 2017 at 11:16 AM, Vignesh R wrote: >> On Sunday 09 April 2017 04:37 PM, Andy Shevchenko wrote: >>> On Fri, Apr 7, 2017 at 2:08 PM, Vignesh R wrote: Hi All, I seem to be hitting a race condition using 8250

Re: [PATCH v6 2/2] thermal: core: Add a back up thermal shutdown mechanism

2017-04-17 Thread Keerthy
On Tuesday 18 April 2017 11:45 AM, Ravikumar wrote: > > > On Tuesday 18 April 2017 09:59 AM, Keerthy wrote: >> orderly_poweroff is triggered when a graceful shutdown >> of system is desired. This may be used in many critical states of the >> kernel such as when subsystems detects conditions suc

Re: 8250: Possible race between console message vs DMA?

2017-04-17 Thread Andy Shevchenko
On Mon, Apr 10, 2017 at 11:16 AM, Vignesh R wrote: > On Sunday 09 April 2017 04:37 PM, Andy Shevchenko wrote: >> On Fri, Apr 7, 2017 at 2:08 PM, Vignesh R wrote: >>> Hi All, >>> >>> I seem to be hitting a race condition using 8250_dma (and 8250_omap >>> specific dma) support: >>> >>> Kernel write

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-17 Thread Logan Gunthorpe
On 17/04/17 12:04 PM, Jerome Glisse wrote: > I disagree here. I would rather see Peer-to-Peer mapping as a form > of helper so that device driver can opt-in for multiple mecanisms > concurrently. Like HMM and p2p. I'm not against moving some of the common stuff into a library. It sounds like the

Re: [PATCH v6 2/2] thermal: core: Add a back up thermal shutdown mechanism

2017-04-17 Thread Ravikumar
On Tuesday 18 April 2017 09:59 AM, Keerthy wrote: orderly_poweroff is triggered when a graceful shutdown of system is desired. This may be used in many critical states of the kernel such as when subsystems detects conditions such as critical temperature conditions. However, in certain condition

[Query] Enabling parent device clock from resume_noirq

2017-04-17 Thread Kishon Vijay Abraham I
Hi, resume_noirq callbacks are used in PCIe core to restore PCI state (this accesses PCI module). So the clocks of PCI module has to be enabled before resume_noirq. The clocks for the PCI module in DRA7xx is provided by PIPE3 PHY device which in turn gets it's clock from OCP2SCP device. During re

Re: [PATCH 15/24] asus-wmi: Restrict debugfs interface when the kernel is locked down

2017-04-17 Thread Andy Shevchenko
On Mon, Apr 10, 2017 at 4:16 PM, David Howells wrote: > Andy Shevchenko wrote: > >> >> It looks a bit fragile when responsility of whatever reasons kernel >> >> can't serve become a driver burden. >> >> Can we fix this in debugfs framework instead? >> > >> > Fix it with debugfs how? We can't off

Re: [PATCH v2 3/3] arm64: dts: exynos: Add support for s6e3hf2 panel device on TM2e board

2017-04-17 Thread Andrzej Hajda
On 17.04.2017 08:02, Hoegeun Kwon wrote: > This patch add the panel device tree node for s6e3hf2 display > controller to TM2e dts. > > Signed-off-by: Hoegeun Kwon Maybe it would be good to remove te-gpios property - tm2/tm2e uses hardware trigger, so it is not necessary and generates useless inte

linux-next: manual merge of the mux tree with the i2c tree

2017-04-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mux tree got conflicts in: drivers/i2c/muxes/Makefile drivers/i2c/muxes/Kconfig between commit: dbed8a803bd3 ("i2c: mux: ltc4306: LTC4306 and LTC4305 I2C multiplexer/switch") from the i2c tree and commit: 69c689cbeefa ("i2c: i2c-mux-gpmux: new d

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-17 Thread Michel Dänzer
On 18/04/17 02:04 PM, Ilia Mirkin wrote: > On Mon, Apr 17, 2017 at 10:53 PM, Michel Dänzer wrote: >> On 17/04/17 03:43 PM, Ilia Mirkin wrote: >>> On Tue, Apr 11, 2017 at 10:18 AM, Ilia Mirkin wrote: > However, I totally agree with Alex that someone with a BE machine > should review the wh

Re: [PATCH v2 2/3] drm/panel: s6e3ha2: Add support for s6e3hf2 panel on TM2e board

2017-04-17 Thread Andrzej Hajda
On 17.04.2017 08:02, Hoegeun Kwon wrote: > This patch supports TM2e panel and the panel has 1600x2560 resolution > in 5.65" physical. > > This identify panel type with compatibility string, also invoke > display mode that matches the type. So add the check code for s6e3ha2 > compatibility and s6e3h

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

2017-04-17 Thread Greg KH
On Tue, Apr 18, 2017 at 03:32:20PM +1000, Stephen Rothwell wrote: > Hi Greg, > > After merging the staging tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > make[7]: *** No rule to make target > 'drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/uds/uds_1.

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

2017-04-17 Thread Stephen Rothwell
Hi all, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3426:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .change_virtual_intf = cfg80211_rtw_cha

Re: [PATCH v2 1/3] dt-bindings: Add support for samsung s6e3hf2 panel

2017-04-17 Thread Andrzej Hajda
On 17.04.2017 08:02, Hoegeun Kwon wrote: > The samsung s6e3hf2 panel is a 5.65" 1600x2560 AMOLED panel connected > using MIPI-DSI interfaces. > > The s6e3hf2 is add to samsung,s6e3ha2.txt binding because it is a > panel similar to the s6e3ha2. So add the compatible string and > comments. > > Signed

Linux 3.12.73

2017-04-17 Thread Jiri Slaby
I'm announcing the release of the 3.12.73 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be browsed at the normal kernel.org git web browser:

[PATCH v2] mm: add VM_STATIC flag to vmalloc and prevent from removing the areas

2017-04-17 Thread Hoeun Ryu
vm_area_add_early/vm_area_register_early() are used to reserve vmalloc area during boot process and those virtually mapped areas are never unmapped. So `OR` VM_STATIC flag to the areas in vmalloc_init() when importing existing vmlist entries and prevent those areas from being removed from the rbtr

Re: [PATCH] powerpc/mm: some cleanup of do_page_fault()

2017-04-17 Thread Michael Ellerman
Christophe Leroy writes: > This patch is a bunch of small cleanups of the do_page_fault() > function: > 1/ Function store_updates_sp() checks whether the faulting > instruction is a store updating r1. Therefore we can limit its calls > to stores exceptions > 2/ Only the get_user() in store_update

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-17 Thread Logan Gunthorpe
On 17/04/17 03:11 PM, Benjamin Herrenschmidt wrote: > Is it ? Again, you create a "concept" the user may have no idea about, > "p2pmem memory". So now any kind of memory buffer on a device can could > be use for p2p but also potentially a bunch of other things becomes > special and called "p2pmem

Re: [PATCH v3 01/12] arm64: allwinner: a64: enable RSB on A64

2017-04-17 Thread Maxime Ripard
On Mon, Apr 17, 2017 at 07:57:36PM +0800, Icenowy Zheng wrote: > Allwinner A64 have a RSB controller like the one on A23/A33 SoCs. > > Add it and its pinmux. > > Signed-off-by: Icenowy Zheng > Acked-by: Chen-Yu Tsai Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and

Re: [PATCH] ARM: sunxi: h3/h5: fix the compatible of R_CCU

2017-04-17 Thread Maxime Ripard
On Mon, Apr 17, 2017 at 06:34:49PM +0800, Icenowy Zheng wrote: > The R_CCU of H3/H5 currently wrongly used A64 R_CCU compatible. > > Fix it by changing it to the correct H3 compatible. > > Signed-off-by: Icenowy Zheng Applied, thanks Maxime -- Maxime Ripard, Free Electrons Embedded Linux and

Re: [PATCH] arm64: dts: allwinner: pine64: Add remaining UART aliases

2017-04-17 Thread Maxime Ripard
On Fri, Apr 14, 2017 at 09:08:04PM +0200, Andreas Färber wrote: > Enabling uart2 node currently leads to a /dev/ttyS1 device, with ttyS0..4 > always present, causing confusion on the user's part. > > dtc cannot resolve an overlay's &uart2 reference for strings, only for > phandles, so it would nee

Re: [PATCH] arm64: dts: allwinner: a64: Add UART2 pin nodes

2017-04-17 Thread Maxime Ripard
On Fri, Apr 14, 2017 at 07:13:20PM +0200, Andreas Färber wrote: > UART2 is exposed on the Pi connector of Pine64. Make a pinctrl node > available at the SoC level, to simplify enabling UART2 via DT overlay. > > Signed-off-by: Andreas Färber Applied, thanks! Could you also create the node in the

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

2017-04-17 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: make[7]: *** No rule to make target 'drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/uds/uds_1.0/ia_css_uds.host.o', needed by 'drivers/staging/media/atomisp/pci/atomisp2/ato

[PATCH V3] mm/madvise: Move up the behavior parameter validation

2017-04-17 Thread Anshuman Khandual
The madvise_behavior_valid() function should be called before acting upon the behavior parameter. Hence move up the function. This also includes MADV_SOFT_OFFLINE and MADV_HWPOISON options as valid behavior parameter for the system call madvise(). Signed-off-by: Anshuman Khandual --- Changes in V

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-17 Thread Logan Gunthorpe
On 17/04/17 11:04 AM, Dan Williams wrote: >> Yes, in this scheme, it needs an additional p2pmem child. Why is that an >> issue? It certainly makes it a lot easier for the user to understand the >> p2pmem memory in the system (through the sysfs tree) and reason about >> the topology and when to us

[PATCH] RTC: Add functionality to read/write rtc scratch registers

2017-04-17 Thread Keerthy
From: Russ Dill Many RTCs provide scratch registers that are maintained so long as the RTC has power. Provide a generic method to access these registers. Signed-off-by: Russ Dill Signed-off-by: Keerthy --- drivers/rtc/interface.c | 50 + drivers

[PATCH v2] usb: dwc3: add disable u2mac linestate check quirk

2017-04-17 Thread William Wu
This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Refer the dwc3 databook, we can use it for some special platforms if the linestate not reflect the expected line state(J) during transmission. When use this quirk, the controller implements a fixed 40-bit TxEndDelay

Re: [PATCH V2] PM / OPP: Use - instead of @ for DT entries

2017-04-17 Thread Viresh Kumar
On 17-04-17, 18:40, Rafael J. Wysocki wrote: > On Monday, April 17, 2017 06:35:25 PM Rafael J. Wysocki wrote: > > On Monday, April 17, 2017 11:07:51 AM Masahiro Yamada wrote: > > > 2017-04-15 7:47 GMT+09:00 Rafael J. Wysocki : > > > > On Monday, April 10, 2017 02:51:35 PM Viresh Kumar wrote: > > >

[PATCH V3] PM / OPP: Use - instead of @ for DT entries

2017-04-17 Thread Viresh Kumar
Compiling the DT file with W=1, DTC warns like follows: Warning (unit_address_vs_reg): Node /opp_table0/opp@10 has a unit name, but no reg property Fix this by replacing '@' with '-' as the OPP nodes will never have a "reg" property. Reported-by: Krzysztof Kozlowski Reported-by: Masahir

[PATCH] clk: Add functions to save and restore clock/dpll context en-masse

2017-04-17 Thread Keerthy
From: Russ Dill The clock/dpll registers are in the WKUP power domain. Under both RTC-only suspend and hibernation, these registers are lost. Hence save/restore them accordingly. Signed-off-by: Russ Dill Signed-off-by: Keerthy --- drivers/clk/clk.c| 70 d

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-17 Thread Ilia Mirkin
On Mon, Apr 17, 2017 at 10:53 PM, Michel Dänzer wrote: > On 17/04/17 03:43 PM, Ilia Mirkin wrote: >> On Tue, Apr 11, 2017 at 10:18 AM, Ilia Mirkin wrote: However, I totally agree with Alex that someone with a BE machine should review the whole stack before we could be confident with any

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-17 Thread Minchan Kim
Hi Huang, On Fri, Apr 07, 2017 at 02:49:01PM +0800, Huang, Ying wrote: > From: Huang Ying > > To reduce the lock contention of swap_info_struct->lock when freeing > swap entry. The freed swap entries will be collected in a per-CPU > buffer firstly, and be really freed later in batch. During th

Re: [PATCH 4.10 00/29] 4.10.11-stable review

2017-04-17 Thread Greg Kroah-Hartman
On Mon, Apr 17, 2017 at 12:25:38PM -0600, Shuah Khan wrote: > On 04/16/2017 02:04 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.10.11 release. > > There are 29 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: [PATCH 3.18 000/145] 3.18.49-stable review

2017-04-17 Thread Greg Kroah-Hartman
On Mon, Apr 17, 2017 at 12:18:19PM -0600, Shuah Khan wrote: > On 04/16/2017 04:48 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.49 release. > > There are 145 patches in this series, all will be posted as a response > > to this one. If anyone has any is

Re: [PATCH 3.18 010/145] sctp: avoid BUG_ON on sctp_wait_for_sndbuf

2017-04-17 Thread Greg Kroah-Hartman
On Mon, Apr 17, 2017 at 05:00:50PM -0300, Marcelo Ricardo Leitner wrote: > > > Em 16-04-2017 07:48, Greg Kroah-Hartman escreveu: > > 3.18-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Marcelo Ricardo Leitner > > > > > > [ Ups

Re: [PATCH 1/1] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-04-17 Thread Chewie Lin
On Tue, Apr 18, 2017 at 06:14:11AM +0200, Greg KH wrote: > On Mon, Apr 17, 2017 at 04:58:48PM -0700, Chewie Lin wrote: > > Swap string in the dev_warn() call with __func__ argument, instead of > > explicitly calling the function name in the string: > > > > WARNING: Prefer using "%s", __fun

Re: [PATCH] ACPICA: Export mutex functions

2017-04-17 Thread Guenter Roeck
On 04/17/2017 04:53 PM, Zheng, Lv wrote: Hi, From: Guenter Roeck [mailto:li...@roeck-us.net] Subject: Re: [PATCH] ACPICA: Export mutex functions On Mon, Apr 17, 2017 at 11:29:38PM +0200, Rafael J. Wysocki wrote: On Mon, Apr 17, 2017 at 11:03 PM, Guenter Roeck wrote: On Mon, Apr 17, 2017 at

[PATCH v6 1/2] thermal: core: Allow orderly_poweroff to be called only once

2017-04-17 Thread Keerthy
thermal_zone_device_check --> thermal_zone_device_update --> handle_thermal_trip --> handle_critical_trips --> orderly_poweroff The above sequence happens every 250/500 mS based on the configuration. The orderly_poweroff function is getting called every 250/500 mS. With a full fledged file system

[PATCH v6 2/2] thermal: core: Add a back up thermal shutdown mechanism

2017-04-17 Thread Keerthy
orderly_poweroff is triggered when a graceful shutdown of system is desired. This may be used in many critical states of the kernel such as when subsystems detects conditions such as critical temperature conditions. However, in certain conditions in system boot up sequences like those in the middle

Re: [PATCH 2/2 v2] char: misc: use octal permissions for the proc entry

2017-04-17 Thread Greg Kroah-Hartman
On Mon, Apr 17, 2017 at 08:22:57PM +0200, Martin Kaiser wrote: > Set the permissions for /proc/misc to 0444 explicitly. At the moment, > we're using 0 and have proc_create_data() convert this to 0444. > This fixes a checkpatch warning. > > Signed-off-by: Martin Kaiser > --- > v2: >separate pa

Re: [PATCH 1/4] added SECURITY_TIOCSTI_RESTRICT kernel config

2017-04-17 Thread Matt Brown
On 04/17/2017 02:50 AM, Greg KH wrote: On Mon, Apr 17, 2017 at 02:07:03AM -0400, Matt Brown wrote: adding the kernel config SECURITY_TIOCSTI_RESTRICT in order to allow the user to restrict unprivileged command injection using TIOCSTI tty ioctls "unpriviledged command injection"? That sounds a

Re: [PATCH v5 0/3] vfio/type1: Synchronous locked page accounting

2017-04-17 Thread Peter Xu
On Mon, Apr 17, 2017 at 04:37:38PM -0600, Alex Williamson wrote: > v5: > - patch 1/ Use bool* to cleanup vfio_lock_acct() callers; sorry > we cannot re-test CAP_IPC_LOCK for all callers > - patch 2/ Re-add pr_warn, add Kirti's R-b > - patch 3/ NEW, analyzing impact of vfio_lock_a

Re: [PATCH 1/1] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-04-17 Thread Greg KH
On Mon, Apr 17, 2017 at 04:58:48PM -0700, Chewie Lin wrote: > Swap string in the dev_warn() call with __func__ argument, instead of > explicitly calling the function name in the string: > > WARNING: Prefer using "%s", __func__ to embedded function names > #417: FILE: main_usb.c:417

Re: [PATCH v5 2/2] thermal: core: Add a back up thermal shutdown mechanism

2017-04-17 Thread Keerthy
On Monday 17 April 2017 10:46 PM, Eduardo Valentin wrote: > On Sat, Apr 15, 2017 at 08:38:29AM +0530, Keerthy wrote: >> orderly_poweroff is triggered when a graceful shutdown >> of system is desired. This may be used in many critical states of the >> kernel such as when subsystems detects conditi

Re: [PATCH v2] efi: Config options to assign versions in the PE-COFF header

2017-04-17 Thread Gary Lin
On Mon, Apr 17, 2017 at 11:09:38AM -0700, Roy Franz (HPE) wrote: > On Thu, Apr 13, 2017 at 12:47 AM, Gary Lin wrote: > > On Thu, Apr 13, 2017 at 08:26:04AM +0100, Ard Biesheuvel wrote: > >> On 13 April 2017 at 04:58, Gary Lin wrote: > >> > This commit adds the new config options to allow the user

Re: cgroup: avoid attaching a cgroup root to two different superblocks

2017-04-17 Thread Andrei Vagin
On Mon, Apr 17, 2017 at 06:41:38PM +0800, Zefan Li wrote: > On 2017/4/15 7:32, Andrei Vagin wrote: > > On Fri, Apr 14, 2017 at 04:27:37PM -0700, Andrei Vagin wrote: > >> Hello, > >> > >> One of our CRIU tests hangs with this patch. > >> > >> Steps to reproduce: > >> curl -o cgroupns.c > >> https:/

[PATCH] usb: dwc3: add disable u2mac linestate check quirk

2017-04-17 Thread William Wu
This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Refer the dwc3 databook, we can use it for some special platforms if the linestate not reflect the expected line state(J) during transmission. When use this quirk, the controller implements a fixed 40-bit TxEndDelay

[PATCH] Input: xpad - do not suggest writing to Dominic

2017-04-17 Thread Dmitry Torokhov
Do not recommend people write to Dominic, rather everyone should be using linux-input mailing list. Signed-off-by: Dmitry Torokhov --- Documentation/input/devices/xpad.rst | 6 -- 1 file changed, 6 deletions(-) diff --git a/Documentation/input/devices/xpad.rst b/Documentation/input/devices

Re: [PATCH 5/7] mm/follow_page_mask: Add support for hugepage directory entry

2017-04-17 Thread Aneesh Kumar K.V
kbuild test robot writes: > Hi Aneesh, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.11-rc7 next-20170413] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/A

Re: [PATCH] usb: Make sure usb/phy/of gets built-in

2017-04-17 Thread Frank Rowand
On 04/13/17 05:33, Alexey Brodkin wrote: > DWC3 driver uses of_usb_get_phy_mode() which is > implemented in drivers/usb/phy/of.c and in bare minimal > configuration it might not be pulled in kernel binary. > > In case of ARC or ARM this could be easily reproduced with > "allnodefconfig" +CONFIG_US

Re: [PATCH 2/4] input: xpad.rst: Don't use literal blocks inside footnotes

2017-04-17 Thread Dmitry Torokhov
On Mon, Apr 17, 2017 at 09:46:14AM -0300, Mauro Carvalho Chehab wrote: > Unfortunately, Sphinx (or LaTeX) can't handle literal blocks > inside footnotes. So, just use normal text for the two > literal code-blocks that documents the output of > /sys/kernel/debug/usb/devices for xpad devices. > > Si

Re: [PATCH 1/4] input: xpad.rst: usb/devices is now at /sys/kernel/debug/

2017-04-17 Thread Dmitry Torokhov
On Mon, Apr 17, 2017 at 09:46:13AM -0300, Mauro Carvalho Chehab wrote: > The /proc/bus/usb/devices got moved to sysfs. It is now > sitting at: > /sys/kernel/debug/usb/devices > > Signed-off-by: Mauro Carvalho Chehab Applied, thank you. > --- > Documentation/input/devices/xpad.rst

Re: [PATCH 3/4] input: xpad.rst: proc/bus/usb was renamed to dev/bus/usb

2017-04-17 Thread Dmitry Torokhov
Hi Mauro, On Mon, Apr 17, 2017 at 09:46:15AM -0300, Mauro Carvalho Chehab wrote: > xpad.rst requests a dump of the USB description, as found > on the USB character device. When we got rid of usbfs, > its location change. Update it. I have not heard from Dom ever so I think the best option is to r

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-17 Thread Jason Wang
On 2017年04月17日 07:19, Michael S. Tsirkin wrote: Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally we can't do this and have to drop entries, but

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

2017-04-17 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/block/nbd.c: In function 'nbd_genl_connect': drivers/block/nbd.c:1662:10: error: too few arguments to function 'nla_parse_nested' ret = nla_parse_nested(socks, NBD_SOCK_MAX, att

Re: [PATCH v4 1/2] vfio/type1: Remove locked page accounting workqueue

2017-04-17 Thread Peter Xu
On Mon, Apr 17, 2017 at 03:32:20PM -0600, Alex Williamson wrote: > On Tue, 18 Apr 2017 01:02:12 +0530 > Kirti Wankhede wrote: > > > On 4/18/2017 12:49 AM, Alex Williamson wrote: > > > On Tue, 18 Apr 2017 00:35:06 +0530 > > > Kirti Wankhede wrote: > > > > > >> On 4/17/2017 8:02 PM, Alex Willia

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-17 Thread Michel Dänzer
On 17/04/17 03:43 PM, Ilia Mirkin wrote: > On Tue, Apr 11, 2017 at 10:18 AM, Ilia Mirkin wrote: >>> However, I totally agree with Alex that someone with a BE machine >>> should review the whole stack before we could be confident with anything. >> >> Here's what I'm confident about: xf86-video-nouv

[RFC] using #pragma push_macro and pop_macro

2017-04-17 Thread Joe Perches
There is an argument for using these #pragmas for pr_fmt. gcc/clang/icc all support push_macro and pop_macro pragmas. As far as I can tell, these compilers are the only ones used to compile the kernel. Anyone have any objection to using these pragmas? On Tue, 2017-04-18 at 05:02 +0800, kbuild t

Re: [PATCH 1/3] zram: fix operator precedence to get offset

2017-04-17 Thread Minchan Kim
On Tue, Apr 18, 2017 at 10:53:10AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (04/18/17 08:53), Minchan Kim wrote: > > On Mon, Apr 17, 2017 at 07:50:16PM +0900, Sergey Senozhatsky wrote: > > > Hello Minchan, > > > > > > On (04/17/17 11:14), Minchan Kim wrote: > > > > On Mon, Apr 17, 2017 at

Re: [PATCH V2] mm/madvise: Move up the behavior parameter validation

2017-04-17 Thread Anshuman Khandual
On 04/17/2017 10:57 AM, Naoya Horiguchi wrote: > On Fri, Apr 14, 2017 at 07:21:41PM +0530, Anshuman Khandual wrote: >> The madvise_behavior_valid() function should be called before >> acting upon the behavior parameter. Hence move up the function. >> This also includes MADV_SOFT_OFFLINE and MADV_HW

[PATCH v2] mm: add VM_STATIC flag to vmalloc and prevent from removing the areas

2017-04-17 Thread Hoeun Ryu
vm_area_add_early/vm_area_register_early() are used to reserve vmalloc area during boot process and those virtually mapped areas are never unmapped. So `OR` VM_STATIC flag to the areas in vmalloc_init() when importing existing vmlist entries and prevent those areas from being removed from the rbtr

Re: [PATCH 0/2] Free running cyclic transfer implementation for pl330

2017-04-17 Thread sugar
Hi Alexander, I have tested this series on rk3399 evb board and works well. Tested-by: Sugar Zhang 在 4/14/2017 22:35, Alexander Kochetkov 写道: Hello! This series contain free running cyclic transfer implementation for pl330. It affect ALL chips using pl330 (not only rockchip) and allow to run

[lkp-robot] [x86/mce] 5de97c9f6d: WARNING:at_arch/x86/kernel/cpu/mcheck/mce.c:#mce_register_decode_chain

2017-04-17 Thread kernel test robot
FYI, we noticed the following commit: commit: 5de97c9f6d85fd83af76e09e338b18e7adb1ae60 ("x86/mce: Factor out and deprecate the /dev/mcelog driver") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-i386 -enable-kvm -m 320M c

Re: [PATCH v3 1/8] trace: ras: add ARM processor error information trace event

2017-04-17 Thread Xie XiuQi
Hi Tyler, On 2017/4/18 1:18, Baicar, Tyler wrote: > On 4/16/2017 9:16 PM, Xie XiuQi wrote: >> On 2017/4/17 11:08, Xie XiuQi wrote: On 3/30/2017 4:31 AM, Xie XiuQi wrote: > Add a new trace event for ARM processor error information, so that > the user will know what error occurred. With

[PATCH 3/3] clk: cs2000: select 12.20 High Accuracy on LFRatioCfg

2017-04-17 Thread Kuninori Morimoto
From: Kuninori Morimoto cs2000 can select Static/Dynamic ratio based Frequency Synthesizer Mode, it can select 20.12 High Multiplier interpret for 32-bit User Defined Ratio if Dynamic ratio mode. Otherwise it should select 12.20 High Accuracy mode. Current cs2000 is supporting Static ratio mode

[PATCH 2/3] clk: cs2000: tidyup DEVICE_CFG2 settings

2017-04-17 Thread Kuninori Morimoto
From: Kuninori Morimoto DEVICE_CFG2 can select ratio from user defined ratio and LOCKCLK is for it. But current driver sets fixed 0 value. This patch fixes it. Note is that current cs2000 driver is using/supporting only ratio0 (= ch0) now. DEVICE_CFG2 can select STATIC/DYNAMIC ratio mode, and c

Re: [PATCH 1/3] ptr_ring: batch ring zeroing

2017-04-17 Thread Jason Wang
On 2017年04月15日 06:50, Michael S. Tsirkin wrote: On Fri, Apr 14, 2017 at 03:52:23PM +0800, Jason Wang wrote: On 2017年04月12日 16:03, Jason Wang wrote: On 2017年04月07日 13:49, Michael S. Tsirkin wrote: A known weakness in ptr_ring design is that it does not handle well the situation when ring is

[PATCH 1/3] clk: cs2000: enable clock skipping mode

2017-04-17 Thread Kuninori Morimoto
From: Kuninori Morimoto CLK_IN skipping mode allows the PLL to maintain lock even when the CLK_IN signal has missing pulses for up to 20 ms (t CS) at a time. This patch enables it Signed-off-by: Kuninori Morimoto --- drivers/clk/clk-cs2000-cp.c | 6 ++ 1 file changed, 6 insertions(+) dif

  1   2   3   4   5   6   >