Re: [PATCH] xen/scsifront: use offset_in_page() macro

2017-04-24 Thread Juergen Gross
On 22/04/17 03:21, Geliang Tang wrote: > Use offset_in_page() macro instead of open-coding. > > Signed-off-by: Geliang Tang Pushed to xen/tip for-linus-4.12 Thanks, Juergen

[PATCH REPOST] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread dongbo (E)
From: Dong Bo In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, the flag is propagated to its child processes, even the elf files are marked as not requiring executable stack. It may cause superfluous operations on some arch, e.g. __sync_icache_dcache on aarch64 due to a PROT_READ mma

[PATCH -next] phy: qcom-qmp: fix invalid use of sizeof in qcom_qmp_phy_vreg_init()

2017-04-24 Thread Wei Yongjun
From: Wei Yongjun sizeof() when applied to a pointer typed expression gives the size of the pointer, not that of the pointed data. Signed-off-by: Wei Yongjun --- drivers/phy/phy-qcom-qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-qcom-qmp.c b/drivers/

Re: [PATCH v3 0/4] zram: implement deduplication in zram

2017-04-24 Thread Minchan Kim
Hi Joonsoo, On Fri, Apr 21, 2017 at 10:14:47AM +0900, js1...@gmail.com wrote: > From: Joonsoo Kim > > Changes from v2 > o rebase to latest zram code > o manage alloc/free of the zram_entry in zram_drv.c > o remove useless RB_CLEAR_NODE > o set RO permission tor use_deup sysfs entry if CONFIG_ZRA

Re: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-04-24 Thread Boris Brezillon
On Mon, 24 Apr 2017 18:09:30 -0700 Brian Norris wrote: > On Thu, Mar 16, 2017 at 09:02:40AM +0100, Boris Brezillon wrote: > > > diff --git a/drivers/mtd/nand/atmel/nand-controller.c > > b/drivers/mtd/nand/atmel/nand-controller.c > > new file mode 100644 > > index ..f71b9e5d7d9d > >

Re: [PATCH v3 3/4] zram: make deduplication feature optional

2017-04-24 Thread Minchan Kim
On Fri, Apr 21, 2017 at 10:14:50AM +0900, js1...@gmail.com wrote: > From: Joonsoo Kim > > Benefit of deduplication is dependent on the workload so it's not > preferable to always enable. Therefore, make it optional in Kconfig > and device param. Default is 'off'. This option will be beneficial >

Re: [PATCH 7/7] HID: picoLCD: Replace two seq_printf() calls by seq_puts() in picolcd_debug_reset_show()

2017-04-24 Thread Bruno Prémont
Acked-by: Bruno Prémont On Mon, 24 Apr 2017 22:23:02 +0200 SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 24 Apr 2017 21:27:42 +0200 > > Strings which did not contain data format specifications should be put > into a sequence. Thus use the corresponding function "seq_puts". > > T

[PATCH] drivers:block:drbd:drbd_state:fix null-pointer dereference

2017-04-24 Thread Heloise
Signed-off-by: Heloise In is_valid_state(), there is NULL validation for the variable nc "if (nc)". However,the code will continue to execute when nc is NULL. nc->verify_alg[0] is used in subsequent code, which may cause null-pointer dereference, fix it. --- drivers/block/drbd/drbd_state.c | 2 +

Re: Kernel lockup with Intel Iris graphics

2017-04-24 Thread Jon Masters
On 04/20/2017 07:59 AM, Ulrich Windl wrote: > maybe someone has a idea on this: > https://bugzilla.opensuse.org/show_bug.cgi?id=1032832 I dunno if SuSE is still using the Intel Xorg driver but I had to preemptively switch (Fedora has now done this by default) to the modesetting driver from the i

[PATCH] x86/xen: fix xsave capability setting

2017-04-24 Thread Juergen Gross
Commit 690b7f10b4f9f ("x86/xen: use capabilities instead of fake cpuid values for xsave") introduced a regression as it tried to make use of the fixup feature before it being available. Fall back to the old variant testing via cpuid(). Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten_pv.

Re: [musl] Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-04-24 Thread Hauke Mehrtens
On 03/08/2017 05:39 PM, Carlos O'Donell wrote: > Any header needing compat with a libc includes libc-compat.h (per the > documented way the model works). With this patch any included linux kernel > header that also includes libc-compat.h would immediately define all > the __UAPI_DEF_* constants t

Re: [PATCH] Revert "arm64: Increase the max granular size"

2017-04-24 Thread Ding Tianhong
On 2017/4/19 21:11, Sunil Kovvuri wrote: > On Wed, Apr 19, 2017 at 5:31 PM, Catalin Marinas > wrote: >> On Tue, Apr 18, 2017 at 10:35:02PM +0530, Sunil Kovvuri wrote: >>> On Tue, Apr 18, 2017 at 8:18 PM, Catalin Marinas >>> wrote: On Mon, Apr 17, 2017 at 04:08:52PM +0530, Sunil Kovvuri wro

[PATCH V2 2/2] clk: rockchip: fix the incorrect ids

2017-04-24 Thread Eddie Cai
the ids of clk_testout1 and clk_testout2 is incorrect now. let's correct it Signed-off-by: Eddie Cai --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 73121b14

