159805 Commits

Author SHA1 Message Date
Ahmed Ammar
899a992632 android: add defconfig for efikamx 2012-11-21 14:05:15 -06:00
Ahmed Ammar
463c6df473 android: reserve memory correctly for pmem and updated gpu driver 2012-11-21 14:03:27 -06:00
Ahmed Ammar
c610f58235 amd-gpu: update again. 2012-11-21 14:02:55 -06:00
Ahmed Ammar
8424b35461 uevent: add NPARTS/PARTN support. 2012-11-02 11:15:43 -05:00
Ahmed Ammar
e1256d2003 amd-gpu: need a vanilla version for android. 2012-11-02 10:40:44 -05:00
Ahmed Ammar
74ab0999f1 efikamx: add pmem support to board files. 2012-11-02 10:38:50 -05:00
Robert Love
efbaffba8d Paranoid network.
With CONFIG_ANDROID_PARANOID_NETWORK, require specific uids/gids to instantiate
network sockets.

Signed-off-by: Robert Love <rlove@google.com>

paranoid networking: Use in_egroup_p() to check group membership

The previous group_search() caused trouble for partners with module builds.
in_egroup_p() is also cleaner.

Signed-off-by: Nick Pelly <npelly@google.com>

Fix 2.6.29 build.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

net: Fix compilation of the IPv6 module

Fix compilation of the IPv6 module -- current->euid does not exist anymore,
current_euid() is what needs to be used.

Signed-off-by: Steinar H. Gunderson <sesse@google.com>

Conflicts:

	net/bluetooth/af_bluetooth.c
	net/ipv4/af_inet.c
	net/ipv6/af_inet6.c
2012-10-30 13:24:42 -05:00
Robert Love
e5594daf84 ashmem for 2.6.27.
Forward port of ashmem to 2.6.27.

Signed-off-by: Robert Love <rlove@google.com>

ashmem: Don't install fault handler for private mmaps.

Ashmem is used to create named private heaps. If this heap is backed
by a tmpfs file it will allocate two pages for every page touched.
In 2.6.27, the extra page would later be freed, but 2.6.29 does not
scan anonymous pages when running without swap so the memory is not
freed while the file is referenced. This change changes the behavior
of private ashmem mmaps to match /dev/zero instead tmpfs.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

ashmem: Add common prefix to name reported in /proc/pid/maps

Signed-off-by: Arve Hjønnevåg <arve@android.com>

ashmem: don't require a page aligned size

This makes ashmem more similar to shmem and mmap, by
not requiring the specified size to be page aligned,
instead rounding it internally as needed.

Signed-off-by: Marco Nelissen <marcone@android.com>

Conflicts:

	include/linux/mm.h
	mm/Makefile
	mm/shmem.c
2012-10-30 13:21:31 -05:00
Robert Love
ce9a676663 Add android_aid.h
Add <linux/android_aid.h>, our mapping of AID defines to gid numbers.

Signed-off-by: Robert Love <rlove@google.com>
2012-10-30 12:59:41 -05:00
Rebecca Schultz
c6ffd1da3c pmem: Add pmem driver
Signed-off-by: Rebecca Schultz <rschultz@google.com>

pmem: Use the thread group leader insted of the current thread.

Instead of keeping track of the current thread, use the thread group leader

Signed-off-by: Rebecca Schultz <rschultz@google.com>

pmem: Add some apis to reference and flush pmem files by file struct

The api to refer to pmem files by fd should be depricated, it can
cause problems if a processes fd table changes while the kernel is processing
data in a pmem file.  This change adds the safer api.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

pmem: Remove unused depricated fd api to pmem.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

pmem: Remove error message when calling get_pmem_addr

This call is used from the mdp driver to determine if the memory
is in pmem or in the fb.  We will encounter this case during normal operation
so this error message should be removed.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

pmem: Add include sched.h to fix compile errors

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

pmem: remove HW3D_* ioctls

Signed-off-by: Dima Zavin <dima@android.com>

pmem: Expose is_pmem_file to the in-kernel users.

Signed-off-by: Dima Zavin <dima@android.com>

pmem: Make the exposed functions be noops if CONFIG_ANDROID_PMEM is not set.

Signed-off-by: Dima Zavin <dima@android.com>

misc: pmem: don't flush if file was opened with O_SYNC

Change-Id: I067218658a0d7f7ecc1fe73e9ff6b0c3b3054653
Signed-off-by: Dima Zavin <dima@android.com>

pmem: Add cache flush ioctl for pmem buffers

Change-Id: I9156bad829e8c65087f122b48cc57638902fab12
Signed-off-by: Dima Zavin <dima@android.com>

Allow multiple pmem master mmap()s.

Signed-off-by: Jamie Gennis <jgennis@google.com>
Change-Id: Icbe619c92e0ebb391f0a93f81937705452a67d87

pmem: convert data_list_sem to a mutex

Also rename a function that now conflicts with a new
define in asm/pgtable.h

Change-Id: I4798048cb8dece1bc03604e7d0b03d86e0c0ef7f
Signed-off-by: Dima Zavin <dima@android.com>

