Re: [RFC PATCH 1/1] mm/percpu.c: fix several trivial issues

2016-10-13 Thread zijun_hu
On 2016/10/14 8:34, Tejun Heo wrote: > On Tue, Oct 11, 2016 at 09:29:27PM +0800, zijun_hu wrote: >> From: zijun_hu >> >> as shown by pcpu_setup_first_chunk(), the first chunk is same as the >> reserved chunk if the reserved size is nonzero but the dynamic is zero >> this special scenario is

Re: [RFC PATCH 1/5] mm/page_alloc: always add freeing page at the tail of the buddy list

2016-10-13 Thread Joonsoo Kim
On Thu, Oct 13, 2016 at 11:04:39AM +0200, Vlastimil Babka wrote: > On 10/13/2016 10:08 AM, js1...@gmail.com wrote: > >From: Joonsoo Kim > > > >Currently, freeing page can stay longer in the buddy list if next higher > >order page is in the buddy list in order to help coalescence. However, > >it

Re: [RFC v2 PATCH] mm/percpu.c: simplify grouping CPU algorithm

2016-10-13 Thread zijun_hu
On 2016/10/14 8:33, Tejun Heo wrote: > Hello, > > On Fri, Oct 14, 2016 at 07:49:44AM +0800, zijun_hu wrote: >> the main intent of this change is making the CPU grouping algorithm more >> easily to understand, especially, for newcomer for memory managements >> take me as a example, i really take

Re: [PATCH RFC V3 6/6] KVM: LAPIC: Add APIC Timer periodic/oneshot mode VMX preemption timer support

2016-10-13 Thread Wanpeng Li
2016-10-13 20:35 GMT+08:00 Paolo Bonzini : > > > On 13/10/2016 13:34, Wanpeng Li wrote: >> From: Wanpeng Li >> >> Most windows guests still utilize APIC Timer periodic/oneshot mode >> instead of tsc-deadline mode, and the APIC Timer periodic/oneshot >> mode are still emulated by high overhead

Re: [RFC PATCH 2/5] mm/page_alloc: use smallest fallback page first in movable allocation

2016-10-13 Thread Joonsoo Kim
On Thu, Oct 13, 2016 at 11:12:10AM +0200, Vlastimil Babka wrote: > On 10/13/2016 10:08 AM, js1...@gmail.com wrote: > >From: Joonsoo Kim > > > >When we try to find freepage in fallback buddy list, we always serach > >the largest one. This would help for fragmentation if we process >

Re: [RFC PATCH 3/5] mm/page_alloc: stop instantly reusing freed page

2016-10-13 Thread Joonsoo Kim
On Thu, Oct 13, 2016 at 12:59:14PM +0200, Vlastimil Babka wrote: > On 10/13/2016 10:08 AM, js1...@gmail.com wrote: > >From: Joonsoo Kim > > > >Allocation/free pattern is usually sequantial. If they are freed to > >the buddy list, they can be coalesced. However, we first keep these freed > >pages

[PATCH] x86/smp: Add irq_enter/exit() in smp_reschedule_interrupt()

2016-10-13 Thread Wanpeng Li
=== [ INFO: suspicious RCU usage. ] 4.8.0+ #24 Not tainted --- ./arch/x86/include/asm/msr-trace.h:47 suspicious rcu_dereference_check() usage! other info that might help us debug this: RCU used illegally from idle CPU!

[GIT PULL] percpu changes for v4.9-rc1

2016-10-13 Thread Tejun Heo
Hello, Linus. percpu memory changes for v4.9-rc1. * Nick improved generic implementations of percpu operations which modify the variable and return so that they calculate the physical address only once. * percpu_ref percpu <-> atomic mode switching improvements. The patchset was

Re: [RFC PATCH 5/5] mm/page_alloc: support fixed migratetype pageblock

