Re: [mm PATCH v4 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-31 Thread Alexander Duyck
On Wed, 2018-10-31 at 15:40 +, Pasha Tatashin wrote: > > On 10/17/18 7:54 PM, Alexander Duyck wrote: > > This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. > > > > This iterator will take care of making sure a given memory range provided > > is in fact contained within

Re: [mm PATCH v4 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-31 Thread Pasha Tatashin
On 10/31/18 12:05 PM, Alexander Duyck wrote: > On Wed, 2018-10-31 at 15:40 +, Pasha Tatashin wrote: >> >> On 10/17/18 7:54 PM, Alexander Duyck wrote: >>> This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. >>> >>> This iterator will take care of making sure a given memor

[PATCH 0/5] Fragmentation avoidance improvements

2018-10-31 Thread Mel Gorman
Warning: This is a long intro with long changelogs and this is not a trivial area to either analyse or fix. TLDR -- 95% reduction in fragmentation events, patches 1-3 should be relatively ok. Patch 4 and 5 need scrutiny but they are also independent or dropped. It has been

Re: [PATCH] of/platform: Support dynamic device tree on AMBA bus

2018-10-31 Thread Frank Rowand
On 10/31/18 8:32 AM, Jaewon Kim wrote: > Hi Frank, > > > Thanks to review my patch. > > On 18. 10. 31. 오전 8:04, Frank Rowand wrote: >> Hi Jaewon, >> >> On 10/25/18 9:39 AM, Jaewon Kim wrote: >>> This patch supports dynamic device-tree for AMBA device. >> Add AMBA devices and buses to of_platform

[PATCH 2/5] mm: Move zone watermark accesses behind an accessor

2018-10-31 Thread Mel Gorman
This is a preparation patch only, no functional change. Signed-off-by: Mel Gorman --- include/linux/mmzone.h | 9 + mm/compaction.c| 2 +- mm/page_alloc.c| 12 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/include/linux/mmzone.h b/include

[PATCH 3/3] ALSA:hda: add support for Huawei WMI MicMute LED

2018-10-31 Thread ayman . bagabas
From e7291d296d748b4bdeb3c906b654bf5838c6f8dd Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 31 Oct 2018 11:51:09 -0400 Subject: [PATCH 3/3] ALSA:hda: add support for Huawei WMI MicMute LED Some of Huawei laptops come with a LED in the mic mute key. This patch enables and disable this

[PATCH 4/5] mm: Stall movable allocations until kswapd progresses during serious external fragmentation event

2018-10-31 Thread Mel Gorman
An external fragmentation causing events as already been described. A serious external fragmentation causing event is described as one that steals a contiguous range of pages of an order lower than fragment_stall_order (PAGE_ALLOC_COSTLY_ORDER by default). If fragmentation would steal a block small

[PATCH 3/5] mm: Reclaim small amounts of memory when an external fragmentation event occurs

2018-10-31 Thread Mel Gorman
An external fragmentation event was previously described as When the page allocator fragments memory, it records the event using the mm_page_alloc_extfrag event. If the fallback_order is smaller than a pageblock order (order-9 on 64-bit x86) then it's considered an event that will

[PATCH 5/5] mm: Target compaction on pageblocks that were recently fragmented

2018-10-31 Thread Mel Gorman
Despite the earlier patches, external fragmentation events are still inevitable as not all callers can stall or are appropriate to stall (e.g. unmovable allocations that kswapd reclaim will not necessarily help). In the event there is a mixed pageblock, it's desirable to move all movable pages from

[PATCH 1/5] mm, page_alloc: Spread allocations across zones before introducing fragmentation

2018-10-31 Thread Mel Gorman
The page allocator zone lists are iterated based on the watermarks of each zone which does not take anti-fragmentation into account. On x86, node 0 may have multiple zones while other nodes have one zone. A consequence is that tasks running on node 0 may fragment ZONE_NORMAL even though ZONE_DMA32

Re: [PATCH RFC] hist lookups

2018-10-31 Thread David Miller
From: Jiri Olsa Date: Wed, 31 Oct 2018 16:39:07 +0100 > it'd be great to make hist processing faster, but is your main target here > to get the load out of the reader thread, so we dont lose events during the > hist processing? > > we could queue events directly from reader thread into another t

Re: [PATCH RFC 1/1] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-10-31 Thread Lina Iyer
On Wed, Oct 31 2018 at 01:05 -0600, Stephen Boyd wrote: Hi Lina, Quoting Lina Iyer (2018-10-10 17:29:58) QCOM SoC's that have Power Domain Controller (PDC) chip in the always-on domain can wakeup the SoC, when interrupts and GPIOs are routed to its interrupt controller. Only select GPIOs that a

Re: [PATCH] x86: add support for Huawei WMI hotkeys.

2018-10-31 Thread Andy Shevchenko
On Wed, Oct 31, 2018 at 5:57 PM wrote: > > > Thank you for your patch! It would be much better if you can send it using traditional tools, i.e. `git send-email ...`. -- With Best Regards, Andy Shevchenko

Re: [PATCH] remove old GCC version implementation

2018-10-31 Thread Masahiro Yamada
On Wed, Oct 31, 2018 at 8:28 PM Miguel Ojeda wrote: > > On Wed, Oct 31, 2018 at 12:18 PM Mathieu Malaterre wrote: > > > > GCC 4.6 is the minimum supported now. > > > > Signed-off-by: Mathieu Malaterre > > --- > > scripts/mod/file2alias.c | 6 +- > > 1 file changed, 1 insertion(+), 5 deletio

Re: INFO: rcu detected stall in do_idle

2018-10-31 Thread Daniel Bristot de Oliveira
On 10/30/18 12:08 PM, luca abeni wrote: > Hi Peter, > > On Tue, 30 Oct 2018 11:45:54 +0100 > Peter Zijlstra wrote: > [...] >>> 2. This is related to perf_event_open syscall reproducer does >>> before becoming DEADLINE and entering the busy loop. Enabling of >>> perf swevents generates lot of hrt

Re: [git pull] mount API series

2018-10-31 Thread Linus Torvalds
On Tue, Oct 30, 2018 at 10:34 PM Al Viro wrote: > > mount API series from David Howells. Last cycle's objections > had been of the "I'd do it differently" variety and with no such > differently done variants having ever materialized over several > cycles... Having just lurked on the disc

Re: [git pull] mount API series

2018-10-31 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > I am going to stop there. I believe there are more issues in the code. > I am relieved that I am not seeing the loss of some of the security > hooks that I thought I saw last time I looked at the code. Bah. Now I see the missing security hook.

Re: [PATCH RFC] perf: Go back to by-hand proc mmap parsing and kill timeout

2018-10-31 Thread Liang, Kan
On 10/31/2018 9:21 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 30, 2018 at 10:54:16PM -0700, David Miller escreveu: This goes back to by-hand parsing of the proc mmap file, and removes the timeout. In my measurements this makes the parsing about twice as fast. Profiling thread synthesi

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-31 Thread Jann Horn
+linux-api, Andy Lutomirski, Eric Biederman On Wed, Oct 31, 2018 at 3:12 AM Daniel Colascione wrote: > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kil

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-31 Thread Andrei Vagin
On Mon, Oct 29, 2018 at 09:33:14PM +0100, Thomas Gleixner wrote: > Andrei, > > On Sat, 20 Oct 2018, Andrei Vagin wrote: > > When a container is migrated to another host, we have to restore its > > monotonic and boottime clocks, but we still expect that the container > > will continue using the hos

[PATCH v2 0/2] phy: cadence: Add driver and dt-bindings for Sierra PHY

2018-10-31 Thread Alan Douglas
The Cadence Sierra PHY supports a number of different protocols. This series adds a driver with support for USB3 and PCIe modes. Only one clock frequency is currently supported, so the value of clock provided in device tree is ignored. Changes since v1: * Moved subnode resets into each subnode i

[PATCH v2 1/2] dt-bindings: phy: Document cadence Sierra PHY bindings

2018-10-31 Thread Alan Douglas
Add DT binding documentation for Sierra PHY. The PHY supports a number of different protocols, including PCIe and USB. The PHY lanes may be configured as single or multi-lane links. Each link is treated as a separate sub-node. For example, if there are 4 lanes in total the first 2 might be confi

[PATCH v2 2/2] phy: cadence: Add driver for Sierra PHY

2018-10-31 Thread Alan Douglas
Add a Sierra PHY driver with PCIe and USB support. The PHY has multiple lanes, which can be configured into groups, and a generic PHY device is created for each group. There are two resets controlling the overall PHY block, one to enable the APB interface for programming registers, and another to

Re: [git pull] mount API series

2018-10-31 Thread Al Viro
On Wed, Oct 31, 2018 at 10:38:17AM -0500, Eric W. Biederman wrote: > A couple of bugs that I can see quickly. Several of which I have > previously reported: > > - There is an easily triggered NULL pointer deference with open_tree > and mount propagation. What the hell? If the fixes that went

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-31 Thread Grygorii Strashko
Hi Marc, On 10/23/18 8:50 AM, Marc Zyngier wrote: On Mon, 22 Oct 2018 15:35:41 +0100, Lokesh Vutla wrote: On Friday 19 October 2018 08:52 PM, Marc Zyngier wrote: On 18/10/18 16:40, Lokesh Vutla wrote: Texas Instruments' K3 generation SoCs has an IP Interrupt Aggregator which is an interrupt

Re: INFO: rcu detected stall in do_idle

2018-10-31 Thread Juri Lelli
On 31/10/18 17:18, Daniel Bristot de Oliveira wrote: > On 10/30/18 12:08 PM, luca abeni wrote: > > Hi Peter, > > > > On Tue, 30 Oct 2018 11:45:54 +0100 > > Peter Zijlstra wrote: > > [...] > >>> 2. This is related to perf_event_open syscall reproducer does > >>> before becoming DEADLINE and enter

Re: [PATCH] of: Fix cpu node iterator to not ignore disabled cpu nodes

2018-10-31 Thread Christian Zigotzky
Thank you. I will test this patch tomorrow. — Christian Sent from my iPhone > On 31. Oct 2018, at 15:42, Rob Herring wrote: > > In most cases, nodes with 'status = "disabled";' are treated as if the > node is not present though it is a common bug to forget to check that. > However, cpu nodes a

Re: [PATCH RFC] perf: Go back to by-hand proc mmap parsing and kill timeout

2018-10-31 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 31, 2018 at 12:19:10PM -0400, Liang, Kan escreveu: > > > On 10/31/2018 9:21 AM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Oct 30, 2018 at 10:54:16PM -0700, David Miller escreveu: > > > > > > This goes back to by-hand parsing of the proc mmap file, and removes > > > the timeout. > >

[GIT PULL 00/24] perf/urgent improvements and fixes

2018-10-31 Thread Arnaldo Carvalho de Melo
28fa741c27e6d57f6bf594ba3c444ce79e671e09: perf/core: Clean up inconsisent indentation (2018-10-30 09:51:58 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.20-20181031 for you to fetch changes up to

[PATCH 04/28] perf beauty: Introduce strarray__scnprintf_flags()

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Generalizing pkey_alloc__scnprintf_access_rights(), so that we can use it with other flags-like arguments, such as mount's mountflags argument. Cc: Adrian Hunter Cc: Benjamin Peterson Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://l

[PATCH 05/28] perf trace beauty: Allow syscalls to mask an argument before considering it

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Take mount's 'flags' arg, to cope with this semantic, as defined in do_mount in fs/namespace.c: /* * Pre-0.97 versions of mount() didn't have a flags word. When the * flags word was introduced its top half was required to have the * magic value 0xC0ED,

[PATCH 01/28] tools include uapi: Grab a copy of linux/fs.h

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll use it to create tables for the 'flags' argument to the 'mount' and 'umount' syscalls. Add it to check_headers.sh so that when a new protocol gets added we get a notification during the build process. Cc: Adrian Hunter Cc: Benjamin Peterson Cc: David Ahern

[PATCH 06/28] perf trace beauty: Beautify mount/umount's 'flags' argument

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo # trace -e mount mount -o ro -t debugfs nodev /mnt 0.000 ( 1.040 ms): mount/27235 mount(dev_name: 0x5601cc8c64e0, dir_name: 0x5601cc8c6500, type: 0x5601cc8c6480, flags: RDONLY) = 0 # trace -e mount mount -o remount,relatime -t debugfs nodev /mnt 0.000

[PATCH 07/28] perf trace: Consider syscall aliases too

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When trying to trace the 'umount' syscall on x86_64 I noticed that it was failing: # trace -e umount umount /mnt event syntax error: 'umount' \___ parser error Run 'perf list' for a list of valid events Usage: perf trace [] []

[PATCH 03/28] perf beauty: Switch from GPL v2.0 to LGPL v2.1

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The intention is to have this as a library, since it is not perf specific at all. I did the switch for the files where I'm the only contributor, with the exception of a few lines changed by Jiri Olsa. Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc: Na

[PATCH 02/28] perf beauty: Add a generator for MS_ mount/umount's flag constants

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It'll use tools/include copy of linux/fs.h to generate a table to be used by tools, initially by the 'mount' and 'umount' beautifiers in 'perf trace', but that could also be used to translate from a string constant to the integer value to be used in a eBPF or tracef

[PATCH 13/28] perf cs-etm: Correct CPU mode for samples

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Leo Yan Since commit edeb0c90df35 ("perf tools: Stop fallbacking to kallsyms for vdso symbols lookup"), the kernel address cannot be properly parsed to kernel symbol with command 'perf script -k vmlinux'. The reason is CoreSight samples is always to set CPU mode as PERF_RECORD_MISC_USER, t

[PATCH] pcmcia: clean an indentation issues, remove extraneous spaces

2018-10-31 Thread Colin King
From: Colin Ian King Trivial fix to clean up indentation issues, remove spaces Signed-off-by: Colin Ian King --- drivers/pcmcia/i82092.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c in

[PATCH 11/28] perf top: Do not use overwrite mode by default

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Enabling --overwrite mode allows us to to use just the most recent records, which helps in high core count machines such as Knights Landing/Mill, but right now is being disabled by default as the pausing used in this technique is leading to loss of metadata events s

[PATCH 14/28] perf callchain: Honour the ordering of PERF_CONTEXT_{USER,KERNEL,etc}

2018-10-31 Thread Arnaldo Carvalho de Melo
From: "David S. Miller" When processing using 'perf report -g caller', which is the default, we ended up reverting the callchain entries received from the kernel, but simply reverting throws away the information that tells that from a point onwards the addresses are for userspace, kernel, guest k

[PATCH 09/28] perf trace: Beautify mount's first pathname arg

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The pathname beautifiers so far support just one augmented pathname per syscall, so do it just for mount's first arg, later this will get fixed. With: # perf probe -l probe:vfs_getname(on getname_flags:73@acme/git/linux/fs/namei.c with pathname) # Late

[PATCH 15/28] tools include uapi: Update linux/fs.h copy

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To silence this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/fs.h' differs from latest version at 'include/uapi/linux/fs.h' diff -u tools/include/uapi/linux/fs.h include/uapi/linux/fs.h Due to just two comments added by: Fixe

[PATCH 10/28] perf top: Allow disabling the overwrite mode

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In ebebbf082357 ("perf top: Switch default mode to overwrite mode") we forgot to leave a way to disable that new default, add a --overwrite option that can be disabled using --no-overwrite, since the code already in such a way that we can readily disable this mode.

[PATCH 08/28] perf trace: Beautify the umount's 'name' argument

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo By using the SCA_FILENAME beautifier, that works when either the probe:vfs_getname probe is in place or with the eBPF program tools/perf/examples/bpf/augmented_syscalls.c: # perf probe -l probe:vfs_getname (on getname_flags:73@acme/git/linux/fs/namei.c with pa

[PATCH 24/28] tools headers uapi: Update linux/if_link.h header copy

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the changes from: 9163a0fc1f0c ("net: bridge: add support for per-port vlan stats") And silence this build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at 'include/uapi/linux/if_link.h' Cc:

[PATCH 25/28] perf top: Start display thread earlier

2018-10-31 Thread Arnaldo Carvalho de Melo
From: David Miller If events are coming in at a rate such that the event processing thread can barely keep up, our initial run of the event ring will almost never terminate and this delays the starting of the display thread. The screen basically stays black until the event thread can get out of

[PATCH 23/28] tools headers uapi: Update linux/netlink.h header copy

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Picking the changes from: 89d35528d17d ("netlink: Add new socket option to enable strict checking on dumps") To silence this build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/netlink.h' differs from latest version at 'include/uapi/linux

[PATCH 20/28] perf trace beauty: Use the mmap flags table generated from headers

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Instead of requiring us to go on and edit sources to add new flag. # perf trace -e *mmap sleep 0.1 0.025 ( 0.005 ms): sleep/29876 mmap(len: 163746, prot: READ, flags: PRIVATE, fd: 3) = 0x7faa68ad1000 0.059 ( 0.004 ms): sleep/29876 mmap(len: 8192, prot:

[PATCH 16/28] tools arch uapi: Update asm-generic/unistd.h and arm64 unistd.h copies

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in: 82b355d161c9 ("y2038: Remove newstat family from default syscall set") Which will make the syscall table used by 'perf trace' for arm64 to be updated from the changes in that patch. This silences these perf build warnings: Warning: Ker

[PATCH 19/28] perf beauty: Wire up the mmap flags table generator to the Makefile

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now when we run 'make -C tools/perf O=/tmp/build/perf' we end up with: $ cat /tmp/build/perf/trace/beauty/generated/mmap_flags_array.c static const char *mmap_flags[] = { [ilog2(0x40) + 1] = "32BIT", [ilog2(0x01) + 1] = "SHARED", [ilog2(

[PATCH 22/28] tools headers: Sync the various kvm.h header copies

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For powerpc, s390, x86 and the main uapi linux/kvm.h header, none of them entail changes in tooling. Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-avn7iy8f4tcm2y40sbsdk...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/arc

[PATCH 17/28] tools include uapi: Update asound.h copy

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To silence this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/sound/asound.h' differs from latest version at 'include/uapi/sound/asound.h' diff -u tools/include/uapi/sound/asound.h include/uapi/sound/asound.h Due to this cset: a9840

[PATCH 21/28] tools include uapi: Update linux/mmap.h copy

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up the changes from: 20916d4636a9 ("mm/hugetlb: add mmap() encodings for 32MB and 512MB page sizes") That do not entail changes in in tools, this just shows that we have to consider bits [26:31] of flags to beautify that in tools like 'perf trace' This

[PATCH 18/28] perf beauty: Add a generator for MAP_ mmap's flag constants

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It'll use tools/{arch}/*,include copies of mman.h to generate a table to be used by tools, initially by the 'mmap' beautifiers in 'perf trace', but that could also be used to translate from a string constant to the integer value to be used in a eBPF or tracefs trace

[PATCH 28/28] perf intel-pt/bts: Calculate cpumode for synthesized samples

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In the absence of a fallback, samples must provide a correct cpumode for the 'ip'. Do that now there is no fallback. Signed-off-by: Adrian Hunter Reviewed-by: Jiri Olsa Cc: Andi Kleen Cc: David S. Miller Cc: Leo Yan Cc: Mathieu Poirier Cc: sta...@vger.kernel.org # 4.19

[PATCH 26/28] perf tools: Don't clone maps from parent when synthesizing forks

2018-10-31 Thread Arnaldo Carvalho de Melo
From: David Miller When synthesizing FORK events, we are trying to create thread objects for the already running tasks on the machine. Normally, for a kernel FORK event, we want to clone the parent's maps because that is what the kernel just did. But when synthesizing, this should not be done.

[PATCH 27/28] perf intel-pt: Insert callchain context into synthesized callchains

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In the absence of a fallback, callchains must encode also the callchain context. Do that now there is no fallback. Signed-off-by: Adrian Hunter Reviewed-by: Jiri Olsa Cc: Andi Kleen Cc: David S. Miller Cc: Leo Yan Cc: Mathieu Poirier Cc: sta...@vger.kernel.org # 4.19 Li

Re: [PATCH RFC 1/1] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-10-31 Thread Lina Iyer
On Wed, Oct 31 2018 at 01:05 -0600, Stephen Boyd wrote: Hi Lina, Quoting Lina Iyer (2018-10-10 17:29:58) QCOM SoC's that have Power Domain Controller (PDC) chip in the always-on domain can wakeup the SoC, when interrupts and GPIOs are routed to its interrupt controller. Only select GPIOs that a

[PATCH 12/28] perf unwind: Take pgoff into account when reporting elf to libdwfl

2018-10-31 Thread Arnaldo Carvalho de Melo
From: Milian Wolff libdwfl parses an ELF file itself and creates mappings for the individual sections. perf on the other hand sees raw mmap events which represent individual sections. When we encounter an address pointing into a mapping with pgoff != 0, we must take that into account and report t

Re: [PATCH 3/3] kobject: fix warnings use pr_* to replace printk

2018-10-31 Thread Joe Perches
On Wed, 2018-10-31 at 09:41 -0400, YU Bo wrote: > Hi, > On Tue, Oct 30, 2018 at 08:01:50AM -0700, Joe Perches wrote: > > On Tue, 2018-10-30 at 08:01 -0400, Bo YU wrote: > > > Fix warning from checkpatch.pl use pr_* to replace printk > > > > If you look at msg, it can be unterminated with newline.

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-10-31 Thread Hans de Goede
Hi, On 31-10-18 16:51, Randy Dunlap wrote: On 10/30/18 8:59 PM, Stephen Rothwell wrote: Hi all, Please do not add any v4.21/v5.1 code to your linux-next included trees until after the merge window closes. Changes since 20181030: on i386: ld: drivers/virt/vboxguest/vboxguest_core.o: in fu

Re: [RFC PATCH] Minimal non-child process exit notification support

2018-10-31 Thread Daniel Colascione
+ linux-api On Mon, Oct 29, 2018 at 5:53 PM, Daniel Colascione wrote: > This patch adds a new file under /proc/pid, /proc/pid/exithand. > Attempting to read from an exithand file will block until the > corresponding process exits, at which point the read will successfully > complete with EOF. Th

Re: [PATCH 3/5] mm: Reclaim small amounts of memory when an external fragmentation event occurs

2018-10-31 Thread Mel Gorman
On Wed, Oct 31, 2018 at 04:06:43PM +, Mel Gorman wrote: > An external fragmentation event was previously described as > > When the page allocator fragments memory, it records the event using > the mm_page_alloc_extfrag event. If the fallback_order is smaller > than a pageblock orde

Herzlichen Glückwunsch, haben Sie als unsere Begünstigten gewählt worden...

2018-10-31 Thread Mavis
Sehr geehrter Herr/Frau, Wir freuen uns, Ihnen mitzuteilen, dass Sie ausgewählt wurden, um die Summe zu erhalten €2,000,000.00 Euro aus Mitteln der Mavis Wanczyk Hilfe. Mein Name ist Mavis Wanczyk der Gewinner des 758,7 Millionen US-Dollar in der Power Ball Lotterie Jackpot als der größte Preis

Re: [PATCH 17/28] tools include uapi: Update asound.h copy

2018-10-31 Thread Takashi Iwai
On Wed, 31 Oct 2018 17:44:57 +0100, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > To silence this perf build warning: > > Warning: Kernel ABI header at 'tools/include/uapi/sound/asound.h' differs > from latest version at 'include/uapi/sound/asound.h' > diff -u tool

Re: [PATCH 0/3] RISC-V: A few build/warning fixes and cleanup

2018-10-31 Thread Palmer Dabbelt
On Tue, 30 Oct 2018 23:47:06 PDT (-0700), Olof Johansson wrote: A couple of fixes for build breakage or warnings, and a small whitespace/asm cleanup. The non-cleanups would be good to see in 4.20 to keep builds green. I'm happy to just keep them all together, since the cleanups are non-function

Re: [PATCH v1 2/2] x86/hyperv: make HvNotifyLongSpinWait hypercall

2018-10-31 Thread Peter Zijlstra
On Wed, Oct 31, 2018 at 11:07:22AM -0400, Waiman Long wrote: > On 10/31/2018 10:10 AM, Peter Zijlstra wrote: > > On Wed, Oct 31, 2018 at 09:54:17AM +0800, Yi Sun wrote: > >> On 18-10-23 17:33:28, Yi Sun wrote: > >>> On 18-10-23 10:51:27, Peter Zijlstra wrote: > Can you try and explain why vcpu

Re: [PATCH] firmware: raspberrypi: Define timeout for transactions

2018-10-31 Thread Eric Anholt
Stefan Wahren writes: > We should never assume to get a reply from the firmware otherwise > the call could block forever and the user don't get informed. So > define a timeout of 1 sec and print a stacktrace once in the unlikely > case the timeout expired. > > Signed-off-by: Stefan Wahren Revie

[PATCH] greybus: gpio: switch GPIO portions to use GPIOLIB_IRQCHIP

2018-10-31 Thread Nishad Kamdar
Convert the GPIO driver to use the GPIO irqchip library GPIOLIB_IRQCHIP instead of reimplementing the same. Signed-off-by: Nishad Kamdar --- drivers/staging/greybus/Kconfig | 1 + drivers/staging/greybus/gpio.c | 123 ++-- 2 files changed, 21 insertions(+), 103 del

[PATCH] greybus: gpio: switch GPIO portions to use GPIOLIB_IRQCHIP

2018-10-31 Thread Nishad Kamdar
Convert the GPIO driver to use the GPIO irqchip library GPIOLIB_IRQCHIP instead of reimplementing the same. Signed-off-by: Nishad Kamdar --- drivers/staging/greybus/Kconfig | 1 + drivers/staging/greybus/gpio.c | 123 ++-- 2 files changed, 21 insertions(+), 103 del

Re: [PATCH RFC kenrel/rcu] Eliminate BUG_ON() for sync.c

2018-10-31 Thread Oleg Nesterov
On 10/30, Paul E. McKenney wrote: > > On Mon, Oct 22, 2018 at 06:14:40PM +0200, Oleg Nesterov wrote: > > > > > > > > Damn. > > > > > > > > This suddenly reminds me that I rewrote this code completely, and you > > > > even

Re: [PATCH 17/28] tools include uapi: Update asound.h copy

2018-10-31 Thread Joe Perches
On Wed, 2018-10-31 at 18:00 +0100, Takashi Iwai wrote: > On Wed, 31 Oct 2018 17:44:57 +0100, > Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > > > To silence this perf build warning: > > > > Warning: Kernel ABI header at 'tools/include/uapi/sound/asound.h' differs > > f

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-10-31 Thread Palmer Dabbelt
On Wed, 31 Oct 2018 04:16:10 PDT (-0700), a...@brainfault.org wrote: On Wed, Oct 31, 2018 at 4:06 PM Vincent Chen wrote: RISC-V permits each vendor to develop respective extension ISA based on RISC-V standard ISA. This means that these vendor-specific features may be compatible to their comp

Re: [PATCH RFC kenrel/rcu] Eliminate BUG_ON() for sync.c

2018-10-31 Thread Paul E. McKenney
On Wed, Oct 31, 2018 at 06:26:05PM +0100, Oleg Nesterov wrote: > On 10/30, Paul E. McKenney wrote: > > > > On Mon, Oct 22, 2018 at 06:14:40PM +0200, Oleg Nesterov wrote: > > > > > > > > > > Damn. > > > > > > > > > > This s

Re: [PATCH v2] Implement /proc/pid/kill

2018-10-31 Thread Aleksa Sarai
On 2018-10-31, Joel Fernandes wrote: > I suggest to maintainers we take this in as an intermediate solution > since we don't have anything close to it and this is a real issue, and > the fix proposed is simple. I would suggest we wait until after LPC to see what Christian's design is (given that,

Re: INFO: rcu detected stall in do_idle

2018-10-31 Thread Peter Zijlstra
On Wed, Oct 31, 2018 at 05:18:00PM +0100, Daniel Bristot de Oliveira wrote: > Brazilian part of the Ph.D we are dealing with probabilistic worst case > execution time, and to be able to use probabilistic methods, we need to remove > the noise of the IRQs in the execution time [1]. So, IMHO, using >

Re: INFO: rcu detected stall in do_idle

2018-10-31 Thread Peter Zijlstra
On Wed, Oct 31, 2018 at 05:40:10PM +0100, Juri Lelli wrote: > I'm seeing something along the lines of what Peter suggested as a last > resort measure we probably still need to put in place. Yes, you certainly hope to never hit that, and should not in a proper setup. But we need something to keep t

[PATCH] kvmclock : convert to SPDX identifiers

2018-10-31 Thread Peng Hao
From: Peng Hao This patch updates license to use SPDX-License-Identifier instead of verbose license text Signed-off-by: Peng Hao --- arch/x86/kernel/kvmclock.c | 15 +-- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/k

Re: arm64 tools build failure wrt smp_load_{acquire,release} expansion on gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)

2018-10-31 Thread Will Deacon
Hi Arnaldo, On Wed, Oct 31, 2018 at 12:45:50PM -0300, Arnaldo Carvalho de Melo wrote: > So I noticed the following build failure thare point to: > > commit 09d62154f61316f7e97eae3f31ef8770c7e4b386 > Author: Daniel Borkmann > Date: Fri Oct 19 15:51:02 2018 +0200 > > tools, perf: add and us

Re: [RFC PATCH] Minimal non-child process exit notification support

2018-10-31 Thread Daniel Colascione
On Wed, Oct 31, 2018 at 5:25 PM, Andy Lutomirski wrote: > I had an old patch to do much the same thing: It's a perennial idea. :-) > https://lore.kernel.org/patchwork/patch/345098/ > > Can you comment as to how your API compares to my old patch? Sure. Basically, my approach is sort-of eventfd-e

[GIT PULL] Ceph updates for 4.20-rc1

2018-10-31 Thread Ilya Dryomov
Hi Linus, The following changes since commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d: Linux 4.19 (2018-10-22 07:37:37 +0100) are available in the Git repository at: https://github.com/ceph/ceph-client.git tags/ceph-for-4.20-rc1 for you to fetch changes up to ea4cdc548e5e74a529cdd1aea885d7

Re: [PATCH 0/3] RISC-V: A few build/warning fixes and cleanup

2018-10-31 Thread Olof Johansson
Hi, On Wed, Oct 31, 2018 at 10:09 AM Palmer Dabbelt wrote: > > On Tue, 30 Oct 2018 23:47:06 PDT (-0700), Olof Johansson wrote: > > A couple of fixes for build breakage or warnings, and a small whitespace/asm > > cleanup. The non-cleanups would be good to see in 4.20 to keep builds green. > > I'm

Re: [PATCH v3] Implement /proc/pid/kill

2018-10-31 Thread Tycho Andersen
On Wed, Oct 31, 2018 at 03:59:12PM +, Daniel Colascione wrote: > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kill'. > > Semantically, /proc/pid/kil

Re: [PATCH v4 1/3] arm64: implement ftrace with regs

2018-10-31 Thread Torsten Duwe
On Wed, 31 Oct 2018 14:18:19 + Mark Rutland wrote: > On Wed, Oct 31, 2018 at 02:19:07PM +0100, Jiri Kosina wrote: > > Other architectures do rely on that. That's exactly for example why > > on x86 we use '-pg -mfentry', to make sure we hook the function > > *before* prologue. > > Ah, I'd

Re: INFO: rcu detected stall in do_idle

2018-10-31 Thread Daniel Bristot de Oliveira
On 10/31/18 5:40 PM, Juri Lelli wrote: > On 31/10/18 17:18, Daniel Bristot de Oliveira wrote: >> On 10/30/18 12:08 PM, luca abeni wrote: >>> Hi Peter, >>> >>> On Tue, 30 Oct 2018 11:45:54 +0100 >>> Peter Zijlstra wrote: >>> [...] > 2. This is related to perf_event_open syscall reproducer does

Re: [PATCH v3] Implement /proc/pid/kill

2018-10-31 Thread Daniel Colascione
On Wed, Oct 31, 2018 at 5:54 PM, Tycho Andersen wrote: > Why not just use an ioctl() like Jann suggested instead of this big > security check? Then we avoid the whole setuid writer thing entirely, Don't you think a system call would be better than a new ioctl? With either an ioctl or a new system

Re: [GIT PULL] VFIO updates for v4.20-rc1

2018-10-31 Thread Linus Torvalds
On Tue, Oct 30, 2018 at 1:49 PM Alex Williamson wrote: > > VFIO updates for v4.20 Pulled, Linus

Re: [PATCH] tlclk: lean an indentation issue, remove extraneous tabs

2018-10-31 Thread Joe Perches
On Tue, 2018-10-30 at 11:57 +, Colin Ian King wrote: > $SUBJECT should be: > > tlclk: clean an indentation issue, remove extraneous tabs Perhaps add missing braces for the last else uses as well? > On 30/10/2018 11:56, Colin King wrote: > > From: Colin Ian King [] > > diff --git a/drivers/c

Re: arm64 tools build failure wrt smp_load_{acquire,release} expansion on gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)

2018-10-31 Thread Daniel Borkmann
On 10/31/2018 06:44 PM, Will Deacon wrote: > Hi Arnaldo, > > On Wed, Oct 31, 2018 at 12:45:50PM -0300, Arnaldo Carvalho de Melo wrote: >> So I noticed the following build failure thare point to: >> >> commit 09d62154f61316f7e97eae3f31ef8770c7e4b386 >> Author: Daniel Borkmann >> Date: Fri Oct 19

[PATCH v1 4/7] vfio: ap: AP Queue Interrupt Control VFIO ioctl calls

2018-10-31 Thread Pierre Morel
This is the implementation of the VFIO ioctl calls to handle the AQIC interception and use GISA to handle interrupts. Signed-off-by: Pierre Morel --- drivers/s390/crypto/vfio_ap_ops.c | 95 +++ 1 file changed, 95 insertions(+) diff --git a/drivers/s390/crypto/vfio_ap

[PATCH v1 6/7] vfio: ap: register guest ISC with GISA and GIB

2018-10-31 Thread Pierre Morel
Register to the GIB Alert list and retrieve the GAL_ISC to pass to the GISA registration. Unregister on error and when clearing the interrupt. Signed-off-by: Pierre Morel Signed-off-by: Michael Mueller --- drivers/s390/crypto/vfio_ap_ops.c | 16 +--- 1 file changed, 13 insertions(+

[PATCH v1 2/7] vfio: ap: VFIO AP Queue Interrupt Control

2018-10-31 Thread Pierre Morel
We define two VFIO ioctl command to setup and clear the AP Queues interrupt. Arguments passed by the guest are: - the apqn, AP queue number - the Notification by address - the identifier of the previously associated adapter Signed-off-by: Pierre Morel --- include/uapi/linux/vfio.h | 22

[PATCH v1 5/7] s390: kvm: export GIB registration

2018-10-31 Thread Pierre Morel
Define the GIB Alert registration for external users inside the standrd kvm_host.h header file. Signed-off-by: Pierre Morel --- arch/s390/include/asm/kvm_host.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index 512ea9

[PATCH v1 1/7] vfio: ap: Add AP Queue Interruption Control facility

2018-10-31 Thread Pierre Morel
AP Queue Interruption Control (AQIC) facility gives the guest the possibility to control interruption for the Cryptographic Adjunct Processor queues. Signed-off-by: Pierre Morel --- arch/s390/tools/gen_facilities.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/tools/gen_facilitie

[PATCH v1 0/7] s390: vfio: ap: Using GISA for AP Interrupt

2018-10-31 Thread Pierre Morel
This is the first version to handle AP Interrupt using the GISA facility. The patch series is based on the GISA+GIB patch series sent by Michael Mueller. - We define a new VFIO ioctl to ask the vfio_ap driver to register a interruption for the guest. - We define the assembler code to register a

Re: [PATCH v3] Implement /proc/pid/kill

2018-10-31 Thread Tycho Andersen
On Wed, Oct 31, 2018 at 06:00:49PM +, Daniel Colascione wrote: > On Wed, Oct 31, 2018 at 5:54 PM, Tycho Andersen wrote: > > Why not just use an ioctl() like Jann suggested instead of this big > > security check? Then we avoid the whole setuid writer thing entirely, > > Don't you think a syste

Re: [RFC] doc: rcu: remove note on smp_mb during synchronize_rcu

2018-10-31 Thread Paul E. McKenney
On Tue, Oct 30, 2018 at 06:11:19PM -0700, Joel Fernandes wrote: > Hi Paul, > > On Tue, Oct 30, 2018 at 04:43:36PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 30, 2018 at 03:26:49PM -0700, Joel Fernandes wrote: > > > Hi Paul, > > > > > > On Sat, Oct 27, 2018 at 09:30:46PM -0700, Joel Fernandes

Re: [GIT PULL] clk changes for v4.20

2018-10-31 Thread Linus Torvalds
On Tue, Oct 30, 2018 at 4:39 PM Stephen Boyd wrote: > > This time it looks like a quieter release cycle in the clk tree. [...] Pulled, Linus

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-31 Thread Marc Zyngier
Hi Grygorii, On 31/10/18 16:39, Grygorii Strashko wrote: [...] > I'd try to provide some additional information here. > (Sry, I'll still use term "events") > > As Lokesh explained in other mail on K3 SoC everything is generic and most > of resources allocated dynamicaly: > - generic DMA channel

Tested-by test

2018-10-31 Thread Hurwitz, Sherry
Tested with fio on a 2 socket AMD EPYC based server with 128 cores and 8 nvme drives. Comparing baseline linux-next kernel results with linux-next with this patch applied IOPS increased by 40%. sudo fio --bs=4k --ioengine=libaio --iodepth=16 --filename=/dev/nvme1n1:/dev/nvme2n1:/dev/nvme3n1:/

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