Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread David Woodhouse
On Wed, 2016-04-27 at 18:05 +0300, Michael S. Tsirkin wrote: > > I really don't get it. > > There's exactly one device that works now and needs the work-around and > so that we need to support, and that is virtio. It happens to have > exactly the same issue on all platforms. False. We have other

Re: [RFC PATCH v1 01/18] x86: Set the write-protect cache mode for AMD processors

2016-04-27 Thread Andy Lutomirski
On Wed, Apr 27, 2016 at 8:05 AM, Tom Lendacky wrote: > On 04/27/2016 09:47 AM, Andy Lutomirski wrote: >> On Wed, Apr 27, 2016 at 7:44 AM, Tom Lendacky >> wrote: >>> On 04/27/2016 09:33 AM, Andy Lutomirski wrote: On Tue, Apr 26, 2016 at 3:56 PM, Tom Lendacky wrote: > For AMD proce

Re: Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-27 Thread Lada Trimasova
On Tue, 2016-04-26 at 12:42 +, Vineet Gupta wrote: On Friday 22 April 2016 06:56 PM, Lada Trimasova wrote: I think what we have now is sufficient - but u seem to want a prettier failure output. Anyhow, this print is coming from util/evsel.c: perf_evsel__open_strerror() At the very least you

Re: [PATCH v2 3/3] regulator: axp20x: Fix axp22x ldo_io registration error on cold boot

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 03:59:28PM +0200, Hans de Goede wrote: > The maximum supported voltage for ldo_io# is 3.3V, but on cold > boot the selector comes up at 0x1f, which maps to 3.8V. Why not just implement that? We know what it does and it preserves the expected behaviour where we don't touch

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Andy Lutomirski
On Wed, Apr 27, 2016 at 7:54 AM, Michael S. Tsirkin wrote: > On Wed, Apr 27, 2016 at 07:43:07AM -0700, Andy Lutomirski wrote: >> On Wed, Apr 27, 2016 at 7:38 AM, Michael S. Tsirkin wrote: >> > On Wed, Apr 27, 2016 at 07:31:43AM -0700, Andy Lutomirski wrote: >> >> On Wed, Apr 27, 2016 at 7:23 AM,

Re: [PATCH V6 05/13] acpi, pci: Support IO resources when parsing PCI host bridge resources.

2016-04-27 Thread Liviu . Dudau
On Wed, Apr 27, 2016 at 03:26:59PM +0100, Lorenzo Pieralisi wrote: > On Tue, Apr 26, 2016 at 09:39:16PM -0500, Bjorn Helgaas wrote: > > On Fri, Apr 15, 2016 at 07:06:40PM +0200, Tomasz Nowicki wrote: > > > Platforms that have memory mapped IO port (such as ARM64) need special > > > handling for PCI

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Michael S. Tsirkin
On Wed, Apr 27, 2016 at 04:58:51PM +0200, Joerg Roedel wrote: > On Wed, Apr 27, 2016 at 05:54:57PM +0300, Michael S. Tsirkin wrote: > > Point is, QEMU is not the only virtio implementation out there. > > So we can't know no virtio implementations have an IOMMU as long as > > linux supports this IOM

Re: [PATCH] block: partitions: efi: Always check for alternative GPT at end of drive

2016-04-27 Thread Karel Zak
On Tue, Apr 26, 2016 at 02:51:01PM -0700, Gwendal Grignou wrote: > Julius and I were looking at the code when we spotted the issue. > > As Julius said, "just pass a boot param", is not easy on certain > machines, like phone. It is not user friendly either. > The system won't boot at all, a typical

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-04-27 Thread Catalin Marinas
On Wed, Apr 27, 2016 at 08:41:06AM +0300, Felipe Balbi wrote: > Grygorii Strashko writes: > > On 04/26/2016 09:17 AM, Felipe Balbi wrote: > >> Grygorii Strashko writes: > >>> Now not all DMA paremters configured properly for "xhci-hcd" platform > >>> device which is created manually. For example:

Re: [PATCH v6 2/2] memory: atmel-ebi: add DT bindings documentation

2016-04-27 Thread Mark Rutland
On Wed, Apr 27, 2016 at 04:35:54PM +0200, Boris Brezillon wrote: > The EBI (External Bus Interface) is used to access external peripherals > (NOR, SRAM, NAND, and other specific devices like ethernet controllers). > Each device is assigned a CS line and an address range and can have its > own confi

Re: [PATCH V10 2/6] mfd: max77620: add core driver for MAX77620/MAX20024

2016-04-27 Thread Thierry Reding
On Wed, Mar 30, 2016 at 07:59:44PM +0530, Laxman Dewangan wrote: > MAX77620/MAX20024 are Power Management IC from the MAXIM. > It supports RTC, multiple GPIOs, multiple DCDC and LDOs, > watchdog, clock etc. > > Add MFD drier to provides common support for accessing the > device; additional drivers

