[PATCH v15 10/12] perf tools: Enable overwrite settings

2016-07-12 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH perf/core 02/10] perf probe: Accept %sdt and %cached event name

2016-07-12 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on %lll_lock_wait_private in /usr/lib/libc

[PATCH perf/core 07/10] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-07-12 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on sdt_libstdcxx

[PATCH perf/core 01/10] [BUGFIX] perf-probe: Fix to show correct error message for $vars and $params

2016-07-12 Thread Masami Hiramatsu
Fix to show correct error messages for $vars and $params because those special variables requires debug information to find the real variables or function parameters. E.g. without this fix; # perf probe -x /lib64/libc-2.23.so getaddrinfo \$params Failed to write event: Invalid argument

[PATCH perf/core 05/10] perf probe: Allow wildcard for cached events

2016-07-12 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in v12: - Rename strlist

[PATCH perf/core 04/10] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-07-12 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8 tools/perf/util/probe-file.h |2 ++ 2 files c

[PATCH perf/core 03/10] perf-probe: Make --list shows only available cached events

2016-07-12 Thread Masami Hiramatsu
From: Masami Hiramatsu Make "perf probe --cache --list" shows only available cached events by checking build-id validity. E.g. without this patch: $ ./perf probe --cache --add oldevent=cmd_probe $ make #(to update ./perf) $ ./perf probe --cache --add newevent=cmd_probe $ ./perf pr

[PATCH perf/core 00/10] perf-probe --cache and SDT support

2016-07-12 Thread Masami Hiramatsu
Hi, Here is the 14th version of the patchset for probe-cache and initial SDT support. Here is the previous v13: https://lkml.org/lkml/2016/7/1/133 This version includes patches which not merged yet. This also adds a bugfix; - [1/10] Resend the bugfix patch which was sent 4th July. (h

[PATCH perf/core 06/10] perf probe: Search SDT/cached event from all probe caches

2016-07-12 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\

[PATCH] Documentation: add watermark_scale_factor to the list of vm systcl file

2016-07-12 Thread Jerome Marchand
Commit 795ae7a0de6b ("mm: scale kswapd watermarks in proportion to memory") properly added the description of the new knob to Documentation/sysctl/vm.txt, but forgot to add it to the list of files in /proc/sys/vm. Let's fix that. Signed-off-by: Jerome Marchand --- Documentation/sysctl/vm.txt | 1

[PATCH perf/core 08/10] perf probe: Support a special SDT probe format

2016-07-12 Thread Masami Hiramatsu
Support a special SDT probe format which can omit the '%' prefix only if the SDT group name starts with "sdt_". So, for example both of "%sdt_libc:setjump" and "sdt_libc:setjump" are acceptable for perf probe --add. E.g. without this: # perf probe -a sdt_libc:setjmp Semantic error :Ther

[PATCH perf/core 10/10] perf-test: Add a test case for SDT event

2016-07-12 Thread Masami Hiramatsu
Add a basic test case for SDT event support. This test scans an SDT event in perftools and check whether the SDT event is correctly stored into the buildid cache. Here is an example: $ perf test sdt -v 47: Test SDT event probing : --- start --- test

Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine

2016-07-12 Thread Pawel Moll
On Mon, 2016-07-11 at 12:28 +, Anna-Maria Gleixner wrote: > From: Sebastian Andrzej Siewior > > Install the callbacks via the state machine and let the core invoke > the callbacks on the already online CPUs. > > Signed-off-by: Sebastian Andrzej Siewior > Cc: Pawel Moll > Signed-off-by: Ann

[PATCH perf/core 09/10] perf build: Add sdt feature detection

2016-07-12 Thread Masami Hiramatsu
This checks whether sys/sdt.h is available or not, which is required for DTRACE_PROBE(). We can disable this feature by passing NO_SDT=1 when building. This flag will be used for SDT test case and further SDT events in perftools. Signed-off-by: Masami Hiramatsu --- tools/perf/Makefile.perf |

Re: [Intel-gfx] Bad flicker on skylake HQD due to code in the 4.7 merge window

2016-07-12 Thread Daniel Vetter
On Fri, Jun 24, 2016 at 01:42:06PM +0100, Chris Wilson wrote: > On Fri, Jun 24, 2016 at 12:48:17PM +0100, Steven Newbury wrote: > > On Fri, 2016-06-24 at 11:59 +0100, Chris Wilson wrote: > > > On Thu, Jun 23, 2016 at 02:14:12PM +0100, Steven Newbury wrote: > > > > On Thu, 2016-06-23 at 15:59 +0300,

Re: [PATCH] mmc: block: fix free of uninitialized 'idata->buf'

2016-07-12 Thread Ulf Hansson
+ stable On 8 July 2016 at 17:27, Ville Viinikka wrote: > Set 'idata->buf' to NULL so that it never gets returned without > initialization. This fixes a bug where mmc_blk_ioctl_cmd() would > free both 'idata' and 'idata->buf' but 'idata->buf' was returned > uninitialized. > > Fixes: 1ff8950c0433