[PATCH V2 1/2] clk: rockchip: add ids for camera

2017-04-24 Thread Eddie Cai
we use SCLK_TESTCLKOUT1 and SCLK_TESTCLKOUT2 for camera, so add those ids. Signed-off-by: Eddie Cai --- include/dt-bindings/clock/rk3399-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 220a60f..22c

[PATCH V2 0/2] correct ids for clk_testout

2017-04-24 Thread Eddie Cai
we use clk_testout1 and clk_testout2 for camera. e.g. mipi 24M mclk. the ids of clk_testout1 and clk_testout2 is wrong. it's time to correct it. Eddie Cai (2): clk: rockchip: add ids for camera clk: rockchip: fix the incorrect ids drivers/clk/rockchip/clk-rk3399.c | 4 ++-- include/dt-

Re: [PATCH v4 00/21] PCI: fix config space memory mappings

2017-04-24 Thread Jon Masters
On 04/19/2017 12:48 PM, Lorenzo Pieralisi wrote: > On some platforms (ie ARM/ARM64) ioremap fails to comply with the PCI > configuration non-posted write transactions requirement, because it > provides a memory mapping that issues "bufferable" or, in PCI terms > "posted" write transactions. Likewi

Re: [tip:x86/mm] x86: Convert the rest of the code to support p4d_t

2017-04-24 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Mon, Apr 24, 2017 at 11:42:34AM -0700, Dan Williams wrote: > > > > > > I cannot reproduce the issue. > > > > > > Could you share your kernel kernel config? > > > > Kernel config available here: > > https://gist.github.com/djbw/2b99a014396cca9f4406586573be98c0 >

Re: [musl] Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-04-24 Thread Hauke Mehrtens
On 03/08/2017 01:46 PM, David Woodhouse wrote: > On Fri, 2016-11-11 at 07:08 -0500, Felix Janda wrote: >> Currently, libc-compat.h detects inclusion of specific glibc headers, >> and defines corresponding _UAPI_DEF_* macros, which in turn are used in >> uapi headers to prevent definition of confl

Re: [PATCH v7 1/4] syscalls: Restore address limit after a syscall

2017-04-24 Thread Ingo Molnar
* Thomas Garnier wrote: > This patch ensures a syscall does not return to user-mode with a kernel > address limit. If that happened, a process can corrupt kernel-mode > memory and elevate privileges. Don't start changelogs with 'This patch' - it's obvious that we are talking about this patch.

Re: [PATCH] mm, vmscan: do not loop on too_many_isolated for ever

2017-04-24 Thread Stanislaw Gruszka
On Mon, Apr 24, 2017 at 10:06:32PM +0900, Tetsuo Handa wrote: > Stanislaw Gruszka wrote: > > On Sun, Apr 23, 2017 at 07:24:21PM +0900, Tetsuo Handa wrote: > > > On 2017/03/10 20:44, Tetsuo Handa wrote: > > > > Michal Hocko wrote: > > > >> I am definitely not against. There is no reason to rush the

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

2017-04-24 Thread Knut Omang
On Mon, 2017-04-24 at 10:14 -0600, Logan Gunthorpe wrote: > > On 24/04/17 01:36 AM, Knut Omang wrote: > > My first reflex when reading this thread was to think that this whole domain > > lends it self excellently to testing via Qemu. Could it be that doing this > > in  > > the opposite direction

Re: [PATCH] ARM: dts: Add devicetree for the Raspberry Pi 3, for arm32 (v5)

2017-04-24 Thread Stefan Wahren
Am 24.04.2017 um 22:00 schrieb Eric Anholt: > Raspbian and Fedora have decided to support the Pi3 in 32-bit mode for > now, so it's useful to be able to test that mode on an upstream > kernel. It's also been useful for me to use the same board for 32-bit > and 64-bit development. > > Signed-off-by

Re: [PATCH v7 1/4] syscalls: Restore address limit after a syscall

2017-04-24 Thread Ingo Molnar
* Kees Cook wrote: > On Mon, Apr 10, 2017 at 9:44 AM, Thomas Garnier wrote: > > This patch ensures a syscall does not return to user-mode with a kernel > > address limit. If that happened, a process can corrupt kernel-mode > > memory and elevate privileges. > > > > For example, it would mitigat

[PATCH v2 1/4] of: remove *phandle properties from expanded device tree

2017-04-24 Thread frowand . list
From: Frank Rowand Remove "phandle", "linux,phandle", and "ibm,phandle" properties from the internal device tree. The phandle will still be in the struct device_node phandle field. This is to resolve the issue found by Stephen Boyd [1] when he changed the type of struct property.value from void

[PATCH v2 4/4] of: detect invalid phandle in overlay

2017-04-24 Thread frowand . list
From: Frank Rowand Overlays are not allowed to modify phandle values of previously existing nodes because there is no information available to allow fixup up properties that use the previously existing phandle. Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 4 1 file changed, 4 in

[PATCH v2 2/4] of: make __of_attach_node() static

2017-04-24 Thread frowand . list
From: Frank Rowand __of_attach_node() is not used outside of drivers/of/dynamic.c. Make it static and remove it from drivers/of/of_private.h. Signed-off-by: Frank Rowand --- drivers/of/dynamic.c| 2 +- drivers/of/of_private.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --

