Re: [PATCH 5/9] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-30 Thread Vlastimil Babka
On 01/30/2017 10:49 AM, Michal Hocko wrote: From: Michal Hocko There are many code paths opencoding kvmalloc. Let's use the helper instead. The main difference to kvmalloc is that those users are usually not considering all the aspects of the memory allocator. E.g. allocation requests <= 32kB (

Re: [PATCH] drm: mali-dp: add custom plane ->reset hook

2017-01-30 Thread Liviu Dudau
On Mon, Jan 30, 2017 at 03:42:26PM +, Mihail Atanassov wrote: > The reset hook needs to allocate space for a > malidp_plane_state, which is larger than drm_plane_state. > Otherwise, the hook is identical to the default one. > > Signed-off-by: Mihail Atanassov Acked-by: Liviu Dudau Thanks,

Re: Device or HBA level QD throttling creates randomness in sequetial workload

2017-01-30 Thread Bart Van Assche
On Mon, 2017-01-30 at 19:22 +0530, Kashyap Desai wrote: > - if (atomic_inc_return(&instance->fw_outstanding) > > - instance->host->can_queue) { > - atomic_dec(&instance->fw_outstanding); > - return SCSI_MLQUEUE_HOST_BUSY; > - } > + if (atomic_inc_return(&instance->fw_out

Re: [PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-01-30 Thread Alexandre Torgue
Hi Linus, On 01/30/2017 04:19 PM, Linus Walleij wrote: On Fri, Jan 27, 2017 at 5:15 PM, Alexandre TORGUE wrote: Use device tree entries to declare gpio range. It will allow to use no contiguous gpio bank and holes inside a bank. Signed-off-by: Alexandre TORGUE (...) + of_property_r

Re: [PATCH 0/6 v3] kvmalloc

2017-01-30 Thread Michal Hocko
On Mon 30-01-17 17:15:08, Daniel Borkmann wrote: > On 01/30/2017 08:56 AM, Michal Hocko wrote: > > On Fri 27-01-17 21:12:26, Daniel Borkmann wrote: > > > On 01/27/2017 11:05 AM, Michal Hocko wrote: > > > > On Thu 26-01-17 21:34:04, Daniel Borkmann wrote: > > [...] > > > > > So to answer your second

[PATCH] PCI: ACPI: Fix ThunderX PEM initialization

2017-01-30 Thread Vadim Lomovtsev
This patch is to address PEM initialization issue which causes network issues. It is necessary to search for _HID:PNP0A08 while requesting PEM resources via ACPI instead of "THRX0002". Signed-off-by: Vadim Lomovtsev --- drivers/pci/host/pci-thunder-pem.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH 1/5] [media] ir-rx51: port to rc-core

2017-01-30 Thread Mauro Carvalho Chehab
Em Mon, 16 Jan 2017 21:13:58 +0100 Pavel Machek escreveu: > Hi! > > > On 16.01.2017 12:10, Sean Young wrote: > > > > > >Have you had a chance to test the ir-rx51 changes? > > > > > >Thanks > > >Sean > > > > > > > Still no, and afaik there are issues booting n900 with current kernel. Will >

Re: [PATCH] PCI: Apply _HPX settings only to relevant devices

2017-01-30 Thread Bjorn Helgaas
On Thu, Jan 12, 2017 at 02:32:04PM -0600, Bjorn Helgaas wrote: > Previously we didn't check the type of device before trying to apply Type 1 > (PCI-X) or Type 2 (PCIe) Setting Records from _HPX. > > We don't support PCI-X Setting Records, so this was harmless, but the > warning was useless. > > W

Re: [PATCH] video/mbx: use simple_open()

2017-01-30 Thread Bartlomiej Zolnierkiewicz
Hi, On Friday, January 20, 2017 10:27:05 PM Geliang Tang wrote: > Drop open_file_generic(), use simple_open() instead of it. > > Signed-off-by: Geliang Tang Thanks, patch queued for 4.11. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > dri

Re: [PATCH] gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page

2017-01-30 Thread David Miller
From: Arseny Solokha Date: Sun, 29 Jan 2017 19:52:20 +0700 > From: Arseny Solokha > > In spite of switching to paged allocation of Rx buffers, the driver still > called dma_unmap_single() in the Rx queues tear-down path. > > The DMA region unmapping code in free_skb_rx_queue() basically predat

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-30 Thread James Bottomley
On Sun, 2017-01-29 at 19:52 -0500, Ken Goldman wrote: > On 1/27/2017 5:04 PM, James Bottomley wrote: > > > > Beware the nasty corner case: > > > > > > - Application asks for a session and gets 0200 > > > > > > - Time elapses and 0200 gets forcibly flushed > > > > > > - Later, app comes

Re: [STLinux Kernel] [PATCH 3/8] serial: st-asc: Read in all Pinctrl states

2017-01-30 Thread Peter Griffin
Hi Lee, On Mon, 30 Jan 2017, Lee Jones wrote: > On Mon, 30 Jan 2017, Peter Griffin wrote: > > > Hi Lee, > > > > On Fri, 27 Jan 2017, Lee Jones wrote: > > > > > On Wed, 25 Jan 2017, Peter Griffin wrote: > > > > > > > Hi Lee, > > > > > > > > On Tue, 24 Jan 2017, Lee Jones wrote: > > > > > > >

Re: [PATCH V3 1/1] percpu-refcount: fix reference leak during percpu-atomic transition

2017-01-30 Thread Christoph Lameter
Acked-by: Christoph Lameter

Re: [PATCH] Pinctrl : berlin - Fix possible NULL derefrence.

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 12:10 PM, Shailendra Verma wrote: > of_match_device could return NULL, and so can cause a NULL > pointer dereference later. > > Signed-off-by: Shailendra Verma Patch applied. Yours, Linus Walleij

Re: [PATCH v1] video : fbdev : stifb :- Handle return NULL error from ioremap_nocache.

2017-01-30 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, January 18, 2017 03:51:51 PM Arvind Yadav wrote: > Here, If ioremap_nocache will fail. It will return NULL. > Kernel can run into a NULL-pointer dereference. > This error check will avoid NULL pointer dereference. > > Signed-off-by: Arvind Yadav Thanks, I queued your patch wi

Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-30 Thread Borislav Petkov
On Mon, Jan 30, 2017 at 02:04:46PM +0100, Thomas Gleixner wrote: > > The AMD-Manual from 12/16 does not mention that MSR. I do not have > > access to an AMD machine. But i can only assume that bigger machines > > also suffer from async TSCs and basically all fall back to HPET. > > Borislav? So fa

[PATCH] drm: mali-dp: add custom plane ->reset hook

2017-01-30 Thread Mihail Atanassov
The reset hook needs to allocate space for a malidp_plane_state, which is larger than drm_plane_state. Otherwise, the hook is identical to the default one. Signed-off-by: Mihail Atanassov --- drivers/gpu/drm/arm/malidp_planes.c | 23 ++- 1 file changed, 22 insertions(+), 1 de

Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

2017-01-30 Thread Stanislaw Gruszka
On Mon, Jan 30, 2017 at 03:56:49PM +0100, Frederic Weisbecker wrote: > On Mon, Jan 30, 2017 at 03:32:24PM +0100, Stanislaw Gruszka wrote: > > On Mon, Jan 30, 2017 at 05:46:43AM +0100, Frederic Weisbecker wrote: > > > Now lets admit one drawback: s390 and powerpc with > > > CONFIG_VIRT_CPU_ACCOUNTIN

Re: mm: deadlock between get_online_cpus/pcpu_alloc

2017-01-30 Thread Dmitry Vyukov
On Sun, Jan 29, 2017 at 6:22 PM, Vlastimil Babka wrote: > On 29.1.2017 13:44, Dmitry Vyukov wrote: >> Hello, >> >> I've got the following deadlock report while running syzkaller fuzzer >> on f37208bc3c9c2f811460ef264909dfbc7f605a60: >> >> [ INFO: possible circular locking dependency detected ] >>

[PATCH 08/15] phy: qcom-ufs: Don't kfree devres resource

2017-01-30 Thread Kishon Vijay Abraham I
From: Bjorn Andersson Upon failing to acquire regulator supplies the qcom-ufs driver calls kfree() on the devm allocated memory used to store the name of the regulator, leading to devres corruption. Rather than switching to using the appropriate free function the patch acknowledge the fact that

Re: [PATCHv2] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-01-30 Thread Russell King - ARM Linux
On Tue, Jan 24, 2017 at 11:24:51PM +, Abel Vesa wrote: > The DYNAMIC_FTRACE_WITH_REGS configuration makes it possible for a ftrace > operation to specify if registers need to saved/restored by the ftrace > handler. > This is needed by kgraft and possibly other ftrace-based tools, and the ARM >

[PATCH v2 5/5] iio: adc: stm32: add exti gpio trigger source

2017-01-30 Thread Fabrice Gasnier
STM32F4 ADC can use exti11 (gpio) signal as trigger source for conversions. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index be0e457..0118c9c 100644 --- a/driv

Re: [RFC v2 03/10] KVM: arm/arm64: Decouple kvm timer functions from virtual timer

2017-01-30 Thread Christoffer Dall
On Thu, Jan 26, 2017 at 08:04:53PM -0500, Jintack Lim wrote: > Now that we have a separate structure for timer context, make functions > general so that they can work with any timer context, not just the > virtual timer context. This does not change the virtual timer > functionality. > > Signed-o

[PATCH v4 2/2] prctl: propagate has_child_subreaper flag to every descendant

2017-01-30 Thread Pavel Tikhomirov
If process forks some children when it has is_child_subreaper flag enabled they will inherit has_child_subreaper flag - first group, when is_child_subreaper is disabled forked children will not inherit it - second group. So child-subreaper does not reparent all his descendants when their parents di

Re: [PATCH v4 1/2] mm/migration: make isolate_movable_page always defined

2017-01-30 Thread Michal Hocko
On Mon 30-01-17 22:59:52, Yisheng Xie wrote: > Hi, Michal, > Sorry for late reply. > > On 01/26/2017 05:18 PM, Michal Hocko wrote: > > On Wed 25-01-17 23:05:37, ys...@foxmail.com wrote: > >> From: Yisheng Xie > >> > >> Define isolate_movable_page as a static inline function when > >> CONFIG_MIGRA

Re: [PATCH v3 04/24] drm/rockchip: dw-mipi-dsi: fix command header writes

2017-01-30 Thread Sean Paul
On Sun, Jan 29, 2017 at 01:24:24PM +, John Keeping wrote: > In a couple of places here we use "val" for the value that is about to > be written to a register but then reuse the same variable for the value > of a status register before we get around to writing it. Rename the > value to be writt

[PATCH 0/2] gpio: Add the devm_fwnode_get_index_gpiod_from_child() helper

2017-01-30 Thread Boris Brezillon
Hello Linus, I send these 2 patches separately from the Atmel NAND driver rework since these are self-contained and do not have any external dependencies. Feel free to apply them in your tree if you are happy with this version and once other subsystem maintainers have acked patch 1. Thanks, Bor

[PATCH 1/2] gpio: Rename devm_get_gpiod_from_child()

2017-01-30 Thread Boris Brezillon
Rename devm_get_gpiod_from_child() into devm_fwnode_get_gpiod_from_child() to reflect the fact that this function is operating on a fwnode object. Signed-off-by: Boris Brezillon --- drivers/gpio/devres.c | 11 ++- drivers/input/keyboard/gpio_keys.c| 3 ++- dr

Re: [PATCH] PCI: mvebu: Handle changes to the bridge windows while enabled

2017-01-30 Thread Bjorn Helgaas
On Mon, Dec 12, 2016 at 11:30:20AM -0700, Jason Gunthorpe wrote: > The PCI core will write to the bridge window config multiple times > while they are enabled. This can lead to mbus failures like: > > mvebu_mbus: cannot add window '4:e8', conflicts with another window > mvebu-pcie mbus:pex@e

Re: [PATCH v4 2/2] ceph: switch DIO code to use iov_iter_get_pages_alloc

2017-01-30 Thread Jeff Layton
On Fri, 2017-01-27 at 08:24 -0500, Jeff Layton wrote: > xfstest generic/095 triggers soft lockups in kcephfs. It uses fio to > drive some I/O via vmsplice ane splice. Ceph then ends up trying to > access an ITER_BVEC type iov_iter as a ITER_IOVEC one. That causes it to > pick up a wrong offset and

[PATCH 2/2] gpio: Add the devm_fwnode_get_index_gpiod_from_child() helper

2017-01-30 Thread Boris Brezillon
devm_fwnode_get_gpiod_from_child() currently allows GPIO users to request a GPIO that is defined in a child fwnode instead of directly in the device fwnode. Extend this API by adding the devm_fwnode_get_index_gpiod_from_child() helper which does the same except you can also specify an index in case

Re: [PATCH v3 02/24] drm/rockchip: dw-mipi-dsi: pass mode in where needed

2017-01-30 Thread Sean Paul
On Sun, Jan 29, 2017 at 01:24:22PM +, John Keeping wrote: > This shows that we only use the mode from the enable function and > prepares us to remove the "mode" field and the mode_set hook in the next > commit. > Reviewed-by: Sean Paul > Signed-off-by: John Keeping > Reviewed-by: Chris Zho

Re: [PATCH v3 03/24] drm/rockchip: dw-mipi-dsi: remove mode_set hook

2017-01-30 Thread Sean Paul
On Sun, Jan 29, 2017 at 01:24:23PM +, John Keeping wrote: > This is not needed since we can access the mode via the CRTC from the > enable hook. Also remove the "mode" field that is no longer used. > Reviewed-by: Sean Paul > Signed-off-by: John Keeping > Reviewed-by: Chris Zhong > --- >

Re: [PATCH 1/3] pinctrl: intel: Add support for hardware debouncer

2017-01-30 Thread Mika Westerberg
On Mon, Jan 30, 2017 at 03:03:32PM +0100, Linus Walleij wrote: > On Fri, Jan 27, 2017 at 11:07 AM, Mika Westerberg > wrote: > > > The next generation Intel GPIO hardware has two additional registers > > PADCFG2 and PADCFG3. The latter is marked as reserved but the former > > includes configuratio

Re: [PATCH 04/14] x86/fpu: Remove 'kbuf' parameter from the copy_xstate_to_user() APIs

2017-01-30 Thread Borislav Petkov
On Mon, Jan 30, 2017 at 10:57:28AM +0100, Ingo Molnar wrote: > Would anyone object to using u32 in these prototypes? Well, would there be any disadvantage to forcing them to u32? Potentially by something else wanting to use those interfaces besides the regset thing and that something else doesn't

Re: [PATCH 08/37] cputime: Convert task/group cputime to nsecs

2017-01-30 Thread Frederic Weisbecker
On Mon, Jan 30, 2017 at 02:54:51PM +0100, Stanislaw Gruszka wrote: > On Sat, Jan 28, 2017 at 04:28:13PM +0100, Frederic Weisbecker wrote: > > On Sat, Jan 28, 2017 at 12:57:40PM +0100, Stanislaw Gruszka wrote: > > > On 32 bit architectures 64bit store/load is not atomic and if not > > > protected -

Re: [PATCH 2/2] gpio: mcp23s08: add pinconf support

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 3:47 PM, Sebastian Reichel wrote: > mcp23xxx device have configurable 100k pullup resistors. This adds > support for enabling them using pinctrl's pinconf interface. > > Signed-off-by: Sebastian Reichel That's the right approach! > diff --git a/drivers/gpio/gpio-mcp23s0

Re: [PATCH RESEND 0/2] DEC frame buffer modular driver cleanups

2017-01-30 Thread Bartlomiej Zolnierkiewicz
Hi, On Thursday, January 12, 2017 12:54:57 PM Maciej W. Rozycki wrote: > Hi, > > This is a pair of small cleanups for `__init' annotation issues in PMAG-B > and PMAGB-B frame buffer drivers discovered in a modular build, which is a > seldom used, but supported configuration. > > Resending t

Re: [PATCH v3 01/24] drm/rockchip: dw-mipi-dsi: don't configure hardware in mode_set for MIPI

2017-01-30 Thread Sean Paul
On Sun, Jan 29, 2017 at 01:24:21PM +, John Keeping wrote: > With atomic modesetting the hardware will be powered off when the > mode_set function is called. We should configure the hardware in the > enable function, which is the atomic version of "commit" so let's use > the enable hook rather

[PATCH 2/5] iio: adc: stm32: add dt option to set default trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Add dt option to configure it. Note: default value may be overridden later via trigger_polarity sysfs attribute. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc.c | 7 +++ 1 file changed, 7 insertions

Re: [PATCH v5 06/12] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2017-01-30 Thread Ziji Hu
Hi Ulf, On 2017/1/30 16:41, Ulf Hansson wrote: > [...] > + */ +static int xenon_child_node_of_parse(struct platform_device *pdev) +{ + struct device_node *np = pdev->dev.of_node; + struct sdhci_host *host = platform_get_drvdata(pdev); + struct mmc_h

Re: [PATCH v3 24/24] drm/rockchip: dw-mipi-dsi: support read commands

2017-01-30 Thread Sean Paul
On Sun, Jan 29, 2017 at 01:24:44PM +, John Keeping wrote: > I haven't found any method for getting the length of a response, so this > just uses the requested rx_len > > Signed-off-by: John Keeping > --- > v3: > - Fix checkpatch warnings > Unchanged in v2 > > drivers/gpu/drm/rockchip/dw-mip

Re: [PATCH] Pinctrl: mvebu - Fix possible NULL derefrence.

2017-01-30 Thread Linus Walleij
On Mon, Jan 30, 2017 at 9:24 AM, Thomas Petazzoni wrote: > On Mon, 30 Jan 2017 10:21:43 +0530, Shailendra Verma wrote: >> of_match_device could return NULL, and so can cause a NULL >> pointer dereference later. >> >> Signed-off-by: Shailendra Verma > > In practice, I don't see how of_match_device

Re: [STLinux Kernel] [PATCH 3/8] serial: st-asc: Read in all Pinctrl states

2017-01-30 Thread Lee Jones
On Mon, 30 Jan 2017, Peter Griffin wrote: > Hi Lee, > > On Fri, 27 Jan 2017, Lee Jones wrote: > > > On Wed, 25 Jan 2017, Peter Griffin wrote: > > > > > Hi Lee, > > > > > > On Tue, 24 Jan 2017, Lee Jones wrote: > > > > > > > There are now 2 possible separate/different Pinctrl states which can

Re: [PATCH v3 01/10] drivers: pinctrl: add driver for Allwinner H5 SoC

2017-01-30 Thread Linus Walleij
On Sun, Jan 29, 2017 at 3:33 AM, Icenowy Zheng wrote: > Based on the Allwinner H5 datasheet and the pinctrl driver of the > backward-compatible H3 this introduces the pin multiplex assignments for > the H5 SoC. > > H5 introduced some more pin functions (e.g. three more groups of TS > pins, and on

Re: [PATCH v3 16/24] media: Add i.MX media core driver

2017-01-30 Thread Russell King - ARM Linux
On Mon, Jan 23, 2017 at 12:13:26PM +0100, Philipp Zabel wrote: > Hi Steve, > > On Sun, 2017-01-22 at 18:31 -0800, Steve Longerbeam wrote: > > Second, ignoring the above locking issue for a moment, > > v4l2_pipeline_pm_use() > > will call s_power on the sensor _first_, then the mipi csi-2 s_power,

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-30 Thread Borislav Petkov
On Mon, Jan 30, 2017 at 02:51:51PM +, Russell King - ARM Linux wrote: > Like it or not, it is _already_ exported to userspace, so it forms Well, I did try to stop it then too: b72e7464e4cf ("x86/uapi: Do not export as part of the user API headers") And yet this wankery trickled out to us

[PATCH 1/2] introduce the walk_process_tree() helper

2017-01-30 Thread Pavel Tikhomirov
From: Oleg Nesterov Add the new helper to walk the process tree, the next patch adds a user. Note that it visits the group leaders only, proc_visitor can do for_each_thread itself or we can trivially extend walk_process_tree() to do this. Signed-off-by: Oleg Nesterov Signed-off-by: Pavel Tikhom

[PATCH v3 2/2] prctl: propagate has_child_subreaper flag to every descendant

2017-01-30 Thread Pavel Tikhomirov
If process forks some children when it has is_child_subreaper flag enabled they will inherit has_child_subreaper flag - first group, when is_child_subreaper is disabled forked children will not inherit it - second group. So child-subreaper does not reparent all his descendants when their parents di

[PATCH 1/2] introduce the walk_process_tree() helper

2017-01-30 Thread Pavel Tikhomirov
From: Oleg Nesterov Add the new helper to walk the process tree, the next patch adds a user. Note that it visits the group leaders only, proc_visitor can do for_each_thread itself or we can trivially extend walk_process_tree() to do this. Signed-off-by: Oleg Nesterov Signed-off-by: Pavel Tikhom

Re: [RFC v2 PATCH] mm/hotplug: enable memory hotplug for non-lru movable pages

2017-01-30 Thread Yisheng Xie
hi Michal, Thank you for reviewing and sorry for late reply. On 01/26/2017 05:43 PM, Michal Hocko wrote: > On Wed 25-01-17 14:59:45, Yisheng Xie wrote: > > static unsigned long scan_movable_pages(unsigned long start, unsigned long > end) > { > @@ -1531,6 +1531,16 @@ static unsigned long scan_m

[PATCH v4 0/2] prctl: make PR_SET_CHILD_SUBREAPER deterministic

2017-01-30 Thread Pavel Tikhomirov
Oleg Nesterov (1): introduce the walk_process_tree() helper Pavel Tikhomirov (1): prctl: propagate has_child_subreaper flag to every descendant include/linux/sched.h | 3 +++ kernel/fork.c | 42 +++--- kernel/sys.c | 22 ++

[PATCH v3 0/2] prctl: make PR_SET_CHILD_SUBREAPER deterministic

2017-01-30 Thread Pavel Tikhomirov
Oleg Nesterov (1): introduce the walk_process_tree() helper Pavel Tikhomirov (1): prctl: propagate has_child_subreaper flag to every descendant include/linux/sched.h | 3 +++ kernel/fork.c | 42 +++--- kernel/sys.c | 22 ++

[PATCH] PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe hierarchies

2017-01-30 Thread Bjorn Helgaas
In a struct pcie_link_state, link->root points to the pcie_link_state of the root of the PCIe hierarchy. For the topmost link, this points to itself (link->root = link). For others, we copy the pointer from the parent (link->root = link->parent->root). Previously we recognized that Root Ports or

Re: [PATCH 4/9] ila: simplify a strange allocation pattern

2017-01-30 Thread Vlastimil Babka
On 01/30/2017 10:49 AM, Michal Hocko wrote: From: Michal Hocko alloc_ila_locks seemed to c&p from alloc_bucket_locks allocation pattern which is quite unusual. The default allocation size is 320 * sizeof(spinlock_t) which is sub page unless lockdep is enabled when the performance benefit is rea

Re: [PATCH 1/2] iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu

2017-01-30 Thread Joerg Roedel
Hi Ashok, On Fri, Jan 27, 2017 at 08:32:39AM -0800, Ashok Raj wrote: > From: CQ Tang > > Some of the macros are incorrect with wrong bit-shifts resulting in picking > the incorrect invalidation granularity. Incorrect Source-ID in extended > devtlb invalidation caused device side errors. > > To:

Re: [PATCH 2/8] pinctrl: stm32: use gpio-ranges to declare bank range

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 5:15 PM, Alexandre TORGUE wrote: > Use device tree entries to declare gpio range. It will allow to use > no contiguous gpio bank and holes inside a bank. > > Signed-off-by: Alexandre TORGUE (...) > + of_property_read_string(np, "st,bank-name", &bank->gpio_chip.labe

Re: [PATCH v8] perf: add qcom l2 cache perf events driver

2017-01-30 Thread Mark Rutland
Hi Neil, Apologies for the delay in getting to this. This is largely looking good now. I have a couple of concerns with the hotplug logic, but I think we can solve those without too much pain. More on that below. On Mon, Jan 16, 2017 at 01:52:47PM -0500, Neil Leeder wrote: > +#define L2PMRESR_

Re: [PATCH REPOST 2/2] cgroup, perf_event: make perf_event controller work on cgroup2 hierarchy

2017-01-30 Thread Tejun Heo
Hello, On Mon, Jan 30, 2017 at 11:05:41AM -0300, Arnaldo Carvalho de Melo wrote: > > This was posted months ago and acked by Peter. I thought it was > > applied but apparently wasn't. Peter asked Arnaldo whether the > > userspace part looked which didn't get replied and that probably was > > how

Re: [PATCH v4 2/2] HWPOISON: soft offlining for non-lru movable page

2017-01-30 Thread Yisheng Xie
Hi, Michal, Sorry for late reply. On 01/26/2017 05:27 PM, Michal Hocko wrote: > On Wed 25-01-17 23:05:38, ys...@foxmail.com wrote: >> From: Yisheng Xie >> >> This patch is to extends soft offlining framework to support >> non-lru page, which already support migration after >> commit bda807d44454

Re: [PATCH 1/8] pinctrl: stm32: fix bad location of gpiochip_lock_as_irq

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 5:15 PM, Alexandre TORGUE wrote: > Move gpio lock as irq from "domain alloc" callback to "domain activate" > callback. It will allow to use gpiolib sysfs correctly. > > Signed-off-by: Alexandre TORGUE Patch applied. Yours, Linus Walleij

Re: [PATCH v2 1/9] drivers: pinctrl: add driver for Allwinner H5 SoC

2017-01-30 Thread Linus Walleij
On Thu, Jan 26, 2017 at 4:48 PM, Icenowy Zheng wrote: > Based on the Allwinner H5 datasheet and the pinctrl driver of the > backward-compatible H3 this introduces the pin multiplex assignments for > the H5 SoC. > > H5 introduced some more pin functions (e.g. three more groups of TS > pins, and on

Re: [PATCH v4] add u64 number parser

2017-01-30 Thread J. R. Okajima
Hello James, Your commit a317178 2016-12-06 parser: add u64 number parser was merged into v4.10-rc1. Good. I have a very similar function and used for a long time. Here I'd suggest you a tiny optimization based on my version. If you think another value is more apropriate as the size of an

Re: [PATCH net] net: ethtool: add support for 2500BaseT and 5000BaseT link modes

2017-01-30 Thread David Miller
From: Pavel Belous Date: Sat, 28 Jan 2017 22:53:28 +0300 > This patch introduce support for 2500BaseT and 5000BaseT link modes. > These modes are included in the new IEEE 802.3bz standard. > > Signed-off-by: Pavel Belous Applied.

[PATCH v3] xen,input: try to read screen resolution for xen-kbdfront

2017-01-30 Thread Juergen Gross
Instead of using the default resolution of 800*600 for the pointing device of xen-kbdfront try to read the resolution of the (virtual) framebuffer device. Use the default as fallback only. Signed-off-by: Juergen Gross --- V3: add case of late framebuffer registration (Oleksandr Andrushchenko) V2:

Re: [PATCH 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-01-30 Thread Kirill Tkhai
ping On 14.01.2017 17:15, Kirill Tkhai wrote: > For correct checkpointing/restoring of a task from userspace > it's need to know the task's pid_ns_for_children. Currently, > there is no a sane way to do that (the only possible trick > is to force the task create a new child and to analize the > ch

Re: [PATCH v2 0/2] drm: Add support for tiny LCD displays

2017-01-30 Thread Noralf Trønnes
Den 30.01.2017 09.44, skrev Daniel Vetter: Hi Noralf, On Fri, Jan 27, 2017 at 08:56:29PM +0100, Noralf Trønnes wrote: This is an attempt at providing a DRM version of drivers/staging/fbtft. The tinydrm library provides a very simplified view of DRM in particular for tiny displays that has onb

Re: [PATCH] tools/headers: Sync {tools/,}arch/powerpc/include/uapi/asm/kvm.h, {tools/,}arch/x86/include/asm/cpufeatures.h and {tools/,}arch/arm/include/uapi/asm/kvm.h

2017-01-30 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 30, 2017 at 09:11:31AM +0100, Ingo Molnar escreveu: > > The following upstream headers were updated: > > - The x86 cpufeatures.h file picked up a couple of new feature entries > - The PowerPC and ARM KVM headers picked up new features > > None of which requires changes to perf tool

[PATCH v3 4/4] arm64: dts: msm8996: Add SLPI SMP2P dt node.

2017-01-30 Thread Avaneesh Kumar Dwivedi
Add smp2p support to communicate with slpi processor. Signed-off-by: Avaneesh Kumar Dwivedi --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index

Re: [PATCH 0/8] Add STM32F469 pinctrl and fix issues in STM32 pinctrl

2017-01-30 Thread Alexandre Torgue
Hi, On 01/27/2017 05:15 PM, Alexandre TORGUE wrote: This series adds support of a dedicated driver for STM32F469 MCU pinctroller. This add generates some changes inside STM32 pinctrl driver and inside STM32 device tree. Changes in STM32 pinctrl driver: ---

[PATCH v3 1/4] remoteproc: qcom: Compatible string based resource initialization.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch initialize certain driver related data based on compatible string. This enable driver to handle more than one similar device in by differentiating in probe their private data. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_adsp_pil.c | 47 ++-

[PATCH v3 3/4] remoteproc: qcom: Add SLPI rproc support to load and boot slpi proc.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add slpi remoteproc support in existing adsp rproc driver. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,adsp.txt | 28 ++ drivers/remoteproc/qcom_adsp_pil.c | 10 +++- 2 files changed, 37 insertions(+), 1 d

[PATCH v3 0/4]remoteproc: qcom: Add support for Qualcomm low pass sensor peripheral loader.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patchset has changed from last patchset in below respect 1- Generic regulator and clock resource handling is dropped. 2- Introdused additional px supply and aggre2 clock initialization. 3- Add SLPI boot support in existing ADSP driver. 4- Address other minor com

[PATCH v3 2/4] remoteproc: qcom: Add additional agree2_clk and px regulator resource.

2017-01-30 Thread Avaneesh Kumar Dwivedi
This patch add additional clock and regulator resource which are initialized based on compatible and has no impact on existing driver working. This resourse addition enable the existing driver to handle. low pass sensor processor device also. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/rem

Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

2017-01-30 Thread Frederic Weisbecker
On Mon, Jan 30, 2017 at 03:32:24PM +0100, Stanislaw Gruszka wrote: > On Mon, Jan 30, 2017 at 05:46:43AM +0100, Frederic Weisbecker wrote: > > Now lets admit one drawback: s390 and powerpc with > > CONFIG_VIRT_CPU_ACCOUNTING_NATIVE have new cputime_t to nsecs conversion > > on cputime accounting pat

Re: workqueue lockup due to process_unsol_events stuck in azx_rirb_get_response

2017-01-30 Thread Vlastimil Babka
On 01/25/2017 06:06 PM, Takashi Iwai wrote: The code path is related with the runtime PM, so it's likely depending on the device state, e.g. long-time pause or such. I don't think Win 10 plays a role, but who knows. In anyway, let me know if this helps. Basically I can merge it even for now, a

Re: [RFC v2 06/10] KVM: arm/arm64: Update the physical timer interrupt level

2017-01-30 Thread Christoffer Dall
On Sun, Jan 29, 2017 at 03:21:06PM +, Marc Zyngier wrote: > On Fri, Jan 27 2017 at 01:04:56 AM, Jintack Lim > wrote: > > Now that we maintain the EL1 physical timer register states of VMs, > > update the physical timer interrupt level along with the virtual one. > > > > Note that the emulated

Re: [PATCH v4 1/2] mm/migration: make isolate_movable_page always defined

2017-01-30 Thread Yisheng Xie
Hi, Michal, Sorry for late reply. On 01/26/2017 05:18 PM, Michal Hocko wrote: > On Wed 25-01-17 23:05:37, ys...@foxmail.com wrote: >> From: Yisheng Xie >> >> Define isolate_movable_page as a static inline function when >> CONFIG_MIGRATION is not enable. It should return false >> here which means

Re: [PATCH v4 3/7] x86: put msr-index.h in uapi

2017-01-30 Thread Russell King - ARM Linux
On Mon, Jan 23, 2017 at 05:52:45PM +0100, Borislav Petkov wrote: > On Mon, Jan 23, 2017 at 03:58:37PM +0100, Nicolas Dichtel wrote: > > This header file is exported, thus move it to uapi. > > Why? Why is this damn thing exported in the first place? > > The moment we decide to change an MSR name o

Re: [PATCH 10/18] ARM64: dts: meson-gxbb: Reorder nodes

2017-01-30 Thread Russell King - ARM Linux
On Mon, Jan 23, 2017 at 10:52:08AM -0600, Rob Herring wrote: > On Fri, Jan 20, 2017 at 11:21:10PM +0100, Andreas Färber wrote: > > Sort nodes referenced by label alphabetically. > > Seems to be pointless churn. Depends - if, as the author of a dts file, I order the nodes alphabetically, and then

Re: [RFC v2 05/10] KVM: arm/arm64: Initialize the emulated EL1 physical timer

2017-01-30 Thread Christoffer Dall
On Sun, Jan 29, 2017 at 12:07:48PM +, Marc Zyngier wrote: > On Fri, Jan 27 2017 at 01:04:55 AM, Jintack Lim > wrote: > > Initialize the emulated EL1 physical timer with the default irq number. > > > > Signed-off-by: Jintack Lim > > --- > > arch/arm/kvm/reset.c | 9 - > > arc

Re: [PATCH v3 0/2] prctl: make PR_SET_CHILD_SUBREAPER deterministic

2017-01-30 Thread Pavel Tikhomirov
please drop it, errors in commit message On 01/30/2017 05:48 PM, Pavel Tikhomirov wrote: Oleg Nesterov (1): introduce the walk_process_tree() helper Pavel Tikhomirov (1): prctl: propagate has_child_subreaper flag to every descendant include/linux/sched.h | 3 +++ kernel/fork.c |

Re: [PATCH 1/2] gpio: mcp23s08: use regmap

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 3:47 PM, Sebastian Reichel wrote: > Use regmap API to save some lines of codes and have > debugfs support for all of the MCP's registers. > > Signed-off-by: Sebastian Reichel Patch applied. Irresistible cleanup! Yours, Linus Walleij

Re: [RFC v2 02/10] KVM: arm/arm64: Move cntvoff to each timer context

2017-01-30 Thread Marc Zyngier
On 30/01/17 14:45, Christoffer Dall wrote: > On Sun, Jan 29, 2017 at 11:54:05AM +, Marc Zyngier wrote: >> On Fri, Jan 27 2017 at 01:04:52 AM, Jintack Lim >> wrote: >>> Make cntvoff per each timer context. This is helpful to abstract kvm >>> timer functions to work with timer context without c

Re: [PATCH] PCI: mvebu: Handle changes to the bridge windows while enabled

2017-01-30 Thread Jason Cooper
Hi Bjorn, On Sat, Jan 28, 2017 at 03:17:28PM -0600, Bjorn Helgaas wrote: > On Wed, Jan 11, 2017 at 12:30:55PM -0600, Bjorn Helgaas wrote: > > On Mon, Dec 12, 2016 at 11:30:20AM -0700, Jason Gunthorpe wrote: > > > The PCI core will write to the bridge window config multiple times > > > while they a

[PATCH 5/5] gpio: ws16c48: Remove unnecessary driver_data set

2017-01-30 Thread William Breathitt Gray
Setting driver_data was necessary to access private data in the ws16c48_remove function. Now that the ws16c48_remove function is gone, driver_data is no longer used. This patch removes the relevant code. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 2 -- 1 file changed

[PATCH 4/5] gpio: gpio-mm: Remove unnecessary driver_data set

2017-01-30 Thread William Breathitt Gray
Setting driver_data was necessary to access private data in the gpiomm_remove function. Now that the gpiomm_remove function is gone, driver_data is no longer used. This patch removes the relevant code. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 2 -- 1 file changed,

Re: [PATCHv5 0/5] Support for Marvell switches with integrated CPUs

2017-01-30 Thread Gregory CLEMENT
Hi Chris, On dim., janv. 29 2017, Chris Packham wrote: > On 28/01/17 07:47, Stephen Boyd wrote: >> On 01/27, Gregory CLEMENT wrote: >>> Hi all, >>> >>> On ven., janv. 27 2017, Chris Packham >>> wrote: >>> The 98DX3236, 98DX3336 and 98DX4251 are a set of switch ASICs with integrat

Re: [RFC v2 02/10] KVM: arm/arm64: Move cntvoff to each timer context

2017-01-30 Thread Christoffer Dall
On Sun, Jan 29, 2017 at 11:54:05AM +, Marc Zyngier wrote: > On Fri, Jan 27 2017 at 01:04:52 AM, Jintack Lim > wrote: > > Make cntvoff per each timer context. This is helpful to abstract kvm > > timer functions to work with timer context without considering timer > > types (e.g. physical timer

[PATCH 1/2] dts: arm64: add LS1043A DPAA support

2017-01-30 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi | 33 +++ arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 + arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 75 +++ arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 73 +++

[PATCH 0/2] dts: arm64: add DPAA 1 support for ARM based SoCs

2017-01-30 Thread Madalin Bucur
Add DPAA 1 nodes for LS1043A/LS1046A and networking support for RDB and QDS boards with these SoCs. Madalin Bucur (2): dts: arm64: add LS1043A DPAA support dts: arm64: add LS1046A DPAA support arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi | 33 +++ arch/arm64/boot/dts/freescale/fsl

[PATCH 2/2] dts: arm64: add LS1046A DPAA support

2017-01-30 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi | 37 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 2 + arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 62 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 66 +

[tip:irq/urgent] irqdomain: Avoid activating interrupts more than once

2017-01-30 Thread tip-bot for Marc Zyngier
Commit-ID: 08d85f3ea99f1eeafc4e8507936190e86a16ee8c Gitweb: http://git.kernel.org/tip/08d85f3ea99f1eeafc4e8507936190e86a16ee8c Author: Marc Zyngier AuthorDate: Tue, 17 Jan 2017 16:00:48 + Committer: Thomas Gleixner CommitDate: Mon, 30 Jan 2017 15:18:56 +0100 irqdomain: Avoid activa

RE: ibmvtpm byteswapping inconsistency

2017-01-30 Thread David Laight
From: Tyrel Datwyler > Sent: 27 January 2017 18:03 > On 01/26/2017 05:50 PM, Benjamin Herrenschmidt wrote: > > On Thu, 2017-01-26 at 17:42 -0800, Tyrel Datwyler wrote: > >> On 01/26/2017 12:22 PM, Michal Suchnek wrote: > >>> Hello, > >>> > >>> building ibmvtpm I noticed gcc warning complaining that

[PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-01-30 Thread Fabrice Gasnier
Add dt documentation for st,stm32-exti-trigger. EXTi gpio signal can be routed internally as trigger source for various IPs (e.g. for ADC or DAC conversions). Signed-off-by: Fabrice Gasnier --- .../bindings/iio/trigger/st,stm32-exti-trigger.txt | 17 + 1 file changed, 17 ins

[PATCH 3/5] gpio: 104-idio-16: Remove unnecessary driver_data set

2017-01-30 Thread William Breathitt Gray
Setting driver_data was necessary to access private data in the idio_16_remove function. Now that the idio_16_remove function is gone, driver_data is no longer used. This patch removes the relevant code. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idio-16.c | 2 -- 1 file cha

[PATCH 2/5] gpio: 104-idi-48: Remove unnecessary driver_data set

2017-01-30 Thread William Breathitt Gray
Setting driver_data was necessary to access private data in the idi_48_remove function. Now that the idi_48_remove function is gone, driver_data is no longer used. This patch removes the relevant code. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 2 -- 1 file change

[PATCH 1/5] gpio: 104-dio-48e: Remove unnecessary driver_data set

2017-01-30 Thread William Breathitt Gray
Setting driver_data was necessary to access private data in the dio48e_remove function. Now that the dio48e_remove function is gone, driver_data is no longer used. This patch removes the relevant code. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-dio-48e.c | 2 -- 1 file chang

[PATCH 0/5] gpio: Remove unnecessary driver_data set operations

2017-01-30 Thread William Breathitt Gray
In a previous patchset ("gpio: Utilize devm_ functions in driver probe callbacks") the device remove functions for several drivers were removed as no longer necessary due to the patchset changes within. Setting driver_data had been necessary in these drivers in order to access private data in the r

[PATCH v2 1/5] Documentation: dt: iio: document stm32 adc trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Allow to configure it from dt. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/iio

<    2   3   4   5   6   7   8   9   10   11   >