Re: [PATCH v6] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-07-12 Thread Alexander Potapenko
On Fri, Jul 8, 2016 at 7:00 PM, Andrey Ryabinin wrote: > > > On 07/08/2016 01:36 PM, Alexander Potapenko wrote: >> >> diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h >> index d1faa01..07e4549 100644 >> --- a/include/linux/slub_def.h >> +++ b/include/linux/slub_def.h >> @@ -99,6 +9

Re: [PATCH] devfreq: Add COMPILE_TEST for build coverage

2016-07-12 Thread MyungJoo Ham
On Wed, Jun 29, 2016 at 8:17 PM, Krzysztof Kozlowski wrote: > On 06/27/2016 03:58 PM, Krzysztof Kozlowski wrote: >> The SoC-specific devfreq and event drivers can be build tested on all >> architectures. >> >> Signed-off-by: Krzysztof Kozlowski >> >> --- >> >> Success of compilation tested on ARM

Re: [PATCH] iommu: arm-smmu: drop devm_free_irq when driver detach

2016-07-12 Thread Robin Murphy
On 12/07/16 02:33, Peng Fan wrote: > There is no need to call devm_free_irq when driver detach. > devres_release_all which is called after 'drv->remove' will > release all managed resources. > > Signed-off-by: Peng Fan > Cc: Will Deacon > Cc: Robin Murphy drivers/iommu/arm-smmu.c: In function

Re: [PATCH 2/2 v16] drm/bridge: Add I2C based driver for ps8640 bridge