[PATCH v2 0/4] of: remove *phandle properties from expanded device tree

2017-04-24 Thread frowand . list
From: Frank Rowand Remove "phandle" and "linux,phandle" properties from the internal device tree. The phandle will still be in the struct device_node phandle field. This is to resolve the issue found by Stephen Boyd [1] when he changed the type of struct property.value from void * to const void

[PATCH v2 3/4] of: be consistent in form of file mode

2017-04-24 Thread frowand . list
From: Frank Rowand checkpatch whined about using S_IRUGO instead of octal equivalent when adding phandle sysfs code, so used octal in that patch. Change other instances of the S_* constants in the same file to the octal form. Signed-off-by: Frank Rowand --- drivers/of/base.c | 2 +- 1 file cha

Re: [PATCH v3] Staging: most: use __func__ instead of the function name

2017-04-24 Thread Chandra Annamaneni
Change video.c to use %s, __func__ instead of function names. Warnings flagged by checkpatch.pl Signed-off-by: Chandra Annamaneni diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index e074841..59e861e 100644 --- a/drivers/staging/most/

[PATCH] [media] s5p-jpeg: fix recursive spinlock acquisition

2017-04-24 Thread Alexandre Courbot
v4l2_m2m_job_finish(), which is called from the interrupt handler with slock acquired, can call the device_run() hook immediately if another context was in the queue. This hook also acquires slock, resulting in a deadlock for this scenario. Fix this by releasing slock right before calling v4l2_m2m

Re: [PATCH] platform/x86/intel-vbtn: add volume up and down

2017-04-24 Thread AceLan Kao
In the beginning, we just need the power button function, so I didn't implement all the keys to the driver. And we didn't get any further requirement from the following projects we were working on, so I'm not aware that there are machines other than Dell using this driver. I'll try filling up all

Re: [PATCH 1/2] [media] vb2: Fix an off by one error in 'vb2_plane_vaddr'

2017-04-24 Thread Christophe JAILLET
Le 24/04/2017 à 22:29, Sakari Ailus a écrit : Hi Christophe, On Mon, Apr 24, 2017 at 10:00:24PM +0200, Christophe JAILLET wrote: Le 24/04/2017 à 16:16, Sakari Ailus a écrit : On Sun, Apr 23, 2017 at 11:32:57PM +0200, Christophe JAILLET wrote: We should ensure that 'plane_no' is '< vb->num_pla

[PATCH] arm64: Preventing READ_IMPLIES_EXEC propagation

2017-04-24 Thread dongbo (E)
From: Dong Bo Once the READ_IMPLIES_EXEC flag is set on arm64, the flag is propagated to its child processes, even the ELF files are marked as not requiring executable stack. Signed-off-by: Dong Bo --- arch/arm64/include/asm/elf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/

RE: [PATCH] PCI: imx6: fix spelling mistake: "contol" -> "control"

2017-04-24 Thread Richard Zhu
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Friday, April 21, 2017 3:03 PM > To: Richard Zhu ; Lucas Stach > ; Bjorn Helgaas ; linux- > p...@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH] PCI

Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

