Re: [PATCH 3/3 v2] perf tool: give user better message if precise is not supported

2012-09-17 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, 2012-09-14 at 22:11 +0200, Ingo Molnar wrote: > > return -EPERF_CPU_PRECISE_EV_NOTSUPP; > > I just don't like having to enumerate all possible fails, I'm > too lazy. Can't we be smarter about that? Could we do a > {reason}x{bit-offset} like thing? > > Wher

Re: [PATCH v2 04/15] dmaengine: Pass no_wakeup parameter via device_prep_dma_cyclic() callback

2012-09-17 Thread Peter Ujfalusi
On 09/17/2012 09:34 AM, Shawn Guo wrote: > On Thu, Sep 13, 2012 at 04:37:54PM +0300, Peter Ujfalusi wrote: >> Change the parameter list of device_prep_dma_cyclic() so the DMA drivers >> can receive the no_wakeup request coming from client drivers. >> This feature can be used during audio operation

[RFC v1 00/11] vfs: hot data tracking

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu NOTE: The patchset is currently post out mainly to make sure it is going in the correct direction and hope to get some helpful comments from other guys. TODO List: 1.) Need to do scalability or performance tests. 2.) Turn some Micro into tunables TIME_TO_KICK, and

[RFC v1 02/11] vfs: introduce one rb tree - hot_inode_tree

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Adds hot_inode_tree struct to keep track of frequently accessed files, and be keyed by {inode, offset}. Trees contain hot_inode_items representing those files and ranges. Having these trees means that vfs can quickly determine the temperature of some data by doing some calcu

[RFC v1 03/11] vfs: introduce 2 rb tree items - inode and range

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Define two items hot_inode_item and hot_range_item, one of them represents one tracked file to keep track of its access frequency and the tree of ranges in this file, while the latter represents a file range of one inode. Each of the two structures contains a hot_freq_data s

[RFC v1 04/11] vfs: add support for updating access frequency

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Add some utils helpers to update access frequencies for one file or its range. Signed-off-by: Zhi Yong Wu --- fs/hot_rb.c | 359 +++ fs/hot_rb.h | 22 2 files changed, 381 insertions(+), 0 deletions(-) diff --

[RFC v1 05/11] vfs: add one new mount option '-o hottrack'

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Introduce one new mount option '-o hottrack', and add its parsing support. Its usage looks like: mount -o hottrack mount -o nouser,hottrack mount -o nouser,hottrack,loop mount -o hottrack,nouser Signed-off-by: Zhi Yong Wu --- fs/hot_track.c| 34 +

[RFC v1 06/11] vfs: add init and exit support

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Add initialization function to create some key data structures when hot tracking is enabled; Clean up them when hot tracking is disabled. Signed-off-by: Zhi Yong Wu --- fs/hot_rb.c| 45 + fs/hot_rb.h|1 + fs/hot_trac

[RFC v1 08/11] vfs: enable hot data tracking

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Miscellaneous features that implement hot data tracking and generally make the hot data functions a bit more friendly. Signed-off-by: Zhi Yong Wu --- fs/direct-io.c| 10 ++ include/linux/hot_track.h | 11 +++ mm/filemap.c |8

[RFC v1 09/11] vfs: fork one private kthread to update temperature info

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Fork and run one kernel kthread to calculate that temperature based on some metrics kept in custom frequency data structs, and store the info in the hash table. Signed-off-by: Zhi Yong Wu --- fs/hot_hash.c | 302 + fs

[RFC v1 10/11] vfs: add 3 new ioctl interfaces

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu FS_IOC_GET_HEAT_INFO: return a struct containing the various metrics collected in btrfs_freq_data structs, and also return a calculated data temperature based on those metrics. Optionally, retrieve the temperature from the hot data hash list instead of recalculating it. FS_

[RFC v1 11/11] vfs: add debugfs support

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_data', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_data', contains similar information for subfile

[RFC v1 07/11] vfs: introduce one hash table

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Adds a hash table structure which contains a lot of hash list and is used to efficiently look up the data temperature of a file or its ranges. In each hash list of hash table, the hash node will keep track of temperature info. Signed-off-by: Zhi Yong Wu --- fs/Makefile

[RFC v1 01/11] vfs: introduce one structure hot_info

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu One root structure hot_info is defined, is hooked up in super_block, and will be used to hold rb trees root, hash list root and some other information, etc. Signed-off-by: Zhi Yong Wu --- include/linux/fs.h|4 include/linux/hot_track.h | 26 +

Re: [PATCH v2 04/15] dmaengine: Pass no_wakeup parameter via device_prep_dma_cyclic() callback

