Re: [PATCH] usb: phy: samsung: Add support for USB 3.0 phy for exynos5250

2012-12-19 Thread Felipe Balbi
Hi, On Wed, Dec 19, 2012 at 11:52:01AM +0530, Vivek Gautam wrote: > >>> @@ -736,7 +1035,41 @@ static int __devinit samsung_usbphy_probe(struct > >>> platform_device *pdev) > >>> > >>> sphy->clk = clk; > >>> > >>> - return usb_add_phy(&sphy->phy, USB_PHY_TYPE_USB2); > >>> + sphy->has

[PATCH v4 0/6] Add movablecore_map boot option with SRAT support.

2012-12-19 Thread Tang Chen
[What we are doing] This patchset provide a boot option for user to specify ZONE_MOVABLE memory map for each node in the system. movablecore_map=nn[KMG]@ss[KMG] or movablecore_map=acpi movablecore_map=nn[KMG]@ss[KMG]: This option makes sure memory range from ss to ss+nn is movable memory. movabl

[PATCH v4 1/6] x86: get pg_data_t's memory from other node

2012-12-19 Thread Tang Chen
From: Yasuaki Ishimatsu If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So, use memblock_alloc_try_nid() instead of memblock_alloc_nid() to retry when the first allocation fails. Signe

[PATCH v4 5/6] page_alloc: Make movablecore_map has higher priority

2012-12-19 Thread Tang Chen
If kernelcore or movablecore is specified at the same time with movablecore_map, movablecore_map will have higher priority to be satisfied. This patch will make find_zone_movable_pfns_for_nodes() calculate zone_movable_pfn[] with the limit from zone_movable_limit[]. Signed-off-by: Tang Chen Revie

[PATCH v4 3/6] ACPI: Restructure movablecore_map with memory info from SRAT.

2012-12-19 Thread Tang Chen
The Hot Plugable bit in SRAT flags specifys if the memory range could be hotplugged. If user specified movablecore_map=nn[KMG]@ss[KMG], reset movablecore_map.map to the intersection of hotpluggable ranges from SRAT and old movablecore_map.map. Else if user specified movablecore_map=acpi, just use

[PATCH v4 2/6] page_alloc: add movablecore_map kernel parameter

2012-12-19 Thread Tang Chen
[What are we doing] This patch adds a new kernel boot option named movablecore_map to allow user to specify the range of ZONE_MOVABLE of each node. [Why do we do this] The memory used by kernel, such as direct mapping pages, could not be migrated. As a result, the corresponding memory device coul

[PATCH v4 6/6] page_alloc: Bootmem limit with movablecore_map

2012-12-19 Thread Tang Chen
This patch make sure bootmem will not allocate memory from areas that may be ZONE_MOVABLE. The map info is from movablecore_map boot option. Signed-off-by: Tang Chen Signed-off-by: Lai Jiangshan Reviewed-by: Wen Congyang Tested-by: Lin Feng --- include/linux/memblock.h |1 + mm/memblock.c

[PATCH v4 4/6] page_alloc: Introduce zone_movable_limit[] to keep movable limit for nodes

2012-12-19 Thread Tang Chen
This patch introduces a new array zone_movable_limit[] to store the ZONE_MOVABLE limit from movablecore_map boot option for all nodes. The function sanitize_zone_movable_limit() will find out to which node the ranges in movable_map.map[] belongs, and calculates the low boundary of ZONE_MOVABLE for

[GIT PULL] pwm: Changes for v3.8-rc1

2012-12-19 Thread Thierry Reding
Hi Linus, The following changes since commit 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64: Linux 3.7-rc3 (2012-10-28 12:24:48 -0700) are available in the git repository at: git://gitorious.org/linux-pwm/linux-pwm.git tags/for-3.8-rc1 for you to fetch changes up to 20e8ac3eea4dcfeea6ebeae57cd2c

Re: [rtc-linux] [PATCH] rtc: recycle id when unloading a rtc driver

2012-12-19 Thread Andrew Morton
On Wed, 19 Dec 2012 08:55:57 +0100 Alexander Holler wrote: > > > > I'm all confused. > > > > Lothar's patch simply reverts Vincent's patch. And that appears to be > > the correct thing to so, as the ida_simple_remove() in > > rtc_device_release() should be sufficient. > > > > But apparently tha

Re: [PATCH 2/2]linux-usb:optimize to match the Huawei USB storage devices and support new switch command

2012-12-19 Thread Sebastian Andrzej Siewior
On Wed, Dec 19, 2012 at 03:13:32AM +, Fangxiaozhi (Franko) wrote: > By the way, I found the kernel is updated to 3.7.1 today. So I have to > update my patch based on 3.7.1, and resubmit it? > Right? You should rebase your patch on top of Greg's usb-next branch of his usb tree. h

Re: [PATCH 01/01] Input multitouch: fix horizontal two-finger-scrolling on Sentelic touchpads

2012-12-19 Thread Henrik Rydberg
Hi Christophe, > Fix horizontal two-finger scrolling on Sentelic touchpads. Currently > horizontal two-fingers scrolling does not work with these touchpads. > The patch also makes vertical two-finger scrolling smoother in some > applications e.g. Firefox. > > Signed-off-by: Christophe TORDEUX >

Re: [PATCH 1/2] x86: Provide guards in uapi/asm/hw_breakpoint.h to prevent deletion by patch