2017-04-24 Thread Jan Kiszka
On 2017-04-24 22:05, Andy Shevchenko wrote: >> +{ >> +int ret; >> +struct adc1x8s102_state *st; >> + >> +st = iio_priv(indio_dev); >> + >> +switch (m) { >> +case IIO_CHAN_INFO_RAW: >> +mutex_lock(&indio_dev->mlock); >> +if (indio_dev->currentmode == INDIO

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

2017-04-24 Thread Keerthy
On Tuesday 18 April 2017 08:30 PM, Tero Kristo wrote: > On 18/04/17 08:12, Keerthy wrote: >> 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. >> >> Sig

Re: [linux-sunxi] [PATCH v4 07/10] mfd: axp20x: add axp20x-regulator cell for AXP803

2017-04-24 Thread icenowy
在 2017-04-25 10:17,Chen-Yu Tsai 写道: On Tue, Apr 25, 2017 at 12:01 AM, Icenowy Zheng wrote: As axp20x-regulator now supports AXP803, add a cell for it. Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai --- Changes in v4: - Added a trailing comma for new cell, for easier further cell additi

Re: [PATCH] stmmac: Add support for SIMATIC IOT2000 platform

2017-04-24 Thread Jan Kiszka
On 2017-04-24 23:27, Andy Shevchenko wrote: > On Mon, Apr 24, 2017 at 10:27 PM, Jan Kiszka wrote: >> The IOT2000 is industrial controller platform, derived from the Intel >> Galileo Gen2 board. The variant IOT2020 comes with one LAN port, the >> IOT2040 has two of them. They can be told apart base

Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

2017-04-24 Thread Jan Kiszka
On 2017-04-24 23:25, Andy Shevchenko wrote: > On Mon, Apr 24, 2017 at 11:32 PM, Jan Kiszka wrote: >> On 2017-04-24 22:05, Andy Shevchenko wrote: >>> On Mon, 2017-04-24 at 21:28 +0200, Jan Kiszka wrote: This is an upstream port of an IIO driver for the TI ADC108S102 and ADC128S102. The fo

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-04-24 Thread Byungchul Park
On Mon, Apr 24, 2017 at 12:17:47PM +0200, Peter Zijlstra wrote: > On Mon, Apr 24, 2017 at 02:11:02PM +0900, Byungchul Park wrote: > > On Wed, Apr 19, 2017 at 04:25:03PM +0200, Peter Zijlstra wrote: > > > > I still don't like work_id; it doesn't have anything to do with > > > workqueues per se, oth

Re: [PATCH RT] usb: Use _nort in usb_hcd_pci_remove

2017-04-24 Thread kbuild test robot
Hi Nate, [auto build test ERROR on usb/usb-testing] [also build test ERROR on v4.11-rc8 next-20170424] [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/Nate-Dailey/usb-Use-_nort-in

Re: [PATCH v3] usb: typec: Don't prevent using constant typec_mode_desc initializers

2017-04-24 Thread Guenter Roeck
On Mon, Apr 24, 2017 at 11:52 AM, Mats Karrman wrote: > Signed-off-by: Mats Karrman > --- > v3: > - Fixed damaged white-space, finally? > Yes, this one finally applied. Some description in addition to the subject line might be nice. Other than that, Reviewed-by: Guenter Roeck Guenter > v2: >

Re: [PATCH] xen/scsifront: use offset_in_page() macro

2017-04-24 Thread Juergen Gross
On 25/04/17 00:15, Martin K. Petersen wrote: > > Juergen, > >> On 22/04/17 03:21, Geliang Tang wrote: >>> Use offset_in_page() macro instead of open-coding. >>> >>> Signed-off-by: Geliang Tang >> >> Reviewed-by: Juergen Gross > > Taking this through the Xen tree or should I queue it? I can ta

Re: net/ipv6: slab-out-of-bounds in ip6_tnl_xmit

2017-04-24 Thread Cong Wang
On Mon, Apr 24, 2017 at 9:47 AM, Cong Wang wrote: > > We use ipv4 dst in ip6_tunnel and cast an IPv4 neigh key as an > IPv6 address... > > > neigh = dst_neigh_lookup(skb_dst(skb), > &ipv6_hdr(skb)->daddr); > if (!neigh) >

Re: [PATCH 0/2] DS1374 Watchdog fixes

2017-04-24 Thread Guenter Roeck
On 04/24/2017 03:05 PM, Moritz Fischer wrote: Hi all, this series fixes two issues that I ran into when trying to use the watchdog part of the DS1374 on of our products. This series is basically a precursor to some further cleanup work, that turns the DS1374 into a MFD device with an RTC and WD

Re: [PATCH] platform/x86/intel-vbtn: add volume up and down

2017-04-24 Thread Maarten Maathuis
On Tue, Apr 25, 2017 at 4:43 AM, AceLan Kao wrote: > According the spec. I have, the values are correct. > Please merge it, thanks. > Is there a reason the whole spec isn't implemented? Is it under NDA? > 2017-04-25 5:41 GMT+08:00 Maarten Maathuis : >> On Mon, Apr 24, 2017 at 11:37 PM, Andy Shev

Re: [PATCH V3 11/17] thermal: cpu_cooling: get rid of 'allowed_cpus'

2017-04-24 Thread Viresh Kumar
On 24-04-17, 17:53, Lukasz Luba wrote: > The policy pointer forwarded from cpufreq_update_policy() > is a local variable 'new_policy' so cannot be compared with pinned > policy pointer in the cooling device. > You should do the cpumask test like before: > if (!cpumask_test_cpu(policy->cpu, >

Re: [PATCH -next] phy: qcom-qmp: fix return value check in qcom_qmp_phy_create()

2017-04-24 Thread Vivek Gautam
On 04/25/2017 08:44 AM, Wei Yongjun wrote: From: Wei Yongjun In case of error, the function of_iomap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets"

Re: [PATCH V3 4/4] soc/tegra: pmc: Use the new reset APIs to manage reset controllers

2017-04-24 Thread Vivek Gautam
On 04/24/2017 06:15 PM, Jon Hunter wrote: On 18/04/17 12:21, Vivek Gautam wrote: Make use of reset_control_array_*() set of APIs to manage an array of reset controllers available with the device. Before we apply this patch, I need to check to see if the order of the resets managed by the PMC

[PATCH v5 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-24 Thread Matt Brown
This introduces the tiocsti_restrict sysctl, whose default is controlled via CONFIG_SECURITY_TIOCSTI_RESTRICT. When activated, this control restricts all TIOCSTI ioctl calls from non CAP_SYS_ADMIN users. This patch depends on patch 1/2 This patch was inspired from GRKERNSEC_HARDEN_TTY. This patc

[PATCH v5 1/2] security: tty: Add owner user namespace to tty_struct

2017-04-24 Thread Matt Brown
This patch adds struct user_namespace *owner_user_ns to the tty_struct. Then it is set to current_user_ns() in the alloc_tty_struct function. This is done to facilitate capability checks against the original user namespace that allocated the tty. E.g. ns_capable(tty->owner_user_ns,CAP_SYS_ADMIN)

[PATCH v5 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-24 Thread Matt Brown
This patchset introduces the tiocsti_restrict sysctl, whose default is controlled via CONFIG_SECURITY_TIOCSTI_RESTRICT. When activated, this control restricts all TIOCSTI ioctl calls from non CAP_SYS_ADMIN users. This patch was inspired from GRKERNSEC_HARDEN_TTY. This patch would have prevented h

Re: [PATCH v2] fpga: allow to compile-test Altera FPGA bridge drivers

2017-04-24 Thread kbuild test robot
Hi Tobias, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc8] [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/Tobias-Klauser/fpga-allow-to-compile-test-Altera-FPGA-bridg

Re: [PATCH] ARM: dts: Add devicetree for the Raspberry Pi 3, for arm32 (v5)

2017-04-24 Thread Florian Fainelli
On 04/24/2017 01:00 PM, Eric Anholt wrote: > Raspbian and Fedora have decided to support the Pi3 in 32-bit mode for > now, so it's useful to be able to test that mode on an upstream > kernel. It's also been useful for me to use the same board for 32-bit > and 64-bit development. > > Signed-off-

Re: [PATCH] virtio_blk: Fix English in description of VIRTIO_BLK_SCSI

2017-04-24 Thread Jens Axboe
On 04/24/2017 12:13 AM, Jean Delvare wrote: > Signed-off-by: Jean Delvare > Fixes: 97b50a654d5d ("virtio_blk: make SCSI passthrough support configurable") > Cc: Christoph Hellwig > Cc: Jens Axboe Added for 4.12, thanks. -- Jens Axboe

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Jason Wang
On 2017年04月24日 20:00, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: On 2017年04月17日 07:19, Michael S. Tsirkin wrote: Applications that consume a

Re: [PATCH 0/3] nvme: APST improvements (for 4.12, perhaps)

2017-04-24 Thread Jens Axboe
On Fri, Apr 21 2017, Andy Lutomirski wrote: > Hi all- > > These are APST improvements for 4.12 or so. The first one fixes a > buggy comment. The second makes debugging easier. The third makes > it possible to force APST on despite quirks. > > Andy Lutomirski (3): > nvme: Fix APST comment >

Re: [PATCH 1/3 v2] xen: Export xen_reboot

2017-04-24 Thread Juergen Gross
On 24/04/17 20:21, Boris Ostrovsky wrote: > On 04/24/2017 01:58 PM, Julien Grall wrote: >> The helper xen_reboot will be called by the EFI code in a later patch. >> >> Note that the ARM version does not yet exist and will be added in a >> later patch too. >> >> Signed-off-by: Julien Grall > > I d

Re: [PATCH -next] ASoC: Intel: Skylake: Fix to use list_for_each_safe() when delete items

2017-04-24 Thread Vinod Koul
On Tue, Apr 25, 2017 at 03:28:17AM +, Wei Yongjun wrote: > From: Wei Yongjun > > Since we will remove items off the list using list_del() we need > to use a safe version of the list_for_each() macro aptly named > list_for_each_safe(). ah yes, god catch > This is detected by Coccinelle seman

Re: [PATCH v2 02/29] drm/ttm: fix include notation and remove -Iinclude/drm flag

2017-04-24 Thread Michel Dänzer
On 24/04/17 01:50 PM, Masahiro Yamada wrote: > For the C file, include instead of relative path from > include/drm. > > For headers in include/drm/ttm, simplify the with "*.h". > > This allows us to remove the -Iinclude/drm compiler flag from > drivers/gpu/drm/ttm/Makefile (and from other drive

Re: [PATCH] ARM: dts: Add devicetree for the Raspberry Pi 3, for arm32 (v5)

2017-04-24 Thread kbuild test robot
Hi Eric, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.11-rc8 next-20170424] [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/Eric-Anholt/ARM-dts-Add-devicetree-for-the

Re: [PATCH] sched: topology: s/borken/broken

2017-04-24 Thread Viresh Kumar
On 24-04-17, 14:26, Mike Galbraith wrote: > On Mon, 2017-04-24 at 16:50 +0530, Viresh Kumar wrote: > > Fix minor spelling mistake. > > That's a perfectly correct alternative spelling of b0rken :) yeah, I was already trolled on IRC for this stupid patch. Sorry about that and this one is dropped fo

Re: [PATCH v2] arm64: perf: Use only exclude_kernel attribute when kernel is running in HYP

2017-04-24 Thread Ganapatrao Kulkarni
On Mon, Apr 24, 2017 at 9:15 PM, Will Deacon wrote: > On Thu, Apr 20, 2017 at 02:56:50PM +0530, Ganapatrao Kulkarni wrote: >> On Thu, Apr 20, 2017 at 2:19 PM, Mark Rutland wrote: >> > On Wed, Apr 19, 2017 at 11:14:06PM +0530, Ganapatrao Kulkarni wrote: >> >> commit d98ecda (arm64: perf: Count EL2

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-04-24 Thread Joonsoo Kim
On Mon, Apr 24, 2017 at 03:09:36PM +0200, Michal Hocko wrote: > On Mon 17-04-17 11:02:12, Joonsoo Kim wrote: > > On Thu, Apr 13, 2017 at 01:56:15PM +0200, Michal Hocko wrote: > > > On Wed 12-04-17 10:35:06, Joonsoo Kim wrote: > [...] > > > > ZONE_CMA is conceptually the same with ZONE_MOVABLE. Ther

Re: [PATCH RFC v6] x86,mm,sched: make lazy TLB mode even lazier

2017-04-24 Thread Andy Lutomirski
On Fri, Sep 9, 2016 at 12:44 AM, Peter Zijlstra wrote: > On Thu, Sep 08, 2016 at 09:39:45PM -0700, Andy Lutomirski wrote: >> If they're busy threads, shouldn't the yield return immediately >> because the threads are still ready to run? Lazy TLB won't do much >> unless you get the kernel in some s

[PATCH -next] ASoC: Intel: Skylake: Fix to use list_for_each_safe() when delete items

2017-04-24 Thread Wei Yongjun
From: Wei Yongjun Since we will remove items off the list using list_del() we need to use a safe version of the list_for_each() macro aptly named list_for_each_safe(). This is detected by Coccinelle semantic patch. Fixes: b8c722ddd548 ("ASoC: Intel: Skylake: Add support for deferred DSP module

Re: [PATCH v3 3/7] kprobes: validate the symbol name length

2017-04-24 Thread Masami Hiramatsu
On Sun, 23 Apr 2017 15:44:32 + "Naveen N. Rao" wrote: > >> >> +bool is_valid_kprobe_symbol_name(const char *name) > >> > > >> > This just check the length of symbol_name buffer, and can contain > >> > some invalid chars. > >> > >> Yes, I kept the function name generic incase we would like t

Re: [PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-24 Thread Michel Dänzer
On 24/04/17 03:25 PM, Gerd Hoffmann wrote: > Return correct fourcc codes on bigendian. Drivers must be adapted to > this change. > > Signed-off-by: Gerd Hoffmann Just to reiterate, this won't work for the radeon driver, which programs the GPU to use (effectively, per the current definition that

[PATCH -next] drm/rockchip: cdn-dp: fix return value check in cdn_dp_probe()

2017-04-24 Thread Wei Yongjun
From: Wei Yongjun Fix the retrn value check which testing the wrong variable in cdn_dp_probe(). Fixes: 1a0f7ed3abe2 ("drm/rockchip: cdn-dp: add cdn DP support for rk3399") Signed-off-by: Wei Yongjun --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH -next] phy: qcom-qmp: fix return value check in qcom_qmp_phy_create()

2017-04-24 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function of_iomap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets") Signed-off-by: Wei Yongjun --- drivers/phy/

[PATCH -next] firmware: google memconsole: Fix return value check in platform_memconsole_init()

2017-04-24 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: d384d6f43d1e ("firmware: google memconsole: Add coreboot support") Signed-off-by: Wei Yong

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

2017-04-24 Thread Michel Dänzer
On 25/04/17 10:12 AM, Michel Dänzer wrote: > On 24/04/17 10:03 PM, Ville Syrjälä wrote: >> On Mon, Apr 24, 2017 at 03:57:02PM +0900, Michel Dänzer wrote: >>> On 22/04/17 07:05 PM, Ville Syrjälä wrote: On Fri, Apr 21, 2017 at 06:14:31PM +0200, Gerd Hoffmann wrote: > Hi, > >>> My p

Re: [PATCH v3] selftests: ftrace: Allow some tests to be run in a tracing instance

2017-04-24 Thread Masami Hiramatsu
On Mon, 24 Apr 2017 18:01:38 -0400 Steven Rostedt wrote: > On Sun, 23 Apr 2017 09:02:24 +0900 > Masami Hiramatsu wrote: > > > > > > > > > > > +} > > > > > + > > > > > eval_result() { # sigval > > > > >case $1 in > > > > > $PASS) > > > > > @@ -271,6 +275,21 @@ for t in $TEST_CASES;

Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer

2017-04-24 Thread David Lin
Hi Jacek, On Mon, Apr 24, 2017 at 12:59 PM, Jacek Anaszewski wrote: > > Hi David, > > Thanks for the patch. > > Unfortunately we cannot switch to using hr timers just like that > without introducing side effects for many devices. We had similar > attempt of increasing timer tirgger accuracy two y

Re: [PATCH 20/22] tools arch: Sync arch/x86/lib/memcpy_64.S with the kernel

2017-04-24 Thread Joe Perches
On Mon, 2017-04-24 at 13:36 -0700, Luck, Tony wrote: > On Mon, Apr 24, 2017 at 04:54:37PM -0300, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > > > Just a minor fix done in: > > > > Fixes: 26a37ab319a2 ("x86/mce: Fix copy/paste error in exception table > > entries") >

Re: your mail

2017-04-24 Thread Joonsoo Kim
On Mon, Apr 24, 2017 at 09:53:12AM +0200, Michal Hocko wrote: > On Mon 24-04-17 10:44:43, Joonsoo Kim wrote: > > On Fri, Apr 21, 2017 at 09:16:16AM +0200, Michal Hocko wrote: > > > On Fri 21-04-17 13:38:28, Joonsoo Kim wrote: > > > > On Thu, Apr 20, 2017 at 09:28:20AM +0200, Michal Hocko wrote: > >

Re: [PATCH] platform/x86/intel-vbtn: add volume up and down

2017-04-24 Thread AceLan Kao
According the spec. I have, the values are correct. Please merge it, thanks. 2017-04-25 5:41 GMT+08:00 Maarten Maathuis : > On Mon, Apr 24, 2017 at 11:37 PM, Andy Shevchenko > wrote: >> On Tue, Apr 25, 2017 at 12:29 AM, Maarten Maathuis >> wrote: >>> Tested on HP Elite X2 1012 G1. >>> Matches e

Re: [PATCH v3 2/2] Input: add support for the STMicroelectronics FingerTip touchscreen

2017-04-24 Thread Andi Shyti
Hi Dmitry, again, kindly ping. This patch has been posted on March 27th and this is the third time I ask you a feedback about it. Please let me know, Andi On Mon, Mar 27, 2017 at 10:07:43PM +0900, Andi Shyti wrote: > The stmfts (ST-Microelectronics FingerTip S) touchscreen device > is a capaciti

Re: [PATCH v7 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-04-24 Thread Benjamin Herrenschmidt
On Mon, 2017-04-24 at 11:18 -0700, Brendan Higgins wrote: > +static int __aspeed_i2c_init_clk(struct aspeed_i2c_bus *bus, > +    struct platform_device *pdev) > +{ Minor nit ... I'm really not fan of those underscores. We use __ functions in some cases in the kernel fo

Re: [PATCH v6 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-04-24 Thread Benjamin Herrenschmidt
On Mon, 2017-04-24 at 11:56 -0700, Brendan Higgins wrote: > > > +struct aspeed_i2c_bus { > > > + struct i2c_adapter  adap; > > > + struct device   *dev; > > > + void __iomem*base; > > > + /* Synchronizes I/O mem access to base. */ > >

Re: [linux-sunxi] [PATCH v4 07/10] mfd: axp20x: add axp20x-regulator cell for AXP803

2017-04-24 Thread Chen-Yu Tsai
On Tue, Apr 25, 2017 at 12:01 AM, Icenowy Zheng wrote: > As axp20x-regulator now supports AXP803, add a cell for it. > > Signed-off-by: Icenowy Zheng > Acked-by: Chen-Yu Tsai > --- > Changes in v4: > - Added a trailing comma for new cell, for easier further cell addition. > Changes in v3: > - Ma

[PATCH] irqchip/mbigen: Fix the clear register offset

2017-04-24 Thread Majun
From: MaJun Don't minus reserved interrupts (64) when get the clear register offset,because the clear register space includes the space of these 64 interrupts. Signed-off-by: MaJun --- drivers/irqchip/irq-mbigen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-mbigen.c

Re: [PATCH] scsi/mac_esp: Replace bogus memory barrier with spinlock

2017-04-24 Thread Michael Schmitz
Martin, looks good to me, so: Reviewed-By: Michael Schmitz Am 25.04.2017 um 10:29 schrieb Martin K. Petersen: > > Finn, > >> Commit da244654c66e ("[SCSI] mac_esp: fix for quadras with two esp chips") >> added mac_scsi_esp_intr() to handle the IRQ lines from a pair of on-board >> ESP chips (a

Re: Re: [PATCH 1/2] PCI: mediatek: Add Mediatek PCIe host controller support

2017-04-24 Thread Ryder Lee
Hi, On Mon, 2017-04-24 at 17:02 -0500, Bjorn Helgaas wrote: > Hi Ryder, > > Looks good, but I have a few questions below. > > On Sun, Apr 23, 2017 at 04:19:02PM +0800, Ryder Lee wrote: > > Add support for the Mediatek PCIe controller which can be found > > on MT7623A/N, MT2701 and MT8521p platfo

Re: support autofocus / autogain in libv4l2

2017-04-24 Thread Mauro Carvalho Chehab
Em Tue, 25 Apr 2017 00:07:01 +0200 Pavel Machek escreveu: > Hi! > > > Please don't add a new application under lib/. It is fine if you want > > some testing application, if the ones there aren't enough, but please > > place it under contrib/test/. > > > > You should likely take a look at v4l2gr

[PATCH] arm64: dts: exynos: Remove the te-gpios property in the TM2 boards

2017-04-24 Thread Hoegeun Kwon
The decon uses HW-TRIGGER, so TE interrupt is not necessary. Therefore, remove the te-gpios property in the TM2 dts. Signed-off-by: Hoegeun Kwon --- arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/a

Re: [PATCH 7/7] liquidio: use pcie_flr instead of duplicating it

2017-04-24 Thread Felix Manlunas
From: Christoph Hellwig Date: Fri, 14 Apr 2017 21:11:31 +0200 > Signed-off-by: Christoph Hellwig > --- > drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 15 +-- > 1 file changed, 1 insertion(+), 14 deletions(-) > > diff --git a/drivers/net/ethernet/cavium/liquidio/lio_vf_main

Re: support autofocus / autogain in libv4l2

2017-04-24 Thread Mauro Carvalho Chehab
Em Mon, 24 Apr 2017 23:29:14 +0200 Pavel Machek escreveu: > Hi! > > > > For focus to be useful, we need autofocus implmented > > > somewhere. Unfortunately, v4l framework does not seem to provide good > > > place where to put autofocus. I believe, long-term, we'll need some > > > kind of "video

[PATCH] iio: core: Fix suspicious sizeof usage

2017-04-24 Thread Orson Zhai
Pointer size is variours in different system, say 32bit for 4 and 64bit for 8. The 'sizeof(infomask)' may lead to wrong bit numbers. Signed-off-by: Orson Zhai --- drivers/iio/industrialio-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/industrialio-core

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-04-24 Thread Sinan Kaya
> My point is that nothing guarantees a specific ordering or timing of > module loading in general, so moving stuff to different initcall > levels does not really help 100% of the time. > Are you talking about init vs. probe in general? Sorry, I'm trying to decode what you mean to see if there

[PATCH v3 0/2] staging: iio: isl29028: move out of staging

2017-04-24 Thread Brian Masney
Minor cleanup to the proximity sampling to move this driver out of staging. Datasheet: http://www.intersil.com/content/dam/Intersil/documents/isl2/isl29028.pdf Changes since v2: - Reject any value that is not in the in_proximity_sampling_frequency_available sysfs attribute. - Changed the sampli

[PATCH v3 2/2] staging: iio: isl29028: move out of staging

2017-04-24 Thread Brian Masney
Move ISL29028 ALS / Proximity Sensor out of staging and into mainline. Signed-off-by: Brian Masney --- drivers/iio/light/Kconfig| 10 + drivers/iio/light/Makefile | 1 + drivers/iio/light/isl29028.c | 723 +++ drivers/staging/iio/l

[PATCH v3 1/2] staging: iio: isl29028: correct proximity sleep times

2017-04-24 Thread Brian Masney
The sysfs attribute in_proximity_sampling_frequency_available currently shows the values 1 3 5 10 13 20 83 100. These values are supposed to correspond to the sleep values 800 400 200 100 75 50 12.5 0 (all in ms). When passing in a sampling frequency of 3, it actually uses a sleep time of 200ms ins

Re: Powerpc64: Fixup oops when debug programs with CONFIG_RELOCATABLE=y

2017-04-24 Thread Scott Wood
On Tue, Feb 07, 2017 at 10:35:52AM +0800, Liu Hailong wrote: > From: LiuHailong > > Debug interrupts can be taken during regular program or a standard > interrupt, the EA of the instruction causing the interrupt will be > kept in DSRR0. > Kernel will check if this value is between [interrupt_base

Re: KASLR causes intermittent boot failures on some systems

2017-04-24 Thread Baoquan He
On 04/24/17 at 05:41pm, Thomas Garnier wrote: > On Mon, Apr 24, 2017 at 4:07 PM, Baoquan He wrote: > > Yeah, according to my debugging tracking, it goes as Dan said. And the > > is_ram is REGION_DISJOINT. And till arch_add_memory, the parameters > > passed to arch_add_memory are "arch_add_memory,

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

2017-04-24 Thread Michel Dänzer
On 24/04/17 10:03 PM, Ville Syrjälä wrote: > On Mon, Apr 24, 2017 at 03:57:02PM +0900, Michel Dänzer wrote: >> On 22/04/17 07:05 PM, Ville Syrjälä wrote: >>> On Fri, Apr 21, 2017 at 06:14:31PM +0200, Gerd Hoffmann wrote: Hi, >> My personal opinion is that formats in drm_fourcc.h sho

Re: [kernel-hardening] Re: [PATCH] x86/refcount: Implement fast refcount_t handling

2017-04-24 Thread Rik van Riel
On Mon, 2017-04-24 at 15:37 -0700, Kees Cook wrote: > On Mon, Apr 24, 2017 at 3:01 PM, Peter Zijlstra > wrote: > > On Mon, Apr 24, 2017 at 01:40:56PM -0700, Kees Cook wrote: > > > I think we're way off in the weeds here. The "cannot inc from 0" > > > check > > > is about general sanity checks on r

Re: [PATCH v3 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-04-24 Thread Brian Norris
On Thu, Mar 16, 2017 at 09:02:40AM +0100, Boris Brezillon wrote: > diff --git a/drivers/mtd/nand/atmel/nand-controller.c > b/drivers/mtd/nand/atmel/nand-controller.c > new file mode 100644 > index ..f71b9e5d7d9d > --- /dev/null > +++ b/drivers/mtd/nand/atmel/nand-controller.c > @@ -0,

MONTHLY UPDATE

2017-04-24 Thread IT Department
Recently, we have detect some unusual activity on your account and as a result, all email users are urged to update their email account within 24 hours of receiving this e-mail, please click the link http://beam.to/6128 to confirm that your email account is up to date with the institution requir

Re: [tip:x86/mm] x86: Convert the rest of the code to support p4d_t

2017-04-24 Thread Kirill A. Shutemov
On Mon, Apr 24, 2017 at 11:42:34AM -0700, Dan Williams wrote: > > > > I cannot reproduce the issue. > > > > Could you share your kernel kernel config? > > Kernel config available here: > https://gist.github.com/djbw/2b99a014396cca9f4406586573be98c0 Patch below should help. Please check. diff --g

  1   2   3   4   5   6   7   8   9   10   >