Re: [PATCH V10 1/6] mfd: add device-tree binding doc for PMIC max77620/max20024

2016-04-27 Thread Thierry Reding
On Wed, Apr 27, 2016 at 01:49:59PM +0100, Lee Jones wrote: > On Wed, 30 Mar 2016, Laxman Dewangan wrote: > > > The MAXIM PMIC MAX77620 and MAX20024 are power management IC > > which supports RTC, GPIO, DCDC/LDO regulators, interrupt, > > watchdog etc. > > > > Add DT binding document for the diffe

Re: [RFC PATCH v1 01/18] x86: Set the write-protect cache mode for AMD processors

2016-04-27 Thread Tom Lendacky
On 04/27/2016 09:47 AM, Andy Lutomirski wrote: > On Wed, Apr 27, 2016 at 7:44 AM, Tom Lendacky wrote: >> On 04/27/2016 09:33 AM, Andy Lutomirski wrote: >>> On Tue, Apr 26, 2016 at 3:56 PM, Tom Lendacky >>> wrote: For AMD processors that support PAT, set the write-protect cache mode (_P

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Michael S. Tsirkin
On Wed, Apr 27, 2016 at 04:56:32PM +0200, Joerg Roedel wrote: > On Wed, Apr 27, 2016 at 05:34:30PM +0300, Michael S. Tsirkin wrote: > > On Wed, Apr 27, 2016 at 04:23:32PM +0200, Joerg Roedel wrote: > > > QEMU can choose to bypass IOMMU for one device and not the other. > > IOMMU in QEMU isn't invo

Re: [GIT PULL 00/30] perf/core improvements and fixes

2016-04-27 Thread Ingo Molnar
160419' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux (2016-04-23 14:50:39 > +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-20160427 > > f

Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in regulator dts nodes

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 04:40:05PM +0200, Hans de Goede wrote: > Or, since regulator_of_get_init_data uses for_each_available_child_of_node > which checks the "status" value we can actually already use > "status=disabled" cool. So this simply already works :) To repeat you really shouldn't have *

Re: [PATCH] of: Add stub for of_get_next_parent()

2016-04-27 Thread Thierry Reding
On Wed, Apr 27, 2016 at 01:13:33PM +0200, Arnd Bergmann wrote: > On Wednesday 27 April 2016 14:11:40 Heikki Krogerus wrote: > > Fixes a compiler error: > > > > drivers/phy/phy-core.c: In function ‘__of_phy_provider_register’: > > drivers/phy/phy-core.c:848:13: error: implicit declaration of functi

[PATCH 6/6] mm, page_alloc: don't duplicate code in free_pcp_prepare

2016-04-27 Thread Mel Gorman
The new free_pcp_prepare() function shares a lot of code with free_pages_prepare(), which makes this a maintenance risk when some future patch modifies only one of them. We should be able to achieve the same effect (skipping free_pages_check() from !DEBUG_VM configs) by adding a parameter to free_p

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Andy Lutomirski
On Wed, Apr 27, 2016 at 7:38 AM, Michael S. Tsirkin wrote: > On Wed, Apr 27, 2016 at 07:31:43AM -0700, Andy Lutomirski wrote: >> On Wed, Apr 27, 2016 at 7:23 AM, Joerg Roedel wrote: >> > On Wed, Apr 27, 2016 at 04:37:04PM +0300, Michael S. Tsirkin wrote: >> >> One correction: it's a feature of th

[PATCH 4/6] mm, page_alloc: un-inline the bad part of free_pages_check

2016-04-27 Thread Mel Gorman
From: Vlastimil Babka !DEBUG_VM size and bloat-o-meter: add/remove: 1/0 grow/shrink: 0/2 up/down: 124/-370 (-246) function old new delta free_pages_check_bad - 124+124 free_pcppages_bulk 1288

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Joerg Roedel
On Wed, Apr 27, 2016 at 05:54:57PM +0300, Michael S. Tsirkin wrote: > Point is, QEMU is not the only virtio implementation out there. > So we can't know no virtio implementations have an IOMMU as long as > linux supports this IOMMU. > virtio always used physical addresses since it was born and if i

Re: [GIT PULL rcu/next] RCU commits for 4.7

2016-04-27 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > The changes in this series include: > > 1.Documentation updates, including fixes to the design-level > requirements documentation and a fixed version of the design-level > data-structure documentation. These fixes include removing >

Re: [PATCH] Input: Do not add SYN_REPORT in between a single packet data

