[PATCH v2] 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 --- v2: Put back the SIGALRM handler to make the hang logic work. tools/testing/selftests/powerpc/harness.c | 99 +++ tools/testing/selftests/powerpc/subunit.h | 47

Re: [PATCH 2/3] ACPI / PM: Make messages in acpi_device_set_power() print device names

2013-07-30 Thread Aaron Lu
On 07/29/2013 08:20 PM, Rafael J. Wysocki wrote: > On Monday, July 29, 2013 10:29:36 AM Aaron Lu wrote: >> On 07/27/2013 09:11 PM, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> Modify acpi_device_set_power() so that diagnostic messages printed by >>> it to the kernel log always cont

Re: [PATCH 1/3] ACPI / PM: Only set power states of devices that are power manageable

2013-07-30 Thread Aaron Lu
On 07/30/2013 10:04 PM, Rafael J. Wysocki wrote: > On Tuesday, July 30, 2013 07:43:48 AM Aaron Lu wrote: >> On 07/30/2013 06:21 AM, Rafael J. Wysocki wrote: >>> On Monday, July 29, 2013 10:09:53 PM Aaron Lu wrote: On 07/27/2013 09:10 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki

Re: [PATCH 00/11] Sync and VFS scalability improvements

2013-07-30 Thread Sedat Dilek
On Wed, Jul 31, 2013 at 6:15 AM, Dave Chinner wrote: > Hi folks, > > This series of patches is against the curent mmotm tree here: > > http://git.cmpxchg.org/cgit/linux-mmotm.git/ > "Current" is not precise enough... above tree has git-tags. I guess you mean "v3.11-rc1-mmotm-2013-07-18-16-40" ?

Re: [Update][PATCH 0/3] Fix backlight issues on some Windows 8 systems

2013-07-30 Thread Igor Gnatenko
On Wed, 2013-07-31 at 02:01 +0200, Rafael J. Wysocki wrote: > On Thursday, July 18, 2013 02:16:09 AM Rafael J. Wysocki wrote: > > On Sunday, June 09, 2013 07:01:36 PM Matthew Garrett wrote: > > > Windows 8 introduced new policy for backlight control by pushing it out to > > > graphics drivers. This

Re: ROM Patching (was: [PATCH] bluetooth: remove wrong dependency for BT_ATH3K)

2013-07-30 Thread Johannes Berg
On Tue, 2013-07-30 at 15:48 -0700, Luis R. Rodriguez wrote: > Neat. Perhaps we need something that we can share with 802.11 or other > hardare I highly doubt we're the only ones patching ROM. Don't we even > patch up core CPUs? I'm wondering if firmware_class could be expanded to > support seriali

Re: [PATCH] ARM: shmobile: sh73a0: add PMU information to sh73a0.dtsi

2013-07-30 Thread Simon Horman
On Wed, Jul 24, 2013 at 12:45:03PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Add PMU information to sh73a0.dtsi. With this > included KZM9G DT reference may use the PMU. > > Signed-off-by: Magnus Damm Thanks, I will queue this up for v3.12 in the dt2 branch. > --- > > arch/arm/boot/

Re: [PATCH] ARM: shmobile: r8a7740: add PMU information to r8a7740.dtsi

2013-07-30 Thread Simon Horman
On Wed, Jul 24, 2013 at 12:59:09PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Add PMU information to r8a7740.dtsi. With this > included Armadillo800eva DT reference may use the PMU. > > Signed-off-by: Magnus Damm Thanks, I will queue this up for v3.12 in the dt2 branch. > --- > > Dry

Re: [PATCH V8 00/33] loop: Issue O_DIRECT aio using bio_vec

2013-07-30 Thread Sedat Dilek
On Wed, Jul 31, 2013 at 2:43 AM, Dave Chinner wrote: > On Tue, Jul 30, 2013 at 02:28:20PM -0700, Andrew Morton wrote: >> On Thu, 25 Jul 2013 12:50:26 -0500 Dave Kleikamp >> wrote: >> >> > This patch series adds a kernel interface to fs/aio.c so that kernel code >> > can >> > issue concurrent as

Re: [PATCH] ARM: shmobile: emev2: add PMU information to emev2.dtsi

2013-07-30 Thread Simon Horman
On Wed, Jul 24, 2013 at 12:42:40PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Add PMU information to emev2.dtsi. With this > included KZM9D DT reference may use the PMU. Thanks, I will queue this up for v3.12 in the dt2 branch. > > Signed-off-by: Magnus Damm > --- > > arch/arm/boot/d

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 02:21:38PM +0800, Hillf Danton wrote: > On Wed, Jul 31, 2013 at 12:41 PM, Joonsoo Kim wrote: > > 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, H

