Re: [PATCH 1/2] drivers: pwm: pwm-atmel: switch to atomic PWM

2017-03-01 Thread m18063
Hi Boris, On 01.03.2017 16:13, Boris Brezillon wrote: > Hi Claudiu, > > On Wed, 1 Mar 2017 15:56:26 +0200 > m18063 wrote: > >> Hi Boris, >> >> Thank you for the closer review. Please see my answers >> inline. >> >> Thank you, >> Claudiu >> >> >> On 28.02.2017 23:07, Boris Brezillon wrote: >>> Hi

Re: [locking/ww_mutex] 2a0c112828 WARNING: CPU: 0 PID: 18 at kernel/locking/mutex.c:305 __ww_mutex_wakeup_for_backoff

2017-03-01 Thread Boqun Feng
On Mon, Feb 27, 2017 at 11:35:43AM +0100, Peter Zijlstra wrote: > On Mon, Feb 27, 2017 at 11:28:24AM +0100, Peter Zijlstra wrote: > > On Mon, Feb 27, 2017 at 01:14:09PM +0800, Fengguang Wu wrote: > > > Hello, > > > > > > This bisect result is not satisfactory, however the bug is very > > > reprodu

[PATCH v2] rlimits: Print more information when CPU/RT limits are exceeded

2017-03-01 Thread Arun Raghavan
When a process is sent a SIGKILL because it exceeded CPU or RT limits, the cause may not be obvious in userspace -- daemonised processes just get killed, and even foreground process just see a 'Killed' message. The lack of any information on why this might be happening in logs can be confusing to u

Re: [PATCH 0/2] efi: Enhance capsule loader to support signed Quark images

2017-03-01 Thread Andy Shevchenko
On Wed, Mar 1, 2017 at 4:02 PM, Bryan O'Donoghue wrote: >>> So, summarize, you state that >>> 1. CONFIG_SMP=y and >>> 2. CONFIG_M686=y and >>> 3. Kernel works on Quark >>> >>> Is it correct? >> Logically yes. It's a very long time since I looked in detail. No harm >> in checking it out though. >

[PATCH 4/4] arm: dts: rockchip: Enable post_ios_power_on and pre-power-on-delay-ms

2017-03-01 Thread Romain Perier
This enables the property post_ios_power_on. With this property, the driver pwrseq_simple will do its entire power sequence at the end of the mmc_power_up() function. The property pre-power-on-delay-ms adds a delay of 1ms between the enablement of the clk and the assertion of the reset line. It fi

[PATCH] engine: mv_xor: remove redundant null check on cd

2017-03-01 Thread Colin King
From: Colin Ian King The check to see if cd is null is redundant, pdata->channels is never null at this point, and hence &pdata->channels[i] cannot be null, so remove the null check. Detected by CoverityScan, CID#1357194 ("Logically Dead Code") Signed-off-by: Colin Ian King --- drivers/dma/mv

Re: [PATCH v1] perf vendor events: Add mapping for KnightsMill PMU events

2017-03-01 Thread a...@kernel.org
Em Wed, Mar 01, 2017 at 09:58:41AM +, Wachowski, Karol escreveu: > On Monday, February 20, 2017 12:51 PM +0100, Karol Wachowski wrote: > > Reuse events from KnightsLanding for KnightsMill > > +++ b/tools/perf/pmu-events/arch/x86/mapfile.csv > > @@ -17,6 +17,7 @@ GenuineIntel-6-3A,v18,ivybridge

[trace-cmd Patch RFC] trace-cmd: top: A new interface to detect peak memory

2017-03-01 Thread Pratyush Anand
A new interface "trace-cmd top" has been introduced in this patch to know peak memory usage of any task. $ trace-cmd top -s It will start to gather statistics of all the process which will be scheduled after this command execution. $ trace-cmd top -p It will print peak memory usage(in KB) against

Re: [PATCH 2/9] mm: fix check for reclaimable pages in PF_MEMALLOC reclaim throttling

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:00, Johannes Weiner wrote: > PF_MEMALLOC direct reclaimers get throttled on a node when the sum of > all free pages in each zone fall below half the min watermark. During > the summation, we want to exclude zones that don't have reclaimables. > Checking the same pgdat over and

[PATCH 1/4] mmc: core: Add post_ios_power_on callback for power sequences

2017-03-01 Thread Romain Perier
Currently, ->pre_power_on() callback is called at the beginning of the mmc_power_up() function before MMC_POWER_UP and MMC_POWER_ON sequences. The callback ->post_power_on() is called at the end of the mmc_power_up() function. Some SDIO Chipsets require to gate the clock after than the vqmmc supply

[PATCH 0/4] mmc: pwrseq: post_ios power sequence

2017-03-01 Thread Romain Perier
Some devices, like WiFi chipsets AP6335 require a specific power-up sequence ordering before being used. You must enable the vqmmc power supply and wait until it reaches its minimum voltage, gate the clock and wait at least two cycles and then assert the reset line. See DS 1/ Currently, there is

[PATCH 3/4] mmc: pwrseq_simple: Add an optional pre-power-on-delay