2016-04-27 Thread Aniroop Mathur
On Thu, Apr 7, 2016 at 2:13 AM, Aniroop Mathur wrote: > Hello Mr. Henrik, > > On Thu, Apr 7, 2016 at 1:21 AM, Henrik Rydberg wrote: >> Hi Aniroop, >> I am not sure what the urgency is. It is more of a theoretical problem ans so far the proposed solutions were actually introducing more >

Re: [PATCH 1/1] mm: thp: kvm: fix memory corruption in KVM with THP enabled

2016-04-27 Thread Andrea Arcangeli
On Wed, Apr 27, 2016 at 04:50:30PM +0300, Kirill A. Shutemov wrote: > I know nothing about kvm. How do you protect against pmd splitting between > get_user_pages() and the check? get_user_pages_fast() runs fully lockless and unpins the page right away (we need a get_user_pages_fast without the FOL

Re: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD)

2016-04-27 Thread Pavel Machek
On Wed 2016-04-27 16:39:51, Borislav Petkov wrote: > On Wed, Apr 27, 2016 at 04:30:45PM +0200, Pavel Machek wrote: > > That does not answer the question. "Why would I want SME on my > > system?". > > Because your question wasn't formulated properly. Here's some text from > the 0th mail which you c

[PATCH 1/6] mm, page_alloc: Only check PageCompound for high-order pages -fix

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that an unlikely annotation in free_pages_prepare shrinks stack usage by moving compound handling to the end of the function. add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-30 (-30) function old new delta free_pages_prepare

[PATCH 2/6] mm, page_alloc: move might_sleep_if check to the allocator slowpath -revert

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that a patch weakens a zone_reclaim test which while "safe" defeats the purposes of the debugging check. As most configurations eliminate this check anyway, I thought it was better to simply revert the patch instead of adding a second check in zone_reclaim. This is a re

[PATCH 5/6] mm, page_alloc: pull out side effects from free_pages_check

2016-04-27 Thread Mel Gorman
Check without side-effects should be easier to maintain. It also removes the duplicated cpupid and flags reset done in !DEBUG_VM variant of both free_pcp_prepare() and then bulkfree_pcp_prepare(). Finally, it enables the next patch. It shouldn't result in new branches, thanks to inlining of the ch

[PATCH 3/6] mm, page_alloc: Check once if a zone has isolated pageblocks -fix

2016-04-27 Thread Mel Gorman
Vlastimil Babka pointed out that the original code was protected by the zone lock and provided a fix. This is a fix to the mmotm patch mm-page_alloc-check-once-if-a-zone-has-isolated-pageblocks.patch . Once applied the following line should be removed from the changelog "Technically this is race-p

[PATCH 0/6] Optimise page alloc/free fast paths followup v2

2016-04-27 Thread Mel Gorman
This is a follow-up series based on Vlastimil Babka's review feedback. The first change is that the second patch in the previous series was dropped as the patch "mm, page_alloc: inline the fast path of the zonelist iterator" is fine. The nodemask pointer is the same between cpuset retries. If the z

Re: [PATCH] x86/efi-bgrt: Switch all pr_err() to pr_debug() for invalid BGRT

2016-04-27 Thread Môshe van der Sterre
On 04/27/2016 03:56 PM, Josh Boyer wrote: On Wed, Apr 27, 2016 at 9:26 AM, Môshe van der Sterre wrote: (additionally CC-ing Josh Triplett) Thanks for doing so. I completely forgot. On 04/27/2016 02:50 PM, Josh Boyer wrote: The promise of pretty boot splashes from firmware via BGRT was at

Re: [PATCH V4] powerpc: Implement {cmp}xchg for u8 and u16

2016-04-27 Thread Boqun Feng
On Wed, Apr 27, 2016 at 10:50:34PM +0800, Boqun Feng wrote: > > Sorry, my bad, we can't implement cmpxchg like this.. please ignore > this, I should really go to bed soon... > > But still, we can save the "tmp" for xchg() I think. > No.. we can't. Sorry for all the noise. This patch looks good

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Joerg Roedel
On Wed, Apr 27, 2016 at 05:34:30PM +0300, Michael S. Tsirkin wrote: > On Wed, Apr 27, 2016 at 04:23:32PM +0200, Joerg Roedel wrote: > QEMU can choose to bypass IOMMU for one device and not the other. > IOMMU in QEMU isn't involved when it's bypassed. And it is QEMU's task to tell the OS, right? A

Re: [RFT PATCH] iio: magn: Add support for BMM150 magnetometer

