Re: [RFC][PATCH 7/7] printk: new printk() recursion detection

2016-09-29 Thread Petr Mladek
On Tue 2016-09-27 23:22:37, Sergey Senozhatsky wrote: > We can't use alt_printk when we are flushing alt_printk buffers to logbuf, > because otherwise we would just flush messages back to alt_printk buffers. > At the same time, this opens a door for potential deadlock, should flushing > endup in

Re: [PATCH v3 1/2] mm, proc: Fix region lost in /proc/self/smaps

2016-09-29 Thread Michal Hocko
On Thu 29-09-16 21:14:40, Robert Hu wrote: > On Mon, 2016-09-26 at 10:46 +0200, Michal Hocko wrote: > > On Fri 23-09-16 17:53:51, Oleg Nesterov wrote: > > > On 09/23, Michal Hocko wrote: > > > > > > > > On Fri 23-09-16 15:56:36, Oleg Nesterov wrote: > > > > > > > > > > I think we can simplify

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-29 Thread Sinan Kaya
On 9/29/2016 10:18 AM, Wim Osterholt wrote: > On Wed, Sep 28, 2016 at 07:38:41PM -0400, Sinan Kaya wrote: >> >> Can you try these patches on your machines please? > > I applied the included patches on vanilla 4.8-rc8 and my machine booted > fine. (I saw a remark about SCSI interrupts, but I have

[PATCH v1 0/4] Misc changes to Rockchip PSR drivers

2016-09-29 Thread zain wang
1. prevent runing enable_psr when disabled bridge 2. get sync PM when init eDP 3. detect Sink PSR state after configuring the PSR 4. switch Main-Link and eDP phy when enable/disable psr BR, - Zain Yakir Yang (1): drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

[PATCH v1 1/4] drm/bridge: analogix_dp: prevent runing enable_psr when disabled bridge.

2016-09-29 Thread zain wang
When disabled bridge, analogix_dp_enable_psr() may run due to timer was set by rockchip_drm_do_flush(), in this case we should return -EBUSY. Signed-off-by: zain wang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH v1 2/4] drm/bridge: analogix_dp: get sync PM when init eDP

2016-09-29 Thread zain wang
Signed-off-by: zain wang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 206529a..026ec91 100644 ---

Re: [PATCH v2 2/8] pipe: move limit checking logic into pipe_set_size()

2016-09-29 Thread Joe Perches
On Thu, 2016-09-29 at 13:26 +0200, Vegard Nossum wrote: > On 08/29/2016 02:21 AM, Michael Kerrisk (man-pages) wrote: > > This is a preparatory patch for following work. Move the F_SETPIPE_SZ > > limit-checking logic from pipe_fcntl() into pipe_set_size(). This > > simplifies the code a little,

Re: [RFC][PATCH 6/7] printk: use alternative printk buffers

2016-09-29 Thread Petr Mladek
On Tue 2016-09-27 23:22:36, Sergey Senozhatsky wrote: > Use alt_printk buffer in in printk recursion-prone blocks: > -- around logbuf_lock protected sections in vprintk_emit() and >console_unlock() > -- around down_trylock_console_sem() and up_console_sem() > > Note that it addresses

Re: dm snapshot: Use kmalloc_array() in init_origin_hash()

2016-09-29 Thread Theodore Ts'o
On Thu, Sep 29, 2016 at 01:45:41PM +0200, SF Markus Elfring wrote: > > We have no hope of fixing Markus' homegrown coccinelle script. > > I have got an other impression. I see further possibilities > to clarify involved communication and software development challenges > for a few source code

Re: [PATCH v2] drm: tilcdc: add a workaround for failed clk_set_rate()

2016-09-29 Thread Bartosz Golaszewski
2016-09-29 9:55 GMT+02:00 Jyri Sarha : > On 09/28/16 15:41, Bartosz Golaszewski wrote: >> Some architectures don't use the common clock framework and don't >> implement all the clk interfaces for every clock. This is the case >> for da850-lcdk where clk_set_rate() only works for

Re: [PATCH] s390x/spinlock: Provide vcpu_is_preempted globally

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 03:11 PM, Martin Schwidefsky wrote: > On Thu, 29 Sep 2016 13:54:16 +0200 > Christian Borntraeger wrote: > >> this implements the s390 backend for commit >> "kernel/sched: introduce vcpu preempted check interface" >> by simply reusing the existing

Re: [PATCH] uapi: add missing install of sync_file.h

2016-09-29 Thread Sean Paul
On Tue, Sep 27, 2016 at 12:06 PM, Gustavo Padovan wrote: > 2016-09-27 Emilio López : > >> As part of the sync framework destaging, the sync_file.h header >> was moved, but an entry was not added on Kbuild to install it. >> This patch

Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit

