[PATCH] clk: samsung: Suppress unbinding to prevent theoretical attacks

2016-05-17 Thread Krzysztof Kozlowski
Although unbinding a driver requires root privileges but it still might be used theoretically in certain attacks (by triggering NULL pointer exception or memory corruption if driver does not provide proper remove callbacks or core does not handle it). Samsung clock drivers are essential for system

[GIT pull] timer updates for 4.7

2016-05-17 Thread Thomas Gleixner
Linus, please pull the latest timers-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-for-linus A rather small set of patches from the timer departement: - Some more y2038 work - Yet another new clocksource driver - The usual set of s

Re: [tip:perf/urgent] perf/x86/intel/pt: Generate PMI in the STOP region as well

2016-05-17 Thread Alexander Shishkin
tip-bot for Alexander Shishkin writes: > Commit-ID: ab92b232ae05c382c3df0e3d6a5c6d16b639ac8c > Gitweb: http://git.kernel.org/tip/ab92b232ae05c382c3df0e3d6a5c6d16b639ac8c > Author: Alexander Shishkin > AuthorDate: Tue, 10 May 2016 16:18:32 +0300 > Committer: Ingo Molnar > CommitDate: T

[PATCH 1/5] staging: unisys: Move vbushelper.h to visorbus directory

2016-05-17 Thread David Kershner
Only visorbus needs this header file so move it to visorbus directory. Signed-off-by: David Kershner --- drivers/staging/unisys/include/vbushelper.h | 46 drivers/staging/unisys/visorbus/vbushelper.h | 46 2 files changed, 46 insertions(

[PATCH 3/5] Documentation: Move visorbus documentation from staging to Documentation/

2016-05-17 Thread David Kershner
This patch simple does a git mv of the drivers/staging/unisys/Documentation directory to Documentation. Renames overview.txt to visorbus.txt and renames sysfs-platform-visorchipset to the correct name sysfs-bus-visorbus. Signed-off-by: David Kershner --- Documentation/ABI/stable/sysfs-bus-visorb

[PATCH 2/5] include: linux: visorbus: Add visorbus to include/linux directory

2016-05-17 Thread David Kershner
Update include/linux to include the s-Par associated common include header files needed for the s-Par visorbus. Signed-off-by: David Kershner --- include/linux/visorbus/channel.h | 572 +++ include/linux/visorbus/channel_guid.h| 55 +++ include/linux/viso

[PATCH 0/5] add bus driver for Unisys s-Par paravirtualized devices to arch/x86

2016-05-17 Thread David Kershner
This patchset moves the visorbus driver (fromdrivers/staging/unisys/visorbus) and its dependent headers files (from drivers/staging/unisys/include) out of staging into the main kernel tree. The visorbus driver is a bus driver for various paravirtualized devices presented within a Unisys s-Par gues

[PATCH 4/5] staging: unisys: visorbus: Have visorbus use include/linux/visorbus

2016-05-17 Thread David Kershner
Since we have now moved the include directories over to include/linux/visorbus this patch makes all of visorbus use the new include folders. Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/controlvmchannel.h | 2 +- drivers/staging/unisys/visorbus/periodic_work.c| 3 +--

Re: [PATCH v3 1/7 UPDATE] perf tools: Find vdso with the consider of cross-platform

2016-05-17 Thread Adrian Hunter
On 13/05/16 11:51, He Kuang wrote: > There's a problem in machine__findnew_vdso(), vdso buildid generated > by a 32-bit machine stores it with the name 'vdso', but when > processing buildid on a 64-bit machine with the same 'perf.data', perf > will search for vdso named as 'vdso32' and get failed.

[GIT pull] irq updates for 4.7

2016-05-17 Thread Thomas Gleixner
Linus, please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus This update delivers: - Yet another interrupt chip diver (LPC32xx) - Core functions to handle partitioned per-cpu interrupts - Enhancements to th

Re: [PATCH v3 1/7 UPDATE] perf tools: Find vdso with the consider of cross-platform

2016-05-17 Thread Adrian Hunter
On 16/05/16 16:32, Arnaldo Carvalho de Melo wrote: > Em Fri, May 13, 2016 at 08:51:49AM +, He Kuang escreveu: >> There's a problem in machine__findnew_vdso(), vdso buildid generated >> by a 32-bit machine stores it with the name 'vdso', but when >> processing buildid on a 64-bit machine with th

RE: [PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-17 Thread Jun Li
Hi > -Original Message- > From: Roger Quadros [mailto:rog...@ti.com] > Sent: Monday, May 16, 2016 5:52 PM > To: Peter Chen > Cc: peter.c...@freescale.com; ba...@kernel.org; t...@atomide.com; > gre...@linuxfoundation.org; dan.j.willi...@intel.com; > mathias.ny...@linux.intel.com; joao.pi..

[PATCH v1] mm: bad_page() checks bad_flags instead of page->flags for hwpoison page

2016-05-17 Thread Naoya Horiguchi
There's a race window between checking page->flags and unpoisoning, which taints kernel with "BUG: Bad page state". That's overkill. It's safer to use bad_flags to detect hwpoisoned page. Signed-off-by: Naoya Horiguchi --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 1/1] perf/x86/intel: Change offcore response masks for Knights Landing

2016-05-17 Thread Lukasz Odzioba
Due to change in register definition we need to update OCR mask. MSR_OFFCORE_RESP0 reserved bits: 3,4,18,29,30,33,34, 8,11,14 MSR_OFFCORE_RESP1 reserved bits: 3,4,18,29,30,33,34, 38 Reported-by: Andi Kleen Signed-off-by: Lukasz Odzioba --- arch/x86/events/intel/core.c | 6 ++ 1 file changed

Re: [PATCH] pinctrl: stm32: fix debugfs format string

2016-05-17 Thread Patrice Chotard
Hi Arnd I have already send a fix for this on the mailing list on 12th may ([PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes). I don't know if Linus will merged it on his pinctrl branch. Sorry Patrice On 05/13/2016 03:53 PM, Arnd Bergmann wrote: The newly added stm32_pconf_dbg_show fu

[PATCH 1/1] arch/x86/perf/intel: Add static keyword to some arrays

2016-05-17 Thread Lukasz Odzioba
Add static keyword to intel_bdw_event_constraints, snb_events_attrs, nhm_events_attrs, intel_skl_event_constraints arrays. Signed-off-by: Lukasz Odzioba --- arch/x86/events/intel/core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/events/intel/core.c b/arc

Re: [PATCH v4 3/3] drm: Add helper for simple display pipeline

2016-05-17 Thread Ville Syrjälä
On Tue, May 17, 2016 at 09:05:01AM +0200, Daniel Vetter wrote: > On Thu, May 12, 2016 at 09:36:14PM +0300, Ville Syrjälä wrote: > > On Thu, May 12, 2016 at 08:25:23PM +0200, Noralf Trønnes wrote: > > > Provides helper functions for drivers that have a simple display > > > pipeline. Plane, crtc and

[PATCH v2 5/6] pv-qspinlock: use cmpxchg_release in __pv_queued_spin_unlock

2016-05-17 Thread Pan Xinhui
cmpxchg_release is lighter, we can gain a better performace then. Suggested-by: Boqun Feng Signed-off-by: Pan Xinhui --- kernel/locking/qspinlock_paravirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/qspinlock_paravirt.h b/kernel/locking/qspinlock_paravi

[PATCH v2 6/6] powerpc: pseries: pv-qspinlock build config/make

2016-05-17 Thread Pan Xinhui
pseries can use pv-qspinlock. Signed-off-by: Pan Xinhui --- arch/powerpc/kernel/Makefile | 1 + arch/powerpc/platforms/pseries/Kconfig | 8 2 files changed, 9 insertions(+) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 2da380f..ae7c2f1 100644

[PATCH v2 2/6] powerpc: pseries/Kconfig: qspinlock build config

2016-05-17 Thread Pan Xinhui
pseries will use qspinlock by default. Signed-off-by: Pan Xinhui --- arch/powerpc/platforms/pseries/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index bec90fb..f669323 100644 --- a/arch/powerpc/platfo

[PATCH v2 3/6] powerpc: lib/locks.c: cpu yield/wake helper function

2016-05-17 Thread Pan Xinhui
pv-qspinlock core has pv_wait/pv_kick which will give a better performace by yielding and kicking cpu at some cases. lets support them by adding two corresponding helper functions. Signed-off-by: Pan Xinhui --- arch/powerpc/include/asm/spinlock.h | 4 arch/powerpc/lib/locks.c|

[PATCH v2 4/6] pv-qspinlock: powerpc support pv-qspinlock

2016-05-17 Thread Pan Xinhui
As we need let pv-qspinlock-kernel run on all environment which might have no powervm, we should runtime choose which qspinlock version to use. The default pv-qspinlock use native version. pv_lock initialization should be done in bootstage with irq disabled. And if possible, restore pv_lock_ops cal

[PATCH v2 1/6] qspinlock: powerpc support qspinlock

2016-05-17 Thread Pan Xinhui
Base code to enable qspinlock on powerpc. this patch add some #ifdef here and there. Although there is no paravirt related code, we can successfully build a qspinlock kernel after apply this patch. Signed-off-by: Pan Xinhui --- arch/powerpc/include/asm/qspinlock.h | 22 +

[PATCH v3 0/6] powerpc use pv-qpsinlock instead of spinlock

2016-05-17 Thread Pan Xinhui
change fome v1: separate into 6 pathes from one patch some minor code changes. benchmark test results are below. run 3 tests on pseries IBM,8408-E8E with 32cpus, 64GB memory perf bench futex hash perf bench futex lock-pi perf record -advRT || perf bench sched messaging -g 1000 || p

Re: [PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-17 Thread Baolin Wang
Hi Felipe, On 13 May 2016 at 20:46, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: > why does it need restart? Why is dwc3 powered off? Who powers it off? Because when the dwc3 Vbus is off (no cable pluging in now), especially for some mobile device, the system need to po

[PATCH V2] Use MACRO UINT_MAX instead of actual value

2016-05-17 Thread Minfei Huang
It's more elegant to use MACRO UINT_MAX to represent the max value of type unsigned int. So replace the actual value by using this MACRO. Signed-off-by: Minfei Huang --- v1: - fix typo --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/h

Re: [PATCH v4 3/3] drm: Add helper for simple display pipeline

2016-05-17 Thread Daniel Vetter
On Tue, May 17, 2016 at 10:46:51AM +0300, Ville Syrjälä wrote: > On Tue, May 17, 2016 at 09:05:01AM +0200, Daniel Vetter wrote: > > On Thu, May 12, 2016 at 09:36:14PM +0300, Ville Syrjälä wrote: > > > On Thu, May 12, 2016 at 08:25:23PM +0200, Noralf Trønnes wrote: > > > > Provides helper functions

Re: [PATCH v2 2/3] mfd: lp873x: Add lp873x PMIC support

2016-05-17 Thread Lee Jones
On Fri, 13 May 2016, Keerthy wrote: > On Thursday 12 May 2016 06:48 PM, Lee Jones wrote: > >On Tue, 10 May 2016, Keerthy wrote: > > > >>The LP873X chip is a power management IC for Portable Navigation Systems > >> and Tablet Computing devices. It contains the following components: > >> > >>

Re: [PATCH v4 12/18] arm: use of_platform_default_populate() to populate

2016-05-17 Thread Sekhar Nori
On Thursday 12 May 2016 05:36 PM, Kefeng Wang wrote: > Use helper of_platform_default_populate() in linux/of_platform > when possible, instead of calling of_platform_populate() with > the default match table. > > Cc: Nicolas Ferre > Cc: Krzysztof Halasa > Cc: Sekhar Nori > Cc: Shawn Guo > Cc:

Re: [PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-17 Thread Felipe Balbi
Hi Baolin Wang writes: > Hi Felipe, > > On 13 May 2016 at 20:46, Felipe Balbi wrote: >> >> Hi, >> >> Baolin Wang writes: >> why does it need restart? Why is dwc3 powered off? Who powers it off? > > Because when the dwc3 Vbus is off (no cable pluging in now), > especially for so

Re: [PATCH v2 2/3] mfd: lp873x: Add lp873x PMIC support

2016-05-17 Thread Keerthy
On Tuesday 17 May 2016 01:31 PM, Lee Jones wrote: On Fri, 13 May 2016, Keerthy wrote: On Thursday 12 May 2016 06:48 PM, Lee Jones wrote: On Tue, 10 May 2016, Keerthy wrote: The LP873X chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contain

Re: [PATCH 2/2] ARM: dts: igep0020: Add SD card write-protect pin.

2016-05-17 Thread Enric Balletbo Serra
Hi Ladislav, 2016-05-13 14:37 GMT+02:00 Ladislav Michl : > Hi Enric! > > On Fri, May 06, 2016 at 11:02:34PM +0200, Enric Balletbo i Serra wrote: >> A host device that supports write protection should refuse to write to >> an SD card that is designated read-only when write-protect is set. This >> i

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-17 Thread Tomasz Nowicki
Hi Lorenzo, On 14.04.2016 19:25, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is currently not possible to set-up DMA operations f

Re: More build fixes for omapdrm in current -next

2016-05-17 Thread Tomi Valkeinen
On 11/05/16 19:01, Arnd Bergmann wrote: > A couple more errors showed up in linux-next in the last few > days, all because of missing header files. I have not seen these > before, and most configurations appear to be fine. There > must have been an implicit inclusion somewhere before that > just go

Re: [PATCH v2 2/3] mfd: lp873x: Add lp873x PMIC support

2016-05-17 Thread Keerthy
On Tuesday 17 May 2016 01:34 PM, Keerthy wrote: On Tuesday 17 May 2016 01:31 PM, Lee Jones wrote: On Fri, 13 May 2016, Keerthy wrote: On Thursday 12 May 2016 06:48 PM, Lee Jones wrote: On Tue, 10 May 2016, Keerthy wrote: The LP873X chip is a power management IC for Portable Navigation Sy

Re: [PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-17 Thread Roger Quadros
On 17/05/16 10:38, Jun Li wrote: > Hi > >> -Original Message- >> From: Roger Quadros [mailto:rog...@ti.com] >> Sent: Monday, May 16, 2016 5:52 PM >> To: Peter Chen >> Cc: peter.c...@freescale.com; ba...@kernel.org; t...@atomide.com; >> gre...@linuxfoundation.org; dan.j.willi...@intel.com;

Re: [PATCH 04/11] irqchip: irq-pic32-evic: Fix bug with external interrupts.

2016-05-17 Thread Marc Zyngier
On 17/05/16 06:05, Purna Chandra Mandal wrote: > From: Joshua Henderson > > The wrong external interrupt bits are being set, offset by 1. > > Signed-off-by: Joshua Henderson > Signed-off-by: Purna Chandra Mandal Acked-by: Marc Zyngier I'll queue that for post -rc1. Thanks, M. --

Re: [PATCH] x86/boot: Refuse to build with data relocations

2016-05-17 Thread Kees Cook
On Mon, May 16, 2016 at 3:30 AM, Ingo Molnar wrote: > > * H. Peter Anvin wrote: > >> On 05/12/16 15:54, Kees Cook wrote: >> >> >> >> It would be far better to warn on the *type* of relocations rather than >> >> in which section they feel. >> > >> > I'm open to specific changes. What's the best w

Re: [PATCH] Drivers: hv: vmbus: fix the race when querying & updating the percpu list

2016-05-17 Thread Vitaly Kuznetsov
Dexuan Cui writes: > There is a rare race when we remove an entry from the global list > hv_context.percpu_list[cpu] in hv_process_channel_removal() -> > percpu_channel_deq() -> list_del(): at this time, if vmbus_on_event() -> > process_chn_event() -> pcpu_relid2channel() is trying to query the l

Re: [alsa-devel] [PATCH v2 4/5] ARM: dts: rockchip: Add shared file for audio related nodes for veyron boards

2016-05-17 Thread Enric Balletbo Serra
Hi Heiko, 2016-05-16 0:06 GMT+02:00 Heiko Stuebner : > Am Montag, 9. Mai 2016, 12:46:34 schrieb Enric Balletbo i Serra: >> Set i2s block to "okay", add sound node for max98090 with gpios for >> HP and Mic detect and pinctrl, and add a max98090 device and ts3a227e to >> the correct i2c bus. >> >> S

Re: 45aebeaf4f67 "ovl: Ensure upper filesystem supports d_type" breaking Docker

2016-05-17 Thread Miklos Szeredi
On Tue, May 17, 2016 at 8:28 AM, Al Viro wrote: > On Mon, May 16, 2016 at 09:07:27AM -0400, Vivek Goyal wrote: >> So it became clear that we need a check at mount time to make sure >> d_type is supported otherwise error out. This will require users to >> do mkfs.xfs with ftype=1 to make progress.

Re: [PATCH v5 0/4] x86, boot: KASLR memory randomization

2016-05-17 Thread Kees Cook
I'm travelling this week, but I'll try to spend some time on it. -Kees On Mon, May 16, 2016 at 11:25 AM, Thomas Garnier wrote: > Any feedback on the patch? Ingo? Kees? > > Kees mentioned he will take care of the build warning on the KASLR > refactor (the function is not used right now). > > Than

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-17 Thread Sebastian Frias
Hi Alan, On 05/13/2016 05:43 PM, One Thousand Gnomes wrote: >> But wouldn't those affect a given process at at time? >> Does that means that the OOM-killer is woken up to kill process X when those >> situations arise on process Y? > > Not sure I understand the question. I'm sorry for the "at at

[RFC PATCH 2/2] logind: Allow lid status remains "closed"

2016-05-17 Thread Lv Zheng
This patch adds an option to allow the lid status to remain closed. However we are not systemd developers, and this patch may be wrong. It's just a demo on how the issue can be addressed in systemd. Signed-off-by: Lv Zheng Cc: Bastien Nocera: --- Index: systemd/src/login/logind-gperf.gperf =

[RFC PATCH 1/2] ACPI / button: Send "open" state after boot/resume

2016-05-17 Thread Lv Zheng
(This patch hasn't been tested, it's sent for comments) Linux userspace (systemd-logind) keeps on rechecking lid state when the lid state is closed. If it failed to update the lid state to open after boot/resume, it could suspend the system. But as: 1. Traditional ACPI platform may not generate th

RE: [PATCH] Drivers: hv: vmbus: fix the race when querying & updating the percpu list

2016-05-17 Thread Dexuan Cui
> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, May 17, 2016 16:15 > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; KY Srinivasan ; Haiyang Z

Re: [PATCH] kvm-pr: manage illegal instructions

2016-05-17 Thread Laurent Vivier
On 12/05/2016 16:23, Laurent Vivier wrote: > > > On 12/05/2016 11:27, Alexander Graf wrote: >> On 05/12/2016 11:10 AM, Laurent Vivier wrote: >>> >>> On 11/05/2016 13:49, Alexander Graf wrote: On 05/11/2016 01:14 PM, Laurent Vivier wrote: > On 11/05/2016 12:35, Alexander Graf wrote: >>>

Re: [PATCH] kvm-pr: manage illegal instructions

2016-05-17 Thread Alexander Graf
On 05/17/2016 10:35 AM, Laurent Vivier wrote: On 12/05/2016 16:23, Laurent Vivier wrote: On 12/05/2016 11:27, Alexander Graf wrote: On 05/12/2016 11:10 AM, Laurent Vivier wrote: On 11/05/2016 13:49, Alexander Graf wrote: On 05/11/2016 01:14 PM, Laurent Vivier wrote: On 11/05/2016 12:35, Al

RE: [PATCH] Drivers: hv: vmbus: fix the race when querying & updating the percpu list

2016-05-17 Thread Dexuan Cui
> From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On Behalf > Of Dexuan Cui > > > > Do we need to do tasklet_schedule() to make sure there are no events > > pending? This is probably not a big issue as some other event will > > trigger scheduling but in some corner cases it may

Re: [PATCH v2 0/3] cpuacct: Show all detail stats in one file

2016-05-17 Thread Ingo Molnar
* Zhao Lei wrote: > 1: Rewrite subject and changelog to fix typos and > make it more accurate. So this is really annoying. In the previous review I suggested this: " - please fix the title of the patch: have a look at 'git log kernel/sched/cpuacct.c' how recent titles to that code l

Re: [tip:perf/urgent] perf/x86/intel/pt: Generate PMI in the STOP region as well

2016-05-17 Thread Ingo Molnar
* Alexander Shishkin wrote: > tip-bot for Alexander Shishkin writes: > > > Commit-ID: ab92b232ae05c382c3df0e3d6a5c6d16b639ac8c > > Gitweb: > > http://git.kernel.org/tip/ab92b232ae05c382c3df0e3d6a5c6d16b639ac8c > > Author: Alexander Shishkin > > AuthorDate: Tue, 10 May 2016 16:18:32

RE: [PATCH v8 13/14] usb: gadget: udc: adapt to OTG core

2016-05-17 Thread Jun Li
Hi Roger, > -Original Message- > From: Roger Quadros [mailto:rog...@ti.com] > Sent: Tuesday, May 17, 2016 4:09 PM > To: Jun Li ; Peter Chen > Cc: peter.c...@freescale.com; ba...@kernel.org; t...@atomide.com; > gre...@linuxfoundation.org; dan.j.willi...@intel.com; > mathias.ny...@linux.int

Re: [PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-17 Thread Baolin Wang
On 17 May 2016 at 16:00, Felipe Balbi wrote: > > Hi > > Baolin Wang writes: >> Hi Felipe, >> >> On 13 May 2016 at 20:46, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Baolin Wang writes: >>> why does it need restart? Why is dwc3 powered off? Who powers it off? >> >> Because when the dwc3

Re: [PATCH v2 1/3] /dev/dax, pmem: direct access to persistent memory

2016-05-17 Thread Johannes Thumshirn
On Sat, May 14, 2016 at 11:26:24PM -0700, Dan Williams wrote: > Device DAX is the device-centric analogue of Filesystem DAX > (CONFIG_FS_DAX). It allows memory ranges to be allocated and mapped > without need of an intervening file system. Device DAX is strict, > precise and predictable. Specifi

Re: [PATCH v9] mm: kasan: Initial memory quarantine implementation

2016-05-17 Thread Alexander Potapenko
Hello Alexey, On Tue, May 17, 2016 at 12:03 AM, Alexey Klimov wrote: > Hi Alexander, > > On Wed, May 11, 2016 at 6:18 PM, Alexander Potapenko > wrote: >> Quarantine isolates freed objects in a separate queue. The objects are >> returned to the allocator later, which helps to detect use-after-fr

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-17 Thread Michal Hocko
On Tue 17-05-16 10:24:20, Sebastian Frias wrote: [...] > >> Also, under what conditions would copy-on-write fail? > > > > When you have no memory or swap pages free and you touch a COW page that > > is currently shared. At that point there is no resource to back to the > > copy so something must d

Re: [PATCH v12 05/10] arm64: Kprobes with single stepping support

2016-05-17 Thread Huang Shijie
On Wed, Apr 27, 2016 at 02:53:00PM -0400, David Long wrote: > + > +/* > + * Interrupts need to be disabled before single-step mode is set, and not > + * reenabled until after single-step mode ends. > + * Without disabling interrupt on local CPU, there is a chance of > + * interrupt occurrence in th

Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq()

2016-05-17 Thread ethan zhao
Alexander, On 2016/5/17 0:09, Alexander Duyck wrote: On Sun, May 15, 2016 at 7:59 PM, ethan zhao wrote: Alexander, On 2016/5/14 0:46, Alexander Duyck wrote: On Thu, May 12, 2016 at 10:56 PM, Ethan Zhao wrote: Allocating 64 Tx/Rx as default doesn't benefit perfomrnace when less CPUs were as

[tip:core/urgent] objtool: Allow building with older libelf

2016-05-17 Thread tip-bot for Jan Beulich
Commit-ID: 2e51f26245701cb28f154552836b7807159088a8 Gitweb: http://git.kernel.org/tip/2e51f26245701cb28f154552836b7807159088a8 Author: Jan Beulich AuthorDate: Mon, 16 May 2016 15:31:07 -0500 Committer: Ingo Molnar CommitDate: Tue, 17 May 2016 10:42:46 +0200 objtool: Allow building with

Re: [PATCH] mm: add config option to select the initial overcommit mode

2016-05-17 Thread Mason
On 10/05/2016 13:56, Sebastian Frias wrote: > Currently the initial value of the overcommit mode is OVERCOMMIT_GUESS. > However, on embedded systems it is usually better to disable overcommit > to avoid waking up the OOM-killer and its well known undesirable > side-effects. There is an interestin

Re: [GIT PULL] EFI fix

2016-05-17 Thread Matt Fleming
On Mon, 16 May, at 01:05:45PM, Linus Torvalds wrote: > > So that whole 8-vs-16 offset confusion depends on the frame pointer! > If frame pointers were enabled, it will be 16. If they weren't, it > will be 8. That patch that changes it from 8 to 16 will just move the > bug around. Before, it was co

[PATCH v3 1/7 UPDATE2] perf tools: Find vdso with the consider of cross-platform

2016-05-17 Thread He Kuang
There's a problem in machine__findnew_vdso(), vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso named as 'vdso32' and get failed. This patch tries to find the exsiting dsos

Re: [PATCH v3 1/7 UPDATE] perf tools: Find vdso with the consider of cross-platform

2016-05-17 Thread Hekuang
在 2016/5/17 15:33, Adrian Hunter 写道: On 13/05/16 11:51, He Kuang wrote: There's a problem in machine__findnew_vdso(), vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso

Re: [PATCH v12 05/10] arm64: Kprobes with single stepping support

2016-05-17 Thread Huang Shijie
On Wed, Apr 27, 2016 at 02:53:00PM -0400, David Long wrote: > From: Sandeepa Prabhu > + > +static bool __kprobes aarch64_insn_is_steppable(u32 insn) Could we add more comment for this function? In the comment, we can tell that which type of instructions are steppable, which are not. > +{ > +

Re: UBIFS and page migration (take 3)

2016-05-17 Thread Christoph Hellwig
On Mon, May 16, 2016 at 02:44:49PM +0200, Richard Weinberger wrote: > Is this a Reviewed-by? :-) I don't know the code well enough to feel qualified for a review. But you get my: Acked-by: Christoph Hellwig > There are two classes of issues: > a) filesystems that use buffer_migrate_page() but

Re: ast: cursor flashing softlockups

2016-05-17 Thread Ming Lei
Hi, On Tue, May 17, 2016 at 4:07 AM, Dann Frazier wrote: > Hi, > I'm observing a soft lockup issue w/ the ASPEED controller on an > arm64 server platform. This was originally seen on Ubuntu's 4.4 > kernel, but it is reproducible w/ vanilla 4.6-rc7 as well. > > [ 32.792656] NMI watchdog: BUG: s

Re: UBIFS and page migration (take 3)

2016-05-17 Thread Christoph Hellwig
On Mon, May 16, 2016 at 03:03:55PM +0200, Vlastimil Babka wrote: > On 05/16/2016 02:44 PM, Richard Weinberger wrote: > >MM folks, do we have a way to force page migration? > > On NUMA we have migrate_pages(2). Do we have existing sets of it? Otherwise it would be good to find a way to wire it up

Re: [PATCH v4 12/18] arm: use of_platform_default_populate() to populate

2016-05-17 Thread Nicolas Ferre
Le 12/05/2016 14:06, Kefeng Wang a écrit : > Use helper of_platform_default_populate() in linux/of_platform > when possible, instead of calling of_platform_populate() with > the default match table. > > Cc: Nicolas Ferre > Cc: Krzysztof Halasa > Cc: Sekhar Nori > Cc: Shawn Guo > Cc: Russell Ki

Re: [PATCH v12 01/10] arm64: Add HAVE_REGS_AND_STACK_ACCESS_API feature

2016-05-17 Thread Huang Shijie
On Wed, Apr 27, 2016 at 02:52:56PM -0400, David Long wrote: > From: "David A. Long" > +/** > + * regs_within_kernel_stack() - check the address in the stack > + * @regs: pt_regs which contains kernel stack pointer. > + * @addr: address which is checked. > + * > + * regs_within_kernel_sta

Re: [RESEND PATCH v6 0/6] Add Ethernet support on STM32F429

2016-05-17 Thread Maxime Coquelin
Hi David, 2016-05-09 21:06 GMT+02:00 David Miller : > From: Alexandre TORGUE > Date: Mon, 9 May 2016 12:31:33 +0200 > >> STM32F429 Chip embeds a Synopsys 3.50a MAC IP. >> This series: >> -enhance current stmmac driver to control it (code already >> available) and adds basic glue for STM32F429 c

Re: [PATCH v3 1/7 UPDATE2] perf tools: Find vdso with the consider of cross-platform

2016-05-17 Thread Adrian Hunter
On 17/05/16 12:04, He Kuang wrote: > There's a problem in machine__findnew_vdso(), vdso buildid generated > by a 32-bit machine stores it with the name 'vdso', but when > processing buildid on a 64-bit machine with the same 'perf.data', perf > will search for vdso named as 'vdso32' and get failed.

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

2016-05-17 Thread Campbell Steven
Thanks Stefan, I am seeing this on 4.5.0 and 4.5.4 both are compiled from mainline neither include any patches over and above the tree. I ran for well over a month in production on 4.5.0 with no issues at all on a single socket server (E5-2670 v3 @ 2.30GHz) but as soon as we try to run either 4.5.

Re: [RFC][PATCH] printk: Add option to append kernel version to the dict

2016-05-17 Thread Petr Mladek
On Fri 2016-05-13 13:58:04, Calvin Owens wrote: > We use netconsole to collect kernel logs from all the servers at > Facebook. We use this patch internally so each logline has a record of > which kernel version emitted it. > > At first glance, this might seem lazy: as you would expect, we have a >

Re: [PATCH] dwc3: gadget: Defer starting the gadget device until gadget is power on

2016-05-17 Thread Felipe Balbi
Hi, Baolin Wang writes: > Make sense. cool, if you wanna work on it, let me know and I can give some details of what I have in mind. >>> >>> Could you explain details to me, and I wanna continue to optimize the >>> power management things. Thanks. >> >> I have it half-way done

[GIT PULL] GPIO bulk changes for v4.7

2016-05-17 Thread Linus Walleij
Hi Linus, here is the bulk of GPIO changes for the v4.7 development cycle. There are a few patches to other subsystems and arches here, all should be ACKed by respective maintainer I think. The MIPS patch created a trivial merge conflict in linux-next so you may see it when pulling this or the MI

Re: [PATCH] x86/boot: Refuse to build with data relocations

2016-05-17 Thread H. Peter Anvin
On 05/17/16 01:13, Kees Cook wrote: > On Mon, May 16, 2016 at 3:30 AM, Ingo Molnar wrote: >> >> * H. Peter Anvin wrote: >> >>> On 05/12/16 15:54, Kees Cook wrote: > > It would be far better to warn on the *type* of relocations rather than > in which section they feel. I'm o

[PATCH 2/4] uio: UIO_IRQ_NONE is a valid option for uioinfo->irq

2016-05-17 Thread Jan Viktorin
We can simplify handling of platform_get_irq into one place as it is acceptable to see UIO_IRQ_NONE instead of a valid IRQ number. Some devices don't have or don't need any interrupt to be handled. The same change has been already done for uio_pdrv_genirq. Signed-off-by: Jan Viktorin --- drivers

[PATCH 0/4] Fix and extend uio_dmem_genirq

2016-05-17 Thread Jan Viktorin
Hello, as a part of my work related usually to FPGAs, I was playing with the uio_dmem_genirq. First, I've discovered a (possible) bug in the uio_dmem_genirq in exposing the dynamic regions to userspace (patch 0001). When specifying a number of dynamic regions, one mapping is (due to counting IORES

[PATCH 3/4] uio: introduce devicetree bindings for uio_dmem_genirq

2016-05-17 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- .../devicetree/bindings/uio/uio_dmem_genirq.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/uio/uio_dmem_genirq.txt diff --git a/Documentation/devicetree/bindings/uio/uio_dmem_genirq.txt b

[PATCH 1/4] uio: fix dmem_region_start computation

2016-05-17 Thread Jan Viktorin
The variable i contains a total number of resources (including IORESOURCE_IRQ). However, we want the dmem_region_start to point after the last resource of type IORESOURCE_MEM. The original behaviour leads (very likely) to skipping several UIO mapping regions and makes them useless. Fix this by comp

[PATCH 4/4] uio: bind uio_pdrv_genirq via OF

2016-05-17 Thread Jan Viktorin
The uio_dmem_genirq works in a similar way as uio_pdrv_genirq now. It accepts the of_id module parameter to bind to a specific device. The information about dynamic memory is obtained from OF. This patch implements the two OF bindings: * uio,number-of-dynamic-regions * uio,dynamic-regions-sizes

Re: [alsa-devel] [PATCH v2 4/5] ARM: dts: rockchip: Add shared file for audio related nodes for veyron boards

2016-05-17 Thread Heiko Stuebner
Am Dienstag, 17. Mai 2016, 10:14:55 schrieb Enric Balletbo Serra: > Hi Heiko, > > 2016-05-16 0:06 GMT+02:00 Heiko Stuebner : > > Am Montag, 9. Mai 2016, 12:46:34 schrieb Enric Balletbo i Serra: > >> Set i2s block to "okay", add sound node for max98090 with gpios for > >> HP and Mic detect and pinc

Re: [PATCH 6/6] intel_sgx: TODO file for the staging area

2016-05-17 Thread Jarkko Sakkinen
On Tue, Apr 26, 2016 at 11:38:22PM -0700, Jethro Beekman wrote: > On 26-04-16 04:23, Jarkko Sakkinen wrote: > > In order to write test code I would need to use the SDK at minimum to > > generate EINITTOKEN for the test enclave. > > You could do this right now with the Rust tools for SGX [1] Right

[PATCH 1/5] drm/amd/amdgpu : Remove unused variable

2016-05-17 Thread Muhammad Falak R Wani
Remove unused variable 'ret', and directly return 0. Signed-off-by: Muhammad Falak R Wani --- drivers/gpu/drm/amd/amdgpu/cik_ih.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c index f2f14fe..e78c9b

[PATCH 2/5] drm/amd/amdgpu/cz_dpm: Remove unused variable

2016-05-17 Thread Muhammad Falak R Wani
Remove unused variable 'ret' from functions where it was not used anyway, and directly return 0. Signed-off-by: Muhammad Falak R Wani --- drivers/gpu/drm/amd/amdgpu/cz_dpm.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/d

[PATCH 3/5] drm/amd/amdgpu : Remove unused variable

2016-05-17 Thread Muhammad Falak R Wani
Remove unused variable 'ret', and directly return 0. Signed-off-by: Muhammad Falak R Wani --- drivers/gpu/drm/amd/amdgpu/cz_ih.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/cz_ih.c b/drivers/gpu/drm/amd/amdgpu/cz_ih.c index 23bd912..964956f 1

[PATCH 4/5] drm/amd/amdgpu : Remove unused variable

2016-05-17 Thread Muhammad Falak R Wani
Remove unused variable 'ret', and directly return 0. Signed-off-by: Muhammad Falak R Wani --- drivers/gpu/drm/amd/amdgpu/iceland_ih.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c index 5c4

[PATCH 5/5] drm/amd/amdgpu : Remove unused variable

2016-05-17 Thread Muhammad Falak R Wani
Remove unused variable 'ret', and directly return 0. Signed-off-by: Muhammad Falak R Wani --- drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c index 55cdab8..

Re: [GIT PULL] EFI fix

2016-05-17 Thread Matt Fleming
On Tue, 17 May, at 10:04:34AM, Matt Fleming wrote: > > Now I'm wondering whether other users of FRAME_BEGIN/FRAME_END make > this same mistake. Coccinelle might be able to detect it perhaps. A quick bit of sed turned up the code in arch/x86/entry/entry_64.S, which looks to suffer from the same bu

Re: [PATCH 2/5] i2c: Add STM32F4 I2C driver

2016-05-17 Thread Maxime Coquelin
Hi Cedric, 2016-05-11 17:36 GMT+02:00 M'boumba Cedric Madianga : > This patch adds support for the STM32F4 I2C controller. > > Signed-off-by: M'boumba Cedric Madianga > --- > drivers/i2c/busses/Kconfig | 10 + > drivers/i2c/busses/Makefile | 1 + > drivers/i2c/busses/i2c-stm32f4.c

Re: [PATCH 3.14 17/17] arm64: Make arch_randomize_brk avoid stack area

2016-05-17 Thread Jon Medhurst (Tixy)
On Mon, 2016-05-16 at 18:14 -0700, Greg Kroah-Hartman wrote: > 3.14-stable review patch. If anyone has any objections, please let me know. As reported by Guenter Roeck, this patch doesn't compile on 3.14 because it deleted randomize_base which is still used by the macro ELF_ET_DYN_BASE. That use

[PATCH 04/14] staging: comedi: daqboard2000: add blank line after struct declaration

2016-05-17 Thread Ian Abbott
Fix checkpatch issue: "CHECK: Please use a black line after function/struct/union/enum declarations". Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/daqboard2000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/c

[PATCH 00/14] staging: comedi: daqboard2000: checkpatch clean-ups

2016-05-17 Thread Ian Abbott
This series of patches to the daqboard2000 driver is mostly to fix the checkpatch.pl warnings. There is one warning remaining about one of the `udelay` calls with a parameter of 10 microseconds, but I decided to leave it alone, as converting it to `usleep_range` could increase firmware loading tim

[PATCH 02/14] staging: comedi: daqboard2000: use usual block comment style

2016-05-17 Thread Ian Abbott
Reformat one of the block comments to conform to the usual style (it's the only one that doesn't). Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/daqboard2000.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/daqboard2000.c

[PATCH 14/14] staging: comedi: daqboard2000: prefer usleep_range()

2016-05-17 Thread Ian Abbott
The checkpatch.pl warns about two `udelay(x)` calls, one of 100 microseconds, and one of 10 microseconds. The 100 microseconds one is used when waiting for FPGA to become ready to accept firmware, and is not that critical, so replace it with a call to `usleep_range(100, 1000)`. The 10 microsecond

[PATCH 13/14] staging: comedi: daqboard2000: rename CamelCase functions

2016-05-17 Thread Ian Abbott
Rename functions to avoid CamelCase warnings from checkpatch, and to use namespace associated with the driver. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/daqboard2000.c | 80 ++- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/drivers/sta

[PATCH 05/14] staging: comedi: daqboard2000: rename serial EEPROM register macros

2016-05-17 Thread Ian Abbott
Rename the macros defining values for the Serial EEPROM Control Register to avoid CamelCase. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/daqboard2000.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/comedi/drivers

[PATCH 12/14] staging: comedi: daqboard2000: rename reference DACs register macros

2016-05-17 Thread Ian Abbott
Rename the macros that define values for the reference DACs register to avoid CamelCase, and to make it clearer which register they are associated with. Add a macro `DAQBOARD2000_REF_DACS_SET` for the value `0x80` that triggers setting one of the references. Signed-off-by: Ian Abbott --- driver

[PATCH 11/14] staging: comedi: daqboard2000: rename trigger control register macros

2016-05-17 Thread Ian Abbott
Rename the macros that define values for the trigger control register to avoid CamelCase, and to make it clearer which register they are associated with. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/daqboard2000.c | 26 ++ 1 file changed, 14 insertions(+),

[PATCH 10/14] staging: comedi: daqboard2000: redo DAC status macros and fix busy

2016-05-17 Thread Ian Abbott
Rename the macros defining values for the DAC status register to avoid CamelCase, and to make it clear which register they are associated with. Refactor the macros defining the regular DAC channel "busy" bits into a single macro that takes the DAC channel number as a parameter. Add a macro to defi

  1   2   3   4   5   6   7   >