2016-04-27 Thread Lucas De Marchi
On Tue, Apr 26, 2016 at 9:39 AM, Daniel Baluta wrote: > BMM150 is register compatible with magnetometer part of > BMC156. > > Datasheet is at: > http://www.mouser.com/ds/2/783/BST-BMM150-DS001-01-786480.pdf > > Signed-off-by: Daniel Baluta > --- > Lucas let me know if it works for you. I don't ha

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Michael S. Tsirkin
On Wed, Apr 27, 2016 at 07:43:07AM -0700, Andy Lutomirski wrote: > On Wed, Apr 27, 2016 at 7:38 AM, Michael S. Tsirkin wrote: > > On Wed, Apr 27, 2016 at 07:31:43AM -0700, Andy Lutomirski wrote: > >> On Wed, Apr 27, 2016 at 7:23 AM, Joerg Roedel wrote: > >> > On Wed, Apr 27, 2016 at 04:37:04PM +0

[PATCH 14/30] perf hists: Clear dummy entry accumulated period

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Kan Liang The accumulated period for dummy entry should also be 0. Otherwise, the total overhead could be overcounted. $ perf record -e '{LLC-load-misses,cpu/instructions/}' --call-graph=lbr ./tchain $ perf report --stdio # To display the perf.data header info, please use --header/

[PATCH 28/30] perf bench: Remove one more die() call

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Propagate the error instead. Cc: David Ahern Cc: Hitoshi Mitake Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-z6erjg35d1gekevwujoa0...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/bench/mem-functions.

[PATCH] MAINTAINERS: net: Change maintainer for GRETH 10/100/1G Ethernet MAC device driver

2016-04-27 Thread Andreas Larsson
Signed-off-by: Andreas Larsson --- MAINTAINERS |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1d5b4be..08ffebd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4903,7 +4903,7 @@ F:net/ipv4/gre_offload.c F: include/net/gre.h GRE

[PATCH 18/30] perf probe: Let probe_file__add_event return 0 if succeeded

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Since other methods return 0 if succeeded (or filedesc), let probe_file__add_event() return 0 instead of the length of written bytes. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Hemant Kumar Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.

[PATCH 20/30] perf trace: Move perf_flags beautifier to tools/perf/trace/beauty/

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce the size of builtin-trace.c. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-8r3gmymyn3r0ynt4yuzsp...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-tra

[PATCH 12/30] perf bench futex: Simplify wrapper for LOCK_PI

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Davidlohr Bueso Given that the 'val' parameter is ignored for FUTEX_LOCK_PI, get rid of the bogus deadlock detection flag in the wrapper code and avoid the extra argument, making it resemble its unlock counterpart. And if nothing else, we already only pass 0 anyway. Signed-off-by: Davidloh

[PATCH v2 2/2] net: nps_enet: bug fix - handle lost tx interrupts

2016-04-27 Thread Elad Kanfi
From: Elad Kanfi The tx interrupt is of edge type, and in case such interrupt is triggered while it is masked it will not be handled even after tx interrupts are re-enabled in the end of NAPI poll. This will cause tx network to stop in the following scenario: * Rx is being handled, hence interru

[PATCH 10/30] perf tools: Remove duplicate const qualifier

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Eric Engestrom Signed-off-by: Eric Engestrom Cc: Adrian Hunter Cc: David Ahern Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1461577678-29517-1-git-send-email-eric.engest...@imgtec.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/thread.c | 2 +- 1 file changed, 1

[PATCH 02/30] perf trace: Extract evsel contructor from perf_evlist__add_pgfault

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Prep work for next patches, where we'll need access to the created evsels, to possibly configure callchains. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-2pcgsgnkgellhlcao4aub...@git.kernel.or

[PATCH 11/30] perf tests: Replace assignment with comparison on assert check

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Colin Ian King The current assert check is checking an assignment, which will always be true. Instead, the assert should be checking if scale is equal to 0.122 Signed-off-by: Colin Ian King Reviewed-by: Masami Hiramatsu Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Peter Zijlstra Link: h

[PATCH 19/30] perf probe: Set default kprobe group name if it is not given

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Set kprobe group name as "probe" if it is not given. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Hemant Kumar Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20160426090413.11891.95640.stgit@de

[PATCH 27/30] perf tools: Update x86's syscall_64.tbl, adding preadv2 & pwritev2

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Introduced in commit 4babf2c5efb7 ("x86: wire up preadv2 and pwritev2"). This will make 'perf trace' aware of them. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-vojoylgce2ce

[PATCH 06/30] perf trace: Make --pf honour --min-stack too

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To check deeply nested page fault callchains. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-wuji34xx003kr88nmqt6j...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --

[PATCH 08/30] perf tools: Make the x86 clean quiet

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Turn current clean output: $ make clean rm -f arch/x86/include/generated/asm/syscalls_64.c CLEANlibbpf CLEANlibapi into: $ make clean CLEANx86 CLEANlibapi CLEANlibbpf Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo C

Re: [RFC PATCH v1 01/18] x86: Set the write-protect cache mode for AMD processors