2016-09-29 Thread Sean Paul
On Tue, Sep 27, 2016 at 11:54 AM, Sean Paul wrote: > On Mon, Sep 26, 2016 at 4:36 AM, Chris Wilson > wrote: >> On Sun, Sep 25, 2016 at 07:18:34PM -0700, Joe Perches wrote: >>> Remove function name and special " *ERROR*" from argument list >>> >>>

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-29 Thread Ondrej Zary
On Thursday 29 September 2016, ok...@codeaurora.org wrote: > On 2016-09-29 05:10, Ondrej Zary wrote: > > On Thursday 29 September 2016, Sinan Kaya wrote: > >> On 9/28/2016 3:23 PM, Ondrej Zary wrote: > >> > On Wednesday 28 September 2016 20:22:40 Sinan Kaya wrote: > >> >> On 9/28/2016 1:02 PM,

[PATCH 27/27] perf tests: Add dwarf unwind test for powerpc

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria The user stack dump feature was recently added for powerpc. But there was no test case available to test it. This test works same as on other architectures by preparing a stack frame on the perf test thread and comparing each frame by

Re: [PATCH -v2 2/9] sched/rtmutex/deadline: Fix a PI crash for deadline tasks

2016-09-29 Thread Thomas Gleixner
On Mon, 26 Sep 2016, Peter Zijlstra wrote: > This is because rt_mutex_enqueue_pi() and rt_mutex_dequeue_pi() > are only protected by pi_lock when operating pi waiters, while > rt_mutex_get_top_task(), will access them with rq lock held but > not holding pi_lock. > > In order to tackle it, we

Re: [PATCH 01/10] dm snapshot: Use kmalloc_array() in init_origin_hash()

2016-09-29 Thread Joe Perches
On Thu, 2016-09-29 at 13:45 +0200, Paul Bolle wrote: > On Thu, 2016-09-29 at 13:12 +0200, Paul Bolle wrote: > > Or did I misread that test? > I finally did some digging: commit e367455a9f25 ("checkpatch: emit > fewer kmalloc_array/kcalloc conversion warnings") shows I didn't. You still misread it

Re: [PATCH 0/4] Add DMA support for ti_am335x_adc driver

2016-09-29 Thread Mugunthan V N
On Sunday 25 September 2016 03:11 PM, Jonathan Cameron wrote: > On 21/09/16 17:11, Mugunthan V N wrote: >> > The ADC has a 64 work depth fifo length which holds the ADC data >> > till the CPU reads. So when a user program needs a large ADC data >> > to operate on, then it has to do multiple reads

[PATCH] Add ability to override kernel release check

2016-09-29 Thread Nikolay Borisov
From: Nikolay Borisov In some situation it might be useful to disable checking the kernel release. This happens when a kernel module is being rebuilt and then probed. Without this override one has to reboot the machine with the new kernel (and module) and then use

RE: [PATCH v3 3/3] mfd: lpc_ich: Add support for Intel Apollo Lake SoC

2016-09-29 Thread Kraemer, Matthias (Ferchau; ADITG/SW1)
Hello Mika, In line 1239 you specify "struct pci_bus *bus = dev->bus;" }, @@ -1122,6 +1131,36 @@ static int lpc_ich_init_spi(struct pci_dev *dev) } break; + case INTEL_SPI_BXT: { + unsigned int p2sb = PCI_DEVFN(13, 0); + unsigned

Re: [PATCH cgroup/for-4.9] cpuset: fix error error handling regression in proc_cpuset_show()

2016-09-29 Thread Dan Carpenter
That works but there are two other related warnings: kernel/cgroup.c:5811 proc_cgroup_show() warn: signed compare with PATH_MAX 'retval' kernel/cgroup.c:6099 cgroup_release_agent() warn: signed compare with PATH_MAX 'ret' regards, dan carpenter

Re: [PATCH v3 3/3] mfd: lpc_ich: Add support for Intel Apollo Lake SoC

2016-09-29 Thread Mika Westerberg
On Thu, Sep 29, 2016 at 01:19:30PM +, Kraemer, Matthias (Ferchau; ADITG/SW1) wrote: > Hello Mika, > > In line 1239 you specify "struct pci_bus *bus = dev->bus;" > }, @@ -1122,6 +1131,36 @@ static int lpc_ich_init_spi(struct pci_dev *dev) > } > break; > > +

Re: [PATCH v3 2/2] lockdep: Limit static allocations if PROVE_LOCKING_SMALL is defined

