214281 Commits

Author SHA1 Message Date
Matt Harlum
ac21fdcffa Whoops, that wasn't meant to be there >.> 2011-08-05 10:09:10 +10:00
Matt Harlum
710904ebc2 Qtouch driver by Lilsteve, nvidia tegrafb patch 2011-08-04 23:50:10 +10:00
Chris Trotman
cef3887d2b Merge remote branch 'tiamat-dev/tiamat' into tiamat_stock_gpu 2011-08-03 18:27:45 +12:00
Chris Trotman
5b6121e62c Tiamat 2.1.0 - Tachi Tiamat_2.1.0 2011-08-03 18:23:21 +12:00
TDR
2634428e20 Updated config for 2.1.2 2011-08-03 18:11:04 +12:00
TDR
f65d1bf889 Fix for WiFi/wake reboot bug 2011-08-02 15:49:09 +00:00
TDR
773833f625 Fix for 1704MHz 2011-07-28 17:49:56 +00:00
Chris Trotman
02925d4f09 Changed to the simple io scheduler for the default scheduler. 2011-07-28 16:29:52 +12:00
Brad Carter
a4fe7e53a6 added simple io sched 2011-07-28 08:15:29 +12:00
Choi, Jong-Hwan
3cbf60c244 net: wireless: bcm4329: Convert kmalloc() + bzero() to kzalloc()
Change-Id: Ie7a8c080dd76d05e5cd12502b98439c2d34a923c
Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-07-27 19:41:03 +12:00
Choi, Jong-Hwan
a172169fed net: wireless:bcm4329: Fix "Unknown escape '%'"
Change-Id: I178baf8ab053482aa82b2b7560f7471e012b925c
Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-07-27 19:39:52 +12:00
Choi, Jong-Hwan
9dfaebd96b net: wireless: bcm4329: fix array subscript is below array bounds
Change-Id: I5d521895070d255f7ac0c9eaf262ec9f4cdd2f8a
Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-07-27 19:38:42 +12:00
Dmitry Shmidt
71b75c879c net: wireless: bcm4329: Fix roaming message processing
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-07-27 19:38:28 +12:00
bigrushdog
e81f3c08cd Disabled rtl8150 driver. may conflict with compat-wireless rtl8187. enabled USB_WIRELESS_EXTENTIONS 2011-07-26 11:42:22 -07:00
bigrushdog
0f4beb751d reverted cfg80211 because it borked out for some reason. kept Sierra wireless module 2011-07-24 09:20:07 -07:00
bigrushdog
c0bbfd99f2 Added Sierra Wireless module and cfg80211 module for compat wireless compatability 2011-07-24 01:44:35 -07:00
Chris Trotman
346cda5914 Revert "ARM: tegra: stingray: Preliminary USB Mass Storage support"
This reverts commit 42a59043926da7f73b3718ba3176f2476ccd95b7.

Conflicts:

	arch/arm/mach-tegra/board-stingray.c
2011-07-24 16:04:04 +12:00
Mike Galbraith
e3d55fcaeb sched, autogroup: Stop claiming ownership of the root task group
Disown it, and only display autogroup association if one exists.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1298383320.8036.5.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-24 14:54:41 +12:00
Yong Zhang
1baf046b98 sched, autogroup: Stop going ahead if autogroup is disabled
when autogroup is disable from the beginning,
sched_autogroup_create_attach()
  autogroup_move_group()                    <== 1
    sched_move_task()                       <== 2
      task_move_group_fair()
        set_task_rq()
          task_group()
            autogroup_task_group()

We go the whole path without doing anything useful.

Then stop going further if autogroup is disabled.

But there will be a race window between 1 and 2, in which
sysctl_sched_autogroup_enabled is enabled. This issue
will be toke by following patch.

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1298185696-4403-4-git-send-email-yong.zhang0@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-24 14:54:31 +12:00
Bharata B Rao
aa7ffef3ae sched: Display autogroup names in /proc/sched_debug
Add autogroup name to cfs_rq and tasks information to /proc/sched_debug.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20110111101257.GF4772@in.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-24 14:54:09 +12:00
Yong Zhang
08b5c5d222 sched: Mark autogroup_init() __init
autogroup_init() is only called at boot time.

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1294375425-31065-1-git-send-email-yong.zhang0@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-24 14:50:53 +12:00
Mike Galbraith
92b5329433 sched, autogroup: Fix potential access to freed memory
Oleg pointed out that the /proc interface kref_get() useage may race with
the final put during autogroup_move_group().  A signal->autogroup assignment
may be in flight when the /proc interface dereference, leaving them taking
a reference to an already dead group.

Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1292508592.5940.28.camel@maggy.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-24 14:50:46 +12:00
Mike Galbraith
62ac4c4ca1 sched: Add 'autogroup' scheduling feature: automated per session task groups
A recurring complaint from CFS users is that parallel kbuild has
a negative impact on desktop interactivity.  This patch
implements an idea from Linus, to automatically create task
groups.  Currently, only per session autogroups are implemented,
but the patch leaves the way open for enhancement.

