[patch 3/3] raid5: only wakeup necessary threads

2013-07-29 Thread shli
If there are no enough stripes to handle, we'd better now always queue all available work_structs. If one worker can only handle small or even none stripes, it will impact request merge and create lock contention. With this patch, the number of work_struct running will depend on pending stripes

Re: [REGRESSION/PATCH] acpi: blacklist win8 OSI for ASUS Zenbok Prime UX31A

2013-07-29 Thread Aaron Lu
On 07/30/2013 01:51 PM, Aaron Lu wrote: > On 07/30/2013 11:44 AM, Felipe Contreras wrote: >> On Mon, Jul 29, 2013 at 10:11 PM, Aaron Lu wrote: >>> On 07/30/2013 03:20 AM, Felipe Contreras wrote: Since v3.7 the acpi backlight driver doesn't work at all on this machine because presumably

[patch 2/3] raid5: sysfs entry to control worker thread number

2013-07-29 Thread shli
Add a sysfs entry to control running workqueue thread number. If group_thread_cnt is set to 0, we will disable workqueue offload handling of stripes. Signed-off-by: Shaohua Li --- drivers/md/raid5.c | 60 + 1 file changed, 60 insertions(+)

[patch 1/3] raid5: offload stripe handle to workqueue

2013-07-29 Thread shli
This is another attempt to create multiple threads to handle raid5 stripes. This time I use workqueue. raid5 handles request (especially write) in stripe unit. A stripe is page size aligned/long and acrosses all disks. Writing to any disk sector, raid5 runs a state machine for the corresponding

Re: write(2) and page cache