Re: [PATCH] mm: for shm_open()/mmap() with OVERCOMMIT_NEVER, return -1 if no memory avail

2013-07-30 Thread Hugh Dickins
On Tue, 30 Jul 2013, Azat Khuzhin wrote: > Otherwize if there is no left space on shmem device, there will be > "Bus error" when application will try to write to address space that was > returned by mmap(2) > > This patch also preserve old behaviour if MAP_NORESERVE/VM_NORESERVE > isset. > > So,

[PATCH 2/2] Staging: rtl8192u/ieee80211: add missing single_release()

2013-07-30 Thread Li Zefan
The debug file is opened with single_open(), but there's no single_release(). Signed-off-by: Li Zefan --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/s

[PATCH 1/2] Staging: rtl8192e: add missing single_release()

2013-07-30 Thread Li Zefan
The debug file is opened with single_open(), but there's no single_release(). Signed-off-by: Li Zefan --- drivers/staging/rtl8192e/rtllib_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_mod

Re: [PATCH 1/2] mm: add support for discard of unused ptes

2013-07-30 Thread Martin Schwidefsky
On Tue, 30 Jul 2013 13:44:22 -0700 Andrew Morton wrote: > On Thu, 25 Jul 2013 10:54:20 +0200 Martin Schwidefsky > wrote: > > > From: Konstantin Weitz > > > > In a virtualized environment and given an appropriate interface the guest > > can mark pages as unused while they are free (for the s3

Re: [PATCH RFC V11 15/18] kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor

2013-07-30 Thread Gleb Natapov
On Tue, Jul 30, 2013 at 10:13:12PM +0530, Raghavendra K T wrote: > On 07/25/2013 03:08 PM, Raghavendra K T wrote: > >On 07/25/2013 02:45 PM, Gleb Natapov wrote: > >>On Thu, Jul 25, 2013 at 02:47:37PM +0530, Raghavendra K T wrote: > >>>On 07/24/2013 06:06 PM, Raghavendra K T wrote: > On 07/24/20

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

2013-07-30 Thread Michael Ellerman
On Wed, Jul 31, 2013 at 02:56:32PM +1000, Michael Ellerman wrote: > This commit adds support code used by upcoming powerpc tests. Fudge, I broke this one while "cleaning it up". Will send a v2. cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

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 12:41 PM, Joonsoo Kim wrote: > 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 >> >

[PATCH v3 4/4] ASoC: kirkwood: change kirkwood-i2s to mvebu-pcm-audio and DT doc

2013-07-30 Thread Jean-Francois Moine
As the kirkwood audio system may be used in other Marvell machines (mvebu), this patch changes the name of the audio driver to 'mvebu-pcm-audio' and also contains the associated DT documentation. Signed-off-by: Jean-Francois Moine --- .../devicetree/bindings/sound/mvebu-pcm-audio.txt | 29 ++

[PATCH v3 1/4] ASoc: kirkwood: simplify probe error

2013-07-30 Thread Jean-Francois Moine
The function kirkwood_i2s_dev_remove() may be used when probe fails. Signed-off-by: Jean-Francois Moine --- sound/soc/kirkwood/kirkwood-i2s.c | 40 +++--- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirk

[PATCH v3 3/4] ASoc: kirkwood: add DT support

2013-07-30 Thread Jean-Francois Moine
The kirkwood audio driver is used without DT in the Kirkwood machine. This patch adds a DT compatible definition for use in other Marvell machines such as the Armada 88AP510 (Dove). Signed-off-by: Jean-Francois Moine --- sound/soc/kirkwood/kirkwood-i2s.c| 27 -- 1 fil

[PATCH v3 2/4] ASoc: kirkwood: merge kirkwood-i2c and kirkwood-dma

2013-07-30 Thread Jean-Francois Moine
To avoid the declaration of a 'kirkwood-pcm-audio' device in the DT, this patch merges the kirkwood-i2c and kirkwood-dma drivers into one module associated with 'kirkwood-i2s'. Signed-off-by: Jean-Francois Moine --- arch/arm/mach-kirkwood/common.c | 6 -- sound/soc/kirkwood/Kconfig

[PATCH v3 0/4] ASoc: kirkwood: extend the kirkwood audio subsystem for DT usage

2013-07-30 Thread Jean-Francois Moine
This patch series adds DT support to the kirkwood audio subsystem. It cancels the previous patch requests: - ARM: kirkwood: enable S/PDIF - ARM: kirkwood: extend the kirkwood i2s driver for DT usage - ARM: kirkwood: extend the kirkwood pcm/dma driver for DT usage It also contains the merge of kir

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

2013-07-30 Thread Felipe Balbi
Hi, On Wed, Jul 31, 2013 at 11:14:32AM +0530, Kishon Vijay Abraham I wrote: > > IMHO we need a lookup method for PHYs, just like for clocks, > > regulators, PWMs or even i2c busses because there are complex cases > > when passing just a name using platform data will not work. I would >

Re: [PATCH] pinctrl: tegra: add valid function name on DT document

2013-07-30 Thread Laxman Dewangan
On Tuesday 30 July 2013 11:46 PM, Stephen Warren wrote: On 07/30/2013 05:04 AM, Laxman Dewangan wrote: Add valid property name for the property "nvidia,function" in DT binding document of Tegra pincontrol. I have applied this to Tegra's for-3.12/dt branch, but I fixed up quite a few issues alon

Re: XFS undeletable files. (3.11rc3)

2013-07-30 Thread Markus Trippelsdorf
On 2013.07.30 at 16:26 -0400, Dave Jones wrote: > On Thu, Jul 25, 2013 at 02:15:38PM +1000, Dave Chinner wrote: > > On Thu, Jul 11, 2013 at 10:39:30PM -0400, Dave Jones wrote: > > > Just saw this during boot after an unclean shutdown. It hung afterwards. > > > > > > [ 97.162665] XFS: Asserti

Re: [PATCH 26/36] SCSI: st: convert class code to use dev_groups

2013-07-30 Thread Kai Mäkisara
On 25.7.2013, at 1.05, Greg Kroah-Hartman wrote: > The dev_attrs field of struct class is going away soon, dev_groups > should be used instead. This converts the scsi tape class code to use > the correct field. > > Cc: Kai Mäkisara > Cc: James E.J. Bottomley > Signed-off-by: Greg Kroah-Hartm

Re: [PATCH 1/9] workqueue: mark WQ_NON_REENTRANT deprecated

2013-07-30 Thread Lai Jiangshan
On 07/30/2013 08:40 PM, Tejun Heo wrote: > dbf2576e37 ("workqueue: make all workqueues non-reentrant") made > WQ_NON_REENTRANT no-op but the following patches didn't remove the > flag or update the documentation. Let's mark the flag deprecated and > update the documentation accordingly. > > Signe

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

2013-07-30 Thread Stephen Rothwell
Hi David, Today's linux-next merge of the msm tree got a conflict in arch/arm/Kconfig.debug between several commits from the arm tree and commit 7bd51cd4526d ("ARM: msm: Move debug-macro.S to include/debug") from the msm tree. I fixed it up (I think - see below) and can carry the fix as necessary

Re: nouveau: check client.base.vm before dereferencing it.

2013-07-30 Thread Maarten Lankhorst
Op 31-07-13 00:55, Dave Jones schreef: > On Thu, Jul 25, 2013 at 12:22:03PM -0400, Dave Jones wrote: > > This recently started happening (since the last DRM merge, 3.10 was fine). > > > > [ 17.751970] Oops: [#1] PREEMPT SMP DEBUG_PAGEALLOC > > [ 17.753911] CPU: 3 PID: 292 Comm: system

Re: [PATCH 1/1] mfd: palmas: Add power off control

2013-07-30 Thread Bill Huang
On Tue, 2013-07-30 at 21:17 +0800, Nishanth Menon wrote: > On 07/30/2013 07:05 AM, Bill Huang wrote: > > Hook up "pm_power_off" to palmas power off routine if there is DT > > property "ti,system-power-controller" defined, so platform which is > > powered by this regulator can be powered off properl

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 commi

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 pci

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 > confi

[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 automatic

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; mich...@ellerman.id.a

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. Instea

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 >>> functi

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 even

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 { + fo

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 whether

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 backligh

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

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 --- tools/testing/selftests/Makefile

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 con

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 th

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 dequeue_huge_page

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 sg_

[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 wri

[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 inode_

[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 conte

[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 a

[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 t

[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 from

[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 dur

[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 unnecessarily

[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. Sign

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 pl

[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 an

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- >> ker...@vger.kernel.or

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 seve

[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: include/uapi/lin

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 ‘vga16fb_de

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: Mar

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; pre...@linux.v

[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(-) diff

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 tomorrow,

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), Bjo

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 SCS

[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 --- a

[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 - arch/powerpc/platforms/pseries

[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 - arch/powerpc/sysdev/processor_

[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 both

[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 a/arch/pow

[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 e

[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 th

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 unc

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 don'

[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 langu

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 a

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 I

  1   2   3   4   5   6   7   8   9   10   >