Re: [PATCH 2/3] firmware: qcom: scm: Expose download-mode control

2017-03-25 Thread Bjorn Andersson
On Fri 24 Mar 08:06 PDT 2017, Rob Herring wrote: > On Fri, Mar 17, 2017 at 09:15:22PM -0700, Bjorn Andersson wrote: [..] > > diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt > > b/Documentation/devicetree/bindings/firmware/qcom,scm.txt > > index 20f26fbce875..8467a181f22c 1006

Re: [rcu:dev.2017.03.16a 53/58] include/linux/srcu.h:62:28: fatal error: linux/srcutree.h: No such file or directory

2017-03-25 Thread Paul E. McKenney
On Sun, Mar 26, 2017 at 11:31:27AM +0800, kbuild test robot wrote: > Hi Paul, > > FYI, the error/warning still remains. Yeah, idiot here forgot "git add"... So it was working fine in my local tree, but for everyone else, not so much. :-/ Mostly fixed, still at least one bug left. Thank you ag

Re: [PATCH v2 1/2] soc: qcom: Add device tree binding for GLINK RPM

2017-03-25 Thread Bjorn Andersson
On Fri 24 Mar 09:07 PDT 2017, Rob Herring wrote: > On Mon, Mar 20, 2017 at 02:09:55PM -0700, Bjorn Andersson wrote: > > Add device tree binding documentation for the Qualcomm GLINK RPM, used > > for communication with the Resource Power Management subsystem in > > various Qualcomm SoCs. > > > > S

[RFC PATCH tip/master 7/8] kprobes/x86: Use probe_kernel_read instead of memcpy

