Commit Graph

379850 Commits

Author SHA1 Message Date
Dongjin Kim
d7d714d49d ODROID: Add ODROID sysfs feature enhancement driver
Change-Id: I91dedbf5c99de60f50d1f46c0f3aa973d76e24af
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:45 +09:00
codewalker
617357f52e ODROIDC:hdmi: Try to read proper mode before video stream out
Change-Id: I80d7bb91cc49f2cd4cdb8d961bcdea35f98ef7a1

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:42 +09:00
Dongjin Kim
e79967c706 ODROIDC:dtd: Managing single device tree for SDCARD or eMMC boot
In order to assign a boot media to SDHC block between SDCARD or eMMC,
different two device tree have to be maintained. But this is risky to
maintain. Hence add both properties of SDCARD and eMMC to each contoller, SDHC
and SDIO, remove one of them in U-boot. Finally Linux kernel will have proper
device tree with corresponding to boot deivce.

Change-Id: I607575123f81e85d93c0c2613738e11f53892731
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:39 +09:00
ckkim
a709d1d0b7 ODROIDC:dtd: Remove ADC keypad node
Change-Id: Ideaf2d3b9d887e7442a589c988bd1d2a12a951bb
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:05:31 +09:00
ckkim
b14d7800f8 ODROIDC:config: Remove input devices unsupported
Change-Id: Idbe1d789c1643ad5e120739ff5e3a7c5a40cee5c
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
2014-12-16 01:04:09 +09:00
codewalker
593365a1f0 ODROIDC:config: Add xpad feature for XBOX controller.
Change-Id: Iab8c7f2b9dc00ef9449635fb7bdcd6fb34409291

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:32 +09:00
ckkim
590a9432cd ODROIDC:dtd: Add 'change-frequent-only' property to DVFS node.
Since ODROIDC does not have PMU for voltage scaling, only required to
scale the CPU frequencies.

Change-Id: I6e49d7b00fb057776e97fafc3a1dc6daa8494e1e

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:29 +09:00
ckkim
5a71d7c7e2 ODROIDC:audio: Add dummy_codec to support SPDIF
Change-Id: Ibd6374015f1d98e65e04662ae8dda08ffda18d57
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:27 +09:00
Dongjin Kim
3c29693d6d mtd/nand: Fix build error since NAND feature is disabled
drivers/mtd/nand/nand_base.c:2863:12:
error: ‘nand_flash_detect_onfi’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

Change-Id: I66511666e9dc561ae8adc06d73aa21b3856d3a37
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:24 +09:00
Dongjin Kim
e9295bc19e ODROIDC:mtd/nand: disable NAND features
Change-Id: I9c944a6bb4574e6b07f4d6007adaf997f1548f11
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:21 +09:00
Dongjin Kim
007786119d ODROIDC:config: Add USB dongle WiFi driver build
This patch disables WiFi modules and removes from build.

Change-Id: Id17f18fe59122c7f676cf91c647ec1af285ff107
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:18 +09:00
Dongjin Kim
5fa3789340 Revert "ODROIDC:config: Add USB dongle WiFi driver build"
This reverts commit 74552b8f39694252758a0bed425386a9592fdd46.

