[v12, 0/8] Fix eSDHC host version register bug

2016-09-21 Thread Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To match the SoC version and revision, 10 previous version patchsets had tried many methods but all of them were rejected by reviewers. Such as - dts compatible method - syscon method

[v12, 1/8] dt: bindings: update Freescale DCFG compatible

2016-09-21 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Changes for v8: - Added this patch Changes for v9: - Added a

[v12, 2/8] ARM64: dts: ls2080a: add device configuration node

2016-09-21 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7: - None Changes for v8:

[v12, 3/8] dt: bindings: move guts devicetree doc out of powerpc directory

2016-09-21 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Acked-by: Scott Wood --- Changes for v4: - Added this patch Chang

[v12, 4/8] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-09-21 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols. Signed-of

[v12, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-21 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds a driver to manage and access global utilities block. Initially only reading SVR and regis

Re: [PATCH v2 3/3] mm: enable CONFIG_MOVABLE_NODE on powerpc

2016-09-21 Thread Aneesh Kumar K.V
Reza Arbab writes: > On Mon, Sep 19, 2016 at 11:59:35AM +0530, Aneesh Kumar K.V wrote: >>Movable node also does. >> memblock_set_bottom_up(true); >>What is the impact of that. Do we need changes equivalent to that ? Also >>where are we marking the nodes which can be hotplugged, ie where do w

[v12, 6/8] MAINTAINERS: add entry for Freescale SoC drivers

2016-09-21 Thread Yangbo Lu
Add maintainer entry for Freescale SoC drivers including the QE library and the GUTS driver now. Also add maintainer for QE library. Signed-off-by: Yangbo Lu Acked-by: Scott Wood Acked-by: Qiang Zhao --- Changes for v8: - Added this patch Changes for v9: - Added linux-arm mail l

[v12, 7/8] base: soc: introduce soc_device_match() interface

2016-09-21 Thread Yangbo Lu
From: Arnd Bergmann We keep running into cases where device drivers want to know the exact version of the a SoC they are currently running on. In the past, this has usually been done through a vendor specific API that can be called by a driver, or by directly accessing some kind of version regist

[v12, 8/8] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-09-21 Thread Yangbo Lu
The eSDHC of T4240-R1.0-R2.0 has incorrect vender version and spec version. Acturally the right version numbers should be VVN=0x13 and SVN = 0x1. This patch adds the GUTS driver support for eSDHC driver to match SoC. And fix host version to avoid that incorrect version numbers break down the ADMA d

[PATCH v2 00/41] powerpc/64: use asm sections for head/exception layout

2016-09-21 Thread Nicholas Piggin
There should be no functional changes since the last patches, but I did add some comments to the new head-64.h macros. Thanks, Nick Nicholas Piggin (41): powerpc/64s: exception vector macros powerpc/64s: consolidate exception handler alignment powerpc/64: use gas sections for arranging exce

[PATCH 01/41] powerpc/64s: exception vector macros

2016-09-21 Thread Nicholas Piggin
Create arch/powerpc/include/asm/head-64.h with macros that specify an exception vector (name, type, location), which will be used to label and lay out exceptions into the object file. Naming is moved out of exception-64s.h, which is used to specify the implementation of exception handlers. objdum

[PATCH 02/41] powerpc/64s: consolidate exception handler alignment

2016-09-21 Thread Nicholas Piggin
Move exception handler alignment directives into the head-64.h macros, beause they will no longer work in-place after the next patch. This slightly changes functions that have alignments applied and therefore code generation, which is why it was not done initially (see earlier patch). Signed-off-b

[PATCH 03/41] powerpc/64: use gas sections for arranging exception vectors

2016-09-21 Thread Nicholas Piggin
Use assembler sections of fixed size and location to arrange pseries exception vector code (64e also using it in head_64.S for 0x0..0x100). This allows better flexibility in arranging exception code and hiding unimportant details behind macros. Gas sections can be a bit painful to use this way, m

[PATCH 04/41] powerpc/64s: consolidate System Reset 0x100 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 11a7b28..a562285 100644 --- a/arch/powerpc/

[PATCH 05/41] powerpc/64s: consolidate Machine Check 0x200 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 665 +-- 1 file changed, 332 insertions(+), 333 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index a562285..4c9a98f 100644 --- a/arc

[PATCH 06/41] powerpc/64s: consolidate Data Storage 0x300 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 55 ++-- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 4c9a98f..19c9149 100644 --- a/arch/

[PATCH 07/41] powerpc/64s: consolidate Data Segment 0x380 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 48 +++- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 19c9149..2cf3668 100644 --- a/arch/

[PATCH 08/41] powerpc/64s: consolidate Instruction Storage 0x400 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 2cf3668..5f08388 100644 --- a/arch/

[PATCH 09/41] powerpc/64s: consolidate Instruction Segment 0x480 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 183 ++- 1 file changed, 93 insertions(+), 90 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 5f08388..0320b60 100644 --- a/arch/

[PATCH 10/41] powerpc/64s: consolidate External 0x500 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 0320b60..fc5ad5c 100644 --- a/arch/powerpc/kern

[PATCH 11/41] powerpc/64s: consolidate Alignment 0x600 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 37 ++-- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index fc5ad5c..5e7f9ed 100644 --- a/arch/

[PATCH 12/41] powerpc/64s: consolidate Program 0x700 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 5e7f9ed..de192dc 100644 --- a/arch/powerpc/kernel/

[PATCH 13/41] powerpc/64s: consolidate FP Unavailable 0x800 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 63 ++-- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index de192dc..e81bcd4 100644 --- a/arch/

[PATCH 14/41] powerpc/64s: consolidate Decrementer 0x900 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index e81bcd4..12ea301 100644 --- a/arch/powerpc/kernel/exceptions-64s.S

[PATCH 15/41] powerpc/64s: consolidate Hypervisor Decrementer 0x980 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 12ea301..c18f48e 100644 --- a/arch/powerpc/kernel/exceptions-64s.S

[PATCH 16/41] powerpc/64s: consolidate Directed Privileged Doorbell 0xa00 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index c18f48e..4c4bdda 100644 --- a/arch/powerpc/kernel/exception

[PATCH 17/41] powerpc/64s: consolidate Reserved 0xb00 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 4c4bdda..e614a58 100644 --- a/arch/powerpc/kernel/exceptions-64s.S

[PATCH 18/41] powerpc/64s: consolidate System Call 0xc00 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 124 +-- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index e614a58..8a12701 100644 --- a/arch/

[PATCH 19/41] powerpc/64s: consolidate Trace 0xd00 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 8a12701..1a9618f 100644 --- a/arch/powerpc/kernel/exceptions-64s.S ++

[PATCH 20/41] powerpc/64s: consolidate Hypervisor Data Storage 0xe00 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 44 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 1a9618f..8dceb35 100644 --- a/arch/

[PATCH 21/41] powerpc/64s: consolidate Hypervisor Instruction Storage 0xe20 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 8dceb35..75dcc08 100644 --- a/arch/powerpc/kernel/excepti

[PATCH 22/41] powerpc/64s: consolidate Hypervisor Emulation Assistance 0xe40 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 75dcc08..7ff0f11 100644 --- a/arch/powerpc/kernel/exceptions

[PATCH 23/41] powerpc/64s: consolidate Hypervisor Maintenance 0xe60 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 114 +-- 1 file changed, 56 insertions(+), 58 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 7ff0f11..ec3e6dc 100644 --- a/arch/

[PATCH 24/41] powerpc/64s: consolidate Directed Hypervisor Doorbell 0xe80 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index ec3e6dc..f0493e5 100644 --- a/arch/powerpc/kernel/e

[PATCH 25/41] powerpc/64s: consolidate Hypervisor Virtualization 0xea0 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index f0493e5..7b76b79 100644 --- a/arch/powerpc/kernel/exceptions

[PATCH 26/41] powerpc/64s: consolidate Reserved 0xec0, 0xee0 interrupts

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 7b76b79..f052fee 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++ b

[PATCH 27/41] powerpc/64s: consolidate Performance Monitor 0xf00 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index f052fee..480c28c 100644 --- a/arch/powerpc/kernel/exceptions-

[PATCH 28/41] powerpc/64s: consolidate Vector Unavailable 0xf20 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 77 ++-- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 480c28c..f517744 100644 --- a/arch/

[PATCH 29/41] powerpc/64s: consolidate VSX Unavailable 0xf40 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 75 ++-- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index f517744..7df5c63 100644 --- a/arch/

[PATCH 30/41] powerpc/64s: consolidate Facility Unavailable 0xf60 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 7df5c63..dfc1ced 100644 --- a/arch/powerpc/kernel

[PATCH 31/41] powerpc/64s: consolidate Hypervisor Facility Unavailable 0xf80 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index dfc1ced..5a3db33 100644 --- a/arch/powerpc/kernel/except

[PATCH 32/41] powerpc/64s: consolidate Reserved 0xfa0-0x1200 interrupts

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 5a3db33..fe5cd85 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++ b

[PATCH 33/41] powerpc/64s: consolidate CBE System Error 0x1200 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index fe5cd85..64255bc 100644 --- a/arch/powerpc/kernel/exceptions-64s.S

[PATCH 34/41] powerpc/64s: consolidate Instruction Breakpoint 0x1300 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 64255bc..3e5f566 100644 --- a/arch/powerpc/kernel/exceptions-64s.S

[PATCH 35/41] powerpc/64s: consolidate Softpatch 0x1500 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 72 ++-- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 3e5f566..3172724 100644 --- a/arch/

[PATCH 36/41] powerpc/64s: consolidate Debug 0x1600 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 3172724..3328425 100644 --- a/arch/powerpc/kernel/exceptions-64s.S

[PATCH 37/41] powerpc/64s: consolidate Altivec 0x1700 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 3328425..60e7e7e 100644 --- a/arch/powerpc/kernel/excep

[PATCH 38/41] powerpc/64s: consolidate CBE Thermal 0x1800 interrupt

2016-09-21 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 60e7e7e..9f96ec2 100644 --- a/arch/powerpc/kernel/excepti

[PATCH 39/41] powerpc/64s: move __replay_interrupt function below handlers

2016-09-21 Thread Nicholas Piggin
This is not an exception handler as such: it's called from local_irq_enable(), not exception entry. Also clean up some now redundant comments at the end of the consolidation series. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 99 +---

[PATCH 40/41] powerpc/64s: use single macro for both parts of OOL exception

2016-09-21 Thread Nicholas Piggin
Simple substitution. This is possible now that both parts of the OOL initial handler get linked into their correct location. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 55 1 file changed, 18 insertions(+), 37 deletions(-) diff

[PATCH 41/41] powerpc/64s: remove unused exception code, small cleanups

2016-09-21 Thread Nicholas Piggin
This was not done before the big patches because I only noticed them afterwards. It has become much easier to see which handlers are branched to from which exception vectors now, and to see exactly what vector space is being used for what. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/e

Re: PowerPC agpmode issues

2016-09-21 Thread Herminio Hernandez, Jr.
I am still getting errors even with radeon.agpmode=4 is set rican-linux@Debian-G5:~$ dmesg |grep -e radeom -e drm -e radeon.agpmode [0.00] Kernel command line: root=UUID=aeca9a67-31d7-4c4b-a0f8-4db328b33305 radeon.agpmode=4 [9.734366] [drm] Initialized drm 1.1.0 20060810 [ 10.934519

Re: [v12, 7/8] base: soc: introduce soc_device_match() interface

2016-09-21 Thread Alexander Shiyan
>Среда, 21 сентября 2016, 9:57 +03:00 от Yangbo Lu : > >From: Arnd Bergmann < a...@arndb.de > > >We keep running into cases where device drivers want to know the exact >version of the a SoC they are currently running on. In the past, this has >usually been done through a vendor specific API that ca

[PATCH v3 0/3] powerpc: implementation of huge pages for 8xx

2016-09-21 Thread Christophe Leroy
This is v3 of patch serie is the implementation of support of hugepages for the 8xx. v1 of the serie was including some other fixes and optimisations/reorganisations for the 8xx. Now the patch has been split and this part only focuses on the implementation of hugepages. v2: the last patch has been

[PATCH v3 2/3] powerpc: get hugetlbpage handling more generic

2016-09-21 Thread Christophe Leroy
Today there are two implementations of hugetlbpages which are managed by exclusive #ifdefs: * FSL_BOOKE: several directory entries points to the same single hugepage * BOOK3S: one upper level directory entry points to a table of hugepages In preparation of implementation of hugepage support on the

[PATCH v3 3/3] powerpc/8xx: Implement support of hugepages

2016-09-21 Thread Christophe Leroy
8xx uses a two level page table with two different linux page size support (4k and 16k). 8xx also support two different hugepage sizes 512k and 8M. In order to support them on linux we define two different page table layout. The size of pages is in the PGD entry, using PS field (bits 28-29): 00 :

[PATCH v3 1/3] powerpc: port 64 bits pgtable_cache to 32 bits

2016-09-21 Thread Christophe Leroy
Today powerpc64 uses a set of pgtable_caches while powerpc32 uses standard pages when using 4k pages and a single pgtable_cache if using other size pages. In preparation of implementing huge pages on the 8xx, this patch replaces the specific powerpc32 handling by the 64 bits approach. This is don

[PATCH] percpu: improve generic percpu modify-return implementation

2016-09-21 Thread Nicholas Piggin
Some architectures require an additional load to find the address of percpu pointers. In some implemenatations, the C aliasing rules do not allow the result of that load to be kept over the store that modifies the percpu variable, which causes additional loads. Work around this by finding the poin

Re: [PATCH] percpu: improve generic percpu modify-return implementation

2016-09-21 Thread kbuild test robot
to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/percpu-improve-generic-percpu-modify-return-implementation/20160921-170016 base: ht

Re: [PATCH] percpu: improve generic percpu modify-return implementation

2016-09-21 Thread kbuild test robot
to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/percpu-improve-generic-percpu-modify-return-implementation/20160921-170016 base: ht

Re: [PATCH] percpu: improve generic percpu modify-return implementation

2016-09-21 Thread kbuild test robot
nce) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/percpu-improve-generic-percpu-modify-return-implementation/20160921-170016 b

Re: [PATCH] percpu: improve generic percpu modify-return implementation

2016-09-21 Thread Nicholas Piggin
On Wed, 21 Sep 2016 18:51:37 +1000 Nicholas Piggin wrote: > Some architectures require an additional load to find the address of > percpu pointers. In some implemenatations, the C aliasing rules do not > allow the result of that load to be kept over the store that modifies > the percpu variable,

[PATCH] i2c_powermac: shut up lockdep warning

2016-09-21 Thread Denis Kirjanov
That's unclear why lockdep shows the following warning but adding a lockdep class to struct pmac_i2c_bus solves it [ 20.507795] == [ 20.507796] [ INFO: possible circular locking dependency detected ] [ 20.507800] 4.8.0-rc7-00037-gd2ffb01 #2

[PATCH 2/4] powerpc/eeh: Export eeh_pe_state_mark()

2016-09-21 Thread Gavin Shan
This exports eeh_pe_state_mark(). It will be used to mark the surprise hot removed PE as isolated to avoid unexpected EEH error reporting in surprise remove path. Signed-off-by: Gavin Shan --- arch/powerpc/kernel/eeh_pe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/ee

[PATCH 0/4] powerpc/powernv: PCI Surprise Hotplug Support

2016-09-21 Thread Gavin Shan
This series of patches supports PCI surprise hotplug on PowerNV platform. Without the corresponding skiboot patches, this feature won't be enabled and workable. * The skiboot patches can be found in below link (PATCH[01/16): https://patchwork.ozlabs.org/project/skiboot/list/?submitter=6392

[PATCH 1/4] powerpc/eeh: Allow to freeze PE in eeh_pe_set_option()

2016-09-21 Thread Gavin Shan
Function eeh_pe_set_option() is used to apply the requested options (enable, disable, unfreeze) in EEH virtualization path. The semantics of this function isn't complete until freezing is supported. This allows to freeze the indicated PE. The new semantics is going to be used in PCI surprise hot r

[PATCH 3/4] powerpc/powernv: Unfreeze PE on allocation

2016-09-21 Thread Gavin Shan
This unfreezes PE when it's initialized because the PE might be put into frozen state in the last hot remove path. It's not harmful to do so if the PE is already in unfrozen state. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/pci-ioda.c | 12 1 file changed, 12 inser

[PATCH 4/4] drivers/pci/hotplug: Support surprise hotplug

2016-09-21 Thread Gavin Shan
This supports PCI surprise hotplug. The design is highlighted as below: * The PCI slot's surprise hotplug capability is exposed through device node property "ibm,slot-surprise-pluggable", meaning PCI surprise hotplug will be disabled if skiboot doesn't support it yet. * The in

Re: [PATCH 4/4] drivers/pci/hotplug: Support surprise hotplug

2016-09-21 Thread Gavin Shan
On Wed, Sep 21, 2016 at 02:08:18PM +1000, Michael Ellerman wrote: >Gavin Shan writes: > >> This supports PCI surprise hotplug. The design is highlighted as >> below: >> >>* The PCI slot's surprise hotplug capability is exposed through >> device node property "ibm,slot-surprise-pluggable",

Re: [PATCH v2 6/6] powerpc/boot: Add support for XZ compression

2016-09-21 Thread Michael Ellerman
Oliver O'Halloran writes: > This patch adds an option to use XZ compression for the kernel image. > Currently this is only enabled for PPC64 targets since the bulk of the > 32bit platforms produce uboot images which do not use the wrapper. For the benefit of the list, this is failing to boot on s

[PATCH] KVM: PPC: Book3s PR: Allow access to unprivileged MMCR2 register

2016-09-21 Thread Thomas Huth
The MMCR2 register is available twice, one time with number 785 (privileged access), and one time with number 769 (unprivileged, but it can be disabled completely). In former times, the Linux kernel was using the unprivileged register 769 only, but since commit 8dd75ccb571f3c92c ("powerpc: Use priv

Re: [v12, 7/8] base: soc: introduce soc_device_match() interface

2016-09-21 Thread Peter Rosin
On 2016-09-21 09:56, Alexander Shiyan wrote: >> Среда, 21 сентября 2016, 9:57 +03:00 от Yangbo Lu : >> >> From: Arnd Bergmann < a...@arndb.de > >> >> We keep running into cases where device drivers want to know the exact >> version of the a SoC they are currently running on. In the past, this has >

Re: powerpc: add kernel parameter iommu_alloc_quiet

2016-09-21 Thread Michael Ellerman
On Thu, 2016-01-09 at 12:56:42 UTC, Mauricio Faria de Oliveira wrote: > This patch introduces the 'iommu_alloc_quiet=driver_name' parameter > to suppress the 'iommu_alloc failures' messages for that one driver. > > This is an additional approach for this 'problem' of flooding logs, > not as fine-g

Re: [PATCH v2 3/3] mm: enable CONFIG_MOVABLE_NODE on powerpc

2016-09-21 Thread Reza Arbab
On Wed, Sep 21, 2016 at 12:39:51PM +0530, Aneesh Kumar K.V wrote: What I was checking was how will one mark a node movable in ppc64 ? I don't see ppc64 code doing the equivalent of memblock_mark_hotplug(). Post boot, the marking mechanism is not necessary. You can create a movable node by putt

[Patch V6 0/8] powerpc/devtree: Add support for 2 new DRC properties

2016-09-21 Thread Michael Bringmann
Several properties in the DRC device tree format are replaced by more compact representations to allow, for example, for the encoding of vast amounts of memory, and or reduced duplication of information in related data structures. "ibm,drc-info": This property, when present, replaces the following

[PATCH V6 2/8] powerpc/memory: Parse new memory property to register blocks.

2016-09-21 Thread Michael Bringmann
powerpc/memory: Add parallel routines to parse the new property "ibm,dynamic-memory-v2" property when it is present, and then to register the relevant memory blocks with the operating system. This property format is intended to provide a more compact representation of memory when communicating with

[PATCH V6 3/8] powerpc/memory: Parse new memory property to initialize structures.

2016-09-21 Thread Michael Bringmann
powerpc/memory: Add parallel routines to parse the new property "ibm,dynamic-memory-v2" property when it is present, and then to finish initialization of the relevant memory structures with the operating system. This code is shared between the boot-time initialization functions and the runtime fun

[PATCH V6 4/8] pseries/hotplug init: Convert new DRC memory property for hotplug runtime

2016-09-21 Thread Michael Bringmann
hotplug_init: Simplify the code needed for runtime memory hotplug and maintenance with a conversion routine that transforms the compressed property "ibm,dynamic-memory-v2" to the form of "ibm,dynamic-memory" within the "ibm,dynamic-reconfiguration-memory" property. Thus only a single set of routin

[PATCH V6 5/8] pseries/drc-info: Search new DRC properties for CPU indexes

2016-09-21 Thread Michael Bringmann
pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,drc-info". [V2: Revise contant names.] [V3: No cha

[PATCH V6 1/8] powerpc/firmware: Add definitions for new firmware features.

2016-09-21 Thread Michael Bringmann
Firmware Features: Define new bit flags representing the presence of new device tree properties "ibm,drc-info", and "ibm,dynamic-memory-v2". These flags are used to tell the front end processor when the Linux kernel supports the new properties, and by the front end processor to tell the Linux kerne

[PATCH V6 6/8] hotplug/drc-info: Add code to search new devtree properties

2016-09-21 Thread Michael Bringmann
rpadlpar_core.c: Provide parallel routines to search the older device- tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,drc-info". The interface to examine the DRC information is changed from a "get" function that returns v

[PATCH V6 8/8] powerpc: Enable support for new DRC devtree properties

2016-09-21 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree properties "ibm,drc-info" and "ibm,dynamic-memory-v2" in initial handshake between the Linux kernel and the front end processor. [V2: Revise constant names.] [V3: No change.] [V4: Update comments] [V5: Resynchronize/resubmit] [V6: Resynchronize t

[PATCH V6 7/8] powerpc: Check arch.vec earlier during boot for memory features

2016-09-21 Thread Michael Bringmann
architecture.vec5 features: The boot-time memory management needs to know the form of the "ibm,dynamic-memory-v2" property early during scanning of the flattened device tree. This patch moves execution of the function pseries_probe_fw_features() early enough to be before the scanning of the memory

Re: [PATCH] percpu: improve generic percpu modify-return implementation

2016-09-21 Thread Tejun Heo
Hello, Nick. How have you been? :) On Wed, Sep 21, 2016 at 08:57:11PM +1000, Nicholas Piggin wrote: > On Wed, 21 Sep 2016 18:51:37 +1000 > Nicholas Piggin wrote: > > > Some architectures require an additional load to find the address of > > percpu pointers. In some implemenatations, the C alias

Re: powerpc: add kernel parameter iommu_alloc_quiet

2016-09-21 Thread Mauricio Faria de Oliveira
Hi Michael, Thanks for the review. On 09/21/2016 10:51 AM, Michael Ellerman wrote: That is important/requirement for the distribution kernels - where the DMA_ATTR_NO_WARN changes to 'enum dma_attr' are not acceptable because it breaks the kernel ABI. [snip] > Removing an entry from an enum wou

Re: [PATCH v2 3/3] mm: enable CONFIG_MOVABLE_NODE on powerpc

2016-09-21 Thread Aneesh Kumar K.V
Reza Arbab writes: > On Wed, Sep 21, 2016 at 12:39:51PM +0530, Aneesh Kumar K.V wrote: >>What I was checking was how will one mark a node movable in ppc64 ? I >>don't see ppc64 code doing the equivalent of memblock_mark_hotplug(). > > Post boot, the marking mechanism is not necessary. You can cre

[PATCH] powerpc/64: get rid of MIN_HUGEPTE_SHIFT

2016-09-21 Thread Christophe Leroy
MIN_HUGEPTE_SHIFT hasn't been used since commit d1837cba5d5d5 ("powerpc/mm: Cleanup initialization of hugepages on powerpc") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hash-4k.h | 3 --- arch/powerpc/include/asm/book3s/64/hash-64k.h| 3 --- arch/powerpc/includ

[PATCH v7 0/6] perf annotate: Cross arch support + few fixes

2016-09-21 Thread Ravi Bangoria
Currently Perf annotate support code navigation (branches and calls) only when run on the same architecture where perf.data was recorded. But, for example, record on powerpc server and annotate on client's x86 desktop is not supported. This patchset adds supports for that. Example: Record on p

[PATCH v7 2/6] perf annotate: Add support for powerpc

2016-09-21 Thread Ravi Bangoria
From: "Naveen N. Rao" Current perf can disassemble annotated function but it does not have parsing logic for powerpc instructions. So all navigation options are not available for powerpc. Apart from that, Powerpc has long list of branch instructions and hardcoding them in table appears to be err

[PATCH v7 3/6] perf annotate: Show raw form for jump instruction with indirect target

2016-09-21 Thread Ravi Bangoria
For jump instructions that does not include target address as direct operand, use raw value for that. This is needed for certain powerpc jump instructions that use target address in a register (such as bctr, btar, ...). Before: ld r12,32088(r12) mtctr r12 v bctr ca2

[PATCH v7 1/6] perf annotate: Add cross arch annotate support

2016-09-21 Thread Ravi Bangoria
Change current data structures and function to enable cross arch annotate. Current perf implementation does not support cross arch annotate. To make it truly cross arch, instruction table of all arch should be present in perf binary. And use appropriate table based on arch where perf.data was reco

[PATCH v7 5/6] perf annotate: Fix jump target outside of function address range

2016-09-21 Thread Ravi Bangoria
If jump target is outside of function range, perf is not handling it correctly. Especially when target address is lesser than function start address, target offset will be negative. But, target address declared to be unsigned, converts negative number into 2's complement. See below example. Here ta

[PATCH v7 6/6] perf annotate: cross arch annotate support fixes for ARM

2016-09-21 Thread Ravi Bangoria
From: Kim Phillips For ARM we remove the list that contains non-arm insns, and instead add more maintainable branch instruction regex logic. Signed-off-by: Kim Phillips Signed-off-by: Ravi Bangoria --- Changes in v7: - Little bit change in initializing instruction list. tools/perf/util/ann

[PATCH v7 4/6] perf annotate: Support jump instruction with target as second operand

2016-09-21 Thread Ravi Bangoria
Current perf is not able to parse jump instruction when second operand contains target address. Arch like powerpc has such instructions. For example, 'bne cr7,0xc00f6154'. objdump o/p: c00f6140: ld r9,1032(r31) c00f6144: cmpdi cr7,r9,0 c00f6148: bn

Re: [PATCH 4/4] drivers/pci/hotplug: Support surprise hotplug

2016-09-21 Thread Bjorn Helgaas
Hi Gavin, You don't need my ack for any of these, and I assume you'll merge them through the powerpc tree. Minor comments below, feel free to ignore them. On Wed, Sep 21, 2016 at 10:15:30PM +1000, Gavin Shan wrote: > ... > @@ -536,9 +565,16 @@ static struct pnv_php_slot *pnv_php_alloc_slot(struc

Re: [PATCH v3 2/3] powerpc: get hugetlbpage handling more generic

2016-09-21 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Today there are two implementations of hugetlbpages which are managed > by exclusive #ifdefs: > * FSL_BOOKE: several directory entries points to the same single hugepage > * BOOK3S: one upper level directory entry points to a table of hugepages > > In preparation of imp

Re: [PATCH v3 3/3] powerpc/8xx: Implement support of hugepages

2016-09-21 Thread Aneesh Kumar K.V
Christophe Leroy writes: > 8xx uses a two level page table with two different linux page size > support (4k and 16k). 8xx also support two different hugepage sizes > 512k and 8M. In order to support them on linux we define two different > page table layout. > > The size of pages is in the PGD ent

Re: [PATCH v5 2/2] QE: remove PPCisms for QE

2016-09-21 Thread Leo Li
On Tue, Sep 20, 2016 at 8:13 PM, Qiang Zhao wrote: > On Mon, Sep 20, 2016 at 4:13 AM, Leo Li wrote: >> -Original Message- >> From: Leo Li [mailto:pku@gmail.com] >> Sent: Tuesday, September 20, 2016 4:13 AM >> To: Qiang Zhao >> Cc: Scott Wood ; linuxppc-dev > d...@lists.ozlabs.org>; lk

Re: [PATCH v7 0/6] perf annotate: Cross arch support + few fixes

2016-09-21 Thread Kim Phillips
On Wed, 21 Sep 2016 21:17:50 +0530 Ravi Bangoria wrote: > Kim, I don't have arm test machine. Can you please help me to test > this on arm. This works for me: hitting return on return instructions yields "Invalid jump offset", but I'll get that later. Thanks, Kim

  1   2   >