Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge test into next #1

Merged
merged 35 commits into from
Feb 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6d5f6a0
powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN
kimphill Jan 23, 2015
e8d2081
powerpc/dts: Remove T4240 emulator support
Jan 21, 2015
238cac1
powerpc: Remove duplicate tlbcam_index declarations
Jan 21, 2015
d2caa3c
powerpc/perf: fix fsl_emb_pmu_start to write correct pmc value
Jan 20, 2015
a7b9f67
powerpc32: adds handling of _PAGE_RO
chleroy Jan 19, 2015
cadbfd0
powerpc/8xx: use _PAGE_RO instead of _PAGE_RW
chleroy Jan 19, 2015
7f93c9d
power/fsl: add MDIO dt binding for FMan
Jan 28, 2015
debddd9
powerpc/8xx: reduce pressure on TLB due to context switches
chleroy Jan 19, 2015
2374d0a
powerpc/8xx: remove remaining unnecessary code in FixupDAR
chleroy Jan 20, 2015
5ddb75c
powerpc/8xx: remove tests on PGDIR entry validity
chleroy Jan 20, 2015
ce67f5d
powerpc32: Use kmem_cache memory for PGDIR
chleroy Jan 20, 2015
17bb312
powerpc/8xx: Take benefit of aligned PGDIR
chleroy Jan 20, 2015
fde5a90
powerpc/8xx: Optimise access to swapper_pg_dir
chleroy Jan 20, 2015
4545ff7
powerpc/8xx: Remove duplicated code in set_context()
chleroy Jan 20, 2015
974ff4e
powerpc: Add machine_check cpu function for e300c3 cpus
Jan 6, 2015
cbe8c43
powerpc/config: Enable MDIO support
puppybane Dec 23, 2014
bb344ca
powerpc/mpc85xx: Add ranges to etsec2 nodes
Dec 18, 2014
2727ed5
powerpc/85xx: Add support for Emerson/Artesyn MVME2500.
abogani Dec 11, 2014
c3e09b3
memory/fsl-corenet-cf: Add t1040 support
Dec 11, 2014
1ee9df4
dt/bindings: b/qman: Fix the alloc-ranges in the example(s)
Dec 8, 2014
7af98c7
dt/bindings: b/qman: Add phandle to the portals
Dec 8, 2014
39b55b5
powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA BMan
kumargala Dec 8, 2014
de58824
powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA QMan
kumargala Dec 8, 2014
fd5f491
powerpc: dts: pq3/85xx: Fix GPIO address
abogani Dec 4, 2014
8ac6e99
PowerPC-83xx: Deletion of an unnecessary check before the function ca…
elfring Nov 22, 2014
5db4312
powerpc/qe: Use strlcpy()
Jul 26, 2014
0d7d9b3
perf/powerpc: reset event hw state when adding it to the PMU
alexandrusardan Jun 26, 2014
c9111a4
powerpc: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
computersforpeace May 1, 2014
0dc294f
powerpc/mm: bail out early when flushing TLB page
Jan 30, 2015
a604c96
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
mpe Feb 4, 2015
7f43e71
powerpc/powernv: Add OPAL soft-poweroff routine
shenki Jan 30, 2015
c2c896b
powerpc/mm: Warn on flushing tlb page in kernel context
Feb 4, 2015
b087e61
cxl: Export optional AFU configuration record in sysfs
Feb 4, 2015
3d5be03
cxl: Fail AFU initialisation if an invalid configuration record is found
Feb 4, 2015
a6130ed
cxl: Add missing return statement after handling AFU errror
Feb 4, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Documentation/ABI/testing/sysfs-class-cxl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,43 @@ Description: read only
this this kernel supports.


AFU configuration records (eg. /sys/class/cxl/afu0.0/cr0):

An AFU may optionally export one or more PCIe like configuration records, known
as AFU configuration records, which will show up here (if present).

What: /sys/class/cxl/<afu>/cr<config num>/vendor
Date: February 2015
Contact: linuxppc-dev@lists.ozlabs.org
Description: read only
Hexadecimal value of the vendor ID found in this AFU
configuration record.

What: /sys/class/cxl/<afu>/cr<config num>/device
Date: February 2015
Contact: linuxppc-dev@lists.ozlabs.org
Description: read only
Hexadecimal value of the device ID found in this AFU
configuration record.

What: /sys/class/cxl/<afu>/cr<config num>/vendor
Date: February 2015
Contact: linuxppc-dev@lists.ozlabs.org
Description: read only
Hexadecimal value of the class code found in this AFU
configuration record.

What: /sys/class/cxl/<afu>/cr<config num>/config
Date: February 2015
Contact: linuxppc-dev@lists.ozlabs.org
Description: read only
This binary file provides raw access to the AFU configuration
record. The format is expected to match the either the standard
or extended configuration space defined by the PCIe
specification.



Master contexts (eg. /sys/class/cxl/afu0.0m)

