[PATCH 4/6] drivers/media/media-device: move debug log before _devnode_unregister()

2016-03-21 Thread Max Kellermann
After media_devnode_unregister(), the struct media_device may be freed already, and dereferencing it may crash. Signed-off-by: Max Kellermann --- drivers/media/media-device.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/media-device.c b/drivers/media/med

[PATCH 1/6] drivers/media/dvb-core/en50221: move code to dvb_ca_private_free()

2016-03-21 Thread Max Kellermann
Prepare for postponing the call until all file handles have been closed. Signed-off-by: Max Kellermann --- drivers/media/dvb-core/dvb_ca_en50221.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb-

[PATCH RESEND v2 04/14] lib/mpi: mpi_write_sgl(): fix out-of-bounds stack access

2016-03-21 Thread Nicolai Stange
Within the copying loop in mpi_write_sgl(), we have if (lzeros) { mpi_limb_t *limb1 = (void *)p - sizeof(alimb); mpi_limb_t *limb2 = (void *)p - sizeof(alimb) + lzeros; *limb1 = *limb2; ... } where p points past the end of alimb2 which lives on t

Re: [PATCH v11 7/9] arm64: Add trampoline code for kretprobes

2016-03-21 Thread David Long
On 03/13/2016 09:52 AM, Marc Zyngier wrote: On Wed, 9 Mar 2016 00:32:21 -0500 David Long wrote: David, I remember looking at that code over your shoulder whilst at Connect last week, but I clearly wasn't running on all cylinders, because there is a few gotchas here - see below. From: Willia

[PATCH 6/6] drivers/media/dvb-usb-dvb: postpone kfree(mdev)

2016-03-21 Thread Max Kellermann
Fixes use-after-free bug which occurs when I disconnect my DVB-S received while VDR is running. Signed-off-by: Max Kellermann --- drivers/media/usb/dvb-usb/dvb-usb-dvb.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb/dvb-usb-dvb.c

[PATCH 5/6] drivers/media/media-device: add "release" callback

2016-03-21 Thread Max Kellermann
Allow the client to free its data structures only after all files have been closed (fixing use-after-free bugs). Signed-off-by: Max Kellermann --- drivers/media/media-device.c |9 +++-- include/media/media-device.h |2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a

[PATCH RESEND v2 01/14] lib/mpi: mpi_write_sgl(): fix skipping of leading zero limbs

2016-03-21 Thread Nicolai Stange
Currently, if the number of leading zeros is greater than fits into a complete limb, mpi_write_sgl() skips them by iterating over them limb-wise. However, it fails to adjust its internal leading zeros tracking variable, lzeros, accordingly: it does a p -= sizeof(alimb); continue; which shoul

Re: [PATCH v11 8/9] arm64: Add kernel return probes support (kretprobes)

2016-03-21 Thread David Long
On 03/17/2016 08:58 AM, 平松雅巳 / HIRAMATU,MASAMI wrote: From: 平松雅巳 / HIRAMATU,MASAMI [mailto:masami.hiramatsu...@hitachi.com] Hi, From: Sandeepa Prabhu The pre-handler of this special 'trampoline' kprobe executes the return probe handler functions and restores original return address in ELR_EL

Re: [PATCH 2/4 v2] drm: introduce drm_connector_register_all() helper

2016-03-21 Thread Laurent Pinchart
Hi Alexey, Thank you for the patch. On Monday 21 Mar 2016 15:28:38 Alexey Brodkin wrote: > As a pair to already existing drm_connector_unregister_all() we're adding > generic implementation of what is already done in some drivers. > > Once this helper is implemented we'll be ready to switch exis

[PATCH RESEND v2 02/14] lib/mpi: mpi_write_sgl(): fix style issue with lzero decrement

2016-03-21 Thread Nicolai Stange
Within the copying loop in mpi_write_sgl(), we have if (lzeros > 0) { ... lzeros -= sizeof(alimb); } However, at this point, lzeros < sizeof(alimb) holds. Make this fact explicit by rewriting the above to if (lzeros) { ... lzeros = 0; } Signed-off-by: Nicolai Stange ---