Change-Id: I4c1b7b4c0b3155e950742ab7a552843e9deda731

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:15 +09:00
Dongjin Kim
c19b662cdc ODROIDC:config: Add USB dongle WiFi driver build
Change-Id: I531db49387927427f7584d494d592776b274d5a6
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:12 +09:00
Dongjin Kim
0cb684827a ODROIDC:config: kernel build config clean-up
Change-Id: Ie5155d94352c4e3bf9216e3b6e25885733ac01ad
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:08 +09:00
Dongjin Kim
e9c8246f71 ODROIDC:dtd: Remove dummy PMU device nodes
Change-Id: I2cb76fb311398e36bb6f4a5aff14e9c0975d12cd
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:05 +09:00
ckkim
3bc55dd529 mmc/sdhc: Fix clk_div for maximum clock
Change-Id: I5dabc4071c2f1d2d4f4ea550097b990757c74e99
Signed-off-by: Kevin Kim <chkim@hardkernel.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:03:02 +09:00
Dongjin Kim
d5f5d60eb3 wifi: Remove Broadcom WiFi device driver
Change-Id: I7b64eb2c6014ab26cd46f638337958543c1b23e4
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:02:57 +09:00
Dongjin Kim
510ea38d29 ODROIDC: use generic partition tables on MBR
Change-Id: Ia8d4869ff336ad6a2deed92bff2190509507b948
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 01:02:53 +09:00
ckkim
7d558a4c01 ODROIDC:usb: USB Hub reset control, OTG VBUS control
Change-Id: Id5656c4f5404864d4536972beed7fa352ba77eb5
2014-12-16 00:57:07 +09:00
ckkim
35940576db ODROIDC: rtc: Supporting RTC hwclock
Change-Id: Iedf453c1bdd01bd1682ec2bce4d2e0148153ece2
2014-12-16 00:56:59 +09:00
ckkim
02b9c85af2 ODROIDC: mmc: Support UHS-1 micro sdcard
Since MESON8B has single SDHC and SDIO block, 'meson8b_odroidc.dtd' is to boot by sdcard
and 'meson8b_odroidc_emmc.dtd' by eMMC.

Change-Id: I5550197122c023d50665a3bcfc740567b99420f4
2014-12-16 00:56:50 +09:00
Dongjin Kim
e3fcce2faf config:ODROIDC: Kernel porting to ODROIDC board (rev 1.0)
Below hardware/components are deprecated
        PMU (AML1618)
        NAND
        Audio Codec

Change-Id: Ica61b729b1fc8abc8df9bb60d84279c3f0269d85
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:42 +09:00
Dongjin Kim
7ce662dd7a config:ODROIDC: Enable a sysfs interface for GPIOs.
Change-Id: If5ad26b1f2619b478f4a025db223267e2e3e69fc
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:34 +09:00
Dongjin Kim
7cde677246 ARM:config: Add new kernel config for ODROID-C
Change-Id: I8fc926f3991e83b7e50da1779fd2a5f6b73aa70f
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:24 +09:00
Dongjin Kim
db8d344dcd ARM:dts: Add new device file for ODROID-C
Change-Id: I0ef19806958742c2f4c64c97aa2695b2fe5782ea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:14 +09:00
Dongjin Kim
2ce21f7c19 arch/arm/mach-meson8b: Add ODROID-C to Kconfig.boards
Change-Id: I46e951f4091cb4216c8fd20d71f04cdfb91f9c2f
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-16 00:56:06 +09:00
Dongjin Kim
e647d676f7 AMLogic's patchset of 'amlogic-20140823'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-12-15 21:09:17 +09:00
Greg Kroah-Hartman
6969595f01 Linux 3.10.33 v3.10.33 2014-03-06 21:58:45 -08:00
Dan Williams
e9ba61f0dd ioat: fix tasklet tear down
commit da87ca4d4c upstream.

Since commit 7787380336 "net_dma: mark broken" we no longer pin dma
engines active for the network-receive-offload use case.  As a result
the ->free_chan_resources() that occurs after the driver self test no
longer has a NET_DMA induced ->alloc_chan_resources() to back it up.  A
late firing irq can lead to ksoftirqd spinning indefinitely due to the
tasklet_disable() performed by ->free_chan_resources().  Only
->alloc_chan_resources() can clear this condition in affected kernels.

This problem has been present since commit 3e037454bc "I/OAT: Add
support for MSI and MSI-X" in 2.6.24, but is now exposed. Given the
NET_DMA use case is deprecated we can revisit moving the driver to use
threaded irqs.  For now, just tear down the irq and tasklet properly by:

1/ Disable the irq from triggering the tasklet

2/ Disable the irq from re-arming

