[PATCH V2 3/3] powerpc iommu: Update the generic code to use dynamic iommu page sizes

2013-12-08 Thread Alistair Popple
This patch updates the generic iommu backend code to use the it_page_shift field to determine the iommu page size instead of using hardcoded values. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h | 19 +--- arch/powerpc/kernel/dma-iommu.c |4 +- arch/power

[PATCH V2 1/3] powerpc iommu: Update constant names to reflect their hardcoded page size

2013-12-08 Thread Alistair Popple
The powerpc iommu uses a hardcoded page size of 4K. This patch changes the name of the IOMMU_PAGE_* macros to reflect the hardcoded values. A future patch will use the existing names to support dynamic page sizes. Signed-off-by: Alistair Popple Signed-off-by: Alexey Kardashevskiy --- arch/power

[PATCH V2 2/3] powerpc iommu: Add it_page_shift field to determine iommu page size

2013-12-08 Thread Alistair Popple
This patch adds a it_page_shift field to struct iommu_table and initiliases it to 4K for all platforms. Signed-off-by: Alistair Popple --- arch/powerpc/include/asm/iommu.h |1 + arch/powerpc/kernel/vio.c |5 +++-- arch/powerpc/platforms/cell/iommu.c|8 +---

[PATCH V2 0/3] powerpc iommu: Remove hardcoded page sizes

2013-12-08 Thread Alistair Popple
The series doesn't actually change the iommu page size as each platform continues to initialise the iommu page size to a hardcoded value of 4K. At this stage testing has only been carried out on a pSeries machine, other platforms including cell have yet to be tested. Changes from V1: * Rebased

linux-next: build failure after merge of the final tree (powerpc tree related)

2013-12-08 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:958: Error: attempt to move .org backwards arch/powerpc/kernel/exceptions-64s.S:959: Error: attemp

Re: [PATCH V4 10/10] powerpc, perf: Cleanup SW branch filter list look up

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:42 UTC, Anshuman Khandual wrote: > This patch adds enumeration for all available SW branch filters > in powerpc book3s code and also streamlines the look for the > SW branch filter entries while trying to figure out which all > branch filters can be supported in SW. Thi

Re: [PATCH V4 09/10] power8, perf: Change BHRB branch filter configuration

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:41 UTC, Anshuman Khandual wrote: > Powerpc kernel now supports SW based branch filters for book3s systems with > some > specifc requirements while dealing with HW supported branch filters in order > to > achieve overall OR semantics prevailing in perf branch stack samp

Re: [PATCH V4 07/10] powerpc, lib: Add new branch instruction analysis support functions

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:39 UTC, Anshuman Khandual wrote: > Generic powerpc branch instruction analysis support added in the code > patching library which will help the subsequent patch on SW based > filtering of branch records in perf. This patch also converts and > exports some of the existing

Re: [PATCH V4 08/10] powerpc, perf: Enable SW filtering in branch stack sampling framework

2013-12-08 Thread Michael Ellerman
On Wed, 2013-04-12 at 10:32:40 UTC, Anshuman Khandual wrote: > This patch enables SW based post processing of BHRB captured branches > to be able to meet more user defined branch filtration criteria in perf > branch stack sampling framework. These changes increase the number of > branch filters and

Re: [PATCH 1/3] powerpc: mm: make _PAGE_NUMA take effect

2013-12-08 Thread Benjamin Herrenschmidt
On Mon, 2013-12-09 at 14:17 +0800, Liu ping fan wrote: > On Mon, Dec 9, 2013 at 8:31 AM, Benjamin Herrenschmidt > wrote: > > On Thu, 2013-12-05 at 16:23 +0530, Aneesh Kumar K.V wrote: > >> Liu Ping Fan writes: > >> > >> > To enable the do_numa_page(), we should not fix _PAGE_NUMA in > >> > hash_p

Re: [PATCH 1/3] powerpc: mm: make _PAGE_NUMA take effect

2013-12-08 Thread Liu ping fan
On Mon, Dec 9, 2013 at 8:31 AM, Benjamin Herrenschmidt wrote: > On Thu, 2013-12-05 at 16:23 +0530, Aneesh Kumar K.V wrote: >> Liu Ping Fan writes: >> >> > To enable the do_numa_page(), we should not fix _PAGE_NUMA in >> > hash_page(), so bail out for the case of pte_numa(). > > For some reason I

Re: [PATCH][RESEND] powerpc: remove unused REDBOOT Kconfig parameter

2013-12-08 Thread Benjamin Herrenschmidt
On Mon, 2013-12-09 at 06:27 +0100, Michael Opdenacker wrote: > This removes the REDBOOT Kconfig parameter, > which was no longer used anywhere in the source code > and Makefiles. It hasn't been lost :-) It's still in patchwork and it's even in my queue. Cheers, Ben. > Signed-off-by: Michael Opde

[PATCH][RESEND] powerpc: remove unused REDBOOT Kconfig parameter

2013-12-08 Thread Michael Opdenacker
This removes the REDBOOT Kconfig parameter, which was no longer used anywhere in the source code and Makefiles. Signed-off-by: Michael Opdenacker --- arch/powerpc/Kconfig| 3 --- arch/powerpc/platforms/83xx/Kconfig | 1 - arch/powerpc/platforms/8xx/Kconfig | 1 - 3 files changed

[PATCH] drivers/tty: ehv_bytechan fails to build as a module

2013-12-08 Thread Anton Blanchard
ehv_bytechan is marked tristate but fails to build as a module: drivers/tty/ehv_bytechan.c:363:1: error: type defaults to ‘int’ in declaration of ‘console_initcall’ [-Werror=implicit-int] It doesn't make much sense for a console driver to be built as a module, so change it to a bool. Signed-of

Re: [PATCH V4 00/10] perf: New conditional branch filter

2013-12-08 Thread Michael Ellerman
On Fri, 2013-12-06 at 10:18 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Dec 05, 2013 at 03:47:54PM +1100, Michael Ellerman escreveu: > > On Wed, 2013-12-04 at 16:02 +0530, Anshuman Khandual wrote: > > > This patchset is the re-spin of the original branch stack > > > sampling > > > p

Re: [PATCH 1/3] powerpc: mm: make _PAGE_NUMA take effect

2013-12-08 Thread Benjamin Herrenschmidt
On Thu, 2013-12-05 at 16:23 +0530, Aneesh Kumar K.V wrote: > Liu Ping Fan writes: > > > To enable the do_numa_page(), we should not fix _PAGE_NUMA in > > hash_page(), so bail out for the case of pte_numa(). For some reason I don't have 2/3 and 3/3 in my mbox (though I do have them on patchwork)