2016-04-27 Thread Andy Lutomirski
On Wed, Apr 27, 2016 at 7:44 AM, Tom Lendacky wrote: > On 04/27/2016 09:33 AM, Andy Lutomirski wrote: >> On Tue, Apr 26, 2016 at 3:56 PM, Tom Lendacky >> wrote: >>> For AMD processors that support PAT, set the write-protect cache mode >>> (_PAGE_CACHE_MODE_WP) entry to the actual write-protect v

Re: [PATCH V4] powerpc: Implement {cmp}xchg for u8 and u16

2016-04-27 Thread Boqun Feng
On Wed, Apr 27, 2016 at 09:58:17PM +0800, Boqun Feng wrote: > On Wed, Apr 27, 2016 at 05:16:45PM +0800, Pan Xinhui wrote: > > From: Pan Xinhui > > > > Implement xchg{u8,u16}{local,relaxed}, and > > cmpxchg{u8,u16}{,local,acquire,relaxed}. > > > > It works on all ppc. > > > > remove volatile of

Re: [RFC PATCH v1 01/18] x86: Set the write-protect cache mode for AMD processors

2016-04-27 Thread Tom Lendacky
On 04/27/2016 09:33 AM, Andy Lutomirski wrote: > On Tue, Apr 26, 2016 at 3:56 PM, Tom Lendacky wrote: >> For AMD processors that support PAT, set the write-protect cache mode >> (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). > > What's the purpose of using the WP memory type

[PATCH 01/30] perf buildid: Fix off-by-one in write_buildid()

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Andrey Ryabinin write_buildid() increments 'name_len' with intention to take into account trailing zero byte. However, 'name_len' was already incremented in machine__write_buildid_table() before. So this leads to out-of-bounds read in do_write(): $ ./perf record sleep 0 [ perf record:

[PATCH 09/30] tools build: Fix perf_clean target

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Fix perf_clean target to follow the same logic as perf target. Fixes the following make invokation: $ cd && make tools/perf_clean Reported-by: TJ Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Bugzilla:

Re: [PATCH 1/2] mm: add PF_MEMALLOC_NOFS

2016-04-27 Thread Tetsuo Handa
Michal Hocko wrote: > On Wed 27-04-16 19:53:21, Tetsuo Handa wrote: > [...] > > > Let's hope that filesystems will drop direct GFP_NOFS (resp. ~__GFP_FS) > > > usage as much and possible and only use a properly documented > > > memalloc_nofs_{save,restore} checkpoints where they are appropriate. >

Re: [PATCH v3] usb: core: hub: hub_port_init lock controller instead of bus

2016-04-27 Thread Mathias Nyman
On 25.04.2016 15:48, Chris Bainbridge wrote: The XHCI controller presents two USB buses to the system - one for USB2 and one for USB3. The hub init code (hub_port_init) is reentrant but only locks one bus per thread, leading to a race condition failure when two threads attempt to simultaneously i

[PATCH 16/30] perf probe: Close target file on error path

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix a bug to close target elf file in get_text_start_address(). Signed-off-by: Masami Hiramatsu Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20160426064737.1443.44093.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/probe-

[PATCH 26/30] perf probe: Fix module probe issue if no dwarf support

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Perf is not able to register probe in kernel module when dwarf supprt is not there(and so it goes for symtab). Perf passes full path of module where only module name is required which is causing the problem. This patch fixes this issue. Before applying patch: $ dpkg -s lib

[PATCH 21/30] perf trace: Do not beautify the 'pid' parameter as a simple integer

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Leave it alone so that it ends up assigned to SCA_PID via its type, 'pid_t', that will look up the pid on the machine thread rb_tree and possibly find its COMM. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Lin

Re: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD)

2016-04-27 Thread Andy Lutomirski
On Tue, Apr 26, 2016 at 3:55 PM, Tom Lendacky wrote: > This RFC patch series provides support for AMD's new Secure Memory > Encryption (SME) feature. > > SME can be used to mark individual pages of memory as encrypted through the > page tables. A page of memory that is marked encrypted will be aut

[PATCH 24/30] perf trace: Read thread's COMM from /proc when not set

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We get notifications for threads that gets created while we're tracing, but for preexisting threads we may end not having synthesized them, like when tracing a 'perf trace' session that will use '--pid' to trace some other thread. And besides we should probably sto

Re: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD)

2016-04-27 Thread Borislav Petkov
On Wed, Apr 27, 2016 at 04:30:45PM +0200, Pavel Machek wrote: > That does not answer the question. "Why would I want SME on my > system?". Because your question wasn't formulated properly. Here's some text from the 0th mail which you could've found on your own: "The following links provide additi

Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in regulator dts nodes

2016-04-27 Thread Hans de Goede
Hi, On 27-04-16 16:37, Mark Brown wrote: On Wed, Apr 27, 2016 at 04:31:02PM +0200, Hans de Goede wrote: On 27-04-16 16:24, Mark Brown wrote: The regulator API should not touch any regulators that it doesn't have permission to change the state for. All other regulators are strictly read only

