[PATCH v2] powerpc: mpc5200: Add a3m071 board support

2012-12-06 Thread Stefan Roese
This patch adds the MPC5200B based a3m071 board. Signed-off-by: Stefan Roese s...@denx.de Cc: Anatolij Gustschin ag...@denx.de --- v2: - Remove cdm@200 DT node as it's not used - Disable i2c controller in dts as its unused on this board arch/powerpc/boot/dts/a3m071.dts | 144

Re: [linuxppc-release][PATCH] powerpc/pci-hotplug: fix init issue of rescanned pci device

2012-12-06 Thread Chen Yuanquan-B41889
On 12/06/2012 05:30 AM, Bjorn Helgaas wrote: On Wed, Dec 5, 2012 at 2:29 AM, Chen Yuanquan-B41889 b41...@freescale.com wrote: On 12/05/2012 04:26 PM, Benjamin Herrenschmidt wrote: On Wed, 2012-12-05 at 16:20 +0800, Chen Yuanquan-B41889 wrote: On 12/05/2012 03:17 PM, Benjamin Herrenschmidt

Re: [stable] [PATCH] powerpc/ptrace: Fix build with gcc 4.6

2012-12-06 Thread Michael Ellerman
Michael Ellerman mich...@ellerman.id.au wrote: On Thu, 2011-11-17 at 13:31 +1100, Michael Neuling wrote: From: Benjamin Herrenschmidt b...@kernel.crashing.org powerpc/ptrace: Fix build with gcc 4.6 gcc (rightfully) complains that we are accessing beyond the end of the fpr array (we do,

Re: Understanding how kernel updates MMU hash table

2012-12-06 Thread Benjamin Herrenschmidt
On Wed, 2012-12-05 at 23:57 -0800, Pegasus11 wrote: Hi Ben. Got it..no more quoting replies... Quoting is fine ... as long as you quote the bits your reply to, not your actual reply part :) You mentioned the MMU looking into a hash table if it misses a translation entry in the TLB. This

[PATCH 13/20] ALSA: sound/ps3: remove __dev* attributes

2012-12-06 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Signed-off-by: Bill Pemberton wf...@virginia.edu Cc: Geoff Levand ge...@infradead.org Cc:

Re: [PATCH 13/20] ALSA: sound/ps3: remove __dev* attributes

2012-12-06 Thread Geoff Levand
On Thu, 2012-12-06 at 12:35 -0500, Bill Pemberton wrote: CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Signed-off-by: Bill Pemberton wf...@virginia.edu Cc:

Re: [Patch v4 08/12] memory-hotplug: remove memmap of sparse-vmemmap

2012-12-06 Thread Tang Chen
Hi Wu, I met some problems when I was digging into the code. It's very kind of you if you could help me with that. :) If I misunderstood your code, please tell me. Please see below. :) On 12/03/2012 10:23 AM, Jianguo Wu wrote: Signed-off-by: Jianguo Wuwujian...@huawei.com Signed-off-by: Jiang

[RFC] Add IBM Blue Gene/Q Platform

2012-12-06 Thread Jimi Xenidis
Rather than flood the mailing list with the patches, I've arranged for a git repo to hold the changesets. You can find the repo here: https://github.com/jimix/linux-bgq They are against GregKH's linux-stable.git long-term 3.4.y (y=22) branch. The first 9 (6e58088f..) effect common code and the

Re: [Patch v4 08/12] memory-hotplug: remove memmap of sparse-vmemmap

2012-12-06 Thread Jianguo Wu
Hi Tang, On 2012/12/7 9:42, Tang Chen wrote: Hi Wu, I met some problems when I was digging into the code. It's very kind of you if you could help me with that. :) If I misunderstood your code, please tell me. Please see below. :) On 12/03/2012 10:23 AM, Jianguo Wu wrote:

Re: [RFC] Add IBM Blue Gene/Q Platform

2012-12-06 Thread Michael Neuling
commit f6e3c1f706cb6922349d639a74ff6c50acc8b9f8 Author: Jimi Xenidis ji...@pobox.com Date: Wed Dec 5 13:41:25 2012 -0500 powerpc: Remove unecessary VSX symbols The symbol THREAD_VSR0 is defined to be the same as THREAD_FPR0. Its presence causes build issues with more

Re: [RFC] Add IBM Blue Gene/Q Platform

2012-12-06 Thread Michael Neuling
commit 279c0615917b959a652e81f4ad0d886e2d426d85 Author: Jimi Xenidis ji...@pobox.com Date: Wed Dec 5 13:43:22 2012 -0500 powerpc/book3e: IBM Blue Gene/Q Quad Processing eXtention (QPX) This enables kernel support for the QPX extention and is intended for processors that

Re: [RFC] Add IBM Blue Gene/Q Platform

