[PATCH 7/9] sched: Migrate sched to use new tick dependency mask model

2015-12-14 Thread Frederic Weisbecker
Instead of providing asynchronous checks for the nohz subsystem to verify sched tick dependency, migrate sched to the new mask. Everytime a task is enqueued or dequeued, we evaluate the state of the tick dependency on top of the policy of the tasks in the runqueue, by order of priority:

[PATCH 0/9] nohz: Tick dependency mask v4

2015-12-14 Thread Frederic Weisbecker
Thanks to reviews on v3, here are the following changes: * Let arch override fetch_or() (Chris) * Implement wide kick on top of irq work (Peterz) * Provide explicit task and signal tick dependency APIs * Better document the task and signal dependencies (Peterz) * Better document all the new APIs

[PATCH 1/9] atomic: Export fetch_or()

2015-12-14 Thread Frederic Weisbecker
Export fetch_or() that's implemented and used internally by the scheduler. We are going to use it for NO_HZ so make it generally available. Cc: Christoph Lameter Cc: Chris Metcalf Cc: Ingo Molnar Cc: Luiz Capitulino Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Viresh Kumar

[PATCH 4/9] nohz: Use enum code for tick stop failure tracing message

2015-12-14 Thread Frederic Weisbecker
It makes nohz tracing more lightweight, standard and easier to parse. Examples: user_loop-2904 [007] d..1 517.701126: tick_stop: success=1 dependency=NONE user_loop-2904 [007] dn.1 518.021181: tick_stop: success=0 dependency=SCHED posix_timers-6142 [007] d..1

[PATCH 9/9] sched-clock: Migrate to use new tick dependency mask model

2015-12-14 Thread Frederic Weisbecker
Instead of checking sched_clock_stable from the nohz subsystem to verify its tick dependency, migrate it to the new mask in order to include it to the all-in-one check. Cc: Christoph Lameter Cc: Chris Metcalf Cc: Ingo Molnar Cc: Luiz Capitulino Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas

[PATCH 6/9] sched: Account rr tasks

2015-12-14 Thread Frederic Weisbecker
In order to evaluate the scheduler tick dependency without probing context switches, we need to know how much SCHED_RR and SCHED_FIFO tasks are enqueued as those policies don't have the same preemption requirements. To prepare for that, let's account SCHED_RR tasks, we'll be able to deduce

Re: [PATCH] mtd: omap_elm: print interrupt resource using %pr

2015-12-14 Thread Brian Norris
On Sat, Dec 12, 2015 at 03:41:31PM +0100, Arnd Bergmann wrote: > On Friday 11 December 2015 17:10:56 Brian Norris wrote: > > drivers/mtd/nand/omap_elm.c:417 elm_probe() error: '%pr' expects argument > > of type struct resource *, but argument 3 has type 'struct resource**' > > [smatch] > > Ah,

[PATCH v2 5/6] x86,vdso: Use .fault instead of remap_pfn_range for the vvar mapping

2015-12-14 Thread Andy Lutomirski
This is IMO much less ugly, and it also opens the door to disallowing unprivileged userspace HPET access on systems with usable TSCs. Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vma.c | 97 --- 1 file changed, 57 insertions(+), 40

Re: [PATCH] lock_page() doesn't lock if __wait_on_bit_lock returns -EINTR

2015-12-14 Thread Dave Jones
On Sat, Dec 12, 2015 at 07:07:46PM -0500, Chris Mason wrote: > On Sat, Dec 12, 2015 at 11:41:26AM -0800, Linus Torvalds wrote: > > On Sat, Dec 12, 2015 at 10:33 AM, Linus Torvalds > > wrote: > > > > > > Peter, did that patch also handle just plain "lock_page()" case? > > > > Looking more

Re: Is PROT_SOCK still relevant?

2015-12-14 Thread Austin S. Hemmelgarn
On 2015-12-14 11:13, Jason Newton wrote: On Mon, Dec 14, 2015 at 10:25 AM, One Thousand Gnomes wrote: Is there disagreement on my views or points? Yes 8) You don't really want someone racing you to set up a fake ssh service on your system to steal all the passwords do you ? Alan Hasn't

Re: vmstat: make vmstat_updater deferrable again and shut down on idle

2015-12-14 Thread Christoph Lameter
Hmmm... We got a race condition since quiet_vmstat touches cpu_stat_off which may not be allocated early in the bootup sequence. Causes oopses on boot. Subject: vmstat: quieting vmstat requires a running system Do not do anything unless the system is actually running. Otherwise we may crash on

Re: [Qemu-devel] [Patch V2 1/2] x86, mce: Basic support to add LMCE support to QEMU

2015-12-14 Thread Eduardo Habkost
On Mon, Dec 14, 2015 at 02:11:46PM -0500, Raj, Ashok wrote: > On Mon, Dec 14, 2015 at 05:37:38PM +0100, Borislav Petkov wrote: > > > > ... and obviously LMCE is vendor-specific so it cannot be enabled on > > !Intel guests with a define like that. mce_init() in qemu should check > > vendor too. >