2013-07-29 Thread Hugh Dickins
On Sun, 28 Jul 2013, dmi p wrote: > Hi, > When I write(2) on a file such that the size of the buffer being > written is less than the page size, and the page is not in the page > cache, does the write syscall block until the page is brought into the > page cache from disk (to modify it and

[patch 0/3] raid5: make stripe handling multi-threading

2013-07-29 Thread shli
Neil, This is another attempt to make raid5 stripe handling multi-threading. Recent workqueue improvement for unbound workqueue looks very promising to the raid5 usage. I had details in the first patch. The patches are against your tree with patch 'raid5: make release_stripe lockless' and

Re: [REGRESSION/PATCH] acpi: blacklist win8 OSI for ASUS Zenbok Prime UX31A

2013-07-29 Thread Aaron Lu
On 07/30/2013 11:44 AM, Felipe Contreras wrote: > On Mon, Jul 29, 2013 at 10:11 PM, Aaron Lu wrote: >> On 07/30/2013 03:20 AM, Felipe Contreras wrote: >>> Since v3.7 the acpi backlight driver doesn't work at all on this machine >>> because presumably the ACPI code contains stub code when Windows

Re: [patch]workqueue: copy attr with all fields.

2013-07-29 Thread Shaohua Li
On Mon, Jul 29, 2013 at 11:35:23AM -0400, Tejun Heo wrote: > Hello, > > On Mon, Jul 29, 2013 at 08:52:59PM +0800, Shaohua Li wrote: > > Ah, ok, I thought it's straightforward... It's a bug fix. > > It never is, seriously. If it's something trivial / straighforward, > please say so in the patch

Re: linux-next: manual merge of the usb-gadget tree with the usb.current tree

2013-07-29 Thread Felipe Balbi
Hi, On Tue, Jul 30, 2013 at 02:08:10PM +1000, Stephen Rothwell wrote: > Hi Felipe, > > Today's linux-next merge of the usb-gadget tree got a conflict in > drivers/usb/gadget/udc-core.c between commit 1894870eb424 ("usb: gadget: > udc-core: fix the typo of udc state attribute") from the

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

2013-07-29 Thread Felipe Balbi
ast one of CONFIG_OF or > CONFIG_USB_PHY is not set, but drivers/usb/phy/of.c is now built if > CONFIG_OF and CONFIG_USB_SUPPORT is set (it used to require > CONFIG_USB_PHY to be set - see drivers/usb/Makefile). This build has > CONFIG_OF set but CONFIG_USB_PHY not set. > > I ha

Re: [PATCH v2 6/9] ARM: msm: Move mach/board.h contents to common.h

2013-07-29 Thread Tomi Valkeinen
On 29/07/13 23:20, David Brown wrote: > On Wed, Jul 24, 2013 at 01:54:31PM -0700, Stephen Boyd wrote: >> The contents of mach/board.h are only used by files within >> mach-msm so there is no need to export this file outside of the >> mach-msm directory. Move the contents of the file to common.h to

[PATCH] Return a proper bool value to hypervisor_x2apic_available

2013-07-29 Thread Zhenzhong Duan
When bootup on a bare metal env, hypervisor_x2apic_available should return ture so that "max_physical_apicid > 255" check in enable_IR_x2apic is useful. Signed-off-by: Zhenzhong Duan --- arch/x86/include/asm/hypervisor.h |2 +- arch/x86/kernel/cpu/hypervisor.c |2 +- 2 files changed, 2

Re: [PATCH 8/9] perf tools: add kcore to the object code reading test

2013-07-29 Thread Namhyung Kim
On Thu, 25 Jul 2013 17:01:29 +0300, Adrian Hunter wrote: > Make the "object code reading" test attempt to read from > kcore. > > The test uses objdump which struggles with kcore. i.e. > doesn't always work, sometimes takes a long time. > The test has been made to work around those issues. > [SNIP]

Re: [PATCH v2 2/4] phy: phy-amxxxx-usb: Add PHY driver for amxxxx platform

2013-07-29 Thread George Cherian
On 7/29/2013 8:47 PM, Sebastian Andrzej Siewior wrote: * George Cherian | 2013-07-19 18:04:35 [+0530]: Adds phy driver support for am33xx platform, the host/device peripheral controller shall get this phy object to control the phy operations. If you rebase this on-top of the two instances

Re: [PATCH 3/9] ARM: edma: Add function to manually trigger an EDMA channel

2013-07-29 Thread Sekhar Nori
On Monday 29 July 2013 06:59 PM, Joel Fernandes wrote: > Manual trigger for events missed as a result of splitting a > scatter gather list and DMA'ing it in batches. Add a helper > function to trigger a channel incase any such events are missed. > > Signed-off-by: Joel Fernandes > --- >

Re: [PATCH 2/2] arm: omap: remove *.auto* from device names given in usb_bind_phy

2013-07-29 Thread Kishon Vijay Abraham I
Hi, On Monday 29 July 2013 11:24 PM, Felipe Balbi wrote: > Hi, > > On Mon, Jul 29, 2013 at 08:59:26PM +0530, Kishon Vijay Abraham I wrote: Previously MUSB wrapper (OMAP) device used PLATFORM_DEVID_AUTO while creating MUSB core device. So in usb_bind_phy (binds the controller with

Re: [RESEND PATCH v10 1/8] drivers: phy: add generic PHY framework

2013-07-29 Thread Kishon Vijay Abraham I
Hi, On Monday 29 July 2013 09:21 PM, Sylwester Nawrocki wrote: > On 07/26/2013 02:49 PM, Kishon Vijay Abraham I wrote: >> The PHY framework provides a set of APIs for the PHY drivers to >> create/destroy a PHY and APIs for the PHY users to obtain a reference to the >> PHY with or without using

Re: [PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-07-29 Thread Joel Fernandes
On 07/29/2013 11:52 PM, Sekhar Nori wrote:> On Tuesday 30 July 2013 09:23 AM, Joel Fernandes wrote: >> On 07/29/2013 02:04 AM, Sekhar Nori wrote: >>> On Sunday 28 July 2013 05:02 AM, Joel Fernandes wrote: Hi Tony or Sekhar, If this patch looks ok, could you pick it up for -rc cycle?

Re: [Patch V2 4/4] ARM: dts: AM33XX: update rtc node compatibility

2013-07-29 Thread Gururaja Hebbar
Hi, On 7/3/2013 2:17 PM, Hebbar Gururaja wrote: Since AM33xx RTC IP has RTC_IRQWAKEEN to support Alarm Wake-up. Update the rtc compatible property to "ti,am3352-rtc" to enable handling of this feature inside rtc-omap driver. The other 2 rtc driver related patches have been pulled up. If you

Re: [PATCH v2] fs/ocfs2: use list_for_each_entry() instead of list_for_each()

2013-07-29 Thread Jeff Liu
Hi Dong, On 07/31/2013 12:00 AM, Dong Fang wrote: > On 07/29/2013 04:06 AM, Dan Carpenter wrote: >> Oh. It appears that nothing changed between v1 and v2. Only the CC >> list. >> >> It's probably that the list moderation on ocfs2-devel was confusing >> for non-native English speakers the patch

Re: [PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-07-29 Thread Sekhar Nori
On Tuesday 30 July 2013 09:23 AM, Joel Fernandes wrote: > On 07/29/2013 02:04 AM, Sekhar Nori wrote: >> On Sunday 28 July 2013 05:02 AM, Joel Fernandes wrote: >>> Hi Tony or Sekhar, >>> >>> If this patch looks ok, could you pick it up for -rc cycle? >>> >>> It fixes DMA breakages after the merge

Re: [PATCH v2 1/4] usb: phy: phy-omap-control: Add API to power and wakeup

2013-07-29 Thread George Cherian
On 7/29/2013 7:55 PM, Sebastian Andrzej Siewior wrote: * George Cherian | 2013-07-19 18:04:34 [+0530]: diff --git a/drivers/usb/phy/phy-omap-control.c b/drivers/usb/phy/phy-omap-control.c index 1419ced..4f2502c 100644 --- a/drivers/usb/phy/phy-omap-control.c +++

Re: [PATCH] dma: edma: add device_slave_caps() support

2013-07-29 Thread Joel Fernandes
Hi Vinod, On 07/29/2013 04:45 AM, Vinod Koul wrote: > On Thu, Jul 25, 2013 at 12:53:51PM +0530, Vinod Koul wrote: >> On Wed, Jul 24, 2013 at 02:36:26PM -0500, Joel Fernandes wrote: Also another point worth considering is the approach Russell suggested, I havent gotten a chance to

Re: [PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-07-29 Thread Joel Fernandes
On 07/29/2013 02:01 AM, Sekhar Nori wrote:> On Monday 22 July 2013 11:29 PM, Joel Fernandes wrote: >> HWMOD removal for MMC is breaking edma_start as the events are being manually >> triggered due to unused channel list not being clear, Thanks to Balaji TK for >> finding this issue. > > So,

Re: [PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-07-29 Thread Joel Fernandes
On 07/29/2013 02:04 AM, Sekhar Nori wrote: > On Sunday 28 July 2013 05:02 AM, Joel Fernandes wrote: >> Hi Tony or Sekhar, >> >> If this patch looks ok, could you pick it up for -rc cycle? >> >> It fixes DMA breakages after the merge window for devices for which DMA >> resources are being populated

Re: [PATCH 7/9] perf tools: add support for reading from /proc/kcore

2013-07-29 Thread Namhyung Kim
Hi, On Thu, 25 Jul 2013 17:01:28 +0300, Adrian Hunter wrote: > In the absence of vmlinux, perf tools uses kallsyms > for symbols. If the user has access, now also map to > /proc/kcore. > > The dso data_type is now set to either > DSO_BINARY_TYPE__KCORE or DSO_BINARY_TYPE__GUEST_KCORE > as

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread Grant Likely
On Mon, Jul 29, 2013 at 1:31 AM, Maxime Ripard wrote: > Hi, > > On Sun, Jul 28, 2013 at 03:19:03PM +0200, Richard Cochran wrote: >> On Sun, Jul 28, 2013 at 11:12:53AM +0200, Tomasz Figa wrote: >> >> > I'm not really sure what effect on users this has. Maybe you should define >> > "users". >> >>

linux-next: build failure after merge of the usb-gadget tree

2013-07-29 Thread Stephen Rothwell
IG_USB_PHY to be set - see drivers/usb/Makefile). This build has CONFIG_OF set but CONFIG_USB_PHY not set. I have used the usb-gadget tree from next-20130729 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpa9DhReSqgY.pgp Description: PGP signature

Re: [PATCH] RFC: interrupt consistency check for OF GPIO IRQs

2013-07-29 Thread Grant Likely
On Mon, Jul 29, 2013 at 6:36 AM, Linus Walleij wrote: > To solve this dilemma, perform an interrupt consistency check > when adding a GPIO chip: if the chip is both gpio-controller and > interrupt-controller, walk all children of the device tree, > check if these in turn reference the

Re: [PATCH -v3 3/3] PCI,pciehp: use PCIe DSN to identify device change during suspend

2013-07-29 Thread Yijing Wang
>> >> Hi Bjorn, >>I'm reworking this patch, but found some strange info about vpd serial >> number. >> I have two x86 machines, they almost have the same hardware topology. But by >> lspci, >> I found two different Broadcom BCM5709 NIC in different machine have the >> same vpd serial >>

linux-next: manual merge of the usb-gadget tree with the usb.current tree

2013-07-29 Thread Stephen Rothwell
Hi Felipe, Today's linux-next merge of the usb-gadget tree got a conflict in drivers/usb/gadget/udc-core.c between commit 1894870eb424 ("usb: gadget: udc-core: fix the typo of udc state attribute") from the usb.current tree and commit 5702f75375aa ("usb: gadget: udc-core: move sysfs_notify() to a

Re: [PATCH review 05/16] xfs: Update xfs_ioctl_setattr to handle projids in any user namespace

2013-07-29 Thread Gao feng
On 07/30/2013 11:57 AM, Dave Chinner wrote: > On Tue, Jul 30, 2013 at 11:15:50AM +0800, Gao feng wrote: >> On 07/29/2013 03:51 PM, Dave Chinner wrote: >>> http://oss.sgi.com/pipermail/xfs/2013-July/028467.html >>> >>> Basically, the discussion we are currently having is whether project >>> IDs

Re: [PATCH v2] fs/ocfs2: use list_for_each_entry() instead of list_for_each()

2013-07-29 Thread Dong Fang
On 07/29/2013 04:06 AM, Dan Carpenter wrote: Oh. It appears that nothing changed between v1 and v2. Only the CC list. It's probably that the list moderation on ocfs2-devel was confusing for non-native English speakers the patch submitter thought his patch was dropped. Also mailing lists

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread David Gibson
On Mon, Jul 29, 2013 at 10:15:12PM -0400, jonsm...@gmail.com wrote: > On Mon, Jul 29, 2013 at 9:44 PM, David Gibson > wrote: > > On Sat, Jul 27, 2013 at 10:11:16PM -0700, James Bottomley wrote: > >> On Sat, 2013-07-27 at 21:28 -0600, Grant Likely wrote: > >> > On Sat, Jul 27, 2013 at 2:25 PM,

Re: [PATCH] dynamic_debug: add wildcard support to filter files/functions/modules

2013-07-29 Thread Jason Baron
On 07/25/2013 12:47 PM, Joe Perches wrote: On Thu, 2013-07-25 at 21:02 +0800, Du, Changbin wrote: From: "Du, Changbin" This patch add wildcard '*'(matches zero or more characters) and '?' (matches one character) support when qurying debug flags. Seems very useful. Caveat below. diff --git

Re: [PATCH -v3 3/3] PCI,pciehp: use PCIe DSN to identify device change during suspend

2013-07-29 Thread Bjorn Helgaas
On Mon, Jul 29, 2013 at 9:46 PM, Yijing Wang wrote: >> I'm not sure this is implemented at the correct place. The idea of >> using the serial number to detect card swaps is not really specific to >> pciehp. I know the Device Serial Number capability is defined in the >> PCIe spec, but it

Re: [PATCH review 05/16] xfs: Update xfs_ioctl_setattr to handle projids in any user namespace

2013-07-29 Thread Dave Chinner
On Tue, Jul 30, 2013 at 11:15:50AM +0800, Gao feng wrote: > On 07/29/2013 03:51 PM, Dave Chinner wrote: > > http://oss.sgi.com/pipermail/xfs/2013-July/028467.html > > > > Basically, the discussion we are currently having is whether project > > IDs should be exposed to user namespaces at all. e.g:

Re: [linux-pm] [PATCH 1/3] cpuidle/powernv: cpuidle backend driver for powernv

2013-07-29 Thread Deepthi Dharwar
On 07/29/2013 08:23 PM, Daniel Lezcano wrote: > On 07/29/2013 04:39 PM, Deepthi Dharwar wrote: >> Hi Daniel, >> >> On 07/27/2013 10:57 AM, Daniel Lezcano wrote: >>> On 07/23/2013 11:01 AM, Deepthi Dharwar wrote: This patch implements a back-end cpuidle driver for powernv calling

Re: [PATCH 2/3] cpuidle/powernv: Enable idle powernv cpu to call into the cpuidle framework.

2013-07-29 Thread Deepthi Dharwar
On 07/29/2013 08:14 PM, Daniel Lezcano wrote: > On 07/29/2013 04:27 PM, Deepthi Dharwar wrote: >> On 07/27/2013 10:59 AM, Daniel Lezcano wrote: >>> On 07/23/2013 11:01 AM, Deepthi Dharwar wrote: This patch enables idle powernv cpu to hook on to the cpuidle framework, if available, else

Re: [PATCH -v3 3/3] PCI,pciehp: use PCIe DSN to identify device change during suspend

2013-07-29 Thread Yijing Wang
> I'm not sure this is implemented at the correct place. The idea of > using the serial number to detect card swaps is not really specific to > pciehp. I know the Device Serial Number capability is defined in the > PCIe spec, but it doesn't *require* any PCIe functionality, and > there's no

Re: [PATCH 7/9] syslog_ns: implement function for creating syslog ns

2013-07-29 Thread Gu Zheng
On 07/30/2013 11:39 AM, Rui Xiang wrote: > On 2013/7/29 18:25, Gu Zheng wrote: >> Hi Rui, >> >> On 07/29/2013 10:31 AM, Rui Xiang wrote: >> >>> Add create_syslog_ns function to create a new ns. We >>> must create a user_ns before create a new syslog ns. >>> And then tie the new syslog_ns to

Re: [REGRESSION/PATCH] acpi: blacklist win8 OSI for ASUS Zenbok Prime UX31A

2013-07-29 Thread Felipe Contreras
On Mon, Jul 29, 2013 at 10:11 PM, Aaron Lu wrote: > On 07/30/2013 03:20 AM, Felipe Contreras wrote: >> Since v3.7 the acpi backlight driver doesn't work at all on this machine >> because presumably the ACPI code contains stub code when Windows 8 OSI is >> reported. >> >> The commit ea45ea7 (in

Re: [PATCH] PCI: update device mps when doing pci hotplug

2013-07-29 Thread Bjorn Helgaas
On Mon, Jul 29, 2013 at 9:20 PM, Yijing Wang wrote: > On 2013/7/30 7:33, Bjorn Helgaas wrote: >> On Mon, May 27, 2013 at 9:15 PM, Yijing Wang wrote: >>> Hi Bjorn and Jon, >>>I'm sorry to disturb you. This patch is sent so long, but nobody seems >>> had comment about it. >>> Do you have any

Re: [PATCH] btrfs: use list_for_each_entry_safe() when delete items

2013-07-29 Thread Miao Xie
On mon, 29 Jul 2013 11:48:32 +0400, Azat Khuzhin wrote: > On Sat, Jul 27, 2013 at 2:12 PM, Azat Khuzhin wrote: >> Replace list_for_each_entry() by list_for_each_entry_safe() in >> __btrfs_close_devices() >> >> There is another place that delete items lock_stripe_add(), but there we >> don't need

Re: [PATCH 7/9] syslog_ns: implement function for creating syslog ns

2013-07-29 Thread Rui Xiang
On 2013/7/29 18:25, Gu Zheng wrote: > Hi Rui, > > On 07/29/2013 10:31 AM, Rui Xiang wrote: > >> Add create_syslog_ns function to create a new ns. We >> must create a user_ns before create a new syslog ns. >> And then tie the new syslog_ns to current user_ns >> instead of original syslog_ns which

Re: [PATCH] sched: don't wait in kthread_bind for presmp initcalls

2013-07-29 Thread Xie XiuQi
On 2013/7/30 1:19, Abbas Raza wrote: > From: Abbas Raza > > wait_task_inactive shouldn't be called in kthread_bind for presmp > initcalls the same way it is done in !SMP case. > > more info here: > http://permalink.gmane.org/gmane.linux.kernel.embedded/4046 > > This patch improves boot time

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 11:10, Joe Perches wrote: > On Tue, 2013-07-30 at 11:04 +0800, Li Zefan wrote: >> On 2013/7/30 10:36, Joe Perches wrote: >>> On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: On 2013/7/30 9:58, Joe Perches wrote: > So what are these TRACE_ defines that need > excluding

Re: [PATCH] PCI: update device mps when doing pci hotplug

2013-07-29 Thread Yijing Wang
On 2013/7/30 7:33, Bjorn Helgaas wrote: > On Mon, May 27, 2013 at 9:15 PM, Yijing Wang wrote: >> Hi Bjorn and Jon, >>I'm sorry to disturb you. This patch is sent so long, but nobody seems >> had comment about it. >> Do you have any comment with this patch? >> >> This patch try to update

Re: [PATCH RFT] regulator: pfuze100: Fix n_voltages setting for SW2~SW4 with high bit set

2013-07-29 Thread Robin Gong
Ok for me. On Tue, Jul 30, 2013 at 10:46:28AM +0800, Axel Lin wrote: > Current code adjust min_uV and uV_step but missed adjusting the n_voltages > setting. > > When BIT6 is clear: > n_voltages = (1975000 - 40) / 25000 + 1 = 64 > When BIT6 is set: > n_voltages = (330 -

Re: [PATCH review 05/16] xfs: Update xfs_ioctl_setattr to handle projids in any user namespace

2013-07-29 Thread Gao feng
On 07/29/2013 03:51 PM, Dave Chinner wrote: > [ cc xfs list ] > > On Mon, Jul 29, 2013 at 03:17:06PM +0800, Gao feng wrote: >> On 02/19/2013 09:55 AM, Dave Chinner wrote: >>> On Sun, Feb 17, 2013 at 05:10:58PM -0800, Eric W. Biederman wrote: From: "Eric W. Biederman" - Convert the

Re: [REGRESSION/PATCH] acpi: blacklist win8 OSI for ASUS Zenbok Prime UX31A

2013-07-29 Thread Aaron Lu
On 07/30/2013 03:20 AM, Felipe Contreras wrote: > Since v3.7 the acpi backlight driver doesn't work at all on this machine > because presumably the ACPI code contains stub code when Windows 8 OSI is > reported. > > The commit ea45ea7 (in v3.11-rc2) tried to fix this problem by using the intel >

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Tue, 2013-07-30 at 11:04 +0800, Li Zefan wrote: > On 2013/7/30 10:36, Joe Perches wrote: > > On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: > >> On 2013/7/30 9:58, Joe Perches wrote: > >>> So what are these TRACE_ defines that need > >>> excluding from the "complex values" check? > >>> >

[PATCH v2] generic-ipi: kill unnecessary variable - csd_flags

2013-07-29 Thread Xie XiuQi
After commit:8969a5ede0f9e17da4b943712429aef2c9bcd82b "generic-ipi: remove kmalloc()", wait = 0 can be guaranteed. And all callsites of generic_exec_single() do an unconditional csd_lock() now. So csd_flags is unnecessary now. Remote it. Signed-off-by: Xie XiuQi Cc: Peter Zijlstra Link:

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 10:36, Joe Perches wrote: > On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: >> On 2013/7/30 9:58, Joe Perches wrote: >>> So what are these TRACE_ defines that need >>> excluding from the "complex values" check? >>> >>> Anything other than >>> >>> TRACE_SYSTEM >>>

Re: [PATCH] imx2_wdt: expose module alias for loading from device-tree

2013-07-29 Thread Shawn Guo
On Mon, Jul 29, 2013 at 09:38:18AM +0200, Niels de Vos wrote: > Enable auto loading by udev when imx2_wdt is compiled as a module. > > Signed-off-by: Niels de Vos > Cc: Shawn Guo Acked-by: Shawn Guo > --- > drivers/watchdog/imx2_wdt.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

[ANNOUNCE] ARM kernel summit 2013, Oct 22-23

2013-07-29 Thread Olof Johansson
As previous years, we are planning on hosting a ARM Kernel Summit attached to the main Kernel Summit, and we have graciously been given space to host it for two days, Oct 22-23 (Oct 23 is the track day for the main KS, so we're getting an extra day) in Edinburgh, UK. To make sure we get the right

[PATCH RFT] regulator: pfuze100: Fix n_voltages setting for SW2~SW4 with high bit set

2013-07-29 Thread Axel Lin
Current code adjust min_uV and uV_step but missed adjusting the n_voltages setting. When BIT6 is clear: n_voltages = (1975000 - 40) / 25000 + 1 = 64 When BIT6 is set: n_voltages = (330 - 80) / 5 + 1 = 51 The n_voltages needs update because when BIT6 is set 0x73 ~

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Tue, 2013-07-30 at 10:06 +0800, Li Zefan wrote: > On 2013/7/30 9:58, Joe Perches wrote: > > So what are these TRACE_ defines that need > > excluding from the "complex values" check? > > > > Anything other than > > > > TRACE_SYSTEM > > TRACE_INCLUDE_FILE > > TRACE_INCLUDE_PATH > > > > ? > >

Re: regulator: pfuze100: A few small questions

2013-07-29 Thread Robin Gong
On Tue, Jul 30, 2013 at 10:26:40AM +0800, Axel Lin wrote: > 2013/7/30 Robin Gong : > > On Mon, Jul 29, 2013 at 11:44:40PM +0800, Axel Lin wrote: > >> >> Current code adjust min_uV and uV_step when SW2~SW4 high bit is set. > >> >> I'm wondering if n_voltages is correct or not in this case because >

Re: regulator: pfuze100: A few small questions

2013-07-29 Thread Axel Lin
2013/7/30 Robin Gong : > On Mon, Jul 29, 2013 at 11:44:40PM +0800, Axel Lin wrote: >> >> Current code adjust min_uV and uV_step when SW2~SW4 high bit is set. >> >> I'm wondering if n_voltages is correct or not in this case because >> >> the n_voltages is calculated by original equation

Re: regulator: pfuze100: A few small questions

2013-07-29 Thread Robin Gong
On Mon, Jul 29, 2013 at 11:44:40PM +0800, Axel Lin wrote: > >> Current code adjust min_uV and uV_step when SW2~SW4 high bit is set. > >> I'm wondering if n_voltages is correct or not in this case because > >> the n_voltages is calculated by original equation (max-min/step + 1). > >> What is the

linux-next: build failure after merge of the net-next tree

2013-07-29 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: net/9p/trans_rdma.c:724:15: error: 'rdma_cancelled' undeclared here (not in a function) .cancelled = rdma_cancelled, ^ Caused by commit 59ea52dc461e ("net: trans_rdma:

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread jonsm...@gmail.com
On Mon, Jul 29, 2013 at 9:44 PM, David Gibson wrote: > On Sat, Jul 27, 2013 at 10:11:16PM -0700, James Bottomley wrote: >> On Sat, 2013-07-27 at 21:28 -0600, Grant Likely wrote: >> > On Sat, Jul 27, 2013 at 2:25 PM, Grant Likely >> > wrote: >> > > On Sat, Jul 27, 2013 at 2:01 PM,

Re: [PATCH] PCI: update NumVFs register properly during enable/disable sriov

2013-07-29 Thread Yijing Wang
On 2013/7/29 22:31, Bjorn Helgaas wrote: > [+cc Don] > > On Wed, Jul 24, 2013 at 3:26 AM, Yijing Wang wrote: >> Currently, we only update NumVFs register during sriov_enable(). >> This register should also be updated properly during sriov_disable. >> Otherwise, we will get the stale "Number of

Re: [PATCH 0/9] Add namespace support for syslog v2

2013-07-29 Thread Rui Xiang
Hi Eric, Thanks for your attention. On 2013/7/30 2:58, Eric W. Biederman wrote: > Rui Xiang writes: > >> This patchset introduces a system log namespace. > > The largest outstanding question is not answered. Can't we just fix > iptables to log somehwere better than dmesg, and would that

[PATCH 3/3 v2] Update x86_msi.restore_msi_irqs API param

2013-07-29 Thread Zhenzhong Duan
Change x86_msi.restore_msi_irqs(struct pci_dev *dev, int irq) to x86_msi.restore_msi_irqs(struct pci_dev *dev) >From its naming, restore_msi_irqs is used to restore multiple msix irqs, param 'int irq' is unneeded. This could make code looks consistent in vm and bare metal. Dom0 msix restore code

Re: [PATCH v7 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-29 Thread Hongbo Zhang
On 07/30/2013 06:10 AM, Scott Wood wrote: On 07/29/2013 05:49:03 AM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch adds the device tree nodes for them. Signed-off-by: Hongbo Zhang ---

Re: [PATCH v7 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-29 Thread Hongbo Zhang
On 07/29/2013 06:59 PM, Vinod Koul wrote: On Mon, Jul 29, 2013 at 06:49:01PM +0800, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang Hi Vinod, Dan, Scott and Leo, please have a look at these V7 patches. The dma relates changes look okay to me. I need someone to review and ACK the DT

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 9:58, Joe Perches wrote: > On Tue, 2013-07-30 at 09:30 +0800, Li Zefan wrote: >> On 2013/7/30 3:52, Sarah Sharp wrote: >>> Hi Andy and Joe, >>> >>> Checkpatch is complaining when code adds new trace events macros: >>> >>> sarah@xanatos:~/git/kernels/xhci$ git am -s

Re: kisskb: sparc-allmodconfig is actually sparc64

2013-07-29 Thread Michael Ellerman
On Fri, 2013-07-26 at 12:23 +0200, Geert Uytterhoeven wrote: > Hi Michael, Stephen, > > The sparc-allmodconfig builds on http://kisskb.ellerman.id.au/kisskb/matrix/ > seem to be sparc64, not sparc32, allmodconfig builds. > The sparc-allnoconfig builds are sparc32. OK this should be fixed. See

Re: [PATCH v3 6/6] tracing: Change remove_event_file_dir() to clear "d_subdirs"->i_private

2013-07-29 Thread Steven Rostedt
On Tue, 2013-07-30 at 10:36 +0900, Masami Hiramatsu wrote: > Looks good for me. > > Reviewed-by: Masami Hiramatsu I've applied them all locally, but I'll rebase and add your reviewed-by tags. (also make some other checks) Then I need to rerun them through my main tests before I post them to

Re: memcg creates an unkillable task in 3.2-rc2

2013-07-29 Thread Li Zefan
> I am also seeing what looks like a leak somewhere in the cgroup code as > well. After some runs of the same reproducer I get into a state where > after everything is clean up. All of the control groups have been > removed and the cgroup filesystem is unmounted, I can mount a cgroup >

Re: [PATCH v2 6/6] tracing: Change remove_event_file_dir() to clear "d_subdirs"->i_private

2013-07-29 Thread Steven Rostedt
On Tue, 2013-07-30 at 10:28 +0900, Masami Hiramatsu wrote: > (2013/07/29 23:21), Oleg Nesterov wrote: > > On 07/29, Masami Hiramatsu wrote: > >> > >> (2013/07/27 2:25), Oleg Nesterov wrote: > >>> Change remove_event_file_dir() to clear ->i_private for every > >>> file we are going to remove. > >>

Re: Checkpatch error on trace events macros

2013-07-29 Thread Joe Perches
On Tue, 2013-07-30 at 09:30 +0800, Li Zefan wrote: > On 2013/7/30 3:52, Sarah Sharp wrote: > > Hi Andy and Joe, > > > > Checkpatch is complaining when code adds new trace events macros: > > > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/.to-apply > > Applying: xhci: add

Re: [Ksummit-2013-discuss] Defining schemas for Device Tree

2013-07-29 Thread David Gibson
On Mon, Jul 29, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > On Mon, Jul 29, 2013 at 05:49:05PM +0100, Dave Martin wrote: > > On Mon, Jul 29, 2013 at 11:01:24AM -0400, Jason Cooper wrote: > > > On Mon, Jul 29, 2013 at 02:21:52AM +0200, Tomasz Figa wrote: > > > > > b) What information should be

Re: [PATCH v14 1/6] LSM: Security blob abstraction

2013-07-29 Thread Casey Schaufler
On 7/29/2013 2:15 PM, Kees Cook wrote: > On Thu, Jul 25, 2013 at 11:32 AM, Casey Schaufler > wrote: >> Subject: [PATCH v14 1/6] LSM: Security blob abstraction >> >> Create an abstracted interface for security blobs. >> Instead of directly accessing security blob pointers >> Use lsm_get and

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread David Gibson
On Sat, Jul 27, 2013 at 10:11:16PM -0700, James Bottomley wrote: > On Sat, 2013-07-27 at 21:28 -0600, Grant Likely wrote: > > On Sat, Jul 27, 2013 at 2:25 PM, Grant Likely > > wrote: > > > On Sat, Jul 27, 2013 at 2:01 PM, jonsm...@gmail.com > > > wrote: > > >> On Sat, Jul 27, 2013 at 3:45 PM,

Re: [PATCH v14 3/6] LSM: Explicit individual LSM associations

2013-07-29 Thread Casey Schaufler
On 7/29/2013 1:51 PM, Kees Cook wrote: > On Thu, Jul 25, 2013 at 11:32 AM, Casey Schaufler > wrote: >> Subject: [PATCH v14 3/6] LSM: Explicit individual LSM associations >> [...] >> Introduce feature specific security operation vectors >> for NetLabel, XFRM, secmark and presentation in the >>

Re: [PATCH] smp: kill unnecessary variable - csd_flags

2013-07-29 Thread Xie XiuQi
On 2013/7/29 20:13, Peter Zijlstra wrote: > On Mon, Jul 29, 2013 at 10:29:45AM +0800, Xie XiuQi wrote: >> We used csd_flags formerly because we allocated csd_data by >> kmalloc when "wait == 0". When fail to allocation, we will >> fall back to on-stack allocation. "csd_data" might be invalid >>

Re: [PATCH v2 2/6] tracing: Change event_enable/disable_read() to verify i_private != NULL

2013-07-29 Thread Steven Rostedt
On Tue, 2013-07-30 at 10:31 +0900, Masami Hiramatsu wrote: > BTW, this still has a cosmetic change, is that OK for Steven? > > > strcat(buf, "\n"); > > - > > return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen(buf)); > > } > > You mean the above? Don't worry, I removed it

Re: linux-next: manual merge of the char-misc tree with Linus' tree

2013-07-29 Thread Greg KH
On Tue, Jul 30, 2013 at 10:27:54AM +1000, Stephen Rothwell wrote: > Hi Greg, > > On Mon, 29 Jul 2013 12:26:49 -0700 Greg KH wrote: > > > > On Mon, Jul 29, 2013 at 03:01:29PM +1000, Stephen Rothwell wrote: > > > > > > Today's linux-next merge of the char-misc tree got a conflict in > > >

Re: [PATCH v3 6/6] tracing: Change remove_event_file_dir() to clear "d_subdirs"->i_private

2013-07-29 Thread Masami Hiramatsu
(2013/07/29 3:35), Oleg Nesterov wrote: > Change remove_event_file_dir() to clear ->i_private for every > file we are going to remove. > > We need to check file->dir != NULL because event_create_dir() > can fail. debugfs_remove_recursive(NULL) is fine but the patch > moves it under the same check

Re: [PATCH RFC nohz_full 7/7] nohz_full: Force RCU's grace-period kthreads onto timekeeping CPU

2013-07-29 Thread Lai Jiangshan
On 07/30/2013 12:52 AM, Paul E. McKenney wrote: > On Mon, Jul 29, 2013 at 11:36:05AM +0800, Lai Jiangshan wrote: >> On 07/27/2013 07:19 AM, Paul E. McKenney wrote: >>> From: "Paul E. McKenney" >>> >>> Because RCU's quiescent-state-forcing mechanism is used to drive the >>> full-system-idle state

Re: [PATCH v2 4/6] tracing: Change f_start() to take event_mutex and verify i_private != NULL

2013-07-29 Thread Masami Hiramatsu
(2013/07/27 2:25), Oleg Nesterov wrote: > trace_format_open() and trace_format_seq_ops are racy, nothing > protects ftrace_event_call from trace_remove_event_call(). > > Change f_start() to take event_mutex and verify i_private != NULL, > change f_stop() to drop this lock. > > This fixes

Re: [PATCH v2 3/6] tracing: Change event_filter_read/write to verify i_private != NULL

2013-07-29 Thread Masami Hiramatsu
(2013/07/27 2:25), Oleg Nesterov wrote: > event_filter_read/write() are racy, ftrace_event_call can be already > freed by trace_remove_event_call() callers. > > 1. Shift mutex_lock(event_mutex) from print/apply_event_filter to >the callers. > > 2. Change the callers, event_filter_read() and

Re: [PATCH v2 5/6] tracing: Introduce remove_event_file_dir()

2013-07-29 Thread Masami Hiramatsu
(2013/07/27 2:25), Oleg Nesterov wrote: > Preparation for the next patch. Extract the common code from > remove_event_from_tracers() and __trace_remove_event_dirs() > into the new helper, remove_event_file_dir(). > > The patch looks more complicated than it actually is, it also > moves

Re: [PATCH v2 2/6] tracing: Change event_enable/disable_read() to verify i_private != NULL

2013-07-29 Thread Masami Hiramatsu
(2013/07/27 2:25), Oleg Nesterov wrote: > tracing_open_generic_file() is racy, ftrace_event_file can be > already freed by rmdir or trace_remove_event_call(). > > Change event_enable_read() and event_disable_read() to read and > verify "file = i_private" under event_mutex. > > This fixes

Re: Checkpatch error on trace events macros

2013-07-29 Thread Li Zefan
On 2013/7/30 3:52, Sarah Sharp wrote: > Hi Andy and Joe, > > Checkpatch is complaining when code adds new trace events macros: > > sarah@xanatos:~/git/kernels/xhci$ git am -s ~/Maildir.fetchmail/.to-apply > Applying: xhci: add traces for debug messages in xhci_address_device() > ERROR: Macros

Re: [PATCH v2 1/6] tracing: Turn event/id->i_private into call->event.type

2013-07-29 Thread Masami Hiramatsu
(2013/07/27 2:25), Oleg Nesterov wrote: > event_id_read() is racy, ftrace_event_call can be already freed > by trace_remove_event_call() callers. > > Change event_create_dir() to pass "data = call->event.type", this > is all event_id_read() needs. ftrace_event_id_fops no longer needs >

Re: [PATCH v2] iommu: Add event tracing feature to iommu

2013-07-29 Thread Joe Perches
On Mon, 2013-07-29 at 19:22 -0600, Shuah Khan wrote: > Add tracing feature to iommu to report various iommu events. Classes > iommu_group, iommu_device, iommu_map_unmap, and iommu_amd_event are defined. Hi again Shuah > diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c [] >

Re: [PATCH v2 6/6] tracing: Change remove_event_file_dir() to clear "d_subdirs"->i_private

2013-07-29 Thread Masami Hiramatsu
(2013/07/29 23:21), Oleg Nesterov wrote: > On 07/29, Masami Hiramatsu wrote: >> >> (2013/07/27 2:25), Oleg Nesterov wrote: >>> Change remove_event_file_dir() to clear ->i_private for every >>> file we are going to remove. >> >> Oleg, I think this should be done first. >> >> AFAICS, your former

Re: [PATCH v2] iommu: Add event tracing feature to iommu

2013-07-29 Thread Shuah Khan
On 07/29/2013 07:23 PM, Shuah Khan wrote: Sorry please ignore this patch. I accidentally included test code. -- Shuah Shuah Khan, Linux Kernel Developer - Open Source Group Samsung Research America (Silicon Valley) shuah...@samsung.com | (970) 672-0658 -- To unsubscribe from this list: send

[PATCH v2] iommu: Add event tracing feature to iommu

2013-07-29 Thread Shuah Khan
Add tracing feature to iommu to report various iommu events. Classes iommu_group, iommu_device, iommu_map_unmap, and iommu_amd_event are defined. iommu_group class events can be enabled to trigger when devices get added to and removed from an iommu group. Trace information includes iommu group id

[PATCH 2/2] x86: Fix copy_from_user_nmi return to match copy_from_user.

2013-07-29 Thread Jed Davis
copy_from_user returns the number of bytes not copied. This change makes copy_from_user_nmi behave the same way, instead of returning the number of bytes that were copied, to help prevent bugs caused by this surprising difference (and simplify callers, which mostly want to know if the number of

[PATCH 1/2] perf: Fix handling of arch_perf_out_copy_user return value.

2013-07-29 Thread Jed Davis
All architectures except x86 use __copy_from_user_inatomic to provide arch_perf_out_copy_user; like the other copy_from routines, it returns the number of bytes not copied. perf was expecting the number of bytes that had been copied. This change corrects that, and thereby allows

Re: [PATCH v3 1/8] cgroup: convert cgroup_ida to cgroup_idr

2013-07-29 Thread Li Zefan
On 2013/7/30 2:28, Tejun Heo wrote: > Hello, > > On Mon, Jul 29, 2013 at 03:07:48PM +0800, Li Zefan wrote: >> @@ -4590,6 +4599,9 @@ static void cgroup_offline_fn(struct work_struct *work) >> /* delete this cgroup from parent->children */ >> list_del_rcu(>sibling); >> >> +if

Re: [PATCH v3 2/8] cgroup: document how cgroup IDs are assigned

2013-07-29 Thread Li Zefan
On 2013/7/30 2:26, Tejun Heo wrote: > On Mon, Jul 29, 2013 at 03:08:04PM +0800, Li Zefan wrote: >> As cgroup id has been used in netprio cgroup and will be used in memcg, >> it's important to make it clear how a cgroup id is allocated. >> >> For example, in netprio cgroup, the id is used as index

Re: [SCSI REGRESSION] 3.10.2 or 3.10.3: arcmsr failure at bootup / early userspace transition

2013-07-29 Thread Nix
On 30 Jul 2013, Douglas Gilbert outgrape: > Please supply the information that Martin Petersen asked > for. Did it in private IRC (the advantage of working for the same division of the same company!) I didn't realise the original fix was actually implemented to allow Bernd, with a different

Re: [3.10rc6] /proc/dri/0/vma broken on nouveau.

2013-07-29 Thread Dave Jones
On Mon, Jun 17, 2013 at 09:49:27PM -0400, David Airlie wrote: > > > Reading /proc/dri/0/vma causes bad things to happen on a box with nouveau > > loaded. > > (Note, no X running on that box) > > > > Trace below shows trinity, but I can reproduce it with just cat > > /proc/dri/0/vma > >

Re: [PATCH 1/9] syslog_ns: add syslog_namespace and put/get_syslog_ns

2013-07-29 Thread Gu Zheng
On 07/29/2013 07:47 PM, Rui Xiang wrote: > On 2013/7/29 17:40, Gu Zheng wrote: >> Hi Rui, >> Refer to inline:). >> > Hi Gu, > > Thanks for your attention. > >> On 07/29/2013 10:31 AM, Rui Xiang wrote: >> >>> Add a struct syslog_namespace which contains the necessary >>> members for

  1   2   3   4   5   6   7   8   9   10   >