Commit Graph

162 Commits

Author SHA1 Message Date
SecureCRT ae32a212a5 msm: kgsl: fix error handling in adreno_waittimestamp()
This function was incorrectly reporting hangs when an
error such as ERESTARTSYS was returned by
__wait_event_interruptible_timeout().

msm: kgsl: Make sure WPTR reg is updated properly

Sometimes writes to WPTR register do not take effect, causing a
3D core hang. Make sure the WPTR is updated properly when waiting.

msm: kgsl: Set default value of wait_timeout in the adreno_dev struct

Set the initalization value of wait_timeout at compile time in the
declaration of the adreno_device struct instead of at runtime in
adreno_probe.
2012-06-21 00:02:15 +08:00
securecrt 73aff24078 msm: kgsl: fix size checking in adreno_find_region
This function is supposed to return the memdesc that
contains the range gpuaddr to gpuaddr + size. One of the
lookups was using sizeof(unsigned int) instead of size,
which could cause false positive results from this function
and possibly kernel panics in the snapshot or postmortem
code, which rely on it to do bounds checking for them.
2012-06-20 12:39:35 +08:00
securecrt fd5e7d8237 msm: kgsl: let postmortem dump find context switch IBs
Because the IBs used for context switching are not allocated
by userspace, a separate search is needed to find them
in adreno_find_region.
2012-06-20 12:25:12 +08:00
SecureCRT c5ac3240a5 msm: kgsl: improve postmortem and cff bounds checking
Some hangs are fooling the postmortem dump code into
running off the end of a buffer. Fix this by making
its bounds check logic work better by reusing the
logic from kgsl_find_region().
2012-06-19 23:30:34 +08:00
SecureCRT 8be096244d msm: kgsl: Fix when GMEM is saved for A2xx
Saving GMEM is set when doing context switching and should not
be set when creating the gmem shadow.
2012-06-19 21:46:18 +08:00
securecrt 2f3f4d14f9 msm: kgsl: Add support for the preamble context flag
Userspace will set a flag in the context if preambles are in use. If
they are, we can safely skip save and restore commands for the
context. GMEM save/restore is still required.  To improve performance,
preamble commands are skipped when the context hasn't changed since
the last issueibcmds.

from Code Aurora
2012-06-19 14:00:07 +08:00
securecrt 4f50d63951 msm: kgsl: fix format of the rbbm read error message
msm: kgsl: Assign a valid context only after one has been restored
2012-06-18 20:28:17 +08:00
SecureCRT b38b808efb enable fast charge 2012-06-02 15:33:41 +08:00
tytung db81187e55 msm: htcleo: export the real WiFi and Bluetooth MAC addresses.
(Credits go to marc1706)
2012-06-01 01:16:20 +08:00
tytung 8505d01410 drivers: mtd: devices: htcleo_nand: leave only correct candidates for WiFi and Bluetooth MAC addresses.
(Credits go to Rick_1995, aka zeusk.)
http://forum.xda-developers.com/showpost.php?p=26579738&postcount=4
2012-06-01 00:33:19 +08:00
tytung a979a22695 drivers: mtd: devices: htcleo_nand: find the real unique WiFi and Bluetooth MAC addresses.
(Credits go to Franck78 <fbourdonnec@chez.com>)

