Re: [PATCH v14 2/4] drm: crc: Wait for a frame before returning from open()

2017-01-05 Thread Daniel Vetter
On Mon, Jan 02, 2017 at 01:59:10PM +0100, Tomeu Vizoso wrote: > Don't return from the open() call on the crc/data file until the HW has > produced a first frame, as there's great variability in when the HW is > able to do that and userspace shouldn't have to guess when this specific > HW is ready t

Re: [RESEND 2/2] arm64: dts: Add dts files for Hisilicon Hi3660 SoC

2017-01-05 Thread Andy Gross
On Mon, Dec 26, 2016 at 05:36:12PM +0800, Chen Feng wrote: > Add initial dtsi file to support Hisilicon Hi3660 SoC with > support of Octal core CPUs in two clusters(4 * A53 & 4 * A73). > > Also add dts file to support HiKey960 development board which > based on Hi3660 SoC. > The output console is

Re: [PATCH perf/core 3/3] perf-probe: Fix to probe on gcc generated functions in modules

2017-01-05 Thread Masami Hiramatsu
On Thu, 5 Jan 2017 20:20:19 +0900 Masami Hiramatsu wrote: > On Wed, 4 Jan 2017 11:48:56 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Wed, Jan 04, 2017 at 12:31:39PM +0900, Masami Hiramatsu escreveu: > > > Fix to probe on gcc generated functions on modules. Since > > > probing on a module is

Re: [PATCH] x86/head: Refactor 32-bit pgtable setup

2017-01-05 Thread Boris Ostrovsky
On 01/05/2017 03:52 AM, Ingo Molnar wrote: > > Yeah, so (belatedly) I tried to merge this to latest upstream, via the commit > below (note the slight edits to the changelog) - but 32-bit defconfig fails > to > build: > > arch/x86/kernel/head_32.S:615: Error: can't resolve `init_thread_union'

Re: PROBLEM: Kernel BUG with raid5 soft + Xen + DRBD - invalid opcode

2017-01-05 Thread MasterPrenium
Hi Shaohua, Thanks for your reply. Let me explain my "huge". For example, if I'm making a low rate i/o stream, I don't get a crash (<1MB written / sec) with random i/o, but if I'm making a random I/O of about 20MB/sec, the kernel crashes in a few minutes (for example, making an rsync, or even

Re: [PATCH] clk: qcom: Fix a possible NULL pointer dereferencing

2017-01-05 Thread Andy Gross
On Thu, Jan 05, 2017 at 02:25:25PM +0530, Vivek Gautam wrote: > Assign num_parents as 0 while registering fixed rate clocks > in _qcom_cc_register_board_clk(), to make sure the clk framework > doesn't dereference parent. > > Fixes: ee15faffef11 ("clk: qcom: common: Add API to register board clocks

Re: [PATCH 4/4] watchdog: tangox: Use watchdog core to install restart handler

2017-01-05 Thread Guenter Roeck
On 01/05/2017 01:42 AM, Marc Gonzalez wrote: [ Adding Mans ] Guenter, patch c7ef68c32265 states "Fixes: a3e376d26ace". Is that true? I mean, they seem quite orthogonal; then again I know nothing of this framework. max_hw_heartbeat_ms must be set for WDOG_HW_RUNNING to work. Guenter Regards.

[PATCH net-next 0/3] rxrpc: Update tracing and proc interfaces

2017-01-05 Thread David Howells
l.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rewrite-20170105 David --- David Howells (3): rxrpc: Fix handling of enums-to-string translation in tracing

[PATCH net-next 2/3] rxrpc: Add some more tracing

2017-01-05 Thread David Howells
Add the following extra tracing information: (1) Modify the rxrpc_transmit tracepoint to record the Tx window size as this is varied by the slow-start algorithm. (2) Modify the rxrpc_rx_ack tracepoint to record more information from received ACK packets. (3) Add an rxrpc_rx_data tra

[PATCH net-next 3/3] rxrpc: Show a call's hard-ACK cursors in /proc/net/rxrpc_calls

2017-01-05 Thread David Howells
Show a call's hard-ACK cursors in /proc/net/rxrpc_calls so that a call's progress can be more easily monitored. Signed-off-by: David Howells --- net/rxrpc/proc.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/rxrpc/proc.c b/net/rxrpc/proc.c index 65cd980767f

Re: [PATCH v6 3/3] serial: 8250_pci: remove exar code

2017-01-05 Thread Andy Shevchenko
On Thu, Jan 5, 2017 at 12:20 PM, Sudip Mukherjee wrote: > Remove the exar specific codes from 8250_pci and blacklist those chips > so that the exar serial binds to the devices. exar -> Exar ? > +#define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004 > +#define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002

Re: [PATCH v3] rfkill: Add rfkill-any LED trigger

2017-01-05 Thread Michał Kępień
> On Mon, 2017-01-02 at 13:21 +0100, Johannes Berg wrote: > > > I'm not super happy with this conditional locking - can't we > > > instead > > > defer the necessary work to a workqueue, or so, for purposes of the > > > LED? > > > > Actually, since you can sleep in here, and do various other things

Re: [PATCH v6 3/3] serial: 8250_pci: remove exar code

2017-01-05 Thread Andy Shevchenko
On Thu, Jan 5, 2017 at 4:35 PM, Andy Shevchenko wrote: > On Thu, Jan 5, 2017 at 12:20 PM, Sudip Mukherjee > wrote: >> Remove the exar specific codes from 8250_pci and blacklist those chips >> so that the exar serial binds to the devices. > > exar -> Exar ? > >> +#define PCI_DEVICE_ID_COMMTECH_422