What: /sys/class/cxl/<afu>m/mmio_size
Expand Down
70 changes: 70 additions & 0 deletions Documentation/devicetree/bindings/powerpc/fsl/fman.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CONTENTS
- FMan MURAM Node
- FMan dTSEC/XGEC/mEMAC Node
- FMan IEEE 1588 Node
- FMan MDIO Node
- Example

=============================================================================
Expand Down Expand Up @@ -356,6 +357,69 @@ ptp-timer@fe000 {
reg = <0xfe000 0x1000>;
};

=============================================================================
FMan MDIO Node

DESCRIPTION

The MDIO is a bus to which the PHY devices are connected.

PROPERTIES

- compatible
Usage: required
Value type: <stringlist>
Definition: A standard property.
Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2.
Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2.
Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from
FMan v3.

- reg
Usage: required
Value type: <prop-encoded-array>
Definition: A standard property.

- bus-frequency
Usage: optional
Value type: <u32>
Definition: Specifies the external MDIO bus clock speed to
be used, if different from the standard 2.5 MHz.
This may be due to the standard speed being unsupported (e.g.
due to a hardware problem), or to advertise that all relevant
components in the system support a faster speed.

- interrupts
Usage: required for external MDIO
Value type: <prop-encoded-array>
Definition: Event interrupt of external MDIO controller.

- fsl,fman-internal-mdio
Usage: required for internal MDIO
Value type: boolean
Definition: Fman has internal MDIO for internal PCS(Physical
Coding Sublayer) PHYs and external MDIO for external PHYs.
The settings and programming routines for internal/external
MDIO are different. Must be included for internal MDIO.

EXAMPLE

Example for FMan v2 external MDIO:

mdio@f1000 {
compatible = "fsl,fman-xmdio";
reg = <0xf1000 0x1000>;
interrupts = <101 2 0 0>;
};

Example for FMan v3 internal MDIO:

mdio@f1000 {
compatible = "fsl,fman-memac-mdio";
reg = <0xf1000 0x1000>;
fsl,fman-internal-mdio;
};

=============================================================================
Example

Expand Down Expand Up @@ -531,4 +595,10 @@ fman@400000 {
compatible = "fsl,fman-ptp-timer";
reg = <0xfe000 0x1000>;
};

mdio@f1000 {
compatible = "fsl,fman-xmdio";
reg = <0xf1000 0x1000>;
interrupts = <101 2 0 0>;
};
};
12 changes: 11 additions & 1 deletion Documentation/devicetree/bindings/soc/fsl/bman.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ are located at offsets 0xbf8 and 0xbfc
Value type: <prop-encoded-array>
Definition: Standard property. The error interrupt

- fsl,bman-portals
Usage: Required
Value type: <phandle>
Definition: Phandle to this BMan instance's portals

- fsl,liodn
Usage: See pamu.txt
Value type: <prop-encoded-array>
Expand Down Expand Up @@ -96,14 +101,18 @@ The example below shows a BMan FBPR dynamic allocation memory node

bman_fbpr: bman-fbpr {
compatible = "fsl,bman-fbpr";
alloc-ranges = <0 0 0xf 0xffffffff>;
alloc-ranges = <0 0 0x10 0>;
size = <0 0x1000000>;
alignment = <0 0x1000000>;
};
};

The example below shows a (P4080) BMan CCSR-space node

bportals: bman-portals@ff4000000 {
...
};

crypto@300000 {
...
fsl,bman = <&bman, 2>;
Expand All @@ -115,6 +124,7 @@ The example below shows a (P4080) BMan CCSR-space node
reg = <0x31a000 0x1000>;
interrupts = <16 2 1 2>;
fsl,liodn = <0x17>;
fsl,bman-portals = <&bportals>;
memory-region = <&bman_fbpr>;
};

Expand Down
14 changes: 12 additions & 2 deletions Documentation/devicetree/bindings/soc/fsl/qman.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ are located at offsets 0xbf8 and 0xbfc
Value type: <prop-encoded-array>
Definition: Standard property. The error interrupt

- fsl,qman-portals
Usage: Required
Value type: <phandle>
Definition: Phandle to this QMan instance's portals

- fsl,liodn
Usage: See pamu.txt
Value type: <prop-encoded-array>
Expand Down Expand Up @@ -113,20 +118,24 @@ The example below shows a QMan FQD and a PFDR dynamic allocation memory nodes

qman_fqd: qman-fqd {
compatible = "fsl,qman-fqd";
alloc-ranges = <0 0 0xf 0xffffffff>;
alloc-ranges = <0 0 0x10 0>;
size = <0 0x400000>;
alignment = <0 0x400000>;
};
qman_pfdr: qman-pfdr {
compatible = "fsl,qman-pfdr";
alloc-ranges = <0 0 0xf 0xffffffff>;
alloc-ranges = <0 0 0x10 0>;
size = <0 0x2000000>;
alignment = <0 0x2000000>;
};
};

The example below shows a (P4080) QMan CCSR-space node

qportals: qman-portals@ff4200000 {
...
};