2017-03-01 Thread Romain Perier
Some devices need a while between the enablement of its clk and the time where the reset line is asserted. When this time happens between the pre_power_on and the post_power_on callbacks, there is a need to do an msleep at the end of the pre_power_on callback. This commit adds an optional DT prope

Re: [PATCH 1/5] x86/intel_rdt: Update control registers only when user really modifies it

2017-03-01 Thread Thomas Gleixner
On Fri, 17 Feb 2017, Vikas Shivappa wrote: x86/intel_rdt: Update control registers only when user really modifies it This hardly is a precise short summary. > When a schemata is updated, the values for all the domains and all > resources are entered. However, the values for each of them may not

[PATCH] drm: virtio: use kmem_cache

2017-03-01 Thread Gerd Hoffmann
Just use kmem_cache instead of rolling our own, limited implementation. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 4 +-- drivers/gpu/drm/virtio/virtgpu_vq.c | 57 +++- 2 files changed, 11 insertions(+), 50 deletions(-) diff --git a

Re: mm: GPF in bdi_put

2017-03-01 Thread Jan Kara
On Wed 01-03-17 15:29:09, Jan Kara wrote: > On Mon 27-02-17 18:27:55, Al Viro wrote: > > On Mon, Feb 27, 2017 at 06:11:11PM +0100, Dmitry Vyukov wrote: > > > Hello, > > > > > > The following program triggers GPF in bdi_put: > > > https://gist.githubusercontent.com/dvyukov/15b3e211f937ff6abc5587243

Re: [PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-03-01 Thread Namhyung Kim
On Wed, Mar 01, 2017 at 03:30:11PM +0100, Peter Zijlstra wrote: > On Wed, Mar 01, 2017 at 11:21:33PM +0900, Namhyung Kim wrote: > > > > What's the point of source-only? You can't even see what it is that is > > > expensive. > > > > ??? > > From a line like: > > a = b ? ptr->c : 0;

Re: [PATCH 5/5] x86/intel_rdt: hotcpu updates for RDT

2017-03-01 Thread Thomas Gleixner
On Fri, 17 Feb 2017, Vikas Shivappa wrote: > For closid and rmid, change both the per cpu cache and PQR_MSR to be > cleared only when offlining cpu at the respective handlers. The other > places to clear them may not be required and is removed. This can be > done at offlining so that the cache o

Re: [PATCH 2/4] perf tools: Introduce cpu_map__snprint_mask()

2017-03-01 Thread Namhyung Kim
Hi Arnaldo, On Sat, Feb 25, 2017 at 1:27 PM, Namhyung Kim wrote: > Hi Arnaldo, > > On Fri, Feb 24, 2017 at 06:08:53PM -0300, Arnaldo Carvalho de Melo wrote: >> Em Fri, Feb 24, 2017 at 10:12:49AM +0900, Namhyung Kim escreveu: >> > The cpu_map__snprint_mask() is to generate string representation of

Re: Poll CQ syncing problem

2017-03-01 Thread Christoph Hellwig
On Wed, Mar 01, 2017 at 04:30:26PM +0200, Noa Osherovich wrote: > Analysis: > Since ib_comp_wq isn't single threaded, two works can run in parallel for the > same CQ, > executing __ib_process_cq. They shouldn't. Each CQ has a single work_struct, and any given work_struct should only be executing

Re: Problem with RSA test from testmgr

2017-03-01 Thread Stephan Müller
Am Mittwoch, 1. März 2017, 13:04:14 CET schrieb Corentin Labbe: Hi Corentin, > > I got the following: > > [1.086228] alg: akcipher: encrypt test failed. Invalid output > [1.092196] : 6e 7c 8a 75 e7 30 80 d1 5e ab 9b db a2 cf ed db > [1.098882] 0010: c9 b2 db 43 bd 9a b9

[PATCH 2/4] mmc: pwrseq-simple: Add optional op. for post_ios_power_on callback

2017-03-01 Thread Romain Perier
Some devices require to do their entire power sequence after that the power supply of the MMC has been powered on. This can be done by only implementing the optional post_ios_power_on() callback that rely on pre_power_on/post_power_on functions, other functions being NULL. Then we introduce a new D

Re: [PATCH] drm: virtio: use kmem_cache

2017-03-01 Thread Daniel Vetter
On Wed, Mar 01, 2017 at 03:09:08PM +0100, Gerd Hoffmann wrote: > Just use kmem_cache instead of rolling > our own, limited implementation. > > Signed-off-by: Gerd Hoffmann Looks very reasonable. Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/virtio/virtgpu_drv.h | 4 +-- > drivers/gpu/d

RE: [PATCH] Drivers: hv: util: on deinit, don't wait the release event, if we shouldn't

2017-03-01 Thread Dexuan Cui
> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] (c) > >>> > > int (*on_msg)(void *, int); /* callback on new user > >>> > > message */ > >>> > > >>> > I think we can get away without introducing this new flag, e.g. if we > >>> > replace release_event with an atomic which will hol

Re: [PATCH v2 3.5/5] trace/kprobes: Add back warning about offset in return probes