[PATCH v2 2/6] mm: Add vm_insert_pfn_prot

2015-12-14 Thread Andy Lutomirski
The x86 vvar vma conntains pages with differing cacheability flags. x86 currently implements this by manually inserting all the ptes using (io_)remap_pfn_range when the vma is set up. x86 wants to move to using .fault with VM_FAULT_NOPAGE to set up the mappings as needed. The correct API to use

[PATCH v2 1/6] mm: Add a vm_special_mapping .fault method

2015-12-14 Thread Andy Lutomirski
From: Andy Lutomirski Requiring special mappings to give a list of struct pages is inflexible: it prevents sane use of IO memory in a special mapping, it's inefficient (it requires arch code to initialize a list of struct pages, and it requires the mm core to walk the entire list just to figure

[PATCH v2 4/6] x86,vdso: Use .fault for the vdso text mapping

2015-12-14 Thread Andy Lutomirski
The old scheme for mapping the vdso text is rather complicated. vdso2c generates a struct vm_special_mapping and a blank .pages array of the correct size for each vdso image. Init code in vdso/vma.c populates the .pages array for each vdso image, and the mapping code selects the appropriate

[PATCH v2 0/6] mm, x86/vdso: Special IO mapping improvements

2015-12-14 Thread Andy Lutomirski
This applies on top of the earlier vdso pvclock series I sent out. Once that lands in -tip, this will apply to -tip. This series cleans up the hack that is our vvar mapping. We currently initialize the vvar mapping as a special mapping vma backed by nothing whatsoever and then we abuse

[PATCH v2 3/6] x86/vdso: Track each mm's loaded vdso image as well as its base

2015-12-14 Thread Andy Lutomirski
As we start to do more intelligent things with the vdso at runtime (as opposed to just at mm initialization time), we'll need to know which vdso is in use. In principle, we could guess based on the mm type, but that's over-complicated and error-prone. Instead, just track it in the mmu context.

[PATCH 2/4] doc: efi-stub.txt: Fix arm64 paths

2015-12-14 Thread Matt Fleming
From: Alan Ott Update documented paths for arm64 files to match current tree. Signed-off-by: Alan Ott Cc: Roy Franz Cc: Jonathan Corbet Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Matt Fleming --- Documentation/efi-stub.txt | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 3/4] x86/efi: Preface all print statements with efi* tag

2015-12-14 Thread Matt Fleming
The pr_*() calls in the x86 EFI code may or may not include a subsystem tag, which makes it difficult to grep the kernel log for all relevant EFI messages and leads users to miss important information. Recently, a bug reporter provided all the EFI print messages from the kernel log when trying to

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-14 Thread Andy Lutomirski
On Mon, Dec 14, 2015 at 6:12 AM, Michael S. Tsirkin wrote: > On Mon, Dec 14, 2015 at 02:00:05PM +, David Vrabel wrote: >> On 07/12/15 16:19, Stefano Stabellini wrote: >> > Hi all, >> > >> > this patch series introduces support for running Linux on top of Xen >> > inside a virtual machine with

[GIT PULL 0/4] EFI changes for v4.5

2015-12-14 Thread Matt Fleming
Folks, Here's a couple of cleanups and a bug fix for the ACPI BGRT driver triggered by the recent isolated EFI page table changes currently sitting in tip. The following changes since commit 8005c49d9aea74d382f474ce11afbbc7d7130bec: Linux 4.4-rc1 (2015-11-15 17:00:27 -0800) are available in

[PATCH 1/4] efi/esrt: Don't preformat name

2015-12-14 Thread Matt Fleming
From: Rasmus Villemoes kobject_init_and_add takes a format string+args, so there's no reason to do this formatting in advance. Signed-off-by: Rasmus Villemoes Cc: Peter Jones Signed-off-by: Matt Fleming --- drivers/firmware/efi/esrt.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH 4/4] x86/efi-bgrt: Fix kernel panic when mapping BGRT data

2015-12-14 Thread Matt Fleming
From: Sai Praneeth Starting with this commit 35eb8b81edd4 ("x86/efi: Build our own page table structures") efi regions have a separate page directory called "efi_pgd". In order to access any efi region we have to first shift %cr3 to this page table. In the bgrt code we are trying to copy

Re: [PATCH v2] PCI/AER: enable SERR# forwarding for bridges and switches

2015-12-14 Thread Sinan Kaya
On 12/11/2015 6:30 PM, Sinan Kaya wrote: >> I think the best way to fix all the cases would be to do something in >> > in pci_configure_device(). Then we could drop the AER bus walk in >> > set_downstream_devices_error_reporting(). A bus walk like that is >> > always an issue for hotplug. >> >

Re: [PATCH v6 3/5] memory: mediatek: Add SMI driver