2017-03-25 Thread Masami Hiramatsu
Use probe_kernel_read() for avoiding unexpected faults while copying kernel text in __recover_probed_insn(), __recover_optprobed_insn() and __copy_instruction(). Signed-off-by: Masami Hiramatsu --- Note that this is just an update patch which I had been sent to LKML last month ( https://lkml.

Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient

2017-03-25 Thread Eric Biggers
On Thu, Dec 29, 2016 at 01:34:45PM -0600, Eric Biggers wrote: > From: Eric Biggers > > To install a buffer_head into the cpu's LRU queue, bh_lru_install() > would construct a new copy of the queue and then memcpy it over the real > queue. But it's easily possible to do the update in-place, which

[RFC PATCH tip/master 8/8] kprobes/x86: Consolidate insn decoder users for copying code

2017-03-25 Thread Masami Hiramatsu
Consolidate x86 instruction decoder users on the path of copying original code for kprobes. Kprobes decodes same instruction 3 times in maximum when preparing instruction buffer. The first time for getting the length of instruction, the 2nd for adjusting displacement, and the 3rd for checking whet

[PATCH 2/5] uapi: fix asm/msgbuf.h userspace compilation errors

2017-03-25 Thread Dmitry V. Levin
Date: Sat, 25 Feb 2017 12:34:56 + Include to fix asm/msgbuf.h userspace compilation errors like this: /usr/include/asm-generic/msgbuf.h:25:20: error: field 'msg_perm' has incomplete type struct ipc64_perm msg_perm; /usr/include/asm-generic/msgbuf.h:26:2: error: unknown type name '__kerne

[RFC PATCH tip/master 6/8] kprobes/x86: Set kprobes pages readonly

2017-03-25 Thread Masami Hiramatsu
Set the pages which is used for kprobes' singlestep buffer and optprobe's trampoline instruction buffer to readonly. This can prevent unexpected (or unintended) instruction modification. This also passes rodata_test as below. Without this patch, rodata_test shows a warning: [ 10.041310] --

[PATCH 4/5] uapi: fix asm/shmbuf.h userspace compilation errors

2017-03-25 Thread Dmitry V. Levin
Date: Sat, 25 Feb 2017 12:34:56 + Include to fix asm/shmbuf.h userspace compilation errors like this: /usr/include/asm-generic/shmbuf.h:26:20: error: field 'shm_perm' has incomplete type struct ipc64_perm shm_perm; /* operation perms */ /usr/include/asm-generic/shmbuf.h:28:2: error: unkno

[rcu:dev.2017.03.16a 53/58] include/linux/srcu.h:62:28: fatal error: linux/srcutree.h: No such file or directory

2017-03-25 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2017.03.16a head: 5c1e4049e03942b1a6ec13fa8dc0d9f4b2ba0463 commit: c574d9a57769f1941153c41e5cfcd2bb13911cc3 [53/58] srcu: Create a tiny SRCU config: x86_64-lkp (att

[PATCH 5/5] uapi: fix another asm/shmbuf.h userspace compilation error

2017-03-25 Thread Dmitry V. Levin
Date: Sat, 25 Feb 2017 12:34:56 + Replace size_t with __kernel_size_t to fix asm/shmbuf.h userspace compilation errors like this: /usr/include/asm-generic/shmbuf.h:28:2: error: unknown type name 'size_t' size_t shm_segsz; /* size of segment (bytes) */ x32 is the only architecture where s

[PATCH 3/5] uapi: fix asm/sembuf.h userspace compilation errors

2017-03-25 Thread Dmitry V. Levin
Date: Sat, 25 Feb 2017 12:34:56 + Include to fix asm/sembuf.h userspace compilation errors like this: /usr/include/asm/sembuf.h:14:20: error: field 'sem_perm' has incomplete type struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ /usr/include/asm/sembuf.h:15:2: error: unknown type

[RFC PATCH tip/master 5/8] kprobes/x86: Make boostable flag boolean

2017-03-25 Thread Masami Hiramatsu
Make arch_specific_insn.boostable to boolean, since it has only 2 states, boostable or not. So it is better to use boolean from the viewpoint of code readability. Signed-off-by: Masami Hiramatsu --- arch/x86/include/asm/kprobes.h |7 +++ arch/x86/kernel/kprobes/core.c | 12 ++--

[PATCH 1/5] uapi: fix asm/ipcbuf.h userspace compilation errors

2017-03-25 Thread Dmitry V. Levin
Date: Sat, 25 Feb 2017 12:34:56 + Include to fix asm/ipcbuf.h userspace compilation errors like this: /usr/include/asm-generic/ipcbuf.h:20:2: error: unknown type name '__kernel_key_t' __kernel_key_t key; /usr/include/asm-generic/ipcbuf.h:21:2: error: unknown type name '__kernel_uid32_t'

[RFC PATCH tip/master 4/8] kprobes/x86: Do not modify singlestep buffer while resuming

2017-03-25 Thread Masami Hiramatsu
Do not modify singlestep execution buffer (kprobe.ainsn.insn) while resuming from single-stepping, instead, modifies the buffer to add a jump back instruction at preparing buffer. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/core.c | 42 +++-

[RFC PATCH tip/master 3/8] kprobes/x86: Use instruction decoder for booster

2017-03-25 Thread Masami Hiramatsu
Use x86 instruction decoder for checking whether the probed instruction is able to boost or not, instead of hand-written code. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/core.c | 39 --- 1 file changed, 16 insertions(+), 23 deletions(-) dif

[PATCH 0/5] uapi: fix userspace compilation of asm/ ipc headers

2017-03-25 Thread Dmitry V. Levin
This is resend of short series of trivial userspace compilation fixes acked earlier by Arnd Bergmann. Nobody else from the long Cc list of the original patch series has shown any interest at all, so I've trimmed Cc down. Dmitry V. Levin (5): uapi: fix asm/ipcbuf.h userspace compilation errors

[RFC PATCH tip/master 2/8] kprobes/x86: Fix the description of __copy_instruction()

2017-03-25 Thread Masami Hiramatsu
Fix the description comment of __copy_instruction() function since it has already been changed to return the length of copied instruction. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/

[RFC PATCH tip/master 1/8] kprobes/x86: Fix not to boost call far instruction

2017-03-25 Thread Masami Hiramatsu
Fix kprobe-booster not to boost call far instruction, because call may store the address in singlestep execution buffer to the stack, which should be modified after single stepping. Currently, this instruction will be filtered as not boostable in resume_execution(), so this is not a critical issue

[RFC PATCH tip/master 0/8] kprobes/x86: Make kprobes instruction buffers read-only

2017-03-25 Thread Masami Hiramatsu
Hi, This series tries to make kprobes instruction buffers read-only pages. Since those buffers are used for trampoline code, those are a part of "text area" and it should be marked as ro for avoiding unexpected modification. And this actually fix a warning rodata sanity check. This change require

Re: [PATCH] irda: vlsi_ir: fix check for dma mapping errors

2017-03-25 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 25 Mar 2017 01:48:08 +0300 > vlsi_alloc_ring() checks for dma mapping errors by comparison > returned address with zero, while pci_dma_mapping_error() should be used. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey

Re: [PATCH net-next 0/2] netvsc: Fix miscellaneous issues

2017-03-25 Thread David Miller
From: k...@exchange.microsoft.com Date: Fri, 24 Mar 2017 20:54:08 -0700 > Fix miscellaneous issues. Series applied, thanks.

Re: [RESEND PATCH 1/3] net: hns: fix uninitialized data use

2017-03-25 Thread David Miller
From: Arnd Bergmann Date: Fri, 24 Mar 2017 23:02:49 +0100 > When dev_dbg() is enabled, we print uninitialized data, as gcc-7.0.1 > now points out: > > ethernet/hisilicon/hns/hns_dsaf_main.c: In function > 'hns_dsaf_set_promisc_tcam': > ethernet/hisilicon/hns/hns_dsaf_main.c:2947:75: error: > '

Re: [PATCH] padata: avoid race in reordering

2017-03-25 Thread Herbert Xu
On Sat, Mar 25, 2017 at 08:01:51PM -0700, David Miller wrote: > From: Steffen Klassert > Date: Fri, 24 Mar 2017 10:41:59 +0100 > > > On Thu, Mar 23, 2017 at 12:24:43PM +0100, Jason A. Donenfeld wrote: > >> Under extremely heavy uses of padata, crashes occur, and with list > >> debugging turned on

Re: [RESEND PATCH 2/3] net: hns: avoid gcc-7.0.1 warning for uninitialized data

2017-03-25 Thread David Miller
From: Arnd Bergmann Date: Fri, 24 Mar 2017 23:02:50 +0100 > hns_dsaf_set_mac_key() calls dsaf_set_field() on an uninitialized field, > which will then change only a few of its bits, causing a warning with > the latest gcc: > > hisilicon/hns/hns_dsaf_main.c: In function 'hns_dsaf_set_mac_uc_entry

Re: [PATCH] padata: avoid race in reordering

2017-03-25 Thread David Miller
From: Steffen Klassert Date: Fri, 24 Mar 2017 10:41:59 +0100 > On Thu, Mar 23, 2017 at 12:24:43PM +0100, Jason A. Donenfeld wrote: >> Under extremely heavy uses of padata, crashes occur, and with list >> debugging turned on, this happens instead: ... >> Signed-off-by: Jason A. Donenfeld > > Ac

Re: [GIT PULL] fscrypt bug fixes for 4.11

2017-03-25 Thread Theodore Ts'o
(Resent with corrected subject line and adding mailing list cc's.) The following changes since commit cab7076a185e1e27f6879325e4da762424c3f1c9: Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 (2017-02-20 18:24:39 -0800) are available in the git reposito

[GIT PULL] Please pull powerpc/linux.git powerpc-4.11-6 tag

2017-03-25 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.11. These are all pretty minor. The fix for idle wakeup would be a bad bug but has not been observed in practice. The update to the gcc-plugins docs was Cc'ed to Kees and Jon, Kees OK'ed it going via powerpc and I didn't hear from Jon. The fol

[GIT PULL] ext4 bug fixes for 4.11

2017-03-25 Thread Theodore Ts'o
The following changes since commit cab7076a185e1e27f6879325e4da762424c3f1c9: Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 (2017-02-20 18:24:39 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.g

Re: [PATCH 5/5] firmware: google memconsole: Add ARM/ARM64 support

2017-03-25 Thread kbuild test robot
Hi Thierry, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc3] [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/Thierry-Escande/firmware-google-memconsole/20170326-080828

Re: [PATCH V3] ACPI / IPMI: allow ACPI_IPMI with IPMI_SSIF

2017-03-25 Thread Corey Minyard
On 03/25/2017 09:02 AM, Sinan Kaya wrote: ACPI_IPMI driver currently depends on IPMI System Interface (IPMI_SI) driver to be enabled. IPMI_SI driver only handles KCS, SMIC and BT BMC interfaces. IPMI_SSIF is an alternative BMC communication method. It allows BMC to be accessed over an I2C bus in

Re: [PATCH 1/2] rcu: use bool value directly

2017-03-25 Thread Paul E. McKenney
On Sat, Mar 25, 2017 at 08:46:01PM +0100, Nicholas Mc Guire wrote: > beenonline is declared bool so no need for an explicit comparison > > Signed-off-by: Nicholas Mc Guire Queued both for review and testing, thank you! Thanx, Paul > --- > > Foun

[rcu:rcu/next 55/57] include/linux/printk.h:297:35: note: in expansion of macro 'READ_ONCE'

2017-03-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: cfc71fb0749122b29a70646a9a9522003418e5dc commit: 7cf53ca0469972c1b953b68eb6a42e5d4fe75ef4 [55/57] srcutorture: Print Tiny SRCU reader statistics config: xtensa-allmodconfig (attached as .config) compile

[rcu:rcu/next 52/57] ERROR: "srcu_drive_gp" [kernel/rcu/rcutorture.ko] undefined!

2017-03-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: cfc71fb0749122b29a70646a9a9522003418e5dc commit: 7a0d9fab3271933e9ea1cfbc0d12182738f30684 [52/57] srcu: Create a tiny SRCU config: i386-randconfig-r0-201713 (attached as .config) compiler: gcc-5 (Debian

[rcu:rcu/next 55/57] kernel/rcu/rcutorture.c:594:2: note: in expansion of macro 'pr_alert'

2017-03-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: cfc71fb0749122b29a70646a9a9522003418e5dc commit: 7cf53ca0469972c1b953b68eb6a42e5d4fe75ef4 [55/57] srcutorture: Print Tiny SRCU reader statistics config: x86_64-randconfig-x009-201713 (attached as .confi

Re: [PATCH v2 7/7] efi/capsule: Add support for Quark security header

2017-03-25 Thread kbuild test robot
Hi Jan, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc3 next-20170324] [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/Jan-Kiszka/efi-capsule-Fix-return-code-on-failin

[PATCH] Convert __le16 to cpu before casting to u32

2017-03-25 Thread Guillaume Brogi
This patch fixes the following sparse warnings: drivers/staging/rtl8192u/r8192U_dm.c:2307:49: warning: cast from restricted __le16 drivers/staging/rtl8192u/r8192U_dm.c:2308:44: warning: cast from restricted __le16 drivers/staging/rtl8192u/r8192U_dm.c:2309:44: warning: cast from restricted __le1

Re: [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-25 Thread Michael Welling
On Sat, Mar 25, 2017 at 06:26:05PM +, Jonathan Cameron wrote: > On 24/03/17 14:00, Benjamin Gaignard wrote: > > One of the features of STM32 trigger hardware block is a quadrature > > encoder that can counts up/down depending of the levels and edges > > of the selected external pins. > > > > T

Re: [PATCH v7 5/9] media: venus: vdec: add video decoder files

2017-03-25 Thread Stanimir Varbanov
Hi, On 24.03.2017 20:21, Nicolas Dufresne wrote: Le vendredi 24 mars 2017 à 15:41 +0100, Hans Verkuil a écrit : +static const struct venus_format vdec_formats[] = { + { + .pixfmt = V4L2_PIX_FMT_NV12, + .num_planes = 1, + .type = V4L2_BUF_TYPE_VIDEO_CAPTUR

Re: [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-25 Thread Michael Welling
On Sat, Mar 25, 2017 at 06:26:05PM +, Jonathan Cameron wrote: > On 24/03/17 14:00, Benjamin Gaignard wrote: > > One of the features of STM32 trigger hardware block is a quadrature > > encoder that can counts up/down depending of the levels and edges > > of the selected external pins. > > > > T

[PATCH 2/2] dmaengine: qcom_hidma: pause the channel on shutdown

2017-03-25 Thread Sinan Kaya
We need to ensure that all DMAs and interrupts are cleared during shutdown operation in order for kexec to start the next kernel clearly. Otherwise, HW could be performing a DMA into random addresses in the middle of second kernel start. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.c |

[PATCH 1/2] dmaengine: qcom_hidma: disable/enable IRQs on pause/resume

2017-03-25 Thread Sinan Kaya
Once the channels are stopped, disable interrupts to make sure no new HW interaction can happen. Similarly, re-enable the interrupts only if we know that channel is operational again. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma_ll.c | 6 ++ 1 file changed, 6 insertions(+) diff --g

Re: [PATCH v7 5/9] media: venus: vdec: add video decoder files

2017-03-25 Thread Stanimir Varbanov
Thanks for the comments! On 03/24/2017 04:41 PM, Hans Verkuil wrote: Some comments and questions below: On 03/13/17 17:37, Stanimir Varbanov wrote: This consists of video decoder implementation plus decoder controls. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/vde

Re: [PATCH v7 4/9] media: venus: adding core part and helper functions

2017-03-25 Thread Stanimir Varbanov
Hi Hans, Thanks for the comments! On 03/24/2017 04:23 PM, Hans Verkuil wrote: Some review comments below: On 03/13/17 17:37, Stanimir Varbanov wrote: * core.c has implemented the platform dirver methods, file dirver -> driver operations and v4l2 registration. * helpers.c has implemente

EMAIL BENUTZER

2017-03-25 Thread HEIDI MEIER
-- Attn: Gewinner Ihre E-Mail-Adresse hat die Summe von €1,200.000.00 Euro gewonnen. Im Email Benützer Online Programm Weihnachtslotterie Navida , in Madrid Spanien . Wir schreiben ihnen ,um sich offiziel über die Auszeichnung zu Benachrichtigen , damit Sie sich mit der Zuständigen Vermittleri

Re: Splat during resume

2017-03-25 Thread Borislav Petkov
On Sat, Mar 25, 2017 at 03:05:41PM -0700, Linus Torvalds wrote: > I think this is the same as the kexec issue that also hit -tip. > > It's *probably* fixed by the final series to actually enable 5-level > paging (which I don't think is in -tip yet), but even if that is the > case this is obviously

[PATCH 1/2] Input: xpad - support some quirky Xbox One pads

2017-03-25 Thread Cameron Gutman
There are a bunch of quirky Xbox One pads that depend on initialization packets that the Microsoft pads don't require. In this series, I've incorporated quirk handling from Valve's Steam Link driver[0] and the 360Controller project[1] for macOS to enable some of these pads to work properly. [0]:

[PATCH 0/2] Support additional Xbox One pads

2017-03-25 Thread Cameron Gutman
This series adds support for several new or quirky Xbox One pads. Patch 1 of this series may be considered a v2 for patches 1-3 of my previous series: https://lkml.org/lkml/2017/2/4/189 I'm now only sending the quirk packets to the specific gamepads that need them, per Dmitry's feedback on the

[PATCH 2/2] Input: xpad - add support for Razer Wildcat gamepad

2017-03-25 Thread Cameron Gutman
Cc: sta...@vger.kernel.org Signed-off-by: Cameron Gutman --- drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index efb798a..5c3d249 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joys

Re: Audit fixes for v4.11 (#1)

2017-03-25 Thread Linus Torvalds
On Fri, Mar 24, 2017 at 2:39 PM, Paul Moore wrote: > > This code has passed our testsuite without problem and it has held up > to my ad-hoc stress tests (arguably better than the existing code), > please consider pulling this as fix for the next v4.11-rcX tag. Ok, pulled. However, looking at the

Re: [PATCHv2] phy: cpcap-usb: Add CPCAP PMIC USB support

2017-03-25 Thread Tony Lindgren
* kbuild test robot [170325 13:45]: > Hi Tony, > > [auto build test ERROR on phy/next] > [also build test ERROR on v4.11-rc3 next-20170324] > [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/comm

Re: Splat during resume

2017-03-25 Thread Kirill A. Shutemov
On Sat, Mar 25, 2017 at 10:50:12PM +0100, Borislav Petkov wrote: > > No need, I found it. Reverting > > > > ea3b5e60ce80 ("x86/mm/ident_map: Add 5-level paging support") > > > > makes the machine suspend and resume just fine again. Lemme add people to > > CC. > > So I see rIP pointing to iden

Re: locking/atomic: Introduce atomic_try_cmpxchg()

2017-03-25 Thread Linus Torvalds
On Sat, Mar 25, 2017 at 2:13 PM, Peter Zijlstra wrote: > On Sat, Mar 25, 2017 at 11:34:32AM -0700, Linus Torvalds wrote: >> >> Oh, I just noticed that at least your other one didn't mark "success" >> as being likely. > > 107305094540256 843776 16114541 f5e36d > defconfig-build/vm

Re: Splat during resume

2017-03-25 Thread Linus Torvalds
I think this is the same as the kexec issue that also hit -tip. It's *probably* fixed by the final series to actually enable 5-level paging (which I don't think is in -tip yet), but even if that is the case this is obviously a nasty bisectability problem. You migth want to verify, though. The sec

EMAIL BENUTZER

2017-03-25 Thread HEIDI MEIER
-- Attn: Gewinner Ihre E-Mail-Adresse hat die Summe von €1,200.000.00 Euro gewonnen. Im Email Benützer Online Programm Weihnachtslotterie Navida , in Madrid Spanien . Wir schreiben ihnen ,um sich offiziel über die Auszeichnung zu Benachrichtigen , damit Sie sich mit der Zuständigen Vermittleri

Funding

2017-03-25 Thread Garber Home
Do you require funding? For Business or Personal loan without stress and Quick approval, email us for more Info. Thanks Gaber Financial

[GIT PULL] hwmon fixes for v4.11-rc4

2017-03-25 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v4.11-rc4 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.11-rc4 Thanks, Guenter -- The following changes since commit 97da3854c526d3a6ee05c849c96e48d21527606c: Linux 4.11-rc3 (201

Re: Splat during resume

2017-03-25 Thread Borislav Petkov
On Sat, Mar 25, 2017 at 10:46:15PM +0100, Borislav Petkov wrote: > On Sat, Mar 25, 2017 at 07:58:55PM +0100, Borislav Petkov wrote: > > Hey Rafael, > > > > have you seen this already (partial splat photo attached)? Happens > > during resume from s2d. Judging by the timestamps, this looks like the

Re: Splat during resume

2017-03-25 Thread Borislav Petkov
On Sat, Mar 25, 2017 at 07:58:55PM +0100, Borislav Petkov wrote: > Hey Rafael, > > have you seen this already (partial splat photo attached)? Happens > during resume from s2d. Judging by the timestamps, this looks like the > resume kernel before we switch to the original, boot one but I could be >

[PATCH v2] hugetlbfs: initialize shared policy as part of inode allocation

2017-03-25 Thread Mike Kravetz
Any time after inode allocation, destroy_inode can be called. The hugetlbfs inode contains a shared_policy structure, and mpol_free_shared_policy is unconditionally called as part of hugetlbfs_destroy_inode. Initialize the policy as part of inode allocation so that any quick (error path) calls to

[PATCH V5 4/4] PCI/ASPM: move link_state cleanup to bridge remove

2017-03-25 Thread Sinan Kaya
For endpoints, change pcie_aspm_exit_link_state() so it cleans up the device's own state and disables ASPM if necessary, but doesn't remove the parent's link_state. For bridges, change pcie_aspm_exit_link_state() so it frees the bridge's own link_state. Fixes: https://bugzilla.kernel.org/show_bug

[PATCH V5 1/4] PCI/ASPM: introduce pci_aspm_init() and add to pci_init_capabilities()

2017-03-25 Thread Sinan Kaya
We need a callback from pci_init_capabilities function for every single new PCI device that is currently being added. pci_aspm_init() will be used to save the power on state of the HW. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=194895 Signed-off-by: Sinan Kaya --- drivers/pci/pcie/aspm.

[PATCH V5 3/4] PCI/ASPM: save power on values during bridge init

2017-03-25 Thread Sinan Kaya
Now that we added a hook to be called from device_add, save the default values from the HW registers early in the boot for further reuse during hot device add/remove operations. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=194895 Signed-off-by: Sinan Kaya --- drivers/pci/pcie/aspm.c | 22 +

[PATCH V5 2/4] PCI/ASPM: add init hook to device_add

2017-03-25 Thread Sinan Kaya
For bridges, have pcie_aspm_init_link_state() allocate a link_state, regardless of whether it currently has any children. pcie_aspm_init_link_state(): Called for bridges (upstream end of link) after all children have been enumerated. No longer needs to check aspm_support_enabled or pdev->has_seco

Re: [PATCH] hugetlbfs: initialize shared policy as part of inode allocation

2017-03-25 Thread Mike Kravetz
On 03/24/2017 05:54 PM, Tetsuo Handa wrote: > Mike Kravetz wrote: >> Any time after inode allocation, destroy_inode can be called. The >> hugetlbfs inode contains a shared_policy structure, and >> mpol_free_shared_policy is unconditionally called as part of >> hugetlbfs_destroy_inode. Initialize

Re: [regression] Re: 4.11-rc0, thinkpad x220: GPU hang

2017-03-25 Thread Pavel Machek
On Mon 2017-03-06 12:23:41, Chris Wilson wrote: > On Mon, Mar 06, 2017 at 01:10:48PM +0100, Pavel Machek wrote: > > On Mon 2017-03-06 11:15:28, Chris Wilson wrote: > > > On Mon, Mar 06, 2017 at 12:01:51AM +0100, Pavel Machek wrote: > > > > Hi! > > > > > > > > > > mplayer stopped working after a wh

Re: [f2fs-dev] [PATCH 1/5] f2fs: relax node version check for victim data in gc

2017-03-25 Thread Jaegeuk Kim
On 03/25, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/3/25 15:59, Jaegeuk Kim wrote: > > - has_not_enough_free_secs > > node_secs: 0 dent_secs: 0 freed:0 free_segments:103 reserved:104 > > > > - f2fs_gc > > - get_victim_by_default > > alloc_mode 0, gc_mode 1, max_search 26

Re: [v2 0/5] parallelized "struct page" zeroing

2017-03-25 Thread Matthew Wilcox
On Fri, Mar 24, 2017 at 03:19:47PM -0400, Pavel Tatashin wrote: > Changelog: > v1 - v2 > - Per request, added s390 to deferred "struct page" zeroing > - Collected performance data on x86 which proofs the importance to > keep memset() as prefetch (see below). > > When defe

Re: locking/atomic: Introduce atomic_try_cmpxchg()

2017-03-25 Thread Peter Zijlstra
On Sat, Mar 25, 2017 at 11:34:32AM -0700, Linus Torvalds wrote: > On Sat, Mar 25, 2017 at 11:28 AM, Linus Torvalds > wrote: > > > > Hmm. Sad. The label approach looked like it would match the semantics > > of cmpxchg perfectly, but it's not as optimal as it superficially > > would have seemed. >

[PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro

2017-03-25 Thread Ezequiel Garcia
This commit makes use of the axp209.dtsi file to define the AXP209 PMIC. While here, define the rails that are enabled on this board. Tested checking the regulator voltage varies according to the CPU frequency. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts |

Re: [PATCHv2] phy: cpcap-usb: Add CPCAP PMIC USB support

2017-03-25 Thread kbuild test robot
Hi Tony, [auto build test ERROR on phy/next] [also build test ERROR on v4.11-rc3 next-20170324] [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/Tony-Lindgren/phy-cpcap-usb-Add-CPCAP-PMIC-USB-supp

[rcu:rcu/next 53/55] include/linux/srcu.h:60:28: error: linux/srcutiny.h: No such file or directory

2017-03-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: 8ef41abc6267ab874db4f767866cc09b85a1f951 commit: c574d9a57769f1941153c41e5cfcd2bb13911cc3 [53/55] srcu: Create a tiny SRCU config: x86_64-randconfig-a0-03260238 (attached as .config) compiler: gcc-4.4 (

[RFC PATCH 0/1] tpm_tis: convert to use locality callbacks

2017-03-25 Thread Jerry Snitselaar
This is an attempt to convert tpm_tis over to using the locality callbacks added by Jarkko's tpm_crb patch. Requires the patch currently on tpmdd/locality which has moved the need_locality assignment inside the mutex in tpm_transmit. This is pretty much the same as Jarkko's earlier patch (I think)

[RFC PATCH 1/1] tpm_tis: convert to using locality callbacks

2017-03-25 Thread Jerry Snitselaar
This patch converts tpm_tis to use of the new tpm class ops request_locality, and relinquish_locality. With the move to using the callbacks, release_locality is changed so that we now release the locality even if there is no request pending. This required some changes to the tpm_tis_core_init cod

Re: [PATCH v4] tpm_crb: request and relinquish locality 0

2017-03-25 Thread Jarkko Sakkinen
On Fri, Mar 24, 2017 at 11:25:57AM -0700, Jerry Snitselaar wrote: > > Jarkko Sakkinen @ 2017-03-24 10:10 GMT: > > > This commit adds support for requesting and relinquishing locality 0 in > > tpm_crb for the course of command transmission. > > > > In order to achieve this, two new callbacks are a

Re: [PATCH v4] tpm_crb: request and relinquish locality 0

2017-03-25 Thread Jarkko Sakkinen
On Sat, Mar 25, 2017 at 05:21:30AM -0700, Jerry Snitselaar wrote: > > Jarkko Sakkinen @ 2017-03-24 10:19 GMT: > > > On Fri, Mar 24, 2017 at 12:10:30PM +0200, Jarkko Sakkinen wrote: > >> This commit adds support for requesting and relinquishing locality 0 in > >> tpm_crb for the course of command

Re: [v2 0/9] Early boot time stamps for x86

2017-03-25 Thread Pasha Tatashin
Hi Thomas, Thank you very much for a very insightful feedback. I will address your comments, and if I have any questions, I will ask them before sending out the next patchset. A few replies below: First of all, this "solution" is only valid for a very restricted set of systems and breaks ot

[PATCH 2/2] rcu: tree_plugin.h: use true/false in assignment to bool

2017-03-25 Thread Nicholas Mc Guire
bool variables in this code are using true/false for assignments fix this up for consistency/readability. Signed-off-by: Nicholas Mc Guire --- Found by coccinelle: boolinit.cocci complained about ./kernel/rcu/tree_plugin.h:1712:1-14: WARNING: Assignment of bool to 0/1 Patch was compile-tested w

[PATCH 1/2] rcu: use bool value directly

2017-03-25 Thread Nicholas Mc Guire
beenonline is declared bool so no need for an explicit comparison Signed-off-by: Nicholas Mc Guire --- Found by coccinelle: boolinit.cocci complained about ./kernel/rcu/tree.c:2986:14-29: WARNING: Comparison of bool to 0/1 If the comparison was intended for readability I guess it should be agai

[rcu:rcu/next 53/55] include/linux/srcu.h:62:28: fatal error: linux/srcutree.h: No such file or directory

2017-03-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: 8ef41abc6267ab874db4f767866cc09b85a1f951 commit: c574d9a57769f1941153c41e5cfcd2bb13911cc3 [53/55] srcu: Create a tiny SRCU config: x86_64-rhel (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.

Re: [PATCH] aoe: use setup_timer

2017-03-25 Thread Ed Cashin
On 03/24/2017 10:15 AM, Geliang Tang wrote: Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/block/aoe/aoemain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/aoe/aoemain.c b/drivers/block/aoe/aoemain

Splat during resume

2017-03-25 Thread Borislav Petkov
Hey Rafael, have you seen this already (partial splat photo attached)? Happens during resume from s2d. Judging by the timestamps, this looks like the resume kernel before we switch to the original, boot one but I could be mistaken. This is -rc3+tip/master. I can't catch a full splat because this

Re: [PATCH 0/3] Add public w1 driver interface

2017-03-25 Thread Sebastian Reichel
Hi, On Thu, Mar 16, 2017 at 10:19:52AM -0500, Andrew F. Davis wrote: > As part of continuing work to cleanup the BQ27xxx driver I am attempting > to remove the need for the platform driver interface. For this we first > need the w1 subsystem to act more like a traditional bus subsystem > and allow

[PATCH] net: cris: eth_v10: use new api ethtool_{get|set}_link_ksettings

2017-03-25 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: Philippe Reynes --- drivers/net/cris/eth_v10.c | 32 1 f

Re: [v2 0/9] Early boot time stamps for x86

2017-03-25 Thread Thomas Gleixner
On Sat, 25 Mar 2017, Pasha Tatashin wrote: > The second versions was actually meant as a reply to your e-mail: the code > differences were minimal: the main differences were in the cover letter. You > mentioned that it is not necessary to have early boot time stamps, and I > wanted to show example

Re: locking/atomic: Introduce atomic_try_cmpxchg()

2017-03-25 Thread Linus Torvalds
On Sat, Mar 25, 2017 at 11:20 AM, Peter Zijlstra wrote: > > Added above, a few bytes smaller than the shiny new one actually. Hmm. Sad. The label approach looked like it would match the semantics of cmpxchg perfectly, but it's not as optimal as it superficially would have seemed. And I assume th

Re: locking/atomic: Introduce atomic_try_cmpxchg()

2017-03-25 Thread Linus Torvalds
On Sat, Mar 25, 2017 at 11:28 AM, Linus Torvalds wrote: > > Hmm. Sad. The label approach looked like it would match the semantics > of cmpxchg perfectly, but it's not as optimal as it superficially > would have seemed. Oh, I just noticed that at least your other one didn't mark "success" as being

Re: [PATCH v2 2/2] iio: stm32 trigger: Add counter enable modes

2017-03-25 Thread Jonathan Cameron
On 24/03/17 14:00, Benjamin Gaignard wrote: > Device counting could be controlled by the level or the edges of > a trigger. > in_count0_enable_mode attibute allow to set the control mode. Thanks for separating this out from the more 'obvious' driver elements in the previous patch. Makes it into ni

[PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-25 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g. we

[PATCH v5 4/9] coresight: refactor with function of_coresight_get_cpu

2017-03-25 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 43 +++

[PATCH v2] mfd: ipaq-micro: Delete redundant return value check of platform_get_resource()

2017-03-25 Thread Belen Sarabia
devm_ioremap_resource does checks on the resource. No need to duplicate this in the driver. Signed-off-by: Belén Sarabia --- Changes in v2: - Subject line expected by the subsystem. - Remove one line more. --- drivers/mfd/ipaq-micro.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dri

[PATCH v5 0/9] coresight: enable debug module

2017-03-25 Thread Leo Yan
ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter H7 "The Sample-based Profiling Extension" has description for sampling registers, we can utilize these registers to check program counter value with combined CPU exception level, secure state, etc. So this is helpful for CPU lockup bugs,

Re: [PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-25 Thread Jonathan Cameron
On 24/03/17 14:00, Benjamin Gaignard wrote: > One of the features of STM32 trigger hardware block is a quadrature > encoder that can counts up/down depending of the levels and edges > of the selected external pins. > > This patch allow to read/write the counter, get it direction, > set/get quadrat

[PATCH v5 7/9] clk: hi6220: add debug APB clock

2017-03-25 Thread Leo Yan
The debug APB clock is absent in hi6220 driver, so this patch is to add support for it. Signed-off-by: Leo Yan --- drivers/clk/hisilicon/clk-hi6220.c | 1 + include/dt-bindings/clock/hi6220-clock.h | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/hisilic

[PATCH v5 2/9] doc: Add documentation for Coresight CPU debug

2017-03-25 Thread Leo Yan
Update kernel-parameters.txt to add two new parameters: - coresight_cpu_debug.enable is a knob to enable debugging at boot time. - coresight_cpu_debug.idle_constraint is used to constrain idle states to ensure Coresight CPU debug component can be accessible. Signed-off-by: Leo Yan --- Documen

[PATCH v5 5/9] coresight: use const for device_node structures

2017-03-25 Thread Leo Yan
Almost low level functions from open firmware have used const to qualify device_node structures, so add const for device_node parameters in of_coresight related functions. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 6 +++--- include/linux/coresight.h

[PATCH v5 1/9] coresight: bindings for CPU debug module

2017-03-25 Thread Leo Yan
According to ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it can support self-hosted debug and external debug. Especially for supporting self-hosted debug, this means the program can access the debug module from mmio

[PATCH v5 8/9] arm64: dts: hi6220: register debug module

2017-03-25 Thread Leo Yan
Bind debug module driver for Hi6220. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 470461d..467

[PATCH v5 9/9] arm64: dts: qcom: msm8916: Add debug unit

2017-03-25 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boo

[PATCH v5 3/9] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-03-25 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor fix is to use of_cpu_dev

  1   2   >