2016-10-13 Thread Joonsoo Kim
On Thu, Oct 13, 2016 at 01:05:11PM +0200, Vlastimil Babka wrote: > On 10/13/2016 10:08 AM, js1...@gmail.com wrote: > >From: Joonsoo Kim > > > >We have migratetype facility to minimise fragmentation. It dynamically > >changes migratetype of pageblock based on some criterias but it never > >be

Re: [PATCH] irqchip/gic: Enable gic_set_affinity set more than one cpu

2016-10-13 Thread Cheng Chao
Marc, Thanks for your comments. Cheng on 10/13/2016 11:31 PM, Marc Zyngier wrote: > On Thu, 13 Oct 2016 18:57:14 +0800 > Cheng Chao wrote: > >> GIC can distribute an interrupt to more than one cpu, >> but now, gic_set_affinity sets only one cpu to handle interrupt. > > What makes you think

[PATCH 2/2] arm64: dts: add msm8996 reboot mode support

2016-10-13 Thread Xiaogang Cui
Add reboot mode entry for MSM8996 platform. Signed-off-by: Xiaogang Cui --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 1222d2e..c9b14ab 100644 ---

linux-next: manual merge of the akpm tree with the net tree

2016-10-13 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: include/linux/mlx5/device.h between commit: b8a4ddb2e8f4 ("net/mlx5: Add MLX5_ARRAY_SET64 to fix BUILD_BUG_ON") from the net tree and patch: "include/linux/mlx5/device.h: kill BUILD_BUG_ON()s" from the akpm tree.

[PATCH 1/2] power: reset: Add qcom reboot mode driver

2016-10-13 Thread Xiaogang Cui
This is a initial version so it's very similar with syscon reboot mode driver. We will add more functionalities in the further after dependency is ready. Signed-off-by: Xiaogang Cui --- .../bindings/power_supply/qcom-reboot-mode.txt | 23 + drivers/power/reset/Kconfig

linux-next: Tree for Oct 14

2016-10-13 Thread Stephen Rothwell
Hi all, Please do *not* add any v4.10 material to your linux-next included trees until v4.9-rc1 has been released i.e. the merge window closes. Changes since 20161013: The akpm-current tree still had its build failures for which I applied 2 patches. The akpm tree gained a conflict against

Re: [RFC][PATCH] mount: In mark_umount_candidates and __propogate_umount visit each mount once

2016-10-13 Thread Andrey Vagin
On Thu, Oct 13, 2016 at 2:46 PM, Andrei Vagin wrote: > On Thu, Oct 13, 2016 at 02:53:46PM -0500, Eric W. Biederman wrote: >> >> Adrei Vagin pointed out that time to executue propagate_umount can go >> non-linear (and take a ludicrious amount of time) when the mount >> propogation trees of the

Re: [PATCH 1/2] power: reset: Add qcom reboot mode driver

2016-10-13 Thread Andy Yan
Hi Xiaogang: On 2016年10月14日 10:02, Xiaogang Cui wrote: This is a initial version so it's very similar with syscon reboot mode driver. We will add more functionalities in the further after dependency is ready. Signed-off-by: Xiaogang Cui --- As your commit messages said, "it's very

Re: [RFC][PATCH] mount: In mark_umount_candidates and __propogate_umount visit each mount once

2016-10-13 Thread Eric W. Biederman
Andrey Vagin writes: > On Thu, Oct 13, 2016 at 2:46 PM, Andrei Vagin wrote: >> On Thu, Oct 13, 2016 at 02:53:46PM -0500, Eric W. Biederman wrote: >>> >>> Adrei Vagin pointed out that time to executue propagate_umount can go >>> non-linear (and take a ludicrious amount of time) when the mount

Re: [PATCH] ceph: Fix uninitialized dentry pointer in ceph_real_mount()

2016-10-13 Thread Yan, Zheng
On Thu, Oct 13, 2016 at 11:15 PM, Geert Uytterhoeven wrote: > fs/ceph/super.c: In function ‘ceph_real_mount’: > fs/ceph/super.c:818: warning: ‘root’ may be used uninitialized in this > function > > If s_root is already valid, dentry pointer root is never initialized, > and returned by