2016-09-29 Thread Babu Moger
CCing Dave. Dave, Please ack it if it looks good. Thanks. On 9/27/2016 2:33 PM, Babu Moger wrote: Reduce the size of data structure for lockdep entries by half if PROVE_LOCKING_SMALL if defined. This is used only for sparc. Signed-off-by: Babu Moger ---

Re: [PATCH v5 01/14] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-09-29 Thread Lorenzo Pieralisi
Hi Rafael, On Fri, Sep 09, 2016 at 03:23:30PM +0100, Lorenzo Pieralisi wrote: > On systems booting with a device tree, every struct device is > associated with a struct device_node, that represents its DT > representation. The device node can be used in generic kernel > contexts (eg IRQ

[PATCH 03/27] perf data: Fix building in 32 bit platform with libbabeltrace

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Wang Nan On ARM32 building it report following error when we build with libbabeltrace: util/data-convert-bt.c: In function 'add_bpf_output_values': util/data-convert-bt.c:440:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has

[GIT PULL 00/27] perf/core improvements and fixes

2016-09-29 Thread Arnaldo Carvalho de Melo
/acme/linux into perf/core (2016-09-23 07:21:38 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160929 for you to fetch changes up to d18019a53a07e009899ff6b8dc5ec30f249360d9: perf tests: Add dwarf unwind

[PATCH 04/27] perf trace: Beautify sched_[gs]et_attr return value

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Both return errno, show the string associated then. More work needed to capture the sched_attr arg to beautify it in turn, probably using BPF. Before: 0.210 ( 0.001 ms): sched_setattr(uattr: 0x7ffc684f02b0) = -22 After the patch, for this

[PATCH 05/27] perf tools: Update documentation info about quipper

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Simon Que The existing link is outdated. The most recent quipper code can be found at the new URL. Committer notes: Quipper is a C++ parser that can be used to convert from a perf.data file to and from a protobuf, a Chromium OS facility. Signed-off-by: Simon Que

[PATCH 09/27] perf script: Fix vanished idle symbols

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Commit 608c34de0b3d ("perf symbols: Mark if a symbol is idle in the library") causes idle symbols to vanish from perf script output. That is because print functions suppress symbols marked as 'idle'. However, suppression of 'idle' functions is only

[PATCH 10/27] perf record: Rename label 'out_symbol_exit'

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation for fixing the error paths, rename label 'out_symbol_exit' to be 'out' because that error path can be used irrespective of whether symbols (or anything else) has been initialized. Signed-off-by: Adrian Hunter

[PATCH 02/27] perf tools: Fix MMAP event synthesis broken by MAP_HUGETLB change

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Patch "perf record: Mark MAP_HUGETLB when synthesizing mmap events") breaks MMAP event synthesis. The executable name comparison will match any name if the length is zero, resulting in all the user space maps becoming anonymous. This is particularly

[PATCH 06/27] perf tools: Make perf_evsel__append_filter() generic

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier By making function perf_evsel__append_filter() take a format rather than an operator it is possible to reuse the code for other purposes (ex. Intel PT and CoreSight) than tracepoints. Signed-off-by: Mathieu Poirier

Re: [PATCH -v2 1/9] rtmutex: Deboost before waking up the top waiter

2016-09-29 Thread Peter Zijlstra
On Thu, Sep 29, 2016 at 10:43:54AM -0400, Thomas Gleixner wrote: > On Mon, 26 Sep 2016, Peter Zijlstra wrote: > > > On Mon, Sep 26, 2016 at 11:37:27AM -0400, Steven Rostedt wrote: > > > On Mon, 26 Sep 2016 11:35:03 -0400 > > > Steven Rostedt wrote: > > > > > > > Especially

Re: [PATCH -v2 4/9] rtmutex: Remove rt_mutex_fastunlock()

2016-09-29 Thread Thomas Gleixner
On Mon, 26 Sep 2016, Peter Zijlstra wrote: > There is but a single user and the previous patch mandates slowfn must > be rt_mutex_slowunlock(), so fold the lot together and save a few > lines. We might have to bring that back for RT, but ok :) Reviewed-by: Thomas Gleixner

[PATCH] dmaengine: pxa_dma: remove unused function

2016-09-29 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/dma/pxa_dma.c:1525:5: warning: no previous prototype for 'pxad_toggle_reserved_channel' [-Wmissing-prototypes] In fact, this function is called by no one, so this patch removes it. Signed-off-by: Baoyou Xie ---

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-29 Thread okaya
On 2016-09-29 05:10, Ondrej Zary wrote: On Thursday 29 September 2016, Sinan Kaya wrote: On 9/28/2016 3:23 PM, Ondrej Zary wrote: > On Wednesday 28 September 2016 20:22:40 Sinan Kaya wrote: >> On 9/28/2016 1:02 PM, Ondrej Zary wrote: Thanks, It sounds like you have more than one machine

