Re: [PATCH] perf stat: Do not show stats if workload fails

2013-12-19 Thread Ingo Molnar
* David Ahern wrote: > Currently perf-stat attempts to show counter stats even if the workload > is bogus: > > $ perf stat -- foo > foo: No such file or directory > > Performance counter stats for 'foo': > >task-clock >context-switches >cpu-migrations >

[PATCH 3/7] perf tools: Set event->header.misc to PERF_RECORD_MISC_GUEST_USER if machine is guest.

2013-12-19 Thread Dongsheng Yang
When we synthesize the mmap events of user space, if machine is guest, we should set the event->header.misc to PERF_RECORD_MISC_GUEST_USER, rather than PERF_RECORD_MISC_USER. Signed-off-by: Dongsheng Yang --- tools/perf/util/event.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[PATCH 5/7] perf tools: Do not synthesize the treads of default guest.

2013-12-19 Thread Dongsheng Yang
As the default guest is designed to handle orphan kernel symboles with --guestkallsysms and --guestmoudles, it has no user space. So we should skip synthesizing threads if machine is default guest. Signed-off-by: Dongsheng Yang --- tools/perf/util/event.c | 9 + 1 file changed, 9

[PATCH 7/7] perf tools: Add support of user space symbols for guest in perf kvm record.

2013-12-19 Thread Dongsheng Yang
# perf kvm --guestmount /tmp/guestmount/ record -a sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.828 MB perf.data.guest (~36163 samples) ] # perf kvm --guestmount /tmp/guestmount/ report Samples: 4K of event

[PATCH 6/7] perf tools: Add support of user space symbols for guest in perf kvm top.

2013-12-19 Thread Dongsheng Yang
# perf kvm --guestmount /tmp/guestmount/ top Samples: 1K of event 'cycles', Event count (approx.): 259112905 17.34% libcrypto.so.1.0.1e [u] 0x0007d971 5.60% [guest.kernel] [g] kallsyms_expand_symbol 5.44% libcrypto.so.1.0.1e [u]

Re: checkpatch.pl error might be false positive

2013-12-19 Thread Josh Triplett
On Thu, Dec 19, 2013 at 02:15:48PM -0800, Joe Perches wrote: > On Thu, 2013-12-19 at 13:01 -0800, Ravi Patel wrote: > > My name is Ravi Patel and I am working for AppliedMicro. > > I am planning to submit APM X-Gene SoC QMTM drivers to open source after > > running checkpatch.pl > > I am seeing

[PATCH 1/7] perf tools: Add support for PERF_RECORD_MISC_GUEST_USER in thread__find_addr_map().

2013-12-19 Thread Dongsheng Yang
This patch remove a TODO in thread__find_addr_map() and add support of PERF_RECORD_MISC_GUEST_USER. Signed-off-by: Dongsheng Yang --- tools/perf/util/event.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index

[PATCH 0/7 V2] Add support of user space symboles for guest.

2013-12-19 Thread Dongsheng Yang
Hi Arnaldo: Please help to review this patchset. Changelog: - v2: * splite the first commit. Dongsheng Yang (7): perf tools: Add support for PERF_RECORD_MISC_GUEST_USER in thread__find_addr_map(). perf tools: Find the proc info under machine->root_dir.

[PATCH 2/7] perf tools: Find the proc info under machine->root_dir.

2013-12-19 Thread Dongsheng Yang
When we synthesize the threads, we are looking for the infomation under /proc. But it is only for host. This patch look for the path of proc under machine->root_dir, then XXX__synthesize_threads() functions can support guest machines. Signed-off-by: Dongsheng Yang --- tools/perf/util/event.c |

[PATCH 4/7] perf tools: Use machine->pid for tgid if mahicne is guest.

2013-12-19 Thread Dongsheng Yang
When we synthesize an comm event, if machine is guest, we should use the pid of machine as the event->comm.pid, rather than tgid of thread. Signed-off-by: Dongsheng Yang --- tools/perf/util/event.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH] oprofile: check whether oprofile perf enabled in op_overflow_handler()

2013-12-19 Thread Weng Meiling
From: Weng Meiling There is a situation event is triggered before oprofile_perf_start() finish. Because the event is still not stored in per_cpu(perf_events, cpu)[event], op_overflow_handler() will print the warning. During the time, if unregistered event is triggered again, the cpu will print

Re: [Xen-devel] [PATCH v2 0/2] xen: vnuma introduction for pv guest

2013-12-19 Thread Elena Ufimtseva
On Fri, Dec 20, 2013 at 2:39 AM, Elena Ufimtseva wrote: > On Wed, Dec 4, 2013 at 8:13 PM, Dario Faggioli > wrote: >> On mer, 2013-12-04 at 01:20 -0500, Elena Ufimtseva wrote: >>> On Tue, Dec 3, 2013 at 7:35 PM, Elena Ufimtseva wrote: >>> > Oh guys, I feel really bad about not replying to these

[PATCH] fs/nilfs2: Integer overflow in nilfs_ioctl_wrap_copy()

2013-12-19 Thread Wenliang Fan
The local variable 'pos' comes from userspace. If a large number was passed, there would be an integer overflow in the following line: pos += n; Signed-off-by: Wenliang Fan --- fs/nilfs2/ioctl.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/nilfs2/ioctl.c

