[patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-10 Thread David Rientjes
__remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC pseries will return -EOPNOTSUPP if unsupported. Adding an #ifdef causes several other functions it depends on to also become unnecessary, which saves in .text when disabled (it's disabled in most defconfigs besides powerpc,

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread Aneesh Kumar K.V
David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We allocate one page for the last level of linux page table. With THP and large page size of 16MB, that would mean we are wasting

Re: [PATCH v2 11/11] Add /proc interface to control topology updates

2013-04-10 Thread Michael Ellerman
On Mon, Mar 25, 2013 at 02:02:09PM -0500, Nathan Fontenot wrote: There are instances in which we do not want topology updates to occur. In order to allow this a /proc interface (/proc/powerpc/topology_updates) is introduced so that topology updates can be enabled and disabled. This patch

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread David Gibson
On Wed, Apr 10, 2013 at 11:59:29AM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: [snip] @@ -97,13 +100,45 @@ void __destroy_context(int context_id) } EXPORT_SYMBOL_GPL(__destroy_context);

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread Michael Ellerman
On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We allocate one page for the last level of linux page table. With THP and large page size of 16MB, that would mean we are wasting large part of that page. To map 16MB

[RESEND PATCH 1/4] Introduce new symbols to look at the first vmap_area.

2013-04-10 Thread Atsushi Kumagai
From: Atsushi Kumagai kumagai-atsu...@mxc.nes.nec.co.jp Date: Thu, 14 Mar 2013 11:08:57 +0900 Subject: [PATCH 1/4] Introduce new symbols to look at the first vmap_area. struct vmlist which we used to get vmalloc_start value will be removed from kernel soon, so we have to look at the first

[RESEND PATCH 2/4] Use vmap_area_list to get vmalloc_start for i386.

2013-04-10 Thread Atsushi Kumagai
From: Atsushi Kumagai kumagai-atsu...@mxc.nes.nec.co.jp Date: Thu, 14 Mar 2013 19:10:49 +0900 Subject: [PATCH 2/4] Use vmap_area_list to get vmalloc_start for i386. Try to get vmalloc_start value from vmap_area_list first for newer i386 kernels. Signed-off-by: Atsushi Kumagai

[RESEND PATCH 3/4] Use vmap_area_list to get vmalloc_start for ppc32.

2013-04-10 Thread Atsushi Kumagai
From: Atsushi Kumagai kumagai-atsu...@mxc.nes.nec.co.jp Date: Fri, 15 Mar 2013 19:30:23 +0900 Subject: [PATCH 3/4] Use vmap_area_list to get vmalloc_start for ppc32. Try to get vmalloc_start value from vmap_area_list first for newer ppc32 kernels. Signed-off-by: Atsushi Kumagai

Re: [PATCH -V5 08/25] powerpc: Decode the pte-lp-encoding bits correctly.

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:46AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We look at both the segment base page size and actual page size and store the pte-lp-encodings in an array per base page size. We also update all relevant functions to

Re: [PATCH -V5 19/25] powerpc/THP: Differentiate THP PMD entries from HUGETLB PMD entries

2013-04-10 Thread Michael Ellerman
On Thu, Apr 04, 2013 at 11:27:57AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com HUGETLB clear the top bit of PMD entries and use that to indicate a HUGETLB page directory. Since we store pfns in PMDs for THP, we would have the top bit cleared by

[RESEND PATCH 4/4] Use vmap_area_list to get vmalloc_start for ppc64.

2013-04-10 Thread Atsushi Kumagai
From: Atsushi Kumagai kumagai-atsu...@mxc.nes.nec.co.jp Date: Fri, 15 Mar 2013 19:34:30 +0900 Subject: [PATCH 4/4] Use vmap_area_list to get vmalloc_start for ppc64. Try to get vmalloc_start value from vmap_area_list first for newer ppc64 kernels. Signed-off-by: Atsushi Kumagai

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread Aneesh Kumar K.V
David Gibson d...@au1.ibm.com writes: On Wed, Apr 10, 2013 at 11:59:29AM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: [snip] @@ -97,13 +100,45 @@ void __destroy_context(int context_id) }

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread Aneesh Kumar K.V
Michael Ellerman mich...@ellerman.id.au writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We allocate one page for the last level of linux page table. With THP and large page size of 16MB, that would mean we are