2015-12-14 Thread Matthias Brugger
On Tuesday 08 Dec 2015 17:49:11 Yong Wu wrote: > This patch add SMI(Smart Multimedia Interface) driver. This driver > is responsible to enable/disable iommu and control the power domain > and clocks of each local arbiter. > > Signed-off-by: Yong Wu > --- > Currently SMI offer

Re: [PATCH v6 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-12-14 Thread Matthias Brugger
On 08/12/15 10:49, Yong Wu wrote: This patch adds support for mediatek m4u (MultiMedia Memory Management Unit). Signed-off-by: Yong Wu --- drivers/iommu/Kconfig | 15 + drivers/iommu/Makefile| 1 + drivers/iommu/mtk_iommu.c | 752 ++

Re: [PATCH] Remove EFI memmap quirk for UV2+

2015-12-14 Thread Alex Thorlton
On Mon, Dec 14, 2015 at 09:41:58AM +0100, Ingo Molnar wrote: > * Alex Thorlton wrote: > Ok, this looks good to me and I'll apply it if it looks good to Matt as well. Cool! Thanks, Ingo. > Btw., can UV1 users fix this via a BIOS update? Unfortunately, no. This fix was put into UV2+ BIOS a

Re: [PATCH] Coding style cleanup

2015-12-14 Thread Dan Carpenter
Fix the subject line. On Mon, Dec 14, 2015 at 06:09:46PM +, Ben Gilbert wrote: > Fixed commenting style warnings. This stuff is dead code. Just delete it. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 1/1] Fix int1 recursion when no perf_bp_event is registeredy

2015-12-14 Thread Jeff Merkey
On 12/14/15, Andy Lutomirski wrote: > On Mon, Dec 14, 2015 at 9:52 AM, Jeff Merkey wrote: >> On 12/14/15, Ingo Molnar wrote: >>> >>> * Jeff Merkey wrote: >>> On 12/14/15, Ingo Molnar wrote: > > A: Because it messes up the order in which people normally read text. > Q: Why

Re: [PATCH v2 5/8] arm64: dts: mediatek: Add Video Encoder for MT8173

2015-12-14 Thread Matthias Brugger
On Friday 11 Dec 2015 17:55:40 Tiffany Lin wrote: > Add video encoder node for MT8173 > > Signed-off-by: Tiffany Lin > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 47 > ++ 1 file changed, 47 insertions(+) > > diff --git

Re: [PATCH 1/1] Fix int1 recursion when no perf_bp_event is registeredy

2015-12-14 Thread Jeff Merkey
On 12/14/15, Andy Lutomirski wrote: > On Mon, Dec 14, 2015 at 9:52 AM, Jeff Merkey wrote: >> On 12/14/15, Ingo Molnar wrote: >>> >>> * Jeff Merkey wrote: >>> On 12/14/15, Ingo Molnar wrote: > > A: Because it messes up the order in which people normally read text. > Q: Why

Re: [PATCH 1/3] staging/rdma/hfi1: consolidate kmalloc_array+memset into kcalloc

2015-12-14 Thread Dan Carpenter
On Mon, Dec 14, 2015 at 05:41:23PM +, Nicholas Mc Guire wrote: > I obviously made a real mess here. > I incorrectly concluded that rxcontext is 0 which it is not in some cases Yep. Plus you build tested it but assumed that the unused variable warning must have been there in the original...

Re: [Qemu-devel] [Patch V2 1/2] x86, mce: Basic support to add LMCE support to QEMU

2015-12-14 Thread Raj, Ashok
On Mon, Dec 14, 2015 at 05:37:38PM +0100, Borislav Petkov wrote: > > ... and obviously LMCE is vendor-specific so it cannot be enabled on > !Intel guests with a define like that. mce_init() in qemu should check > vendor too. > > The same mistake was done with SER_P but that's much harder to

Re: [PATCH v2 0/5] crypto: add algif_akcipher user space API

2015-12-14 Thread Tadeusz Struk
Hi, On 10/26/2015 09:54 PM, Marcel Holtmann wrote: > Hi Stephan, > >> This patch set adds the AF_ALG user space API to externalize the >> asymmetric cipher API recently added to the kernel crypto API. >> >> The patch set is tested with the user space library of libkcapi [1]. >> Use [1]

[PATCH] Coding style cleanup

2015-12-14 Thread Ben Gilbert
Fixed commenting style warnings. Signed-off-by: Ben Gilbert --- drivers/staging/fbtft/fb_uc1701.c | 53 ++- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/drivers/staging/fbtft/fb_uc1701.c b/drivers/staging/fbtft/fb_uc1701.c index

Re: [Qemu-devel] [Patch V2 1/2] x86, mce: Basic support to add LMCE support to QEMU