[PATCH v8 0/8] power: add power sequence library

2016-10-13 Thread Peter Chen
Hi all, This is a follow-up for my last power sequence framework patch set [1]. According to Rob Herring and Ulf Hansson's comments[2]. The kinds of power sequence instances will be added at postcore_initcall, the match criteria is compatible string first, if the compatible string is not matched

Re: [PATCH v4 1/3] dt: cpufreq: brcm: New binding document for brcmstb-avs-cpufreq

2016-10-13 Thread Viresh Kumar
On 12-10-16, 15:12, Markus Mayer wrote: > Add the binding document for the new brcmstb-avs-cpufreq driver. > > Signed-off-by: Markus Mayer > Acked-by: Viresh Kumar > --- > .../bindings/cpufreq/brcm,stb-avs-cpu-freq.txt | 76 > ++ > MAINTAINERS

[PATCH v8 2/8] power: add power sequence library

2016-10-13 Thread Peter Chen
We have an well-known problem that the device needs to do some power sequence before it can be recognized by related host, the typical example like hard-wired mmc devices and usb devices. This power sequence is hard to be described at device tree and handled by related host driver, so we have

Re: [PATCH v4 0/3] Broadcom STB AVS CPUfreq driver

2016-10-13 Thread Viresh Kumar
On 13-10-16, 14:49, Rafael J. Wysocki wrote: > I gess patch [1/3] needs some ACKs from the DT bindings maintainers? It would be better if we get one.. -- viresh

[PATCH v6 0/6] Introduce ZONE_CMA

2016-10-13 Thread js1304
From: Joonsoo Kim Hello, Changes from v5 o Add acked/reviewed-by tag from Vlastimil and Aneesh o Rebase on next-20161013 o Cosmetic change on patch 1 o Optimize span of ZONE_CMA on multiple node system Changes from v4 o Rebase on next-20160825 o Add general fix patch for lowmem reserve o Fix

[PATCH v6 3/6] mm/cma: populate ZONE_CMA

2016-10-13 Thread js1304
From: Joonsoo Kim Until now, reserved pages for CMA are managed in the ordinary zones where page's pfn are belong to. This approach has numorous problems and fixing them isn't easy. (It is mentioned on previous patch.) To fix this situation, ZONE_CMA is introduced in previous patch, but, not yet

[PATCH v6 4/6] mm/cma: remove ALLOC_CMA

2016-10-13 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_CMA and it only serves for GFP_HIGHUSER_MOVABLE. Therefore, we don't need to consider ALLOC_CMA at all. Reviewed-by: Aneesh Kumar K.V Acked-by: Vlastimil Babka Signed-off-by: Joonsoo Kim --- mm/compaction.c | 4

[PATCH v6 1/6] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2016-10-13 Thread js1304
From: Joonsoo Kim Freepage on ZONE_HIGHMEM doesn't work for kernel memory so it's not that important to reserve. When ZONE_MOVABLE is used, this problem would theorectically cause to decrease usable memory for GFP_HIGHUSER_MOVABLE allocation request which is mainly used for page cache and anon

[PATCH v6 6/6] mm/cma: remove per zone CMA stat

2016-10-13 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_CMA so we don't need to maintain CMA stat in other zones. Remove it. Reviewed-by: Aneesh Kumar K.V Acked-by: Vlastimil Babka Signed-off-by: Joonsoo Kim --- fs/proc/meminfo.c | 2 +- include/linux/cma.h

[PATCH v6 2/6] mm/cma: introduce new zone, ZONE_CMA

2016-10-13 Thread js1304
From: Joonsoo Kim Attached cover-letter: This series try to solve problems of current CMA implementation. CMA is introduced to provide physically contiguous pages at runtime without exclusive reserved memory area. But, current implementation works like as previous reserved memory approach,

[PATCH v6 5/6] mm/cma: remove MIGRATE_CMA