Re: [PATCH -V5 08/25] powerpc: Decode the pte-lp-encoding bits correctly.

2013-04-10 Thread Aneesh Kumar K.V
David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:46AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We look at both the segment base page size and actual page size and store the pte-lp-encodings in an array per base page size. We

Re: [PATCH v2 2/11] Add PRRN Event Handler

2013-04-10 Thread Michael Ellerman
On Mon, Mar 25, 2013 at 01:52:32PM -0500, Nathan Fontenot wrote: From: Jesse Larrew jlar...@linux.vnet.ibm.com A PRRN event is signaled via the RTAS event-scan mechanism, which returns a Hot Plug Event message fixed part indicating Platform Resource Reassignment. In response to the Hot Plug

[PATCH] powerpc: add a missing label in resume_kernel

2013-04-10 Thread Kevin Hao
A label 0 was missed in the patch a9c4e541 (powerpc/kprobe: Complete kprobe and migrate exception frame). This will cause the kernel branch to an undetermined address if there really has a conflict when updating the thread flags. Signed-off-by: Kevin Hao haoke...@gmail.com Cc:

[PATCH 1/4] powerpc/perf: Convert mmcra_sipr/sihv() to regs_sipr/sihv()

2013-04-10 Thread Michael Ellerman
From: Michael Ellerman micha...@au1.ibm.com On power8 the SIPR and SIHV are not in MMCRA, so convert the routines to take regs and change the names accordingly. Signed-off-by: Michael Ellerman micha...@au1.ibm.com --- arch/powerpc/perf/core-book3s.c | 20 +++- 1 file changed,

[PATCH 2/4] powerpc/perf: Add an accessor for regs-result

2013-04-10 Thread Michael Ellerman
From: Michael Ellerman micha...@au1.ibm.com Add an accessor for regs-result so we can use it to store more flags in future. Signed-off-by: Michael Ellerman mich...@ellerman.id.au --- arch/powerpc/perf/core-book3s.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH 3/4] powerpc/perf: Add regs_no_sipr()

2013-04-10 Thread Michael Ellerman
From: Michael Ellerman micha...@au1.ibm.com On power8 the presence or absence of SIPR depends on settings at runtime, so convert to using a dynamic flag for NO_SIPR. Existing backends that set NO_SIPR unconditionally set the dynamic flag obviously. Signed-off-by: Michael Ellerman

[PATCH 4/4] powerpc/perf: Add support for SIER

2013-04-10 Thread Michael Ellerman
From: Michael Ellerman micha...@au1.ibm.com On power8 we have a new SIER (Sampled Instruction Event Register), which captures information about instructions when we have random sampling enabled. Add support for loading the SIER into pt_regs, overloading regs-dar. Also set the new NO_SIPR flag in

Re: [PATCH] powerpc: add a missing label in resume_kernel

2013-04-10 Thread tiejun.chen
On 04/10/2013 04:31 PM, Kevin Hao wrote: A label 0 was missed in the patch a9c4e541 (powerpc/kprobe: Complete kprobe and migrate exception frame). This will cause the kernel branch to an undetermined address if there really has a conflict when updating the thread flags. Signed-off-by: Kevin Hao

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread Aneesh Kumar K.V
Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: Michael Ellerman mich...@ellerman.id.au writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We allocate one page for the last level of linux page table.

[RESEND PATCH 0/4] Add support for vmap_area_list.

2013-04-10 Thread Atsushi Kumagai
# CCing linuxppc-dev to get advice on ppc for makedumpfile. # makedumpfile is a userspace utility to create a smaller dump file, # you can download it from the following URL. # http://sourceforge.net/projects/makedumpfile/ - Hello, This patchset is to work with remove vm_struct list

Re: [PATCH] of: remove the unnecessary of_node_put for of_parse_phandle_with_args()

2013-04-10 Thread Stephen Rothwell
Hi, On Tue, 9 Apr 2013 14:56:09 +0800 yuantian.t...@freescale.com wrote: From: Tang Yuantian yuantian.t...@freescale.com As the function itself says it is caller's responsibility to call the of_node_put(). So, remove it on success to keep the reference count correct. Signed-off-by:

RE: [PATCH] of: remove the unnecessary of_node_put for of_parse_phandle_with_args()

2013-04-10 Thread Tang Yuantian-B29983
-Original Message- From: Stephen Rothwell [mailto:s...@canb.auug.org.au] Sent: 2013年4月10日 17:03 To: Tang Yuantian-B29983 Cc: grant.lik...@secretlab.ca; devicetree-disc...@lists.ozlabs.org; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; rob.herr...@calxeda.com

Re: [PATCH] powerpc/pci: fix PCI-e devices rescan issue on powerpc platform

2013-04-10 Thread Chen Yuanquan-B41889
On 04/03/2013 12:08 PM, Chen Yuanquan-B41889 wrote: On 04/02/2013 11:10 PM, Benjamin Herrenschmidt wrote: On Tue, 2013-04-02 at 19:26 +0800, Yuanquan Chen wrote: So we move the DMA IRQ initialization code from pcibios_setup_devices() and construct a new function pcibios_enable_device. We call

Re: [PATCH] of: remove the unnecessary of_node_put for of_parse_phandle_with_args()

2013-04-10 Thread Stephen Rothwell
Hi, On Wed, 10 Apr 2013 09:06:11 + Tang Yuantian-B29983 b29...@freescale.com wrote: Yes, I already sent out the v2 patch. Please see: http://patchwork.ozlabs.org/patch/235288/ Thanks. I should read all my email before replying to it :-) -- Cheers, Stephen Rothwell

[PATCH 0/8] Nvram-to-pstore

2013-04-10 Thread Aruna Balakrishnaiah
Currently the kernel provides the contents of p-series NVRAM only as a simple stream of bytes via /dev/nvram, which must be interpreted in user space by the nvram command in the powerpc-utils package. This patch set exploits the pstore subsystem to expose each partition in NVRAM as a separate

[PATCH 1/8] Remove syslog prefix in uncompressed oops text

2013-04-10 Thread Aruna Balakrishnaiah
Removal of syslog prefix in the uncompressed oops text will help in capturing more oops data. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/8] Add version and timestamp to oops header

2013-04-10 Thread Aruna Balakrishnaiah
Introduce version and timestamp information in the oops header. oops_log_info (oops header) holds version (to distinguish between old and new format oops header), length of the oops text (compressed or uncompressed) and timestamp. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com

[PATCH 3/8] Introduce generic read function to read nvram-partitions

2013-04-10 Thread Aruna Balakrishnaiah
Introduce generic read function to read nvram partitions other than rtas. nvram_read_error_log will be retained which is used to read rtas partition from rtasd. nvram_read_partition is the generic read function to read from any nvram partition. Signed-off-by: Aruna Balakrishnaiah

[PATCH 4/8] Read/Write oops nvram partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure in power systems. IBM's system p machines provide persistent storage for LPARs through NVRAM. NVRAM's lnx,oops-log partition is used to log oops messages. In case pstore registration fails it will fall back to kmsg_dump mechanism. This patch will

[PATCH 5/8] Read rtas partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure to read the details from NVRAM's rtas partition. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c | 33 +---

[PATCH 6/8] Distinguish between a os-partition and non-os partition

2013-04-10 Thread Aruna Balakrishnaiah
Introduce os_partition member in nvram_os_partition structure to identify if the partition is an os partition or not. This will be useful to handle non-os partitions of-config and common in subsequent patches. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston

[PATCH 7/8] Read of-config partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure to read the details from NVRAM's of-config partition. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c | 58 ++--

[PATCH 8/8] Read common partition via pstore

2013-04-10 Thread Aruna Balakrishnaiah
This patch exploits pstore infrastructure to read the details from NVRAM's common partition. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com Reviewed-by: Jim Keniston jkeni...@us.ibm.com --- arch/powerpc/platforms/pseries/nvram.c | 17 - fs/pstore/inode.c

Re: [PATCH] powerpc: remove config MPC10X_OPENPIC

