Commit Graph

354801 Commits

Author SHA1 Message Date
Chris
3745719ee1 Revert "Update hid-multitouch.c" 2015-04-23 16:16:37 +09:00
Mauro Ribeiro
d888dc5cc4 Merge pull request #65 from Spud2233/patch-1
Update hid-multitouch.c
2015-04-09 11:51:26 -03:00
codewalker
8a4f08b4f8 ODOIRDXU3: config: Add CP210x driver for SHOW.
Change-Id: I5420ed63e95a0014ba7befd6cc788bc3c81076ef
5422_4.4.4_v1.7 5422_4.4.4_v1.6
2015-01-12 16:40:26 +09:00
Chris Kim
cc110a9372 Merge "ODROIDXU3: configs: Fix for VPN." into odroidxu3-3.10.y-android 2015-01-02 13:29:53 +09:00
codewalker
5fc7215512 ODROIDXU3: configs: Fix for VPN.
Change-Id: Ie8e12d0acf5b71d8a74072e8a9d857eeb404c75b
5422_4.4.4_v1.5
2015-01-02 13:24:47 +09:00
ckkim
4ae3236731 ODROID-XU3:emmc HS200-DDR mode timing tune
Change-Id: Ideefcd290ede0388de7ee630c7a3a87144f31ba0
2015-01-02 11:04:39 +09:00
codewalker
15fad320dc ODROIDXU3:config: Add CONFIG_INPUT_UINPUT.
Change-Id: Iba1eeca749ab9fef109ec133b974bcec50da9a13
2014-12-18 15:15:06 +09:00
charles
45fc3d7546 Merged from linux git repository for the stability of the BIN2 CPU Board.
Change-Id: Ib355b3d14bdd4ea99f681d25775ab76b3a53ae9b
5422_4.4.4_v1.4
2014-12-10 11:42:45 +09:00
charles
540a64f82d A typo in the ASV tables causes ASV=5 boards to fail to set certain
frequencies on the A7 cluster. Fix it.

Change-Id: Id1393a05f9b55499597a7055b1cbc2a74244602e
2014-12-09 10:55:07 +09:00
Spud2233
19c6a28840 Update hid-multitouch.c 2014-11-10 22:13:41 +11:00
Spud2233
024e618856 Update hid-multitouch.c
Add support for Chalkboard Electronics touch screens.
2014-11-10 20:26:48 +11:00
Dongjin Kim
860fd30dc1 usb3/phy: Fix to identify USB3 port
Since virual address could be shifted if certain driver is added or removed,
would be better to use physical address. 0x12100000 is dedicated for USB3
port0 and 0x12500000 is dedicated for port1 according to exynos5422.dtsi and
its datasheet.

Change-Id: I451a2b50a41962131dcf1efe710cf6f1e66edaba
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
5422_4.4.4_v1.3
2014-11-04 16:10:46 +09:00
charles
212cd8098f BIN2 Detect Logic added.
Change-Id: I1c43d8581bc837190a5cb7fe7fccdcb146943feb
2014-11-03 21:27:21 +09:00
Chris Kim
f39adcea0d Merge "HDMI: Support HDMI PHY 800P(1280 x 800)" into odroidxu3-3.10.y-android 2014-10-31 16:30:05 +09:00
codewalker
9a83cb41b4 HDMI: Support HDMI PHY 800P(1280 x 800)
Change-Id: Id5d9ee1402771e57351b85999bb03b716d57d122
2014-10-31 14:46:54 +09:00
ckkim
4cf0d9ff4a dsim write error fix.
Change-Id: I830373102ba6452fa507ee19a4024321c0b7b9d9
2014-10-29 17:10:55 +09:00
codewalker
4aa26730fb EDID: HDMI: Fix for EDID and HDMI PHY.
If you want not to work EDID function, then modified boot.ini
setenv edid "0"
setenv bootarsg "fb_x... edid=${edid} ..."
and HDMI PHY must be set by hdmi_phy_res.