2016-10-13 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_CMA and there is no other type of pages. Therefore, we don't need to use MIGRATE_CMA to distinguish and handle differently for CMA pages and ordinary pages. Remove MIGRATE_CMA. Unfortunately, this patch make free

Re: [PATCH 1/2] power: reset: Add qcom reboot mode driver

2016-10-13 Thread xiaogang
Hi, Andy: 在 2016-10-14 10:41,Andy Yan 写道: Hi Xiaogang: On 2016年10月14日 10:02, Xiaogang Cui wrote: This is a initial version so it's very similar with syscon reboot mode driver. We will add more functionalities in the further after dependency is ready. Signed-off-by: Xiaogang Cui ---

[GIT PULL] cgroup changes for v4.9-rc1

2016-10-13 Thread Tejun Heo
Hello, Linus. cgroup changes for v4.9-rc1. * Tracepoints for basic cgroup management operations added. * kernfs and cgroup path formatting functions updated to behave in the style of strlcpy(). * Non-critical bug fixes. Thanks. The following changes since commit

[PATCH v8 1/8] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2016-10-13 Thread Peter Chen
Add binding doc for generic power sequence library. Signed-off-by: Peter Chen Acked-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/power/pwrseq/pwrseq-generic.txt | 48 ++ 1 file changed, 48 insertions(+) create mode 100644

[PATCH v8 8/8] ARM: dts: imx6q-evi: Fix onboard hub reset line

2016-10-13 Thread Peter Chen
From: Joshua Clayton Previously the onboard hub was made to work by treating its reset gpio as a regulator enable. Get rid of that kludge now that pwseq has added reset gpio support Move pin muxing the hub reset pin into the usbh1 group Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen

[PATCH v8 4/8] usb: core: add power sequence handling for USB devices

2016-10-13 Thread Peter Chen
Some hard-wired USB devices need to do power sequence to let the device work normally, the typical power sequence like: enable USB PHY clock, toggle reset pin, etc. But current Linux USB driver lacks of such code to do it, it may cause some hard-wired USB devices works abnormal or can't be

[PATCH v8 7/8] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB property

2016-10-13 Thread Peter Chen
The current dts describes USB HUB's property at USB controller's entry, it is improper. The USB HUB should be the child node under USB controller, and power sequence properties are under it. Besides, using gpio pinctrl setting for USB2415's reset pin. Tested-by: Maciej S. Szmigiero

[PATCH v8 5/8] usb: chipidea: let chipidea core device of_node equal's glue layer device of_node

2016-10-13 Thread Peter Chen
From: Peter Chen At device tree, we have no device node for chipidea core, the glue layer's node is the parent node for host and udc device. But in related driver, the parent device is chipidea core. So, in order to let the common driver get parent's node, we let the core's device node equals

[PATCH v8 6/8] ARM: dts: imx6qdl: Enable usb node children with

2016-10-13 Thread Peter Chen
From: Joshua Clayton Give usb nodes #address and #size attributes, so that a child node representing a permanently connected device such as an onboard hub may be addressed with a attribute Signed-off-by: Joshua Clayton Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi | 6 ++

[PATCH v8 3/8] binding-doc: usb: usb-device: add optional properties for power sequence

2016-10-13 Thread Peter Chen
Add optional properties for power sequence. Signed-off-by: Peter Chen Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/usb-device.txt | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt

Re: [PATCH 1/2] power: reset: Add qcom reboot mode driver

2016-10-13 Thread John Stultz
On Thu, Oct 13, 2016 at 7:02 PM, Xiaogang Cui wrote: > This is a initial version so it's very similar with syscon > reboot mode driver. We will add more functionalities in the > further after dependency is ready. > > Signed-off-by: Xiaogang Cui > --- >

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-13 Thread Dave Young
On 10/13/16 at 04:53pm, Baoquan He wrote: > Hi Pratyush, > > On 10/12/16 at 02:39pm, Pratyush Anand wrote: > > > > > > On Wednesday 12 October 2016 05:56 AM, Baoquan He wrote: > > > > PAGE_OFFSET can be get via vaddr - paddr from elf pt_loads so only > > > > > VMALLOC_BASE and VMEMMAP_BASE is