3/ Flush inflight interrupts

4/ Flush the timer

5/ Flush inflight tasklets

References:
https://lkml.org/lkml/2014/1/27/282
https://lkml.org/lkml/2014/2/19/672

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Reported-by: Mike Galbraith <bitbucket@online.de>
Reported-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Tested-by: Mike Galbraith <bitbucket@online.de>
Tested-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Alex Deucher
b4cd4961cf drm/radeon: disable pll sharing for DP on DCE4.1
commit 9ef4e1d000 upstream.

Causes display problems.  We had already disabled
sharing for non-DP displays.

Based on a patch from:
Niels Ole Salscheider <niels_ole@salscheider-online.de>

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=58121

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Christian König
3b82a80b1d drm/radeon: fix missing bo reservation
commit 5e386b574c upstream.

Otherwise we might get a crash here.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Alex Deucher
6a57734917 drm/radeon: print the supported atpx function mask
commit 9f050c7f97 upstream.

Print the supported functions mask in addition to
the version.  This is useful in debugging PX
problems since we can see what functions are available.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Mike Snitzer
fe8ee730af dm thin: fix the error path for the thin device constructor
commit 1acacc0784 upstream.

dm_pool_close_thin_device() must be called if dm_set_target_max_io_len()
fails in thin_ctr().  Otherwise __pool_destroy() will fail because the
pool will still have an open thin device:

 device-mapper: thin metadata: attempt to close pmd when 1 device(s) are still open
 device-mapper: thin: __pool_destroy: dm_pool_metadata_close() failed.

Also, must establish error code if failing thin_ctr() because the pool
is in fail_io mode.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:14 -08:00
Mike Snitzer
4f48d3328e dm thin: avoid metadata commit if a pool's thin devices haven't changed
commit 4d1662a30d upstream.

Commit 905e51b ("dm thin: commit outstanding data every second")
introduced a periodic commit.  This commit occurs regardless of whether
any thin devices have made changes.

Fix the periodic commit to check if any of a pool's thin devices have
changed using dm_pool_changed_this_transaction().

Reported-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Hannes Reinecke
f4124bc34f dm mpath: fix stalls when handling invalid ioctls
commit a1989b3300 upstream.

An invalid ioctl will never be valid, irrespective of whether multipath
has active paths or not.  So for invalid ioctls we do not have to wait
for multipath to activate any paths, but can rather return an error
code immediately.  This fix resolves numerous instances of:

 udevd[]: worker [] unexpectedly returned with status 0x0100

that have been seen during testing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Linus Walleij
102544b7f1 dma: ste_dma40: don't dereference free:d descriptor
commit e9baa9d9d5 upstream.

It appears that in the DMA40 driver the DMA tasklet will very
often dereference memory for a descriptor just free:d from the
DMA40 slab. Nothing happens because no other part of the driver
has yet had a chance to claim this memory, but it's really
nasty to dereference free:d memory, so let's check the flag
before the descriptor is free and store it in a bool variable.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Jean Delvare
f7caf94294 i7300_edac: Fix device reference count
commit 75135da0d6 upstream.

pci_get_device() decrements the reference count of "from" (last
argument) so when we break off the loop successfully we have only one
device reference - and we don't know which device we have. If we want
a reference to each device, we must take them explicitly and let
the pci_get_device() walk complete to avoid duplicate references.

This is serious, as over-putting device references will cause
the device to eventually disappear. Without this fix, the kernel
crashes after a few insmod/rmmod cycles.

Tested on an Intel S7000FC4UR system with a 7300 chipset.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Link: http://lkml.kernel.org/r/20140224111656.09bbb7ed@endymion.delvare
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Dr. Greg Wettstein
31ccf35d55 qla2xxx: Fix kernel panic on selective retransmission request
commit 6f58c780e5 upstream.

A selective retransmission request (SRR) is a fibre-channel
protocol control request which provides support for requesting
retransmission of a data sequence in response to an issue such as
frame loss or corruption.  These events are experienced
infrequently in fibre-channel based networks which makes
it difficult to test and assess codepaths which handle these
events.