Change-Id: Ie6fd0464195ff1b80816565427a7b9097a244453
2014-10-29 11:52:58 +09:00
Chris Kim
de3080b6f1 Merge "HDMI: Fix HDMI_DEFAULT_TIMINGS_IDX." into odroidxu3-3.10.y-android 2014-10-28 16:17:51 +09:00
codewalker
7ae8a9bc65 HDMI: Fix HDMI_DEFAULT_TIMINGS_IDX.
1920x1080P60 -> 1280x720P60

Change-Id: I7c2e8054dd0cdfabb514296e6b6e406cb2ba5ee1
2014-10-28 09:24:57 +09:00
charles
6c5bda8273 add HDMI-PHY tune functions.
Change-Id: I7e90cda45aa8fbde5dc83970f965e4613d9f08f2
2014-10-27 19:00:35 +09:00
ckkim
a1fc86a83f exynos5422 emmc 5.0 timing tune
Change-Id: Ided8a408d7bb450bb048b576cfdca54cf88e88f2
2014-10-24 17:18:53 +09:00
charles
e7c8cef7f9 usb: host: USB 3.0 devices detected as USB2 on USB3 port
Change-Id: Iecfadeb966c4932e9b5e8d136e9bb0540e14b8ce
2014-09-21 18:50:22 +09:00
Dongjin Kim
6684924bea ARM: dts: Fix invalid clock source for USB3.0 on Exynos5422
Change-Id: I8f37a8ccc77361cfe0c70a362326d3b25bf2c31b
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2014-09-19 12:29:39 +09:00
Dongjin Kim
14a413bb9c Merge "ODROID-XU3: config: Enable UHID feature." into odroidxu3-3.10.y-android 2014-09-19 12:29:08 +09:00
Dongjin Kim
4da870e04a Merge "ODROID-XU3: config: Remove Bluetooth features." into odroidxu3-3.10.y-android 2014-09-19 12:29:00 +09:00
charles
0f1a923f8c usb: host: USB 3.0 detection is improved.
USB 3.0 core voltage is increased to improve USB host detection
from 3.0V to 3.3V.

Change-Id: Ie3d0f696c8a84d0b0dea1e0266378b59265e0c92
2014-09-18 16:50:57 +09:00
codewalker
e889ce69b8 ODROID-XU3: config: Enable UHID feature.
Change-Id: Id5cb8f12ae0189f9915ff768e9664d5c9527a58c
2014-09-15 19:02:13 +09:00
codewalker
a694d21555 ODROID-XU3: config: Remove Bluetooth features.
Change-Id: Ida587eb842323b4d5261fed9b45db94c9e206e65
2014-09-15 19:00:50 +09:00
codewalker
9e64449b59 Add UVC module builtin.
Change-Id: If9cbc44140c79ba8d0df9b8c9fefbeec8a76fa50
2014-09-01 11:00:12 +09:00
codewalker
304bdffd2e ARM: ODROID-XU3: Enable USB_ACM feature for GPS
Change-Id: I4e8bc77d034ac55f0949a1abdfd993f6057f8146
2014-08-21 16:52:47 +09:00
ckkim
29caecd103 odroidxu3 android kernel 3.10.y 2014-08-20 21:12:42 +09:00
Mauro Ribeiro
414f3757fe Merge tag 'v3.8.13.27' of git://kernel.ubuntu.com/ubuntu/linux into odroid-3.8.y
v3.8.13.27
2014-08-19 22:10:44 -03:00
Mauro Ribeiro
2cd9337073 defconfig: u: Attending this request
http://forum.odroid.com/viewtopic.php?f=79&t=1516&p=49219#p49219
2014-08-19 22:08:24 -03:00
Mauro Ribeiro
66f0d6a75e drm/exynos: a merge / port of the following patch's
From 2ecf5338d48c14bde3d28918aa4f81d2362de2ea Mon Sep 17 00:00:00 2001
From: Tu Vuong <tu.vuong@arm.com>
Date: Thu, 13 Feb 2014 16:54:42 +0000
Subject: [PATCH 1/4] Add DMA-BUF mmap support to Exynos DRM driver

