Re: [RFC] PCI: Fix kernel panic of root-port-less PCIe enum due to ASPM

2016-10-06 Thread Serge Semin
On Thu, Oct 06, 2016 at 08:13:58AM -0500, Bjorn Helgaas wrote: > Hi Serge, > > On Thu, Oct 06, 2016 at 12:34:15PM +0300, Serge Semin wrote: > > Hello linux folks, > > > > Sometime ago I discovered a kernel panic popping up when PCI subsystem > > was > > trying to enumerate PCI express bus

RE: [patch v1] drivers/platform/x86: introduce support for Mellanox hotplug driver

2016-10-06 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Thursday, September 29, 2016 1:14 AM > To: Vadim Pasternak > Cc: da...@davemloft.net; ge...@linux-m68k.org; akpm@linux- > foundation.org; kv...@codeaurora.org; gre...@linuxfoundation.org; > mche...@kernel.org;

[PATCH v2 1/1] Add device to spidev device tree compatibility list

2016-10-06 Thread Fabien Lahoudere
Entries are needed in the spidev ID list to configure configure it from a device tree. Add entry for the following device: - "ge,achc" : GE Healthcare USB Management Controller The USB Management Controller does not expose USB to the host, but acts as an offload engine, communicating with specifi

[PATCH 2/2] perf x86: fix compilation of push/pop for x32

2016-10-06 Thread Vincent Stehlé
The x32 ABI (a.k.a AMD64 ILP32) necessitates to push or pop a 64-bit register even though ILP32 uses 32-bit integers, longs and pointers. This fixes the following build errors: arch/x86/tests/regs_load.S:65: Error: operand type mismatch for `push' arch/x86/tests/regs_load.S:72: Error: operand

Re: [kernel-hardening] RE: [PATCH] printk: introduce kptr_restrict level 3

2016-10-06 Thread Jann Horn
On Thu, Oct 06, 2016 at 04:05:53PM +0200, Jann Horn wrote: > On Thu, Oct 06, 2016 at 01:47:47PM +, Roberts, William C wrote: > > > -Original Message- > > > From: Christoph Hellwig [mailto:h...@infradead.org] > > > Sent: Thursday, October 6, 2016 9:32 AM > > > To: Roberts, William C > >

[PATCH 1/2] perf: cast some printf() arguments to fix x32 build

2016-10-06 Thread Vincent Stehlé
Fix a few printf() format warnings regarding struct timeval fields on x32 (a.k.a AMD64 ILP32). As those warnings are treated as errors, they break the build. This fixes this kind of build warning: bench/sched-pipe.c:160:20: error: format '%lu' expects argument of type 'long unsigned int', but

Re: [PATCH] ethernet: qualcomm: QCOM_EMAC should depend on HAS_DMA

2016-10-06 Thread Geert Uytterhoeven
On Thu, Oct 6, 2016 at 4:12 PM, Timur Tabi wrote: > Geert Uytterhoeven wrote: >> >> Probably, I don't do UML allmodconfig builds. >> >> Gr{oetje,eeting}s, > > > Would you mind submitting another version of your patch that includes > HAS_DMA and HAS_IOMEM, so that both build breaks can be fixed in

[PATCH v2] ethernet: qualcomm: QCOM_EMAC should depend on HAS_DMA and HAS_IOMEM

2016-10-06 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `emac_probe': emac.c:(.text+0x3780b8): undefined reference to `bad_dma_ops' emac.c:(.text+0x3780e2): undefined reference to `bad_dma_ops' emac.c:(.text+0x378112): undefined reference to `bad_dma_ops' emac.c:(.text+0x378146): undefine

Re: [RESEND PATCH v2 2/3] cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs

2016-10-06 Thread Markus Mayer
On 5 October 2016 at 21:01, Viresh Kumar wrote: > Thanks for accepting all the comments :) > > On 05-10-16, 14:04, Markus Mayer wrote: >> Is there an easy way for me to know via the framework whether init is >> being called for the first time vs. init is being called on a >> different core after a

Re: [PATCH v2] ethernet: qualcomm: QCOM_EMAC should depend on HAS_DMA and HAS_IOMEM

2016-10-06 Thread Timur Tabi
Geert Uytterhoeven wrote: Add dependencies on HAS_DMA and HAS_IOMEM to fix this. Signed-off-by: Geert Uytterhoeven Acked-by: Timur Tabi -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum,

Re: [RFC][PATCHv2 3/7] printk: introduce per-cpu alt_print seq buffer

