Re: [BUG] cgroup/workques/fork: deadlock when moving cgroups

2016-04-15 Thread Michal Hocko
On Thu 14-04-16 13:50:55, Johannes Weiner wrote: > On Wed, Apr 13, 2016 at 09:23:14PM +0200, Michal Hocko wrote: > > I think we can live without lru_add_drain_all() in the migration path. > > Agreed. Michal, would you care to send a patch to remove it? Now that I am looking closer I am not sure t

[PATCH] ARM: cache-uniphier: activate ways for secondary CPUs

2016-04-15 Thread Masahiro Yamada
This outer cache allows to control active ways independently for each CPU, but currently nothing is done for secondary CPUs. In other words, all the ways are locked for secondary CPUs by default. This commit fixes it to fully bring out the performance of this outer cache. There would be two possi

Re: [PATCH] sched/deadline: Fix a bug in dl_overflow()

2016-04-15 Thread Juri Lelli
[+Luca] Hi, On 14/04/16 20:19, Xunlei Pang wrote: > I got a minus(very big) dl_b->total_bw during my deadline tests. > > # grep dl /proc/sched_debug > dl_rq[0]: > .dl_nr_running : 0 > .dl_bw->bw : 996147 > .dl_bw->total_bw : -

Re: [PATCH] i2c: designware-platdrv: implement bus recovery

2016-04-15 Thread Mika Westerberg
On Fri, Apr 15, 2016 at 02:08:43PM +0800, Jisheng Zhang wrote: > Dear Mika, > > On Thu, 14 Apr 2016 17:39:16 +0300 Mika Westerberg wrote: > > > On Thu, Apr 14, 2016 at 10:04:56PM +0800, Jisheng Zhang wrote: > > > Implement bus recovery methods for i2c designware so we can recover > > > from situa

Re: [PATCH] libnvdimm, btt: add btt startup debug

2016-04-15 Thread Johannes Thumshirn
On Donnerstag, 14. April 2016 19:40:42 CEST Dan Williams wrote: > Report the reason for btt probe failures when debug is enabled. > > Signed-off-by: Dan Williams Looks good to me, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn

Re: [PATCH 1/5] tracing: Add param to event_trigger_ops.func() for instances

2016-04-15 Thread kbuild test robot
-event_trigger_ops-func-for-instances/20160415-145801 config: i386-randconfig-x000-201615 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 Note: the linux-review/Howard-Cochran/tracing-Add-param-to-event_trigger_ops-func-for-instances

Re: [PATCH] libnvdimm, pmem: clarify the write+clear_poison+write flow

2016-04-15 Thread Johannes Thumshirn
On Donnerstag, 14. April 2016 19:40:47 CEST Dan Williams wrote: > The ACPI specification does not specify the state of data after a clear > poison operation. Potential future libnvdimm bus implementations for > other architectures also might not specify or disagree on the state of > data after cle

Re: [RT PATCH] cputime: remove raw locks introduced by RT patchset

2016-04-15 Thread Sebastian Andrzej Siewior
On 04/15/2016 05:09 AM, Clark Williams wrote: > Sebastian, Hi Clark, > This patch removes the raw spinlock operations when updating cputtime > in the vtime_* functions in kernel/sched/cputime.c. > > Based on Frederic's commit b7ce2277f087fd052, there is no need for > the raw spinlocks in vtime_*

[PATCH] drm/amdgpu: fix compare_const_fl.cocci warnings

2016-04-15 Thread Julia Lawall
Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- Could be nice to put the thing being tested first. amdgpu_grph_object_id_helpers.c |4 ++-- 1 file changed, 2 insertio

Re: [PATCH] mpt3sas: Remove usage of 'struct timeval'

2016-04-15 Thread Johannes Thumshirn
On Mittwoch, 13. April 2016 00:01:40 CEST Tina Ruchandani wrote: > 'struct timeval' will have its tv_sec value overflow on 32-bit systems > in year 2038 and beyond. This patch replaces the use of struct timeval > for computing mpi_request.TimeStamp, and instead uses ktime_t which provides > 64-bit

[RESEND PATCH v4 1/2] devicetree: Add UCS1002 USB Port Power Controller binding

2016-04-15 Thread Enric Balletbo i Serra
The UCS1002-2 provides a USB port power switch for precise control of up to 2.5 amperes continuous current. You can add support to your board with current binding. Example: ucs1002: ucs1002@57 { compatible = "microchip,ucs1002"; reg = <0x57>; }; Signed-off-by:

[RESEND PATCH v4 0/2] Add UCS1002 USB Port Power Controller

2016-04-15 Thread Enric Balletbo i Serra
Dear all, This is the fourth version of the UCS1002 driver, a Programmable USB Port Power Controller with Charger Emulation. Any comments are welcome. Thanks in advance. Enric Balletbo i Serra (2): devicetree: Add UCS1002 USB Port Power Controller binding power: ucs1002: Add support for Prog

[RESEND PATCH v4 2/2] power: ucs1002: Add support for Programmable USB Port Power Controller