[PATCH v2 2/2] mtd: Fix the behavior of otp write if there is not enough room for data

2013-12-19 Thread Christian Riesch
An OTP write shall write as much data as possible to the OTP memory and return the number of bytes that have actually been written. If no data could be written at all due to lack of OTP memory, return -ENOSPC. Signed-off-by: Christian Riesch Cc: Artem Bityutskiy Cc: Kyungmin Park Cc: Amul

[PATCH v2 0/2] mtd: Harmonize implementations of OTP write and _get_{fact,user}_prot_info

2013-12-19 Thread Christian Riesch
Hi all, In the discussion on my patchset for the OTP support for drivers/mtd/chips/cfi_cmdset_0002.c [1-5], Artem requested two changes in the current code of the OTP write functions and the _get_{fact,user}_prot_info code. These two patches are an attempt to make the requested changes. The

[PATCH v2 1/2] mtd: Add a retlen parameter to _get_{fact,user}_prot_info

2013-12-19 Thread Christian Riesch
Signed-off-by: Christian Riesch Cc: Artem Bityutskiy Cc: Brian Norris --- drivers/mtd/chips/cfi_cmdset_0001.c | 31 +-- drivers/mtd/devices/mtd_dataflash.c |7 --- drivers/mtd/mtdchar.c | 11 ++- drivers/mtd/mtdcore.c

Re: [Xen-devel] [PATCH v2 0/2] xen: vnuma introduction for pv guest

2013-12-19 Thread Elena Ufimtseva
On Wed, Dec 4, 2013 at 8:13 PM, Dario Faggioli wrote: > On mer, 2013-12-04 at 01:20 -0500, Elena Ufimtseva wrote: >> On Tue, Dec 3, 2013 at 7:35 PM, Elena Ufimtseva wrote: >> > Oh guys, I feel really bad about not replying to these emails... Somehow >> > these >> > replies all got deleted..

[GUT PULL] ARC fix for 3.13-rc5

2013-12-19 Thread Vineet Gupta
Hi Linus, This fixes a regression introduced in prev rc. Please merge. Thx, -Vineet --> The following changes since commit 319e2e3f63c348a9b66db4667efa73178e18b17d: Linux 3.13-rc4 (2013-12-15 12:31:33 -0800) are available in the git repository at:

Re: [PATCH] x86: Add check for number of available vectors before CPU down [v2]

2013-12-19 Thread Chen, Gong
On Thu, Dec 19, 2013 at 01:11:32PM -0500, Prarit Bhargava wrote: > > Yep. The question really is this: is the irq mapped to a single vector or > multiple vectors. (I think) > > P. > Yes, this is the original thought I want to express on the bugzilla. On an ideal environment, without irq

Re: [PATCH] Tracing events with GPIOs

2013-12-19 Thread Alexandre Courbot
On Thu, Dec 19, 2013 at 8:38 PM, Jean-Jacques Hiblot wrote: > 2013/12/19 Alexandre Courbot : >> The problems I can see so far: >> >> - Using gpiod, GPIOs are not specified as integers, but are typically >> mapped to a given (device, function) pair (device can be NULL) using >> device

[PATCH] ASoC: simple-card: Add cpu_dai and codec_dai names NULL check

2013-12-19 Thread Xiubo Li
The name of cpu DAI maybe omitted, and then strlen() will lead kernel panic. Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 3d190d0..1d87db8 100644 ---

[PATCH] ASoC: soc-core: Fix the DAI name getting.

2013-12-19 Thread Xiubo Li
>From "ASoC: make snd_soc_dai_link more symmetrical", can we see that the name of CPU DAI maybe omitted. If the DAI name is omitted, try to use the component name instead. Signed-off-by: Xiubo Li --- sound/soc/soc-core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[PATCH] fs/btrfs: Integer overflow in btrfs_ioctl_resize()

2013-12-19 Thread Wenliang Fan
The local variable 'new_size' comes from userspace. If a large number was passed, there would be an integer overflow in the following line: new_size = old_size + new_size; Signed-off-by: Wenliang Fan --- fs/btrfs/ioctl.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCHv2 4/6] Crashdump-Accepting-Active-IOMMU-Copy-Translations

2013-12-19 Thread Baoquan He
On 12/20/13 at 02:04pm, Baoquan He wrote: > On 12/19/13 at 07:49pm, Bill Sumner wrote: > > > +static int copy_page_addr(u64 page_addr, u32 shift, u32 bus, u32 devfn, > > + u64 pte, struct dmar_domain *domain, > > + void *parms) > > +{ > > +

Re: [PATCH 0/6] Generic WorkQueue Engine (GenWQE) device driver (v10)

2013-12-19 Thread Frank Haverkamp
Hi Greg, Am Mittwoch, den 18.12.2013, 16:52 -0800 schrieb Greg KH: > On Wed, Dec 18, 2013 at 04:51:17PM +0100, Frank Haverkamp wrote: > > ping > > Looks good, now applied, thanks for all of the revisions. > > Now the real work starts :) > thank you very much for reviewing and integrating our

Re: [Patch v2 02/13] ACPI, extlog: replace open-coded _DSM specific code with helper functions