2017-03-01 Thread Naveen N. Rao
On 2017/02/27 11:52AM, Steven Rostedt (VMware) wrote: > Let's not remove the warning about offsets and return probes when the > offset is invalid. Good point! Thanks, Steve! > > Signed-off-by: Steven Rostedt (VMware) Acked-by: Naveen N. Rao > --- > diff --git a/kernel/trace/trace_kprobe.c b

Re: [PATCH 3/9] mm: remove seemingly spurious reclaimability check from laptop_mode gating

2017-03-01 Thread Mel Gorman
On Tue, Feb 28, 2017 at 04:40:01PM -0500, Johannes Weiner wrote: > 1d82de618ddd ("mm, vmscan: make kswapd reclaim in terms of nodes") > allowed laptop_mode=1 to start writing not just when the priority > drops to DEF_PRIORITY - 2 but also when the node is unreclaimable. > That appears to be a spuri

Re: [PATCH] arm64: dump: hide kernel pointers

2017-03-01 Thread Laura Abbott
On 02/28/2017 07:52 PM, Will Deacon wrote: > On Tue, Feb 28, 2017 at 02:55:51PM -0800, Laura Abbott wrote: >> On 02/28/2017 02:04 AM, Mark Rutland wrote: >>> On Tue, Feb 28, 2017 at 08:42:51AM +, Ard Biesheuvel wrote: On 28 February 2017 at 07:05, Miles Chen wrote: > Mask kernel point

[PATCH] KEYS: Differentiate uses of rcu_dereference_key() and user_key_payload()

2017-03-01 Thread David Howells
rcu_dereference_key() and user_key_payload() are currently being used in two different, incompatible ways: (1) As a wrapper to rcu_dereference() - when only the RCU read lock used to protect the key. (2) As a wrapper to rcu_dereference_protected() - when the key semaphor is used to pr

Re: [locking/ww_mutex] 2a0c112828 WARNING: CPU: 0 PID: 18 at kernel/locking/mutex.c:305 __ww_mutex_wakeup_for_backoff

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 11:01:38PM +0800, Boqun Feng wrote: > > In test-ww_mutex, the stress will use 4096 locks to do the test, and > given held_lock::references only have 12 bits, so I think this is the > reason? I made a patch to reduce the lock number of stress test, and it > seems the problem

[PATCH] objtool, module: discard __unreachable section for modules

2017-03-01 Thread Josh Poimboeuf
The __unreachable section is only used at compile time. It's discarded for vmlinux but it should also be discarded for modules. Fixes: d1091c7fa3d5 ("objtool: Improve detection of BUG() and other dead ends") Signed-off-by: Josh Poimboeuf --- scripts/module-common.lds | 5 - 1 file changed,

Re: net/ipv4: inconsistent lock state in tcp_conn_request/inet_ehash_insert

2017-03-01 Thread Eric Dumazet
On Wed, Mar 1, 2017 at 6:59 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit e5d56efc97f8240d0b5d66c03949382b6d7e5570 (Feb 26). SInce I probably added this bug, I will send a fix shortly, thanks for the report.

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-01 Thread Arnd Bergmann
On Wed, Mar 1, 2017 at 3:31 PM, Josh Poimboeuf wrote: > On Wed, Mar 01, 2017 at 10:34:42AM +0100, Arnd Bergmann wrote: >> On Tue, Oct 11, 2016 at 10:38 PM, Arnd Bergmann wrote: >> > On Tuesday, October 11, 2016 10:51:46 AM CEST Josh Poimboeuf wrote: >> >> >> >> 3) 0xFC244C03-config: >> >> drivers

Re: FW: RE: Re: Subject: [PATCH v3] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-03-01 Thread Alan Stern
On Wed, 1 Mar 2017, Ajay Kaher wrote: > > On Mon, 22 Feb 2017, Ajay Kaher wrote: > >  > >> On Mon, 20 Feb 2017, Ajay Kaher wrote: > >>  > >>> Alan, as per my understanding I have shifted the lock from > >>> release_usb_class() to destroy_usb_class() in patch v3.  > >>> If it is not right, please e

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-03-01 Thread Marcelo Tosatti
On Wed, Mar 01, 2017 at 03:21:32PM +0100, Paolo Bonzini wrote: > > > On 28/02/2017 03:45, Marcelo Tosatti wrote: > > On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: > >> > >> > >> On 24/02/2017 14:04, Marcelo Tosatti wrote: > >>> Whats the current usecase, or forseeable future

Re: [PATCH v6 2/2] [media] s5p-mfc: Handle 'v4l2_pix_format:field' in try_fmt and g_fmt

2017-03-01 Thread Nicolas Dufresne
Le mercredi 01 mars 2017 à 14:12 +0100, Andrzej Hajda a écrit : > - on output side you have encoded bytestream - you cannot say about > interlacing in such case, so the only valid value is NONE, > - on capture side you have decoded frames, and in this case it > depends > on the device and driver ca

Re: [PATCH v6 2/2] [media] s5p-mfc: Handle 'v4l2_pix_format:field' in try_fmt and g_fmt

