UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: SAUCE: Add use_native_backlight quirk for Dell Inspiron 5721/3521

BugLink: http://bugs.launchpad.net/bugs/1354313
BugLink: http://bugs.launchpad.net/bugs/1354253

Signed-off-by: Edward Lin <yidi.lin@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
mmc: rtsx: add R1-no-CRC mmc command type handle

BugLink: http://bugs.launchpad.net/bugs/1365378

a27fbf2f067b0cd ("mmc: add ignorance case for CMD13 CRC error") produced
a cmd.flags unhandled in realtek pci host driver.  This will make MMC
card fail to initialize, this patch is used to handle the new cmd.flags
condition and MMC card can be used.

Signed-off-by: Micky Ching <micky_ching@realsil.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
(cherry picked from commit 5027251eced6e34315a52bd841279df957f627bb)
Signed-off-by: Adam Lee <adam.lee@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: SAUCE: Fix nfs oops stable regression

BugLink: http://bugs.launchpad.net/bugs/1348670

Fix regression introduced in 3.2.60 by cherry-picking a post-3.14 patch that
depends on the set_acl methods being able to cope with a NULL ACL argument.

Signed-off-by: Sergio Gelato <Sergio.Gelato@astro.su.se>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
rpc_pipe: remove the clntXX dir if creating the pipe fails

BugLink: http://bugs.launchpad.net/bugs/1365869

In the event that we create the gssd/clntXX dir, but the pipe creation
subsequently fails, then we should remove the clntXX dir before
returning.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from commit 3396f92f8be606ea485b0a82d4e7749a448b013b)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
sunrpc: add an "info" file for the dummy gssd pipe

BugLink: http://bugs.launchpad.net/bugs/1365869

rpc.gssd expects to see an "info" file in each clntXX dir. Since adding
the dummy gssd pipe, users that run rpc.gssd see a lot of these messages
spamming the logs:

    rpc.gssd[508]: ERROR: can't open /var/lib/nfs/rpc_pipefs/gssd/clntXX/info: No such file or directory
    rpc.gssd[508]: ERROR: failed to read service info

Add a dummy gssd/clntXX/info file to help silence these messages.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from commit e2f0c83a9de331d9352185ca3642616c13127539)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
rpc_pipe: fix cleanup of dummy gssd directory when notification fails

BugLink: http://bugs.launchpad.net/bugs/1365869

Currently, it could leak dentry references in some cases. Make sure
we clean up properly.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from commit 23e66ba97127ff3b064d4c6c5138aa34eafc492f)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
UBUNTU: [Config] CONFIG_HW_RANDOM_XGENE=m on arm64

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
hwrng: xgene - add support for APM X-Gene SoC RNG support

BugLink: http://bugs.launchpad.net/bugs/1365593

This adds the APM X-Gene SoC RNG support.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked a91ae4eba9f9977863b57f2ac61e2e8e780375a8 from linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>

Conflicts:
	drivers/char/hw_random/Kconfig
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Documentation: rng: Add X-Gene SoC RNG driver documentation

BugLink: http://bugs.launchpad.net/bugs/1365593

Add X-Gene SoC RNG driver documentation.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked 1b8815a980d17e387708eae5cf61c6283f354f7f from linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arm64: dts: add random number generator dts node to APM X-Gene platform.

BugLink: http://bugs.launchpad.net/bugs/1365593

This adds random number generator dts node to APM X-Gene platform.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked ab81873974afa3ce7bd8669580b06d33353f1e7c from linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
xen/balloon: cancel ballooning if adding new memory failed

BugLink: http://bugs.launchpad.net/bugs/1304001

If the balloon driver is adding additional memory regions to the
balloon and add_memory() fails it will likely continuously fail so
cancel the balloon operation.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
(cherry picked from commit 3dcf63677d4eb7fdfc13290c8558c301d2588fe8)
Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
x86/xen: resume timer irqs early

BugLink: http://bugs.launchpad.net/bugs/1368724

If the timer irqs are resumed during device resume it is possible in
certain circumstances for the resume to hang early on, before device
interrupts are resumed.  For an Ubuntu 14.04 PVHVM guest this would
occur in ~0.5% of resume attempts.

It is not entirely clear what is occuring the point of the hang but I
think a task necessary for the resume calls schedule_timeout(),
waiting for a timer interrupt (which never arrives).  This failure may
require specific tasks to be running on the other VCPUs to trigger
(processes are not frozen during a suspend/resume if PREEMPT is
disabled).

Add IRQF_EARLY_RESUME to the timer interrupts so they are resumed in
syscore_resume().

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org
(cherry picked from commit 8d5999df35314607c38fbd6bdd709e25c3a4eeab)
Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
xen/manage: Always freeze/thaw processes when suspend/resuming