2013-12-19 Thread Chen, Gong
On Thu, Dec 19, 2013 at 08:47:46PM +0800, Jiang Liu wrote: > Subject: [Patch v2 02/13] ACPI, extlog: replace open-coded _DSM specific > code with helper functions > X-Mailer: git-send-email 1.7.10.4 > > Use helper functions to simplify _DSM related code in acpi_extlog driver. > Also mark

[PATCH] drivers/staging/bcm: Integer overflow

2013-12-19 Thread Wenliang Fan
The checking condition in 'validateFlash2xReadWrite()' is not sufficient. A large number invalid would cause an integer overflow and pass the condition, which could cause further integer overflows in 'Bcmchar.c:bcm_char_ioctl()'. Signed-off-by: Wenliang Fan --- drivers/staging/bcm/nvm.c | 4

Re: [PATCH] fbcon: Clean up fbcon data in fb_info on FB_EVENT_FB_UNBIND with 0 fbs

2013-12-19 Thread Keith Packard
Keith Packard writes: > When FB_EVENT_FB_UNBIND is sent, fbcon has two paths, one path taken > when there is another frame buffer to switch any affected vcs to and > another path when there isn't. What I meant to attach to this bug report but clearly failed was that I think this case

Re: [PATCH v5][RESEND] X86 platform: New BayTrail IOSF-SB MBI driver

2013-12-19 Thread David E. Box
On Fri, Dec 20, 2013 at 02:59:29AM +0100, Rafael J. Wysocki wrote: > On Thursday, December 19, 2013 02:37:46 PM David E. Box wrote: > > From: "David E. Box" > > > > Current Intel SOC cores use a MailBox Interface (MBI) to provide access to > > unit > > devices connected to the system fabric.

Re: [PATCH v3] cpufreq: imx6q: add of_init_opp_table

2013-12-19 Thread Shawn Guo
On Thu, Dec 19, 2013 at 10:56:28PM -0800, John Tobias wrote: > Add a routine check to see if the platform supplied the OPP table. > Incase there's no OPP table exist, it will try to initialise it. > > It's been tested on iMX6SL board where the platform doesn't have > an OPP table. > >

[PATCH v3] cpufreq: imx6q: add of_init_opp_table

2013-12-19 Thread John Tobias
Add a routine check to see if the platform supplied the OPP table. Incase there's no OPP table exist, it will try to initialise it. It's been tested on iMX6SL board where the platform doesn't have an OPP table. Signed-off-by: John Tobias --- drivers/cpufreq/imx6q-cpufreq.c | 21

Re: [alsa-devel] [RFC PATCH 15/15] ACPI/thinkpad: Fix wrong inclusion in Thinkpad ACPI users.

2013-12-19 Thread Takashi Iwai
At Fri, 20 Dec 2013 00:28:02 +, Zheng, Lv wrote: > > Hi, Takashi and Henrique > > Thanks for reviewing and commenting. > > > From: linux-acpi-ow...@vger.kernel.org > > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Takashi Iwai > > Sent: Wednesday, December 18, 2013 9:06 PM > > >

Re: [PATCH V2 2/2] ARM: tegra: add ams AS3722 device to Venice2 DT

2013-12-19 Thread Laxman Dewangan
On Thursday 19 December 2013 11:53 PM, Stephen Warren wrote: On 12/19/2013 12:28 AM, Laxman Dewangan wrote: On Thursday 19 December 2013 02:25 AM, Stephen Warren wrote: On 12/18/2013 05:52 AM, Laxman Dewangan wrote: Add ams AS3722 entry for gpio/pincontrol and regulators to venice2 DT. This

Re: [PATCH] fuse: Fix IOC_[GS]ETFLAGS argument size brokenness

2013-12-19 Thread Richard Hansen
On 2013-12-19 18:27, Darrick J. Wong wrote: > The IOC_[GS]ETFLAGS ioctls, despite being defined to take a "long" > parameter, actually take "int" parameters. FUSE unfortunately assumed > that the ioctl definitions never lie, and transfers a long's worth of > data in and out of userspace, which

linux-next: Tree for Dec 20

2013-12-19 Thread Stephen Rothwell
Hi all, Changes since 20131219: New tree: clockevents The powerpc tree still had its build failure for which I applied a supplied patch. The sound-asoc tree gained a conflict against the slave-dma tree. The net-next tree lost its new build failure. The mmc tree still had its build failure so

Re: [PATCH] apparmor: remove the "task" arg from may_change_ptraced_domain()

2013-12-19 Thread John Johansen
On 12/19/2013 08:36 PM, Richard Guy Briggs wrote: > On 13/12/18, Oleg Nesterov wrote: >> On 12/18, Richard Guy Briggs wrote: >>> >>> Bcc: r...@redhat.com >>> Subject: Re: [PATCH] apparmor: remove the "task" arg from >>> may_change_ptraced_domain() >>> Reply-To: >>> In-Reply-To:

Re: [tip:x86/mm] x86/mm/numa: Fix 32-bit kernel NUMA boot

2013-12-19 Thread Yinghai Lu
On Thu, Dec 19, 2013 at 6:17 PM, Lans Zhang wrote: > On 12/20/2013 12:44 AM, Yinghai Lu wrote: >> >> On Thu, Dec 19, 2013 at 7:42 AM, tip-bot for Lans Zhang >> wrote: >>> >>> Commit-ID: f3d815cb854b2f6262ade56a4d91a1ed3f1e50c4 >>> Gitweb: >>>