2012-12-06 Thread Michael Neuling
Michael Neuling mi...@neuling.org wrote: commit 279c0615917b959a652e81f4ad0d886e2d426d85 Author: Jimi Xenidis ji...@pobox.com Date: Wed Dec 5 13:43:22 2012 -0500 powerpc/book3e: IBM Blue Gene/Q Quad Processing eXtention (QPX) This enables kernel support for the QPX

Re: [RFC] Add IBM Blue Gene/Q Platform

2012-12-06 Thread Michael Neuling
Jimi Xenidis ji...@pobox.com wrote: Rather than flood the mailing list with the patches, I've arranged for a git repo to hold the changesets. You can find the repo here: https://github.com/jimix/linux-bgq They are against GregKH's linux-stable.git long-term 3.4.y (y=22) branch. The

Re: [Patch v4 09/12] memory-hotplug: remove page table of x86_64 architecture

2012-12-06 Thread Tang Chen
On 11/27/2012 06:00 PM, Wen Congyang wrote: For hot removing memory, we sholud remove page table about the memory. So the patch searches a page table about the removed memory, and clear page table. (snip) +void __meminit +kernel_physical_mapping_remove(unsigned long start, unsigned long end)

Re: [Patch v4 09/12] memory-hotplug: remove page table of x86_64 architecture

2012-12-06 Thread Jianguo Wu
On 2012/12/7 14:43, Tang Chen wrote: On 11/27/2012 06:00 PM, Wen Congyang wrote: For hot removing memory, we sholud remove page table about the memory. So the patch searches a page table about the removed memory, and clear page table. (snip) +void __meminit

[PATCH] vfio powerpc: implemented IOMMU driver for VFIO

2012-12-06 Thread Alexey Kardashevskiy
VFIO implements platform independent stuff such as a PCI driver, BAR access (via read/write on a file descriptor or direct mapping when possible) and IRQ signaling. The platform dependent part includes IOMMU initialization and handling. This patch implements an IOMMU driver for VFIO which does

[PATCH] vfio powerpc: enabled on powernv platform

2012-12-06 Thread Alexey Kardashevskiy
This patch initializes IOMMU groups based on the IOMMU configuration discovered during the PCI scan on POWERNV (POWER non virtualized) platform. The IOMMU groups are to be used later by VFIO driver (PCI pass through). It also implements an API for mapping/unmapping pages for guest PCI drivers and

[PATCH 0/6] powerpc: SMT priority (PPR) save and restore

2012-12-06 Thread Haren Myneni
Ben, This patch-set is created against your tree (next branch) and fixed the build failure that you pointed. Changes from the previous version: - Changes for PPR save/restore in denorm_exception_hv, data_access_slb_relon_pSeries and instruction_access_slb_relon_pSeries exception vectors

[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-12-06 Thread Haren Myneni
[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller The first instruction in ACCOUNT_CPU_USER_ENTRY is 'beq' which checks for exceptions coming from kernel mode. PPR value will be saved immediately after ACCOUNT_CPU_USER_ENTRY and is also for user level exceptions.

[PATCH 2/6] powerpc: Enable PPR save/restore

2012-12-06 Thread Haren Myneni
[PATCH 2/6] powerpc: Enable PPR save/restore SMT thread status register (PPR) is used to set thread priority. This patch enables PPR save/restore feature (CPU_FTR_HAS_PPR) on POWER7 and POWER8 systems. Signed-off-by: Haren Myneni ha...@us.ibm.com --- arch/powerpc/include/asm/cputable.h |7

[PATCH 3/6] powerpc: Increase exceptions arrays in paca struct to save PPR

2012-12-06 Thread Haren Myneni
[PATCH 3/6] powerpc: Increase exceptions arrays in paca struct to save PPR Using paca to save user defined PPR value in the first level exception vector. Signed-off-by: Haren Myneni ha...@us.ibm.com --- arch/powerpc/include/asm/exception-64s.h |1 + arch/powerpc/include/asm/paca.h

[PATCH 4/6] powerpc: Define ppr in thread_struct

2012-12-06 Thread Haren Myneni
[PATCH 4/6] powerpc: Define ppr in thread_struct ppr in thread_struct is used to save PPR and restore it before process exits from kernel. This patch sets the default priority to 3 when tasks are created such that users can use 4 for higher priority tasks. Signed-off-by: Haren Myneni

[PATCH 5/6] powerpc: Macros for saving/restore PPR

2012-12-06 Thread Haren Myneni
[PATCH 5/6] powerpc: Macros for saving/restore PPR Several macros are defined for saving and restore user defined PPR value. Signed-off-by: Haren Myneni ha...@us.ibm.com --- arch/powerpc/include/asm/exception-64s.h | 37 ++ arch/powerpc/include/asm/ppc_asm.h

[PATCH 6/6] powerpc: Implement PPR save/restore

2012-12-06 Thread Haren Myneni
[PATCH 6/6] powerpc: Implement PPR save/restore When the task enters in to kernel space, the user defined priority (PPR) will be saved in to PACA at the beginning of first level exception vector and then copy from PACA to thread_info in second level vector. PPR will be restored from thread_info