summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2011-12-16Squashandroid-20111223Benn Pörscke
Change-Id: I2fcf46d1fc4b0cd4c61e5be3654c43b80db86015
2011-10-28powerpc/pseries/hvconsole: Fix dropped console outputAnton Blanchard
commit 51d33021425e1f905beb4208823146f2fb6517da upstream. Return -EAGAIN when we get H_BUSY back from the hypervisor. This makes the hvc console driver retry, avoiding dropped printks. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I5be537034d82c0abef3e7fa72ac3c8a8fdd6ff09 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35667 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28xtensa: prevent arbitrary read in ptraceDan Rosenberg
commit 0d0138ebe24b94065580bd2601f8bb7eb6152f56 upstream. Prevent an arbitrary kernel read. Check the user pointer with access_ok() before copying data in. [akpm@linux-foundation.org: s/EIO/EFAULT/] Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> Cc: Christian Zankel <chris@zankel.net> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I7da76480f958d90b091aec3ad1f7dff004665620 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35647 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28irq_work, alpha: Fix up arch hooksPeter Zijlstra
commit 0f933625e7b6c3d91878ae95e341bf1984db7eaf upstream. Commit e360adbe29 ("irq_work: Add generic hardirq context callbacks") fouled up the Alpha bit, not properly naming the arch specific function that raises the 'self-IPI'. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Michael Cree <mcree@orcon.net.nz> Link: http://lkml.kernel.org/n/tip-gukh0txmql2l4thgrekzzbfy@git.kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I2b28edf03b137fcb8ab0795c34f4c12aa77e2591 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35637 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28powerpc/kdump: Fix timeout in crash_kexec_wait_realmodeMichael Neuling
commit 63f21a56f1cc0b800a4c00349c59448f82473d19 upstream. The existing code it pretty ugly. How about we clean it up even more like this? From: Anton Blanchard <anton@samba.org> We check for timeout expiry in the outer loop, but we also need to check it in the inner loop or we can lock up forever waiting for a CPU to hit real mode. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I8a147a77e62da92c342464e479db973f31797d78 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35636 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28oprofile, x86: Fix nmi-unsafe callgraph supportRobert Richter
commit a0e3e70243f5b270bc3eca718f0a9fa5e6b8262e upstream. Current oprofile's x86 callgraph support may trigger page faults throwing the BUG_ON(in_nmi()) message below. This patch fixes this by using the same nmi-safe copy-from-user code as in perf. ------------[ cut here ]------------ kernel BUG at .../arch/x86/kernel/traps.c:436! invalid opcode: 0000 [#1] SMP last sysfs file: /sys/devices/pci0000:00/0000:00:0a.0/0000:07:00.0/0000:08:04.0/net/eth0/broadcast CPU 5 Modules linked in: Pid: 8611, comm: opcontrol Not tainted 2.6.39-00007-gfe47ae7 #1 Advanced Micro Device Anaheim/Anaheim RIP: 0010:[<ffffffff813e8e35>] [<ffffffff813e8e35>] do_nmi+0x22/0x1ee RSP: 0000:ffff88042fd47f28 EFLAGS: 00010002 RAX: ffff88042c0a7fd8 RBX: 0000000000000001 RCX: 00000000c0000101 RDX: 00000000ffff8804 RSI: ffffffffffffffff RDI: ffff88042fd47f58 RBP: ffff88042fd47f48 R08: 0000000000000004 R09: 0000000000001484 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88042fd47f58 R13: 0000000000000000 R14: ffff88042fd47d98 R15: 0000000000000020 FS: 00007fca25e56700(0000) GS:ffff88042fd40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000074 CR3: 000000042d28b000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process opcontrol (pid: 8611, threadinfo ffff88042c0a6000, task ffff88042c532310) Stack: 0000000000000000 0000000000000001 ffff88042c0a7fd8 0000000000000000 ffff88042fd47de8 ffffffff813e897a 0000000000000020 ffff88042fd47d98 0000000000000000 ffff88042c0a7fd8 ffff88042fd47de8 0000000000000074 Call Trace: <NMI> [<ffffffff813e897a>] nmi+0x1a/0x20 [<ffffffff813f08ab>] ? bad_to_user+0x25/0x771 <<EOE>> Code: ff 59 5b 41 5c 41 5d c9 c3 55 65 48 8b 04 25 88 b5 00 00 48 89 e5 41 55 41 54 49 89 fc 53 48 83 ec 08 f6 80 47 e0 ff ff 04 74 04 <0f> 0b eb fe 81 80 44 e0 ff ff 00 00 01 04 65 ff 04 25 c4 0f 01 RIP [<ffffffff813e8e35>] do_nmi+0x22/0x1ee RSP <ffff88042fd47f28> ---[ end trace ed6752185092104b ]--- Kernel panic - not syncing: Fatal exception in interrupt Pid: 8611, comm: opcontrol Tainted: G D 2.6.39-00007-gfe47ae7 #1 Call Trace: <NMI> [<ffffffff813e5e0a>] panic+0x8c/0x188 [<ffffffff813e915c>] oops_end+0x81/0x8e [<ffffffff8100403d>] die+0x55/0x5e [<ffffffff813e8c45>] do_trap+0x11c/0x12b [<ffffffff810023c8>] do_invalid_op+0x91/0x9a [<ffffffff813e8e35>] ? do_nmi+0x22/0x1ee [<ffffffff8131e6fa>] ? oprofile_add_sample+0x83/0x95 [<ffffffff81321670>] ? op_amd_check_ctrs+0x4f/0x2cf [<ffffffff813ee4d5>] invalid_op+0x15/0x20 [<ffffffff813e8e35>] ? do_nmi+0x22/0x1ee [<ffffffff813e8e7a>] ? do_nmi+0x67/0x1ee [<ffffffff813e897a>] nmi+0x1a/0x20 [<ffffffff813f08ab>] ? bad_to_user+0x25/0x771 <<EOE>> Cc: John Lumby <johnlumby@hotmail.com> Cc: Maynard Johnson <maynardj@us.ibm.com> Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I40fd03cc12738d031e2d276644b1b56301f4be9f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35635 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28kexec, x86: Fix incorrect jump back address if not preserving contextHuang Ying
commit 050438ed5a05b25cdf287f5691e56a58c2606997 upstream. In kexec jump support, jump back address passed to the kexeced kernel via function calling ABI, that is, the function call return address is the jump back entry. Furthermore, jump back entry == 0 should be used to signal that the jump back or preserve context is not enabled in the original kernel. But in the current implementation the stack position used for function call return address is not cleared context preservation is disabled. The patch fixes this bug. Reported-and-tested-by: Yin Kangkai <kangkai.yin@intel.com> Signed-off-by: Huang Ying <ying.huang@intel.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Vivek Goyal <vgoyal@redhat.com> Link: http://lkml.kernel.org/r/1310607277-25029-1-git-send-email-ying.huang@intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I75dc3aab96524ef899a3c40a3e759833d045987e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35634 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28x86, intel, power: Initialize MSR_IA32_ENERGY_PERF_BIASLen Brown
commit abe48b108247e9b90b4c6739662a2e5c765ed114 upstream. Since 2.6.36 (23016bf0d25), Linux prints the existence of "epb" in /proc/cpuinfo, Since 2.6.38 (d5532ee7b40), the x86_energy_perf_policy(8) utility has been available in-tree to update MSR_IA32_ENERGY_PERF_BIAS. However, the typical BIOS fails to initialize the MSR, presumably because this is handled by high-volume shrink-wrap operating systems... Linux distros, on the other hand, do not yet invoke x86_energy_perf_policy(8). As a result, WSM-EP, SNB, and later hardware from Intel will run in its default hardware power-on state (performance), which assumes that users care for performance at all costs and not for energy efficiency. While that is fine for performance benchmarks, the hardware's intended default operating point is "normal" mode... Initialize the MSR to the "normal" by default during kernel boot. x86_energy_perf_policy(8) is available to change the default after boot, should the user have a different preference. Signed-off-by: Len Brown <len.brown@intel.com> Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1107140051020.18606@x980 Acked-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I2f36d461fd32b4a48476ef35c07a30d7618242f6 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35617 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28irq_work, ppc: Fix up arch hooksPeter Zijlstra
commit 4f8b50bbbe63ae4ec6bea28a90a9a603c745ea71 upstream. Commit e360adbe29 ("irq_work: Add generic hardirq context callbacks") fouled up the ppc bit, not properly naming the arch specific function that raises the 'self-IPI'. Cc: Huang Ying <ying.huang@intel.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Anton Blanchard <anton@samba.org> Cc: Eric B Munson <emunson@mgebm.net> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-eg0aqien8p1aqvzu9dft6dtv@git.kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I074ec46e0af79391bdd04ee9df03aedf3a532b55 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35614 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28ARM: pxa/cm-x300: fix V3020 RTC functionalityIgor Grinberg
commit 6c7b3ea52e345ab614edb91d3f0e9f3bb3713871 upstream. While in sleep mode the CS# and other V3020 RTC GPIOs must be driven high, otherwise V3020 RTC fails to keep the right time in sleep mode. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Eric Miao <eric.y.miao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I44e37600a66d4097d489c04283af800db73543b0 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35597 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28ARM: ux500: gpio-keys: Remove dynamic handling of pinsJonas Aaberg
Dynamic handling of pins does not work properly if done manually from suspend/resume hooks, so let's remove it for the time beeing. ST-Ericsson Linux next: - ST-Ericsson ID: 369952 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I3b130256b19af7feae9db0e4a1bd72c7856bb88c Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35405 Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com> Reviewed-by: QABUILD
2011-10-28u5500: add MTIMER clocksourceRabin Vincent
ST-Ericsson ID: 368260 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Depends-On: I5307cb7f58fdf890896d641a8e4f49098a90b68e Change-Id: I9ef4ff1c63f6ec9293ece4013f13cf3caa707d9d Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34307 Reviewed-by: QATOOLS Reviewed-by: QABUILD
2011-10-27ARM: ux500: SDI: enable DMA on all SDI devicesPer Forlin
Enable DMA again now when power save for MMC and DMA is in place. Patch is tested: * suspend and resume successfully in Android. * suspend video playback from sd-card and resume it successfully in Android. ST-Ericsson ID: 370129 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I4eb9367c3feeb8661e33035d4d3022205b9e924b Signed-off-by: Per Forlin <per.forlin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35325 Reviewed-by: Stefan NILSSON9 <stefan.xk.nilsson@stericsson.com> Tested-by: Stefan NILSSON9 <stefan.xk.nilsson@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
2011-10-27mach-ux500: Fixup use of supend|resume_noirqUlf Hansson
Changes needed due to the following commit: PM: Limit race conditions between runtime PM and system sleep (v2) Previously it was was possible for drivers doing pm_runtime_suspend and pm_runtime_put_sync directly from it's suspend callbacks. Now suspend_noirq shall be used, thus this is implemented for AMBA. Additionally pm_runtime is now disabled during system suspend, meaning "pm_runtime_status_suspended" must be used in suspend|resume_noirq context instead of "pm_runtime_suspended". Change-Id: Idda935d422884ecb3c4b6f5e415cd2e0077b06c7 Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35504 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
2011-10-27u8500/u5500: Increase number of MMC minor devicesJohan Rudholm
Increase the number of MMC minor devices from 8 to 32. This is because Android recovery mode needs access to additional partitions, and it is neat to keep MMC device partitions within major number 179 (otherwise any partition >8 would be assigned major number BLOCK_EXT_MAJOR, 259). 32 was chosen as the highest possible number when considering that the two eMMC devices contain two boot partitions each. ST-Ericsson ID: 356788 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iffc42c595f655fe6ddc874875ae2606366f964ef Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35465 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-27ARM: hw_breakpoint: don't fault when debug is not poweredRabin Vincent
If the debug logic is not powered, the processor can unfortunately raise an undefined instruction exception on the instruction that we use to check if the debug logic is powered up or not. Handle this with an undef hook, so that the kernel doesn't crash on boot on such setups. ST-Ericsson ID: 370131 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5802811ac0676d3d13782897b6941dcaee3e4721 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35326 Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-27mach: ux500: Make fb create code genericMarcus Lorentzon
fbdev create use an hmdi specific function. This patch remove that function and makes fbcreate generic and shared. ST-Ericsson ID: 369972 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I8a4b148bb6a01cde74fbe7c4fb30e9d7ee77ef68 Signed-off-by: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35244 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
2011-10-26ux500: pm: fix cpuidle debug configRabin Vincent
CONFIG_U8500_CPUIDLE_DEBUG has been renamed to UX500. Fix the source file so that the code actually gets built. ST-Ericsson ID: 370028 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Id2c9019f2e319b9cebd92e268194e0652dbfd265 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35275 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
2011-10-26u8500: Adding clock control callback into platform data.Dmitry Tarnyagin
cw1200 device has hardware clock control. However on some platforms it is required to explicitly enable clock for the device. The patch adds a clock control callback into the platform data. ST-Ericsson ID: 361990 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ic4cfa86559e0968238dd0f49dd4391354c241f47 Signed-off-by: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34294 Reviewed-by: QABUILD Tested-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-26[U9500] Correct the U9500 identificationRejane Durand
With a u9500-100 software, "pins_for_u9500" as well as "machine_is_hrefv60" returns true. So, if "machine_is_hrefv60" is tested before "pins_for_u9500", the u9500 specifics will never be applied. ST-Ericsson ID: 369957 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I33aacae5948174187dff80a51692938d49184f80 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35238 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Rejane DURAND <rejane.durand@stericsson.com> Tested-by: Rejane DURAND <rejane.durand@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2011-10-25[U9500] Correct the GPIO configuration for WLANRejane Durand
There are two parts in this correction. Firstly, as there is much in common between a U9500 platform and a U8500 one, all the tests performed to identify a U9500 platform shall be done before the ones related to U8500. Otherwise, the platform will be considered as a U8500 one and the GPIOs will be badly configured. Secondly, the mapping of WLAN_IRQ has to be changed. On U8500, WLAN_IRQ is mapped onto GPIO04. On U9500, it is GPIO144 that shall be used. ST-Ericsson ID: 368270 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5880f617c65f7cf4ca9eeabf22a53f7a77c20133 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34320 Reviewed-by: Rejane DURAND <rejane.durand@stericsson.com> Tested-by: Rejane DURAND <rejane.durand@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Baptiste CHAULOUX <baptiste.chauloux@stericsson.com> Tested-by: Baptiste CHAULOUX <baptiste.chauloux@stericsson.com> Reviewed-by: Christophe GUIBOUT <christophe.guibout@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-25u8500: Enable dynamic debugMarek Skowron
Enables CONFIG_DYNAMIC_DEBUG in u8500_defconfig. ST-Ericsson Linux next: Not tested ST-Ericsson ID: 369633 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Marek Skowron <marek.skowron@tieto.com> Change-Id: I4d6a5bfcf379d6fedd662380b750412592eb8f35 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35075 Reviewed-by: Marek SKOWRON <marek.skowron@tieto.com> Tested-by: Marek SKOWRON <marek.skowron@tieto.com> Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-25mach-ux500: Save dbx500 registers on crashJohan Palsson
Reads specific DBx500 register in case of kernel crash and saves it in kernel system memory. ST-Ericsson ID: 367366 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: N/A Change-Id: Ib8da2ab5eaad57b780c00aad495c5d689b081460 Signed-off-by: Johan Bjornstedt <johan.palsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34368 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-25ux500: mcde: Remove static board configurationMarcus Lorentzon
Make device registration more dynamic using mach_is_xxx() and uib_is_xxx() type of calls instead of having compile time Kconfig settings. And clean out most unused static configuration data. ST-Ericsson ID: 368402 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I37dad7a96017e8f48f77645a4ef417632035651e Signed-off-by: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34285
2011-10-25ux500: mcde: Remove DSI generic deviceMarcus Lorentzon
Remove DSI generic device from u5500 board since it's no longer used/supported in that config. ST-Ericsson ID: 368802 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I7b2ef387e1a4333a06d99b9c90cd6c4ad884bd1c Signed-off-by: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34407 Reviewed-by: QATOOLS
2011-10-25ux500: mcde: Remove DPI display deviceMarcus Lorentzon
DPI display device is no longer used or supported ST-Ericsson ID: 368801 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: If32b34580ab01c74a2b8b91961d6f267550f8252 Signed-off-by: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34406 Reviewed-by: QATOOLS
2011-10-24dma40: Enable lcla in esram in u8500Narayanan G
This patch will enable the lcla in esram feature. ST-Ericsson ID: 364165 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: If5d86036b8b9ef72863c447f0e400bb4e51b2ab3 Signed-off-by: Narayanan G <narayanan.gopalakrishnan@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33924 Reviewed-by: QABUILD Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2011-10-24u8500_defconfig: Add support for active FTP in NAPChristian Nilsson
Allowing active ftp to work when running NAP by adding support in conntrack and nat for it. ST-Ericsson ID: 364593 ST-Ericsson FOSS-OUT ID: NA Change-Id: I1f17ab1ccdef0db7d9a82a60fec686abbf6c2d5f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34953 Reviewed-by: Christian NILSSON <christian.c.nilsson@stericsson.com> Tested-by: Christian NILSSON <christian.c.nilsson@stericsson.com> Reviewed-by: Carl-Johan SALOMONSSON <carl-johan.salomonsson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-21ARM: ux500: Remove outdated sensors1p driverJonas Aaberg
Replaced by gpio-keyboard implementation. ST-Ericsson Linux next: - ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic6c8ea1d83c4b3d8ad6bbd9aa06ff30213cab6be Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32695
2011-10-21ARM: ux500: sensors: Update with gpio handlingJonas Aaberg
Update the gpio-keyboard use of hal and proximity sensors to use the ux500 pin framework. ST-Ericsson Linux next: - ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I409d9734c3995d6cfdfff8c7196624a4f89b3e2d Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32694
2011-10-21ARM: ux500: pins-debug: Only show relevant informationJonas Aaberg
Information only valid to force gpio pins when suspending was displayed. ST-Ericsson Linux next: - ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I47b9204449a27ddae6a3054b191192aa160917c2 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33864
2011-10-21ARM: ux500: pins-debug: Fix leakJonas Aaberg
Each time debugfs/pins was accessed a small chunch of memory was lost. ST-Ericsson Linux next: - ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic5752e1d835e2998019a950048ac992b6f9725a6 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34921
2011-10-21ARM: configs: u8500: Enable cpuidle ApSleepJonas Aaberg
Enable ApSleep for cpuidle use again. ST-Ericsson Linux next: - ST-Ericsson ID: 363568 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ieeedc2b6165cb08ef01553055b7f36c84f6950c3 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34912
2011-10-21mach-ux500: Fixup pm_runtime for AMBA devicesUlf Hansson
Using power domains for a device and then calling generic runtime functions will shortcut runtime functions for the "type", "class" and "bus". For the AMBA bus this needs to be handled, thus check if bus runtime functions exist and then use them instead of the generic runtime functions. Moreover an AMBA device is during probe put in resumed state, without executing runtime resume hooks. This means the power domain runtime for AMBA shall during initialization be set to a resumed state ad default. Finally replace the ux500 specific suspend|resume_noirq functions with the those from the AMBA bus. Change-Id: Id1b9cab5c83063c7937d619ed71b8b54f00ec2b3 Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34165 Reviewed-by: Christopher BLAIR <chris.blair@stericsson.com>
2011-10-20[ANDROID]: ux500: pm: usecase: use both cpu cores during voice-callMian Yousaf Kaukab
Audio thread sees a significant delay in scheduling, if it get scheduled on the cpu core1, right after core1 is brought online. Kepping core1 online solves this problem. Power impact of keeping core1 online is negligible. ST-Ericsson ID: 361756 ST-Ericsson Linux next: N/A ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I9ad0521123689e06906d4f55f25536043eb8fa32 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34624 Reviewed-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Tested-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
2011-10-20[ANDROID]: ux500: pm: usecase: remove upper arm frequency boundsMian Yousaf Kaukab
There is no need to specify upper arm frequency bounds for low-power-audio and voice-call. CPUFreq's statistics shows that when running at 400MHz, 95% of the time frequency is not increased for these use-cases. Power figures for these use-cases show no impact after removing upper bounds. Not having upper bounds will prevent the CPU from chocking when a audio codec with higher mips requirements is in use. Moreover, instead of using lower arm frequency bounds, use PRCMU ARM QOS and specify the required operating point. ST-Ericsson ID: 361756 ST-Ericsson Linux next: N/A ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I629201af7c3dc143308c92aa4bb88a8341156824 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34278 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
2011-10-20Revert "u5500: remove ondemand as default cpufreq governor"Rabin Vincent
This reverts commit 3cc30c501bcdbd06ca984ea81573ffe79b397f73. The video use cases have apparently been optimized so that they work properly with this governor, at least for now. ST-Ericsson ID: 365995 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I6ea825bcca973a584ad82cb41c3282b5eafbca8f Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34696
2011-10-20u5500: fix handling of IRDACLK and IRRCCLKRabin Vincent
IRDACLK needs to be requested from the firmware. IRDACLK and IRRCCLK need to be parented to the SOC1 PLL. ST-Ericsson ID: 361212 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Id336deda4639729dd5b847c168e52c05393c1bfc Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34593 Reviewed-by: QATOOLS Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
2011-10-20ux500: mcde: Remove unnecessary MCDE fbdev updateMarcus Lorentzon
The first fbdev update in board-xxx-mcde.c is not needed. Screen will be updated at first fbdev pan. ST-Ericsson ID: 365249, 361835 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I8055448e9be967530b783734473a32d579ba74fd Signed-off-by: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34120 Reviewed-by: QATOOLS Reviewed-by: Jayarami REDDY <jayarami.reddy@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
2011-10-20ux500 pins: Set sleep-mode HSI GPIO configurationChris Blair
Configures the HSI GPIO pins so that they have the correct direction and level when the platform enters sleep (IOFORCE) and deep sleep (forced pin configuration). ST-Ericsson ID: 365658 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Iab2e7af5a1928d2cbdeb8833ab7334112528ac56 Signed-off-by: Chris Blair <chris.blair@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34610 Reviewed-by: Alex MACRO <alex.macro@stericsson.com> Reviewed-by: Pawel SZYSZUK <pawel.szyszuk@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2011-10-20ux500 pins: Configure HSI GPIO pins only for U9500Elena Uleia
ST-Ericsson Linux next: NA ST-Ericsson ID: 338703 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Yas Parvizian <yas.parvizian@stericsson.com> Change-Id: I42cca5d492c04090aa5d1ec1d81b5286cb8efafa Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32380 Tested-by: Christopher BLAIR <chris.blair@stericsson.com> Reviewed-by: Alex MACRO <alex.macro@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2011-10-20u5500: add correct GPIO devicesRabin Vincent
Add the correct devices which have all the platform data related to power management. ST-Ericsson ID: 361345 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I913d85ec7144e1f15e150cb365fbf1fdc54a4b97 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34637 Reviewed-by: QATOOLS Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2011-10-20dma40: remove export of stedma40_memcpy_sgRabin Vincent
The dmaengine framework has the API for this now. ST-Ericsson ID: 362972 ST-Ericsson FOSS-OUT ID: NA ST-Ericsson Linux next: NA Change-Id: I60e6df6532ec0d263bf40bb4b52f3f86d01b9989 Depends-on: I8ad8fb94eca418f889d31a37940b2d6fa09da404 Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34417 Tested-by: Narayanan GOPALAKRISHNAN <narayanan.gopalakrishnan@stericsson.com> Reviewed-by: QATOOLS
2011-10-19arm: ux500: add plldsi and dsi{0,1}clkMattias Nilsson
This patch adds the PLLDSI and the two subclocks dsi{0,1}clk to the U8500 clock tree. ST Ericsson ID: 343004, 359227 ST Ericsson FOSS-OUT ID: trivial Change-Id: I36b5a9b741da293b58ecd0bbeaf5678832104b34 Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34372 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-19arm: ux500: updated clk_set_rateMattias Nilsson
This patch updates clk_set_rate so that it only works for disabled clocks, as well as making sure that it doesn't interfere with itself at another depth of the clock tree. ST Ericsson ID: 343004, 359227 ST Ericsson FOSS-OUT ID: trivial Change-Id: I9dbf32f73e89f8f248e51b15097b50975b951a73 Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32967 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-19arm: ux500: add u8500 dsiescclk:sMattias Nilsson
This patch adds the DSI Escape clocks to the U8500 clock tree. ST Ericsson ID: 343004, 359227 ST Ericsson FOSS-OUT ID: trivial Change-Id: Ieead87a009fc36ccbfe91fc3e5b23ca431803925 Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32966 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-19ARM: ux500: board-mop500-stuib: bu21013: fix warningJonas Aaberg
ST-Ericsson Linux next: - ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I096faf6e6faa55b875dcac24f08473fadce5378b Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33870 Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
2011-10-19u8500_defconfig: Enable dynamic debugSzymon Janc
ST-Ericsson Linux next: NA ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ie9b663377cef8bb62ce9cd06fcca4f13516d5959 Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34366 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-19ARM: ux500: pm: Check proper return valuesJohan Rudholm
A return value from schedule_delayed_work not equal to zero does not mean failure, but the code in performance_register assumed so. ST-Ericsson ID: 357764 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ib8c822fdef98d721d37dcbb2fad278b7b3559610 Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34377 Reviewed-by: QATOOLS Reviewed-by: Per FORLIN <per.forlin@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-19ARM: ux500: suspend: Run suspend/resume at ARM_MAX_OPPMagnus Templing
ST-Ericsson ID: 366044 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Magnus Templing <magnus.templing@stericsson.com> Change-Id: Ic1fdefcd437b7fb1caec5af43221ed01c8a2a0b7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34428 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>