Re: [PATCH 32/38] pcie: add missing put_device call

2013-12-19 Thread Yinghai Lu
On Thu, Dec 19, 2013 at 2:10 PM, Bjorn Helgaas wrote: > [+cc Greg, Yinghai] > > On Thu, Dec 19, 2013 at 04:06:46PM +0100, Levente Kurusa wrote: >> This is required so that we give up the last reference to the device. >> Removed the kfree() as put_device will result in release_pcie_device being >>

Re: [PATCH v3 4/4] futex: Avoid taking hb lock if nothing to wakeup

2013-12-19 Thread Davidlohr Bueso
On Thu, 2013-12-19 at 19:13 -0800, Linus Torvalds wrote: > On Thu, Dec 19, 2013 at 6:22 PM, Davidlohr Bueso wrote: > > > > Ok so when I replied I was thinking about the plist really and not the > > hb->lock ticket counter. Yeah, what you propose does make sense for > > waiters. However in wake

Re: [PATCH v3 2/2] cpufreq: imx6q: add of_init_opp_table

2013-12-19 Thread Shawn Guo
On Thu, Dec 19, 2013 at 08:15:29PM -0800, John Tobias wrote: > Add a routine check to see if the platform supplied the OPP table. > Incase there's not OPP table exist, it will try to get it. > > Signed-off-by: John Tobias > --- > drivers/cpufreq/imx6q-cpufreq.c | 21 + > 1

Re: [PATCHv2 4/6] Crashdump-Accepting-Active-IOMMU-Copy-Translations