[PATCH 05/30] perf trace: Make --event honour --min-stack too

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-shj0fazntmskhjild5i6x...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-trace.c | 21

Re: [PATCH v4 1/2] KVM: remove NULL return path for vcpu ids >= KVM_MAX_VCPUS

2016-04-27 Thread Radim Krčmář
2016-04-27 05:40-0400, Gerg Kurz: > Quoting Greg Kurz : > >> Commit c896939f7cff ("KVM: use heuristic for fast VCPU lookup by id") added >> a return path that prevents vcpu ids to exceed KVM_MAX_VCPUS. This is a >> problem for powerpc where vcpu ids can grow up to 8*KVM_MAX_VCPUS. >> >> This patc

Re: [PATCH v2 4/5] ARM: dts: omap5: describe control for ckobuffer

2016-04-27 Thread H. Nikolaus Schaller
HI, > Am 27.04.2016 um 16:23 schrieb Peter Ujfalusi : > > On 04/27/2016 05:10 PM, Tero Kristo wrote: >> On 27/04/16 16:10, H. Nikolaus Schaller wrote: >>> Am 27.04.2016 um 14:31 schrieb Tero Kristo : On 27/04/16 09:04, H. Nikolaus Schaller wrote: > >> Am 26.04.2016 um 19

Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in regulator dts nodes

2016-04-27 Thread Mark Brown
On Wed, Apr 27, 2016 at 04:31:02PM +0200, Hans de Goede wrote: > On 27-04-16 16:24, Mark Brown wrote: > >The regulator API should not touch any regulators that it doesn't have > >permission to change the state for. All other regulators are strictly > >read only. > How do we give permission to ch

[PATCH 07/30] perf evlist: Decode perf_event_attr->branch_sample_type

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo While trying to use --call-graph lbr in 'perf trace', since we only are interested in the callchain for userspace, up to the callchain, I found that 'perf evlist' is not decoding the branch_sample_type field, fix it. Before: # perf record --call-graph lbr usleep

[PATCH 30/30] perf tools: Set the maximum allowed stack from /proc/sys/kernel/perf_event_max_stack

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo There is an upper limit to what tooling considers a valid callchain, and it was tied to the hardcoded value in the kernel, PERF_MAX_STACK_DEPTH (127), now that this can be tuned via a sysctl, make it read it and use that as the upper limit, falling back to PERF_MAX_

[PATCH 2/2] ARC: [axs10x] Specify reserved memory for frame buffer

