[PATCH 5/5] ARM: multi_v7_defconfig: Enable ST's Power Reset driver

2014-07-22 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 5348364..1878e8d 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_d

[PATCH 0/5] power: reset: Add support for ST's boards

2014-07-22 Thread Lee Jones
This set provides device reset support for Orly2 and Cannes. Lee Jones (5): power: reset: Add restart functionality for STiH41x platforms power: reset: st: Provide DT bindings for ST's Power Reset driver ARM: sti: Add Restart support for the STiH417 (Cannes) board ARM: sti: Add Restart su

[PATCH 1/5] power: reset: Add restart functionality for STiH41x platforms

2014-07-22 Thread Lee Jones
This driver adds the restart functionality for STiH415 and STiH416 platforms from STMicroelectronics. This driver registers an arm_pm_restart function to reset the platform. Signed-off-by: Christophe Kerello Signed-off-by: Lee Jones --- drivers/power/reset/Kconfig | 6 ++ drivers/power

[PATCH 2/2] libata: Fix NULL pointer of scsi_host in ata_port

2014-07-22 Thread Mike Qiu
In ata_sas_port_alloc(), it haven't initialized scsi_host field in ata_port, although scsi_host is in parameters list and unused in this function. With commit 1871ee134b73 ("libata: support the ata host which implements a queue depth less than 32") ata_qc_new() try to use scsi_host, while it is a

Re: [PATCH RESEND v2 1/4] pinctrl: Update Qualcomm pm8xxx GPIO parameters definitions

2014-07-22 Thread Ivan T. Ivanov
On Thu, 2014-07-17 at 22:41 +0300, Ivan T. Ivanov wrote: > From: "Ivan T. Ivanov" > > Available 'power-source' labels differ between chips. > Use just VIN0-VIN14 in the input source names. > > PM8018, PM8038, PM8058, PM8917, PM8921 pin controller hardware > support only one function 'gpio'. Curr

[PATCH 1/2] libata: Fix scsi_host can_queue issue in ata_qc_new()

2014-07-22 Thread Mike Qiu
The can_queue in scsi_host can be more than ATA_MAX_QUEUE (32), for example, in ipr, it can be 100 or more. Also, some drivers, like ipr driver, haven't filled the field scsi_host in ata_port, and will lead a call trace, so add check for that. Signed-off-by: Mike Qiu --- drivers/ata/libata-core

Re: [PATCH 8/9] usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init()/am335x_shutdown()

2014-07-22 Thread Felipe Balbi
On Tue, Jul 22, 2014 at 10:06:13AM +0200, Lothar Waßmann wrote: > Hi, > > Felipe Balbi wrote: > > Hi,, > > > > On Mon, Jul 21, 2014 at 10:03:07AM +0200, Lothar Waßmann wrote: > > > Hi, > > > > > > > On Fri, Jul 18, 2014 at 11:31:29AM +0200, Lothar Waßmann wrote: > > > > > This patch makes it pos

Re: [PATCH 9/9] usb: musb: musb_am335x: reinstate module loading/unloading support

2014-07-22 Thread Felipe Balbi
On Tue, Jul 22, 2014 at 09:49:30AM +0200, Lothar Waßmann wrote: > Hi, > > Felipe Balbi wrote: > > On Fri, Jul 18, 2014 at 11:31:30AM +0200, Lothar Waßmann wrote: > > > There is no need to throw the baby out with the bath due to a bad > > > failure analysis. The commit: > > > 7adb5c876e9c usb: musb

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 16:39, Christian König schreef: > Am 22.07.2014 16:27, schrieb Maarten Lankhorst: >> op 22-07-14 16:24, Christian König schreef: No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet because of a lockup simpl

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 15:45, Christian König schreef: > Am 22.07.2014 15:26, schrieb Daniel Vetter: >> On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: >>> Am 22.07.2014 13:57, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: > On Tue, Jul 22, 201

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 16:27, schrieb Maarten Lankhorst: op 22-07-14 16:24, Christian König schreef: No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet because of a lockup simply return not signaled yet. It's not only the lockup ca

Re: [PATCH 2/2 V2] workqueue: remove the argument @wakeup from worker_set_flags()

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:02:00PM +0800, Lai Jiangshan wrote: > worker_set_flags() doesn't necessarily wake next worker and the @wakeup > can be removed, the caller can use the following conbination instead > when needed: > > worker_set_flags(); > if (need_more_worker(pool)) >

