[PATCH perf/core v2 7/8] perf probe: Remove redundant cleanup of params.filter

2015-04-23 Thread Masami Hiramatsu
Since params.filter will be released in cleanup_params, we don't need to clear it in each command. Signed-off-by: Masami Hiramatsu --- tools/perf/builtin-probe.c |6 -- 1 file changed, 6 deletions(-) diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 5a0e8f1..08c

Re: [PATCH v3] mm/slab_common: Support the slub_debug boot option on specific object size

2015-04-23 Thread Christoph Lameter
On Thu, 23 Apr 2015, Gavin Guo wrote: > - if (KMALLOC_MIN_SIZE <= 64 && !kmalloc_caches[2] && i == 7) > - kmalloc_caches[2] = create_kmalloc_cache(NULL, 192, > flags); > + if (i == 2) > + i = (KMALLOC_SHIFT_LOW - 1); > } Ok th

[PATCH] staging: i2o: Remove unwanted semicolon

2015-04-23 Thread Gujulan Elango, Hari Prasath (H.)
This patch removes unwanted semicolon around close braces of code blocks Signed-off-by: Hari Prasath --- drivers/staging/i2o/iop.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/staging/i2o/iop.c b/drivers/staging/i2o/io

[PATCH perf/core v2 0/8] perf-probe: Add filtering features

2015-04-23 Thread Masami Hiramatsu
Hi, Here is a series of patches which improves perf-probe to add filtering features for --list,--del and --funcs. This also includes some bugfixes and cleanups. I've fixed some patches according to Namhyung's review(Thanks!). E.g. --list/--funcs accepts filter rules. # ./perf probe -l v

[PATCH perf/core v2 1/8] [BUGFIX] perf probe: Make --funcs option exclusive

2015-04-23 Thread Masami Hiramatsu
--funcs option is a command which should be given exclusively. This adds PARSE_OPT_EXCUSIVE flag on --funcs (-F) option. Without this, 'perf probe --funcs -l' just shows the list of probes. With this, it shows error message correctly. This also fixes the help message and the documentation. Signe

Re: [PATCH v3 4/4] of/platform: Use platform_device interface

2015-04-23 Thread Ricardo Ribalda Delgado
Hello Rob On Thu, Apr 23, 2015 at 9:28 AM, Ricardo Ribalda Delgado wrote: > > I think it can also use platform_device_add. I will prepare a patch to > finally remove of_device_add() I will post right away an updated version of this patchset, and then I will prepare another one to remove of_devic

[PATCH perf/core v2 6/8] perf probe: Accept filter argument for --funcs

2015-04-23 Thread Masami Hiramatsu
This allows user to pass the filter pattern directly to --funcs option as below. # ./perf probe -F *kmalloc __kmalloc devm_kmalloc mempool_kmalloc sg_kmalloc sock_kmalloc We previously need --filter option for that. Signed-off-by: Masami Hiramatsu --- tools/perf/Docume

[PATCH perf/core v2 5/8] perf probe: Allow to use filter on --del command

2015-04-23 Thread Masami Hiramatsu
This makes perf-probe --del option to accept filter rules not only simple glob pattern. This simplifies the code and improve the flexibility. E.g. if we remove 2 different pattern events, we need 2 -d options. # ./perf probe -d vfs\* -d malloc Removed event: probe_libc:malloc Rem

[PATCH perf/core v2 8/8] perf probe: Cleanup and consolidate command parsers

2015-04-23 Thread Masami Hiramatsu
To simplify the perf-probe command code, consolidate some similar functions and use command short-name for command classification, instead of separated booleans. Signed-off-by: Masami Hiramatsu --- tools/perf/builtin-probe.c | 105 1 file changed, 37

[PATCH perf/core v2 4/8] perf probe: Accept filter argument for --list

2015-04-23 Thread Masami Hiramatsu
Currently, perf-probe --list option ignores given event filter. # ./perf probe -l vfs\* probe:vfs_read (on vfs_read@ksrc/linux-3/fs/read_write.c) probe_libc:malloc(on __libc_malloc@malloc/malloc.c in /usr/lib64/libc-2.17.so) This changes --list option to accept t

[PATCH perf/core v2 3/8] perf probe: Accept multiple filter options

2015-04-23 Thread Masami Hiramatsu
Accept multiple filter options. Each filters are combined by logical-or. E.g. --filter abc* --filter *def is same as --filter abc*|*def Signed-off-by: Masami Hiramatsu --- tools/perf/builtin-probe.c | 14 +- tools/perf/util/strfilter.c | 34 ++ to

[PATCH perf/core v2 2/8] [BUGFIX] perf probe: Remove all probes matches given pattern at once

2015-04-23 Thread Masami Hiramatsu
Fix perf-probe --del option to delete all matched probes in both of kprobes and uprobes at once. When we have 2 or more events on different binaries as below, # ./perf probe -l probe:vfs_read (on vfs_read@ksrc/linux-3/fs/read_write.c) probe_libc:malloc(on __libc_malloc@mall

[PATCH 1/2] staging: sm7xxfb: use framebuffer_alloc and release

2015-04-23 Thread Sudip Mukherjee
use the standard framebuffer_alloc() and framebuffer_release() instead of custom defined function. for making that change we had to change a member of the private structure from a variable to pointer and had to touch almost all places of the file. since fb was changed into a pointer so all instance