2012-12-19 Thread Jean Delvare
On Mon, 17 Dec 2012 14:49:25 +, David Howells wrote: > Provide reinclusion guards in the empty uapi/asm/hw_breakpoint.h to make sure > that the patch program doesn't delete it. > > However, should some part of asm/hw_breakpoint.h actually be exported here, > or, possibly, should the entire uap

Re: [PATCH 2/2] x86: Provide guards in uapi/asm/setup.h to prevent deletion by patch

2012-12-19 Thread Jean Delvare
On Mon, 17 Dec 2012 14:49:32 +, David Howells wrote: > Provide reinclusion guards in the empty uapi/asm/setup.h to make sure that the > patch program doesn't delete it. > > However, should some part of asm/hw_setup.h actually be exported here, or, > possibly, should the entire uapi file be rem

Re: [rtc-linux] [PATCH] rtc: recycle id when unloading a rtc driver

2012-12-19 Thread Alexander Holler
Am 19.12.2012 09:27, schrieb Andrew Morton: On Wed, 19 Dec 2012 08:55:57 +0100 Alexander Holler wrote: I'm all confused. Lothar's patch simply reverts Vincent's patch. And that appears to be the correct thing to so, as the ida_simple_remove() in rtc_device_release() should be sufficient.

Re: common clock framwork: clk_set_rate issue

2012-12-19 Thread Sascha Hauer
On Wed, Dec 19, 2012 at 02:49:25PM +0800, Chao Xie wrote: > On Tue, Dec 18, 2012 at 3:47 PM, Sascha Hauer wrote: > >> There is already a flag to do it. > >> CLK_SET_RATE_PARENT > > > > That flag has another meaning. It means that a clock is allowed to > > change the parents rate when a rate change

Re: [PATCH] spi: Add the flag indicate to registe new device as children of master or not.

2012-12-19 Thread Mark Brown
On Wed, Dec 19, 2012 at 04:44:03AM -0500, Jun Chen wrote: > This spi_alloc_device function will be called in the spi_new_device > function to alloc new device as the master. But other way, it is called > by the of_register_spi_devices function to register new device as the > children of the master

Re: [PATCH] ASoC: dapm: Fix the unpaired runtime_get/put cases

2012-12-19 Thread Mark Brown
On Wed, Dec 19, 2012 at 06:36:37PM +0800, Chuansheng Liu wrote: > But some devices has been set to STANDY bias directly during device probing, > such as cs42l73_probe(): > cs42l73_set_bias_level(codec, SND_SOC_BIAS_STANDBY); > Then it will cause runtime_get() not be called but laterly runtime_put

[PATCH v4 3/6] ACPI: Restructure movablecore_map with memory info from SRAT.

2012-12-19 Thread Tang Chen
The Hot Plugable bit in SRAT flags specifys if the memory range could be hotplugged. If user specified movablecore_map=nn[KMG]@ss[KMG], reset movablecore_map.map to the intersection of hotpluggable ranges from SRAT and old movablecore_map.map. Else if user specified movablecore_map=acpi, just use

Re: [PATCH v4 3/6] ACPI: Restructure movablecore_map with memory info from SRAT.

2012-12-19 Thread Tang Chen
On 12/19/2012 04:15 PM, Tang Chen wrote: The Hot Plugable bit in SRAT flags specifys if the memory range could be hotplugged. If user specified movablecore_map=nn[KMG]@ss[KMG], reset movablecore_map.map to the intersection of hotpluggable ranges from SRAT and old movablecore_map.map. Else if use

Re: [PATCH v2 5/5] page_alloc: Bootmem limit with movablecore_map

2012-12-19 Thread Tang Chen
Hi Wu, Sorry for such a long delay. On 11/26/2012 08:40 PM, wujianguo wrote: Hi Tang, I tested this patchset in x86_64, and I found that this patch didn't work as expected. For example, if node2's memory pfn range is [0x68-0x98), I boot kernel with movablecore_map=4G@0x6

Re: [PATCH v2 0/5] Multiqueue virtio-scsi, and API for piecewise buffer submission

2012-12-19 Thread Paolo Bonzini
Il 18/12/2012 23:18, Rolf Eike Beer ha scritto: > Paolo Bonzini wrote: >> Hi all, >> >> this series adds multiqueue support to the virtio-scsi driver, based >> on Jason Wang's work on virtio-net. It uses a simple queue steering >> algorithm that expects one queue per CPU. LUNs in the same target

Re: [patch 1/8] mm: memcg: only evict file pages when we have plenty

2012-12-19 Thread Mel Gorman
On Wed, Dec 19, 2012 at 12:21:55AM -0500, Simon Jeons wrote: > On Mon, 2012-12-17 at 16:54 +0100, Michal Hocko wrote: > > On Sun 16-12-12 09:21:54, Simon Jeons wrote: > > > On 12/13/2012 10:55 PM, Michal Hocko wrote: > > > >On Wed 12-12-12 17:28:44, Johannes Weiner wrote: > > > >>On Wed, Dec 12, 20

Re: Inconsistency in clk framework

2012-12-19 Thread Russell King - ARM Linux
On Wed, Dec 19, 2012 at 05:10:33PM +1300, Tony Prisk wrote: > Hi Mike, > > In attempting to remove some IS_ERR_OR_NULL references, it was pointed > out that clk_get() can return NULL if CONFIG_HAVE_CLK is not defined. That is correct - but why is that a problem? As far as users are concerned, NU