Re: [Nbd] [PATCH][V3] nbd: add multi-connection support

2016-09-29 Thread Josef Bacik
On 09/29/2016 05:52 AM, Wouter Verhelst wrote: Hi Josef, On Wed, Sep 28, 2016 at 04:01:32PM -0400, Josef Bacik wrote: NBD can become contended on its single connection. We have to serialize all writes and we can only process one read response at a time. Fix this by allowing userspace to

Re: Regression in 4.8 - CPU speed set very low

2016-09-29 Thread Lennart Sorensen
On Wed, Sep 28, 2016 at 09:26:42PM -0500, Larry Finger wrote: > By the time it gets slow, the CPU's cool, and one cannot see the temp just > before that event happened. Hmm, I would not expect the CPU to drop from 80 to 40 degrees in a few seconds if the fan is not spinning. I wouldn't even

Re: [PATCH 3.12 000/119] 3.12.64-stable review

2016-09-29 Thread Guenter Roeck
On 09/29/2016 03:25 AM, Jiri Slaby wrote: This is the start of the stable review cycle for the 3.12.64 release. There are 119 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by

[PATCH 22/27] perf intel-pt: Fix decoding when there are address filters

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Due to errata SKL014 "Intel PT TIP.PGD May Not Have Target IP Payload", the Intel PT decoder needs to match address filters against TIP.PGD packets. Parse the address filters and implement the decoder's 'pgd_ip()' callback to match the IP against the

[PATCH 23/27] perf probe: Ignore the error of finding inline instance

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Ignore the error when the perf probe failed to find inline function instances. This can happen when we search a method in C++ debuginfo. If there is completely no instance in target, perf probe can return an error. E.g. without this fix: $

[PATCH 14/27] perf probe: Increase debug level of SDT debug messages

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Two SDT debug messages can occur for every DSO which is too noisy. Consequently, increase debug level of SDT messages. Signed-off-by: Adrian Hunter Acked-by: Masami Hiramatsu Cc: Jiri Olsa

[PATCH 20/27] perf intel-pt: Read address filter from AUXTRACE_INFO event

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Read the address filter from the AUXTRACE_INFO event in preparation for using it to assist in decoding. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Mathieu

[PATCH 13/27] perf record: Add support for using symbols in address filters

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Symbols come from either the DSO or /proc/kallsyms for the kernel. Details of the functionality can be found in Documentation/perf-record.txt. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami

[PATCH 11/27] perf record: Fix error paths

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Some error paths do not tidy-up. Fix that. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Mathieu Poirier Link:

[PATCH 08/27] perf evsel: Add support for address filters

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier This patch makes it possible to use the current filter framework with address filters. That way address filters for HW tracers such as CoreSight and Intel PT can be communicated to the kernel drivers. Signed-off-by: Mathieu Poirier

[PATCH 26/27] perf probe: Match linkage name with mangled name

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Match linkage name with mangled name if exists. The linkage_name is used for storing mangled name of the object. Thus, this allows 'perf probe' to find appropriate probe point from mangled symbol as below. E.g. without this fix: $ perf probe

[PATCH 07/27] perf evsel: New tracepoint specific function

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Making function perf_evsel__append_filter() static and introducing a new tracepoint specific function to append filters. That way we eliminate redundant code and avoid formatting mistake. Signed-off-by: Mathieu Poirier

[PATCH 19/27] perf intel-pt: Record address filter in AUXTRACE_INFO event

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The address filter is needed to help decode the trace, so store it in the AUXTRACE_INFO event. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Mathieu Poirier

[PATCH 18/27] perf intel-pt: Add a helper function for processing AUXTRACE_INFO

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a helper function 'intel_pt_has()' to make it easier to determine which members the AUXTRACE_INFO event contains. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu

[PATCH 12/27] perf symbols: Add dso__last_symbol()

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a function to find the last symbol in a DSO. This will be used when parsing address filters to calculate a region that includes the entire DSO. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami

[PATCH 15/27] perf intel-pt: Fix snapshot overlap detection decoder errors

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix occasional decoder errors decoding trace data collected in snapshot mode. Snapshot mode can take successive snapshots of trace which might overlap. The decoder checks whether there is an overlap but only looks at the current and previous buffer.

[PATCH 16/27] perf intel-pt: Add support for recording the max non-turbo ratio

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Previously the maximum non-turbo ratio was calculated from TSC assuming a 100 MHz multiplier which is correct for current hardware supporting Intel PT. However more recent kernels also now export the value, so use that in preference to the calculated