2015-12-14 Thread Raj, Ashok
Hi Eduardo, Thanks for the feedback. All the suggestions make sense.. On Mon, Dec 14, 2015 at 02:23:56PM -0200, Eduardo Habkost wrote: > > +static void feature_control_init(X86CPU *cpu) > > +{ > > + CPUX86State *cenv = >env; > > + > > + cenv->msr_ia32_feature_control = ((1<<20) | (1<<0)); >

Re: [PATCH v3 14/17] perf: Remove subcmd dependencies on strbuf

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 02:50:12PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Dec 14, 2015 at 10:05:37AM -0600, Josh Poimboeuf escreveu: > > On Mon, Dec 14, 2015 at 12:44:21PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Sun, Dec 13, 2015 at 10:18:14PM -0600, Josh Poimboeuf escreveu: > >

Re: [RFC PATCH 3/3] x86: Create dma_mark_dirty to dirty pages used for DMA by VM guest

2015-12-14 Thread Alexander Duyck
On Mon, Dec 14, 2015 at 9:20 AM, Michael S. Tsirkin wrote: > On Mon, Dec 14, 2015 at 08:34:00AM -0800, Alexander Duyck wrote: >> > This way distro can use a guest agent to disable >> > dirtying until before migration starts. >> >> Right. For a v2 version I would definitely want to have some way

BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0

2015-12-14 Thread Andrea Gelmini
Hi everybody, using dev kernel v4.4, I have this: [40240.371807] == [40240.371826] BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0 at addr 88001ed15428 [40240.371832] Read of size 4 by task xfsaild/dm-0/332

[PATCH] ext4: handle errors during orphan cleanup

2015-12-14 Thread Vegard Nossum
If a filesystem is mounted with errors=remount-ro, then orphan cleanup can enter an infinite loop since the iput() inside the linked list traversal doesn't actually always cause es->s_last_orphan to advance to the next orphan inode (i.e. in case of errors). The bug manifests in two different

Re: [PATCH] regmap: flat: introduce register striding to save some memories

2015-12-14 Thread Mark Brown
On Mon, Dec 14, 2015 at 03:14:34PM +0800, Xiubo Li wrote: > static int regcache_flat_write(struct regmap *map, unsigned int reg, > unsigned int value) > { > + unsigned int index = reg / map->reg_stride; So, this does save some memory. On the other hand one of

Re: [PATCH 1/1] fs:ubifs:recovery:fixup UBIFS cannot recover master node issue

2015-12-14 Thread Richard Weinberger
Bean, Am 14.12.2015 um 04:55 schrieb Bean Huo 霍斌斌 (beanhuo): > Dear Richard > >> Bean, >> >> Am 11.12.2015 um 09:26 schrieb Bean Huo 霍斌斌 (beanhuo): >>> For MLC NAND, paired page issue is now a common known issue. >>> This patch is just for master node cannot be recovered while there >>> will two

Re: [PATCH 1/1] Fix int1 recursion when no perf_bp_event is registeredy

2015-12-14 Thread Andy Lutomirski
On Mon, Dec 14, 2015 at 9:52 AM, Jeff Merkey wrote: > On 12/14/15, Ingo Molnar wrote: >> >> * Jeff Merkey wrote: >> >>> On 12/14/15, Ingo Molnar wrote: >>> > >>> > A: Because it messes up the order in which people normally read text. >>> > Q: Why is top-posting such a bad thing? >>> > A:

Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables

2015-12-14 Thread Ross Zwisler
On Sat, Dec 12, 2015 at 3:11 AM, Borislav Petkov wrote: > On Thu, Dec 10, 2015 at 01:58:04PM -0800, Tony Luck wrote: <> >> +#ifdef CONFIG_MCE_KERNEL_RECOVERY >> +/* Given an address, look for it in the machine check exception tables. */ >> +const struct exception_table_entry

Re: [PATCH 1/3] Remove wrong semicolon in while loop

2015-12-14 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 14, 2015 at 04:43:35PM +0100, Markus Trippelsdorf escreveu: > The while loop was spinning. Fix by removing a semicolon. Thanks for splitting it up! - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 14, 2015 at 05:41:30PM +0100, Peter Zijlstra escreveu: > On Mon, Dec 14, 2015 at 01:26:55PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Dec 14, 2015 at 07:55:32AM -0700, David Ahern escreveu: > > > On 12/14/15 2:38 AM, Ingo Molnar wrote: > > > > > > > >>And in an unrelated note,

Re: [PATCH 1/1] Fix int1 recursion when no perf_bp_event is registeredy

2015-12-14 Thread Jeff Merkey
On 12/14/15, Ingo Molnar wrote: > > * Jeff Merkey wrote: > >> On 12/14/15, Ingo Molnar wrote: >> > >> > A: Because it messes up the order in which people normally read text. >> > Q: Why is top-posting such a bad thing? >> > A: Top-posting. >> > Q: What is the most annoying thing in e-mail? >> >

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 15, 2015 at 02:06:54AM +0900, Namhyung Kim escreveu: > On Mon, Dec 14, 2015 at 07:46:28AM -0700, David Ahern wrote: > > If you have 1-thread per cpu that means you are pinning the threads to the > > cpu? That brings in additional permissions problems. > > Did you mean setting sched

Re: [RFC] mm: change find_vma() function

2015-12-14 Thread Oleg Nesterov
On 12/14, Kirill A. Shutemov wrote: > > On Mon, Dec 14, 2015 at 07:02:25PM +0800, yalin wang wrote: > > change find_vma() to break ealier when found the adderss > > is not in any vma, don't need loop to search all vma. > > > > Signed-off-by: yalin wang > > --- > > mm/mmap.c | 3 +++ > > 1 file

Re: [PATCH] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread bsegall
Morten Rasmussen writes: > On Fri, Dec 11, 2015 at 11:18:56AM -0800, bseg...@google.com wrote: >> So uh yeah, my initial impression is "rip it out", but if being >> immediately-correct is important in the case of one task being most of >> the utilization, rather than when it is more evenly

[PATCH 09/16] perf build: Fix 'make clean'

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Add some missing files to the 'make clean' target. Reported-and-Acked-by: Jiri Olsa Signed-off-by: Josh Poimboeuf Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/8b1f5a5bd66a652be071d423e64aaa994254be31.1449965119.git.jpoim...@redhat.com

[PATCH 01/16] perf tools: Use same signal handling strategy as 'record'

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo I.e. don't exit with the signal number, instead set the signal handler to the default one and then raise it again. Noticed while trying to dump the stack at segfaults in the 'perf test' forked process used to run each test, that inspects signal info at each test.

[PATCH 15/16] perf tools: Make options always available, even if required libs not linked

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch keeps options of perf builtins same in all conditions. If one option is disabled because of compiling options, users should be notified. Masami suggested another implementation in [1] that, by adding a OPTION_NEXT_DEPENDS option before those options in the 'struct

[PATCH 12/16] perf tools: Remove check for unused PERF_PAGER_IN_USE

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf PERF_PAGER_IN_USE doesn't seem to be used anywhere, so let's remove it. This will also make it easier to move pager.c into a separate library. Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 08/16] perf test: Remove tarpkg at end of test

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/5e7e97a23e3ce11b59d1009b39ebb6d2813a0560.1449965119.git.jpoim...@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/make | 3 ++- 1 file

[PATCH 14/16] perf tools: Convert parse-options.c internal functions to static

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/c027b5f47ec1055077f5650edb1c7ad37c191e6c.1449965119.git.jpoim...@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/parse-options.c | 18

[PATCH 11/16] perf tools: Create pager.h

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Move the 'pager' function prototypes into a new pager.h so that the pager code can be moved out to a library. Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link:

Re: [PATCH v3 14/17] perf: Remove subcmd dependencies on strbuf

2015-12-14 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 14, 2015 at 10:05:37AM -0600, Josh Poimboeuf escreveu: > On Mon, Dec 14, 2015 at 12:44:21PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Sun, Dec 13, 2015 at 10:18:14PM -0600, Josh Poimboeuf escreveu: > > > Introduce and use new astrcat() and astrcatf() functions which replace > > >

Re: [PATCH 4.3 36/71] tipc: fix error handling of expanding buffer headroom

2015-12-14 Thread Ben Hutchings
On Sat, 2015-12-12 at 12:06 -0800, Greg Kroah-Hartman wrote: > 4.3-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Ying Xue > > [ Upstream commit 7098356baca723513e97ca0020df4e18bc353be3 ] > > Coverity says: > > --- [...] Most of the

[PATCH 13/16] perf tools: Move help_unknown_cmd() to its own file

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf help_unknown_cmd() is quite perf-specific because it relies on some perf_config*() functions. Move it and its supporting functions out into a separate file so that help.c can be moved to a library. Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter

[PATCH 07/16] perf test: Add Build file to dependencies for llvm-src-*.c

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Because the Build file writes source code to the generated llvm-src-*.c files, it should be listed as one of the dependencies, so that any future changes to the code being echoed won't require a 'make clean'. Signed-off-by: Josh Poimboeuf Acked-by: Jiri Olsa Cc: Namhyung

[PATCH 05/16] perf test: Fix hist testcases when kptr_restrict is on

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Currently if kptr_restrict is enabled, all hist tests failed with segfaults. This is because machine__create_kernel_maps() in setup_fake_machine() failed in that situation, and it called machine__delete() on the error path. But outer callers again called machines__exit()

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

2015-12-14 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 0d76ded582c178d3cca55c9112eceb5b0f12f558: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2015-12-14 09:31:39 +0100) are available in the git