[PATCH] rtc: tx4939: Kill get_tx4939rtc_plat_data() function

2012-12-19 Thread Axel Lin
Simply use dev_get_drvdata() instead. Signed-off-by: Axel Lin --- drivers/rtc/rtc-tx4939.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c index a12bfac..b570d02 100644 --- a/drivers/rtc/rtc-tx4939.c

Re: [RFC PATCH 1/5] ARM: remove useless guard in smp.c

2012-12-19 Thread Mark Rutland
On Tue, Dec 18, 2012 at 06:47:09PM +, Stephen Boyd wrote: > On 12/18/12 04:06, Mark Rutland wrote: > > Currently we only provide an implementation of smp_timer_broadcast in > > smp.c if GENERIC_CLOCKEVENTS_BROADCAST is selected. As > > smp_timer_broadcast is only used in smp.c, smp.c depends on

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Mark Brown
On Tue, Dec 18, 2012 at 11:54:50AM +0200, Felipe Balbi wrote: > damn, this is still part of our v3.7-rc kernel. Original commit was done > with no testing whatsoever and caused a big regression to (at least) > TI's WiFi driver which depend on SDIO to function. > Too bad things break and even when

Re: [PATCH] SPI: SSP SPI Controller driver v3

2012-12-19 Thread Mika Westerberg
On Tue, Dec 18, 2012 at 04:11:36PM +0800, chao bi wrote: > > This patch is to implement SSP SPI controller driver, which has been applied > and > validated on intel Moorestown & Medfield platform. The patch are originated by > Ken Mills and Sylvain Centelles > , > migrating to lateset Linux mai

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Peter Ujfalusi
On 12/19/2012 10:45 AM, Mark Brown wrote: > On Tue, Dec 18, 2012 at 11:54:50AM +0200, Felipe Balbi wrote: > >> damn, this is still part of our v3.7-rc kernel. Original commit was done >> with no testing whatsoever and caused a big regression to (at least) >> TI's WiFi driver which depend on SDIO t

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Luciano Coelho
Hi Mark, On Wed, 2012-12-19 at 09:45 +, Mark Brown wrote: > On Tue, Dec 18, 2012 at 11:54:50AM +0200, Felipe Balbi wrote: > > > damn, this is still part of our v3.7-rc kernel. Original commit was done > > with no testing whatsoever and caused a big regression to (at least) > > TI's WiFi drive

[PATCH] ARM: OMAP4: PRM: Correct reset source map

2012-12-19 Thread Ivan Khoronzhuk
In the map for reset sources register we use defines intended for using with PRM_RSTCTRL register. So fix it. Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prm44xx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-

[PATCH] ARM: OMAP4: PRM: Correct wrong instance usage for reading reset sources

2012-12-19 Thread Ivan Khoronzhuk
To read reset sources registers we have to use PRM_DEVICE_INST Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prm44xx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index 7498bc7..0b61b8d 100644 --- a

[PATCH] ARM: OMAP4: PRM: fix RSTTIME and RSTST offsets

2012-12-19 Thread Ivan Khoronzhuk
From: Nishanth Menon RSTTIME is offset 0x8 and RSTST is offset 0x04 for OMAP4430 and OMAP4460. Signed-off-by: Nishanth Menon [ivan.khoronz...@ti.com: ported from k3.4] Signed-off-by: Ivan Khoronzhuk --- arch/arm/mach-omap2/prm44xx.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Mark Brown
On Wed, Dec 19, 2012 at 11:00:32AM +0100, Peter Ujfalusi wrote: > I don't know the state of the common clock framework for OMAPs. Is it already > up in 3.7? Or going for 3.8? 3.9? 3.10?... > We need CCF to resolve this. I can cook up the clock driver for the 32k clock > from twl, but in order to u

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread
Hi Yinghai , Thanks very much for your reply. I also checked some other previous emails about x2apic patches. > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu I just worry about this case, > > b) If BIOS feel the system doesn't meet x2apic conditio

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Peter Ujfalusi
On 12/19/2012 11:09 AM, Mark Brown wrote: > On Wed, Dec 19, 2012 at 11:00:32AM +0100, Peter Ujfalusi wrote: > >> I don't know the state of the common clock framework for OMAPs. Is it already >> up in 3.7? Or going for 3.8? 3.9? 3.10?... >> We need CCF to resolve this. I can cook up the clock drive

Re: [RFC PATCH 2/5] clockevents: Add generic timer broadcast receiver

2012-12-19 Thread Mark Rutland
On Tue, Dec 18, 2012 at 10:17:11PM +, Stephen Boyd wrote: > On 12/18/12 04:06, Mark Rutland wrote: > > diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c > > index f113755..c2dd022 100644 > > --- a/kernel/time/tick-broadcast.c > > +++ b/kernel/time/tick-broadcast.c > > @@

Re: [PATCH] add blockconsole version 1.1