2016-04-27 Thread Alexey Brodkin
Allocation of a frame buffer memory in a special memory region allows bypassing of so-called IO Coherency aperture which is typically set as a range 0x8z-0xAz. I.e. all data traffic to PGU bypasses IO Coherency block and saves its bandwidth for other peripherals. Even though for AXS101 (which sor

[PATCH 25/30] perf probe: Fix offline module name missmatch issue

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Perf can add a probe on kernel module which has not been loaded yet. The current implementation finds the module name from path. But if the filename is different from the actual module name then perf fails to register a probe while loading module because of mismatch in the na

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Michael S. Tsirkin
On Wed, Apr 27, 2016 at 07:31:43AM -0700, Andy Lutomirski wrote: > On Wed, Apr 27, 2016 at 7:23 AM, Joerg Roedel wrote: > > On Wed, Apr 27, 2016 at 04:37:04PM +0300, Michael S. Tsirkin wrote: > >> One correction: it's a feature of the device in the system. > >> There could be a mix of devices bypa

[PATCH 1/2] drm/arcpgu: use dedicated memory area for frame buffer

2016-04-27 Thread Alexey Brodkin
Now when ARC supports reserved memory areas and per-device coherent DMA allocations we may switch ARC PGU to use of those dedicated areas. One of the benefits we may move frame-buffer area out from IO Coherency aperture and so significantly reduce IOC utilization allowing less demanding peripheral

[PATCH v6 1/2] memory: add Atmel EBI (External Bus Interface) driver

2016-04-27 Thread Boris Brezillon
The EBI (External Bus Interface) is used to access external peripherals (NOR, SRAM, NAND, and other specific devices like ethernet controllers). Each device is assigned a CS line and an address range and can have its own configuration (timings, access mode, bus width, ...). This driver provides a g

[PATCH v6 0/2] memory: add Atmel EBI (External Bus Interface) driver

2016-04-27 Thread Boris Brezillon
The EBI (External Bus Interface) is used to access external peripherals (NOR, SRAM, NAND, and other specific devices like ethernet controllers). Each device is assigned a CS line and an address range and can have its own configuration (timings, access mode, bus width, ...). This driver provides a g

[PATCH v6 2/2] memory: atmel-ebi: add DT bindings documentation

2016-04-27 Thread Boris Brezillon
The EBI (External Bus Interface) is used to access external peripherals (NOR, SRAM, NAND, and other specific devices like ethernet controllers). Each device is assigned a CS line and an address range and can have its own configuration (timings, access mode, bus width, ...). This driver provides a g

[PATCH 22/30] tools lib api fs: Add helper to read string from procfs file

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To read things like /proc/self/comm. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-ztpkbmseidt0hq2psr46o...@git.kernel.org Signed-off-by: Arnaldo Carvalho

Re: [PATCH v6 11/12] usb: core: hub: Notify OTG fsm when A device sets b_hnp_enable

2016-04-27 Thread Roger Quadros
On 18/04/16 10:08, Peter Chen wrote: > On Tue, Apr 05, 2016 at 05:05:16PM +0300, Roger Quadros wrote: >> This is the a_set_b_hnp_enable flag in the OTG state machine >> diagram and must be set when the A-Host has successfully set >> the b_hnp_enable feature of the OTG-B-Peripheral attached to it. >

[PATCH 23/30] perf thread: Introduce method to set comm from /proc/pid/self

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Will be used for lazy comm loading in 'perf trace'. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-7ogbkuoka1y2qsmcckqxv...@git.kernel.org Signed-off-by: A

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Michael S. Tsirkin
On Wed, Apr 27, 2016 at 04:23:32PM +0200, Joerg Roedel wrote: > On Wed, Apr 27, 2016 at 04:37:04PM +0300, Michael S. Tsirkin wrote: > > One correction: it's a feature of the device in the system. > > There could be a mix of devices bypassing and not > > bypassing the IOMMU. > > No, it really is no

[PATCH 0/2] drm/arcpgu: Get use of dedicated memory area for frame buffer

2016-04-27 Thread Alexey Brodkin
This mini-series allows to allocate frame buffer memory in desired location. Allocation of a frame buffer memory in a special memory region allows bypassing of so-called IO Coherency aperture which is typically set as a range 0x8z-0xAz. I.e. all data traffic to PGU bypasses IO Coherency block and

[PATCH 13/30] perf intel-pt: Fix off-by-one comparison on maximum code

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Colin Ian King The check for the maximum code is off-by-one; the current comparison of a code that is INTEL_PT_ERR_MAX will cause the strlcpy to perform an out of bounds array access on the intel_pt_err_msgs array. Fix this with a >= comparison. Signed-off-by: Colin Ian King Cc: Adrian H

Re: [PATCH 1/2] ASoC: dmaengine_pcm: Add support for packed transfers

2016-04-27 Thread Martin Sperl
> On 27.04.2016, at 15:26, Matthias Reichl wrote: > > dmaengine_pcm currently only supports setups where FIFO reads/writes > correspond to exactly one sample, eg 16-bit sample data is transferred > via 16-bit FIFO accesses, 32-bit data via 32-bit accesses. > > This patch adds support for setups

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

2016-04-27 Thread Arnaldo Carvalho de Melo
:39 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160427 for you to fetch changes up to 4cb93446c587d56e2a54f4f83113daba2c0b6dee: perf tools: Set the maximum allowed stack from /proc/

Re: [PATCH 1/2] bfp tools: Remove expression with no effect

2016-04-27 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 27, 2016 at 11:11:26AM +0800, Wangnan (F) escreveu: > > > On 2016/4/25 10:34, Florian Fainelli wrote: > >Assigning "attr" to "attr" does not have any effect, but was caught by > >Coverity, so let's remove this. > > > >Reported-by: coverity (CID 1354720) > >Fixes: 1b76c13e4b36 ("bpf to

[PATCH 15/30] perf evlist: Enforce ring buffer reading

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Wang Nan Don't read broken data after 'head' pointer. Following commits will feed perf_evlist__mmap_read() with some 'head' pointers not maintained by kernel. If 'head' pointer breaks an event, we should avoid reading from the broken event. This can happen in backward ring buffer. For exa

Re: [RFC PATCH v1 01/18] x86: Set the write-protect cache mode for AMD processors

2016-04-27 Thread Andy Lutomirski
On Tue, Apr 26, 2016 at 3:56 PM, Tom Lendacky wrote: > For AMD processors that support PAT, set the write-protect cache mode > (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). What's the purpose of using the WP memory type? --Andy

Re: [PATCH V2 RFC] fixup! virtio: convert to use DMA api

2016-04-27 Thread Andy Lutomirski
On Wed, Apr 27, 2016 at 7:23 AM, Joerg Roedel wrote: > On Wed, Apr 27, 2016 at 04:37:04PM +0300, Michael S. Tsirkin wrote: >> One correction: it's a feature of the device in the system. >> There could be a mix of devices bypassing and not >> bypassing the IOMMU. > > No, it really is not. A device

Re: [PATCH 2/2] ASoC: bcm2835: Add S16_LE support via packed DMA transfers

2016-04-27 Thread Martin Sperl
> On 27.04.2016, at 15:26, Matthias Reichl wrote: > > The bcm2835-i2s driver already has support for the S16_LE format but > that format hasn't been made available because dmaengine_pcm didn't > support packed data transfers. > > bcm2835-i2s needs 16-bit left+right channel data to be packed int

Re: [PATCH 2/2] bfp tools: Fix syscall argument

2016-04-27 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 27, 2016 at 11:01:43AM +0800, Wangnan (F) escreveu: > On 2016/4/25 10:34, Florian Fainelli wrote: > >-return syscall(__NR_bpf, BPF_PROG_LOAD, attr, sizeof(attr)); > >+return syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); > > } > Acked-by: Wang Nan Applied, thanks. -