We were fortunate enough, for some definition of fortunate, to
have a metro-area single-mode SAN link which, at 10 GBPS
sustained load levels, would consistently generate SRR's in
a SCST based target implementation using our SCST/in-kernel
Qlogic target interface driver.  In response to an SRR the
in-kernel Qlogic target driver immediately panics resulting
in a catastrophic storage failure for serviced initiators.

The culprit was a debug statement in the qla_target.c file which
does not verify that a pointer to the SCSI CDB is not null.
The unchecked pointer dereference results in the kernel panic
and resultant system failure.

The other two references to the SCSI CDB by the SRR handling code
use a ternary operator to verify a non-null pointer is being
acted on.  This patch simply adds a similar test to the implicated
debug statement.

This patch is a candidate for any stable kernel being maintained
since it addresses a potentially catastrophic event with
minimal downside.

Signed-off-by: Dr. Greg Wettstein <greg@enjellic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Will Deacon
fed783a535 ARM: 7812/1: rwlocks: retry trylock operation if strex fails on free lock
commit 00efaa0250 upstream.

Commit 15e7e5c1eb ("ARM: 7749/1: spinlock: retry trylock operation if
strex fails on free lock") modifying our arch_spin_trylock to retry the
acquisition if the lock appeared uncontended, but the strex failed.

This patch does the same for rwlocks, which were missed by the original
patch.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Li Zefan <lizefan@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Will Deacon
f411a4439b ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock
commit 15e7e5c1eb upstream.

An exclusive store instruction may fail for reasons other than lock
contention (e.g. a cache eviction during the critical section) so, in
line with other architectures using similar exclusive instructions
(alpha, mips, powerpc), retry the trylock operation if the lock appears
to be free but the strex reported failure.

Reported-by: Tony Thompson <anthony.thompson@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Li Zefan <lizefan@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:13 -08:00
Stephen Warren
79e4382609 ARM: tegra: only run PL310 init on systems with one
commit 8859685785 upstream.

Fix tegra_init_cache() to check whether the system has a PL310 cache
before touching the PL310 registers. This prevents access to non-existent
registers on Tegra114 and later.

Note for stable kernels:
In <= v3.12, the file to patch is arch/arm/mach-tegra/common.c.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
Olof Johansson
c56e0dc1b7 ARM64: unwind: Fix PC calculation
commit e306dfd06f upstream.

The frame PC value in the unwind code used to just take the saved LR
value and use that.  That's incorrect as a stack trace, since it shows
the return path stack, not the call path stack.

In particular, it shows faulty information in case the bl is done as
the very last instruction of one label, since the return point will be
in the next label. That can easily be seen with tail calls to panic(),
which is marked __noreturn and thus doesn't have anything useful after it.

Easiest here is to just correct the unwind code and do a -4, to get the
actual call site for the backtrace instead of the return site.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
James Hogan
b500c0d3ed irq-metag*: stop set_affinity vectoring to offline cpus
commit f229006ec6 upstream.

Fix irq_set_affinity callbacks in the Meta IRQ chip drivers to AND
cpu_online_mask into the cpumask when picking a CPU to vector the
interrupt to.

As Thomas pointed out, the /proc/irq/$N/smp_affinity interface doesn't
filter out offline CPUs, so without this patch if you offline CPU0 and
set an IRQ affinity to 0x3 it vectors the interrupt onto CPU0 even
though it is offline.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-metag@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
Charles Keepax
790cc82a2b Input - arizona-haptics: Fix double lock of dapm_mutex
commit c4204960e9 upstream.

snd_soc_dapm_sync takes the dapm_mutex internally, but we currently take
it externally as well. This patch fixes this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
Davidlohr Bueso
3079c1e6ef ipc,mqueue: remove limits for the amount of system-wide queues
commit f3713fd9cf upstream.

Commit 93e6f119c0 ("ipc/mqueue: cleanup definition names and
locations") added global hardcoded limits to the amount of message
queues that can be created.  While these limits are per-namespace,
reality is that it ends up breaking userspace applications.
Historically users have, at least in theory, been able to create up to
INT_MAX queues, and limiting it to just 1024 is way too low and dramatic
for some workloads and use cases.  For instance, Madars reports:

 "This update imposes bad limits on our multi-process application.  As
  our app uses approaches that each process opens its own set of queues
  (usually something about 3-5 queues per process).  In some scenarios
  we might run up to 3000 processes or more (which of-course for linux
  is not a problem).  Thus we might need up to 9000 queues or more.  All
  processes run under one user."

Other affected users can be found in launchpad bug #1155695:
  https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/1155695

Instead of increasing this limit, revert it entirely and fallback to the
original way of dealing queue limits -- where once a user's resource
limit is reached, and all memory is used, new queues cannot be created.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Reported-by: Madars Vitolins <m@silodev.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
Jan Kara
4480120a6c quota: Fix race between dqput() and dquot_scan_active()
commit 1362f4ea20 upstream.

Currently last dqput() can race with dquot_scan_active() causing it to
call callback for an already deactivated dquot. The race is as follows:

CPU1					CPU2
  dqput()
    spin_lock(&dq_list_lock);
    if (atomic_read(&dquot->dq_count) > 1) {
     - not taken
    if (test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) {
      spin_unlock(&dq_list_lock);
      ->release_dquot(dquot);
        if (atomic_read(&dquot->dq_count) > 1)
         - not taken
					  dquot_scan_active()
					    spin_lock(&dq_list_lock);
					    if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags))
					     - not taken
					    atomic_inc(&dquot->dq_count);
					    spin_unlock(&dq_list_lock);
        - proceeds to release dquot
					    ret = fn(dquot, priv);
					     - called for inactive dquot

Fix the problem by making sure possible ->release_dquot() is finished by
the time we call the callback and new calls to it will notice reference
dquot_scan_active() has taken and bail out.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
Eric Paris
3e66969eab SELinux: bigendian problems with filename trans rules
commit 9085a64229 upstream.

When writing policy via /sys/fs/selinux/policy I wrote the type and class
of filename trans rules in CPU endian instead of little endian.  On
x86_64 this works just fine, but it means that on big endian arch's like
ppc64 and s390 userspace reads the policy and converts it from
le32_to_cpu.  So the values are all screwed up.  Write the values in le
format like it should have been to start.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by:  Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:12 -08:00
Max Filippov
c9f87229e1 xtensa: introduce spill_registers_kernel macro
commit e2fd1374c7 upstream.

Most in-kernel users want registers spilled on the kernel stack and
don't require PS.EXCM to be set. That means that they don't need fixup
routine and could reuse regular window overflow mechanism for that,
which makes spill routine very simple.

Suggested-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:11 -08:00
Takashi Iwai
f5556a68da ALSA: hda - Add a fixup for HP Folio 13 mute LED
commit 37c367ecdb upstream.

HP Folio 13 may have a broken BIOS that doesn't set up the mute LED
GPIO properly, and the driver guesses it wrongly, too.  Add a new
fixup entry for setting the GPIO pin statically for this laptop.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70991
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:11 -08:00
Peter Zijlstra
35d1c83324 perf: Fix hotplug splat
commit e3703f8cdf upstream.

Drew Richardson reported that he could make the kernel go *boom* when hotplugging
while having perf events active.

It turned out that when you have a group event, the code in
__perf_event_exit_context() fails to remove the group siblings from
the context.

We then proceed with destroying and freeing the event, and when you
re-plug the CPU and try and add another event to that CPU, things go
*boom* because you've still got dead entries there.

Reported-by: Drew Richardson <drew.richardson@arm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/n/tip-k6v5wundvusvcseqj1si0oz0@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 21:30:11 -08:00