2016-04-15 Thread Enric Balletbo i Serra
The UCS1002-2 provides a USB port power switch for precise control of up to 2.5 amperes continuous current with over-current limit (OCL), dynamic thermal management, latch or auto-recovery (low test current) fault handling, selectable active low or high enable, under- and over-voltage lockout, back

Re: [PATCH v5 01/21] x86, KASLR: Remove unneeded boot_params argument

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > From: Yinghai Lu > > Since the boot_params can be found using the real_mode global variable, there > is > no need to pass around a pointer to it. This slightly simplifies the > choose_kernel_location function and its callers. Yeah, so I really wanted to apply this seri

Re: [PATCH v5 2/2] i2c: rk3x: add i2c support for rk3399 soc

2016-04-15 Thread Heiko Stübner
David, Am Donnerstag, 14. April 2016, 20:48:48 schrieb Wolfram Sang: > > + - input-clk-rate : frequency rate of function clock used(in Hz). If > > omitted, + the default clock rate is used. It is just used at rk3399 soc. > > Why is this needed? Why don't we simply use the default or calculate th

Re: [PATCH] fujitsu-laptop: Support radio LED

2016-04-15 Thread Darren Hart
On Fri, Apr 15, 2016 at 03:30:15PM +0930, Jonathan Woithe wrote: > Hi Darren > > On Thu, Apr 14, 2016 at 10:44:52PM -0700, Darren Hart wrote: > > On Fri, Apr 15, 2016 at 03:03:33PM +0930, Jonathan Woithe wrote: > > > > I've made a couple cosmetic changes and queued to for-next. Please > > > > rev

Re: [PATCH] i2c: designware-platdrv: implement bus recovery

2016-04-15 Thread Jisheng Zhang
On Fri, 15 Apr 2016 10:07:46 +0300 Mika Westerberg wrote: > On Fri, Apr 15, 2016 at 02:08:43PM +0800, Jisheng Zhang wrote: > > Dear Mika, > > > > On Thu, 14 Apr 2016 17:39:16 +0300 Mika Westerberg wrote: > > > > > On Thu, Apr 14, 2016 at 10:04:56PM +0800, Jisheng Zhang wrote: > > > > Implem

Re: [PATCH v7 3/3] gpio: dwapb: add gpio-signaled acpi event support

2016-04-15 Thread Linus Walleij
On Tue, Apr 12, 2016 at 8:46 AM, Mika Westerberg wrote: > On Mon, Apr 11, 2016 at 08:43:22PM +0800, Jiang Qiu wrote: >> > Currently it just complains if something goes wrong. The GPIO driver >> > itself can still work just fine (including interrupts). >> > >> > I'm fine to change it to return an e

Re: [PATCH] acpi/acpica: fix Thunderbolt hotplug

2016-04-15 Thread Mika Westerberg
Bob, Rafael, any comments about this? This seems to solve a real issue with Thunderbolt hotplug on Dell XPS laptops. I do not know ACPICA that well to tell if this is 100% correct fix but many reporters say it fixes the problem they are facing: https://bugzilla.kernel.org/show_bug.cgi?id=115121

Re: [PATCH 01/19] tree wide: get rid of __GFP_REPEAT for order-0 allocations part I

2016-04-15 Thread Michal Hocko
On Thu 14-04-16 12:56:28, David Rientjes wrote: > On Mon, 11 Apr 2016, Michal Hocko wrote: > > > From: Michal Hocko > > > > __GFP_REPEAT has a rather weak semantic but since it has been introduced > > around 2.6.12 it has been ignored for low order allocations. Yet we have > > the full kernel tr

Re: [PATCH 1/7] soc/tegra: pmc: Use BIT macro for register field definition

2016-04-15 Thread Linus Walleij
On Tue, Apr 12, 2016 at 5:26 PM, Thierry Reding wrote: > Does this matter at all? We use the explicit notation in quite a number > of places and it works great. I'd like to avoid needless churn unless > there is a very good reason to switch. I am softly enforcing in the GPIO subsystem because I

Re: [PATCH v5 02/21] x86, KASLR: Handle kernel relocation above 2G

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > From: Baoquan He > > When processing the relocation table, the offset used to calculate the > relocation is an int. This is sufficient for calculating the physical > address of the relocs entry on 32-bit systems and on 64-bit systems when > the relocation is under 2G. To h

Re: [RFC 3/8] drm/fence: allow fence waiting to be interrupted by userspace

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:36PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > If userspace is running an synchronously atomic commit and interrupts the > atomic operation during fence_wait() it will hang until the timer expires, > so here we change the wait to be interruptible so i

[PATCH] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread zengzhaoxiu
From: Zhaoxiu Zeng blackfin has popcount instruction (ONES), we can do the efficient computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. Adapted from "https://en.wikipedia.org/wiki/Find_first_set"; and arch/ia64/include/asm/bitops.h. Signed-off-by: Zhaoxiu Zeng --- arch/blackfin

