- 22 Sep, 2011 1 commit
-
-
Russell King authored
-
- 21 Sep, 2011 1 commit
-
-
git://git.yxit.co.uk/linuxRussell King authored
-
- 20 Sep, 2011 17 commits
-
-
Russell King authored
We need to ensure that state is pushed out from the L2 cache when suspending so that the resume paths can access their data before the MMU and caches have been re-initialized. Add the necessary calls to __cpu_suspend_save(). Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
Convert some of the sleep.S guts to C code, which makes it easier to use our macros and to add L2 cache handling. We provide a helper function, __cpu_suspend_save(), which deals with saving the common state, setting up for resume, and flushing caches. The remainder left as assembly code is the saving of the CPU general purpose registers, and allocating space on the stack to save the CPU specific registers and resume state. Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
We don't require cpu_resume_turn_mmu_on as we can combine the ldr instruction with the following code provided we ensure that cpu_resume_mmu is aligned for older CPUs. Note that we also align to a 32-byte boundary to ensure that the code can't cross a section boundary. Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
There is no need to save and restore the context ID register on ARMv6 and ARMv7 with a temporary page table as we write the context ID register when we switch back to the real page tables for the thread. Moreover, the temporary page tables do not contain any non-global mappings, so the context ID value should not be used. To be safe, initialize the register to a reserved context ID value. Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
Only use the preallocated page table during the resume, not while suspending. This avoids the overhead of having to switch unnecessarily to the resume page table in the suspend path. Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
Preallocate a page table and setup an identity mapping for the MMU enable code. This means we don't have to "borrow" a page table to do this, avoiding complexities with L2 cache coherency. Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Russell King authored
Ensure that the return value from __cpu_suspend is non-zero when aborting. Zero indicates a successful suspend occurred. Tested-by:
Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Jon Medhurst authored
Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
These benchmarks show the basic speed of kprobes and verify the success of optimisations done to the emulation of typical function entry instructions (i.e. push/stmdb). Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
This is used to verify that all combinations of CPU instructions described by the kprobes decoding tables have a test case. Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
These check that the bitmask and match value used in the decoding tables are self consistent. Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
The test code will be using kprobes' internal decoding tables so we need to export these for when then the tests are compiled as a module. Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
On ARM we have to simulate/emulate CPU instructions in order to singlestep them. This patch adds a framework which can be used to construct test cases for different instruction forms. It is described in detail in the in-source comments of kprobes-test.c Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
These test that the different kinds of probes can be successfully placed into ARM and Thumb code and that the handlers are called correctly when this code is executed. Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
Jon Medhurst authored
Signed-off-by:
Jon Medhurst <tixy@yxit.co.uk> Acked-by:
Nicolas Pitre <nicolas.pitre@linaro.org>
-
- 16 Sep, 2011 1 commit
-
-
- 14 Sep, 2011 7 commits
-
-
-
Nicolas Pitre authored
The rule to copy this file doesn't have to be forced. However lib1funcs.[So] have to be listed amongst the targets. This prevents zImage from being recreated needlessly. Signed-off-by:
Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Dave Martin <dave.martin@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@linaro.org>
-
Nicolas Pitre authored
Some old bootloaders can't be updated to a device tree capable one, yet they provide ATAGs with memory configuration, the ramdisk address, the kernel cmdline string, etc. To allow a device tree enabled kernel to be used with such bootloaders, it is necessary to convert those ATAGs into FDT properties and fold them into the DTB appended to zImage. Currently the following ATAGs are converted: ATAG_CMDLINE ATAG_MEM ATAG_INITRD2 If the corresponding information already exists in the appended DTB, it is replaced, otherwise the required node is created to hold it. The code looks for ATAGs at the location pointed by the value of r2 upon entry into the zImage code. If no ATAGs are found there, an attempt at finding ATAGs at the typical 0x100 offset from start of RAM is made. Otherwise the DTB is left unchanged. Thisstarted from an older patch from John Bonesio <bones@secretlab.ca>, with contributions from David Brown <davidb@codeaurora.org>. Signed-off-by:
Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Dave Martin <dave.martin@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@linaro.org>
-
Nicolas Pitre authored
This is a small subset of string functions needed by commits to come. Except for memcpy() which is unchanged from its original location, their implementation is meant to be small, and -Os is enforced to prevent gcc from doing pointless loop unrolling. Signed-off-by:
Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Dave Martin <dave.martin@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@linaro.org>
-
Nicolas Pitre authored
The appended DTB gets relocated with the decompressor code to get out of the way of the decompressed kernel. However the kernel's .bss section may be larger than the relocated code and data, and then the DTB gets overwritten. Let's make sure the relocation takes care of moving zImage far enough so no such conflict with .bss occurs. Thanks to Tony Lindgren <tony@atomide.com> for figuring out this issue. While at it, let's clean up the code a bit so that the wont_overwrite symbol is used while determining if a conflict exists, making the above change more precise as well as eliminating some ARM/THUMB alternates. Signed-off-by:
Nicolas Pitre <nicolas.pitre@linaro.org> Acked-by:
Tony Lindgren <tony@atomide.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Dave Martin <dave.martin@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@linaro.org>
-
John Bonesio authored
This patch provides the ability to boot using a device tree that is appended to the raw binary zImage (e.g. cat zImage <filename>.dtb > zImage_w_dtb). Signed-off-by:
John Bonesio <bones@secretlab.ca> [nico: ported to latest zImage changes plus additional cleanups/improvements] Signed-off-by:
Nicolas Pitre <nicolas.pitre@linaro.org> Acked-by:
Grant Likely <grant.likely@secretlab.ca> Acked-by:
Tony Lindgren <tony@atomide.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Dave Martin <dave.martin@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@linaro.org>
-
Nicolas Pitre authored
This is needed for proper alignment when the DTB appending feature is used. Signed-off-by:
Nicolas Pitre <nicolas.pitre@linaro.org> Acked-by:
Tony Lindgren <tony@atomide.com> Tested-by:
Shawn Guo <shawn.guo@linaro.org> Tested-by:
Dave Martin <dave.martin@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@linaro.org>
-
- 12 Sep, 2011 9 commits
-
-
Linus Torvalds authored
-
git://people.freedesktop.org/~airlied/linuxLinus Torvalds authored
* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: drm: Remove duplicate "return" statement drm/nv04/crtc: Bail out if FB is not bound to crtc drm/nouveau: fix nv04_sgdma_bind on non-"4kB pages" archs drm/nouveau: properly handle allocation failure in nouveau_sgdma_populate drm/nouveau: fix oops on pre-semaphore hardware drm/nv50/crtc: Bail out if FB is not bound to crtc drm/radeon/kms: fix DP detect and EDID fetch for DP bridges
-
git://git.linaro.org/people/arnd/arm-socLinus Torvalds authored
* 'fixes' of git://git.linaro.org/people/arnd/arm-soc: ARM: CSR: add missing sentinels to of_device_id tables ARM: cns3xxx: Fix newly introduced warnings in the PCIe code ARM: cns3xxx: Fix compile error caused by hardware.h removed ARM: davinci: fix cache flush build error ARM: davinci: correct MDSTAT_STATE_MASK ARM: davinci: da850 EVM: read mac address from SPI flash OMAP: omap_device: fix !CONFIG_SUSPEND case in _noirq handlers OMAP2430: hwmod: musb: add missing terminator to omap2430_usbhsotg_addrs[] OMAP3: clock: indicate that gpt12_fck and wdt1_fck are in the WKUP clockdomain OMAP4: clock: fix compile warning OMAP4: clock: re-enable previous clockdomain enable/disable sequence OMAP: clockdomain: Wait for powerdomain to be ON when using clockdomain force wakeup OMAP: powerdomains: Make all powerdomain target states as ON at init
-
Mathieu Desnoyers authored
The LTTng 2.0 kernel tracer (stand-alone module package, available at http://lttng.org) uses the 0xF6 ioctl range for tracer control and transport operations. Signed-off-by:
Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
git://github.com/chrismason/linuxLinus Torvalds authored
* 'for-linus' of git://github.com/chrismason/linux: Btrfs: add dummy extent if dst offset excceeds file end in Btrfs: calc file extent num_bytes correctly in file clone btrfs: xattr: fix attribute removal Btrfs: fix wrong nbytes information of the inode Btrfs: fix the file extent gap when doing direct IO Btrfs: fix unclosed transaction handle in btrfs_cont_expand Btrfs: fix misuse of trans block rsv Btrfs: reset to appropriate block rsv after orphan operations Btrfs: skip locking if searching the commit root in csum lookup btrfs: fix warning in iput for bad-inode Btrfs: fix an oops when deleting snapshots
-
Miklos Szeredi authored
kmemleak is reporting that 32 bytes are being leaked by FUSE: unreferenced object 0xe373b270 (size 32): comm "fusermount", pid 1207, jiffies 4294707026 (age 2675.187s) hex dump (first 32 bytes): 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<b05517d7>] kmemleak_alloc+0x27/0x50 [<b0196435>] kmem_cache_alloc+0xc5/0x180 [<b02455be>] fuse_alloc_forget+0x1e/0x20 [<b0245670>] fuse_alloc_inode+0xb0/0xd0 [<b01b1a8c>] alloc_inode+0x1c/0x80 [<b01b290f>] iget5_locked+0x8f/0x1a0 [<b0246022>] fuse_iget+0x72/0x1a0 [<b02461da>] fuse_get_root_inode+0x8a/0x90 [<b02465cf>] fuse_fill_super+0x3ef/0x590 [<b019e56f>] mount_nodev+0x3f/0x90 [<b0244e95>] fuse_mount+0x15/0x20 [<b019d1bc>] mount_fs+0x1c/0xc0 [<b01b5811>] vfs_kern_mount+0x41/0x90 [<b01b5af9>] do_kern_mount+0x39/0xd0 [<b01b7585>] do_mount+0x2e5/0x660 [<b01b7966>] sys_mount+0x66/0xa0 This leak report is consistent and happens once per boot on 3.1.0-rc5-dirty. This happens if a FORGET request is queued after the fuse device was released. Reported-by:
Sitsofe Wheeler <sitsofe@yahoo.com> Signed-off-by:
Miklos Szeredi <mszeredi@suse.cz> Tested-by:
Sitsofe Wheeler <sitsofe@yahoo.com> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
Miklos Szeredi authored
Commit 37fb3a30 ("fuse: fix flock") added in 3.1-rc4 caused flock() to fail with ENOSYS with the kernel ABI version 7.16 or earlier. Fix by falling back to testing FUSE_POSIX_LOCKS for ABI versions 7.16 and earlier. Reported-by:
Martin Ziegler <ziegler@email.mathematik.uni-freiburg.de> Signed-off-by:
Miklos Szeredi <mszeredi@suse.cz> Tested-by:
Martin Ziegler <ziegler@email.mathematik.uni-freiburg.de> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
-
Arnd Bergmann authored
-
- 11 Sep, 2011 4 commits
-
-
git://linuxtv.org/mchehab/for_linusLinus Torvalds authored
* 'v4l_for_linus' of git://linuxtv.org/mchehab/for_linus: [media] vp7045: fix buffer setup [media] nuvoton-cir: simplify raw IR sample handling [media] [Resend] viacam: Don't explode if pci_find_bus() returns NULL [media] v4l2: Fix documentation of the codec device controls [media] gspca - sonixj: Fix the darkness of sensor om6802 in 320x240 [media] gspca - sonixj: Fix wrong register mask for sensor om6802 [media] gspca - ov519: Fix LED inversion of some ov519 webcams [media] pwc: precedence bug in pwc_init_controls()
-
git://openrisc.net/~jonas/linuxLinus Torvalds authored
* 'for-linus' of git://openrisc.net/~jonas/linux: Add missing DMA ops openrisc: don't use pt_regs in struct sigcontext
-
Li Zefan authored
You can see there's no file extent with range [0, 4096]. Check this by btrfsck: # btrfsck /dev/sda7 root 5 inode 258 errors 100 ... Signed-off-by:
Li Zefan <lizf@cn.fujitsu.com> Signed-off-by:
Chris Mason <chris.mason@oracle.com>
-
Li Zefan authored
num_bytes should be 4096 not 12288. Signed-off-by:
Li Zefan <lizf@cn.fujitsu.com> Signed-off-by:
Chris Mason <chris.mason@oracle.com>
-