Re: [PATCH v4 04/11] pwm: add DT bindings documentation for atmel-hlcdc-pwm driver

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:41 PM, Boris BREZILLON wrote: The HLCDC IP available in some Atmel SoCs (i.e. sam9x5i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provide a PWM device. The DT bindings used for this PWM device is following the default 3 cells bindings described in Documentati

Re: [PATCH v2 0/2] security: introduce kernel_fw_from_file hook

2014-07-22 Thread Mimi Zohar
On Mon, 2014-07-21 at 12:06 -0700, Kees Cook wrote: > This is a reduced version of the original patch. This adds only the LSM > hook to the existing firmware loading logic so that the LSM can reason > about the origin and contents of a firmware coming from userspace. > > Thanks! > > -Kees > > v

Re: [PATCH -v4] random: introduce getrandom(2) system call

2014-07-22 Thread Rolf Eike Beer
> EAGAIN The requested entropy was not available, and the > getentropy(2) would have blocked if GRND_BLOCK flag > was set. I think either "and the call to getentropy(2)" or "and getentropy(2)" here. Greetings, Eike -- To unsubscribe from

Re: [PATCH 2/2] pinctrl: remove all usage of gpio_remove ret val in driver/pinctl

2014-07-22 Thread Linus Walleij
On Sat, Jul 12, 2014 at 10:30 PM, abdoulaye berthe wrote: > Signed-off-by: abdoulaye berthe This patch applied to the pin control git tree. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH v4 02/11] mfd: add documentation for atmel-hlcdc DT bindings

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:41 PM, Boris BREZILLON wrote: The HLCDC IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) exposes 2 subdevices: - a display controller (controlled by a DRM driver) - a PWM chip This patch adds documentation for atmel-hlcdc DT bind

Re: [PATCH] pinctrl: qcom: Make muxing of gpio function explicit

2014-07-22 Thread Linus Walleij
On Sat, Jul 12, 2014 at 3:21 AM, Bjorn Andersson wrote: > Instead of relying on pinmux->disable(), make the gpio function an > explicit function for all pins that supports it. > > Signed-off-by: Bjorn Andersson Thanks, patch applied! > This fixes the regression that was introduced by removing

[PATCH] iommu/vt-d: fix race between free_irte() and get_irte()

