[PATCH v2] perf sched timehist: Improve error message when analyzing wrong file

2016-11-29 Thread David Ahern
Arnaldo reported an unhelpful error message when running perf sched timehist on a file that did not contain sched tracepoints: [root@jouet ~]# perf sched timehist No trace sample to read. Did you call 'perf record -R'? [root@jouet ~]# perf evlist -v cycles:ppp: size: 112, { sample

Re: [PATCH] perf/x86: fix event counter update issue

2016-11-29 Thread Stephane Eranian
On Tue, Nov 29, 2016 at 12:33 PM, Liang, Kan wrote: > > >> On Tue, Nov 29, 2016 at 07:07:25PM +, Liang, Kan wrote: >> > > diff --git a/arch/x86/events/intel/core.c >> > > b/arch/x86/events/intel/core.c index a74a2dbc0180..cb8522290e6a >> > > 100644 >> > > --- a/arch/x86/events/intel/core.c >>

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-11-29 Thread Linus Torvalds
On Tue, Nov 29, 2016 at 11:57 AM, Ben Hutchings wrote: > > If the modversion is missing then the fallback should be to a full > vermagic match, i.e. including the release string. Something like > this (untested): This really seems way too complicated for this situation. And it's wrong too. The

RE: [PATCH] perf/x86: fix event counter update issue

2016-11-29 Thread Liang, Kan
> On Tue, Nov 29, 2016 at 07:07:25PM +, Liang, Kan wrote: > > > diff --git a/arch/x86/events/intel/core.c > > > b/arch/x86/events/intel/core.c index a74a2dbc0180..cb8522290e6a > > > 100644 > > > --- a/arch/x86/events/intel/core.c > > > +++ b/arch/x86/events/intel/core.c > > > @@ -4034,7 +4034

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-29 Thread Paul E. McKenney
On Tue, Nov 29, 2016 at 12:07:11PM -0800, Paul E. McKenney wrote: > On Tue, Nov 29, 2016 at 08:52:04PM +0100, Peter Zijlstra wrote: > > On Tue, Nov 29, 2016 at 11:39:35AM -0800, Paul E. McKenney wrote: > > > On Tue, Nov 29, 2016 at 06:10:38PM +0100, Peter Zijlstra wrote: > > > > > > It mostly work

RE: [char-msic 2/3] mei: me: fix place for kaby point device ids.

2016-11-29 Thread Winkler, Tomas
> > On Tue, Nov 29, 2016 at 02:44:45PM +0200, Tomas Winkler wrote: > > > This is fix of the backported patch only, it places KBL DIDs on > > > correct place to easy on backporting of further DIDs. > > > > > > Fixes: 5c99f32c461c ('mei: me: add kaby point device ids') > > > Cc: #4.4 > > > Signed-

Re: 4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-11-29 Thread Meelis Roos
> On Nov 29, 2016 11:58 AM, "Eric Dumazet" wrote: > > > > nv_do_nic_poll() is simply buggy and needs a fix. > > > > synchronize_irq() can sleep. > > Yes, but why did it start showing up now? None of this has changed as far as > I can see? Found one thing that changed - compiler from 6.2.0-9 to

Re: [PATCH] perf sched timehist: Improve error message when analyzing wrong file