Re: [PATCH 1/2] power: reset: Add qcom reboot mode driver

2016-10-13 Thread xiaogang
在 2016-10-14 11:25,John Stultz 写道: On Thu, Oct 13, 2016 at 7:02 PM, Xiaogang Cui wrote: This is a initial version so it's very similar with syscon reboot mode driver. We will add more functionalities in the further after dependency is ready. Signed-off-by: Xiaogang Cui ---

Re: [GIT PULL] overlayfs update for 4.9

2016-10-13 Thread Linus Torvalds
On Thu, Oct 13, 2016 at 7:37 AM, Miklos Szeredi wrote: > > Please pull from: No. Or rather, I pulled and then immediately unpulled. When I look at the diff, I saw an obvious bug in the very first chunk. I'm not going to pull something that is this obviously buggy and untested. Your change to

Re: [GIT PULL] Please pull NFS client changes for Linux 4.9

2016-10-13 Thread Linus Torvalds
On Thu, Oct 13, 2016 at 1:21 PM, Anna Schumaker wrote: > > git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.9-1 Please keep the summary of changes in the email too. I can see it in the tag, and it will show up when I do a pull that way, but I'd _really_ like to see it in the

Re: [PATCH 1/4] remoteproc: Use fixed length field for firmware name

2016-10-13 Thread Bjorn Andersson
On Tue 11 Oct 06:39 PDT 2016, Matt Redfearn wrote: > Storage of the firmware name was inconsistent, either storing a pointer > to a name stored with unknown ownership, or a variable length tacked > onto the end of the struct proc allocated in rproc_alloc. > Instead of using a statically sized

Re: [PATCH 2/4] remoteproc: Introduce rproc_change_firmware

2016-10-13 Thread Bjorn Andersson
On Tue 11 Oct 06:39 PDT 2016, Matt Redfearn wrote: > It is often desirable to be able to change the running firmware on a > remote processor dynamically. This used to require a complete > destruction and readdition of the struct rproc, but now that the > firmware name is fixed length, it can be

Re: [LKP] [x86] 811565123a: BUG: kernel hang in early-boot stage, last printk: Probing EDD (edd=off to disable)... ok

2016-10-13 Thread Ye Xiaolong
On 10/14, Ye Xiaolong wrote: >On 10/13, Andi Kleen wrote: >>Andi Kleen writes: >> >>Any comments on this? >> >>I still cannot reproduce the failure unfortunately. >> > >Btw, you can try below commands to reproduce the error on your local >host, they will download the necessary images and run

[PATCH v4] dmaengine: omap-dma: add support for pause of non-cyclic transfers