clockgen: global-utilities@e1000 {
...
sysclk: sysclk {
Expand Down Expand Up @@ -154,6 +163,7 @@ The example below shows a (P4080) QMan CCSR-space node
reg = <0x318000 0x1000>;
interrupts = <16 2 1 3>
fsl,liodn = <0x16>;
fsl,qman-portals = <&qportals>;
memory-region = <&qman_fqd &qman_pfdr>;
clocks = <&platform_pll 1>;
};
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/boot/dts/fsl/pq3-etsec2-0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ethernet@b0000 {
fsl,num_tx_queues = <0x8>;
fsl,magic-packet;
local-mac-address = [ 00 00 00 00 00 00 ];
ranges;

queue-group@b0000 {
#address-cells = <1>;
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ethernet@b1000 {
fsl,num_tx_queues = <0x8>;
fsl,magic-packet;
local-mac-address = [ 00 00 00 00 00 00 ];
ranges;

queue-group@b1000 {
#address-cells = <1>;
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/boot/dts/fsl/pq3-etsec2-2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ethernet@b2000 {
fsl,num_tx_queues = <0x8>;
fsl,magic-packet;
local-mac-address = [ 00 00 00 00 00 00 ];
ranges;

queue-group@b2000 {
#address-cells = <1>;
Expand Down
6 changes: 3 additions & 3 deletions arch/powerpc/boot/dts/fsl/pq3-gpio-0.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* PQ3 GPIO device tree stub [ controller @ offset 0xf000 ]
* PQ3 GPIO device tree stub [ controller @ offset 0xfc00 ]
*
* Copyright 2011 Freescale Semiconductor Inc.
*
Expand Down Expand Up @@ -32,10 +32,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

gpio-controller@f000 {
gpio-controller@fc00 {
#gpio-cells = <2>;
compatible = "fsl,pq3-gpio";
reg = <0xf000 0x100>;
reg = <0xfc00 0x100>;
interrupts = <47 0x2 0 0>;
gpio-controller;
};
90 changes: 90 additions & 0 deletions arch/powerpc/boot/dts/fsl/qoriq-bman1-portals.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* QorIQ BMan Portal device tree stub for 10 portals
*
* Copyright 2011 - 2014 Freescale Semiconductor Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Freescale Semiconductor nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* ALTERNATIVELY, this software may be distributed under the terms of the
* GNU General Public License ("GPL") as published by the Free Software
* Foundation, either version 2 of that License or (at your option) any
* later version.
*
* THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

&bportals {
#address-cells = <1>;
#size-cells = <1>;
compatible = "simple-bus";

bman-portal@0 {
compatible = "fsl,bman-portal";
reg = <0x0 0x4000>, <0x100000 0x1000>;
interrupts = <105 2 0 0>;
};
bman-portal@4000 {
compatible = "fsl,bman-portal";
reg = <0x4000 0x4000>, <0x101000 0x1000>;
interrupts = <107 2 0 0>;
};
bman-portal@8000 {
compatible = "fsl,bman-portal";
reg = <0x8000 0x4000>, <0x102000 0x1000>;
interrupts = <109 2 0 0>;
};
bman-portal@c000 {
compatible = "fsl,bman-portal";
reg = <0xc000 0x4000>, <0x103000 0x1000>;
interrupts = <111 2 0 0>;
};
bman-portal@10000 {
compatible = "fsl,bman-portal";
reg = <0x10000 0x4000>, <0x104000 0x1000>;
interrupts = <113 2 0 0>;
};
bman-portal@14000 {
compatible = "fsl,bman-portal";
reg = <0x14000 0x4000>, <0x105000 0x1000>;
interrupts = <115 2 0 0>;
};
bman-portal@18000 {
compatible = "fsl,bman-portal";
reg = <0x18000 0x4000>, <0x106000 0x1000>;
interrupts = <117 2 0 0>;
};
bman-portal@1c000 {
compatible = "fsl,bman-portal";
reg = <0x1c000 0x4000>, <0x107000 0x1000>;
interrupts = <119 2 0 0>;
};
bman-portal@20000 {
compatible = "fsl,bman-portal";
reg = <0x20000 0x4000>, <0x108000 0x1000>;
interrupts = <121 2 0 0>;
};
bman-portal@24000 {
compatible = "fsl,bman-portal";
reg = <0x24000 0x4000>, <0x109000 0x1000>;
interrupts = <123 2 0 0>;
};
};
41 changes: 41 additions & 0 deletions arch/powerpc/boot/dts/fsl/qoriq-bman1.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* QorIQ BMan device tree stub [ controller @ offset 0x31a000 ]
*
* Copyright 2011 - 2014 Freescale Semiconductor Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Freescale Semiconductor nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
*
* ALTERNATIVELY, this software may be distributed under the terms of the
* GNU General Public License ("GPL") as published by the Free Software
* Foundation, either version 2 of that License or (at your option) any
* later version.
*
* THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

bman: bman@31a000 {
compatible = "fsl,bman";
reg = <0x31a000 0x1000>;
interrupts = <16 2 1 2>;
fsl,bman-portals = <&bportals>;
memory-region = <&bman_fbpr>;
};
Loading