2016-11-29 Thread David Ahern
On 11/29/16 1:14 PM, Arnaldo Carvalho de Melo wrote: > It uses things like: > > if (kmem_page) { > struct perf_evsel *evsel; > > evsel = perf_evlist__find_tracepoint_by_name(session->evlist, > >

[PATCH] proc: mm: export PTE sizes directly in smaps (v3)

2016-11-29 Thread Dave Hansen
Andrew, you can drop proc-mm-export-pte-sizes-directly-in-smaps-v2.patch, and replace it with this. Changes from v2: * Do not assume (wrongly) that smaps_hugetlb_range() always uses PUDs. (Thanks for pointing this out, Vlastimil). Also handle hstates that are not exactly at PMD/PUD sizes

RE: [char-msic 3/3] mei: fix return value on disconnection

2016-11-29 Thread Winkler, Tomas
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, November 29, 2016 21:15 > To: Winkler, Tomas > Cc: sta...@vger.kernel.org; linux-kernel@vger.kernel.org; Usyskin, Alexander > > Subject: Re: [char-msic 3/3] mei: fix return value on disc

Re: [rcu:rcu/next 34/34] include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared

2016-11-29 Thread Paul E. McKenney
On Wed, Nov 30, 2016 at 03:23:50AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > rcu/next > head: ccc0666e2049e5818c236e647cf20c552a7b053b > commit: ccc0666e2049e5818c236e647cf20c552a7b053b [34/34] rcu: Allow boot-time > use of

RE: [char-msic 3/3] mei: fix return value on disconnection

2016-11-29 Thread Winkler, Tomas
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, November 29, 2016 21:15 > To: Winkler, Tomas > Cc: sta...@vger.kernel.org; linux-kernel@vger.kernel.org; Usyskin, Alexander > > Subject: Re: [char-msic 3/3] mei: fix return value on disc

Re: [PATCH 2/6] drm: Add TV connector states to drm_connector_state

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 10:41:58AM -0800, Eric Anholt wrote: > From: Boris Brezillon > > Some generic TV connector properties are exposed in drm_mode_config, but > they are currently handled independently in each DRM encoder driver. > > Extend the drm_connector_state to store TV related states,

Re: [PATCH] perf sched timehist: Improve error message when analyzing wrong file

2016-11-29 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 29, 2016 at 12:58:48PM -0700, David Ahern escreveu: > Arnaldo reported an unhelpful error message when running perf sched > timehist on a file that did not contain sched tracepoints: > > [root@jouet ~]# perf sched timehist > No trace sample to read. Did you call 'perf record -R

RE: [char-msic 2/3] mei: me: fix place for kaby point device ids.

2016-11-29 Thread Winkler, Tomas
> > On Tue, Nov 29, 2016 at 02:44:45PM +0200, Tomas Winkler wrote: > > This is fix of the backported patch only, it places KBL DIDs on > > correct place to easy on backporting of further DIDs. > > > > Fixes: 5c99f32c461c ('mei: me: add kaby point device ids') > > Cc: #4.4 > > Signed-off-by: Toma

[rcu:rcu/next 34/34] fs/file.c:407:6: note: in expansion of macro 'cond_resched_rcu_qs'

2016-11-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: ccc0666e2049e5818c236e647cf20c552a7b053b commit: ccc0666e2049e5818c236e647cf20c552a7b053b [34/34] rcu: Allow boot-time use of cond_resched_rcu_qs() config: i386-alldefconfig (attached as .config) compil

RE: [char-misc-next 4/4 V2] mei: bus: enable non-blocking RX

2016-11-29 Thread Winkler, Tomas
> On Mon, Nov 28, 2016 at 11:03:20PM +, Winkler, Tomas wrote: > > > > > > > > > > > > > > On Sat, Nov 19, 2016 at 02:16:11PM +0200, Tomas Winkler wrote: > > > > > From: Alexander Usyskin > > > > > > > > > > Enable non-blocking receive for drivers on mei bus, this allows > > > > > checking for

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-29 Thread Paul E. McKenney
On Tue, Nov 29, 2016 at 08:52:04PM +0100, Peter Zijlstra wrote: > On Tue, Nov 29, 2016 at 11:39:35AM -0800, Paul E. McKenney wrote: > > On Tue, Nov 29, 2016 at 06:10:38PM +0100, Peter Zijlstra wrote: > > > > It mostly works, most of the time, and that seems to be what Linus > > > wants, since its

Re: [PATCH] auxdisplay: ht16k33: select required CONFIG_FB_CFB_* helpers

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 29, 2016 at 08:55:50PM +0100, Arnd Bergmann wrote: > On Tuesday, November 29, 2016 8:42:47 PM CET Greg Kroah-Hartman wrote: > > On Fri, Nov 25, 2016 at 10:50:07AM +0100, Robin van der Gracht wrote: > > > This selects the respective helpers required in addition to the one > > > Arnd Berg

Re: [PATCH] misc: sram: remove useless #ifdef

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 29, 2016 at 08:54:00PM +0100, Alexandre Belloni wrote: > On 29/11/2016 at 20:41:54 +0100, Greg Kroah-Hartman wrote : > > On Tue, Nov 22, 2016 at 03:30:54PM +0100, Arnd Bergmann wrote: > > > A recent patch added a new function that is now unused whenever > > > CONFIG_OF is disabled: > >

Re: [PATCH 00/23] LightNVM patches for 4.10

2016-11-29 Thread Jens Axboe
On 11/28/2016 02:38 PM, Matias Bjørling wrote: Hi Jens, A bunch of patches for 4.10 have been prepared. Javier has been busy eliminating abstractions in the LightNVM interface. Mainly killing generic nvm_block and nvm_lun, which simplifies the locking mechanism within targets. He also added a c

[PATCH] iio: 104-quad-8: Add IRQ support for the ACCES 104-QUAD-8

2016-11-29 Thread William Breathitt Gray
The LSI/CSI LS7266R1 chip provides programmable output via the FLG pins. When interrupts are enabled on the ACCES 104-QUAD-8, they occur whenever FLG1 is active. Four functions are available for the FLG1 signal: /Carry, /Compare, /Carry/Borrow, and Index. /Carry: Interrupt

[PATCH] perf sched timehist: Improve error message when analyzing wrong file

2016-11-29 Thread David Ahern
Arnaldo reported an unhelpful error message when running perf sched timehist on a file that did not contain sched tracepoints: [root@jouet ~]# perf sched timehist No trace sample to read. Did you call 'perf record -R'? [root@jouet ~]# perf evlist -v cycles:ppp: size: 112, { sample

Re: 4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-11-29 Thread Eric Dumazet
On Tue, 2016-11-29 at 23:16 +0200, Meelis Roos wrote: > > On Tue, Nov 29, 2016 at 12:26 PM, Meelis Roos wrote: > > > This is 4.9-rc7 on Sun Ultra 20 (Opteron 175 on NVidia chipset PC with > > > NVidia ethernet). > > > > > > BUG: sleeping function called from invalid context at > > > kernel/irq/ma

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-11-29 Thread Ben Hutchings
On Tue, 2016-11-29 at 08:17 -0800, Linus Torvalds wrote: > > On Tue, Nov 29, 2016 at 8:03 AM, Michal Marek wrote: > > > > The original and easily observable bug is that were are not generating > > symbol checksums for the asm-exported symbols, so they default to 0. > > This can be seen e.g. in th

Re: [PATCH v2] video: imxfb: remove the macros for initializing the DMACR

2016-11-29 Thread Uwe Kleine-König
On Tue, Nov 29, 2016 at 08:50:39PM +0100, Martin Kaiser wrote: > The current definitions of DMACR_HM() and DMACR_TM() are correct only > for imx1, they're wrong for imx21. > > The macros are meant for legacy board files only, they're not applicable > for boards using device tree. > > At the momen

Re: [RFC PATCH v3 20/20] x86: Add support to make use of Secure Memory Encryption

2016-11-29 Thread Borislav Petkov
On Tue, Nov 29, 2016 at 12:48:17PM -0600, Tom Lendacky wrote: > > One more thing: just like we're adding an =on switch, we'd need an =off > > switch in case something's wrong with the SME code. IOW, if a user > > supplies "mem_encrypt=off", we do not encrypt. > > Well, we can document "off", but i

Re: [PATCH] auxdisplay: ht16k33: select required CONFIG_FB_CFB_* helpers

2016-11-29 Thread Arnd Bergmann
On Tuesday, November 29, 2016 8:42:47 PM CET Greg Kroah-Hartman wrote: > On Fri, Nov 25, 2016 at 10:50:07AM +0100, Robin van der Gracht wrote: > > This selects the respective helpers required in addition to the one > > Arnd Bergmann pointer out earlier. > > > > Signed-off-by: Robin van der Gracht

Re: [PATCH] misc: sram: remove useless #ifdef

2016-11-29 Thread Alexandre Belloni
On 29/11/2016 at 20:41:54 +0100, Greg Kroah-Hartman wrote : > On Tue, Nov 22, 2016 at 03:30:54PM +0100, Arnd Bergmann wrote: > > A recent patch added a new function that is now unused whenever > > CONFIG_OF is disabled: > > > > drivers/misc/sram.c:342:12: error: 'atmel_securam_wait' defined but no

Re: [PATCH] ACPI / APEI: Fix NMI notification handling

2016-11-29 Thread Borislav Petkov
On Tue, Nov 29, 2016 at 01:43:59PM -0500, Prarit Bhargava wrote: > When removing and adding cpu 0 on a system with GHES NMI the following stack > trace is seen when re-adding the cpu: > > WARNING: CPU: 0 PID: 0 at arch/x86/kernel/apic/apic.c:1349 setup_local_APIC+ > Modules linked in: nfsv3 rpcsec

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-29 Thread Peter Zijlstra
On Tue, Nov 29, 2016 at 11:39:35AM -0800, Paul E. McKenney wrote: > On Tue, Nov 29, 2016 at 06:10:38PM +0100, Peter Zijlstra wrote: > > It mostly works, most of the time, and that seems to be what Linus > > wants, since its really the best we can have given the constraints. But > > for debugging,

[PATCH v2] video: imxfb: remove the macros for initializing the DMACR

2016-11-29 Thread Martin Kaiser
The current definitions of DMACR_HM() and DMACR_TM() are correct only for imx1, they're wrong for imx21. The macros are meant for legacy board files only, they're not applicable for boards using device tree. At the moment, there are no boards using these macros. So it should be safe to drop them

Re: 4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-11-29 Thread Linus Torvalds
On Tue, Nov 29, 2016 at 1:16 PM, Meelis Roos wrote: > [...] >> But none of this looks new. I don't see _anything_ in any of these >> areas that has changed since 4.8. >> >> Which is why I suspect you changed something in your setup wrt >> netconsole or your kernel config? > > No changes that I cou

Re: 4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-11-29 Thread Meelis Roos
> On Tue, Nov 29, 2016 at 12:26 PM, Meelis Roos wrote: > > This is 4.9-rc7 on Sun Ultra 20 (Opteron 175 on NVidia chipset PC with > > NVidia ethernet). > > > > BUG: sleeping function called from invalid context at > > kernel/irq/manage.c:110 > > Hmm. No changes in either forcedeth or in the sync

Re: [PATCH] auxdisplay: ht16k33: select required CONFIG_FB_CFB_* helpers

2016-11-29 Thread Greg Kroah-Hartman
On Fri, Nov 25, 2016 at 10:50:07AM +0100, Robin van der Gracht wrote: > This selects the respective helpers required in addition to the one > Arnd Bergmann pointer out earlier. > > Signed-off-by: Robin van der Gracht > --- > This is a responce to https://lkml.org/lkml/2016/11/25/66 > This patch c

Re: [PATCH] misc: sram: remove useless #ifdef

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 22, 2016 at 03:30:54PM +0100, Arnd Bergmann wrote: > A recent patch added a new function that is now unused whenever > CONFIG_OF is disabled: > > drivers/misc/sram.c:342:12: error: 'atmel_securam_wait' defined but not used > [-Werror=unused-function] > > There is actually no reason f

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-29 Thread Paul E. McKenney
On Tue, Nov 29, 2016 at 06:10:38PM +0100, Peter Zijlstra wrote: > On Tue, Nov 29, 2016 at 05:29:20PM +0100, Petr Mladek wrote: > > > > > People are very busy polishing the turd we call printk, but from where > > > > I'm sitting its terminally and unfixably broken. > > > > I still hope that we cou

Re: [PATCHv4 09/10] mm/usercopy: Switch to using lm_alias

2016-11-29 Thread Kees Cook
On Tue, Nov 29, 2016 at 10:55 AM, Laura Abbott wrote: > > The usercopy checking code currently calls __va(__pa(...)) to check for > aliases on symbols. Switch to using lm_alias instead. > > Signed-off-by: Laura Abbott Acked-by: Kees Cook I should probably add a corresponding alias test to lkdt

Re: AMD Bulldozer topology regression since 4.6

2016-11-29 Thread Borislav Petkov
On Tue, Nov 29, 2016 at 08:03:15AM +0100, Brice Goglin wrote: > This causes user-space tools (at least all that rely on hwloc for > topology discovery) to think the processor has dual-threaded cores > instead of dual-core compute-unit modules. > > The cause is likely this patch, which seems to ass

Re: [PATCH v3] kvm: svm: Use the hardware provided GPA instead of page walk

2016-11-29 Thread Brijesh Singh
On 11/29/2016 12:20 PM, Thomas Gleixner wrote: On Tue, 29 Nov 2016, Brijesh Singh wrote: --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -5483,3 +5483,11 @@ void emulator_writeback_register_cache(struct x86_emulate_ctxt *ctxt) { writeback_registers(ctxt); } + +bool emul

Re: [PATCH v2 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-29 Thread Greg KH
On Tue, Nov 29, 2016 at 01:38:20AM +0300, Serge Semin wrote: > +struct idt_89hpesx_dev { > + u32 eesize; > + bool eero; > + u8 eeaddr; > + > + u8 inieecmd; > + u8 inicsrcmd; > + u8 iniccode; > + > + atomic_t csr; > + > + int (*smb_write)(struct idt_89hpesx_dev *, con

Re: [PATCH v2 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2016-11-29 Thread Greg KH
On Tue, Nov 29, 2016 at 01:38:20AM +0300, Serge Semin wrote: > See cover-letter for changelog Same here.

Re: [PATCH v2 2/2] eeprom: Add IDT 89HPESx driver bindings file

2016-11-29 Thread Greg KH
On Tue, Nov 29, 2016 at 01:38:21AM +0300, Serge Semin wrote: > See cover-letter for changelog There is no cover letter in an individual patch when it gets committed to the tree... So please fix, personally, I never read cover letters, each patch should be "obvious" on it's own :) thanks, greg k

Re: [PATCH] perf/x86: fix event counter update issue

2016-11-29 Thread Peter Zijlstra
On Tue, Nov 29, 2016 at 07:07:25PM +, Liang, Kan wrote: > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > index a74a2dbc0180..cb8522290e6a 100644 > > --- a/arch/x86/events/intel/core.c > > +++ b/arch/x86/events/intel/core.c > > @@ -4034,7 +4034,7 @@ __init int int

Re: [PATCH] pinctrl: sh-pfc: r8a7791: Add ADI pinconf support

2016-11-29 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Tuesday 29 Nov 2016 10:11:56 Jacopo Mondi wrote: > Add pin configuration support for Gyro-ADC, named ADI on r8a7791 SoC. > > The Gyro-ADC supports three different configurations: > a single ADC (adi and adi_b groups), 2 ADCs selectable through a single > ch

[tip:x86/timers 10/13] arch/x86/include/asm/tsc.h:55:1: warning: no return statement in function returning non-void

2016-11-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/timers head: 950e7481b09cd3f426a9322b0f35139224660c0d commit: ba75fb64693127c7b6e8a822c68d3480cbf56d6d [10/13] x86/tsc: Sync test only for the first cpu in a package config: i386-randconfig-i0-201648 (attached as .config) co

[PATCH v2] x86: fix kaslr and memmap collision

2016-11-29 Thread Dave Jiang
CONFIG_RANDOMIZE_BASE relocates the kernel to a random base address. However it does not take into account the memmap= parameter passed in from the kernel cmdline. This results in the kernel sometimes being put in the middle of the user memmap. Teaching kaslr to not insert the kernel in memmap defi

Re: [PATCH] scsi: megaraid-sas: fix spelling mistake of "outstanding"

2016-11-29 Thread Bart Van Assche
On 11/29/2016 11:00 AM, Colin King wrote: scmd_printk(KERN_NOTICE, scmd, "Command for which abort is" - " issued is not found in oustanding commands\n"); + " issued is not found in outstanding commands\n"); Hello Colin, Since you are

Re: [PATCH] drivers/usb: use READ_ONCE instead of deprecated ACCESS_ONCE

2016-11-29 Thread Greg KH
On Sat, Nov 19, 2016 at 11:54:25AM -0800, Davidlohr Bueso wrote: > With the new standardized functions, we can replace all ACCESS_ONCE() > calls across relevant drivers/usb/. > > ACCESS_ONCE() does not work reliably on non-scalar types. For example > gcc 4.6 and 4.7 might remove the volatile tag f

Re: [PATCH] drivers/base: use READ_ONCE instead of deprecated ACCESS_ONCE

2016-11-29 Thread Greg KH
On Sat, Nov 19, 2016 at 11:52:48AM -0800, Davidlohr Bueso wrote: > With the new standardized functions, we can replace all ACCESS_ONCE() > calls across relevant drivers/base/. > > ACCESS_ONCE() does not work reliably on non-scalar types. For example > gcc 4.6 and 4.7 might remove the volatile tag

[rcu:rcu/next 34/34] include/linux/rcupdate.h:426:6: error: 'rcu_scheduler_active' undeclared

2016-11-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: ccc0666e2049e5818c236e647cf20c552a7b053b commit: ccc0666e2049e5818c236e647cf20c552a7b053b [34/34] rcu: Allow boot-time use of cond_resched_rcu_qs() config: i386-randconfig-x008-201648 (attached as .conf

RE: [char-msic 1/3] mei: me: disable driver on SPT SPS firmware

2016-11-29 Thread Winkler, Tomas
> > On Tue, Nov 29, 2016 at 02:44:44PM +0200, Tomas Winkler wrote: > > commit 8c57cac1457f3125a5d13dc03635c0708c61bff0 upstream > > > > Sunrise Point PCH with SPS Firmware doesn't expose working MEI > > interface, we need to quirk it out. > > The SPS Firmware is identifiable only on the first PCI

Re: [PATCH v2 4/6] perf sched timehist: Add option to specify time window of interest

2016-11-29 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 29, 2016 at 11:58:03AM -0700, David Ahern escreveu: > On 11/29/16 11:56 AM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Nov 29, 2016 at 10:15:44AM -0700, David Ahern escreveu: > >> Add option to allow user to control analysis window. e.g., collect data > >> for time window and analyze a

Re: [PATCH][V2] scsi: megaraid-sas: fix spelling mistake of "outstanding"

2016-11-29 Thread Bart Van Assche
On 11/29/2016 11:13 AM, Colin King wrote: Trivial fix to spelling mistake "oustanding" to "outstanding" in dev_info and scmd_printk messages. Also join wrapped literal string in the scmd_printk. Reviewed-by: Bart Van Assche

Re: [PATCH v2, variant B] tty: nozomi: avoid sprintf buffer overflow

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 29, 2016 at 12:51:04PM +0100, Arnd Bergmann wrote: > Testing with a gcc-7 snapshot produced an internal compiler error > for this file: > > drivers/tty/nozomi.c: In function 'receive_flow_control': > drivers/tty/nozomi.c:919:12: internal compiler error: in > get_substring_ranges_for_l

Re: [PATCH 2/4] ARM64: dts: meson-gx: Add Graphic Controller nodes

2016-11-29 Thread Laurent Pinchart
Hi Neil, On Tuesday 29 Nov 2016 21:16:17 Laurent Pinchart wrote: > On Tuesday 29 Nov 2016 11:47:47 Neil Armstrong wrote: > > Add Video Processing Unit and CVBS Output nodes, and enable CVBS on > > selected boards. > > > > Signed-off-by: Neil Armstrong > > --- > > > > arch/arm64/boot/dts/amlogi

Re: [PATCH 2/4] ARM64: dts: meson-gx: Add Graphic Controller nodes

2016-11-29 Thread Laurent Pinchart
Hi Neil, Thank you for the patch. On Tuesday 29 Nov 2016 11:47:47 Neil Armstrong wrote: > Add Video Processing Unit and CVBS Output nodes, and enable CVBS on selected > boards. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 46 +++

Re: [char-msic 3/3] mei: fix return value on disconnection

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 29, 2016 at 02:44:46PM +0200, Tomas Winkler wrote: > commit 2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a upstream. > > Correct errno on client disconnection is -ENODEV not -EBUSY > > Cc: #4.4 > Signed-off-by: Tomas Winkler > Signed-off-by: Alexander Usyskin > Signed-off-by: Greg Kroah-

Re: [PATCH v2 0/6] perf: Add option to specify time window of interest

2016-11-29 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 29, 2016 at 10:15:40AM -0700, David Ahern escreveu: > This series allows users to collect data and analyze a time window of > interest within the file. > > v2 > - renamed perf_time to perf_time_interval > - changed ../perf.h to perf.h in patch 1 Thanks, applied and pushed out to acme/

Re: [PATCH v3] i2c: i2c-mux-gpio: update mux with gpiod_set_array_value_cansleep

2016-11-29 Thread Wolfram Sang
On Thu, Nov 24, 2016 at 07:19:28PM +0100, Peter Rosin wrote: > If the gpio controller supports it and the gpio lines are concentrated > to one gpio chip, the mux controller pins will get updated simultaneously. > > Signed-off-by: Peter Rosin Applied to for-next, thanks! signature.asc Descript

Re: [char-misc-next 4/4 V2] mei: bus: enable non-blocking RX

2016-11-29 Thread 'Greg Kroah-Hartman'
On Mon, Nov 28, 2016 at 11:03:20PM +, Winkler, Tomas wrote: > > > > > > > > > > On Sat, Nov 19, 2016 at 02:16:11PM +0200, Tomas Winkler wrote: > > > > From: Alexander Usyskin > > > > > > > > Enable non-blocking receive for drivers on mei bus, this allows > > > > checking for data availabilit

Re: [char-msic 2/3] mei: me: fix place for kaby point device ids.

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 29, 2016 at 02:44:45PM +0200, Tomas Winkler wrote: > This is fix of the backported patch only, it places > KBL DIDs on correct place to easy on backporting of > further DIDs. > > Fixes: 5c99f32c461c ('mei: me: add kaby point device ids') > Cc: #4.4 > Signed-off-by: Tomas Winkler > --

Re: [lkp] [mm] e7c1db75fe: BUG:sleeping_function_called_from_invalid_context_at_mm/page_alloc.c

2016-11-29 Thread Paul E. McKenney
On Tue, Nov 29, 2016 at 05:21:19PM +, Sudeep Holla wrote: > On Sun, Nov 27, 2016 at 6:16 PM, kernel test robot > wrote: > > > > FYI, we noticed the following commit: > > > > commit e7c1db75fed821a961ce1ca2b602b08e75de0cd8 ("mm: Prevent > > __alloc_pages_nodemask() RCU CPU stall warnings") > >

Re: [char-msic 1/3] mei: me: disable driver on SPT SPS firmware

2016-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 29, 2016 at 02:44:44PM +0200, Tomas Winkler wrote: > commit 8c57cac1457f3125a5d13dc03635c0708c61bff0 upstream > > Sunrise Point PCH with SPS Firmware doesn't expose working > MEI interface, we need to quirk it out. > The SPS Firmware is identifiable only on the first PCI function > of

[PATCH][V2] scsi: megaraid-sas: fix spelling mistake of "outstanding"

2016-11-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake "oustanding" to "outstanding" in dev_info and scmd_printk messages. Also join wrapped literal string in the scmd_printk. Signed-off-by: Colin Ian King --- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- drivers/scsi/megaraid/megaraid_sas

Re: [PATCHv2] mfd: cpcap: Add minimal support

2016-11-29 Thread Tony Lindgren
* Tony Lindgren [161129 08:48]: > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/motorola-cpcap.txt > @@ -0,0 +1,31 @@ > +Motorola CPCAP PMIC device tree binding > + > +Required properties: > +- compatible : One or both of "motorola,cpcap" or "ste,6556002" > +- reg

Re: 4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-11-29 Thread Linus Torvalds
On Tue, Nov 29, 2016 at 12:26 PM, Meelis Roos wrote: > This is 4.9-rc7 on Sun Ultra 20 (Opteron 175 on NVidia chipset PC with > NVidia ethernet). > > BUG: sleeping function called from invalid context at kernel/irq/manage.c:110 Hmm. No changes in either forcedeth or in the synchronize_irq() debug

RE: [PATCH] perf/x86: fix event counter update issue

2016-11-29 Thread Odzioba, Lukasz
On Tuesday, November 29, 2016 6:20 PM Stephane Eranian wrote: >> On Tue, Nov 29, 2016 at 1:25 AM, Peter Zijlstra wrote: >> How can this happen? IIRC the thing increments, we program a negative >> value, and when it passes 0 we generate a PMI. >> > Yeah, that's the part I don't quite unders

Re: [PATCH 1/1] scripts: Fixing NULL pointer dereference when pos->file is NULL

2016-11-29 Thread Frank Rowand
On 11/29/16 02:34, Maninder Singh wrote: > This patch fixes NULL pointer dereference when pos->file is NULL. > > caught with static analysis tool. > Signed-off-by: Maninder Singh > Signed-off-by: Vaneet Narang > --- > scripts/dtc/srcpos.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-

Re: [PATCH V5] i2c: mux: pca954x: Add ACPI support for pca954x

2016-11-29 Thread Wolfram Sang
On Tue, Nov 29, 2016 at 05:12:43PM +0700, Tin Huynh wrote: > This patch enables ACPI support for mux-pca954x driver. > > Signed-off-by: Tin Huynh Applied to for-next, thanks! signature.asc Description: PGP signature

RE: [PATCH] perf/x86: fix event counter update issue

2016-11-29 Thread Liang, Kan
> On Tue, Nov 29, 2016 at 09:20:10AM -0800, Stephane Eranian wrote: > > Max period is limited by the number of bits the kernel can write to an > MSR. > > Used to be 31, now it is 47 for core PMU as per patch pointed to by Kan. > > No, I think it sets it to 48 now, which is the problem. It should

[PATCH] staging: unisys: ix spelling mistake of "outstanding"

2016-11-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake "oustanding" to "outstanding". Signed-off-by: Colin Ian King --- drivers/staging/unisys/visornic/visornic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/s

Re: [PATCH 0/9] coresight: next v4.9-rc7

2016-11-29 Thread Greg KH
On Tue, Nov 29, 2016 at 09:47:10AM -0700, Mathieu Poirier wrote: > Hi Greg, > > These are the patches I'd like you to consider for inclusion in the > 4.10 cycle. They were sent earlier this month [1] but I haven't received > the usual automated acknowledgment, hence sending again. Everything >

[PATCH] scsi: megaraid-sas: fix spelling mistake of "outstanding"

2016-11-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake "oustanding" to "outstanding" in dev_info and scmd_printk messages Signed-off-by: Colin Ian King --- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- 2 files changed, 2 insertions(+), 2

[PATCHv4 07/10] kexec: Switch to __pa_symbol

2016-11-29 Thread Laura Abbott
__pa_symbol is the correct api to get the physical address of kernel symbols. Switch to it to allow for better debug checking. Signed-off-by: Laura Abbott --- Found during review of the kernel. Untested. --- kernel/kexec_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCHv4 08/10] mm/kasan: Switch to using __pa_symbol and lm_alias

2016-11-29 Thread Laura Abbott
__pa_symbol is the correct API to find the physical address of symbols. Switch to it to allow for debugging APIs to work correctly. Other functions such as p*d_populate may call __pa internally. Ensure that the address passed is in the linear region by calling lm_alias. Signed-off-by: Laura Abbott

[PATCHv4 02/10] mm/cma: Cleanup highmem check

2016-11-29 Thread Laura Abbott
6b101e2a3ce4 ("mm/CMA: fix boot regression due to physical address of high_memory") added checks to use __pa_nodebug on x86 since CONFIG_DEBUG_VIRTUAL complains about high_memory not being linearlly mapped. arm64 is now getting support for CONFIG_DEBUG_VIRTUAL as well. Rather than add an explosio

[PATCHv4 05/10] arm64: Use __pa_symbol for kernel symbols

2016-11-29 Thread Laura Abbott
__pa_symbol is technically the marco that should be used for kernel symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which will do bounds checking. As part of this, introduce lm_alias, a macro which wraps the __va(__pa(...)) idiom used a few places to get the alias. Signed-off-by: Laur

Re: [PATCH v2 4/6] perf sched timehist: Add option to specify time window of interest

2016-11-29 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 29, 2016 at 10:15:44AM -0700, David Ahern escreveu: > Add option to allow user to control analysis window. e.g., collect data > for time window and analyze a segment of interest within that window. Trying to test this I got: [root@jouet ~]# perf sched timehist No trace sample to read.

[PATCHv4 06/10] xen: Switch to using __pa_symbol

2016-11-29 Thread Laura Abbott
__pa_symbol is the correct macro to use on kernel symbols. Switch to this from __pa. Signed-off-by: Laura Abbott --- Found during a sweep of the kernel. Untested. --- drivers/xen/xenbus/xenbus_dev_backend.c | 2 +- drivers/xen/xenfs/xenstored.c | 2 +- 2 files changed, 2 insertions(+),

Re: [PATCH v2 4/6] perf sched timehist: Add option to specify time window of interest

2016-11-29 Thread David Ahern
On 11/29/16 11:56 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 29, 2016 at 10:15:44AM -0700, David Ahern escreveu: >> Add option to allow user to control analysis window. e.g., collect data >> for time window and analyze a segment of interest within that window. > Trying to test this I got: >

[PATCHv4 10/10] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-11-29 Thread Laura Abbott
x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This inclues callers using virt_to_phys on image addresses instead of __pa_symbol. As features such as CONFIG_VMAP_STAC

[PATCHv4 09/10] mm/usercopy: Switch to using lm_alias

2016-11-29 Thread Laura Abbott
The usercopy checking code currently calls __va(__pa(...)) to check for aliases on symbols. Switch to using lm_alias instead. Signed-off-by: Laura Abbott --- Found when reviewing the kernel. Tested. --- mm/usercopy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/use

[PATCHv4 03/10] arm64: Move some macros under #ifndef __ASSEMBLY__

2016-11-29 Thread Laura Abbott
Several macros for various x_to_y exist outside the bounds of an __ASSEMBLY__ guard. Move them in preparation for support for CONFIG_DEBUG_VIRTUAL. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- v4: No changes --- arch/arm64/include/asm/memory.h | 38 +++

[PATCHv4 04/10] arm64: Add cast for virt_to_pfn

2016-11-29 Thread Laura Abbott
virt_to_pfn lacks a cast at the top level. Don't rely on __virt_to_phys and explicitly cast to unsigned long. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- v4: No changes --- arch/arm64/include/asm/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [RFC PATCH v3 19/20] x86: Add support to make use of Secure Memory Encryption

2016-11-29 Thread Tom Lendacky
On 11/24/2016 6:50 AM, Borislav Petkov wrote: > On Wed, Nov 09, 2016 at 06:38:26PM -0600, Tom Lendacky wrote: >> This patch adds the support to check if SME has been enabled and if the >> mem_encrypt=on command line option is set. If both of these conditions >> are true, then the encryption mask is

[PATCHv4 00/10] CONFIG_DEBUG_VIRTUAL for arm64

2016-11-29 Thread Laura Abbott
Hi, This is v4 of the series to add CONFIG_DEBUG_VIRTUAL for arm64. This mostly expanded on __pa_symbol conversion with a few new sites found. There's also some reworking done to avoid calling __va too early. __va relies on having memstart_addr set so very early code in early_fixmap_init and earl

[PATCHv4 01/10] lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL

2016-11-29 Thread Laura Abbott
DEBUG_VIRTUAL currently depends on DEBUG_KERNEL && X86. arm64 is getting the same support. Rather than add a list of architectures, switch this to ARCH_HAS_DEBUG_VIRTUAL and let architectures select it as appropriate. Acked-by: Ingo Molnar Reviewed-by: Mark Rutland Tested-by: Mark Rutland Sugg

[GIT PULL] SCSI fixes for 4.9-rc7

2016-11-29 Thread James Bottomley
Four small fixes. The be2iscsi is a potential device overrun in consistent memory, which could have nasty consequences if the consistent allocations are packed. The hpsa one fixes a regression where older controllers can now get a numbering clash between the first internal disk and the controller

4.9-rc7: (forcedeth?) BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-11-29 Thread Meelis Roos
This is 4.9-rc7 on Sun Ultra 20 (Opteron 175 on NVidia chipset PC with NVidia ethernet). BUG: sleeping function called from invalid context at kernel/irq/manage.c:110 appears twice during bootup - once during usb init when nvidia ethernet irq(?) comes in, and orher time during amd64_edac init w

Re: [PATCH] drm/vmwgfx: Fix handling of errors returned by 'vmw_cotable_alloc()'

2016-11-29 Thread Sinclair Yeh
Good catch. Reviewed-by: Sinclair Yeh On Tue, Nov 29, 2016 at 07:49:19AM +0100, Christophe JAILLET wrote: > 'vmw_cotable_alloc()' returns an error pointer on error, not NULL. > Propagate the error code, instead of returning -ENOMEM unconditionally > > Signed-off-by: Christophe JAILLET > --- >

Re: [RFC PATCH v3 20/20] x86: Add support to make use of Secure Memory Encryption

2016-11-29 Thread Tom Lendacky
On 11/26/2016 2:47 PM, Borislav Petkov wrote: > On Wed, Nov 09, 2016 at 06:38:38PM -0600, Tom Lendacky wrote: >> This patch adds the support to check if SME has been enabled and if the >> mem_encrypt=on command line option is set. If both of these conditions >> are true, then the encryption mask is

Re: [tip:x86/core] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-11-29 Thread Tim Chen
On Tue, 2016-11-29 at 08:11 +0100, Ingo Molnar wrote: > * Tim Chen wrote: > > > > > > > > > + If unsure say Y here. > > > > > > If/when other architectures make use of this the Kconfig entry can be > > > moved into  > > > the scheduler Kconfig - but for the time being it can stay in arch/x86/

[PATCH 0/6] drm/vc4: VEC (SDTV) output support

2016-11-29 Thread Eric Anholt
Here's a series from Boris for enabling SDTV output on VC4. There are two other patches to the clk subsystem necessary to get it working, which I'm in the process of reviewing. I've tested it on composite input of a monitor I had laying around, and it's basically working. Booting with the firmwa

[PATCH 1/2] ACPI: Combine acpi_dev_resource_address_space() and acpi_dev_resource_ext_address_space()

2016-11-29 Thread Bjorn Helgaas
Previously acpi_dev_resource_address_space() and acpi_dev_resource_ext_address_space() were wrappers that called acpi_decode_space(). We need to distinguish between Word/DWord/QWord address descriptors and Extended address descriptors, which was impossible in acpi_decode_space(). Fold the acpi_de

[PATCH 0/2] ACPI: Ignore Consumer/Producer for QWord/DWord/Word Address Space

2016-11-29 Thread Bjorn Helgaas
Per spec, the Consumer/Producer bit is defined only for Extended Address Space descriptors and should be ignored for QWord/DWord/Word Address Space descriptors. My understanding is that this is because x86 BIOSes didn't use the bit consistently, so it couldn't be relied upon. The Extended descrip

[PATCH] sched/x86: Change CONFIG_SCHED_ITMT to CONFIG_SCHED_MC_PRIO

2016-11-29 Thread Tim Chen
Update CONFIG_SCHED_ITMT for Intel Turbo Boost Max Technology 3.0 to CONFIG_SCHED_MC_PRIO. This makes the configuration extensible in future to other architectures that wish to similarly establish CPU core priorities support in the scheduler. The description in Kconfig is updated to reflect this

[PATCH 6/6] ARM: bcm/dt: Enable the VEC IP on all RaspberryPi boards

2016-11-29 Thread Eric Anholt
From: Boris Brezillon Enable the VEC IP on all RaspberryPi boards. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi

[PATCH 1/6] drm/vc4: Fix ->clock_select setting for the VEC encoder

2016-11-29 Thread Eric Anholt
From: Boris Brezillon PV_CONTROL_CLK_SELECT_VEC is actually 2 and not 0. Fix the definition and rework the vc4_set_crtc_possible_masks() to cover the full range of the PV_CONTROL_CLK_SELECT field. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_crtc.c | 3

[PATCH 2/2] ACPI: Ignore Consumer/Producer for QWord/DWord/Word Address Space

2016-11-29 Thread Bjorn Helgaas
Per ACPI spec r6.0, sec 6.4.3.5.1, 2, 3, Bit [0] of General Flags (the Consumer/Producer bit) should be ignored for QWord/DWord/Word Address Space descriptors. The Consumer/Producer bit is defined only for the Extended Address Space descriptor. Ignore Consumer/Producer except for Extended Address

<    1   2   3   4   5   6   7   8   9   10   >