Conflicts:

	drivers/misc/Kconfig
	drivers/misc/Makefile
2012-10-30 12:59:21 -05:00
Mike Lockwood
1cc4a0ddd3 switch: switch class and GPIO drivers.
switch: Export symbol switch_set_state.

Signed-off-by: Mike Lockwood <lockwood@android.com>

switch: gpio: Don't call request_irq with interrupts disabled

Signed-off-by: Arve Hjønnevåg <arve@android.com>

switch: Use device_create instead of device_create_drvdata.

device_create_drvdata is obsolete.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

switch_gpio: Add missing #include <linux/interrupt.h>

Change-Id: I6c397e41bbe1457162cc69e31a29db5d9f76fccb
Signed-off-by: Mike Lockwood <lockwood@android.com>

Conflicts:

	drivers/Kconfig
2012-10-30 12:57:18 -05:00
Arve Hjønnevåg
13c3f913fd power_supply: Hold a wake_lock while power supply change notifications are pending
When connecting usb or the charger the device would often go back to sleep
before the charge led and screen turned on.

Change-Id: I01def6d86ddece0d4e31d2a91d176ed0975b6b9d
Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

	drivers/power/power_supply_core.c
2012-10-30 12:51:15 -05:00
Mike Chan
22a6ab9e21 input: evdev: Use unique wakelock names
wakelock names are now contain evdev->name and pid

Signed-off-by: Mike Chan <mike@android.com>
2012-10-30 12:49:07 -05:00
Arve Hjønnevåg
8a4af88608 Input: Use monotonic time for event time stamps.
Since wall time can jump backwards, it cannot be used to determine if one
event occured before another or for how long a key was pressed.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-10-30 12:49:01 -05:00
Ahmed Ammar
2e56207e48 alarm: expects missing structure member
drivers/rtc/alarm.c: In function 'update_timer_locked':
drivers/rtc/alarm.c💯 error: 'struct rb_node' has no member named 'expires'
2012-10-30 12:48:04 -05:00
Arve Hjønnevåg
3e47d46b41 Input: Hold wake lock while event queue is not empty.
Allows userspace code to process input events while
the device appears to be asleep.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

	drivers/input/evdev.c
2012-10-30 12:47:45 -05:00
Arve Hjønnevåg
a13834aaf9 rtc: Try to prevent RTC errors from accumulating.
When we resume we only know how many whole seconds has elapsed.
These errors would accumulate in delta. We now only set the delta
if it would change by more than two seconds. If we drift back by
by more than a second add one in resume.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-10-30 12:45:10 -05:00
Arve Hjønnevåg
dd06272c0a rtc: alarm: Add in-kernel alarm interface
Drivers can now create alarms that will use an hrtimer while the
system is running and the rtc to wake up from suspend.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-10-30 12:45:02 -05:00
Arve Hjønnevåg
1c4d45b87a rtc: Add android alarm driver. 2012-10-30 12:44:55 -05:00
Rebecca Schultz
60aaa02d50 PM: earlysuspend: Removing dependence on console.
Rather than signaling a full update of the display from userspace via a
console switch, this patch introduces 2 files int /sys/power,
wait_for_fb_sleep and wait_for_fb_wake.  Reading these files will block
until the requested state has been entered.  When a read from
wait_for_fb_sleep returns userspace should stop drawing.  When
wait_for_fb_wake returns, it should do a full update.  If either are called
when the fb driver is already in the requested state, they will return
immediately.

Signed-off-by: Rebecca Schultz <rschultz@google.com>
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-10-30 12:44:47 -05:00
Arve Hjønnevåg
1905b3c1b4 consoleearlysuspend: Fix for 2.6.32
vt_waitactive now needs a 1 based console number

Change-Id: I07ab9a3773c93d67c09d928c8d5494ce823ffa2e
2012-10-30 12:44:35 -05:00
Arve Hjønnevåg
69a035687b PM: earlysuspend: Add console switch when user requested sleep state changes.
Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

	kernel/power/Kconfig
2012-10-30 12:44:22 -05:00
Arve Hjønnevåg
19e51d6438 PM: wakelock: Don't dump unfrozen task list when aborting try_to_freeze_tasks after less than one second
Change-Id: Ib2976e5b97a5ee4ec9abd4d4443584d9257d0941
Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

	kernel/power/process.c
2012-10-30 12:43:05 -05:00
Arve Hjønnevåg
f8245860a7 PM: Add user-space wake lock api.
This adds /sys/power/wake_lock and /sys/power/wake_unlock.
Writing a string to wake_lock creates a wake lock the
first time is sees a string and locks it. Optionally, the
string can be followed by a timeout.
To unlock the wake lock, write the same string to wake_unlock.

Change-Id: I66c6e3fe6487d17f9c2fafde1174042e57d15cd7

Conflicts:

	kernel/power/main.c
2012-10-30 12:38:20 -05:00
Arve Hjønnevåg
b86c3eb124 PM: Enable early suspend through /sys/power/state
If EARLYSUSPEND is enabled then writes to /sys/power/state no longer
blocks, and the kernel will try to enter the requested state every
time no wakelocks are held. Write "on" to resume normal operation.
2012-10-30 12:33:54 -05:00
Arve Hjønnevåg
e1bba9ef6c PM: Implement early suspend api
Conflicts:

	kernel/power/Kconfig
