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

2015-04-13 Thread Wanpeng Li
On Mon, Apr 13, 2015 at 11:06:25PM -0700, Andres Lagar-Cavilla wrote: >On Mon, Apr 13, 2015 at 10:25 PM, Wanpeng Li >wrote: >> Hi Andres, >> On Fri, Apr 10, 2015 at 11:05:26AM -0700, Andres Lagar-Cavilla wrote: >> [...] + if (sp->role.direct && + !kvm

Re: [PATCH] Use -mcount-record for dynamic ftrace

2015-04-13 Thread Kalle Valo
Steven Rostedt writes: > I wonder who's responsible for > https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/ > > If they can add a i386/x86_64 build for gcc5 I'll be happy to download > it and test this patch. Found this: "For any questions don't hesitate to contact me at tony (at) ba

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

2015-04-13 Thread Yong Wu
Hi Robin, Thanks very much for your confirm. About the v3 of the DMA-mapping, I have some question below. On Fri, 2015-03-20 at 19:14 +, Robin Murphy wrote: > On 18/03/15 11:22, Yong Wu wrote: > > Hi Tomasz, > > Thanks very much for your review. please help check below. > > The

Re: [PATCH 0/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation

2015-04-13 Thread Pavel Machek
Hi! > > > > > So proper way is to wipe luks crypto keys *after* userspace processes > > > > > are freezed. > > > > > > > > I know you believe that I'm just not accepting that at face value. > > > > > > If disks are synced before any DM suspend operation then we have higher > > > chance of preven

Re: [PATCH] hso: fix refcnt leak in recent patch.

2015-04-13 Thread Olivier Sobrie
Hello Neil, On Tue, Apr 14, 2015 at 11:03:03AM +1000, NeilBrown wrote: > On Tue, 14 Apr 2015 09:36:34 +1000 NeilBrown wrote: > > > > > > > Prior to > > commit 29bd3bc1194c624ce863cab2a7da9bc1f0c3b47b > > hso: fix crash when device disappears while serial port is open > > > > hso_serial_op

Re: [PATCH] spi: bcm2835: Add GPIOLIB dependency

2015-04-13 Thread Martin Sperl
> On 14.04.2015, at 06:24, Guenter Roeck wrote: > > by adding the now mandatory GPIOLIB dependency. > Note this shows up during automated randconfig testing. > Fixes: a30a555d7435 ("spi: bcm2835: transform native-cs to gpio-cs > on first spi_setup") > Cc: Martin Sperl > Signed-off-by: G

Re: [PATCH v6 2/2] memory: pl353: Add driver for arm pl353 static memory controller

2015-04-13 Thread punnaiah choudary kalluri
Hi Paul Bolle On Tue, Apr 14, 2015 at 12:19 AM, Paul Bolle wrote: > On Mon, 2015-04-13 at 21:41 +0530, Punnaiah Choudary Kalluri wrote: >> --- a/drivers/memory/Kconfig >> +++ b/drivers/memory/Kconfig > >> +config PL353_SMC >> + bool "ARM PL353 Static Memory Controller (SMC) driver" >> + d

Re: [PATCH RESEND v6 4/6] regulator: axp20x: add support for AXP22X regulators

2015-04-13 Thread Lee Jones
On Fri, 10 Apr 2015, Mark Brown wrote: > On Fri, Apr 10, 2015 at 12:09:04PM +0800, Chen-Yu Tsai wrote: > > > This patch depends on the previous patch "regulator: axp20x: prepare > > support for multiple AXP chip families" and the mfd header from the > > first patch "mfd: axp20x: add AXP22x PMIC s

[PATCH v9 06/11] powerpc/perf: Implement get_cpu_str()

2015-04-13 Thread Sukadev Bhattiprolu
With a file ~/.cache/pmu-events/004d0100-core.json describing Power8 PMU events we would need to run: perf stat \ --events-file ~/.cache/pmu-events/004d0100-core.json \ -e pm_cyc sleep 1 With this get_cpu_str(), on Powerpc, we can skip the --events-file opt

[GIT PULL] s390 patches for the 4.1 merge window

2015-04-13 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: The major change in this merge is the removal of the support for 31-bit kernels. Naturally 31-bit user space will continue to wor

[PATCH v9 02/11] perf, tools: Add support for text descriptions of events and alias add

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Change pmu.c to allow descriptions of events and add interfaces to add aliases at runtime from another file. To be used by jevents in a followon patch Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelog[v9] by Sukadev Bhattiprolu

[PATCH v9 05/11] perf, tools: Automatically look for event file name for cpu

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen When no JSON event file is specified automatically look for a suitable file in ~/.cache/pmu-events. The event file format is per architecture, but can be extended for other architectures. Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu ---

[PATCH v9 09/11] perf, tools, test: Add test case for alias and JSON parsing

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a simple test case to perf test that parses all the available events, including json events. This needs adding an all event iterator to pmu.c Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelog[v9] by Sukadev Bhattiprolu

[PATCH v9 10/11] perf, tools: Add a --no-desc flag to perf list

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a --no-desc flag to perf list to not print the event descriptions that were earlier added for JSON events. This may be useful to get a less crowded listing. It's still default to print descriptions as that is the more useful default for most users. Before: % perf list ...

[PATCH v9 04/11] perf, tools: Add support for reading JSON event files

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a parser for Intel style JSON event files. This allows to use an Intel event list directly with perf. The Intel event lists can be quite large and are too big to store in unswappable kernel memory. The parser code knows how to convert the JSON fields to perf fields. The conv

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

2015-04-13 Thread Peter Zijlstra
On Tue, Apr 14, 2015 at 12:25:45PM +0930, Rusty Russell wrote: > 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

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

2015-04-13 Thread Peter Zijlstra
On Tue, Apr 14, 2015 at 12:27:05PM +0930, Rusty Russell wrote: > I was tempted to sneak in those module rcu fixes for 4.1, but seeing > Ingo's comments I'll wait for 4.2. I can get you a new version of that if you want. See below. The fixups are unmodified of the posting (patches 2,3). --- Subje

Re: [Linux-nvdimm] [GIT PULL] PMEM driver for v4.1

2015-04-13 Thread Boaz Harrosh
On 04/13/2015 08:19 PM, Christoph Hellwig wrote: > On Mon, Apr 13, 2015 at 02:11:56PM +0300, Yigal Korman wrote: >> mlock() > > DAX files always are in-memory so this just sounds like an oversight. > method. Yes mlock on DAX can just return true, but mlock implies MAP_POPULATE. Which means "I wo

[PATCH v9 11/11] perf-download: Download the events json file

2015-04-13 Thread Sukadev Bhattiprolu
Add a downloader to automatically download the right files from a download site. This is implemented as a script calling curl, similar to perf archive. The perf driver automatically calls the right binary. The downloader is extensible, but currently only implements an Intel and Powerpc event downl

[PATCH v9 07/11] perf, tools: Query terminal width and use in perf list

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Automatically adapt the now wider and word wrapped perf list output to wider terminals. This requires querying the terminal before the auto pager takes over, and exporting this information from the pager subsystem. Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by

Re: [PATCH 0/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation

2015-04-13 Thread Pavel Machek
On Thu 2015-04-09 09:12:08, Mike Snitzer wrote: > On Mon, Apr 06 2015 at 9:29am -0400, > Pali Rohár wrote: > > > On Monday 06 April 2015 15:00:46 Mike Snitzer wrote: > > > On Sun, Apr 05 2015 at 1:20pm -0400, > > > > > > Pali Rohár wrote: > > > > This patch series increase security of suspend

[PATCH v9 08/11] perf, tools: Add a new pmu interface to iterate over all events

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen With calling a callback. To be used in test code added in the next patch. Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelog[v9] by Sukadev Bhattiprolu Rebase to 4.0 and fix conflicts in: tools/perf/util/pmu.c too

[PATCH v9 00/11] Add support for JSON event files.

2015-04-13 Thread Sukadev Bhattiprolu
This is another attempt to resurrect Andi Kleen's patchset so users can specify perf events by their event names rather than raw codes. This is a rebase of Andi Kleen's patchset from Jul 30, 2014[1] to 4.0. (I fixed minor and not so minor conflicts). This patchset includes the perf-download tool

[PATCH v9 03/11] perf, tools, list: Update perf list to output descriptions

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add support to perf list to print aliases with descriptions. Support word wrapping for descriptions. Fix up the sorting code to put aliases with descriptions last. Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelov[v9] by Sukadev Bhattiprolu Re

[PATCH v9 01/11] perf, tools: Add jsmn `jasmine' JSON parser

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen I need a JSON parser. This adds the simplest JSON parser I could find -- Serge Zaitsev's jsmn `jasmine' -- to the perf library. I merely converted it to (mostly) Linux style and added support for non 0 terminated input. The parser is quite straight forward and does not copy any

[PATCHv2 net-next 2/2] net: Export IGMP/MLD message validation code

2015-04-13 Thread Linus Lüssing
With this patch, the IGMP and MLD message validation functions are moved from the bridge code to IPv4/IPv6 multicast files. Some small refactoring was done to enhance readibility and to iron out some differences in behaviour between the IGMP and MLD parsing code (e.g. the skb-cloning of MLD message

Re: [PATCH v6 1/3] nand: pl353: Add basic driver for arm pl353 smc nand interface

2015-04-13 Thread punnaiah choudary kalluri
Hi Paul Bolle, On Tue, Apr 14, 2015 at 12:27 AM, Paul Bolle wrote: > On Mon, 2015-04-13 at 21:42 +0530, Punnaiah Choudary Kalluri wrote: > >> --- a/drivers/mtd/nand/Makefile >> +++ b/drivers/mtd/nand/Makefile > >> +obj-$(CONFIG_MTD_NAND_PL353) += pl353_nand.o > > (I think pl353_nand.o can

[PATCHv2 net-next 1/2] bridge: multicast: call skb_checksum_{simple_, }validate

2015-04-13 Thread Linus Lüssing
Let's use these new, neat helpers. Signed-off-by: Linus Lüssing --- net/bridge/br_multicast.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 4b6722f..b52f4cb 100644 --- a/net/bridge/b

[PATCHv2 net-next 0/2] Exporting IGMP/MLD checking from bridge code

2015-04-13 Thread Linus Lüssing
The multicast optimizations in batman-adv are yet only usable and enabled in non-bridged scenarios. To be able to support bridged setups batman-adv needs to be able to detect IGMP/MLD queriers and reports on mesh nodes without bridges, too. See the following link for details: http://www.open-mesh.

Re: [PATCH v3] perf probe: Find compilation directory path for lazy matching

2015-04-13 Thread Masami Hiramatsu
(2015/04/14 8:10), Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 13, 2015 at 02:18:40PM +0900, Naohiro Aota escreveu: >> If we use lazy matching, it failed to open a souce file if perf command >> is invoked outside of compilation directory: >> >> $ perf probe -a '__schedule;clear_*' >> Failed to op

Re: [PATCH v2 04/10] KVM: arm: guest debug, add stub KVM_SET_GUEST_DEBUG ioctl

2015-04-13 Thread David Hildenbrand
> On Tue, Mar 31, 2015 at 04:08:02PM +0100, Alex Bennée wrote: > > This commit adds a stub function to support the KVM_SET_GUEST_DEBUG > > ioctl. Currently any operation flag will return EINVAL. Actual > > functionality will be added with further patches. > > > > Signed-off-by: Alex Bennée . > >

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

2015-04-13 Thread Yong Wu
Hi Tomasz, Thanks very much for you suggestion and explain so detail. please help check below. On Fri, 2015-03-27 at 18:41 +0900, Tomasz Figa wrote: > Hi Yong Wu, > > Sorry for long delay, I had to figure out some time to look at this again. > > On Wed, Mar 18, 2015 at 8:22 PM, Yong W

Re: [patch] ARM: fix module-bound check in setting page attributes

2015-04-13 Thread Hillf Danton
Ping > -Original Message- > From: Hillf Danton [mailto:hillf...@alibaba-inc.com] > Sent: Tuesday, April 07, 2015 4:31 PM > To: Hillf Danton; 'Laura Abbott' > Cc: 'Russell King'; 'linux-kernel'; li...@arm.linux.org.uk > Subject: Re: [patch] ARM: fix module-bound check in setting page attrib

[PATCH 2/2] kvm: mmu: don't do overflow memslot check

2015-04-13 Thread Wanpeng Li
As Andre pointed out: | I don't understand the value of this check here. Are we looking for a | broken memslot? Shouldn't this be a BUG_ON? Is this the place to care | about these things? npages is capped to KVM_MEM_MAX_NR_PAGES, i.e. | 2^31. A 64 bit overflow would be caused by a gigantic gfn_sta

[PATCH 1/2] kvm: mmu: fix catch transparent huge page backing

2015-04-13 Thread Wanpeng Li
PageTransCompound() can't guarantee the page is a transparent huge page since it returns true for both transparent huge and hugetlbfs pages. This patch fixes it by checking the page is also !hugetlbfs page. Signed-off-by: Wanpeng Li --- arch/x86/kvm/mmu.c | 3 ++- 1 file changed, 2 insertions(+

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

2015-04-13 Thread Andres Lagar-Cavilla
On Mon, Apr 13, 2015 at 10:25 PM, Wanpeng Li wrote: > 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_

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

2015-04-13 Thread Preeti U Murthy
Hi Shreyas, On 04/14/2015 07:26 AM, Shreyas B. Prabhu wrote: > 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 an

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, Ap

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 very

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 aga

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 alloc

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: linu

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, Ap

[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 --- v

[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 Axte

[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 --- dr

[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 Axten

[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: linu

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 t

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 s

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 driver

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 > --- > arch/powerpc/platforms/p

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 (KSYM_NAME_LEN-1)

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 wh

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

[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. Si

[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: ` impli

[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 la

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 compos

[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, nohz_flags(this_cpu))

[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' be

[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 --- tools/perf/Documentation/perf-kmem.t

[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. * changes

[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 skip

[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 sta

[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. >> >> module_addr

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 th

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 o

[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 we

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: Va

[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: Bor

[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 Pet

[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: Yingha

[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 nat

[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. Wysocki

[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. Wy

[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 Herrenschmidt

[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 Petkov

[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: R

[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. Signed-off-

[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: Benjamin

[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. Wyso

[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:

  1   2   3   4   5   6   7   8   9   10   >