2017-03-01 Thread Nicolas Dufresne
Le mercredi 01 mars 2017 à 14:12 +0100, Andrzej Hajda a écrit : > On 01.03.2017 12:51, Thibault Saunier wrote: > > It is required by the standard that the field order is set by the > > driver, default to NONE in case any is provided, but we can > > basically > > accept any value provided by the use

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-01 Thread Josh Poimboeuf
On Wed, Mar 01, 2017 at 10:34:42AM +0100, Arnd Bergmann wrote: > On Tue, Oct 11, 2016 at 10:38 PM, Arnd Bergmann wrote: > > On Tuesday, October 11, 2016 10:51:46 AM CEST Josh Poimboeuf wrote: > >> > >> 3) 0xFC244C03-config: > >> drivers/scsi/fnic/fnic_main.o: warning: objtool: fnic_log_q_error() f

[PATCH v3] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
The original patch makes the condition always true, so it is wrong. It masks (but not fixes) the bug described in the commit message but introduces a regression (no console is selected by SPCR) in regular (no 'console=ttyAMA') case. s/||/&&/ would not fix the problem as the root cause was identif

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-01 Thread Arnd Bergmann
On Wed, Mar 1, 2017 at 3:40 PM, Josh Poimboeuf wrote: > On Wed, Mar 01, 2017 at 10:45:03AM +0100, Arnd Bergmann wrote: >> Actually, something must have changed in gcc since last month, I also >> just got a report in another file: >> >> drivers/i2c/busses/i2c-img-scb.o: warning: objtool: img_i2c_p

[PATCH v2 4/5] MIPS: Stacktrace: Fix __usermode() of uninitialised regs

2017-03-01 Thread Matt Redfearn
Commit 81a76d7119f6 ("MIPS: Avoid using unwind_stack() with usermode") added a check if the passed regs are from user mode, and perform a raw backtrace if so. When WARN() is invoked, __dump_stack calls show_stack() with NULL task and stack pointers. This leads show_stack to create a pt_regs struct

[PATCH v2 2/5] MIPS: microMIPS: Fix decoding of addiusp instruction

2017-03-01 Thread Matt Redfearn
Commit 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.") added handling of microMIPS instructions to manipulate the stack pointer. Unfortunately the decoding of the addiusp instruction was incorrect, and performed a left shift by 2 bits to the raw immediate, rather than decoding the i

[PATCH v2 3/5] MIPS: Refactor handling of stack pointer in get_frame_info

2017-03-01 Thread Matt Redfearn
Commit 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.") added handling of microMIPS instructions to manipulate the stack pointer. The code that was added violates code style rules with long lines caused by lots of nested conditionals. The added code interprets (inline) any known sta

[PATCH v2 1/5] MIPS: Handle non word sized instructions when examining frame

2017-03-01 Thread Matt Redfearn
Commit b6c7a324df37 ("MIPS: Fix get_frame_info() handling of microMIPS function size") goes some way to fixing get_frame_info() to iterate over microMIPS instuctions, but increments the instruction pointer using a postincrement of the instruction pointer, which is of union mips_instruction type. Si

Re: [PATCH 5/8] x86/intel_rdt: info file support for MBA prepare

2017-03-01 Thread Thomas Gleixner
On Fri, 17 Feb 2017, Vikas Shivappa wrote: > As a preparatory patch to MBA info file setup, generalize the info file > setup to have the option to choose between different set of files. > Although multiple cache resources have same info files, Memory resources > have different set of info files. T

[PATCH v2 0/2] dts: arm64: add DPAA 1 support for ARM based SoCs

2017-03-01 Thread Madalin Bucur
Add DPAA 1 nodes for LS1043A/LS1046A and networking support for RDB and QDS boards with these SoCs. changes from v1: addressed comment from Rob Herring on using SPDX license identifiers Madalin Bucur (2): dts: arm64: add LS1043A DPAA support dts: arm64: add LS1046A DPAA suppo

[PATCH v2 1/2] dts: arm64: add LS1043A DPAA support

2017-03-01 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi | 41 +++ arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 + arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 75 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 73 ++

[PATCH v2] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-03-01 Thread Enric Balletbo i Serra
From: Bryan Freed When the I2C Infineon part is attached to an I2C adapter that imposes a size limitation, large requests will fail with -EOPNOTSUPP. Retry them with a sane minimum size without re-issuing the 0x05 command as this appears to occasionally put the TPM in a bad state. Signed-off-by:

[PATCH v2 0/5] MIPS: Further microMIPS stack unwinding fixes

2017-03-01 Thread Matt Redfearn
4.11 includes a bunch of stack unwinding fixes for microMIPS, but some of those fixes require additional fixup, provided by this series. These patches have been tested on qemu M14Kc micromips and tested for regression on ci40, Boston, Octeon III & malta. This series is based on mips-for-linux-next

[PATCH] usb: gadget: f_fs: simplify ffs_dev name handling