Re: [PATCH 3/3] mfd: cros_ec: Add ACPI GPE handler for LID0 devices

2017-01-05 Thread Lee Jones
Rafael, On Thu, 05 Jan 2017, Thierry Escande wrote: > Hi Lee, > > On 05/01/2017 08:54, Lee Jones wrote: > > On Wed, 04 Jan 2017, Thierry Escande wrote: > > > > > Hi Lee, > > > > > > On 04/01/2017 10:06, Lee Jones wrote: > > > > On Fri, 16 Dec 2016, Thierry Escande wrote: > > > > > > > > > Fro

[PATCH net-next 1/3] rxrpc: Fix handling of enums-to-string translation in tracing

2017-01-05 Thread David Howells
Fix the way enum values are translated into strings in AF_RXRPC tracepoints. The problem with just doing a lookup in a normal flat array of strings or chars is that external tracing infrastructure can't find it. Rather, TRACE_DEFINE_ENUM must be used. Also sort the enums and string tables to make

Need information on handling legacy interrupts

2017-01-05 Thread Bharat Kumar Gogada
Hi, In pcie-xilinx-nwl.c, the bridge has legacy status read only register where the status bit is set when Assert_INTx is received and cleared only when Deassert_INTx is received. The above scenario is causing issue if an EP takes more time to send Deassert_Intx (we are mainly seeing issue with

[PATCH v4] PCI: add a new directory for designware core

2017-01-05 Thread Kishon Vijay Abraham I
group all the PCI drivers that use designware core in dwc directory. dwc IP is capable of operating in both host mode and device mode and keeping it inside the *host* directory is misleading. This is in preparation for adding endpoint mode support in dwc driver. Cc: Thomas Petazzoni Cc: Minghuan

Re: [GIT PULL] efi: Pass secure boot mode to kernel

2017-01-05 Thread David Howells
Matt Fleming wrote: > > Is it too late to request this for the upcoming merge window? > > For something as non-trivial as this, yes, it's too late. We generally > close the EFI tree window for new features around -rc5 time. Can I request that it be pulled now? Are you going to update efi/core?

Re: [PATCH v7 0/8] Add PWM and IIO timer drivers for STM32

2017-01-05 Thread Lee Jones
On Thu, 05 Jan 2017, Benjamin Gaignard wrote: > version 7: > - rebase on v4.10-rc2 > - remove iio_device code from driver and keep only the trigger part > > version 6: > - rename stm32-gptimer in stm32-timers. > - change "st,stm32-gptimer" compatible to "st,stm32-timers". > - modify "st,breakinpu

Re: [RFC] drm: Parse HDMI 2.0 YCbCr 4:2:0 VDB and VCB

2017-01-05 Thread Jose Abreu
Hi Ville, On 05-01-2017 11:46, Ville Syrjälä wrote: > On Thu, Jan 05, 2017 at 10:07:45AM +, Jose Abreu wrote: >> Hi Ville, >> >> >> On 04-01-2017 16:36, Ville Syrjälä wrote: >>> On Wed, Jan 04, 2017 at 04:15:01PM +, Jose Abreu wrote: >> >> [snip] >> > Why does userspace need to know

[PATCH] [linux-next] bus:qcom : Fix typo in qcom,ebi2.txt

2017-01-05 Thread Masanari Iida
This patch fix 2 spelling typos found in qcom,ebi2.txt Signed-off-by: Masanari Iida --- Documentation/devicetree/bindings/bus/qcom,ebi2.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/bus/qcom,ebi2.txt b/Documentation/devicetree/bi

Re: [PATCH 4/7] mm, vmscan: show LRU name in mm_vmscan_lru_isolate tracepoint

2017-01-05 Thread Mel Gorman
On Thu, Jan 05, 2017 at 11:16:13AM +0100, Michal Hocko wrote: > > > diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h > > > index 36c999f806bf..7ec59e0432c4 100644 > > > --- a/include/trace/events/vmscan.h > > > +++ b/include/trace/events/vmscan.h > > > @@ -277,9 +277,9 @@

Re: [PATCH v2] mfd:rtsx: do retry when dma transfer error

2017-01-05 Thread Lee Jones
On Thu, 05 Jan 2017, 冯伟linux wrote: > > + err = -EILSEQ; > > Why are you using this error code? > > > > when kernel receive the error number is EILSEQ, the SD card requeset > will be retried for some times, instead of dropping it directly. > so we use EILSEQ and frequency reduction to e

Re: x86: warning in unwind_get_return_address

2017-01-05 Thread Josh Poimboeuf
On Tue, Dec 27, 2016 at 05:38:59PM +0100, Dmitry Vyukov wrote: > On Thu, Dec 22, 2016 at 6:17 AM, Josh Poimboeuf wrote: > > On Wed, Dec 21, 2016 at 01:46:36PM +0100, Andrey Konovalov wrote: > >> On Wed, Dec 21, 2016 at 12:36 AM, Josh Poimboeuf > >> wrote: > >> > > >> > Thanks. Looking at the st

Re: [PATCH] drm/i915/dp: Stop enabling limited color ranges for everything

2017-01-05 Thread Lyude Paul
On Thu, 2017-01-05 at 09:52 +0100, Daniel Vetter wrote: > On Thu, Jan 05, 2017 at 10:41:07AM +0200, Jani Nikula wrote: > > No matter what we do here, the question remains what to do with > > Chamelium. Changing the color range is really a workaround for > > Chamelium, not a fix. Using CEA range is

Re: [PATCH 3/3] mfd: arizona: Use regmap_read_poll_timeout instead of hard coding it

2017-01-05 Thread Lee Jones
On Thu, 05 Jan 2017, Charles Keepax wrote: > On Thu, Jan 05, 2017 at 08:07:01AM +, Lee Jones wrote: > > On Wed, 04 Jan 2017, Charles Keepax wrote: > > > > > arizona_poll_reg essentially hard-codes regmap_read_poll_timeout, this > > > patch updates the implementation to use regmap_read_poll_ti

Re: Need information on handling legacy interrupts

2017-01-05 Thread Marc Zyngier
On 05/01/17 14:40, Bharat Kumar Gogada wrote: > Hi, > > In pcie-xilinx-nwl.c, the bridge has legacy status read only register where > the status bit is set when > Assert_INTx is received and cleared only when Deassert_INTx is received. > The above scenario is causing issue if an EP takes more tim

[PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS

2017-01-05 Thread Neil Armstrong
The current hardware is not able to run with all cores enabled at a cluster frequency superior at 1536MHz. But the currently shipped u-boot for the platform still reports an OPP table with possible DVFS frequency up to 2GHz, and will not change since the off-tree linux tree supports limiting the OP

Re: [GIT PULL 00/12] perf/urgent fixes

2017-01-05 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 05, 2017 at 08:36:36AM +0100, Ingo Molnar escreveu: > > * Arnaldo Carvalho de Melo wrote: > > > Hi Ingo, > > > > Please consider pulling, > > > > - Arnaldo > > > > Test results at the end of this message, as usual, news about it: > > > > Has two new targets, debian:experiment

[tip:x86/urgent] x86/cpu: Fix bootup crashes by sanitizing the argument of the 'clearcpuid=' command-line option

2017-01-05 Thread tip-bot for Lukasz Odzioba
Commit-ID: dd853fd216d1485ed3045ff772079cc8689a9a4a Gitweb: http://git.kernel.org/tip/dd853fd216d1485ed3045ff772079cc8689a9a4a Author: Lukasz Odzioba AuthorDate: Wed, 28 Dec 2016 14:55:40 +0100 Committer: Ingo Molnar CommitDate: Thu, 5 Jan 2017 08:54:34 +0100 x86/cpu: Fix bootup crashe

Re: [PATCH] mm: Respect FOLL_FORCE/FOLL_COW for thp

2017-01-05 Thread Kirill A. Shutemov
On Thu, Jan 05, 2017 at 12:36:58AM -0500, Keno Fischer wrote: > In 19be0eaff ("mm: remove gup_flags FOLL_WRITE games from > __get_user_pages()"), > the mm code was changed from unsetting FOLL_WRITE after a COW was resolved to > setting the (newly introduced) FOLL_COW instead. Simultaneously, the c

[tip:x86/asm] selftests/x86: Add a selftest for SYSRET to noncanonical addresses

2017-01-05 Thread tip-bot for Andy Lutomirski
Commit-ID: 6606021401032919c559a829a5d273ba1741b434 Gitweb: http://git.kernel.org/tip/6606021401032919c559a829a5d273ba1741b434 Author: Andy Lutomirski AuthorDate: Mon, 26 Dec 2016 19:20:50 -0800 Committer: Ingo Molnar CommitDate: Thu, 5 Jan 2017 09:20:02 +0100 selftests/x86: Add a self

[PATCH v2] perf/x86/intel/uncore: Remove hardcoded socket 0 in Haswell init code

2017-01-05 Thread Prarit Bhargava
In case anyone finds the actual panic interesting ... BUG: unable to handle kernel paging request at 006563a1 IP: [] hswep_uncore_cpu_init+0x52/0xa0 PGD 0 [2.313897] Oops: [#1] SMP Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0 #1 Hardware name: NEC Express5800

[tip:perf/urgent] perf/x86: Set pmu->module in Intel PMU modules

2017-01-05 Thread tip-bot for David Carrillo-Cisneros
Commit-ID: 74545f63890e38520eb4d1dbedcadaa9c0dbc824 Gitweb: http://git.kernel.org/tip/74545f63890e38520eb4d1dbedcadaa9c0dbc824 Author: David Carrillo-Cisneros AuthorDate: Thu, 22 Dec 2016 17:17:40 -0800 Committer: Ingo Molnar CommitDate: Thu, 5 Jan 2017 09:13:55 +0100 perf/x86: Set pmu

Re: x86: warning in unwind_get_return_address

2017-01-05 Thread Dmitry Vyukov
On Thu, Jan 5, 2017 at 3:49 PM, Josh Poimboeuf wrote: > On Tue, Dec 27, 2016 at 05:38:59PM +0100, Dmitry Vyukov wrote: >> On Thu, Dec 22, 2016 at 6:17 AM, Josh Poimboeuf wrote: >> > On Wed, Dec 21, 2016 at 01:46:36PM +0100, Andrey Konovalov wrote: >> >> On Wed, Dec 21, 2016 at 12:36 AM, Josh Poim

Re: stack unwinder warning.

2017-01-05 Thread Josh Poimboeuf
On Tue, Dec 27, 2016 at 02:00:30PM -0500, Dave Jones wrote: > I'm not sure what to make of this. Josh ? (4.10-rc1) > > WARNING: kernel stack frame pointer at c93e7858 in trinity-c6:29122 > has bad value 82103a80 > unwind stack type:0 next_sp: (null) mask:2 graph_idx:0 >

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-05 Thread Lorenzo Pieralisi
On Thu, Jan 05, 2017 at 08:45:37PM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2017/1/5 3:18, Lorenzo Pieralisi wrote: > >On Mon, Jan 02, 2017 at 09:31:36PM +0800, Hanjun Guo wrote: > >>For devices connecting to ITS, it needs dev id to identify > >>itself, and this dev id is represented in the I

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Arjan van de Ven
On 1/5/2017 12:11 AM, Ingo Molnar wrote: * Thomas Garnier wrote: Each processor holds a GDT in its per-cpu structure. The sgdt instruction gives the base address of the current GDT. This address can be used to bypass KASLR memory randomization. With another bug, an attacker could target other

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-05 Thread Khalid Aziz
On 01/05/2017 02:37 AM, Jerome Marchand wrote: On 01/04/2017 11:46 PM, Khalid Aziz wrote: ADI is a new feature supported on sparc M7 and newer processors to allow hardware to catch rogue accesses to memory. ADI is supported for data fetches only and not instruction fetches. An app can enable ADI

[tip:x86/irq] x86/irq, trace: Add __irq_entry annotation to x86's platform IRQ handlers

2017-01-05 Thread tip-bot for Daniel Bristot de Oliveira
Commit-ID: c4158ff536439619fa342810cc575ae2c809f03f Gitweb: http://git.kernel.org/tip/c4158ff536439619fa342810cc575ae2c809f03f Author: Daniel Bristot de Oliveira AuthorDate: Wed, 4 Jan 2017 12:20:33 +0100 Committer: Ingo Molnar CommitDate: Thu, 5 Jan 2017 08:58:49 +0100 x86/irq, trace:

Re: linux-next: failure fetching the sunxi tree

2017-01-05 Thread Maxime Ripard
Hi Stephen, On Wed, Jan 04, 2017 at 09:31:24AM +1100, Stephen Rothwell wrote: > Hi Maxime, > > On Wed, 21 Dec 2016 09:24:13 +1100 Stephen Rothwell > wrote: > > > > Trying to fetch the sunxi tree > > (git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git#sunxi/for-next), > > produces t

Re: x86: warning in unwind_get_return_address

2017-01-05 Thread Josh Poimboeuf
On Thu, Jan 05, 2017 at 03:59:52PM +0100, Dmitry Vyukov wrote: > On Thu, Jan 5, 2017 at 3:49 PM, Josh Poimboeuf wrote: > > On Tue, Dec 27, 2016 at 05:38:59PM +0100, Dmitry Vyukov wrote: > >> On Thu, Dec 22, 2016 at 6:17 AM, Josh Poimboeuf > >> wrote: > >> > On Wed, Dec 21, 2016 at 01:46:36PM +01

Re: [PATCH v2] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-01-05 Thread Waiman Long
On 01/05/2017 03:16 AM, Pan Xinhui wrote: > > > 在 2017/1/4 17:41, Peter Zijlstra 写道: >> On Tue, Jan 03, 2017 at 05:07:54PM -0500, Waiman Long wrote: >>> On 01/03/2017 11:18 AM, Peter Zijlstra wrote: On Sun, Dec 25, 2016 at 03:26:01PM -0500, Waiman Long wrote: > A number of cmpxchg calls in

Re: [PATCH v2,7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2017-01-05 Thread Marc Zyngier
On 05/01/17 08:10, Minghuan Lian wrote: > LS1046a includes 4 MSIRs, each MSIR is assigned a dedicate GIC > SPI interrupt and provides 32 MSI interrupts. Compared to previous > MSI, LS1046a's IBS(interrupt bit select) shift is changed to 2 and > total MSI interrupt number is changed to 128. > > The

Re: [PATCH 4/7] mm, vmscan: show LRU name in mm_vmscan_lru_isolate tracepoint

2017-01-05 Thread Michal Hocko
On Thu 05-01-17 14:56:23, Mel Gorman wrote: > On Thu, Jan 05, 2017 at 11:16:13AM +0100, Michal Hocko wrote: > > > > diff --git a/include/trace/events/vmscan.h > > > > b/include/trace/events/vmscan.h > > > > index 36c999f806bf..7ec59e0432c4 100644 > > > > --- a/include/trace/events/vmscan.h > > > >

Re: [PATCH v2 2/2] [media] v4l: Add 10/16-bits per channel YUV pixel formats

2017-01-05 Thread ayaka
On 01/05/2017 06:30 PM, Sakari Ailus wrote: Hi Randy, Thanks for the update. On Thu, Jan 05, 2017 at 12:29:11AM +0800, Randy Li wrote: The formats added by this patch are: V4L2_PIX_FMT_P010 V4L2_PIX_FMT_P010M V4L2_PIX_FMT_P016 V4L2_PIX_FMT_P016M Currently, non

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2017-01-05 Thread Linus Walleij
On Wed, Jan 4, 2017 at 2:56 PM, Mark Rutland wrote: > I've just reproduced this locally on my dragonboard APQ8060. Sweet! > It looks like the write_wb_reg() call that's exploding is from > get_max_wp_len(), which we call immediately after registering the > dbg_reset_online callback. Clearing DB

Re: [PATCH v5 0/6] inherit dma configuration from parent dev

2017-01-05 Thread Roger Quadros
Hi, On 17/11/16 13:43, Sriram Dash wrote: > For xhci-hcd platform device, all the DMA parameters are not > configured properly, notably dma ops for dwc3 devices. > > The idea here is that you pass in the parent of_node along > with the child device pointer, so it would behave exactly > like the p

[tip:x86/urgent] x86/platform/intel-mid: Rename 'spidev' to 'mrfld_spidev'

2017-01-05 Thread tip-bot for Andy Shevchenko
Commit-ID: 159d3726db12b3476bc59ea0ab0a702103d466b5 Gitweb: http://git.kernel.org/tip/159d3726db12b3476bc59ea0ab0a702103d466b5 Author: Andy Shevchenko AuthorDate: Mon, 2 Jan 2017 11:24:50 +0200 Committer: Ingo Molnar CommitDate: Thu, 5 Jan 2017 09:03:29 +0100 x86/platform/intel-mid: Re

[tip:x86/urgent] x86/cpu: Fix typo in the comment for Anniedale

2017-01-05 Thread tip-bot for Andy Shevchenko
Commit-ID: 754c73cf4d2463022b2c9ae208026bf22564ed06 Gitweb: http://git.kernel.org/tip/754c73cf4d2463022b2c9ae208026bf22564ed06 Author: Andy Shevchenko AuthorDate: Mon, 2 Jan 2017 11:22:29 +0200 Committer: Ingo Molnar CommitDate: Thu, 5 Jan 2017 09:03:29 +0100 x86/cpu: Fix typo in the c

[PATCH 1/3] cpuidle/menu: stop seeking deeper idle if current state is too deep

2017-01-05 Thread Alex Shi
The obsolete commit 71abbbf85 want to introduce a dynamic cstates, but it was removed for long time. Just left the nonsense deeper cstate checking. Since all target_residency and exit_latency are going longer in deeper idle state, no needs to waste some cpu cycle on useless seeking. Signed-off-by

[PATCH 2/3] cpu: expose pm_qos_resume_latency for each cpu

2017-01-05 Thread Alex Shi
The cpu-dma PM QoS constraint impacts all the cpus in the system. There is no way to let the user to choose a PM QoS constraint per cpu. The following patch exposes to the userspace a per cpu based sysfs file in order to let the userspace to change the value of the PM QoS latency constraint. This

[PATCH 3/3] cpuidle/menu: add per cpu pm_qos_resume_latency consideration

2017-01-05 Thread Alex Shi
Kernel or user may have special requirement on cpu response time, like if a interrupt is pinned to a cpu, we don't want the cpu goes too deep sleep. This patch can prevent this thing happen by consider per cpu resume_latency setting in cpu sleep state selection in menu governor. The pm_qos_resume_

[PATCH 0/2] fix deadlock caused by recursive cluster locking

2017-01-05 Thread Eric Ren
This is a formal patch set to solve the deadlock issue on which I previously started a RFC (draft patch), and the discussion happened here: [https://oss.oracle.com/pipermail/ocfs2-devel/2016-October/012455.html] Compared to the previous draft patch, this one is much simple and neat. It neither me

Re: [PATCH] [linux-next] bus:qcom : Fix typo in qcom,ebi2.txt

2017-01-05 Thread Linus Walleij
n Thu, Jan 5, 2017 at 3:43 PM, Masanari Iida wrote: > This patch fix 2 spelling typos found in qcom,ebi2.txt > > Signed-off-by: Masanari Iida Reviewed-by: Linus Walleij Rob can you apply this fix to the devicetree git tree? Yours, Linus Walleij

Re: [PATCH perf/core 3/3] perf-probe: Fix to probe on gcc generated functions in modules

2017-01-05 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 05, 2017 at 08:20:19PM +0900, Masami Hiramatsu escreveu: > On Wed, 4 Jan 2017 11:48:56 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Wed, Jan 04, 2017 at 12:31:39PM +0900, Masami Hiramatsu escreveu: > > > Fix to probe on gcc generated functions on modules. Since > > > probing on a

[PATCH 1/2] ocfs2/dlmglue: prepare tracking logic to avoid recursive cluster lock

2017-01-05 Thread Eric Ren
We are in the situation that we have to avoid recursive cluster locking, but there is no way to check if a cluster lock has been taken by a precess already. Mostly, we can avoid recursive locking by writing code carefully. However, we found that it's very hard to handle the routines that are invok

Re: [PATCH v2,9/9] irqchip/ls-scfg-msi: add MSI affinity support

2017-01-05 Thread Marc Zyngier
On 05/01/17 08:10, Minghuan Lian wrote: > For LS1046a and LS1043a v1.1, the MSI controller has 4 MSIRs and 4 > CPUs. A GIC SPI interrupt of MSIR can be associated with a CPU. > When changing MSI interrupt affinity, this MSI will be moved to the > corresponding MSIR and MSI message data will be chan

Re: [PATCH v2 9/9] ARM: sunxi: Convert pinctrl nodes to generic bindings

2017-01-05 Thread Maxime Ripard
On Wed, Jan 04, 2017 at 02:16:23AM +, André Przywara wrote: > So can I ask that we start taking this seriously and stop doing things > which prevent Allwinner boards from being supported properly? > Which would first involve dropping this very patch? The driver still supports the old binding.

Re: [PATCH v2] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-01-05 Thread Waiman Long
On 01/04/2017 04:41 AM, Peter Zijlstra wrote: > On Tue, Jan 03, 2017 at 05:07:54PM -0500, Waiman Long wrote: >> On 01/03/2017 11:18 AM, Peter Zijlstra wrote: >>> On Sun, Dec 25, 2016 at 03:26:01PM -0500, Waiman Long wrote: A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more

Re: [PATCH v2 2/2] nsfs: Add an ioctl() to return owner UID of a userns

2017-01-05 Thread Michael Kerrisk (man-pages)
Hello Andrei, On 24 December 2016 at 14:16, Andrei Vagin wrote: > On Fri, Dec 23, 2016 at 10:54:53AM +0100, Michael Kerrisk (man-pages) wrote: >> I'd like to write code that discovers the user namespace hierarchy on >> a running system, and also shows who owns the various user namespaces. >> Curr

VT switch broken with docking station DP

2017-01-05 Thread Takashi Iwai
Hi, recently I noticed that VT console doesn't work any longer when I dock a Dell E7270 laptop with a DP monitor. The bug detail is like this: At first, I boot the laptop without dock. I can switch between X and VT via ctrl-alt-F1, so far. Then I dock it to a docking station connected with a D

Re: [PATCH v2] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-01-05 Thread Boqun Feng
On Thu, Jan 05, 2017 at 10:17:46AM -0500, Waiman Long wrote: > On 01/05/2017 03:16 AM, Pan Xinhui wrote: > > > > > > 在 2017/1/4 17:41, Peter Zijlstra 写道: > >> On Tue, Jan 03, 2017 at 05:07:54PM -0500, Waiman Long wrote: > >>> On 01/03/2017 11:18 AM, Peter Zijlstra wrote: > On Sun, Dec 25, 2016

Re: [PATCH 4.4 00/60] 4.4.40-stable review

2017-01-05 Thread Guillaume Nault
On Wed, Jan 04, 2017 at 09:46:45PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.40 release. > There are 60 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.

Re: [PATCH 1/3] cpuidle/menu: stop seeking deeper idle if current state is too deep

2017-01-05 Thread Rik van Riel
On Thu, 2017-01-05 at 23:29 +0800, Alex Shi wrote: > The obsolete commit 71abbbf85 want to introduce a dynamic cstates, > but it was removed for long time. Just left the nonsense deeper > cstate > checking. > > Since all target_residency and exit_latency are going longer in > deeper > idle state,

Re: [PATCH 0/3] per cpu resume latency

2017-01-05 Thread Alex Shi
Sorry for missing the mailing list. Add linux-kernel and linux-pm. On 01/05/2017 11:29 PM, Alex Shi wrote: > cpu_dma_latency is designed to keep all cpu awake from deep c-state. > That is good keep system with short response latency. But sometime we > don't need all cpu power especially in a mor

[PATCH] serial/8250: remove comment about schedule_timeout

2017-01-05 Thread Thadeu Lima de Souza Cascardo
Ted T'so has added the function size_fifo in 1999 for the 2.3 series [1], a long time ago. During the 2.5 cycle, Russell King has restructured the serial drivers and, in that process, has suggested using schedule_timeout instead of mdelay in size_fifo. [2] It was only at 2.6.7 that Greg Kroah-Har

Re: [patch] mm, thp: add new background defrag option

2017-01-05 Thread Michal Hocko
On Thu 05-01-17 14:58:47, Vlastimil Babka wrote: [...] > I'm not a fan of either name, so I've tried to implement my own > suggestion. Turns out it was easier than expected, as there's no kernel > boot option for "defer", just for "enabled", so that particular worry > was unfounded. > > And person

Re: [tip:perf/urgent] perf/x86: Set pmu->module in Intel PMU modules

2017-01-05 Thread Peter Zijlstra
On Thu, Jan 05, 2017 at 07:07:05AM -0800, tip-bot for David Carrillo-Cisneros wrote: > --- a/arch/x86/events/intel/cstate.c > +++ b/arch/x86/events/intel/cstate.c > @@ -434,6 +434,7 @@ static struct pmu cstate_core_pmu = { > .stop = cstate_pmu_event_stop, > .read =

[PATCH] pinctrl: core: Fix panic when pinctrl devices with hogs are unregistered

2017-01-05 Thread Jon Hunter
Commit df61b366af26 ('pinctrl: core: Use delayed work for hogs') deferred part of the registration for pinctrl devices if the pinctrl device has hogs. This introduced a window where if the pinctrl device with hogs was sucessfully registered, but then unregistered again (which could be caused by par

Re: [PATCHv14 2/3] usb: USB Type-C connector class

2017-01-05 Thread Mika Westerberg
On Thu, Jan 05, 2017 at 02:01:18PM +0300, Heikki Krogerus wrote: > The purpose of USB Type-C connector class is to provide > unified interface for the user space to get the status and > basic information about USB Type-C connectors on a system, > control over data role swapping, and when the port s

[PATCH 2/2] ocfs2: fix deadlocks when taking inode lock at vfs entry points

2017-01-05 Thread Eric Ren
Commit 743b5f1434f5 ("ocfs2: take inode lock in ocfs2_iop_set/get_acl()") results in a deadlock, as the author "Tariq Saeed" realized shortly after the patch was merged. The discussion happened here (https://oss.oracle.com/pipermail/ocfs2-devel/2015-September/011085.html). The reason why taking cl

Re: [PATCH 1/3] cpuidle/menu: stop seeking deeper idle if current state is too deep

2017-01-05 Thread Arjan van de Ven
On 1/5/2017 7:43 AM, Rik van Riel wrote: On Thu, 2017-01-05 at 23:29 +0800, Alex Shi wrote: The obsolete commit 71abbbf85 want to introduce a dynamic cstates, but it was removed for long time. Just left the nonsense deeper cstate checking. Since all target_residency and exit_latency are going l

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2017-01-05 Thread Mark Rutland
On Wed, Jan 04, 2017 at 02:32:06PM +, Will Deacon wrote: > On Wed, Jan 04, 2017 at 01:56:44PM +, Mark Rutland wrote: > > On Tue, Jan 03, 2017 at 09:33:36AM +, Mark Rutland wrote: > > > On Mon, Jan 02, 2017 at 09:15:29PM +0100, Linus Walleij wrote: > > > > On Mon, Jan 2, 2017 at 4:00 PM,

Re: VT switch broken with docking station DP

2017-01-05 Thread Ville Syrjälä
On Thu, Jan 05, 2017 at 04:37:27PM +0100, Takashi Iwai wrote: > Hi, > > recently I noticed that VT console doesn't work any longer when I dock > a Dell E7270 laptop with a DP monitor. The bug detail is like this: > > At first, I boot the laptop without dock. I can switch between X and > VT via

Re: [PATCH] KVM: eventfd: fix NULL deref irqbypass consumer

2017-01-05 Thread Alex Williamson
On Thu, 5 Jan 2017 11:24:08 +0100 Paolo Bonzini wrote: > On 05/01/2017 10:05, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Reported syzkaller: > > > > BUG: unable to handle kernel NULL pointer dereference at > > 0008 > > IP: irq_bypass_unregister_consumer+0x9d/0xb70 [irq

Re: [RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-05 Thread Waiman Long
On 01/05/2017 04:44 AM, Peter Zijlstra wrote: > On Wed, Jan 04, 2017 at 10:25:14AM -0500, Waiman Long wrote: >> On 01/04/2017 07:49 AM, Peter Zijlstra wrote: >>> On Tue, Jan 03, 2017 at 01:00:23PM -0500, Waiman Long wrote: This patchset introduces a new variant of queued spinlocks - the r

RE: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-05 Thread Fuchs, Andreas
Great to see this coming along so well. Thanks a lot to Jarkko ! I just wanted to point out a few things I deem important at this point: - Number of virtual handles: >From what I see there are currently 14 slots for virtual objects in the RFC >(if I'm mistaking, please correct me). I'd advice to

[PATCH 0/2] media: rc: add support for IR receiver on MT7623 SoC

2017-01-05 Thread sean.wang
From: Sean Wang This patchset introduces Consumer IR (CIR) support for MT7623 SoC or other similar SoC and implements raw mode for more compatibility with different protocols. The driver simply reports the duration of pulses and spaces to rc core logic to decode. Sean Wang (2): Documentation

[PATCH 1/2] Documentation: devicetree: Add document bindings for mtk-cir

2017-01-05 Thread sean.wang
From: Sean Wang This patch adds documentation for devicetree bindings for Mediatek IR controller. Signed-off-by: Sean Wang --- .../devicetree/bindings/media/mtk-cir.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 linux-4.8.rc1_p0/Documentation/de

Re: [PATCH 2/7] PM / devfreq: exynos-ppmu: Use the regmap interface to handle the registers

2017-01-05 Thread Tobias Jakobi
Hello Chanwoo, sorry for the late reply. I was staying with my parents over the Christmas days and didn't have access to the board. Also internet connectivity was a bit troublesome *rolleyes* Chanwoo Choi wrote: > 2016-12-20 22:47 GMT+09:00 Tobias Jakobi : >> Hey Chanwoo, >> >> >> Chanwoo Choi

Re: [PATCH] drm: nouveau: fix build when LEDS_CLASS=m

2017-01-05 Thread Randy Dunlap
On 01/05/17 00:01, Daniel Vetter wrote: > On Wed, Jan 04, 2017 at 02:24:51PM -0800, Randy Dunlap wrote: >> On 01/04/17 11:29, Jani Nikula wrote: >>> On Wed, 04 Jan 2017, Daniel Vetter wrote: On Sun, Jan 01, 2017 at 04:20:53PM -0800, Randy Dunlap wrote: > From: Randy Dunlap > > Fi

[PATCH 2/2] media: rc: add driver for IR remote receiver on MT7623 SoC

2017-01-05 Thread sean.wang
From: Sean Wang This patch adds driver for IR controller on Mediatek MT7623 SoC. Currently testing successfully on NEC and SONY remote controller only but it should work on others (lirc, rc-5 and rc-6). Signed-off-by: Sean Wang --- drivers/media/rc/Kconfig | 10 ++ drivers/media/rc/Makefile

Re: [RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-05 Thread Peter Zijlstra
On Thu, Jan 05, 2017 at 10:55:55AM -0500, Waiman Long wrote: > What I am saying that we don't need to change spinlock to rtmutex in a > -RT kernel. Instead, we can use rtqspinlock for this purpose. All the > sleeping locks will still be converted to rtmutex. No-no-no.. > Conversion of rtmutex doe

Re: [GIT PULL] Immutable branch between MFD and MTD due for the v4.11 merge window

2017-01-05 Thread Mika Westerberg
On Tue, Jan 03, 2017 at 05:37:50PM +, Lee Jones wrote: > MTD Maintainers, > > Enjoy! > > The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: > > Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/

Re: [PATCH] n900 device tree: cleanup

2017-01-05 Thread Tony Lindgren
* Pali Rohár [161214 04:28]: > On Wednesday 07 December 2016 04:10:48 Sebastian Reichel wrote: > > Hi Tony, > > > > It looks like this fell through the cracks. Apart from inconsistent > > patch subject: > > > > Reviewed-By: Sebastian Reichel > > Fine for me too. Reviewed-By: Pali Rohár Fixin

Re: [PATCH] pinctrl: core: Fix panic when pinctrl devices with hogs are unregistered

2017-01-05 Thread Linus Walleij
On Thu, Jan 5, 2017 at 4:52 PM, Jon Hunter wrote: > Commit df61b366af26 ('pinctrl: core: Use delayed work for hogs') > deferred part of the registration for pinctrl devices if the pinctrl > device has hogs. This introduced a window where if the pinctrl device > with hogs was sucessfully registere

Re: [PATCH] kernel/watchdog.c: Do not hardcode CPU 0 as the initial thread

2017-01-05 Thread Don Zickus
(cc'ing Andrew) On Tue, Jan 03, 2017 at 04:19:50PM -0500, Prarit Bhargava wrote: > > > On 12/01/2016 03:06 PM, Don Zickus wrote: > > On Tue, Nov 29, 2016 at 08:15:21AM -0500, Prarit Bhargava wrote: > >> When CONFIG_BOOTPARAM_HOTPLUG_CPU0 is enabled, the socket containing the > >> boot cpu can be

[GIT PULL] pin control fixes for v4.10

2017-01-05 Thread Linus Walleij
Hi Linus, three small pin control fixes for the v4.10 series. Very little to say about them, just driver fixes. Please pull them in! Yours, Linus Walleij The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) are available in

[PATCH v1 1/1] x86/platform/intel-mid: Enable GPIO keys on Merrifield

2017-01-05 Thread Andy Shevchenko
The Merrifield firmware provides 3 descriptions of buttons connected to GPIO. Append them to the list of supported GPIO keys. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/platform/i

Re: [PATCH] NFS: switch back to ->iterate()

2017-01-05 Thread Benjamin Coddington
On 15 Dec 2016, at 17:40, Trond Myklebust wrote: On Dec 9, 2016, at 08:41, Benjamin Coddington wrote: @@ -519,13 +508,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry) filename.hash = full_name_hash(parent, filename.name, filename.len); dentry = d_lo

Re: [PATCH v7 05/12] mux: support simplified bindings for single-user gpio mux

2017-01-05 Thread Peter Rosin
On 2017-01-04 13:16, Peter Rosin wrote: > Signed-off-by: Peter Rosin > --- > drivers/mux/mux-core.c | 81 > -- > drivers/mux/mux-gpio.c | 56 ++ > include/linux/mux.h| 7 + > 3 files changed, 89 insertions(+

Re: VT switch broken with docking station DP

2017-01-05 Thread Takashi Iwai
On Thu, 05 Jan 2017 16:59:31 +0100, Ville Syrjälä wrote: > > On Thu, Jan 05, 2017 at 04:37:27PM +0100, Takashi Iwai wrote: > > Hi, > > > > recently I noticed that VT console doesn't work any longer when I dock > > a Dell E7270 laptop with a DP monitor. The bug detail is like this: > > > > At fi

Re: [PATCH v4 2/5] mfd: lm3533: Support initialization from Device Tree

2017-01-05 Thread Bjorn Andersson
On Wed 04 Jan 23:49 PST 2017, Lee Jones wrote: > On Wed, 04 Jan 2017, Bjorn Andersson wrote: > > > On Wed 04 Jan 03:54 PST 2017, Lee Jones wrote: > > > > > On Mon, 26 Dec 2016, Bjorn Andersson wrote: > > > > > > > From: Bjorn Andersson > > > > > > > > Implement support for initialization of t

Re: [PATCH v4 2/2] dt-bindings: Add DT bindings info for FlexRM ring manager

2017-01-05 Thread Rob Herring
On Thu, Jan 5, 2017 at 5:07 AM, Anup Patel wrote: > This patch adds device tree bindings document for the FlexRM > ring manager found on Broadcom iProc SoCs. > > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > Signed-off-by: Anup Patel > --- > .../bindings/mailbox/brcm,iproc-flexrm-mbox.tx

Re: [net-next PATCH v2 5/6] i40e: Add TX and RX support in switchdev mode.

2017-01-05 Thread Jakub Kicinski
On Thu, Jan 5, 2017 at 12:08 PM, Or Gerlitz wrote: > On Tue, Jan 3, 2017 at 8:07 PM, Sridhar Samudrala > wrote: >> A host based switching entity like a linux bridge or OVS redirects these >> frames >> to the right VFs via VFPR netdevs. Any frames sent via VFPR netdevs are sent >> as >> directed

Re: [PATCH 3/3] mfd: cros_ec: Add ACPI GPE handler for LID0 devices

2017-01-05 Thread Thierry Escande
On 05/01/2017 15:43, Lee Jones wrote: Rafael, On Thu, 05 Jan 2017, Thierry Escande wrote: Hi Lee, On 05/01/2017 08:54, Lee Jones wrote: On Wed, 04 Jan 2017, Thierry Escande wrote: Hi Lee, On 04/01/2017 10:06, Lee Jones wrote: On Fri, 16 Dec 2016, Thierry Escande wrote: From: Archana Pa

Re: [PATCH v4 2/3] dmaeninge: xilinx_dma: Fix bug in multiple frame stores scenario in vdma

2017-01-05 Thread Rob Herring
On Wed, Jan 4, 2017 at 11:00 AM, Appana Durga Kedareswara Rao wrote: > Hi Rob, > > Thanks for the review > >> On Wed, Jan 04, 2017 at 07:05:53PM +0530, Kedareswara rao Appana wrote: >> > When VDMA is configured for more than one frame in the h/w for example >> > h/w is configured for n

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Thomas Garnier
On Thu, Jan 5, 2017 at 12:11 AM, Ingo Molnar wrote: > > * Thomas Garnier wrote: > >> Each processor holds a GDT in its per-cpu structure. The sgdt >> instruction gives the base address of the current GDT. This address can >> be used to bypass KASLR memory randomization. With another bug, an >> at

Re: [PATCHv14 2/3] usb: USB Type-C connector class

2017-01-05 Thread Greg KH
On Thu, Jan 05, 2017 at 05:54:02PM +0200, Mika Westerberg wrote: > > + > > + ret = device_register(&alt->dev); > > + if (ret) { > > + int i; > > + > > + dev_err(parent, "failed to register alternate mode (%d)\n", > > + ret); > > + > > + put_device

<    1   2   3   4   5   6   7   8   9   >