Re: [PATCH 4/7] soc/tegra: pmc: Add interface to set voltage of IO rails

2016-04-15 Thread Linus Walleij
On Tue, Apr 12, 2016 at 4:56 PM, Laxman Dewangan wrote: > NVIDIA Tegra210 supports some of the IO interface which can operate > at 1.8V or 3.3V I/O rail voltage levels. SW needs to configure > Tegra PMC register to set different voltage level of IO interface based > on IO rail voltage from power

Re: [RFC 2/8] dma-buf/sync_file: add sync_file_fences_get()

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:35PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > Creates a function that given an sync file descriptor returns a > fence_collection containing all fences in the sync_file. > > If there is only one fence in the sync_file this fence itself is returned, >

Re: [PATCH v7 3/3] gpio: dwapb: add gpio-signaled acpi event support

2016-04-15 Thread Jiang Qiu
在 2016/4/15 15:40, Linus Walleij 写道: > On Tue, Apr 12, 2016 at 8:46 AM, Mika Westerberg > wrote: >> On Mon, Apr 11, 2016 at 08:43:22PM +0800, Jiang Qiu wrote: Currently it just complains if something goes wrong. The GPIO driver itself can still work just fine (including interrupts).

Re: [PATCH 4/7] soc/tegra: pmc: Add interface to set voltage of IO rails

2016-04-15 Thread Mark Brown
On Fri, Apr 15, 2016 at 09:54:34AM +0200, Linus Walleij wrote: > On Tue, Apr 12, 2016 at 4:56 PM, Laxman Dewangan wrote: > > NVIDIA Tegra210 supports some of the IO interface which can operate > > at 1.8V or 3.3V I/O rail voltage levels. SW needs to configure > > Tegra PMC register to set differe

Re: [PATCH v2] i2c: Add generic support passing secondary devices addresses

2016-04-15 Thread Mika Westerberg
+Srinivas On Sun, Jan 31, 2016 at 04:33:00PM +0100, Jean-Michel Hautbois wrote: > Some I2C devices have multiple addresses assigned, for example each address > corresponding to a different internal register map page of the device. > So far drivers which need support for this have handled this with

Re: [RFC 1/8] dma-buf/fence: add fence_collection fences

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:34PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > struct fence_collection inherits from struct fence and carries a > collection of fences that needs to be waited together. > > It is useful to translate a sync_file to a fence to remove the complexity > o

Re: [PATCH 0/5] hisi_sas: v2 hw SATA fixes

2016-04-15 Thread John Garry
On 15/04/2016 03:20, Martin K. Petersen wrote: "John" == John Garry writes: John> This patchset introduces SATA support fixes for the HiSilicon v2 John> hw SAS controller. John> Fixes include: - attach issue for SATA disk attached through John> expander - intermittent issue for directly attac

