net: wireless: bcmdhd: Fix compilation without SUPPORT_PM2_ONLY

Change-Id: I9a95a81ec713824b3d6bfba86f62e420523ce0e4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
devfreq: exynos-bus-mif: take max_freq limit into account

The min requests from other drivers may push the memory bus past the
hard limit set by the platform data or userspace.  Reapply the
max_freq limit after checking the handles.

Change-Id: I1f7e303e9fc0d759c27b0aae14ba62adb2a86705
Signed-off-by: Colin Cross <ccross@android.com>
ion: exynos: fix map_kernel and map_dma for highmem

Allow the exynos_contig_heap to be placed in highmem by using
vmap in the map_kernel implementation instead of phys_to_virt,
and using phys_to_page in map_dma instead of phys_to_virt.

Change-Id: I359adf1100d251a4bed80526b399a75350cb017c
Signed-off-by: Colin Cross <ccross@android.com>
ARM: exynos: reserve-mem: allow cma to be reserved in highmem

MEMBLOCK_ALLOC_ACCESSIBLE forces the reserved memory to come out
of lowmem, which wastes address space for rarely mapped memory, and
confuses the memory subsystem into thinking the lowmem region is
larger than it is.  The secure firmware has a 1GB limit on memory
location, so set the upper limit to 1GB so the allocations end up
between the end of low memory and 1GB.

Also fix the end alignment to be aligned to 16MB instead of 128MB.

Change-Id: Ic7c89cd8a0f5e61c92dcbf500d83776f825faf1d
Signed-off-by: Colin Cross <ccross@android.com>
devfreq: exynos_bus_mif: use 667 MHz whenever two windows are enabled

Modify the mif bus frequency boost to occur whenever multiple windows
are enabled in the fimd, regardless of when other blocks are in use.
Fixes FIMD underruns when memory bus is at 400 MHz.

Change-Id: I2c1c18e20503bce5e7d97094dd6ac5c7d364da6d
Signed-off-by: Colin Cross <ccross@android.com>
Merge branch 'android-exynos-3.4' into android-exynos-manta-3.4
mmc: dw_mmc: integration of output message on tasklet func

This patch integrates output message of dw_mci_tasklet_func
that processes the interrupt of dw_mmc host controller systematically.
It will be very helpful for debugging.

Bug: 7118793, 7292445

Change-Id: Ib4cc5254b4c468a742b83b5dfcfe3e93243e8784
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Merge branch 'android-exynos-3.4' into android-exynos-manta-3.4
net: wireless: bcmdhd: Fix host reodering and CRC error handling

Bug: 7389187

Change-Id: I3c4ed28a20de527b91fd1ef9ae51c59bab276b85
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Merge branch 'android-3.4' into android-exynos-3.4
Merge branch 'android-exynos-3.4' into android-exynos-manta-3.4
kernel/sys.c: fix stack memory content leak via UNAME26

Calling uname() with the UNAME26 personality set allows a leak of kernel
stack contents.  This fixes it by defensively calculating the length of
copy_to_user() call, making the len argument unsigned, and initializing
the stack buffer to zero (now technically unneeded, but hey, overkill).

CVE-2012-0957

Change-Id: If5c181431bc4da0056833cba3d5c5281e4196498
Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
use clamp_t in UNAME26 fix

The min/max call needed to have explicit types on some architectures
(e.g. mn10300). Use clamp_t instead to avoid the warning:

  kernel/sys.c: In function 'override_release':
  kernel/sys.c:1287:10: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Change-Id: I74f92855383fddace4294e147c093dcb6bbcfa7d
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
HACK: net: wireless: bcmdhd: Remove pkt filtering support

Change-Id: Ia9e346e9a618d59ef5dd4d7eb4d177cf0115bd97
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Revert "HACK: net: wireless: bcmdhd: Remove pkt filtering support"

This reverts commit e8f7e3422d2197942e47aed7a9ef8568b9143ae9.
Revert "net: wireless: bcmdhd: Fix WD wakelock behavior"

This reverts commit e8684bac0184a1f24e738351cc5d9bc9cb1683fa.
net: wireless: bcmdhd: Update wireless stack pm mode

Change-Id: Iadf400f113884001894dca7cf098f971190765d1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>