2016-07-12 Thread Daniel Vetter
On Wed, Jun 29, 2016 at 6:31 AM, Daniel Kurtz wrote: > On Fri, Jun 17, 2016 at 3:14 AM, Emil Velikov > wrote: >>> +static ssize_t ps8640_update_fw_store(struct device *dev, >>> + struct device_attribute *attr, >>> + const ch

[PATCH v3 2/2] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-12 Thread Lv Zheng
There are many AML tables reporting wrong initial lid state, and some of them never reports lid open state. As a proxy layer acting between, ACPI button driver is not able to handle all such cases, but need to re-define the usage model of the ACPI lid. That is: 1. It's initial state is not reliable

Re: [PATCH v5] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-07-12 Thread Alexander Potapenko
On Fri, Jul 8, 2016 at 5:31 PM, Andrey Ryabinin wrote: > > > On 07/08/2016 01:36 PM, Alexander Potapenko wrote: >> On Tue, Jun 28, 2016 at 6:51 PM, Andrey Ryabinin >> wrote: > *flags |= SLAB_KASAN; + /* Add alloc meta. */ cache->kasan_info.alloc_meta_offset =

[PATCH v3 1/2] ACPI / button: Add KEY_LID_CLOSE for new usage model

2016-07-12 Thread Lv Zheng
There are many AML tables reporting wrong initial lid state, and some of them never reports lid open state. As a proxy layer acting between, ACPI button driver is not able to handle all such cases, but need to re-define the usage model of the ACPI lid. That is: 1. It's initial state is not reliable

Re: [PATCH 0/2] PCI: altera: fix link retrain

2016-07-12 Thread Ley Foon Tan
On Tue, Jun 21, 2016 at 4:53 PM, Ley Foon Tan wrote: > > This 2 patches fix the issue before and after retrain link. > > Ley Foon Tan (2): > PCI: altera: check link status before retrain link > PCI: altera: Polling for link up status after retrain the link > > drivers/pci/host/pcie-altera.c |

Re: [PATCH 1/2] drm: Add drm driver for OpenCores VGA/LCD display controller

2016-07-12 Thread Daniel Vetter
On Mon, Jul 04, 2016 at 11:27:38AM +0200, Andrea Merello wrote: > On Fri, Jun 10, 2016 at 4:27 PM, Daniel Vetter wrote: > > On Thu, Jun 09, 2016 at 03:32:55PM +0200, Andrea Merello wrote: > >> This driver supports the VGA/LCD core available from OpenCores: > >> http://opencores.org/project,vga_lcd

Re: [PATCH 1/2] drm: Add drm driver for OpenCores VGA/LCD display controller

2016-07-12 Thread Daniel Vetter
On Mon, Jun 27, 2016 at 01:33:24PM +0200, Andrea Merello wrote: > On Fri, Jun 10, 2016 at 4:27 PM, Daniel Vetter wrote: > > On Thu, Jun 09, 2016 at 03:32:55PM +0200, Andrea Merello wrote: > >> This driver supports the VGA/LCD core available from OpenCores: > >> http://opencores.org/project,vga_lcd

RE: [RFC PATCH 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-07-12 Thread Gabriele Paoloni
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 12 July 2016 16:35 > To: liudongdong (C) > Cc: helg...@kernel.org; raf...@kernel.org; lorenzo.pieral...@arm.com; > t...@semihalf.com; Wangzhou (B); pratyush.an...@gmail.com; linux- > p...@vger.kernel.org; linux-a...@v

[PATCH] ALSA: ak4117: remove redundant check on err being < 0

2016-07-12 Thread Colin King
From: Colin Ian King snd_ak4117_create checks if the error return err is less than zero or not. This is a redundant check, err can only be < 0 to get to the __fail label, in which case just return err and remove the redundant check (since we never return -EIO). Signed-off-by: Colin Ian King --

Re: [PATCH] KVM: release anon file in failure path of vm creation

2016-07-12 Thread Paolo Bonzini
On 12/07/2016 11:38, Liu Shuo wrote: > The failure of create debugfs of VM will return directly without release > the anon file. It will leak memory and file descriptors, even through > be not serious. > > Signed-off-by: Liu Shuo > --- > virt/kvm/kvm_main.c | 2 ++ > 1 file changed, 2 insertio

Re: [PATCH] ALSA: ak4117: remove redundant check on err being < 0

2016-07-12 Thread Takashi Iwai
On Tue, 12 Jul 2016 12:22:40 +0200, Colin King wrote: > > From: Colin Ian King > > snd_ak4117_create checks if the error return err is less than zero > or not. This is a redundant check, err can only be < 0 to get to > the __fail label, in which case just return err and remove the > redundant c

[PATCH] ALSA: ak4114: remove redundant check on err being < 0

2016-07-12 Thread Colin King
From: Colin Ian King snd_ak4114_create checks if the error return err is less than zero or not. This is a redundant check, err can only be < 0 to get to the __fail label, in which case just return err and remove the redundant check (since we never return -EIO). Signed-off-by: Colin Ian King --

Re: [PATCH] ALSA: ak4114: remove redundant check on err being < 0

2016-07-12 Thread Takashi Iwai
On Tue, 12 Jul 2016 12:26:29 +0200, Colin King wrote: > > From: Colin Ian King > > snd_ak4114_create checks if the error return err is less than zero > or not. This is a redundant check, err can only be < 0 to get to > the __fail label, in which case just return err and remove the > redundant c

RE: [RFC PATCH 3/3] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-07-12 Thread Gabriele Paoloni
> -Original Message- > From: linuxarm-boun...@huawei.com [mailto:linuxarm-boun...@huawei.com] > On Behalf Of Gabriele Paoloni > Sent: 12 July 2016 18:22 > To: Arnd Bergmann; liudongdong (C) > Cc: lorenzo.pieral...@arm.com; Chenxin (Charles); raf...@kernel.org; > t...@semihalf.com; pratyus

[PATCH] drm/i915: Fix legacy gamma lut updates in Linux 4.7-rc6

2016-07-12 Thread Mario Kleiner
Updating legacy gamma tables, e.g., via RandR doesn't work at all as of Linux 4.7-rc6. Reason seems to be that the required call to drm_atomic_helper_commit_planes_on_crtc is skipped in intel_atomic_commit after userspace set new gamma tables, because neither crtc->state->planes_changed nor update

Re: [PATCH v5 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-07-12 Thread Daniel Vetter
On Mon, Jul 11, 2016 at 02:29:37PM +0200, Thierry Reding wrote: > On Thu, Jun 16, 2016 at 06:02:53PM +0100, Emil Velikov wrote: > > On 16 June 2016 at 04:00, Vinay Simha BN wrote: > [...] > > > +static int jdi_panel_disable(struct drm_panel *panel) > > > +{ > > > + struct jdi_panel *jdi = to

Re: [PATCH v2 2/6] clk: mvebu: Add the xtal clock for Armada 3700 SoC

2016-07-12 Thread Gregory CLEMENT
Hi Michael, On ven., juil. 08 2016, Michael Turquette wrote: > Quoting Gregory CLEMENT (2016-07-07 15:37:47) >> This clock is the parent of all the Armada 3700 clocks. It is a fixed >> rate clock which depends on the gpio configuration read when resetting >> the SoC. >> >> Signed-off-by: Greg

Re: [PATCH v2 2/6] clk: mvebu: Add the xtal clock for Armada 3700 SoC

2016-07-12 Thread Gregory CLEMENT
Hi Paul, On dim., juil. 10 2016, Paul Gortmaker wrote: > On Thu, Jul 7, 2016 at 6:37 PM, Gregory CLEMENT > wrote: >> This clock is the parent of all the Armada 3700 clocks. It is a fixed >> rate clock which depends on the gpio configuration read when resetting >> the SoC. >> >> Signed-off-by:

Re: [PATCH] drm/i915: Fix legacy gamma lut updates in Linux 4.7-rc6

2016-07-12 Thread Lionel Landwerlin
Hi Mario, There was a couple of patch to fix this issue : https://patchwork.freedesktop.org/series/5467/ https://patchwork.freedesktop.org/series/5466/ I tested this late last week on drm-intel-nightly, it seems a series of revert fixed most of the issues. Cheers, - Lionel On 12/07/16 11:3

RE: [PATCH v2 0/8] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-12 Thread Levy, Amir (Jer)
On Wed, Jun 29 2016, 11:35 AM, Levy, Amir (Jer) wrote: > This is version 2 of Thunderbolt(TM) driver for non-Apple hardware. > > Changes since v1: > - Separation to 2 modules. > - Moved ICM specific registers definition to ICM header file. > - Added new Thunderbolt device IDs. > - Renamed the

Re: [RFC 1/5] dma-buf/fence: add .teardown() ops

2016-07-12 Thread Daniel Vetter
On Fri, Jun 24, 2016 at 10:19:00AM -0300, Gustavo Padovan wrote: > 2016-06-23 Chris Wilson : > > > On Thu, Jun 23, 2016 at 12:29:46PM -0300, Gustavo Padovan wrote: > > > From: Gustavo Padovan > > > > > > fence_array requires a function to clean up its state before we > > > are able to call fence

Re: [RFC 3/5] dma-buf/fence: add .get_fences() ops

2016-07-12 Thread Daniel Vetter
On Thu, Jun 23, 2016 at 12:29:48PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > get_fences() should return a copy of all fences in the fence as some > fence subclass (such as fence_array) can store more than one fence at > time. > > Signed-off-by: Gustavo Padovan > --- > drivers/d

Re: [PATCH 00/20] iommu/amd: Use generic IOVA allocator

2016-07-12 Thread Joerg Roedel
Hey Vincent, On Tue, Jul 12, 2016 at 05:03:08PM +0800, Wan Zongshun wrote: > Currently, those patches can not work at my eCarrizo board. > When I merged your patches, boot failed, and no any info print to me. > I set iommu=pt, it also does not work; set iommu=soft, boot ok. > > When I removed tho

Re: [PATCH 07/20] iommu/amd: Remove special mapping code for dma_ops path

2016-07-12 Thread Robin Murphy
Hi Joerg, On 08/07/16 12:44, Joerg Roedel wrote: > From: Joerg Roedel > > Use the iommu-api map/unmap functions instead. This will be > required anyway when IOVA code is used for address > allocation. > > Signed-off-by: Joerg Roedel > --- > drivers/iommu/amd_iommu.c | 107 > ++---

Re: [patch 59/66] rcu: Convert rcutree to hotplug state machine

2016-07-12 Thread Anna-Maria Gleixner
(edit cc: add tglx) On Mon, 11 Jul 2016, Paul E. McKenney wrote: > On Mon, Jul 11, 2016 at 12:29:04PM -, Anna-Maria Gleixner wrote: > > From: Thomas Gleixner > > > > Straight forward conversion to the state machine. Though the question arises > > whether this needs really all these state tr

Re: [PATCH v5 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-07-12 Thread Thierry Reding
On Tue, Jul 12, 2016 at 12:34:02PM +0200, Daniel Vetter wrote: > On Mon, Jul 11, 2016 at 02:29:37PM +0200, Thierry Reding wrote: > > On Thu, Jun 16, 2016 at 06:02:53PM +0100, Emil Velikov wrote: > > > On 16 June 2016 at 04:00, Vinay Simha BN wrote: > > [...] > > > > +static int jdi_panel_disable(s

[PATCH] ide: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Colin King
From: Colin Ian King According to the HPT366 data sheet, PCI config space dword 0x40-0x43 bits 11:8 specify the primary drive cmd_high_time, however, currently just 3 bits of the 4 are being used because the mask is 0x07 and not 0x0f. Fix the mask, allowing for the 40MHz clock to be detected. A

[PATCH v1 1/1] x86/pci: Use MRFLD abbreviation for Merrifield

2016-07-12 Thread Andy Shevchenko
Everywhere in the kernel the MRFLD is used as abbreviation of Intel Merrifield. Do the same in intel_mid_pci.c module. Signed-off-by: Andy Shevchenko --- arch/x86/pci/intel_mid_pci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x

Re: [PATCH] ide: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Sergei Shtylyov
On 7/12/2016 1:59 PM, Colin King wrote: From: Colin Ian King According to the HPT366 data sheet, PCI config space dword 0x40-0x43 bits 11:8 specify the primary drive cmd_high_time, however, currently just 3 bits of the 4 are being used because the mask is 0x07 and not 0x0f. Fix the mask, allo

Re: [PATCH 02/34] mm, vmscan: move lru_lock to the node

2016-07-12 Thread Balbir Singh
On Fri, Jul 08, 2016 at 10:34:38AM +0100, Mel Gorman wrote: > Node-based reclaim requires node-based LRUs and locking. This is a > preparation patch that just moves the lru_lock to the node so later > patches are easier to review. It is a mechanical change but note this > patch makes contention w

[PATCH -next] nvme-rdma: fix the return value of nvme_rdma_reinit_request()

2016-07-12 Thread weiyj_lk
From: Wei Yongjun PTR_ERR should be applied before its argument is reassigned, otherwise the return value will be set to 0, not error code. Signed-off-by: Wei Yongjun --- drivers/nvme/host/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/rdma.c b/dri

Re: [PATCH v9] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-07-12 Thread Will Deacon
On Fri, Jul 08, 2016 at 04:01:13PM +0100, Suzuki K Poulose wrote: > From: Steve Capper > > It can be useful for JIT software to be aware of MIDR_EL1 and > REVIDR_EL1 to ascertain the presence of any core errata that could > affect code generation. > > This patch exposes these registers through s

Re: [PATCH 07/20] iommu/amd: Remove special mapping code for dma_ops path

2016-07-12 Thread Joerg Roedel
Hi Robin, On Tue, Jul 12, 2016 at 11:55:39AM +0100, Robin Murphy wrote: > > start = address; > > for (i = 0; i < pages; ++i) { > > - ret = dma_ops_domain_map(dma_dom, start, paddr, dir); > > - if (ret == DMA_ERROR_CODE) > > + ret = iommu_map_page(&dma_dom->dom

Re: [PATCH] ide: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Sergei Shtylyov
On 7/12/2016 2:04 PM, Sergei Shtylyov wrote: From: Colin Ian King According to the HPT366 data sheet, PCI config space dword 0x40-0x43 bits 11:8 specify the primary drive cmd_high_time, however, currently just 3 bits of the 4 are being used because the mask is 0x07 and not 0x0f. Fix the mask,

Re: [PATCH v2 4/4] kernel/time/clockevents: compensate for monotonic clock's dynamic frequency

2016-07-12 Thread Nicolai Stange
Thomas Gleixner writes: > On Mon, 11 Jul 2016, Nicolai Stange wrote: >> > + raw = ((u64)interval >> 32) * raw_mult; /* Upper half of interval */ >> > + if (raw >> 32) >> > + return KTIME_MAX; >> > + raw <<= 32; >> > + tmp = ((u64)interval & U32_MAX) * raw_mult; /* Lower half of inter

Re: [PATCH] ide: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Colin Ian King
On 12/07/16 12:09, Sergei Shtylyov wrote: > On 7/12/2016 2:04 PM, Sergei Shtylyov wrote: > >>> From: Colin Ian King >>> >>> According to the HPT366 data sheet, PCI config space dword 0x40-0x43 >>> bits 11:8 specify the primary drive cmd_high_time, however, >>> currently just 3 bits of the 4 are b

Re: [rfc patch] sched/fair: Use instantaneous load for fork/exec balancing

2016-07-12 Thread Matt Fleming
On Mon, 11 Jul, at 09:58:52AM, Dietmar Eggemann wrote: > This difference in the initial se->avg.load_avg value [0 or 1024] has an > influence in wake_affine() [weight = p->se.avg.load_avg;] for the wakeup > handling of the hackbench tasks in the 'send/receive data' phase. The way I was running ha

Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine

2016-07-12 Thread Pawel Moll
On Mon, 2016-07-11 at 12:28 +, Anna-Maria Gleixner wrote: > @@ -1270,9 +1262,10 @@ static int arm_ccn_pmu_init(struct arm_c >* ... and change the selection when it goes offline. > Priority is >* picked to have a chance to migrate events before perf is > notified. >*/ > -

Re: [PATCH] ide: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Sergei Shtylyov
On 7/12/2016 2:10 PM, Colin Ian King wrote: From: Colin Ian King According to the HPT366 data sheet, PCI config space dword 0x40-0x43 bits 11:8 specify the primary drive cmd_high_time, however, currently just 3 bits of the 4 are being used because the mask is 0x07 and not 0x0f. Fix the mask,

[PATCH v1 1/1] x86/sfi: Enable enumeration of SD devices

2016-07-12 Thread Andy Shevchenko
SFI specification v0.8.2 defines type of devices which are connected to SD bus. In particularly WiFi dongle is a such. Add a callback to enumerate the devices connected to SD bus. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/intel-mid.h | 15 +++ arch/x86/platform/intel-

[PATCH] ata: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Colin King
From: Colin Ian King According to the HPT366 data sheet, PCI config space dword 0x40-0x43 bits 11:8 specify the primary drive cmd_high_time, however, currently just 3 bits of the 4 are being used because the mask is 0x700 and not 0x0f00. Fix the mask, allowing for the 40MHz clock to be detected.

Re: [PATCH 02/34] mm, vmscan: move lru_lock to the node

2016-07-12 Thread Mel Gorman
On Tue, Jul 12, 2016 at 09:06:04PM +1000, Balbir Singh wrote: > > diff --git a/Documentation/cgroup-v1/memory.txt > > b/Documentation/cgroup-v1/memory.txt > > index b14abf217239..946e69103cdd 100644 > > --- a/Documentation/cgroup-v1/memory.txt > > +++ b/Documentation/cgroup-v1/memory.txt > > @@ -2

[PATCH -next] clocksource: cadence_ttc: Fix error handling in ttc_setup_clockevent()

2016-07-12 Thread weiyj_lk
From: Wei Yongjun resources alloc in this function should be release in the error handling, otherwise it will cause resource leak. Signed-off-by: Wei Yongjun --- drivers/clocksource/cadence_ttc_timer.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/

деактивиране сметка

2016-07-12 Thread WEBMASTER
Вашата парола ще изтече през следващите 24 часа да се избегне това кликнете върху връзката ==> http://web-intech-bg.yolasite.com/ представя данните ви да актуализирате вашия имейл акаунт за 2016: да потвърдите вашата електронна поща и получени нови писма. Благодаря Системен администратор. © 2016 вс

[PATCH] dmaengine: omap-dma: Support for interleaved transfer

2016-07-12 Thread Peter Ujfalusi
Initial support for interleaved transfer with sDMA. The implementation only supports DMA_MEM_TO_MEM and frame_size must be 1. sDMA needs to be configured for double indexing when ICG is needed. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 96

Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine

2016-07-12 Thread Sebastian Andrzej Siewior
On 07/12/2016 01:16 PM, Pawel Moll wrote: > On Mon, 2016-07-11 at 12:28 +, Anna-Maria Gleixner wrote: >> @@ -1270,9 +1262,10 @@ static int arm_ccn_pmu_init(struct arm_c >> * ... and change the selection when it goes offline. >> Priority is >> * picked to have a chance to migrate eve

[PATCH -next] regulator: act8865: Fix missing of_node_put() in act8865_pdata_from_dt()

2016-07-12 Thread weiyj_lk
From: Wei Yongjun This node pointer is returned by of_get_child_by_name() with refcount incremented in this function. of_node_put() is missing when exitting this function while invalid device type. Fix it by move of_get_child_by_name() code after device type check. Found by Coccinelle. Signed-o

Re: [PATCH] ata: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, July 12, 2016 12:16:19 PM Colin King wrote: > From: Colin Ian King > > According to the HPT366 data sheet, PCI config space dword 0x40-0x43 > bits 11:8 specify the primary drive cmd_high_time, however, > currently just 3 bits of the 4 are being used because the mask > is 0x700 a

Re: Page Allocation Failures/OOM with dm-crypt on software RAID10 (Intel Rapid Storage)

2016-07-12 Thread Matthias Dahl
Hello Michal... On 2016-07-12 11:50, Michal Hocko wrote: This smells like file pages are stuck in the writeback somewhere and the anon memory is not reclaimable because you do not have any swap device. Not having a swap device shouldn't be a problem -- and in this case, it would cause even m

[PATCH -next] cxl: Use for_each_compatible_node() macro

2016-07-12 Thread weiyj_lk
From: Wei Yongjun Use for_each_compatible_node() macro instead of open coding it. Generated by Coccinelle. Signed-off-by: Wei Yongjun --- drivers/misc/cxl/base.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/cxl/base.c b/drivers/misc/cxl/base.c index e6

Re: [PATCH 16/20] iommu/amd: Optimize map_sg and unmap_sg

2016-07-12 Thread Robin Murphy
On 08/07/16 12:45, Joerg Roedel wrote: > From: Joerg Roedel > > Optimize these functions so that they need only one call > into the address alloctor. This also saves a couple of > io-tlb flushes in the unmap_sg path. > > Signed-off-by: Joerg Roedel > --- > drivers/iommu/amd_iommu.c | 77 > +++

Re: [PATCH] ata: hpt366: fix incorrect mask when checking at cmd_high_time

2016-07-12 Thread Colin Ian King
On 12/07/16 12:27, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Tuesday, July 12, 2016 12:16:19 PM Colin King wrote: >> From: Colin Ian King >> >> According to the HPT366 data sheet, PCI config space dword 0x40-0x43 >> bits 11:8 specify the primary drive cmd_high_time, however, >> currently j

RE: [PATCH] usb:solve resume usb device identification problem

2016-07-12 Thread Lipengcheng
> -Original Message- > From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Tuesday, July 12, 2016 10:24 AM > To: Lipengcheng; gre...@linuxfoundation.org; st...@rowland.harvard.edu; > chasemetzge...@gmail.com; mathias.ny...@linux.intel.com; > oneu...@suse.com; jun...@freescale.com >

Re: [PATCH v23 14/22] richacl: Update the file masks in chmod()

2016-07-12 Thread Jeff Layton
On Thu, 2016-06-30 at 15:47 +0200, Andreas Gruenbacher wrote: > Doing a chmod() sets the file mode, which includes the file permission > bits.  When a file has a richacl, the permissions that the richacl > grants need to be limited to what the new file permission bits allow. > > This is done by se

Re: [PATCH v23 15/22] richacl: Check if an acl is equivalent to a file mode

2016-07-12 Thread Jeff Layton
On Thu, 2016-06-30 at 15:47 +0200, Andreas Gruenbacher wrote: > ACLs are considered equivalent to file modes if they only consist of > owner@, group@, and everyone@ entries, the owner@ permissions do not > depend on whether the owner is a member in the owning group, and no > inheritance flags are s

Re: [PATCH v23 16/22] richacl: Create-time inheritance

2016-07-12 Thread Jeff Layton
On Thu, 2016-06-30 at 15:47 +0200, Andreas Gruenbacher wrote: > When a new file is created, it can inherit an acl from its parent > directory; this is similar to how default acls work in POSIX ACLs. > > As with POSIX ACLs, if a file inherits an acl from its parent directory, > the intersection bet

Re: [PATCH v9 0/7] ACPI / processor_idle: Add ACPI v6.0 LPI support

2016-07-12 Thread Sudeep Holla
On 08/07/16 18:07, Sudeep Holla wrote: ACPI 6.0 introduced LPI(Low Power Idle) states that provides an alternate method to describe processor idle states. It extends the specification to allow the expression of idle states like C-states selectable by the OSPM when a processor goes idle, but may

Re: [PATCH 07/20] iommu/amd: Remove special mapping code for dma_ops path

2016-07-12 Thread Robin Murphy
On 12/07/16 12:08, Joerg Roedel wrote: > Hi Robin, > > On Tue, Jul 12, 2016 at 11:55:39AM +0100, Robin Murphy wrote: >>> start = address; >>> for (i = 0; i < pages; ++i) { >>> - ret = dma_ops_domain_map(dma_dom, start, paddr, dir); >>> - if (ret == DMA_ERROR_CODE) >>> +

Re: [PATCH v2 06/13] sched: Store maximum per-cpu capacity in root domain

2016-07-12 Thread Peter Zijlstra
On Mon, Jul 11, 2016 at 05:16:06PM +0100, Dietmar Eggemann wrote: > On 11/07/16 11:18, Peter Zijlstra wrote: > > On Wed, Jun 22, 2016 at 06:03:17PM +0100, Morten Rasmussen wrote: > >> @@ -6905,11 +6906,19 @@ static int build_sched_domains(const struct > >> cpumask *cpu_map, > >>/* Attach the d

Re: mm: BUG in page_move_anon_rmap

2016-07-12 Thread Hugh Dickins
On Mon, 11 Jul 2016, Dmitry Vyukov wrote: > On Fri, Jul 8, 2016 at 8:58 PM, Hugh Dickins wrote: > > Hi Dmitry, > > > > On Tue, 5 Jul 2016, Kirill A. Shutemov wrote: > >> On Mon, Jul 04, 2016 at 04:10:53PM -0700, Hugh Dickins wrote: > >> > On Fri, 1 Jul 2016, Dmitry Vyukov wrote: > >> > > Hello, >

Re: [RFC PATCH 2/2] perf: Filter events based on perf-namespace

2016-07-12 Thread Peter Zijlstra
On Tue, Jul 12, 2016 at 02:56:17PM +0530, Aravinda Prasad wrote: > > > On Monday 27 June 2016 09:20 PM, Peter Zijlstra wrote: > > On Tue, Jun 14, 2016 at 10:19:51PM +0530, Aravinda Prasad wrote: > >> Whenever perf tool is executed inside a container, this > >> patch restricts the events to the pe

Re: [PATCH 07/20] iommu/amd: Remove special mapping code for dma_ops path

2016-07-12 Thread Joerg Roedel
Hi Robin, On Tue, Jul 12, 2016 at 12:42:59PM +0100, Robin Murphy wrote: > Ah, that's the angle I was missing, yes. So if, say, someone is mapping > a page at IOVA 0x while someone else is mapping a page at 0x1000, > there could still be a race between both callers writing the non-leaf > PTEs,

Re: WARNING: CPU: 0 PID: 0 at net/ipv4/af_inet.c:155 inet_sock_destruct+0x1c4/0x1dc

2016-07-12 Thread Mason
On 12/07/2016 11:53, Mason wrote: > However, the 310 seconds time span still seems to be relevant. > > Steps to reproduce: I booted the system, logged in as root, > mounted an NFS file system, then left the system idling at > the prompt. > > (I don't remember seeing this warning in v4.1 and v4.4

Re: Page Allocation Failures/OOM with dm-crypt on software RAID10 (Intel Rapid Storage)

2016-07-12 Thread Michal Hocko
On Tue 12-07-16 13:28:12, Matthias Dahl wrote: > Hello Michal... > > On 2016-07-12 11:50, Michal Hocko wrote: > > > This smells like file pages are stuck in the writeback somewhere and the > > anon memory is not reclaimable because you do not have any swap device. > > Not having a swap device sh

[PATCH] mm: thp: refix false positive BUG in page_move_anon_rmap()

2016-07-12 Thread Hugh Dickins
The VM_BUG_ON_PAGE in page_move_anon_rmap() is more trouble than it's worth: the syzkaller fuzzer hit it again. It's still wrong for some THP cases, because linear_page_index() was never intended to apply to addresses before the start of a vma. That's easily fixed with a signed long cast inside l

Re: [PATCH v2 0/3] clk: Add MDM9615 Clock Controllers driver and bindings

2016-07-12 Thread Neil Armstrong
2016-06-24 11:18 GMT+02:00 Neil Armstrong : > In order to support the Qualcomm MDM9615 in the Sierra Wireless WP8548 > Modules, add the MDM9615 Clock Controllers drivers and bindings. > > This patchset is part of a global SoC + Module + Board support for the > Sierra Wireless mangOH Board support w

Re: iwlwifi: add missing type declaration

2016-07-12 Thread Kalle Valo
Arnd Bergmann wrote: > The iwl-debug.h header relies in implicit inclusion of linux/device.h and > we get a lot of warnings without that: > > drivers/net/wireless/intel/iwlwifi/iwl-debug.h:44:23: error: 'struct device' > declared inside parameter list will not be visible outside of this definiti

Re: [PATCHv3 1/1] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Lothar Waßmann
Hi, On Wed, 25 May 2016 15:18:16 +0200 Lothar Waßmann wrote: > The 'de-active' and 'pixelclk-active' DT properties are evaluated > by of_parse_display_timing() called from of_get_drm_display_mode(), > but later lost in the conversion from videomode.flags to > drm_display_mode.flags. > Use an open

Re: [PATCH 0/2] Fix issue with alternatives/paravirt patches

2016-07-12 Thread Miroslav Benes
On Thu, 7 Jul 2016, Josh Poimboeuf wrote: > On Thu, Jul 07, 2016 at 05:56:33PM +0200, Petr Mladek wrote: > > On Tue 2016-07-05 22:34:58, Jessica Yu wrote: > > > Hi, > > > > > > A few months ago, Chris Arges reported a bug involving > > > alternatives/paravirt > > > patching that was discussed he

Re: [PATCH v23 17/22] richacl: Automatic Inheritance

2016-07-12 Thread Jeff Layton
On Thu, 2016-06-30 at 15:47 +0200, Andreas Gruenbacher wrote: > Automatic Inheritance (AI) allows changes to the acl of a directory to > propagate down to children. > > This is mostly implemented in user space: when a process changes the > permissions of a directory and Automatic Inheritance is en

Re: [PATCH v5 18/32] signal: Consolidate {TS,TLF}_RESTORE_SIGMASK code

2016-07-12 Thread Brian Gerst
On Mon, Jul 11, 2016 at 4:53 PM, Andy Lutomirski wrote: > In general, there's no need for the "restore sigmask" flag to live in > ti->flags. alpha, ia64, microblaze, powerpc, sh, sparc (64-bit only), > tile, and x86 use essentially identical alternative implementations, > placing the flag in ti->

Re: Page Allocation Failures/OOM with dm-crypt on software RAID10 (Intel Rapid Storage)

2016-07-12 Thread Michal Hocko
On Tue 12-07-16 13:49:20, Michal Hocko wrote: > On Tue 12-07-16 13:28:12, Matthias Dahl wrote: > > Hello Michal... > > > > On 2016-07-12 11:50, Michal Hocko wrote: > > > > > This smells like file pages are stuck in the writeback somewhere and the > > > anon memory is not reclaimable because you d

Re: [PATCH v23 18/22] richacl: xattr mapping functions

2016-07-12 Thread Jeff Layton
On Thu, 2016-06-30 at 15:47 +0200, Andreas Gruenbacher wrote: > Map between "system.richacl" xattrs and the in-kernel representation. > > Signed-off-by: Andreas Gruenbacher > --- >  fs/Makefile|   2 +- >  fs/richacl_xattr.c | 161 >

Re: [RFC] perf: ref-cycle useless with watchdog changes

2016-07-12 Thread Peter Zijlstra
On Tue, Jul 12, 2016 at 01:24:27AM -0700, Stephane Eranian wrote: > Hi, > > On Mon, Jul 11, 2016 at 3:33 AM, Peter Zijlstra wrote: > > On Sun, Jul 10, 2016 at 11:48:11AM -0700, Stephane Eranian wrote: > >> So we either redirect ref-cycles towards 0x013c > >> (cpu_clk_unhalted:xlck) or another eve

Re: [PATCH] mmc: core: Extend sysfs with OCR register

2016-07-12 Thread bojan prtvar
Hi Ulf, On Tue, Jul 12, 2016 at 11:53 AM, Ulf Hansson wrote: > I just realized that the OCR register is also available for SD cards. > > Could you perhaps cook a patch which adds this to sysfs for SD cards as well!? > Sure. I'll do it tomorrow. Regards, Bojan

4.7-rc6: NMI in intel_idle on HP Proliant G6

2016-07-12 Thread Meelis Roos
On HP Proliant DL360 G6, Debian unstable 4.6 kernel runs fine but selfcompiled 4.7-rc6 and 4.7-rc7 sometimes crash with NMI from intel_idle. Sometimes it boots fine. With intel_idle disabled, it has booted successful so far in 2 tries, one with rc6 and one with rc7. Screenshot with some backtra

Re: [PATCH v9 0/7] ACPI / processor_idle: Add ACPI v6.0 LPI support

2016-07-12 Thread Rafael J. Wysocki
On Tuesday, July 12, 2016 12:42:06 PM Sudeep Holla wrote: > > On 08/07/16 18:07, Sudeep Holla wrote: > > ACPI 6.0 introduced LPI(Low Power Idle) states that provides an alternate > > method to describe processor idle states. It extends the specification > > to allow the expression of idle states l

Re: [PATCH] mm: thp: refix false positive BUG in page_move_anon_rmap()

2016-07-12 Thread Kirill A. Shutemov
On Tue, Jul 12, 2016 at 04:51:20AM -0700, Hugh Dickins wrote: > The VM_BUG_ON_PAGE in page_move_anon_rmap() is more trouble than it's > worth: the syzkaller fuzzer hit it again. It's still wrong for some > THP cases, because linear_page_index() was never intended to apply to > addresses before the

Re: [PATCH 0/2] Fix issue with alternatives/paravirt patches

2016-07-12 Thread Miroslav Benes
On Tue, 5 Jul 2016, Jessica Yu wrote: > Hi, > > A few months ago, Chris Arges reported a bug involving alternatives/paravirt > patching that was discussed here [1] and here [2]. To briefly summarize the > bug, patch modules that contained .altinstructions or .parainstructions > sections would bre

Re: linux-next: manual merge of the xen-tip tree with the pm tree

2016-07-12 Thread Rafael J. Wysocki
On Tuesday, July 12, 2016 02:09:26 PM Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the xen-tip tree got a conflict in: > > drivers/acpi/scan.c > > between commit: > > 68bdb6773289 ("ACPI: add support for ACPI reconfiguration notifiers") > > from the pm tree and commit:

Re: [PATCH v4 0/3] sched,time: fix irq time accounting with nohz_idle

2016-07-12 Thread Frederic Weisbecker
On Mon, Jul 11, 2016 at 12:53:54PM -0400, r...@redhat.com wrote: > Currently irq time accounting only works in these cases: > 1) purely ticke based accounting > 2) nohz_full accounting, but only on housekeeping & nohz_full CPUs > 3) architectures with native vtime accounting > > On nohz_idle CPUs,

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