Re: [PATCH] tools: perf: consistently use PRIu64 for printing u64 values

2015-04-23 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 23, 2015 at 02:40:37PM +0100, Will Deacon escreveu: > Building the perf tool for 32-bit ARM results in the following build > error due to a combination of an incorrect conversion specifier and > compiling with -Werror: > > builtin-kmem.c: In function ‘print_page_summary’: > builtin

Re: [PATCH v16] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-04-23 Thread Mathieu Desnoyers
- Original Message - > On Wed, 22 Apr 2015 17:40:51 -0700 > Stephen Hemminger wrote: > > > The syscall should just return 0. > > Let the application not worry about how many CPU's are present > > +1 This is indeed how I implemented it initially. The nice thing about this approach is tha

[PATCH] net: phy: micrel: don't do clock-mode-select if we got NULL clock

2015-04-23 Thread Niklas Cassel
Signed-off-by: Niklas Cassel --- drivers/net/phy/micrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 1190fd8..a422036 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -548,7 +548,7 @@ static

[PATCH] tools: perf: consistently use PRIu64 for printing u64 values

2015-04-23 Thread Will Deacon
Building the perf tool for 32-bit ARM results in the following build error due to a combination of an incorrect conversion specifier and compiling with -Werror: builtin-kmem.c: In function ‘print_page_summary’: builtin-kmem.c:644:9: error: format ‘%lu’ expects argument of type ‘long unsigned

[PATCH 2/2] staging: sm7xxfb: remove unused functions

2015-04-23 Thread Sudip Mukherjee
removed the smtc_alloc_fb_info() and smtc_free_fb_info() functions which were not used anymore. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 32 1 file changed, 32 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/s

Re: [PATCH] HSI: cmt_speech: fix timestamp interface

2015-04-23 Thread Thomas Gleixner
On Thu, 16 Apr 2015, Sebastian Reichel wrote: > The user interface for timestamps in the new cmt_speech > driver is broken in multiple ways: > > - The layout is incompatible between 32-bit and 64-bit user > space, because of the size differences in 'struct timespec'. > This means that the dri

Re: [PATCH] nand: Add NAND driver for Mikrotik RB4xx series boards