2013-04-10 Thread Kumar Gala
On Apr 8, 2013, at 2:35 PM, Paul Bolle wrote: The last users of Kconfig symbol MPC10X_OPENPIC were removed in v2.6.27. Its Kconfig entry can be removed now. Signed-off-by: Paul Bolle pebo...@tiscali.nl --- Untested. arch/powerpc/platforms/embedded6xx/Kconfig | 5 - 1 file changed,

Re: [RFC][PATCH 1/2] powerpc/fsl-pci: Keep PCI SoC controller registers in

2013-04-10 Thread Kumar Gala
On Mar 13, 2013, at 2:07 PM, Kumar Gala wrote: Move to keeping the SoC registers that control and config the PCI controllers on FSL SoCs in the pci_controller struct. This allows us to not need to ioremap() the registers in multiple different places that use them. Signed-off-by: Kumar

Re: [PATCH 1/4][v2] powerpc/fsl-booke: Add initial silicon device tree files for B4860 and B4420

2013-04-10 Thread Kumar Gala
On Apr 5, 2013, at 1:33 AM, Shaveta Leekha wrote: B4860 and B4420 are similar that share some commonalities * common features have been added in b4si-pre.dtsi and b4si-post.dtsi * differences are added in respective silicon files of B4860 and B4420 There are several things missing from

Re: [PATCH 2/4][v2] powerpc/fsl-booke: Add initial B4860QDS and B4420QDS board device tree

2013-04-10 Thread Kumar Gala
On Apr 5, 2013, at 1:33 AM, Shaveta Leekha wrote: B4860QDS and B4420QDS share same QDS board * common board features have been added in b4qds.dts * various board differences are in respective files of B4860 and B4420 Signed-off-by: Shaveta Leekha shav...@freescale.com Signed-off-by:

Re: [PATCH 3/4][v2] powerpc/fsl-booke: Add B4_QDS board support

2013-04-10 Thread Kumar Gala
On Apr 5, 2013, at 1:33 AM, Shaveta Leekha wrote: - Add support for B4 board in board file b4_qds.c, It is common for B4860, B4420 and B4220QDS as they share same QDS board - Add B4QDS support in Kconfig and Makefile B4860QDS is a high-performance computing evaluation, development and

Re: [PATCH 4/4][v2] powerpc/85xx: Update corenet64_smp_defconfig for B4_QDS

2013-04-10 Thread Kumar Gala
On Apr 5, 2013, at 1:33 AM, Shaveta Leekha wrote: Signed-off-by: Shaveta Leekha shav...@freescale.com --- arch/powerpc/configs/corenet64_smp_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) applied to next - k ___ Linuxppc-dev

Re: [RFC][PATCH 2/2] powerpc/fsl-pci Make PCIe hotplug work with Freescale

2013-04-10 Thread Kumar Gala
On Apr 8, 2013, at 3:15 AM, Rojhalat Ibrahim wrote: Up to now the PCIe link status on Freescale PCIe controllers was only checked once at boot time. So hotplug did not work. With this patch the link status is checked on every config read. PCIe devices not present at boot time are found after

Re: [PATCH 1/4][v2] powerpc/fsl-booke: Add initial silicon device tree files for B4860 and B4420

2013-04-10 Thread Kumar Gala
On Apr 5, 2013, at 1:33 AM, Shaveta Leekha wrote: B4860 and B4420 are similar that share some commonalities * common features have been added in b4si-pre.dtsi and b4si-post.dtsi * differences are added in respective silicon files of B4860 and B4420 There are several things missing from

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread Aneesh Kumar K.V
Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: David Gibson d...@au1.ibm.com writes: On Wed, Apr 10, 2013 at 11:59:29AM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: [snip] @@ -97,13

Re: [PATCH -V5 08/25] powerpc: Decode the pte-lp-encoding bits correctly.