[PATCH 21/27] perf intel-pt: Enable decoder to handle TIP.PGD with missing IP

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter When address filters are used, the decoder must detect the end of a filter region (or a branch into a tracestop region) by matching Packet Generation Disabled (TIP.PGD) packets against the object code using the IP given in the packet. However, due to

[PATCH 25/27] perf probe: Fix to cut off incompatible chars from group name

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Cut off the characters which can not use for group name of uprobes when making it based on executable filename. For example, if the exec name is libstdc++.so, without this fix perf probe generates "probe_libstdc++" as the group name, but it is failed

[PATCH 24/27] perf probe: Skip if the function address is 0

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Skip probes if the entry address of the target function is 0. This can happen when we're handling C++ debuginfo files. E.g. without this fix, below case still fail. $ ./perf probe -x /usr/lib64/libstdc++.so.6 -vD is_open

[PATCH 17/27] perf intel-pt: Fix missing error codes processing auxtrace_info

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix 2 places where the err variable was not being set. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Mathieu Poirier Link:

[RFC PATCH] ipc/sem.c: Add cond_resched in exit_sme

2016-09-29 Thread Nikolay Borisov
In CONFIG_PREEMPT=n kernel a softlockup was observed while the for loop in exit_sem. Apparently it's possible for the loop to take quite a long time and it doesn't have a scheduling point in it. Since the codes is executing under an rcu read section this may also cause rcu stalls, which in turn

Re: [PATCH] Add ability to override kernel release check

2016-09-29 Thread Nikolay Borisov
On 09/29/2016 04:14 PM, Nikolay Borisov wrote: > From: Nikolay Borisov > > In some situation it might be useful to disable checking the > kernel release. This happens when a kernel module is being rebuilt > and then probed. Without this override one has to reboot the

Re: [RFC][PATCH 0/7] printk: use alt_printk to handle printk() recursive calls

2016-09-29 Thread Petr Mladek
On Tue 2016-09-27 23:22:30, Sergey Senozhatsky wrote: > Hello, > > RFC > > This patch set extends a lock-less NMI per-cpu buffers idea to > handle recursive printk() calls. The basic mechanism is pretty much the > same -- at the beginning of a deadlock-prone section we switch

Re: Race condition between iget_locked() and evict_inodes()

2016-09-29 Thread Al Viro
On Thu, Sep 29, 2016 at 12:56:49PM +, Anton Altaparmakov wrote: > Hi Al, > > > On 29 Sep 2016, at 13:17, Al Viro wrote: > > > > On Thu, Sep 29, 2016 at 11:53:21AM +, Anton Altaparmakov wrote: > >> Thus if the events happen in this order: > >> > >>

[PATCH] clk: mvebu: armada-37xx-periph: Fix the clock provider registration

2016-09-29 Thread Gregory CLEMENT
While trying using a peripheral clock on a driver, I saw that the clock pointer returned by the provider was NULL. The problem was a missing indirection. It was the pointer stored in the hws array which needed to be updated not the value it contains. Signed-off-by: Gregory CLEMENT

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-29 Thread Sinan Kaya
On 9/29/2016 10:28 AM, Sinan Kaya wrote: > + if (irq < ACPI_MAX_ISA_IRQS) BTW, can you change this line to if (link->irq.active < ACPI_MAX_ISA_IRQS) after applying. > + acpi_isa_irq_penalty[link->irq.active] += > +

[PATCH v1 3/4] drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

2016-09-29 Thread zain wang
From: Yakir Yang Make sure the request PSR state takes effect in analogix_dp_send_psr_spd() function, or print the sink PSR error state if we failed to apply the requested PSR setting. Signed-off-by: Yakir Yang Signed-off-by: Zain Wang

Re: crash by cdc_acm driver in kernels 4.8-rc1/5

2016-09-29 Thread Wim Osterholt
On Wed, Sep 28, 2016 at 05:23:30PM +0200, Oliver Neukum wrote: > > > > HP src # sync > > HP src # [ 3744.914184] BUG: unable to handle kernel NULL pointer > > dereference at 0249 > > The last view lines before that please with the debugging level ramped > up to 9 please. Recompiled again,

Re: lspci not showing motherboard ethernet controller after PCIe card firmware update change from 32-bit to 64-bit BAR

2016-09-29 Thread Lennart Sorensen
On Wed, Sep 28, 2016 at 09:05:44AM -0500, Steve Kenton wrote: > I decided to experiment with /sys/bus/pci and the BIOS settings to try > and understand things better. > > The BIOS has a settings to enable/disable the on-board LAN. When the > Blackmagic card firmware is upgraded > bus[03] and

Re: [PATCH] s390x/spinlock: Provide vcpu_is_preempted globally