2015-04-23 Thread Bert Vermeulen
On 04/21/2015 04:55 PM, Andy Shevchenko wrote: >> +static unsigned char rb4xx_nand_read_byte(struct mtd_info *mtd) >> +{ >> + struct nand_chip *chip = mtd->priv; >> + struct rb4xx_nand_info *info = chip->priv; >> + unsigned char data = 0; >> + int ret; >> + >> + ret =

[PATCH] staging: fsl-mc: Remove redundant initalization of the .owner field

2015-04-23 Thread Gujulan Elango, Hari Prasath (H.)
This patch removes the redundant static initialization of the .owner field from this driver as it is being overidden by the call from the platform driver register Signed-off-by: Hari Prasath --- drivers/staging/fsl-mc/bus/mc-bus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/stagi

Re: Thunderbolt hotplug not working on MacMini7,1

2015-04-23 Thread Adam Goode
On Thu, Apr 23, 2015 at 6:08 AM, Andreas Noever wrote: > Hi Adam, > > On my system (MacBookPro10,1 - 4 channel TB1) the bridges and the > controller both use 0x1547 and are only differentiated by > subvendor/subdevice. > > 0x156c is the 4 channel TB2 controller and was originally added by > Matthe

Re: [PATCH v3 3/4] base/platform: Continue on insert_resource() error

2015-04-23 Thread Bjorn Helgaas
On Thu, Apr 23, 2015 at 09:55:13AM +0200, Ricardo Ribalda Delgado wrote: > Hi Bjorn: > > On Wed, Apr 22, 2015 at 6:44 PM, Bjorn Helgaas wrote: > > > Usual style for referencing a commit is "(see 02bbde7849e6 ('Revert "of: > > use platform_device_add"'))". > > Do you make that reference manually

[PATCH v3] mm/slab_common: Support the slub_debug boot option on specific object size

2015-04-23 Thread Gavin Guo
The slub_debug=PU,kmalloc-xx cannot work because in the create_kmalloc_caches() the s->name is created after the create_kmalloc_cache() is called. The name is NULL in the create_kmalloc_cache() so the kmem_cache_flags() would not set the slub_debug flags to the s->flags. The fix here set up a kmall

Re: [PATCH] watchdog: Fix watchdog_nmi_enable_all()

2015-04-23 Thread Don Zickus
On Thu, Apr 23, 2015 at 04:30:22AM -0400, Ulrich Obergfell wrote: > > - Original Message - > > From: "Andrew Morton" > > To: "Don Zickus" > > Cc: "LKML" , "Ulrich Obergfell" > > > > Sent: Wednesday, April 22, 2015 10:12:01 PM > > Subject: Re: [PATCH] watchdog: Fix watchdog_nmi_enable_al

[PATCH v7 3/3] leds: Add ktd2692 flash LED driver

2015-04-23 Thread Ingi Kim
This patch adds a driver to support the ktd2692 flash LEDs. ktd2692 can control flash current by ExpressWire interface. Signed-off-by: Ingi Kim Acked-by: Seung-Woo Kim --- drivers/leds/Kconfig| 9 + drivers/leds/Makefile | 1 + drivers/leds/leds-ktd2692.c | 435 +++

[PATCH v7 2/3] leds: ktd2692: add device tree bindings for ktd2692

2015-04-23 Thread Ingi Kim
This patch adds the device tree bindings for ktd2692 flash LEDs. Add Optional properties of child node for Flash LED Signed-off-by: Ingi Kim Acked-by: Seung-Woo Kim --- .../devicetree/bindings/leds/leds-ktd2692.txt | 47 ++ 1 file changed, 47 insertions(+) create mode

[PATCH v7 1/3] of: Add vendor prefix for Kinetic technologies

2015-04-23 Thread Ingi Kim
This patch adds vendor prefix for Kinetic technologies Signed-off-by: Ingi Kim Acked-by: Rob Herring Acked-by: Seung-Woo Kim --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Do

[PATCH v7 0/3] Add ktd2692 Flash LED driver using LED Flash class

2015-04-23 Thread Ingi Kim
This patch adds ktd2692 Flash LED driver with LED Flash class Change in v7: - Add flash-max-microamp property for Flash LED - Change gpio-legacy interface to gpio consumer interface Change in v6 resend: - Adjust indent using checkpatch.pl script with strict option Change

Re: [PATCH] drm/i915: Add checks to i915_bind_vma

2015-04-23 Thread Josh Boyer
On Wed, Apr 22, 2015 at 12:45 PM, Mika Kuoppala wrote: > The current aliasing ppgtt implementation allocates > the page table structures on driver initialization > for the entire vm address space. Earlier the page tables > were allocated as array of struct pages, but introduction > of dynamic allo

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-23 Thread Nishanth Menon
On 04/23/2015 05:17 AM, grygorii.stras...@linaro.org wrote: > On 04/23/2015 03:00 AM, Nishanth Menon wrote: >> On 04/22/2015 08:26 AM, grygorii.stras...@linaro.org wrote: >>> Hi, >>> >>> On 04/21/2015 03:51 AM, Nishanth Menon wrote: Alarm interrupt enable register is at offset 0x7, while the t

Re: [PATCH] x86_64: use -mskip-rax-setup when available

2015-04-23 Thread Borislav Petkov
On Thu, Apr 23, 2015 at 02:55:02PM +0200, Rasmus Villemoes wrote: > I think we're talking past each other. What I'd like credit for is > coming up with the idea of omitting the xor %eax,%eax in the first place > (the original mail was sent to x...@kernel.org [cc'ed to a few x86 > maintainers], but

Re: [PATCH v6 2/3] sched/rt: Fix wrong SMP scheduler behavior for equal prio cases

2015-04-23 Thread Steven Rostedt
On Thu, 23 Apr 2015 14:53:27 +0800 pang.xun...@zte.com.cn wrote: > > Why not use Peter's idea of instead of checking PREEMPT_ACTIVE, just > > check if the task is on the runqueue or not. If it scheduled out, it > > would take itself off the runqueue, if it was preempted by anything, it > > would

Re: Re: [PATCH perf/core 5/8] perf probe: Allow to use filter on --del command

2015-04-23 Thread Masami Hiramatsu
(2015/04/22 22:56), Namhyung Kim wrote: > On Tue, Apr 21, 2015 at 08:42:06PM +0900, Masami Hiramatsu wrote: >> -int del_perf_probe_events(struct strlist *dellist) >> +int del_perf_probe_events(struct strfilter *filter) >> { >> -int ret = -1, ret2, ufd = -1, kfd = -1; >> -char buf[128]; >>

Re: [patch 18/39] tick: sched: Force tick interrupt and get rid of softirq magic

2015-04-23 Thread Thomas Gleixner
On Thu, 23 Apr 2015, Frederic Weisbecker wrote: > On Wed, Apr 22, 2015 at 04:32:11PM +0200, Thomas Gleixner wrote: > > On Wed, 22 Apr 2015, Frederic Weisbecker wrote: > > > But the reprogramming happens only under "if ((long)delta_jiffies >= 1)". > > > Probably this condition should go away as wel

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Greg Kroah-Hartman
On Mon, Apr 13, 2015 at 09:03:50PM +0200, Greg Kroah-Hartman wrote: > The following changes since commit 9eccca0843205f87c00404b663188b88eb248051: > > Linux 4.0-rc3 (2015-03-08 16:09:09 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregk

[PATCH] kdbus: pool: use __vfs_read()

2015-04-23 Thread Greg Kroah-Hartman
From: Sergei Zviagintsev After commit 5d5d56897530 ("make new_sync_{read,write}() static") ->read() cannot be called directly. kdbus_pool_slice_copy() leads to oops, which can be reproduced by launching tools/testing/selftests/kdbus/kdbus-test -t message-quota: [ 1167.146793] BUG: unable to han

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Greg KH
On Thu, Apr 23, 2015 at 03:59:02PM +0300, Pantelis Antoniou wrote: > It’s the same reason that the device tree core is using it. > >>> > >>> It is doing that for "raw" device tree files, not individual attributes, > >>> right? > >>> > >> > >> Each property of a device tree is a binary attri

[GIT PULL] pwm: Changes for v4.1-rc1

2015-04-23 Thread Thierry Reding
Hi Linus, The following changes since commit c517d838eb7d07bbe9507871fab3931deccff539: Linux 4.0-rc1 (2015-02-22 18:21:14 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.1-rc1 for you to fetch changes

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Pantelis Antoniou
Hi Greg, > On Apr 23, 2015, at 15:54 , Greg KH wrote: > > On Thu, Apr 23, 2015 at 03:39:21PM +0300, Pantelis Antoniou wrote: >> Hi Greg, >> >>> On Apr 23, 2015, at 15:33 , Greg KH wrote: >>> >>> On Thu, Apr 23, 2015 at 03:00:03PM +0300, Pantelis Antoniou wrote: Hi Rob, > On Apr

Re: [PATCH 1/2] cpufreq: mediatek: Add MT8173 cpufreq driver

2015-04-23 Thread Mark Rutland
> +/* > + * This is a temporary solution until we have new OPPv2 bindings. Therefore > we > + * could describe the OPPs with (freq, volt, volt) tuple properly in device > + * tree. > + */ > + > +/* OPP table for LITTLE cores of MT8173 */ > +struct mtk_cpu_opp mt8173_l_opp[] = { > + OPP(50700

Re: [PATCH] x86_64: use -mskip-rax-setup when available

2015-04-23 Thread Rasmus Villemoes
On Thu, Apr 23 2015, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 01:00:26PM +0200, Rasmus Villemoes wrote: >> > or you want attribution or ...? >> >> That would be nice. > > I fail to see for what - I see H.J. Lu's patch from Dec. 2014 and you > repeating the same patch months later. I thi

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Greg KH
On Thu, Apr 23, 2015 at 03:39:21PM +0300, Pantelis Antoniou wrote: > Hi Greg, > > > On Apr 23, 2015, at 15:33 , Greg KH wrote: > > > > On Thu, Apr 23, 2015 at 03:00:03PM +0300, Pantelis Antoniou wrote: > >> Hi Rob, > >> > >>> On Apr 15, 2015, at 04:27 , Rob Herring wrote: > >>> > >>> On Tue,

Re: [PATCH] x86_64: use -mskip-rax-setup when available

2015-04-23 Thread H.J. Lu
On Thu, Apr 23, 2015 at 5:29 AM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 01:00:26PM +0200, Rasmus Villemoes wrote: >> > or you want attribution or ...? >> >> That would be nice. > > I fail to see for what - I see H.J. Lu's patch from Dec. 2014 and you > repeating the same patch months lat

Re: [PATCH 2/2] ARM64: mt8173: dts Add MT8173 cpufreq driver support

2015-04-23 Thread Mark Rutland
On Mon, Apr 20, 2015 at 10:27:27AM +0100, pi-cheng.chen wrote: > This patch adds voltage supplies and clocks used by MT8173 cpufreq driver. > > Signed-off-by: pi-cheng.chen This series has no bindings for these properties. > --- > arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 9 + > ar

Re: [PATCH] kernfs: remove outdated and confusing comment

2015-04-23 Thread Wolfram Sang
On Wed, Mar 11, 2015 at 07:45:31AM -0400, Tejun Heo wrote: > On Wed, Mar 11, 2015 at 11:26:02AM +0100, Wolfram Sang wrote: > > From: Wolfram Sang > > > > Grabbing the parent is not happening anymore since 2010 (e72ceb8ccac5f7 > > "sysfs: Remove sysfs_get/put_active_two"). Remove this confusing >

Re: [PATCH 2/2] mtd: nand: Add support for Arasan Nand Flash Controller

2015-04-23 Thread Michal Simek
On 04/16/2015 03:56 PM, Punnaiah Choudary Kalluri wrote: > Added the basic driver for Arasan Nand Flash Controller used in > Zynq UltraScale+ MPSoC. It supports only Hw Ecc and upto 24bit > correction. > > Signed-off-by: Punnaiah Choudary Kalluri > --- > drivers/mtd/nand/Kconfig |7 + >

Re: iwlwifi getting stuck with current Linus' tree (646da63172)

2015-04-23 Thread Piotr Karbowski
Hello, On Thu, Apr 23, 2015 at 11:15 AM, Jiri Kosina wrote: > On Thu, 23 Apr 2015, Grumbach, Emmanuel wrote: > >> > I will try it, but I expect the result to be bogus because of this, >> > unfortunately. >> >> I can understand. A few users reported that this bug occurred more >> reliably when mov

Re: [PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-04-23 Thread Purcareata Bogdan
On 23.04.2015 03:30, Scott Wood wrote: On Wed, 2015-04-22 at 15:06 +0300, Purcareata Bogdan wrote: On 21.04.2015 03:52, Scott Wood wrote: On Mon, 2015-04-20 at 13:53 +0300, Purcareata Bogdan wrote: There was a weird situation for .kvmppc_mpic_set_epr - its corresponding inner function is kvmpp

Re: [PATCH 1/2] timer: Avoid waking up an idle-core by migrate running timer

2015-04-23 Thread Thomas Gleixner
On Wed, 22 Apr 2015, Eric Dumazet wrote: > On Wed, 2015-04-22 at 23:56 +0200, Thomas Gleixner wrote: > > > -int get_nohz_timer_target(int pinned) > > +int get_nohz_timer_target(void) > > { > > - int cpu = smp_processor_id(); > > - int i; > > + int i, cpu = smp_processor_id(); > > struct

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Pantelis Antoniou
Hi Greg, > On Apr 23, 2015, at 15:33 , Greg KH wrote: > > On Thu, Apr 23, 2015 at 03:00:03PM +0300, Pantelis Antoniou wrote: >> Hi Rob, >> >>> On Apr 15, 2015, at 04:27 , Rob Herring wrote: >>> >>> On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Antoniou >>> wrote: Implement a number of sysfs

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Denys Vlasenko
On 04/23/2015 02:01 PM, Brian Gerst wrote: > The patch does appear to fix the crash. Thanks for testing it. I changed the patch a bit and sent it to Ingo. Can you test that one and confirm that it also works? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] x86/asm/entry/32: Restore %ss before SYSRETL if necessary

2015-04-23 Thread Denys Vlasenko
AMD docs say that SYSRET32 loads %ss selector with a value from a MSR, but *cached descriptor* of %ss is not modified. (Intel CPUs reset the descriptor to a fixed, valid state). It was observed to cause Wine crashes. Conjectured sequence of events causing it is as follows: 1. Wine process enters

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Greg KH
On Thu, Apr 23, 2015 at 03:00:03PM +0300, Pantelis Antoniou wrote: > Hi Rob, > > > On Apr 15, 2015, at 04:27 , Rob Herring wrote: > > > > On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Antoniou > > wrote: > >> Implement a number of sysfs attributes for overlays. > >> > >> * A throw once master enabl

Re: [PATCH] x86_64: use -mskip-rax-setup when available

2015-04-23 Thread Borislav Petkov
On Thu, Apr 23, 2015 at 01:00:26PM +0200, Rasmus Villemoes wrote: > > or you want attribution or ...? > > That would be nice. I fail to see for what - I see H.J. Lu's patch from Dec. 2014 and you repeating the same patch months later. Don't get me wrong - I'd gladly add your attribution too but

[PATCH 1/2] rtc: interface: Fix coding style violations

2015-04-23 Thread Krzysztof Kozlowski
Fix issues reported by checkpatch: ERROR: open brace '{' following struct go on the same line ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Krzysztof Kozlowski --- include/linux/rtc.h | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/rtc.h b/i

[PATCH 2/2] rtc: interface: Remove unused return value from rtc_timer_cancel()

2015-04-23 Thread Krzysztof Kozlowski
The rtc_timer_cancel() always returns 0 and cannot fail (calls only other void-returning functions). Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/interface.c | 4 +--- include/linux/rtc.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/interface.c b/d

[PATCH] regulator: Remove unneeded semicolons

2015-04-23 Thread Krzysztof Kozlowski
Remove unneeded semicolons after the switch statement to satisfy coccicheck. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/of_regulator.c | 2 +- drivers/regulator/s2mps11.c | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/of_regu

Re: [PATCH] xfs: call xfs_idestroy_fork() in xfs_ilock() critical section

2015-04-23 Thread Brian Foster
On Thu, Apr 23, 2015 at 09:17:58AM +1000, Dave Chinner wrote: > On Wed, Apr 22, 2015 at 01:33:41PM -0400, Waiman Long wrote: > > The commit f7be2d7f594cbc ("xfs: push down inactive transaction > > mgmt for truncate") refactored the xfs_inactive() function > > in fs/xfs/xfs_inode.c. However, it als

Re: [PATCH] scripts/gdb: Add command to check list consistency

2015-04-23 Thread Jan Kiszka
On 2015-04-23 14:10, Jan Kiszka wrote: > On 2015-04-22 09:32, Thiébaud Weksteen wrote: >> +nb = 0 >> +list_head_ptr_type = list_head.get_type().pointer() >> +c = head.cast(list_head_ptr_type) > > Why casting? Is it a common use case to not have the list head as a > variable at hand? Th

[PATCH] spi: fsl-spi: fix devm_ioremap_resource() error case

2015-04-23 Thread Christophe Leroy
devm_ioremap_resource() doesn't return NULL but an ERR_PTR on error. Reported-by: Jonas Gorsky Signed-off-by: Christophe Leroy --- drivers/spi/spi-fsl-cpm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-cpm.c b/drivers/spi/spi-fsl-cpm.c index 4e5

Re: Abuse of CONFIG_FOO's as feature selectors

2015-04-23 Thread Stefan Hengelein
2015-04-22 20:56 GMT+02:00 Andreas Ruprecht : > Hi, > > On 22.04.2015 20:20, Denys Vlasenko wrote: >> Hi, >> >> Kernel has a growing number of CONFIG items which are not >> user-selectable features of their particular kernel builds, >> but simply booleans controlled by other CONFIGs. >> Example: >>

Re: [PATCH] scripts/gdb: Add command to check list consistency

2015-04-23 Thread Jan Kiszka
On 2015-04-22 09:32, Thiébaud Weksteen wrote: > Add a gdb script to verify the consistency of lists. > > Signed-off-by: Thiébaud Weksteen > --- > scripts/gdb/linux/lists.py | 78 > ++ > scripts/gdb/vmlinux-gdb.py | 1 + > 2 files changed, 79 insertio

Re: [PATCH 1/3] of: Allow OF to be enabled if COMPILE_TEST to increase coverage

2015-04-23 Thread Pantelis Antoniou
Hi Rob, > On Apr 6, 2015, at 16:13 , Rob Herring wrote: > > +Pantelis > > On Sun, Apr 5, 2015 at 9:59 AM, Geert Uytterhoeven > wrote: >> Currently the OF configuration symbol is explicitly selected on >> architectures that support device trees and/or Open Firmware. >> However, there's no tech

Re: [GIT PULL] First batch of KVM changes for 4.1

2015-04-23 Thread Paolo Bonzini
On 23/04/2015 13:51, Marcelo Tosatti wrote: >>> > > https://bugzilla.redhat.com/show_bug.cgi?id=1174664 >> > >> > That was the missing volatile in an asm. Older compilers didn't catch >> > it. :( > How do you know that? It looks like memory corruption (look at the > pattern at the end). I susp

Re: [PATCH 1/2] cpufreq: mediatek: Add MT8173 cpufreq driver

2015-04-23 Thread Sascha Hauer
On Mon, Apr 20, 2015 at 05:27:26PM +0800, pi-cheng.chen wrote: > This patch implements MT8173 specific cpufreq driver with OPP table defined > in the driver code. > > Signed-off-by: pi-cheng.chen > --- > drivers/cpufreq/Kconfig.arm | 6 + > drivers/cpufreq/Makefile | 1 + > driv

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Brian Gerst
On Thu, Apr 23, 2015 at 7:46 AM, Denys Vlasenko wrote: > On 04/23/2015 01:28 PM, Brian Gerst wrote: >>> Looking at the error message: >>> Unhandled exception: stack overflow in 32-bit code (0xf779bc07). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:f779bc

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-23 Thread Pantelis Antoniou
Hi Rob, > On Apr 15, 2015, at 04:27 , Rob Herring wrote: > > On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Antoniou > wrote: >> Implement a number of sysfs attributes for overlays. >> >> * A throw once master enable switch to protect against any >> further overlay applications if the administrator

Re: [PATCH 2/2] cpufreq: powernv: Register for OCC related opal_message notification

2015-04-23 Thread Preeti U Murthy
Hi Shilpa, On 04/22/2015 10:34 PM, Shilpasri G Bhat wrote: > OCC is an On-Chip-Controller which takes care of power and thermal > safety of the chip. During runtime due to power failure or > overtemperature the OCC may throttle the frequencies of the CPUs to > remain within the power budget. > >

[PATCH v5] dmaengine: xgene-dma: Fix sparse wannings warnings

2015-04-23 Thread Rameshwar Prasad Sahu
v5 changes: * Re-pull v3 changes that I missed in v4 v4 changes: * Re-generate patch on top of latest for-linux git v3 changes: * Minor changes in length setting in DMA descriptor v2 changes: * Code cleanup * Changed way of setting DMA descriptors for big-

Re: [GIT PULL] First batch of KVM changes for 4.1

2015-04-23 Thread Marcelo Tosatti
On Thu, Apr 23, 2015 at 11:13:23AM +0200, Paolo Bonzini wrote: > > > On 22/04/2015 23:21, Marcelo Tosatti wrote: > > On Mon, Apr 20, 2015 at 01:27:58PM -0700, Andy Lutomirski wrote: > >> On Mon, Apr 20, 2015 at 9:59 AM, Paolo Bonzini wrote: > >>> > >>> > >>> On 17/04/2015 22:18, Marcelo Tosatti

[PATCH] x86: pvclock: Really remove the sched notifier for cross-cpu migrations

2015-04-23 Thread Paolo Bonzini
This reverts commits 0a4e6be9ca17c54817cf814b4b5aa60478c6df27 and 80f7fdb1c7f0f9266421f823964fd1962681f6ce. The task migration notifier was originally introduced in order to support the pvclock vsyscall with non-synchronized TSC, but KVM only supports it with synchronized TSC. Hence, on KVM the r

Re: [patch 18/39] tick: sched: Force tick interrupt and get rid of softirq magic

2015-04-23 Thread Frederic Weisbecker
On Wed, Apr 22, 2015 at 04:32:11PM +0200, Thomas Gleixner wrote: > On Wed, 22 Apr 2015, Frederic Weisbecker wrote: > > But the reprogramming happens only under "if ((long)delta_jiffies >= 1)". > > Probably this condition should go away as well. > > Errm. > > if (!ts->tick_stopped && delta_j

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Denys Vlasenko
On 04/23/2015 01:28 PM, Brian Gerst wrote: >> Looking at the error message: >> >>> Unhandled exception: stack overflow in 32-bit code (0xf779bc07). >>> Register dump: >>> CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b >>> EIP:f779bc07 ESP:00aed60c EBP:00aed750 EFLAGS:00010216( R- -- I -A-P-

[PATCH] kvm: x86: fix kvmclock update protocol

2015-04-23 Thread Paolo Bonzini
From: Radim Krčmář The kvmclock spec says that the host will increment a version field to an odd number, then update stuff, then increment it to an even number. The host is buggy and doesn't do this, and the result is observable when one vcpu reads another vcpu's kvmclock data. There's no good w

[PATCH v3] w1: introduce an ability to specify microseconds bus scanning intervals

2015-04-23 Thread Dmitry Khromov
Some of 1-Wire devices commonly associated with physical access control systems are attached/generate presence for as short as 100 ms - hence the tens-to-hundreds milliseconds scan intervals are required. Signed-off-by: Dmitry Khromov --- Documentation/ABI/stable/sysfs-bus-w1 | 11 +++ D

Re: [PATCH v16] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-04-23 Thread Michael Kerrisk (man-pages)
Hi Mathieu, On 22 April 2015 at 23:01, Mathieu Desnoyers wrote: > - Original Message - >> On 22 April 2015 at 21:43, Mathieu Desnoyers >> wrote: >> > - Original Message - >> >> On Fri, 2015-04-17 at 11:06 -0400, Mathieu Desnoyers wrote: >> >> > [ Not in this patch: tests (Pranith

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-23 Thread Jean Delvare
Le Tuesday 21 April 2015 à 19:03 +0300, Ivan.khoronzhuk a écrit : > On 21.04.15 18:36, Jean Delvare wrote: > > I just found that more work is needed here for the SMBIOS v3 entry > > point case. These entry points do not specify the exact length of the > > table, but only its maximum. The real world

Re: [PATCH v2] w1: introduce an ability to specify microseconds bus scanning intervals

2015-04-23 Thread Dmitry Khromov
On 23.04.2015 12:20, Greg KH wrote: On Thu, Apr 23, 2015 at 12:55:35AM +0300, Dmitry Khromov wrote: Signed-off-by: Dmitry Khromov --- drivers/w1/w1.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) You added a new sysfs file, without any documentation about it added

Re: [GIT PULL] First batch of KVM changes for 4.1

2015-04-23 Thread Paolo Bonzini
On 23/04/2015 00:55, Marcelo Tosatti wrote: > On Wed, Apr 22, 2015 at 11:01:49PM +0200, Paolo Bonzini wrote: >> >> >> On 22/04/2015 22:56, Marcelo Tosatti wrote: > But then why was the task migration notifier even in Jeremy's original > code for Xen? >>> To cover for the vcpu1 -> vcpu2 -

arm/arm64 perf build issue with mainline

2015-04-23 Thread Will Deacon
Hi all, Commit 6428c59a97de ("perf tools: Set JOBS based on CPU or processor") causes weird behaviour on arm/arm64 platforms because we use the "CPU" prefix for things like: CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part: 0xd03 CPU revision: 0 in /proc/cpui

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Brian Gerst
On Thu, Apr 23, 2015 at 5:20 AM, Denys Vlasenko wrote: > On 04/23/2015 09:37 AM, Brian Gerst wrote: >> On Tue, Mar 31, 2015 at 8:38 AM, tip-bot for Denys Vlasenko >> wrote: >>> Commit-ID: e7d6eefaaa443130079d73cd05039d90b3db7a4a >>> Gitweb: >>> http://git.kernel.org/tip/e7d6eefaaa443130079d

Re: [v6] kvm/fpu: Enable fully eager restore kvm FPU

2015-04-23 Thread Jan Kiszka
On 2015-04-23 12:40, Paolo Bonzini wrote: > > > On 23/04/2015 23:13, Liang Li wrote: >> Romove lazy FPU logic and use eager FPU entirely. Eager FPU does >> not have performance regression, and it can simplify the code. >> >> When compiling kernel on westmere, the performance of eager FPU >> is ab

Re: [PATCH 1/2] powerpc/powernv: Add definition of OPAL_MSG_OCC message type

2015-04-23 Thread Preeti U Murthy
Hi Shilpa, On 04/22/2015 10:34 PM, Shilpasri G Bhat wrote: > Add OPAL_MSG_OCC message definition to opal_message_type to notify OCC s/notify OCC events/receive OCC events ? > events like reset, load and throttled. Host performance can be > affected when OCC is reset or OCC throttles the max Psta

Re: [PATCH v2] mm/slab_common: Support the slub_debug boot option on specific object size

2015-04-23 Thread Gavin Guo
Hi Rasmus, On Thu, Apr 23, 2015 at 5:55 PM, Rasmus Villemoes wrote: > On Wed, Apr 22 2015, Gavin Guo wrote: > >> /* >> + * The kmalloc_names is for temporary usage to make >> + * slub_debug=,kmalloc-xx option work in the boot time. The >> + * kmalloc_index() support to 2^26=

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Denys Vlasenko
On 04/23/2015 09:37 AM, Brian Gerst wrote: > This patch unfortunately is causing Wine to break on some applications: > > Unhandled exception: stack overflow in 32-bit code (0xf779bc07). > Register dump: > CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b > EIP:f779bc07 ESP:00aed60c EBP:00aed750 EF

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Brian Gerst
On Thu, Apr 23, 2015 at 5:56 AM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 11:20:56AM +0200, Denys Vlasenko wrote: >> * what if %ss before syscall was NOT the usual value of 0x2b, but some >> other segment, not the typical 0-base, 0x limit 32-bit expand-up one? >> Not restoring prop

Re: [PATCH v4] dmaengine: xgene-dma: Fix sparse wannings and coccinelle warnings

2015-04-23 Thread Rameshwar Sahu
On Mon, Apr 20, 2015 at 4:23 PM, Rameshwar Prasad Sahu wrote: > v4 changes: > * Re-generate patch on top of latest for-linux git > > v3 changes: > * Minor changes in length setting in DMA descriptor > > v2 changes: > * Code cleanup > * Changed way of setting DMA des

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Denys Vlasenko
On 04/23/2015 12:44 PM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 12:26:43PM +0200, Denys Vlasenko wrote: >> Yes. It loads *selector*. AMD docs say that selector is loaded as you say, >> but *cached descriptor* of SS (which is a different entity) is not modified. >> >> If *cached descriptor*

Re: [PATCH] x86_64: use -mskip-rax-setup when available

2015-04-23 Thread Rasmus Villemoes
On Mon, Apr 20 2015, Borislav Petkov wrote: > On Mon, Apr 20, 2015 at 10:24:44PM +0200, Rasmus Villemoes wrote: >> Hadn't seen that, so I wrongly assumed everybody had forgotten about >> it. I don't care about the S-o-b on the trivial Makefile patch, but my >> request for a feature-suggested-by o

Re: [PATCH 1/2] arm64: Mark PMU interrupt IRQF_NO_THREAD

2015-04-23 Thread Will Deacon
On Tue, Apr 21, 2015 at 04:05:54PM +0100, Anders Roxell wrote: > Mark the PMU interrupts as non-threadable, as is the case with > arch/arm: d9c3365 ARM: 7813/1: Mark pmu interupt IRQF_NO_THREAD > > Suggested-by: Sebastian Andrzej Siewior > Signed-off-by: Anders Roxell > --- > arch/arm64/kernel/

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Borislav Petkov
On Thu, Apr 23, 2015 at 12:26:43PM +0200, Denys Vlasenko wrote: > Yes. It loads *selector*. AMD docs say that selector is loaded as you say, > but *cached descriptor* of SS (which is a different entity) is not modified. > > If *cached descriptor* is invalid, in 32-bit mode stack ops > will fail. (

Re: [v6] kvm/fpu: Enable fully eager restore kvm FPU

2015-04-23 Thread Paolo Bonzini
On 23/04/2015 23:13, Liang Li wrote: > Romove lazy FPU logic and use eager FPU entirely. Eager FPU does > not have performance regression, and it can simplify the code. > > When compiling kernel on westmere, the performance of eager FPU > is about 0.4% faster than lazy FPU. > > Signed-off-by: L

[GIT PULL] ACPI for arm64

2015-04-23 Thread Will Deacon
Hi Linus, ACPI for arm64 has been in development for a while now and hardware has been available that can boot with either FDT or ACPI tables. This has been made possible by both changes to the ACPI spec to cater for ARM-based machines (known as "hardware-reduced" in ACPI parlance) but also a Lina

Re: Enabling regulators form userspace

2015-04-23 Thread Mark Brown
On Wed, Apr 22, 2015 at 01:56:44PM -0700, Dmitry Torokhov wrote: > On Wed, Apr 22, 2015 at 09:11:12PM +0100, Mark Brown wrote: > > There's already a userspace consumer driver you can bind for test > > purposes which could be used here. > Thanks for the pointer, but I do not think this would work

[PATCH 02/13] mm: meminit: Move page initialization into a separate function.

2015-04-23 Thread Mel Gorman
From: Robin Holt Currently, memmap_init_zone() has all the smarts for initializing a single page. A subset of this is required for parallel page initialisation and so this patch breaks up the monolithic function in preparation. Signed-off-by: Robin Holt Signed-off-by: Nathan Zimmer Signed-off-

[PATCH 04/13] mm: page_alloc: Pass PFN to __free_pages_bootmem

2015-04-23 Thread Mel Gorman
__free_pages_bootmem prepares a page for release to the buddy allocator and assumes that the struct page is initialised. Parallel initialisation of struct pages defers initialisation and __free_pages_bootmem can be called for struct pages that cannot yet map struct page to PFN. This patch passes P

[PATCH 06/13] mm: meminit: Inline some helper functions

2015-04-23 Thread Mel Gorman
early_pfn_in_nid() and meminit_pfn_in_nid() are small functions that are unnecessarily visible outside memory initialisation. As well as unnecessary visibility, it's unnecessary function call overhead when initialising pages. This patch moves the helpers inline. Signed-off-by: Mel Gorman --- inc

[PATCH 05/13] mm: meminit: Make __early_pfn_to_nid SMP-safe and introduce meminit_pfn_in_nid

2015-04-23 Thread Mel Gorman
__early_pfn_to_nid() in the generic and arch-specific implementations use static variables to cache recent lookups. Without the cache boot times are much higher due to the excessive memblock lookups but it assumes that memory initialisation is single-threaded. Parallel initialisation of struct page

[PATCH 03/13] mm: meminit: Only set page reserved in the memblock region

2015-04-23 Thread Mel Gorman
From: Nathan Zimmer Currently we when we initialze each page struct is set as reserved upon initialization. This changes to starting with the reserved bit clear and then only setting the bit in the reserved region. Signed-off-by: Robin Holt Signed-off-by: Nathan Zimmer --- include/linux/mm.h

<    1   2   3   4   5   6   7   8   >