2012-12-19 Thread Borislav Petkov
Hey Jörn, On Tue, Jul 24, 2012 at 10:28:20PM +0200, Borislav Petkov wrote: > Ok, thanks for taking the time to explain this - very interesting > stuff. > > So, as far as I'm concerned blockconsole is ready for shipping! 8-) you're probably very busy so I'll be quick: I still think that blockconso

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Mark Brown
On Wed, Dec 19, 2012 at 12:01:57PM +0200, Luciano Coelho wrote: > I think one of the reasons not many people use the mainline with TWL is > exactly because something seems to break on every new kernel release. > I'm one of those who care and report things when I see them. Well, it's a recursive t

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Mark Brown
On Wed, Dec 19, 2012 at 11:18:11AM +0100, Peter Ujfalusi wrote: > Sure. It must be a clock driver. I already have similar driver (for McPDM fclk > clock) for twl6040. > Let me check linux-next, if CCF is there for OMAP I can send the 32k clock > driver soon (after writing it and testing it). It is

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread
Hi Yinghai , Actually ,my question like this: OS can really enable x2apic correctly without BIOS' help in this case : BIOS has claimed definitely it doesn't enable x2apic ,but OS feel it can enable x2apic(based on BSP supports x2apic) ). If Linux don't need BIOS' help , how did linux

Re: [RFC PATCH 4/5] clockevents: Add generic timer broadcast function

2012-12-19 Thread Mark Rutland
On Tue, Dec 18, 2012 at 10:17:13PM +, Stephen Boyd wrote: > Minor nit > > On 12/18/12 04:06, Mark Rutland wrote: > > diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c > > index c2dd022..ec22a80 100644 > > --- a/kernel/time/tick-broadcast.c > > +++ b/kernel/time/tick-broa

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Luciano Coelho
On Wed, 2012-12-19 at 10:28 +, Mark Brown wrote: > On Wed, Dec 19, 2012 at 12:01:57PM +0200, Luciano Coelho wrote: > > > I think one of the reasons not many people use the mainline with TWL is > > exactly because something seems to break on every new kernel release. > > I'm one of those who ca

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Luciano Coelho
On Wed, 2012-12-19 at 10:32 +, Mark Brown wrote: > On Wed, Dec 19, 2012 at 11:18:11AM +0100, Peter Ujfalusi wrote: > > > Sure. It must be a clock driver. I already have similar driver (for McPDM > > fclk > > clock) for twl6040. > > Let me check linux-next, if CCF is there for OMAP I can send

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 01:32:48PM +0100, Paolo Bonzini wrote: > +/** > + * virtqueue_start_buf - start building buffer for the other end > + * @vq: the struct virtqueue we're talking about. > + * @buf: a struct keeping the state of the buffer > + * @data: the token identifying the buffer. > + * @c

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Peter Ujfalusi
On 12/19/2012 11:45 AM, Luciano Coelho wrote: >> Well, we still haven't got the foggiest idea what the actual problem is >> beyond that it's probably related to the 32kHz clock in some way (unless >> it was one of the other reverts that coincidentally made a difference, >> but we don't know what th

[PATCH] of: Fix export of of_find_matching_node_and_match()

2012-12-19 Thread Grant Likely
Commit 50c8af4cf9, "of: introduce for_each_matching_node_and_match()" renamed of_find_matching_node() to of_find_matching_node_and_match() and created a new static inline of_find_matching_node() wrapper around the new name. However, the change neglected to change the EXPORT_SYMBOL() reference causi

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Peter Ujfalusi
On 12/19/2012 11:56 AM, Peter Ujfalusi wrote: > BTW: have you happened to ubdate u-boot recently? There is a nice easter egg > added there: > f3f98bb ARM: OMAP4/5: Do not configure non essential pads, clocks, dplls. > > Which means that _essential_ clocks and pads are no longer configured. Meanwh

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Mark Brown
On Wed, Dec 19, 2012 at 11:56:20AM +0100, Peter Ujfalusi wrote: > On 12/19/2012 11:45 AM, Luciano Coelho wrote: > > 0e8e5c34 "regulator: twl: Remove references to 32kHz clock from DT bindings" > > e76ab829 "regulator: twl: Remove references to the twl4030 regulator" > > 029dd3ce "regulator: twl: R

Re: [PATCH] of: Fix export of of_find_matching_node_and_match()

2012-12-19 Thread Grant Likely
On Wed, Dec 19, 2012 at 10:58 AM, Grant Likely wrote: > Commit 50c8af4cf9, "of: introduce for_each_matching_node_and_match()" > renamed of_find_matching_node() to of_find_matching_node_and_match() and > created a new static inline of_find_matching_node() wrapper around the > new name. However, the

[PATCH V2] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-19 Thread Armando Visconti
In the IN case, since the USB request is allocated only when the source/sink function is started and never freed, the USB ept buffer needs to be initialized only at the beginning. This change results into a more performant g_zero module, especially when 'pattern=1' is selected. Signed-off-by: Arma

[RFC PATCH] Fix Intel IOMMU support for Marvell 88SE91xx SATA controllers.

2012-12-19 Thread Andrew Cooks
This is my second attempt to make Marvell 88SE91xx SATA controllers work when IOMMU is enabled.[1][2] As suggested, it no longer tries to add support for phantom functions. What's missing: * No AMD support. I need some help with this. * Table of affected chip IDs is incomplete. I think 0x9123, 0

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Luciano Coelho
On Wed, 2012-12-19 at 11:56 +0100, Peter Ujfalusi wrote: > On 12/19/2012 11:45 AM, Luciano Coelho wrote: > >> Well, we still haven't got the foggiest idea what the actual problem is > >> beyond that it's probably related to the 32kHz clock in some way (unless > >> it was one of the other reverts th

Re: [PATCH rev.2 1/6] ACPI: Separate adding ACPI device objects from probing ACPI drivers

2012-12-19 Thread Rafael J. Wysocki
On Tuesday, December 18, 2012 04:19:55 PM Bjorn Helgaas wrote: > On Tue, Dec 18, 2012 at 4:00 PM, Rafael J. Wysocki wrote: > > On Tuesday, December 18, 2012 03:15:12 PM Toshi Kani wrote: > >> On Tue, 2012-12-18 at 22:57 +0100, Rafael J. Wysocki wrote: > >> > On Tuesday, December 18, 2012 09:10:41

Re: [PATCH v2 1/6] Add header files and Kbuild plumbing for SI476x MFD core

2012-12-19 Thread Mark Brown
On Tue, Dec 18, 2012 at 07:07:28PM -0800, Andrey Smirnov wrote: > On 12-12-18 11:37 AM, Mauro Carvalho Chehab wrote: > >Em Mon, 8 Oct 2012 11:38:01 -0700 > >Andrey Smirnov escreveu: Guys, please delete irrelevant context from mails. I just TL;DRed this so if there's anything you're expecting fro

[PATCH] ACPI: Rework acpi_get_child() to be more efficient

2012-12-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Observe that acpi_get_child() doesn't need to use the helper struct acpi_find_child structure and change it to work without it. Moreover, acpi_get_child() doesn't need to loop any more once it has found a matching handle, so make it stop in that case. To prevent the resu

[PATCH] proc: fix inconsistent lock state

2012-12-19 Thread Xiaotian Feng
Lockdep found an inconsistent lock state when rcu is processing delayed work in softirq. Currently, kernel is using spin_lock/spin_unlock to protect proc_inum_ida, but proc_free_inum is called by rcu in softirq context. Use spin_lock_bh/spin_unlock_bh fix following lockdep warning. [ 49.709127]

Re: [PATCH v3] of: Output devicetree alias names in uevent

2012-12-19 Thread Grant Likely
On Thu, 6 Dec 2012 14:55:41 -0800, Stepan Moskovchenko wrote: > In some situations, userspace may want to resolve a > device by function and logical number (ie, "serial0") > rather than by the base address or full device path. Being > able to resolve a device by alias frees userspace from the >

Re: [PATCH v2 5/5] virtio-scsi: introduce multiqueue support

2012-12-19 Thread Stefan Hajnoczi
On Tue, Dec 18, 2012 at 01:32:52PM +0100, Paolo Bonzini wrote: > struct virtio_scsi_target_state { > - /* Never held at the same time as vq_lock. */ > + /* This spinlock ever held at the same time as vq_lock. */ s/ever/is never/ -- To unsubscribe from this list: send the line "unsubscri

