Re: [PATCH 07/14] qcom: mtd: nand: support for passing flags in transfer functions

2017-07-04 Thread Archit Taneja
On 06/29/2017 12:45 PM, Abhishek Sahu wrote: The BAM has multiple flags to control the transfer. This patch adds flags parameter in register and data transfer functions and modifies all these function call with appropriate flags. Signed-off-by: Abhishek Sahu ---

Re: [PATCH v9 2/3] PCI: Add tango PCIe host bridge support

2017-07-04 Thread Jisheng Zhang
On Mon, 3 Jul 2017 08:27:04 -0500 wrote: > [+cc Jingoo, Joao] > > On Mon, Jul 03, 2017 at 10:35:50AM +0100, Ard Biesheuvel wrote: > > On 3 July 2017 at 00:18, Bjorn Helgaas wrote: > > > On Tue, Jun 20, 2017 at 10:17:40AM +0200, Marc Gonzalez wrote: > > >> This driver is

Re: [PATCH] x86/platform/uv/BAU: minor cleanup, make some local functions static

2017-07-04 Thread Thomas Gleixner
On Tue, 4 Jul 2017, Dou Liyang wrote: > At 07/03/2017 10:22 PM, Colin King wrote: > > -int normal_busy(struct bau_control *bcp) > > +static int normal_busy(struct bau_control *bcp) > > In my opinion, there is no need to mark *normal_busy* static, remove it > directly. > > the commit

Re: [PATCH v2 3/3] power: wm831x_power: Support USB charger current limit management

2017-07-04 Thread Baolin Wang
Hi, On 3 July 2017 at 23:50, Sebastian Reichel wrote: > Hi, > > On Mon, Jul 03, 2017 at 02:07:15PM +0800, Baolin Wang wrote: >> Integrate with the newly added USB charger interface to limit the current >> we draw from the USB input based on the input device

Re: [PATCH RFC 1/2] media: V3s: Add support for Allwinner CSI.

2017-07-04 Thread Yong
On Mon, 3 Jul 2017 13:25:21 +0200 Maxime Ripard wrote: > Hi, > > On Mon, Jul 03, 2017 at 06:59:52PM +0800, Yong wrote: > > > > + select VIDEOBUF2_DMA_CONTIG > > > > + select REGMAP_MMIO > > > > + ---help--- > > > > + Support for the

Re: [PATCH v6 10/18] xen/pvcalls: implement listen command

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Call inet_listen to implement the listen command. > > Signed-off-by: Stefano Stabellini > Reviewed-by: Boris Ostrovsky Reviewed-by: Juergen Gross Thanks, Juergen

Re: [PATCH 4.9 000/172] 4.9.36-stable review

2017-07-04 Thread Greg Kroah-Hartman
On Mon, Jul 03, 2017 at 12:51:32PM -0700, Guenter Roeck wrote: > On 07/03/2017 06:33 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.36 release. > > There are 172 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 4.4 000/101] 4.4.76-stable review

2017-07-04 Thread Greg Kroah-Hartman
On Mon, Jul 03, 2017 at 12:37:35PM -0700, Guenter Roeck wrote: > On 07/03/2017 06:34 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.76 release. > > There are 101 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH v6 02/18] xen/pvcalls: introduce the pvcalls xenbus backend

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Introduce a xenbus backend for the pvcalls protocol, as defined by > https://xenbits.xen.org/docs/unstable/misc/pvcalls.html. > > This patch only adds the stubs, the code will be added by the following > patches. > > Signed-off-by: Stefano