Re: divide error: 0000 [#1] SMP in task_numa_migrate - handle_mm_fault vanilla 4.4.6

2016-03-21 Thread Greg KH
On Mon, Mar 21, 2016 at 11:52:23AM +0100, Stefan Priebe - Profihost AG wrote: > > Am 20.03.2016 um 22:41 schrieb Greg KH: > > On Sun, Mar 20, 2016 at 10:27:23PM +0100, Stefan Priebe wrote: > >> > >> Am 19.03.2016 um 23:26 schrieb Vlastimil Babka: > >>> On 03/17/2016 07:45 PM, Greg KH wrote: >

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Get rid of intel_dp_dpcd_read_wake()

2016-03-21 Thread Ville Syrjälä
On Mon, Mar 21, 2016 at 12:30:54PM +0200, Jani Nikula wrote: > On Fri, 18 Mar 2016, Ville Syrjälä wrote: > > On Fri, Mar 18, 2016 at 06:12:35PM +0200, Ville Syrjälä wrote: > >> On Fri, Mar 18, 2016 at 04:13:45PM +0200, Ville Syrjälä wrote: > >> > On Thu, Mar 17, 2016 at 11:40:45AM -0400, Lyude wro

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-21 Thread Ivaylo Dimitrov
Hi, On 21.03.2016 13:45, Mark Brown wrote: No, if the voltage is variable we can't tell what the current constraints are without something telling us so we just don't vary the voltage until we're told to do this. If we immediately lower the voltage to the minimum supported voltage that's going

Re: [PATCH 22/71] btrfs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread David Sterba
On Sun, Mar 20, 2016 at 09:40:29PM +0300, Kirill A. Shutemov wrote: > PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago > with promise that one day it will be possible to implement page cache with > bigger chunks than PAGE_SIZE. > > This promise never materialized. And unli

Re: [Xen-devel] [PATCH v2 5/6] virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()

2016-03-21 Thread Jan Beulich
>>> On 21.03.16 at 13:24, wrote: > @@ -758,9 +759,14 @@ struct smp_sync_call_struct { > static void smp_call_sync_callback(struct work_struct *work) > { > struct smp_sync_call_struct *sscs; > + unsigned int cpu = smp_processor_id(); So this obtains the vCPU number, yet ... > ss

Re: KASAN overhead?

2016-03-21 Thread Alexander Potapenko
On Sun, Mar 20, 2016 at 2:14 AM, wrote: > On Sat, 19 Mar 2016 13:13:59 +0100, Alexander Potapenko said: > >> Which GCC version were you using? Are you sure it didn't accidentally >> enable the outline instrumentation (e.g. if the compiler is too old)? > > gcc --version > gcc (GCC) 6.0.0 20160311

Re: [PATCH 6/6] drivers/media/dvb-usb-dvb: postpone kfree(mdev)

2016-03-21 Thread kbuild test robot
Hi Max, [auto build test ERROR on v4.5-rc7] [cannot apply to sailus-media/master linuxtv-media/master next-20160321] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Max-Kellermann/drivers

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-21 Thread Mark Brown
On Mon, Mar 21, 2016 at 03:39:15PM +0200, Ivaylo Dimitrov wrote: > On 21.03.2016 13:45, Mark Brown wrote: > >No, if the voltage is variable we can't tell what the current > >constraints are without something telling us so we just don't vary the > >voltage until we're told to do this. If we immedi

Re: [PATCH v5 1/6] Elf: add livepatch-specific Elf constants

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Livepatch manages its own relocation sections and symbols in order to be > able to reuse module loader code to write relocations. This removes > livepatch's dependence on separate "dynrela" sections to write relocations > and also allows livepatch to patch

Re: [PATCH v5 2/6] module: preserve Elf information for livepatch modules

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. Persist copies of the > original symbol table and string table. > > Livepatch manages its own relocation sections in order to reuse mo

Re: [PATCH v5 3/6] module: s390: keep mod_arch_specific for livepatch modules

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Livepatch needs to utilize the symbol information contained in the > mod_arch_specific struct in order to be able to call the s390 > apply_relocate_add() function to apply relocations. Keep a reference to > syminfo if the module is a livepatch module. Remov

Re: [PATCH v12 21/29] HMM: mm add helper to update page table when migrating memory back v2.

2016-03-21 Thread Aneesh Kumar K.V
Jerome Glisse writes: > [ text/plain ] > On Mon, Mar 21, 2016 at 04:57:32PM +0530, Aneesh Kumar K.V wrote: >> Jérôme Glisse writes: > > [...] > >> > + >> > +#ifdef CONFIG_HMM >> > +/* mm_hmm_migrate_back() - lock HMM CPU page table entry and allocate new >> > page. >> > + * >> > + * @mm: The mm

Re: [PATCH v2 8/9] efi/arm*: wire up struct screen_info to efi-framebuffer platform device

2016-03-21 Thread David Herrmann
Hi On Fri, Mar 18, 2016 at 5:47 PM, Ard Biesheuvel wrote: > This adds code to the ARM and arm64 EFI init routines to expose a platform > device of type 'efi-framebuffer' if struct screen_info has been populated > appropriately from the GOP protocol by the stub. Since the framebuffer may > potenti

Re: [PATCH v2 3/9] efi/x86: efifb: move DMI based quirks handling out of generic code

2016-03-21 Thread David Herrmann
Hi On Fri, Mar 18, 2016 at 5:47 PM, Ard Biesheuvel wrote: > The efifb quirks handling based on DMI identification of the platform is > specific to x86, so move it to x86 arch code. > > Signed-off-by: Ard Biesheuvel Fine with me: Acked-by: David Herrmann Thanks David > --- > arch/x86/includ

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: [...] > +struct klp_buf { > + char symname[KSYM_SYMBOL_LEN]; I think it is better to make this KSYM_NAME_LEN. KSYM_SYMBOL_LEN looks like something different and KSYM_NAME_LEN is 128 which you reference below. > + char objname[MODULE_NAME_LEN]; >

Re: [PATCH v5 6/6] Documentation: livepatch: outline Elf format and requirements for patch modules

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Document livepatch module requirements and the special Elf constants patch > modules use. > > Signed-off-by: Jessica Yu Fantastic to have it Acked-by: Miroslav Benes

Re: [PATCH 1/6] drivers/media/dvb-core/en50221: move code to dvb_ca_private_free()

2016-03-21 Thread kbuild test robot
Hi Max, [auto build test WARNING on v4.5-rc7] [also build test WARNING on next-20160321] [cannot apply to sailus-media/master linuxtv-media/master] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux

Re: [PATCH v5 5/6] samples: livepatch: mark as livepatch module

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Mark the module as a livepatch module so that the module loader can > appropriately identify and initialize it. > > Signed-off-by: Jessica Yu Reviewed-by: Miroslav Benes

[PATCH v2] fence: add missing descriptions for fence

2016-03-21 Thread Luis de Bethencourt
The members child_list and active_list were added to the fence struct without descriptions for the Documentation. Adding these. Fixes: b55b54b5db33 ("staging/android: remove struct sync_pt") Signed-off-by: Luis de Bethencourt Reviewed-by: Javier Martinez Canillas --- Hi, This second version fix

Re: [PATCH 2/3] x86/topology: Fix AMD core count

2016-03-21 Thread Borislav Petkov
On Mon, Mar 21, 2016 at 05:46:12PM +0800, Huang Rui wrote: > OK, maybe, we would better add a comment to explain here. :-) Here's a start: --- From: Borislav Petkov Date: Mon, 21 Mar 2016 14:53:05 +0100 Subject: [PATCH] x86/Documentation: Start documenting x86 topology This should contain impor

Re: [PATCH 6/6] drivers/media/dvb-usb-dvb: postpone kfree(mdev)

2016-03-21 Thread kbuild test robot
Hi Max, [auto build test WARNING on v4.5-rc7] [cannot apply to sailus-media/master linuxtv-media/master next-20160321] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Max-Kellermann/drivers

Re: [PATCH] cpuidle: menu: Fall back to polling if next timer event is near

2016-03-21 Thread Rafael J. Wysocki
On Saturday, March 19, 2016 11:54:39 PM Doug Smythies wrote: > On 2016.03.19 17:34 Rafael J. Wysocki wrote: > > > Commit a9ceb78bc75c (cpuidle,menu: use interactivity_req to disable > > polling) changed the behavior of the fallback state selection part > > of menu_select() so it looks at interacti

RE: [RESEND PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-03-21 Thread Sricharan
Hi wolfram, > On Mon, Feb 22, 2016 at 05:38:15PM +0530, Sricharan R wrote: > > QUP cores can be attached to a BAM module, which acts as a dma engine > > for the QUP core. When DMA with BAM is enabled, the BAM consumer > pipe > > transmitted data is written to the output FIFO and the BAM producer >

Re: [PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-21 Thread Giuseppe CAVALLARO
On 3/21/2016 11:45 AM, Alexandre Torgue wrote: Hi, 2016-03-18 17:00 GMT+01:00 Chen-Yu Tsai : Hi, On Fri, Mar 18, 2016 at 11:37 PM, Alexandre TORGUE wrote: Signed-off-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings

Re: [PATCH] kvm: Fix build error caused by redefinition

2016-03-21 Thread Paolo Bonzini
On 19/03/2016 05:54, Pranith Kumar wrote: > Build on 32-bit PPC fails with the following error: > > int kvm_vfio_ops_init(void) > ^ > In file included from arch/powerpc/kvm/../../../virt/kvm/vfio.c:21:0: > arch/powerpc/kvm/../../../virt/kvm/vfio.h:8:90: note: previous definition of > ‘

Re: [PATCH][v5] ACPI / PM: Introduce efi poweroff for HW-full platforms without _S5

2016-03-21 Thread Matt Fleming
On Mon, 21 Mar, at 01:43:18PM, Rafael J. Wysocki wrote: > > OK, this is fine by me. > > Matt, what do you think? If possible I'd like to see some mention in the commit message of future Intel Base-IA platforms requiring this support, so when someone asks me in the future (and I've forgotten the

Re: [PATCH 1/2] ASoC: codecs: add TA5720 digital amplifier DT bindings

2016-03-21 Thread Andreas Dannenberg
On Mon, Mar 21, 2016 at 07:45:55AM -0500, Rob Herring wrote: > > +Optional properties: > > + > > +- dvdd-supply : phandle to a 3.3-V supply for the digital circuitry > > +- pvdd-supply : phandle to a supply used for the Class-D amp and the analog > > +- interrupts-extended : reference to a GPIO pin

Re: [PATCH v5 2/6] module: preserve Elf information for livepatch modules

2016-03-21 Thread Josh Poimboeuf
On Wed, Mar 16, 2016 at 03:47:04PM -0400, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. Persist copies of the > original symbol table and string table. > > Livepatch manages its own relocation sections

Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c

2016-03-21 Thread Rafael J. Wysocki
On Monday, March 21, 2016 10:31:37 AM Stephane Gasparini wrote: > > — > Steph > > > > > > On Mar 18, 2016, at 10:44 PM, Rafael J. Wysocki wrote: > > > > On Fri, Mar 18, 2016 at 7:32 PM, Stephane Gasparini > > wrote: > >> > >> — > >> Steph > >> > >> > >> > >> > >>> On Mar 18, 2016, at 6

Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c

2016-03-21 Thread Rafael J. Wysocki
On Monday, March 21, 2016 10:28:09 AM Stephane Gasparini wrote: > > — > Steph > > > > > > On Mar 18, 2016, at 6:52 PM, Srinivas Pandruvada > > wrote: > > > > On Fri, 2016-03-18 at 17:13 +0100, Stephane Gasparini wrote: > >> Rafael, > >> > >> Why in step 3) both atom_set_pstate() and atom_s

Re: [PATCH] sched: Add preempt checks in preempt_schedule() code

2016-03-21 Thread Peter Zijlstra
On Mon, Mar 21, 2016 at 09:29:32AM -0400, Steven Rostedt wrote: > On Mon, 21 Mar 2016 10:27:46 +0100 > Peter Zijlstra wrote: > > > So no real objection to the patch except this naming. > > > > It doesn't 'check', it does preempt-latency tracing. So could we rename > > this to something like: > >

Re: [PATCH] cpufreq: powernv: Define per_cpu chip pointer to optimize hot-path

2016-03-21 Thread Rafael J. Wysocki
On Monday, March 21, 2016 12:52:55 PM Viresh Kumar wrote: > On 18-03-16, 20:28, Shilpasri G Bhat wrote: > > From: Michael Neuling > > > > "cpufreq: powernv: Remove cpu_to_chip_id() from hot-path" introduced > > If the patch is already committed, you should provide its commit id as well. > > > '

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-21 Thread Uwe Kleine-König
Hello Sebastian, On Mon, Mar 21, 2016 at 01:48:45PM +0100, Sebastian Frias wrote: > On 03/18/2016 08:12 PM, Uwe Kleine-König wrote: > > On Fri, Mar 18, 2016 at 04:56:21PM +0100, Sebastian Frias wrote: > >> On 03/18/2016 01:54 PM, Uwe Kleine-König wrote: > >>> From a driver perspecitive, it would b

Re: [Xen-devel] [PATCH v2 5/6] virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()

2016-03-21 Thread David Vrabel
On 21/03/16 13:42, Jan Beulich wrote: > > Also don't you need to call smp_processor_id() after preempt_disable()? I suggest using get_cpu()/put_cpu() here. David

[PATCH] kvm, rt: change async pagefault code locking for PREEMPT_RT

2016-03-21 Thread Paolo Bonzini
From: Rik van Riel The async pagefault wake code can run from the idle task in exception context, so everything here needs to be made non-preemptible. Conversion to a simple wait queue and raw spinlock does the trick. Signed-off-by: Rik van Riel Signed-off-by: Paolo Bonzini --- arch/x86/kern

Re: [PATCH net 09/10] net: hns: adds limitation for debug port mtu

2016-03-21 Thread Sergei Shtylyov
Hello. On 03/21/2016 02:06 PM, Yisen Zhuang wrote: From: Kejian Yan If mtu for debug port is set more than 1500, it may cause that packets are dropped by ppe. So maximum value for debug port should be 1500. Signed-off-by: Kejian Yan Signed-off-by: Yisen Zhuang [...] diff --git a/drivers/

RE: [patch 2/4] x86/perf/intel/cstate: Sanitize probing

2016-03-21 Thread Liang, Kan
> /* > * Probe the cstate events and insert the available one into sysfs attrs > - * Return false if there is no available events. > + * Return false if there are no available events. > */ > -static bool cstate_probe_msr(struct perf_cstate_msr *msr, > - struct attrib

Re: [Xen-devel] [PATCH v2 5/6] virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()

2016-03-21 Thread Juergen Gross
On 21/03/16 14:42, Jan Beulich wrote: On 21.03.16 at 13:24, wrote: >> @@ -758,9 +759,14 @@ struct smp_sync_call_struct { >> static void smp_call_sync_callback(struct work_struct *work) >> { >> struct smp_sync_call_struct *sscs; >> +unsigned int cpu = smp_processor_id(); > > So thi

Re: [PATCH 3/5] ath9k: fix buffer overrun for ar9287

2016-03-21 Thread Kalle Valo
Arnd Bergmann writes: > Code that was added back in 2.6.38 has an obvious overflow > when accessing a static array, and at the time it was added > only a code comment was put in front of it as a reminder > to have it reviewed properly. > > This has not happened, but gcc-6 now points to the specif

Re: [PATCH 4/5] ath9k: fix misleading indentation

2016-03-21 Thread Kalle Valo
Arnd Bergmann writes: > A cleanup patch in linux-3.18 moved around some code in the ath9k > driver and left some code to be indented in a misleading way, > made worse by the addition of some new code for p2p mode, as > discovered by a new gcc-6 warning: > > drivers/net/wireless/ath/ath9k/init.c:

[PATCH v6 1/3] soc: Support for EZchip SoC

2016-03-21 Thread Noam Camus
From: Noam Camus This header file is for NPS400 SoC. It includes macros for accessing memory mapped registers. These are functional registers that core can use to configure SoC. Signed-off-by: Noam Camus --- include/soc/nps/common.h | 166 ++ 1 file

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-21 Thread Mark Brown
On Sat, Mar 19, 2016 at 05:13:36PM +0100, Danny Milosavljevic wrote: > Hi Mark, > my question is whether it's possible to group together the left and right > channel into one selem, and also if it's possible to reuse volumes then. For > example: Please fix your mail client to word wrap within p

Re: [PATCH v12 22/29] HMM: mm add helper to update page table when migrating memory v3.

2016-03-21 Thread Aneesh Kumar K.V
Jérôme Glisse writes: > + > + /* Try to fail early on. */ > + if (unlikely(anon_vma_prepare(vma))) > + return -ENOMEM; > + What is this about ? > +retry: > + lru_add_drain(); > + tlb_gather_mmu(&tlb, mm, range.start, range.end); > + update_hiwater_rss(mm); > +

Re: [PATCH] pps: kc: fix non-tickless system config dependency

2016-03-21 Thread Maciej S. Szmigiero
Hi Rodolfo, On 06.03.2016 20:13, Rodolfo Giometti wrote: > On Sat, Mar 05, 2016 at 06:37:39PM +0100, Maciej S. Szmigiero wrote: >> CONFIG_NO_HZ currently only sets the default value >> of dynticks config so if PPS kernel consumer needs >> periodic timer ticks it should depend on >> !CONFIG_NO_HZ_C

Re: [PATCH v12 21/29] HMM: mm add helper to update page table when migrating memory back v2.

2016-03-21 Thread Jerome Glisse
On Mon, Mar 21, 2016 at 07:18:41PM +0530, Aneesh Kumar K.V wrote: > Jerome Glisse writes: > > [ text/plain ] > > On Mon, Mar 21, 2016 at 04:57:32PM +0530, Aneesh Kumar K.V wrote: > >> Jérôme Glisse writes: [...] > >> > +ptep = pte_offset_map_lock(mm, pmdp, addr, &ptl); > >> > +

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-21 Thread Jan Kara
On Mon 21-03-16 18:28:48, Sergey Senozhatsky wrote: > On (03/21/16 17:47), Byungchul Park wrote: > [..] > > > Is there any reason why you don't put the wake_up_process() out of the > > > critical section with my suggestion, even though it can solve the infinite > > > recuresion you worried about? >

Re: [PATCH 26/71] configfs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Christoph Hellwig
Can I don't think sending out per-subsystem patchlets for this global change is very useful. That beeing said I support getting rid of PAGE_CACHE_SIZE!

Re: [PATCH v11 01/13] vmstat: add quiet_vmstat_sync function

2016-03-21 Thread Michal Hocko
On Fri 11-03-16 17:10:11, Chris Metcalf wrote: > In commit f01f17d3705b ("mm, vmstat: make quiet_vmstat lighter") > the quiet_vmstat() function became asynchronous, in the sense that > the vmstat work was still scheduled to run on the core when the > function returned. For task isolation, we need

Re: [PATCH] sched: Add preempt checks in preempt_schedule() code

2016-03-21 Thread Steven Rostedt
On Mon, 21 Mar 2016 15:11:45 +0100 Peter Zijlstra wrote: > So the problem with preempt_enable_trace() is that we just called a > _notrace(), and while I now know these are two different trace thingies, > I might have forgotten that in a few days. > What about preempt_latency_start() for the dis

[PATCH v6 2/3] clocksource: Add NPS400 timers driver

2016-03-21 Thread Noam Camus
From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano Cc: Rob Herring Cc: Thomas Gleixner Cc: Joh

[PATCH v6 0/3] Adding NPS400 drivers

2016-03-21 Thread Noam Camus
From: Noam Camus Change Log-- v6: Files headers changed to start with: Copyright (c) 2016, Mellanox Technologies ... This is due to the acquisition of EZchip made by Mellanox. One can still find "EZchip" used in tree, and this is ok. This patch set is a requierement before I can insert new plat

RE: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-21 Thread Woojung.Huh
> -Original Message- > From: Oliver Neukum [mailto:oneu...@suse.com] > Sent: Monday, March 21, 2016 4:36 AM > To: Geert Uytterhoeven > Cc: Woojung Huh - C21699; UNGLinuxDriver; David S. Miller; Guenter Roeck; > Rafael J. Wysocki; net...@vger.kernel.org; linux-...@vger.kernel.org; > linux...

Re: [patch 2/4] x86/perf/intel/cstate: Sanitize probing

2016-03-21 Thread Peter Zijlstra
On Mon, Mar 21, 2016 at 02:19:27PM +, Liang, Kan wrote: > > - /* Probe the cstate events. */ > > - for (i = 0; i < max_event_nr; i++) { > > - if (!msr[i].test(i) || rdmsrl_safe(msr[i].msr, &val)) > > - msr[i].attr = NULL; > > - } > > I think we need to update

Re: [PATCH] sched: Add preempt checks in preempt_schedule() code

2016-03-21 Thread Peter Zijlstra
On Mon, Mar 21, 2016 at 10:35:07AM -0400, Steven Rostedt wrote: > On Mon, 21 Mar 2016 15:11:45 +0100 > Peter Zijlstra wrote: > > > So the problem with preempt_enable_trace() is that we just called a > > _notrace(), and while I now know these are two different trace thingies, > > I might have forg

Re: [PATCHv4 08/25] thp: support file pages in zap_huge_pmd()

2016-03-21 Thread Kirill A. Shutemov
On Mon, Mar 21, 2016 at 10:03:29AM +0530, Aneesh Kumar K.V wrote: > "Kirill A. Shutemov" writes: > > > [ text/plain ] > > On Fri, Mar 18, 2016 at 07:23:41PM +0530, Aneesh Kumar K.V wrote: > >> "Kirill A. Shutemov" writes: > >> > >> > [ text/plain ] > >> > split_huge_pmd() for file mappings (and

Re: [PATCH] pps: kc: fix non-tickless system config dependency

2016-03-21 Thread Rodolfo Giometti
On Mon, Mar 21, 2016 at 03:28:26PM +0100, Maciej S. Szmigiero wrote: > Hi Rodolfo, > > On 06.03.2016 20:13, Rodolfo Giometti wrote: > > On Sat, Mar 05, 2016 at 06:37:39PM +0100, Maciej S. Szmigiero wrote: > >> CONFIG_NO_HZ currently only sets the default value > >> of dynticks config so if PPS ker

[PATCH 2/3] cpufreq: Introduce cpufreq_update_current_freq()

2016-03-21 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Move the part of cpufreq_update_policy() that obtains the current frequency from the driver and updates policy->cur if necessary to a separate function, cpufreq_get_current_freq(). That should not introduce functional changes and subsequent change set will need it. Signe

[PATCH v6 3/3] irqchip: add nps Internal and external irqchips

2016-03-21 Thread Noam Camus
From: Noam Camus Adding EZchip NPS400 support. NPS internal interrupts are internally handled at Multi Thread Manager (MTM) that is signaled for deactivating an interrupt. External interrupts is handled also at Global Interrupt Controller (GIC) e.g. serial and network devices. Signed-off-by: Noa

[PATCH 0/3] cpufreq: Governor start handling unification and cpufreq_resume() cleanup

2016-03-21 Thread Rafael J. Wysocki
Hi, As per the subject, the following patches unify the handling of governor start throughout the cpufreq core and clean up the way cpufreq_resume() deals with policy->cur being out of sync with the real frequency. [1/3] introduces cpufreq_start_governor() to implement the repeating governo

Re: [Patch V2 1/4] iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit

2016-03-21 Thread Wei Yang
Hi, Thomas Glad to receive your comment. Please see my reply below. On Sun, Mar 20, 2016 at 04:42:29PM +0100, Thomas Gleixner wrote: >On Sun, 20 Mar 2016, Wei Yang wrote: > >> hdr in struct dmar_drhd_unit is used to point the DMAR hardware unit copied >> at the end of struct dmar_drhd_unit. One z

[PATCH 3/3] cpufreq: Always update current frequency before startig governor

2016-03-21 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make policy->cur match the current frequency returned by the driver's ->get() callback before starting the governor in case they went out of sync in the meantime and drop the piece of code attempting to resync policy->cur with the real frequency of the boot CPU from cpufre

Re: [PATCH] KVM: fix spin_lock_init order on x86

2016-03-21 Thread Eric Dumazet
On Mon, 2016-03-21 at 10:24 +0100, Paolo Bonzini wrote: > kvm_arch_init_vm is now using mmu_lock, causing lockdep to > complain: ... > > Reported-by: Borislav Petkov > Signed-off-by: Paolo Bonzini > --- > virt/kvm/kvm_main.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 dele

Re: [PATCH RFC 1/2] scatterlist: add mempool based chained SG alloc/free api

2016-03-21 Thread Christoph Hellwig
On Sun, Mar 20, 2016 at 11:55:17PM -0700, Ming Lin wrote: > On Wed, 2016-03-16 at 09:23 +0100, Christoph Hellwig wrote: > > >  > > We can defintively kill this one. > > We want to support different size of pools. > How can we kill this one? > > Or did you mean we just create a single pool with si

Re: [PATCH v11 3/9] arm64: add copy_to/from_user to kprobes blacklist

2016-03-21 Thread Will Deacon
On Fri, Mar 18, 2016 at 06:59:02PM +0530, Pratyush Anand wrote: > On 17/03/2016:01:27:26 PM, Pratyush Anand wrote: > > @David: This patch was added in v9 and fixup_exception() had been dropped > > in v9. > > Since, dropping of fixup_exception() also caused to fail some systemtap test > > cases, so

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-21 Thread Sebastian Reichel
Hi Mark, On Mon, Mar 21, 2016 at 01:45:15PM +, Mark Brown wrote: > On Mon, Mar 21, 2016 at 03:39:15PM +0200, Ivaylo Dimitrov wrote: > > On 21.03.2016 13:45, Mark Brown wrote: > > > >No, if the voltage is variable we can't tell what the current > > >constraints are without something telling us

Re: [PATCH] drm/rockchip: vop: Reset yrgb_mst when re-enabling

2016-03-21 Thread Tomeu Vizoso
On 19 March 2016 at 02:15, Mark yao wrote: > On 2016年03月18日 19:22, Tomeu Vizoso wrote: >> >> When the VOP is re-enabled, it will start scanning right away the >> framebuffers that were configured from the last time, even if those have >> been destroyed already. To prevent the VOP from trying to ac

[GIT PULL] UDF and quota changes for 4.6-rc1

2016-03-21 Thread Jan Kara
Hello Linus, could you please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git for_linus This pull request contains rewrite of UDF handling of filename encoding to fix remaining overflow issues from Andrew Gabbasov and quota changes to support new Q_[X]GETNEXTQUOTA q

Re: [tip:perf/urgent] perf/x86/cqm: Fix CQM handling of grouping events into a cache_group

2016-03-21 Thread Matt Fleming
On Mon, 21 Mar, at 02:51:29AM, tip-bot for Vikas Shivappa wrote: > Commit-ID: a223c1c7ab4cc64537dc4b911f760d851683768a > Gitweb: http://git.kernel.org/tip/a223c1c7ab4cc64537dc4b911f760d851683768a > Author: Vikas Shivappa > AuthorDate: Thu, 10 Mar 2016 15:32:07 -0800 > Committer: Ingo Mol

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-21 Thread Alan Stern
On Mon, 21 Mar 2016, Oliver Neukum wrote: > On Sun, 2016-03-20 at 11:43 +0100, Geert Uytterhoeven wrote: > > If CONFIG_PM=n: > > > > drivers/net/usb/lan78xx.c: In function ‘lan78xx_get_stats64’: > > drivers/net/usb/lan78xx.c:3274: error: ‘struct dev_pm_info’ has no > > member named ‘runti

Re: [lkp] [rcutorture] 5b3e3964db: torture_init_begin: refusing rcu init: spin_lock running

2016-03-21 Thread Paul E. McKenney
On Mon, Mar 21, 2016 at 02:45:07PM +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/dev > commit 5b3e3964dba5f5a3210ca931d523c1e1f3119b31 ("rcutorture: Add RCU > grace-period performance tests") >

[PATCH] rv8803: workaround i2c HW issue

2016-03-21 Thread Alexandre Belloni
The rv8803 has a 60µs window where it will not answer on the i2c bus. It also means there will be no ack for the communication. Make sure communication is tried multiple times when this happens (the i2c subsystem mandates -ENXIO is that case but the number of retries is host specific). The critical

RE: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-21 Thread Woojung.Huh
> -Original Message- > From: Guenter Roeck [mailto:li...@roeck-us.net] > Sent: Sunday, March 20, 2016 6:59 PM > To: Geert Uytterhoeven; Woojung Huh - C21699; UNGLinuxDriver; David S. > Miller > Cc: Rafael J. Wysocki; net...@vger.kernel.org; linux-...@vger.kernel.org; > linux...@vger.kernel.

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-21 Thread Sergey Senozhatsky
Hello Jan, On (03/21/16 15:32), Jan Kara wrote: [..] > > we have 2 spin locks in vprintk_emit() -- logbuf_lock and sem->lock. and N > > CPUs can concurrently lockup on those two locks, which already makes a > > single static pointer in spiun_dump() questionable. > > > > logbug_lock *theoretically

Re: [patch 0/4] x86/perf/intel/cstate: Fix cpu hotplug handling and make it modular

2016-03-21 Thread Peter Zijlstra
On Sun, Mar 20, 2016 at 06:59:01PM -, Thomas Gleixner wrote: > The perf cstate driver is yet another trainwreck vs. cpu hotplug handling. The > hotplug code is not only disfunctional, it's also a uncomprehensible mess. > > The following series fixes the hotplug functionality, sanitizes error h

RE: [PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-21 Thread Alan Stern
On Mon, 21 Mar 2016, Rajesh Bhagat wrote: > I agree to your point. Actually the intent was to check the return status of > reset_device which > is currently being ignored. I encountered the reset_device failure case in > resume operation (STR) > which is increasing the time of resume and causi

[PATCH 1/3] cpufreq: Introduce cpufreq_start_governor()

2016-03-21 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Starting a governor in cpufreq always follows the same pattern involving two calls to cpufreq_governor(), one with the event argument set to CPUFREQ_GOV_START and one with that argument set to CPUFREQ_GOV_LIMITS. Introduce cpufreq_start_governor() that will carry out thos

Re: [PATCH v4 6/7] mtd: nand: omap2: Fix high memory dma prefetch transfer

2016-03-21 Thread Boris Brezillon
Hi Franklin, On Thu, 10 Mar 2016 17:56:42 -0600 Franklin S Cooper Jr wrote: > Based on DMA documentation and testing using high memory buffer when > doing dma transfers can lead to various issues including kernel > panics. I guess it all comes from the vmalloced buffer case, which are not guara

Re: [patch 2/4] x86/perf/intel/cstate: Sanitize probing

2016-03-21 Thread Thomas Gleixner
On Mon, 21 Mar 2016, Peter Zijlstra wrote: > On Mon, Mar 21, 2016 at 02:19:27PM +, Liang, Kan wrote: > > > > - /* Probe the cstate events. */ > > > - for (i = 0; i < max_event_nr; i++) { > > > - if (!msr[i].test(i) || rdmsrl_safe(msr[i].msr, &val)) > > > - msr[i].attr

Re: [patch 2/4] x86/perf/intel/cstate: Sanitize probing

2016-03-21 Thread Thomas Gleixner
On Mon, 21 Mar 2016, Thomas Gleixner wrote: > On Mon, 21 Mar 2016, Peter Zijlstra wrote: > > > On Mon, Mar 21, 2016 at 02:19:27PM +, Liang, Kan wrote: > > > > > > - /* Probe the cstate events. */ > > > > - for (i = 0; i < max_event_nr; i++) { > > > > - if (!msr[i].t

Re: [tip:perf/urgent] perf/x86/mbm: Implement RMID recycling

2016-03-21 Thread Matt Fleming
On Mon, 21 Mar, at 02:53:04AM, tip-bot for Vikas Shivappa wrote: > @@ -489,6 +496,22 @@ static u32 intel_cqm_xchg_rmid(struct perf_event *group, > u32 rmid) > > raw_spin_unlock_irq(&cache_lock); > > + /* > + * If the allocation is for mbm, init the mbm stats. > + * Need to

Re: [PATCH v5 4/6] livepatch: reuse module loader code to write relocations

2016-03-21 Thread Josh Poimboeuf
On Wed, Mar 16, 2016 at 03:47:06PM -0400, Jessica Yu wrote: > Reuse module loader code to write relocations, thereby eliminating the need > for architecture specific relocation code in livepatch. Specifically, reuse > the apply_relocate_add() function in the module loader to write relocations > ins

Re: [PATCH] cpufreq: rockchip: add driver

2016-03-21 Thread Viresh Kumar
On 21-03-16, 21:24, Feng Xiao wrote: > Rockchip-cpufreq.c depends on ARM_ROCKCHIP_CPUFREQ, it will not be compiled > on non-Rockchip platforms. > The driver can support all Rockchip SoCs up to now, add > of_machine_is_compatible may be redundant ? Heard of Multi-platform kernels ? -- viresh

Re: [PATCH] cpufreq: rockchip: add driver

2016-03-21 Thread Heiko Stübner
Hi, Am Montag, 21. März 2016, 21:24:32 schrieb Feng Xiao: > 在 2016/3/21 17:58, Viresh Kumar 写道: > > On 21-03-16, 10:54, Heiko Stübner wrote: > >> I hadn't seen that yet ... nice that cpufreq-dt now also supports > >> clusters :-) > >> > >> The other part still stands though, as we probably should

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-03-21 Thread Gabriele Mazzotta
2016-03-21 13:17 GMT+01:00 Pali Rohár : > On Friday 18 March 2016 23:44:23 Gabriele Mazzotta wrote: >> +#ifdef CONFIG_PM_SLEEP >> +static void ACPI_SYSTEM_XFACE rbtn_acpi_clear_flag(void *context) >> +{ >> + struct rbtn_data *rbtn_data = context; >> + >> + rbtn_data->suspended = false; >> +

Re: [Xen-devel] [PATCH v2 0/5] xen: avoid module usage in non-modular code

2016-03-21 Thread David Vrabel
On 20/03/16 00:23, Paul Gortmaker wrote: > [[PATCH v2 0/5] xen: avoid module usage in non-modular code] On 21/02/2016 > (Sun 19:06) Paul Gortmaker wrote: > >> This series of commits is a part of a larger project to ensure >> people don't reference modular support functions in non-modular >> code.

[4.2.y-ckt stable] Linux 4.2.8-ckt6

2016-03-21 Thread Kamal Mostafa
I am announcing the release of the Linux 4.2.8-ckt6 kernel. The updated 4.2.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-4.2.y and can be browsed at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-4.2.y The diff from v4.2.8-ckt5 is posted as a fo

Re: [4.2.y-ckt stable] Linux 4.2.8-ckt6

2016-03-21 Thread Kamal Mostafa
diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt index 4f6a82c..cbe35b3 100644 --- a/Documentation/devicetree/bindings/arm/omap/omap.txt +++ b/Documentation/devicetree/bindings/arm/omap/omap.txt @@ -23,6 +23,7 @@ Optional proper

Re: [PATCH] KVM: fix spin_lock_init order on x86

2016-03-21 Thread Paolo Bonzini
On 21/03/2016 15:47, Eric Dumazet wrote: > On Mon, 2016-03-21 at 10:24 +0100, Paolo Bonzini wrote: >> kvm_arch_init_vm is now using mmu_lock, causing lockdep to >> complain: > ... >> >> Reported-by: Borislav Petkov >> Signed-off-by: Paolo Bonzini >> --- >> virt/kvm/kvm_main.c | 20 ++--

Re: [PATCH] perf: fix event leak when perf_event_open() failed to create event_file

2016-03-21 Thread Leon Yu
On Mon, Mar 21, 2016 at 4:02 PM, Alexander Shishkin wrote: > Leon Yu writes: > >> If something went wrong in anon_inode_getfile, event_file will be set to >> non-zero error number and able to bypass the NULL test afterward. >> >> Consolidate the error path by testing event_file with handly >> IS_

confusing mountinfo output when bind-mounting files

2016-03-21 Thread Tycho Andersen
Hi all, I'm seeing some strange behavior when bind mounting files from a btrfs subvolume. Consider the output below: root@criu2:/tmp# mount -o loop /tmp/tester.btrfs /tmp/dir1 root@criu2:/tmp# touch dir1/file root@criu2:/tmp# sudo mount --bind dir1/file dir2/file root@criu2:/tmp# grep "/tmp/dir"

<    1   2   3   4   5   6   7   8   9   >