[PATCH 29/30] perf core: Allow setting up max frame stack depth via sysctl

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The default remains 127, which is good for most cases, and not even hit most of the time, but then for some cases, as reported by Brendan, 1024+ deep frames are appearing on the radar for things like groovy, ruby. And in some workloads putting a _lower_ cap on this

Re: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD)

2016-04-27 Thread Pavel Machek
On Wed 2016-04-27 16:05:20, Borislav Petkov wrote: > On Tue, Mar 22, 2016 at 02:00:58PM +0100, Pavel Machek wrote: > > Why would I want SME on my system? My system seems to work without it. > > Your system doesn't have it and SME is default off. That does not answer the question. "Why would I wan

NFS swap hangup

2016-04-27 Thread Yoshinori Sato
Hello. Your commit 15001e5a7e1e207b6bd258cd8f187814cd15b6dc is hang up in my system. Lock detector said NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapon:933] Modules linked in:

[PATCH 04/30] perf script: Fix segfault when printing callchains

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Chris Phlipot This fixes a bug caused by an unitialized callchain cursor. The crash frist appeared in: 6f736735e30f ("perf evsel: Require that callchains be resolved before calling fprintf_{sym,callchain}") The callchain cursor is a struct that contains pointers, that when uninitialized w

Re: [PATCH] staging:xgifb: Fix Comparisons should place the constant on the right side of the test warning

2016-04-27 Thread YU Bo
On Wed, Apr 27, 2016 at 04:58:36PM +0300, Dan Carpenter wrote: On Wed, Apr 27, 2016 at 09:27:39AM -0400, YU Bo wrote: Fixed checkpatch.pl's warning 'Comparisons should place the constant on the right side of the test' Signed-off-by: YU Bo --- drivers/staging/xgifb/vb_setmode.c |4 ++-- 1

[PATCH 03/30] perf trace: Make --pf maj/min/all use callchains too

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Forgot about page faults, a software event, when adding support for callchains, fix it: # trace --no-syscalls --pf maj --call dwarf 0.000 ( 0.000 ms): Xorg/2068 majfault [sfbSegment1+0x0] => /usr/lib64/xorg/modules/drivers/intel_drv.so@0x11b490 (x.)

Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in regulator dts nodes

2016-04-27 Thread Hans de Goede
Hi, On 27-04-16 16:24, Mark Brown wrote: On Wed, Apr 27, 2016 at 04:03:44PM +0200, Hans de Goede wrote: So if we want to use these pins as gpio pins we must not register a regulator for these pins at all, otherwise any gpio use (switching to input, or writing a value) gets undone when the regu

[PATCH 17/30] perf tools: Add lsdir() helper to read a directory

2016-04-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu As a utility function, add lsdir() which reads given directory and store entry name into a strlist. lsdir accepts a filter function so that user can filter out unneeded entries. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahal

Re: Kernel docs: muddying the waters a bit

2016-04-27 Thread Grant Likely
On Tue, Apr 12, 2016 at 4:46 PM, Jonathan Corbet wrote: > On Fri, 8 Apr 2016 17:12:27 +0200 > Markus Heiser wrote: > >> motivated by this MT, I implemented a toolchain to migrate the kernel’s >> DocBook XML documentation to reST markup. >> >> It converts 99% of the docs well ... to gain an impres

Re: [PATCH V6 05/13] acpi, pci: Support IO resources when parsing PCI host bridge resources.

2016-04-27 Thread Lorenzo Pieralisi
On Tue, Apr 26, 2016 at 09:39:16PM -0500, Bjorn Helgaas wrote: > On Fri, Apr 15, 2016 at 07:06:40PM +0200, Tomasz Nowicki wrote: > > Platforms that have memory mapped IO port (such as ARM64) need special > > handling for PCI I/O resources. For host bridge's resource probing case > > these resources

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