2014-07-22 Thread Greg Edwards
get_irte() can race with free_irte() and dereference a NULL iommu pointer. Signed-off-by: Greg Edwards Cc: sta...@vger.kernel.org --- drivers/iommu/intel_irq_remapping.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remap

Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:33 PM, Arnd Bergmann wrote: (...) +static int exynos_read_s3c64xx_ts(struct iio_dev *indio_dev, int *x, int *y) +{ + struct exynos_adc *info = iio_priv(indio_dev); + unsigned long timeout; + int ret; + + mutex_lock(&indio_dev->mlock); +

Re: [PATCH 1/3] bebob: Fix a missing to unlock mutex in error handling case

2014-07-22 Thread Takashi Iwai
At Tue, 22 Jul 2014 23:11:03 +0900, Takashi Sakamoto wrote: > > In error handling case, special_clk_ctl_put() returns without unlock_mutex(), > therefore the mutex is still locked. This commit moves mutex_lock() after > the error handling case. > > This commit is my solution for this post. > > [

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 16:24, Christian König schreef: >> No, you really shouldn't be doing much in the check anyway, it's meant to be >> a lightweight check. If you're not ready yet because of a lockup simply >> return not signaled yet. > It's not only the lockup case from radeon I have in mind here. For u

Re: [PATCH v2 0/2] printk: more log flag simplification

2014-07-22 Thread Borislav Petkov
On Tue, Jul 22, 2014 at 09:01:55AM -0500, Alex Elder wrote: > This series eliminates the LOG_CONT entirely from the printk/log code. > It builds on another series, posted earlier today: > http://www.spinics.net/lists/kernel/msg1791665.html > This series was originally longer, but in review I wa

pull request: bluetooth-next 2014-07-21

2014-07-22 Thread Gustavo Padovan
Hi John, Here follows some more patches for 3.17. These are mostly fixes to what we've sent to you before for next merge window. Please pull! Thanks. Gustavo --- The following changes since commit 4d042654afb342386cb5c33e29843b76d598ab61: Bluetooth: cmtp: Remove unnecessary null test

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet because of a lockup simply return not signaled yet. It's not only the lockup case from radeon I have in mind here. For userspace queues it might be necessary to call copy_fr

[PATCH -next] ARM: mvebu: fix return value check in armada_xp_pmsu_cpufreq_init()

2014-07-22 Thread weiyj_lk
From: Wei Yongjun In case of error, the function clk_get() 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 --- arch/arm/mach-mvebu/pmsu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

[PATCH] ahci: st: Make of_device_id array const

2014-07-22 Thread Kiran Padwal
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Kiran Padwal --- drivers/ata/ahci_st.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 2595598..29821b9 100644 --- a/drivers/ata/a

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 09:09:12AM -0500, Bruno Wolff III wrote: > On Tue, Jul 22, 2014 at 15:35:14 +0200, > Peter Zijlstra wrote: > >On Tue, Jul 22, 2014 at 03:26:03PM +0200, Peter Zijlstra wrote: > > > >Something like so.. anything obviously broken? > > Do you want me to test this change inste

Re: [PATCH 01/52] perf tools: Fix jump label always changing during tracing

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 11:00:34AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 22, 2014 at 04:17:10PM +0300, Adrian Hunter escreveu: > > Intel PT decoding walks the object code to reconstruct > > the trace. A jump label change during tracing causes > > decoding errors. You'd better fix t

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Bruno Wolff III
On Tue, Jul 22, 2014 at 15:35:14 +0200, Peter Zijlstra wrote: On Tue, Jul 22, 2014 at 03:26:03PM +0200, Peter Zijlstra wrote: Something like so.. anything obviously broken? Do you want me to test this change instead of, or combined with the other patch you wanted tested earlier? --- arc

[PATCH 1/3] bebob: Fix a missing to unlock mutex in error handling case

2014-07-22 Thread Takashi Sakamoto
In error handling case, special_clk_ctl_put() returns without unlock_mutex(), therefore the mutex is still locked. This commit moves mutex_lock() after the error handling case. This commit is my solution for this post. [PATCH -next] ALSA: bebob: Fix missing unlock on error in special_clk_ctl_put(

Re: [PATCH 3/4] aio: fix some comments

2014-07-22 Thread Benjamin LaHaise
On Tue, Jul 22, 2014 at 10:40:03AM +0800, Gu Zheng wrote: > Signed-off-by: Gu Zheng Again, you're missing a commit message here. Please resubmit with a commit message. -ben > --- > fs/aio.c |7 +++ > 1 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/f

Re: [PATCH 2/4] aio: use the macro rather than the inline magic number

2014-07-22 Thread Benjamin LaHaise
On Tue, Jul 22, 2014 at 10:40:02AM +0800, Gu Zheng wrote: > Signed-off-by: Gu Zheng You're missing a commit message here. The patch is otherwise fine. -ben > --- > fs/aio.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > in

Re: [PATCH 02/19] mfd: max8925-i2c: Fix 'blank line after declarations' warning

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, pramod gurav wrote: > On Tue, Jul 22, 2014 at 5:45 PM, Lee Jones wrote: > > On Tue, 22 Jul 2014, pramod gurav wrote: > >> There are more such changes required in this file. If they could go > >> with this, will be good. > > > > Checkpatch only found this one: > Yes, there is

Re: [PATCH] mfd: max8925-i2c: Add some blank lines before return

2014-07-22 Thread pramod gurav
On Tue, Jul 22, 2014 at 7:36 PM, Lee Jones wrote: > On Tue, 22 Jul 2014, pramod.gurav@gmail.com wrote: > I can't accept any patch which hasn't been on the list. Please find a > way to do so. > >> Please add these with your changes if ok. >> >> drivers/mfd/max8925-i2c.c |5 + >> 1 fil

Re: Bug_ON with patch: bio: modify __bio_add_page() to accept pages that don't start a new segment

2014-07-22 Thread Maurizio Lombardi
Hi Jens, On 07/16/2014 09:53 AM, Jens Axboe wrote: > > Sure, we can try again, hopefully this will be the last of them. > I sent it, it must be applied on top of "bio: modify __bio_add_page() to accept pages that don't start a new segment" http://marc.info/?l=linux-kernel&m=140558697215009&w=2

[PATCH] ARM: at91/dt: sam9x5: fix ADC compatible string

2014-07-22 Thread Alexandre Belloni
Use the correct compatible string for the ADC of the at91sam9x5 family of SoCs. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9x5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index

Re: [PATCH] mfd: max8925-i2c: Add some blank lines before return

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, pramod.gurav@gmail.com wrote: > From: Pramod Gurav > > Signed-off-by: Pramod Gurav > --- > Lee, This is what I was referring to when I said there are more such > changes needed. Hope they are ok. > > Sending just to you as I could not send it on that mail chain. I can

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 14:19, Christian König schreef: > Am 22.07.2014 13:57, schrieb Daniel Vetter: >> On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: >>> On Tue, Jul 22, 2014 at 10:43:13AM +0200, Christian König wrote: Am 22.07.2014 06:05, schrieb Dave Airlie: > On 9 July 2014 22:29,

Re: [PATCH] edac: Remove fixmes in e7xxx_edac.c

2014-07-22 Thread Bjørn Mork
Nicholas Krause writes: > This removes two Page shift fixs me in this file and not checking > if row is -1 in process_ce as it cannot be this value or be must > exit this function by returning. > > Signed-off-by: Nicholas Krause > --- > drivers/edac/e7xxx_edac.c | 10 +- > 1 file change

[PATCH v2 1/2] printk: kill LOG_CONT

2014-07-22 Thread Alex Elder
The LOG_CONT and LOG_NEWLINE flags are mutually exclusive, i.e., the presence of LOG_NEWLINE implies the absense of LOG_CONT, and vice-versa. As a result, wherever LOG_CONT is used, we can equivalently substitute !LOG_NEWLINE; and we can use LOG_NEWLINE wherever !LOG_CONT is used. Switch to using

[PATCH v2 2/2] printk: improve some commentary; tidy up

2014-07-22 Thread Alex Elder
Add some comments to explain how the log flags are used to control how records get formatted. Also add and refine some comments in vprintk_emit(). Now that we're done fixing up log record flags, simplify how they're used in computing some local variable values in msg_print_text(). Use a local va

[PATCH v2 0/2] printk: more log flag simplification

2014-07-22 Thread Alex Elder
This series eliminates the LOG_CONT entirely from the printk/log code. It builds on another series, posted earlier today: http://www.spinics.net/lists/kernel/msg1791665.html This series was originally longer, but in review I was reminded that some of the simplifications I had done were not vali

Re: [PATCH 01/52] perf tools: Fix jump label always changing during tracing

2014-07-22 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 22, 2014 at 04:17:10PM +0300, Adrian Hunter escreveu: > Intel PT decoding walks the object code to reconstruct > the trace. A jump label change during tracing causes > decoding errors. > > The "Enable close-on-exec flag on perf file descriptor" > patch caused there to be always a jump

Re: 3.10.y regression caused by: lockd: ensure we tear down any live sockets when socket creation fails during lockd_up

2014-07-22 Thread Nikita Yushchenko
>> With current 3.10.y, if kernel is booted with init=/bin/sh and then nfs mount >> is attempted (without portmap or rpcbind running) using busybox mount, >> following >> OOPS happen: >> >> # mount -t nfs 10.30.130.21:/opt /mnt >> svc: failed to register lockdv1 RPC service (errno 111). >> lockd_u

Re: [PATCH 1/3] usb: host: st-hcd: Add USB HCD support for STi SoCs

2014-07-22 Thread Peter Griffin
Hi Alan, > > > > Most platform drivers have already been moved. > > Okay, I grant the point. Objections withdrawn. Fix up the spelling > error and the other stuff in the Kconfig help text, and this will be > acceptable. Thanks, I intend to send a new version shortly. regards, Peter. -- T

Re: [RFC PATCH] usb: dwc3: core: allow vendor drivers to check probe status

2014-07-22 Thread Peter Griffin
Hi Felipe, Sorry for the delay in replying. I've been trying to get to the root cause of this problem so I could reply which took longer than I had hoped. The problem manifested itself as a hang on register read/write access if dwc3-st probed before the usb3 phy. Even though dwc3 core would bai

Re: [PATCH 2/4] aio: use the macro rather than the inline magic number

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > Signed-off-by: Gu Zheng Reviewed-by: Jeff Moyer > --- > fs/aio.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index ad35876..1dc6158 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -201,7 +201,7 @@ static struct dentry

Re: [PATCH 3/4] aio: fix some comments

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > Signed-off-by: Gu Zheng Reviewed-by: Jeff Moyer > --- > fs/aio.c |7 +++ > 1 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 1dc6158..0cd0479 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -1037,7 +1037,7 @@ void aio_compl

Re: [PATCH 1/4] aio: remove the needless registration of ring file's private_data

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > Remove the registration of ring file's private_data, we do not use > it. > > Signed-off-by: Gu Zheng Reviewed-by: Jeff Moyer > --- > fs/aio.c |1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 955947e..ad35876 100644 >

Re: [PATCH] scripts: coccinelle: kfree with TRACE_RET before ref is ok (resent)

2014-07-22 Thread Bjørn Mork
Nicholas Mc Guire writes: > kfree.cocci currently triggers on constructs like > (resending with proper CC list and subject line) > > drivers/staging/rts5208/spi.c > 596if (retval < 0) { > 597kfree(buf); > 598rtsx_clear_spi_error(chip); > 599spi_set_err_code

Re: [PATCH 0/5] Input - wacom: battery enhancements and unifying hid-wacom and wacom

2014-07-22 Thread Benjamin Tissoires
Hi Przemo, On Jul 19 2014 or thereabouts, Przemo Firszt wrote: > Dnia 2014-07-10, czw o godzinie 14:44 -0400, Benjamin Tissoires pisze: > > Hi guys, > > > > Continuing on the Wacom cleanup, here are 5 patches. > > > > The first two enhance the battery reporting for the Wireless receiver by > > a

Re: [PATCH 4/4] aio: use iovec array rather than the single one

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > use an iovec array rather than the single one, so that we can avoid > to alloc more iovecs buffer in small(< 8) PREADV/PWRITEV cases. It would be helpful to know what motivated this change and how you tested it. Thanks, Jeff -- To unsubscribe from this list: send the line "un

Re: [PATCH 09/19] mfd: ezx-pcap: Repair coding style errors picked up with checkpatch

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, Joe Perches wrote: > On Tue, 2014-07-22 at 12:11 +0100, Lee Jones wrote: > > This is part of an effort to clean-up the MFD subsystem. > > > > WARNING: Missing a blank line after declarations > > + u32 flags; > > + void (*callback)(void *, u16[]); > > False positi

[PATCH 4/5] mm, shmem: Add shmem swap memory accounting

2014-07-22 Thread Jerome Marchand
Adds get_mm_shswap() which compute the size of swaped out shmem. It does so by pagewalking the mm and using the new shmem_locate() function to get the physical location of shmem pages. The result is displayed in the new VmShSw line of /proc//status. Use mm_walk an shmem_locate() to account paged ou

[PATCH 2/5] mm, shmem: Add shmem_locate function

2014-07-22 Thread Jerome Marchand
The shmem subsytem is kind of a black box: the generic mm code can't always know where a specific page physically is. This patch adds the shmem_locate() function to find out the physical location of shmem pages (resident, in swap or swapcache). If the optional argument count isn't NULL and the page

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 15:26, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: Am 22.07.2014 13:57, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: On Tue, Jul 22, 2014 at 10:43:13AM +0200, Christian König wrote: Am 22.07.201

[PATCH 5/5] mm, shmem: Show location of non-resident shmem pages in smaps

2014-07-22 Thread Jerome Marchand
Adds ShmOther, ShmOrphan, ShmSwapCache and ShmSwap lines to /proc//smaps for shmem mappings. ShmOther: amount of memory that is currently resident in memory, not present in the page table of this process but present in the page table of an other process. ShmOrphan: amount of memory that is current

[PATCH 3/5] mm, shmem: Add shmem_vma() helper

2014-07-22 Thread Jerome Marchand
Add a simple helper to check if a vm area belongs to shmem. Signed-off-by: Jerome Marchand --- include/linux/mm.h | 6 ++ mm/shmem.c | 8 2 files changed, 14 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 34099fa..04a58d1 100644 --- a/include/linux

[PATCH RESEND 0/5] mm, shmem: Enhance per-process accounting of shared memory

2014-07-22 Thread Jerome Marchand
There are several shortcomings with the accounting of shared memory (sysV shm, shared anonymous mapping, mapping to a tmpfs file). The values in /proc//status and statm don't allow to distinguish between shmem memory and a shared mapping to a regular file, even though theirs implication on memory u

[PATCH 1/5] mm, shmem: Add shmem resident memory accounting

2014-07-22 Thread Jerome Marchand
Currently looking at /proc//status or statm, there is no way to distinguish shmem pages from pages mapped to a regular file (shmem pages are mapped to /dev/zero), even though their implication in actual memory use is quite different. This patch adds MM_SHMEMPAGES counter to mm_rss_stat. It keeps tr

Re: [PATCH 09/19] mfd: ezx-pcap: Repair coding style errors picked up with checkpatch

2014-07-22 Thread Joe Perches
On Tue, 2014-07-22 at 12:11 +0100, Lee Jones wrote: > This is part of an effort to clean-up the MFD subsystem. > > WARNING: Missing a blank line after declarations > + u32 flags; > + void (*callback)(void *, u16[]); False positive from an old version of checkpatch. The one in -next d

[PATCH 09/52] perf tools: Record whether a dso has data

2014-07-22 Thread Adrian Hunter
Add 'data.status' to record whether a dso has data (i.e. an object file). This is used to avoid repeatedly creating the file name and attempting to open a file that is not present. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 23 +++ tools/perf/util/dso.h | 7 ++

[PATCH 21/52] perf session: Add ability to skip 4GiB or more

2014-07-22 Thread Adrian Hunter
A session can be made to skip portions of the input file. Do not limit that size to 32-bits. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c

[PATCH 13/52] perf tools: Add perf_pmu__scan_file()

2014-07-22 Thread Adrian Hunter
Add a function to scan a sysfs file within the pmu device directory. This will be used to read capability values from the PMU 'caps' subdirectory. Signed-off-by: Adrian Hunter --- tools/perf/util/pmu.c | 37 + tools/perf/util/pmu.h | 3 +++ 2 files changed,

Re: [PATCH 00/12] drm/exynos/ipp: image post processing improvements, part three

2014-07-22 Thread Inki Dae
On 2014년 07월 03일 22:10, Andrzej Hajda wrote: > This set of independent patches contains various improvement and fixes > for exynos_drm ipp framework. > The patchset is based on exynos-drm-next branch. Applied. Thanks, Inki Dae > > Regards > Andrzej > > > Andrzej Hajda (12): > drm/exynos/ipp

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 03:26:03PM +0200, Peter Zijlstra wrote: > On Tue, Jul 22, 2014 at 03:03:43PM +0200, Peter Zijlstra wrote: > > Oh, of course we do SMP detection and setup after the cache setup... > > lovely. > > > > /me goes bang head against wall > > hpa, could we move the legacy cpuid1/c

[PATCH 07/52] perf script: Do not print dangling '=>' for BTS

2014-07-22 Thread Adrian Hunter
When using: perf record -e branches:u -c1 perf script -f ip lines are displayed like: 813b23d5 => Change so that the dangling '=>' does not appear. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c | 6 +++--- 1 file changed, 3 insertions(+), 3 dele

[PATCH 08/52] perf tools: Fix incorrect fd error comparison

2014-07-22 Thread Adrian Hunter
Zero is a valid fd. Error comparison should check for negative fd. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index fc006fe..28cf747 100644 --- a/tools/perf/util/dso.c +

[PATCH 10/52] perf tools: Add dso__data_status_seen()

2014-07-22 Thread Adrian Hunter
Add a function to track whether a caller has seen the data status of a dso. This is needed to enable callers to report the error exactly once only per dso. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 12 tools/perf/util/dso.h | 6 ++ 2 files changed, 18 insertions

[PATCH 17/52] perf evlist: Add perf_evlist__set_tracking_event()

2014-07-22 Thread Adrian Hunter
Add a function to change which event is used to track mmap, comm and task events. This is needed with Instruction Tracing because the Instruction Tracing event must come first but cannot be used for tracking because it will be disabled under some circumstances. Signed-off-by: Adrian Hunter ---

Re: [RFC] perf to ctf converter

2014-07-22 Thread Sebastian Andrzej Siewior
On 07/22/2014 01:31 PM, Sebastian Andrzej Siewior wrote: >> [jolsa@krava perf]$ LD_LIBRARY_PATH=/opt/libbabeltrace/lib >> /opt/libbabeltrace/bin/babeltrace ./ctf-data/ >> >> [04:41:11.445378840] (+?.?) sched:sched_switch: { }, { pid = 5782, >> comm = "ls", prev_comm = [ [0] = "ls", [1] =

[PATCH] staging: init: main: fix sparse warning Fix sparse warning "should it be static"

2014-07-22 Thread Matei Oprea
Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- init/main.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index e8ae1fe..25cc270 100644 --- a/init/main.c +++ b/init/main.c @@ -160,7 +160,8 @@ static int __init set_reset_devices(char

[PATCH 05/52] perf tools: Add machine__kernel_ip()

2014-07-22 Thread Adrian Hunter
Add a function to determine if an address is in the kernel. This is based on the kernel function kernel_ip(). Signed-off-by: Adrian Hunter --- tools/perf/util/event.c | 6 +++--- tools/perf/util/machine.c | 23 +++ tools/perf/util/machine.h | 17 + 3 files

[PATCH 18/52] perf evlist: Add 'system_wide' option

2014-07-22 Thread Adrian Hunter
Add an option to cause a selected event to be opened always without a pid when configured by perf_evsel__config(). This is needed when using the sched_switch tracepoint to follow object code execution. sched_switch occurs before the task switch and so it cannot record it in a context limited to th

[PATCH 12/52] perf tools: Let default config be defined for a PMU

2014-07-22 Thread Adrian Hunter
This allows default config terms to be provided for a PMU. So, for example, when the Intel PT PMU is added, it will be possible to specify: intel_pt// which will be the same as: intel_pt/tsc=1,noretcomp=0/ meaning that the trace should contain TSC timestamps and perform 'return

[PATCH 06/52] perf script: Improve srcline display for BTS

2014-07-22 Thread Adrian Hunter
Change the order of the output to put the srcline last. e.g. old format: 4028fc main+0x2c (/bin/ls) /build/buildd/coreutils-8.20/src/ls.c:1269 => 40d8a0 set_program_name+0x0 (/bin/ls) new format: 4028fc main+0x2c (/bin/ls) => 40d8a0 set_program_name+0x0

[PATCH 14/52] perf tools: Add dsos__hit_all()

2014-07-22 Thread Adrian Hunter
Add ability to mark all dsos as hit. This is needed in the case of Instruction Tracing. It takes so long to decode an Instruction Trace that it is not worth doing just to determine which dsos are hit. A later patch takes this into use. Signed-off-by: Adrian Hunter --- tools/perf/util/header.c

[PATCH 16/52] perf tools: Add ability to record the current tid for each cpu

2014-07-22 Thread Adrian Hunter
Add an array to struct machine to store the current tid running on each cpu. Add machine functions to get / set the tid for a cpu. This will be used to determine the tid when decoding a per-cpu Instruction Trace. Signed-off-by: Adrian Hunter --- tools/perf/util/machine.c | 46 ++

[PATCH 15/52] perf tools: Add cpu to struct thread

2014-07-22 Thread Adrian Hunter
Tools may wish to track on which cpu a thread is running. Add 'cpu' to struct thread for that purpose. This will be used to determine the cpu when decoding a per-thread Instruction Trace. Signed-off-by: Adrian Hunter --- tools/perf/util/thread.c | 1 + tools/perf/util/thread.h | 1 + 2 files c

[PATCH 11/52] perf tools: Let a user specify a PMU event without any config terms

2014-07-22 Thread Adrian Hunter
This enables a PMU event to be specified in the form: pmu// which is effectively the same as: pmu/config=0/ This patch is a precursor to defining default config for a PMU. Signed-off-by: Adrian Hunter --- tools/perf/util/parse-events.c | 6 ++ tools/perf/util/parse-event

[PATCH 19/52] perf tools: Add id index

2014-07-22 Thread Adrian Hunter
Add an index of the event identifiers. This is needed to queue Instruction Trace samples according to the mmap buffer from which they were recorded. Signed-off-by: Adrian Hunter --- tools/perf/builtin-inject.c | 1 + tools/perf/util/event.c | 1 + tools/perf/util/event.h | 15 +

[PATCH 30/52] perf tools: Expose 'addr' functions so they can be reused

2014-07-22 Thread Adrian Hunter
Move some functions and functionality related to the use of 'addr' out of builtin-script so they can be reused. The moved functions are: is_bts_event() and sample_addr_correlates_sym() and a new function perf_event__preprocess_sample_addr() is created from bits of print_sample_addr(). perf_event__

[PATCH 24/52] perf evlist: Add perf_evlist__enable_event_idx()

2014-07-22 Thread Adrian Hunter
Add a function to enable a specific event within a specific perf event buffer. Signed-off-by: Adrian Hunter --- tools/perf/util/evlist.c | 47 +++ tools/perf/util/evlist.h | 2 ++ 2 files changed, 49 insertions(+) diff --git a/tools/perf/util/evlist.

[PATCH 33/52] perf tools: Extend Python script interface to export data in a database-friendly way

2014-07-22 Thread Adrian Hunter
Use the new db_export facility to export data in a database-friendly way. A Python script selects the db_export mode by setting a global variable 'perf_db_export_mode' to True. The script then optionally implements functions to receive table rows. The functions are: evsel_table

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Daniel Vetter
On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: > Am 22.07.2014 13:57, schrieb Daniel Vetter: > >On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: > >>On Tue, Jul 22, 2014 at 10:43:13AM +0200, Christian König wrote: > >>>Am 22.07.2014 06:05, schrieb Dave Airlie: >

[PATCH 20/52] perf pmu: Let pmu's with no events show up on perf list

2014-07-22 Thread Adrian Hunter
perf list only lists PMUs with events. Add a flag to cause a PMU to be also listed separately. Signed-off-by: Adrian Hunter --- tools/perf/util/pmu.c | 13 +++-- tools/perf/util/pmu.h | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/p

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 03:03:43PM +0200, Peter Zijlstra wrote: > Oh, of course we do SMP detection and setup after the cache setup... > lovely. > > /me goes bang head against wall hpa, could we move the legacy cpuid1/cpuid4 topology detection muck up, preferably right after detect_extended_topol

[PATCH 26/52] perf tools: Add dso__data_size()

2014-07-22 Thread Adrian Hunter
Add a function to return the dso data size, for use in estimating the size an instruction cache. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 22 ++ tools/perf/util/dso.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/tools/perf/util/dso.c b/tools/perf/u

[PATCH 37/52] perf tools: Add branch_type and in_tx to Python export

2014-07-22 Thread Adrian Hunter
Add branch_type and in_tx to Python db export and the export-to-postgresql.py script. Signed-off-by: Adrian Hunter --- tools/perf/scripts/python/export-to-postgresql.py | 32 ++ .../util/scripting-engines/trace-event-python.c| 30 +++- 2 files changed, 55

[PATCH 25/52] perf session: Add perf_session__peek_event()

2014-07-22 Thread Adrian Hunter
Add a function to peek at other events in the event stream. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 55 +++ tools/perf/util/session.h | 5 + 2 files changed, 60 insertions(+) diff --git a/tools/perf/util/session.c b/tools/per

[PATCH 22/52] perf session: Add perf_session__deliver_synth_event()

2014-07-22 Thread Adrian Hunter
Add a function to deliver synthesized events from within a session. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 14 ++ tools/perf/util/session.h | 5 + 2 files changed, 19 insertions(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 70

[PATCH 23/52] perf tools: Move rdtsc() function

2014-07-22 Thread Adrian Hunter
Move the rdtsc() function so it can be reusued. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/tsc.c | 9 + tools/perf/tests/perf-time-to-tsc.c | 9 - tools/perf/util/tsc.c | 5 + tools/perf/util/tsc.h | 1 + 4 files changed, 15 ins

[PATCH 36/52] perf tools: Add branch type to db export

2014-07-22 Thread Adrian Hunter
Add the ability to export branch types through the database export facility. Signed-off-by: Adrian Hunter --- tools/perf/util/db-export.c | 48 + tools/perf/util/db-export.h | 6 ++ 2 files changed, 54 insertions(+) diff --git a/tools/perf/util/d

[PATCH 29/52] perf inject: Add --kallsyms parameter

2014-07-22 Thread Adrian Hunter
Let perf inject take --kallsyms parameter the same as perf script and perf report do. That is needed for decoding Instruction Trace data using a copy of /proc/kcore for the kernel object because the kallsyms path is used to locate that copy. Signed-off-by: Adrian Hunter --- tools/perf/Documenta

[PATCH 32/52] perf tools: Add helpers for calling Python objects

2014-07-22 Thread Adrian Hunter
The Python script API repeatedly uses the same lines of code to get and call objects. Make that into helper functions instead. A side-effect is that some reference counting bugs disappear because the new call_object() function always decrements the reference count of 'retval'. Signed-off-by: Adr

[PATCH 27/52] perf tools: Add a thread stack for synthesizing call chains

2014-07-22 Thread Adrian Hunter
Add a thread stack for synthesizing call chains from call and return events. Signed-off-by: Adrian Hunter --- tools/perf/Makefile.perf | 2 + tools/perf/util/event.h| 26 +++ tools/perf/util/thread-stack.c | 151 + tools/perf/util/thre

Re: [PATCH 2/5] sched: Teach scheduler to understand ONRQ_MIGRATING state

2014-07-22 Thread Kirill Tkhai
В Вт, 22/07/2014 в 08:25 -0400, Steven Rostedt пишет: > On Tue, 22 Jul 2014 13:45:42 +0200 > Peter Zijlstra wrote: > > > > > @@ -1491,10 +1491,14 @@ static void ttwu_activate(struct rq *rq, struct > > > task_struct *p, int en_flags) > > > static void > > > ttwu_do_wakeup(struct rq *rq, struc

[PATCH 43/52] perf tools: Add perf-with-kcore script

2014-07-22 Thread Adrian Hunter
Decoding an Intel PT trace of the kernel requires an accurate kernel object image. This is provided by making a copy of kcore. However the copy needs to be made under the same conditions as the original recording, and then it needs to be associated with the perf.data file. The perf-with-kcore scr

[PATCH 42/52] perf tools: Defer export of comms that were not 'set'

2014-07-22 Thread Adrian Hunter
Tracing for a workload begins before the comm event is seen, which results in the initial comm having a string of the form ":" (e.g. ":12345"). In order to export the correct string, defer the export until the new script 'flush' callback. Signed-off-by: Adrian Hunter --- tools/perf/util/db-expo

<    3   4   5   6   7   8   9   10   11   12   >