2013-12-19 Thread Baoquan He
On 12/19/13 at 07:49pm, Bill Sumner wrote: > +static int copy_page_addr(u64 page_addr, u32 shift, u32 bus, u32 devfn, > + u64 pte, struct dmar_domain *domain, > + void *parms) > +{ > + struct copy_page_addr_parms *ppap = parms; > + > +

Re: [PATCH v3 1/2] ARM: imx6sl: Add cpu frequency scaling support

2013-12-19 Thread Shawn Guo
On Thu, Dec 19, 2013 at 08:15:28PM -0800, John Tobias wrote: > Re-use imx6q cpufreq driver to support cpu > frequency scaling on imx6sl. > > Signed-off-by: John Tobias This one is already applied, so you do not have to resend. Shawn > --- > arch/arm/mach-imx/mach-imx6sl.c | 8 > 1

[PATCH] perf stat: Do not show stats if workload fails

2013-12-19 Thread David Ahern
Currently perf-stat attempts to show counter stats even if the workload is bogus: $ perf stat -- foo foo: No such file or directory Performance counter stats for 'foo': task-clock context-switches cpu-migrations page-faults cycles

Re: [PATCH V3] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-19 Thread David Ahern
Arnaldo: This should go into all stable releases from v3.3 up. On 12/20/13, 11:41 AM, Dongsheng Yang wrote: Currently, if we use perf kvm --guestkallsyms --guestmodules report, we can not get the perf information from perf data file. The all sample are shown as unknown. Reproducing steps:

[PATCH V3] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-19 Thread Dongsheng Yang
Currently, if we use perf kvm --guestkallsyms --guestmodules report, we can not get the perf information from perf data file. The all sample are shown as unknown. Reproducing steps: # perf kvm --guestkallsyms /tmp/kallsyms --guestmodules /tmp/modules record -a sleep 1 [ perf

Re: [RFC PATCH 04/14] ACPI: Add ACPI 5.0 Time and Alarm Device driver

2013-12-19 Thread joeyli
於 四,2013-12-19 於 07:22 -0800,H. Peter Anvin 提到: > On 12/18/2013 11:51 PM, Lee, Chun-Yi wrote: > > This patch add the driver of Time and Alarm Device in ACPI 5.0. > > Currently it only implemented get/set time functions and grab > > the capabilities of device when driver initial. > > > > This

Re: [PATCHv2 0/6] Crashdump Accepting Active IOMMU

2013-12-19 Thread Baoquan He
I have reviewed and tested this patchset. Without it the DMAR error always occured as below. With this patchset, no error is reported and kdump can work successfully. This patchset is awesome, it get to the root of the problem when enable intel-iommu in kdump and fix it. And from code no harm

Re: [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME

2013-12-19 Thread joeyli
於 四,2013-12-19 於 20:22 -0800,H. Peter Anvin 提到: > On 12/19/2013 08:05 PM, joeyli wrote: > > > > Then that means the priority of PNP0B0x is higher then "CMOS RTC Not > > Present" flag. ACPI spec doesn't have clear definition on this. > > > > According to the Microsoft requirements documents,

Re: [PATCH V2] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-19 Thread Dongsheng Yang
On 12/20/2013 12:31 AM, David Ahern wrote: On 12/16/13, 9:26 AM, Dongsheng Yang wrote: Currently, if we use perf kvm --guestkallsyms --guestmodules report, we can not get the perf information from perf data file. The all sample are shown as unknown. Reproducing steps: # perf kvm

[PATCH 2/2] x86: intel-mid: sfi_handle_*_dev() should check for pdata error code

2013-12-19 Thread David Cohen
Prevent sfi_handle_*_dev() to register device in case intel_mid_sfi_get_pdata() failed to execute. Since 'NULL' is a valid return value, this patch makes sfi_handle_*_dev() functions to use IS_ERR() to validate returned pdata. Signed-off-by: David Cohen --- arch/x86/platform/intel-mid/sfi.c |

[PATCH 1/2] x86: intel-mid: return proper error code from get_gpio_by_name()

2013-12-19 Thread David Cohen
get_gpio_by_name() should return an error code instead of hardcoded -1. Signed-off-by: David Cohen --- arch/x86/platform/intel-mid/sfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/intel-mid/sfi.c b/arch/x86/platform/intel-mid/sfi.c index

Re: [PATCH V2] perf tools: Fix bug for perf kvm report without guestmount.

2013-12-19 Thread David Ahern
On 12/16/13, 9:26 AM, Dongsheng Yang wrote: Currently, if we use perf kvm --guestkallsyms --guestmodules report, we can not get the perf information from perf data file. The all sample are shown as unknown. Reproducing steps: # perf kvm --guestkallsyms /tmp/kallsyms --guestmodules

[PATCH] ASoC: fsl-sai: Use snd_soc_dai_init_dma_data()

2013-12-19 Thread Xiubo Li
Makes the code slightly shorter Signed-off-by: Xiubo Li --- sound/soc/fsl/fsl_sai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 50a797e..9c89f97 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c

[PATCH] ASoC: fsl-sai: Use devm_snd_dmaengine_pcm_register()

2013-12-19 Thread Xiubo Li
Makes the code slightly shorter Signed-off-by: Xiubo Li --- sound/soc/fsl/fsl_sai.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 50a797e..39cb9ee 100644 --- a/sound/soc/fsl/fsl_sai.c +++

[PATCH v2.1 7/7] perf ui/tui: Filter messages in log window

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim Press '/' key to input filter string like main hist browser does. Requested-by: Jiri Olsa Signed-off-by: Namhyung Kim --- Fixed some memory leaks. I also updated my perf/tui-v2 branch. tools/perf/ui/browsers/log.c | 70 ++-- 1 file

[PATCH 1/7] perf report: Use pr_*() functions if possible

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim There're some places printing a message to stdout/err directly. It should be converted to use proper error printing functions instead. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 3/7] perf tools: Introduce struct perf_log

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim Add new functions to save error messages in a temp file. It'll be used by some UI front-ends to see the messages. Signed-off-by: Namhyung Kim --- tools/perf/Makefile.perf | 1 + tools/perf/perf.c| 3 ++ tools/perf/util/debug.h | 15 +++

[PATCHSET 0/7] perf tools: A couple of TUI improvements (v2)

2013-12-19 Thread Namhyung Kim
Hello, I was playing with TUI code and added two new windows. One for showing log messages and another for showing header information. (Maybe they can be implemented on the GTK code too someday.) * changes from v1) - fix segfault on perf top (Ingo) - split print function handling patch

[PATCH 7/7] perf ui/tui: Filter messages in log window

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim Press '/' key to input filter string like main hist browser does. Requested-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/log.c | 62 +++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git

[PATCH 6/7] perf ui/tui: Implement header window

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim Implement a simple, full-screen header window which shows session header (metadata) information. Press 'i' key to display the header window. Signed-off-by: Namhyung Kim --- tools/perf/Makefile.perf| 1 + tools/perf/ui/browser.h | 2 +

[PATCH 5/7] perf ui/tui: Implement log window

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim Implement a simple, full-screen log window which shows error messages saved so far. Press 'l' (lower-case 'L') key to display the log window. It'll be used usually with -v option. Signed-off-by: Namhyung Kim --- tools/perf/Makefile.perf | 1 +

[PATCH 4/7] perf tools: Save message when pr_*() was called

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim The message will be saved in a temp file so that it can be shown at a UI dialog at any time. Signed-off-by: Namhyung Kim --- tools/perf/util/debug.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index

[PATCH 2/7] perf report: Print session information only if --stdio is given

2013-12-19 Thread Namhyung Kim
From: Namhyung Kim Move those print functions under "if (use_browser == 0)" so that they cannot interfere TUI output. Maybe they can handle other UIs later. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-)

[PATCH v12 4/4] ARM: dts: Exynos5420: Add device nodes for TMU blocks

2013-12-19 Thread Naveen Krishna Chatradhi
Exynos5420 SoC has per core thermal management unit. 5 TMU channels 4 for CPUs and 5th for GPU. This patch adds the device tree nodes to the DT device list. Nodes carry the misplaced second base address and the second clock to access the misplaced base address. Signed-off-by: Leela Krishna

[PATCH] ASoC: fsl-sai: Remove fsl_sai_remove()

2013-12-19 Thread Xiubo Li
There is no need of this function and makes the code slightly shorter Signed-off-by: Xiubo Li --- sound/soc/fsl/fsl_sai.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 50a797e..1868ec3 100644 --- a/sound/soc/fsl/fsl_sai.c

[PATCH] cpufreq: remove sysfs files for CPU which failed to come back after resume

2013-12-19 Thread Viresh Kumar
There are cases where cpufreq_add_dev() may fail for some CPUs during resume. With the current code we will still have sysfs cpufreq files for such CPUs, and struct cpufreq_policy would be already freed for them. Hence any operation on those sysfs files would result in kernel warnings. To fix