Re: [RFC/PATCHSET 0/6] perf tools: Support dynamic sort keys for tracepoints (v1)

2015-12-14 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 15, 2015 at 12:46:07AM +0900, Namhyung Kim escreveu: > Hello, > > This is an attempt to improve perf to deal with tracepoint events > better. The perf tools can handle tracepoint events but perf report > on them is less useful since they're always sampled in a fixed > location and

[PATCH 03/16] perf thread: Fix reference count initial state

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We should always return from thread__new(), the constructor, with the object with a reference count of one, so that: struct thread *thread = thread__new(); thread__put(thread); Will call thread__delete(). If any reference is made to that 'thread'

Re: [PATCH 4.3 34/71] vrf: fix double free and memory corruption on register_netdevice failure

2015-12-14 Thread Ben Hutchings
On Sat, 2015-12-12 at 12:05 -0800, Greg Kroah-Hartman wrote: > 4.3-stable review patch.  If anyone has any objections, please let me > know. > > -- > > From: Nikolay Aleksandrov > > [ Upstream commit 7f109f7cc37108cba7243bc832988525b0d85909 ] [...] > --- a/drivers/net/vrf.c >

[PATCH 16/16] perf record: Support custom vmlinux path

2015-12-14 Thread Arnaldo Carvalho de Melo
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short