Re: [PATCH v2 0/5] Multiqueue virtio-scsi, and API for piecewise buffer submission

2012-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2012 at 09:52:59AM +0100, Paolo Bonzini wrote: > Il 18/12/2012 23:18, Rolf Eike Beer ha scritto: > > Paolo Bonzini wrote: > >> Hi all, > >> > >> this series adds multiqueue support to the virtio-scsi driver, based > >> on Jason Wang's work on virtio-net. It uses a simple queue stee

Re: [PATCH v3] pwm: atmel: add Timer Counter Block PWM driver

2012-12-19 Thread Thierry Reding
On Mon, Dec 17, 2012 at 12:13:30PM +0100, Boris BREZILLON wrote: > Hello, > > This patch adds a PWM driver based on Atmel Timer Counter Block. > Timer Counter Block is used in Waveform generator mode. > > A Timer Counter Block provides up to 6 PWM devices grouped by 2: > * group 0 = PWM 0 and 1 >

Re: [RFC 3/3] virtio-balloon: add auto-ballooning support

2012-12-19 Thread Luiz Capitulino
On Tue, 18 Dec 2012 14:53:30 -0800 Anton Vorontsov wrote: > Hello Luiz, > > On Tue, Dec 18, 2012 at 06:16:55PM -0200, Luiz Capitulino wrote: > > The auto-ballooning feature automatically performs balloon inflate > > or deflate based on host and guest memory pressure. This can help to > > avoid s

Re: [PATCH v4 7/7] leds: leds-pwm: Add device tree bindings

2012-12-19 Thread Grant Likely
Hi Peter, Thanks for this work. Comments below... On Wed, 12 Dec 2012 10:04:52 +0100, Peter Ujfalusi wrote: > Support for device tree booted kernel. > > For usage see: > Documentation/devicetree/bindings/leds/leds-pwm.txt > > Signed-off-by: Peter Ujfalusi About commit text: Remember that co

Re: [RFC 1/2] virtio_balloon: move locking to the balloon thread

2012-12-19 Thread Rafael Aquini
On Tue, Dec 18, 2012 at 06:17:29PM -0200, Luiz Capitulino wrote: > Today, the balloon_lock mutex is taken and released by fill_balloon() > and leak_balloon() when both functions are entered and when they > return. > > This commit moves the locking to the caller instead, which is > the balloon() th

Re: [PATCH 25/26] aio: use xchg() instead of completion_lock