Re: [RFC 4/8] drm/fence: add in-fences support

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:37PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > There is now a new property called FENCE_FD attached to every plane > state that receives the sync_file fd from userspace via the atomic commit > IOCTL. > > The fd is then translated to a fence (that may

Re: [PATCH v5 03/21] x86, KASLR: Drop CONFIG_RANDOMIZE_BASE_MAX_OFFSET

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > From: Baoquan He > > Currently CONFIG_RANDOMIZE_BASE_MAX_OFFSET is used to limit the maximum > offset for kernel randomization. This limit doesn't need to be a CONFIG > since it is tied completely to KERNEL_IMAGE_SIZE, and will make no sense > once physical and virtual off

Re: [PATCH 7/7] pinctrl: tegra: Add driver to configure voltage and power state of io pads

2016-04-15 Thread Linus Walleij
On Tue, Apr 12, 2016 at 4:56 PM, Laxman Dewangan wrote: > NVIDIA Tegra210 supports the IO pads which can operate at 1.8V > or 3.3V I/O voltage levels. Also the IO pads can be configured > for power down state if it is not used. SW needs to configure the > voltage level of IO pads based on IO rail

Re: [RFC 5/8] drm/fence: add fence to drm_pending_event

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:38PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > Now a drm_pending_event can either send a real drm_event or signal a > fence, or both. It allow us to signal via fences when the buffer is > displayed on the screen. Which in turn means that the previous

Re: [PATCH v5 04/21] x86, boot: Move compressed kernel to end of decompression buffer

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > From: Yinghai Lu > > This change makes later calculations about where the kernel is located > easier to reason about. To better understand this change, we must first > clarify what VO and ZO are. They were introduced in commits by hpa: > > 77d1a49 x86, boot: make symbols

Re: [RFC 4/8] drm/fence: add in-fences support

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:37PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > There is now a new property called FENCE_FD attached to every plane > state that receives the sync_file fd from userspace via the atomic commit > IOCTL. > > The fd is then translated to a fence (that may

Re: [PATCH v5 05/21] x86, boot: Calculate decompression size during boot not build

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > From: Yinghai Lu > > Currently z_extract_offset is calculated in boot/compressed/mkpiggy.c. What is the high level meaning of z_extract_offset? I cannot tell without reading the code - and the point of changelogs is for them to be readable without having to read the c

Re: [PATCH] sched/deadline: Fix a bug in dl_overflow()

2016-04-15 Thread Xunlei Pang
On 2016/04/15 at 15:07, Juri Lelli wrote: > [+Luca] > > Hi, > > On 14/04/16 20:19, Xunlei Pang wrote: >> I got a minus(very big) dl_b->total_bw during my deadline tests. >> >> # grep dl /proc/sched_debug >> dl_rq[0]: >> .dl_nr_running : 0 >> .dl_bw->bw

Re: [PATCH v5 16/24] ARM: explicitly apply PWM config extracted from pwm_args

2016-04-15 Thread Krzysztof Kozlowski
On 04/14/2016 09:17 PM, Boris Brezillon wrote: > Call pwm_apply_args() just after requesting the PWM device so that the > polarity and period are initialized according to the information provided > in pwm_args. > > This is an intermediate state, and pwm_apply_args() should be dropped as > soon as

Re: [PATCH v3 1/2] ext4: Pass in DIO_SKIP_DIO_COUNT flag if inode_dio_begin() called

2016-04-15 Thread Dave Chinner
On Thu, Apr 14, 2016 at 12:21:13PM -0400, Waiman Long wrote: > On 04/13/2016 11:16 PM, Dave Chinner wrote: > >On Tue, Apr 12, 2016 at 02:12:54PM -0400, Waiman Long wrote: > >>When performing direct I/O, the current ext4 code does > >>not pass in the DIO_SKIP_DIO_COUNT flag to dax_do_io() or > >>__b

Re: [RFC 8/8] drm/fence: add out-fences support

2016-04-15 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 06:29:41PM -0700, Gustavo Padovan wrote: > From: Gustavo Padovan > > Support DRM out-fences creating a sync_file with a fence for each crtc > update with the DRM_MODE_ATOMIC_OUT_FENCE flag. > > We then send an struct drm_out_fences array with the out-fences fds back in >

Re: [PATCH 2/4] pinctrl: iproc: Allow certain PINCONF functions to be disabled

2016-04-15 Thread Linus Walleij
On Wed, Apr 13, 2016 at 2:15 AM, Ray Jui wrote: > The iProc GPIO controller is shared among multiple iProc based SoCs. In > some of these SoCs, certain PINCONF functions are disabled and registers > associated with these functions are reserved. This patch adds support to > the iProc GPIO/PINCOF d

[PATCH] ti-st: Fix complete_all() wrong usage

2016-04-15 Thread Daniel Wagner
From: Daniel Wagner complete_all() should only be called once, doing it twice is a clear bug. 8565adbc8214 ("drivers/misc/ti-st: fix read fw version cmd") added the additional complete_all() call. Since we call complete_all() when leaving the function we can drop the complete_all() call inside t

[PATCH V2] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread zengzhaoxiu
From: Zhaoxiu Zeng blackfin has popcount instruction (ONES), we can do the efficient computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. Adapted from "https://en.wikipedia.org/wiki/Find_first_set"; and arch/ia64/include/asm/bitops.h. Changes to V1: - Use hweight32 instead __arch_h

Re: [PATCH 4/4] pinctrl: iproc: Allow PINCONF to be disabled completely

2016-04-15 Thread Linus Walleij
On Wed, Apr 13, 2016 at 2:15 AM, Ray Jui wrote: > In some of the future iProc based SoCs, pinconf is handled by another > block and the iProc GPIO controller is solely used as a GPIO controller. > This patch adds support of a new compatible string "brcm,iproc-gpio-only", > that is introduced to h

[PATCH 1/1] powerpc/86xx: Set the right interrupt-cells for pcie nodes

2016-04-15 Thread Alessio Igor Bogani
Commit 595207b93fe4 ("powerpc/86xx: Update device tree") removes wrongly #interrupt-cells from pcie nodes. Fix it letting these come back to the right place. Signed-off-by: Alessio Igor Bogani --- arch/powerpc/boot/dts/fsl/gef_sbc310.dts | 1 + arch/powerpc/boot/dts/fsl/mpc8641_hpcn.dts

Re: [RFC PATCH 1/1] powerpc/fsl: Fix build of the dtb embedded kernel images

2016-04-15 Thread Alessio Igor Bogani
Hi, On 6 April 2016 at 15:45, Alessio Igor Bogani wrote: > The commit dc37374 move a lot of device tree files into fsl directory > fixing Makefile for cuImage target only. Unfortunately there are others > target which require to embebbed device tree into the kernel image > (i.e. dtbImage.%). So u

Re: Live patching for powerpc

2016-04-15 Thread Miroslav Benes
On Thu, 14 Apr 2016, Jessica Yu wrote: > +++ Miroslav Benes [14/04/16 15:28 +0200]: > > On Wed, 13 Apr 2016, Jessica Yu wrote: > > > > A second concern I have is that apply_relocate_add() relies on > > > sections like .stubs and .toc (for 64-bit) and .init.plt and .plt > > > sections (for 32-bit)

Re: [RESEND 09/11] pwm: sti: Add PWM Capture call-back

2016-04-15 Thread Lee Jones
On Wed, 13 Apr 2016, Thierry Reding wrote: > On Wed, Apr 13, 2016 at 11:25:54AM +0100, Lee Jones wrote: > > On Tue, 12 Apr 2016, Thierry Reding wrote: > > > > > On Wed, Mar 02, 2016 at 03:32:07PM +, Lee Jones wrote: > > > > Once a PWM Capture has been initiated, the capture call > > > > enabl

Re: [PATCH v2] pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce

2016-04-15 Thread Linus Walleij
On Sat, Apr 2, 2016 at 8:57 AM, Yingjoe Chen wrote: > The debounce time unit for gpio_chip.set_debounce is us but > mtk_gpio_set_debounce regard it as ms. > Fix this by correct debounce time array dbnc_arr so it can find correct > debounce setting. Debounce time for first debounce setting is 500u

Re: [PATCH v5 07/21] x86, boot: Fix run_size calculation

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > From: Yinghai Lu > > Currently, the kernel run_size (size of code plus brk and bss) is > calculated via the shell script arch/x86/tools/calc_run_size.sh. > It gets the file offset and mem size of for the .bss and .brk sections in > vmlinux, and adds them as follows: 'of

[PATCH v3 2/2] dt-bindings: ARM: Mediatek: add interrupt as required properties to the mt6397/mt6323 doc

2016-04-15 Thread Henry Chen
MT6397/MT6323 have one interrupt line connected to the main SoC. Interrupt should be required feature of pmic, each sub module also need it to complete their function or error detect, add it as required properties on dts file. Signed-off-by: Henry Chen --- Documentation/devicetree/bindings/mfd/m

[PATCH v3 1/2] mfd: mt6397: irq domain should initialize before mfd_add_devices()

2016-04-15 Thread Henry Chen
Some sub driver like RTC module need irq domain from parent to create irq mapping when driver initialize. so move mt6397_irq_init() before mfd_add_devices(). Acked-by: John Crispin Signed-off-by: Henry Chen --- This series fixed the below warning based on "Linux kernel v4.6-rc1" WARNING: CPU: 1

Re: [PATCH] gpio: omap: fix irq triggering in smart-idle wakeup mode

2016-04-15 Thread Linus Walleij
On Tue, Apr 12, 2016 at 12:52 PM, Grygorii Strashko wrote: > Now GPIO IRQ loss is observed on dra7-evm after suspend/resume cycle (...) > Cc: Roger Quadros > Signed-off-by: Grygorii Strashko Can I get some explicit ACK / Tested-by tags for this patch? Is it a serious regression that will need

Re: [PATCH 4/7] soc/tegra: pmc: Add interface to set voltage of IO rails

2016-04-15 Thread Laxman Dewangan
On Friday 15 April 2016 01:30 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 15, 2016 at 09:54:34AM +0200, Linus Walleij wrote: On Tue, Apr 12, 2016 at 4:56 PM, Laxman Dewangan wrote: NVIDIA Tegra210 supports some of the IO interface which can operate at 1.8V or 3.3V I/O ra

Re: [PATCH v2 1/8] PM / devfreq: event: Add new Exynos NoC probe driver

2016-04-15 Thread Krzysztof Kozlowski
On 04/15/2016 08:32 AM, Chanwoo Choi wrote: > This patch adds NoC (Network on Chip) Probe driver which provides > the primitive values to get the performance data. The packets that the Network > on Chip (NoC) probes detects are transported over the network infrastructure. > Exynos542x bus has multi

Re: binary execution from DAX mount hang since next-20160407

2016-04-15 Thread Hugh Dickins
On Fri, 15 Apr 2016, Xiong Zhou wrote: > Hi, all > > Since tag next-20160407 in linux-next repo, executing binary > from/in DAX mount hangs. > > It does not hang if mount without dax option. > It hangs with both xfs and ext4. > It does not hang if execute from a -t tmpfs mount. > It does not han

Re: mmotm woes, mainly compaction

2016-04-15 Thread Michal Hocko
On Thu 14-04-16 13:15:51, Hugh Dickins wrote: > On Tue, 12 Apr 2016, Michal Hocko wrote: [...] > > @@ -938,7 +938,7 @@ static int __unmap_and_move(struct page *page, struct > > page *newpage, > > * the retry loop is too short and in the sync-light case, > > * the overhead

Re: [PATCH] drm/amdgpu: fix compare_const_fl.cocci warnings

2016-04-15 Thread Christian König
Am 15.04.2016 um 09:15 schrieb Julia Lawall: Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall In general the patch looks ok, but do we have a documented preference where to

Re: [PATCH 7/7] pinctrl: tegra: Add driver to configure voltage and power state of io pads

2016-04-15 Thread Laxman Dewangan
On Friday 15 April 2016 01:38 PM, Linus Walleij wrote: On Tue, Apr 12, 2016 at 4:56 PM, Laxman Dewangan wrote: NVIDIA Tegra210 supports the IO pads which can operate at 1.8V or 3.3V I/O voltage levels. Also the IO pads can be configured for power down state if it is not used. SW needs to conf

[PATCH v6 2/2] dmaengine: Add Xilinx zynqmp dma engine driver support

2016-04-15 Thread Kedareswara rao Appana
Added the driver for zynqmp dma engine used in Zynq UltraScale+ MPSoC. This dma controller supports memory to memory and memory to I/O buffer transfers. Signed-off-by: Punnaiah Choudary Kalluri Signed-off-by: Kedareswara rao Appana --- Changes in v6: - Removed unnecessary axcache properties from

RE: [PATCH v5 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-04-15 Thread Appana Durga Kedareswara Rao
Hi Rob, Thanks for the review... > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Thursday, April 14, 2016 8:34 PM > To: Appana Durga Kedareswara Rao > Cc: pawel.m...@arm.com; mark.rutl...@arm.com; > ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; Mi

Re: [PATCH v5 00/10] Support for Cortex-M Prototyping System

2016-04-15 Thread Sudeep Holla
On 14/04/16 20:25, Greg KH wrote: On Thu, Apr 14, 2016 at 09:47:57AM +0100, Vladimir Murzin wrote: Hi, On 01/04/16 15:02, Vladimir Murzin wrote: Hi, This patch series provides the basic support for running ucLinux on V2M-MPS2 platform. With these patches applied ucLinux can be run on both

[PATCH v6 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-04-15 Thread Kedareswara rao Appana
Device-tree binding documentation for Xilinx zynqmp dma engine used in Zynq UltraScale+ MPSoC. Signed-off-by: Punnaiah Choudary Kalluri Signed-off-by: Kedareswara rao Appana --- Changes in v6: - Removed desc-axi-cache/dst-axi-cache/src-axi-cache properties from the binding doc as it allow brok

Re: [PATCH v3 1/2] ARM: dts: Add expansion bus to VExpress

2016-04-15 Thread Sudeep Holla
On 14/04/16 16:39, Brian Starkey wrote: The VExpress development platform has an external expansion bus which can be used for additional hardware (e.g. LogicTile Express daughterboards). Add this bus to the VExpress CoreTile device-trees. The bus is described for a CoreTile occupying site 1.

[PATCH 01/28] mm, page_alloc: Only check PageCompound for high-order pages

2016-04-15 Thread Mel Gorman
order-0 pages by definition cannot be compound so avoid the check in the fast path for those pages. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 59de90d5d3a3..5

[PATCH 02/28] mm, page_alloc: Use new PageAnonHead helper in the free page fast path

2016-04-15 Thread Mel Gorman
The PageAnon check always checks for compound_head but this is a relatively expensive check if the caller already knows the page is a head page. This patch creates a helper and uses it in the page free path which only operates on head pages. With this patch and "Only check PageCompound for high-or

[PATCH 00/28] Optimise page alloc/free fast paths v3

2016-04-15 Thread Mel Gorman
There were no further responses to the last series but I kept going and added a few more small bits. Most are basic micro-optimisations. The last two patches weaken debugging checks to improve performance at the cost of delayed detection of some use-after-free and memory corruption bugs. If they m

[PATCH 05/28] mm, page_alloc: Inline the fast path of the zonelist iterator

2016-04-15 Thread Mel Gorman
The page allocator iterates through a zonelist for zones that match the addressing limitations and nodemask of the caller but many allocations will not be restricted. Despite this, there is always functional call overhead which builds up. This patch inlines the optimistic basic case and only calls

[PATCH 04/28] mm, page_alloc: Inline zone_statistics

2016-04-15 Thread Mel Gorman
zone_statistics has one call-site but it's a public function. Make it static and inline. The performance difference on a page allocator microbenchmark is; 4.6.0-rc2 4.6.0-rc2 statbranch-v1r20

[PATCH 03/28] mm, page_alloc: Reduce branches in zone_statistics

2016-04-15 Thread Mel Gorman
zone_statistics has more branches than it really needs to take an unlikely GFP flag into account. Reduce the number and annotate the unlikely flag. The performance difference on a page allocator microbenchmark is; 4.6.0-rc2 4.6.0-rc2

[PATCH 06/28] mm, page_alloc: Use __dec_zone_state for order-0 page allocation

2016-04-15 Thread Mel Gorman
__dec_zone_state is cheaper to use for removing an order-0 page as it has fewer conditions to check. The performance difference on a page allocator microbenchmark is; 4.6.0-rc2 4.6.0-rc2 optiter-v1r

[PATCH 07/28] mm, page_alloc: Avoid unnecessary zone lookups during pageblock operations

2016-04-15 Thread Mel Gorman
Pageblocks have an associated bitmap to store migrate types and whether the pageblock should be skipped during compaction. The bitmap may be associated with a memory section or a zone but the zone is looked up unconditionally. The compiler should optimise this away automatically so this is a cosmet

[PATCH 11/28] mm, page_alloc: Remove unnecessary initialisation in get_page_from_freelist

2016-04-15 Thread Mel Gorman
See subject. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 313db1c43839..f5ddb342c967 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2674,7 +2674,6 @@ get_page_from_freelist(gfp_t

Re: [PATCH] mmc: reduce nesting and join error strings into one line

2016-04-15 Thread Masahiro Yamada
Hi Ulf, No interest in this clean-up? 2016-02-09 20:43 GMT+09:00 Masahiro Yamada : > No reason to use the double "if" nesting. This fix allows to move > the nested block to the left and tidy up the error message without > 80-col overflow. > > Signed-off-by: Masahiro Yamada > --- > > drivers/m

[PATCH 10/28] mm, page_alloc: Remove unnecessary local variable in get_page_from_freelist

2016-04-15 Thread Mel Gorman
zonelist here is a copy of a struct field that is used once. Ditch it. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e778485a64c1..313db1c43839 100644 --- a/mm/page_alloc.c +++ b/mm/page

[PATCH 09/28] mm, page_alloc: Convert nr_fair_skipped to bool

2016-04-15 Thread Mel Gorman
The number of zones skipped to a zone expiring its fair zone allocation quota is irrelevant. Convert to bool. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 4bce6298dd07..e778485a64c1

[PATCH 08/28] mm, page_alloc: Convert alloc_flags to unsigned

2016-04-15 Thread Mel Gorman
alloc_flags is a bitmask of flags but it is signed which does not necessarily generate the best code depending on the compiler. Even without an impact, it makes more sense that this be unsigned. Signed-off-by: Mel Gorman --- include/linux/compaction.h | 6 +++--- include/linux/mmzone.h | 3

Re: [RFC 1/8] dma-buf/fence: add fence_collection fences

2016-04-15 Thread Christian König
Am 15.04.2016 um 10:02 schrieb Daniel Vetter: On Thu, Apr 14, 2016 at 06:29:34PM -0700, Gustavo Padovan wrote: From: Gustavo Padovan struct fence_collection inherits from struct fence and carries a collection of fences that needs to be waited together. It is useful to translate a sync_file to

Re: [PATCHv2] x86/vdso: add mremap hook to vm_special_mapping

2016-04-15 Thread Dmitry Safonov
On 04/15/2016 01:58 AM, Andy Lutomirski wrote: On Thu, Apr 14, 2016 at 9:32 AM, Dmitry Safonov wrote: Add possibility for userspace 32-bit applications to move vdso mapping. Previously, when userspace app called mremap for vdso, in return path it would land on previous address of vdso page, res

Re: [PATCH v5 04/21] x86, boot: Move compressed kernel to end of decompression buffer

2016-04-15 Thread Ingo Molnar
* Kees Cook wrote: > When INIT_SIZE is bigger than VO_INIT_SIZE (uncommon but possible), > the copied ZO occupies the memory from extract_offset to the end of > decompression buffer. It overlaps with the soon-to-be-uncompressed kernel > like this: > > |-compresse

Re: [PATCH v2 4/8] ARM: dts: Add NoC Probe dt node for Exynos542x SoC

2016-04-15 Thread Krzysztof Kozlowski
On 04/15/2016 08:32 AM, Chanwoo Choi wrote: > This patch adds the NoCP (Network on Chip Probe) Device Tree node > to measure the bandwidth of memory and g3d in Exynos542x SoC. > > Signed-off-by: Chanwoo Choi > Tested-by: Markus Reichl > Tested-by: Anand Moon > --- > arch/arm/boot/dts/exynos542

Re: [PATCH v2 6/8] clk: samsung: exynos542x: Add the clock id for ACLK

2016-04-15 Thread Krzysztof Kozlowski
On 04/15/2016 08:32 AM, Chanwoo Choi wrote: > This patch adds the clock id for ACLK clock which is source clock of AMBA AXI > Bus. This clock should be handled in Bus frequency scaling driver. > > Cc: Sylwester Nawrocki > Cc: Tomasz Figa > Signed-off-by: Chanwoo Choi > Tested-by: Markus Reichl

Re: [PATCH v2 8/8] ARM: dts: Add support of Bus frequency using VDD_INT for exynos5422-odroidxu3

2016-04-15 Thread Krzysztof Kozlowski
On 04/15/2016 08:32 AM, Chanwoo Choi wrote: > This patch adds the bus device tree nodes for INT (Internal) block > to enable the AMBA bus frequency scaling and add the NoC (Network on Chip) > Probe Device Tree node to measure the bandwidht for AMBA AXI bus. > > The WCORE bus bus is parent device i

[PATCH 15/28] mm, page_alloc: Move might_sleep_if check to the allocator slowpath

2016-04-15 Thread Mel Gorman
There is a debugging check for callers that specify __GFP_DIRECT_RECLAIM from a context that cannot sleep. Triggering this is almost certainly a bug but it's also overhead in the fast path. Move the check to the slow path. It'll be harder to trigger as it'll only be checked when watermarks are depl

[PATCH 14/28] mm, page_alloc: Simplify last cpupid reset

2016-04-15 Thread Mel Gorman
The current reset unnecessarily clears flags and makes pointless calculations. Signed-off-by: Mel Gorman --- include/linux/mm.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index ffcff53e3b2b..60656db00abd 100644 --- a/include/li

[PATCH 16/28] mm, page_alloc: Move __GFP_HARDWALL modifications out of the fastpath

2016-04-15 Thread Mel Gorman
__GFP_HARDWALL only has meaning in the context of cpusets but the fast path always applies the flag on the first attempt. Move the manipulations into the cpuset paths where they will be masked by a static branch in the common case. With the other micro-optimisations in this series combined, the im

[PATCH 13/28] mm, page_alloc: Remove redundant check for empty zonelist

2016-04-15 Thread Mel Gorman
A check is made for an empty zonelist early in the page allocator fast path but it's unnecessary. When get_page_from_freelist() is called, it'll return NULL immediately. Removing the first check is slower for machines with memoryless nodes but that is a corner case that can live with the overhead.

[PATCH 20/28] mm, page_alloc: Shortcut watermark checks for order-0 pages

2016-04-15 Thread Mel Gorman
Watermarks have to be checked on every allocation including the number of pages being allocated and whether reserves can be accessed. The reserves only matter if memory is limited and the free_pages adjustment only applies to high-order pages. This patch adds a shortcut for order-0 pages that avoid

[PATCH 19/28] mm, page_alloc: Reduce cost of fair zone allocation policy retry

2016-04-15 Thread Mel Gorman
The fair zone allocation policy is not without cost but it can be reduced slightly. This patch removes an unnecessary local variable, checks the likely conditions of the fair zone policy first, uses a bool instead of a flags check and falls through when a remote node is encountered instead of doing

[PATCH 18/28] mm, page_alloc: Shorten the page allocator fast path

2016-04-15 Thread Mel Gorman
The page allocator fast path checks page multiple times unnecessarily. This patch avoids all the slowpath checks if the first allocation attempt succeeds. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --g

[PATCH 21/28] mm, page_alloc: Avoid looking up the first zone in a zonelist twice

2016-04-15 Thread Mel Gorman
The allocator fast path looks up the first usable zone in a zonelist and then get_page_from_freelist does the same job in the zonelist iterator. This patch preserves the necessary information. 4.6.0-rc2 4.6.0-rc2

[PATCH 17/28] mm, page_alloc: Check once if a zone has isolated pageblocks

2016-04-15 Thread Mel Gorman
When bulk freeing pages from the per-cpu lists the zone is checked for isolated pageblocks on every release. This patch checks it once per drain. Technically this is race-prone but so is the existing code. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 24/28] mm, page_alloc: Remove unnecessary variable from free_pcppages_bulk

2016-04-15 Thread Mel Gorman
The original count is never reused so it can be removed. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3a60579342a5..bdcd4087553e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c

[PATCH 27/28] mm, page_alloc: Defer debugging checks of freed pages until a PCP drain

2016-04-15 Thread Mel Gorman
Every page free checks a number of page fields for validity. This catches premature frees and corruptions but it is also expensive. This patch weakens the debugging check by checking PCP pages at the time they are drained from the PCP list. This will trigger the bug but the site that freed the corr

[PATCH 23/28] mm, page_alloc: Check multiple page fields with a single branch

2016-04-15 Thread Mel Gorman
Every page allocated or freed is checked for sanity to avoid corruptions that are difficult to detect later. A bad page could be due to a number of fields. Instead of using multiple branches, this patch combines multiple fields into a single branch. A detailed check is only necessary if that check

[PATCH 22/28] mm, page_alloc: Remove field from alloc_context

2016-04-15 Thread Mel Gorman
The classzone_idx can be inferred from preferred_zoneref so remove the unnecessary field and save stack space. Signed-off-by: Mel Gorman --- mm/compaction.c | 4 ++-- mm/internal.h | 3 ++- mm/page_alloc.c | 7 +++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/compactio

[PATCH 26/28] cpuset: use static key better and convert to new API

2016-04-15 Thread Mel Gorman
From: Vlastimil Babka An important function for cpusets is cpuset_node_allowed(), which optimizes on the fact if there's a single root CPU set, it must be trivially allowed. But the check "nr_cpusets() <= 1" doesn't use the cpusets_enabled_key static key the right way where static keys eliminate

[PATCH 28/28] mm, page_alloc: Defer debugging checks of pages allocated from the PCP

2016-04-15 Thread Mel Gorman
Every page allocated checks a number of page fields for validity. This catches corruption bugs of pages that are already freed but it is expensive. This patch weakens the debugging check by checking PCP pages only when the PCP lists are being refilled. All compound pages are checked. This potential

  1   2   3   4   5   6   7   8   9   10   >