2013-04-10 Thread Aneesh Kumar K.V
Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: static void hpte_decode(struct hash_pte *hpte, unsigned long slot, - int *psize, int *ssize, unsigned long *vpn) + int *psize, int *apsize, int *ssize, unsigned long *vpn) { unsigned long avpn,

Re: [patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-10 Thread Toshi Kani
On Tue, 2013-04-09 at 23:07 -0700, David Rientjes wrote: __remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC pseries will return -EOPNOTSUPP if unsupported. Adding an #ifdef causes several other functions it depends on to also become unnecessary, which saves in .text

Re: [PATCH 3/4] powerpc: Optimise 64bit syscall auditing entry path

2013-04-10 Thread Eric Paris
Patches 1 and 2 I applied for 3.10, but I'd really like to have someone who knows PPC ack 3 and 4. Especially if there is a hope that it goes through my tree... Link to original messages for your ease of review... http://marc.info/?l=linux-kernelm=135768892320439w=2

Re: [PATCH -V5 19/25] powerpc/THP: Differentiate THP PMD entries from HUGETLB PMD entries

2013-04-10 Thread Aneesh Kumar K.V
Michael Ellerman mich...@ellerman.id.au writes: On Thu, Apr 04, 2013 at 11:27:57AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com HUGETLB clear the top bit of PMD entries and use that to indicate a HUGETLB page directory. Since we store pfns in PMDs

[PATCH] powerpc/512x: add ifm ac14xx board

2013-04-10 Thread Anatolij Gustschin
Add dts file for ac14xx board and its board compatible string to the generic mpc512x board match list. Signed-off-by: Anatolij Gustschin ag...@denx.de --- arch/powerpc/boot/dts/ac14xx.dts | 392 + arch/powerpc/platforms/512x/mpc512x_generic.c |1 + 2

Re: [PATCH V5] powerpc/85xx: Add machine check handler to fix PCIe erratum on mpc85xx

2013-04-10 Thread Scott Wood
On 04/08/2013 03:26:54 AM, Jia Hongtao wrote: @@ -826,6 +829,124 @@ u64 fsl_pci_immrbar_base(struct pci_controller *hose) return 0; } +#ifdef CONFIG_E500 + +#define OP_LWZ 32 +#define OP_LWZU 33 +#define OP_LBZ 34 +#define OP_LBZU 35 +#define OP_LHZ 40 +#define OP_LHZU 41 +#define

[PATCH] powerpc/85xx: Fix MPC8536DS 36-bit device tree

2013-04-10 Thread Kim Phillips
From: Kumar Gala ga...@kernel.crashing.org The localbus node should be in at 0xfffe05000 not 0xffe05000. Also fixed the names of the localbus and pci nodes to reflect the addresses they are actually at. Signed-off-by: Kumar Gala ga...@kernel.crashing.org Signed-off-by: Kim Phillips

[PATCH] powerpc/85xx: enable Silicon image 3132 PCIe to SATA controller

2013-04-10 Thread Scott Wood
From: Roy ZANG tie-fei.z...@freescale.com Some 85xx board, for example, P1020RDB-PC has on board silicon image PCIe to SATA controller and when booting up, the filesystem will auto mount to the SATA disk. So enable silicon image 3132 pcie to sata controller by default Signed-off-by: Roy Zang

[PATCH 0/2] enable the coreint for the mpc85xx 64bit boards

2013-04-10 Thread Kevin Hao
Hi, With the rework of the lazy EE, it seems that 64bit kernel works pretty well on mpc85xx 64bit boards with lazy EE enabled. So this patch series tries to enable the coreint for these boards by default. This passed the ltp test on a t4240qds board and is based on Kumar's next branch. --- Kevin

[PATCH 1/2] powerpc/irq: remove the unneeded flag PACA_IRQ_EE_EDGE

2013-04-10 Thread Kevin Hao
In order to support the Book3E external proxy, the flag PACA_IRQ_EE_EDGE was introduced in patch 7230c564 (powerpc: Rework lazy-interrupt handling). But it turns out that this is not needed. And it is also not used by any code in the current kernel. According to the PowerISA 2.0.6, the content of

[PATCH 2/2] powerpc/85xx: enable coreint for all the 64bit boards

2013-04-10 Thread Kevin Hao
With the patch 7230c564 (powerpc: Rework lazy-interrupt handling), it seems that the coreint works pretty well on the 85xx 64bit kernel. So use the coreint by default for these boards. Signed-off-by: Kevin Hao haoke...@gmail.com --- arch/powerpc/platforms/85xx/p5020_ds.c | 5 -

Re: [PATCH -V5 08/25] powerpc: Decode the pte-lp-encoding bits correctly.

2013-04-10 Thread David Gibson
On Wed, Apr 10, 2013 at 01:41:16PM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:46AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We look at both the segment base page size and actual page

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread David Gibson
On Wed, Apr 10, 2013 at 11:17:30PM +0530, Aneesh Kumar K.V wrote: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: David Gibson d...@au1.ibm.com writes: On Wed, Apr 10, 2013 at 11:59:29AM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Thu, Apr 04,

Re: [PATCH -V5 06/25] powerpc: Reduce PTE table memory wastage

2013-04-10 Thread David Gibson
On Wed, Apr 10, 2013 at 01:23:25PM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Wed, Apr 10, 2013 at 11:59:29AM +0530, Aneesh Kumar K.V wrote: David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:44AM +0530, Aneesh Kumar K.V wrote: [snip] You

Re: [PATCH -V5 09/25] powerpc: Fix hpte_decode to use the correct decoding for page sizes

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:47AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com As per ISA doc, we encode base and actual page size in the LP bits of PTE. The number of bit used to encode the page sizes depend on actual page size. ISA doc lists this

Re: [PATCH -V5 15/25] mm/THP: Add pmd args to pgtable deposit and withdraw APIs

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:53AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This will be later used by powerpc THP support. In powerpc we want to use pgtable for storing the hash index values. So instead of adding them to mm_context list, we would

Re: [PATCH -V5 13/25] powerpc: Update tlbie/tlbiel as per ISA doc

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:51AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This make sure we handle multiple page size segment correctly. This needs a much more detailed message. In what way was the existing code not matching the ISA

Re: [PATCH -V5 12/25] powerpc: Return all the valid pte ecndoing in KVM_PPC_GET_SMMU_INFO ioctl

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:50AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Surely this can't be correct until the KVM H_ENTER implementation is updated to cope with the MPSS page sizes. -- David Gibson| I'll have my music

Re: [PATCH -V5 14/25] mm/THP: HPAGE_SHIFT is not a #define on some arch

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:52AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com On archs like powerpc that support different hugepage sizes, HPAGE_SHIFT and other derived values like HPAGE_PMD_ORDER are not constants. So move that to hugepage_init

Re: [PATCH -V5 10/25] powerpc: print both base and actual page size on hash failure

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:48AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Reviewed-by: David Gibson da...@gibson.dropbear.id.au -- David Gibson| I'll have my

[PATCH] powerpc/crypto: removed qoriq-sec4.1-0.dtsi.

2013-04-10 Thread Vakul Garg
Removing qoriq-sec4.1-0.dtsi as it is not used by any soc anymore. Signed-off-by: Vakul Garg va...@freescale.com --- arch/powerpc/boot/dts/fsl/qoriq-sec4.1-0.dtsi | 109 - 1 files changed, 0 insertions(+), 109 deletions(-) delete mode 100644

[PATCHv2] powerpc/crypto: Add property for 'era' in SEC dts crypto node

2013-04-10 Thread Vakul Garg
The crypto node now contains a new property 'fsl,sec-era'. This is required so that applications can retrieve era info without having to be able to read SEC's register space. Signed-off-by: Vakul Garg va...@freescale.com --- Changelog: v2: Added era in p1023si-post.dtsi as per Kim's

Re: [PATCH -V5 12/25] powerpc: Return all the valid pte ecndoing in KVM_PPC_GET_SMMU_INFO ioctl

2013-04-10 Thread Aneesh Kumar K.V
David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:50AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Surely this can't be correct until the KVM H_ENTER implementation is updated to cope with the MPSS page sizes. Why ? We are

Re: [PATCH -V5 13/25] powerpc: Update tlbie/tlbiel as per ISA doc

2013-04-10 Thread Aneesh Kumar K.V
David Gibson d...@au1.ibm.com writes: On Thu, Apr 04, 2013 at 11:27:51AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This make sure we handle multiple page size segment correctly. This needs a much more detailed message. In what way was the

Re: [PATCH -V5 17/25] powerpc/THP: Implement transparent hugepages for ppc64

2013-04-10 Thread David Gibson
On Thu, Apr 04, 2013 at 11:27:55AM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com We now have pmd entries covering to 16MB range. To implement THP on powerpc, we double the size of PMD. The second half is used to deposit the pgtable (PTE page). We