[PATCH 10/16] perf build: Rename LIB_PATH -> API_PATH

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf 'LIB_PATH' is a misnomer because there are multiple library paths. Signed-off-by: Josh Poimboeuf Acked-by: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/c10df0b749a27f05cc531fe06b8dd71a329341fa.1449965119.git.jpoim...@redhat.com

[PATCH 06/16] perf build: Remove unnecessary line in Makefile.feature

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf This line always silently fails because it doesn't add the 'test-' prefix to the .bin file. And it seems to be unnecessary anyway: the line immediately after it does all the individual feature checks. Signed-off-by: Josh Poimboeuf Acked-by: Jiri Olsa Cc: Namhyung Kim

[PATCH 02/16] perf test: Dump the stack when test segfaults when in verbose mode

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo E.g.: # perf test 26 26: Test mmap thread lookup : FAILED! # perf test -v 26 26: Test mmap thread lookup : --- start --- test child forked, pid 9269 tid = 9269, map = 0x7ff99ff0c000

Re: staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-14 Thread SF Markus Elfring
>> I do not like patch squashing for my update suggestions here. > > I am a maintainer in drivers/staging. Thanks for this information. > I am telling you what you need to do if you want us to apply your patch. I am still waiting for a bit more constructive feedback for this patch series. How

[PATCH 04/16] perf evsel: Disable branch flags/cycles for --callgraph lbr

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Andi Kleen [The kernel patch needed for this is in tip now (b16a5b52eb9 perf/x86: Add option to disable ...) So this user tools patch to make use of it should be merged now] Automatically disable collecting branch flags and cycles with --call-graph lbr. This allows avoiding a bunch of

Kernel v4.3 - RCU hang, USB + SCSI implicated

2015-12-14 Thread Ilia Mirkin
Hello, This is a follow-up to an earlier report where I was directed by Oliver Neukum to repost to linux-scsi. I got lazy and forgot, but the same issue happened a second time. Original posting at: https://lkml.org/lkml/2015/11/16/569 This is an Intel Haswell system, DELL U2415 monitor (which

Re: [PATCH 1/3] staging/rdma/hfi1: consolidate kmalloc_array+memset into kcalloc

