Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-13 Thread Minfei Huang
On 04/14/15 at 12:32P, Josh Poimboeuf wrote: > On Tue, Apr 14, 2015 at 01:29:50PM +0800, Minfei Huang wrote: > > On 04/14/15 at 12:11P, Josh Poimboeuf wrote: > > > On Tue, Apr 14, 2015 at 01:03:48PM +0800, Minfei Huang wrote: > > > > On 04/13/15 at 11:57P, Josh Poimboeuf wrote: > > > > > On Tue,

Re:salve

2015-04-13 Thread rnl
benvenuto al nostro negozio iPhone 6, 280 euro, laptop, in bicicletta, macchina fotografica, cellulare, tv il prezzo รจ molto buono site: ereaaal. com

Re: [PATCH v3] kvm: mmu: lazy collapse small sptes into large sptes

2015-04-13 Thread Wanpeng Li
Hi Andres, On Fri, Apr 10, 2015 at 11:05:26AM -0700, Andres Lagar-Cavilla wrote: [...] >> + if (sp->role.direct && >> + !kvm_is_reserved_pfn(pfn) && >> + PageTransCompound(pfn_to_page(pfn))) { > >Not your fault, but PageTransCompound is

Re: [PATCH] x86: Align jump targets to 1 byte boundaries

2015-04-13 Thread Ingo Molnar
* Markus Trippelsdorf wrote: > On 2015.04.13 at 11:31 -0700, Linus Torvalds wrote: > > On Mon, Apr 13, 2015 at 10:26 AM, Markus Trippelsdorf > > wrote: > > > > > > I must have made a measurement mistake above, because the actual code > > > size savings are roughly 5%: > > > > Can you check

Re: [PATCHSET 0/6] perf kmem: Implement page allocation analysis (v7)

2015-04-13 Thread Pekka Enberg
On Tue, Apr 14, 2015 at 5:52 AM, Namhyung Kim wrote: > Currently perf kmem command only analyzes SLAB memory allocation. And > I'd like to introduce page allocation analysis also. Users can use > --slab and/or --page option to select it. If none of these options > are used, it does slab

Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-13 Thread Josh Poimboeuf
On Tue, Apr 14, 2015 at 01:29:50PM +0800, Minfei Huang wrote: > On 04/14/15 at 12:11P, Josh Poimboeuf wrote: > > On Tue, Apr 14, 2015 at 01:03:48PM +0800, Minfei Huang wrote: > > > On 04/13/15 at 11:57P, Josh Poimboeuf wrote: > > > > On Tue, Apr 14, 2015 at 08:26:29AM +0800, Minfei Huang wrote: >

[PATCH v2 2/3] Remove celleb-only SCC PATA drivers

2015-04-13 Thread Daniel Axtens
The SCC PATA interface is only used by celleb. celleb has been dropped [1], so drop the drivers. [1] http://patchwork.ozlabs.org/patch/451730/ CC: Bartlomiej Zolnierkiewicz CC: Tejun Heo CC: "David S. Miller" CC: linux-...@vger.kernel.org CC: Valentin Rothberg CC: m...@ellerman.id.au CC:

Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-13 Thread Minfei Huang
On 04/14/15 at 12:11P, Josh Poimboeuf wrote: > On Tue, Apr 14, 2015 at 01:03:48PM +0800, Minfei Huang wrote: > > On 04/13/15 at 11:57P, Josh Poimboeuf wrote: > > > On Tue, Apr 14, 2015 at 08:26:29AM +0800, Minfei Huang wrote: > > > > On 04/13/15 at 06:13P, Josh Poimboeuf wrote: > > > > > On Sun,

[PATCH v2 3/3] tty/hvc: remove celleb-only beat driver

2015-04-13 Thread Daniel Axtens
The beat hvc driver is only used by celleb. celleb has been dropped [1], so drop the drivers. [1] http://patchwork.ozlabs.org/patch/451730/ CC: Greg Kroah-Hartman CC: Jiri Slaby CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linuxppc-...@lists.ozlabs.org Signed-off-by: Daniel Axtens ---

[PATCH v2 1/3] toshiba: Remove celleb from Kconfig options

2015-04-13 Thread Daniel Axtens
The toshiba drivers had celleb as an optional dependency. celleb has been dropped [1], so clean that out of Kconfig. [1] http://patchwork.ozlabs.org/patch/451730/ CC: net...@vger.kernel.org CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linuxppc-...@lists.ozlabs.org Signed-off-by: Daniel

[PATCH 3/3] tty/hvc: remove celleb-only beat driver

2015-04-13 Thread Daniel Axtens
The beat hvc driver is only used by celleb. celleb has been dropped [1], so drop the drivers. [1] http://patchwork.ozlabs.org/patch/451730/ CC: Greg Kroah-Hartman CC: Jiri Slaby CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linuxppc-...@lists.ozlab.org Signed-off-by: Daniel Axtens ---

[PATCH 1/3] toshiba: Remove celleb from Kconfig options

2015-04-13 Thread Daniel Axtens
The toshiba drivers had celleb as an optional dependency. celleb has been dropped [1], so clean that out of Kconfig. [1] http://patchwork.ozlabs.org/patch/451730/ CC: net...@vger.kernel.org CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linuxppc-...@lists.ozlab.org Signed-off-by: Daniel

[PATCH 2/3] Remove celleb-only SCC PATA drivers

2015-04-13 Thread Daniel Axtens
The SCC PATA interface is only used by celleb. celleb has been dropped [1], so drop the drivers. [1] http://patchwork.ozlabs.org/patch/451730/ CC: Bartlomiej Zolnierkiewicz CC: Tejun Heo CC: "David S. Miller" CC: linux-...@vger.kernel.org CC: Valentin Rothberg CC: m...@ellerman.id.au CC:

linux-next: manual merge of the ftrace tree with the net-next tree

2015-04-13 Thread Stephen Rothwell
Hi Steven, Today's linux-next merge of the ftrace tree got a conflict in net/mac80211/trace.h between commit ba8c3d6f16a1 ("mac80211: add an intermediate software queue implementation") from the net-next tree and commit 1bc1e4d048d3 ("mac80211: Move message tracepoints to their own header") from

Re: [PATCH] serial: of-serial: Remove device_type = "serial" registration

2015-04-13 Thread Michal Simek
On 04/13/2015 05:50 PM, Peter Hurley wrote: > [ + Arnd ] > > Hi Michal, > > On 04/13/2015 10:35 AM, Michal Simek wrote: >> Do not probe all serial drivers by of_serial.c which are using >> device_type = "serial"; property. Only drivers which have valid >> compatible strings listed in the driver

Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-13 Thread Josh Poimboeuf
On Tue, Apr 14, 2015 at 01:03:48PM +0800, Minfei Huang wrote: > On 04/13/15 at 11:57P, Josh Poimboeuf wrote: > > On Tue, Apr 14, 2015 at 08:26:29AM +0800, Minfei Huang wrote: > > > On 04/13/15 at 06:13P, Josh Poimboeuf wrote: > > > > On Sun, Apr 12, 2015 at 09:15:54PM +0800, Minfei Huang wrote: >

Re: [PATCH] serial: of-serial: Remove device_type = "serial" registration

2015-04-13 Thread Michal Simek
Hi Greg, On 04/13/2015 07:00 PM, Greg Kroah-Hartman wrote: > On Mon, Apr 13, 2015 at 04:35:27PM +0200, Michal Simek wrote: >> Do not probe all serial drivers by of_serial.c which are using >> device_type = "serial"; property. Only drivers which have valid >> compatible strings listed in the

Re: [PATCH v4 2/3] powerpc/powernv: Move cpuidle related code from setup.c to new file

2015-04-13 Thread Preeti U Murthy
On 04/14/2015 07:26 AM, Shreyas B. Prabhu wrote: > This is a cleanup patch; doesn't change any functionality. Moves > all cpuidle related code from setup.c to a new file. > > Signed-off-by: Shreyas B. Prabhu Reviewed-by: Preeti U Murthy Regards Preeti U Murthy > --- >

Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-13 Thread Minfei Huang
On 04/13/15 at 11:57P, Josh Poimboeuf wrote: > On Tue, Apr 14, 2015 at 08:26:29AM +0800, Minfei Huang wrote: > > On 04/13/15 at 06:13P, Josh Poimboeuf wrote: > > > On Sun, Apr 12, 2015 at 09:15:54PM +0800, Minfei Huang wrote: > > > > For now, the kallsyms will only store the first

Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-13 Thread Josh Poimboeuf
On Tue, Apr 14, 2015 at 08:26:29AM +0800, Minfei Huang wrote: > On 04/13/15 at 06:13P, Josh Poimboeuf wrote: > > On Sun, Apr 12, 2015 at 09:15:54PM +0800, Minfei Huang wrote: > > > For now, the kallsyms will only store the first (KSYM_NAME_LEN-1). The > > > kallsyms name is same for the function

Re: [PATCH 1/2] livepatch: Add a new function to verify the address and name match for extra module

2015-04-13 Thread Minfei Huang
On 04/13/15 at 11:05P, Josh Poimboeuf wrote: > On Tue, Apr 14, 2015 at 08:48:11AM +0800, Minfei Huang wrote: > > On 04/14/15 at 08:17P, Minfei Huang wrote: > > > On 04/13/15 at 05:58P, Josh Poimboeuf wrote: > > > > On Mon, Apr 13, 2015 at 06:37:10PM +0800, Minfei Huang wrote: > > > > > For my

[PATCH] scripts/extract-ikconfig: Support LZ4-compressed images.

2015-04-13 Thread Alex Pilon
Support for kernel image LZ4 compression was added around 3.11, but not the corresponding kernel .config extraction. This makes possible extracting the kernel config for LZ4-compressed kernels you're not running, or the current LZ4-compressed kernel if compiled without /proc/config.gz support.

[PATCH] of/fdt: fix allocation size for device node path

2015-04-13 Thread Ricky Liang
The allocation size of device node path is off by one which drops the '\0' terminator. Signed-off-by: Ricky Liang --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 3a896c9..98a9e6e 100644 --- a/drivers/of/fdt.c +++

[PATCH] spi: bcm2835: Add GPIOLIB dependency

2015-04-13 Thread Guenter Roeck
Fix: drivers/spi/spi-bcm2835.c: In function 'chip_match_name': drivers/spi/spi-bcm2835.c:356:21: error: dereferencing pointer to incomplete type drivers/spi/spi-bcm2835.c: In function 'bcm2835_spi_setup': drivers/spi/spi-bcm2835.c:382:2: error: `

[PATCH 2/2] mmc: cast unsigned int to typeof(sector_t) to avoid unexpected error

2015-04-13 Thread Kuninori Morimoto
From: Kuninori Morimoto card->csd.capacity is defined as "unsigned int", and, sector_t is defined as "u64" or "unsigned long" (depends on CONFIG_LBDAF) sector_t data might have strange data if first bit of unsigned int was 1. this patch cast it to typeof(sector_t) ex) if sector_t was u64

[PATCH 1/2] mmc: cast u8 to unsigned long long to avoid unexpected error

2015-04-13 Thread Kuninori Morimoto
From: Kuninori Morimoto card->ext_csd.enhanced_area_offset is defined as "unsigned long long", and, ext_csd[] is defined as u8. unsigned long long data might have strange data if first bit of ext_csd[] was 1. this patch cast it to (unsigned long long) ex) u8 data8; u64 data64;

[PATCH] KVM: MMU: fix comment in kvm_mmu_zap_collapsible_spte

2015-04-13 Thread Xiao Guangrong
Soft mmu uses direct shadow page to fill guest large mapping with small pages if huge mamping is disallowed on host. So zapping direct shadow page works well both for soft mmu and hard mmu Fix the comment to reflect this truth Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 8 +---

[PATCH 0/2] mmc: cast to avoid unexpected error

2015-04-13 Thread Kuninori Morimoto
Hi Ulf These are non RFC version of mmc data cast patches which were posted in Subject: [PATCH 0/2][RFC] mmc: cast to avoid unexpected error Date: Wed, 8 Apr 2015 07:32:35 + These 2 patches adds cast to avoid unexpected error. It tries copy to u64 without cast. The data will be 0xfff... if

Re: [PATCH 1/2] livepatch: Add a new function to verify the address and name match for extra module

2015-04-13 Thread Josh Poimboeuf
On Tue, Apr 14, 2015 at 08:48:11AM +0800, Minfei Huang wrote: > On 04/14/15 at 08:17P, Minfei Huang wrote: > > On 04/13/15 at 05:58P, Josh Poimboeuf wrote: > > > On Mon, Apr 13, 2015 at 06:37:10PM +0800, Minfei Huang wrote: > > > > For my patches, I think it is used by the persion which will

[PATCH] MAINTAINERS: fix incorrect email address of docking station

2015-04-13 Thread Chao Yu
The old email address of Shaohua will no longer be used, let's update it with last valid one. Signed-off-by: Chao Yu --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a36be4e..bbcbb83 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

Re: [PATCH v2 3/6] clk: hi6220: Document devicetree bindings for hi6220 clock

2015-04-13 Thread Bintian
Hello Arnd, On 2015/4/13 23:32, Arnd Bergmann wrote: On Monday 13 April 2015 17:17:37 Bintian Wang wrote: +- compatible: the compatible should be one of the following strings to + indicate the clock controller functionality. + + - "hisilicon,aoctrl" + - "hisilicon,sysctrl" +

Re: [RFC PATCH 00/11] an introduction of library operating system for Linux (LibOS)

2015-04-13 Thread Hajime Tazaki
At Thu, 09 Apr 2015 10:36:23 +0200, Richard Weinberger wrote: > > Am 31.03.2015 um 09:47 schrieb Hajime Tazaki: > > right now arch/lib/Makefile isn't fully on the Kbuild > > system: build file dependency is not tracked at all. > > > > while I should learn more about Kbuild, I'd be happy if you

Re: sched: Improve load balancing in the presence of idle CPUs

2015-04-13 Thread Jason Low
On Mon, 2015-04-13 at 15:49 -0700, Jason Low wrote: > hmm, so taking a look at the patch again, it looks like we pass nohz > balance even when the NOHZ_BALANCE_KICK is not set on the current CPU. > We should separate the 2 conditions: > > if (!test_bit(NOHZ_BALANCE_KICK,

[PATCH 6/6] perf kmem: Show warning when trying to run stat without record

2015-04-13 Thread Namhyung Kim
Sometimes one can mistakenly run perf kmem stat without perf kmem record before or different configuration like recoding --slab and stat --page. Show a warning message like below to inform user: # perf kmem stat --page --caller Not found page events. Have you run 'perf kmem record --page'

[PATCH 3/6] perf kmem: Add --live option for current allocation stat

2015-04-13 Thread Namhyung Kim
Currently perf kmem shows total (page) allocation stat by default, but sometimes one might want to see live (total alloc-only) requests/pages only. The new --live option does this by subtracting freed allocation from the stat. Signed-off-by: Namhyung Kim ---

[PATCHSET 0/6] perf kmem: Implement page allocation analysis (v7)

2015-04-13 Thread Namhyung Kim
Hello, Currently perf kmem command only analyzes SLAB memory allocation. And I'd like to introduce page allocation analysis also. Users can use --slab and/or --page option to select it. If none of these options are used, it does slab allocation analysis for backward compatibility. *

[PATCH 1/6] perf kmem: Implement stat --page --caller

2015-04-13 Thread Namhyung Kim
It perf kmem support caller statistics for page. Unlike slab case, the tracepoints in page allocator don't provide callsite info. So it records with callchain and extracts callsite info. Note that the callchain contains several memory allocation functions which has no meaning for users. So

[PATCH 2/6] perf kmem: Support sort keys on page analysis

2015-04-13 Thread Namhyung Kim
Add new sort keys for page: page, order, migtype, gfp - existing 'bytes', 'hit' and 'callsite' sort keys also work for page. Note that -s/--sort option should be preceded by either of --slab or --page option to determine where the sort keys applies. Now it properly groups and sorts allocation

[PATCH 4/6] perf kmem: Print gfp flags in human readable string

2015-04-13 Thread Namhyung Kim
Save libtraceevent output and print it in the header. # perf kmem stat --page --caller # # GFP flags # - # 0010: NI: GFP_NOIO # 00d0:K: GFP_KERNEL # 0200: NWR: GFP_NOWARN # 84d0:K|R|Z: GFP_KERNEL|GFP_REPEAT|GFP_ZERO # 000200d2:

[PATCH 5/6] perf kmem: Add kmem.default config option

2015-04-13 Thread Namhyung Kim
Currently perf kmem command will select --slab if neither --slab nor --page is given for backward compatibility. Add kmem.default config option to select the default value ('page' or 'slab'). # cat ~/.perfconfig [kmem] default = page # perf kmem stat SUMMARY (page allocator)

Re: [PATCH v5 10/10] module: Rework module_addr_{min,max}

2015-04-13 Thread Rusty Russell
Ingo Molnar writes: > * Peter Zijlstra wrote: > >> __module_address() does an initial bound check before doing the >> {list/tree} iteration to find the actual module. The bound variables >> are nowhere near the mod_tree cacheline, in fact they're nowhere >> near one another. >> >>

Re: [PATCH v5 00/10] latched RB-trees and __module_address()

2015-04-13 Thread Rusty Russell
Peter Zijlstra writes: > This series is aimed at making __module_address() go fast(er). > > The reason for doing so is that most stack unwinders use kernel_text_address() > to validate each frame. Perf and ftrace (can) end up doing a lot of stack > traces from performance sensitive code. > > On

linux-next: manual merge of the idle tree with the pm tree

2015-04-13 Thread Stephen Rothwell
Hi Len, Today's linux-next merge of the idle tree got a conflict in tools/power/x86/turbostat/turbostat.c between commits from the pm tree and similar commits from the idle tree. There seem to be two differnet version of these patches, so I just dropped the idle tree for today, please sort this

[PATCH 2/2] More precise timestamps for nested writes

2015-04-13 Thread Suresh E. Warrier
When tracing the behavior of multiple fio jobs running in parallel our performance team observed that some scsi_dispatch_cmd_done events appeared to occur earlier, often several microseconds earlier, than their associated scsi_dispatch_cmd_start event in the trace records. Other interrupt events

Re: [PATCH] serial: bfin: ctsrts: enfore Kconfig naming convention

2015-04-13 Thread Sonic Zhang
Acked-by: Sonic Zhang On Sun, Apr 12, 2015 at 11:54 PM, Valentin Rothberg wrote: > The CONFIG_ prefix is reserved for Kconfig options in Make and CPP > syntax; static analysis tools rely on this convention. This patch > enforces this behavior for SERIAL_BFIN_{HARD_}CTSRTS. > > Signed-off-by:

[Patch Part2 v5 13/33] x86/irq: Kill irq_cfg.irq_remapped

2015-04-13 Thread Jiang Liu
Now there is no user of irq_cfg.irq_remapped, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc:

[Patch Part2 v5 32/33] x86/irq: Move irqdomain specific code into asm/irqdomain.h

2015-04-13 Thread Jiang Liu
Now we have dedicated asm/irqdomain.h, so move irqdomain specific code into it. Signed-off-by: Jiang Liu --- arch/x86/include/asm/hw_irq.h| 24 --- arch/x86/include/asm/irq_remapping.h |2 +- arch/x86/include/asm/irqdomain.h | 35

[Patch Part2 v5 17/33] x86/irq: Kill struct io_apic_irq_attr

2015-04-13 Thread Jiang Liu
Now there's no user of struct io_apic_irq_attr anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav

[Patch Part2 v5 33/33] x86/irq: Avoid memory allocation in __assign_irq_vector()

2015-04-13 Thread Jiang Liu
Function __assign_irq_vector() is protected by vector_lock, so use a global temporary cpu_mask to avoid allocating/freeing cpu_mask. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/vector.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git

[Patch Part2 v5 10/33] irq_remapping/vt-d: Clean up unsued code

2015-04-13 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part2 v5 29/33] x86, ioapic: Use proper defines for the entry fields

2015-04-13 Thread Jiang Liu
From: Thomas Gleixner While looking at the printout issue, I stumbled more than once over the various 0/1 assignments which are either commented in strange ways or force to lookup the meaning. Use proper constants and fix the misleading comments. While at it remove pointless 0 assignments in

[Patch Part2 v5 24/33] x86/irq: Kill function apic_set_affinity()

2015-04-13 Thread Jiang Liu
Now there's no user of apic_set_affinity(), so kill it. Also rename vector_set_affinity() to apic_set_affinity() for consistency. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael

[Patch Part2 v5 23/33] x86/irq: Change functions only used in vector.c as static

2015-04-13 Thread Jiang Liu
Function {assign|clear}_irq_vector() and apic_retrigger_irq() are only used in file vector.c, so change them as static. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J.

[Patch Part2 v5 25/33] x86/irq: Move check of cfg->move_in_progress into send_cleanup_vector()

2015-04-13 Thread Jiang Liu
Move check of cfg->move_in_progress into send_cleanup_vector() to prepare for simplifying struct irq_cfg. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J.

[Patch Part2 v5 26/33] x86/irq: Move private data in struct irq_cfg into dedicated data structure

2015-04-13 Thread Jiang Liu
Several fields in struct irq_cfg are private to vector.c, so move it into dedicated data structure. This helps to hide implementation details. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin

[Patch Part2 v5 30/33] x86,ioapic: Cleanup irq_trigger/polarity()

2015-04-13 Thread Jiang Liu
From: Thomas Gleixner These functions are full of pointless indentations, useless comments and even more useless printks. Clean them up. Signed-off-by: Thomas Gleixner Cc: Jiang Liu Cc: x...@kernel.org Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/io_apic.c | 138

[Patch Part2 v5 22/33] x86/irq: Kill unused alloc_irq_and_cfg_at()

2015-04-13 Thread Jiang Liu
There's no caller of alloc_irq_and_cfg_at() anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav

[Patch Part2 v5 28/33] x86/irq, ACPI: Kill private function mp_register_gsi()/ mp_unregister_gsi()

2015-04-13 Thread Jiang Liu
Function mp_register_gsi() is only called once, so fold it into caller acpi_register_gsi_ioapic(). Do the same for mp_unregister_gsi(). Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc:

[Patch Part2 v5 31/33] x86: Cleanup irq_domain ops

2015-04-13 Thread Jiang Liu
From: Thomas Gleixner We have 3 identical copies of the ioapic domain ops for acpi, mpparse, and sfi. Have a global one in the io_apic code and be done with it. To avoid include hell in io_apic.h, create a private irqdomain header and include the generic irqdomain header from there.

[Patch Part2 v5 27/33] x86/irq: Refine the way to calculate NR_IRQS

2015-04-13 Thread Jiang Liu
Now we have made MSI independent of IOAPIC, so we need to refine the way to calculate NR_IRQS to support configuration with MSI enabled but IOAPIC disabled. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc:

[Patch Part2 v5 21/33] x86/irq: Remove sis apic bug workaround

2015-04-13 Thread Jiang Liu
From: Thomas Gleixner The SiS apic bug workaround is now obsolete as we cache the register values for performance reasons. Signed-off-by: Thomas Gleixner Cc: Jiang Liu Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |3 --- arch/x86/kernel/apic/io_apic.c | 35

[Patch Part2 v5 14/33] irq_remapping/vt-d: Move struct irq_2_iommu into intel_irq_remapping.c

2015-04-13 Thread Jiang Liu
Now only intel_irq_remapping.c access irq_2_iommu, so move it from hw_irq.h into intel_irq_remapping.c. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J.

[Patch Part2 v5 12/33] irq_remapping: Clean up unused interfaces

2015-04-13 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused interfaces. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[PATCH 1/2] ring-buffer: Introduce precise nested timestamp sysfs attribute

2015-04-13 Thread Suresh E. Warrier
Introduce a new tunable nested_precise_ts that allows precise time stamps to be recorded for nested trace writes. The tunable is: /sys/kernel/debug/tracing/nested_precise_ts. By default, it is zero and the behavior is disabled. Set the tunable to 1 in order to get accurate timestamps.

[Patch Part2 v5 11/33] irq_remapping/amd: Clean up unsued code

2015-04-13 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part2 v5 19/33] x86/irq: Clean up io_apic.h

2015-04-13 Thread Jiang Liu
Clean up io_apic.h by: 1) moving definition of struct mp_ioapic_gsi into io_apic.c 2) changing mp_pin_to_gsi() and mp_ioapic_gsi_routing() as static 3) killing unused MP_MAX_IOAPIC_PIN 4) killing useless forward declaration 5) killing useless comments Signed-off-by: Jiang Liu Cc: Konrad

[Patch Part2 v5 20/33] x86/irq: Use cached IOAPIC entry instead of reading from hardware

2015-04-13 Thread Jiang Liu
Use cached IOAPIC entry instead of reading data from IOAPIC hardware registers to improve performance. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy

[Patch Part2 v5 18/33] x86/irq: Kill x86_io_apic_ops.write and x86_io_apic_ops.modify

2015-04-13 Thread Jiang Liu
x86_io_apic_ops.write is always set to native_io_apic_write(), and nobody overrides it. So get rid of the indirection by changing native_io_apic_write() as io_apic_write() and killing x86_io_apic_ops.write. Do the same for x86_io_apic_ops.modify and native_io_apic_modify(). Signed-off-by: Jiang

[Patch Part2 v5 16/33] x86/irq: Move irq_cfg.irq_2_pin into io_apic.c

2015-04-13 Thread Jiang Liu
Now only io_apic.c accesses struct irq_cfg.irq_2_pin, so move irq_2_pin into struct mp_chip_data in io_apic.c to clean up struct irq_cfg further. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin

[Patch Part2 v5 15/33] irq_remapping/amd: Move struct irq_2_irte into amd_iommu.c

2015-04-13 Thread Jiang Liu
Now only amd_iommu.c access irq_2_irte, so move it from hw_irq.h into amd_iommu.c. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy

[Patch Part2 v5 09/33] irq_remapping: Clean up unsued code to support IOAPIC

2015-04-13 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part2 v5 08/33] x86/irq: Clean up unused forward declarations in x86_init.h

2015-04-13 Thread Jiang Liu
Clean up unused forward declarations in x86_init.h. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Cc: Yijing

[Patch Part2 v5 05/33] x86/irq: Kill x86_io_apic_ops.set_affinity and related interfaces

2015-04-13 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.set_affinity anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part2 v5 07/33] x86/irq: Kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ

2015-04-13 Thread Jiang Liu
There's no user of irq_alloc_hwirqs(), irq_alloc_hwirq(), irq_free_hwirqs() and irq_free_hwirq() anymore, so kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ and related code. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc:

[Patch Part2 v5 06/33] x86/irq: Kill x86_io_apic_ops.eoi_ioapic_pin and related interfaces

2015-04-13 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.eoi_ioapic_pin anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[PATCH 0/2] ring-buffer: More precise timestamps for nested writes

2015-04-13 Thread Suresh E. Warrier
This patch set provides supports a way to record precise timestamps for nested writes and a tunable to enable the behavior. Nested writes occur when a trace writer is preempted, usually through an interrupt and the interrupt handler also writes its own trace. It has been noticed on large systems

[Patch Part2 v5 01/33] x86/irq: Kill unused old IOAPIC irqdomain interfaces

2015-04-13 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so kill unused old IOAPIC irqdomain interfaces and code. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy

[Patch Part2 v5 03/33] x86/irq: Kill x86_io_apic_ops.print_entries and related interfaces

2015-04-13 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.print_entries anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part2 v5 02/33] x86/irq: Kill unused struct mp_pin_info

2015-04-13 Thread Jiang Liu
Now nobody makes use of struct mp_pin_info, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Cc:

[Patch Part2 v5 04/33] x86/irq: Kill x86_io_apic_ops.setup_entry and related interfaces

2015-04-13 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.setup_entry anymore, so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part2 v5 00/33] Clean up obsoleted x86 interrupt manangement code and interfaces

2015-04-13 Thread Jiang Liu
The patch set "[Patch Part1 v8 00/37] Convert x86 to hierarchy irqdomain and stacked irqchip" at http://www.spinics.net/lists/kernel/msg1967024.html has converted x86 interrupt managment to use hierarchy irqdomain and stacked irqchip. And this is the following-on patch set to clean up code and

Re: [PATCH 4/9] perf kmem: Implement stat --page --caller

2015-04-13 Thread Namhyung Kim
Hi Arnaldo, On Mon, Apr 13, 2015 at 10:40:24AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Apr 06, 2015 at 02:36:11PM +0900, Namhyung Kim escreveu: > > +static int build_alloc_func_list(void) > > +{ > > + int ret; > > + struct map *kernel_map; > > + struct symbol *sym; > > + struct

Re: [PATCH] ACPI / scan: Add a scan handler for PRP0001

2015-04-13 Thread Darren Hart
On Sat, Apr 11, 2015 at 01:28:45AM +0200, Rafael Wysocki wrote: > From: Rafael J. Wysocki > > If the special PRP0001 device ID is present in the given device's list > of ACPI/PNP IDs and the device has a valid "compatible" property in > the _DSD, it should be enumerated using the default

Re: [PATCH 1/1] mmc: pwrseq: Fix error code propagation in mmc_pwrseq_simple_alloc()

2015-04-13 Thread Alexandre Courbot
On 04/13/2015 11:07 PM, Javier Martinez Canillas wrote: If the struct mmc_pwrseq_match .alloc function used to allocate a struct mmc_pwrseq fails, the error is propagated to mmc_of_parse(). But instead of returning the error code in pwrseq, host->pwrseq is returned which will always be 0. So

[PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-13 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8

[PATCH v4 0/3] powerpc: powernv: Fastsleep workaround behavior

2015-04-13 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8

[PATCH v4 1/3] powerpc: Fix cpu_online_cores_map to return only online threads mask

2015-04-13 Thread Shreyas B. Prabhu
Currently, cpu_online_cores_map returns a mask, which for every core with at least one online thread, has the bit for thread 0 of the core set to 1, and the bits for all other threads of the core set to 0. But thread 0 of the core itself may not be online always. In such cases, if the returned

[PATCH v4 2/3] powerpc/powernv: Move cpuidle related code from setup.c to new file

2015-04-13 Thread Shreyas B. Prabhu
This is a cleanup patch; doesn't change any functionality. Moves all cpuidle related code from setup.c to a new file. Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/idle.c | 191

Re: linux-next: manual merge of the vfs tree with the ext4 tree

2015-04-13 Thread Al Viro
On Tue, Apr 14, 2015 at 11:30:25AM +1000, Stephen Rothwell wrote: > +static void ext4_put_link(struct dentry *dentry, struct nameidata *nd, > + void *cookie) > +{ > +struct page *page = cookie; > +char *buf = nd_get_link(nd); > + > +if (page) { > +

Re: [virtio-dev] [PATCH v3 3/6] virtio_ccw: support non-legacy balloon devices

2015-04-13 Thread Rusty Russell
Christian Borntraeger writes: > Am 01.04.2015 um 12:35 schrieb Michael S. Tsirkin: >> virtio_device_is_legacy_only is always false now, >> drop the test from virtio ccw. > > Can you add the commit subject of patch2 here as a > prereq for this patch? This will hopefully avoid > backport issues on

Re: [PATCH v3 0/6] virtio_balloon: virtio 1 support

2015-04-13 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Wed, Apr 01, 2015 at 02:57:35PM +0200, Michael S. Tsirkin wrote: >> Virtio 1.0 doesn't include a modern balloon device. At some point we'll >> likely >> define an incompatible interface with a different ID and different >> semantics. But for now, it's not a

[PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-13 Thread Kweh, Hock Leong
From: "Kweh, Hock Leong" Introducing a kernel module to expose capsule loader interface for user to upload capsule binaries. This module leverage the request_firmware_direct_full_path() to obtain the binary at a specific path input by user. Example method to load the capsule binary: echo -n

[PATCH v4 1/2] firmware_loader: introduce new API - request_firmware_direct_full_path()

2015-04-13 Thread Kweh, Hock Leong
From: "Kweh, Hock Leong" Introduce this new API for loading firmware from a specific location instead of /lib/firmware/ by providing a full path to the firmware file. Cc: Ming Lei Cc: Matt Fleming Signed-off-by: Kweh, Hock Leong --- drivers/base/firmware_class.c | 46

[PATCH v4 0/2] Enable capsule loader interface for efi firmware updating

2015-04-13 Thread Kweh, Hock Leong
From: "Kweh, Hock Leong" Dear maintainers & communities, This patchset is created on top of "efi: Capsule update support" patch: http://permalink.gmane.org/gmane.linux.kernel.efi/4837 It expose a sysfs loader interface for user to upload the capsule binary and calling efi_capsule_update() API

[git pull] vfs part 1

2015-04-13 Thread Al Viro
Pieces prior to the merge with #for-davem: * struct filename-related cleanups * saner iov_iter_init() replacements (and switching the syscalls to use of those) * ntfs switch to ->write_iter() (Anton) * aio cleanups and splitting iocb into common and async parts (Christoph) * assorted fixes

linux-next: manual merge of the vfs tree with the xfs tree

2015-04-13 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/xfs/xfs_iops.c between commit 21c3ea18819b ("xfs: unlock i_mutex in xfs_break_layouts") from the xfs tree and commit 5dd3dc06371a ("VFS: normal filesystems (and lustre): d_inode() annotations") from the vfs tree. I fixed it up

linux-next: manual merge of the vfs tree with the ext4 tree

2015-04-13 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/ext4/symlink.c between commit f1195c72c951 ("ext4 crypto: Add symlink encryption") from the ext4 tree and commit 5dd3dc06371a ("VFS: normal filesystems (and lustre): d_inode() annotations") from the vfs tree. I fixed it up (see

Re: linux-next: build failure after merge of the regulator tree

2015-04-13 Thread Stephen Rothwell
Hi Bjorn, On Mon, 13 Apr 2015 18:07:06 -0700 Bjorn Andersson wrote: > > What Mark mean is basically that there shouldn't be any users of > regulator_set_optimum_mode() for various reasons and we introduced > regulator_set_load() to solve these, before any users popped up. > > Unfortunately we

Re: Remove execution domain support

2015-04-13 Thread Andy Lutomirski
On 04/11/2015 01:47 PM, Richard Weinberger wrote: A long time ago there was the idea to support different ABIs on Linux Such that someone could use for example SCO UNIX binaries on Linux without emulation. While the linux-abi project existed mostly as out-of-tree patch it's core component,

Re: [GIT PULL] power supply changes for 4.1

2015-04-13 Thread Linus Torvalds
On Mon, Apr 13, 2015 at 6:35 AM, Sebastian Reichel wrote: > > * new API for safe access of power supply function attrs > * devres support for power supply (un)registration I'm not sure this is the reason, but suspend/resume on my laptop now complains wildly. I'm *assuming* the culprit is

  1   2   3   4   5   6   7   8   9   10   >