BugLink: http://bugs.launchpad.net/bugs/1368724

Always freeze processes when suspending and thaw processes when resuming
to prevent a race noticeable with HVM guests.

This prevents a deadlock where the khubd kthread (which is designed to
be freezable) acquires a usb device lock and then tries to allocate
memory which requires the disk which hasn't been resumed yet.
Meanwhile, the xenwatch thread deadlocks waiting for the usb device
lock.

Freezing processes fixes this because the khubd thread is only thawed
after the xenwatch thread finishes resuming all the devices.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: stable@vger.kernel.org
(cherry picked from commit 61a734d305e16944b42730ef582a7171dc733321)
Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [Config] Add mpt3sas to d-i

BugLink: http://bugs.launchpad.net/bugs/1368907

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
scsi_transport_sas: move bsg destructor into sas_rphy_remove

BugLink: http://bugs.launchpad.net/bugs/1368991

The recent change in sysfs, bcdde7e221a8750f9b62b6d0bd31b72ea4ad9309
"sysfs: make __sysfs_remove_dir() recursive" revealed an asymmetric
rphy device creation/deletion sequence in scsi_transport_sas:

  modprobe mpt2sas
    sas_rphy_add
      device_add A               rphy->dev
      device_add B               sas_device transport class
      device_add C               sas_end_device transport class
      device_add D               bsg class

  rmmod mpt2sas
    sas_rphy_delete
      sas_rphy_remove
        device_del B
        device_del C
        device_del A
          sysfs_remove_group     recursive sysfs dir removal
      sas_rphy_free
        device_del D             warning

  where device A is the parent of B, C, and D.

When sas_rphy_free tries to unregister the bsg request queue (device D
above), the ensuing sysfs cleanup discovers that its sysfs group has
already been removed and emits a warning, "sysfs group... not found for
kobject 'end_device-X:0'".

Since bsg creation is a side effect of sas_rphy_add, move its
complementary removal call into sas_rphy_remove. This imposes the
following tear-down order for the devices above: D, B, C, A.

Note the sas_device and sas_end_device transport class devices (B and C
above) are created and destroyed both via the list match traversal in
attribute_container_device_trigger, so the order in which they are
handled is fixed. This is fine as long as they are deleted before their
parent device.

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 6aa6caff30f5dcb9e55b03b9710c30b83750cae5)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
drm/i915: Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices

commit 06ea66b6bb445043dc25a9626254d5c130093199 upstream.

BugLink: http://bugs.launchpad.net/bugs/1369633

For HSW+ platforms, enable the 5.4Ghz (HBR2) link rate for devices that support it. The
sink device must report that is supports Displayport 1.2 and the HBR2 bit rate in the
DPCD in order to use HBR2.

Signed-off-by: Todd Previte <tprevite@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

(Backported to 3.13.x)
Signed-off-by: Robert Hooker <robert.hooker@canonical.com>
bnx2x: Fix link for KR with swapped polarity lane

BugLink: http://bugs.launchpad.net/bugs/1370716

This avoids clearing the RX polarity setting in KR mode when polarity lane
is swapped, as otherwise this will result in failed link.

Signed-off-by: Yaniv Rosner <yaniv.rosner@qlogic.com>
Signed-off-by: Yuval Mintz <yuval.mintz@qlogic.com>
Signed-off-by: Ariel Elior <ariel.elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit dad91ee478c7f39e04a33272732147b8c274bb58)
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Brad Figg <brad.figg@canonical.com>
drm: add DRM_CAPs for cursor size

BugLink: http://bugs.launchpad.net/bugs/1359213

Some hardware may not support standard 64x64 cursors.  Add
a drm cap to query the cursor size from the kernel.  Some examples
include radeon CIK parts (128x128 cursors) and armada (32x64 or 64x32).
This allows things like device specific ddxes to remove asics specific
logic and also allows xf86-video-modesetting to work properly with hw
cursors on this hardware. Default to 64 if the driver doesn't specify
a size.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
(cherry picked from commit 8716ed4e7bed4e4c7e3f37940e950ddc0362f450)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drm/dp: Add AUX channel infrastructure

BugLink: http://bugs.launchpad.net/bugs/1359213

This is a superset of the current i2c_dp_aux bus functionality and can
be used to transfer native AUX in addition to I2C-over-AUX messages.

Helpers are provided to read and write the DPCD, either blockwise or
byte-wise. Many of the existing helpers for DisplayPort take a copy of a
portion of the DPCD and operate on that, without a way to write data
back to the DPCD (e.g. for configuration of the link).

Subsequent patches will build upon this infrastructure to provide common
functionality in a generic way.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit c197db75ff5c1d4f015c7668a3715e230a5d7e27)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>