Re: [Ksummit-2013-discuss] [ATTEND] DT, maintainership, development process

2013-07-30 Thread James Bottomley
On Tue, 2013-07-30 at 22:47 -0700, H. Peter Anvin wrote: > On 07/29/2013 03:30 PM, Rafael J. Wysocki wrote: > > On Monday, July 29, 2013 02:17:34 PM John W. Linville wrote: > >> On Mon, Jul 29, 2013 at 03:27:44PM +0200, Rafael J. Wysocki wrote: > >> > >>> That said we have the same issue with

Re: [PATCH v2] PCI: Reset PCIe devices to stop ongoing DMA

2013-07-30 Thread Takao Indoh
(2013/07/31 12:11), Alex Williamson wrote: > On Wed, 2013-07-31 at 09:35 +0900, Takao Indoh wrote: >> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c >> index e37fea6..c595997 100644 >> --- a/drivers/pci/pci.c >> +++ b/drivers/pci/pci.c >> @@ -3392,6 +3392,59 @@ int pci_reset_function(struct

Re: [Ksummit-2013-discuss] [ATTEND] DT, maintainership, development process

2013-07-30 Thread H. Peter Anvin
On 07/29/2013 03:30 PM, Rafael J. Wysocki wrote: > On Monday, July 29, 2013 02:17:34 PM John W. Linville wrote: >> On Mon, Jul 29, 2013 at 03:27:44PM +0200, Rafael J. Wysocki wrote: >> >>> That said we have the same issue with commits with just two SOB tags if >>> a maintainer applies a patch that

Re: [PATCH v3 6/6] ARM: davinci: da850: configure system configuration chip(CFGCHIP3) for emac

2013-07-30 Thread Sekhar Nori
On Sunday 23 June 2013 08:30 PM, Prabhakar Lad wrote: > From: "Lad, Prabhakar" > > This patch makes a common function for to configure emac and calls > it appropriately in DT and non DT boot mode. The system configuration > chip CFGCHIP3, controls the emac module. This patch appropriately >

[PATCH] net: Remove extern from include/net/ scheduling prototypes

2013-07-30 Thread Joe Perches
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare

RE: [PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Wang Dongsheng-B40534
Hi Preeti, > -Original Message- > From: Preeti U Murthy [mailto:pre...@linux.vnet.ibm.com] > Sent: Wednesday, July 31, 2013 12:00 PM > To: Wang Dongsheng-B40534 > Cc: Deepthi Dharwar; b...@kernel.crashing.org; daniel.lezc...@linaro.org; > linux-kernel@vger.kernel.org;

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-07-30 Thread Kishon Vijay Abraham I
Hi, On Tuesday 30 July 2013 12:41 PM, Felipe Balbi wrote: > On Sun, Jul 21, 2013 at 08:46:53AM -0700, Greg KH wrote: >> On Sun, Jul 21, 2013 at 01:12:07PM +0200, Tomasz Figa wrote: >>> On Sunday 21 of July 2013 16:37:33 Kishon Vijay Abraham I wrote: Hi, On Sunday 21 July 2013 04:01

Re: [PATCH v3 6/9] mm, hugetlb: do not use a page in page cache for cow optimization

2013-07-30 Thread Joonsoo Kim
On Tue, Jul 30, 2013 at 08:37:08AM +1000, David Gibson wrote: > On Mon, Jul 29, 2013 at 02:28:18PM +0900, Joonsoo Kim wrote: > > Currently, we use a page with mapped count 1 in page cache for cow > > optimization. If we find this condition, we don't allocate a new > > page and copy contents.

Re: [PATCH 17/18] mm, hugetlb: retry if we fail to allocate a hugepage with use_reserve

2013-07-30 Thread Joonsoo Kim
Hello, David. On Mon, Jul 29, 2013 at 05:28:23PM +1000, David Gibson wrote: > On Mon, Jul 29, 2013 at 02:32:08PM +0900, Joonsoo Kim wrote: > > If parallel fault occur, we can fail to allocate a hugepage, > > because many threads dequeue a hugepage to handle a fault of same address. > > This makes

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

2013-07-30 Thread Sekhar Nori
On Wednesday 31 July 2013 10:00 AM, Joel Fernandes wrote: > On 07/30/2013 12:18 AM, Sekhar Nori wrote: >> 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 >>>

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

2013-07-30 Thread Joel Fernandes
On 07/30/2013 12:18 AM, Sekhar Nori wrote: > 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. >>

Re: [PATCH 4/9] dma: edma: Find missed events and issue them

2013-07-30 Thread Joel Fernandes
Hi Sekhar, On 07/30/2013 02:05 AM, Sekhar Nori wrote: > On Monday 29 July 2013 06:59 PM, Joel Fernandes wrote: >> In an effort to move to using Scatter gather lists of any size with >> EDMA as discussed at [1] instead of placing limitations on the driver, >> we work through the limitations of the

Re: [PATCH 7/9] ARM: edma: Don't clear EMR of channel in edma_stop

2013-07-30 Thread Joel Fernandes
On 07/30/2013 03:29 AM, Sekhar Nori wrote: > On Monday 29 July 2013 06:59 PM, Joel Fernandes wrote: >> We certainly don't want error conditions to be cleared anywhere > > 'anywhere' is a really loaded term. > >> as this will make us 'forget' about missed events. We depend on >> knowing which

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

2013-07-30 Thread Joel Fernandes
On 07/30/2013 11:29 AM, Sekhar Nori wrote: > On 7/30/2013 9:17 AM, Joel Fernandes wrote: > diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index a432e6c..765d578 100644 --- a/arch/arm/common/edma.c +++ b/arch/arm/common/edma.c > + } else { +

Re: [PATCH 16/18] mm, hugetlb: return a reserved page to a reserved pool if failed

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 04:19:10PM -0400, Naoya Horiguchi wrote: > On Mon, Jul 29, 2013 at 02:32:07PM +0900, Joonsoo Kim wrote: > > If we fail with a reserved page, just calling put_page() is not sufficient, > > because put_page() invoke free_huge_page() at last step and it doesn't > > know

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

2013-07-30 Thread Matthew Garrett
On Tue, Jul 30, 2013 at 07:11:06PM -0500, Felipe Contreras wrote: > No, the ACPI driver is exposing a backlight interface, which has a > defined stable API. >From the ACPI spec: 'The OEM may define the number 0 as "Zero brightness" that can mean to turn off the lighting (e.g. LCD panel

Re: [PATCH 15/18] mm, hugetlb: move up anon_vma_prepare()

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 03:19:15PM -0400, Naoya Horiguchi wrote: > On Mon, Jul 29, 2013 at 03:05:37PM -0400, Naoya Horiguchi wrote: > > On Mon, Jul 29, 2013 at 02:32:06PM +0900, Joonsoo Kim wrote: > > > If we fail with a allocated hugepage, it is hard to recover properly. > > > One such example is

Re: [PATCH 11/18] mm, hugetlb: move down outside_reserve check

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 02:39:30PM -0400, Naoya Horiguchi wrote: > On Mon, Jul 29, 2013 at 02:32:02PM +0900, Joonsoo Kim wrote: > > Just move down outsider_reserve check. > > This makes code more readable. > > > > There is no functional change. > > Why don't you do this in 10/18? Just help to

Re: [PATCH 10/18] mm, hugetlb: call vma_has_reserve() before entering alloc_huge_page()

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 02:27:54PM -0400, Naoya Horiguchi wrote: > On Mon, Jul 29, 2013 at 02:32:01PM +0900, Joonsoo Kim wrote: > > To implement a graceful failure handling, we need to know whether > > allocation request is for reserved pool or not, on higher level. > > In this patch, we just move

Re: [PATCH 08/18] mm, hugetlb: do hugepage_subpool_get_pages() when avoid_reserve

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 02:05:51PM -0400, Naoya Horiguchi wrote: > On Mon, Jul 29, 2013 at 02:31:59PM +0900, Joonsoo Kim wrote: > > When we try to get a huge page with avoid_reserve, we don't consume > > a reserved page. So it is treated like as non-reserve case. > > This patch will be completely

[PATCH 3/3] selftests: Add test of PMU instruction counting on powerpc

2013-07-30 Thread Michael Ellerman
This commit adds a test of instruction counting using the PMU on powerpc. Although the bulk of the code is architecture agnostic, the code needs to run a precisely sized loop which is implemented in assembler. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/Makefile

[PATCH 2/3] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/harness.c | 83 +++ tools/testing/selftests/powerpc/subunit.h | 47 + tools/testing/selftests/powerpc/utils.h | 34

[PATCH 1/3] selftests: Add infrastructure for powerpc selftests

2013-07-30 Thread Michael Ellerman
This commit adds a powerpc subdirectory to tools/testing/selftests, for tests that are powerpc specific. On other architectures nothing is built. The makefile supports cross compilation if the user sets ARCH and CROSS_COMPILE. Signed-off-by: Michael Ellerman ---

Re: [PATCH 06/18] mm, hugetlb: remove vma_need_reservation()

2013-07-30 Thread Joonsoo Kim
On Tue, Jul 30, 2013 at 11:19:58PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > vma_need_reservation() can be substituted by vma_has_reserves() > > with minor change. These function do almost same thing, > > so unifying them is better to maintain. > > I found the resulting code

Re: [PATCH 06/18] mm, hugetlb: remove vma_need_reservation()

2013-07-30 Thread Joonsoo Kim
Hello, Naoya. On Mon, Jul 29, 2013 at 01:52:52PM -0400, Naoya Horiguchi wrote: > Hi, > > On Mon, Jul 29, 2013 at 02:31:57PM +0900, Joonsoo Kim wrote: > > vma_need_reservation() can be substituted by vma_has_reserves() > > with minor change. These function do almost same thing, > > so unifying

Re: [PATCH 01/18] mm, hugetlb: protect reserved pages when softofflining requests the pages

2013-07-30 Thread Joonsoo Kim
On Wed, Jul 31, 2013 at 10:49:24AM +0800, Hillf Danton wrote: > On Wed, Jul 31, 2013 at 10:27 AM, Joonsoo Kim wrote: > > On Mon, Jul 29, 2013 at 03:24:46PM +0800, Hillf Danton wrote: > >> On Mon, Jul 29, 2013 at 1:31 PM, Joonsoo Kim > >> wrote: > >> > alloc_huge_page_node() use

Re: [PATCH RFC 3/3] cpufreq: cpufreq-cpu0: clk rate-change notifiers

2013-07-30 Thread Viresh Kumar
On 31 July 2013 07:13, Mike Turquette wrote: > Quoting Viresh Kumar (2013-07-07 21:10:54) >> On Mon, Jul 8, 2013 at 7:14 AM, Mike Turquette wrote: >> > Removes direct handling of OPP tables and voltage regulators by calling >> > of_clk_cpufreq_notifier_handler, introduced by commit "clk: cpufreq

Re: [PATCH v5 0/4] [SCSI] sg: fix race condition in sg_open

2013-07-30 Thread vaughan
On 07/26/2013 04:33 AM, Douglas Gilbert wrote: > On 13-07-25 11:32 AM, vaughan wrote: >> On 07/23/2013 01:03 AM, Jörn Engel wrote: >>> On Mon, 22 July 2013 12:40:29 +0800, Vaughan Cao wrote: There is a race when open sg with O_EXCL flag. Also a race may happen between sg_open and

[PATCH 01/11] writeback: plug writeback at a high level

2013-07-30 Thread Dave Chinner
From: Dave Chinner Doing writeback on lots of little files causes terrible IOPS storms because of the per-mapping writeback plugging we do. This essentially causes imeediate dispatch of IO for each mapping, regardless of the context in which writeback is occurring. IOWs, running a concurrent

[PATCH 04/11] sync: serialise per-superblock sync operations

2013-07-30 Thread Dave Chinner
From: Dave Chinner When competing sync(2) calls walk the same filesystem, they need to walk the list of inodes on the superblock to find all the inodes that we need to wait for IO completion on. However, when multiple wait_sb_inodes() calls do this at the same time, they contend on the the

[PATCH 03/11] inode: convert inode_sb_list_lock to per-sb

2013-07-30 Thread Dave Chinner
From: Dave Chinner The process of reducing contention on per-superblock inode lists starts with moving the locking to match the per-superblock inode list. This takes the global lock out of the picture and reduces the contention problems to within a single filesystem. This doesn't get rid of

[PATCH 00/11] Sync and VFS scalability improvements

2013-07-30 Thread Dave Chinner
Hi folks, This series of patches is against the curent mmotm tree here: http://git.cmpxchg.org/cgit/linux-mmotm.git/ It addresses several VFS scalability issues, the most pressing of which is lock contention triggered by concurrent sync(2) calls. The patches in the series are: writeback: plug

[PATCH 11/11] list_lru: don't lock during add/del if unnecessary

2013-07-30 Thread Dave Chinner
From: Dave Chinner We only add an item to the LRU is it is empty, and we only remove them if they are on the LRU. We can check these conditions without holding the node lock and avoid grabbing the lock if they evaluate as not needing a list operation. We can do this without concern, because we

[PATCH 06/11] bdi: add a new writeback list for sync

2013-07-30 Thread Dave Chinner
From: Dave Chinner wait_sb_inodes() current does a walk of all inodes in the filesystem to find dirty one to wait on during sync. This is highly inefficient and wastes a lot of CPU when there are lots of clean cached inodes that we don't need to wait on. To avoid this "all inode" walk, we need

[PATCH 09/11] fs: Use RCU lookups for inode cache

2013-07-30 Thread Dave Chinner
From: Dave Chinner Convert inode cache lookups to be protected by RCU locking rather than the global inode_hash_lock. This will improve scalability of inode lookup intensive workloads. Tested w/ ext4 and btrfs on concurrent fsmark/lookup/unlink workloads only. It removes the inode hash lock

[PATCH 08/11] inode: convert per-sb inode list to a list_lru

2013-07-30 Thread Dave Chinner
From: Dave Chinner The per-superblock inode list and lock is a bottleneck for systems that cycle inodes in and out of cache concurrently. The global lock is a limiting factor. Most of the additions to the sb inode list occur on the CPU that allocated the inode, and most of the removals occur

[PATCH 02/11] inode: add IOP_NOTHASHED to avoid inode hash lock in evict

2013-07-30 Thread Dave Chinner
From: Dave Chinner Some filesystems don't use the VFS inode hash and fake the fact they are hashed so that all the writeback code works correctly. However, this means the evict() path still tries to remove the inode from the hash, meaning that the inode_hash_lock() needs to be taken

[PATCH 07/11] writeback: periodically trim the writeback list

2013-07-30 Thread Dave Chinner
From: Dave Chinner Inodes are removed lazily from the bdi writeback list, so in the absence of sync(2) work inodes will build up on the bdi writback list even though they are no longer under IO. Use the periodic kupdate work check to remove inodes no longer under IO from the writeback list.

Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-30 Thread Marc C
>> One thing which would probably be worthwhile tho is getting rid of the >> bitmap based qc tag allocator in libata. That one is just borderline >> stupid to keep around on any setup which is supposed to be scalable. > Your border might be wider than mine :-). Yes, the bitmap should > definitely

[PATCH 10/11] list_lru: don't need node lock in list_lru_count_node

2013-07-30 Thread Dave Chinner
From: Dave Chinner The overall count of objects on a node might be accurate, but the moment it is returned to the caller it is no longer perfectly accurate. Hence we don't really need to hold the node lock to protect the read of the object. The count is a long, so can be read atomically on all

[PATCH 05/11] inode: rename i_wb_list to i_io_list

2013-07-30 Thread Dave Chinner
From: Dave Chinner There's a small consistency problem between the inode and writeback naming. Writeback calls the "for IO" inode queues b_io and b_more_io, but the inode calls these the "writeback list" or i_wb_list. This makes it hard to an new "under writeback" list to the inode, or call it

Re: [PATCH v2] xfs: introduce object readahead to log recovery

2013-07-30 Thread Zhi Yong Wu
On Wed, Jul 31, 2013 at 7:11 AM, Dave Chinner wrote: > On Tue, Jul 30, 2013 at 05:59:07PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> It can take a long time to run log recovery operation because it is >> single threaded and is bound by read latency. We can find that it took

Re: [PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Preeti U Murthy
Hi Dongsheng, On 07/31/2013 08:52 AM, Wang Dongsheng-B40534 wrote: > > >> -Original Message- >> From: Deepthi Dharwar [mailto:deep...@linux.vnet.ibm.com] >> Sent: Wednesday, July 31, 2013 10:59 AM >> To: b...@kernel.crashing.org; daniel.lezc...@linaro.org; linux- >>

RE: [PATCH V2 5/6] cpuidle/powerpc: Backend-powerpc idle driver for powernv and pseries.

2013-07-30 Thread Wang Dongsheng-B40534
> > -static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n, > +static int powerpc_cpuidle_add_cpu_notifier(struct notifier_block *n, > unsigned long action, void *hcpu) > { > int hotcpu = (unsigned long)hcpu; > struct cpuidle_device *dev = > -

Re: [PATCH] pinctrl: msm: Add support for MSM TLMM pinmux

2013-07-30 Thread Stephen Warren
On 07/30/2013 06:13 PM, Hanumant Singh wrote: > On 7/30/2013 5:08 PM, Stephen Warren wrote: >> On 07/30/2013 06:01 PM, Hanumant Singh wrote: >>> On 7/30/2013 2:22 PM, Stephen Warren wrote: On 07/30/2013 03:10 PM, hanumant wrote: ... > We actually have the same TLMM pinmux used by

[PATCH] openrisc: Makefile: append "-D__linux__" to KBUILD_CFLAGS

2013-07-30 Thread Chen Gang
Need append "_D__linux__" to KBUILD_CFLAGS, just like some of another architectures have done, or 'allmodconfig' can not pass compiling. The related error: CC [M] fs/coda/psdev.o In file included from include/linux/coda.h:65:0, from fs/coda/psdev.c:45:

Re: [PATCH] fbdev: fix build warning in vga16fb.c

2013-07-30 Thread Gu Zheng
Hoho, Tomi has applied the patch from Lius to fix this warning. And this is the sixth patch to fix the same issue since last week. Thanks, Gu On 07/31/2013 11:21 AM, Xishi Qiu wrote: > When building v3.11-rc3, I get the following warning: > ... > drivers/video/vga16fb.c: In function

Re: [PATCH 4/5] mmc: dw_mmc: Indicate that regulators may be absent

2013-07-30 Thread Jaehoon Chung
Acked-by: Jaehoon Chung Best Regards, Jaehoon Chung On 07/30/2013 10:33 PM, Seungwon Jeon wrote: > On Tue, July 30, 2013, Mark Brown wrote: >> From: Mark Brown >> >> Use regulator_get_optional() to tell the core that requests for regulators >> can fail in a real system. >> >> Signed-off-by:

RE: [PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Wang Dongsheng-B40534
> -Original Message- > From: Deepthi Dharwar [mailto:deep...@linux.vnet.ibm.com] > Sent: Wednesday, July 31, 2013 10:59 AM > To: b...@kernel.crashing.org; daniel.lezc...@linaro.org; linux- > ker...@vger.kernel.org; mich...@ellerman.id.au; > srivatsa.b...@linux.vnet.ibm.com;

[PATCH] fbdev: fix build warning in vga16fb.c

2013-07-30 Thread Xishi Qiu
When building v3.11-rc3, I get the following warning: ... drivers/video/vga16fb.c: In function ‘vga16fb_destroy’: drivers/video/vga16fb.c:1268: warning: unused variable ‘dev’ ... Signed-off-by: Xishi Qiu --- drivers/video/vga16fb.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-)

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

2013-07-30 Thread Martin K. Petersen
> "Nick" == Nick Alcock writes: Nick> in which case we don't actually know that your Areca controller Nick> supports the VPD page we thought it did: quite possibly only this Nick> underlying disk does. The ATA Information VPD page is created by the SCSI-ATA Translation layer. The controller

Re: [PATCH trivial] include/linux/coda.h: remove useless '#else'

2013-07-30 Thread Chen Gang F T
On 07/31/2013 09:53 AM, Chen Gang wrote: > On 07/31/2013 09:44 AM, Chen Gang wrote: >> On 07/30/2013 08:29 PM, Joe Perches wrote: >>> On Tue, 2013-07-30 at 15:30 +0800, Chen Gang wrote: '#else' is useless, need remove. Signed-off-by: Chen Gang --- include/linux/coda.h |

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

2013-07-30 Thread Martin K. Petersen
> "Bernd" == Bernd Schubert writes: Bernd, >> Product revision level: R001 It's clearly not verbatim passthrough... Bernd> Besides the firmware, the difference might be that I'm exporting Bernd> single disks without any areca-raidset in between. I can try to Bernd> confirm that

Re: [PATCH v2] PCI: Reset PCIe devices to stop ongoing DMA

2013-07-30 Thread Alex Williamson
On Wed, 2013-07-31 at 09:35 +0900, Takao Indoh wrote: > (2013/07/31 0:59), Bjorn Helgaas wrote: > > On Tue, Jul 30, 2013 at 12:09 AM, Takao Indoh > > wrote: > >> (2013/07/29 23:17), Bjorn Helgaas wrote: > >>> On Sun, Jul 28, 2013 at 6:37 PM, Takao Indoh > >>> wrote: > (2013/07/26 2:00),

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

2013-07-30 Thread Martin K. Petersen
> "Doug" == Douglas Gilbert writes: Doug> I just examined a more recent Areca SAS RAID controller and would Doug> describe it as the SCSI device from hell. One solution to this Doug> problem is to modify the arcmsr driver so it returns a more Doug> consistent set of lies to the management

[PATCH V2 3/6] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-07-30 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv archs, it is necessary to move the backend-driver code to powerpc/sysdev. As a pre-requisite to that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar ---

[PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Deepthi Dharwar
Move pseries_idle backend driver code to arch/powerpc/sysdev so that the code can be used for a common driver for powernv and pseries. This removes a lot of code duplicacy. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/pseries/Kconfig |9 -

[PATCH V2 5/6] cpuidle/powerpc: Backend-powerpc idle driver for powernv and pseries.

2013-07-30 Thread Deepthi Dharwar
The following patch extends the current pseries backend idle driver to powernv platform. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/processor.h |2 - arch/powerpc/sysdev/Kconfig |8 +- arch/powerpc/sysdev/Makefile |2 -

[PATCH V2 2/6] cpuidle/pseries: Remove dependency of pseries.h file

2013-07-30 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv, this patch is essential to remove the dependency of pseries.h header file. Move the declaration of smt_snooze_delay from pseries.h to processor_idle.c. smt_snooze_delay variable is needed for

[PATCH V2 6/6] cpuidle/powernv: Enable idle powernv cpu to call into the cpuidle framework.

2013-07-30 Thread Deepthi Dharwar
This patch enables idle powernv cpu to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/setup.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH V2 1/6] cpuidle/pseries: Fix kernel command line parameter smt-snooze-delay

2013-07-30 Thread Deepthi Dharwar
smt-snooze-delay is tunable provided currently on powerpc to delay the entry of an idle cpu to NAP state. By default, the value is 100us, which is entry criteria for NAP state i.e only if the idle period is above 100us it would enter NAP. Value of -1 disables entry into NAP. This value can be set

[PATCH V2 0/6] cpuidle/powerpc: POWERPC cpuidle driver for POWER and POWERNV platforms

2013-07-30 Thread Deepthi Dharwar
Following patch series consolidates backend cpuidle driver for pseries and powernv platforms. Current existing backend driver for pseries has been moved to arch/powerpc/sysdev and has been extended to accommodate powernv idle power mgmt states. As seen in V1 of this patch series, too much code

[PATCH v2] usb: core: don't try to reset_device() a port that got just disconnected

2013-07-30 Thread Julius Werner
The USB hub driver's event handler contains a check to catch SuperSpeed devices that transitioned into the SS.Inactive state and tries to fix them with a reset. It decides whether to do a plain hub port reset or call the usb_reset_device() function based on whether there was a device attached to

Re: [PATCH 01/18] mm, hugetlb: protect reserved pages when softofflining requests the pages

2013-07-30 Thread Hillf Danton
On Wed, Jul 31, 2013 at 10:27 AM, Joonsoo Kim wrote: > On Mon, Jul 29, 2013 at 03:24:46PM +0800, Hillf Danton wrote: >> On Mon, Jul 29, 2013 at 1:31 PM, Joonsoo Kim wrote: >> > alloc_huge_page_node() use dequeue_huge_page_node() without >> > any validation check, so it can steal reserved page

Re: [PATCH 05/18] mm, hugetlb: protect region tracking via newly introduced resv_map lock

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 11:53:05AM -0700, Davidlohr Bueso wrote: > On Mon, 2013-07-29 at 14:31 +0900, Joonsoo Kim wrote: > > There is a race condition if we map a same file on different processes. > > Region tracking is protected by mmap_sem and hugetlb_instantiation_mutex. > > When we do mmap, we

Re: [PATCH 05/18] mm, hugetlb: protect region tracking via newly introduced resv_map lock

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 04:58:57PM +0800, Hillf Danton wrote: > On Mon, Jul 29, 2013 at 1:31 PM, Joonsoo Kim wrote: > > There is a race condition if we map a same file on different processes. > > Region tracking is protected by mmap_sem and hugetlb_instantiation_mutex. > > When we do mmap, we

[ANNOUNCE] ktap 0.2 released

2013-07-30 Thread zhangwei(Jovi)
Dear, I'm pleased to announce that ktap released v0.2, the archive is available at: https://github.com/ktap/ktap/archive/v0.2.tar.gz = what's ktap? A New Scripting Dynamic Tracing Tool For Linux ktap have different design principles from Linux mainstream dynamic tracing

Re: [PATCH 03/18] mm, hugetlb: unify region structure handling

2013-07-30 Thread Joonsoo Kim
On Tue, Jul 30, 2013 at 10:57:37PM +0530, Aneesh Kumar K.V wrote: > Joonsoo Kim writes: > > > Currently, to track a reserved and allocated region, we use two different > > ways for MAP_SHARED and MAP_PRIVATE. For MAP_SHARED, we use > > address_mapping's private_list and, for MAP_PRIVATE, we use

Re: [PATCH] usb: core: don't try to reset_device() a port that got just disconnected

2013-07-30 Thread Julius Werner
> Wait a moment. Why does each of these attempts lead to a 5-second > timeout? Why don't they fail immediately? Now that you mention it, that's a very good question. The kernel enqueues a control transfer to the now disconnected address because it's internal bookkeeping is not yet updated, but

Re: [PATCH v2] staging/lustre: lloop depends on BLOCK

2013-07-30 Thread Xiong Zhou
On Tue, 30 Jul 2013, Peng Tao wrote: > On Tue, Jul 30, 2013 at 8:29 AM, Xiong Zhou wrote: > > From: Xiong Zhou > > > > In the lustre client driver, lloop depends on BLOCK. Add an > > option for this dependence. Last version of this patch makes > > LUSTRE_FS depends on BLOCK. > > Remove

Re: [PATCH 01/18] mm, hugetlb: protect reserved pages when softofflining requests the pages

2013-07-30 Thread Joonsoo Kim
On Mon, Jul 29, 2013 at 03:24:46PM +0800, Hillf Danton wrote: > On Mon, Jul 29, 2013 at 1:31 PM, Joonsoo Kim wrote: > > alloc_huge_page_node() use dequeue_huge_page_node() without > > any validation check, so it can steal reserved page unconditionally. > > Well, why is it illegal to use reserved

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

2013-07-30 Thread Aaron Lu
On 07/31/2013 10:07 AM, Felipe Contreras wrote: > On Tue, Jul 30, 2013 at 8:36 PM, Aaron Lu wrote: >> On 07/31/2013 08:11 AM, Felipe Contreras wrote: >>> On Tue, Jul 30, 2013 at 6:13 PM, Rafael J. Wysocki wrote: >>> > If 0 turns the screen off with the intel driver, 0 should turn the >

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

2013-07-30 Thread Felipe Contreras
On Tue, Jul 30, 2013 at 8:59 PM, Aaron Lu wrote: > On 07/31/2013 04:59 AM, Felipe Contreras wrote: >> There is another interface the turn the screen off. >> >> If 0 turns the screen off with the intel driver, 0 should turn the >> screen off with the ACPI driver, having inconsistent behavior >>

Re: [RFC PATCH] cfq-iosched: limit slice_idle when many busy queues are in idle window

2013-07-30 Thread Shaohua Li
On Tue, Jul 30, 2013 at 03:30:33PM -0400, Tomoki Sekiyama wrote: > Hi, > > When some application launches several hundreds of processes that issue > only a few small sync I/O requests, CFQ may cause heavy latencies > (10+ seconds at the worst case), although the request rate is low enough for >

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

2013-07-30 Thread Felipe Contreras
On Tue, Jul 30, 2013 at 8:36 PM, Aaron Lu wrote: > On 07/31/2013 08:11 AM, Felipe Contreras wrote: >> On Tue, Jul 30, 2013 at 6:13 PM, Rafael J. Wysocki wrote: >> If 0 turns the screen off with the intel driver, 0 should turn the screen off with the ACPI driver, having inconsistent

Re: [PATCH] f2fs: add a wait step when submit bio with {READ,WRITE}_SYNC

2013-07-30 Thread Gu Zheng
Hi Kim, On 07/30/2013 08:29 PM, Jaegeuk Kim wrote: > Hi Gu, > > The original read flow was to avoid redandunt lock/unlock_page() calls. Right, this can gain better read performance. But is the wait step after submitting bio with READ_SYNC needless too? > And we should not wait for

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

2013-07-30 Thread Aaron Lu
On 07/31/2013 04:59 AM, Felipe Contreras wrote: > On Tue, Jul 30, 2013 at 8:42 AM, Rafael J. Wysocki wrote: >> On Tuesday, July 30, 2013 01:57:55 PM Aaron Lu wrote: >>> 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

Re: [PATCH trivial] include/linux/coda.h: remove useless '#else'

2013-07-30 Thread Chen Gang
On 07/31/2013 09:44 AM, Chen Gang wrote: > On 07/30/2013 08:29 PM, Joe Perches wrote: >> On Tue, 2013-07-30 at 15:30 +0800, Chen Gang wrote: >>> '#else' is useless, need remove. >>> >>> Signed-off-by: Chen Gang >>> --- >>> include/linux/coda.h |1 - >>> 1 files changed, 0 insertions(+), 1

[PATCH v4 5/8] memcg: convert to use cgroup id

2013-07-30 Thread Li Zefan
Use cgroup id instead of css id. This is a preparation to kill css id. Note, as memcg treat 0 as an invalid id, while cgroup id starts with 0, we define memcg_id == cgroup_id + 1. Signed-off-by: Li Zefan Acked-by: Michal Hocko --- mm/memcontrol.c | 34 -- 1

[PATCH v4 8/8] cgroup: kill css_id

2013-07-30 Thread Li Zefan
The only user of css_id was memcg, and it has been convered to use cgroup->id, so kill css_id. Signed-off-by: Li Zefan Reviewed-by: Michal Hocko --- include/linux/cgroup.h | 37 kernel/cgroup.c| 252 + 2 files changed, 1

[PATCH v4 3/8] cgroup: implement cgroup_from_id()

2013-07-30 Thread Li Zefan
This will be used as a replacement for css_lookup(). There's a difference with cgroup id and css id. cgroup id starts with 0, while css id starts with 1. v4: - also check if cggroup_mutex is held. - make it an inline function. Signed-off-by: Li Zefan Reviewed-by: Michal Hocko ---

[PATCH v4 6/8] memcg: fail to create cgroup if the cgroup id is too big

2013-07-30 Thread Li Zefan
memcg requires the cgroup id to be smaller than 65536. This is a preparation to kill css id. Signed-off-by: Li Zefan Acked-by: Michal Hocko --- mm/memcontrol.c | 9 + 1 file changed, 9 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 62541f5..ad7d7c9 100644 ---

[PATCH v4 7/8] memcg: stop using css id

2013-07-30 Thread Li Zefan
Now memcg uses cgroup id instead of css id. Update some comments and set mem_cgroup_subsys->use_id to 0. Signed-off-by: Li Zefan Acked-by: Michal Hocko --- mm/memcontrol.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/mm/memcontrol.c

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

2013-07-30 Thread Li Zefan
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 of anarray. Signed-off-by: Li Zefan Reviewed-by: Michal Hocko --- include/linux/cgroup.h | 8 +++-

[PATCH v4 4/8] memcg: convert to use cgroup_is_descendant()

2013-07-30 Thread Li Zefan
This is a preparation to kill css_id. Signed-off-by: Li Zefan Acked-by: Michal Hocko --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d12ca6f..626c426 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1434,7

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

2013-07-30 Thread Li Zefan
This enables us to lookup a cgroup by its id. v4: - add a comment for idr_remove() in cgroup_offline_fn(). v3: - on success, idr_alloc() returns the id but not 0, so fix the BUG_ON() in cgroup_init(). - pass the right value to idr_alloc() so that the id for dummy cgroup is 0. Signed-off-by:

[PATCH v4 0/8] memcg, cgroup: kill css_id

2013-07-30 Thread Li Zefan
This patchset converts memcg to use cgroup->id, and then we can remove cgroup css_id. As we've removed memcg's own refcnt, converting memcg to use cgroup->id is very straight-forward. The patchset is based on Tejun's cgroup tree. v4: - make cgroup_from_id() inline and check if cgroup_mutex is

Re: [PATCH trivial] include/linux/coda.h: remove useless '#else'

2013-07-30 Thread Chen Gang
On 07/30/2013 08:29 PM, Joe Perches wrote: > On Tue, 2013-07-30 at 15:30 +0800, Chen Gang wrote: >> '#else' is useless, need remove. >> >> Signed-off-by: Chen Gang >> --- >> include/linux/coda.h |1 - >> 1 files changed, 0 insertions(+), 1 deletions(-) >> >> diff --git a/include/linux/coda.h

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

2013-07-30 Thread Barry Song
2013/7/30 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,

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

2013-07-30 Thread Shaohua Li
On Tue, Jul 30, 2013 at 10:14:19AM -0400, Tejun Heo wrote: > Hello, Shaohua. > > On Tue, Jul 30, 2013 at 01:49:55PM +0800, Shaohua Li wrote: > > > Note that copy_workqueue_attrs() is also used while creating worker > > > pools and this change would mean that there will be worker pools with > > >

Re: [PATCH 4/4] ARM: sun6i: Enable clock support in the DTSI

2013-07-30 Thread Emilio López
Hi Maxime, Overall this looks good to me, but I have some small comments: El 30/07/13 11:44, Maxime Ripard escribió: > Now that the clock driver has support for the A31 clocks, we can add > them to the DTSI and start using them in the relevant hardware blocks. > > Signed-off-by: Maxime Ripard

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

2013-07-30 Thread Aaron Lu
On 07/31/2013 08:11 AM, Felipe Contreras wrote: > On Tue, Jul 30, 2013 at 6:13 PM, Rafael J. Wysocki wrote: > >>> If 0 turns the screen off with the intel driver, 0 should turn the >>> screen off with the ACPI driver, having inconsistent behavior >>> depending on which driver is used is a bug.

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

2013-07-30 Thread Stephen Rothwell
Hi Ted, On Mon, 29 Jul 2013 11:08:16 +1000 Stephen Rothwell wrote: > > After merging the ext4 tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > fs/ext4/ialloc.c: In function '__ext4_new_inode': > fs/ext4/ialloc.c:817:1: warning: label 'next_ino' defined but not

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

2013-07-30 Thread Shaohua Li
On Tue, Jul 30, 2013 at 09:57:51AM -0400, Tejun Heo wrote: > Hello, > > On Tue, Jul 30, 2013 at 09:07:08PM +0800, Shaohua Li wrote: > > Ok, I should explain here. I can't add a work_struct for each stripe, > > because > > this will stress workqueue very hard. My system handles > 1M/s stripes, >

Re: [PATCH v2] PCI: Reset PCIe devices to stop ongoing DMA

2013-07-30 Thread Takao Indoh
(2013/07/31 0:59), Bjorn Helgaas wrote: > On Tue, Jul 30, 2013 at 12:09 AM, Takao Indoh > wrote: >> (2013/07/29 23:17), Bjorn Helgaas wrote: >>> On Sun, Jul 28, 2013 at 6:37 PM, Takao Indoh >>> wrote: (2013/07/26 2:00), Bjorn Helgaas wrote: > > My point about IOMMU and PCI

Re: [PATCH 3/4] clk: sunxi: Add A31 clocks support

2013-07-30 Thread Emilio López
Hi Maxime, El 30/07/13 11:44, Maxime Ripard escribió: > The A31 has a mostly different clock set compared to the other older > SoCs currently supported in the Allwinner clock driver. > > Add support for the basic useful clocks. The other ones will come in > eventually. > > Signed-off-by: Maxime

Re: [PATCH 01/17] perf util: Save pid-cmdline mapping into tracing header

2013-07-30 Thread Namhyung Kim
Hi Arnaldo, 2013-07-30 오후 10:28, Arnaldo Carvalho de Melo 쓴 글: Em Tue, Jul 30, 2013 at 06:18:58PM +0900, Namhyung Kim escreveu: From: Namhyung Kim Current trace info data lacks the saved cmdline mapping which is needed for pevent to find out the comm of a task. Add this and bump up the

Re: [PATCH resend] shdma: fixup sh_dmae_get_partial() calculation error

2013-07-30 Thread Simon Horman
On Tue, Jul 30, 2013 at 11:22:31AM +0200, Guennadi Liakhovetski wrote: > Hi Simon > > On Tue, 30 Jul 2013, Simon Horman wrote: > > > [ Cc Vinod ] > > > > On Tue, Jul 23, 2013 at 11:12:41PM -0700, Kuninori Morimoto wrote: > > > sh_desc->hw.tcr is controlling real data size, > > > and, register

Re: __ftrace_hash_rec_update FTRACE_WARN_ON.

2013-07-30 Thread Steven Rostedt
On Sat, 2013-07-27 at 12:16 -0700, Steve Hodgson wrote: > This patch fixes ftrace across module removal/reinsertion on our 3.6.11 > kernel. I found a few corner cases that this patch doesn't work with, and the solution is just getting uglier and uglier. I found a new solution that seems to

Re: [PATCH] Driver core: Add accessor for device tree node

2013-07-30 Thread Jingoo Han
On Tuesday, July 30, 2013 10:57 PM, Greg Kroah-Hartman wrote: > On Tue, Jul 30, 2013 at 06:20:47PM +0900, Jingoo Han wrote: > > Add the wrapper function for retrieving device tree node instead of > > accessing dev->of_node directly. > > Why? Sorry, I cannot find the special reason why it should

  1   2   3   4   5   6   7   8   9   10   >