2015-12-14 Thread Nicholas Mc Guire
On Mon, Dec 14, 2015 at 03:28:46PM +, Marciniszyn, Mike wrote: > > --- a/drivers/staging/rdma/hfi1/chip.c > > +++ b/drivers/staging/rdma/hfi1/chip.c > > @@ -10128,8 +10128,7 @@ static void init_qos(struct hfi1_devdata *dd, > > u32 first_ctxt) > > goto bail; > > if (num_vls *

Re: [PATCH 2/3] staging/rdma/hfi1: check return value of kcalloc

2015-12-14 Thread Nicholas Mc Guire
p = kcalloc(NUM_MAP_REGS, sizeof(u64), GFP_KERNEL); > > + if (!rsmmap) > > + goto bail; > > + > > I checked out a linux-next remote at the next-20151214 tag. > > The allocation method is clearly kmalloc_array() not kcalloc(). > > Where are

Re: [PATCH v2] extcon: add Maxim MAX3355 driver

2015-12-14 Thread Sergei Shtylyov
Hello. On 12/14/2015 04:24 AM, Rob Herring wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip also

Re: [PATCH v4 0/6] nvdimm: Add an IOCTL pass thru for DSM calls

2015-12-14 Thread Jerry Hoemann
On Sun, Dec 13, 2015 at 06:54:21PM -0700, Jerry Hoemann wrote: > > The NVDIMM code in the kernel supports an IOCTL interface to user > space based upon the Intel Example DSM: > > http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf > > This interface cannot be used by other NVDIMM

Re: [PATCH 1/1] Fix HARD Lockup Firing off while in debugger

2015-12-14 Thread Don Zickus
On Sat, Dec 12, 2015 at 02:08:13PM -0700, Jeff Merkey wrote: > The current touch_nmi_watchdog() function in /kernel/watchdog.c does > not always catch all cases when a processor is spinning in the nmi > handler inside either KGDB, KDB, or MDB. The hrtimer_interrupts_saved > count can still end up

Re: [PATCH] ARM: multi_v7_defconfig: Enable Rockchip generic power domain.

2015-12-14 Thread Enric Balletbo Serra
cc'ing: Heiko Stuebner (rockchip maintainer) 2015-12-14 18:17 GMT+01:00 Enric Balletbo i Serra : > In order to meet high performance an low power requirement for Rockchip > enable the power domain support. > > Signed-off-by: Enric Balletbo i Serra > --- > arch/arm/configs/multi_v7_defconfig | 1

Re: [RFC PATCH 3/3] x86: Create dma_mark_dirty to dirty pages used for DMA by VM guest

2015-12-14 Thread Michael S. Tsirkin
On Mon, Dec 14, 2015 at 08:34:00AM -0800, Alexander Duyck wrote: > > This way distro can use a guest agent to disable > > dirtying until before migration starts. > > Right. For a v2 version I would definitely want to have some way to > limit the scope of this. My main reason for putting this

[PATCH] ARM: multi_v7_defconfig: Enable Rockchip generic power domain.

2015-12-14 Thread Enric Balletbo i Serra
In order to meet high performance an low power requirement for Rockchip enable the power domain support. Signed-off-by: Enric Balletbo i Serra --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

Re: [PATCH] kbuild: support make dir/file.i for *.S

2015-12-14 Thread Michal Marek
Dne 14.12.2015 v 17:14 Wang YanQing napsal(a): > On Sat, Dec 12, 2015 at 02:13:03PM -0500, Brian Gerst wrote: >> On Thu, Dec 10, 2015 at 11:33 AM, Wang YanQing wrote: >>> This feature could reduce a little time to expand all >>> the macros in *.S for reading. >>> >>> Signed-off-by: Wang YanQing

Re: Bad backport of "net: Fix skb_set_peeked use-after-free bug" in 3.18.23

2015-12-14 Thread Sasha Levin
On 12/13/2015 09:44 PM, Paul Mackerras wrote: > Commit d9a1133495b4 ("net: Fix skb_set_peeked use-after-free bug") in > 3.18.23 claims to be a backport of commit a0a2a6602496, but in fact > the patch is identical to commit 738ac1ebb96d ("net: Clone skb before > setting peeked flag"), which is the

Re: [PATCH v14 0/7] fpga area and fpga bridge framework

2015-12-14 Thread Moritz Fischer
Hi Alan, On Thu, Dec 10, 2015 at 3:37 PM, wrote: > From: Alan Tull > > For v14 I'm dropping the concept of "simple-fpga-bus" for "fpga-area" > with reworked bindings. I had an offline discussion with Josh Cartwright about his concerns. He brought up a good point on w.r.t to the way FPGA Area

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread Namhyung Kim
On Mon, Dec 14, 2015 at 05:56:14PM +0100, Peter Zijlstra wrote: > On Tue, Dec 15, 2015 at 01:38:30AM +0900, Namhyung Kim wrote: > > It requires many changes, but basically I also like the split-up since > > it's easier to deal with. IIRC there was an opinion (Andi?) regarding > > single-file vs

Re: [PATCH] kbuild: support make dir/file.i for *.S

2015-12-14 Thread Wang YanQing
On Sat, Dec 12, 2015 at 02:13:03PM -0500, Brian Gerst wrote: > On Thu, Dec 10, 2015 at 11:33 AM, Wang YanQing wrote: > > This feature could reduce a little time to expand all > > the macros in *.S for reading. > > > > Signed-off-by: Wang YanQing > > --- > > Makefile | 2 ++ > >

Re: [PATCH 4/4] mm: memcontrol: clean up alloc, online, offline, free functions

2015-12-14 Thread Vladimir Davydov
On Fri, Dec 11, 2015 at 02:54:13PM -0500, Johannes Weiner wrote: ... > -static int > -mem_cgroup_css_online(struct cgroup_subsys_state *css) > +static struct cgroup_subsys_state * __ref > +mem_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) > { > - struct mem_cgroup *memcg =

Re: [PATCH] ARM64: ZynqMP: DT: Fix GIC's 'reg' property

2015-12-14 Thread Marc Zyngier
Mark, On 14/12/15 16:46, Mark Rutland wrote: > On Mon, Dec 14, 2015 at 08:31:40AM -0800, Soren Brinkmann wrote: >> Signed-off-by: Soren Brinkmann >> --- >> arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread Namhyung Kim
Hi David, On Mon, Dec 14, 2015 at 07:46:28AM -0700, David Ahern wrote: > On 12/14/15 2:26 AM, Peter Zijlstra wrote: > >On Fri, Dec 11, 2015 at 08:01:31AM -0700, David Ahern wrote: > >>On 12/11/15 1:11 AM, Ingo Molnar wrote: > >>> > >>>* Namhyung Kim wrote: > >>> > IIRC David said that thread

Re: new warning on sysrq kernel crash trigger

2015-12-14 Thread Rik van Riel
On 12/14/2015 11:24 AM, Ani Sinha wrote: > Rik, any comments? Another good option is to simply ignore this warning, or drop the rcu_read_lock before doing the alt-syrsq-c action. After all, alt-sysrq-c is "crash the system, take a crash dump", which is not an action the system ever returns from.

Re: [PATCH] arm64: Add missing linux/bug.h include in asm/pgtable.h

2015-12-14 Thread Catalin Marinas
On Mon, Dec 14, 2015 at 04:47:07PM +, James Morse wrote: > On 14/12/15 16:38, Catalin Marinas wrote: > > On Mon, Dec 14, 2015 at 04:26:48PM +, Julien Grall wrote: > >> On 14/12/15 16:22, Catalin Marinas wrote: > >>> On Mon, Dec 14, 2015 at 04:07:24PM +, Julien Grall wrote: > Linux

Re: [RFC PATCH 2/8] Documentation: arm: define DT cpu capacity bindings

2015-12-14 Thread Mark Brown
On Mon, Dec 14, 2015 at 12:36:16PM +, Juri Lelli wrote: > On 11/12/15 17:49, Mark Brown wrote: > > The purpose of the capacity values is to influence the scheduler > > behaviour and hence performance. Without a concrete definition they're > > just magic numbers which have meaining only in

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread Peter Zijlstra
On Tue, Dec 15, 2015 at 01:38:30AM +0900, Namhyung Kim wrote: > It requires many changes, but basically I also like the split-up since > it's easier to deal with. IIRC there was an opinion (Andi?) regarding > single-file vs multi-file. The file access will be better for single > file so I

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-14 Thread Peter Zijlstra
On Mon, Dec 14, 2015 at 04:56:17PM +0100, Vincent Guittot wrote: > I agree that if the WCET is far from reality, we will underestimate > available capacity for CFS. Have you got some use case in mind which > overestimates the WCET ? Pretty much any 'correct' WCET is pessimistic. There's heaps of

Re: [PATCH] arm64: Add missing linux/bug.h include in asm/pgtable.h

2015-12-14 Thread James Morse
On 14/12/15 16:38, Catalin Marinas wrote: > On Mon, Dec 14, 2015 at 04:26:48PM +, Julien Grall wrote: >> On 14/12/15 16:22, Catalin Marinas wrote: >>> On Mon, Dec 14, 2015 at 04:07:24PM +, Julien Grall wrote: Linux 4.4-rc5 doesn't build for arm64 with CONFIG_XEN=y enabled:

Re: [PATCH 2/2] gpio: Add driver for SPI serializers

2015-12-14 Thread Andrew F. Davis
On 12/11/2015 04:09 PM, Linus Walleij wrote: On Fri, Dec 11, 2015 at 8:46 PM, Andrew F. Davis wrote: Add generic parallel-in/serial-out shift register GPIO driver. This includes SPI compatible devices like SN74165 serial-out shift registers and the SN65HVS88x series of industrial serializers

Re: [PATCH] ARM64: ZynqMP: DT: Fix GIC's 'reg' property

2015-12-14 Thread Mark Rutland
On Mon, Dec 14, 2015 at 08:31:40AM -0800, Soren Brinkmann wrote: > Signed-off-by: Soren Brinkmann > --- > arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi >

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread Peter Zijlstra
On Tue, Dec 15, 2015 at 01:25:35AM +0900, Namhyung Kim wrote: > I want to focus on perf-top for now, once it's in a good shape, I'll > work on perf record/report too. Fair enough and thanks! > > > > > And in an unrelated note, I absolutely detest --buildid being the > > default, it makes

Re: [PATCH] clk: exynos: use irqsave version of spin_lock to avoid deadlock with irqs

2015-12-14 Thread Sylwester Nawrocki
On 11/12/15 15:38, Marek Szyprowski wrote: > It is allowed to enable/disable clocks from interrupts, so common Exynos > ARM clock management code for CPUfreq should use 'irqsave' version of > spin_lock calls to avoid potential deadlock caused by spin_lock recursion. > The same spin_lock is used by

Re: [PATCH] ftrace: Kill ftrace_caller_end label

2015-12-14 Thread Borislav Petkov
On Mon, Dec 14, 2015 at 11:30:27AM -0500, Steven Rostedt wrote: > On Mon, 14 Dec 2015 17:08:34 +0100 > Borislav Petkov wrote: > > > From: Borislav Petkov > > > > One of ftrace_caller_and and ftrace_return is redundant so unify them. > > s/_and/_end/ Whoops. > > Rename ftrace_return to

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