Commit Graph

95 Commits

Author SHA1 Message Date
Ken Sumrall
f248e15b5f msm: kgsl: Remove support for mmap from the kgsl driver.
The mmap(2) functionality of kgsl is no longer used, and it had a
bug that would crash the kernel when mmap(2) was called with
"odd" parameters.  So we have removed the mmap functionality.
If for some reason in the future you want to resurrect this,
make sure memdesc is properly initialized in all paths through
the kgsl_mmap() routine.

Signed-off-by: Ken Sumrall <ken@android.com>
2010-11-18 12:27:57 +11:00
Todd Poynor
7304611fc3 cpufreq: interactive: Changes to interactive governor
Changes include:
* May scale up to intermediate speeds after scaling down, rather than
scale to max speed and then only scale down until max speed needed.

* Tweaked thresholds at which max speed requested (previously CPU must
have been 100% busy since idle exit timer started, now will go max if at
least 85% busy) and default minimum sample time raised to 80ms. Tweaking
based on UI tests, still in progress.

* SMP fixes.

* Fixed attempted multiple delete of sysfs group on governor stop.
Set a just-in-case-CPU-goes-busy-again timer even if nr_running == 0 at
timer function run time, but cancel if that CPU goes idle (and don't
re-arm timer if that CPU is currently idle).

* Re-evaluate speed if a CPU goes idle while above min speed (and no timer
currently set) in case the platform requires all CPUs to be at the same
speed.

* Realtime workqueues disappeared upstream, convert speed up workqueue to
a realtime task. Average scheduling latency measured significantly less
than WQ_HIGHPRI.

* Timers are not deferrable, must wake CPU from idle, since we now
re-evaluate speed for idle CPUs.

* CPU load is computed from higher of short-term load since idle exit vs.
long-term load since last frequency change, to avoid dropping speed
during temporary dips in load on long-term-busy CPU.

* Avoid 1 CPU starting new idle exit load eval interval in a race with
timer running on another CPU.

* New fugly debugging printfs should be reworked or go away eventually.