---
 drivers/gpu/drm/exynos/exynos_drm_dmabuf.c |   48 ++++++++++++++++++++++------
 1 file changed, 39 insertions(+), 9 deletions(-)

From d3b52b89424e7faf00e7751b5e39b45f4fe407f4 Mon Sep 17 00:00:00 2001
From: Tu Vuong <tu.vuong@arm.com>
Date: Mon, 17 Feb 2014 12:32:51 +0000
Subject: [PATCH 2/4] Add DMA-BUF support to Exynos DRM fbdev

---
 drivers/gpu/drm/exynos/exynos_drm_fbdev.c |   40 +++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

FFFFrom f2fd81a89ebe52e9e9b8adaef7f58f06e743456d Mon Sep 17 00:00:00 2001
From: Tu Vuong <tu.vuong@arm.com>
Date: Thu, 24 Apr 2014 17:49:28 +0100
Subject: [PATCH 4/4] Add support for triple buffering in framebuffer driver

---
 drivers/gpu/drm/exynos/exynos_drm_fbdev.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Patch 3/4 wasn't merged since it was about removing the UMP support that was removed already in the past.
2014-08-14 09:54:00 -03:00
Mauro Ribeiro
09019c27c2 Merge branch 'odroid-3.8.y' of github.com:hardkernel/linux into odroid-3.8.y 2014-07-29 11:15:29 -03:00
Mauro Ribeiro
842c648099 Merge pull request #58 from tisoft/patch-1
Allow multiple pts instances for better lxc support
2014-07-28 12:40:28 -03:00
Markus Heberling
efb256872a Allow multiple pts instances for better lxc support 2014-07-28 14:18:52 +02:00
Kamal Mostafa
e89a31cec8 Linux 3.8.13.27
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-25 13:10:07 -07:00
Mauro Ribeiro
2abeae70cf defconfig: enable CONFIG_FANOTIFY 2014-07-24 18:34:16 -03:00
Andy Lutomirski
010698384c fs,userns: Change inode_capable to capable_wrt_inode_uidgid
commit 23adbe12ef upstream.

The kernel has no concept of capabilities with respect to inodes; inodes
exist independently of namespaces.  For example, inode_capable(inode,
CAP_LINUX_IMMUTABLE) would be nonsense.

This patch changes inode_capable to check for uid and gid mappings and
renames it to capable_wrt_inode_uidgid, which should make it more
obvious what it does.

Fixes CVE-2014-4014.

Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Serge Hallyn <serge.hallyn@ubuntu.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[ kamal: backport to 3.8-stable: dropped inapplicable xfs change ]
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-24 12:06:54 -07:00
Naoya Horiguchi
514bb3eda8 mm: hugetlb: fix copy_hugetlb_page_range()
commit 0253d634e0 upstream.