Implementation: each task's signal struct contains an inherited
pointer to a refcounted autogroup struct containing a task group
pointer, the default for all tasks pointing to the
init_task_group.  When a task calls setsid(), a new task group
is created, the process is moved into the new task group, and a
reference to the preveious task group is dropped.  Child
processes inherit this task group thereafter, and increase it's
refcount.  When the last thread of a process exits, the
process's reference is dropped, such that when the last process
referencing an autogroup exits, the autogroup is destroyed.

At runqueue selection time, IFF a task has no cgroup assignment,
its current autogroup is used.

Autogroup bandwidth is controllable via setting it's nice level
through the proc filesystem:

  cat /proc/<pid>/autogroup

Displays the task's group and the group's nice level.

  echo <nice level> > /proc/<pid>/autogroup

Sets the task group's shares to the weight of nice <level> task.
Setting nice level is rate limited for !admin users due to the
abuse risk of task group locking.

The feature is enabled from boot by default if
CONFIG_SCHED_AUTOGROUP=y is selected, but can be disabled via
the boot option noautogroup, and can also be turned on/off on
the fly via:

  echo [01] > /proc/sys/kernel/sched_autogroup_enabled

... which will automatically move tasks to/from the root task group.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Paul Turner <pjt@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
[ Removed the task_group_path() debug code, and fixed !EVENTFD build failure. ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <1290281700.28711.9.camel@maggy.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-07-24 14:50:36 +12:00
Chris Trotman
dd75b83883 Revert "brought back autogroup scheduler. thx Cybertronic"
This reverts commit 0827e0d8a78afa916fa8438801abb1319b06c885.
Using the autogroup commits from kcrudup instead.
2011-07-24 14:49:28 +12:00
Xin Xie
b968db999b tegra: dc: set HDMI clock to 0 if HDMI unplugged
HDMI clock is not auto dvfs, so we need set the clock rate to 0 if HDMI
is disabled. Otherwise the Vdd core voltage will be always 1.2v even
after HDMI cable unplugged.

BUG 828306

Reviewed-on: http://git-master/r/34379
(cherry picked from commit 58ddd144a6c2dd9bbc9d2f3c8b1e025364d88c22)

Change-Id: Ie4a7ba9dfc765ca3a9e4c443112364230338896c
Reviewed-on: http://git-master/r/37180
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-07-24 14:16:32 +12:00
Xin Xie
a8f136a3fe tegra: dc: change EMC efficiency for bandwidth
BUG 835372

Change-Id: I571ca8785893df339175306f548daa31158721fd
Reviewed-on: http://git-master/r/39277
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-24 14:07:53 +12:00
Xin Xie
c055ab5767 tegra: dc: set EMC clock for every frame
BUG 835372

Change-Id: Iccd8ee1e6222e2661e7b3fbbfde615ead6116e02
Reviewed-on: http://git-master/r/38170
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-24 14:07:38 +12:00
Chris Trotman
58f7229299 tegra: dc: set EMC clock dynamically
If the screen is idle (no POST for some time), reduce the DC EMC clock
according the windows size. If external display connected, the EMC clock
will not be reduced.

BUG 828306

Reviewed-on: http://git-master/r/37106

Change-Id: I88c76ef3afe5036f47d91f6540846fd767c399e4
Reviewed-on: http://git-master/r/38149
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Conflicts:

	drivers/video/tegra/dc/dc.c
	drivers/video/tegra/dc/dc_priv.h
	drivers/video/tegra/dc/overlay.c
2011-07-24 14:05:17 +12:00
Alexandre Courbot
91ff75b609 tegra: power: restore cpufreq governor target
Restore the target cpu frequency on exit from suspend. Also save target
frequency if set when the device is suspended.

Bug 841559
Change-Id: Id17a5945215e324d49e3d74b9603cc919a736c64
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/41710
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-07-24 13:33:31 +12:00
Chris Trotman
35b8ef684f Revert "disable autogroup for testing"
This reverts commit 9ff47e435cc6c6cb23da6b13aa51e589d45b5713.
KC swears by this, so lets enable it again
2011-07-24 10:48:49 +12:00
Greg Roth
12db0e98c3 video: tegra: nvmap: perform cache maintenance for rw_handle
Need cache maintenance on rw_handle to remove
display garbage issue which happens randomly.

Change-Id: I73606ae6551c0e75058e055f4a19e5f074a47004
Signed-off-by: Greg Roth <groth@nvidia.com>
2011-07-23 17:34:48 +12:00
Kenneth R. Crudup
2ae0d46eb2 ARM: tegra: pm: fix "save/restore ahb bus registers" for older kernels 2011-07-23 17:33:30 +12:00
James Wylder
1adbc355cc ARM: tegra: usb: prefetch engine buffer coherency protection
The prefetcher fetches a total of 128 bytes, and then responding to
sequential reads with this prefetched data. To avoid coherency issues,
it discards the prefetched data if a non sequential read occurs.

Allocate dtd with 128 bytes boundary to make 2 consecutive dtd 128 bytes
apart.

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I2adc02c2ac7901d0617b487cb498a34ec7a63e18
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-07-23 17:32:55 +12:00
Mike Corrigan
a14dc90039 usb: host: tegra: Add a short delay before the controller suspends.
Submission from Jay Cheng <jacheng@nvidia.com>.

Change-Id: Ic92befe618adc7bdd12c35374fb3f855d7f6a515
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>
2011-07-23 17:32:47 +12:00
James Wylder
45e9478b85 usb: gadget: tegra: update memory frequency requests to MAX
Need maximum memory bandwidth to support bi-directional
transfers on multiple endpoints.

Change-Id: Idfd74c62ea0438fca7b93e82a6032a28feeab830
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-07-23 17:32:36 +12:00
Benoit Goby
6aeaa5b826 ARM: tegra: usb_phy: Revise some default settings for utmi phy
Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I8552e995ee5c124023dd7f5385e8ecca7a50eee8
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-07-23 17:32:00 +12:00
Benoit Goby
4d10bae52c ARM: tegra: pm: save/restore ahb bus registers
Submitted on behalf of Jay Cheng <jacheng@nvidia.com>
Modified to use syscore_ops

Change-Id: Ic8a3a9559634eb3f1f0e4b40a2d8502d20d606d6
Signed-off-by: Benoit Goby <benoit@android.com>
2011-07-23 17:31:50 +12:00
Benoit Goby
985fceb64d ARM: tegra: Enable AHB prefetch for USB
Enabling AHB prefetch on USB1, USB2, USB3 controllers,
to improve the USB transfer throughput.

originally work from Rakesh Bodla <rbodla@nvidia.com>

Change-Id: I3c45bb8e97ceffbf43229b9c3d9581a565b61187
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-07-23 17:30:53 +12:00
Sergey Kudakov
fb5277bb05 ARM: tegra: clock: Add frequencies table for pll_c
Change-Id: Ib64190b01fc26bfb7fb8b9059afcc172d91e8da5
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
2011-07-23 17:30:41 +12:00
James Wylder
e50744dea4 ARM: tegra: small optimizations for table lookups
Optimization that primarily addresses when cpu frequency
is low but a high memory bandwidth is needed.

Change-Id: I4f800c2368191c744aefd9f83eb96e4c108dbcc3
Signed-off-by: James Wylder <james.wylder@motorola.com>
2011-07-23 17:30:07 +12:00
bigrushdog
33dbd39b90 bumped down GPU to stock for the more timid users 2011-07-14 15:18:21 +12:00
Chris Trotman
fed7aa6466 Changed Version number to 2.0.0 - ONLY FOR 3.2 Tiamat_2.0.0 2011-07-14 14:53:21 +12:00
Chris Trotman
d61af76f17 Merge remote branch 'android-tegra/android-tegra-2.6.36'
Conflicts:
	drivers/mmc/host/sdhci.c
2011-07-13 20:09:43 +12:00
Chris Trotman
20b310c48d Merge pull request #5 from solarnz/master
Merged one more commit from TDR for undervolting with setcpu.
2011-07-02 18:09:57 -07:00
Chris Trotman
b817c9d55e Fixed up support for SetCPU ... AGAIN 2011-07-02 22:38:08 +12:00
Chris Trotman
322bbc5b76 Revise voltage interface for compat with SetCPU
Conflicts:

	drivers/cpufreq/cpufreq.c
2011-07-01 21:19:20 +12:00
TDR
dc54efffb0 Show CPU voltage constraints 2011-06-27 21:35:05 +12:00
Chris Trotman
4dbe80c79c Modified the default voltage control voltages.
The Launchpad kernel uses different voltages in the kernel to the Tiamat, and this commit sets the default voltages that were carried over with TDR's voltage control commit back to our default voltages.
2011-06-16 17:19:14 +12:00
Chris Trotman
5e3964c74e Aligned up the frequencies with our frequencies 2011-06-16 12:51:37 +12:00
TDR
dea3ec1ef3 Initial hack for voltage control 2011-06-16 12:50:36 +12:00