2012-09-17 Thread Shawn Guo
On Mon, Sep 17, 2012 at 10:16:53AM +0300, Peter Ujfalusi wrote: > All users of this callback is updated with this patch. > The public API (dmaengine_prep_dma_cyclic) is only used by ASoC, which has > been updated by the previous patch. > Ah, ok. You actually changed dmaengine_prep_dma_cyclic sign

linux-next: manual merge of the usb tree with the tty tree

2012-09-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/serial/mos7840.c between commit adc8d746caa6 ("tty: move the termios object into the tty") from the tty tree and commit 9c134a14f2da ("USB: serial: mos7840.c: remove dbg() usage") from the usb tree. I fixed it up (see

linux-next: manual merge of the usb tree with the tty tree

2012-09-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/serial/kl5kusb105.c between commit adc8d746caa6 ("tty: move the termios object into the tty") from the tty tree and commit 1ad7604f69ae ("USB: serial: kl5kusb105.c: remove dbg() usage") from the usb tree. I fixed it u

linux-next: manual merge of the usb tree with the tty tree

2012-09-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/serial/digi_acceleport.c between commit adc8d746caa6 ("tty: move the termios object into the tty") from the tty tree and commit f9dfbebb8b39 ("USB: serial: digi_acceleport.c: remove dbg() usage") from the usb tree. I

linux-next: manual merge of the usb tree with the tty tree

2012-09-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/serial/io_ti.c between commit adc8d746caa6 ("tty: move the termios object into the tty") from the tty tree and commit 67e6da702753 ("USB: serial: io_ti.c: remove dbg() usage") from the usb tree. I fixed it up (see bel

Re: [PATCH RESEND v6] mmc: core: Remove bounce buffer in mmc_send_cxd_data()

2012-09-17 Thread Chris Ball
Hi, On Thu, Aug 02 2012, Kyungsik Lee wrote: > It is expected that Extended CSD register(the size of this register > is larger than CID/CSD) will be referenced more frequently as more > fields have been added to Extended CSD and it seems that it is not > a good option to double the memory used. >

linux-next: manual merge of the usb tree with the tty tree

2012-09-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/serial/mos7720.c between commit adc8d746caa6 ("tty: move the termios object into the tty") from the tty tree and commit 9eecf8085473 ("USB: serial: mos7720.c: remove dbg() usage") from the usb tree. I fixed it up (see

Re: [PATCH] mmc: sdio: Fix PM_SLEEP related build warnings

2012-09-17 Thread Chris Ball
Hi, On Thu, Aug 09 2012, Rafael J. Wysocki wrote: > On Thursday, August 09, 2012, Thierry Reding wrote: >> Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if >> the PM_SLEEP Kconfig symbol has been defined. If not, the compiler will >> complain about them being unused. Howeve

linux-next: manual merge of the staging tree with the tty tree

2012-09-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in drivers/staging/ipack/devices/ipoctal.c between commit 734cc1783816 ("TTY: use tty_port_register_device") from the tty tree and commit d04600679ba0 ("Staging: ipack/devices/ipoctal: simplify ipoctal_write_tty ()") from the sta

[PATCH 1/7] dw_dmac: mark dwc_dump_chan_regs as inline

2012-09-17 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 832538c..75ab5af 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -208,7 +208,7 @@ static inline uns

[PATCH 5/7] dw_dmac: autoconfigure data_width or get it via platform data

2012-09-17 Thread Andy Shevchenko
Not all of the controllers support the 64 bit data width. Make it configurable via platform data. The driver will try to get a value from the component parameters, otherwise it will use the platform data.. Signed-off-by: Andy Shevchenko --- arch/arm/mach-spear13xx/spear13xx.c |2 ++ arch/avr

[PATCH 3/7] dw_dmac: get number of channels from hardware if possible

2012-09-17 Thread Andy Shevchenko
In case the controller has the encoded parameters feature enabled the driver will use it to get the number of channels. In the future it will be used for the other important parameters as well. Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac.c | 33 +++--

[PATCH 4/7] dw_dmac: autoconfigure block_size or use platform data

2012-09-17 Thread Andy Shevchenko
The maximum block size is a configurable parameter for the chip. So, driver will try to get it from the encoded component parameters. Otherwise it will come from the platform data. Signed-off-by: Andy Shevchenko --- arch/arm/mach-spear13xx/spear13xx.c |1 + arch/avr32/mach-at32ap/at32ap700x.

[PATCH 7/7] dw_dmac: introduce software emulation of LLP transfers

2012-09-17 Thread Andy Shevchenko
Some controllers have the reduced functionality where the LLP multi block transfers are not supported. This patch introduces a support of such controllers. In case of memory copy or scatter-gather lists it emulates LLP transfers via bunch of the regular single block ones. Signed-off-by: Andy Shevc

[PATCH 6/7] dw_dmac: check if controller supports LLP

2012-09-17 Thread Andy Shevchenko
Some controllers have the reduced functionality where the LLP multi block transfers are not supported. This patch introduces a check and refuses to deal with such devices. Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac.c | 35 ++- drivers/dma/dw_dma

[PATCH 0/7] dw_dmac: introduce autoconfiguration

2012-09-17 Thread Andy Shevchenko
Here is a patchset that allows to adapt the driver to the hardware configuration during probe time. The hardware should have the specific optional parameters enabled. Otherwise the driver will consider values stored in the platform data. Additionally it brings support of the software LLP transfers

[PATCH 2/7] dw_dmac: fill optional encoded parameters in register structure

2012-09-17 Thread Andy Shevchenko
There is a block of the registers that are optional. However, if enabled they contain useful information about the controller hardware configuration. We will use this piece of data to autoconfigure the driver. Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac_regs.h | 19 +

Re: [tip:x86/asm] x86: Prefer TZCNT over BFS

2012-09-17 Thread Jan Beulich
>>> On 14.09.12 at 23:14, Linus Torvalds wrote: > On Thu, Sep 13, 2012 at 11:23 PM, tip-bot for Jan Beulich > wrote: >> >> x86: Prefer TZCNT over BFS > > This patch is insane. I'm not going to defend this simple and strait forward a patch to such a reply, so Ingo, just drop it to please Linus,

Re: [PATCH 2/8 v2] acpi-cpufreq: Add quirk to disable _PSD usage on all AMD CPUs

2012-09-17 Thread Andre Przywara
On 09/15/2012 01:20 PM, Konrad Rzeszutek Wilk wrote: On Sep 4, 2012 4:26 AM, "Andre Przywara" mailto:andre.przyw...@amd.com>> wrote: > > To workaround some Windows specific behavior, the ACPI _PSD table > on AMD desktop boards advertises all cores as dependent, meaning > that they all can on

Re: [PATCH] xfrm_user: return error pointer instead of NULL

2012-09-17 Thread Steffen Klassert
On Thu, Sep 13, 2012 at 11:41:26PM +0200, Mathias Krause wrote: > When dump_one_state() returns an error, e.g. because of a too small > buffer to dump the whole xfrm state, xfrm_state_netlink() returns NULL > instead of an error pointer. But its callers expect an error pointer > and therefore conti

Re: [PATCH] xfrm_user: return error pointer instead of NULL #2

2012-09-17 Thread Steffen Klassert
On Fri, Sep 14, 2012 at 09:58:32PM +0200, Mathias Krause wrote: > When dump_one_policy() returns an error, e.g. because of a too small > buffer to dump the whole xfrm policy, xfrm_policy_netlink() returns > NULL instead of an error pointer. But its caller expects an error > pointer and therefore co

Re: [PATCH 2/2] misc/at25: Add an .id_table to at25 to facilitate driver loading and binding.

2012-09-17 Thread Ivo Sieben
Hi, 2012/8/22 David Daney : > From: David Daney > > /*-*/ > +static const struct spi_device_id at25_id[] = { > + {"at25", 0}, > + {"m95256", 0}, > + { } > +}; > +MODULE_DEVICE_TABLE(spi, at25_id); I use th

Re: [PATCH v2 2/3] mmc: davinci_mmc: convert to DMA engine API

2012-09-17 Thread Chris Ball
Hi, On Wed, Aug 22 2012, Koen Kooi wrote: > Op 21-08-12 20:43, Matt Porter schreef: >> Removes use of the DaVinci EDMA private DMA API and replaces it with use >> of the DMA engine API. >> >> Signed-off-by: Matt Porter > > Runtime tested on hawkboard with 3.6.0-rc2 with rootfs on SD and running

Re: Advice on mmap() "feature"

2012-09-17 Thread Mark Jackson
On 16/09/12 21:52, richard -rw- weinberger wrote: > On Sun, Sep 16, 2012 at 9:21 PM, Mark Jackson wrote: >> // now remove the mapping >> if (m_pFram) >> munmap(m_pFram, FRAM_SIZE); > > You unmap less memory than you map... > I hang my head in shame ... what a stupid mist

Re: [PATCH 02/24] ARM: at91: use __iomem pointers for MMIO

2012-09-17 Thread Nicolas Ferre
On 09/14/2012 11:34 PM, Arnd Bergmann : > ARM is moving to stricter checks on readl/write functions, > so we need to use the correct types everywhere. > > Cc: Nicolas Ferre > Cc: Jean-Christophe Plagniol-Villard > Signed-off-by: Arnd Bergmann > --- > arch/arm/mach-at91/at91x40.c

Re: [patch v2] gcov: add a kfree() on error to new_node()

2012-09-17 Thread Peter Oberparleiter
On 14.09.2012 08:52, Dan Carpenter wrote: We should free "node->loaded_info" on this error path. We'd never care in real life but it makes the static checkers happy. Signed-off-by: Dan Carpenter --- v2: some style changes. Signed-off-by: Peter Oberparleiter Reviewed-by: Peter Oberparleiter

Re: [PATCH] i915: Quirk out disconnected backlight

2012-09-17 Thread Jani Nikula
On Fri, 14 Sep 2012, Grant Likely wrote: > On Fri, Sep 14, 2012 at 2:12 PM, David Woodhouse wrote: >> See https://bugzilla.redhat.com/show_bug.cgi?id=752595 > > In that bug you mention that the intel backlight sets a bogus max of > '1' when a backlight isn't present. I saw that too here. Here's t

Re: [PATCH RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-17 Thread Daniel Wagner
On 14.09.2012 10:24, Glauber Costa wrote: On 09/13/2012 09:48 PM, Tejun Heo wrote: Hello, Glauber. On Thu, Sep 13, 2012 at 03:53:56PM +0400, Glauber Costa wrote: Here is where the Kconfig option comes to play. If we do it in the kernel, userspace doesn't have to do anything. I spoke with Lenna

linux-next: manual merge of the arm-soc tree with the mmc tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/mmc/host/omap.c between commit 2976837c6ea8 ("mmc: omap: remove unused variables and includes") from the mmc tree and commit cf3a6ec2c0a4 ("ARM: OMAP: remove plat/board.h file") from the arm-soc tree. The latter is a s

linux-next: manual merge of the arm-soc tree with the input tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/input/keyboard/omap-keypad.c between commit 9e14f36bb577 ("Input: omap-keypad - fixed formatting") from the input tree and commit f799a3d8fe17 ("Input: omap-keypad: Remove dependencies to mach includes") from the arm-so

linux-next: manual merge of the arm-soc tree with the tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-imx/clk-imx51-imx53.c between commit 75453a08e365 ("ARM: i.MX5: Add nand oftree support") from the mtd tree and commit a745f039b901 ("ARM i.MX53: register CAN clocks") from the arm-soc tree. I fixed it up (see be

linux-next: manual merge of the arm-soc tree with the mtd tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-imx/clk-imx51-imx53.c between commit 75453a08e365 ("ARM: i.MX5: Add nand oftree support") from the mtd tree and commit a745f039b901 ("ARM i.MX53: register CAN clocks") from the arm-soc tree. I fixed it up (see be

Re: [RFC][PATCH] Improving directed yield scalability for PLE handler

2012-09-17 Thread Andrew Jones
On Fri, Sep 14, 2012 at 04:34:24PM -0400, Konrad Rzeszutek Wilk wrote: > > The concern I have is that even though we have gone through changes to > > help reduce the candidate vcpus we yield to, we still have a very poor > > idea of which vcpu really needs to run. The result is high cpu usage in >

[PATCH 3/3] cx25821: Cleanup filename assignment code

2012-09-17 Thread Peter Senna Tschudin
I'm pasting the original code and my proposal on the commit message for make it easy to compare the two versions. Line 62 of cx25821-audio-upstream.h contains: char *_defaultAudioName = "/root/audioGOOD.wav"; Original code after replace kmemdup for kstrdup, and after fix return error code: if (de

[PATCH 1/3] cx25821: fix error return code and clean up

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin The function cx25821_sram_channel_setup_upstream_audio always return zero, so the return value is not saved any more. Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that find

[PATCH 2/3] cx25821: Replace kmemdup for kstrdup and clean up

2012-09-17 Thread Peter Senna Tschudin
Replace kmemdup for kstrdup and cleanup related code. Signed-off-by: Peter Senna Tschudin --- drivers/media/pci/cx25821/cx25821-audio-upstream.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/media/pci/cx25821/cx25821-audio-upstream.c b/drivers/media/pci

Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected

2012-09-17 Thread Mike Galbraith
On Sun, 2012-09-16 at 12:57 -0700, Linus Torvalds wrote: > On Sat, Sep 15, 2012 at 9:35 PM, Mike Galbraith wrote: > > > > Oh, while I'm thinking about it, there's another scenario that could > > cause the select_idle_sibling() change to affect pgbench on largeish > > packages, but it boils down t

Re: [RFC][PATCH] Improving directed yield scalability for PLE handler

2012-09-17 Thread Andrew Jones
On Sun, Sep 16, 2012 at 11:55:28AM +0300, Avi Kivity wrote: > On 09/14/2012 12:30 AM, Andrew Theurer wrote: > > > The concern I have is that even though we have gone through changes to > > help reduce the candidate vcpus we yield to, we still have a very poor > > idea of which vcpu really needs to

[PATCH 2/2] drivers/s390/net/ctcm_main.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

[PATCH 1/2] drivers/s390/char/monreader.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

[PATCH] drivers/rapidio/devices/tsi721.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

[PATCH 1/4] drivers/mmc/host/dw_mmc.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

[PATCH 2/4] drivers/mmc/host/omap.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

[PATCH 4/4] drivers/mmc/host/mxs-mmc.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

[PATCH 3/4] drivers/mmc/host/omap_hsmmc.c: fix error return code

2012-09-17 Thread Peter Senna Tschudin
From: Peter Senna Tschudin Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } |

Re: [PATCH] Xen backend support for paged out grant targets V4.

2012-09-17 Thread Ian Campbell
(I think I forgot to hit send on this on Friday, sorry. Also s/xen.lists.org/lists.xen.org in the CC line...) On Fri, 2012-09-14 at 15:26 +0100, Andres Lagar-Cavilla wrote: > Since Xen-4.2, hvm domains may have portions of their memory paged out. When a > foreign domain (such as dom0) attempts to

[PATCH v8 0/3] KVM: perf: kvm events analysis tool

2012-09-17 Thread Dong Hao
From: Xiao Guangrong Changelog: the changes from Avi's comments: - move the definition of x86 fault vector to asm/kvm.h - drop the second patch which introduced new tracpoints the changes from David's comments: - use scnprintf instead of snprintf - drop exclusive check for '-a' and '-p', after t

[PATCH v8 2/3] perf: move stat related code to util/stat.c

2012-09-17 Thread Dong Hao
From: Xiao Guangrong Then, the code can be shared between kvm events and perf stat [ Dong Hao : rebase it on acme's git tree ] Signed-off-by: Xiao Guangrong Signed-off-by: Dong Hao --- tools/perf/Makefile |1 + tools/perf/builtin-stat.c | 56 +--

[PATCH v8 1/3] KVM: x86: export svm/vmx exit code and vector code to userspace

2012-09-17 Thread Dong Hao
From: Xiao Guangrong Exporting KVM exit information to userspace to be consumed by perf. [ Dong Hao : rebase it on acme's git tree ] Signed-off-by: Dong Hao Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm.h | 16 +++ arch/x86/include/asm/kvm_host.h | 16 --- arch/x86/inclu

[PATCH v8 3/3] KVM: perf: kvm events analysis tool

2012-09-17 Thread Dong Hao
From: Xiao Guangrong Add 'perf kvm stat' support to analyze kvm vmexit/mmio/ioport smartly Usage: - kvm stat run a command and gather performance counter statistics, it is the alias of perf stat - trace kvm events: perf kvm stat record, or, if other tracepoints are interesting as well, we

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-17 Thread Andrew Lunn
> I had a closer look at how kirkwood probes its id. I mentionend kirkwood_id() > earlier but in fact it is kirkwood_pcie_id(). I assume pcie registers are shut > down with pcie clk gated? That would require to have pcie running at least at > boot-time on all boards. > > While it is still possible

Re: [PATCH] dmaengine: add dmanegine slave map api's

2012-09-17 Thread Russell King - ARM Linux
On Mon, Sep 17, 2012 at 09:10:23AM +0530, Vinod Koul wrote: > On Fri, 2012-09-14 at 12:18 +0100, Russell King - ARM Linux wrote: > > I'm not saying take the slave_id out of the map. I'm saying, let the > > DMA engine driver itself figure out what dma_chan to return. > But wont that assume the dma

Re: [PATCH v3 02/15] dmaengine: omap: Add support for pause/resume in cyclic dma mode

2012-09-17 Thread Peter Ujfalusi
Hi Vinod, On 09/17/2012 06:13 AM, Vinod Koul wrote: > On Fri, 2012-09-14 at 15:05 +0300, Peter Ujfalusi wrote: >> - /* FIXME: not supported by platform private API */ >> - return -EINVAL; >> + /* Pause/Resume only allowed with cyclic mode */ >> + if (!c->cyclic) >> +

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

2012-09-17 Thread Catalin Marinas
Hi Stephen, On Mon, Sep 17, 2012 at 02:24:05AM +0100, Stephen Rothwell wrote: > After merging the arm64 tree, today's linux-next build () > failed like this: > > arch/powerpc/kernel/sys_ppc32.c:146:17: error: conflicting types for > 'compat_sys_sendfile' > include/linux/compat.h:593:16: note: pr

Re: [alsa-devel] [PATCH v3 00/15] ASoC: OMAP: Convert to use dmaengine

2012-09-17 Thread Peter Ujfalusi
Hi Vinod, On 09/17/2012 06:17 AM, Vinod Koul wrote: > On Fri, 2012-09-14 at 15:05 +0300, Peter Ujfalusi wrote: >> Hello, > > dmaengine parts look good to me. How do you want to get this merged, > dmaengine or ASoC tree? Thank you, I would prefer it to go via ASoC if it is not a problem. It is po

Re: [RFC] cgroup TODOs

2012-09-17 Thread Glauber Costa
On 09/15/2012 12:39 AM, Tejun Heo wrote: > Hello, again. > > On Fri, Sep 14, 2012 at 12:49:50PM -0700, Tejun Heo wrote: >> That said, if someone can think of a better solution, I'm all ears. >> One thing that *has* to be maintained is that it should be able to tag >> a resource in such way that it

[PATCH 1/2] iio: inkern: add error case in iio_channel_get()

2012-09-17 Thread Kim, Milo
The datasheet name is defined in the IIO driver. On the other hand, the adc_channel_label is configured in the platform side. If the datasheet name is not matched with any adc_channel_label, the iio_channel_get() should be returned as error for preventing invalid channel data access. This c

[PATCH 2/2] iio: inkern: put the IIO device when mem alloc gets failed

2012-09-17 Thread Kim, Milo
The reference count of the IIO device is increased if the IIO map has matched consumer name. After then, it tries to allocate the iio_channel which is used by the consumer. If memory allocation gets failed, the reference count should be decreased. This patch enables restoring the reference co

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-17 Thread Linus Walleij
On Sun, Sep 16, 2012 at 11:09 AM, Sebastian Hesselbarth wrote: > On 09/16/2012 09:46 AM, Andrew Lunn wrote: >> Here you are suggesting we have to put into the DT what chip we expect >> to be on. >> >> What is the advantage of this, over getting the information from the >> device itself? > > If th

RE: [PATCH 2/2] iio: inkern: add error case in iio_channel_get()

2012-09-17 Thread Kim, Milo
> Fine, I'm convinced. Certainly less weird doing it your way ;) > Please do fix up the get all case as well. Please refer to chained patches. [PATCH 1/2] iio: inkern: add error case in iio_channel_get() [PATCH 2/2] iio: inkern: put the IIO device when mem alloc gets failed I'd like to mention t

[PATCH] pstore: avoid recursive spinlocks in the oops_in_progress case

2012-09-17 Thread Chuansheng Liu
Like 8250 driver, when pstore is registered as a console, to avoid recursive spinlocks when panic happening, change the spin_lock_irqsave to spin_trylock_irqsave when oops_in_progress is true. Signed-off-by: liu chuansheng --- fs/pstore/platform.c |7 ++- 1 files changed, 6 insertions(+)

[PATCH v4] memory leak fix while calling system_path

2012-09-17 Thread liang xie
memory leak fix while calling system_path Since v1: Remove an unnecessary null pointer check per Felipe's comments Since v2: Make system_path&perf_exec_path always return dynamically allocated string Since v3: check strdup() per Namhyung's comments Signed-off-by: xieliang --- tools/perf/builtin

Re: Excessive kernel time inside ttm when scrolling on a r700 in a multimonitor setup

2012-09-17 Thread Jerome Glisse
On Sun, Sep 16, 2012 at 7:18 PM, Andres Freund wrote: > Hi everyone, > > In several gui programs, most notably and reproducably, I can trivially make > Xorg spend the whole cpu time in the kernel. It might be an Xorg bug, but > from my untrained gut feeling it doesn't look that way. > > Anything m

Re: [PATCH] Fix queueing work if !bdi_cap_writeback_dirty()

2012-09-17 Thread Jan Kara
On Mon 17-09-12 08:24:08, OGAWA Hirofumi wrote: > Jan Kara writes: > > >> I'm not sure what you meant though. What is the difference with ignoring > >> WBC_SYNC_NONE? > > When you completely ignore WB_SYNC_NONE writeback, you'll soon drive the > > machine close to dirty limits and processes dir

Re: [RFC] cgroup TODOs

2012-09-17 Thread Glauber Costa
On 09/14/2012 09:43 PM, Tejun Heo wrote: > Hello, Glauber. > > On Fri, Sep 14, 2012 at 12:16:31PM +0400, Glauber Costa wrote: >> Can we please keep some key userspace guys CCd? > > Yeap, thanks for adding the ccs. > >>> 1. cpu and cpuacct > ... >>> Me, working on it. >> I can work on it as wel

Side effects of disabling SCHED_SOFTIRQ to trigger run_rebalance_domains

2012-09-17 Thread Xiong Wu
Hi all, Since observed dead lock problem in sched run_rebalance_domains of kernel 2.6.21.7, we just disabling SCHED_SOFTIRQ to trigger run_rebalance_domains as one work around. The patch is as below: --- kernel/sched.c 2012-06-29 23:17:34.0 +0800 +++ kernel-new/sched.c 2012-09-12 17

[RFC 0/3] PCI/PM: RTD3 fixes/changes for 3.7

2012-09-17 Thread Huang Ying
[RFC 1/3] PCI/PM: Fix kexec for D3cold and bridge suspending [RFC 2/3] PCI/PM: Make PCI devices notified when its power [RFC 3/3] PCI/PM: Disable PME poll for PCIe devices Best Regards, Huang Ying -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

[RFC 2/3] PCI/PM: Make PCI devices notified when its power resource turned on

2012-09-17 Thread Huang Ying
A set of power resources may be shared by multiple devices. When all devices share one set of power resources is put into D3_COLD state, the power resources will be turned off. When one of the device is waked, the power resource will be turned on and all devices share it will be powered on to D0u

[RFC 3/3] PCI/PM: Disable PME poll for PCIe devices

2012-09-17 Thread Huang Ying
PME poll is not necessary for PCIe devices, because PCIe devices use in-band PME message and IRQ on PCIe port to report PME. PME poll is useful for PCI devices. Because for PCI devices, PME is reported via a side-band PME# line and some platform logic, and the platform logic is often missing on m

[RFC 1/3] PCI/PM: Fix kexec for D3cold and bridge suspending

2012-09-17 Thread Huang Ying
If PCI devices are put into D3cold before kexec, because the configuration registers of PCI devices in D3cold are not accessible. And if PCI bridges are put into low power state before kexec, configuration registers of PCI devices underneath the PCI bridges are not accessible too. These will make

Re: [PATCH v2] pinctrl: document semantics vs GPIO

2012-09-17 Thread Linus Walleij
On Fri, Sep 14, 2012 at 7:16 PM, Stephen Warren wrote: > On 09/14/2012 07:49 AM, Linus Walleij wrote: >> +If a pin control driver and a GPIO driver is dealing with the same pins >> +and the use cases involve multiplexing, you MUST implement the pin >> controller >> +as a back-end for the GPIO dr

Re: [PATCH 2/8] gpio: pl061 depends on ARM

2012-09-17 Thread Davide Ciminaghi
On Fri, Sep 14, 2012 at 10:09:36PM +0400, Sergei Shtylyov wrote: > Hello. > > On 09/14/2012 08:23 PM, Davide Ciminaghi wrote: > > > From: Alessandro Rubini > > > Patch dece904d itroduced chained_irq_enter/exit, which is only > > Rather commit dece904d. And you need to also specify its summar

Re: [PATCH v2 04/15] dmaengine: Pass no_wakeup parameter via device_prep_dma_cyclic() callback

2012-09-17 Thread Linus Walleij
On Thu, Sep 13, 2012 at 3:37 PM, Peter Ujfalusi wrote: > Change the parameter list of device_prep_dma_cyclic() so the DMA drivers > can receive the no_wakeup request coming from client drivers. > This feature can be used during audio operation to disable all audio > related interrupts. > > Signed

Re: [PATCH] usb: gadget: lpc32xx_udc: Fix compatibility with STOTG04

2012-09-17 Thread Roland Stigge
On 09/12/2012 10:30 PM, Alexandre Pereira da Silva wrote: > The STOTG04 is an replacement for ISP1301. > > Most of the registers on STOTG04 are the same as on ISP1301, but the > register ISP1301_I2C_OTG_CONTROL_2 (address 0x10) doesn't exist on the > ST part. > > This is a work around for this by

Re: RCU lockup in the SMP idle thread, help...

2012-09-17 Thread Linus Walleij
On Fri, Sep 14, 2012 at 7:53 PM, Paul E. McKenney wrote: > Could you please try reproducing with CONFIG_RCU_CPU_STALL_INFO=y? Yep: looks like this: INFO: rcu_preempt detected stalls on CPUs/tasks: 0: (0 ticks this GP) idle=458/0/0 (detected by 1, t=29904 jiffies) [] (unwind_back

Re: Excessive kernel time inside ttm when scrolling on a r700 in a multimonitor setup

2012-09-17 Thread Andres Freund
On Monday, September 17, 2012 10:47:10 AM Jerome Glisse wrote: > On Sun, Sep 16, 2012 at 7:18 PM, Andres Freund wrote: > > Hi everyone, > > > > In several gui programs, most notably and reproducably, I can trivially > > make Xorg spend the whole cpu time in the kernel. It might be an Xorg > > bug

Re: [PATCH v2 05/26] block: Add bio_end()

2012-09-17 Thread Steven Whitehouse
Hi, On Mon, 2012-09-10 at 17:22 -0700, Kent Overstreet wrote: > Just a little convenience macro - main reason to add it now is preparing > for immutable bio vecs, it'll reduce the size of the patch that puts > bi_sector/bi_size/bi_idx into a struct bvec_iter. > > Signed-off-by: Kent Overstreet >

Re: [PATCH 1/4] drivers/mmc/host/dw_mmc.c: fix error return code

2012-09-17 Thread Will Newton
On Mon, Sep 17, 2012 at 9:15 AM, Peter Senna Tschudin wrote: > From: Peter Senna Tschudin > > Convert a nonnegative error return code to a negative one, as returned > elsewhere in the function. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccine

linux-next: manual merge of the arm-soc tree with the staging tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/staging/tidspbridge/core/wdt.c between commit c37a1747acbf ("staging: tidspbridge: Prepare for irqs.h removal") from the tree and commit ec2c0825ca31 ("ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ") from th

linux-next: manual merge of the arm-soc tree with the omap_dss2 tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/video/omap2/dss/dispc.c between commit fe6a466283cf ("OMAPDSS: remove unnecessary includes") from the omap_dss2 tree and commit 7d7e1eba7e92 ("ARM: OMAP2+: Prepare for irqs.h removal") from the arm-soc tree. I fixed

linux-next: manual merge of the arm-soc tree with the char-misc tree

2012-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/w1/masters/omap_hdq.c between commit 19afea50f12b ("w1: omap-hdq: convert to devm_* functions") from the char-misc tree and commits aefaf7be498b ("W1: OMAP HDQ1W: Remove dependencies to mach/hardware.h") and 73f2989d37a

Re: [RFC] status of execve() work - per-architecture patches solicited

2012-09-17 Thread Michal Simek
Hi Al, On 09/07/2012 08:20 PM, Al Viro wrote: To architecture maintainers: please, review the current situation in git.kernel.org/pub/scm/linux/kernel/git/viro/signal #execve2 and consider sending the corresponding patches for missing architectures. I have sent two patches. Please appl

Re: [PATCH] Xen backend support for paged out grant targets V4.

2012-09-17 Thread Andres Lagar-Cavilla
On Sep 17, 2012, at 4:17 AM, Ian Campbell wrote: > (I think I forgot to hit send on this on Friday, sorry. Also > s/xen.lists.org/lists.xen.org in the CC line…) I'm on a roll here… > > On Fri, 2012-09-14 at 15:26 +0100, Andres Lagar-Cavilla wrote: >> Since Xen-4.2, hvm domains may have portions

Re: [PATCH 2/2] iio: inkern: put the IIO device when mem alloc gets failed

2012-09-17 Thread Lars-Peter Clausen
On 09/17/2012 10:44 AM, Kim, Milo wrote: > The reference count of the IIO device is increased if the IIO map has > matched consumer name. > After then, it tries to allocate the iio_channel which is used by the > consumer. > If memory allocation gets failed, the reference count should be decrea

Re: [RFC PATCH] drivers: phy: add generic PHY framework

2012-09-17 Thread Marc Kleine-Budde
On 09/14/2012 03:06 PM, ABRAHAM, KISHON VIJAY wrote: [...] >>> diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c >>> new file mode 100644 >>> index 000..c55446a >>> --- /dev/null >>> +++ b/drivers/phy/phy-core.c >>> @@ -0,0 +1,437 @@ >>> +/* >>> + * phy-core.c -- Generic Phy fram

[PATCH v6] iio: adc: add new lp8788 adc driver

2012-09-17 Thread Kim, Milo
TI LP8788 PMU provides regulators, battery charger, ADC, RTC, backlight driver and current sinks. This patch enables the LP8788 ADC functions. The LP8788 ADC has several ADC input selection and supports 12bit resolution. Internal operation of getting ADC is access to registers of LP8788. Th

  1   2   3   4   5   6   7   >