2012-12-19 Thread Hillf Danton
>@@ -686,9 +685,10 @@ void aio_complete(struct kiocb *iocb, long res, long res2) >* ctx->ctx_lock to prevent other code from messing with the tail >* pointer since we might be called from irq context. >*/ Well the comment is stale. Hillf >- spin_lock_irqsave(&ctx->com

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2012-12-19 Thread Paolo Bonzini
Il 19/12/2012 11:47, Stefan Hajnoczi ha scritto: > On Tue, Dec 18, 2012 at 01:32:48PM +0100, Paolo Bonzini wrote: >> +/** >> + * virtqueue_start_buf - start building buffer for the other end >> + * @vq: the struct virtqueue we're talking about. >> + * @buf: a struct keeping the state of the buffer

Re: [PATCH 04/26] aio: remove retry-based AIO

2012-12-19 Thread Hillf Danton
>@@ -52,15 +46,6 @@ struct kioctx; > * not ask the method again -- ki_retry must ensure forward progress. > * aio_complete() must be called once and only once in the future, multiple > * calls may result in undefined behaviour. >- * >- * If ki_retry returns -EIOCBRETRY it has made a promise that

Re: [PATCH 06/26] aio: Kill return value of aio_complete()

2012-12-19 Thread Hillf Danton
>@@ -594,7 +591,7 @@ static struct kioctx *lookup_ioctx(unsigned long ctx_id) > *Returns true if this is the last user of the request. The > *only other user of the request can be the cancellation code. > */ Well the comment is stale. Hillf >-int aio_complete(struct kiocb *iocb, long

Re: [PATCH] proc: fix inconsistent lock state

2012-12-19 Thread Eric W. Biederman
Xiaotian Feng wrote: >Lockdep found an inconsistent lock state when rcu is processing >delayed work in softirq. Currently, kernel is using >spin_lock/spin_unlock >to protect proc_inum_ida, but proc_free_inum is called by rcu in >softirq >context. Emarassing. Thank you for finding this. Somethi

Re: mm, ksm: NULL ptr deref in unstable_tree_search_insert

2012-12-19 Thread Petr Holasek
On Tue, 18 Dec 2012, Hugh Dickins wrote: > On Tue, 18 Dec 2012, Sasha Levin wrote: > > > Hi all, > > > > While fuzzing with trinity inside a KVM tools guest, running latest > > linux-next kernel, I've > > stumbled on the following: > > > > [ 127.959264] BUG: unable to handle kernel NULL pointe

Re: [PATCH 1/2] i2c-core: Add gpio based bus arbitration implementation

2012-12-19 Thread Grant Likely
On Fri, 14 Dec 2012 11:20:53 +0530, Naveen Krishna Chatradhi wrote: > The arbitrator is a general purpose function which uses two GPIOs to > communicate with another device to claim/release a bus. > > i2c_transfer() > if adapter->gpio_arbit > i2c_bus_claim(); >

Re: [PATCH] dt: fix tegra SPI binding examples

2012-12-19 Thread Grant Likely
On Fri, 14 Dec 2012 11:05:12 -0800, Allen Martin wrote: > Fix name of slink binding and address of sflash example to make it > self consistent. > > Change-Id: Ia89c3017c958bdf670036caf516eabce6f893096 Applied, thanks. g. > Signed-off-by: Allen Martin > --- > Documentation/devicetree/bindings

Re: [PATCH 0/7] KVM: Alleviate mmu_lock hold time when we start dirty logging

2012-12-19 Thread Takuya Yoshikawa
Ccing Alex, I tested kvm.git next branch before Alex's patch set was applied, and did not see the bug. Although I'm not 100% sure but it is possible that something got broken by a patch in the following series: [01/10] KVM: Restrict non-existing slot state transitions [02/10] KVM: Check userspac

Re: [RFC 1/2] virtio_balloon: move locking to the balloon thread

2012-12-19 Thread Luiz Capitulino
On Wed, 19 Dec 2012 09:55:58 -0200 Rafael Aquini wrote: > On Tue, Dec 18, 2012 at 06:17:29PM -0200, Luiz Capitulino wrote: > > Today, the balloon_lock mutex is taken and released by fill_balloon() > > and leak_balloon() when both functions are entered and when they > > return. > > > > This commi

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2012-12-19 Thread Stefan Hajnoczi
On Wed, Dec 19, 2012 at 1:04 PM, Paolo Bonzini wrote: > Il 19/12/2012 11:47, Stefan Hajnoczi ha scritto: >> On Tue, Dec 18, 2012 at 01:32:48PM +0100, Paolo Bonzini wrote: >> What is the purpose of count_sg? > > It is needed to decide whether to use an indirect or a direct buffer. > The idea is to

Re: [PATCH 07/14] perf ui/hist: Add support for event group view

2012-12-19 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 17, 2012 at 03:38:58PM +0900, Namhyung Kim escreveu: > From: Namhyung Kim > > Show group members' overhead also when showing the leader's if event > group is enabled. Use macro for defining hpp functions which looks > almost identical. > > Thanks to Arnaldo for suggesting a better w

Re: [PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2012-12-19 Thread Grant Likely
On Fri, 14 Dec 2012 14:58:14 -0700, Jason Gunthorpe wrote: > On Fri, Dec 14, 2012 at 08:26:29PM +, Grant Likely wrote: > > > > > If the soc_devices are getting triggered on that and they shouldn't be, > > > > then we need a mechanism in the soc_bridge node to kick out of that > > > > behavoi

Re: [PATCH 5/5] Input: Add ChromeOS EC keyboard driver

2012-12-19 Thread Grant Likely
On Fri, 14 Dec 2012 17:43:31 -0800, Dmitry Torokhov wrote: > On Saturday, December 15, 2012 01:13:45 AM Grant Likely wrote: > > On Wed, 12 Dec 2012 13:33:48 -0800, Simon Glass wrote: > > > Use the key-matrix layer to interpret key scan information from the EC > > > and inject input based on the

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Felipe Balbi
Hi, +Sricharan who commited that On Wed, Dec 19, 2012 at 11:56:20AM +0100, Peter Ujfalusi wrote: > On 12/19/2012 11:45 AM, Luciano Coelho wrote: > >> Well, we still haven't got the foggiest idea what the actual problem is > >> beyond that it's probably related to the 32kHz clock in some way (unle

Re: [PATCH] serial: tegra: add serial driver

2012-12-19 Thread Grant Likely
On Mon, 17 Dec 2012 14:31:34 -0700, Stephen Warren wrote: > On 12/17/2012 10:10 AM, Grant Likely wrote: > > On Mon, 17 Dec 2012 17:40:49 +0530, Laxman Dewangan > > wrote: > >> Nvidia's Tegra has multiple uart controller which supports: > >> - APB dma based controller fifo read/write. > >> - End

Re: [PATCH] serial: tegra: add serial driver

2012-12-19 Thread Grant Likely
On Mon, 17 Dec 2012 12:17:16 -1000, Mitch Bradley wrote: > On 12/17/2012 12:04 PM, Stephen Warren wrote: > > On 12/17/2012 02:58 PM, Mitch Bradley wrote: > >> On 12/17/2012 11:36 AM, Stephen Warren wrote: > >>> On 12/17/2012 05:10 AM, Laxman Dewangan wrote: > Nvidia's Tegra has multiple uart

Re: [RFC] Capabilities still can't be inherited by normal programs

2012-12-19 Thread Pádraig Brady
On 12/12/2012 06:29 PM, Andy Lutomirski wrote: On Sat, Dec 8, 2012 at 3:57 PM, Andy Lutomirski wrote: I just tried to search to find actual uses of pI/fI. Here's what I found: I downloaded all the Fedora spec files and searched for file capabilities. Assuming I didn't mess up, here's what

Re: [PATCH - v2] spi: davinci: add OF support for the spi controller

2012-12-19 Thread Grant Likely
On Sat, 15 Dec 2012 00:27:58 +, Grant Likely wrote: > On Tue, 11 Dec 2012 16:20:39 -0500, Murali Karicheri > wrote: > > This adds OF support to DaVinci SPI controller to configure platform > > data through device bindings. Also replaces clk_enable() with > > of clk_prepare_enable() as well

Re: [PATCH V2] checkpatch: Warn on uapi #includes that #include

2012-12-19 Thread David Howells
Joe Perches wrote: > Avoid specifying internal uapi #include paths with uapi/... > as userspace should not use and never see that. > > Neaten message line wrapping above. > > Signed-off-by: Joe Perches Acked-by: David Howells -- To unsubscribe from this list: send the line "unsubscribe linux

Re: [GIT PULL] f2fs: request for tree inclusion

2012-12-19 Thread Anca Emanuel
Hi Linus, An early prototype of this: https://wiki.linaro.org/WorkingGroups/Kernel/Specs/flash-file-system-prototype Are you still testing it ? On Sun, Dec 16, 2012 at 1:19 AM, Jaegeuk Kim wrote: > Hi Linus, > > I'm seeing that f2fs has not been merged yet. > Could you give me any notice for th

[PATCH 2/3] kcmp: Drop x86 dependancy

2012-12-19 Thread Alexander Kartashov
From: Cyrill Gorcunov Signed-off-by: Cyrill Gorcunov Signed-off-by: Alexander Kartashov --- kernel/Makefile |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 86e3285..9f7a139 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -

[PATCH 3/3] kcmp: enable the kcmp syscall when C/R is enabled

2012-12-19 Thread Alexander Kartashov
Signed-off-by: Alexander Kartashov --- arch/arm/include/uapi/asm/unistd.h |2 +- arch/arm/kernel/calls.S|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/uapi/asm/unistd.h b/arch/arm/include/uapi/asm/unistd.h index ac03bdb..afe27b5 100644

[PATCH 1/3] kcmp: Include linux/ptrace.h

2012-12-19 Thread Alexander Kartashov
From: Cyrill Gorcunov This makes it compile on s390. After all the ptrace_may_access (which we use this file) is declared exactly in linux/ptrace.h. This is preparatory work to wire this syscall up on all archs. Original-by: Heiko Carstens Signed-off-by: Cyrill Gorcunov CC: Andrew Morton CC:

Re: [PATCH V2] checkpatch: Warn on uapi #includes that #include

2012-12-19 Thread Andy Whitcroft
On Tue, Dec 18, 2012 at 05:30:58PM -0800, Joe Perches wrote: > Avoid specifying internal uapi #include paths with uapi/... > as userspace should not use and never see that. > > Neaten message line wrapping above. > > Signed-off-by: Joe Perches > cc: David Howells > --- > scripts/checkpatch.pl

Re: [GIT PULL] f2fs: request for tree inclusion

2012-12-19 Thread Arnd Bergmann
On Wednesday 19 December 2012, Anca Emanuel wrote: > > Hi Linus, > > An early prototype of this: > https://wiki.linaro.org/WorkingGroups/Kernel/Specs/flash-file-system-prototype > > Are you still testing it ? The prototype was an earlier and independent work done as an internship in Linaro. It

[PATCH] dma: tegra: implement flags parameters for cyclic transfer

2012-12-19 Thread Laxman Dewangan
The flag parameter is added in the cyclic transfer request. Use the flag option of: - DMA_PREP_INTERRUPT for enabling interrupt. - DMA_CTRL_ACK for deciding whether ack is requred or not for descriptor. Signed-off-by: Laxman Dewangan --- drivers/dma/tegra20-apb-dma.c |8 ++-- 1 files c

Re: [PATCH v2] usb: phy: samsung: Add support to set pmu isolation

2012-12-19 Thread Vivek Gautam
Hi Sylwester, On Wed, Dec 19, 2012 at 11:05 AM, Vivek Gautam wrote: > CC: Doug Anderson > > > On Wed, Dec 19, 2012 at 4:49 AM, Sylwester Nawrocki > wrote: >> Hi Vivek, >> >> >> On 12/18/2012 02:56 PM, Vivek Gautam wrote: >>> >>> Adding support to parse device node data in order to get >>> requi

Re: [RFC PATCH] Fix Intel IOMMU support for Marvell 88SE91xx SATA controllers.

2012-12-19 Thread Chu Ying
On 2012-12-19, at 18:58, Andrew Cooks wrote: > This is my second attempt to make Marvell 88SE91xx SATA controllers work when > IOMMU is enabled.[1][2] > As suggested, it no longer tries to add support for phantom functions. > > What's missing: > * No AMD support. I need some help with this. >

Re: [PATCH 1/2] usb: ehci-s5p/ohci-exynos: Fix compatible strings for the device

2012-12-19 Thread Vivek Gautam
CC: Doug Anderson On Thu, Dec 13, 2012 at 9:39 PM, Vivek Gautam wrote: > On Thu, Dec 13, 2012 at 8:22 PM, Vivek Gautam > wrote: >> Using specific chip in compatible strings. Newer SOCs can claim >> device by using older string in the compatible list. >> >> Signed-off-by: Vivek Gautam >> --- >

Re: [PATCH 2/2] usb: dwc3-exynos: Fix compatible strings for the device

2012-12-19 Thread Vivek Gautam
CC: Doug Anderson On Thu, Dec 13, 2012 at 9:40 PM, Vivek Gautam wrote: > CC: LKML > > On Thu, Dec 13, 2012 at 8:22 PM, Vivek Gautam > wrote: >> Using specific chip in compatible strings. Newer SOCs can claim >> device by using older string in the compatible list. >> >> Signed-off-by: Vivek Gau

Re: [PATCH] of: Fix export of of_find_matching_node_and_match()

2012-12-19 Thread Rob Herring
On 12/19/2012 05:02 AM, Grant Likely wrote: > On Wed, Dec 19, 2012 at 10:58 AM, Grant Likely > wrote: >> Commit 50c8af4cf9, "of: introduce for_each_matching_node_and_match()" >> renamed of_find_matching_node() to of_find_matching_node_and_match() and >> created a new static inline of_find_matching

Re: [PATCH v3 1/2] ARM: Exynos5250: Enabling ehci-s5p driver

2012-12-19 Thread Vivek Gautam
CC: Doug Anderson On Sat, Dec 15, 2012 at 12:53 PM, Grant Likely wrote: > On Thu, 13 Dec 2012 22:06:01 +0530, Vivek Gautam > wrote: >> Adding EHCI device tree node for Exynos5250 along with >> the device base adress and gpio line for vbus. >> >> Signed-off-by: Vivek Gautam >> Acked-by: Jingoo

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-19 Thread Benoit Cousson
On 12/19/2012 02:01 PM, Felipe Balbi wrote: > Hi, > > +Sricharan who commited that > > On Wed, Dec 19, 2012 at 11:56:20AM +0100, Peter Ujfalusi wrote: >> On 12/19/2012 11:45 AM, Luciano Coelho wrote: Well, we still haven't got the foggiest idea what the actual problem is beyond that it'

Re: [PATCH v3] ARM: Exynos5250: Enabling dwc3-exynos driver

2012-12-19 Thread Vivek Gautam
CC: Doug Anderson On Thu, Dec 13, 2012 at 10:17 PM, Vivek Gautam wrote: > Adding DWC3 device tree node for Exynos5250 along with the > device address and clock support needed for the controller. > > Signed-off-by: Vivek Gautam > --- > Changes from v2: > - Changed the compatible string to chip

Re: [PATCH] rtc: tx4939: Kill get_tx4939rtc_plat_data() function

2012-12-19 Thread Atsushi Nemoto
On Wed, 19 Dec 2012 17:29:04 +0800, Axel Lin wrote: > Simply use dev_get_drvdata() instead. > > Signed-off-by: Axel Lin > --- > drivers/rtc/rtc-tx4939.c | 21 - > 1 file changed, 8 insertions(+), 13 deletions(-) Hi Axel, Thank you for cleanup, but, a platform driver shou

  1   2   3   4   5   6   >