2016-10-13 Thread Vignesh R
From: Sebastian Andrzej Siewior This DMA driver is used by 8250-omap on DRA7-evm. There is one requirement that is to pause a transfer. This is currently used on the RX side. It is possible that the UART HW aborted the RX (UART's RX-timeout) but the DMA controller starts the transfer shortly

Re: [PATCH 3/4] remoteproc: Add a sysfs interface for firmware and state

2016-10-13 Thread Bjorn Andersson
On Tue 11 Oct 06:39 PDT 2016, Matt Redfearn wrote: > This patch adds a sysfs interface to rproc allowing the firmware name > and processor state to be changed dynamically. > > State was previously available in debugfs, and is replicated here. The > firmware file allows retrieval of the running

Re: [PATCH RESEND v3] dma: omap-dma: add support for pause of non-cyclic transfers

2016-10-13 Thread Vignesh R
On Thursday 13 October 2016 03:37 PM, Peter Ujfalusi wrote: > On 10/10/16 17:12, Peter Ujfalusi wrote: >> On 10/10/16 15:07, Vignesh R wrote: >>> From: Sebastian Andrzej Siewior >>> >>> This DMA driver is used by 8250-omap on DRA7-evm. There is one >>> requirement that is to pause a transfer.

Re: [PATCH 3/4] remoteproc: Add a sysfs interface for firmware and state

2016-10-13 Thread Bjorn Andersson
On Thu 13 Oct 07:39 PDT 2016, loic pallardy wrote: > > > On 10/13/2016 04:25 PM, Matt Redfearn wrote: > >Hi Loic, > > > > > >On 13/10/16 14:56, loic pallardy wrote: > >> > >> > >>On 10/11/2016 03:39 PM, Matt Redfearn wrote: [..] > >>>diff --git a/drivers/remoteproc/remoteproc_internal.h >

Re: [PATCH] staging: sm750fb: Fix printk() style warning

2016-10-13 Thread Edward Lipinsky
On Thu, Oct 13, 2016 at 05:39:22PM +0300, Mike Rapoport wrote: > On Mon, Oct 10, 2016 at 07:31:46AM -0700, Edward Lipinsky wrote: > > > > Thanks, that makes sense. I tried deleting the if statement and printk() > > from ddk750_help.c, and adding the following in lynxfb_pci_probe() after > >

Re: [PATCH v5 2/4] fusion: remove iopriority handling

2016-10-13 Thread Christoph Hellwig
> Style wise you can further remove the extra parens around > SCpnt->device->tagged_supported > As well as the now redundant braces. I did send a patch looking just like that earlier :)

Re: [media] RedRat3: Use kcalloc() in two functions?

2016-10-13 Thread SF Markus Elfring
> Markus, please stop being _so_ mechanical and use your > brain a little too. By definition, sizeof(char) == 1. > > This _really_ should be kzalloc(RR3_FW_VERSION_LEN + 1,...) Do you expect that function call examples like the following will be equivalent? zbuffer = kzalloc(123, …);

Re: [PATCH] firmware: declare __{start,end}_builtin_fw as pointers

2016-10-13 Thread Jiri Slaby
On 06/26/2016, 07:17 PM, Linus Torvalds wrote: > On Sun, Jun 26, 2016 at 2:24 AM, Vegard Nossum > wrote: >> >> This is the best I could come up with: assuming gcc is not allowed to >> reason about what's inside the asm(), this is the only way I could >> think of to lose the array information

Re: [PATCH v4 1/4] block: Add iocontext priority to request

2016-10-13 Thread Hannes Reinecke
On 10/13/2016 09:53 PM, Adam Manzanares wrote: > Patch adds an association between iocontext ioprio and the ioprio of a > request. This value is set in blk_rq_set_prio which takes the request and > the ioc as arguments. If the ioc is valid in blk_rq_set_prio then the > iopriority of the request is

Re: [PATCH v4 2/4] fusion: remove iopriority handling

2016-10-13 Thread Hannes Reinecke
On 10/13/2016 09:53 PM, Adam Manzanares wrote: > The request priority is now by default coming from the ioc. It was not > clear what this code was trying to do based upon the iopriority class or > data. The driver should check that a device supports priorities and use > them according to the

[PATCH v2 1/2] MIPS: DTS: add base device tree for Pistachio SoC

2016-10-13 Thread Rahul Bedarkar
Add support for the base Device Tree for Imagination Technologies' Pistachio SoC. This commit supports the following peripherals: * Clocks * Pinctrl and GPIO * UART * SPI * I2C * PWM * ADC * Watchdog * Ethernet * MMC * DMA engine * Crypto * I2S * SPDIF * Internal DAC * Timer *

[PATCH v2 2/2] MIPS: DTS: img: add device tree for Marduk board

2016-10-13 Thread Rahul Bedarkar
Add support for Imagination Technologies' Marduk board which is based on Pistachio SoC. It is also known as Creator Ci40. Marduk is legacy name and will be there for decades. Documentation for this board can be found on https://docs.creatordev.io/ci40/ This patch adds initial support for board

<    10   11   12   13   14   15