[PATCH v2 1/2] phy: phy-core: increment refcounting variables only on 'success'

2013-12-19 Thread Kishon Vijay Abraham I
Increment 'init_count' only if the 'init' callback succeeded and decrement 'init_count' only if the 'exit' callback succeded. Increment 'power_count' only if 'power_on' callback succeded and if it failed disable the clocks using phy_pm_runtime_put_sync(). Also decrement 'power_count' only if

Re: [PATCH v3 13/14] mm, hugetlb: retry if failed to allocate and there is concurrent user

2013-12-19 Thread Joonsoo Kim
On Thu, Dec 19, 2013 at 06:15:20PM -0800, Andrew Morton wrote: > On Fri, 20 Dec 2013 10:58:10 +0900 Joonsoo Kim wrote: > > > On Thu, Dec 19, 2013 at 05:02:02PM -0800, Andrew Morton wrote: > > > On Wed, 18 Dec 2013 15:53:59 +0900 Joonsoo Kim > > > wrote: > > > > > > > If parallel fault occur,

Re: [PATCH 11/12] pid: rewrite task helper functions avoiding task->pid and task->tgid

2013-12-19 Thread Richard Guy Briggs
On 13/12/17, Peter Zijlstra wrote: > On Mon, Dec 16, 2013 at 05:20:51PM -0500, Richard Guy Briggs wrote: > > > static inline bool is_idle_task(const struct task_struct *p) > > { > > - return p->pid == 0; > > + return task_pid(p) == _struct_pid; > > } > > > I'll stick with

Re: [PATCH] pid: change task_struct::pid to read-only

2013-12-19 Thread Richard Guy Briggs
On 13/12/17, Peter Zijlstra wrote: > On Mon, Dec 16, 2013 at 04:03:38PM -0500, Richard Guy Briggs wrote: > > task->pid is only ever assigned once (well ok, twice). For system health > > and > > secure logging confidence, make it const to make it much more intentional > > when > > it is being

Re: [PATCH v3 13/14] mm, hugetlb: retry if failed to allocate and there is concurrent user

2013-12-19 Thread Joonsoo Kim
Hello, Davidlohr. On Thu, Dec 19, 2013 at 06:31:21PM -0800, Davidlohr Bueso wrote: > On Thu, 2013-12-19 at 17:02 -0800, Andrew Morton wrote: > > On Wed, 18 Dec 2013 15:53:59 +0900 Joonsoo Kim > > wrote: > > > > > If parallel fault occur, we can fail to allocate a hugepage, > > > because many

Re: [PATCH -tip v6 06/22] [BUGFIX] x86: Prohibit probing on memcpy/memset

2013-12-19 Thread Masami Hiramatsu
(2013/12/20 12:07), Jovi Zhangwei wrote: > On Fri, Dec 20, 2013 at 10:37 AM, Masami Hiramatsu > wrote: >> Hi Jovi, >> >> (2013/12/19 18:37), Jovi Zhangwei wrote: >>> Hi Masami, >>> >>> On Thu, Dec 19, 2013 at 5:04 PM, Masami Hiramatsu >>> wrote: memcpy/memset functions are fundamental

Re: [PATCH] apparmor: remove the "task" arg from may_change_ptraced_domain()

2013-12-19 Thread Richard Guy Briggs
On 13/12/18, Oleg Nesterov wrote: > On 12/18, Richard Guy Briggs wrote: > > > > Bcc: r...@redhat.com > > Subject: Re: [PATCH] apparmor: remove the "task" arg from > > may_change_ptraced_domain() > > Reply-To: > > In-Reply-To: <20130926132519.gy13...@madcap2.tricolour.ca> > > The subject is empty

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-19 Thread H. Peter Anvin
On 12/19/2013 08:24 PM, joeyli wrote: > > I agreed, but userspace application should not be too often to access > RTC. Maybe only when system boot and set timezone. > This is, quite frankly, an idiotic argument. Userspace doesn't access the RTC, the kernel does, and if the underlying

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-19 Thread joeyli
於 四,2013-12-19 於 14:09 +,Matt Fleming 提到: > On Thu, 19 Dec, at 03:51:47PM, Lee, Chun-Yi wrote: > > UEFI time services, GetTime(), SetTime(), GetWakeupTime(), SetWakeupTime() > > are also > > supported by other non-IA64 architecutre with UEFI BIOS, e.g. x86. > > > > This patch changed

Re: [PATCH 2/4] misc: xgene: Add base driver for APM X-Gene SoC Queue Manager/Traffic Manager

2013-12-19 Thread Greg KH
A: Top-posting. Q: What is the most annoying thing in e-mail? http://daringfireball.net/2007/07/on_top On Thu, Dec 19, 2013 at 07:41:13PM -0800, Ravi Patel wrote: > There is no need to talk to this driver from userspace. > It is a device which is used by other IO devices to communicate with

[PATCH] ASoC: fsl-sai: Remove fsl_sai_remove()

2013-12-19 Thread Xiubo Li
There is no need of this function and makes the code slightly shorter Signed-off-by: Xiubo Li --- sound/soc/fsl/fsl_sai.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 50a797e..1868ec3 100644 --- a/sound/soc/fsl/fsl_sai.c