[PATCH v2 0/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-04 Thread Baoquan He
Our customer reported that Kernel text may be located on non-mirror region (movable zone) when both address range mirroring feature and KASLR are enabled. The functions of address range mirroring feature are as follows. - The physical memory region whose descriptors in EFI memory map have

Re: [PATCH] wlcore: add missing nvs file name info for wilink8

2017-07-04 Thread Tony Lindgren
* Kalle Valo [170703 04:30]: > "Reizer, Eyal" writes: > > > When working with wl18xx the nvs file is used for defining an alternate > > mac address and override the default mac address that is stored inside > > the wl18xx chip. > > update the structure field

Re: [PATCH v4 3/3] arm64: kvm: inject SError with user space specified syndrome

2017-07-04 Thread Christoffer Dall
Hi Dongjiu, On Tue, Jul 04, 2017 at 12:46:23PM +0800, gengdongjiu wrote: > Hi Christoffer, > thanks for the review. > > > On 2017/7/3 16:39, Christoffer Dall wrote: > > Hi Dongjiu, > > > > On Mon, Jun 26, 2017 at 08:46:39PM +0800, Dongjiu Geng wrote: > >> when SError happen, kvm notifies

Re: [PATCH 1/1] bridge: mdb: report complete_info ptr as not a kmemleak

2017-07-04 Thread David Miller
From: Eduardo Valentin Date: Mon, 3 Jul 2017 10:06:34 -0700 > We currently get the following kmemleak report: ... > This patch flags the complete_info ptr object as not a leak as it will > get freed when .complete_priv() is called, We don't call .complete_priv(). We call

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-07-04 Thread Peter Zijlstra
On Fri, Jun 30, 2017 at 06:10:35AM -0700, tip-bot for Gustavo A. R. Silva wrote: > Commit-ID: 72298e5c92c50edd8cb7cfda4519483ce65fa166 > Gitweb: http://git.kernel.org/tip/72298e5c92c50edd8cb7cfda4519483ce65fa166 > Author: Gustavo A. R. Silva > AuthorDate: Thu, 29

[PATCH] genirq/debugfs: fix build for !CONFIG_IRQ_DOMAIN

2017-07-04 Thread Sebastian Ott
Fix this build error: kernel/irq/internals.h:440:20: error: inlining failed in call to always_inline 'irq_domain_debugfs_init': function body not available kernel/irq/debugfs.c:202:2: note: called from here irq_domain_debugfs_init(root_dir); ^ Signed-off-by:

Re: [PATCH v1 1/1] KVM: trigger uevents when starting or stopping a VM

2017-07-04 Thread Christian Borntraeger
On 07/04/2017 11:23 AM, Paolo Bonzini wrote: > > > On 04/07/2017 11:03, Claudio Imbrenda wrote: >> This patch adds a few lines to the KVM common code to fire a >> KOBJ_CHANGE uevent whenever a KVM VM is created or destroyed. The event >> carries two environment variables: >> KVM_VM_CREATED which

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-07-04 Thread Peter Zijlstra
On Tue, Jul 04, 2017 at 10:33:45AM +0100, Mark Rutland wrote: > > That said, with a per-cpu event the TID sample value is indeed subject > > to skid like you describe. > > For per-cpu events, does that matter? Those don't have TID filters in > the first place, no? eBPF can do all sorts I

[PATCH 3/3] irq: gic-v3: Honor forced affinity setting

2017-07-04 Thread Suzuki K Poulose
Honor the 'force' flag for set_affinity, by selecting a CPU from the given mask (which may not be reported "online" by the cpu_online_mask). Some drivers, like ARM PMU, rely on it. Cc: Marc Zyngier Reported-by: Mark Rutland Signed-off-by: Suzuki K

[PATCH 2/3] irqchip: gic-v2: Report failures in gic_irq_domain_alloc

2017-07-04 Thread Suzuki K Poulose
If the GIC cannot map an IRQ via irq_domain_ops->alloc(), it doesn't return an error code. This can cause a problem with drivers, where it thinks it has successfully got an IRQ for the device, but requesting the same ends up failure with -ENOSYS (as the IRQ's chip is not set). Fixes: commit

[PATCH 0/3] irqchip: Miscellaneous fixes for GIC/GICv3

2017-07-04 Thread Suzuki K Poulose
This series contains some fixes for GIC/GIC-v3 to behave as expected by the generic management layer. Suzuki K Poulose (3): irqchip: gic-v3: Report failures in gic_irq_domain_alloc irqchip: gic-v2: Report failures in gic_irq_domain_alloc irq: gic-v3: Honor forced affinity setting

Re: [PATCH v2] sched/pelt: fix false running accounting

2017-07-04 Thread Vincent Guittot
On 4 July 2017 at 11:44, Peter Zijlstra wrote: > On Tue, Jul 04, 2017 at 11:12:34AM +0200, Vincent Guittot wrote: >> On 4 July 2017 at 10:34, Peter Zijlstra wrote: >> > On Tue, Jul 04, 2017 at 09:27:07AM +0200, Peter Zijlstra wrote: >> >> On Sat, Jul

[PATCH] genirq: Force inlining of __irq_startup_managed to prevent build failure

2017-07-04 Thread Geert Uytterhoeven
If CONFIG_SMP=n, and gcc (e.g. 4.1.2) decides not to inline __irq_startup_managed(), the build fails with: kernel/built-in.o: In function `irq_startup': (.text+0x38ed8): undefined reference to `irq_set_affinity_locked' Fix this by forcing inlining of __irq_startup_managed(). Fixes:

Re: [PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h

2017-07-04 Thread Andy Shevchenko
On Tue, 2017-07-04 at 12:53 +0900, Masahiro Yamada wrote: > Some of include directives in include/linux/gpio/driver.h are > unneeded because the header does not need to know the content of > struct device, irq_chip, etc.  Just declare they are structures. > > On the other hand, and > turned out

Re: [PATCH 06/14] qcom: mtd: nand: add bam dma descriptor handling

2017-07-04 Thread Archit Taneja
On 06/29/2017 12:45 PM, Abhishek Sahu wrote: 1. prepare_bam_async_desc is the function which will call all the DMA API’s. It will fetch the outstanding scatter gather list for passed channel and will do the DMA descriptor formation. The DMA flag is dependent upon the type of

[PATCH 4/4] selftests: ftrace: Output only to console with "--logdir -"

2017-07-04 Thread Masami Hiramatsu
Output logs only to console if "-" is given to --logdir option. In this case, ftracetest doesn't record any log on the disk, and all logs immediately shown (including all command logs.) Since there is no "tee" in the middle of command and console, it outputs the log really soon. This option is

Re: [PATCH v2 3/3] power: wm831x_power: Support USB charger current limit management

2017-07-04 Thread Baolin Wang
Hi, On 3 July 2017 at 16:53, Charles Keepax wrote: > On Mon, Jul 03, 2017 at 02:07:15PM +0800, Baolin Wang wrote: >> Integrate with the newly added USB charger interface to limit the current >> we draw from the USB input based on the input device configuration >>

Re: [PATCH v6 12/18] xen/pvcalls: implement poll command

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Implement poll on passive sockets by requesting a delayed response with > mappass->reqcopy, and reply back when there is data on the passive > socket. > > Poll on active socket is unimplemented as by the spec, as the frontend > should just wait for

Re: [PATCH v6 07/18] xen/pvcalls: implement socket command

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Just reply with success to the other end for now. Delay the allocation > of the actual socket to bind and/or connect. > > Signed-off-by: Stefano Stabellini > Reviewed-by: Boris Ostrovsky

Re: [PATCH v6 04/18] xen/pvcalls: xenbus state handling

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Introduce the code to handle xenbus state changes. > > Implement the probe function for the pvcalls backend. Write the > supported versions, max-page-order and function-calls nodes to xenstore, > as required by the protocol. > > Introduce stub

[PATCH 4/6] ARM: dts: rockchip: enable eMMC for rk3229-evb

2017-07-04 Thread Frank Wang
This patch enables eMMC support for rk3229-evb board. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk3229-evb.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index

[PATCH 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb

2017-07-04 Thread Frank Wang
From: David Wu This patch enables io-domain support for rk3229-evb board. The power domain of VCCIO3 is selected from maskrom, so we do not need to configure it. Signed-off-by: David Wu Signed-off-by: Frank Wang ---

[PATCH 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb

2017-07-04 Thread Frank Wang
This patch adds vcc_io, vdd_arm and vdd_log regulator nodes for rk3229-evb board. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk3229-evb.dts | 54 1 file changed, 54 insertions(+) diff --git

Re: [GIT pull] irq updates for 4.13

2017-07-04 Thread Thomas Gleixner
On Mon, 3 Jul 2017, Linus Torvalds wrote: > On Mon, Jul 3, 2017 at 12:42 AM, Thomas Gleixner wrote: > > > > 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 > > Ugh, this

[PATCH 0/6] add and enable some device nodes for rk3229-evb board

2017-07-04 Thread Frank Wang
These series add and enable regulators, gpio-keys, eMMC and other device nodes support for rk3229-evb board. David Wu (1): ARM: dts: rockchip: enable io-domain for rk3229-evb Finley Xiao (1): ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang (4): ARM: dts:

[PATCH 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb

2017-07-04 Thread Frank Wang
From: Finley Xiao This patch adds the cpu-supply property so that cpu can do dvfs on rk3229-evb board. Signed-off-by: Finley Xiao --- arch/arm/boot/dts/rk3229-evb.dts | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2] mux: remove the Kconfig question for the subsystem

2017-07-04 Thread Peter Rosin
The MULTIPLEXER question in the Kconfig might be confusing and is of dubious value. Remove it. This makes consumers responsible for selecting MULTIPLEXER, which they already do. Signed-off-by: Peter Rosin --- drivers/mux/Kconfig | 19 +-- 1 file changed, 5

Re: [PATCH v2] devfreq: tegra: fix error return code in tegra_devfreq_probe()

2017-07-04 Thread Jon Hunter
On 03/07/17 13:47, Gustavo A. R. Silva wrote: > platform_get_irq() returns an error code, but the tegra-devfreq > driver ignores it and always returns -ENODEV. This is not correct, > and prevents -EPROBE_DEFER from being propagated properly. > > Notice that platform_get_irq() no longer returns 0

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-04 Thread Christoffer Dall
On Tue, Jul 04, 2017 at 01:41:49AM +0200, Andrea Arcangeli wrote: > Hello, > > On Mon, Jul 03, 2017 at 10:48:03AM +0200, Alexander Graf wrote: > > On 07/03/2017 10:03 AM, Christoffer Dall wrote: > > > Hi Alex, > > > > > > On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > > >> If

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-04 Thread Michal Hocko
On Mon 03-07-17 17:05:27, Linus Torvalds wrote: > On Mon, Jul 3, 2017 at 4:55 PM, Ben Hutchings wrote: > > > > Firstly, some Rust programs are crashing on ppc64el with 64 KiB pages. > > Apparently Rust maps its own guard page at the lower limit of the stack > > (determined

Re: [PATCH v4 1/3] arm64: kvm: support user space to detect RAS extension feature

2017-07-04 Thread Christoffer Dall
Hi Dongjiu, On Tue, Jul 04, 2017 at 03:04:54PM +0800, gengdongjiu wrote: > Hi Christoffer, > > On 2017/7/3 16:21, Christoffer Dall wrote: > > On Mon, Jun 26, 2017 at 08:45:43PM +0800, Dongjiu Geng wrote: > >> Handle userspace's detection for RAS extension, because sometimes > >> the userspace

Re: [PATCH 1/7] serial: imx: only set DMA rx-ing when DMA starts

2017-07-04 Thread Romain Perier
Hello, Le 03/07/2017 à 08:48, Uwe Kleine-König a écrit : > Hello, > > On Fri, Jun 30, 2017 at 02:04:40PM +0200, Romain Perier wrote: >> From: Nandor Han >> >> Avoid the situation when `dma_is_rxing` could incorrectly signal that >> DMA RX channel is receiving data in case DMA

Re: [PATCH stable-only] mm: fix classzone_idx underflow in shrink_zones()

2017-07-04 Thread Greg KH
On Tue, Jul 04, 2017 at 10:45:43AM +0200, Vlastimil Babka wrote: > Hi, > > I realize this is against the standard stable policy, but I see no other > way, because the mainline accidental fix is part of 34+ patch reclaim > rework, that would be absurd to try to backport into stable. The fix is > a

Re: [PATCH] coccinelle: api: detect unnecessary le16_to_cpu

2017-07-04 Thread Julia Lawall
Here is a revised version (not a patch because it doesn't support all of the various modes) and the results. It doesn't return anything beyond what was mentioned in previous mails. For the following code: ret = i2c_smbus_read_word_data(chip->client, reg << 1); val[0] = (u16)ret

Re: [PATCH 4.4 072/101] arm64: assembler: make adr_l work in modules under KASLR

2017-07-04 Thread Ard Biesheuvel
On 3 July 2017 at 14:35, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Ard Biesheuvel > > > [ Upstream commit 41c066f2c4d436c535616fe182331766c57838f0

Re: [PATCH v1 1/1] KVM: trigger uevents when starting or stopping a VM

2017-07-04 Thread Paolo Bonzini
On 04/07/2017 11:03, Claudio Imbrenda wrote: > This patch adds a few lines to the KVM common code to fire a > KOBJ_CHANGE uevent whenever a KVM VM is created or destroyed. The event > carries two environment variables: > KVM_VM_CREATED which indicates how many times a new VM has been created, >

Re: [PATCH] staging: comedi: Use offset_in_page macro

2017-07-04 Thread Ian Abbott
On 04/07/17 00:13, Amitoj Kaur Chawla wrote: Use offset_in_page macro instead of (var & ~PAGE_MASK) The Coccinelle semantic patch used to make this change is as follows: // @@ unsigned long p; @@ - p & ~PAGE_MASK + offset_in_page(p) // Signed-off-by: Amitoj Kaur Chawla

[patch V2 2/2] mm/memory-hotplug: Switch locking to a percpu rwsem

2017-07-04 Thread Thomas Gleixner
Andrey reported a potential deadlock with the memory hotplug lock and the cpu hotplug lock. The reason is that memory hotplug takes the memory hotplug lock and then calls stop_machine() which calls get_online_cpus(). That's the reverse lock order to get_online_cpus(); get_online_mems(); in

Re: [PATCH 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb

2017-07-04 Thread Frank Wang
Hi Heiko, On 2017/7/4 16:34, Heiko Stübner wrote: Hi Frank, Am Dienstag, 4. Juli 2017, 16:12:42 CEST schrieb Frank Wang: This patch adds vcc_io, vdd_arm and vdd_log regulator nodes for rk3229-evb board. Signed-off-by: Frank Wang ---

[PATCH 1/3] irqchip: gic-v3: Report failures in gic_irq_domain_alloc

2017-07-04 Thread Suzuki K Poulose
If the GIC cannot map an IRQ via irq_domain_ops->alloc(), it doesn't return an error code. This can cause a problem with drivers, where it thinks it has successfully got an IRQ for the device, but requesting the same ends up failure with -ENOSYS (as the IRQ's chip is not set). Fixes: commit

Re: [PATCH 12/14] qcom: mtd: nand: change register offset defines with enums

2017-07-04 Thread Archit Taneja
On 06/29/2017 12:46 PM, Abhishek Sahu wrote: The current driver defines the register offset with preprocessor macro which is defined crossponding to NAND controller version 1.4.0. This patch changes these macro with enumeration. It also adds mapping array which contains controller register

Re: [PATCH v4 2/3] arm64: kvm: route synchronous external abort exceptions to el2

2017-07-04 Thread gengdongjiu
Hi Christoffer, On 2017/7/3 16:23, Christoffer Dall wrote: > On Tue, Jun 27, 2017 at 08:15:49PM +0800, gengdongjiu wrote: >> correct the commit message: >> >> In the firmware-first RAS solution, OS receives an synchronous >> external abort, then trapped to EL3 by SCR_EL3.EA. Firmware inspects

[PATCH 3/4] selftests: ftrace: Add more verbosity for immediate log

2017-07-04 Thread Masami Hiramatsu
Add 3-level verbosity for showing traced command log on console immediately. Since some test cases can cause kernel pacic if there is a probrem (like regression etc.), we can not know which command caused the problem without traced command log. This verbosity (-vvv) solves that because it shows

[PATCH 3/9] net, ipv6: convert inet6_ifaddr.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

Re: "mm: use early_pfn_to_nid in page_ext_init" broken on some configurations?

2017-07-04 Thread Michal Hocko
On Tue 04-07-17 14:11:41, Joonsoo Kim wrote: > On Fri, Jun 30, 2017 at 05:44:16PM +0200, Michal Hocko wrote: > > On Fri 30-06-17 17:42:24, Michal Hocko wrote: > > [...] > > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > > > index 16532fa0bb64..894697c1e6f5 100644 > > > ---

Re: [PATCH mm] introduce reverse buddy concept to reduce buddy fragment

2017-07-04 Thread zhouxianrong
i do the test again. after minutes i tell you the result. On 2017/7/4 14:52, Michal Hocko wrote: On Tue 04-07-17 09:21:00, zhouxianrong wrote: the test was done as follows: 1. the environment is android 7.0 and kernel is 4.1 and managed memory is 3.5GB There have been many changes in the

Re: [PATCH v3 0/3] Define CPU_BIG_ENDIAN or warn for inconsistencies

2017-07-04 Thread Geert Uytterhoeven
On Tue, Jun 13, 2017 at 12:09 AM, Babu Moger wrote: > Found this problem while enabling queued rwlock on SPARC. > The parameter CONFIG_CPU_BIG_ENDIAN is used to clear the > specific byte in qrwlock structure. Without this parameter, > we clear the wrong byte. > Here is the

Re: [PATCH v9 2/3] PCI: Add tango PCIe host bridge support

2017-07-04 Thread Peter Zijlstra
On Mon, Jul 03, 2017 at 05:30:28PM +0200, Marc Gonzalez wrote: > And at the end of smp8759_config_read: > > printk("in_atomic_preempt_off = %d\n", in_atomic_preempt_off()); That's confused... > stop_machine(do_nothing, NULL, NULL); > panic("STOP HERE FOR NOW\n"); > > The

Re: [GIT pull] x86/timers updates for 4.13

2017-07-04 Thread Thomas Gleixner
On Mon, 3 Jul 2017, Linus Torvalds wrote: > On Mon, Jul 3, 2017 at 1:20 AM, Thomas Gleixner wrote: > > > > This update contains: > > > >- The final solution for the TSC deadline timer borkage, which is caused > > by a hardware problem in the

Re: [PATCH v2] sched/pelt: fix false running accounting

2017-07-04 Thread Peter Zijlstra
On Sat, Jul 01, 2017 at 07:06:13AM +0200, Vincent Guittot wrote: > The running state is a subset of runnable state which means that running > can't be set if runnable (weight) is cleared. There are corner cases > where the current sched_entity has been already dequeued but cfs_rq->curr > has not

Re: [PATCH v6 11/18] xen/pvcalls: implement accept command

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Implement the accept command by calling inet_accept. To avoid blocking > in the kernel, call inet_accept(O_NONBLOCK) from a workqueue, which get > scheduled on sk_data_ready (for a passive socket, it means that there > are connections to accept). > >

Re: [PATCH 4/5] pwm: rockchip: Add atomic updated feature for rk3328

2017-07-04 Thread David.Wu
Hi Boris, 在 2017/7/4 2:39, Boris Brezillon 写道: Yet another customization. Don't you think we can extract common parts, expose them as helpers and then have 3 different pwm_ops (with 3 different ->apply() implementation), one for each IP revision. Sounds reasonable.I will try to implement 3

Re: [PATCH v2] sched/pelt: fix false running accounting

2017-07-04 Thread Vincent Guittot
On 4 July 2017 at 09:27, Peter Zijlstra wrote: > On Sat, Jul 01, 2017 at 07:06:13AM +0200, Vincent Guittot wrote: >> The running state is a subset of runnable state which means that running >> can't be set if runnable (weight) is cleared. There are corner cases >> where the

Re: [PATCH mm] introduce reverse buddy concept to reduce buddy fragment

2017-07-04 Thread zhouxianrong
every 2s i sample /proc/buddyinfo in the whole test process. the last about 90 samples were sampled after the test was done. Node 0, zone DMA 4706 2099838266 50 5 3 2 1 2 38 0395 1261211 57 6 1 0 0 0

Re: [PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-07-04 Thread Michal Hocko
On Mon 03-07-17 18:57:14, Mikulas Patocka wrote: > > > On Mon, 3 Jul 2017, Michal Hocko wrote: > > > We can add a warning (or move it from kvmalloc) and hope that the > > respective maintainers will fix those places properly. The reason I > > didn't add the warning to vmalloc and kept it in

[PATCH stable-only] mm: fix classzone_idx underflow in shrink_zones()

2017-07-04 Thread Vlastimil Babka
Hi, I realize this is against the standard stable policy, but I see no other way, because the mainline accidental fix is part of 34+ patch reclaim rework, that would be absurd to try to backport into stable. The fix is a one-liner though. The bug affects at least 4.4.y, and likely also older

[GIT PULL] hsi changes for hsi-4.13

2017-07-04 Thread Sebastian Reichel
Hi Linus, The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi.git tags/hsi-for-4.13 for you to fetch changes up to

Re: [PATCH v5 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-07-04 Thread Jose Abreu
Hi Hans, On 03-07-2017 11:33, Hans Verkuil wrote: > On 07/03/2017 11:53 AM, Jose Abreu wrote: >> Hi Hans, >> >> >> On 03-07-2017 10:27, Hans Verkuil wrote: >>> On 06/29/2017 12:46 PM, Jose Abreu wrote: This is an initial submission for the Synopsys Designware HDMI RX Controller

Re: [PATCH] mm: disallow early_pfn_to_nid on configurations which do not implement it

2017-07-04 Thread Vlastimil Babka
On 07/04/2017 09:58 AM, Michal Hocko wrote: > From: Michal Hocko > > early_pfn_to_nid will return node 0 if both HAVE_ARCH_EARLY_PFN_TO_NID > and HAVE_MEMBLOCK_NODE_MAP are disabled. It seems we are safe now > because all architectures which support NUMA define one of them (with

Re: [PATCH 4.4 072/101] arm64: assembler: make adr_l work in modules under KASLR

2017-07-04 Thread Greg Kroah-Hartman
On Tue, Jul 04, 2017 at 10:24:37AM +0100, Ard Biesheuvel wrote: > On 3 July 2017 at 14:35, Greg Kroah-Hartman > wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Ard Biesheuvel

[PATCH 2/6] Staging: rtl8712 : os_intfs.c: use octal permission representation

2017-07-04 Thread Jaya Durga
Fix checkpatch.pl Warning: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred. Consider using octal permissions '0644'. Signed-off-by: Jaya Durga --- drivers/staging/rtl8712/os_intfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[v2] wlcore: add missing nvs file name info for wilink8

2017-07-04 Thread Reizer, Eyal
When working with wl18xx the nvs file is used for defining an alternate mac address and override the default mac address that is stored inside the wl18xx chip. The following commits: c815fde wlcore: spi: Populate config firmware data d776fc8 wlcore: sdio: Populate config firmware data Populated

Re: [PATCH v6 06/18] xen/pvcalls: handle commands from the frontend

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > When the other end notifies us that there are commands to be read > (pvcalls_back_event), wake up the backend thread to parse the command. > > The command ring works like most other Xen rings, so use the usual > ring macros to read and write to it.

Re: [PATCH v6 08/18] xen/pvcalls: implement connect command

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > Allocate a socket. Keep track of socket <-> ring mappings with a new data > structure, called sock_mapping. Implement the connect command by calling > inet_stream_connect, and mapping the new indexes page and data ring. > Allocate a workqueue and a

Re: [PATCH v6 15/18] xen/pvcalls: implement the ioworker functions

2017-07-04 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > We have one ioworker per socket. Each ioworker goes through the list of > outstanding read/write requests. Once all requests have been dealt with, > it returns. > > We use one atomic counter per socket for "read" operations and one > for "write"

Re: [PATCH 4.11 00/84] 4.11.9-stable review

2017-07-04 Thread Greg Kroah-Hartman
On Mon, Jul 03, 2017 at 12:55:07PM -0700, Guenter Roeck wrote: > On 07/03/2017 06:34 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.11.9 release. > > There are 84 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [GIT PULL] s390 patches for 4.13 merge window

2017-07-04 Thread Stephen Rothwell
Hi Linus, On Mon, 3 Jul 2017 15:46:00 -0700 Linus Torvalds wrote: > > On Mon, Jul 3, 2017 at 2:01 AM, Martin Schwidefsky > wrote: > > > > please pull from the 'for-linus' branch of > > > >

[PATCH] mm: disallow early_pfn_to_nid on configurations which do not implement it

2017-07-04 Thread Michal Hocko
From: Michal Hocko early_pfn_to_nid will return node 0 if both HAVE_ARCH_EARLY_PFN_TO_NID and HAVE_MEMBLOCK_NODE_MAP are disabled. It seems we are safe now because all architectures which support NUMA define one of them (with an exception of alpha which however has CONFIG_NUMA

Re: perf report: fix off-by-one for non-activation frames

2017-07-04 Thread Milian Wolff
On Monday, June 19, 2017 8:59:39 PM CEST Arnaldo Carvalho de Melo wrote: > Em Sat, Jun 17, 2017 at 01:13:11PM +0200, Milian Wolff escreveu: > > On Samstag, 17. Juni 2017 10:04:02 CEST Jan Kratochvil wrote: > > > On Sat, 17 Jun 2017 09:56:57 +0200, Namhyung Kim wrote: > > > > Not sure whether it

Re: [v2] wlcore: add missing nvs file name info for wilink8

2017-07-04 Thread Tony Lindgren
* Reizer, Eyal [170703 23:58]: > When working with wl18xx the nvs file is used for defining an alternate > mac address and override the default mac address that is stored inside > the wl18xx chip. > > The following commits: > c815fde wlcore: spi: Populate config firmware data >

[PATCH] target: make device_mutex and device_list static

2017-07-04 Thread Colin King
From: Colin Ian King Variables device_mutex and device_list static are local to the source, so make them static. Cleans up sparse warnings: "symbol 'device_list' was not declared. Should it be static?" "symbol 'device_mutex' was not declared. Should it be static?"

Re: [PATCH v4 2/3] arm64: kvm: route synchronous external abort exceptions to el2

2017-07-04 Thread Christoffer Dall
Hi Dongjiu, On Tue, Jul 04, 2017 at 02:30:21PM +0800, gengdongjiu wrote: > Hi Christoffer, > > On 2017/7/3 16:23, Christoffer Dall wrote: > > On Tue, Jun 27, 2017 at 08:15:49PM +0800, gengdongjiu wrote: > >> correct the commit message: > >> > >> In the firmware-first RAS solution, OS receives

Re: [PATCH] net: ethernet: mediatek: fixed deadlock captured by lockdep

2017-07-04 Thread David Miller
From: Date: Tue, 4 Jul 2017 11:17:36 +0800 > From: Sean Wang > > Lockdep found an inconsistent lock state when mtk_get_stats64 is called > in user context while NAPI updates MAC statistics in softirq. > > Use spin_trylock_bh/spin_unlock_bh fix

[GIT PULL] power-supply changes for 4.13

2017-07-04 Thread Sebastian Reichel
Hi Linus, The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/for-v4.13 for you to fetch changes up to

[PATCH v1 1/1] KVM: trigger uevents when starting or stopping a VM

2017-07-04 Thread Claudio Imbrenda
This patch adds a few lines to the KVM common code to fire a KOBJ_CHANGE uevent whenever a KVM VM is created or destroyed. The event carries two environment variables: KVM_VM_CREATED which indicates how many times a new VM has been created, KVM_VM_COUNT which indicates how many VMs are currently

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-07-04 Thread Peter Zijlstra
On Wed, Jun 28, 2017 at 03:55:07PM -0700, Kyle Huey wrote: > > Having thought about this some more, I think Vince does make a good > > point that throwing away samples is liable to break stuff, e.g. that > > which only relies on (non-sensitive) samples. > > > > It still seems wrong to make up

Re: [PATCH v2 00/11] patches for fpga

2017-07-04 Thread Anatolij Gustschin
Hi Greg, On Wed, 14 Jun 2017 10:36:24 -0500 Alan Tull at...@kernel.org wrote: >Hi Greg, > >This is a repost of last weeks patches, fixing the warnings. I've >also added the Altera CvP driver which has been reviewed on the lists. >I pushed these to my kernel.org git repo for testing (which I

Re: [PATCH v1 1/1] KVM: trigger uevents when starting or stopping a VM

2017-07-04 Thread Paolo Bonzini
On 04/07/2017 11:25, Christian Borntraeger wrote: > On 07/04/2017 11:23 AM, Paolo Bonzini wrote: >> >> >> On 04/07/2017 11:03, Claudio Imbrenda wrote: >>> This patch adds a few lines to the KVM common code to fire a >>> KOBJ_CHANGE uevent whenever a KVM VM is created or destroyed. The event >>>

[patch V2 0/2] mm/memory_hotplug: Cure potential deadlocks vs. cpu hotplug lock

2017-07-04 Thread Thomas Gleixner
Andrey reported a potential deadlock with the memory hotplug lock and the cpu hotplug lock. The following series addresses this by reworking the memory hotplug locking and fixing up the potential deadlock scenarios. Applies against Linus head. All preliminaries are merged there already Thanks,

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-04 Thread Michal Hocko
On Tue 04-07-17 10:41:22, Michal Hocko wrote: > On Mon 03-07-17 17:05:27, Linus Torvalds wrote: > > On Mon, Jul 3, 2017 at 4:55 PM, Ben Hutchings wrote: > > > > > > Firstly, some Rust programs are crashing on ppc64el with 64 KiB pages. > > > Apparently Rust maps its own

[patch V2 1/2] mm: swap: Provide lru_add_drain_all_cpuslocked()

2017-07-04 Thread Thomas Gleixner
The rework of the cpu hotplug locking unearthed potential deadlocks with the memory hotplug locking code. The solution for these is to rework the memory hotplug locking code as well and take the cpu hotplug lock before the memory hotplug lock in mem_hotplug_begin(), but this will cause a

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-04 Thread Willy Tarreau
On Tue, Jul 04, 2017 at 11:35:38AM +0200, Michal Hocko wrote: > On Tue 04-07-17 10:41:22, Michal Hocko wrote: > > On Mon 03-07-17 17:05:27, Linus Torvalds wrote: > > > On Mon, Jul 3, 2017 at 4:55 PM, Ben Hutchings > > > wrote: > > > > > > > > Firstly, some Rust programs are

Re: [PATCH] coccinelle: api: detect unnecessary le16_to_cpu

2017-07-04 Thread Andy Shevchenko
On Tue, Jul 4, 2017 at 12:11 PM, Julia Lawall wrote: > Here is a revised version (not a patch because it doesn't support all of > the various modes) and the results. It doesn't return anything beyond > what was mentioned in previous mails. > > For the following code: > >

Re: [PATCH 13/14] qcom: mtd: nand: support for QPIC version 1.5.0

2017-07-04 Thread Archit Taneja
On 06/29/2017 12:46 PM, Abhishek Sahu wrote: The current QCOM NAND driver only supports version 1.4.0 QCOM QPIC NAND controller. This patch adds the support for version 1.5.0 which contains some of the registers at different offsets. The driver data contains the register offset field which is

Re: [PATCH v3 2/2] acpi/iort: numa: Add numa node mapping for smmuv3 devices

2017-07-04 Thread Lorenzo Pieralisi
Hi Robert, On Wed, Jun 28, 2017 at 07:47:50PM +0200, Robert Richter wrote: > On 15.06.17 14:46:03, Lorenzo Pieralisi wrote: > > On Thu, Jun 08, 2017 at 10:14:19AM +0530, Ganapatrao Kulkarni wrote: > > > Add code to parse proximity domain in SMMUv3 IORT table to > > > set numa node mapping for

[PATCH 1/9] net, ipv6: convert ipv6_txoptions.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH 6/9] net, ipv6: convert xfrm6_tunnel_spi.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH 0/9] v2 ipv4/ipv6 refcount conversions

2017-07-04 Thread Elena Reshetova
Changes in v2: * rebase on top of net-next * currently by default refcount_t = atomic_t (*) and uses all atomic standard operations unless CONFIG_REFCOUNT_FULL is enabled. This is a compromise for the systems that are critical on performance (such as net) and cannot accept even slight

[PATCH 5/9] net, ipv6: convert ifacaddr6.aca_refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH 2/9] net, ipv6: convert inet6_dev.refcnt from atomic_t to refcount_t

2017-07-04 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

Re: [PATCH v2 1/2] ACPI: SPCR: Use access width to determine mmio usage

2017-07-04 Thread Greg Kroah-Hartman
On Mon, Jul 03, 2017 at 11:44:30PM +0200, Rafael J. Wysocki wrote: > On Mon, Jul 3, 2017 at 11:33 PM, Loc Ho wrote: > > The current SPCR code does not check the access width of the mmio, and > > uses a default of 8bit register accesses. This prevents devices that > > only do 16 or

  1   2   3   4   5   6   7   8   9   10   >