2016-09-29 Thread Martin Schwidefsky
On Thu, 29 Sep 2016 13:54:16 +0200 Christian Borntraeger wrote: > this implements the s390 backend for commit > "kernel/sched: introduce vcpu preempted check interface" > by simply reusing the existing cpu_is_preempted function. > > Signed-off-by: Christian Borntraeger

Re: [tip:x86/platform] x86/platform/mellanox: Introduce support for Mellanox systems platform

2016-09-29 Thread Thomas Gleixner
On Wed, 28 Sep 2016, Darren Hart wrote: > This through me as I was trying to reconcile this series with another mellanox > platform driver from Vadim to the drivers/platform/x86 tree as this one also > came to the platform-driver-x86 mailing list. > > There are no other entries in MAINTAINERS

[PATCH v2 0/4] ACPI / gpio: Updates to properties

2016-09-29 Thread Mika Westerberg
Hi, This series brings couple of useful GPIO related properties from Device Tree to ACPI _DSD device properties: - Names for GPIO lines - GPIO hogging - Holes in GPIO property lists We are using these to get Intel Galileo better supported in the mainline kernel (but these may be useful

[PATCH v2 1/4] ACPI / property: Allow holes in reference properties

2016-09-29 Thread Mika Westerberg
DT allows holes or empty phandles for references. This is used for example in SPI subsystem where some chip selects are native and others are regular GPIOs. In ACPI _DSD we currently do not support this but instead the preceding reference consumes all following integer arguments. For example we

[PATCH v2 3/4] ACPI / gpio: Add hogging support

2016-09-29 Thread Mika Westerberg
GPIO hogging means that the GPIO controller can "hog" and configure certain GPIOs without need for a driver or userspace to do that. This is useful in open-connected boards where BIOS cannot possibly know beforehand which devices will be connected to the board. This adds GPIO hogging mechanism to

[PATCH v2 2/4] ACPI / gpio: Add support for naming GPIOs

2016-09-29 Thread Mika Westerberg
DT has property 'gpio-line-names' to name GPIO lines the controller has if present. Use this very same property in ACPI as well to provide nice names for the GPIOS. Signed-off-by: Mika Westerberg --- Documentation/acpi/gpio-properties.txt | 21 +

[PATCH v2 4/4] ACPI / gpio: Allow holes in list of GPIOs for a device

2016-09-29 Thread Mika Westerberg
Make it possible to have an empty GPIOs in a GPIO list for device. For example a SPI master may use both GPIOs and native pins as chip selects and we need to be able to distinguish between the two. This makes it mandatory to have exactly 3 arguments for GPIOs and then converts gpiolib to use of

Re: [PATCH -v2 3/9] sched/deadline/rtmutex: Dont miss the dl_runtime/dl_period update

2016-09-29 Thread Thomas Gleixner
On Mon, 26 Sep 2016, Peter Zijlstra wrote: > Currently dl tasks will actually return at the very beginning > of rt_mutex_adjust_prio_chain() in !detect_deadlock cases: > > if (waiter->prio == task->prio) { > if (!detect_deadlock) > goto out_unlock_pi; // out here >

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-29 Thread Wim Osterholt
On Wed, Sep 28, 2016 at 07:38:41PM -0400, Sinan Kaya wrote: > > Can you try these patches on your machines please? I applied the included patches on vanilla 4.8-rc8 and my machine booted fine. (I saw a remark about SCSI interrupts, but I have no SCSI.) Regards, Wim.

[PATCH 01/27] perf record: Fix documentation 'event_sources' -> 'event_source'

2016-09-29 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Change '/sys/bus/event_sources' to the correct path which is '/sys/bus/event_source'. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Mathieu Poirier

Re: [PATCH 4.7 00/69] 4.7.6-stable review

2016-09-29 Thread Kevin Hilman
Greg Kroah-Hartman writes: > On Thu, Sep 29, 2016 at 01:22:06AM -0700, Kevin Hilman wrote: >> kernelci.org bot writes: >> >> > stable-rc boot: 105 boots: 1 failed, 100 passed with 4 offline >> > (v4.7.5-70-g64e4c0f6d4b1) >> > >> > Full Boot

Re: [PATCHv4 00/57] perf c2c: Add new tool to analyze cacheline contention on NUMA systems

2016-09-29 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 29, 2016 at 11:19:12AM +0200, Peter Zijlstra escreveu: > On Thu, Sep 22, 2016 at 05:36:28PM +0200, Jiri Olsa wrote: > > sending new version of c2c patches (v3) originally posted in here: > > http://lwn.net/Articles/588866/ > I'll just keep repeating; this is not the tool I want :-(

[PATCH v1 4/4] drm: bridge/analogix: switch Main-link and eDP PHY when enable/disable psr

2016-09-29 Thread zain wang
turn off Main-link and power down eDP PHY when enable psr, turn on Main-link and power up eDP PHY when disable psr. Signed-off-by: zain wang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 105 ++--- 1 file changed, 52 insertions(+), 53

Re: [PATCH -v2 1/9] rtmutex: Deboost before waking up the top waiter

2016-09-29 Thread Thomas Gleixner
On Mon, 26 Sep 2016, Peter Zijlstra wrote: > On Mon, Sep 26, 2016 at 11:37:27AM -0400, Steven Rostedt wrote: > > On Mon, 26 Sep 2016 11:35:03 -0400 > > Steven Rostedt wrote: > > > > > Especially now that the code after the spin_unlock(>lock) is now a > > > critical section

Re: [PATCH -v2 5/9] rtmutex: Clean up

2016-09-29 Thread Thomas Gleixner
On Mon, 26 Sep 2016, Steven Rostedt wrote: > Peter Zijlstra wrote: > > Can this be rephrased to: "Returns true if preemption has been > disabled and a call to rt_mutex_postunlock() is required (which will > re-enable preemption)" I agree with Steven that the comments

Re: Race condition between iget_locked() and evict_inodes()

2016-09-29 Thread Anton Altaparmakov
Hi Al, > On 29 Sep 2016, at 13:17, Al Viro wrote: > > On Thu, Sep 29, 2016 at 11:53:21AM +, Anton Altaparmakov wrote: >> Thus if the events happen in this order: >> >> evict_inodes() iget_locked() in >> find_inode_fast() > > ... you

Re: [dm-devel] [PATCH 03/10] md/dm-crypt: Rename a jump label in crypt_message()

2016-09-29 Thread Theodore Ts'o
On Wed, Sep 28, 2016 at 05:40:14PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 28 Sep 2016 14:54:39 +0200 > > Adjust a jump label according to the current Linux coding style convention. In what bizzaro world is the "current Linux coding

Re: [dm-devel] [PATCH 05/10] md/dm-crypt: Rename a jump label in crypt_set_key()

2016-09-29 Thread Theodore Ts'o
On Wed, Sep 28, 2016 at 05:42:28PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 28 Sep 2016 15:21:18 +0200 > > Adjust jump labels according to the current Linux coding style convention. > > - > -out: > +set_memory: > /* Hex key string

[BUG] block: bdi_register_owner() failure cause NULL pointer dereference

2016-09-29 Thread Michael Wang
Hi, Folks We observed the hard lockup while trying raid assemble with sas3ircu, it was start with the failure inside bdi_register_owner() with duplicated kobj path, and later comeup the NULL pointer dereference, after that system hang and we saw hard lockup on screen. The duplicated issue could

Re: [PATCH v3 1/2] config: Adding the new config parameter CONFIG_PROVE_LOCKING_SMALL for sparc

2016-09-29 Thread Babu Moger
On 9/28/2016 3:39 AM, Peter Zijlstra wrote: On Tue, Sep 27, 2016 at 12:33:27PM -0700, Babu Moger wrote: This new config parameter limits the space used for "Lock debugging: prove locking correctness" by about 4MB. The current sparc systems have the limitation of 32MB size for kernel size

[PATCH cgroup/for-4.6] cgroup: fix error handling regressions in proc_cgroup_show() and cgroup_release_agent()

2016-09-29 Thread Tejun Heo
4c737b41de7f ("cgroup: make cgroup_path() and friends behave in the style of strlcpy()") broke error handling in proc_cgroup_show() and cgroup_release_agent() by not handling negative return values from cgroup_path_ns_locked(). Fix it. Reported-by: Dan Carpenter

Re: [PATCH 2/6] ipr: use pci_irq_allocate_vectors

2016-09-29 Thread Brian King
Thanks Christoph. Very nice. As I was reviewing the patch, I noticed the additional PCI_IRQ_AFFINITY flag, which is currently not being set in this patch. Is the intention to set that globally by default, or should I follow up with a one liner to add that to the ipr driver in the next patch set I

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-09-29 Thread Sinan Kaya
On 9/29/2016 9:49 AM, Ondrej Zary wrote: >> Ok, since I have not seen the full boot log I am guessing that isa api >> > gets called before the link objects are initialized. > Netconsole did not work (probably because it crashes too early?) and I don't > have a null-modem cable. > Probably, this

Re: [PATCH 2/6] ipr: use pci_irq_allocate_vectors

2016-09-29 Thread Christoph Hellwig
On Thu, Sep 29, 2016 at 09:01:44AM -0500, Brian King wrote: > Thanks Christoph. Very nice. As I was reviewing the patch, I noticed > the additional PCI_IRQ_AFFINITY flag, which is currently not being set > in this patch. Is the intention to set that globally by default, or > should I follow up

Re: [PATCH] dmaengine: pxa_dma: remove unused function

2016-09-29 Thread Robert Jarzmik
Baoyou Xie writes: > We get 1 warning when building kernel with W=1: > drivers/dma/pxa_dma.c:1525:5: warning: no previous prototype for > 'pxad_toggle_reserved_channel' [-Wmissing-prototypes] > > In fact, this function is called by no one, so this patch removes it. > >

[RFC PATCH 1/1] mm/percpu.c: fix potential memory leakage for pcpu_embed_first_chunk()

2016-09-29 Thread zijun_hu
From: zijun_hu it will cause memory leakage for pcpu_embed_first_chunk() to go to label @out_free if the chunk spans over 3/4 VMALLOC area. all memory are allocated and recorded into array @areas for each CPU group, but the memory allocated aren't be freed before returning

Re: [PATCH] clocksource: arm_arch_timer: Don't assume clock runs in suspend

2016-09-29 Thread Marc Zyngier
On Tue, 27 Sep 2016 18:23:11 -0700 Brian Norris wrote: Hi Brian, > Hi Marc, > > Thanks again for the help. I was checking with Rockchip on the details. > > On Tue, Sep 20, 2016 at 08:47:07AM +0100, Marc Zyngier wrote: > > The counter is allowed to be clocked at a

Re: [PATCH v5] powerpc: Do not make the entire heap executable

2016-09-29 Thread Oleg Nesterov
On 09/28, Kees Cook wrote: > > This is where the flags are actually built from what's coming in > through the newly created exported function vm_brk_flags() below. The > only flag we're acting on is VM_EXEC (passed in from set_brk() above). > I think do_brk_flags() should mask the valid flags, or

[PATCH 0/6] ARM: davinci: da850-lcdk: add support for tilcdc

2016-09-29 Thread Bartosz Golaszewski
This series enables the tilcdc support for da850-lcdk. Besides the device tree changes it contains some tweaks needed to make it work. Tested with a da850-lcdk board with an LCD display connected over VGA with the following modes: modetest -M tilcdc -s 26:800x600@RG16 modetest -M tilcdc -s

Re: [PATCH locking/Documentation 1/2] Add note of release-acquire store vulnerability

2016-09-29 Thread Paul E. McKenney
On Thu, Sep 29, 2016 at 06:17:38PM +0200, Peter Zijlstra wrote: > On Thu, Sep 29, 2016 at 05:03:08PM +0100, Will Deacon wrote: > > On Thu, Sep 29, 2016 at 05:58:17PM +0200, Peter Zijlstra wrote: > > > On Thu, Sep 29, 2016 at 08:54:01AM -0700, Paul E. McKenney wrote: > > > > If two processes are

pull-request: wireless-drivers-next 2016-09-29

2016-09-29 Thread Kalle Valo
Hi Dave, this should be the last wireless-drivers-next pull request for 4.9, from now on only important bugfixes. Nothing really special stands out, iwlwifi being most active but other drivers also getting attention. More details in the signed tag. Please let me know if there are any problems.

Re: [PATCH locking/Documentation 1/2] Add note of release-acquire store vulnerability

2016-09-29 Thread Peter Zijlstra
On Thu, Sep 29, 2016 at 08:54:01AM -0700, Paul E. McKenney wrote: > If two processes are related by a RELEASE+ACQUIRE pair, ordering can be > broken if a third process overwrites the value written by the RELEASE > operation before the ACQUIRE operation has a chance of reading it. > This commit

[PATCH net-next 08/10] net: dsa: mv88e6xxx: add chip-wide ops

2016-09-29 Thread Vivien Didelot
Introduce a mv88e6xxx_ops structure to describe supported chip-wide functions and assign the correct variant to the chip models. For the moment, add only PHY access routines. This allows to get rid of the PHY ops structures and the usage of PHY flags. Signed-off-by: Vivien Didelot

Re: [PATCH locking/Documentation 1/2] Add note of release-acquire store vulnerability

2016-09-29 Thread Peter Zijlstra
On Thu, Sep 29, 2016 at 05:03:08PM +0100, Will Deacon wrote: > On Thu, Sep 29, 2016 at 05:58:17PM +0200, Peter Zijlstra wrote: > > On Thu, Sep 29, 2016 at 08:54:01AM -0700, Paul E. McKenney wrote: > > > If two processes are related by a RELEASE+ACQUIRE pair, ordering can be > > > broken if a third

  1   2   3   4   5   6   7   8   >