2017-03-01 Thread Michal Nazarewicz
Currently ffs_dev::name can be either allocated by the client of the ffs_dev structure or by the f_fs.c core itself. The former is used by g_ffs while the latter happens with configfs. Historically, g_ffs did not need to allocate separate buffer for the name so what is now f_fs.c core never cared

Re: [PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 11:56:39PM +0900, Namhyung Kim wrote: > It's a kind of user experience issue. We provide the asm-only and > asm+source annotation, and I think it'd be nice to add source-only > option. And I remember that it was requested some time ago.. Thing is, an optimizing compiler

Re: [PATCH 0/2] key payload access with just rcu_read_lock()

2017-03-01 Thread Jan Stancek
- Original Message - > From: "David Howells" > To: "Jan Stancek" > Cc: dhowe...@redhat.com, linux-kernel@vger.kernel.org, > linux-...@vger.kernel.org, bcodd...@redhat.com, > asav...@redhat.com > Sent: Wednesday, 1 March, 2017 10:40:13 AM > Subject: Re: [PATCH 0/2] key payload access

Re: [RFC PATCH v4] IV Generation algorithms for dm-crypt

2017-03-01 Thread Milan Broz
On 03/01/2017 02:04 PM, Milan Broz wrote: > On 03/01/2017 01:42 PM, Gilad Ben-Yossef wrote: > ... > >> I can certainly understand if you don't wont to take the patch until >> we have results with >> dm-crypt itself but the difference between 8 separate invocation of >> the engine for 512 >> bytes

[PATCH 28/44] tools/power turbostat: fix decoding for GLM, DNV, SKX turbo-ratio limits

2017-03-01 Thread Len Brown
From: Len Brown Newer processors do not hard-code the the number of cpus in each bin to {1, 2, 3, 4, 5, 6, 7, 8} Rather, they can specify any number of CPUS in each of the 8 bins: eg. ... 37 * 100.0 = 3600.0 MHz max turbo 4 active cores 38 * 100.0 = 3700.0 MHz max turbo 3 active cores 39 * 100

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-03-01 Thread Tom Lendacky
+kexec list On 2/28/2017 4:35 AM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: Provide support so that kexec can be used to boot a kernel when SME is enabled. Support is needed to allocate pages for kexec without encryption. This is needed in order to b

Re: Bug fix for uid/gid in jffs2

2017-03-01 Thread David Woodhouse
On Wed, 2017-03-01 at 16:44 +0800, yangshukui wrote: > > @@ -146,8 +146,8 @@ struct jffs2_raw_inode >   jint32_t ino;    /* Inode number.  */ >   jint32_t version;    /* Version number.  */ >   jmode_t mode;   /* The file's type or mode.  */ > -    jint16_t uid;    /* The f

[PATCH] Update VMX and NX crypto driver maintainers

2017-03-01 Thread Paulo Flabiano Smorigo
Signed-off-by: Paulo Flabiano Smorigo --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 846f97a..2772c82 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6188,7 +6188,6 @@ S:Maintained F: arch/ia64/ IBM Power VMX Cryptographic instr

Re: net/dccp: dccp_create_openreq_child freed held lock

2017-03-01 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 01, 2017 at 12:35:10PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Mar 01, 2017 at 10:38:54AM +0100, Dmitry Vyukov escreveu: > > Hello, > > > > I've got the following report while running syzkaller fuzzer on > > 86292b33d4b79ee03e2f43ea0381ef85f077c760: > > > > > > It seems t

Re: [PATCH 2/4] MIPS: microMIPS: Fix decoding of addiusp instruction

2017-03-01 Thread Matt Redfearn
Hi Maciej, On 28/02/17 22:04, Maciej W. Rozycki wrote: On Tue, 28 Feb 2017, Matt Redfearn wrote: diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 5b1e932ae973..6ba5b775579c 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -386,8 +386,9 @@ s

Re: [PATCH 3/5] x86/intel_rdt: Fail early on a resource with incorrect domains

2017-03-01 Thread Thomas Gleixner
On Fri, 17 Feb 2017, Vikas Shivappa wrote: > When a schemata file is changed, user enters control values for all > domains and all resources in the below format (Consider L3 and L2 > resources): > > L3:=;=;... > L2:=;=;... > > Return error as soon as we detect a resource not entering all domain

Re: [PATCH 7/9] mm: delete NR_PAGES_SCANNED and pgdat_reclaimable()

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:05, Johannes Weiner wrote: > NR_PAGES_SCANNED counts number of pages scanned since the last page > free event in the allocator. This was used primarily to measure the > reclaimability of zones and nodes, and determine when reclaim should > give up on them. In that role, it has

Re: net/dccp: dccp_create_openreq_child freed held lock

2017-03-01 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 01, 2017 at 10:38:54AM +0100, Dmitry Vyukov escreveu: > Hello, > > I've got the following report while running syzkaller fuzzer on > 86292b33d4b79ee03e2f43ea0381ef85f077c760: > > > It seems that dccp_create_openreq_child needs to unlock the sock if > dccp_feat_activate_values fails.

[PATCH v2 2/2] dts: arm64: add LS1046A DPAA support

2017-03-01 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi | 45 +++ arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 2 + arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 62 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 6

Re: [PATCH v2 3/3] media: dt-bindings: vpif: new optional property

2017-03-01 Thread Sekhar Nori
On Tuesday 28 February 2017 07:56 PM, Rob Herring wrote: > On Mon, Feb 27, 2017 at 11:36 PM, Sekhar Nori wrote: >> On Tuesday 28 February 2017 04:22 AM, Rob Herring wrote: >>> On Wed, Feb 22, 2017 at 02:43:47PM +0100, Bartosz Golaszewski wrote: Add an optional property - enable-gpios - which

Re: [PATCH 3/9] mm: remove seemingly spurious reclaimability check from laptop_mode gating

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:01, Johannes Weiner wrote: > 1d82de618ddd ("mm, vmscan: make kswapd reclaim in terms of nodes") > allowed laptop_mode=1 to start writing not just when the priority > drops to DEF_PRIORITY - 2 but also when the node is unreclaimable. > That appears to be a spurious change in th

Re: [PATCH v3] btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h

2017-03-01 Thread David Sterba
On Wed, Mar 01, 2017 at 02:12:50AM +0300, Dmitry V. Levin wrote: > btrfs_err_str function is not called from anywhere and is replicated > in the userspace headers for btrfs-progs. > > It's removal also fixes the following linux/btrfs.h userspace > compilation error: > > /usr/include/linux/btrfs.h

Re: [PATCH 9/9] mm: remove unnecessary back-off function when retrying page reclaim

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:07, Johannes Weiner wrote: > The backoff mechanism is not needed. If we have MAX_RECLAIM_RETRIES > loops without progress, we'll OOM anyway; backing off might cut one or > two iterations off that in the rare OOM case. If we have intermittent > success reclaiming a few pages, t

Re: Poll CQ syncing problem

2017-03-01 Thread Noa Osherovich
On 3/1/2017 4:51 PM, Christoph Hellwig wrote: > On Wed, Mar 01, 2017 at 04:30:26PM +0200, Noa Osherovich wrote: >> Analysis: >> Since ib_comp_wq isn't single threaded, two works can run in parallel for >> the same CQ, >> executing __ib_process_cq. > They shouldn't. Each CQ has a single work_stru

Dell Inspiron 5558/0VNM2T and suspend/resume problem with r8169

2017-03-01 Thread Diego Viola
My machine (a Dell Inspiron 5558 laptop) fails to resume from suspend unless I rmmod r8169 first. Another workaround is to do this before suspend: echo 0 > /sys/power/pm_async I've been reproducing the freeze like this: $ i3lock && systemctl suspend I would have to repeat this at least 5 times

Re: [PATCH 8/9] Revert "mm, vmscan: account for skipped pages as a partial scan"

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:06, Johannes Weiner wrote: > This reverts commit d7f05528eedb047efe2288cff777676b028747b6. > > Now that reclaimability of a node is no longer based on the ratio > between pages scanned and theoretically reclaimable pages, we can > remove accounting tricks for pages skipped du

[PATCH] Bluetooth: fix assignments on error variable err

2017-03-01 Thread Colin King
From: Colin Ian King Variable err is being initialized to zero and then later being set to the error return from the call to hci_req_run_skb; hence we can remove the redundant initialization to zero. Also on two occassions err is not being set from the error return from the call to hci_req_run_s

Re: [PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-03-01 Thread Taeung Song
Hi, Peter On 03/02/2017 12:07 AM, Peter Zijlstra wrote: On Wed, Mar 01, 2017 at 11:56:39PM +0900, Namhyung Kim wrote: It's a kind of user experience issue. We provide the asm-only and asm+source annotation, and I think it'd be nice to add source-only option. And I remember that it was reques

Re: [locking/ww_mutex] 2a0c112828 WARNING: CPU: 0 PID: 18 at kernel/locking/mutex.c:305 __ww_mutex_wakeup_for_backoff

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 11:40:43PM +0800, Fengguang Wu wrote: > Thanks for the patch! I applied the patch on top of "locking/ww_mutex: > Add kselftests for ww_mutex stress", and find no "bad unlock balance > detected" but this warning. Attached is the new dmesg which is a bit > large due to lots of

[PATCH] PCI: iproc: Add PCI_DOMAIN dependency to PCI Kconfig

2017-03-01 Thread Jon Mason
From: Jon Mason 2+ PCI devices fail to be discovered due to each bus having the same PCI domain. This is because the domain defined in the device tree file is not being added due to PCI_DOMAIN not being enabled. So, every PCI bus has a domain of zero. When PCI_DOMAIN is selected by the Kconfig

Re: [RFC PATCH 2/2] mtd: devices: m25p80: Enable spi-nor bounce buffer support

2017-03-01 Thread Mark Brown
On Wed, Mar 01, 2017 at 03:21:24PM +0100, Cyrille Pitchen wrote: > Besides, some SPI controller drivers may already use their own bounce > buffer for other reasons. Then for those controllers, it would be one > more copy. They probably shouldn't, there's a lot of legacy drivers that do all sorts

RE: [PATCH v1] perf vendor events: Add mapping for KnightsMill PMU events

2017-03-01 Thread Wachowski, Karol
On Wed, Mar 01, 2017 at 03:52 PM +0100, Arnaldo Carvalho de Melo wrote: > this is in my tree already, holidays in this part of the world made this not > go upstream yet, will soon :-) That is great, thanks. Karol

Re: [PATCH] sched: Optimize pick_next_task for idle_sched_class too

2017-03-01 Thread Steven Rostedt
On Thu, 23 Feb 2017 20:45:06 +0530 Pavan Kondeti wrote: > Hi Peter, > > On Thu, Feb 23, 2017 at 7:24 PM, Peter Zijlstra wrote: > > On Thu, Feb 23, 2017 at 04:04:22PM +0530, Pavan Kondeti wrote: > >> Hi Peter, > >> > >> > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > >> > index 49

Re: [PATCH] mm, add_memory_resource: hold device_hotplug lock over mem_hotplug_{begin, done}

2017-03-01 Thread Dan Williams
On Wed, Mar 1, 2017 at 4:51 AM, Heiko Carstens wrote: > On Tue, Feb 28, 2017 at 12:57:29PM +0100, Heiko Carstens wrote: >> On Mon, Feb 27, 2017 at 05:20:31PM +0100, Michal Hocko wrote: >> > [CC Rafael] >> > >> > I've got lost in the acpi indirection (again). I can see >> > acpi_device_hotplug call

Re: [PATCH 6/9] mm: don't avoid high-priority reclaim on memcg limit reclaim

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:04, Johannes Weiner wrote: > 246e87a93934 ("memcg: fix get_scan_count() for small targets") sought > to avoid high reclaim priorities for memcg by forcing it to scan a > minimum amount of pages when lru_pages >> priority yielded nothing. > This was done at a time when reclaim

Re: [PATCH 5/9] mm: don't avoid high-priority reclaim on unreclaimable nodes

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 16:40:03, Johannes Weiner wrote: > 246e87a93934 ("memcg: fix get_scan_count() for small targets") sought > to avoid high reclaim priorities for kswapd by forcing it to scan a > minimum amount of pages when lru_pages >> priority yielded nothing. > > b95a2f2d486d ("mm: vmscan: conver

Re: [locking/ww_mutex] 2a0c112828 WARNING: CPU: 0 PID: 18 at kernel/locking/mutex.c:305 __ww_mutex_wakeup_for_backoff

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 11:40:43PM +0800, Fengguang Wu wrote: > Thanks for the patch! I applied the patch on top of "locking/ww_mutex: > Add kselftests for ww_mutex stress", and find no "bad unlock balance > detected" but this warning. Attached is the new dmesg which is a bit > large due to lots of

Re: [PATCH v2 1/3] coresight: bindings for debug module

2017-03-01 Thread Mathieu Poirier
On Tue, Feb 28, 2017 at 11:06:58PM +0800, Leo Yan wrote: > 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 deb

Re: [PATCH v4] net: don't call strlen() on the user buffer in packet_bind_spkt()

2017-03-01 Thread Eric Dumazet
On Wed, 2017-03-01 at 12:57 +0100, Alexander Potapenko wrote: > KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of > uninitialized memory in packet_bind_spkt(): ... > Signed-off-by: Alexander Potapenko > --- > Changes since v3: > - addressed comments by Eric Dumazet (avoid u

Re: [locking/ww_mutex] 2a0c112828 WARNING: CPU: 0 PID: 18 at kernel/locking/mutex.c:305 __ww_mutex_wakeup_for_backoff

2017-03-01 Thread Fengguang Wu
On Wed, Mar 01, 2017 at 04:51:36PM +0100, Peter Zijlstra wrote: On Wed, Mar 01, 2017 at 11:40:43PM +0800, Fengguang Wu wrote: Thanks for the patch! I applied the patch on top of "locking/ww_mutex: Add kselftests for ww_mutex stress", and find no "bad unlock balance detected" but this warning. At

[PATCH v4 01/19] block: DAC960: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/block/DAC960.c | 36 ++-- drive

[PATCH v4 02/19] dmaengine: pch_dma: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/dma/pch_dma.c | 12 ++-- 1 file changed, 6 insertions(+

[PATCH v4 03/19] IB/mthca: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/infiniband/hw/mthca/mthca_av.c | 10 +- drivers/infini

[PATCH v2] Revert "tty: serial: pl011: add ttyAMA for matching pl011 console"

2017-03-01 Thread Aleksey Makarov
The original patch makes condition always true, so it is wrong. This reverts commit aea9a80ba98a0c9b4de88850260e9fbdcc98360b. Signed-off-by: Aleksey Makarov --- v2: add Signed-off-by: drivers/tty/serial/amba-pl011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tt

[PATCH v4 00/19] Replace PCI pool by DMA pool API

2017-03-01 Thread Romain Perier
by the dma pool API, adds support to warn about this old API in checkpath.pl and remove the defines. Changes in v4: - Rebased series onto next-20170301 - Removed patch 20/20: checks done by checkpath.pl, no longer required. Thanks to Peter and Joe for their feedbacks. - Added Reviewed-by tags

[PATCH v4 17/19] usb: gadget: pch_udc: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/usb/gadget/udc/pch_udc.c | 31 +++ 1 file changed, 15 insertions(

[PATCH v4 09/19] scsi: csiostor: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. It also updates the name of some variables and the content of comments, accordingly. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/scsi/csi

[PATCH v4 08/19] scsi: be2iscsi: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin --- drivers/scsi/be2iscsi/be_iscsi.c | 6 +++--- drivers/scsi/be2iscsi/be_m

Re: [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs

2017-03-01 Thread Maxime Ripard
On Wed, Mar 01, 2017 at 06:20:51PM +0800, Icenowy Zheng wrote: > > 2017年3月1日 18:14于 Maxime Ripard 写道: > > > > On Tue, Feb 28, 2017 at 03:18:13PM +0800, Icenowy Zheng wrote: > > > > > > 2017年2月28日 14:44于 Maxime Ripard 写道: > > > > > > > > On Tue, Feb 28, 2017 at 03:40:53AM +0800, Icenowy Zheng w

Re: [Intel-gfx] [PATCH] drm/edid: Add EDID_QUIRK_FORCE_8BPC quirk for Rotel RSX-1058

2017-03-01 Thread Ville Syrjälä
On Wed, Mar 01, 2017 at 04:07:02PM +0200, Ville Syrjälä wrote: > On Mon, Feb 20, 2017 at 04:25:45PM +0100, Tomeu Vizoso wrote: > > Rotel RSX-1058 is a receiver with 4 HDMI inputs and a HDMI output, all > > 1.1. > > > > When a sink that supports deep color is connected to the output, the > > receiv

Re: [RFC PATCH 2/2] mtd: devices: m25p80: Enable spi-nor bounce buffer support

2017-03-01 Thread Boris Brezillon
On Wed, 1 Mar 2017 17:16:30 +0530 Vignesh R wrote: > On Wednesday 01 March 2017 04:13 PM, Cyrille Pitchen wrote: > > Le 01/03/2017 à 05:54, Vignesh R a écrit : > >> > >> > >> On Wednesday 01 March 2017 03:11 AM, Richard Weinberger wrote: > >>> Vignesh, > >>> > >>> Am 27.02.2017 um 13:08 schri

Re: [PATCH v2 2/3] coresight: refactor with function of_coresight_get_cpu

2017-03-01 Thread Mathieu Poirier
On Tue, Feb 28, 2017 at 11:06:59PM +0800, Leo Yan wrote: > 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

[RESEND PATCH v6 4/6] i2c: designware: introducing I2C_SLAVE definitions

2017-03-01 Thread Luis Oliveira
- Definitions were added to core library - A example was added to designware-core.txt Documentation that shows how the slave can be setup using DTS SLAVE related definitions were added to the core of the controller. Signed-off-by: Luis Oliveira Reviewed-by: Andy Shevchenko Acked-by: Rob Herri

[RESEND PATCH v6 0/6] i2c: designware: add I2C SLAVE support

2017-03-01 Thread Luis Oliveira
The purpose of this patchset is to enable Linux to be a I2C slave by enabling the slave functionality in the designware I2C controller and at the same time it does some cleaning of the existing code. The patch 1 is for cleaning and commentary fix. The patch 2 refactors the original i2c-designware

[RESEND PATCH v6 1/6] i2c: designware: Cleaning and comment style fixes.

2017-03-01 Thread Luis Oliveira
The purpose of this commit is to fix some comments and styling in the existing code due to the need of reuse this code. What is being made here is: - Sorted the headers files - Corrected some comments style (capital letters, lowcase i2c) - Reverse tree in the variables declaration - Add/remove emp

Re: [locking/ww_mutex] 2a0c112828 WARNING: CPU: 0 PID: 18 at kernel/locking/mutex.c:305 __ww_mutex_wakeup_for_backoff

2017-03-01 Thread Chris Wilson
On Wed, Mar 01, 2017 at 04:54:14PM +0100, Peter Zijlstra wrote: > On Wed, Mar 01, 2017 at 11:40:43PM +0800, Fengguang Wu wrote: > > Thanks for the patch! I applied the patch on top of "locking/ww_mutex: > > Add kselftests for ww_mutex stress", and find no "bad unlock balance > > detected" but this

Re: [PATCH v3] lockdep: Teach lockdep about memalloc_noio_save

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 05:05:30PM +0100, Michal Hocko wrote: > Anyway, does the following help? > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > index 47e4f82380e4..d5386ad7ed3f 100644 > --- a/kernel/locking/lockdep.c > +++ b/kernel/locking/lockdep.c > @@ -47,6 +47,7 @@ > #in

[PATCH v4 06/19] mlx5: Replace PCI pool old API

2017-03-01 Thread Romain Perier
The PCI pool API is deprecated. This commits replaces the PCI pool old API by the appropriated function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 11 ++- include/linux/mlx5/driver.h

<    1   2   3   4   5   6   7   8   9   >