Change-Id: I606b5c1850637c35a7814309df12362d5c044825
via: https://review.source.android.com//#change,15809
2010-11-18 12:26:12 +11:00
Steve Kondik
c8cec4c0c1 cpufreq: interactive: Fix potential division by zero 2010-11-18 12:25:44 +11:00
Shubhraprakash Das
c69e698fff msm_kgsl: Optimize TLB flushing
Only flush TLB when it is absolutely nessasary as opposed to
flushing it on every map and unmap
2010-11-18 12:22:31 +11:00
Jordan Crouse
9e3544077c msm_kgsl: Move kgsl_sharedmem_init to module load
kgsl_sharedmem_init/kgsl_sharedmem_close only need to be called once,
so move them to the the module load and close functions so they can be
available through the life of the module.
2010-11-18 12:22:14 +11:00
Jon Benson
aced6aebc2 g-sensor workaround by mdebeljuh & jdivic (http://forum.xda-developers.com/showthread.php?p=9208297#post9208297) 2010-11-17 19:42:50 +11:00
Jon Benson
bcfc153b4e Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc 2010-11-17 18:57:36 +11:00
Eran
fc0156bf88 Add smartass governor 2010-11-17 18:35:24 +11:00
Jon Benson
19867bdf03 Added sysfs interface for undervolting based on information from here:
http://forum.xda-developers.com/showthread.php?t=821372

See the thread for information on how to use it.
2010-11-17 18:20:25 +11:00
Markinus
044ee667e9 htcleo: readded the new battery driver after recheck
For most people the driver works good. I checked the coefficients and the pd_m for the 1230 Battery is correct, so the voltage calculating is ok.
We need a other test to check the pd_t value for the voltage temperatur correction. Still no battery detection. Wince can detect it, we have to find out how this works.
2010-11-14 23:58:20 +01:00
Markinus
3a4df97971 htcleo: removed the fix firmware in kgsl 3d driver. We can use now the yamato_xxx.fw files.
Revert "htcleo: fix hw3d hardcoding firmware in kernel"

This reverts commit d3a4673828.
2010-11-14 19:54:46 +01:00
Markinus
d71283a773 Revert "htcleo: add new battery driver"
This reverts commit 55ca1d277a.

Conflicts:

	arch/arm/configs/htcleo_defconfig
	arch/arm/mach-msm/board-htcleo.c
	arch/arm/mach-msm/htc_battery.c
	include/linux/ds2746_battery.h
2010-11-14 18:21:06 +01:00
Markinus
9b7f42ceee Revert "htcleo: add new battery temperature table"
This reverts commit 53a7287c1b.
2010-11-14 16:39:53 +01:00
Markinus
4d523a124b Revert "battery driver: reduce dmesg verbosity for normal use"
This reverts commit bb612364fc.
2010-11-14 16:39:41 +01:00
Markinus
a4242d5348 htcleo: cleanups 2010-11-11 20:09:06 +01:00
Markinus
d929bed06c camera: added desire autofocus stuff, is working now with the enabled 720p code. Increased clock for higher frame rates. 2010-11-11 18:12:44 +01:00
rajkosto
fb517c3008 nand driver cleanup and new yaffs version 2010-11-10 15:21:42 +01:00
Jon Benson
1d971023be Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc 2010-11-10 23:56:53 +11:00
Markinus
d3740f8695 htcleo: add support for rmnet as module 2010-11-08 20:15:38 +01:00
Markinus
9125bbc537 htcleo: fixed disabled 5MPCamera with last commit
The files from evo and desire need other sysfs directories, now both are created
2010-11-08 18:01:09 +01:00
Jon Benson
914f7ce2b5 Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc 2010-11-08 18:03:47 +11:00
Markinus
f5fa5813c0 htcleo: add missing sys interfaces in camera driver
This interfaces are using from Evos libs
2010-11-07 23:52:03 +01:00
Jon Benson
e1b186e332 Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc 2010-11-07 11:15:43 +11:00
Markinus
b47e674409 Merge branch 'master' of gitorious.org:linux-on-wince-htc/linux_on_wince_htc 2010-11-05 12:16:14 +01:00
Markinus
83f65b4212 cpu: Added interactive governor 2010-11-05 12:15:26 +01:00
LeTama
bb612364fc battery driver: reduce dmesg verbosity for normal use 2010-11-05 11:45:13 +01:00
Markinus
a3cc6a6a9d Merge branch 'master' of git://gitorious.org/~rajkosto/linux-on-wince-htc/rajko-linux_on_wince_htc 2010-11-04 21:51:42 +01:00
rajkosto
e4b408efab silly htc, you shouldn't use dma_sync_single on dma mapped PAGES 2010-11-04 19:36:01 +01:00
Jon Benson
375f6355e6 Applied patch for ppp driver. See http://docs.openmoko.org/trac/ticket/2212 2010-11-04 19:27:03 +01:00
Jon Benson
5f3a06931a Added extra logging for battery driver. Probably not needed in general, but handy for figuring out extended battery support. 2010-11-01 13:25:46 +11:00
Jon Benson
877c98b9dc Patched tty_buffer.c based on ACE kernel. Will see if it helps smd_tty crash. 2010-10-30 22:21:09 +11:00
Jon Benson
034a9856f8 Applied patch for ppp driver. See http://docs.openmoko.org/trac/ticket/2212 2010-10-30 18:12:01 +11:00
Jon Benson
c0b354a7f5 Updated driver to match main tree after reverting gauner1986's changes. 2010-10-30 17:48:36 +11:00
Jon Benson
3db92cb1bf Revert "Added video driver cleanup and tweaks by gauner1986. Thanks to huanyu for isolating them."
This reverts commit 935a9ce797.
2010-10-30 17:47:26 +11:00
Jon Benson
94b9f0bea1 Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
Conflicts:
	arch/arm/mach-msm/board-htcleo-battery.c
2010-10-30 17:31:27 +11:00
Jon Benson
437d3a1450 Revert "Applied mdebeljuh patch from http://forum.xda-developers.com/showthread.php?t=819819"
This reverts commit 187ebc6dad.
2010-10-27 19:35:50 +11:00
Markinus
53a7287c1b htcleo: add new battery temperature table
This table is not absolutly exact, but good
2010-10-26 20:40:02 +02:00
Markinus
55ca1d277a htcleo: add new battery driver
This driver is comming from desire hd and is modificated for htcleo
2010-10-26 17:41:48 +02:00
Jon Benson
187ebc6dad Applied mdebeljuh patch from http://forum.xda-developers.com/showthread.php?t=819819 2010-10-27 00:07:27 +11:00
Jon Benson
5c24f34247 Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc
Conflicts:
	drivers/video/msm/mdp_lcdc.c
2010-10-18 13:42:40 +11:00
Markinus
49a440240c htcleo: reenabled hw init for mdp 2010-10-17 18:48:14 +02:00
Markinus
5dd534b1f6 htcleo: the next bsod fix. I hope it's the last one 2010-10-17 18:18:04 +02:00
Markinus
76c611e357 camera: replaced the s5k3e2fx with desire one
I had to take the autofocus funktion from evo kernel
2010-10-17 16:03:04 +02:00
Jon Benson
328721bbb8 Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc 2010-10-17 13:46:55 +11:00
Markinus
c238362820 camera: merged s5k3e2fx driver with some stuff from desire
Now 5MP Camera works, add early suspend and some other stuff
Thx to arva for the sysfs tip!
2010-10-16 20:52:02 +02:00
Markinus
d043360be0 Revert "add sysfs interface to camera driver to enable 5 MP"
Reverted because I merged some other stuff from this driver too, like early suspend

This reverts commit 90c492afd9.
2010-10-16 20:50:54 +02:00
LeTama
90c492afd9 add sysfs interface to camera driver to enable 5 MP
Credits to Arva
2010-10-16 19:58:47 +02:00
rajkosto
12fd0c3638 htcleo: avoid divide by zero on len=0 ooblen=0 in nand driver 2010-10-16 18:56:31 +02:00
Jon Benson
ff2cf1bbcd Merge branch 'master' of git://gitorious.org/linux-on-wince-htc/linux_on_wince_htc 2010-10-15 22:00:03 +11:00
Markinus
586b858b58 htcleo: Fix for premature flash
Credits to mdebeljuh
2010-10-15 12:33:28 +02:00