http://forum.xda-developers.com/showpost.php?p=26556691&postcount=3
2012-06-01 00:21:07 +08:00
tytung 88e7e8a6d2 drivers: usb: gadget: update some usb drivers for USB Tethering. 2012-05-19 19:33:14 +08:00
tytung 50abfc6c2d Merge pull request #4 from zeusk/ics_HWA
[KGSL] update to msm-kgsl3d0 v3.8
2012-05-13 21:49:47 -07:00
Shantanu Gupta be86226379 [KGSL] add missing files for last commit 2012-05-14 02:47:02 +05:30
Shantanu Gupta 8afb87a6ea [KGSL] update to msm-kgsl3d0 v3.8 2012-05-14 01:49:10 +05:30
tytung dfac1a861b Merge pull request #3 from zeusk/ics_HWA
Backport android and MSM parts from caf
2012-05-12 12:18:37 -07:00
Shantanu Gupta daf542e57e Backport android and MSM parts from caf 2012-05-12 16:56:17 +05:30
tytung 0d06b3f2b4 drivers: staging: zram: added ZRAM support: /dev/zramX (X = 0, 1, ...). 2012-05-05 00:19:05 +08:00
SecureCRT eeb52b2437 fixed the boot logo 2012-05-04 00:38:00 +08:00
Shantanu Gupta 48322595f9 [MSM] Backported a lot of stuff from 2.6.35 and 2.6.32.59 kernels, compiles and tested on device 2012-05-03 19:31:48 +05:30
Shantanu Gupta bffda154f5 Cleanup remenant code of older kgsl 2012-05-03 12:28:28 +05:30
Shantanu Gupta c85abf5272 [MSM] Fix makefile, which in an erroneous manner includes the logo file disregarding the board config 2012-05-03 12:15:59 +05:30
Shantanu Gupta d1aeebac34 [KGSL] remove the older driver along with some
apparently unused, unrequired binaries.
2012-05-03 12:09:48 +05:30
tytung 57f5775c0b Added GENLOCK. 2012-05-01 14:50:48 +08:00
tytung c6de4393cf Added the latest KGSL driver /dev/kgsl-3d0 for ICS HWA (Hardware Acceleration). (Credits to Securecrt and Rick_1995) 2012-05-01 13:12:22 +08:00
tytung 79b69f0bfb Revert "usb: gadget: Backport Android drivers from 2.6.35 for HD2 by tytung."
This reverts commit 70f8304d7a.
2012-01-13 02:00:30 +08:00
tytung 52203a8404 Revert "USB: gadget: added f_accessory gadget driver for android USB accesories and applied all patches. (credit to tytung)"
This reverts commit 2ef9a48295.
2012-01-13 02:00:07 +08:00
tytung f861dded06 drivers: gpu: packported kgsl from msm-3.0 kernel 2012-01-13 00:31:11 +08:00
tytung 05b17b7a29 drivers: improved the flashlight's ICS compatibility. 2012-01-08 13:20:13 +08:00
tytung d8579fa109 drivers: cpufreq: added smartass2 governor. 2012-01-07 20:47:05 +08:00
tytung db9b407d80 drivers: cpufreq: added InteractiveX governor. 2012-01-07 20:31:43 +08:00
tytung 88922c12f5 drivers: net: wireless: backported bcm4329 from tuna kernel 2011-12-13 01:08:16 +08:00
tytung 99dbc5c163 net: packported xt_qtaguid and xt_quota2 to support data usage. 2011-12-10 00:00:42 +08:00
tytung 2ef9a48295 USB: gadget: added f_accessory gadget driver for android USB accesories and applied all patches. (credit to tytung)
https://github.com/android/kernel_msm/commit/5d9d8625e39f815673dedea353f39edccabb1fac and so on.
2011-11-16 00:31:12 +08:00
tytung aabb2fb32d usb: msm72k_udc: Fix handling of OUT packets on ep0 with length > 0
The gadget level completion function was getting called for the ACK packet
instead of the data packet, making it impossible to read the data from the host.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-11-16 00:29:34 +08:00
tytung 70f8304d7a usb: gadget: Backport Android drivers from 2.6.35 for HD2 by tytung.
Completely breaks compatibility with HTC Sense, but is needed for Android 2.3.
References:
https://github.com/CyanogenMod/htc-kernel-msm7x30/commit/3362439a1df2aa7e900dd825bde0670ded7d0cc3
https://github.com/CyanogenMod/htc-kernel-msm7x30/commit/03c08c01c60b4220158c484127ba5b9aa9d67c81
https://github.com/android/kernel_msm/commit/3fa64c7f7fc44d88bfbb6cb925882017850c0c69
2011-11-15 23:13:34 +08:00
tytung 330c350fdb net: New iface_stat module to monitor persistent network stats.
Adding a new module that tracks the number of bytes/packets transfered by a network interface, even after the interface has been removed.
This is relevant to track the total data usage in mobile devices whose interfaces are added and removed quite frequently (WiFi, Bluetooth, 3G,..).

Monitoring is done only for devices that are configured with a valid IP address (check to exclude virtual/loopback/tunnel interfaces).

Change-Id: I8ac642af1990433ebd0784e8dbd72bf0714b5bf6
Signed-off-by: Ashish Sharma <ashishsharma@google.com>

Included a little modification for the out-of-date HD2 .32 kernel.
2011-11-15 23:00:32 +08:00
tytung 6d2048e7da drivers: video: msm: fixed the color banding issue. (Credit to marc1706)
https://github.com/marc1706/cm-on-wince-htc/commit/dfe41d02cac454e3e58c583cd4fa0c0825160d1f
2011-11-10 01:31:07 +08:00
tytung 64b3392b72 bluetooth: updated bluetooth stack 2011-09-29 23:42:22 +08:00
tytung 92f2f11dd5 Revert "bluetooth: updated bluetooth stack"
This reverts commit eb94bc60a6.
2011-09-29 00:18:46 +08:00
tytung 6e0cc9a888 Revert "USB: gadget: f_accessory: Add new gadget driver for android USB accesories."
This reverts commit bcd275a3ef.
2011-09-29 00:17:56 +08:00
tytung bcd275a3ef USB: gadget: f_accessory: Add new gadget driver for android USB accesories. 2011-09-24 19:31:58 +08:00
tytung 36b925848c drivers: net: Added HTC Official kineto_gan.c for WiFi Calling. 2011-09-10 18:27:07 +08:00
tytung f6c36f2d66 msm: camera: Clean up during open failure. 2011-08-19 00:48:31 +08:00
tytung 6ca79cd6f1 usb: gadget: Add RNDIS (Remote Network Driver Interface Specification) for supporting native USB Tethering. 2011-08-17 23:59:31 +08:00
tytung eb94bc60a6 bluetooth: updated bluetooth stack 2011-03-26 13:07:29 +08:00
tytung 1b9449e9a4 Fixed Bluetooth 60mA battery drain
Based on Trilu's patch http://forum.xda-developers.com/showthread.php?t=1007774
Removed some debug and unnecessary code, and added some missing code by tytung.
Thanks to Trilu for finally fixing the BT problem.
Thanks to Charansingh for the work he has done on the BT problem.
2011-03-25 23:15:05 +08:00
tytung a8bf8f2567 net: wireless: bcm4329: Allocate skb with GFP_KERNEL flag if possible
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-03-12 17:56:55 +08:00
tytung 9bc54c5ede net: wireless: bcm4329: Disable wake irq at driver stop
Previously at driver stop interrupts were not disabled and
might cause never-ending waking up

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-03-12 17:55:43 +08:00
tytung f8d85d37a8 Merge commit 'refs/merge-requests/1' of gitorious.org:~tytung/linux-on-wince-htc/tytungs-hastarins-linux_on_wince_htc 2011-03-12 16:13:12 +08:00