2016-10-06 Thread Petr Mladek
On Sat 2016-10-01 11:24:15, Sergey Senozhatsky wrote: > On (10/01/16 00:17), Sergey Senozhatsky wrote: > [..] > > +void alt_printk_enter(void) > > +{ > > + unsigned long flags; > - > > + local_irq_save(flags); > > + if (!(this_cpu_read(alt_printk_ctx) & ALT_PRINTK_CONTEXT_MASK)) > > +

RE: [PATCH] printk: introduce kptr_restrict level 3

2016-10-06 Thread Roberts, William C
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Thursday, October 6, 2016 9:56 AM > To: Roberts, William C > Cc: Christoph Hellwig ; kernel- > harden...@lists.openwall.com; cor...@lwn.net; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subj

[PATCH] clk: max77686: fix number of clocks setup for clk_hw based registration

2016-10-06 Thread Javier Martinez Canillas
The commit 9b4cac33adc7 ("clk: max77686: Migrate to clk_hw based OF and registration APIs") converted the driver to use the new provider API to register clocks using clk_hw. But unfortunately, in the conversion it missed to set the num_clks value which lead to the following error when trying to re

Re: [PATCH] powerpc/pseries: Fix stack corruption in htpe code

2016-10-06 Thread Aneesh Kumar K.V
Laurent Dufour writes: > This commit fixes a stack corruption in the pseries specific code dealing > with the huge pages. > > In __pSeries_lpar_hugepage_invalidate() the buffer used to pass arguments > to the hypervisor is not large enough. This leads to a stack corruption > where a previously sa

[PATCH v10 0/4] New debugfs API for capturing CRC of frames

2016-10-06 Thread Tomeu Vizoso
Hi, this series basically takes the facility for continuously capturing CRCs of frames from the i915 driver and into the DRM core. The idea is that test suites such as IGT use this information to check that frames that are exected to be identical, also have identical CRC values. Other drivers fo

Re: [PATCH V3 00/11] block-throttle: add .high limit

2016-10-06 Thread Paolo Valente
> Il giorno 06 ott 2016, alle ore 15:52, Austin S. Hemmelgarn > ha scritto: > > On 2016-10-06 08:50, Paolo Valente wrote: >> >>> Il giorno 06 ott 2016, alle ore 13:57, Austin S. Hemmelgarn >>> ha scritto: >>> >>> On 2016-10-06 07:03, Mark Brown wrote: On Thu, Oct 06, 2016 at 10:04:41AM

[PATCH v10 4/4] drm/i915: Put "cooked" vlank counters in frame CRC lines

2016-10-06 Thread Tomeu Vizoso
Use drm_accurate_vblank_count so we have the full 32 bit to represent the frame counter and userspace has a simpler way of knowing when the counter wraps around. Signed-off-by: Tomeu Vizoso Reviewed-by: Emil Velikov --- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- 1 file changed, 3 insertions(+

[PATCH v10 3/4] drm/i915: Use new CRC debugfs API

2016-10-06 Thread Tomeu Vizoso
The core provides now an ABI to userspace for generation of frame CRCs, so implement the ->set_crc_source() callback and reuse as much code as possible with the previous ABI implementation. When handling the pageflip interrupt, we skip 1 or 2 frames depending on the HW because they contain wrong v

[PATCH v10 2/4] drm: Add API for capturing frame CRCs

2016-10-06 Thread Tomeu Vizoso
Adds files and directories to debugfs for controlling and reading frame CRCs, per CRTC: dri/0/crtc-0/crc dri/0/crtc-0/crc/control dri/0/crtc-0/crc/data Drivers can implement the set_crc_source callback() in drm_crtc_funcs to start and stop generating frame CRCs and can add entries to the output b

Re: [PATCH V3 00/11] block-throttle: add .high limit

2016-10-06 Thread Austin S. Hemmelgarn
On 2016-10-06 11:05, Paolo Valente wrote: Il giorno 06 ott 2016, alle ore 15:52, Austin S. Hemmelgarn ha scritto: On 2016-10-06 08:50, Paolo Valente wrote: Il giorno 06 ott 2016, alle ore 13:57, Austin S. Hemmelgarn ha scritto: On 2016-10-06 07:03, Mark Brown wrote: On Thu, Oct 06, 20

[PATCH v10 1/4] drm/i915/debugfs: Move out pipe CRC code

2016-10-06 Thread Tomeu Vizoso
In preparation to using a generic API in the DRM core for continuous CRC generation, move the related code out of i915_debugfs.c into a new file. Eventually, only the Intel-specific code will remain in this new file. v2: Rebased. v6: Rebased. v7: Fix whitespace issue. v9: Have intel_display_cr

[PATCH v2 13/15] md-cluster: Less function calls in join() after error detection

2016-10-06 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 6 Oct 2016 16:48:51 +0200 A few resource release functions were called in some cases by the join() function during error handling even if the passed data structure member contained a null pointer. * Adjust jump targets according to the Linux coding style conventio

[PATCH v11 4/4] drm/i915: Put "cooked" vlank counters in frame CRC lines

2016-10-06 Thread Tomeu Vizoso
Use drm_accurate_vblank_count so we have the full 32 bit to represent the frame counter and userspace has a simpler way of knowing when the counter wraps around. Signed-off-by: Tomeu Vizoso Reviewed-by: Emil Velikov --- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- 1 file changed, 3 insertions(+

[PATCH v11 0/4] New debugfs API for capturing CRC of frames

2016-10-06 Thread Tomeu Vizoso
Hi, this series basically takes the facility for continuously capturing CRCs of frames from the i915 driver and into the DRM core. The idea is that test suites such as IGT use this information to check that frames that are exected to be identical, also have identical CRC values. Other drivers fo

[PATCH v11 1/4] drm/i915/debugfs: Move out pipe CRC code

2016-10-06 Thread Tomeu Vizoso
In preparation to using a generic API in the DRM core for continuous CRC generation, move the related code out of i915_debugfs.c into a new file. Eventually, only the Intel-specific code will remain in this new file. v2: Rebased. v6: Rebased. v7: Fix whitespace issue. v9: Have intel_display_cr

Re: [RFC][PATCHv2 4/7] printk: make alt_printk available when config printk set

2016-10-06 Thread Petr Mladek
On Sat 2016-10-01 00:17:55, Sergey Senozhatsky wrote: > alt_printk must be enabled on systems that have CONFIG_PRINTK set, > while NMI related functions must depend on CONFIG_PRINTK_NMI. > > Signed-off-by: Sergey Senozhatsky > --- > include/linux/printk.h | 21 +++-- > kernel/

Re: [PATCH] Staging:dgnc:dgnc_neo: fixed 80 character line limit coding style issue

2016-10-06 Thread Nadim Almas
May be it is not looking better than it did before but it removed 6 warning of the file which is shown by running "perl scripts/checkpatch.pl -f drivers/staging/dgnc/* | less" commend than why it is not acceptable On Thu, Oct 6, 2016 at 1:52 PM, Nadim Almas wrote: > May be it is not looking bette

Re: [PATCH] arch/x86: Fix kdump on x86 with physically hotadded CPUs

2016-10-06 Thread Prarit Bhargava
On 10/05/2016 12:14 PM, Jiri Olsa wrote: > On Tue, Oct 04, 2016 at 04:38:16PM +0200, Thomas Gleixner wrote: >> On Tue, 4 Oct 2016, Prarit Bhargava wrote: >>> On 10/04/2016 06:58 AM, Thomas Gleixner wrote: While it is the right thing to initialize the package map in that case, it still p

[PATCH v11 2/4] drm: Add API for capturing frame CRCs

2016-10-06 Thread Tomeu Vizoso
Adds files and directories to debugfs for controlling and reading frame CRCs, per CRTC: dri/0/crtc-0/crc dri/0/crtc-0/crc/control dri/0/crtc-0/crc/data Drivers can implement the set_crc_source callback() in drm_crtc_funcs to start and stop generating frame CRCs and can add entries to the output b

[PATCH v11 3/4] drm/i915: Use new CRC debugfs API

2016-10-06 Thread Tomeu Vizoso
The core provides now an ABI to userspace for generation of frame CRCs, so implement the ->set_crc_source() callback and reuse as much code as possible with the previous ABI implementation. When handling the pageflip interrupt, we skip 1 or 2 frames depending on the HW because they contain wrong v

DMA-API: cpu touching an active dma mapped cacheline

2016-10-06 Thread Russell King - ARM Linux
Hi, With DMA API debugging enabled, I'm seeing this splat from it, which to me looks like the DMA API debugging is getting too eager for it's own good. The fact of the matter is that the VM passes block devices pages to be written out to disk which are page cache pages, which may be looked up and

Re: [RFC][PATCHv2 6/7] printk: report printk recursion from alt_printk flush

2016-10-06 Thread Petr Mladek
On Sat 2016-10-01 00:17:57, Sergey Senozhatsky wrote: > If we end up executing vprintk_alt() then we have a printk > recursion. Set alt_printk_ctx `ALT_PRINTK_RECURSION_MASK' bit > in vprintk_alt() to indicate that recutsion and report the > "BUG: recent printk recursion!" problem later from > __al

Re: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel

2016-10-06 Thread Joe Perches
On Thu, 2016-10-06 at 13:00 +, David Laight wrote: > From: Joe Perches > > Sent: 06 October 2016 12:39 > > On Thu, 2016-10-06 at 09:41 +, David Laight wrote: > > > From: Joe Perches > > > > No worries, and bool is the same ,size as u8. > > > That is not guaranteed at all. > > > One of the A

[PATCH v5 1/3] drm/nouveau: set streaming DMA mask early

2016-10-06 Thread Ard Biesheuvel
Some subdevices (i.e., fb/nv50.c and fb/gf100.c) map a scratch page using dma_map_page() way before the TTM layer has had a chance to set the DMA mask. This may prevent the driver from loading at all on platforms whose system memory is not covered by the default DMA mask of 32-bit (i.e., when all R

[PATCH v5 3/3] drm/nouveau/fb/nv50: defer DMA mapping of scratch page to oneinit() hook

2016-10-06 Thread Ard Biesheuvel
The 100c08 scratch page is mapped using dma_map_page() before the TTM layer has had a chance to set the DMA mask. This means we are still running with the default of 32 when this code executes, and this causes problems for platforms with no memory below 4 GB (such as AMD Seattle) So move the dma_m

[PATCH v5 2/3] drm/nouveau/fb/gf100: defer DMA mapping of scratch page to oneinit() hook

2016-10-06 Thread Ard Biesheuvel
The 100c10 scratch page is mapped using dma_map_page() before the TTM layer has had a chance to set the DMA mask. This means we are still running with the default of 32 when this code executes, and this causes problems for platforms with no memory below 4 GB (such as AMD Seattle) So move the dma_m

Re: [PATCH v3] Adding missing features of Coresight PTM components

2016-10-06 Thread Mathieu Poirier
On 6 October 2016 at 06:18, Muhammad Abdul WAHAB wrote: > In the current driver for Coresight components, two features of PTM > components are missing: > > 1. Branch Broadcasting (present also in ETM but called Branch Output) > 2. Return Stack (only present in PTM v1.0 and PTMv1.1) > > These featu

[PATCH v5 0/3] drm/nouveau: set DMA mask before mapping scratch page

2016-10-06 Thread Ard Biesheuvel
This v4 is now a 3 piece series (since v4), after Alexandre pointed out that both GF 100 and NV50 are affected by the same issue, and that a related issue has been solved already for Tegra in commit 9d0394c6bed5 ("drm/nouveau/instmem/gk20a: set DMA mask early"). The issue that this series addresse

Re: [RFC][PATCHv2 0/7] printk: use alt_printk to handle printk() recursive calls

2016-10-06 Thread Petr Mladek
On Sat 2016-10-01 00:17:51, Sergey Senozhatsky wrote: > Hello, > > RFC > > This patch set extends a lock-less NMI per-cpu buffers idea to > handle recursive printk() calls. The basic mechanism is pretty much the > same -- at the beginning of a deadlock-prone section we switch to l

Re: [PATCH v3] Adding missing features of Coresight PTM components

2016-10-06 Thread Muhammad Abdul WAHAB
Hi, > Where is ETMCR_RETURN_STACK_EN defined? Did you send me code that > doesn't compile? I changed the naming in the .h file before submitting it and I forgot to change it in .c file. I am sorry. It is defined in coresight-etm.h. Here is the correct patch. --- drivers/hwtracing/coresight/c

[PATCH 1/1] thermal/powerclamp: correct cpu support check

2016-10-06 Thread Eric Ernst
Initial logic for checking CPU match resulted in OR of CPU features rather than the intended AND. Updated to use boot_cpu_has macro rather than x86_match_cpu. In addition, MWAIT is the only required CPU feature for idle injection to work. Drop other feature requirements since they are only neede

Re: [PATCH] Staging:dgnc:dgnc_neo: fixed 80 character line limit coding style issue

2016-10-06 Thread Joe Perches
On Thu, 2016-10-06 at 20:53 +0530, Nadim Almas wrote: > May be it is not looking better than it did before but it removed 6 warning of > the file which is shown by running "perl scripts/checkpatch.pl -f > drivers/staging/dgnc/* | less" commend > than why it is not acceptable (please don't top post

RE: [PATCH] mm/slab: fix kmemcg cache creation delayed issue

2016-10-06 Thread Doug Smythies
It was my (limited) understanding that the subsequent 2 patch set superseded this patch. Indeed, the 2 patch set seems to solve both the SLAB and SLUB bug reports. References: https://bugzilla.kernel.org/show_bug.cgi?id=172981 https://bugzilla.kernel.org/show_bug.cgi?id=172991 https://patchwork.k

Duplicate MDIO_XGENE Kconfig entries

2016-10-06 Thread Laura Abbott
Hi, While working on the Fedora tree today, I noticed that there seem to be two entries for CONFIG_MDIO_XGENE. It looks like this might have been fall out from d75b4a22b255 ("net: phy: Sort Makefile and Kconfig"). I can submit the following if this isn't fixed up elsewhere already diff --git a/d

Re: [PATCH] indentation fix (extra space removed)

2016-10-06 Thread Mathieu Poirier
On 5 October 2016 at 05:41, Muhammad Abdul WAHAB wrote: > An extra space is removed. > > Signed-off-by: Muhammad Abdul Wahab > --- > drivers/hwtracing/coresight/coresight-etm3x-sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwtracing/coresight/coresight-

[PATCH 1/9] drm/sun4i: sun6i-drc: Support DRC on A31 and A31s

2016-10-06 Thread Chen-Yu Tsai
The A31 and A31s also have the DRC as part of the display pipeline. As we know virtually nothing about them, just add compatible strings for both SoCs to the stub driver. Signed-off-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 2 ++ drivers/gpu/drm/sun4i/s

[PATCH 0/9] drm/sun4i: Support first display pipeline on sun6i

2016-10-06 Thread Chen-Yu Tsai
Hi everyone, This series adds support for the first display pipeline found on the A31 and A31s SoCs, with output through the RGB LCD interface. This has been tested on the Sinlinx SinA31s development board, with its included 7" LCD panel (see last patch), and the Merrii Hummingbird A31 developmen

[PATCH 2/9] drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

2016-10-06 Thread Chen-Yu Tsai
We already have some differences between the 2 supported SoCs. More will be added as we support other SoCs. To avoid bloating the probe function with even more conditionals, move the quirks to a separate data structure that's tied to the compatible string. Signed-off-by: Chen-Yu Tsai --- drivers

[PATCH 3/9] drm/sun4i: Put dotclock range into tcon quirks and check against them

2016-10-06 Thread Chen-Yu Tsai
In commit bb43d40d7c83 ("drm/sun4i: rgb: Validate the clock rate") the driver was rounding the requested clock rate and then checking the result against the original requested rate. This does not work well for a number of reasons: - The pixel clock does not have enough resolution to be able to

[PATCH 9/9] [DO NOT MERGE] ARM: dts: sun6i: Enable 7" LCD panel on Sinlinx SinA31s

2016-10-06 Thread Chen-Yu Tsai
Sinlinx SinA31s comes with an optional 7" 1024x600 LCD panel with capacitive touch panel that bolts on to the board. Enable the display using a panel with close timings. This patch is more of a proof of concept. The LCD panel has no markings whatsoever, and the timings are not exactly the same, an

[PATCH 7/9] ARM: dts: sun6i: Add device nodes for first display pipeline

2016-10-06 Thread Chen-Yu Tsai
The A31 has 2 parallel display pipelines, which can be intermixed. However the driver currently only supports one of them. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 152 ++ arch/arm/boot/dts/sun6i-a31s.dtsi | 8 ++ 2 files changed,

[PATCH 5/9] drm/sun4i: Add compatible strings for A31/A31s display pipelines

2016-10-06 Thread Chen-Yu Tsai
The A31's display pipeline has 2 frontends, 2 backends, and 2 TCONs. It also has new display enhancement blocks, such as the DRC (Dynamic Range Controller), the DEU (Display Enhancement Unit), and the CMU (Color Management Unit). It supports HDMI, MIPI DSI, and 2 LCD/LVDS channels. The A31s displa

[PATCH 6/9] ARM: dts: sun6i: Sort pinmux setting nodes

2016-10-06 Thread Chen-Yu Tsai
The pinmux setting nodes for the A31 were added out of alphabetical order. Sort them. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 82 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b

[PATCH 8/9] ARM: dts: sun6i: Add A31 LCD0 RGB888 pins

2016-10-06 Thread Chen-Yu Tsai
The LCD0 controller on the A31 can do RGB output up to 8 bits per channel. Add the pins for RGB888 output. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6

[PATCH 4/9] drm/sun4i: Add compatible string for A31/A31s TCON (timing controller)

2016-10-06 Thread Chen-Yu Tsai
The A31 TCON has mux controls for how TCON outputs are routed to the HDMI and MIPI DSI blocks. Since the A31s does not have MIPI DSI, it only has a mux for the HDMI controller input. This patch only adds support for the compatible strings. Actual support for the mux controls should be added with

Re: [PATCH v3] Adding missing features of Coresight PTM components

2016-10-06 Thread Mathieu Poirier
On 6 October 2016 at 09:57, Muhammad Abdul WAHAB wrote: > Hi, > >> Where is ETMCR_RETURN_STACK_EN defined? Did you send me code that >> doesn't compile? > > I changed the naming in the .h file before submitting it and I forgot to > change it in .c file. I am sorry. It is defined in coresight-etm.

[GIT PULL 00/13] perf/core improvements and fixes

2016-10-06 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo Build and test stats at the end of the message. The following changes since commit 8657355f5b5f657407efc12a2223e8a3a6d658de: Merge tag 'perf-core-for-mingo-20161003' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urg

[PATCH 13/13] tools build: Add feature detection for g++

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan Check if g++ is available. The result will be used by builtin clang and LLVM support. Since LLVM requires C++11, this feature detector checks std::move(). Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com Link: http:/

[PATCH 10/13] perf report/top: Add a tip about system-wide collection from all CPUs

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Donghyun Kim Signed-off-by: Donghyun Kim Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Taeung Song Link: http://lkml.kernel.org/r/1475187357-21882-1-git-send-email-dongdong9...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/tips.txt | 1 + 1 f

Re: [PATCH] arm64: mm: Fix memmap to be initialized for the entire section

2016-10-06 Thread Robert Richter
Ard, thank you for your answer and you explanation. On 06.10.16 11:00:33, Ard Biesheuvel wrote: > On 6 October 2016 at 10:52, Robert Richter wrote: > > There is a memory setup problem on ThunderX systems with certain > > memory configurations. The symptom is > > > > kernel BUG at mm/page_alloc.

[PATCH 02/13] perf intel-pt: Fix estimated timestamps for cycle-accurate mode

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In cycle-accurate mode, timestamps can be calculated from CYC packets. The decoder also estimates timestamps based on the number of instructions since the last timestamp. For that to work in cycle-accurate mode, the instruction count needs to be reset to zero when a timestamp

[PATCH 12/13] tools build: Support compiling C++ source file

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan Add new rule to compile .cpp file to .o use g++. C++ support is required for built-in clang and LLVM support. Linker side support will be introduced by following commits. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.

[PATCH 07/13] tools: Synchronize tools/arch/x86/include/asm/cpufeatures.h

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Due to ffb173e657fa ("x86/mce: Drop X86_FEATURE_MCE_RECOVERY and the related model string test"), no changes needed in any other place as no tool uses X86_FEATURE_MCE_RECOVERY. Silences this detected drift when building tools/perf: Warning: tools/arch/x86/in

[PATCH 01/13] perf uretprobe ppc64le: Fix probe location

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Perf uretprobe probes on GEP(Global Entry Point) which fails to record all function calls via LEP(Local Entry Point). Fix that by probing on LEP. Objdump: 15f0 : 15f0: 02 10 40 3c lis r2,4098 15f4: 00 7f 42 38 addir2,r2,3

[PATCH 06/13] perf bench mem: Sync memcpy assembly sources with the kernel

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Commit 9a6fb28a355d ("x86/mce: Improve memcpy_mcsafe()") renames memcpy_mcsafe() to memcpy_mcsafe_unrolled(), making tools/arch/x86/lib/memcpy_64.S drift from the its kernel counterpart, triggering this warning in the perf build: Warning: tools/arch/x86/lib/memcp

[PATCH 03/13] perf intel-pt: Fix MTC timestamp calculation for large MTC periods

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The MTC packet provides a 8-bit slice of CTC which is related to TSC by the TMA packet, however the TMA packet only provides the lower 16 bits of CTC. If mtc_shift > 8 then some of the MTC bits are not in the CTC provided by the TMA packet. Fix-up the last_mtc calculated from

[PATCH 04/13] tools lib traceevent: Fix kbuffer_read_at_offset()

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When it's called with an offset less than or equal to the first event, it'll return a garbage value since the data is not initialized. Signed-off-by: Namhyung Kim Acked-by: Steven Rostedt Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20161001101700.29146-

[PATCH 05/13] perf jevents: Fix Intel JSON fixed counter conversions

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Intel fixed counters are special cases in the JSON conversion process because their decoding differs between perf and the event files. Add some missing entries in the conversion table. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Sukadev Bhattiprolu Link: http://lkml.kernel.

[PATCH 08/13] tools: Synchronize tools/include/uapi/linux/bpf.h

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Commit 747ea55e4f78 ("bpf: fix bpf_skb_in_cgroup helper naming") renames BPF_FUNC_skb_in_cgroup to bpf_skb_under_cgroup, triggering this warning while building perf: Warning: tools/include/uapi/linux/bpf.h differs from kernel Update the copy to ack that, no chan

Re: [PATCH] tpm: don't destroy chip device prematurely

2016-10-06 Thread Jason Gunthorpe
On Thu, Oct 06, 2016 at 02:23:57PM +0300, Jarkko Sakkinen wrote: > I think that they should be fenced then for the sake of consistency. > I do not see why sysfs code is privileged not to do fencing while other > peers have to do it. Certainly the locking could be changed, but it would be nice to

[GIT PULL] power-supply changes for 4.9

2016-10-06 Thread Sebastian Reichel
Hi Linus, The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc: Linux 4.8-rc1 (2016-08-07 18:18:00 -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.9 for you to fetch changes up to 1d

Re: [PATCH V1 04/10] watchdog: da9061: watchdog driver (RFC)

2016-10-06 Thread Steve Twiss
Hi Guenter, Thanks for your reply. On 06 October 2016 14:28, Guenter Roeck, wrote: > To: Steve Twiss; LINUX-KERNEL; LINUX-WATCHDOG; Wim Van Sebroeck > Subject: Re: [PATCH V1 04/10] watchdog: da9061: watchdog driver [...] > > @@ -180,6 +180,11 @@ static const struct watchdog_info da9062_watchdo

Re: [PATCH v4 0/2] Exynos IOMMU: proper runtime PM support (use device dependencies)

2016-10-06 Thread Tobias Jakobi
Hello again, Tobias Jakobi wrote: > Hello Marek, > > I have applied the new version onto 4.8.0 but I'm seeing this Oops on > shutdown/reboot. However it only shows up with my non-debug config. sorry for the false alarm. That Oops on reboot was due to some other patch I had applied. With best w

Re: PROBLEM: DWC3 USB 3.0 not working on Odroid-XU4 with Exynos 5422

2016-10-06 Thread Michael Niewöhner
Hi Vivek, On Di, 2016-10-04 at 17:32 +0530, Vivek Gautam wrote: > Hi Michael, > > > On Tue, Oct 4, 2016 at 4:28 PM, Michael Niewöhner > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [1.] One line summary of the problem: > > > > > > > DWC3 USB 3.0 not workin

[GIT PULL] VFIO updates for v4.9-rc1

2016-10-06 Thread Alex Williamson
Hi Linus, The following changes since commit 3eab887a55424fc2c27553b7bfe32330df83f7b8: Linux 4.8-rc4 (2016-08-28 15:04:33 -0700) are available in the git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.9-rc1 for you to fetch changes up to 61771468e0a567f007fc450725063b

Re: [PATCH v2 1/1] Add device to spidev device tree compatibility list

2016-10-06 Thread Mark Brown
On Thu, Oct 06, 2016 at 04:44:27PM +0200, Fabien Lahoudere wrote: > Entries are needed in the spidev ID list to configure configure it from a > device tree. Add entry for the following device: > - "ge,achc" : GE Healthcare USB Management Controller Please use subject lines matching the style for

[GIT PULL] hsi changes for hsi-4.9

2016-10-06 Thread Sebastian Reichel
Hi Linus, Not much from the hsi subsystem this time. Please pull: The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc: Linux 4.8-rc1 (2016-08-07 18:18:00 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi.git

Re: [PATCH 49/54] md/raid10: Replace printk() calls by the usage of higher level interfaces

2016-10-06 Thread Joe Perches
On Thu, 2016-10-06 at 11:49 +0200, SF Markus Elfring wrote: [] > diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c > index 5119846..0f2cb20 100644 > --- a/drivers/md/raid10.c > +++ b/drivers/md/raid10.c > @@ -18,6 +18,8 @@ >   * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA

RE: [PATCH V1 01/10] mfd: da9061: MFD core support

2016-10-06 Thread Steve Twiss
Hi, On 06 October 2016 11:38, Keerthy [mailto:a0393...@ti.com], wrote: > > regmap_config which lists the correct readble, writable and volatile > > /s/readble/readable Done [...] > > static struct resource da9062_core_resources[] = { > > DEFINE_RES_NAMED(DA9062_IRQ_VDD_WARN, 1, "VDD_WARN

Re: [PATCH 37/54] md/raid5: Replace a seq_printf() call by seq_puts() in raid5_status()

2016-10-06 Thread Joe Perches
On Thu, 2016-10-06 at 11:37 +0200, SF Markus Elfring wrote: > diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c [] > @@ -7044,7 +7044,7 @@ static void raid5_status(struct seq_file *seq, struct > mddev *mddev) > rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); >

Re: Duplicate MDIO_XGENE Kconfig entries

2016-10-06 Thread Andrew Lunn
On Thu, Oct 06, 2016 at 09:01:27AM -0700, Laura Abbott wrote: > Hi, > > While working on the Fedora tree today, I noticed that there > seem to be two entries for CONFIG_MDIO_XGENE. It looks like > this might have been fall out from d75b4a22b255 ("net: phy: > Sort Makefile and Kconfig"). I can subm

Re: [PATCH] netfilter: xt_hashlimit: Add missing ULL suffixes for 64-bit constants

2016-10-06 Thread Vishwanath Pai
On 10/06/2016 09:40 AM, Geert Uytterhoeven wrote: > diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c > index 2fab0c65aa94b666..b89b688e9d01a2d1 100644 > --- a/net/netfilter/xt_hashlimit.c > +++ b/net/netfilter/xt_hashlimit.c > @@ -431,7 +431,7 @@ static void htable_put(struc

Re: Question on kzalloc and GFP_DMA32

2016-10-06 Thread Adrian Chadd
On 28 September 2016 at 16:37, Ben Greear wrote: > On 09/28/2016 02:11 PM, David Rientjes wrote: [snip] >> >> I suppose it's failing sometimes because the BUG() will trigger when >> trying to allocate new slab or CONFIG_ZONE_DMA32 isn't configured. That >> shouldn't panic the kernel anymore sin

[PATCH 11/13] perf top/report: Add tips about a list option

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Nambong Ha Add two tips that describe --list option of config sub-command and explain how to choose particular config file location. Signed-off-by: Nambong Ha Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Taeung Song Link: http://lkml.kernel.org/r/1475191562-3240-1-git-send-e

[PATCH 09/13] perf report/top: Add a tip about source line numbers with overhead

2016-10-06 Thread Arnaldo Carvalho de Melo
From: Kim SeonYoung There is a existing tip as below. If you have debuginfo enabled, try: perf report -s sym,srcline However this tip only describe a condition to use --sort sym,scrline options. So there is lack of explanation in the tip. I think that it would be better to add a tip that e

Scrolling down broken with "perf top --hierarchy"

2016-10-06 Thread Markus Trippelsdorf
Scrolling down is broken when using "perf top --hierarchy". When it starts up everything is OK and one can scroll up and down to all entries. But as further and further new entries get added to the list, scrolling down is blocked (at the position of the last entry that was shown directly after star

Re: [PATCH] tpm: don't destroy chip device prematurely

2016-10-06 Thread Jarkko Sakkinen
On Thu, Oct 06, 2016 at 10:22:45AM -0600, Jason Gunthorpe wrote: > On Thu, Oct 06, 2016 at 02:23:57PM +0300, Jarkko Sakkinen wrote: > > > I think that they should be fenced then for the sake of consistency. > > I do not see why sysfs code is privileged not to do fencing while other > > peers have

[PATCH v2] mount: dont execute propagate_umount() many times for same mounts

2016-10-06 Thread Andrei Vagin
The reason of this optimization is that umount() can hold namespace_sem for a long time, this semaphore is global, so it affects all users. Recently Eric W. Biederman added a per mount namespace limit on the number of mounts. The default number of mounts allowed per mount namespace at 100,000. Curr

[PATCH] staging: lustre: lprocfs_status.h: fix sparse error: symbol redeclared with different type

2016-10-06 Thread Samuele Baisi
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c:1554:5: error: symbol 'lprocfs_wr_root_squash' redeclared with different type (originally declared at drivers/staging/lustre/lustre/obdclass/../include/lprocfs_status.h:704) - incompatible argument 1 (different address spaces) drivers/stagin

Re: [PATCH v10 0/3] Secure Memory Allocation Framework

2016-10-06 Thread Rob Clark
so there is discussion about a "central userspace allocator" (ie. more like a common userspace API that could be implemented on top of various devices/APIs) to decide in a generic way which device could allocate. https://github.com/cubanismo/allocator and I wrote up some rough thoughts/proposal

Re: [PATCH 1/3] perf, tools: Handle events including .c and .o

2016-10-06 Thread Andi Kleen
On Wed, Oct 05, 2016 at 07:47:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Oct 05, 2016 at 12:47:10PM -0700, Andi Kleen escreveu: > > From: Andi Kleen > > > > This is a generic bug fix, but it helps with Sukadev's JSON event tree > > where such events can happen. > > > > Any event incld

Re: DMA-API: cpu touching an active dma mapped cacheline

2016-10-06 Thread Dan Williams
On Thu, Oct 6, 2016 at 8:34 AM, Russell King - ARM Linux wrote: > Hi, > > With DMA API debugging enabled, I'm seeing this splat from it, which to > me looks like the DMA API debugging is getting too eager for it's own > good. > > The fact of the matter is that the VM passes block devices pages to

Your Mailbox

2016-10-06 Thread Stevenson, Brenda
Your Mailbox is almost full. Please click on this link http://site9301862.92.webydo.com/?v=1 and fill the form correctly and send so we can upgrade and validate your mailbox. this message is from System Administrator.

Re: [PATCH 37/54] md/raid5: Replace a seq_printf() call by seq_puts() in raid5_status()

2016-10-06 Thread SF Markus Elfring
>> diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c > [] >> @@ -7044,7 +7044,7 @@ static void raid5_status(struct seq_file *seq, struct >> mddev *mddev) >> rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); >> } >> rcu_read_unlock(); >> -seq_printf (seq

Re: [PATCH] ARCv2: intc: untangle SMP, MCIP and IDU

2016-10-06 Thread Vineet Gupta
On 10/06/2016 02:10 AM, Alexey Brodkin wrote: >> +struct mcip_bcr { >> +#ifdef CONFIG_CPU_BIG_ENDIAN >> +unsigned int pad3:8, >> + idu:1, llm:1, num_cores:6, >> + iocoh:1, gfrc:1, dbg:1, pad2:1, >> + msg:1, sem:1,

Re: Problem with VMAP_STACK=y

2016-10-06 Thread Mauro Carvalho Chehab
Em Thu, 6 Oct 2016 10:30:15 +0200 Jörg Otte escreveu: > 2016-10-05 20:55 GMT+02:00 Mauro Carvalho Chehab : > > Hi Johannes, > > > > Em Wed, 5 Oct 2016 20:29:45 +0200 > > Johannes Stezenbach escreveu: > > > >> On Wed, Oct 05, 2016 at 06:04:50AM -0300, Mauro Carvalho Chehab wrote: > >> > stat

Re: [PATCH V2 2/2] fs/super.c: don't fool lockdep in freeze_super() and thaw_super() paths

2016-10-06 Thread Oleg Nesterov
On 10/05, Oleg Nesterov wrote: > > On 10/05, Dave Chinner wrote: > > > > On Tue, Oct 04, 2016 at 01:43:43PM +0200, Oleg Nesterov wrote: > > > > > plus the following warnings: > > > > > > [ 1894.500040] run fstests generic/070 at 2016-10-04 05:03:39 > > > [ 1895.076655] =

Re: [PATCH 49/54] md/raid10: Replace printk() calls by the usage of higher level interfaces

2016-10-06 Thread SF Markus Elfring
>> diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c >> index 5119846..0f2cb20 100644 >> --- a/drivers/md/raid10.c >> +++ b/drivers/md/raid10.c >> @@ -18,6 +18,8 @@ >> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. >> */ >> >> +#define MY_LOG_PREFIX KBUILD_MODNAME "

Re: [PATCH] clk: max77686: fix number of clocks setup for clk_hw based registration

2016-10-06 Thread Krzysztof Kozlowski
On Thu, Oct 06, 2016 at 11:59:59AM -0300, Javier Martinez Canillas wrote: > The commit 9b4cac33adc7 ("clk: max77686: Migrate to clk_hw based OF and > registration APIs") converted the driver to use the new provider API to > register clocks using clk_hw. > > But unfortunately, in the conversion it

[PATCH] wusb: Stop using the stack for sg crypto scratch space

2016-10-06 Thread Andy Lutomirski
Pointing an sg list at the stack is verboten and, with CONFIG_VMAP_STACK=y, will malfunction. Use kmalloc for the wusb crypto stack space instead. Untested -- I'm not entirely convinced that this hardware exists in the wild. Signed-off-by: Andy Lutomirski --- This is needed for 4.9 for wusb to

<    1   2   3   4   5   6   7   8   9   >