2012-10-30 12:33:35 -05:00
Arve Hjønnevåg
a4aed01070 PM: wakelocks: Use seq_file for /proc/wakelocks so we can get more than 3K of stats.
Change-Id: I42ed8bea639684f7a8a95b2057516764075c6b01
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2012-10-30 12:32:34 -05:00
Erik Gilling
05a9bef898 power: wakelocks: fix buffer overflow in print_wake_locks
Change-Id: Ic944e3b3d3bc53eddc6fd0963565fd072cac373c
Signed-off-by: Erik Gilling <konkers@android.com>
2012-10-30 12:32:21 -05:00
Mike Chan
0164d34dec power: Prevent spinlock recursion when wake_unlock() is called
Signed-off-by: Mike Chan <mike@android.com>
2012-10-30 12:32:11 -05:00
Arve Hjønnevåg
5b35641eff PM: Implement wakelock api.
PM: wakelock: Replace expire work with a timer

The expire work function did not work in the normal case.

Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:

	kernel/power/Kconfig
	kernel/power/Makefile
2012-10-30 12:31:51 -05:00
Arve Hjønnevåg
1558bf868e PM: Add early suspend api. 2012-10-30 12:28:33 -05:00
Arve Hjønnevåg
784f3c2f49 PM: Add wake lock api. 2012-10-30 12:28:24 -05:00
Mike Chan
ed48d1b211 [docs] android: Add android config documentation to boot framework.
Signed-off-by: Mike Chan <mike@android.com>
2012-10-30 12:28:13 -05:00
Matt Sealey
d1156b1817 backlight: match "DISP3 BG - DI1" as well as "DISP3 BG", solving issue with Smartbook backlight not turning off during screen blank
Mistaken use of strcmp vs. proper use of strncmp caused this
2012-07-31 15:04:57 -05:00
Matt Sealey
1196165ab6 sauce: fix an annoying compiler warning regarding set but unused variable (one of many, but this is the most repetitive) 2012-05-29 07:20:11 -05:00
Matt Sealey
89813bb753 gpu: fix the weird gpummu/nogpummu memory reservation/allocation mess, and disable the gpummu again for maximum stability 2012-05-16 07:09:18 -05:00
Matt Sealey
0580fd061d Merge branch 'master' of github.com:genesi/linux-legacy 2012-05-07 10:18:46 -05:00
Matt Sealey
fd9f6022dd add a cross-compiler suffix (for versions) so we don't need diversions or compiler slots to use other compilers 2012-05-07 10:16:52 -05:00
Matt Sealey
c456c38e49 helper scripts: modify the filename of the toolchain include so it doesn't conflict 2012-05-07 10:16:03 -05:00
Matt Sealey
44a6231768 siihdmi: introduce siihdmi.nohotplug=1 argument to disable the hotplug handler globally 2012-04-20 12:37:20 -05:00
Matt Sealey
6be1fd20cc efikamx: correct IPU revision again (it should be 2 for IPUv3EX however unintuitive that is, and 3 for IPUv3M on MX53). This fixes the IPU driver getting the correct base address. 2012-04-20 11:15:22 -05:00
Matt Sealey
455affb66e siihdmi: reintroduce the 480-600ms sleep after reset to allow hotplug to settle. 2012-04-19 19:15:49 -05:00
Matt Sealey
73cae9887a siihdmi: enable DEBUG so that DBG() messages are output 2012-04-19 17:46:57 -05:00
Matt Sealey
0adb2f1d0b siihdmi: strncmp would nuke if the mode in the current monitor database had no name 2012-04-19 16:54:34 -05:00
Matt Sealey
15c4470a5a checkpatch: egregious bump to the version from kernel 3.4rc1 2012-04-19 15:03:09 -05:00
Matt Sealey
af99f78e82 siihdmi: updated checkpatch run, fix a few other things including a serious memset argument order problem (argh!)
scripts/checkpatch.pl -f drivers/video/mxc/siihdmi.c --ignore=LONG_LINE,C99_COMMENTS
total: 0 errors, 0 warnings, 1555 lines checked

NOTE: Ignored message types: C99_COMMENTS LONG_LINE

drivers/video/mxc/siihdmi.c has no obvious style problems and is ready for submission.
2012-04-19 15:02:30 -05:00
Matt Sealey
c00322177f siihdmi: fix some checkpatch errors and realign some stuff to reduce warnings. Now we're only guilty of going over 80 columns, but Camelot is a silly place. 2012-04-19 14:43:34 -05:00
Matt Sealey
64cf5e0b27 siihdmi: downgrade to 640x480 output while getting EDID to match HDMI specification 2012-04-19 14:03:47 -05:00
Matt Sealey
9960ff68e1 siihdmi: clarify power modes debug 2012-04-19 14:01:42 -05:00
Matt Sealey
37cd50e9ff siihdmi: strncmp against modedb instead of structure memcmp to save time and effort matching CEA VIC 2012-04-19 13:59:01 -05:00