UBUNTU: SAUCE: Improve Amazon EBS performance for EC2

OriginalAuthor: Amazona from Ben Howard <behoward@amazon.com>
BugLink: http://bugs.launchpad.net/bugs/634316

The pv-ops kernel suffers from poor performance when using Amazon's
Elastic block storage (EBS).  This patch from Amazon improves pv-ops
kernel performance, and has not exhibited any regressions.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
UBUNTU: SAUCE: Mask CR4 writes on older Xen hypervisors

Older Xen hypervisors (like RHEL5 versions found to be used
on Amazon's EC2) did have a bug which would crash the domain
when trying to write unsupported CR4 values.
Newer versions do handle this correctly. But some probes (in
particular one that tries to pass the OSXSAVE bit set) were
causing pv-ops kernels to crash early on boot when running on EC2.

We were using a patch that did always filter the OSXSAVE off the
values written to CR4 when running as Xen PV guest. While not
completely wrong this creates an inconsistency between the cpuid
bits a guest sees and the CR4 settings. And this did recently
cause problems because user-space was not testing all bits when
deciding to use certain features.

This patch will actually mask off the cpuid bits for XSAVE and
OSXSAVE, so generic code will not even try to set CR4. It is
limited to PV guests and (since we do not actually know the
exact version) Xen hypervisors before version 4.

[v2: make the version check an inline function]
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: Created debian.ppc

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [Config] Remove ppc64 (native 64-bit port we don't have)

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: [Config] Add powerpc-e500 and powerpc-e500mc configurations

Update other configs in the process.

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: [Config] Final configs and rules for PowerPC

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: [Config] Set do_tools=false for powerpc (for now)

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: [Config] Update features enabled on PowerPC build

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: [Config] Update ABI files for all initial powerpc flavours

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: [Config] Enable abi and module checks

Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: Bump ABI

Ignore: yes
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: powerpc/pamu: Add driver to initialize PAMU tables

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
Signed-off-by: Vakul Garg <Vakul@freescale.com>
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: fsl_qbman: Add drivers for Freescale DPAA Qman & Bman

Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeffrey Ladouceur <Jeffrey.Ladouceur@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: fsl_pme2: Add support for DPAA PME

Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeffrey Ladouceur <Jeffrey.Ladouceur@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: fmd: FMD14 integration

FMD14 integration:
    - integration of NetCommSW GA 4.3 LLD
    - FMD wrapper cleanup
    - FMD dynamic resource allocation algorithm
    - Changes to support IXXAT IEEE 1588 stack v1.03
    - Support P3060 FMan

Signed-off-by: Shlomi Gridish <gridish@freescale.com>
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com>
Signed-off-by: Sorin Pistirica <sorin.pistirica@freescale.com>
Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
Signed-off-by: Stefan Szabo <stefan.szabo@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: net: Add support for handling queueing in hardware

The QDisc code does a bunch of locking which is unnecessary if
you have hardware which handles all of the queueing.  Add
support for this, and skip over all of the queueing code if
the feature is enabled on a given device. This code breaks
QDisc support on dpaa_eth, and also coopts the FCOE feature
bit.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: net/flow: remove sleeping and deferral mechanism from flow_cache_flush

flow_cache_flush must not sleep as it can be called in atomic context;
removed the schedule_work as the deferred processing lead to the flow
cache gc never being actually run under heavy network load

Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: of_mdio: Add of_phy_attach function

of_phy_connect is useful for most systems, but some drivers will want
finer-grained control over their PHYs, and won't want to use the
PHY Lib state machine or interrupt handlers.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>
UBUNTU: SAUCE: phylib: Minimum hack to get the generic 10G PHY driver to work with 10G "fixed-link"s

Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Ben Collins <ben.c@servergy.com>