Re: [PATCH -tip v6 00/22] kprobes: introduce NOKPROBE_SYMBOL(), cleanup and fixes crash bugs

2013-12-19 Thread Masami Hiramatsu
(2013/12/20 5:46), Frank Ch. Eigler wrote: > > Hi, Masami - > > > masami.hiramatsu.pt wrote: > >> Here is the version 6 of NOKPROBE_SYMBOL series. :) >> [...] > > Some preliminary results from building these on top of tip/master on > x86-64. > > # stap -te "probe kprobe.function("*") {}" >

Re: [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME

2013-12-19 Thread H. Peter Anvin
On 12/19/2013 08:05 PM, joeyli wrote: > > Then that means the priority of PNP0B0x is higher then "CMOS RTC Not > Present" flag. ACPI spec doesn't have clear definition on this. > According to the Microsoft requirements documents, such a platform is broken and shouldn't exist. > I look forward

Re: [PATCH 03/14] rtc: block registration of rtc-cmos when CMOS RTC Not Present

2013-12-19 Thread H. Peter Anvin
On 12/19/2013 07:54 PM, joeyli wrote: > Hi hpa, > > 於 四,2013-12-19 於 06:38 -0800,H. Peter Anvin 提到: >> Where did you find a platform with "no CMOS" set and a PNP RTC? I find the >> expect behavior in that case to be quite ambiguous and it is not at all >> clear to me that what you have here is

Re: [PATCH] perf config: ignore generated files in feature-checks

2013-12-19 Thread Chunwei Chen
>From 362201bf3259cc01c99531766395fdba0c0f3789 Mon Sep 17 00:00:00 2001 From: Chunwei Chen Date: Thu, 19 Dec 2013 15:41:22 +0800 Subject: [PATCH] perf config: ignore generated files in feature-checks 1. Rename the test-* binary files to test-*.bin for easier pattern matching as suggested by

[PATCH v3 2/2] cpufreq: imx6q: add of_init_opp_table

2013-12-19 Thread John Tobias
Add a routine check to see if the platform supplied the OPP table. Incase there's not OPP table exist, it will try to get it. Signed-off-by: John Tobias --- drivers/cpufreq/imx6q-cpufreq.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git

[PATCH v3 1/2] ARM: imx6sl: Add cpu frequency scaling support

2013-12-19 Thread John Tobias
Re-use imx6q cpufreq driver to support cpu frequency scaling on imx6sl. Signed-off-by: John Tobias --- arch/arm/mach-imx/mach-imx6sl.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c index 2f952e3..3072e15 100644 ---

linux-next: manual merge of the clockevents tree with Linus' tree

2013-12-19 Thread Stephen Rothwell
Hi Daniel, Today's linux-next merge of the clockevents tree got a conflict in drivers/clocksource/clksrc-of.c between commit 4c4b053235fa ("clocksource: clksrc-of: Do not drop unheld reference on device node") from Linus' tree and commit fdca679d87bb ("clocksource: clksrc-of: Warn if no clock

Re: [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME

2013-12-19 Thread joeyli
於 四,2013-12-19 於 06:59 -0800,H. Peter Anvin 提到: > On 12/18/2013 11:43 PM, Lee, Chun-Yi wrote: > > This patchset add the timezone support of ACPI TAD and EFI TIME, it > > also add codes for adjusting system time base on the timezone value > > from EFI TIME services when system boot. > > EFI time

Re: lockdep: BUG: MAX_LOCKDEP_ENTRIES too low!

2013-12-19 Thread Mike Galbraith
On Thu, 2013-12-19 at 10:59 -0500, Dave Jones wrote: > On Thu, Dec 19, 2013 at 04:51:21PM +0100, Peter Zijlstra wrote: > > On Thu, Dec 19, 2013 at 10:39:57AM -0500, Sasha Levin wrote: > > > That discusses lockdep classes, which is actually fine in my case. I ran > out of > > >

Re: [PATCH 03/14] rtc: block registration of rtc-cmos when CMOS RTC Not Present

2013-12-19 Thread joeyli
Hi hpa, 於 四,2013-12-19 於 06:38 -0800,H. Peter Anvin 提到: > Where did you find a platform with "no CMOS" set and a PNP RTC? I find the > expect behavior in that case to be quite ambiguous and it is not at all clear > to me that what you have here is the right thing. Actually there doesn't have

linux-next: manual merge of the spi tree with the mpc5xxx tree

2013-12-19 Thread Stephen Rothwell
Hi Mark, Today's linux-next merge of the spi tree got a conflict in drivers/spi/spi-mpc512x-psc.c between commit 9d37619fb37f ("spi: mpc512x: adjust to OF based clock lookup") from the mpc5xxx tree and commit e1d0cd473be4 ("spi: mpc512x: Use devm_*() functions") from the spi tree. I fixed it up

[BUG] LTP test case readahead01 fails after commit 63d0f0a3c7

2013-12-19 Thread Wanlong Gao
Hi AKPM and folks, LTP test readahead syscall return value like this: = static void test_invalid_fd(void) { int fd[2]; tst_resm(TINFO, "test_invalid_fd pipe"); if (pipe(fd) < 0) tst_resm(TBROK | TERRNO, "Failed to create pipe");

Re: [PATCH] audit: listen in all network namespaces

2013-12-19 Thread Gao feng
On 12/20/2013 11:11 AM, Eric Paris wrote: > On Fri, 2013-12-20 at 10:46 +0800, Gao feng wrote: >> On 12/20/2013 02:40 AM, Eric Paris wrote: >>> On Thu, 2013-12-19 at 11:59 +0800, Gao feng wrote: On 07/17/2013 04:32 AM, Richard Guy Briggs wrote: > we have to store audit_sock into

[PATCH] staging: lustre: fix return value check in capa_hmac()

2013-12-19 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function crypto_alloc_hash() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/staging/lustre/lustre/obdclass/capa.c | 4 ++-- 1 file changed, 2

Re: [PATCH 0/4] misc: xgene: Add support for APM X-Gene SoC Queue Manager/Traffic Manager

2013-12-19 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Dec 19, 2013 at 07:27:35PM -0800, Ravi Patel wrote: > APM X-Gene SoC Ethernet driver is planned to be submitted on Dec 20 2013. > Ethernet driver will be using these exported API's from QMTM

Re: [fs] inode_lru_isolate(): Move counter increment into spinlock section

2013-12-19 Thread Dave Chinner
On Thu, Dec 19, 2013 at 09:26:12AM -0600, Christoph Lameter wrote: > On Thu, 19 Dec 2013, Dave Chinner wrote: > > > On Wed, Dec 18, 2013 at 07:24:46PM +, Christoph Lameter wrote: > > > The counter increment in inode_lru_isolate is happening after > > > spinlocks have been dropped with

Re: [PATCH v2] misc: Reserve minor for VFIO

2013-12-19 Thread Alex Williamson
On Thu, 2013-12-19 at 21:38 -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Dec 18, 2013 at 02:02:38PM -0800, H. Peter Anvin wrote: > > On 12/18/2013 01:01 PM, Greg KH wrote: > > > On Wed, Dec 18, 2013 at 01:56:32PM -0700, Alex Williamson wrote: > > >> VFIO currently allocates it's own dynamic

Re: [RFC/PATCH 0/2] mmc: sdhci: Workaround Intel Merrifield issue for HS200

2013-12-19 Thread Dong Aisheng
On Fri, Dec 20, 2013 at 11:25 AM, David Cohen wrote: > On Fri, Dec 20, 2013 at 11:00:23AM +0800, Dong Aisheng wrote: >> On Wed, Nov 13, 2013 at 5:49 AM, David Cohen >> wrote: >> > On 10/29/2013 10:58 AM, David Cohen wrote: >> >> >> >> Hi, >> >> >> >> SDHCI used to work well on Intel Merrifield

Re: [PATCH 0/4] misc: xgene: Add support for APM X-Gene SoC Queue Manager/Traffic Manager

2013-12-19 Thread Greg KH
On Thu, Dec 19, 2013 at 06:44:59PM -0800, Ravi Patel wrote: > This patch adds support for APM X-Gene SoC Queue Manager/Traffic Manager. > QMTM is required by APM X-Gene SoC Ethernet, PktDMA and Security Engine > subsystems. All subsystems communicate with QMTM using messages which > include

Re: [PATCH 2/4] misc: xgene: Add base driver for APM X-Gene SoC Queue Manager/Traffic Manager

2013-12-19 Thread Greg KH
On Thu, Dec 19, 2013 at 06:45:01PM -0800, Ravi Patel wrote: > This patch adds APM X-Gene SoC Queue Manager/Traffic Manager base driver. > QMTM is requried by Ethernet, PktDMA and Security Engine subsystems. How does this driver talk to userspace? Or is it just a "bus" for devices to attach to

Re: [RFC/PATCH 0/2] mmc: sdhci: Workaround Intel Merrifield issue for HS200

2013-12-19 Thread David Cohen
On Fri, Dec 20, 2013 at 11:00:23AM +0800, Dong Aisheng wrote: > On Wed, Nov 13, 2013 at 5:49 AM, David Cohen > wrote: > > On 10/29/2013 10:58 AM, David Cohen wrote: > >> > >> Hi, > >> > >> SDHCI used to work well on Intel Merrifield until this patch was applied: > >> > >> commit

Re: [PATCH 2/4] misc: xgene: Add base driver for APM X-Gene SoC Queue Manager/Traffic Manager

2013-12-19 Thread Greg KH
On Thu, Dec 19, 2013 at 06:45:01PM -0800, Ravi Patel wrote: > --- /dev/null > +++ b/drivers/misc/xgene/qmtm/Kconfig > @@ -0,0 +1,8 @@ > +config XGENE_QMTM > + tristate "APM X-Gene QMTM driver" > + depends on ARCH_XGENE What does it need from this arch in order to build? What would be

Re: [PATCH v3 4/4] futex: Avoid taking hb lock if nothing to wakeup

2013-12-19 Thread Linus Torvalds
On Thu, Dec 19, 2013 at 6:22 PM, Davidlohr Bueso wrote: > > Ok so when I replied I was thinking about the plist really and not the > hb->lock ticket counter. Yeah, what you propose does make sense for > waiters. However in wake paths we have to decrement the counter nwake > times (per each call

  1   2   3   4   5   6   7   8   9   10   >