Commit 4a705fef98 ("hugetlb: fix copy_hugetlb_page_range() to handle
migration/hwpoisoned entry") changed the order of
huge_ptep_set_wrprotect() and huge_ptep_get(), which leads to breakage
in some workloads like hugepage-backed heap allocation via libhugetlbfs.
This patch fixes it.

The test program for the problem is shown below:

  $ cat heap.c
  #include <unistd.h>
  #include <stdlib.h>
  #include <string.h>

  #define HPS 0x200000

  int main() {
  	int i;
  	char *p = malloc(HPS);
  	memset(p, '1', HPS);
  	for (i = 0; i < 5; i++) {
  		if (!fork()) {
  			memset(p, '2', HPS);
  			p = malloc(HPS);
  			memset(p, '3', HPS);
  			free(p);
  			return 0;
  		}
  	}
  	sleep(1);
  	free(p);
  	return 0;
  }

  $ export HUGETLB_MORECORE=yes ; export HUGETLB_NO_PREFAULT= ; hugectl --heap ./heap

Fixes 4a705fef98 ("hugetlb: fix copy_hugetlb_page_range() to handle
migration/hwpoisoned entry"), so is applicable to -stable kernels which
include it.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reported-by: Guillaume Morin <guillaume@morinfr.org>
Suggested-by: Guillaume Morin <guillaume@morinfr.org>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-24 09:51:01 -07:00
Naoya Horiguchi
906889092b hugetlb: fix copy_hugetlb_page_range() to handle migration/hwpoisoned entry
commit 4a705fef98 upstream.

There's a race between fork() and hugepage migration, as a result we try
to "dereference" a swap entry as a normal pte, causing kernel panic.
The cause of the problem is that copy_hugetlb_page_range() can't handle
"swap entry" family (migration entry and hwpoisoned entry) so let's fix
it.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-24 09:49:45 -07:00
Mikulas Patocka
2c8a5c0871 iscsi-target: fix iscsit_del_np deadlock on unload
commit 81a9c5e72b upstream.

On uniprocessor preemptible kernel, target core deadlocks on unload. The
following events happen:
* iscsit_del_np is called
* it calls send_sig(SIGINT, np->np_thread, 1);
* the scheduler switches to the np_thread
* the np_thread is woken up, it sees that kthread_should_stop() returns
  false, so it doesn't terminate
* the np_thread clears signals with flush_signals(current); and goes back
  to sleep in iscsit_accept_np
* the scheduler switches back to iscsit_del_np
* iscsit_del_np calls kthread_stop(np->np_thread);
* the np_thread is waiting in iscsit_accept_np and it doesn't respond to
  kthread_stop

The deadlock could be resolved if the administrator sends SIGINT signal to
the np_thread with killall -INT iscsi_np

The reproducible deadlock was introduced in commit
db6077fd0b, but the thread-stopping code was
racy even before.

This patch fixes the problem. Using kthread_should_stop to stop the
np_thread is unreliable, so we test np_thread_state instead. If
np_thread_state equals ISCSI_NP_THREAD_SHUTDOWN, the thread exits.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
[ kamal: backport to 3.8-stable: context ]
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:08 -07:00
Nicholas Bellinger
99ecbdaf14 iscsi-target: Fix incorrect np->np_thread NULL assignment
commit db6077fd0b upstream.

When shutting down a target there is a race condition between
iscsit_del_np() and __iscsi_target_login_thread().
The latter sets the thread pointer to NULL, and the former
tries to issue kthread_stop() on that pointer without any
synchronization.

This patch moves the np->np_thread NULL assignment into
iscsit_del_np(), after kthread_stop() has completed. It also
removes the signal_pending() + np_state check, and only
exits when kthread_should_stop() is true.

Reported-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:08 -07:00
Nicholas Bellinger
9468a45299 target: Fix left-over se_lun->lun_sep pointer OOPs
commit 83ff42fcce upstream.

This patch fixes a left-over se_lun->lun_sep pointer OOPs when one
of the /sys/kernel/config/target/$FABRIC/$WWPN/$TPGT/lun/$LUN/alua*
attributes is accessed after the $DEVICE symlink has been removed.

To address this bug, go ahead and clear se_lun->lun_sep memory in
core_dev_unexport(), so that the existing checks for show/store
ALUA attributes in target_core_fabric_configfs.c work as expected.

Reported-by: Sebastian Herbszt <herbszt@gmx.de>
Tested-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:07 -07:00
Markos Chandras
64cb0b9087 MIPS: MSC: Prevent out-of-bounds writes to MIPS SC ioremap'd region
commit ab6c15bc66 upstream.

Previously, the lower limit for the MIPS SC initialization loop was
set incorrectly allowing one extra loop leading to writes
beyond the MSC ioremap'd space. More precisely, the value of the 'imp'
in the last loop increased beyond the msc_irqmap_t boundaries and
as a result of which, the 'n' variable was loaded with an incorrect
value. This value was used later on to calculate the offset in the
MSC01_IC_SUP which led to random crashes like the following one:

CPU 0 Unable to handle kernel paging request at virtual address e75c0200,
epc == 8058dba4, ra == 8058db90
[...]
Call Trace:
[<8058dba4>] init_msc_irqs+0x104/0x154
[<8058b5bc>] arch_init_irq+0xd8/0x154
[<805897b0>] start_kernel+0x220/0x36c

Kernel panic - not syncing: Attempted to kill the idle task!

This patch fixes the problem

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7118/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:07 -07:00
Alex Smith
49e5934136 recordmcount/MIPS: Fix possible incorrect mcount_loc table entries in modules
commit 91ad11d7cc upstream.

On MIPS calls to _mcount in modules generate 2 instructions to load
the _mcount address (and therefore 2 relocations). The mcount_loc
table should only reference the first of these, so the second is
filtered out by checking the relocation offset and ignoring ones that
immediately follow the previous one seen.

However if a module has an _mcount call at offset 0, the second
relocation would not be filtered out due to old_r_offset == 0
being taken to mean that the current relocation is the first one
seen, and both would end up in the mcount_loc table.

This results in ftrace_make_nop() patching both (adjacent)
instructions to branches over the _mcount call sequence like so:

  0xffffffffc08a8000:  04 00 00 10     b       0xffffffffc08a8014
  0xffffffffc08a8004:  04 00 00 10     b       0xffffffffc08a8018
  0xffffffffc08a8008:  2d 08 e0 03     move    at,ra
  ...

The second branch is in the delay slot of the first, which is
defined to be unpredictable - on the platform on which this bug was
encountered, it triggers a reserved instruction exception.

Fix by initializing old_r_offset to ~0 and using that instead of 0
to determine whether the current relocation is the first seen.

Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7098/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:06 -07:00
Takashi Iwai
f12b1a6169 ALSA: usb-audio: Fix races at disconnection and PCM closing
commit 92a586bdc0 upstream.

When a USB-audio device is disconnected while PCM is still running, we
still see some race: the disconnect callback calls
snd_usb_endpoint_free() that calls release_urbs() and then kfree()
while a PCM stream would be closed at the same time and calls
stop_endpoints() that leads to wait_clear_urbs().  That is, the EP
object might be deallocated while a PCM stream is syncing with
wait_clear_urbs() with the same EP.

Basically calling multiple wait_clear_urbs() would work fine, also
calling wait_clear_urbs() and release_urbs() would work, too, as
wait_clear_urbs() just reads some fields in ep.  The problem is the
succeeding kfree() in snd_pcm_endpoint_free().

This patch moves out the EP deallocation into the later point, the
destructor callback.  At this stage, all PCMs must have been already
closed, so it's safe to free the objects.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:05 -07:00
Scott Wood
8fbc7f6e88 powerpc: Don't skip ePAPR spin-table CPUs
commit 6663a4fa67 upstream.

Commit 59a53afe70 "powerpc: Don't setup
CPUs with bad status" broke ePAPR SMP booting.  ePAPR says that CPUs
that aren't presently running shall have status of disabled, with
enable-method being used to determine whether the CPU can be enabled.

Fix by checking for spin-table, which is currently the only supported
enable-method.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Michael Neuling <mikey@neuling.org>
Cc: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:05 -07:00
Steve French
2e514b03fb [CIFS] fix mount failure with broken pathnames when smb3 mount with mapchars option
commit ce36d9ab3b upstream.

When we SMB3 mounted with mapchars (to allow reserved characters : \ / > < * ?
via the Unicode Windows to POSIX remap range) empty paths
(eg when we open "" to query the root of the SMB3 directory on mount) were not
null terminated so we sent garbarge as a path name on empty paths which caused
SMB2/SMB2.1/SMB3 mounts to fail when mapchars was specified.  mapchars is
particularly important since Unix Extensions for SMB3 are not supported (yet)

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
2014-07-23 13:55:04 -07:00