commit b278240839e20fa9384ea430df463b367b90e04e tree f99f0c8cdd4cc7f177cd75440e6bd181cded7fb3 parent dd77a4ee0f3981693d4229aa1d57cea9e526ff47 parent 3f75f42d7733e73aca5c78326489efd4189e0111 author Linus Torvalds Tue, 26 Sep 2006 13:07:55 -0700 committer Linus Torvalds Tue, 26 Sep 2006 13:07:55 -0700 Merge branch 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6 * 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6: (225 commits) [PATCH] Don't set calgary iommu as default y [PATCH] i386/x86-64: New Intel feature flags [PATCH] x86: Add a cumulative thermal throttle event counter. [PATCH] i386: Make the jiffies compares use the 64bit safe macros. [PATCH] x86: Refactor thermal throttle processing [PATCH] Add 64bit jiffies compares (for use with get_jiffies_64) [PATCH] Fix unwinder warning in traps.c [PATCH] x86: Allow disabling early pci scans with pci=noearly or disallowing conf1 [PATCH] x86: Move direct PCI scanning functions out of line [PATCH] i386/x86-64: Make all early PCI scans dependent on CONFIG_PCI [PATCH] Don't leak NT bit into next task [PATCH] i386/x86-64: Work around gcc bug with noreturn functions in unwinder [PATCH] Fix some broken white space in ia32_signal.c [PATCH] Initialize argument registers for 32bit signal handlers. [PATCH] Remove all traces of signal number conversion [PATCH] Don't synchronize time reading on single core AMD systems [PATCH] Remove outdated comment in x86-64 mmconfig code [PATCH] Use string instructions for Core2 copy/clear [PATCH] x86: - restore i8259A eoi status on resume [PATCH] i386: Split multi-line printk in oops output. ... commit dd77a4ee0f3981693d4229aa1d57cea9e526ff47 tree cb486be20b950201103a03636cbb1e1d180f0098 parent e8216dee838c09776680a6f1a2e54d81f3cdfa14 parent 7e9f4b2d3e21e87c26025810413ef1592834e63b author Linus Torvalds Tue, 26 Sep 2006 11:49:46 -0700 committer Linus Torvalds Tue, 26 Sep 2006 11:49:46 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (47 commits) Driver core: Don't call put methods while holding a spinlock Driver core: Remove unneeded routines from driver core Driver core: Fix potential deadlock in driver core PCI: enable driver multi-threaded probe Driver Core: add ability for drivers to do a threaded probe sysfs: add proper sysfs_init() prototype drivers/base: check errors drivers/base: Platform notify needs to occur before drivers attach to the device v4l-dev2: handle __must_check add CONFIG_ENABLE_MUST_CHECK add __must_check to device management code Driver core: fixed add_bind_files() definition Driver core: fix comments in drivers/base/power/resume.c sysfs_remove_bin_file: no return value, dump_stack on error kobject: must_check fixes Driver core: add ability for devices to create and remove bin files Class: add support for class interfaces for devices Driver core: create devices/virtual/ tree Driver core: add device_rename function Driver core: add ability for classes to handle devices properly ... commit e8216dee838c09776680a6f1a2e54d81f3cdfa14 tree a342f566fb564344911998088a6de92227a932dc parent e8df8c3304cfc7d68e9a6a7b6df6c64783cd6991 author Heiko Carstens Mon, 25 Sep 2006 23:33:11 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:11 -0700 [PATCH] s390: fix cmm kernel thread handling Convert cmm's usage of kernel_thread to kthread_run. Also create the cmmthread at module load time, so it is possible to check if creation of the thread fails. In addition the cmmthread now gets terminated when the module gets unloaded instead of leaving a stale kernel thread. Also check the return values of other registration functions at module load and handle their return values appropriately. Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e8df8c3304cfc7d68e9a6a7b6df6c64783cd6991 tree 19430fa49f774ebeaa7cf8d5d40c58600ad79bf5 parent 70e0eb8ef143f3729065c504177413ffe165af22 author Jeff Dike Mon, 25 Sep 2006 23:33:10 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:10 -0700 [PATCH] Make UML use ptrace-abi.h Include the host architecture's ptrace-abi.h instead of ptrace.h. There was some cpp mangling of names around the ptrace.h include to avoid symbol clashes between UML and the host architecture. Most of these can go away. The exception is struct pt_regs, which is convenient to have in userspace, but must be renamed in order that UML can define its own. ptrace-x86_64.h needed to have some now-obsolete cpp cruft and a declaration removed. Signed-off-by: Jeff Dike Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 70e0eb8ef143f3729065c504177413ffe165af22 tree 9bf2f94b51dcf2ab8a0cd0b8df775d3452ea1b74 parent b1fc0b1f21c4082d24d1f456a846b4fa7d16a70b author Jeff Dike Mon, 25 Sep 2006 23:33:09 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:10 -0700 [PATCH] Split i386 and x86_64 ptrace.h The use of SEGMENT_RPL_MASK in the i386 ptrace.h introduced by x86-allow-a-kernel-to-not-be-in-ring-0.patch broke the UML build, as UML includes the underlying architecture's ptrace.h, but has no easy access to the x86 segment definitions. Rather than kludging around this, as in the past, this patch splits the userspace-usable parts, which are the bits that UML needs, of ptrace.h into ptrace-abi.h, which is included back into ptrace.h. Thus, there is no net effect on i386. As a side-effect, this creates a ptrace header which is close to being usable in /usr/include. x86_64 is also treated in this way for consistency. There was some trailing whitespace there, which is cleaned up. Signed-off-by: Jeff Dike Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b1fc0b1f21c4082d24d1f456a846b4fa7d16a70b tree a2568be1bfd435ffcc398357577e8556b34a6fb9 parent 75e29b18d9a46bf3193278e92dc95609a8cca2ab author Alan Cox Mon, 25 Sep 2006 23:33:08 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:09 -0700 [PATCH] UML: tty locking Ensure current->signal->tty doesn't get freed during log_exec(). Signed-off-by: Alan Cox Acked-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 75e29b18d9a46bf3193278e92dc95609a8cca2ab tree 413935160ac2f65c13ec5260a60cdd1d9259fd83 parent bf61f50d63b4d9e30d7a86a2d44bb300ae7c1dd4 author Jeff Dike Mon, 25 Sep 2006 23:33:08 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:09 -0700 [PATCH] uml: stack usage reduction The KSTK_* macros used an inordinate amount of stack. In order to overcome an impedance mismatch between their interface, which just returns a single register value, and the interface of get_thread_regs, which took a full pt_regs, the implementation created an on-stack pt_regs, filled it in, and returned one field. do_task_stat calls KSTK_* twice, resulting in two local pt_regs, blowing out the stack. This patch changes the interface (and name) of get_thread_regs to just return a single register from a jmp_buf. The include of archsetjmp.h" in registers.h to get the definition of jmp_buf exposed a bogus include of in start_up.c. shouldn't be used anywhere any more since UML uses the klibc setjmp/longjmp. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bf61f50d63b4d9e30d7a86a2d44bb300ae7c1dd4 tree 0dff810d2cecf8ab8175ca3af8d81cef100d7f84 parent 602cc2418177a5b80f533f569e5a42c4495988c9 author Paolo 'Blaisorblade' Giarrusso Mon, 25 Sep 2006 23:33:07 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:09 -0700 [PATCH] uml: clean our set_ether_mac Clean set_ether_mac usage. Maybe could also be removed, but surely it can't be a global function taking a void* argument. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Jeff Dike Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 602cc2418177a5b80f533f569e5a42c4495988c9 tree a2b218e7850cbb2622de9dd20b3ea4f9895bd74f parent 537ae946e808d0f22d660f7a3500832fe0c07d14 author Jeff Dike Mon, 25 Sep 2006 23:33:06 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:08 -0700 [PATCH] uml: Remove unused variable timer_irq_inited was useless, so it is removed. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 537ae946e808d0f22d660f7a3500832fe0c07d14 tree 843f9adaa3c7de8b10c51d0059e2b567d81ff566 parent 4b84c69b5f6c08a540e3683f1360a6cdef2806c7 author Jeff Dike Mon, 25 Sep 2006 23:33:05 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:08 -0700 [PATCH] uml: timer cleanups set_interval returns an error instead of panicing if setitimer fails. Some of its callers now check the return. enable_timer is largely tt-mode-specific, so it is marked as such, and the only skas-mode caller is made to call set-interval instead. user_time_init was a no-value-added wrapper around set_interval, so it is gone. Since set_interval is now called from kernel code, callers no longer pass ITIMER_* to it. Instead, they pass a flag which is converted into ITIMER_REAL or ITIMER_VIRTUAL. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4b84c69b5f6c08a540e3683f1360a6cdef2806c7 tree 708f1e4cbc2771886aaeb8eadb3ae4d458bc8133 parent 19bdf0409f25a85a45874a5a8da6f3e4edcf4a49 author Jeff Dike Mon, 25 Sep 2006 23:33:04 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:07 -0700 [PATCH] uml: Move signal handlers to arch code Have most signals go through an arch-provided handler which recovers the sigcontext and then calls a generic handler. This replaces the ARCH_GET_SIGCONTEXT macro, which was somewhat fragile. On x86_64, recovering %rdx (which holds the sigcontext pointer) must be the first thing that happens. sig_handler duly invokes that first, but there is no guarantee that I can see that instructions won't be reordered such that %rdx is used before that. Having the arch provide the handler seems much more robust. Some signals in some parts of UML require their own handlers - these places don't call set_handler any more. They call sigaction or signal themselves. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 19bdf0409f25a85a45874a5a8da6f3e4edcf4a49 tree 82abcba44b8026b3dab0e6d26bdf3109bc6bb0cf parent 6edf428ed177e333863a8e5c37751a9ec176f241 author Jeff Dike Mon, 25 Sep 2006 23:33:04 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:07 -0700 [PATCH] uml: SIGIO cleanups - Various cleanups in the sigio code. - Removed explicit zero-initializations of a few structures. - Improved some error messages. - An API change - there was an asymmetry between reactivate_fd calling maybe_sigio_broken, which goes through all the machinery of figuring out if a file descriptor supports SIGIO and applying the workaround to it if not, and deactivate_fd, which just turns off the descriptor. This is changed so that only activate_fd calls maybe_sigio_broken, when the descriptor is first seen. reactivate_fd now calls add_sigio_fd, which is symmetric with ignore_sigio_fd. This removes a recursion which makes a critical section look more critical than it really was, obsoleting a big comment to that effect. This requires keeping track of all descriptors which are getting the SIGIO treatment, not just the ones being polled at any given moment, so that reactivate_fd, through add_sigio_fd, doesn't try to tell the SIGIO thread about descriptors it doesn't care about. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6edf428ed177e333863a8e5c37751a9ec176f241 tree cf7f3e70f4898d55dbbdbd982353057e4ef3babd parent 6b7aaad9ba4f2a059a70014be12a921eceebfc47 author Jeff Dike Mon, 25 Sep 2006 23:33:03 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:07 -0700 [PATCH] uml: Improve SIGBUS diagnostics UML can get a SIGBUS anywhere if the tmpfs mount being used for its memory runs out of space. This patch adds a printk before the panic to provide a clue as to what likely went wrong. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6b7aaad9ba4f2a059a70014be12a921eceebfc47 tree d9ba70b160b7df23dea33e5c8e83119ecdca7332 parent 5e1f65a67d76341795ea527d30bfdca03999d46b author Jeff Dike Mon, 25 Sep 2006 23:33:02 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:06 -0700 [PATCH] uml: Fix handling of failed execs of helpers There were some bugs in handling failures to exec helper programs. errno was passed back from the child with the wrong sign. It was also ignored. In the case where it mattered, the errno from the (successful) read in the parent was used instead. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5e1f65a67d76341795ea527d30bfdca03999d46b tree db642b9591fc67b9a32b4e8aaa9ee0ecdc7fd546 parent 8f80e9466e18288df7391c9d21532c4125ac9c62 author Jeff Dike Mon, 25 Sep 2006 23:33:01 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:06 -0700 [PATCH] uml: Whitespace fixes arch/um/kernel/tlb.c had some pretty serious whitespace problems. I also fixed some returns. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8f80e9466e18288df7391c9d21532c4125ac9c62 tree 2895ff7fc1414c9c92a92abbed6a28c7e3de38b3 parent 91b165c0594ab78c64f26d26e3174e6dfd60ed9d author Jeff Dike Mon, 25 Sep 2006 23:33:01 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:05 -0700 [PATCH] uml: Fix stack alignment Stack randomization needs to be conditional on the personality allowing it. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 91b165c0594ab78c64f26d26e3174e6dfd60ed9d tree 0730eefa9d4ce786f7f561e3b40700418d6d0970 parent 13c06be399902c9ebda08e092edb1614bb4a3761 author Jeff Dike Mon, 25 Sep 2006 23:33:00 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:05 -0700 [PATCH] uml: Use ARRAY_SIZE more assiduously There were a bunch of missed ARRAY_SIZE opportunities. Also, some formatting fixes in the affected areas of code. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 13c06be399902c9ebda08e092edb1614bb4a3761 tree c67134cfb7efd23ab7017fde32657fa3a7e58154 parent c5c6ba4e08ab9c9e390a0f3a7d9a5c332f5cc6ef author Jeff Dike Mon, 25 Sep 2006 23:32:59 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:05 -0700 [PATCH] uml: Use klibc setjmp/longjmp This patch adds an implementation of setjmp and longjmp to UML, allowing access to the inside of a jmpbuf without needing the access macros formerly provided by libc. The implementation is stolen from klibc. I copy the relevant files into arch/um. I have another patch which avoids the copying, but requires klibc be in the tree. setjmp and longjmp users required some tweaking. Includes of were removed and includes of the UML longjmp.h were added where necessary. There are also replacements of siglongjmp with UML_LONGJMP which I somehow missed earlier. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c5c6ba4e08ab9c9e390a0f3a7d9a5c332f5cc6ef tree 4e13a9eebd8f3901dcc187c585369ef843d1e1a7 parent 7d145aa3abf4d96c91f37c012facd5cfbb9010d1 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:58 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:04 -0700 [PATCH] PM: Add pm_trace switch Add the pm_trace attribute in /sys/power which has to be explicitly set to one to really enable the "PM tracing" code compiled in when CONFIG_PM_TRACE is set (which modifies the machine's CMOS clock in unpredictable ways). Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7d145aa3abf4d96c91f37c012facd5cfbb9010d1 tree 2ce0d857a23844b8501111f8e43c8ae91289e682 parent e1da95ae38afdcda83328300c4aed755d9fc01a6 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:57 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:04 -0700 [PATCH] i386: Detect clock skew during suspend Detect the situations in which the time after a resume from disk would be earlier than the time before the suspend and prevent them from happening on i386. Signed-off-by: Rafael J. Wysocki Acked-by: John Stultz Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1da95ae38afdcda83328300c4aed755d9fc01a6 tree e4d0c54a44df19235b656eae92ab3da2404024ba parent c8eb8b4025175f967af0ba8e933f23aa9954dc35 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:57 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:03 -0700 [PATCH] suspend: make it possible to disable serial console suspend Hack uart_suspend_port() and uart_resume_port() so that serial console ports are not suspended if CONFIG_DISABLE_CONSOLE_SUSPEND is set. This makes it possible to debug the suspend and resume routines of all device drivers as well as the lowest-level swsusp code with the help of the serial console. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c8eb8b4025175f967af0ba8e933f23aa9954dc35 tree 1e7dcfe6472aa0cae05651e375bebb3e7b5b9eb8 parent 940864ddabdb180e02041c4dcd46ba6f9eee732f author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:56 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:03 -0700 [PATCH] PM: make it possible to disable console suspending Change suspend_console() so that it waits for all consoles to flush the remaining messages and make it possible to switch the console suspending off with the help of a Kconfig option. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Cc: Stefan Seyfried Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 940864ddabdb180e02041c4dcd46ba6f9eee732f tree cee174e45717dce64f7108a1c74182e691c1c8c2 parent b788db79896ef2a5817b9395ad63573b254a6d93 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:55 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:02 -0700 [PATCH] swsusp: Use memory bitmaps during resume Make swsusp use memory bitmaps to store its internal information during the resume phase of the suspend-resume cycle. If the pfns of saveable pages are saved during the suspend phase instead of the kernel virtual addresses of these pages, we can use them during the resume phase directly to set the corresponding bits in a memory bitmap. Then, this bitmap is used to mark the page frames corresponding to the pages that were saveable before the suspend (aka "unsafe" page frames). Next, we allocate as many page frames as needed to store the entire suspend image and make sure that there will be some extra free "safe" page frames for the list of PBEs constructed later. Subsequently, the image is loaded and, if possible, the data loaded from it are written into their "original" page frames (ie. the ones they had occupied before the suspend). The image data that cannot be written into their "original" page frames are loaded into "safe" page frames and their "original" kernel virtual addresses, as well as the addresses of the "safe" pages containing their copies, are stored in a list of PBEs. Finally, the list of PBEs is used to copy the remaining image data into their "original" page frames (this is done atomically, by the architecture-dependent parts of swsusp). Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b788db79896ef2a5817b9395ad63573b254a6d93 tree 2ed150c373a6e0ceafb30b5d10ec5eacad39c6c8 parent 0bcd888d64684f896ffa70c1d16a42b00753c184 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:54 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:02 -0700 [PATCH] swsusp: Introduce memory bitmaps Introduce the memory bitmap data structure and make swsusp use in the suspend phase. The current swsusp's internal data structure is not very efficient from the memory usage point of view, so it seems reasonable to replace it with a data structure that will require less memory, such as a pair of bitmaps. The idea is to use bitmaps that may be allocated as sets of individual pages, so that we can avoid making allocations of order greater than 0. For this reason the memory bitmap structure consists of several linked lists of objects that contain pointers to memory pages with the actual bitmap data. Still, for a typical system all of these lists fit in a single page, so it's reasonable to introduce an additional mechanism allowing us to allocate all of them efficiently without sacrificing the generality of the design. This is done with the help of the chain_allocator structure and associated functions. We need to use two memory bitmaps during the suspend phase of the suspend-resume cycle. One of them is necessary for marking the saveable pages, and the second is used to mark the pages in which to store the copies of them (aka image pages). First, the bitmaps are created and we allocate as many image pages as needed (the corresponding bits in the second bitmap are set as soon as the pages are allocated). Second, the bits corresponding to the saveable pages are set in the first bitmap and the saveable pages are copied to the image pages. Finally, the first bitmap is used to save the kernel virtual addresses of the saveable pages and the second one is used to save the contents of the image pages. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0bcd888d64684f896ffa70c1d16a42b00753c184 tree 17c26a6d1b8236f7d4ebb8bc3475550ca961cd57 parent 75534b50cc658e951bcb213c2763c81e9f7b0b48 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:52 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:02 -0700 [PATCH] swsusp: Introduce some helpful constants Introduce some constants that hopefully will help improve the readability of code in kernel/power/snapshot.c. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 75534b50cc658e951bcb213c2763c81e9f7b0b48 tree 1686cfe1f88bb9cd8ce0d34477b2eaac83709703 parent dcbb5a54f6e3984efa24772394f2225b11495c55 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:52 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:01 -0700 [PATCH] Change the name of pagedir_nosave The name of the pagedir_nosave variable does not make sense any more, so it seems reasonable to change it to something more meaningful. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dcbb5a54f6e3984efa24772394f2225b11495c55 tree 60a3877a9f6b23ae42509773b93256c28329af59 parent cd560bb2f9e2cd451bb3942af43da19632ba4a8e author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:51 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:49:00 -0700 [PATCH] swsusp: clean up suspend header Remove some things that are no longer used or defined elsewhere from suspend.h and make the inline version of software_suspend() return the right error code. Signed-off-by: Rafael J. Wysocki Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cd560bb2f9e2cd451bb3942af43da19632ba4a8e tree bc533af52cc8686f53694cd60a974f7fd3bd80fc parent f6143aa60ed71e58578bc92cc64d98158a694d99 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:50 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:59 -0700 [PATCH] swsusp: Fix alloc_pagedir Get rid of the FIXME in kernel/power/snapshot.c#alloc_pagedir() and simplify the functions called by it. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f6143aa60ed71e58578bc92cc64d98158a694d99 tree aa3ccc4327ecf950abb15800e3d008cde6dc26f3 parent f623f0db8e6aa86a37be86167e4ff478821a9f4f author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:50 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:59 -0700 [PATCH] swsusp: Reorder memory-allocating functions Move some functions in kernel/power/snapshot.c to a better place (in the same file) and introduce free_image_page() (will be necessary in the future). Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f623f0db8e6aa86a37be86167e4ff478821a9f4f tree fab12e8dc57d14101e9e512ba708b83f74551dd9 parent e3920fb42c8ddfe63befb54d95c0e13eabacea9b author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:49 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:59 -0700 [PATCH] swsusp: Fix mark_free_pages Clean up mm/page_alloc.c#mark_free_pages() and make it avoid clearing PageNosaveFree for PageNosave pages. This allows us to get rid of an ugly hack in kernel/power/snapshot.c#copy_data_pages(). Additionally, the page-copying loop in copy_data_pages() is moved to an inline function. Signed-off-by: Rafael J. Wysocki Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e3920fb42c8ddfe63befb54d95c0e13eabacea9b tree 08371a71e58e6e9d3ec62dfa6a22b3b5e6ff0fd5 parent e8eff5ac294e12531c4195e0c15a222d3c9015e5 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:48 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:59 -0700 [PATCH] Disable CPU hotplug during suspend The current suspend code has to be run on one CPU, so we use the CPU hotplug to take the non-boot CPUs offline on SMP machines. However, we should also make sure that these CPUs will not be enabled by someone else after we have disabled them. The functions disable_nonboot_cpus() and enable_nonboot_cpus() are moved to kernel/cpu.c, because they now refer to some stuff in there that should better be static. Also it's better if disable_nonboot_cpus() returns an error instead of panicking if something goes wrong, and enable_nonboot_cpus() has no reason to panic(), because the CPUs may have been enabled by the userland before it tries to take them online. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e8eff5ac294e12531c4195e0c15a222d3c9015e5 tree d63a3f26e506c3468e071377fec7aa9944f24764 parent fb13a28b0f5ada60861868c4fa48a12bd0cb8dea author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:46 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] Make swsusp avoid memory holes and reserved memory regions on x86_64 On x86_64 machines with more than 2 GB of RAM there are large memory gaps (with no corresponding kernel virtual addresses) and reserved memory regions between areas of usable physical RAM. Moreover, if CONFIG_FLATMEM is set, they appear within the normal zone. swsusp should not try to save them, so the corresponding page structs have to be marked as 'nosave'. Signed-off-by: Rafael J. Wysocki Cc: Mel Gorman Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb13a28b0f5ada60861868c4fa48a12bd0cb8dea tree e0a4611621f2d5abc94f0b0ea5a2c41f2962e5e1 parent ae83c5eef59ffe6eb61110b8c8fd1ea3e0881712 author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:46 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] swsusp: struct snapshot_handle cleanup Add comments describing struct snapshot_handle and its members, change the confusing name of its member 'page' to 'cur'. Signed-off-by: Rafael J. Wysocki Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ae83c5eef59ffe6eb61110b8c8fd1ea3e0881712 tree 731e4d382ff408387624df1fc59e82ab50436f50 parent 546e0d271941dd1ff6961e2a1f7eac75f1fc277e author Rafael J. Wysocki Mon, 25 Sep 2006 23:32:45 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] swsusp: clean up browsing of pfns Clean up some loops over pfns for each zone in snapshot.c: reduce the number of additions to perform, rework detection of saveable pages and make the code a bit less difficult to understand, hopefully. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 546e0d271941dd1ff6961e2a1f7eac75f1fc277e tree 60c74a9598f7cb4622c1b6acd25df5df67284353 parent 8c002494b55119a3fd1dddee83b4fb75cfda47e5 author Andrew Morton Mon, 25 Sep 2006 23:32:44 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] swsusp: read speedup Implement async reads for swsusp resuming. Crufty old PIII testbox: 15.7 MB/s -> 20.3 MB/s Sony Vaio: 14.6 MB/s -> 33.3 MB/s I didn't implement the post-resume bio_set_pages_dirty(). I don't really understand why resume needs to run set_page_dirty() against these pages. It might be a worry that this code modifies PG_Uptodate, PG_Error and PG_Locked against the image pages. Can this possibly affect the resumed-into kernel? Hopefully not, if we're atomically restoring its mem_map? Cc: Pavel Machek Cc: "Rafael J. Wysocki" Cc: Jens Axboe Cc: Laurent Riffard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8c002494b55119a3fd1dddee83b4fb75cfda47e5 tree 11e68d48b80d729a492b0f43401798a366ad94b3 parent ab954160350c91c77ae03740ef90458c3ad5412c author Andrew Morton Mon, 25 Sep 2006 23:32:43 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] swsusp: add read-speed instrumentation Add some instrumentation to the swsusp readin code to show what bandwidth we're achieving. Cc: Pavel Machek Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ab954160350c91c77ae03740ef90458c3ad5412c tree 28f99d765c2c6d497a1f5543b1867875cd6102a5 parent 3a4f7577c9ef393ca80c783f02ffbc125de771c7 author Andrew Morton Mon, 25 Sep 2006 23:32:42 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] swsusp: write speedup Switch the swsusp writeout code from 4k-at-a-time to 4MB-at-a-time. Crufty old PIII testbox: 12.9 MB/s -> 20.9 MB/s Sony Vaio: 14.7 MB/s -> 26.5 MB/s The implementation is crude. A better one would use larger BIOs, but wouldn't gain any performance. The memcpys will be mostly pipelined with the IO and basically come for free. The ENOMEM path has not been tested. It should be. Cc: Pavel Machek Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3a4f7577c9ef393ca80c783f02ffbc125de771c7 tree 9b55b98309d0ac13e35db05379792d52b29a2345 parent 930631edd4b1fe2781d9fe90edbe35d89dfc94cc author Andrew Morton Mon, 25 Sep 2006 23:32:41 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] swsusp: add write-speed instrumentation Add some instrumentation to the swsusp writeout code to show what bandwidth we're achieving. Cc: Pavel Machek Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 930631edd4b1fe2781d9fe90edbe35d89dfc94cc tree 24341082c9043742e45f7865f54ad3223e2fd89e parent 060ec3d52db417a4fa554b6e14594ca62418c326 author Steven Whitehouse Mon, 25 Sep 2006 23:32:40 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:58 -0700 [PATCH] add DIV_ROUND_UP() Add the DIV_ROUND_UP() helper macro: divide `n' by `d', rounding up. Stolen from the gfs2 tree(!) because the swsusp patches need it. Signed-off-by: Steven Whitehouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 060ec3d52db417a4fa554b6e14594ca62418c326 tree dffaed20a64db6e891b5fb5648546eb337f7450d parent 182daa55679d9b3557d27609e7ab4bfab749ac5b author Fernando J. Pereda Mon, 25 Sep 2006 23:32:37 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:57 -0700 [PATCH] alpha: Fix ALPHA_EV56 dependencies typo There appears to be a typo in the EV56 config option. NORITAKE and PRIMO are be able to set a variation of either. Signed-off-by: Daniel Drake Cc: Richard Henderson Cc: Ivan Kokshaysky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 182daa55679d9b3557d27609e7ab4bfab749ac5b tree 00d49a49347a28b29b6011df0185ece1e4206f10 parent c7f40ff15aba95bc09a759024d62b2c344ef0856 author Josh Triplett Mon, 25 Sep 2006 23:32:36 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:57 -0700 [PATCH] mtrr: Add lock annotations for prepare_set and post_set The functions prepare_set and post_set in kernel/cpu/mtrr/generic.c wrap the spinlock set_atomicity_lock: prepare_set returns with the lock held, and post_set releases the lock without acquiring it. Add lock annotations to these two functions so that sparse can check callers for lock pairing, and so that sparse will not complain about these functions since they intentionally use locks in this manner. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c7f40ff15aba95bc09a759024d62b2c344ef0856 tree cccf693193af5253127726172461f5910f349e74 parent 0f0f1b400ce3c4780b9d974bc69e8b558d99aba4 author john stultz Mon, 25 Sep 2006 23:32:35 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:57 -0700 [PATCH] i386: Kill references to xtime Remove all references to xtime in i386 and replace them w/ get/set_timeofday(). Requires some ugly and uncertain changes to APM, but has been lightly tested to work. Signed-off-by: John Stultz Acked-by: Ingo Molnar Acked-by: Mikael Pettersson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0f0f1b400ce3c4780b9d974bc69e8b558d99aba4 tree 9346ccc10c544c24b89b4432ad02487406c4c48c parent a3bc0dbc81d36fd38991b4373f6de8e1a507605a author Alan Cox Mon, 25 Sep 2006 23:32:34 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] Voyager: tty locking Voyager fiddles with current->signal.tty without locking. It turns out that the code in question has already cleared current->signal.tty correctly because daemonize() does the right thing already. The signal handling also appears to be incorrect as it does an unprotected sigfillset that also appears unneccessary. As I don't have a bowtie and am therefore not a qualified voyager maintainer I leave that to James. Signed-off-by: Alan Cox Acked-by: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a3bc0dbc81d36fd38991b4373f6de8e1a507605a tree fc7f926365fbdd86fa80b633add01ee4d2f71e18 parent eaa70773e750cc09d60938bceacd028bc76b8e3a author Andrew Morton Mon, 25 Sep 2006 23:32:33 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] smp_call_function_single() cleanup If we're going to implement smp_call_function_single() on three architecture with the same prototype then it should have a declaration in a non-arch-specific header file. Move it into . Cc: Stephane Eranian Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eaa70773e750cc09d60938bceacd028bc76b8e3a tree c88635294b3e26059e25a0dce573bfb8c6ec14e3 parent 27d26666fc495166036f4ee2208df25ae7f89ab8 author Stephane Eranian Mon, 25 Sep 2006 23:32:32 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] i386: add smp_call_function_single Continiung the series of small patches necessary for the perfmon subsystem, here is a patch that adds support for the smp_call_function_single() function for i386. It exists for almost all other architectures but i386. The perfmon subsystem needs it in one case to free some state on a designated remote CPU. Signed-off-by: Stephane Eranian Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 27d26666fc495166036f4ee2208df25ae7f89ab8 tree ada276d4b65246e291c2ea8f031da51f1d213ac0 parent 2965a0e6da0ccd8971ccf2c00a02bfa6e212acdb author Rusty Russell Mon, 25 Sep 2006 23:32:32 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] x86: remove unused include from efi_stub.S Remove unnecessary include from efi_stub.S Signed-off-by: Zachary Amsden Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2965a0e6da0ccd8971ccf2c00a02bfa6e212acdb tree 63bb78c54718a395c76eca372b5fdcd1c8f3164d parent 6049742dbcecf170e903638a029f4dc280b9d53d author Rusty Russell Mon, 25 Sep 2006 23:32:31 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] x86: trivial move of ptep_set_access_flags Move ptep_set_access_flags to be closer to the other ptep accessors, and make the indentation standard. Signed-off-by: Zachary Amsden Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6049742dbcecf170e903638a029f4dc280b9d53d tree 1712d4116a622336f793dc4591b1e2ac85e0aa2e parent 673eae8230a192f07b8715b872d6925521e9738d author Rusty Russell Mon, 25 Sep 2006 23:32:30 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] x86: trivial move of __HAVE macros in i386 pagetable headers Move the __HAVE_ARCH_PTEP defines to accompany the function definitions. Anything else is just a complete nightmare to track through the 2/3-level paging code, and this caused duplicate definitions to be needed (pte_same), which could have easily been taken care of with the asm-generic pgtable functions. Signed-off-by: Zachary Amsden Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 673eae8230a192f07b8715b872d6925521e9738d tree 2917c765594015ebfad00bb4fc1feef41286ca1a parent 753b9f86e7aef76c2beda32668ce528f90cb1733 author Rusty Russell Mon, 25 Sep 2006 23:32:29 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] x86: trivial pgtable.h __ASSEMBLY__ move Parsing generic pgtable.h in assembler is simply crazy. None of this file is needed in assembler code, and C inline functions and structures routine break one or more different compiles. Signed-off-by: Zachary Amsden Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 753b9f86e7aef76c2beda32668ce528f90cb1733 tree 49b90d6553ae06058ece02fd3d005d5821c347ba parent 5091e746848f74c9a2c0579b4ef8d8cd1a6b135d author Dave Hansen Mon, 25 Sep 2006 23:32:29 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] x86: enable VMSPLIT for highmem kernels The current VMSPLIT Kconfig option is disabled whenever highmem is on. This is a bit screwy because the people who need to change VMSPLIT the most tend to be the ones with highmem and constrained lowmem. So, remove the highmem dependency. But, re-include the dependency for the "full 1GB of lowmem" option. You can't have the full 1GB of lowmem and highmem because of the need for the vmalloc(), kmap(), etc... areas. I thought there would be at least a bit of tweaking to do to get it to work, but everything seems OK. Boot tested on a 4GB x86 machine, and a 12GB 3-node NUMA-Q: elm3b82:~# cat /proc/meminfo MemTotal: 3695412 kB MemFree: 3659540 kB ... LowTotal: 2909008 kB LowFree: 2892324 kB ... elm3b82:~# zgrep PAE /proc/config.gz CONFIG_X86_PAE=y larry:~# cat /proc/meminfo MemTotal: 11845900 kB MemFree: 11786748 kB ... LowTotal: 2855180 kB LowFree: 2830092 kB Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5091e746848f74c9a2c0579b4ef8d8cd1a6b135d tree dba54fe198dbcde7a22873705241439859435f22 parent 9c9b8b388296ad5a306ab238dc677cfe6ff4cb12 author Ian Campbell Mon, 25 Sep 2006 23:32:28 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:56 -0700 [PATCH] Translate asm version of ELFNOTE macro into preprocessor macro I've come across some problems with the assembly version of the ELFNOTE macro currently in -mm. (in x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch) The first is that older gas does not support :varargs in .macro definitions (in my testing 2.17 does while 2.15 does not, I don't know when it became supported). The Changes file says binutils >= 2.12 so I think we need to avoid using it. There are no other uses in mainline or -mm. Old gas appears to just ignore it so you get "too many arguments" type errors. Secondly it seems that passing strings as arguments to assembler macros is broken without varargs. It looks like they get unquoted or each character is treated as a separate argument or something and this causes all manner of grief. I think this is because of the use of -traditional when compiling assembly files. Therefore I have translated the assembler macro into a pre-processor macro. I added the desctype as a separate argument instead of including it with the descdata as the previous version did since -traditional means the ELFNOTE definition after the #else needs to have the same number of arguments (I think so anyway, the -traditional CPP semantics are pretty fscking strange!). With this patch I am able to define elfnotes in assembly like this with both old and new assemblers. ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz, "linux") ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION, .asciz, "2.6") ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION, .asciz, "xen-3.0") ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE, .long, __PAGE_OFFSET) Which seems reasonable enough. Signed-off-by: Ian Campbell Acked-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9c9b8b388296ad5a306ab238dc677cfe6ff4cb12 tree 997b14216fa77db77052766b38dd0ef4cd829648 parent 461a9afff5e731d6337c0f5b08a1e727ccd57e0a author Jeremy Fitzhardinge Mon, 25 Sep 2006 23:32:26 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] x86: put .note.* sections into a PT_NOTE segment in vmlinux This patch will pack any .note.* section into a PT_NOTE segment in the output file. To do this, we tell ld that we need a PT_NOTE segment. This requires us to start explicitly mapping sections to segments, so we also need to explicitly create PT_LOAD segments for text and data, and map the sections to them appropriately. Fortunately, each section will default to its previous section's segment, so it doesn't take many changes to vmlinux.lds.S. This only changes i386 for now, but I presume the corresponding changes for other architectures will be as simple. This change also adds , which defines C and Assembler macros for actually creating ELF notes. Signed-off-by: Jeremy Fitzhardinge Cc: Eric W. Biederman Cc: Hollis Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 461a9afff5e731d6337c0f5b08a1e727ccd57e0a tree 2bd69049bb1c3e8eac7ccd753bf8f253a9ac19b6 parent 052e79941a042e5be4feffa03b1fd60d93fb9e9a author Zachary Amsden Mon, 25 Sep 2006 23:32:25 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] x86: add a bootparameter to reserve high linear address space Add a boot parameter to reserve high linear address space for hypervisors. This is necessary to allow dynamically loaded hypervisor modules, which might not happen until userspace is already running, and also provides a useful tool to benchmark the performance impact of reduced lowmem address space. Signed-off-by: Zachary Amsden Signed-off-by: Chris Wright Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 052e79941a042e5be4feffa03b1fd60d93fb9e9a tree fd3ac24a05029b50a6c6ddfa486ea441b4091806 parent 9f093394d75cd9c5df82c7a99c5eb5d7ce7ba199 author Jeremy Fitzhardinge Mon, 25 Sep 2006 23:32:25 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] x86: make __FIXADDR_TOP variable to allow it to make space for a hypervisor Make __FIXADDR_TOP a variable, so that it can be set to not get in the way of address space a hypervisor may want to reserve. Original patch by Gerd Hoffmann Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Chris Wright Cc: Gerd Hoffmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9f093394d75cd9c5df82c7a99c5eb5d7ce7ba199 tree fd2b12f36300fedf537ed27c7c7268aaf43ad159 parent 027a8c7e6067a1bcdef6775d1b1c08729dfbae51 author Rusty Russell Mon, 25 Sep 2006 23:32:24 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] x86: roll all the cpuid asm into one __cpuid call It's a little neater, and also means only one place to patch for paravirtualization. Signed-off-by: Rusty Russell Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 027a8c7e6067a1bcdef6775d1b1c08729dfbae51 tree 8c791bb8820d6c0734aded634a045369dd3347cc parent 05f4a3ec94281347e05c81eafefcfe5ea545c94c author Chris Wright Mon, 25 Sep 2006 23:32:23 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] x86: implement always-locked bit ops, for memory shared with an SMP hypervisor Add "always lock'd" implementations of set_bit, clear_bit and change_bit and the corresponding test_and_ functions. Also add "always lock'd" implementation of cmpxchg. These give guaranteed strong synchronisation and are required for non-SMP kernels running on an SMP hypervisor. Signed-off-by: Ian Pratt Signed-off-by: Christian Limpach Signed-off-by: Chris Wright Signed-off-by: Jeremy Fitzhardinge Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 05f4a3ec94281347e05c81eafefcfe5ea545c94c tree 1eafe968ec90ccac5aee8737cd8d9feb877b2c40 parent c94a62aae6ebc99b416e55c023b6f5a1d19a400b author Rusty Russell Mon, 25 Sep 2006 23:32:22 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] x86: remove locally-defined ldt structure in favour of standard type arch/i386/kernel/reboot.c defines its own struct to describe an ldt entry: it should use struct Xgt_desc_struct (currently load_ldt is a macro, so doesn't complain: paravirt patches make it warn). Signed-off-by: Rusty Russell Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c94a62aae6ebc99b416e55c023b6f5a1d19a400b tree 9176d4e723f6c427afef069b64753e1b1141afdb parent 3a750363e6075a28e5542ce93a69c620c0cfd605 author Neil Horman Mon, 25 Sep 2006 23:32:21 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] apm: clean up module initalization Clean up module initalization for apm.c. I had started by auditing for proper return code checks in misc_register, but I found that in the event of an initalization failure, a proc file and a kernel thread were left hanging out. this patch properly cleans up those loose ends on any initalization failure. Signed-off-by: Neil Horman Acked-by: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3a750363e6075a28e5542ce93a69c620c0cfd605 tree 4585aa2dbd2a8419ff2d52d5c0148cbb10502b42 parent 99325326a57b6a56595bb097655bee9fd27d77b0 author Rolf Eike Beer Mon, 25 Sep 2006 23:32:20 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] Use BUG_ON(foo) instead of "if (foo) BUG()" in include/asm-i386/dma-mapping.h Signed-off-by: Rolf Eike Beer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 99325326a57b6a56595bb097655bee9fd27d77b0 tree c86702f5fdcd8a75ed35c448980d50ae43cd804a parent 1447c27d38faf8fb03d4599e8082e507453ea3cf author Chuck Ebbert <76306.1226@compuserve.com> Mon, 25 Sep 2006 23:32:19 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:55 -0700 [PATCH] i386: show_registers(): try harder to print failing code show_registers() tries to dump failing code starting 43 bytes before the offending instruction, but this address can be bad, for example in a device driver where the failing instruction is less than 43 bytes from the start of the driver's code. When that happens, try to dump code starting at the failing instruction instead of printing no code at all. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Cc: Andi Kleen Cc: Keith Owens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1447c27d38faf8fb03d4599e8082e507453ea3cf tree 80134676ddcc63bdfbba86978a7a2d6b2d537e87 parent 2514183dff2d5282cb745af34f56d1b98e5b2df8 author Clemens Ladisch Mon, 25 Sep 2006 23:32:17 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] hpet rtc emulation: add watchdog timer To prevent the emulated RTC timer from stopping when interrupts are delayed for too long, disable interrupts around all of the register initialization, and check that the interrupt handler did not schedule the next interrupt in the past. Signed-off-by: Clemens Ladisch Cc: Venkatesh Pallipadi Cc: Andi Kleen Cc: Vojtech Pavlik Cc: Robert Picco Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2514183dff2d5282cb745af34f56d1b98e5b2df8 tree 9304ff119402d138bde6350df4b140749f7bf2b6 parent bc157b75960f1f33566074e820342690216629b9 author Haavard Skinnemoen Mon, 25 Sep 2006 23:32:17 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] AVR32 MTD: AT49BV6416 platform device for ATSTK1000 FRegister a platform device for the AT49BV6416 NOR flash chip on the ATSTK1000 development board for use by the physmap MTD driver. The SMC timings are set up before the platform device is registered so that no board-specific mapping driver is necessary. Signed-off-by: Haavard Skinnemoen Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bc157b75960f1f33566074e820342690216629b9 tree 3f494ec585eb4bf3e7def5de2b2455b13b5c42c8 parent 5f97f7f9400de47ae837170bb274e90ad3934386 author Haavard Skinnemoen Mon, 25 Sep 2006 23:32:16 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] AVR32 MTD: Static Memory Controller driver This patchset adds the necessary drivers and infrastructure to access the external flash on the ATSTK1000 board through the MTD subsystem. With this stuff in place, it will be possible to use a jffs2 filesystem stored in the external flash as a root filesystem. It might also be possible to update the boot loader if you drop the write protection of partition 0. As suggested by David Woodhouse, I reworked the patches to use the physmap driver instead of introducing a separate mapping driver for the ATSTK1000. I've also cleaned up the hsmc header by removing useless comments and converting spaces to tabs (my headerfile generator needs some work.) Unfortunately, I couldn't unlock the flash in fixup_use_atmel_lock because the erase regions hadn't been set up yet, so I had to do it from cfi_amdstd_setup instead. This patch: This adds a simple API for configuring the static memory controller along with an implementation for the Atmel HSMC. Signed-off-by: Haavard Skinnemoen Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5f97f7f9400de47ae837170bb274e90ad3934386 tree 514451e6dc6b46253293a00035d375e77b1c65ed parent 53e62d3aaa60590d4a69b4e07c29f448b5151047 author Haavard Skinnemoen Mon, 25 Sep 2006 23:32:13 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] avr32 architecture This adds support for the Atmel AVR32 architecture as well as the AT32AP7000 CPU and the AT32STK1000 development board. AVR32 is a new high-performance 32-bit RISC microprocessor core, designed for cost-sensitive embedded applications, with particular emphasis on low power consumption and high code density. The AVR32 architecture is not binary compatible with earlier 8-bit AVR architectures. The AVR32 architecture, including the instruction set, is described by the AVR32 Architecture Manual, available from http://www.atmel.com/dyn/resources/prod_documents/doc32000.pdf The Atmel AT32AP7000 is the first CPU implementing the AVR32 architecture. It features a 7-stage pipeline, 16KB instruction and data caches and a full Memory Management Unit. It also comes with a large set of integrated peripherals, many of which are shared with the AT91 ARM-based controllers from Atmel. Full data sheet is available from http://www.atmel.com/dyn/resources/prod_documents/doc32003.pdf while the CPU core implementation including caches and MMU is documented by the AVR32 AP Technical Reference, available from http://www.atmel.com/dyn/resources/prod_documents/doc32001.pdf Information about the AT32STK1000 development board can be found at http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3918 including a BSP CD image with an earlier version of this patch, development tools (binaries and source/patches) and a root filesystem image suitable for booting from SD card. Alternatively, there's a preliminary "getting started" guide available at http://avr32linux.org/twiki/bin/view/Main/GettingStarted which provides links to the sources and patches you will need in order to set up a cross-compiling environment for avr32-linux. This patch, as well as the other patches included with the BSP and the toolchain patches, is actively supported by Atmel Corporation. [dmccr@us.ibm.com: Fix more pxx_page macro locations] [bunk@stusta.de: fix `make defconfig'] Signed-off-by: Haavard Skinnemoen Signed-off-by: Adrian Bunk Signed-off-by: Dave McCracken Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 53e62d3aaa60590d4a69b4e07c29f448b5151047 tree 995a43e1dd5760ca4a7a2fb180582d19da7afb01 parent cf134483b2cd657039b305777215c531a1009947 author Ralf Baechle Mon, 25 Sep 2006 23:32:10 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] Alchemy: Delete unused pt_regs * argument from au1xxx_dbdma_chan_alloc The third argument of au1xxx_dbdma_chan_alloc's callback function is not used anywhere. Signed-off-by: Ralf Baechle Cc: David Howells Cc: Russell King Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cf134483b2cd657039b305777215c531a1009947 tree 2dad894d6e916bcf785611ded852151bbea5063b parent a8ad27d03f17e6154c61e81d4a7028c56ca6390d author David Howells Mon, 25 Sep 2006 23:32:09 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] FRV: Optimise ffs() Optimise ffs(x) by using fls(x & x - 1) which we optimise to use the SCAN instruction. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8ad27d03f17e6154c61e81d4a7028c56ca6390d tree 14d0367af1fafa359733b04326a95a4fe39557c5 parent 92fc707208bb2e601c24b5ab65db37bcb361b658 author David Howells Mon, 25 Sep 2006 23:32:08 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:54 -0700 [PATCH] FRV: Implement fls64() Implement fls64() for FRV without recource to conditional jumps. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 92fc707208bb2e601c24b5ab65db37bcb361b658 tree a0b2d56c30ade74946e9edd74f2d516f475c68f5 parent af8c65b57aaa4ae321af34dbfc5ca7f5625263fe author David Howells Mon, 25 Sep 2006 23:32:07 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] FRV: Fix fls() to handle bit 31 being set correctly Fix FRV fls() to handle bit 31 being set correctly (it should return 32 not 0). Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit af8c65b57aaa4ae321af34dbfc5ca7f5625263fe tree 404b7054e52f8cd0a4347649cae8b5ab82fec357 parent 88d6e19900366781739df033e9c0e2532e715fa5 author David Howells Mon, 25 Sep 2006 23:32:07 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] FRV: permit __do_IRQ() to be dispensed with Permit __do_IRQ() to be dispensed with based on a configuration option. Signed-off-by: David Howells Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 88d6e19900366781739df033e9c0e2532e715fa5 tree 97c6d48f0d707002c8239efb6e865a0133d69b68 parent 1bcbba306048ed86b935d57a95d887c23d52c94b author David Howells Mon, 25 Sep 2006 23:32:06 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] FRV: improve FRV's use of generic IRQ handling Improve FRV's use of generic IRQ handling: (*) Use generic_handle_irq() rather than __do_IRQ() as the latter is obsolete. (*) Don't implement enable() and disable() ops as these will fall back to using unmask() and mask(). (*) Provide mask_ack() functions to avoid a call each to mask() and ack(). (*) Make the cascade handlers always return IRQ_HANDLED. (*) Implement the mask() and unmask() functions in the same order as they're listed in the ops table. Signed-off-by: David Howells Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1bcbba306048ed86b935d57a95d887c23d52c94b tree 4c6e20b162415c79a177b72b97b6fb4d246a73b0 parent 8d6b5eeea5eb644232cbbbe1c927fdf051e60fa5 author David Howells Mon, 25 Sep 2006 23:32:04 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] FRV: Use the generic IRQ stuff Make the FRV arch use the generic IRQ code rather than having its own routines for doing so. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8d6b5eeea5eb644232cbbbe1c927fdf051e60fa5 tree 8ddaf9a7f48d8934cd7cc3dcf2784011fe5999ef parent b20c8122a3204496fca8b5343c93b60fe11dad04 author Andrew Morton Mon, 25 Sep 2006 23:32:04 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] binfmt_elf: consistently use loff_t As David Howells points out, binfmt_elf sometimes uses off_t, sometimes uses loff_t. Use loff_t throughout. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b20c8122a3204496fca8b5343c93b60fe11dad04 tree f807fb699dcec3f40a8de1a5c64f3653cf68bb6a parent bc7e982b84aceef0a040c88ff659eb5c83818f72 author Stephen Smalley Mon, 25 Sep 2006 23:32:03 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] selinux: fix tty locking Take tty_mutex when accessing ->signal->tty in selinux code. Noted by Alan Cox. Longer term, we are looking at refactoring the code to provide better encapsulation of the tty layer, but this is a simple fix that addresses the immediate bug. Signed-off-by: Stephen Smalley Acked-by: Alan Cox Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bc7e982b84aceef0a040c88ff659eb5c83818f72 tree 0e351e00c5fa90cd5b6a9b9f710e95ecb953b1f2 parent 23970741720360de9dd0a4e87fbeb1d5927aa474 author Eric Paris Mon, 25 Sep 2006 23:32:02 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] SELinux: convert sbsec semaphore to a mutex This patch converts the semaphore in the superblock security struct to a mutex. No locking changes or other code changes are done. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 23970741720360de9dd0a4e87fbeb1d5927aa474 tree 2dc28ddfeae751a673d43e1925fd131d6ed3e222 parent 296fddf7513c155adbd3a443d12add1f62b5cddb author Eric Paris Mon, 25 Sep 2006 23:32:01 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] SELinux: change isec semaphore to a mutex This patch converts the remaining isec->sem into a mutex. Very similar locking is provided as before only in the faster smaller mutex rather than a semaphore. An out_unlock path is introduced rather than the conditional unlocking found in the original code. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 296fddf7513c155adbd3a443d12add1f62b5cddb tree 1fc7e3067f1b635b34a178fcb9a96b88bf5c626e parent f3f8771420737004da55159c2f2dc0b6f483a4ef author Eric Paris Mon, 25 Sep 2006 23:32:00 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:53 -0700 [PATCH] SELinux: eliminate inode_security_set_security inode_security_set_sid is only called by security_inode_init_security, which is called when a new file is being created and needs to have its incore security state initialized and its security xattr set. This helper used to be called in other places in the past, but now only has the one. So this patch rolls inode_security_set_sid directly back into security_inode_init_security. There also is no need to hold the isec->sem while doing this, as the inode is not available to other threads at this point in time. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f3f8771420737004da55159c2f2dc0b6f483a4ef tree 01ff2aa4dc82cdc5b2383648f9fabb8378250d00 parent 016b9bdb81d9c9c7800e4e224ade38d8b37669d3 author Darrel Goeddel Mon, 25 Sep 2006 23:31:59 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] selinux: add support for range transitions on object classes Introduces support for policy version 21. This version of the binary kernel policy allows for defining range transitions on security classes other than the process security class. As always, backwards compatibility for older formats is retained. The security class is read in as specified when using the new format, while the "process" security class is assumed when using an older policy format. Signed-off-by: Darrel Goeddel Signed-off-by: Stephen Smalley Acked-by: James Morris Acked-by: Eric Paris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 016b9bdb81d9c9c7800e4e224ade38d8b37669d3 tree 47335b123973d918a9686cd2647e5e314ed2c1dd parent 9a2f44f01a67a6ecca71515af999895b45a2aeb0 author Stephen Smalley Mon, 25 Sep 2006 23:31:58 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] selinux: enable configuration of max policy version Enable configuration of SELinux maximum supported policy version to support legacy userland (init) that does not gracefully handle kernels that support newer policy versions two or more beyond the installed policy, as in FC3 and FC4. [bunk@stusta.de: improve Kconfig help text] Signed-off-by: Stephen Smalley Acked-by: James Morris Acked-by: Eric Paris Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9a2f44f01a67a6ecca71515af999895b45a2aeb0 tree badb3047f9a80013ad0d00a413f6ca038ba3f3ce parent 1a70cd40cb291c25b67ec0da715a49d76719329d author Stephen Smalley Mon, 25 Sep 2006 23:31:58 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] selinux: replace ctxid with sid in selinux_audit_rule_match interface Replace ctxid with sid in selinux_audit_rule_match interface for consistency with other interfaces. Signed-off-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1a70cd40cb291c25b67ec0da715a49d76719329d tree ffb4c6cd3f7ef1b92822ebbda11bd2b035c2bc86 parent 62bac0185ad3dfef11d9602980445c54d45199c6 author Stephen Smalley Mon, 25 Sep 2006 23:31:57 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] selinux: rename selinux_ctxid_to_string Rename selinux_ctxid_to_string to selinux_sid_to_string to be consistent with other interfaces. Signed-off-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 62bac0185ad3dfef11d9602980445c54d45199c6 tree 8478673a1dccac5f4e7add4ad802a2bf69b269a4 parent 89fa30242facca249aead2aac03c4c69764f911c author Stephen Smalley Mon, 25 Sep 2006 23:31:56 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] selinux: eliminate selinux_task_ctxid Eliminate selinux_task_ctxid since it duplicates selinux_task_get_sid. Signed-off-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 89fa30242facca249aead2aac03c4c69764f911c tree 1ac46b4777b819f2a4793d8e37330576ae5089ec parent 4415cc8df630b05d3a54267d5f3e5c0b63a4ec05 author Christoph Lameter Mon, 25 Sep 2006 23:31:55 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] NUMA: Add zone_to_nid function There are many places where we need to determine the node of a zone. Currently we use a difficult to read sequence of pointer dereferencing. Put that into an inline function and use throughout VM. Maybe we can find a way to optimize the lookup in the future. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4415cc8df630b05d3a54267d5f3e5c0b63a4ec05 tree 528a12aceb17a9c62323425bdc1dc989eb0375c5 parent 5a291b98b2116d669449885abef3000f747504b3 author Christoph Lameter Mon, 25 Sep 2006 23:31:55 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] Hugepages: Use page_to_nid rather than traversing zone pointers I found two location in hugetlb.c where we chase pointer instead of using page_to_nid(). Page_to_nid is more effective and can get the node directly from page flags. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5a291b98b2116d669449885abef3000f747504b3 tree 25b2c9a9e989bea0a860ae13dffbe0e3a243012b parent 83e33a4711760469f5c3861b8ffea4947656d4eb author Ram Gupta Mon, 25 Sep 2006 23:31:54 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] oom-kill: update comments to reflect current code Update the comments for __oom_kill_task() to reflect the code changes. Signed-off-by: Ram Gupta Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 83e33a4711760469f5c3861b8ffea4947656d4eb tree 3c6b534760dee49a77157eb6512aeb329e19bc2c parent 0ff38490c836dc379ff7ec45b10a15a662f4e5f6 author Christoph Lameter Mon, 25 Sep 2006 23:31:53 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:52 -0700 [PATCH] zone reclaim with slab: avoid unecessary off node allocations Minor performance fix. If we reclaimed enough slab pages from a zone then we can avoid going off node with the current allocation. Take care of updating nr_reclaimed when reclaiming from the slab. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0ff38490c836dc379ff7ec45b10a15a662f4e5f6 tree cb42d5d3cace3c8d12f0b304879039c503807981 parent 972d1a7b140569084439a81265a0f15b74e924e0 author Christoph Lameter Mon, 25 Sep 2006 23:31:52 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] zone_reclaim: dynamic slab reclaim Currently one can enable slab reclaim by setting an explicit option in /proc/sys/vm/zone_reclaim_mode. Slab reclaim is then used as a final option if the freeing of unmapped file backed pages is not enough to free enough pages to allow a local allocation. However, that means that the slab can grow excessively and that most memory of a node may be used by slabs. We have had a case where a machine with 46GB of memory was using 40-42GB for slab. Zone reclaim was effective in dealing with pagecache pages. However, slab reclaim was only done during global reclaim (which is a bit rare on NUMA systems). This patch implements slab reclaim during zone reclaim. Zone reclaim occurs if there is a danger of an off node allocation. At that point we 1. Shrink the per node page cache if the number of pagecache pages is more than min_unmapped_ratio percent of pages in a zone. 2. Shrink the slab cache if the number of the nodes reclaimable slab pages (patch depends on earlier one that implements that counter) are more than min_slab_ratio (a new /proc/sys/vm tunable). The shrinking of the slab cache is a bit problematic since it is not node specific. So we simply calculate what point in the slab we want to reach (current per node slab use minus the number of pages that neeed to be allocated) and then repeately run the global reclaim until that is unsuccessful or we have reached the limit. I hope we will have zone based slab reclaim at some point which will make that easier. The default for the min_slab_ratio is 5% Also remove the slab option from /proc/sys/vm/zone_reclaim_mode. [akpm@osdl.org: cleanups] Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 972d1a7b140569084439a81265a0f15b74e924e0 tree e86e676e407503ef3d98020a88bb925235f11434 parent 8417bba4b151346ed475fcc923693c9e3be89063 author Christoph Lameter Mon, 25 Sep 2006 23:31:51 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] ZVC: Support NR_SLAB_RECLAIMABLE / NR_SLAB_UNRECLAIMABLE Remove the atomic counter for slab_reclaim_pages and replace the counter and NR_SLAB with two ZVC counter that account for unreclaimable and reclaimable slab pages: NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE. Change the check in vmscan.c to refer to to NR_SLAB_RECLAIMABLE. The intend seems to be to check for slab pages that could be freed. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8417bba4b151346ed475fcc923693c9e3be89063 tree 93d559e32bc76077c1f837aed09a5df56849c610 parent d00bcc98d7ec2c87391c9d9e1cca519ef64d33ef author Christoph Lameter Mon, 25 Sep 2006 23:31:51 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] Replace min_unmapped_ratio by min_unmapped_pages in struct zone *_pages is a better description of the role of the variable. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d00bcc98d7ec2c87391c9d9e1cca519ef64d33ef tree 08b7d0fafba03d7b1d4d1d861897f78658aba173 parent 39bbcb8f88154c4ac9853baf3f1134af4c987517 author Christoph Lameter Mon, 25 Sep 2006 23:31:50 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] Extract the allocpercpu functions from the slab allocator The allocpercpu functions __alloc_percpu and __free_percpu() are heavily using the slab allocator. However, they are conceptually slab. This also simplifies SLOB (at this point slob may be broken in mm. This should fix it). Signed-off-by: Christoph Lameter Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 39bbcb8f88154c4ac9853baf3f1134af4c987517 tree 79f9867ead896c28d138545089e6d85db426c09f parent 006d22d9bbb7e66279ba5cc4556b54eeaf8fd556 author Christoph Lameter Mon, 25 Sep 2006 23:31:49 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] mm: do not check unpopulated zones for draining and counter updates If a zone is unpopulated then we do not need to check for pages that are to be drained and also not for vm counters that may need to be updated. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 006d22d9bbb7e66279ba5cc4556b54eeaf8fd556 tree 5af5a6676af234db8836bb1e3ef71e6cf8ccb0a9 parent 46a82b2d5591335277ed2930611f6acb4ce654ed author Christoph Lameter Mon, 25 Sep 2006 23:31:48 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] Optimize free_one_page Free one_page currently adds the page to a fake list and calls free_page_bulk. Fee_page_bulk takes it off again and then calles __free_one_page. Make free_one_page go directly to __free_one_page. Saves list on / off and a temporary list in free_one_page for higher ordered pages. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 46a82b2d5591335277ed2930611f6acb4ce654ed tree e90bc1843701af2012bae92564f7109027a8244f parent d2e7b7d0aa021847c59f882b066e7d3812902870 author Dave McCracken Mon, 25 Sep 2006 23:31:48 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:51 -0700 [PATCH] Standardize pxx_page macros One of the changes necessary for shared page tables is to standardize the pxx_page macros. pte_page and pmd_page have always returned the struct page associated with their entry, while pte_page_kernel and pmd_page_kernel have returned the kernel virtual address. pud_page and pgd_page, on the other hand, return the kernel virtual address. Shared page tables needs pud_page and pgd_page to return the actual page structures. There are very few actual users of these functions, so it is simple to standardize their usage. Since this is basic cleanup, I am submitting these changes as a standalone patch. Per Hugh Dickins' comments about it, I am also changing the pxx_page_kernel macros to pxx_page_vaddr to clarify their meaning. Signed-off-by: Dave McCracken Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d2e7b7d0aa021847c59f882b066e7d3812902870 tree 173a2271e657a1171c25de9b943bdfb92922acab parent 980128f223fa3c75e3ebdde650c9f1bcabd4c0a2 author Siddha, Suresh B Mon, 25 Sep 2006 23:31:47 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] fix potential stack overflow in mm/slab.c On High end systems (1024 or so cpus) this can potentially cause stack overflow. Fix the stack usage. Signed-off-by: Suresh Siddha Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 980128f223fa3c75e3ebdde650c9f1bcabd4c0a2 tree b0fa592cf621cebc674b9ec1a4ab4e2558ec7aaf parent fbd98167e653535c5816be154f2149c0efa7757d author Christoph Lameter Mon, 25 Sep 2006 23:31:46 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] Define easier to handle GFP_THISNODE In many places we will need to use the same combination of flags. Specify a single GFP_THISNODE definition for ease of use in gfp.h. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fbd98167e653535c5816be154f2149c0efa7757d tree 4cc984a81571c19cffa091d0bb467798396413e0 parent 1192d526412b1b8ccb1493064cea06efc12c772b author Christoph Lameter Mon, 25 Sep 2006 23:31:45 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] Profiling: require buffer allocation on the correct node Profiling really suffers with off node buffers. Fail if no memory is available on the nodes. The profiling code can deal with these failures should they occur. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1192d526412b1b8ccb1493064cea06efc12c772b tree 8caa9e73ae1ead8d057ca6d273ed091c324e9ef9 parent bd1b1677b5d4f39deda068bf5cc43ce3aaec839f author Christoph Lameter Mon, 25 Sep 2006 23:31:45 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] Cleanup: Add zone pointer to get_page_from_freelist There are frequent references to *z in get_page_from_freelist. Add an explicit zone variable that can be used in all these places. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bd1b1677b5d4f39deda068bf5cc43ce3aaec839f tree 89ac1d663b0c04da52af861e2bc7b0d7e49149f7 parent 3d99cfb5f46191fc68f1343feeb2cf835001f7d7 author Christoph Lameter Mon, 25 Sep 2006 23:31:44 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] Guarantee that the uncached allocator gets pages on the correct node The uncached allocator manages per node pools. Specify __GFP_THISNODE in order to force allocation on the indicated node or fail. The uncached allocator has already logic to deal with failing allocations. Signed-off-by: Christoph Lameter Cc: Andy Whitcroft Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3d99cfb5f46191fc68f1343feeb2cf835001f7d7 tree d679d78368b775e5f2dc4f94cc56e1512d663f86 parent 9b819d204cf602eab1a53a9ec4b8d2ca51e02a1d author Christoph Lameter Mon, 25 Sep 2006 23:31:43 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] sys_move_pages: Do not fall back to other nodes If the user specified a node where we should move the page to then we really do not want any other node. Signed-off-by: Christoph Lameter Cc: Andy Whitcroft Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9b819d204cf602eab1a53a9ec4b8d2ca51e02a1d tree 9442bf01a00a93a8ae54462fb4878588e1b2a6bf parent 056c62418cc639bf2fe962c6a6ee56054b838bc7 author Christoph Lameter Mon, 25 Sep 2006 23:31:40 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] Add __GFP_THISNODE to avoid fallback to other nodes and ignore cpuset/memory policy restrictions Add a new gfp flag __GFP_THISNODE to avoid fallback to other nodes. This flag is essential if a kernel component requires memory to be located on a certain node. It will be needed for alloc_pages_node() to force allocation on the indicated node and for alloc_pages() to force allocation on the current node. Signed-off-by: Christoph Lameter Cc: Andy Whitcroft Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 056c62418cc639bf2fe962c6a6ee56054b838bc7 tree 1c46080d82b43e406c6475199b9e171c2ea1cd6b parent 2ed3a4ef95ef1a13a424378c34ebd9b7e593f212 author Ravikiran G Thirumalai Mon, 25 Sep 2006 23:31:38 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] slab: fix lockdep warnings Place the alien array cache locks of on slab malloc slab caches on a seperate lockdep class. This avoids false positives from lockdep [akpm@osdl.org: build fix] Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Cc: Thomas Gleixner Acked-by: Arjan van de Ven Cc: Ingo Molnar Cc: Pekka Enberg Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2ed3a4ef95ef1a13a424378c34ebd9b7e593f212 tree bb08e0b3526ab71639197fad649349dc222e0451 parent 117f6eb1d8b8deb6f19fc88fc15bdb413c2a0c79 author Christoph Lameter Mon, 25 Sep 2006 23:31:38 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] slab: do not panic when alloc_kmemlist fails and slab is up It is fairly easy to get a system to oops by simply sizing a cache via /proc in such a way that one of the chaches (shared is easiest) becomes bigger than the maximum allowed slab allocation size. This occurs because enable_cpucache() fails if it cannot reallocate some caches. However, enable_cpucache() is used for multiple purposes: resizing caches, cache creation and bootstrap. If the slab is already up then we already have working caches. The resize can fail without a problem. We just need to return the proper error code. F.e. after this patch: # echo "size-64 10000 50 1000" >/proc/slabinfo -bash: echo: write error: Cannot allocate memory notice no OOPS. If we are doing a kmem_cache_create() then we also should not panic but return -ENOMEM. If on the other hand we do not have a fully bootstrapped slab allocator yet then we should indeed panic since we are unable to bring up the slab to its full functionality. Signed-off-by: Christoph Lameter Cc: Pekka Enberg Cc: Manfred Spraul Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 117f6eb1d8b8deb6f19fc88fc15bdb413c2a0c79 tree 471f09cb6223d8241c7edbc283c438414d7cf34e parent dbe5e69d2d6e591996ea2b817b887d03b60bb143 author Christoph Lameter Mon, 25 Sep 2006 23:31:37 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:50 -0700 [PATCH] slab: extract __kmem_cache_destroy from kmem_cache_destroy The ability to free memory allocated to a slab cache is also useful if an error occurs during setup of a slab. So extract the function. Signed-off-by: Christoph Lameter Cc: Pekka Enberg Cc: Manfred Spraul Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dbe5e69d2d6e591996ea2b817b887d03b60bb143 tree 09e21f2e0da60faef982d02a9224e62c409e776a parent da6052f7b33abe55fbfd7d2213815f58c00a88d4 author Christoph Hellwig Mon, 25 Sep 2006 23:31:36 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] slab: optimize kmalloc_node the same way as kmalloc [akpm@osdl.org: export fix] Signed-off-by: Christoph Hellwig Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit da6052f7b33abe55fbfd7d2213815f58c00a88d4 tree a2deda88ae8e9fc33d9a0ce80f42fde2c55c7bbc parent e5ac9c5aec7c4bc57fa93f2d37d760a22cb7bd33 author Nick Piggin Mon, 25 Sep 2006 23:31:35 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] update some mm/ comments Let's try to keep mm/ comments more useful and up to date. This is a start. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e5ac9c5aec7c4bc57fa93f2d37d760a22cb7bd33 tree 3f8824da788608592a06cd888eca220c297eb901 parent dfd54cbcc0b834652389ce99b5e656ea5f44a3c1 author Ravikiran G Thirumalai Mon, 25 Sep 2006 23:31:34 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] Add some comments to slab.c Also, checks if we get a valid slabp_cache for off slab slab-descriptors. We should always get this. If we don't, then in that case we, will have to disable off-slab descriptors for this cache and do the calculations again. This is a rare case, so add a BUG_ON, for now, just in case. Signed-off-by: Alok N Kataria Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Cc: Pekka Enberg Cc: Manfred Spraul Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dfd54cbcc0b834652389ce99b5e656ea5f44a3c1 tree 7c403a50b42b2809bb9b18122cbd83e8e2c180c9 parent b72f160443cb78b2f8addae6e331d2adaa70f869 author Heiko Carstens Mon, 25 Sep 2006 23:31:33 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] bootmem: use MAX_DMA_ADDRESS instead of LOW32LIMIT Introduce ARCH_LOW_ADDRESS_LIMIT which can be set per architecture to override the 4GB default limit used by the bootmem allocater within __alloc_bootmem_low() and __alloc_bootmem_low_node(). E.g. s390 needs a 2GB limit instead of 4GB. Acked-by: Ingo Molnar Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b72f160443cb78b2f8addae6e331d2adaa70f869 tree 3321d797b286aba5f16f83db07d0d3fe93993e73 parent 5081dde33f7a61d28d9b185cc386f12cb837c7a4 author Nick Piggin Mon, 25 Sep 2006 23:31:32 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] oom: more printk Print the name of the task invoking the OOM killer. Could make debugging easier. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5081dde33f7a61d28d9b185cc386f12cb837c7a4 tree d2e6f39db4005229580f571137a833c1dabfc38b parent af5b912435de32fbede08cee949429823ed49781 author Nick Piggin Mon, 25 Sep 2006 23:31:32 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] oom: kthread infinite loop fix Skip kernel threads, rather than having them return 0 from badness. Theoretically, badness might truncate all results to 0, thus a kernel thread might be picked first, causing an infinite loop. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit af5b912435de32fbede08cee949429823ed49781 tree ea1de1a800c6fc60537912d4dad35a3cf211c86e parent 4a3ede107e422a0c53d28024b0aa902ca22a8768 author Nick Piggin Mon, 25 Sep 2006 23:31:31 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:49 -0700 [PATCH] oom: swapoff tasks tweak PF_SWAPOFF processes currently cause select_bad_process to return straight away. Instead, give them high priority, so we will kill them first, however we also first ensure no parallel OOM kills are happening at the same time. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4a3ede107e422a0c53d28024b0aa902ca22a8768 tree 39f687cc0470cea45ed1387ebc16fee7d6066485 parent 50ec3bbffbe8a96347c54832d48110a5bc9e9ff8 author Nick Piggin Mon, 25 Sep 2006 23:31:30 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] oom: handle oom_disable exiting Having the oomkilladj == OOM_DISABLE check before the releasing check means that oomkilladj == OOM_DISABLE tasks exiting will not stop the OOM killer. Moving the test down will give the desired behaviour. Also: it will allow them to "OOM-kill" themselves if they are exiting. As per the previous patch, this is required to prevent OOM killer deadlocks (and they don't actually get killed, because they're already exiting -- they're simply allowed access to memory reserves). Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 50ec3bbffbe8a96347c54832d48110a5bc9e9ff8 tree 3941902b1c68525472ea3a502e76faa7fe675cd1 parent 7887a3da753e1ba8244556cc9a2b38c815bfe256 author Nick Piggin Mon, 25 Sep 2006 23:31:29 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] oom: handle current exiting If current *is* exiting, it should actually be allowed to access reserved memory rather than OOM kill something else. Can't do this via a straight check in page_alloc.c because that would allow multiple tasks to use up reserves. Instead cause current to OOM-kill itself which will mark it as TIF_MEMDIE. The current procedure of simply aborting the OOM-kill if a task is exiting can lead to OOM deadlocks. In the case of killing a PF_EXITING task, don't make a lot of noise about it. This becomes more important in future patches, where we can "kill" OOM_DISABLE tasks. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7887a3da753e1ba8244556cc9a2b38c815bfe256 tree f3563927615c6b9c260f7ca84567c7bca2dac91f parent 4ff1ffb4870b007b86f21e5f27eeb11498c4c077 author Nick Piggin Mon, 25 Sep 2006 23:31:29 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] oom: cpuset hint cpuset_excl_nodes_overlap does not always indicate that killing a task will not free any memory we for us. For example, we may be asking for an allocation from _anywhere_ in the machine, or the task in question may be pinning memory that is outside its cpuset. Fix this by just causing cpuset_excl_nodes_overlap to reduce the badness rather than disallow it. Signed-off-by: Nick Piggin Acked-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4ff1ffb4870b007b86f21e5f27eeb11498c4c077 tree f168408f90214873e1fa36733d29f2ba002fae46 parent 408d85441cd5a9bd6bc851d677a10c605ed8db5f author Nick Piggin Mon, 25 Sep 2006 23:31:28 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] oom: reclaim_mapped on oom Potentially it takes several scans of the lru lists before we can even start reclaiming pages. mapped pages, with young ptes can take 2 passes on the active list + one on the inactive list. But reclaim_mapped may not always kick in instantly, so it could take even more than that. Raise the threshold for marking a zone as all_unreclaimable from a factor of 4 time the pages in the zone to 6. Introduce a mechanism to force reclaim_mapped if we've reached a factor 3 and still haven't made progress. Previously, a customer doing stress testing was able to easily OOM the box after using only a small fraction of its swap (~100MB). After the patches, it would only OOM after having used up all swap (~800MB). Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 408d85441cd5a9bd6bc851d677a10c605ed8db5f tree 547ba9fbd4000585f14e9fcdd3cf539cde58a25a parent 6ddab3b9ebebc88bfdd8107c64f12d7e4480c559 author Nick Piggin Mon, 25 Sep 2006 23:31:27 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] oom: use unreclaimable info __alloc_pages currently starts shooting if page reclaim has failed to free up swap_cluster_max pages in one run through the priorities. This is not always a good indicator on its own, so make use of the all_unreclaimable logic as well: don't consider going OOM until all zones we're interested in are unreclaimable. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ddab3b9ebebc88bfdd8107c64f12d7e4480c559 tree 192edd3a85d3665bb7e44c429609a7357ba12bac parent ca5f9703dffa012cc46166e6206c5a992910e041 author Peter Zijlstra Mon, 25 Sep 2006 23:31:26 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] mm: swap write failure fixup Currently we can silently drop data if the write to swap failed. It usually doesn't result in data-corruption because on page-in the process will receive SIGBUS (assuming write-failure implies read-failure). This assumption might or might not be valid. This patch will avoid the page being discarded after a failed write. But will print a warning the sysadmin _should_ take to heart, if a lot of swap space becomes un-writeable, OOM is not far off. Tested by making the write fail 'randomly' once every 50 writes or so. [akpm@osdl.org: printk warning fix] Signed-off-by: Peter Zijlstra Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ca5f9703dffa012cc46166e6206c5a992910e041 tree d1fb19019db14465eb8674aa1b13c6506a569705 parent db37648cd6ce9b828abd6d49aa3d269926ee7b7d author Pekka Enberg Mon, 25 Sep 2006 23:31:25 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] slab: respect architecture and caller mandated alignment As explained by Heiko, on s390 (32-bit) ARCH_KMALLOC_MINALIGN is set to eight because their common I/O layer allocates data structures that need to have an eight byte alignment. This does not work when CONFIG_SLAB_DEBUG is enabled because kmem_cache_create will override alignment to BYTES_PER_WORD which is four. So change kmem_cache_create to ensure cache alignment is always at minimum what the architecture or caller mandates even if slab debugging is enabled. Cc: Heiko Carstens Cc: Christoph Lameter Signed-off-by: Manfred Spraul Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db37648cd6ce9b828abd6d49aa3d269926ee7b7d tree a0155c7897f4706386d10c8718f98687bc357c82 parent 28e4d965e6131ace1e813e93aebca89ac6b82dc1 author Nick Piggin Mon, 25 Sep 2006 23:31:24 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] mm: non syncing lock_page() lock_page needs the caller to have a reference on the page->mapping inode due to sync_page, ergo set_page_dirty_lock is obviously buggy according to its comments. Solve it by introducing a new lock_page_nosync which does not do a sync_page. akpm: unpleasant solution to an unpleasant problem. If it goes wrong it could cause great slowdowns while the lock_page() caller waits for kblockd to perform the unplug. And if a filesystem has special sync_page() requirements (none presently do), permanent hangs are possible. otoh, set_page_dirty_lock() is usually (always?) called against userspace pages. They are always up-to-date, so there shouldn't be any pending read I/O against these pages. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 28e4d965e6131ace1e813e93aebca89ac6b82dc1 tree 6c98aa227c5cfdc9fb51ddf53c4497127beb3ca1 parent bfa5bf6d6446f0028187a727f792fbc7934228ad author Nick Piggin Mon, 25 Sep 2006 23:31:23 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:48 -0700 [PATCH] mm: remove_mapping() safeness Some users of remove_mapping had been unsafe. Modify the remove_mapping precondition to ensure the caller has locked the page and obtained the correct mapping. Modify callers to ensure the mapping is the correct one. [hugh@veritas.com: swapper_space fix] Signed-off-by: Nick Piggin Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bfa5bf6d6446f0028187a727f792fbc7934228ad tree bd996f39ec18a78ea72209204328e48ebf6170f2 parent 7ff6f08295d90ab20d25200ef485ebb45b1b8d71 author Rolf Eike Beer Mon, 25 Sep 2006 23:31:22 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] Add kerneldocs for some functions in mm/memory.c These functions are already documented quite well with long comments. Now add kerneldoc style header to make this turn up in everyones favorite doc format. Signed-off-by: Rolf Eike Beer Cc: "Randy.Dunlap" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7ff6f08295d90ab20d25200ef485ebb45b1b8d71 tree 4c3410dcf5191ab574304f3ffbafd675545c2297 parent 8bc719d3cab8414938f9ea6e33b58d8810d18068 author Martin Peschke Mon, 25 Sep 2006 23:31:21 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] CPU hotplug compatible alloc_percpu() This patch splits alloc_percpu() up into two phases. Likewise for free_percpu(). This allows clients to limit initial allocations to online cpu's, and to populate or depopulate per-cpu data at run time as needed: struct my_struct *obj; /* initial allocation for online cpu's */ obj = percpu_alloc(sizeof(struct my_struct), GFP_KERNEL); ... /* populate per-cpu data for cpu coming online */ ptr = percpu_populate(obj, sizeof(struct my_struct), GFP_KERNEL, cpu); ... /* access per-cpu object */ ptr = percpu_ptr(obj, smp_processor_id()); ... /* depopulate per-cpu data for cpu going offline */ percpu_depopulate(obj, cpu); ... /* final removal */ percpu_free(obj); Signed-off-by: Martin Peschke Cc: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8bc719d3cab8414938f9ea6e33b58d8810d18068 tree 1afd4ce7865466bf9578ca746c63c1d351f07cdc parent 19655d3487001d7df0e10e9cbfc27c758b77c2b5 author Martin Schwidefsky Mon, 25 Sep 2006 23:31:20 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] out of memory notifier Add a notifer chain to the out of memory killer. If one of the registered callbacks could release some memory, do not kill the process but return and retry the allocation that forced the oom killer to run. The purpose of the notifier is to add a safety net in the presence of memory ballooners. If the resource manager inflated the balloon to a size where memory allocations can not be satisfied anymore, it is better to deflate the balloon a bit instead of killing processes. The implementation for the s390 ballooner is included. [akpm@osdl.org: cleanups] Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 19655d3487001d7df0e10e9cbfc27c758b77c2b5 tree 8d0aaa216bd32bd64e3a9652fd34d40bdb9d1075 parent 2f6726e54a9410e2e4cee864947c05e954051916 author Christoph Lameter Mon, 25 Sep 2006 23:31:19 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] linearly index zone->node_zonelists[] I wonder why we need this bitmask indexing into zone->node_zonelists[]? We always start with the highest zone and then include all lower zones if we build zonelists. Are there really cases where we need allocation from ZONE_DMA or ZONE_HIGHMEM but not ZONE_NORMAL? It seems that the current implementation of highest_zone() makes that already impossible. If we go linear on the index then gfp_zone() == highest_zone() and a lot of definitions fall by the wayside. We can now revert back to the use of gfp_zone() in mempolicy.c ;-) Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2f6726e54a9410e2e4cee864947c05e954051916 tree 91b1173dead0cfc4a25caacb34b6c80f526bbc59 parent 4e4785bcf0c8503224fa6c17d8e0228de781bff6 author Christoph Lameter Mon, 25 Sep 2006 23:31:18 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] Apply type enum zone_type After we have done this we can now do some typing cleanup. The memory policy layer keeps a policy_zone that specifies the zone that gets memory policies applied. This variable can now be of type enum zone_type. The check_highest_zone function and the build_zonelists funnctionm must then also take a enum zone_type parameter. Plus there are a number of loops over zones that also should use zone_type. We run into some troubles at some points with functions that need a zone_type variable to become -1. Fix that up. [pj@sgi.com: fix set_mempolicy() crash] Signed-off-by: Christoph Lameter Signed-off-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4e4785bcf0c8503224fa6c17d8e0228de781bff6 tree 002c0a051f7f4de4548ca0a8394b664f64c63627 parent b9b15780f808efa2c897f337644ba7a2bec03ecc author Christoph Lameter Mon, 25 Sep 2006 23:31:17 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] mempolicies: fix policy_zone check There is a check in zonelist_policy that compares pieces of the bitmap obtained from a gfp mask via GFP_ZONETYPES with a zone number in function zonelist_policy(). The bitmap is an ORed mask of __GFP_DMA, __GFP_DMA32 and __GFP_HIGHMEM. The policy_zone is a zone number with the possible values of ZONE_DMA, ZONE_DMA32, ZONE_HIGHMEM and ZONE_NORMAL. These are two different domains of values. For some reason seemed to work before the zone reduction patchset (It definitely works on SGI boxes since we just have one zone and the check cannot fail). With the zone reduction patchset this check definitely fails on systems with two zones if the system actually has memory in both zones. This is because ZONE_NORMAL is selected using no __GFP flag at all and thus gfp_zone(gfpmask) == 0. ZONE_DMA is selected when __GFP_DMA is set. __GFP_DMA is 0x01. So gfp_zone(gfpmask) == 1. policy_zone is set to ZONE_NORMAL (==1) if ZONE_NORMAL and ZONE_DMA are populated. For ZONE_NORMAL gfp_zone() yields 0 which is < policy_zone(ZONE_NORMAL) and so policy is not applied to regular memory allocations! Instead gfp_zone(__GFP_DMA) == 1 which results in policy being applied to DMA allocations! What we realy want in that place is to establish the highest allowable zone for a given gfp_mask. If the highest zone is higher or equal to the policy_zone then memory policies need to be applied. We have such a highest_zone() function in page_alloc.c. So move the highest_zone() function from mm/page_alloc.c into include/linux/gfp.h. On the way we simplify the function and use the new zone_type that was also introduced with the zone reduction patchset plus we also specify the right type for the gfp flags parameter. Signed-off-by: Christoph Lameter Signed-off-by: Lee Schermerhorn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b9b15780f808efa2c897f337644ba7a2bec03ecc tree 2fe544cc92bd8c17709966481d5be4832773fdb3 parent 27bf71c2a7e596ed34e9bf2d4a5030321a09a1ad author Christoph Lameter Mon, 25 Sep 2006 23:31:16 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] reduce MAX_NR_ZONES: fix i386 SRAT check for MAX_NR_ZONES We cannot check MAX_NR_ZONES since it not defined in the preprocessor anymore. So remove the check. The maximum number of zones per node for i386 is 3 since i386 does not support ZONE_DMA32. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 27bf71c2a7e596ed34e9bf2d4a5030321a09a1ad tree 30aca46595486b7a9d69d2d2f58b305cf32f41d9 parent e53ef38d05dd59ed281a35590e4a5b64d8ff4c52 author Christoph Lameter Mon, 25 Sep 2006 23:31:15 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:47 -0700 [PATCH] reduce MAX_NR_ZONES: remove display of counters for unconfigured zones eventcounters: Do not display counters for zones that are not available on an arch Do not define or display counters for the DMA32 and the HIGHMEM zone if such zones were not configured. [akpm@osdl.org: s390 fix] [heiko.carstens@de.ibm.com: s390 fix] Signed-off-by: Christoph Lameter Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e53ef38d05dd59ed281a35590e4a5b64d8ff4c52 tree 42e525df84454e89abd6cab8d7983a6a0188b6bb parent fb0e7942bdcbbd2f90e61cb4cfa4fa892a873f8a author Christoph Lameter Mon, 25 Sep 2006 23:31:14 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: make ZONE_HIGHMEM optional Make ZONE_HIGHMEM optional - ifdef out code and definitions related to CONFIG_HIGHMEM - __GFP_HIGHMEM falls back to normal allocations if there is no ZONE_HIGHMEM - GFP_ZONEMASK becomes 0x01 if there is no DMA32 and no HIGHMEM zone. [jdike@addtoit.com: build fix] Signed-off-by: Jeff Dike Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb0e7942bdcbbd2f90e61cb4cfa4fa892a873f8a tree 71344e9afafbd631f4ac010bc8c48e0b16737299 parent 2f1b6248682f8b39ca3c7e549dfc216d26c4109b author Christoph Lameter Mon, 25 Sep 2006 23:31:13 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: make ZONE_DMA32 optional Make ZONE_DMA32 optional - Add #ifdefs around ZONE_DMA32 specific code and definitions. - Add CONFIG_ZONE_DMA32 config option and use that for x86_64 that alone needs this zone. - Remove the use of CONFIG_DMA_IS_DMA32 and CONFIG_DMA_IS_NORMAL for ia64 and fix up the way per node ZVCs are calculated. - Fall back to prior GFP_ZONEMASK of 0x03 if there is no DMA32 zone. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2f1b6248682f8b39ca3c7e549dfc216d26c4109b tree 2340347d10fd0e564fb8527efe3ffbcb216e1906 parent 98d2b0ebda72fc39cdefd3720d50b9b3ce409085 author Christoph Lameter Mon, 25 Sep 2006 23:31:13 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: use enum to define zones, reformat and comment Use enum for zones and reformat zones dependent information Add comments explaning the use of zones and add a zones_t type for zone numbers. Line up information that will be #ifdefd by the following patches. [akpm@osdl.org: comment cleanups] Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 98d2b0ebda72fc39cdefd3720d50b9b3ce409085 tree ce51d8a2eab039c25667e6c448d5393582065d14 parent c1f60a5a419cc60aff27daffb150f5a3a3a79ef4 author Christoph Lameter Mon, 25 Sep 2006 23:31:12 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: page allocator ZONE_HIGHMEM cleanup page allocator ZONE_HIGHMEM fixups 1. We do not need to do an #ifdef in si_meminfo since both counters in use are zero if !CONFIG_HIGHMEM. 2. Add #ifdef in si_meminfo_node instead to avoid referencing zone information for ZONE_HIGHMEM if we do not have HIGHMEM (may not be there after the following patches). 3. Replace the use of ZONE_HIGHMEM with MAX_NR_ZONES in build_zonelists_node 4. build_zonelists_node: Remove BUG_ON for ZONE_HIGHMEM. Zone will be optional soon and thus BUG_ON cannot be triggered anymore. 5. init_free_area_core: Replace a use of ZONE_HIGHMEM with NR_MAX_ZONES. [akpm@osdl.org: cleanups] Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c1f60a5a419cc60aff27daffb150f5a3a3a79ef4 tree 8ae176462d6f220cd744ae6c3454113eebda02a8 parent 182e8e237349e7b6354f45aee4780b6423fd6a50 author Christoph Lameter Mon, 25 Sep 2006 23:31:11 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: move HIGHMEM counters into highmem.c/.h Move totalhigh_pages and nr_free_highpages() into highmem.c/.h Move the totalhigh_pages definition into highmem.c/.h. Move the nr_free_highpages function into highmem.c [yoichi_yuasa@tripeaks.co.jp: build fix] Signed-off-by: Christoph Lameter Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 182e8e237349e7b6354f45aee4780b6423fd6a50 tree a1b9fc186a514e547eb257803616d67ba7b69976 parent f06a96844a577c43249fce25809a4fae07407f46 author Christoph Lameter Mon, 25 Sep 2006 23:31:10 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: make display of highmem counters conditional on CONFIG_HIGHMEM Do not display HIGHMEM memory sizes if CONFIG_HIGHMEM is not set. Make HIGHMEM dependent texts and make display of highmem counters optional Some texts are depending on CONFIG_HIGHMEM. Remove those strings and remove the display of highmem counter values if CONFIG_HIGHMEM is not set. [akpm@osdl.org: remove some ifdefs] Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f06a96844a577c43249fce25809a4fae07407f46 tree 57fd0fdbfbcce081d27d5595de2886b748b8bb49 parent 776ed98b842ee8551793f842fe028c8091f3633e author Christoph Lameter Mon, 25 Sep 2006 23:31:10 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: fix MAX_NR_ZONES array initializations Fix array initialization in lots of arches The number of zones may now be reduced from 4 to 2 for many arches. Fix the array initialization for the zones array for all architectures so that it is not initializing a fixed number of elements. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 776ed98b842ee8551793f842fe028c8091f3633e tree face81e04a9d02147f5310b162614618cc94af2b parent f71bf0cac730ccb5ebcdf21747db75ae0445ccde author Christoph Lameter Mon, 25 Sep 2006 23:31:09 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:46 -0700 [PATCH] reduce MAX_NR_ZONES: remove two strange uses of MAX_NR_ZONES I keep seeing zones on various platforms that are never used and wonder why we compile support for them into the kernel. Counters show up for HIGHMEM and DMA32 that are alway zero. This patch allows the removal of ZONE_DMA32 for non x86_64 architectures and it will get rid of ZONE_HIGHMEM for arches not using highmem (like 64 bit architectures). If an arch does not define CONFIG_HIGHMEM then ZONE_HIGHMEM will not be defined. Similarly if an arch does not define CONFIG_ZONE_DMA32 then ZONE_DMA32 will not be defined. No current architecture uses all the 4 zones (DMA,DMA32,NORMAL,HIGH) that we have now. The patchset will reduce the number of zones for all platforms. On many platforms that do not have DMA32 or HIGHMEM this will reduce the number of zones by 50%. F.e. ia64 only uses DMA and NORMAL. Large amounts of memory can be saved for larger systemss that may have a few hundred NUMA nodes. With ZONE_DMA32 and ZONE_HIGHMEM support optional MAX_NR_ZONES will be 2 for many non i386 platforms and even for i386 without CONFIG_HIGHMEM set. Tested on ia64, x86_64 and on i386 with and without highmem. The patchset consists of 11 patches that are following this message. One could go even further than this patchset and also make ZONE_DMA optional because some platforms do not need a separate DMA zone and can do DMA to all of memory. This could reduce MAX_NR_ZONES to 1. Such a patchset will hopefully follow soon. This patch: Fix strange uses of MAX_NR_ZONES Sometimes we use MAX_NR_ZONES - x to refer to a zone. Make that explicit. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f71bf0cac730ccb5ebcdf21747db75ae0445ccde tree 2ba089be617218753b9d8b8faf05eb97eec42120 parent bbc7b92e337ac349ca917f9bf0b6be4743c14f3a author Franck Bui-Huu Mon, 25 Sep 2006 23:31:08 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: miscellaneous coding style fixes It fixes various coding style issues, specially when spaces are useless. For example '*' go next to the function name. Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bbc7b92e337ac349ca917f9bf0b6be4743c14f3a tree 7361d18c6b40957fda598cc9db0d02648b0918eb parent e786e86a542ccc1133f333402526ad00b9c088ae author Franck Bui-Huu Mon, 25 Sep 2006 23:31:07 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: use pfn/page conversion macros It also creates get_mapsize() helper in order to make the code more readable when it calculates the boot bitmap size. Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e786e86a542ccc1133f333402526ad00b9c088ae tree db08d5e3fd398e9f22128a6867aa12497abe3e7c parent bb0923a66820718f636736b22ce47372f79e3400 author Franck Bui-Huu Mon, 25 Sep 2006 23:31:06 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: remove useless headers inclusions Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bb0923a66820718f636736b22ce47372f79e3400 tree 56554098cb8cda63a1f805db211f1eea750befae parent 71fb2e8f8753b66b1f4295aa264a2eb4e69381e8 author Franck Bui-Huu Mon, 25 Sep 2006 23:31:05 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: limit to 80 columns width Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 71fb2e8f8753b66b1f4295aa264a2eb4e69381e8 tree c292c4018cfa87f69661a966b3b13c6d84e7e019 parent 69d49e681d7c7ed864a1ba45efc1e78433df8b9a author Franck Bui-Huu Mon, 25 Sep 2006 23:31:05 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: remove useless parentheses in bootmem header file Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 69d49e681d7c7ed864a1ba45efc1e78433df8b9a tree c203f8c571d428f15b5b964468b1b90ede973915 parent 2d1a07d487d8b36658404839cdf03a974968cefd author Franck Bui-Huu Mon, 25 Sep 2006 23:31:04 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: mark link_bootmem() as part of the __init section Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2d1a07d487d8b36658404839cdf03a974968cefd tree 1123ffc446b5e118d93c03d773f8b3815166c4ef parent 91023300057e96de7f46e95166a3e02394ae72f9 author Franck Bui-Huu Mon, 25 Sep 2006 23:31:03 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] bootmem: remove useless __init in header file __init in headers is pretty useless because the compiler doesn't check it, and they get out of sync relatively frequently. So if you see an __init in a header file, it's quite unreliable and you need to check the definition anyway. Signed-off-by: Franck Bui-Huu Cc: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 91023300057e96de7f46e95166a3e02394ae72f9 tree b28306089d7f5631bb023c7657808380359df316 parent b221385bc41d6789edde3d2fa0cb20d5045730eb author keith mannthey Mon, 25 Sep 2006 23:31:03 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] convert i386 NUMA KVA space to bootmem Address a long standing issue of booting with an initrd on an i386 numa system. Currently (and always) the numa kva area is mapped into low memory by finding the end of low memory and moving that mark down (thus creating space for the kva). The issue with this is that Grub loads initrds into this similar space so when the kernel check the initrd it finds it outside max_low_pfn and disables it (it thinks the initrd is not mapped into usable memory) thus initrd enabled kernels can't boot i386 numa :( My solution to the problem just converts the numa kva area to use the bootmem allocator to save it's area (instead of moving the end of low memory). Using bootmem allows the kva area to be mapped into more diverse addresses (not just the end of low memory) and enables the kva area to be mapped below the initrd if present. I have tested this patch on numaq(no initrd) and summit(initrd) i386 numa based systems. [akpm@osdl.org: cleanups] Signed-off-by: Keith Mannthey Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b221385bc41d6789edde3d2fa0cb20d5045730eb tree 93f3317247d587fd011eb9d77cd73a49670d8d5f parent 204ec841fbea3e5138168edbc3a76d46747cc987 author Adrian Bunk Mon, 25 Sep 2006 23:31:02 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] mm/: make functions static This patch makes the following needlessly global functions static: - slab.c: kmem_find_general_cachep() - swap.c: __page_cache_release() - vmalloc.c: __vmalloc_node() Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 204ec841fbea3e5138168edbc3a76d46747cc987 tree bc52089e8862b24d7f4153b56eaf7ecc3f1af9fe parent ee6a6457886a80415db209e87033b63f2b06558c author Peter Zijlstra Mon, 25 Sep 2006 23:31:01 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:45 -0700 [PATCH] mm: msync() cleanup With the tracking of dirty pages properly done now, msync doesn't need to scan the PTEs anymore to determine the dirty status. From: Hugh Dickins In looking to do that, I made some other tidyups: can remove several #includes, and sys_msync loop termination not quite right. Most of those points are criticisms of the existing sys_msync, not of your patch. In particular, the loop termination errors were introduced in 2.6.17: I did notice this shortly before it came out, but decided I was more likely to get it wrong myself, and make matters worse if I tried to rush a last-minute fix in. And it's not terribly likely to go wrong, nor disastrous if it does go wrong (may miss reporting an unmapped area; may also fsync file of a following vma). Signed-off-by: Peter Zijlstra Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ee6a6457886a80415db209e87033b63f2b06558c tree 227351bf31ccc6153879cc900c5d6a822832b645 parent e88dd6c11c5aef74d8b74a062767add53315533b author Peter Zijlstra Mon, 25 Sep 2006 23:31:00 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] mm: fixup do_wp_page() Wrt. the recent modifications in do_wp_page() Hugh Dickins pointed out: "I now realize it's right to the first order (normal case) and to the second order (ptrace poke), but not to the third order (ptrace poke anon page here to be COWed - perhaps can't occur without intervening mprotects)." This patch restores the old COW behaviour for anonymous pages. Signed-off-by: Peter Zijlstra Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e88dd6c11c5aef74d8b74a062767add53315533b tree cf1b66d110e33ab4d6a22438dff4508dd785acd1 parent c1e6098b23bb46e2b488fe9a26f831f867157483 author Peter Zijlstra Mon, 25 Sep 2006 23:30:59 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] mm: small cleanup of install_page() Smallish cleanup to install_page(), could save a memory read (haven't checked the asm output) and sure looks nicer. Signed-off-by: Peter Zijlstra Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c1e6098b23bb46e2b488fe9a26f831f867157483 tree 6bac4d3cfaab3e7153a15d1a24f9211b2de37ba6 parent edc79b2a46ed854595e40edcf3f8b37f9f14aa3f author Peter Zijlstra Mon, 25 Sep 2006 23:30:59 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] mm: optimize the new mprotect() code a bit mprotect() resets the page protections, which could result in extra write faults for those pages whose dirty state we track using write faults and are dirty already. Signed-off-by: Peter Zijlstra Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit edc79b2a46ed854595e40edcf3f8b37f9f14aa3f tree c1120bebede9660ab00f9439aa7a84ab9434ac38 parent d08b3851da41d0ee60851f2c75b118e1f7a5fc89 author Peter Zijlstra Mon, 25 Sep 2006 23:30:58 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] mm: balance dirty pages Now that we can detect writers of shared mappings, throttle them. Avoids OOM by surprise. Signed-off-by: Peter Zijlstra Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d08b3851da41d0ee60851f2c75b118e1f7a5fc89 tree a01f6930a1387e8f66607e2fe16c62bb7044353b parent 725d704ecaca4a43f067092c140d4f3271cf2856 author Peter Zijlstra Mon, 25 Sep 2006 23:30:57 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] mm: tracking shared dirty pages Tracking of dirty pages in shared writeable mmap()s. The idea is simple: write protect clean shared writeable pages, catch the write-fault, make writeable and set dirty. On page write-back clean all the PTE dirty bits and write protect them once again. The implementation is a tad harder, mainly because the default backing_dev_info capabilities were too loosely maintained. Hence it is not enough to test the backing_dev_info for cap_account_dirty. The current heuristic is as follows, a VMA is eligible when: - its shared writeable (vm_flags & (VM_WRITE|VM_SHARED)) == (VM_WRITE|VM_SHARED) - it is not a 'special' mapping (vm_flags & (VM_PFNMAP|VM_INSERTPAGE)) == 0 - the backing_dev_info is cap_account_dirty mapping_cap_account_dirty(vma->vm_file->f_mapping) - f_op->mmap() didn't change the default page protection Page from remap_pfn_range() are explicitly excluded because their COW semantics are already horrid enough (see vm_normal_page() in do_wp_page()) and because they don't have a backing store anyway. mprotect() is taught about the new behaviour as well. However it overrides the last condition. Cleaning the pages on write-back is done with page_mkclean() a new rmap call. It can be called on any page, but is currently only implemented for mapped pages, if the page is found the be of a VMA that accounts dirty pages it will also wrprotect the PTE. Finally, in fs/buffers.c:try_to_free_buffers(); remove clear_page_dirty() from under ->private_lock. This seems to be safe, since ->private_lock is used to serialize access to the buffers, not the page itself. This is needed because clear_page_dirty() will call into page_mkclean() and would thereby violate locking order. [dhowells@redhat.com: Provide a page_mkclean() implementation for NOMMU] Signed-off-by: Peter Zijlstra Cc: Hugh Dickins Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 725d704ecaca4a43f067092c140d4f3271cf2856 tree 320cf8ab5457ac6c01c05da8c30d6026538ee259 parent a6ca1b99ed434f3fb41bbed647ed36c0420501e5 author Nick Piggin Mon, 25 Sep 2006 23:30:55 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] mm: VM_BUG_ON Introduce a VM_BUG_ON, which is turned on with CONFIG_DEBUG_VM. Use this in the lightweight, inline refcounting functions; PageLRU and PageActive checks in vmscan, because they're pretty well confined to vmscan. And in page allocate/free fastpaths which can be the hottest parts of the kernel for kbuilds. Unlike BUG_ON, VM_BUG_ON must not be used to execute statements with side-effects, and should not be used outside core mm code. Signed-off-by: Nick Piggin Cc: Hugh Dickins Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a6ca1b99ed434f3fb41bbed647ed36c0420501e5 tree 59bb799e202f912ced4230e6b4c194c9c0097758 parent 3998b9301d3d55be8373add22b6bc5e11c1d9b71 author James Bottomley Mon, 25 Sep 2006 23:30:55 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] update to the kernel kmap/kunmap API Give non-highmem architectures access to the kmap API for the purposes of overriding (this is what the attached patch does). The proposal is that we should now require all architectures with coherence issues to manage data coherence via the kmap/kunmap API. Thus driver writers never have to write code like kmap(page) modify data in page flush_kernel_dcache_page(page) kunmap(page) instead, kmap/kunmap will manage the coherence and driver (and filesystem) writers don't need to worry about how to flush between kmap and kunmap. For most architectures, the page only needs to be flushed if it was actually written to *and* there are user mappings of it, so the best implementation looks to be: clear the page dirty pte bit in the kernel page tables on kmap and on kunmap, check page->mappings for user maps, and then the dirty bit, and only flush if it both has user mappings and is dirty. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3998b9301d3d55be8373add22b6bc5e11c1d9b71 tree 9ec65c5b492a9bffc46467f4210739cd07ac510c parent 632bbfeee4f042c05bc65150b4433a297d3fe387 author Jan Kara Mon, 25 Sep 2006 23:30:53 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] jbd: fix commit of ordered data buffers Original commit code assumes, that when a buffer on BJ_SyncData list is locked, it is being written to disk. But this is not true and hence it can lead to a potential data loss on crash. Also the code didn't count with the fact that journal_dirty_data() can steal buffers from committing transaction and hence could write buffers that no longer belong to the committing transaction. Finally it could possibly happen that we tried writing out one buffer several times. The patch below tries to solve these problems by a complete rewrite of the data commit code. We go through buffers on t_sync_datalist, lock buffers needing write out and store them in an array. Buffers are also immediately refiled to BJ_Locked list or unfiled (if the write out is completed). When the array is full or we have to block on buffer lock, we submit all accumulated buffers for IO. [suitable for 2.6.18.x around the 2.6.19-rc2 timeframe] Signed-off-by: Jan Kara Cc: Badari Pulavarty Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 632bbfeee4f042c05bc65150b4433a297d3fe387 tree ce67b5fa4bec38610fc0ecb9b20be6aa69763bb3 parent 0a2966b48fb784e437520e400ddc94874ddbd4e8 author Jan Blunck Mon, 25 Sep 2006 23:30:53 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:44 -0700 [PATCH] trigger a syntax error if percpu macros are incorrectly used get_cpu_var()/per_cpu()/__get_cpu_var() arguments must be simple identifiers. Otherwise the arch dependent implementations might break. This patch enforces the correct usage of the macros by producing a syntax error if the variable is not a simple identifier. Signed-off-by: Jan Blunck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0a2966b48fb784e437520e400ddc94874ddbd4e8 tree 1bb2a4d2c33aa9d60eb427b0b4bf189e65073caf parent 656ddf798dbe588217c97e58b9cfdfce649ebdc3 author Christoph Lameter Mon, 25 Sep 2006 23:30:51 -0700 committer Linus Torvalds Tue, 26 Sep 2006 08:48:43 -0700 [PATCH] Fix longstanding load balancing bug in the scheduler The scheduler will stop load balancing if the most busy processor contains processes pinned via processor affinity. The scheduler currently only does one search for busiest cpu. If it cannot pull any tasks away from the busiest cpu because they were pinned then the scheduler goes into a corner and sulks leaving the idle processors idle. F.e. If you have processor 0 busy running four tasks pinned via taskset, there are none on processor 1 and one just started two processes on processor 2 then the scheduler will not move one of the two processes away from processor 2. This patch fixes that issue by forcing the scheduler to come out of its corner and retrying the load balancing by considering other processors for load balancing. This patch was originally developed by John Hawkes and discussed at http://marc.theaimsgroup.com/?l=linux-kernel&m=113901368523205&w=2. I have removed extraneous material and gone back to equipping struct rq with the cpu the queue is associated with since this makes the patch much easier and it is likely that others in the future will have the same difficulty of figuring out which processor owns which runqueue. The overhead added through these patches is a single word on the stack if the kernel is configured to support 32 cpus or less (32 bit). For 32 bit environments the maximum number of cpus that can be configued is 255 which would result in the use of 32 bytes additional on the stack. On IA64 up to 1k cpus can be configured which will result in the use of 128 additional bytes on the stack. The maximum additional cache footprint is one cacheline. Typically memory use will be much less than a cacheline and the additional cpumask will be placed on the stack in a cacheline that already contains other local variable. Signed-off-by: Christoph Lameter Cc: John Hawkes Cc: "Siddha, Suresh B" Cc: Ingo Molnar Cc: Nick Piggin Cc: Peter Williams Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3f75f42d7733e73aca5c78326489efd4189e0111 tree cb96f8782e46e1efd06497cafd8a99fa9cddaecc parent dcf10307c3fff2bca4b104ad8fe4e3aa8dcb2ad1 author Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] Don't set calgary iommu as default y Most systems don't need it. Signed-off-by: Andi Kleen commit dcf10307c3fff2bca4b104ad8fe4e3aa8dcb2ad1 tree d5c917d05d4bf14e3c0c233a45f2bb028dfe4c70 parent 3222b36f46c22f46697a0a53fa8804153a32669f author Dave Jones Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] i386/x86-64: New Intel feature flags Add supplemental SSE3 instructions flag, and Direct Cache Access flag. As described in "Intel Processor idenfication and the CPUID instruction AP485 Sept 2006" AK: also added for x86-64 Signed-off-by: Dave Jones Signed-off-by: Andi Kleen commit 3222b36f46c22f46697a0a53fa8804153a32669f tree cf3625063b02ac9854ec57682ac8cad06f92267d parent 66aea9913cf435fe92ebb7bf869b4f15901ab993 author Dmitriy Zavin Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] x86: Add a cumulative thermal throttle event counter. The counter is exported to /sys that keeps track of the number of thermal events, such that the user knows how bad the thermal problem might be (since the logging to syslog and mcelog is rate limited). AK: Fixed cpu hotplug locking Signed-off-by: Dmitriy Zavin Signed-off-by: Andi Kleen commit 66aea9913cf435fe92ebb7bf869b4f15901ab993 tree 2c64fb8515ee354fea964942cb2f935266501e8c parent 15d5f8398311f565682959daaca30e3ca7aea600 author Dmitriy Zavin Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] i386: Make the jiffies compares use the 64bit safe macros. Signed-off-by: Dmitriy Zavin Signed-off-by: Andi Kleen commit 15d5f8398311f565682959daaca30e3ca7aea600 tree ba38e77782832191dd38e182e99525870f83c085 parent 3b171672831b9633c2ed8fa94805255cd4d5af19 author Dmitriy Zavin Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] x86: Refactor thermal throttle processing Refactor the event processing (syslog messaging and rate limiting) into separate file therm_throt.c. This allows consistent reporting of CPU thermal throttle events. After ACK'ing the interrupt, if the event is current, the user (p4.c/mce_intel.c) calls therm_throt_process to log (and rate limit) the event. If that function returns 1, the user has the option to log things further (such as to mce_log in x86_64). AK: minor cleanup Signed-off-by: Dmitriy Zavin Signed-off-by: Andi Kleen commit 3b171672831b9633c2ed8fa94805255cd4d5af19 tree 42b64b8f45166e58347f32b4e0d381c888981542 parent b89ebd0b0a65d5371aa9ad98e873c4616056ca68 author Dmitriy Zavin Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] Add 64bit jiffies compares (for use with get_jiffies_64) The current time_before/time_after macros will fail typechecks when passed u64 values (as returned by get_jiffies_64()). On 64bit systems, this will just result in a warning about mismatching types without explicit casts, but since unsigned long and u64 (unsigned long long) are of same size, it will still work. On 32bit systems, a long is 32bits, so the value from get_jiffies_64() will be truncated by the cast and thus lose all the precision gained by 64bit jiffies. Signed-off-by: Dmitriy Zavin Signed-off-by: Andi Kleen commit b89ebd0b0a65d5371aa9ad98e873c4616056ca68 tree 7205fc3c9174f4f48d3fd59b86d99dfd66d5dfd3 parent 0637a70a5db98182d9ad3d6ae1ee30acf20afde9 author Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:42 +0200 [PATCH] Fix unwinder warning in traps.c Fix linux/arch/x86_64/kernel/traps.c: In function 'dump_trace': linux/arch/x86_64/kernel/traps.c:275: warning: cast to pointer from integer of different size with allnoconfig Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 0637a70a5db98182d9ad3d6ae1ee30acf20afde9 tree 36b625e24f3fe11a97cd9926ca2be6b2df1cbf89 parent 8f60774a116ced9b73ae3913d511687889efe725 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] x86: Allow disabling early pci scans with pci=noearly or disallowing conf1 Some buggy systems can machine check when config space accesses happen for some non existent devices. i386/x86-64 do some early device scans that might trigger this. Allow pci=noearly to disable this. Also when type 1 is disabling also don't do any early accesses which are always type1. This moves the pci= configuration parsing to be a early parameter. I don't think this can break anything because it only changes a single global that is only used by PCI. Cc: gregkh@suse.de Cc: Trammell Hudson Signed-off-by: Andi Kleen commit 8f60774a116ced9b73ae3913d511687889efe725 tree 4c719703d138998a5eed9aabb2fe216b79790687 parent f157cbb1eb9ce3f33a401ec6d20eb3eb852351a3 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] x86: Move direct PCI scanning functions out of line Saves about 200 bytes of code space. Signed-off-by: Andi Kleen commit f157cbb1eb9ce3f33a401ec6d20eb3eb852351a3 tree 8c3af952bac000951430ede5806582bcb62262ac parent 658fdbef66e5e9be79b457edc2cbbb3add840aa9 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] i386/x86-64: Make all early PCI scans dependent on CONFIG_PCI This is useful on systems with broken PCI bus. Affects various scans in x86-64 and i386's early ACPI quirk scan. Cc: gregkh@suse.de Cc: len.brown@intel.com Cc: Trammell Hudson Signed-off-by: Andi Kleen commit 658fdbef66e5e9be79b457edc2cbbb3add840aa9 tree 931fa9bac154671ab96762fee73b3641b1191bb8 parent adf1423698f00d00b267f7dca8231340ce7d65ef author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Don't leak NT bit into next task SYSENTER can cause a NT to be set which might cause crashes on the IRET in the next task. Following similar i386 patch from Linus. Signed-off-by: Andi Kleen commit adf1423698f00d00b267f7dca8231340ce7d65ef tree ec2e28a32d467cc3c618c8ee0cedd3d1a49f9c43 parent ab2e0b46cb9a197fab7d98e147cac7cd41a14047 author Jan Beulich Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] i386/x86-64: Work around gcc bug with noreturn functions in unwinder Current gcc generates calls not jumps to noreturn functions. When that happens the return address can point to the next function, which confuses the unwinder. This patch works around it by marking asynchronous exception frames in contrast normal call frames in the unwind information. Then teach the unwinder to decode this. For normal call frames the unwinder now subtracts one from the address which avoids this problem. The standard libgcc unwinder uses the same trick. It doesn't include adjustment of the printed address (i.e. for the original example, it'd still be kernel_math_error+0 that gets displayed, but the unwinder wouldn't get confused anymore. This only works with binutils 2.6.17+ and some versions of H.J.Lu's 2.6.16 unfortunately because earlier binutils don't support .cfi_signal_frame [AK: added automatic detection of the new binutils and wrote description] Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen commit ab2e0b46cb9a197fab7d98e147cac7cd41a14047 tree 92cb7ae617cc10d0b7e8951213d2d9769c2026b0 parent 536e3ee4fed13d2d4bbf1b775174aba0cadf6aba author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Fix some broken white space in ia32_signal.c No functional changes Signed-off-by: Andi Kleen commit 536e3ee4fed13d2d4bbf1b775174aba0cadf6aba tree 74bd05ecdbada0e6029d0be13a2a4ec93dae0df0 parent dd54a11004b2c9a1f136225f880e021a43b0eadc author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Initialize argument registers for 32bit signal handlers. In case the user space was compiled with -mregparm=3 Following i386. Pointed out by Albert Cahalan Signed-off-by: Andi Kleen commit dd54a11004b2c9a1f136225f880e021a43b0eadc tree 34940fe0eae0738634440e75052bd6c2bb4ab23b parent 2049336f60d297c85ac977245b9326ec00396114 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Remove all traces of signal number conversion This was old code that was needed for iBCS and x86-64 never supported that. Pointed out by Albert Cahalan Signed-off-by: Andi Kleen commit 2049336f60d297c85ac977245b9326ec00396114 tree b7af9b104177e32d100289e9cb174d71767c9ce5 parent 9ddab42d1e65dfbdb14588346d47fb142090ab40 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Don't synchronize time reading on single core AMD systems We do some additional CPU synchronization in gettimeofday et.al. to make sure the time stamps are always monotonic over multiple CPUs. But on single core systems that is not needed. So don't do it. Signed-off-by: Andi Kleen commit 9ddab42d1e65dfbdb14588346d47fb142090ab40 tree d5eae26303fe41d7c49471407a90d21a768dc704 parent 27fbe5b28a2ffef171c6005f304ea4f80fcdcc01 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Remove outdated comment in x86-64 mmconfig code Cc: gregkh@suse.de Signed-off-by: Andi Kleen commit 27fbe5b28a2ffef171c6005f304ea4f80fcdcc01 tree f4eb0e75d54fd78570894d64ed8c4cfbff03bb48 parent 35d534a3ff4905c0a7bddbad0fc9df55967742c7 author Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] Use string instructions for Core2 copy/clear It is faster than using a unrolled loop for the use cases the kernel cares about (cached, sizes typically < 4K) Signed-off-by: Andi Kleen commit 35d534a3ff4905c0a7bddbad0fc9df55967742c7 tree b926186d52d0b98f2931e7ad59ec6aefd2e5c641 parent f354b3a92af9b132b188b9c8ebbfb74de699926d author Matthew Garrett Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] x86: - restore i8259A eoi status on resume Got it. i8259A_resume calls init_8259A(0) unconditionally, even if auto_eoi has been set. Keep track of the current status and restore that on resume. This fixes it for AMD64 and i386. Signed-off-by: Matthew Garrett Signed-off-by: Andi Kleen commit f354b3a92af9b132b188b9c8ebbfb74de699926d tree ad8190a61332c0bf3c575d71010dc9d2e8af7296 parent 2817716ace8c397685bd702223cc5a8a42c7e997 author Dave Jones Tue, 26 Sep 2006 10:52:41 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:41 +0200 [PATCH] i386: Split multi-line printk in oops output. Sometimes, bug reports come in where we've had an oops, and the only record we have is what the reporter saw on screen shortly before the system locked up completely. Unfortunatly, syslog only prints lines beginning with KERN_EMERG to the console, so some lines get lost. An example of this can be seen at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203723 Some of this information isn't vital to diagnosis, but some parts are useful, such as the tainted flag. Signed-off-by: Dave Jones Signed-off-by: Andi Kleen commit 2817716ace8c397685bd702223cc5a8a42c7e997 tree 901fecc20019b1a8dd294bd70a155b8bd4cd6814 parent de09bddb9d6f96785be470c832b881e6d72d589f author Jeremy Fitzhardinge Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] i386: Fix pack_descriptor() Fix pack_descriptor: 1. flags are bits 20-23 in the high word 2. limit's 4 msb are bits 16-19 in the high word These haven't mattered so far, because all users have had small limits and a flags setting of 0. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andi Kleen =================================================================== commit de09bddb9d6f96785be470c832b881e6d72d589f tree 62824c61a1db8a6464400f24013811d2f724c80a parent 4c6e052adfe285ede5884e4e8c4d33af33932c13 author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] i386: Add MMCFG resources to i386 too Following earlier x86-64 patch Cc: gregkh@suse.de Signed-off-by: Andi Kleen commit 4c6e052adfe285ede5884e4e8c4d33af33932c13 tree cc4c41eb2d9727e80f0798e40ae9718027a8fead parent 56dd669a138c40ea6cdae487f233430d12372767 author Aaron Durbin Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] MMCONFIG and new Intel motherboards On Sat, Sep 09, 2006 at 04:14:29PM +0200, Andi Kleen wrote: > [patch] Looks reasonable, but probably not for 2.6.18 because this stuff > is already too fragile and it is probably too risky to do any big changes now > since not enough testing time is left. Can you please resubmit > it with proper description and signed-off-by line? I can queue it for .19 then > > -Andi Patch inserts PCI memory mapped config region(s) into the resource map. This will allow for the MMCCONFIG regions to be marked as busy in the iomem address space as well as the regions(s) showing up in /proc/iomem. Signed-off-by: Aaron Durbin Signed-off-by: Andi Kleen commit 56dd669a138c40ea6cdae487f233430d12372767 tree dd78cbf041176c1535915e9905e1af461bde0dc1 parent 9abd79280bbb9f56049f0168f412c3538cadb6eb author Aaron Durbin Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Insert GART region into resource map Patch inserts the GART region into the iomem resource map. The GART will then be visible within /proc/iomem. It will also allow for other users utilizing the GART to subreserve the region (agp or IOMMU). Signed-off-by: Aaron Durbin Signed-off-by: Andi Kleen commit 9abd79280bbb9f56049f0168f412c3538cadb6eb tree fb72faaf2fddf382c3ab57e716d182ab9dd1406e parent 5e544d618f0fb21011f36f28d5e3952b9dc109d2 author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] i386/x86-64: Only do MCFG e820 check when type 1 works Needs earlier patch to split type 1 probing from use. This patch should fix the x86 macs where type 1 PCI config space access doesn't work, but MCFG does. They also don't have a usable e820 table so the e820 sanity check failed. Instead assume now that if type 1 doesn't work then MCFG must work and don't do the e820 check. Signed-off-by: Andi Kleen commit 5e544d618f0fb21011f36f28d5e3952b9dc109d2 tree a91d6e5c640da473204bc48eb7b310fd3d82cd91 parent a15da49debaf7f09460a886b0ecd08588410715e author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] i386/x86-64: PCI: split probing and initialization of type 1 config space access First probe if type1/2 accesses work, but then only initialize them at the end. This is useful for a later patch that needs this information inbetween. Signed-off-by: Andi Kleen commit a15da49debaf7f09460a886b0ecd08588410715e tree 685ed022695ff03cec167c6690815e08191a803c parent 1c9c0a6ca35e9325cea811d734d6ab7352be086b author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Fix idle notifiers Previously exit_idle would be called more often than enter_idle Now instead of using complicated tests just keep track of it using the per CPU variable as a flip flop. I moved the idle state into the PDA to make the access more efficient. Original bug report and an initial patch from Stephane Eranian, but redone by AK. Cc: Stephane Eranian Signed-off-by: Andi Kleen commit 1c9c0a6ca35e9325cea811d734d6ab7352be086b tree 9edbd3d48bf15b176bf8a722b3fcdabc631c711f parent 371c2f2783eb880df333d0e9ac35c78143e79d0a author Eric W. Biederman Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Remove experimental mark of kexec kexec has been marked experimental for a year now and all of the serious problems have been worked through. So it is time (if not past time) to remove the experimental mark. Signed-off-by: Eric W. Biederman Signed-off-by: Andi Kleen commit 371c2f2783eb880df333d0e9ac35c78143e79d0a tree 9ceab8ab98152f40f9fe6ede50ab3697e06eb069 parent b38337a624c4d3c2c3d9cdf27d952ca94181c6a8 author Eric W. Biederman Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] i386: Remove experimental mark of kexec kexec has been marked experimental for a year now and all of the serious problems have been worked through. So it is time (if not past time) to remove the experimental mark. Signed-off-by: Eric W. Biederman Signed-off-by: Andi Kleen commit b38337a624c4d3c2c3d9cdf27d952ca94181c6a8 tree 1e926c0f6af8df631ce726bfec98a020164cf289 parent 73bb5117a448bdf0b56232ca28451fe4c534cb3a author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Mark per cpu data initialization __initdata again Before 2.6.16 this was changed to work around code that accessed CPUs not in the possible map. But that code should be all fixed now, so mark it __initdata again. Signed-off-by: Andi Kleen commit 73bb5117a448bdf0b56232ca28451fe4c534cb3a tree 687012771cd1f12bc5c2ce9c798b6933ca9b3574 parent fd167e42b237e0688005b3dec380eb5a6e5f3585 author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Remove unused asm-x86_64/mmx.h Signed-off-by: Andi Kleen commit fd167e42b237e0688005b3dec380eb5a6e5f3585 tree 628687df15662dd47781eebd6b227fa823e9924d parent c1a9d41f4f103bfef2ed0bea1e95b3190e39e448 author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Define __bad_pda_field as noreturn This quietens so warnings about uninitialized use of the return value of the pda read operations. Signed-off-by: Andi Kleen commit c1a9d41f4f103bfef2ed0bea1e95b3190e39e448 tree 1b11b8fa27c5b4308a5014453b944ec15c22b1a8 parent 383d079bfdfcfccd6a720405a510fe325b3e6576 author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Reindent macros in pda.h Reindent the macros in x86-64 pda.h, making them much more readable. Follows Jeremy's i386 version of this. No functional changes Signed-off-by: Andi Kleen commit 383d079bfdfcfccd6a720405a510fe325b3e6576 tree 0ca82b2f60b1cf47c027601b4a3771909462aebb parent 26c13f2b5bbb03f798f8907db20296347e6c7ca6 author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Fix some stylistic issues in uaccess.h - Replace some broken white space. - Replace __ keywords with standard names No functional changes. Signed-off-by: Andi Kleen commit 26c13f2b5bbb03f798f8907db20296347e6c7ca6 tree 130d060354b40933fd819c8798759cac1cebe406 parent 758333458aa719bfc26ec16eafd4ad3a9e96014d author Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:40 +0200 [PATCH] Check return values of __copy_to_user in uname emulation Quietens some new warnings Signed-off-by: Andi Kleen commit 758333458aa719bfc26ec16eafd4ad3a9e96014d tree 84e4995b4e61b73ac1e235ea1554c75907ab08c4 parent 95912008ba1fb9d0677c1ce5930aeb0e85ba5710 author Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Check return value of copy_to_user in compat_sys_pselect7 Fix linux/fs/compat.c: In function compat_sys_pselect7 linux/fs/compat.c:1869: warning: ignoring return value of copy_to_user, declared with attribute warn_unused_result To make it easier to handle I changed to semantics to not try to write out a timespec if an error occurred. I hope that's ok. Cc: dwmw2@infradead.org Signed-off-by: Andi Kleen commit 95912008ba1fb9d0677c1ce5930aeb0e85ba5710 tree e84c614f6aff984d105ce9f340f9474b613d567d parent 3022d734a54cbd2b65eea9a024564821101b4a9a author Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Add __must_check to copy_*_user Following i386. And also fix the two occurrences that caused warnings in arch/x86_64/* Signed-off-by: Andi Kleen commit 3022d734a54cbd2b65eea9a024564821101b4a9a tree a1445aeaf8fbdf84898c8cdc13dd98c550b5be0f parent f0f4c3432e5e1087b3a8c0e6bd4113d3c37497ff author Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Fix zeroing on exception in copy_*_user - Don't zero for __copy_from_user_inatomic following i386. This will prevent spurious zeros for parallel file system writers when one does a exception - The string instruction version didn't zero the output on exception. Oops. Also I cleaned up the code a bit while I was at it and added a minor optimization to the string instruction path. Signed-off-by: Andi Kleen commit f0f4c3432e5e1087b3a8c0e6bd4113d3c37497ff tree 03a1e81b2c860e5b3bd29ca9362bff4e65375247 parent 54dbc0c9ebefb38840c6b07fa6eabaeb96c921f5 author adurbin@google.com Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] i386: add HPET(s) into resource map Add HPET(s) into resource map. This will allow for the HPET(s) to be visibile within /proc/iomem. Signed-off-by: Aaron Durbin Signed-off-by: Andi Kleen commit 54dbc0c9ebefb38840c6b07fa6eabaeb96c921f5 tree 83412b40b014bbcb05c629cc98d8bebb0c32f42b parent ec5c09269ba9cd3b9cf879390db6d5c7dcdcaf1e author adurbin@google.com Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] insert IOAPIC(s) and Local APIC into resource map This patch places the IOAPIC(s) and the Local APIC specified by ACPI tables into the resource map. The APICs will then be visible within /proc/iomem Signed-off-by: Aaron Durbin Signed-off-by: Andi Kleen commit ec5c09269ba9cd3b9cf879390db6d5c7dcdcaf1e tree f235cd9655571a6f0d5c3158d795d1d80dedb8f5 parent 78be3706b21a232310590fe00258b224177ac05f author Chuck Ebbert <76306.1226@compuserve.com> Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] i386: Do better early exception handlers Add early i386 fault handlers with debug information for common faults. Handles: divide error invalid opcode protection fault page fault Also adds code to detect early recursive/multiple faults and halt the system when they happen (taken from x86_64.) Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen Cc: Andi Kleen Cc: Ingo Molnar Signed-off-by: Andrew Morton commit 78be3706b21a232310590fe00258b224177ac05f tree 57dbe444e57241613067145b04c0e15c98278cd6 parent 0da5db313317e3195482d3e660a1074857374a89 author Rusty Russell Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] i386: Allow a kernel not to be in ring 0 We allow for the fact that the guest kernel may not run in ring 0. This requires some abstraction in a few places when setting %cs or checking privilege level (user vs kernel). This is Chris' [RFC PATCH 15/33] move segment checks to subarch, except rather than using #define USER_MODE_MASK which depends on a config option, we use Zach's more flexible approach of assuming ring 3 == userspace. I also used "get_kernel_rpl()" over "get_kernel_cs()" because I think it reads better in the code... 1) Remove the hardcoded 3 and introduce #define SEGMENT_RPL_MASK 3 2) Add a get_kernel_rpl() macro, and don't assume it's zero. And: Clean up of patch for letting kernel run other than ring 0: a. Add some comments about the SEGMENT_IS_*_CODE() macros. b. Add a USER_RPL macro. (Code was comparing a value to a mask in some places and to the magic number 3 in other places.) c. Add macros for table indicator field and use them. d. Change the entry.S tests for LDT stack segment to use the macros Signed-off-by: Rusty Russell Signed-off-by: Zachary Amsden Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Andi Kleen commit 0da5db313317e3195482d3e660a1074857374a89 tree 9322a8eb60da97ae5f3a199cec13afd9b34c202d parent 7b0bda74f7e77f362eaeee837e7911238acf4c76 author Rusty Russell Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] i386: Abstract sensitive instructions Abstract sensitive instructions in assembler code, replacing them with macros (which currently are #defined to the native versions). We use long names: assembler is case-insensitive, so if something goes wrong and macros do not expand, it would assemble anyway. Resulting object files are exactly the same as before. Signed-off-by: Rusty Russell Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Andi Kleen commit 7b0bda74f7e77f362eaeee837e7911238acf4c76 tree c2bfcbee2ad9a8534ab3d9d4107822786ec6d598 parent 85691f135db78f3548107a0abe383dfab3bc38fa author Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Fix a PDA warning uncovered by the new type checking Fix linux/arch/x86_64/kernel/process.c: In function __switch_to: linux/arch/x86_64/kernel/process.c:626: warning: assignment makes integer from pointer without a cast Signed-off-by: Andi Kleen commit 85691f135db78f3548107a0abe383dfab3bc38fa tree 5bde2c801824b4c3d7e7d3def97b6a89ab178a1e parent baf5695dd1a49bb48a3daf08726d7f243f42e97e author Jeremy Fitzhardinge Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Type checking for write_pda() I just added type checking for assignments the PDA in the i386 PDA code. Here's the x86-64 equivalent. (Obviously this doesn't contain the latest x86-64 PDA change.) Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andi Kleen commit baf5695dd1a49bb48a3daf08726d7f243f42e97e tree 7479fb8562395e168654d931db0ad89ba8ccd39c parent 96e540492ab54423f3693958329e095878f1f12b author Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Use %c instead of %P modifier in pda access Apparently that is the more official way to get numbers without $ in inline assembly Signed-off-by: Andi Kleen commit 96e540492ab54423f3693958329e095878f1f12b tree a57448fd5b0bfb411902528d00ae4d1f97047925 parent 4f7fd4d7a79193ceda4ce77f75e22917d33fa154 author Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Fix a irqcount comment in entry.S Signed-off-by: Andi Kleen commit 4f7fd4d7a79193ceda4ce77f75e22917d33fa154 tree 433b106db54d73d4da6d3ad48cd55863ec812176 parent 3162f751d04086a9d006342de63ac8f44fe0f72a author Arjan van de Ven Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Add the -fstack-protector option to the CFLAGS Add a feature check that checks that the gcc compiler has stack-protector support and has the bugfix for PR28281 to make this work in kernel mode. The easiest solution I could find was to have a shell script in scripts/ to do the detection; if needed we can make this fancier in the future without making the makefile too complex. Signed-off-by: Arjan van de Ven Signed-off-by: Andi Kleen CC: Andi Kleen CC: Sam Ravnborg commit 3162f751d04086a9d006342de63ac8f44fe0f72a tree be702f29e5604621898e394ef387c2617334bb65 parent 0a4254058037eb172758961d0a5b94f4320a1425 author Arjan van de Ven Tue, 26 Sep 2006 10:52:39 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:39 +0200 [PATCH] Add the __stack_chk_fail() function GCC emits a call to a __stack_chk_fail() function when the stack canary is not matching the expected value. Since this is a bad security issue; lets panic the kernel rather than limping along; the kernel really can't be trusted anymore when this happens. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Signed-off-by: Andi Kleen CC: Andi Kleen commit 0a4254058037eb172758961d0a5b94f4320a1425 tree e9e64daf007952322c7ab0671b2f2f841085c04d parent b62a5c740df1e3d49a97349fce0c6a23f633d7fe author Arjan van de Ven Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Add the canary field to the PDA area and the task struct This patch adds the per thread cookie field to the task struct and the PDA. Also it makes sure that the PDA value gets the new cookie value at context switch, and that a new task gets a new cookie at task creation time. Signed-off-by: Arjan van Ven Signed-off-by: Ingo Molnar Signed-off-by: Andi Kleen CC: Andi Kleen commit b62a5c740df1e3d49a97349fce0c6a23f633d7fe tree d29b6a60f5d8d4d0d93c4eeece5526e8f9281f1c parent 29a9af60e2120f874d0c600bf9e27617254a0488 author Arjan van de Ven Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Add the Kconfig option for the stackprotector feature This patch adds the config options for -fstack-protector. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Signed-off-by: Andi Kleen CC: Andi Kleen commit 29a9af60e2120f874d0c600bf9e27617254a0488 tree 90b4309599fa1081d58d0312c94e899eaf18f115 parent 027a51cef330433ba5924fc92fb25ef48bcfc1a3 author Arjan van de Ven Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Add comments to the PDA structure to annotate offsets Change the comments in the pda structure to make the first fields to have their offset documented and to have the comments aligned. The stack protector series needs a field at offset 40 (gcc ABI); annotate upto 40 for that reason. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Signed-off-by: Andi Kleen CC: Andi Kleen commit 027a51cef330433ba5924fc92fb25ef48bcfc1a3 tree 4bb3f57c22bc58947765ede4b65b68e9242542bd parent e8c7391de4cd91b2cbb0c791f69ba1e066595848 author Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Document my tree in Documentation/HOWTO Signed-off-by: Andi Kleen commit e8c7391de4cd91b2cbb0c791f69ba1e066595848 tree 47d55aab3429321e346e2e9dec439d9fff4554d1 parent 3566561bfadffcb5dbc85d576be80c0dbf2cccc9 author Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Don't use kernel_text_address in oops context Because it can take spinlocks. Suggested by Mathieu Desnoyers Cc: Mathieu Desnoyers Signed-off-by: Andi Kleen commit 3566561bfadffcb5dbc85d576be80c0dbf2cccc9 tree eaafaf68156f9f2f1a2af8a7ffed95653fea8aa5 parent 4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f author Magnus Damm Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] i386: Avoid overwriting the current pgd (V4, i386) kexec: Avoid overwriting the current pgd (V4, i386) This patch upgrades the i386-specific kexec code to avoid overwriting the current pgd. Overwriting the current pgd is bad when CONFIG_CRASH_DUMP is used to start a secondary kernel that dumps the memory of the previous kernel. The code introduces a new set of page tables. These tables are used to provide an executable identity mapping without overwriting the current pgd. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit 4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f tree 652effe9d02c80d93357512233f4ee962320ac3b parent f574164491d00d28b727d713685fb5edc9138200 author Magnus Damm Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Avoid overwriting the current pgd (V4, x86_64) kexec: Avoid overwriting the current pgd (V4, x86_64) This patch upgrades the x86_64-specific kexec code to avoid overwriting the current pgd. Overwriting the current pgd is bad when CONFIG_CRASH_DUMP is used to start a secondary kernel that dumps the memory of the previous kernel. The code introduces a new set of page tables. These tables are used to provide an executable identity mapping without overwriting the current pgd. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit f574164491d00d28b727d713685fb5edc9138200 tree 7ab1a5a2257e27824cf3762fcf276840259deceb parent 575400d1b483fbe9e03c68758059bfaf4e4768d1 author Keith Owens Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Remove most of the special cases for the debug IST stack Remove most of the special cases for the debug IST stack. This is a follow on clean up patch, it requires the bug fix patch that adds orig_ist. Signed-off-by: Keith Owens Signed-off-by: Andi Kleen commit 575400d1b483fbe9e03c68758059bfaf4e4768d1 tree 9839d343d235dabfdb27e8ad2e48511ae542b015 parent 53ee11ae0d73f28029a5f0d991bc4dcd7c817e7a author H. Peter Anvin Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] i386: Fix the EDD code misparsing the command line The EDD code would scan the command line as a fixed array, without taking account of either whitespace, null-termination, the old command-line protocol, late overrides early, or the fact that the command line may not be reachable from INITSEG. This should fix those problems, and enable us to use a longer command line. Signed-off-by: H. Peter Anvin Signed-off-by: Andi Kleen commit 53ee11ae0d73f28029a5f0d991bc4dcd7c817e7a tree c0a025cc592d516674bb1d8a0046bf281b6d1724 parent 80d2679cbc8e170011c9649fb8fb684ffd7e5c8f author Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Optimize PDA accesses slightly Based on a idea by Jeremy Fitzhardinge: Replace the volatiles and memory clobbers in the PDA access with telling gcc about access to a proxy PDA structure that doesn't actually exist. But the dummy accesses give a defined ordering for read/write accesses. Also add some memory barriers to the early GS initialization to make sure no PDA access is moved before it. Advantage is some .text savings (probably most from better code for accessing "current"): text data bss dec hex filename 4845647 1223688 615864 6685199 66020f vmlinux 4837780 1223688 615864 6677332 65e354 vmlinux-pda 1.2% smaller code Cc: Jeremy Fitzhardinge Signed-off-by: Andi Kleen commit 80d2679cbc8e170011c9649fb8fb684ffd7e5c8f tree 7e0f6f42aacbfd4c2bcb26178d9f81b03c39a7d4 parent f2a9e1dec27189a09ff642f2648e49ad9e76607b author Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] x86: Remove incorrect comment about ACPI e820 entries They cannot be actually freed because the FACS table has a shared-with-the-BIOS lock. Signed-off-by: Andi Kleen commit f2a9e1dec27189a09ff642f2648e49ad9e76607b tree 0ff8688e89dcbd47fa2bda2cc418820841fdefde parent 26374c7b7dca1ff90607c83d9b82e917119f0456 author Ian Campbell Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Put .note.* sections into a PT_NOTE segment This patch updates x86_64 linker script to pack any .note.* sections into a PT_NOTE segment in the output file. To do this, we tell ld that we need a PT_NOTE segment. This requires us to start explicitly mapping sections to segments, so we also need to explicitly create PT_LOAD segments for text and data, and map the sections to them appropriately. Fortunately, each section will default to its previous section's segment, so it doesn't take many changes to vmlinux.lds.S. The corresponding change is already made for i386 in -mm and I'd like this patch to join it. The section to segment mappings do change as do the segment flags so some time in -mm would be good for that reason as well, just in case. In particular .data and .bss move from the text segment to the data segment and .data.cacheline_aligned .data.read_mostly are put in the data segment instead of a separate one. I think that it would be possible to exactly match the existing section to segment mapping and flags but it would be a more intrusive change and I'm not sure there is a reason for the existing layout other than it is what you get by default if you don't explicitly specify something else. If there is a reason for the existing layout then I will of course make the more intrusive change. If there is no reason we could probably drop the executable or writable flags from some segments but I don't know how much attention is paid to them anyway so it might not be worth the effort. The vsyscall related sections need to go in a different segment to the normal data segment and so I invented a "user" segment to contain them. I believe this should appear to be another data segment as far as the kernel is concerned so the flags are setup accordingly. The notes will be used in the Xen paravirt_ops backend to provide additional information to the domain builder. I am in the process of converting the xen-unstable kernels and tools over to this scheme at the moment to support this in the future. It has been suggested to me that the notes segment should have flags 0 (i.e. not readable) since it is only used by the loader and is not used at runtime. For now I went with a readable segment since that is what the i386 patch uses. AK: dropped NOTES addition right now because the needed infrastructure for that is not merged yet Signed-off-by: Ian Campbell Signed-off-by: Andi Kleen commit 26374c7b7dca1ff90607c83d9b82e917119f0456 tree e2557e7b679eeee6d361b08812f9b10b96a301ec parent 0136611c62e8650e354b95c76dff6d2ce6030eff author Eric W. Biederman Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] Reload CS when startup_64 is used. In long mode the %cs is largely a relic. However there are a few cases like iret where it matters that we have a valid value. Without this patch it is possible to enter the kernel in startup_64 without setting %cs to a valid value. With this patch we don't care what %cs value we enter the kernel with, so long as the cs shadow register indicates it is a privileged code segment. Thanks to Magnus Damm for finding this problem and posting the first workable patch. I have moved the jump to set %cs down a few instructions so we don't need to take an extra jump. Which keeps the code simpler. Signed-of-by: Eric W. Biederman Signed-off-by: Andi Kleen commit 0136611c62e8650e354b95c76dff6d2ce6030eff tree 9ba66105bccc4d83b84663b8dda7e51962c22a04 parent 8380aabb99719af583447133f19a4d8074b5c337 author Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:38 +0200 [PATCH] optimize hweight64 for x86_64 Based on patch from David Rientjes , but changed by AK. Optimizes the 64-bit hamming weight for x86_64 processors assuming they have fast multiplication. Uses five fewer bitops than the generic hweight64. Benchmark on one EMT64 showed ~25% speedup with 2^24 consecutive calls. Define a new ARCH_HAS_FAST_MULTIPLIER that can be set by other architectures that can also multiply fast. Signed-off-by: Andi Kleen commit 8380aabb99719af583447133f19a4d8074b5c337 tree e26bcd8130199db5c7b978532534a006503b9a95 parent b3698c03eb6d4581e879d6bb0f183ed8dda96d37 author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Remove non e820 fallbacks in high level code Drop support for non e820 BIOS calls to get the memory map. The boot assembler code still has some support, but not the C code now. Signed-off-by: Andi Kleen commit b3698c03eb6d4581e879d6bb0f183ed8dda96d37 tree 34a475e8aee801f12d0680008fd51456badd7b67 parent 7a0a2dff1cac1df82acfa0395bc9bc1bf0bc16ef author Paolo 'Blaisorblade' Giarrusso Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Fix boot code head.S warning When compiling a 64-bit kernel on an Ubuntu 6.06 32bit system (whose GCC is also a cross-compiler for x86_64) I've seen that head.o is compiled as a 64-bit file (while it should not) and ld complaining about this during linking: [AK: it happens on all systems with new binutils] ld: warning: i386:x86-64 architecture of input file `arch/x86_64/boot/compressed/head.o' is incompatible with i386 output I've verified that removing -m64 from compilation flags to turn "-m64 -traditional -m32" into "-traditional -m32" fixes the issue. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andi Kleen commit 7a0a2dff1cac1df82acfa0395bc9bc1bf0bc16ef tree 410b323cd17b675597134f6a3fff8a326d974670 parent aecc63615e15de861db7436c50dade495639132c author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Add a missing check for irq flags tracing in NMI NMIs are not supposed to track the irq flags, but TRACE_IRQS_IRETQ did it anyways. Add a check. Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit aecc63615e15de861db7436c50dade495639132c tree db3adb8e3dea46cfb60b08eb3ab8e45cf941ea81 parent e4251e130deef9de5226cc36faa70a1c6671d3c5 author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Fix coding style and output of the mptable parser Give the printks a consistent prefix. Add some missing white space. Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit e4251e130deef9de5226cc36faa70a1c6671d3c5 tree 22d75691bbcd93b88624ceaa19d8d4fd5ec5900a parent f2c2cca3acef8b253a36381d9b469ad4fb08563a author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Remove some cruft in apic id checking during processor setup - Remove a define that was used only once - Remove the too large APIC ID check because we always support the full 8bit range of APICs. - Restructure code a bit to be simpler. Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit f2c2cca3acef8b253a36381d9b469ad4fb08563a tree 564dc8e108324a8409bc49b133a0ba0d7895ec38 parent 5e6b0bfe5b452957b7be4b6ef181cd41880f8359 author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Remove APIC version/cpu capability mpparse checking/printing ACPI went to great trouble to get the APIC version and CPU capabilities of different CPUs before passing them to the mpparser. But all that data was used was to print it out. Actually it even faked some data based on the boot cpu, not on the actual CPU being booted. Remove all this code because it's not needed. Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit 5e6b0bfe5b452957b7be4b6ef181cd41880f8359 tree 58fe6fa071e8a6870f4241217b18e181481c5c1e parent df992848f5aa803fcacd2c5e7d67034bb89e3fa3 author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Use proper accessors to change PSE bits in change_page_attr() Use normal pte accessors in change_page_attr() to access the PSE bits. Signed-off-by: Andi Kleen commit df992848f5aa803fcacd2c5e7d67034bb89e3fa3 tree 649ee5888f71bdd4243599f73d9725118262d368 parent d3cf7f061521c78ad62e275eb6fbdc8f43fc75a7 author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Fix pte_exec/mkexec and use it in change_page_attr() Fix the pte_exec/mkexec page table accessor functions to really use the NX bit. Previously they only checked the USER bit, but weren't actually used for anything. Then use them in change_page_attr() to manipulate the NX bit properly. Signed-off-by: Andi Kleen commit d3cf7f061521c78ad62e275eb6fbdc8f43fc75a7 tree 85bfaaa0338e5b52ce2b1be62306a6abe3426b17 parent 151f8cc1169f9052095b2be36183ab132d75c6c2 author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Remove bogus warning from early_ioremap It is correct for its only caller right now, but not for possible future others. Signed-off-by: Andi Kleen commit 151f8cc1169f9052095b2be36183ab132d75c6c2 tree f3aae7a7e2fc15e88a8471256b2aa43c4850ad0f parent 34464a5b8937b79801776dfb6970c1b949fed4be author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Remove safe_smp_processor_id() And replace all users with ordinary smp_processor_id. The function was originally added to get some basic oops information out even if the GS register was corrupted. However that didn't work for some anymore because printk is needed to print the oops and it uses smp_processor_id() already. Also GS register corruptions are not particularly common anymore. This also helps the Xen port which would otherwise need to do this in a special way because it can't access the local APIC. Cc: Chris Wright Signed-off-by: Andi Kleen commit 34464a5b8937b79801776dfb6970c1b949fed4be tree 0e7c2ac3b792e35e036040ac39eb86f2cc466122 parent a549b86dd0f3cbffcd5f9343f4ae7fcd59f7e756 author Rafael J. Wysocki Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Detect clock skew during suspend Detect the situations in which the time after a resume from disk would be earlier than the time before the suspend and prevent them from happening on x86_64. Signed-off-by: Rafael J. Wysocki Signed-off-by: Andi Kleen commit a549b86dd0f3cbffcd5f9343f4ae7fcd59f7e756 tree 4405a0465a631a45945954f1ce1efa7d8fd24676 parent 1164c9994fe37d5b7035a5cf9328c98dd38af7b1 author Chuck Ebbert <76306.1226@compuserve.com> Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] i386: annotate FIX_STACK() and the rest of nmi() In i386's entry.S, FIX_STACK() needs annotation because it replaces the stack pointer. And the rest of nmi() needs annotation in order to compile with these new annotations. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen commit 1164c9994fe37d5b7035a5cf9328c98dd38af7b1 tree 05a2aba4eb6f5b8e8875d38a7bee67bd37889625 parent 1bb4996bcebca1cde49d964b4e012699ce180e61 author Andrew Morton Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] make numa_emulation() __init Signed-off-by: Andrew Morton Signed-off-by: Andi Kleen commit 1bb4996bcebca1cde49d964b4e012699ce180e61 tree ba761ac65661370b0ed5ce6b7dacd263afcef3c8 parent dbf9272e863bf4b17ee8e3c66c26682b2061d40d author Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:37 +0200 [PATCH] Move compiler check for modules to ia64 only Apparently IA64 needs it, but i386/x86-64 don't anymore since gcc 2.95 support was dropped. Nobody else on linux-arch requested keeping it generically Cc: tony.luck@intel.com Cc: kaos@sgi.com Signed-off-by: Andi Kleen commit dbf9272e863bf4b17ee8e3c66c26682b2061d40d tree 203c32e86475748b362c97d7340bd4cfbd3376c5 parent f704cb935006580db0495e54d3c82631f6e2a984 author Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] Don't force reserve the 640k-1MB range From i386 x86-64 inherited code to force reserve the 640k-1MB area. That was needed on some old systems. But we generally trust the e820 map to be correct on 64bit systems and mark all areas that are not memory correctly. This patch will allow to use the real memory in there. Or rather the only way to find out if it's still needed is to try. So far I'm optimistic. Signed-off-by: Andi Kleen commit f704cb935006580db0495e54d3c82631f6e2a984 tree 54c0dac91f938d2ee848a0ab05e7484790759b2f parent 06039754d775d3e48e4a292e4f353321205eff53 author Dave Jones Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] x86: remove config.h includes from asm-i386 & asm-x86_64 This is now automatically included by kbuild. Signed-off-by: Dave Jones Signed-off-by: Andi Kleen commit 06039754d775d3e48e4a292e4f353321205eff53 tree a6abdd9ca0efb34006792e7275c4a2c954b229be parent 6f6b1e0477ccb2f25a9b045e38440347d2ce21c8 author Fernando Luis Vázquez Cao Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: Disallow kprobes on NMI handlers A kprobe executes IRET early and that could cause NMI recursion and stack corruption. Note: This problem was originally spotted and solved by Andi Kleen in the x86_64 architecture. This patch is an adaption of his patch for i386. AK: Merged with current code which was a bit different. AK: Removed printk in nmi handler that shouldn't be there in the first time AK: Added missing include. AK: added KPROBES_END Signed-off-by: Fernando Vazquez Signed-off-by: Andi Kleen commit 6f6b1e0477ccb2f25a9b045e38440347d2ce21c8 tree 691c53a8a7e1e6338d11bd3158618cbc44036a57 parent e9dff0ee6694b2edd40b1b448cb786f6a7b02336 author Fernando Luis Vázquez Cao Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: Disallow kprobes on NMI handlers A kprobe executes IRET early and that could cause NMI recursion and stack corruption. Note: This problem was originally spotted by Andi Kleen. This patch adds fixes not included in his original patch. [AK: Jan Beulich originally discovered these classes of bugs] Signed-off-by: Fernando Vazquez Signed-off-by: Andi Kleen commit e9dff0ee6694b2edd40b1b448cb786f6a7b02336 tree 0192d9bfe88fb2b9652150f0437f34af86cc72ea parent 5f0f1c166647860bb2c2a206338e7d9af3834753 author Magnus Damm Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: mark cpu cache functions as __cpuinit Mark i386-specific cpu cache functions as __cpuinit. They are all only called from arch/i386/common.c:display_cache_info() that already is marked as __cpuinit. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit 5f0f1c166647860bb2c2a206338e7d9af3834753 tree 2bb0a390800008a9480cab1ada21935b6e9d5c36 parent b4af3f7cf11e6b5904af08a652d4a2429af17c74 author Magnus Damm Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: mark cpu identify functions as __cpuinit Mark i386-specific cpu identification functions as __cpuinit. They are all only called from arch/i386/common.c:identify_cpu() that already is marked as __cpuinit. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit b4af3f7cf11e6b5904af08a652d4a2429af17c74 tree e5685592150186660b70cc3e41de83f4a4dd3e72 parent 95414930548871c6c92a5b0e607b12b81f3d84d8 author Magnus Damm Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: mark cpu init functions as __cpuinit, data as __cpuinitdata Mark i386-specific cpu init functions as __cpuinit. They are all only called from arch/i386/common.c:identify_cpu() that already is marked as __cpuinit. This patch also removes the empty function init_umc(). Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit 95414930548871c6c92a5b0e607b12b81f3d84d8 tree 199302c69c8e119bfd2b1cdd3da5e10630825cb5 parent ed77504b2007ff7ce56841227467ac3ead52df62 author Magnus Damm Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: mark cpu_dev structures as __cpuinitdata The different cpu_dev structures are all used from __cpuinit callers what I can tell. So mark them as __cpuinitdata instead of __initdata. I am a little bit unsure about arch/i386/common.c:default_cpu, especially when it comes to the purpose of this_cpu. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit ed77504b2007ff7ce56841227467ac3ead52df62 tree c61112afa435603b92b860b3dfb0cd01c48d2df1 parent 68bbc172cd1b0ee01814304b8a7bef8922d5fdca author Magnus Damm Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] mark init_amd() as __cpuinit The init_amd() function is only called from identify_cpu() which is already marked as __cpuinit. So let's mark it as __cpuinit. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit 68bbc172cd1b0ee01814304b8a7bef8922d5fdca tree c3b9aa2cf226a6c20b4959abe4788749dd91f9d0 parent 6ad916581181a105d7832a7dec9e1eb58f7a1621 author Magnus Damm Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] i386: remove redundant generic_identify() calls when identifying cpus cpu_dev->c_identify is only called from arch/i386/common.c:identify_cpu(), and this after generic_identify() already has been called. There is no need to call this function twice and hook it in c_identify - but I may be wrong, please double check before applying. This patch also removes generic_identify() from cpu.h to avoid unnecessary future nesting. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit 6ad916581181a105d7832a7dec9e1eb58f7a1621 tree 624409543fae127a0bc5a6267011f969fbaf03df parent abf0f10948b316b577851ef21c728341f1046552 author Keith Mannthey Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] x86_64 kernel mapping fix Fix for the x86_64 kernel mapping code. Without this patch the update path only inits one pmd_page worth of memory and tramples any entries on it. now the calling convention to phys_pmd_init and phys_init is to always pass a [pmd/pud] page not an offset within a page. Signed-off-by: Keith Mannthey Signed-off-by: Andi Kleen Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton commit abf0f10948b316b577851ef21c728341f1046552 tree 96cdb96a4e668fe3a3e9c88e8158bc371802f4d3 parent e07e23e1fd3000289fc7ccc6c71879070d3b19e0 author Andrew Morton Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] wire up oops_enter()/oops_exit() Implement pause_on_oops() on x86_64. AK: I redid the patch to do the oops_enter/exit in the existing oops_begin()/end(). This makes it much shorter. Signed-off-by: Andrew Morton Signed-off-by: Andi Kleen commit e07e23e1fd3000289fc7ccc6c71879070d3b19e0 tree 1290385cacd89e39b7bc1b12b7515b68423d78d3 parent 73fea175303926055440c06bc8894f0c5c58afc8 author Arjan van de Ven Tue, 26 Sep 2006 10:52:36 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:36 +0200 [PATCH] non lazy "sleazy" fpu implementation Right now the kernel on x86-64 has a 100% lazy fpu behavior: after *every* context switch a trap is taken for the first FPU use to restore the FPU context lazily. This is of course great for applications that have very sporadic or no FPU use (since then you avoid doing the expensive save/restore all the time). However for very frequent FPU users... you take an extra trap every context switch. The patch below adds a simple heuristic to this code: After 5 consecutive context switches of FPU use, the lazy behavior is disabled and the context gets restored every context switch. If the app indeed uses the FPU, the trap is avoided. (the chance of the 6th time slice using FPU after the previous 5 having done so are quite high obviously). After 256 switches, this is reset and lazy behavior is returned (until there are 5 consecutive ones again). The reason for this is to give apps that do longer bursts of FPU use still the lazy behavior back after some time. [akpm@osdl.org: place new task_struct field next to jit_keyring to save space] Signed-off-by: Arjan van de Ven Signed-off-by: Andi Kleen Cc: Andi Kleen Signed-off-by: Andrew Morton commit 73fea175303926055440c06bc8894f0c5c58afc8 tree 466af16058837ab4f8a83210848ecddac20705d9 parent 40bee2ee73c745922e9b2d5595c46f19d1cf1b6f author Ashok Raj Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: Support physical cpu hotplug for x86_64 This patch enables ACPI based physical CPU hotplug support for x86_64. Implements acpi_map_lsapic() and acpi_unmap_lsapic() to support physical cpu hotplug. Signed-off-by: Ashok Raj Signed-off-by: Andi Kleen Cc: Andi Kleen Cc: "Brown, Len" Signed-off-by: Andrew Morton commit 40bee2ee73c745922e9b2d5595c46f19d1cf1b6f tree 44f4429aa96da7f71f28cc0439cf5eaea8fefd9b parent c0d83745cc67ed71a08c14739a0b286d0239b1e2 author Brice Goglin Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] fix bus numbering format in mmconfig warning Make an mmconfig warning print the bus id with a regular format. Signed-off-by: Brice Goglin Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton commit c0d83745cc67ed71a08c14739a0b286d0239b1e2 tree 34429d7b1ae08178a4b11473481c69c94f4e5f92 parent aada06c9b7f4cdedbeb2bc905893cf1923a0abad author Magnus Damm Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: mark two more functions as __init cyrix_identify() should be __init because transmeta_identify() is. tsc_init() is only called from setup_arch() which is marked as __init. These two section mismatches have been detected using running modpost on a vmlinux image compiled with CONFIG_RELOCATABLE=y. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit aada06c9b7f4cdedbeb2bc905893cf1923a0abad tree 97ed54604e892044c393136037c7412a7025656e parent ba4d40bb5c465f0a4dcc30d02dab80c2cb7e1ff3 author Magnus Damm Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: clean up topology.c There is no need to duplicate the topology_init() function. Signed-off-by: Magnus Damm Signed-off-by: Andi Kleen commit ba4d40bb5c465f0a4dcc30d02dab80c2cb7e1ff3 tree 12b10f26f5efddb15ef8a75a1eff38771334365d parent 522e93e3fcdbf00ba85c72fde6df28cfc0486a65 author Eric W. Biederman Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] Auto size the per cpu area. Now for a completely different but trivial approach. I just boot tested it with 255 CPUS and everything worked. Currently everything (except module data) we place in the per cpu area we know about at compile time. So instead of allocating a fixed size for the per_cpu area allocate the number of bytes we need plus a fixed constant for to be used for modules. It isn't perfect but it is much less of a pain to work with than what we are doing now. AK: fixed warning Signed-off-by: Eric W. Biederman Signed-off-by: Andi Kleen commit 522e93e3fcdbf00ba85c72fde6df28cfc0486a65 tree c6d1d0fd3109a667ca4ee0c0f8dc8a2fe4767240 parent 02ba1a32dbd3d406530a17a2643a8f0f8cbf3acc author Rusty Russell Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: Descriptor and trap table cleanups. The implementation comes from Zach's [RFC, PATCH 10/24] i386 Vmi descriptor changes: Descriptor and trap table cleanups. Add cleanly written accessors for IDT and GDT gates so the subarch may override them. Note that this allows the hypervisor to transparently tweak the DPL of the descriptors as well as the RPL of segments in those descriptors, with no unnecessary kernel code modification. It also allows the hypervisor implementation of the VMI to tweak the gates, allowing for custom exception frames or extra layers of indirection above the guest fault / IRQ handlers. Signed-off-by: Zachary Amsden Signed-off-by: Rusty Russell Signed-off-by: Andi Kleen commit 02ba1a32dbd3d406530a17a2643a8f0f8cbf3acc tree 34264fe17596eb3c83e485c26094d246e8841dac parent 3d08a256da8aed5300bd0752200ece426f49b050 author Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: move kernel_thread_helper into entry.S And add proper CFI annotation to it which was previously impossible. This prevents "stuck" messages by the dwarf2 unwinder when reaching the top of a kernel stack. Includes feedback from Jan Beulich Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 3d08a256da8aed5300bd0752200ece426f49b050 tree 26c7d5362b440fc0b855ff9b6ccace795125b309 parent e8924acb2ef46b96c93f97025815ef3843cb67a2 author Adrian Bunk Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: Make enable_local_apic static enable_local_apic can now become static. Cc: len.brown@intel.com Signed-off-by: Adrian Bunk Signed-off-by: Andi Kleen commit e8924acb2ef46b96c93f97025815ef3843cb67a2 tree 01d8a21850eb4008a2f248ec2b7341a7a4462153 parent 474c256841074b913e76e392082373e12103a75d author Adrian Bunk Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: Make acpi_force static acpi_force can become static. Cc: len.brown@intel.com Signed-off-by: Adrian Bunk Signed-off-by: Andi Kleen commit 474c256841074b913e76e392082373e12103a75d tree 64f6e504e68b8345b1199898c9b03a80e7becee5 parent 273819a2d982faace30e587b86a0683882251fe7 author Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: make fault notifier unconditional and export it It's needed for external debuggers and overhead is very small. Also make the actual notifier chain they use static Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 273819a2d982faace30e587b86a0683882251fe7 tree b2d944c5fcbd85b60e6103484d4c760ce29df98d parent 5e4edbb711417be40f350a319db39888a4edd450 author Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] make fault notifier unconditional and export it It's needed for external debuggers and overhead is very small. Also make the actual notifier chain they use static Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 5e4edbb711417be40f350a319db39888a4edd450 tree d466446f6a0d691bcb17cfc94a683b5579f1dd0d parent 2717941c6a1d8fa543ddca337d450ab30ef91543 author Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386: Fix warning in mpparse.c Fix linux/arch/i386/kernel/mpparse.c: In function #MP_bus_info#: linux/arch/i386/kernel/mpparse.c:232: warning: comparison is always false due to limited range of data type Signed-off-by: Andi Kleen commit 2717941c6a1d8fa543ddca337d450ab30ef91543 tree 1489465cd6b06db0d49df6796293675a47cf6a6f parent 1edf777803bdd2aeeb04cf44508fd9b88737fba8 author Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] Make boot_param_data pure BSS Since it's all zero. Actually I think gcc 4+ will do that automatically, but earlier compilers won't Signed-off-by: Andi Kleen commit 1edf777803bdd2aeeb04cf44508fd9b88737fba8 tree 5b583b439d5fbee22e2c391be9c6c172e34ae222 parent cbf9b4bb76c9ce53b7fdde0dffcd000951b5f0d4 author Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:35 +0200 [PATCH] i386/x86-64: Improve Kconfig description of CRASH_DUMP Improve Kconfig description of CONFIG_CRASH_DUMP. Previously it was too brief to be useful. Cc: vgoyal@in.ibm.com Cc: ebiederm@xmission.com Signed-off-by: Andi Kleen commit cbf9b4bb76c9ce53b7fdde0dffcd000951b5f0d4 tree 0942698b5aef01d2b89fe04111f7ba40b28865f0 parent d28c4393a7bf558538e9def269c1caeab6ec056f author Dimitri Sivanich Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] X86_64 monotonic_clock goes backwards I've noticed some erratic behavior while testing the X86_64 version of monotonic_clock(). While spinning in a loop reading monotonic clock values (pinned to a single cpu) I noticed that the difference between subsequent values occasionally went negative (time going backwards). I found that in the following code: this_offset = get_cycles_sync(); /* FIXME: 1000 or 1000000? */ --> offset = (this_offset - last_offset)*1000 / cpu_khz; } return base + offset; the offset sometimes turns out to be 0, even though this_offset > last_offset. +Added fix From: Toyo Abe The x86_64-mm-monotonic-clock.patch in 2.6.18-rc4-mm2 made a change to the updating of monotonic_base. It now uses cycles_2_ns(). I suggest that a set_cyc2ns_scale() should be done prior to the setup_irq(). Because cycles_2_ns() can be called from the timer ISR right after the irq0 is enabled. Signed-off-by: Toyo Abe Signed-off-by: Dimitri Sivanich Signed-off-by: Andi Kleen commit d28c4393a7bf558538e9def269c1caeab6ec056f tree e5319c9b9c8a75d2290f7429ec84884d7e1a91fe parent 3ca113ea74836a80645c79adba24caaa7a74120c author Prasanna S.P Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] x86: error_code is not safe for kprobes This patch moves the entry.S:error_entry to .kprobes.text section, since code marked unsafe for kprobes jumps directly to entry.S::error_entry, that must be marked unsafe as well. This patch also moves all the ".previous.text" asm directives to ".previous" for kprobes section. AK: Following a similar i386 patch from Chuck Ebbert AK: Also merged Jeremy's fix in. +From: Jeremy Fitzhardinge KPROBE_ENTRY does a .section .kprobes.text, and expects its users to do a .previous at the end of the function. Unfortunately, if any code within the function switches sections, for example .fixup, then the .previous ends up putting all subsequent code into .fixup. Worse, any subsequent .fixup code gets intermingled with the code its supposed to be fixing (which is also in .fixup). It's surprising this didn't cause more havok. The fix is to use .pushsection/.popsection, so this stuff nests properly. A further cleanup would be to get rid of all .section/.previous pairs, since they're inherently fragile. +From: Chuck Ebbert <76306.1226@compuserve.com> Because code marked unsafe for kprobes jumps directly to entry.S::error_code, that must be marked unsafe as well. The easiest way to do that is to move the page fault entry point to just before error_code and let it inherit the same section. Also moved all the ".previous" asm directives for kprobes sections to column 1 and removed ".text" from them. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen commit 3ca113ea74836a80645c79adba24caaa7a74120c tree dbb6f5ac7c3583cd7e2729f8e11fe676bbb3b84e parent 5758d5dfef1c514200bda3f29ba700f1c3e3bc99 author Dave Jones Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] i386: don't taint UP K7's running SMP kernels. We have a test that looks for invalid pairings of certain athlon/durons that weren't designed for SMP, and taint accordingly (with 'S') if we find such a configuration. However, this test shouldn't fire if there's only a single CPU present. It's perfectly valid for an SMP kernel to boot on UP hardware for example. AK: changed to num_possible_cpus() Signed-off-by: Dave Jones Signed-off-by: Andi Kleen commit 5758d5dfef1c514200bda3f29ba700f1c3e3bc99 tree 7d2c859f875d0d5f1eacfbec66d4a9259aaa4893 parent 3b8d1fe0f28202ce1592d9fbc216959b49b72c95 author Jeremy Fitzhardinge Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] i386: fix dubious segment register clear in cpu_init() Fix a very dubious piece of code in arch/i386/kernel/cpu/common.c:cpu_init(). This clears out %fs and %gs, but clobbers %eax in the process without telling gcc. It turns out that gcc happens to be not using %eax at that point anyway so it doesn't matter much, but it looks like a bomb waiting to go off. This does end up saving an instruction, because gcc wants %eax==0 for the set_debugreg()s below. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andi Kleen commit 3b8d1fe0f28202ce1592d9fbc216959b49b72c95 tree a7b852cde2e72bb1dd3f88b7bf268693c35cf643 parent a32cf3975bed3b84491f8ffeb24abe8c45d86ab0 author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] Don't force frame pointers for lockdep Now that stacktrace supports dwarf2 don't force frame pointers for lockdep anymore Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit a32cf3975bed3b84491f8ffeb24abe8c45d86ab0 tree f327b09bc2b17e66645f1b7b97c3b7ac11133e1b parent 950fee84557416a3427dd404a13addc4be7b3e6c author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] i386: Get ebp from unwinder state when continuing fallback backtrace Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 950fee84557416a3427dd404a13addc4be7b3e6c tree 8deea7e7c6d4a57bb1970f0dcb9afa387a74729c parent 2b14a78cd07a52001b8c3865ed615d8b9b905b78 author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] i386: Terminate backtrace fallback early if unwinder stack pointer is zero Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 2b14a78cd07a52001b8c3865ed615d8b9b905b78 tree 415682b4b8a65322ed881fce5ae04fcb36f55930 parent be7a91709b90825990e571b2f20cea937d5eef6c author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] i386: Do stacktracer conversion too Following x86-64 patches. Reuses code from them in fact. Convert the standard backtracer to do all output using callbacks. Use the x86-64 stack tracer implementation that uses these callbacks to implement the stacktrace interface. This allows to use the new dwarf2 unwinder for stacktrace and get better backtraces. Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit be7a91709b90825990e571b2f20cea937d5eef6c tree fe09719e040b6d2ae535a08958f7e57f8a9babe6 parent c0b766f13d8e1189ce4d00e54700c9d96b543b9a author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] Check for end of stack trace before falling back Signed-off-by: Andi Kleen commit c0b766f13d8e1189ce4d00e54700c9d96b543b9a tree 7acb6b7a46b3b0b53328f7d72949f75a57509064 parent c9538ed49272fb244ac06ba643ff076a68a77e12 author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] Merge stacktrace and show_trace This unifies the standard backtracer and the new stacktrace in memory backtracer. The standard one is converted to use callbacks and then reimplement stacktrace using new callbacks. The main advantage is that stacktrace can now use the new dwarf2 unwinder and avoid false positives in many cases. I kept it simple to make sure the standard backtracer stays reliable. Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit c9538ed49272fb244ac06ba643ff076a68a77e12 tree c720082e74ffbac1c29d88c21754d7605fe8e9b1 parent b7f5e3c7742d5332b78b831131f43fc3630e6322 author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] Move unwind_init earlier Needed for use of the unwinder in lockdep, because lockdep runs really early too. Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit b7f5e3c7742d5332b78b831131f43fc3630e6322 tree 4334c97a3a8e2ac409444ecb2d7844d3a63e4118 parent 3fa7c794fe4dc127f7fac3fad4d13628e68f89ce author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] Don't access the APIC in safe_smp_processor_id when it is not mapped yet Lockdep can call the dwarf2 unwinder early, and the dwarf2 code uses safe_smp_processor_id which tries to access the local APIC page. But that doesn't work before the APIC code has set up its fixmap. Check for this case and always return boot cpu then. Cc: jbeulich@novell.com Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit 3fa7c794fe4dc127f7fac3fad4d13628e68f89ce tree 855a6737a2275317bcd3f3a9934c33dcadba6e6f parent 5a1b3999d6cb7ab87f1f3b1700bc91839fd6fa29 author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] Avoid recursion in lockdep when stack tracer takes locks The new dwarf2 unwinder needs to take locks to do backtraces inside modules. This patch makes sure lockdep which calls stacktrace is not reentered. Thanks to Ingo for suggesting this simpler approach. Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit 5a1b3999d6cb7ab87f1f3b1700bc91839fd6fa29 tree ec969406fe68d875d7904c364ea9a5b74c084567 parent 4ea8a5d8b57cd504b4b2de1212523848e7ab50cf author Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:34 +0200 [PATCH] x86: Some preparationary cleanup for stack trace - Remove unused all_contexts parameter No caller used it - Move skip argument into the structure (needed for followon patches) Cc: mingo@elte.hu Signed-off-by: Andi Kleen commit 4ea8a5d8b57cd504b4b2de1212523848e7ab50cf tree 35f3b5cf4cc03a8bea32f97cdc6d5026d765804d parent 4ccf4ae3144360ab9c00d0b53427f43369287bfb author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Calgary IOMMU: eradicate sole remaining 80 chars per line offender Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 4ccf4ae3144360ab9c00d0b53427f43369287bfb tree 243d32f93601ba6063809e1961fa222df701b5f9 parent 796e4390e0378e1e57c033349610cfc741696a3d author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] remove tce_cache_blast_stress() tce_cache_blast_stress was useful during bringup to stress the IOMMU's cache flushing. Now that we quiesce DMAs on every cache flush, using _stress() brings the machine down to its knees once you put it under load. Remove this debug / bringup code that isn't useful anymore completely. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 796e4390e0378e1e57c033349610cfc741696a3d tree 7669081e84ad3d3f39f8e15963dd2105b2ffa022 parent de684652f34f57cb60d4d78d09139a0e0c5e7b1b author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] only verify the allocation bitmap if CONFIG_IOMMU_DEBUG is on Introduce new function verify_bit_range(). Define two versions, one for CONFIG_IOMMU_DEBUG enabled and one for disabled. Previously we were checking that the bitmap was consistent every time we allocated or freed an entry in the TCE table, which is good for debugging but incurs an unnecessary penalty on non debug builds. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit de684652f34f57cb60d4d78d09139a0e0c5e7b1b tree bc3f7dd5a91086ceb51d4cb5fcc1f77095f2b713 parent 2ade2920dcefdf5595c6380ebed131c964190855 author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] print whether CONFIG_IOMMU_DEBUG is enabled Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 2ade2920dcefdf5595c6380ebed131c964190855 tree 053542af977e5c402633771bb737f3d8a0efef33 parent 91cd444e56ebe0c2acd9576a045d77490b26f607 author Chuck Ebbert <76306.1226@compuserve.com> Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] i386/x86-64: rename is_at_popf(), add iret to tests and fix is_at_popf() needs to test for the iret instruction as well as popf. So add that test and rename it to is_setting_trap_flag(). Also change max insn length from 16 to 15 to match reality. LAHF / SAHF can't affect TF, so the comment in x86_64 is removed. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen commit 91cd444e56ebe0c2acd9576a045d77490b26f607 tree 647c37392e41541efb67d8656703f36cf15b5e35 parent 2b94ab2fd55768030e177a6ec224dedd031ad06b author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] x86: Remove unneeded externs in acpi/boot.c And move one into proto.h Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit 2b94ab2fd55768030e177a6ec224dedd031ad06b tree 270ebf8207932190d2ec0b725c82dc8039b24fe7 parent 52d522f53f137c7903db22f9196a48ad8658fb2b author Fernando Luis Vázquez Cao Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Replace local_save_flags+local_irq_disable with The combination of "local_save_flags" and "local_irq_disable" seems to be equivalent to "local_irq_save" (see code snips below). Consequently, replace occurrences of local_save_flags+local_irq_disable with local_irq_save. * local_irq_save #define raw_local_irq_save(flags) \ do { (flags) = __raw_local_irq_save(); } while (0) static inline unsigned long __raw_local_irq_save(void) { unsigned long flags = __raw_local_save_flags(); raw_local_irq_disable(); return flags; } * local_save_flags #define raw_local_save_flags(flags) \ do { (flags) = __raw_local_save_flags(); } while (0) Signed-off-by: Fernando Vazquez Signed-off-by: Andi Kleen commit 52d522f53f137c7903db22f9196a48ad8658fb2b tree f9f50374a2fe738217c64d155315275f47fb494e parent ddb15ec130d38cb8076a9926040c7435b126db65 author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Fix sparse warnings in compat aout code Signed-off-by: Andi Kleen commit ddb15ec130d38cb8076a9926040c7435b126db65 tree 9c0ae01edb41409dfbf376bd60edda46ca70f95b parent dd2994f619752fb731f21c89ad16536dd6673948 author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Fix most sparse warnings in sys_ia32.c Mostly by adding casts. I didn't touch the "invalid access past ..." which are caused by the sigset conversion. Signed-off-by: Andi Kleen commit dd2994f619752fb731f21c89ad16536dd6673948 tree f56447ea8c2a54a8eb74ea8a9a5f802f8afe76d4 parent 131cfd7bd54767ec8959e013f83839442a54d546 author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Add sparse annotations to quiet sparse in arch/x86_64/mm/fault.c Fixes linux/arch/x86_64/mm/fault.c:125:7: warning: incorrect type in argument 1 (different address spaces) linux/arch/x86_64/mm/fault.c:125:7: expected void [noderef] * linux/arch/x86_64/mm/fault.c:125:7: got unsigned char *[assigned] instr linux/arch/x86_64/mm/fault.c:163:8: warning: incorrect type in argument 1 (different address spaces) linux/arch/x86_64/mm/fault.c:163:8: expected void [noderef] * linux/arch/x86_64/mm/fault.c:163:8: got unsigned char *[assigned] instr linux/arch/x86_64/mm/fault.c:179:9: warning: incorrect type in argument 1 (different address spaces) linux/arch/x86_64/mm/fault.c:179:9: expected void [noderef] * linux/arch/x86_64/mm/fault.c:179:9: got unsigned long * Signed-off-by: Andi Kleen commit 131cfd7bd54767ec8959e013f83839442a54d546 tree 25f08ec22a6559939296a1c50c138c96a2d334b5 parent 3bd4d18cbab622c504f131f3c0029c3aa29c05be author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Add sparse annotation to vsyscall.c Fixes linux/arch/x86_64/kernel/vsyscall.c:276:7: warning: constant 0x0f40000000000 is so big it is long linux/arch/x86_64/kernel/vsyscall.c:80:14: warning: incorrect type in argument 1 (different address spaces) linux/arch/x86_64/kernel/vsyscall.c:80:14: expected void const volatile [noderef] *addr linux/arch/x86_64/kernel/vsyscall.c:80:14: got void * linux/arch/x86_64/kernel/vsyscall.c:200:7: warning: incorrect type in assignment (different address spaces) linux/arch/x86_64/kernel/vsyscall.c:200:7: expected unsigned short [usertype] *map1 linux/arch/x86_64/kernel/vsyscall.c:200:7: got void [noderef] * linux/arch/x86_64/kernel/vsyscall.c:203:7: warning: incorrect type in assignment (different address spaces) linux/arch/x86_64/kernel/vsyscall.c:203:7: expected unsigned short [usertype] *map2 linux/arch/x86_64/kernel/vsyscall.c:203:7: got void [noderef] * linux/arch/x86_64/kernel/vsyscall.c:215:10: warning: incorrect type in argument 1 (different address spaces) linux/arch/x86_64/kernel/vsyscall.c:215:10: expected void volatile [noderef] *addr linux/arch/x86_64/kernel/vsyscall.c:215:10: got unsigned short [usertype] *map2 linux/arch/x86_64/kernel/vsyscall.c:217:10: warning: incorrect type in argument 1 (different address spaces) linux/arch/x86_64/kernel/vsyscall.c:217:10: expected void volatile [noderef] *addr linux/arch/x86_64/kernel/vsyscall.c:217:10: got unsigned short [usertype] *map1 Signed-off-by: Andi Kleen commit 3bd4d18cbab622c504f131f3c0029c3aa29c05be tree be775e71a87f6468e5e7d00819a7029a91959152 parent c31fbb1ad890b11f037c16496e53f28877c12722 author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Move e820 map into e820.c Minor cleanup. Keep setup.c free from unrelated clutter. Signed-off-by: Andi Kleen commit c31fbb1ad890b11f037c16496e53f28877c12722 tree 16255a334807034097d581bad2938f377d11a45a parent df3bb57d2c0160ccd1ee51322f50aa295c3b0858 author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] Clean up acpi_numa variable Move it into srat.c No need to clutter up setup.c for it And remove use in setup.c completely - it only guarded a printk which can be done unconditionally. Signed-off-by: Andi Kleen commit df3bb57d2c0160ccd1ee51322f50aa295c3b0858 tree 056c22f744540d288d1ad7b5422465f66c645580 parent 43c85c9c5dff76efc1e411d3302840027ea92004 author Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:33 +0200 [PATCH] i386/x86-64: Move acpi_disabled variables into acpi/boot.c Removes code duplication between i386/x86-64. Not needed anymore in setup.c since early_param cleanup Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit 43c85c9c5dff76efc1e411d3302840027ea92004 tree 4923b42a0fadfa8206af684ea4c9958d2a2e03ea parent 2c8c0e6b8d7700a990da8d24eff767f9ca223b96 author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Remove need for early lockdep init I think it was only needed for the printks and we can do them later. I put in a single early_printk so that we know the kernel is alive (early_printk doesn't need any locks) This makes some things easier for initialization of unwind for lockdep, which is needed by later patches. cc: mingo@elte.hu Signed-off-by: Andi Kleen commit 2c8c0e6b8d7700a990da8d24eff767f9ca223b96 tree b5477ee2558efff235c483d1619ce892db479d18 parent 1a3f239ddf9208f2e52d36fef1c1c4518cbbbabe author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Convert x86-64 to early param Instead of hackish manual parsing Requires earlier i386 patchkit, but also fixes i386 early_printk again. I removed some obsolete really early parameters which didn't do anything useful. Also made a few parameters that needed it early (mostly oops printing setup) Also removed one panic check that wasn't visible without early console anyways (the early console is now initialized after that panic) This cleans up a lot of code. Signed-off-by: Andi Kleen commit 1a3f239ddf9208f2e52d36fef1c1c4518cbbbabe tree f2ad21f766102540e15ea61145e94be65901e272 parent 33df0d19ea425d28bd5afb48898af32237fe81af author Rusty Russell Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] i386: Replace i386 open-coded cmdline parsing with This patch replaces the open-coded early commandline parsing throughout the i386 boot code with the generic mechanism (already used by ppc, powerpc, ia64 and s390). The code was inconsistent with whether it deletes the option from the cmdline or not, meaning some of these will get passed through the environment into init. This transformation is mainly mechanical, but there are some notable parts: 1) Grammar: s/linux never set's it up/linux never sets it up/ 2) Remove hacked-in earlyprintk= option scanning. When someone actually implements CONFIG_EARLY_PRINTK, then they can use early_param(). [AK: actually it is implemented, but I'm adding the early_param it in the next x86-64 patch] 3) Move declaration of generic_apic_probe() from setup.c into asm/apic.h 4) Various parameters now moved into their appropriate files (thanks Andi). 5) All parse functions which examine arg need to check for NULL, except one where it has subtle humor value. AK: readded acpi_sci handling which was completely dropped AK: moved some more variables into acpi/boot.c Cc: len.brown@intel.com Signed-off-by: Rusty Russell Signed-off-by: Andi Kleen commit 33df0d19ea425d28bd5afb48898af32237fe81af tree 98305a70ad02fd680fd1bb21eedb08c51df17823 parent 9ca33eb6981549c0d1b7aea7f99f1ba602161356 author Rusty Russell Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Allow early_param and identical __setup to exist We currently assume that boot parameters which are handled by early_param() will not overlap boot parameters handled by __setup: if they do, behaviour is dependent on link order, usually meaning __setup will not get called. ACPI wants to use early_param("pci"), and pci uses __setup("pci="), so we modify the core to let them coexist: "pci=noacpi" will now get passed to both. Signed-off-by: Rusty Russell Signed-off-by: Andi Kleen commit 9ca33eb6981549c0d1b7aea7f99f1ba602161356 tree 9b74231b83fdf834f40fac40b95b0b6656835b9b parent d4d35854a1cf7fb170c8e133a5e40a9d19e7fc17 author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Use early CPU identify before early command line parsing This makes it possible to modify CPU flags in command line options without hacks. And remove another copy in head64.c Signed-off-by: Andi Kleen commit d4d35854a1cf7fb170c8e133a5e40a9d19e7fc17 tree bf115d920f235178344dbf545facb9daa769f9e1 parent 145106e81090fcdfb57b7f2e90b98c6445b6f33d author Chuck Ebbert <76306.1226@compuserve.com> Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] remove lock prefix from is_at_popf() tests The lock prefix will cause an exception when used with the popf instruction, so no need to continue searching after it's found. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen commit 145106e81090fcdfb57b7f2e90b98c6445b6f33d tree dc6b0a457fa38daf7032764ba44f03d14563c4d8 parent 29a6c25bd63dbd52e73d25268402d065ad84c0fe author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] remove superflous BUG_ON's in nommu and gart There's no need to check for invalid DMA data direction in nommu and gart since we do it in dma-mapping.h anyway before calling the individual dma-ops. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Andi Kleen commit 29a6c25bd63dbd52e73d25268402d065ad84c0fe tree 5f97fdcd9a9b156adb9180531b5c22e7b8d3fbd1 parent 8d379dad8f1670d233ac67b76b1c5a42ad3714a3 author Eric W. Biederman Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Fix gdt table size in trampoline.S Allows easier extension of the GDT by using the proper C symbol for the size in the descriptor. Signed-off-by: Eric W. Biederman Signed-off-by: Andi Kleen commit 8d379dad8f1670d233ac67b76b1c5a42ad3714a3 tree 7c0dff27bf08da33760b97529ee65aff911260d1 parent fb2e28485679418e459583605f9b19807a72ceca author Jan Beulich Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] annotate arch/x86_64/lib/*.S Add unwind annotations to arch/x86_64/lib/*.S, and also use the macros provided by linux/linkage.h where-ever possible. Some of the alternative instructions handling needed to be adjusted so that the replacement code would also have valid unwind information. Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen commit fb2e28485679418e459583605f9b19807a72ceca tree c3e6bf7f75fb9c6ed286ef09eebf281388761cfe parent 8b059d2373c16b6d32787a49daf8ccf72dc61b71 author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] i386: Clean up spin/rwlocks - Inline spinlock strings into their inline functions - Convert macros to typesafe inlines - Replace some leftover __asm__ __volatile__s with asm volatile Signed-off-by: Andi Kleen commit 8b059d2373c16b6d32787a49daf8ccf72dc61b71 tree 4814940e77c8956bd94d35edf765ff1698e4c57c parent a752d7194c4fb5a3e767c95542d04fc5decb1d52 author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Clean up spin/rwlocks - Inline spinlock strings into their inline functions - Convert macros to typesafe inlines - Replace some leftover __asm__ __volatile__s with asm volatile Signed-off-by: Andi Kleen commit a752d7194c4fb5a3e767c95542d04fc5decb1d52 tree b63d56f85c10f5f26c67dc3e8cf4ac6366f4824b parent 8578bdf835d6d6ece6718858d351456367b8a5cf author Chuck Ebbert <76306.1226@compuserve.com> Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] fix is_at_popf() for compat tasks When testing for the REX instruction prefix, first check for 32-bit mode because in compat mode the REX prefix is an increment instruction. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen commit 8578bdf835d6d6ece6718858d351456367b8a5cf tree 5bf4aa72bda1f5c508d955a2d32b5d292f8bd5a7 parent 7ca2b49b06a6d26e89e3535653889f1d7892b085 author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] Don't use lock section for mutexes and semaphores Lock sections cannot be handled by the dwarf2 unwinder. Disadvantage is a taken branch in the hot path. Signed-off-by: Andi Kleen commit 7ca2b49b06a6d26e89e3535653889f1d7892b085 tree 99e460b4da18b0d841267082219d9b390c13a649 parent add659bf8aa92f8b3f01a8c0220557c959507fb1 author Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:32 +0200 [PATCH] i386: Remove lock section support in semaphore.h Lock sections don't work the new dwarf2 unwinder This generates slightly smaller code. It adds one more taken jump to the fast path. Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit add659bf8aa92f8b3f01a8c0220557c959507fb1 tree ef140ba27d91ee45ee0a01ab7d92de5138a681ca parent 01215ad8d83e18321d99e9b5750a6f21cac243a2 author Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] i386: Remove lock section support in rwsem.h Lock sections don't work the new dwarf2 unwinder This generates slightly smaller code. It adds one more taken jump to the fast path. Also move the trampolines into semaphore.S and add proper CFI annotations. Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 01215ad8d83e18321d99e9b5750a6f21cac243a2 tree aad34bac0001d2b2788dcb5c68566372db7968c3 parent 0577f148b5e9a773020e3da1e6332a7c6df9d601 author Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] i386: Remove lock section support in mutex.h Lock sections don't work the new dwarf2 unwinder This generates slightly smaller code. It adds one more taken jump to the fast path. Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 0577f148b5e9a773020e3da1e6332a7c6df9d601 tree b425365c016666166de6949cb6032ad35e830b82 parent a4fc520a0ff92810eea46d74bf742ef73849302e author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: save a bit of space in bus_info Make translation_disabled a uchar rather than an int Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit a4fc520a0ff92810eea46d74bf742ef73849302e tree 22cc8eceaa7442dedf2b9d11259ab54fb734db47 parent 871b17008e93d7e96f96829ce5f0393c9902d25b author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: calgary_init_one_nontraslated() can return void Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 871b17008e93d7e96f96829ce5f0393c9902d25b tree 03916d1e9c800ed74a50606408481c4b1c984f8e parent b8f4fe66a560b5ccbb4d4d0d2df356a5d9b98b83 author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: fix reference counting of Calgary PCI devices The pci_get_device() API decrements the reference count on the 'from' parameter when it continues searching. Therefore, take a ref count on Calgary bus when we initialize them in either translated or non-translated mode. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit b8f4fe66a560b5ccbb4d4d0d2df356a5d9b98b83 tree 71b68a0950e4058dd0a4771d093f4e2a58227820 parent 9f2dc46d5ec6fd7787182d2232a1003af11879f1 author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: fix error path memleak in calgary_free_tar We were freeing the iommu_table and leaking the bitmap pages. Also rename it to calgary_free_bus, which is more accurate. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 9f2dc46d5ec6fd7787182d2232a1003af11879f1 tree 0687b1d5fa344c7c162f90d11933385cbad336a6 parent f38db651d5da5e10235fd7dd31095969fb7ef6fb author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: break out of pci_find_device_reverse if dev not found Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit f38db651d5da5e10235fd7dd31095969fb7ef6fb tree 4df8d0921b5c4e392adad94eec8407e39e9ffae0 parent 5f4a7a93886ce1a4327f6028cc05d423f39eebf0 author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: consolidate per bus data structures Move the tce_table_kva array, disabled bitmap and bus_to_phb array into a new per bus 'struct calgary_bus_info'. Also slightly reorganize build_tce_table and tce_table_setparms to avoid exporting bus_info to tce.c. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 5f4a7a93886ce1a4327f6028cc05d423f39eebf0 tree 0c1ecfe880ce775fadce814f024412adc7196511 parent 352f7bae81faa2befa2a3c02b84478dce16b8fd6 author Muli Ben-Yehuda Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Calgary IOMMU: rearrange 'struct iommu_table' members Rearrange struct members loosely based on size for improved alignment and to save a few bytes. Signed-off-by: Muli Ben-Yehuda Signed-off-by: Jon Mason Signed-off-by: Andi Kleen commit 352f7bae81faa2befa2a3c02b84478dce16b8fd6 tree bcbaf7f7d1a71b2a7ded24e41a43b2ef848b8559 parent ba9c231f7499ff6918c069c72ff5fd836c76b963 author Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Add stack documentation document from Keith Owens Describes the stack organization on x86-64. I changed it a bit and removed some obsolete information and the questions. Cc: kaos@sgi.com Signed-off-by: Andi Kleen commit ba9c231f7499ff6918c069c72ff5fd836c76b963 tree dac0a7d22adf1d00ecf37e9b21f2115cbd12eb24 parent 3b94355c47e2b025a7ececa0a14180e8fce6b0f1 author Jan Beulich Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] i386: initialize end-of-memory variables as early as possible Move initialization of all memory end variables to as early as possible, so that dependent code doesn't need to check whether these variables have already been set. Change the range check in kunmap_atomic to actually make use of this so that the no-mapping-estabished path (under CONFIG_DEBUG_HIGHMEM) gets used only when the address is inside the lowmem area (and BUG() otherwise). Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen commit 3b94355c47e2b025a7ececa0a14180e8fce6b0f1 tree 365eaa79b1ef8bc862d3a13cd9f14489949a2d3d parent caff0710ebf6f2c44cbd2b8b31fd6329148bed2e author Jan Beulich Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] remove int_delivery_dest The genapic field and the accessor macro weren't used anywhere. Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen commit caff0710ebf6f2c44cbd2b8b31fd6329148bed2e tree a459d30fa0a9260bda441e27ff6b8414af735d82 parent 44cc45267bbe7c64f7d85b074bd670b48b5abdfb author Jan Beulich Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] initialize end of memory variables as early as possible While an earlier patch already did a small step into that direction, this patch moves initialization of all memory end variables to as early as possible, so that dependent code doesn't need to check whether these variables have already been set. Also, remove a misleading (perhaps just outdated) comment, and make static a variable only used in a single file. Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen commit 44cc45267bbe7c64f7d85b074bd670b48b5abdfb tree 6432e51cef055cadc2bb428177d492c77935de92 parent e2414910f212c52d9d7c64c99a22863488ac5b48 author Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:31 +0200 [PATCH] Remove obsolete CVS $Id$ from assembler files in arch/x86_64/kernel/* CVS hasn't been used for a long time for them. Signed-off-by: Andi Kleen commit e2414910f212c52d9d7c64c99a22863488ac5b48 tree 5a7e55191ace4aa755c0684bcefc9cf1b124128c parent fe7414a2882c953788af13a7f2c9d570ed8f71c5 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] x86: Detect CFI support in the assembler at runtime ... instead of using a CONFIG option. The config option still controls if the resulting executable actually has unwind information. This is useful to prevent compilation errors when users select CONFIG_STACK_UNWIND on old binutils and also allows to use CFI in the future for non kernel debugging applications. Cc: jbeulich@novell.com Cc: sam@ravnborg.org Signed-off-by: Andi Kleen commit fe7414a2882c953788af13a7f2c9d570ed8f71c5 tree 26a2c63f2d759d6d50cac0030d90a3bafeb9e360 parent 19f03ffecdb599c1f64113b6dda0a1f143d2bab9 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Use BUILD_BUG_ON in apic.c build sanity checking Makes code a little shorter. Signed-off-by: Andi Kleen commit 19f03ffecdb599c1f64113b6dda0a1f143d2bab9 tree 3b482484508fd378cf27682c69699413f419fd28 parent efec3b9a3282714c8441b9bf476f8358bed9ecaa author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] i386: Clean up code style in mpparse.c ACPI code Remove some unlinuxy ways to write function parameter definitions. Remove some stray "return;"s No functional change. Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit efec3b9a3282714c8441b9bf476f8358bed9ecaa tree f6e063e344f1d6d43d150834bd588dc0e37bc84a parent 276ec1a76ad204d47947894a914e10e798400ffb author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Fix up some non linuxy style in ACPI functions in mpparse.c No functional changes. Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit 276ec1a76ad204d47947894a914e10e798400ffb tree c23e8ea4160de7685486db9cb8ecd1b2cb028547 parent a01fd3baff5e2e744f9d1af0e5d3e6b6082e4dcf author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Remove some unneeded ACPI externs in mpparse.c They are not used in this file so remove them. i386 didn't have them either. Cc: len.brown@intel.com Signed-off-by: Andi Kleen commit a01fd3baff5e2e744f9d1af0e5d3e6b6082e4dcf tree 1c2d48e6dc9770b89d6144103aa05047b427bf11 parent 55f05ffaa788e039df2f1ebe0d7bfbcb6f39d0b4 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Remove useless wrapper in mpparse.c code It used to contain support code for NUMAQ, but that is long gone already on 64bit. Signed-off-by: Andi Kleen commit 55f05ffaa788e039df2f1ebe0d7bfbcb6f39d0b4 tree 9b4da733f1afd01fea6622468b41561522e62cfa parent dfa4698c50bf85b7927214b0e4a3dc4bc3b3c4a9 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Replace mp bus array with bitmap for bus not pci Since we only support PCI and ISA legacy busses now there is no need to have an full array with checking. Signed-off-by: Andi Kleen commit dfa4698c50bf85b7927214b0e4a3dc4bc3b3c4a9 tree 5273f10e463cef99b1a3fd4d369a8a6f2f4c6dce parent edd965229669f8f8dfddec8c863250440fb65ab3 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Move early chipset quirks out to new file They did not really belong into io_apic.c. Move them into a new file and clean it up a bit. Also remove outdated ATI quirk that was obsolete, Signed-off-by: Andi Kleen commit edd965229669f8f8dfddec8c863250440fb65ab3 tree 29c1af6da44624c394a65e464c2e1d3b05545369 parent 606bd58de6542e847c51b1b6d83a4cd70a632fe7 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Remove MPS table APIC renumbering The MPS table specification says that the operating system should renumber the IO-APICs following the table as needed. However in ACPI this is not allowed or neeeded and all x86-64 systems are ACPI compliant. The code was already disabled on some systems because it caused problems there. Remove it completely now. CC: mdomsch@dell.com Signed-off-by: Andi Kleen commit 606bd58de6542e847c51b1b6d83a4cd70a632fe7 tree e7ff122d738c2ce73f01f2c8dd6517c9f960fdc9 parent cf4c6a2f27f5db810b69dcb1da7f194489e8ff88 author Diego Calleja Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] x86: AUX_DEVICE_INFO is one byte long, use 'movb' Bugzilla #6552 says: "In arch/i386/boot/setup.S, movw is used instead of movb for PS/2 mouse information, although it is unsigned char. This does not harm, because the jmp instruction overwritten by movw is used before executing movw, and never be used again" I've no idea if this is a real bug or how it gets fixed, so I'm submitting it for review instead of letting it die of boredom in bugzilla. Aditionally to i386, I've changed x86-64, which mirrors the same code. Credits to Yoshinori K. Okuji, who found the problem and suggested a fix. Signed-off-by: Diego Calleja Signed-off-by: Andi Kleen commit cf4c6a2f27f5db810b69dcb1da7f194489e8ff88 tree 5fa0570be61c6250065e2d895978ded86631c87d parent eea0e11c1f0d6ef89e64182b2f1223a4ca2b74a2 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] i386: Factor out common io apic routing entry access The IO APIC code had lots of duplicated code to read/write 64bit routing entries into the IO-APIC. Factor this out int common read/write functions In a few cases the IO APIC lock is taken more often now, but this isn't a problem because it's all initialization/shutdown only slow path code. Similar to earlier x86-64 patch. Includes a fix by Jiri Slaby for a mistake that broke resume Signed-off-by: Andi Kleen commit eea0e11c1f0d6ef89e64182b2f1223a4ca2b74a2 tree 83d9513a49194e07142505bb4e3d7bf2e5da827b parent c1a58b42b428e717afbbb298356e041cea54ad17 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Factor out common io apic routing entry access The IO APIC code had lots of duplicated code to read/write 64bit routing entries into the IO-APIC. Factor this out int common read/write functions In a few cases the IO APIC lock is taken more often now, but this isn't a problem because it's all initialization/shutdown only slow path code. Signed-off-by: Andi Kleen commit c1a58b42b428e717afbbb298356e041cea54ad17 tree f437214b94cb406fb95eddc150a7895f968292bc parent a8fcf1a24a16e1c735c795d99773b5dcefb71518 author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] i386/x86-64: Remove obsolete sanity check in mptable parsing It apparently has never triggered in many years. Signed-off-by: Andi Kleen commit a8fcf1a24a16e1c735c795d99773b5dcefb71518 tree c1edcfe3b21dcee6d5f25a4461607a3dd785419c parent e50991343488edf25d58820be1684322808c763c author Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:30 +0200 [PATCH] Remove obsolete PIC mode PIC mode is an outdated way to drive the APICs that was used on some early MP boards. It is not supported in the ACPI model. It is unlikely to be ever configured by any x86-64 system Remove it thus. Signed-off-by: Andi Kleen commit e50991343488edf25d58820be1684322808c763c tree 66146dc38d14df9c0c7e9871f7179b304f6b57e5 parent 5cb6b99928a8f1a1bbdac7a16b88aef8cb64d432 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Remove leftover MCE/EISA support No 64bit EISA or Microchannel systems ever. Remove the left over code in the IO-APIC driver and the mptable parser Signed-off-by: Andi Kleen commit 5cb6b99928a8f1a1bbdac7a16b88aef8cb64d432 tree 1a5964a3e6cf530a52efc1ac2dc8932d72cd86c9 parent 2e91a17b35116885373e04af142b1d08cf1b47bf author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Remove pirq overwrite support This was an old workaround for broken MP-BIOS. The user could specify overwrites on the command line. I've never seen it being used for anything on 64bit. So get rid of it for now. Signed-off-by: Andi Kleen commit 2e91a17b35116885373e04af142b1d08cf1b47bf tree d409c8029d3ffc9f4a3ee739cf09ef566adc6610 parent 107878bb14b1fb6bddc646f4d5e72e8beaa2f6a2 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Add some comments to entry.S And remove some old obsolete ones. Signed-off-by: Andi Kleen commit 107878bb14b1fb6bddc646f4d5e72e8beaa2f6a2 tree 9584b064a1d2b2fc4e0752404e5eb0a6c893b56b parent b1c78c0fcc29097567e1afc39701012e6d89adb7 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] i386: Minor fixes & cleanup to tlb flush (based on x86-64 changes) - Add a proper memory clobber to invlpg - Remove an unused extern Signed-off-by: Andi Kleen commit b1c78c0fcc29097567e1afc39701012e6d89adb7 tree 9b9a2a302740c7a68003ade0536ab244f20cb08c parent 3f14c746a61ec932c204aca820c02c293118c5df author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Clean up and minor fixes to TLB flush - Convert CR* accesses to dedicated inline functions and rewrite the rest as C inlines - Don't do a double flush for global flushes (pointed out by Zach Amsden) This was a bug workaround for old CPUs that don't do 64bit and is obsolete. - Add a proper memory clobber to invlpg - Remove an unused extern Signed-off-by: Andi Kleen commit 3f14c746a61ec932c204aca820c02c293118c5df tree 69499692e40c5457265bdabb26556100c9fc7adb parent 6c96a29f20762e8ce40b674f906055d009c302ee author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Remove old "focus disabled" chipset errata workaround The new systems already use focus disabled and the comment was completely outdated. Signed-off-by: Andi Kleen commit 6c96a29f20762e8ce40b674f906055d009c302ee tree 4738438c8b6502c0e0a3efc08dd8088a1d2f4318 parent 7f11d8a5efd625ffa41cde1d8472f85e885478ec author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Remove apic mismatch counter Nobody has been setting the mismatch counter and the ifdef was never set so remove it. Signed-off-by: Andi Kleen commit 7f11d8a5efd625ffa41cde1d8472f85e885478ec tree 4f80219fc2153166c89c54d6555498155fa2f3b2 parent 5ba5891d44a6acade44887a0f3195489d46c12de author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Remove all ifdefs for local/io apic IO-APIC or local APIC can only be disabled at runtime anyways and Kconfig has forced these options on for a long time now. The Kconfigs are kept only now for the benefit of the shared acpi boot.c code. Signed-off-by: Andi Kleen commit 5ba5891d44a6acade44887a0f3195489d46c12de tree 4d3e9a876c087ac9c369a24d0d62497fabf27f0b parent cc1e684a9f1cc069b2ac249aa11486613369dd69 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Add some comments what tce.c actually does Signed-off-by: Andi Kleen commit cc1e684a9f1cc069b2ac249aa11486613369dd69 tree 9ea75d870c6728d979a90dd419a98e9b799ccce4 parent ecaf45ee5ce60afe7cc46e91d82c1b0cbda09387 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Remove leftover CVS Id in thunk.S And move the comment to a proper place. Signed-off-by: Andi Kleen commit ecaf45ee5ce60afe7cc46e91d82c1b0cbda09387 tree 09ff150151dc6724f250da068c2653dc13b4e3c0 parent 07c9819b31eda7954feddc83f2fae035f31c11e1 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] i386: Redo semaphore and rwlock assembly helpers - Move them to a pure assembly file. Previously they were in a C file that only consisted of inline assembly. Doing it in pure assembler is much nicer. - Add a frame.i include with FRAME/ENDFRAME macros to easily add frame pointers to assembly functions - Add dwarf2 annotation to them so that the new dwarf2 unwinder doesn't get stuck on them - Random cleanups Includes feedback from Jan Beulich and a UML build fix from Andrew Morton. Cc: jbeulich@novell.com Cc: jdike@addtoit.com Signed-off-by: Andi Kleen commit 07c9819b31eda7954feddc83f2fae035f31c11e1 tree 7eb34bdcd74075d0e01da0daa93d5123032bc7bb parent b06babac45e1546dfb504f1f25eb0495632bfc41 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] i386: add alternative-asm.h to allow LOCK_PREFIX replacement in .S files LOCK_PREFIX is replaced by nops on UP systems, so it has to be a special macro. Previously this was only possible from C. Allow it for pure assembly files too. Similar to earlier x86-64 patch. Signed-off-by: Andi Kleen commit b06babac45e1546dfb504f1f25eb0495632bfc41 tree 687c60b4db34301f3d96f50d8ee4577a7427f155 parent 1a015b5644ec6df0a2c4cbeff1f8a3d24ba0478e author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] Add proper alignment to ENTRY Previously it didn't align. Use the same one as the C compiler in blended mode, which is good for K8 and Core2 and doesn't hurt on P4. Signed-off-by: Andi Kleen commit 1a015b5644ec6df0a2c4cbeff1f8a3d24ba0478e tree 776cc4bfdf3a6aa74269a5b8458759a2157c770a parent 9a0b26e6bc4ae1979d9bcc6194e57a71b2b5cac6 author Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:29 +0200 [PATCH] i386: Remove const case for rwlocks rwlocks are now out of line, so it near never triggers. Also it was incompatible with the new dwarf2 unwinder because it had unannotiatable push/pops. Signed-off-by: Andi Kleen commit 9a0b26e6bc4ae1979d9bcc6194e57a71b2b5cac6 tree 01601a502007b85d4fc88f79de7a93c257ef9d97 parent b4062b16094038334d9bbadac0397a3fc9e981b0 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Clean up read write lock assembly - Move the slow path fallbacks to their own assembly files This makes them much easier to read and is needed for the next change. - Add CFI annotations for unwinding (XXX need review) - Remove constant case which can never happen with out of line spinlocks - Use patchable LOCK prefixes - Don't use lock sections anymore for inline code because they can't be expressed by the unwinder (this adds one taken jump to the lock fast path) Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit b4062b16094038334d9bbadac0397a3fc9e981b0 tree e75506b979825010319f96a0868b71788ac856df parent 538b5b419c7ae39a4b2deb15278da36102e42346 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Support patchable lock prefix for pure assembly files Signed-off-by: Andi Kleen commit 538b5b419c7ae39a4b2deb15278da36102e42346 tree cd85b52725c8ab1d024e6b6d9534e4ec611512ac parent 31679f38d88696ed032d59e457f1605c97e7d719 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Document backtracer selection options Signed-off-by: Andi Kleen commit 31679f38d88696ed032d59e457f1605c97e7d719 tree 901c0e9a3ce8696a1c0560c53edde36a85db9aa6 parent 0cb91a2293648507886563ccb91979cfc94d6a4b author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Simplify profile_pc on x86-64 Use knowledge about EFLAGS layout (bits 22:63 are always 0) to distingush EFLAGS word and kernel address in the spin lock stack frame. Signed-off-by: Andi Kleen commit 0cb91a2293648507886563ccb91979cfc94d6a4b tree f2a994f8b874e3c81c5519d445a0c5fa5522e4b5 parent c16b63e09d9d03158e0a92e961234e94c4862620 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] i386: Account spinlocks to the caller during profiling for !FP kernels This ports the algorithm from x86-64 (with improvements) to i386. Previously this only worked for frame pointer enabled kernels. But spinlocks have a very simple stack frame that can be manually analyzed. Do this. Signed-off-by: Andi Kleen commit c16b63e09d9d03158e0a92e961234e94c4862620 tree 154c9b5e082bf0633482be6c33c973cc35c602d8 parent d5d9ca6d882f7c8d47ef91a701fc042cbebbc334 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] i386/x86-64: Don't randomize stack top when no randomization personality is set Based on patch from Frank van Maarseveen , but extended. Signed-off-by: Andi Kleen commit d5d9ca6d882f7c8d47ef91a701fc042cbebbc334 tree 0b1505bb1e2186f8026ae4bb37fc1771db386225 parent 3034d11c930f795d61321c9244c4ffaaabf0c282 author Adam Henley Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] A few trivial spelling and grammar fixes A few trivial spelling and grammar mistakes picked up in "arch/x86_64/aperture.c", "arch/x86_64/crash.c" and "arch/x86_64/apic.c". I think all are correct fixes but am ever aware of my fallibility :o) This is my first patch submission so all feedback is appreciated, esp. WRT CCing to Linus, Andi and trivial@kernel.org, is this correct? And which is the most appropriate kernel version to diff against? If any. Should apply cleanly to 2.6.18-rc1 Signed-off-by: Adam Henley Signed-off-by: Andi Kleen - adam commit 3034d11c930f795d61321c9244c4ffaaabf0c282 tree 8dddc13e98aa22584a1e138e2337f028f7503ef4 parent d3a4f48d4866b8623ca9adde8ce4e5fde979c132 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Don't print virtual address in HPET initialization virtual addresses don't belong into kernel logs for non debugging Cc: clemens@ladisch.de Signed-off-by: Andi Kleen commit d3a4f48d4866b8623ca9adde8ce4e5fde979c132 tree 04413a1f18c6f49688d6008b583b20a287920a0f parent 2f766d16062d0147edff91be15de4a950667ca42 author Stephane Eranian Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] x86-64 TIF flags for debug regs and io bitmap in ctxsw Hello, Following my discussion with Andi. Here is a patch that introduces two new TIF flags to simplify the context switch code in __switch_to(). The idea is to minimize the number of cache lines accessed in the common case, i.e., when neither the debug registers nor the I/O bitmap are used. This patch covers the x86-64 modifications. A patch for i386 follows. Changelog: - add TIF_DEBUG to track when debug registers are active - add TIF_IO_BITMAP to track when I/O bitmap is used - modify __switch_to() to use the new TIF flags : eranian@hpl.hp.com Signed-off-by: Andi Kleen commit 2f766d16062d0147edff91be15de4a950667ca42 tree 20c7f80312aedabf8659483b53f67afa8ccc51db parent 3cfc348bf90ffaa777c188652aa297f04eb94de8 author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Clean up asm/smp.h includes No need to include it from entry.S Drop all the #ifdef __ASSEMBLY__ Signed-off-by: Andi Kleen commit 3cfc348bf90ffaa777c188652aa297f04eb94de8 tree 8908d6a5a61e54ab422ec7f4800d6ac591695423 parent c08c820508233b424deab3302bc404bbecc6493a author Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] x86: Add portable getcpu call For NUMA optimization and some other algorithms it is useful to have a fast to get the current CPU and node numbers in user space. x86-64 added a fast way to do this in a vsyscall. This adds a generic syscall for other architectures to make it a generic portable facility. I expect some of them will also implement it as a faster vsyscall. The cache is an optimization for the x86-64 vsyscall optimization. Since what the syscall returns is an approximation anyways and user space often wants very fast results it can be cached for some time. The norma methods to get this information in user space are relatively slow The vsyscall is in a better position to manage the cache because it has direct access to a fast time stamp (jiffies). For the generic syscall optimization it doesn't help much, but enforce a valid argument to keep programs portable I only added an i386 syscall entry for now. Other architectures can follow as needed. AK: Also added some cleanups from Andrew Morton Signed-off-by: Andi Kleen commit c08c820508233b424deab3302bc404bbecc6493a tree d6ed79fb2d03513f6c71fc7e47705c4a19512f53 parent a670fad0adb1cc6202a607d250f10bd380593905 author Vojtech Pavlik Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Add the vgetcpu vsyscall This patch adds a vgetcpu vsyscall, which depending on the CPU RDTSCP capability uses either the RDTSCP or CPUID to obtain a CPU and node numbers and pass them to the program. AK: Lots of changes over Vojtech's original code: Better prototype for vgetcpu() It's better to pass the cpu / node numbers as separate arguments to avoid mistakes when going from SMP to NUMA. Also add a fast time stamp based cache using a user supplied argument to speed things more up. Use fast method from Chuck Ebbert to retrieve node/cpu from GDT limit instead of CPUID Made sure RDTSCP init is always executed after node is known. Drop printk Signed-off-by: Vojtech Pavlik Signed-off-by: Andi Kleen commit a670fad0adb1cc6202a607d250f10bd380593905 tree 697d27fe0c92a65829f727f17f7048d46a675e4d parent 81af4449af9c9b686a4eeeb00112614621655704 author Vojtech Pavlik Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Add initalization of the RDTSCP auxilliary values This patch adds initalization of the RDTSCP auxilliary values to CPU numbers to time.c. If RDTSCP is available, the MSRs are written with the respective values. It can be later used to initalize per-cpu timekeeping variables. AK: Some cleanups. Move externs into headers and fix CPU hotplug. Signed-off-by: Vojtech Pavlik Signed-off-by: Andi Kleen commit 81af4449af9c9b686a4eeeb00112614621655704 tree 52dc5cac0124a87a6a323f415338c31631dbbf20 parent 248dcb2ffffe8f3e4a369556a68988788c208111 author Vojtech Pavlik Tue, 26 Sep 2006 10:52:28 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:28 +0200 [PATCH] Add macros for rdtscp This patch adds macros for reading tsc via the RDTSCP instruction, as well as writing the auxilliary MSR read by RDTSCP to msr.h [AK: changed rdtscp definition for old binutils] Signed-off-by: Vojtech Pavlik Signed-off-by: Andi Kleen commit 248dcb2ffffe8f3e4a369556a68988788c208111 tree 07517710662b99db976e74064bfe399681437e25 parent 1de84979dfc527c422abf63f27beabe43892989b author Venkatesh Pallipadi Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] x86: i386/x86-64 Add nmi watchdog support for new Intel CPUs AK: This redoes the changes I temporarily reverted. Intel now has support for Architectural Performance Monitoring Counters ( Refer to IA-32 Intel Architecture Software Developer's Manual http://www.intel.com/design/pentium4/manuals/253669.htm ). This feature is present starting from Intel Core Duo and Intel Core Solo processors. What this means is, the performance monitoring counters and some performance monitoring events are now defined in an architectural way (using cpuid). And there will be no need to check for family/model etc for these architectural events. Below is the patch to use this performance counters in nmi watchdog driver. Patch handles both i386 and x86-64 kernels. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Andi Kleen commit 1de84979dfc527c422abf63f27beabe43892989b tree 4cf32ce7c374118c04edca7bfdff25e187da63d2 parent 260d6790b6a2a0a048b7f96d154c2b49f1e6515a author Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] i386: Enable NMI watchdog by default I've had good experiences with having this on by default on x86-64. It turns nasty hangs into easier to debug oopses. Enable the local APIC wdog by default for systems newer than 2004. This comes from a strange compromise: according to arjan the reason it was off by default was some old IBM systems that corrupted registered when NMI happened in SMI. Can't remember more specific, but >= 2004 should avoid these. It's probably overly broad because most older systems should be ok (and the really old systems won't be supported by the local apic watchdog anyways) Signed-off-by: Andi Kleen commit 260d6790b6a2a0a048b7f96d154c2b49f1e6515a tree 7cea68eacc941a73afa452fc1fe22c0b52986e6d parent 3f22c5789eb76fd9aabe4be37ba609c793f046f9 author Vivek Goyal Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] i386: Kdump i386 nmi event notification fix After a crash we should wait for NMI IPI event and not for external NMI or NMI watchdog tick. Signed-off-by: Vivek Goyal Signed-off-by: Andi Kleen Cc: Don Zickus Cc: Andi Kleen Signed-off-by: Andrew Morton commit 3f22c5789eb76fd9aabe4be37ba609c793f046f9 tree 01edecc58578ea4bc4771a754bb74fe704836f1d parent c7c19f8e5e564fb1a354a065befc8a88a9bb08fd author Vivek Goyal Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] kdump x86_64 nmi event notification fix After a crash we should wait for NMI IPI event and not for external NMI or NMI watchdog tick. Signed-off-by: Vivek Goyal Signed-off-by: Andi Kleen Cc: Don Zickus Cc: Andi Kleen Signed-off-by: Andrew Morton commit c7c19f8e5e564fb1a354a065befc8a88a9bb08fd tree 3fd910d51ce76eba14879f5632e4f0968a284129 parent fac58550e80c307bf17cfa0dd544fca4eff120a5 author Adrian Bunk Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] i386: make functions static This patch makes the following needlessly global functions static: - nmi_int.c: profile_exceptions_notify() - nmi_timer_int.c: profile_timer_exceptions_notify() Signed-off-by: Adrian Bunk Signed-off-by: Andi Kleen commit fac58550e80c307bf17cfa0dd544fca4eff120a5 tree 04eb287f3dd1bb2d7e9887e4d25073ca9794fa27 parent 4038f901cf102a40715b900984ed7540a9fa637f author Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] Fix up panic messages for different NMI panics When a unknown NMI happened the panic would claim a NMI watchdog timeout. Also it would check the variable set by nmi_watchdog=panic and panic then. Fix up the panic message to be generic Unconditionally panic on unknown NMI when panic on unknown nmi is enabled. Noticed by Jan Beulich Cc: jbeulich@novell.com Signed-off-by: Andi Kleen commit 4038f901cf102a40715b900984ed7540a9fa637f tree e73261bee0e0856dba5a8bc447b18779a61fe235 parent c41c5cd3b20a2d81c30498f13b1527847a8fdf69 author Shaohua Li Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] i386/x86-64: Fix NMI watchdog suspend/resume Making NMI suspend/resume work with SMP. We use CPU hotplug to offline APs in SMP suspend/resume. Only BSP executes sysdev's .suspend/.resume method. APs should follow CPU hotplug code path. And: +From: Don Zickus Makes the start/stop paths of nmi watchdog more robust to handle the suspend/resume cases more gracefully. AK: I merged the two patches together Signed-off-by: Shaohua Li Signed-off-by: Andi Kleen Cc: Don Zickus Cc: Andi Kleen Signed-off-by: Andrew Morton commit c41c5cd3b20a2d81c30498f13b1527847a8fdf69 tree c143b506b8163d788ef925865a4f99b7f0fc6733 parent 8da5adda91df3d2fcc5300e68da491694c9af019 author Don Zickus Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] x86: x86 clean up nmi panic messages Clean up some of the output messages on the nmi error paths to make more sense when they are displayed. This is mainly a cosmetic fix and shouldn't impact any normal code path. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit 8da5adda91df3d2fcc5300e68da491694c9af019 tree bae152dabd728ba2f7fead421276e3cc9a779141 parent e33e89ab1a8d295de0500b697f4f31c3ceee9aa2 author Don Zickus Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] x86: Allow users to force a panic on NMI To quote Alan Cox: The default Linux behaviour on an NMI of either memory or unknown is to continue operation. For many environments such as scientific computing it is preferable that the box is taken out and the error dealt with than an uncorrected parity/ECC error get propogated. A small number of systems do generate NMI's for bizarre random reasons such as power management so the default is unchanged. In other respects the new proc/sys entry works like the existing panic controls already in that directory. This is separate to the edac support - EDAC allows supported chipsets to handle ECC errors well, this change allows unsupported cases to at least panic rather than cause problems further down the line. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit e33e89ab1a8d295de0500b697f4f31c3ceee9aa2 tree 51a7955a1a67f65169278a97d3d54305cb18e8ae parent 407984f1af259b31957c7c05075a454a751bb801 author Don Zickus Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] x86: Add abilty to enable/disable nmi watchdog from procfs (update) Adds a new /proc/sys/kernel/nmi_watchdog call that will enable/disable the nmi watchdog. By entering a non-zero value here, a user can enable the nmi watchdog to monitor the online cpus in the system. By entering a zero value here, a user can disable the nmi watchdog and free up a performance counter which could then be utilized by the oprofile subsystem, otherwise oprofile may be short a counter when in use. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen Cc: Andi Kleen Signed-off-by: Andrew Morton commit 407984f1af259b31957c7c05075a454a751bb801 tree 1e9318b4255957c27a4dbacd84711604bf789393 parent 2fbe7b25c8edaf2d10e6c1a4cc9f8afe714c4764 author Don Zickus Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] x86: Add abilty to enable/disable nmi watchdog with sysctl Adds a new /proc/sys/kernel/nmi call that will enable/disable the nmi watchdog. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit 2fbe7b25c8edaf2d10e6c1a4cc9f8afe714c4764 tree e4012ae3cd4519cba1836668237f077c60fb1086 parent 957dc87c1bd849440f0eef27e2ade67387001e13 author Don Zickus Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] i386/x86-64: Remove un/set_nmi_callback and reserve/release_lapic_nmi functions Removes the un/set_nmi_callback and reserve/release_lapic_nmi functions as they are no longer needed. The various subsystems are modified to register with the die_notifier instead. Also includes compile fixes by Andrew Morton. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit 957dc87c1bd849440f0eef27e2ade67387001e13 tree 2a1a9cfc7b5eaa5bc8194c4c3ce0961db9401b36 parent 1d001df19d5323e642ba8ac821c713675ebccd82 author Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:27 +0200 [PATCH] Add ppoll/pselect syscalls Needed TIF_RESTORE_SIGMASK first Signed-off-by: Andi Kleen commit 1d001df19d5323e642ba8ac821c713675ebccd82 tree 6eec46bca129524fc6e9ee55772a3943ff091a2f parent 3adbbcce9a49b900d4cc118cdccfdefa78bf1afb author Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] Add TIF_RESTORE_SIGMASK We need TIF_RESTORE_SIGMASK in order to support ppoll() and pselect() system calls. This patch originally came from Andi, and was based heavily on David Howells' implementation of same on i386. I fixed a typo which was causing do_signal() to use the wrong signal mask. Signed-off-by: David Woodhouse Signed-off-by: Andi Kleen commit 3adbbcce9a49b900d4cc118cdccfdefa78bf1afb tree 3163758ed23d973a54b396593957c63470f39a0d parent b7471c6da94d30d3deadc55986cc38d1ff57f9ca author Don Zickus Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] x86: Cleanup NMI interrupt path This patch cleans up the NMI interrupt path. Instead of being gated by if the 'nmi callback' is set, the interrupt handler now calls everyone who is registered on the die_chain and additionally checks the nmi watchdog, reseting it if enabled. This allows more subsystems to hook into the NMI if they need to (without being block by set_nmi_callback). Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit b7471c6da94d30d3deadc55986cc38d1ff57f9ca tree 6aa23314273763acccbe9ddd0b8bd442edde0509 parent f2802e7f571c05f9a901b1f5bd144aa730ccc88e author Don Zickus Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] i386: Add SMP support on i386 to reservation framework This patch includes the changes to make the nmi watchdog on i386 SMP aware. A bunch of code was moved around to make it simpler to read. In addition, it is now possible to determine if a particular NMI was the result of the watchdog or not. This feature allows the kernel to filter out unknown NMIs easier. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit f2802e7f571c05f9a901b1f5bd144aa730ccc88e tree 68a2c4dd80dbf2e01f048b46460517b15cda63c0 parent cb9c448c661d40ce2efbce8e9c19cc4d420d8ccc author Don Zickus Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] Add SMP support on x86_64 to reservation framework This patch includes the changes to make the nmi watchdog on x86_64 SMP aware. A bunch of code was moved around to make it simpler to read. In addition, it is now possible to determine if a particular NMI was the result of the watchdog or not. This feature allows the kernel to filter out unknown NMIs easier. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit cb9c448c661d40ce2efbce8e9c19cc4d420d8ccc tree 2aa5614f06e57e8f5266f91ccfff1a92fa9f3792 parent 828f0afda123a96ff4e8078f057a302f4b4232ae author Don Zickus Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] i386: Utilize performance counter reservation framework in oprofile Incorporates the new performance counter reservation system in oprofile. Also cleans up a lot of the initialization code. The code original zero'd out every register associated with performance counters regardless if those registers were used or not. This causes issues with the nmi watchdog. Now oprofile tries to reserve registers and gives up if it can't get them. Cc: levon@movementarian.org Cc: oprofile-list@lists.sf.net Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit 828f0afda123a96ff4e8078f057a302f4b4232ae tree a6f7398e0037f5c8f4cbd95ff11c5e4bf78a4c4d parent b07f8915cda3fcd73b8b68075ba1e6cd0673365d author Don Zickus Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] x86: Add performance counter reservation framework for UP kernels Adds basic infrastructure to allow subsystems to reserve performance counters on the x86 chips. Only UP kernels are supported in this patch to make reviewing easier. The SMP portion makes a lot more changes. Think of this as a locking mechanism where each bit represents a different counter. In addition, each subsystem should also reserve an appropriate event selection register that will correspond to the performance counter it will be using (this is mainly neccessary for the Pentium 4 chips as they break the 1:1 relationship to performance counters). This will help prevent subsystems like oprofile from interfering with the nmi watchdog. Signed-off-by: Don Zickus Signed-off-by: Andi Kleen commit b07f8915cda3fcd73b8b68075ba1e6cd0673365d tree 73bd68878518350322098ddf69572c3da6f1e360 parent 874c4fe389d1358f82c96dc9b5092fc5c7690604 author Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] x86: Temporarily revert parts of the Core 2 nmi nmi watchdog support This makes merging easier. They are readded a few patches later. Signed-off-by: Andi Kleen commit 874c4fe389d1358f82c96dc9b5092fc5c7690604 tree 9d79c398041c8902cff3abb6c9495c3d63bf59f1 parent 9142e0c8396b25ed4cb549b5efa636065768ebe0 author Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] i386: Allow to use GENERICARCH for UP kernels There are some machines around (large xSeries or Unisys ES7000) that need physical IO-APIC destination mode to access all of their IO devices. This currently doesn't work in UP kernels as used in distribution installers. This patch allows to compile even UP kernels as GENERICARCH which allows to use physical or clustered APIC mode. Signed-off-by: Andi Kleen commit 9142e0c8396b25ed4cb549b5efa636065768ebe0 tree 3f9a579696e8da5d164558c8df44c2e1c98b43f9 parent 265baba316ea258ca015aa79bc6f107cd9fce2b3 author Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] i386: Update defconfig This is based on the x86-64 defconfig which works on a wide range of systems. Signed-off-by: Andi Kleen commit 265baba316ea258ca015aa79bc6f107cd9fce2b3 tree 28176092bd7ee8c7bdd3827a6cb76f10ef763a41 parent 7e4720201ad44ace85a443f41d668a62a737e7d0 author Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 committer Andi Kleen Tue, 26 Sep 2006 10:52:26 +0200 [PATCH] Update defconfig Signed-off-by: Andi Kleen commit 7e9f4b2d3e21e87c26025810413ef1592834e63b tree 8fa28b786420fede1f3b656ee21289cc4927c6b2 parent 81107bf531d2524afbcd61f3b4ad57a71295d591 author Alan Stern Mon, 18 Sep 2006 16:28:06 -0400 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:40 -0700 Driver core: Don't call put methods while holding a spinlock The klist utility routines currently call _put methods while holding a spinlock. This is of course illegal; a put routine could try to unregister a device and hence need to sleep. No problems have arisen until now because in many cases klist removals were done synchronously, so the _put methods were never actually used. In other cases we may simply have been lucky. This patch (as784) reworks the klist routines so that _put methods are called only _after_ the klist's spinlock has been released. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 81107bf531d2524afbcd61f3b4ad57a71295d591 tree 8c4f985714432bee996720c2d8e4bcfbe3d70575 parent f2eaae197f4590c4d96f31b09b0ee9067421a95c author Alan Stern Mon, 18 Sep 2006 16:24:28 -0400 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:40 -0700 Driver core: Remove unneeded routines from driver core This patch (as783) simplifies the driver core slightly by removing four unnecessary _get and _put methods. It is vital that when a driver is removed from its bus's klist of registered drivers, or when a device is removed from a driver's klist of bound devices, that the klist updates complete synchronously. Otherwise the kernel might try binding an unregistered driver to a newly-registered device, or adding a device to the klist for a new driver before it has been removed from the old driver's klist. Since the removals must be synchronous, they don't need to update any reference counts. Hence the _get and _put methods can be dispensed with. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit f2eaae197f4590c4d96f31b09b0ee9067421a95c tree 5ccb072851da5d1bfdae458c52b57e76eb7dd168 parent 0f397f865076e3471ec884ee73ad5e34165fac2a author Alan Stern Mon, 18 Sep 2006 16:22:34 -0400 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:40 -0700 Driver core: Fix potential deadlock in driver core There is a potential deadlock in the driver core. It boils down to the fact that bus_remove_device() calls klist_remove() instead of klist_del(), thereby waiting until the reference count of the klist_node in the bus's klist of devices drops to 0. The refcount can't reach 0 so long as a modprobe process is trying to bind a new driver to the device being removed, by calling __driver_attach(). The problem is that __driver_attach() tries to acquire the device's parent's semaphore, but the caller of bus_remove_device() is quite likely to own that semaphore already. It isn't sufficient just to replace klist_remove() with klist_del(). Doing so runs the risk that the device would remain on the bus's klist of devices for some time, and so could be bound to another driver even after it was unregistered. What's needed is a new way to distinguish whether or not a device is registered, based on a criterion other than whether its klist_node is linked into the bus's klist of devices. That way driver binding can fail when the device is unregistered, even if it is still linked into the klist. This patch (as782) implements the solution, by adding a new bitflag to indiate when a struct device is registered, by testing the flag before allowing a driver to bind a device, and by changing the definition of the device_is_registered() inline. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 0f397f865076e3471ec884ee73ad5e34165fac2a tree 173e87afa0d6f5ab26c8faf1279d5d4a6c8758ce parent d779249ed4cb3b50690de6de8448829d65a1cd08 author Greg Kroah-Hartman Tue, 18 Jul 2006 10:59:59 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:40 -0700 PCI: enable driver multi-threaded probe This provides a build and run-time option to turn on multhreaded probe for all PCI drivers. It can cause bad problems on multi-processor machines that take a while to find their root disks, and play havoc on machines that don't use persistant device names for block or network devices. But it can cause speedups on some machines, my tiny laptop's boot goes up by 0.4 seconds, and my desktop boots up several seconds faster. Use at your own risk!!! Signed-off-by: Greg Kroah-Hartman commit d779249ed4cb3b50690de6de8448829d65a1cd08 tree 0494df3b68a28ce0b23a1577758b583409621a7d parent f20a9ead0d005fbeeae3fc21a96f9bf197ac1c1c author Greg Kroah-Hartman Tue, 18 Jul 2006 10:59:59 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:40 -0700 Driver Core: add ability for drivers to do a threaded probe This adds the infrastructure for drivers to do a threaded probe, and waits at init time for all currently outstanding probes to complete. A new kernel thread will be created when the probe() function for the driver is called, if the multithread_probe bit is set in the driver saying it can support this kind of operation. I have tested this with USB and PCI, and it works, and shaves off a lot of time in the boot process, but there are issues with finding root boot disks, and some USB drivers assume that this can never happen, so it is currently not enabled for any bus type. Individual drivers can enable this right now if they wish, and bus authors can selectivly turn it on as well, once they determine that their subsystem will work properly with it. Signed-off-by: Greg Kroah-Hartman commit f20a9ead0d005fbeeae3fc21a96f9bf197ac1c1c tree b8fb72701b5917d03b6fe122a1719e1cd608b4d9 parent f86db396ff455ed586751d21816a1ebd431264e5 author Andrew Morton Mon, 14 Aug 2006 22:43:23 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 sysfs: add proper sysfs_init() prototype Don't be crufty. Mark it __must_check too. Cc: "Randy.Dunlap" Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit f86db396ff455ed586751d21816a1ebd431264e5 tree dfbeb27206b673ed46482b18ee6d779786be7ed1 parent 370226449ced358e52d198081120826ef52c166b author Andrew Morton Mon, 14 Aug 2006 22:43:20 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 drivers/base: check errors Add lots of return-value checking. : fix bus_rescan_devices()] Cc: "Randy.Dunlap" Signed-off-by: Cornelia Huck Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 370226449ced358e52d198081120826ef52c166b tree e436ccd6b5dea748bd432f84b71b0558b65511f0 parent 8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb author Brian Walsh Mon, 14 Aug 2006 22:43:19 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 drivers/base: Platform notify needs to occur before drivers attach to the device The platform_notify call for Arm and PPC architectures needs to be called before the driver attaches to the device. The problem only presents itself when hotplugging certain devices while the driver is already loaded. Signed-off-by: Brian Walsh Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 8a6914ab7c95d471c23b42268aa8e1f55b3d2fdb tree a92155e860df4bd9d25e63958c3f3ffa59935cb9 parent cebc04ba9aeb3a646cc746300421fc0e5aa4f253 author Andrew Morton Mon, 14 Aug 2006 22:43:19 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 v4l-dev2: handle __must_check We get hundreds of these: include/media/v4l2-dev.h:348: warning: ignoring return value of 'class_device_create_file', declared with attribute warn_unused_result Handle it, and propagate the __must_check back a level. Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit cebc04ba9aeb3a646cc746300421fc0e5aa4f253 tree a2f47e375960efefd06fd4c3790184f34bd18b6f parent 4a7fb6363f2d1a6c09a10253937f672f3c7929e1 author Andrew Morton Mon, 14 Aug 2006 22:43:18 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 add CONFIG_ENABLE_MUST_CHECK Those 1500 warnings can be a bit of a pain. Add a config option to shut them up. Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 4a7fb6363f2d1a6c09a10253937f672f3c7929e1 tree 46e70fc8baca37ffd901c472ce7ce13338fb4ece parent 35acfdd7253025e8441883fd8f879f5240844f95 author Andrew Morton Mon, 14 Aug 2006 22:43:17 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 add __must_check to device management code We're getting a lot of crashes in the sysfs/kobject/device/bus/class code and they're very hard to diagnose. I'm suspecting that in some cases this is because drivers aren't checking return values and aren't handling errors correctly. So the code blithely blunders on and crashes later in very obscure ways. There's just no reason to ignore errors which can and do occur. So the patch sprinkles __must_check all over these APIs. Causes 1,513 new warnings. Heh. Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 35acfdd7253025e8441883fd8f879f5240844f95 tree d1fb2d170964572c4b5446f73a44db88599c0e46 parent 9de72ee59029087fc8300633113c75a5fe73a7b8 author Yoichi Yuasa Sat, 15 Jul 2006 01:30:11 +0900 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 Driver core: fixed add_bind_files() definition When CONFIG_HOTPLUG is n, add_bind_files() definition is wrong. This patch has fixed it. Signed-off-by: Yoichi Yuasa Signed-off-by: Greg Kroah-Hartman commit 9de72ee59029087fc8300633113c75a5fe73a7b8 tree ecf048a562fac6b0ca8a28b6c8dc11fe4d8fbf3a parent 995982ca79d9262869513948ec7c540f32035491 author Dmitry Torokhov Sat, 15 Jul 2006 00:31:54 -0400 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 Driver core: fix comments in drivers/base/power/resume.c Driver core: fix comments in drivers/base/power/resume.c Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman commit 995982ca79d9262869513948ec7c540f32035491 tree 08c9a655a210388dce467400aa11484cfd2b230b parent 10188012daa586ae7fcbef272e4db4f404741adf author Randy.Dunlap Mon, 10 Jul 2006 23:05:25 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 sysfs_remove_bin_file: no return value, dump_stack on error Make sysfs_remove_bin_file() void. If it detects an error, printk the file name and call dump_stack(). sysfs_hash_and_remove() now returns an error code indicating its success or failure so that sysfs_remove_bin_file() can know success/failure. Convert the only driver that checked the return value of sysfs_remove_bin_file(). Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 10188012daa586ae7fcbef272e4db4f404741adf tree 2b8cc7eb3db24ad90684622cc155004c9fcb969b parent 2589f1887b0bf9f08ec3d7f3c5705ccb7c628076 author Randy Dunlap Tue, 11 Jul 2006 20:49:41 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 kobject: must_check fixes Check all __must_check warnings in lib/kobject.c Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 2589f1887b0bf9f08ec3d7f3c5705ccb7c628076 tree 172fcb59cf5a8b500aafe905a690ea4b439277c4 parent c47ed219ba81632595e9f02e27318151fec16c9e author Greg Kroah-Hartman Tue, 19 Sep 2006 09:39:19 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:39 -0700 Driver core: add ability for devices to create and remove bin files Makes it easier for devices to create and remove binary attribute files so they don't have to call directly into sysfs. This is needed to help with the conversion from struct class_device to struct device. Signed-off-by: Greg Kroah-Hartman commit c47ed219ba81632595e9f02e27318151fec16c9e tree 7c6d6c07122c26c12719c676b6a81f731122347d parent c205ef4880273d2de4ee5388d4e52227ff688cc4 author Greg Kroah-Hartman Wed, 13 Sep 2006 15:34:05 +0200 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 Class: add support for class interfaces for devices When moving class_device usage over to device, we need to handle class_interfaces properly with devices. This patch adds that support. Signed-off-by: Greg Kroah-Hartman commit c205ef4880273d2de4ee5388d4e52227ff688cc4 tree 78e7cde849b9c40fd323b5550a8e64d5d169c55f parent a2de48cace5d0993da6cfa28b276ae724dc3569b author Greg Kroah-Hartman Mon, 07 Aug 2006 22:19:37 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 Driver core: create devices/virtual/ tree This change creates a devices/virtual/CLASS_NAME tree for struct devices that belong to a class, yet do not have a "real" struct device for a parent. It automatically creates the directories on the fly as needed. Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman commit a2de48cace5d0993da6cfa28b276ae724dc3569b tree e4b1107ec3167c8d0064fe756bde6e0d53cf8c93 parent 2620efef7029bb040430f50f0fc148f2d5e002ad author Greg Kroah-Hartman Mon, 03 Jul 2006 14:31:12 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 Driver core: add device_rename function The network layer needs this to convert to using struct device instead of a struct class_device. Signed-off-by: Greg Kroah-Hartman commit 2620efef7029bb040430f50f0fc148f2d5e002ad tree 433b19e18c40f6972ac0c936b844c997644dc176 parent 64bb5d2c116478dba7501d2acf078ed74ba30c1f author Greg Kroah-Hartman Wed, 28 Jun 2006 16:19:58 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 Driver core: add ability for classes to handle devices properly This adds two new callbacks to the class structure: int (*dev_uevent)(struct device *dev, char **envp, int num_envp, char *buffer, int buffer_size); void (*dev_release)(struct device *dev); And one pointer: struct device_attribute * dev_attrs; which all corrispond with the same thing as the "normal" class devices do, yet this is for when a struct device is bound to a class. Someday soon, struct class_device will go away, and then the other fields in this structure can be removed too. But this is necessary in order to get the transition to work properly. Tested out on a network core patch that converted it to use struct device instead of struct class_device. Signed-off-by: Greg Kroah-Hartman commit 64bb5d2c116478dba7501d2acf078ed74ba30c1f tree bd0f695cad51a0b9608d686ab2b0232a31d4b2ad parent de0ff00d723fd821d372496e2c084805644aa5e1 author Greg Kroah-Hartman Wed, 28 Jun 2006 16:19:58 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 Driver core: allow devices in classes to have no parent This fixes an oops when a device is attached to a class, yet has no "parent" device. An example of this would be the "lo" device in the network core. We should create a "virtual" subdirectory under /sys/devices/ for these, but no one seems to agree on a proper name for it yet... Oh, and update my copyright on the driver core. Signed-off-by: Greg Kroah-Hartman commit de0ff00d723fd821d372496e2c084805644aa5e1 tree d8d8f46f17d84b7b7b40e49e9dd54dcb8f1a2684 parent 386415d88b1ae50304f9c61aa3e0db082fa90428 author Greg Kroah-Hartman Tue, 27 Jun 2006 00:06:09 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 Driver core: add groups support to struct device This is needed for the network class devices in order to be able to convert over to use struct device. Signed-off-by: Greg Kroah-Hartman commit 386415d88b1ae50304f9c61aa3e0db082fa90428 tree 15672b43c03e0fc17ac0c8339883e7b4fb1a5073 parent bb84c89f94851161f387285d0a449b4a3f29f4df author David Brownell Sun, 03 Sep 2006 13:16:45 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 PM: platform_bus and late_suspend/early_resume Teach platform_bus about the new suspend_late/resume_early PM calls, issued with IRQs off. Do we really need sysdev and friends any more, or can janitors start switching its users over to platform_device so we can do a minor code-ectomy? Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit bb84c89f94851161f387285d0a449b4a3f29f4df tree 6cda3e7cbfc57956f732de8f9c619625bcbba8ea parent 84ed64ee8f7dfd89f59857124dbeb8a350c6e03d author Pavel Machek Thu, 31 Aug 2006 22:02:11 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 PM: device_suspend/resume may sleep This adds warning when someone tries them from atomic context. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 84ed64ee8f7dfd89f59857124dbeb8a350c6e03d tree 90f63410a3f0d205cfafe221737754900812a0c9 parent 1d3a82af45428c5e8deaa119cdeb79611ae46371 author Rafael J. Wysocki Wed, 30 Aug 2006 23:38:06 +0200 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 PM: add /sys/power documentation to Documentation/ABI The file sysfs-power that documents the interface in the /sys/power/ directory is added to Documentation/ABI/testing. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 1d3a82af45428c5e8deaa119cdeb79611ae46371 tree e8e5b7a03a979e149541149cab5570352b90656f parent 1ebfd79eb46a89eacf3cbdf4a463d5d572d3557b author David Brownell Wed, 30 Aug 2006 14:09:47 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 PM: no suspend_prepare() phase Remove the new suspend_prepare() phase. It doesn't seem very usable, has never been tested, doesn't address fault cleanup, and would need a sibling resume_complete(); plus there are no real use cases. It could be restored later if those issues get resolved. Signed-off-by: David Brownell Cc: Linus Torvalds Signed-off-by: Greg Kroah-Hartman commit 1ebfd79eb46a89eacf3cbdf4a463d5d572d3557b tree 9f23d3dae72320eebb10bea88dd8c8b9c644d55c parent 2bca293e56b6a8cd16bb6e70a09b2adac9c723b5 author Pavel Machek Wed, 30 Aug 2006 13:50:27 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:38 -0700 PM: schedule /sys/devices/.../power/state for removal This lists the /sys/devices/.../power/state file, and its internal support, as due for removal next year. Signed-off-by: Pavel Machek Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 2bca293e56b6a8cd16bb6e70a09b2adac9c723b5 tree a67697a05fa718a2a03b603d8afbdcbae41d68bc parent 047bda36150d11422b2c7bacca1df324c909c0b3 author David Brownell Wed, 30 Aug 2006 13:54:36 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: add kconfig option for deprecated .../power/state files Add a new PM_SYSFS_DEPRECATED config option to control whether or not the /sys/devices/.../power/state files are provided. This will make it easier to get rid of that mechanism when the time comes, and to verify that userspace tools work right without it. Signed-off-by: David Brownell Acked-by: Pavel Machek Signed-off-by: Greg Kroah-Hartman commit 047bda36150d11422b2c7bacca1df324c909c0b3 tree 3ec9e87c36f26bb945bfa8c8c4beb4c5cdfc8771 parent 4fc0840006bf3df69dcf92397fdcaf85a542f939 author David Brownell Wed, 30 Aug 2006 14:12:48 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: update docs for writing .../power/state Updates to match current code: - Make writes to the /sys/devices/.../power/state files fail cleanly if the device requires the irqs-off call variants. - Fix comments describing the /sys/devices/.../power/state file writes to match the code; the last several releases have invalidated the previous text. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 4fc0840006bf3df69dcf92397fdcaf85a542f939 tree 28d13c47e598d646314a062a73ebd20ca9f3ea1d parent f1cc0a894c963923b766eb2d455747495e6e982d author David Brownell Thu, 10 Aug 2006 16:38:28 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 updated Documentation/power/devices.txt This turned into a rewrite of Documentation/power/devices.txt: - Provide more of the "big picture" - Fixup some of the horribly ancient/obsolete description of device suspend() semantics; lots of text just got deleted. - Add a decent description of PM_EVENT_* codes, including the new PRETHAW code needed in some swsusp scenarios. - Describe the new PM factorization from Linus: * class suspend, current suspend, then suspend_late * NOT suspend_prepare, it wasn't really usable * resume_early, current resume, class resume. - Updates power/state docs to be correct, and deprecate its usage except for driver testing. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit f1cc0a894c963923b766eb2d455747495e6e982d tree cccd3a2c337f0117d664e204eedf5c222a6c43f7 parent 185849991d592497e43bcd264c6152af1261ffe2 author David Brownell Mon, 14 Aug 2006 23:11:08 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: issue PM_EVENT_PRETHAW This patch is the first of this series that should actually change any behavior ... by issuing the new event, now tha the rest of the kernel is prepared to receive it. This converts the PM core to issue the new PRETHAW message, which the rest of the kernel is now ready to receive. Signed-off-by: David Brownell Cc: "Rafael J. Wysocki" Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 185849991d592497e43bcd264c6152af1261ffe2 tree 856077e37e40bbda2af95fe64aaa92db626f30de parent c78a7c2dd913e68ce853d43edaba14eac91b2fd1 author David Brownell Mon, 14 Aug 2006 23:11:06 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: USB HCDs use PM_EVENT_PRETHAW This teaches several USB host controller drivers to treat PRETHAW as a chip reset since the controller, and all devices connected to it, are no longer in states compatible with how the snapshotted suspend() left them. Signed-off-by: David Brownell Cc: "Rafael J. Wysocki" Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit c78a7c2dd913e68ce853d43edaba14eac91b2fd1 tree fdb0d56a04bbcaa3d14327873ec7cb1a9b527e26 parent b887d2e63c8857149ef59eb6e05adfaa018b8ebf author David Brownell Mon, 14 Aug 2006 23:11:06 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: video drivers and PM_EVENT_PRETHAW Video drivers which explicitly test for messages reporting PM_EVENT_FREEZE will now handle PM_EVENT_PRETHAW the same way. Signed-off-by: David Brownell Cc: "Rafael J. Wysocki" Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit b887d2e63c8857149ef59eb6e05adfaa018b8ebf tree e3efb4b1c095fd2960c32d8f253679a045bf26db parent 82bb67f2c1f9ef438c56ac24e7dca027fe7289b5 author David Brownell Mon, 14 Aug 2006 23:11:05 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: PCI and IDE handle PM_EVENT_PRETHAW Convert some framework code to handle the new PRETHAW message. - IDE just treats it like a FREEZE. - The pci_choose_state() thingie still doesn't use PCI_D0 when it gets a FREEZE (and now PRETHAW) event, which seems rather buglike but wasn't something to change with this patch. Signed-off-by: David Brownell Cc: "Rafael J. Wysocki" Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 82bb67f2c1f9ef438c56ac24e7dca027fe7289b5 tree e0531466b19295129692da81bdff3538ab3621b3 parent 8b4b8a24e4e49dc9fe36d4d079f6d2c23f942b03 author David Brownell Mon, 14 Aug 2006 23:11:04 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 PM: define PM_EVENT_PRETHAW This adds a new pm_message_t event type to use when preparing to restore a swsusp snapshot. Devices that have been initialized by Linux after resume (rather than left in power-up-reset state) may need to be reset; this new event type give drivers the chance to do that. The drivers that will care about this are those which understand more hardware states than just "on" and "reset", relying on hardware state during resume() methods to be either the state left by the preceding suspend(), or a power-lost reset. The best current example of this class of drivers are USB host controller drivers, which currently do not work through swsusp when they're statically linked. When the swsusp freeze/thaw mechanism kicks in, a troublesome third state could exist: one state set up by a different kernel instance, before a snapshot image is resumed. This mechanism lets drivers prevent that state. Signed-off-by: David Brownell Cc: "Rafael J. Wysocki" Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 8b4b8a24e4e49dc9fe36d4d079f6d2c23f942b03 tree f8c2a452bff75b013182dd90996eef0aa760042c parent 8f4bcc20ee39f9c087f3532672e3e5f086e92281 author David Brownell Mon, 14 Aug 2006 23:11:03 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 fix broken/dubious driver suspend() methods Small driver suspend() fixes in preparation for the PRETHAW events: - Only compare message events for equality against PM_EVENT_* codes; not against integers, or using greater/less-than comparisons. (PM_EVENT_* should really become a __bitwise thing.) - Explicitly test for SUSPEND events (rather than not-something-else) before suspending devices. - Removes more of the confusion between a pm_message_t (wraps event code) and a "state" ... suspend() originally took a target system state. These updates are correct and appropriate even without new PM_EVENT codes. benh: "I think in the Mesh case, we should handle the freeze case as well or we might get wild DMA." Signed-off-by: David Brownell Acked-by: Pavel Machek Cc: Greg KH Cc: Paul Mackerras Acked-by: Benjamin Herrenschmidt Cc: Mauro Carvalho Chehab Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 8f4bcc20ee39f9c087f3532672e3e5f086e92281 tree e434a96da282e904bf6e4ab8d17c044369a0b2f5 parent cbd69dbbf1adfce6e048f15afc8629901ca9dae5 author David Brownell Sun, 09 Jul 2006 16:28:28 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 make suspend quieter Fix a goof in Linus' recent PM API updates: don't emit any messages in the typical NOP "already suspended it" late suspend case. Signed-off-by: David Brownell Acked-by: Pavel Machek Signed-off-by: Greg Kroah-Hartman commit cbd69dbbf1adfce6e048f15afc8629901ca9dae5 tree 65df024ec383dc5e1d3d27277ffa87413cfb6795 parent 7c8265f51073bc8632a99de78d5fd19117ed78b7 author Linus Torvalds Sat, 24 Jun 2006 14:50:29 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:37 -0700 Suspend changes for PCI core Changes the PCI core to use the new suspend infrastructure changes. Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman commit 7c8265f51073bc8632a99de78d5fd19117ed78b7 tree 85efa2114f3765c98236152ca46d783dc1bd7d5b parent ceeee1fb2897651b434547eb26d93e6d2ff5a1a5 author Linus Torvalds Sat, 24 Jun 2006 14:50:29 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 Suspend infrastructure cleanup and extension Allow devices to participate in the suspend process more intimately, in particular, allow the final phase (with interrupts disabled) to also be open to normal devices, not just system devices. Also, allow classes to participate in device suspend. Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman commit ceeee1fb2897651b434547eb26d93e6d2ff5a1a5 tree d841561babe6538e463069870166524c58e25014 parent 6468b3afa7bcd9b0abc5997e5330d78f0bb6626a author Greg Kroah-Hartman Tue, 09 Apr 2002 12:14:34 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 SYSFS: allow sysfs_create_link to create symlinks in the root of sysfs This is needed to make the compatible link for /sys/block in the future. Signed-off-by: Greg Kroah-Hartman commit 6468b3afa7bcd9b0abc5997e5330d78f0bb6626a tree c580753a1983799482b90baaf5e08b5e14c3faf9 parent eea3f8911f34001d2450a272c2d02f175279b53c author Randy Dunlap Thu, 20 Jul 2006 08:16:42 -0700 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 Debugfs: kernel-doc fixes for debugfs Fix kernel-doc and typos/spellos in fs/debugfs/. Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit eea3f8911f34001d2450a272c2d02f175279b53c tree 0565109ca2020176b42e1f4bd2f14dc08aae84ba parent ab7d7371acc68fa9130b079a9ba879191202035f author Juha Yrjölä Thu, 03 Aug 2006 19:06:25 +0300 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 sysfs: Make poll behaviour consistent When no events have been reported by sysfs_notify(), sd->s_events was previously set to zero. The initial value for new readers is also zero, so poll was blocking, regardless of whether the attribute was read by the process or not. Make poll behave consistently by setting the initial value of sd->s_events to non-zero. Signed-off-by: Juha Yrjola Signed-off-by: Greg Kroah-Hartman commit ab7d7371acc68fa9130b079a9ba879191202035f tree 9ebd5fbcdb8f1ddffc022f573acc0690c11a8c83 parent 5cbe5f8a5897470698222ac9924429056e57d84c author Miguel Ojeda Sandonis Wed, 13 Sep 2006 15:34:05 +0200 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 Driver core: add const to class_create Adds const to class_create second parameter, because: struct class { const char * name; /*...*/ } Signed-off-by: Miguel Ojeda Sandonis Signed-off-by: Greg Kroah-Hartman commit 5cbe5f8a5897470698222ac9924429056e57d84c tree c8fd5bd8680fd7fde7f779d699d1c5c280d552f3 parent ddd5d35a8f7c1924049e8b6877b3177c1787e6a3 author Greg Kroah-Hartman Thu, 10 Aug 2006 01:19:19 -0400 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 device_create(): make fmt argument 'const char *' Signed-off-by: Greg Kroah-Hartman commit ddd5d35a8f7c1924049e8b6877b3177c1787e6a3 tree 5989803d2ee88b3be71844cec1882359f9454824 parent d81d9d6b9f7d0af7d4341951d48d296681878f7a author Dmitry Torokhov Thu, 10 Aug 2006 01:18:18 -0400 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 class_device_create(): make fmt argument 'const char *' Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman commit d81d9d6b9f7d0af7d4341951d48d296681878f7a tree fab4e755eed72f0bbc3e21ef31e5ba299e58cbe2 parent 6d99eb33f55879bc71ddba077e09cf8a61129707 author Kay Sievers Sun, 13 Aug 2006 06:17:09 +0200 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 deprecate PHYSDEV* keys deprecate PHYSDEV* values in the uevent environment These values are no longer needed and inconsistent with the stacking of class devices. The event environment should not carry properties of a parent device. The key PHYSDEVDRIVER is available as DRIVER, PHYDEVBUS is indentical SUBSYSTEM. Class devices should not carry any of these values. Signed-off-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman commit 6d99eb33f55879bc71ddba077e09cf8a61129707 tree 2e3dbfa6dbec664ece1f8748073b39a705cd7955 parent 7e4720201ad44ace85a443f41d668a62a737e7d0 author jens m. noedler Sun, 10 Sep 2006 18:46:33 +0200 committer Greg Kroah-Hartman Mon, 25 Sep 2006 21:08:36 -0700 Documentation/ABI: devfs is not obsolete, but removed! Signed-off-by: Jens M. Noedler Signed-off-by: Greg Kroah-Hartman commit 656ddf798dbe588217c97e58b9cfdfce649ebdc3 tree e02659c481b7beb61b9f63c88e4cd200a4369517 parent 7e4720201ad44ace85a443f41d668a62a737e7d0 parent 29da9f6d9cc3685ae7f6c8b817f6ed8864c78a4c author Linus Torvalds Mon, 25 Sep 2006 19:32:02 -0700 committer Linus Torvalds Mon, 25 Sep 2006 19:32:02 -0700 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: [libata] Fix oops introduced in non-uniform port handling fix [PATCH] ata-piix: fixes kerneldoc error commit 29da9f6d9cc3685ae7f6c8b817f6ed8864c78a4c tree 3c99d228ea364fb9c85f50227a49aa8264589ede parent c32a8fd7cb33f30bcd855188dc8e243b144c5cee author Jeff Garzik Mon, 25 Sep 2006 21:56:33 -0400 committer Jeff Garzik Mon, 25 Sep 2006 21:56:33 -0400 [libata] Fix oops introduced in non-uniform port handling fix Noticed by several people. Signed-off-by: Jeff Garzik commit 7e4720201ad44ace85a443f41d668a62a737e7d0 tree 8b9118dffcfd9511d9ce31b87776e04095f9acf1 parent 7b29122f9ec54db5c38a66a11127d94db0817c17 parent 4cc6773508299377099aa30cf30e6a2196c5872d author Linus Torvalds Mon, 25 Sep 2006 17:39:55 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:39:55 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: [NetLabel]: update docs with website information [NetLabel]: rework the Netlink attribute handling (part 2) [NetLabel]: rework the Netlink attribute handling (part 1) [Netlink]: add nla_validate_nested() [NETLINK]: add nla_for_each_nested() to the interface list [NetLabel]: change the SELinux permissions [NetLabel]: make the CIPSOv4 cache spinlocks bottom half safe [NetLabel]: correct improper handling of non-NetLabel peer contexts [TCP]: make cubic the default [TCP]: default congestion control menu [ATM] he: Fix __init/__devinit conflict [NETFILTER]: Add dscp,DSCP headers to header-y [DCCP]: Introduce dccp_probe [DCCP]: Use constants for CCIDs [DCCP]: Introduce constants for CCID numbers [DCCP]: Allow default/fallback service code. commit 7b29122f9ec54db5c38a66a11127d94db0817c17 tree 8a9b5c5937f6fa0167de090dd199b964ec803d5a parent b7de567bf3187ccf776e2fe0e241593cdcba5459 parent be5b6d3d6cb7311893c9fbeebf094591d5f760a8 author Linus Torvalds Mon, 25 Sep 2006 17:39:04 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:39:04 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6: [SOUND] sparc/amd7930: Use __devinit and __devinitdata as needed. [SUNLANCE]: Mark sparc_lance_probe_one as __devinit. [SPARC64]: Fix section-mismatch errors in solaris emul module. commit b7de567bf3187ccf776e2fe0e241593cdcba5459 tree c9420517d6a133121d13395dd21b729e6b26f40a parent 1cc5f7142eca352109895fe20b1fc6405dd17727 author Jonathan Corbet Mon, 25 Sep 2006 16:25:37 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] VIDIOC_ENUMSTD bug The v4l2 API documentation for VIDIOC_ENUMSTD says: To enumerate all standards applications shall begin at index zero, incrementing by one until the driver returns EINVAL. The actual code, however, tests the index this way: if (index<=0 || index >= vfd->tvnormsize) { ret=-EINVAL; So any application which passes in index=0 gets EINVAL right off the bat - and, in fact, this is what happens to mplayer. So I think the following patch is called for, and maybe even appropriate for a 2.6.18.x stable release. Signed-off-by: Jonathan Corbet Cc: Mauro Carvalho Chehab Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1cc5f7142eca352109895fe20b1fc6405dd17727 tree 9c6b4b3204f06317c830457e091ff2c83272ea09 parent bfa0e9a07cd31f3858239dbc93011b82780acf4b author Ed Swierk Mon, 25 Sep 2006 16:25:36 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] load_module: no BUG if module_subsys uninitialized Invoking load_module() before param_sysfs_init() is called crashes in mod_sysfs_setup(), since the kset in module_subsys is not initialized yet. In my case, net-pf-1 is getting modprobed as a result of hotplug trying to create a UNIX socket. Calls to hotplug begin after the topology_init initcall. Another patch for the same symptom (module_subsys-initialize-earlier.patch) moves param_sysfs_init() to the subsys initcalls, but this is still not early enough in the boot process in some cases. In particular, topology_init() causes /sbin/hotplug to run, which requests net-pf-1 (the UNIX socket protocol) which can be compiled as a module. Moving param_sysfs_init() to the postcore initcalls fixes this particular race, but there might well be other cases where a usermodehelper causes a module to load earlier still. The patch makes load_module() return an error rather than crashing the kernel if invoked before module_subsys is initialized. Cc: Mark Huang Cc: Greg KH Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bfa0e9a07cd31f3858239dbc93011b82780acf4b tree a46cfc35789a597a5005ec1332897364b961e429 parent 3212fe1594e577463bc8601d28aa008f520c3377 author keith mannthey Mon, 25 Sep 2006 16:25:35 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] i386: fix flat mode numa on a real numa system If there is only 1 node in the system cpus should think they are apart of some other node. If cases where a real numa system boots the Flat numa option make sure the cpus don't claim to be apart on a non-existent node. Signed-off-by: Keith Mannthey Cc: Andy Whitcroft Cc: Dave Hansen Cc: Andi Kleen Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3212fe1594e577463bc8601d28aa008f520c3377 tree 6f4270c825c2df9f4a361360dab0963ecaed34c1 parent 08992986497471ce575f23796268fb1b50b5c2ab author KAMEZAWA Hiroyuki Mon, 25 Sep 2006 16:25:31 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] cpu to node relationship fixup: map cpu to node Assume that a cpu is *physically* offlined at boot time... Because smpboot.c::smp_boot_cpu_map() canoot find cpu's sapicid, numa.c::build_cpu_to_node_map() cannot build cpu<->node map for offlined cpu. For such cpus, cpu_to_node map should be fixed at cpu-hot-add. This mapping should be done before cpu onlining. This patch also handles cpu hotremove case. Signed-off-by: KAMEZAWA Hiroyuki Cc: "Luck, Tony" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 08992986497471ce575f23796268fb1b50b5c2ab tree 186f08591c58f21a4c8c2d30070c35392be3439a parent 25981de5b836581364612a4b1fe27db3b5d1f861 author KAMEZAWA Hiroyuki Mon, 25 Sep 2006 16:25:21 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] cpu to node relationship fixup: acpi_map_cpu2node Problem description: We have additional_cpus= option for allocating possible_cpus. But nid for possible cpus are not fixed at boot time. cpus which is offlined at boot or cpus which is not on SRAT is not tied to its node. This will cause panic at cpu onlining. Usually, pxm_to_nid() mapping is fixed at boot time by SRAT. But, unfortunately, some system (my system!) do not include full SRAT table for possible cpus. (Then, I use additiona_cpus= option.) For such possible cpus, pxm<->nid should be fixed at hot-add. We now have acpi_map_pxm_to_node() which is also used at boot. It's suitable here. Signed-off-by: KAMEZAWA Hiroyuki Cc: "Luck, Tony" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 25981de5b836581364612a4b1fe27db3b5d1f861 tree 6dc66d33c8ffaca1faf84bca4707db429548422f parent f3ef9ead31ae995251b420ac98398bd7545bf4e1 author Michael Hanselmann Mon, 25 Sep 2006 16:25:07 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] backlight: fix oops in __mutex_lock_slowpath during head /sys/class/graphics/fb0/* Seems like not all drivers use the framebuffer_alloc() function and won't have an initialized mutex. But those don't have a backlight, anyway. Signed-off-by: Michael Hanselmann Cc: Olaf Hering Cc: "Antonino A. Daplas" Cc: Daniel R Thompson Cc: Jon Smirl Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f3ef9ead31ae995251b420ac98398bd7545bf4e1 tree aa5addbe49c1f7864bc2e5023b7edb11aaf3706b parent 24fd425edd53ea580cad917e825c1f6715e9b939 author David Rientjes Mon, 25 Sep 2006 16:24:57 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:36 -0700 [PATCH] do not free non slab allocated per_cpu_pageset Stops panic associated with attempting to free a non slab-allocated per_cpu_pageset. Signed-off-by: David Rientjes Acked-by: Christoph Lameter Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 24fd425edd53ea580cad917e825c1f6715e9b939 tree bcd6d5394434edb960fe71ebc9173324980cba35 parent 0b16f21f144010aa627c58b3a33be49ebfd685dc author keith mannthey Mon, 25 Sep 2006 16:24:39 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:35 -0700 [PATCH] i386 bootioremap / kexec fix With CONFIG_PHYSICAL_START set to a non default values the i386 boot_ioremap code calculated its pte index wrong and users of boot_ioremap have their areas incorrectly mapped (for me SRAT table not mapped during early boot). This patch removes the addr < BOOT_PTE_PTRS constraint. [ Keith says this is applicable to 2.6.16 and 2.6.17 as well ] Signed-off-by: Keith Mannthey Cc: Vivek Goyal Cc: Dave Hansen Cc: Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0b16f21f144010aa627c58b3a33be49ebfd685dc tree e2b970e49cf2dda7fa1d582c2ea4e67c99439c5c parent c0ba7e5147829eaa607351997bccd06200a8db12 author Peter Zijlstra Mon, 25 Sep 2006 16:24:23 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:35 -0700 [PATCH] rtc: lockdep fix/workaround BUG: warning at kernel/lockdep.c:1816/trace_hardirqs_on() (Not tainted) [] show_trace_log_lvl+0x58/0x171 [] show_trace+0xd/0x10 [] dump_stack+0x19/0x1b [] trace_hardirqs_on+0xa2/0x11e [] _spin_unlock_irq+0x22/0x26 [] rtc_get_rtc_time+0x32/0x176 [] hpet_rtc_interrupt+0x92/0x14d [] handle_IRQ_event+0x20/0x4d [] __do_IRQ+0x94/0xef [] do_IRQ+0x9e/0xbd [] common_interrupt+0x25/0x2c DWARF2 unwinder stuck at common_interrupt+0x25/0x2c Signed-off-by: Peter Zijlstra Acked-by: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c0ba7e5147829eaa607351997bccd06200a8db12 tree e7be5cc8dc5bb12a850680d864162f1c1b2cfd1e parent a6d967a485c67ec8a1276261f39d81ace6a3e308 author Ian Kent Mon, 25 Sep 2006 16:24:16 -0700 committer Linus Torvalds Mon, 25 Sep 2006 17:38:35 -0700 [PATCH] autofs4: zero timeout prevents shutdown If the timeout of an autofs mount is set to zero then umounts are disabled. This works fine, however the kernel module checks the expire timeout and goes no further if it is zero. This is not the right thing to do at shutdown as the module is passed an option to expire mounts regardless of their timeout setting. This patch allows autofs to honor the force expire option. Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c32a8fd7cb33f30bcd855188dc8e243b144c5cee tree d77a7fefaff2121fcd9f5c10f6e54ee7c704c0b4 parent a6d967a485c67ec8a1276261f39d81ace6a3e308 author Henne Mon, 25 Sep 2006 22:00:46 +0200 committer Jeff Garzik Mon, 25 Sep 2006 20:13:02 -0400 [PATCH] ata-piix: fixes kerneldoc error Fixes an error in kerneldoc of ata_piix.c. Signed-off-by: Henrik Kretzschmar Signed-off-by: Jeff Garzik commit be5b6d3d6cb7311893c9fbeebf094591d5f760a8 tree 7e0b993976cf758c93b057d35bae6328e1cb7668 parent efdbc1a7caf770b1b312000a42c630597f06973d author David S. Miller Mon, 25 Sep 2006 14:08:37 -0700 committer David S. Miller Mon, 25 Sep 2006 16:39:58 -0700 [SOUND] sparc/amd7930: Use __devinit and __devinitdata as needed. Fixes section-mismatch errors. Signed-off-by: David S. Miller commit efdbc1a7caf770b1b312000a42c630597f06973d tree be5eeec43a6887dc07cfc957ce357be88b807847 parent a4c0291aa942dceddabe23bf2b74addb958d0964 author David S. Miller Mon, 25 Sep 2006 14:04:49 -0700 committer David S. Miller Mon, 25 Sep 2006 16:39:56 -0700 [SUNLANCE]: Mark sparc_lance_probe_one as __devinit. Fixes section mismatch warnings when built as a module. Also, mark find_ledma and sun4 init function as __devinit too. Signed-off-by: David S. Miller commit a4c0291aa942dceddabe23bf2b74addb958d0964 tree 09aa49ecb42475203b7c64a9f0cbc9e2700367c6 parent a6d967a485c67ec8a1276261f39d81ace6a3e308 author David S. Miller Mon, 25 Sep 2006 14:00:45 -0700 committer David S. Miller Mon, 25 Sep 2006 16:39:55 -0700 [SPARC64]: Fix section-mismatch errors in solaris emul module. init_socksys() was marked __init but invoked from a non-__init function. Use the correct module_{init,exit}() faciltiies while we're here and eliminate some seriously bogus ifdefs. Signed-off-by: David S. Miller commit 4cc6773508299377099aa30cf30e6a2196c5872d tree c96fe28eb992700065a1c98777894f5f20efe6c7 parent fd3858554b62c3af6b7664b5c58ad864c87116c9 author Paul Moore Mon, 25 Sep 2006 15:57:13 -0700 committer David S. Miller Mon, 25 Sep 2006 15:57:13 -0700 [NetLabel]: update docs with website information Now that all of the supporting pieces of NetLabel have a home at SourceForge update the Kconfig help text and add an entry to the MAINTAINERS file. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit fd3858554b62c3af6b7664b5c58ad864c87116c9 tree 9b01a61ed88a19331565649f04373a08ca3d3aa6 parent fcd48280643e92ec6cb29a04e9079dd7b6b5bfef author Paul Moore Mon, 25 Sep 2006 15:56:37 -0700 committer David S. Miller Mon, 25 Sep 2006 15:56:37 -0700 [NetLabel]: rework the Netlink attribute handling (part 2) At the suggestion of Thomas Graf, rewrite NetLabel's use of Netlink attributes to better follow the common Netlink attribute usage. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit fcd48280643e92ec6cb29a04e9079dd7b6b5bfef tree c594e16a021262e97f8b41493529c95bd616529e parent 4fe5d5c07ab615a52fd1b0ceba5aeed7c612821a author Paul Moore Mon, 25 Sep 2006 15:56:09 -0700 committer David S. Miller Mon, 25 Sep 2006 15:56:09 -0700 [NetLabel]: rework the Netlink attribute handling (part 1) At the suggestion of Thomas Graf, rewrite NetLabel's use of Netlink attributes to better follow the common Netlink attribute usage. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 4fe5d5c07ab615a52fd1b0ceba5aeed7c612821a tree 245e504bb1049e86f9f6dc369b679c5a5ca495ec parent 22acb19a91d2b551ea37647747972e5286284b22 author Paul Moore Mon, 25 Sep 2006 15:54:03 -0700 committer David S. Miller Mon, 25 Sep 2006 15:54:03 -0700 [Netlink]: add nla_validate_nested() Add a new function, nla_validate_nested(), to validate nested Netlink attributes. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 22acb19a91d2b551ea37647747972e5286284b22 tree c37455de7df838e76b6f4279f084bce95c16e416 parent df2115c3134d0d1a18c1f37f5192394e7f64d1e0 author Paul Moore Mon, 25 Sep 2006 15:53:37 -0700 committer David S. Miller Mon, 25 Sep 2006 15:53:37 -0700 [NETLINK]: add nla_for_each_nested() to the interface list At the top of include/net/netlink.h is a list of Netlink interfaces, however, the nla_for_each_nested() macro was not listed. This patch adds this interface to the list at the top of the header file. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit df2115c3134d0d1a18c1f37f5192394e7f64d1e0 tree 6a248318fa84838967376269fbd2e999ebeef3f2 parent 609c92feea5652809319bb77f19d24a44615687d author Paul Moore Mon, 25 Sep 2006 15:53:13 -0700 committer David S. Miller Mon, 25 Sep 2006 15:53:13 -0700 [NetLabel]: change the SELinux permissions Change NetLabel to use the 'recvfrom' socket permission and the SECINITSID_NETMSG SELinux SID as the NetLabel base SID for incoming packets. This patch effectively makes the old, and currently unused, SELinux NETMSG permissions NetLabel permissions. Signed-of-by: Paul Moore Signed-off-by: David S. Miller commit 609c92feea5652809319bb77f19d24a44615687d tree 01c7523782233356d0a373f775f21fa52099cd23 parent 14a72f53fb1bb5d5c2bdd8cf172219519664729a author Paul Moore Mon, 25 Sep 2006 15:52:37 -0700 committer David S. Miller Mon, 25 Sep 2006 15:52:37 -0700 [NetLabel]: make the CIPSOv4 cache spinlocks bottom half safe The CIPSOv4 cache traversal routines are triggered both the userspace events (cache invalidation due to DOI removal or updated SELinux policy) and network packet processing events. As a result there is a problem with the existing CIPSOv4 cache spinlocks as they are not bottom-half/softirq safe. This patch converts the CIPSOv4 cache spin_[un]lock() calls into spin_[un]lock_bh() calls to address this problem. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 14a72f53fb1bb5d5c2bdd8cf172219519664729a tree 95a077fb9289a95c352af77f18f12e5aba3313c6 parent 597811ec167fa01c926a0957a91d9e39baa30e64 author Paul Moore Mon, 25 Sep 2006 15:52:01 -0700 committer David S. Miller Mon, 25 Sep 2006 15:52:01 -0700 [NetLabel]: correct improper handling of non-NetLabel peer contexts Fix a problem where NetLabel would always set the value of sk_security_struct->peer_sid in selinux_netlbl_sock_graft() to the context of the socket, causing problems when users would query the context of the connection. This patch fixes this so that the value in sk_security_struct->peer_sid is only set when the connection is NetLabel based, otherwise the value is untouched. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit a6d967a485c67ec8a1276261f39d81ace6a3e308 tree 3e46be7f279342316d4578995dfbfce99728c579 parent 7c250413e5b7c3dfae89354725b70c76d7621395 author Jeff Garzik Mon, 25 Sep 2006 15:33:09 -0400 committer Jeff Garzik Mon, 25 Sep 2006 15:33:09 -0400 [libata] No need for all those arch libata-portmap.h headers They all contain the same thing. Instead, have a single generic one in include/asm-generic, and permit an arch to override as needed. Signed-off-by: Jeff Garzik commit 597811ec167fa01c926a0957a91d9e39baa30e64 tree 24e6ce26a4464d21993f2cd17dbdb9aec13360ab parent 3d2573f7ebe507e372a23cdd3c8b03305d6e90aa author Stephen Hemminger Sun, 24 Sep 2006 20:13:03 -0700 committer David S. Miller Sun, 24 Sep 2006 20:13:03 -0700 [TCP]: make cubic the default Change default congestion control used from BIC to the newer CUBIC which it the successor to BIC but has better properties over long delay links. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 3d2573f7ebe507e372a23cdd3c8b03305d6e90aa tree 8cc174bff2e7d3b3cd6d56374af1124c1de0d15a parent 5b7c714ec27584b18279b741b6043016f8adb9de author Stephen Hemminger Sun, 24 Sep 2006 20:11:58 -0700 committer David S. Miller Sun, 24 Sep 2006 20:11:58 -0700 [TCP]: default congestion control menu Change how default TCP congestion control is chosen. Don't just use last installed module, instead allow selection during configuration, and make sure and use the default regardless of load order. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 5b7c714ec27584b18279b741b6043016f8adb9de tree 29b9599aecd0ebda24da4791abbc82a402fa081a parent 76a081e5b32fde17f6f6d007e1806744cc848712 author Roland Dreier Sun, 24 Sep 2006 20:09:33 -0700 committer David S. Miller Sun, 24 Sep 2006 20:09:33 -0700 [ATM] he: Fix __init/__devinit conflict he_init_one() is declared __devinit, but calls lots of init functions that are marked __init. However, if CONFIG_HOTPLUG is enabled, __devinit functions go into normal .text, which leads to WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x2130) and 'he_service_tbrq' Fix this by changing the __init functions to __devinit. Signed-off-by: Roland Dreier Signed-off-by: David S. Miller commit 7c250413e5b7c3dfae89354725b70c76d7621395 tree 474f5b888ba3c05b2b46b4f40e544d93ed471526 parent 355edd2e396ef919d14a605fb4e45466ee2b64d1 author Al Viro Mon, 25 Sep 2006 02:57:57 +0100 committer Linus Torvalds Sun, 24 Sep 2006 20:07:49 -0700 [PATCH] pata_pdc2027x iomem annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 355edd2e396ef919d14a605fb4e45466ee2b64d1 tree 069a4e21f5caf3cd40b323f96c6687ff4e970e43 parent 3cc27547d6ee2d50ecdd11e9127bc3cd1947e8dd author Al Viro Mon, 25 Sep 2006 02:57:22 +0100 committer Linus Torvalds Sun, 24 Sep 2006 20:07:49 -0700 [PATCH] fix idiocy in asd_init_lseq_mdp() To whoever had written that code: a) priority of >> is higher than that of & b) priority of typecast is higher than that of any binary operator c) learn the fscking C Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 3cc27547d6ee2d50ecdd11e9127bc3cd1947e8dd tree d70857f363fea3f8bc928bd2fd10d9a277c119bd parent 855fc73bf81e8f99606d6f5914c5b7c3b079d718 author Al Viro Mon, 25 Sep 2006 02:55:40 +0100 committer Linus Torvalds Sun, 24 Sep 2006 20:07:49 -0700 [PATCH] SCSI gfp_t annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 855fc73bf81e8f99606d6f5914c5b7c3b079d718 tree 802cd222d609efdce191ed85369d091b86ac7771 parent ee111d111b69c2a216d674081107fe3b3829aa9a author Al Viro Mon, 25 Sep 2006 02:54:46 +0100 committer Linus Torvalds Sun, 24 Sep 2006 20:07:49 -0700 [PATCH] wrong thing iounmapped (qla3xxx) ql3xxx_probe() does ioremap and stores result in ->mem_map_registers. On failure exit it does iounmap() of the same thing. OTOH, ql3xxx_remove() does iounmap() of ->mmap_virt_base which is (a) never assigned and (b) never used other than in that iounmap() call. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit ee111d111b69c2a216d674081107fe3b3829aa9a tree 3696a452a000ef30c9aaa037e43465f9467aa947 parent 8a1cdc9ca264c49ad0b896e43468fe6a4b0b646c author Al Viro Mon, 25 Sep 2006 02:53:53 +0100 committer Linus Torvalds Sun, 24 Sep 2006 20:07:48 -0700 [PATCH] qla3xxx iomem annotations the driver is still shite, though... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 8a1cdc9ca264c49ad0b896e43468fe6a4b0b646c tree 406c8b5359c9b96b368924f2d6f1ca1942e5eb3d parent 508df253dbefb0385a629370f4244e3db197d3b8 author Matthew Wilcox Sun, 24 Sep 2006 20:22:52 -0600 committer Linus Torvalds Sun, 24 Sep 2006 19:49:01 -0700 [PATCH] Revert ABI-breaking change in /proc Some user tools parse /proc/scsi/scsi, so we can't yet change the names. Change the existing ones back to their old names, and add an admonition to not make the same mistake that I did. Andrew Morton reports that this was breaking YDL 4.1 userspace. Signed-off-by: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 76a081e5b32fde17f6f6d007e1806744cc848712 tree 869a5a0c406fbc71ffb803f57aad147014510f27 parent 0d6c7ae22d4fadbc83677ea1a6144eea8911e319 parent e41542f5167d6b506607f8dd111fa0a3e468ccb8 author David S. Miller Sun, 24 Sep 2006 19:29:57 -0700 committer David S. Miller Sun, 24 Sep 2006 19:29:57 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6 commit 0d6c7ae22d4fadbc83677ea1a6144eea8911e319 tree 20e8ef57cb366b5b8a9d773fc1b533b2bf9edaf5 parent 508df253dbefb0385a629370f4244e3db197d3b8 author Yasuyuki Kozakai Sun, 24 Sep 2006 19:28:47 -0700 committer David S. Miller Sun, 24 Sep 2006 19:28:47 -0700 [NETFILTER]: Add dscp,DSCP headers to header-y This patch adds xt_dscp.h and xt_DSCP.h to the kernel headers which are exported via 'make headers_install'. These are necessary for userspace to add rules using dscp match and DSCP target. Signed-off-by: Yasuyuki Kozakai Signed-off-by: David S. Miller commit 508df253dbefb0385a629370f4244e3db197d3b8 tree 8c22ddfc0b603d42643703a36e2984a3fe022dfa parent 6a3670c4f1b97373425340ab2dc0a66c25983d46 parent 2722de7fed1601eb7de84f929e00776d37a4cf5f author Linus Torvalds Sun, 24 Sep 2006 15:55:22 -0700 committer Linus Torvalds Sun, 24 Sep 2006 15:55:22 -0700 Merge git://git.infradead.org/~dwmw2/khdrs-2.6 * git://git.infradead.org/~dwmw2/khdrs-2.6: Don't remove $(INSTALL_HDR_PATH)/install before headers_install. commit 6a3670c4f1b97373425340ab2dc0a66c25983d46 tree 7f19c95b9dc8aac92739b5da3a68e977c455c53c parent ae97dd9af17f0c7f5142b46c4289623176c477f3 author Al Viro Sun, 24 Sep 2006 23:45:29 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] missing include (free_irq() use) Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit ae97dd9af17f0c7f5142b46c4289623176c477f3 tree dcefebf4942b8a9fe02cf33f5b3d5ffc7503175a parent 3e597c6045502dd0fa98a61aa95ba178f8a2cc03 author Al Viro Sun, 24 Sep 2006 23:42:57 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] NULL noise removal Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 3e597c6045502dd0fa98a61aa95ba178f8a2cc03 tree 61d8994ed00550ae641e2a5743e072a1c02654fb parent 1db2ea398ffbfd9ea46d509ff0e4a85bb4b8c0ea author Al Viro Sun, 24 Sep 2006 23:42:20 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] fix iptables __user misannotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 1db2ea398ffbfd9ea46d509ff0e4a85bb4b8c0ea tree a4c2f7df0133f46c5e92f79e3219462ee9168314 parent 8abf1064c786ef5435b2d53cc8e9ebee13020de6 author Al Viro Sun, 24 Sep 2006 23:41:42 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] netlabel gfp annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 8abf1064c786ef5435b2d53cc8e9ebee13020de6 tree 959b96245a645e5d0e2138cff765cf8f9bc315ce parent 9317fd4c60962d3a9423b5f9bb5d1b10cf8a0699 author Al Viro Sun, 24 Sep 2006 23:41:00 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] libata won't build on SUN4 marked as such... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 9317fd4c60962d3a9423b5f9bb5d1b10cf8a0699 tree 8cb4defddbca4c661bbd25b2a288ebe4d8be26e8 parent 638b093255e12e066ae16b8750f37383603f7bd8 author Al Viro Sun, 24 Sep 2006 23:40:00 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] libata won't build on m68k and m32r no ioread*(), for one thing Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 638b093255e12e066ae16b8750f37383603f7bd8 tree 2a95d93f50f855f416dcef1a52585f95471d7e33 parent b7a818e4fcd2c3ee8c34c2367d345561c4c76a15 author Al Viro Sun, 24 Sep 2006 23:39:25 +0100 committer Linus Torvalds Sun, 24 Sep 2006 15:55:03 -0700 [PATCH] restore libata build on frv Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 2722de7fed1601eb7de84f929e00776d37a4cf5f tree 9f2f6d7fafad19dac83fe7180d24f0f2da58e860 parent b7a818e4fcd2c3ee8c34c2367d345561c4c76a15 author David Woodhouse Sun, 24 Sep 2006 23:44:57 +0100 committer David Woodhouse Sun, 24 Sep 2006 23:44:57 +0100 Don't remove $(INSTALL_HDR_PATH)/install before headers_install. Signed-off-by: David Woodhouse commit b7a818e4fcd2c3ee8c34c2367d345561c4c76a15 tree 7d05ad4a8eadd18cce315af47ccd91304c4f72c3 parent 398477d4bd57cc33792fd93035c2763ad78629c4 parent 0d5dc6c2dd7a3cd2b2f505b0625c4ec9c0e5b4f0 author Linus Torvalds Sun, 24 Sep 2006 15:28:50 -0700 committer Linus Torvalds Sun, 24 Sep 2006 15:28:50 -0700 Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2 * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2: (28 commits) ocfs2: Teach ocfs2_drop_lock() to use ->set_lvb() callback ocfs2: Remove ->unblock lockres operation ocfs2: move downconvert worker to lockres ops ocfs2: Remove unused dlmglue functions ocfs2: Have the metadata lock use generic dlmglue functions ocfs2: Add ->set_lvb callback in dlmglue ocfs2: Add ->check_downconvert callback in dlmglue ocfs2: Check for refreshing locks in generic unblock function ocfs2: don't unconditionally pass LVB flags ocfs2: combine inode and generic blocking AST functions ocfs2: Add ->get_osb() dlmglue locking operation ocfs2: remove ->unlock_ast() callback from ocfs2_lock_res_ops ocfs2: combine inode and generic AST functions ocfs2: Clean up lock resource refresh flags ocfs2: Remove i_generation from inode lock names ocfs2: Encode i_generation in the meta data lvb ocfs2: Free up some space in the lvb ocfs2: Remove special casing for inode creation in ocfs2_dentry_attach_lock() ocfs2: manually d_move() during ocfs2_rename() [PATCH] Allow file systems to manually d_move() inside of ->rename() ... commit 398477d4bd57cc33792fd93035c2763ad78629c4 tree 8a9cc1cd2f371843f6242b877cbdce9e109a06ed parent 6e936d3e9a45a4307e7f4a29ee9829e7a0464af1 parent 6d71627581e96efb3717960b79fc2167a4617977 author Linus Torvalds Sun, 24 Sep 2006 14:55:52 -0700 committer Linus Torvalds Sun, 24 Sep 2006 14:55:52 -0700 Merge git://git.infradead.org/~dwmw2/khdrs-2.6 * git://git.infradead.org/~dwmw2/khdrs-2.6: New 'make headers_install_all' target. Use dependencies for 'make headers_install'. [S390] Unexport , export in its place. Remove dead netfilter_logging.h from include/linux/Kbuild Remove offsetof() from user-visible Clean up exported headers on CRIS Fix v850 exported headers Don't advertise (or allow) headers_{install,check} where inappropriate. Remove UML header export Remove ARM26 header export. Fix H8300 exported headers. Fix m68knommu exported headers Fix exported headers for SPARC, SPARC64 Fix 'make headers_check' on m32r Fix 'make headers_check' on sh64 Fix 'make headers_check' on sh [HEADERS] Fix ARM 'make headers_check' Initial pass of manual conflict resolution in top-level Makefile over conflicting build rule and headers_install changes. commit 6e936d3e9a45a4307e7f4a29ee9829e7a0464af1 tree 555f9d89779e6a675b38d9703f278ecf0579531c parent a68aa1cc6f3203b8a332683ebde67a00f39eec43 parent 5cc8d246d0ebbdf827d4bb7c3de175377d244d73 author Linus Torvalds Sun, 24 Sep 2006 14:24:14 -0700 committer Linus Torvalds Sun, 24 Sep 2006 14:24:14 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (28 commits) kbuild: add distclean info to 'make help' and more details for 'clean' dontdiff: add utsrelease.h kbuild: fix "mkdir -p" usage in scripts/package/mkspec kbuild: correct and clarify versioning info in Makefile kbuild: fixup Documentation/kbuild/modules.txt kbuild: Extend kbuild/defconfig tags support to exuberant ctags kbuild: fix for some typos in Documentation/makefiles.txt kbuild: clarify "make C=" build option Documentaion: update Documentation/Changes with minimum versions kbuild: update help in top level Makefile kbuild: fail kernel compilation in case of unresolved module symbols kbuild: remove debug left-over from Makefile.host kbuild: create output directory for hostprogs with O=.. build kbuild: add missing return statement in modpost.c:secref_whitelist() kbuild: preperly align SYSMAP output kbuild: make -rR is now default kbuild: make V=2 tell why a target is rebuild kbuild: modpost on vmlinux regardless of CONFIG_MODULES kbuild: ignore references from ".pci_fixup" to ".init.text" kbuild: linguistic fixes for Documentation/kbuild/makefiles.txt ... commit 5cc8d246d0ebbdf827d4bb7c3de175377d244d73 tree 172d28d1a8add538ef1389b7372b24c0fc0c9861 parent 5026b38cd2cd98e65f34cc6b079d5a155eae5881 author Jesper Juhl Sun, 24 Sep 2006 14:01:08 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 20:21:54 +0200 kbuild: add distclean info to 'make help' and more details for 'clean' Add distclean info, that was previously missing, to 'make help'. Also add a few more details to the 'make clean' help text. Signed-off-by: Jesper Juhl Signed-off-by: Sam Ravnborg commit 5026b38cd2cd98e65f34cc6b079d5a155eae5881 tree aae1ed24e63cc2c1ce57faa299be72fe69e90a5f parent a5fa393b54c98044f50b0768f82336c510e68f3d author Randy Dunlap Fri, 22 Sep 2006 12:37:56 -0700 committer Sam Ravnborg Mon, 25 Sep 2006 13:33:04 +0200 dontdiff: add utsrelease.h Add auto-generated utsrelease.h to dontdiff file. Signed-off-by: Randy Dunlap Signed-off-by: Sam Ravnborg commit a5fa393b54c98044f50b0768f82336c510e68f3d tree 851df4da9ea1f1758ac5850484f0b73805025db9 parent 1ef988569051d47e990fe5bbea22fb9b64152098 author Rolf Eike Beer Mon, 14 Aug 2006 08:16:47 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 10:55:44 +0200 kbuild: fix "mkdir -p" usage in scripts/package/mkspec "mkdir -p" does not only mean not to complain if the directory already exists, but also to create the parent directories if needed. This patch removes "lib" from the list of directories to create as we will also create "lib/modules". Signed-off-by: Rolf Eike Beer Signed-off-by: Sam Ravnborg commit 1ef988569051d47e990fe5bbea22fb9b64152098 tree 2f2e5f7d0a0be1dc79514c875274967b1c136d53 parent 2e99f3190f274c6783758ff511edb64e60753c9f author Robert P. J. Day Tue, 12 Sep 2006 12:38:19 -0400 committer Sam Ravnborg Mon, 25 Sep 2006 10:50:14 +0200 kbuild: correct and clarify versioning info in Makefile The attached patch clarifies the creation of KERNELRELEASE and corrects an error regarding the use of $(LOCALVERSION). Signed-off-by: Sam Ravnborg commit 2e99f3190f274c6783758ff511edb64e60753c9f tree 55a172d8f538ebbe82c84776af72cf7b7e118224 parent da7c04083c113c67800f1e13fe92a186e1f9084e author Robert P. J. Day Thu, 21 Sep 2006 09:39:41 -0400 committer Sam Ravnborg Mon, 25 Sep 2006 10:41:04 +0200 kbuild: fixup Documentation/kbuild/modules.txt Signed-off-by: Sam Ravnborg commit da7c04083c113c67800f1e13fe92a186e1f9084e tree 2157eccd667dbd0b2a84830ae7814482879683a3 parent 39e6e9cf902462abe624735fd95a51b01ceeda6f author Aron Griffis Thu, 21 Sep 2006 00:27:02 -0400 committer Sam Ravnborg Mon, 25 Sep 2006 10:24:20 +0200 kbuild: Extend kbuild/defconfig tags support to exuberant ctags The following patch extends kbuild/defconfig tags support to exuberant ctags. The previous support is only for emacs ctags/etags programs. This patch also corrects the kconfig regex for the emacs invocation. Previously it would miss some instances because it assumed /^config instead of /^[ \t]*config Signed-off-by: Aron Griffis Signed-off-by: Sam Ravnborg commit 39e6e9cf902462abe624735fd95a51b01ceeda6f tree e879db78b33519377860f09b03d1be4c54fd3cde parent 1c7bafe7206d928eaccbcbd08d868733e0fb7054 author Bryce Harrington Wed, 20 Sep 2006 12:43:37 -0700 committer Sam Ravnborg Mon, 25 Sep 2006 10:21:52 +0200 kbuild: fix for some typos in Documentation/makefiles.txt I noticed a few typos while reading makefiles.txt to learn about the kbuild system. Attached is a patch against 2.6.18 to fix them. Remove trailing whitespace while we are there.. Signed-off-by: Bryce Harrington Signed-off-by: Sam Ravnborg commit 1c7bafe7206d928eaccbcbd08d868733e0fb7054 tree 1a47b8bce159ffbbef4de11276e33a8b110100eb parent e41217129c66775d59c95978378ca42c53dd42c6 author Robert P. J. Day Wed, 13 Sep 2006 07:57:50 -0400 committer Sam Ravnborg Mon, 25 Sep 2006 10:10:56 +0200 kbuild: clarify "make C=" build option Clarify the use of "make C=" in the top-level Makefile, and fix a typo in the Documentation file. Signed-off-by: Sam Ravnborg commit e41217129c66775d59c95978378ca42c53dd42c6 tree 9e10ae02cb89c17073f4ff6cf0a09f228fc339e3 parent b32c8268475358cfa18cf9373e6f95c661a7a142 author Robert P. J. Day Mon, 11 Sep 2006 12:39:19 -0400 committer Sam Ravnborg Mon, 25 Sep 2006 10:06:15 +0200 Documentaion: update Documentation/Changes with minimum versions Based on conversations with greg kh (and noticing a simple typo), these are the actual minimal versions for 2.6.18. Signed-off-by: Sam Ravnborg commit b32c8268475358cfa18cf9373e6f95c661a7a142 tree 00759dafbfa8f219ee6093bb4d0e6f10242b46dc parent c53ddacdc08d41f812f1e637d214251d14c07a3d author Robert P. J. Day Mon, 11 Sep 2006 12:09:42 -0400 committer Sam Ravnborg Mon, 25 Sep 2006 10:02:52 +0200 kbuild: update help in top level Makefile Signed-off-by: Sam Ravnborg commit c53ddacdc08d41f812f1e637d214251d14c07a3d tree f049bfa5703ecaac0f9694d2f8f60bfed8845c78 parent 2212692913281e5fddb1c50c8c123378cfc42169 author Kirill Korotaev Thu, 07 Sep 2006 13:08:54 -0700 committer Sam Ravnborg Mon, 25 Sep 2006 09:14:30 +0200 kbuild: fail kernel compilation in case of unresolved module symbols At stage 2 modpost utility is used to check modules. In case of unresolved symbols modpost only prints warning. IMHO it is a good idea to fail compilation process in case of unresolved symbols (at least in modules coming with kernel), since usually such errors are left unnoticed, but kernel modules are broken. - new option '-w' is added to modpost: if option is specified, modpost only warns about unresolved symbols - modpost is called with '-w' for external modules in Makefile.modpost Signed-off-by: Andrey Mirkin Signed-off-by: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Sam Ravnborg commit 2212692913281e5fddb1c50c8c123378cfc42169 tree 0a3c97ae97b672b8b9381aab9a3fbd739537c272 parent 7b5b82038184d19f611be166a70fd11824109a71 author Sam Ravnborg Tue, 08 Aug 2006 16:45:41 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:05:19 +0200 kbuild: remove debug left-over from Makefile.host Signed-off-by: Sam Ravnborg commit 7b5b82038184d19f611be166a70fd11824109a71 tree 7b15974983018edbe8125d2bb670f2e2b6610091 parent 93659af1ce4974b1882668fee06458c0ac9315fd author Sam Ravnborg Mon, 07 Aug 2006 21:55:33 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:04:42 +0200 kbuild: create output directory for hostprogs with O=.. build hostprogs-y only supported creating output directory for the final program. Extend this to also cover the situation where a .o file (used when host program is made from compositie objects) is locate in another directory. First user of this is the built-in lxdialog that. Signed-off-by: Sam Ravnborg commit 93659af1ce4974b1882668fee06458c0ac9315fd tree cce1792dc45864a79de718a115b015331a55768c parent 4635281c8ea26e9f718c28f8f7713d10ad332eff author Sam Ravnborg Wed, 09 Aug 2006 08:23:55 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:01:49 +0200 kbuild: add missing return statement in modpost.c:secref_whitelist() Noticed by: Magnus Damm Signed-off-by: Sam Ravnborg commit 4635281c8ea26e9f718c28f8f7713d10ad332eff tree e53b7ff0944f6eaef25a98a6ff5e5f276e4d3ecf parent b805aa0e79c78bd05ad1f5c52ec126a19531edb0 author Sam Ravnborg Tue, 08 Aug 2006 21:41:18 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:01:49 +0200 kbuild: preperly align SYSMAP output Align filenames for SYSMAP with other filenames Signed-off-by: Sam Ravnborg commit b805aa0e79c78bd05ad1f5c52ec126a19531edb0 tree 72d8e863f631d3ea5cdf8a9c5e0ddab2d271b0ef parent 45d506bd65e2e35881d8276c111b647807823d19 author Sam Ravnborg Tue, 08 Aug 2006 21:36:08 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:01:49 +0200 kbuild: make -rR is now default Do not specify -rR anymore - it is default. Signed-off-by: Sam Ravnborg commit 45d506bd65e2e35881d8276c111b647807823d19 tree 8f53e4e58165fc2c7f62e17b31dfb77ef43d7dfc parent 12715d20af9fd9179daca7a1cd2cf3db3c2c494f author Sam Ravnborg Tue, 08 Aug 2006 21:35:14 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:01:49 +0200 kbuild: make V=2 tell why a target is rebuild tell why a a target got build enabled by make V=2 Output (listed in the order they are checked): (1) - due to target is PHONY (2) - due to target missing (3) - due to: file1.h file2.h (4) - due to command line change (5) - due to missing .cmd file (6) - due to target not in $(targets) (1) We always build PHONY targets (2) No target, so we better build it (3) Prerequisite is newer than target (4) The command line stored in the file named dir/.target.cmd differed from actual command line. This happens when compiler options changes (5) No dir/.target.cmd file (used to store command line) (6) No dir/.target.cmd file and target not listed in $(targets) This is a good hint that there is a bug in the kbuild file This patch is inspired by a patch from: Milton Miller Cc: Milton Miller Signed-off-by: Sam Ravnborg commit 12715d20af9fd9179daca7a1cd2cf3db3c2c494f tree 0dc3e2a0523fb20eb01c1a5b38d13b93acd50cfe parent 9e157a5aa899f1ef73780e4755b57ddeb9225079 author Sam Ravnborg Tue, 08 Aug 2006 20:43:39 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:01:49 +0200 kbuild: modpost on vmlinux regardless of CONFIG_MODULES Based on patch from: Magnus Damm This has the advantage that all section mismatch checks are run regardless of modules being enabled or not. When running modpost on vmlinux output: MODPOST vmlinux When running modpost on modules output count of modules like this: MODPOST 5 modules Signed-off-by: Sam Ravnborg commit 9e157a5aa899f1ef73780e4755b57ddeb9225079 tree 5e5005a758093735fa02d13856153419b37470cb parent a07f6033ca135a94a69c6874d028f01338e2535c author Magnus Damm Tue, 08 Aug 2006 17:32:11 +0900 committer Sam Ravnborg Mon, 25 Sep 2006 09:01:49 +0200 kbuild: ignore references from ".pci_fixup" to ".init.text" The modpost code is extended to ignore references from ".pci_fixup" to ".init.text". Signed-off-by: Magnus Damm commit a07f6033ca135a94a69c6874d028f01338e2535c tree 3bc12ec93df18de8eb6475c5f4b27c637575c190 parent d9a7ff664667e1991652db0bb0cb0abea96ec716 author Jan Engelhardt Thu, 27 Jul 2006 22:14:29 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:01 +0200 kbuild: linguistic fixes for Documentation/kbuild/makefiles.txt I have done a look-through through Documentation/kbuild/ and my corrections (proposed) are attached. Cc'ed are original author Michael (responsible for comitting changes to these files?), Sam (kbuild maintainer), Adrian (-trivial maintainer). Signed-off-by: Jan Engelhardt Signed-off-by: Sam Ravnborg commit d9a7ff664667e1991652db0bb0cb0abea96ec716 tree ff46937a6fe31299070aa6e14352211a1ec1fb9b parent 83dcde4e1b64e39d34358ea9c5e6259af6aa50da author Jan Engelhardt Thu, 27 Jul 2006 22:14:29 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:01 +0200 kbuild: linguistic fixes for Documentation/kbuild/modules.txt I have done a look-through through Documentation/kbuild/ and my corrections (proposed) are attached. Cc'ed are original author Michael (responsible for comitting changes to these files?), Sam (kbuild maintainer), Adrian (-trivial maintainer). Signed-off-by: Jan Engelhardt Signed-off-by: Sam Ravnborg commit 83dcde4e1b64e39d34358ea9c5e6259af6aa50da tree beda2674adac107316fb1b2c3afcc7d19c1751a6 parent 65ff22ee3bd0b0816e5e192b59f24a7538e5d497 author Jan Engelhardt Thu, 27 Jul 2006 22:14:29 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:01 +0200 kconfig: linguistic fixes for Documentation/kbuild/kconfig-language.txt I have done a look-through through Documentation/kbuild/ and my corrections (proposed) are attached. Cc'ed are original author Michael (responsible for comitting changes to these files?), Sam (kbuild maintainer), Adrian (-trivial maintainer). Signed-off-by: Jan Engelhardt Signed-off-by: Sam Ravnborg commit 65ff22ee3bd0b0816e5e192b59f24a7538e5d497 tree 8dd058befd1b7144e075ec6fc1f392d17c3ea398 parent 07aea3a71fc6b07744691eec2dfea705a7b30280 author Olaf Hering Tue, 25 Jul 2006 18:42:26 -0700 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:01 +0200 remove RPM_BUILD_ROOT from asm-offsets.h No file in rpm binary package should have the RPM_BUILD_ROOT string in it. To simplify building of external modules, our kernel-source package contains some temp files from the Kbuild system. asm/asm-offsets.h is one of the files that contains the absolute path if make O=$O is used. * This file was generated by /var/tmp/kernel-source-2.6.14_rc4-build/usr/src/linux-2.6.14-rc4-2/Kbuild Remove the $RPM_BUILD_ROOT string in the shipped tempfile. Signed-off-by: Olaf Hering Signed-off-by: Andrew Morton Signed-off-by: Sam Ravnborg commit 07aea3a71fc6b07744691eec2dfea705a7b30280 tree f1bb88857e93b28679674f4fa66bdef3a6c84c29 parent 14a036d2dc304797f3624c06bd6d2a1e9b59e45a author Sam Ravnborg Sun, 23 Jul 2006 20:47:50 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:01 +0200 kbuild: use in-kernel unifdef Let headers_install use in-kernel unifdef Signed-off-by: Sam Ravnborg commit 14a036d2dc304797f3624c06bd6d2a1e9b59e45a tree 8c35e30949dd748970cd106f5544077ed4cd4c69 parent 01f1c8799ad8b23c190d59cf1c9e28e6fed390a4 author Sam Ravnborg Sun, 23 Jul 2006 20:41:30 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:00 +0200 kbuild: replace use of strlcpy with a dedicated implmentation in unifdef Signed-off-by: Sam Ravnborg commit 01f1c8799ad8b23c190d59cf1c9e28e6fed390a4 tree 7619f68a3a123c128b01a60b5386d21829840313 parent 48f1f0589dd09df6ea07d41c737db3218ad2cb79 author Sam Ravnborg Sun, 23 Jul 2006 20:39:59 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:00 +0200 kbuild: add unifdef This patch contains a raw copy of unifdef.c Next patch will modify it and add infrastructure to use it Adding unifdef to the kernel is acked by the author. The reason to add unifdef as part of the kernel source is that it is not yet a common utility on most distributions. Signed-off-by: Sam Ravnborg commit 48f1f0589dd09df6ea07d41c737db3218ad2cb79 tree 2dd9563f30467f252e08477e7e63c4adeb4c0caa parent d3660a8cbdfad620af88b85b7bbfff29160f14c2 author Sam Ravnborg Sun, 23 Jul 2006 19:37:44 +0200 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:00 +0200 kbuild: consistently decide when to rebuild a target Consistently decide when to rebuild a target across all of if_changed, if_changed_dep, if_changed_rule. PHONY targets are now treated alike (ignored) for all targets While add it make Kbuild.include almost readable by factoring out a few bits to some common variables and reuse this in Makefile.build. Signed-off-by: Sam Ravnborg commit d3660a8cbdfad620af88b85b7bbfff29160f14c2 tree c79e6a3362e0e0831cf3a9b0b8bd9a3b7a7e79f1 parent 4f5537de7c1531398e84e18a24f667e49cc94208 author Matthew Wilcox Thu, 13 Jul 2006 12:54:07 -0600 committer Sam Ravnborg Mon, 25 Sep 2006 09:00:00 +0200 kconfig: support DOS line endings Kconfig doesn't currently handle config files with DOS line endings. While these are, of course, an abomination, etc, etc, it can be handy to not have to convert them first. It's also a tiny patch and even adds support for lines ending in just \r or even \n\r. Signed-off-by: Matthew Wilcox Signed-off-by: Sam Ravnborg commit 6d71627581e96efb3717960b79fc2167a4617977 tree c9953caf9adef637b54e0ce1632ebd5746e630d6 parent de78912582bc1f95733d53e0d40779c0cd7b0686 author David Woodhouse Sun, 24 Sep 2006 22:16:03 +0100 committer David Woodhouse Sun, 24 Sep 2006 22:16:03 +0100 New 'make headers_install_all' target. Install headers for _all_ architectures, suitable for making a tarball release or extracting them for use in a separate package. Signed-off-by: David Woodhouse commit de78912582bc1f95733d53e0d40779c0cd7b0686 tree cf7c7872e8e7fb80f4212ff0212a0208fdf43417 parent b4daf69722c49670d355d66439abda5ab5d4c5db author David Woodhouse Sun, 24 Sep 2006 22:15:14 +0100 committer David Woodhouse Sun, 24 Sep 2006 22:15:14 +0100 Use dependencies for 'make headers_install'. Re-export header files only if either they or their controlling Kbuild file has actually changed. Also allow for similar dependencies with 'headers_check', once we properly create the dependencies for those. Signed-off-by: David Woodhouse commit e41542f5167d6b506607f8dd111fa0a3e468ccb8 tree 89fefd3feb59f11f256dd276038a562c09b4602d parent 3dd9a7c3a155ee96160876cba92439fdc96d7e0b author Ian McDonald Fri, 22 Sep 2006 14:28:01 +1200 committer Arnaldo Carvalho de Melo Sun, 24 Sep 2006 18:08:17 -0300 [DCCP]: Introduce dccp_probe This adds DCCP probing shamelessly ripped off from TCP probes by Stephen Hemminger. I've put in here support for further CCID3 variables as well. Andrea/Arnaldo might look to extend for CCID2. Signed-off-by: Ian McDonald Signed-off-by: Arnaldo Carvalho de Melo commit b4daf69722c49670d355d66439abda5ab5d4c5db tree 4f257adf1af09cdb0e830881da69786d1dd47f7a parent 9e72cbf353e259bd30ab472d72d7bdb9be23fb12 author David Woodhouse Sun, 24 Sep 2006 22:07:25 +0100 committer David Woodhouse Sun, 24 Sep 2006 22:07:25 +0100 [S390] Unexport , export in its place. Signed-off-by: David Woodhouse commit 9e72cbf353e259bd30ab472d72d7bdb9be23fb12 tree 2a31af40917fcce0f1d3b21a97e8fae5476ce417 parent 02b25fcff676125a88169c8a78d4c6dd647574ed author David Woodhouse Sun, 24 Sep 2006 22:06:48 +0100 committer David Woodhouse Sun, 24 Sep 2006 22:06:48 +0100 Remove dead netfilter_logging.h from include/linux/Kbuild Signed-off-by: David Woodhouse commit 02b25fcff676125a88169c8a78d4c6dd647574ed tree 372fc8e885be41ba1819b2767c8889ecd97ff948 parent 1694176a210189312e31b083bac1e1688981219a parent a68aa1cc6f3203b8a332683ebde67a00f39eec43 author David Woodhouse Sun, 24 Sep 2006 22:05:59 +0100 committer David Woodhouse Sun, 24 Sep 2006 22:05:59 +0100 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 commit 3dd9a7c3a155ee96160876cba92439fdc96d7e0b tree 32c66cd4034d4c1f3ca7b7e7300a6f619a661c8a parent b83eff641ed39bd631535b9a8971e161b056f541 author Ian McDonald Fri, 22 Sep 2006 14:26:44 +1200 committer Arnaldo Carvalho de Melo Sun, 24 Sep 2006 18:03:41 -0300 [DCCP]: Use constants for CCIDs With constants for CCID numbers this now uses them in some places. Signed-off-by: Ian McDonald Signed-off-by: Arnaldo Carvalho de Melo commit b83eff641ed39bd631535b9a8971e161b056f541 tree 3989df2905034c50f5f035cd884fe33f5c709749 parent 00e4d116a7ef94eb910be037912b0b2fc09f608b author Ian McDonald Fri, 22 Sep 2006 14:25:36 +1200 committer Arnaldo Carvalho de Melo Sun, 24 Sep 2006 17:56:32 -0300 [DCCP]: Introduce constants for CCID numbers Signed-off-by: Ian McDonald Signed-off-by: Arnaldo Carvalho de Melo commit 0d5dc6c2dd7a3cd2b2f505b0625c4ec9c0e5b4f0 tree e814c077db38d0b20da46c55764e0829158943e7 parent b5e500e23e532795fbf79a3cdbcb014f207fdb2a author Mark Fasheh Thu, 14 Sep 2006 14:44:51 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:48 -0700 ocfs2: Teach ocfs2_drop_lock() to use ->set_lvb() callback With this, we don't need to pass an additional struct with function pointer. Now that the callbacks are fully used, comment the remaining API. Signed-off-by: Mark Fasheh commit b5e500e23e532795fbf79a3cdbcb014f207fdb2a tree 44acf287ae9c45678d7b712518d252c95c75eb5b parent cc567d89b3af4294580c9c97610d2c1018032e33 author Mark Fasheh Wed, 13 Sep 2006 22:01:16 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:48 -0700 ocfs2: Remove ->unblock lockres operation Have ocfs2_process_blocked_lock() call ocfs2_generic_unblock_lock(), which gets to be ocfs2_unblock_lock() now that it's the only possible unblock function. Remove the ->unblock() callback from the structure, and all lock type specific unblock functions. Signed-off-by: Mark Fasheh commit cc567d89b3af4294580c9c97610d2c1018032e33 tree d143d87e9b4b6cca13fd2bb2f86912b44344eacf parent 08280f11de91beac2f5234ce5fc2ed246dfe6a86 author Mark Fasheh Wed, 13 Sep 2006 21:52:21 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:48 -0700 ocfs2: move downconvert worker to lockres ops This way lock types don't have to manually pass it to ocfs2_generic_unblock_lock(). Signed-off-by: Mark Fasheh commit 08280f11de91beac2f5234ce5fc2ed246dfe6a86 tree 745853080072f539a24be0e82458b651aaaae195 parent 810d5aeba18825c754cf47db59eb83814a54bb27 author Mark Fasheh Wed, 13 Sep 2006 21:41:56 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:48 -0700 ocfs2: Remove unused dlmglue functions The meta data unblocking code no longer needs ocfs2_do_unblock_meta() or ocfs2_can_downconvert_meta_lock(), so remove them. Signed-off-by: Mark Fasheh commit 810d5aeba18825c754cf47db59eb83814a54bb27 tree 4d68e97f2487422e6c65fa4758b133e0a013ff7a parent 5ef0d4ea087740908f4fb57606f6c09e3b90c477 author Mark Fasheh Wed, 13 Sep 2006 21:39:52 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:47 -0700 ocfs2: Have the metadata lock use generic dlmglue functions Fill in the ->check_downconvert and ->set_lvb callbacks with meta data specific operations and switch ocfs2_unblock_meta() to call ocfs2_generic_unblock_lock() Signed-off-by: Mark Fasheh commit 5ef0d4ea087740908f4fb57606f6c09e3b90c477 tree c9e28139d6bfb9b4b2bcc967669dd0cbe12b0abc parent 16d5b9567ad5241b5c6e0cc4778c1af6c04bb801 author Mark Fasheh Wed, 13 Sep 2006 21:21:52 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:47 -0700 ocfs2: Add ->set_lvb callback in dlmglue This allows a lock type to set the value block before downconvert. Signed-off-by: Mark Fasheh commit 16d5b9567ad5241b5c6e0cc4778c1af6c04bb801 tree 1dda797d26712376e16c378099bbf33114989c69 parent f7fbfdd1fc91543253ba742a926a29c289f8e6ca author Mark Fasheh Wed, 13 Sep 2006 21:10:12 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:47 -0700 ocfs2: Add ->check_downconvert callback in dlmglue This will allow lock types to force a requeue of a lock downconvert. Signed-off-by: Mark Fasheh commit f7fbfdd1fc91543253ba742a926a29c289f8e6ca tree 6a4f9c824a744a1d53f3a3dc7c4d851641b3b3e8 parent b80fc012e03f8f207911b5eafe6916b000e03c8b author Mark Fasheh Wed, 13 Sep 2006 21:02:29 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:47 -0700 ocfs2: Check for refreshing locks in generic unblock function Tidy up the exit path a bit too. Signed-off-by: Mark Fasheh commit b80fc012e03f8f207911b5eafe6916b000e03c8b tree 8eaad9bc587810f76241c8edd41d34f046f72010 parent aa2623ad80577b37637914e809bafa36994ccdf1 author Mark Fasheh Tue, 12 Sep 2006 22:08:14 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:47 -0700 ocfs2: don't unconditionally pass LVB flags Allow a lock type to specifiy whether it makes use of the LVB. The only type which does this right now is the meta data lock. This should save us some space on network messages since they won't have to needlessly transmit value blocks. Signed-off-by: Mark Fasheh commit aa2623ad80577b37637914e809bafa36994ccdf1 tree b17881ea156b47e64ed67f563d0356525cf5a335 parent 54a7e7552e484c08db221e49c4519ccdeb8882d0 author Mark Fasheh Tue, 12 Sep 2006 21:58:23 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:46 -0700 ocfs2: combine inode and generic blocking AST functions There is extremely little difference between the two now. We can remove the callback from ocfs2_lock_res_ops as well. Signed-off-by: Mark Fasheh commit 54a7e7552e484c08db221e49c4519ccdeb8882d0 tree 9787fd07933105339ec5f2310888166d63cbc4b0 parent 2a45f2d13e1dd91bc110801f5818379f2699509c author Mark Fasheh Tue, 12 Sep 2006 21:49:13 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:46 -0700 ocfs2: Add ->get_osb() dlmglue locking operation Will be used to find the ocfs2_super structure from a given lockres. Signed-off-by: Mark Fasheh commit 2a45f2d13e1dd91bc110801f5818379f2699509c tree ac68aacc698000af16957ae009908f24a4f3b81b parent e92d57df273a3a7e57688e1d4f5a894870d550d2 author Mark Fasheh Tue, 12 Sep 2006 21:36:58 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:46 -0700 ocfs2: remove ->unlock_ast() callback from ocfs2_lock_res_ops This was always defined to the same function in all locks, so clean things up by removing and passing ocfs2_unlock_ast() directly to the DLM. Signed-off-by: Mark Fasheh commit e92d57df273a3a7e57688e1d4f5a894870d550d2 tree 9334beeeac74a2aad2a98a5dcf73e7dc2d57b65b parent f625c9793b6cc64aeb1b6387039d09019c214352 author Mark Fasheh Tue, 12 Sep 2006 21:34:35 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:46 -0700 ocfs2: combine inode and generic AST functions There is extremely little difference between the two now. We can remove the callback from ocfs2_lock_res_ops as well. Signed-off-by: Mark Fasheh commit f625c9793b6cc64aeb1b6387039d09019c214352 tree 8f70dcba910843a70f95e6cd869ad54c66f07880 parent 24c19ef40474c3930597f31ae233dc06319bd881 author Mark Fasheh Tue, 12 Sep 2006 21:24:53 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:46 -0700 ocfs2: Clean up lock resource refresh flags Use of the refresh mechanism is lock-type wide, so move knowledge of that to the ocfs2_lock_res_ops structure. Signed-off-by: Mark Fasheh commit 24c19ef40474c3930597f31ae233dc06319bd881 tree e05b1cf72435d25bf47e67b206aa376bbea33b7d parent f9e2d82e6395cfa0802446b54b63cc412089d82c author Mark Fasheh Fri, 22 Sep 2006 17:28:19 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:46 -0700 ocfs2: Remove i_generation from inode lock names OCFS2 puts inode meta data in the "lock value block" provided by the DLM. Typically, i_generation is encoded in the lock name so that a deleted inode on and a new one in the same block don't share the same lvb. Unfortunately, that scheme means that the read in ocfs2_read_locked_inode() is potentially thrown away as soon as the meta data lock is taken - we cannot encode the lock name without first knowing i_generation, which requires a disk read. This patch encodes i_generation in the inode meta data lvb, and removes the value from the inode meta data lock name. This way, the read can be covered by a lock, and at the same time we can distinguish between an up to date and a stale LVB. This will help cold-cache stat(2) performance in particular. Since this patch changes the protocol version, we take the opportunity to do a minor re-organization of two of the LVB fields. Signed-off-by: Mark Fasheh commit f9e2d82e6395cfa0802446b54b63cc412089d82c tree cdf647041c713d3cbc8b1e0d4006c9440184e336 parent 4d3b83f7364269b66cdda271f680bd99e77afd96 author Mark Fasheh Tue, 12 Sep 2006 15:35:49 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:45 -0700 ocfs2: Encode i_generation in the meta data lvb When i_generation is removed from the lockname, this will help us determine whether a meta data lvb has information that is in sync with the local struct inode. Signed-off-by: Mark Fasheh commit 4d3b83f7364269b66cdda271f680bd99e77afd96 tree fcae1aca5ab487d07cd7ad4f01e71b961dc99107 parent 0027dd5bc213bc639e09dd002a4ab56bd18317c3 author Mark Fasheh Tue, 12 Sep 2006 15:22:18 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:45 -0700 ocfs2: Free up some space in the lvb lvb_version doesn't need to be a whole 32 bits. Make it an 8 bit field to free up some space. This should be backwards compatible until we use one of the fields, in which case we'd bump the lvb version anyway. Signed-off-by: Mark Fasheh commit 0027dd5bc213bc639e09dd002a4ab56bd18317c3 tree b41612706b25e8be6aa22f8423cc92a95a2337dc parent 1ba9da2ffa54b56a6346746248bfa38124d499a6 author Mark Fasheh Thu, 21 Sep 2006 16:51:28 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:45 -0700 ocfs2: Remove special casing for inode creation in ocfs2_dentry_attach_lock() We can't use LKM_LOCAL for new dentry locks because an unlink and subsequent re-create of a name/inode pair may result in the lock still being mastered somewhere in the cluster. Signed-off-by: Mark Fasheh commit 1ba9da2ffa54b56a6346746248bfa38124d499a6 tree 51b25c65e92b6d2b3281d175e517cb5699e4b9ee parent 349457ccf2592c14bdf13b6706170ae2e94931b1 author Mark Fasheh Fri, 08 Sep 2006 14:22:54 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:45 -0700 ocfs2: manually d_move() during ocfs2_rename() Make use of FS_RENAME_DOES_D_MOVE to avoid a race condition that can occur during ->rename() if we d_move() outside of the parent directory cluster locks, and another node discovers the new name (created during the rename) and unlinks it. d_move() will unconditionally rehash a dentry - which will leave stale data in the system. Signed-off-by: Mark Fasheh commit 349457ccf2592c14bdf13b6706170ae2e94931b1 tree 3670945b5a62617d38cf1f317487387032d3da4d parent 1390334b4c697b7588d5661fcf6acaeec409cf4c author Mark Fasheh Fri, 08 Sep 2006 14:22:21 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:45 -0700 [PATCH] Allow file systems to manually d_move() inside of ->rename() Some file systems want to manually d_move() the dentries involved in a rename. We can do this by making use of the FS_ODD_RENAME flag if we just have nfs_rename() unconditionally do the d_move(). While there, we rename the flag to be more descriptive. OCFS2 uses this to protect that part of the rename operation with a cluster lock. Signed-off-by: Mark Fasheh Cc: Trond Myklebust Cc: Al Viro Cc: Christoph Hellwig Signed-off-by: Andrew Morton commit 1390334b4c697b7588d5661fcf6acaeec409cf4c tree a19c2c3e5934ff71511826e5a57e47bde321c490 parent 379dfe9d0db99ed33fb089fcb9c07f5f92566e9e author Mark Fasheh Fri, 08 Sep 2006 14:21:43 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:43 -0700 ocfs2: Remove the dentry vote This is unused now. Signed-off-by: Mark Fasheh commit 379dfe9d0db99ed33fb089fcb9c07f5f92566e9e tree 8f04d8dbf97fa70d8f02fcbb037e7b318cd7143e parent 80c05846f604bab6d61e9732c262420ee9f5f358 author Mark Fasheh Fri, 08 Sep 2006 14:21:03 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:43 -0700 ocfs2: Hook rest of the file system into dentry locking API Actually replace the vote calls with the new dentry operations. Make any necessary adjustments to get the scheme to work. Signed-off-by: Mark Fasheh commit 80c05846f604bab6d61e9732c262420ee9f5f358 tree 3fcd80cec6e3a3a1e56abaff0a559817dbcb95a2 parent d680efe9d8fe0eb99d9dd063a4def6b362cdb40d author Mark Fasheh Fri, 08 Sep 2006 14:43:18 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:43 -0700 ocfs2: Add dentry tracking API Replace the dentry vote mechanism with a cluster lock which covers a set of dentries. This allows us to force d_delete() only on nodes which actually care about an unlink. Every node that does a ->lookup() gets a read only lock on the dentry, until an unlink during which the unlinking node, will request an exclusive lock, forcing the other nodes who care about that dentry to d_delete() it. The effect is that we retain a very lightweight ->d_revalidate(), and at the same time get to make large improvements to the average case performance of the ocfs2 unlink and rename operations. This patch adds the higher level API and the dentry manipulation code. Signed-off-by: Mark Fasheh commit d680efe9d8fe0eb99d9dd063a4def6b362cdb40d tree 51e8c081c673240434dce4b44bf66fbfd4dddf30 parent f0681062b8e369d9fb6f3ce10f4e3fc8cea5f910 author Mark Fasheh Fri, 08 Sep 2006 14:14:34 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:42 -0700 ocfs2: Add new cluster lock type Replace the dentry vote mechanism with a cluster lock which covers a set of dentries. This allows us to force d_delete() only on nodes which actually care about an unlink. Every node that does a ->lookup() gets a read only lock on the dentry, until an unlink during which the unlinking node, will request an exclusive lock, forcing the other nodes who care about that dentry to d_delete() it. The effect is that we retain a very lightweight ->d_revalidate(), and at the same time get to make large improvements to the average case performance of the ocfs2 unlink and rename operations. This patch adds the cluster lock type which OCFS2 can attach to dentries. A small number of fs/ocfs2/dcache.c functions are stubbed out so that this change can compile. Signed-off-by: Mark Fasheh commit f0681062b8e369d9fb6f3ce10f4e3fc8cea5f910 tree 5db79c33d86409a458775a0dff0a80485b37ee14 parent ea5b3a187e2724fa9d08b2fbd3898c149ed95c6b author Mark Fasheh Fri, 08 Sep 2006 11:40:10 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:42 -0700 ocfs2: Update dlmglue for new dlmlock() API File system lock names are very regular right now, so we really only need to pass an extra parameter to dlmlock(). Signed-off-by: Mark Fasheh commit ea5b3a187e2724fa9d08b2fbd3898c149ed95c6b tree 42748cd0189e3b41147ccbe114d02633dc8d0d1e parent 3384f3df5ed939a25135e1b2734fb7cdee1720a8 author Mark Fasheh Fri, 08 Sep 2006 11:39:27 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:42 -0700 ocfs2: Update dlmfs for new dlmlock() API We just need to add a namelen field to the user_lock_res structure, and update a few debug prints. Instead of updating all debug prints, I took the opportunity to remove a few that are likely unnecessary these days. Signed-off-by: Mark Fasheh commit 3384f3df5ed939a25135e1b2734fb7cdee1720a8 tree 7a68180b6adeb74b5a0a96e6c2d4ad529b34096d parent e2c73698af3dac89328eef2b55f6746e0507d2bc author Mark Fasheh Fri, 08 Sep 2006 11:38:29 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:42 -0700 ocfs2: Allow binary names in the DLM The OCFS2 DLM uses strlen() to determine lock name length, which excludes the possibility of putting binary values in the name string. Fix this by requiring that string length be passed in as a parameter. Signed-off-by: Mark Fasheh commit e2c73698af3dac89328eef2b55f6746e0507d2bc tree 0bfdae45908f1d148f0c3821f4010c9bcf36553f parent a68aa1cc6f3203b8a332683ebde67a00f39eec43 author Mark Fasheh Fri, 08 Sep 2006 11:37:32 -0700 committer Mark Fasheh Sun, 24 Sep 2006 13:50:41 -0700 ocfs2: Silence dlm error print An AST can be delivered via the network after a lock has been removed, so no need to print an error when we see that. Signed-off-by: Mark Fasheh commit 00e4d116a7ef94eb910be037912b0b2fc09f608b tree 81e8a52c7529691b3c07605613da65cae80f41c9 parent 1ab9dd0902df4f4ff56fbf672220549090ab28ba author Gerrit Renker Fri, 22 Sep 2006 09:33:58 +0100 committer Arnaldo Carvalho de Melo Sun, 24 Sep 2006 17:49:26 -0300 [DCCP]: Allow default/fallback service code. This has been discussed on dccp@vger and removes the necessity for applications to supply service codes in each and every case. If an application does not want to provide a service code, that's fine, it will be given 0. Otherwise, service codes can be set via socket options as before. This patch has been tested using various client/server configurations (including listening on multiple service codes). Signed-off-by: Gerrit Renker Signed-off-by: Arnaldo Carvalho de Melo commit a68aa1cc6f3203b8a332683ebde67a00f39eec43 tree c05bd86850d8e0d0fb096a4b5f8d9f268b5561e8 parent a319a2773a13bab56a0d0b3744ba8703324313b5 parent 23930fa1cebfea6f79881c588ccd1b0781e49e3f author Linus Torvalds Sun, 24 Sep 2006 10:19:56 -0700 committer Linus Torvalds Sun, 24 Sep 2006 10:19:56 -0700 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: (50 commits) [libata] Delete pata_it8172 driver [PATCH] libata: improve handling of diagostic fail (and hardware that misreports it) [PATCH] libata: fix non-uniform ports handling Fix libata resource conflict for legacy mode [libata] ata_piix: build fix [PATCH] pata_amd: Check enable bits on Nvidia [PATCH] Update SiS PATA [libata] Add pata_jmicron driver to Kconfig, Makefile [libata #pata-drivers] Trim trailing whitespace. [libata] Trim trailing whitespace. [libata] Add a bunch of PATA drivers. Rename libata-bmdma.c to libata-sff.c. libata: Grand renaming. Clean up drivers/ata/Kconfig a bit. [PATCH] CONFIG_PM=n slim: drivers/scsi/sata_sil* [PATCH] sata_via: Add SATA support for vt8237a [PATCH] libata: change path to libata in libata.tmpl [PATCH] libata: s/CONFIG_SCSI_SATA/CONFIG_[S]ATA/g in pci/quirks.c libata: Make sure drivers/ata is a separate Kconfig menu [libata] ata_piix: add missing kfree() ... commit a319a2773a13bab56a0d0b3744ba8703324313b5 tree f02c86acabd1031439fd422a167784007e84ebb1 parent e18fa700c9a31360bc8f193aa543b7ef7b39a06b parent 183798799216fad36c7219fe8d4d6dee6b8fa755 author Linus Torvalds Sun, 24 Sep 2006 10:15:13 -0700 committer Linus Torvalds Sun, 24 Sep 2006 10:15:13 -0700 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits) net/ieee80211: fix more crypto-related build breakage [PATCH] Spidernet: add ethtool -S (show statistics) [NET] GT96100: Delete bitrotting ethernet driver [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM [PATCH] Cirrus Logic ep93xx ethernet driver r8169: the MMIO region of the 8167 stands behin BAR#1 e1000, ixgb: Remove pointless wrappers [PATCH] Remove powerpc specific parts of 3c509 driver [PATCH] s2io: Switch to pci_get_device [PATCH] gt96100: move to pci_get_device API [PATCH] ehea: bugfix for register access functions [PATCH] e1000 disable device on PCI error drivers/net/phy/fixed: #if 0 some incomplete code drivers/net: const-ify ethtool_ops declarations [PATCH] ethtool: allow const ethtool_ops [PATCH] sky2: big endian [PATCH] sky2: fiber support [PATCH] sky2: tx pause bug fix drivers/net: Trim trailing whitespace [PATCH] ehea: IBM eHEA Ethernet Device Driver ... Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 that just happened to be next to unrelated changes in this update. commit e18fa700c9a31360bc8f193aa543b7ef7b39a06b tree 1006f53177341c614d4aeb6c96e2e8f3859b5f52 parent 4f5537de7c1531398e84e18a24f667e49cc94208 author Jeff Garzik Sun, 24 Sep 2006 11:13:19 -0400 committer Jeff Garzik Sun, 24 Sep 2006 11:13:19 -0400 Move several *_SUPER_MAGIC symbols to include/linux/magic.h. Signed-off-by: Jeff Garzik commit 23930fa1cebfea6f79881c588ccd1b0781e49e3f tree 36d29e3f83661c4f5f45b6f74ac0d5f9886867a8 parent 36b35a5be0e4b406acd816e2122d153e875105be parent 4f5537de7c1531398e84e18a24f667e49cc94208 author Jeff Garzik Sun, 24 Sep 2006 01:52:47 -0400 committer Jeff Garzik Sun, 24 Sep 2006 01:52:47 -0400 Merge branch 'master' into upstream commit 4f5537de7c1531398e84e18a24f667e49cc94208 tree fe598e6cda4715e0af97e62d6084c00a1bb42475 parent f164c42161d21368d9cd4d6d6efc158baa2618db parent 1b73c4bb063c4aa0cdc25425809bb87f65ee75af author Linus Torvalds Sat, 23 Sep 2006 20:41:53 -0700 committer Linus Torvalds Sat, 23 Sep 2006 20:41:53 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: [SCSI] scsi_transport_fc: fixup netlink arguments commit 1b73c4bb063c4aa0cdc25425809bb87f65ee75af tree f973fb22aeffa6891abc39ca71dab0123ea460fd parent 1aedf2ccc60fade26c46fae12e28664d0da3f199 author James Bottomley Sat, 23 Sep 2006 22:07:20 -0500 committer James Bottomley Sat, 23 Sep 2006 22:07:20 -0500 [SCSI] scsi_transport_fc: fixup netlink arguments nlmsg_multicast now takes an extra allocation flag, so add it to the use in the fibre channel transport class. Signed-off-by: James Bottomley commit f164c42161d21368d9cd4d6d6efc158baa2618db tree fd6b2043f847b3551b1a8e13ef6fedd8ff575bad parent 6973dddee264723720e18ad2be5a0a454c0f52d9 parent 1aedf2ccc60fade26c46fae12e28664d0da3f199 author Linus Torvalds Sat, 23 Sep 2006 19:53:30 -0700 committer Linus Torvalds Sat, 23 Sep 2006 19:53:30 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (94 commits) [SCSI] SPI transport class: misc DV fixes [SCSI] Switch some more scsi drivers to pci_get_device and refcounted pci structures [SCSI] eata_pio cleanup and PCI fix [SCSI] aacraid: README update [SCSI] aacraid: remove scsi_remove_device [SCSI] aacraid: merge rx and rkt code [SCSI] aacraid: expose physical devices [SCSI] aacraid: misc cleanup [SCSI] zfcp: update maintainers file [SCSI] zfcp: update maintainers file [SCSI] zfcp: fix: avoid removal of fsf reqs before qdio queues are down [SCSI] zfcp: introduce struct timer_list in struct zfcp_fsf_req [SCSI] zfcp: fix: use correct req_id in eh_abort_handler [SCSI] zfcp: create private slab caches to guarantee proper data alignment [SCSI] zfcp: remove zfcp_ccw_unregister function [SCSI] aic7xxx: pause sequencer before touching SBLKCTL [SCSI] aic7xxx: avoid checking SBLKCTL register for certain cards [SCSI] scsi_debug version 1.80 [SCSI] megaraid: Make megaraid_ioctl() check copy_to_user() return value [SCSI] aha152x: remove static host array ... commit 1aedf2ccc60fade26c46fae12e28664d0da3f199 tree d91083e3079f1ddb942a382ac2b5a7525570ad59 parent dfdc58ba354adb80d67c99f7be84f95a8e02e466 parent 1ab9dd0902df4f4ff56fbf672220549090ab28ba author James Bottomley Sat, 23 Sep 2006 21:03:52 -0500 committer James Bottomley Sat, 23 Sep 2006 21:03:52 -0500 Merge mulgrave-w:git/linux-2.6 Conflicts: include/linux/blkdev.h Trivial merge to incorporate tag prototypes. commit dfdc58ba354adb80d67c99f7be84f95a8e02e466 tree 9cbbe31f7d3d5be0029fd7c1a8eeaaa02e53853a parent a07f353701acae77e023f6270e8af353b37af7c4 author James Bottomley Wed, 20 Sep 2006 12:00:18 -0400 committer James Bottomley Sat, 23 Sep 2006 20:53:53 -0500 [SCSI] SPI transport class: misc DV fixes Key more of the domain validation settings off the inquiry data from the disk (in particular, don't try IU or DT unless the disk claims to support them. Also add a new dv_in_progress flag to prevent recursive DV. Signed-off-by: James Bottomley commit 6973dddee264723720e18ad2be5a0a454c0f52d9 tree ece3be91a32831a77fbac0ddcbe10f101ae03707 parent e17ba8f51f69782abc4575dd30848ba5eafaa797 author David S. Miller Sat, 23 Sep 2006 18:32:38 -0700 committer David S. Miller Sat, 23 Sep 2006 18:34:07 -0700 [SPARC64]: Update defconfig. Signed-off-by: David S. Miller commit e17ba8f51f69782abc4575dd30848ba5eafaa797 tree 534d829913806ce56e32f3d2e0404f3ab236bddf parent 1ab9dd0902df4f4ff56fbf672220549090ab28ba author David S. Miller Sat, 23 Sep 2006 18:31:42 -0700 committer David S. Miller Sat, 23 Sep 2006 18:34:06 -0700 [SPARC64]: Fix sched_clock() wrapping every ~17 seconds. Unfortunately, sparc64 doesn't have an easy way to do a "64 X 64 --> 128" bit multiply like PowerPC and IA64 do. We were doing a "64 X 64 --> 64" bit multiple which causes overflow very quickly with a 30-bit quotient shift. So use a quotientshift count of 10 instead of 30, just like x86 and ARM do. This also fixes the wrapping of printk timestamp values every ~17 seconds. Signed-off-by: David S. Miller commit a07f353701acae77e023f6270e8af353b37af7c4 tree 150bb61c6eb1891afaaa79047a399e3e66f561a2 parent 1a68d41a334a406d4bd35999f0be4d47f193e477 author Alan Cox Fri, 15 Sep 2006 15:34:32 +0100 committer James Bottomley Sat, 23 Sep 2006 20:32:52 -0500 [SCSI] Switch some more scsi drivers to pci_get_device and refcounted pci structures Signed-off-by: Alan Cox Signed-off-by: James Bottomley commit 1a68d41a334a406d4bd35999f0be4d47f193e477 tree 64913df8d3d751ca1e6acc8d0ab6b5eb204fda02 parent 2538363eb51a70948ed36bf3971a728268d10766 author Alan Cox Mon, 18 Sep 2006 19:18:34 +0100 committer James Bottomley Sat, 23 Sep 2006 20:28:19 -0500 [SCSI] eata_pio cleanup and PCI fix This started as a PCI reference fixup but to do that I need to build it, to build it I need to fix it and its full of 32bitisms and uglies. It has been resurrected, I'm not sure if this is a thank you for the work on the license stuff or punishment for some unknown misdeed however 8). I've also fixed a memory scribble in the init code. One oddity - the changes from HZ * to constants are deliberate. Whoever originally wrote the code (or cleaned it up) used HZ for a cycle timing loop even though is not HZ related. I've put it back to the counts used in the old days when the driver was most used. Signed-off-by: Alan Cox Signed-off-by: James Bottomley commit 2538363eb51a70948ed36bf3971a728268d10766 tree 09548ebacc4d796c02b45a3b20e5f963f6d8d330 parent ac5826ca91243272f97b3f01e80d71e3618f105f author Mark Haverkamp Tue, 19 Sep 2006 09:00:39 -0700 committer James Bottomley Sat, 23 Sep 2006 20:10:32 -0500 [SCSI] aacraid: README update Received from Mark Salyzyn: This patch to the driver's documentation adds a few new product entries, sorts the entries on OEM lines first for easy searching, followed by product id order to make it easier to compare against the open source pci list. The driver has 'family match' so is somewhat future proof, no code changes are required to recognize the new products. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit ac5826ca91243272f97b3f01e80d71e3618f105f tree fa68284e8e8afb3661b8441c610196b05503cbb8 parent 76a7f8fdc0c2381ae1ba55ef71837712223ecb3c author Mark Haverkamp Tue, 19 Sep 2006 09:00:18 -0700 committer James Bottomley Sat, 23 Sep 2006 20:10:10 -0500 [SCSI] aacraid: remove scsi_remove_device Received from Mark Salyzyn: Until the system is stabilized, I am suggesting the enclosed modification to prevent the driver from tickling the panic. Once sysfs and friends are stabilized, the patch may be backed out. We have yet to evaluate if we really want to relinquish existing Scsi Devices in any case, holding on to them as configuration of arrays comes and goes makes some sense as well. As a result, we have opted to pull the lines rather than comment them in legacy. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 76a7f8fdc0c2381ae1ba55ef71837712223ecb3c tree b6672be9f0c94d36841e56e6cf8a8636028268c5 parent 653ba58d55feb708c6f97e6f3e84901b3a03c9c0 author Mark Haverkamp Tue, 19 Sep 2006 09:00:02 -0700 committer James Bottomley Sat, 23 Sep 2006 20:09:42 -0500 [SCSI] aacraid: merge rx and rkt code Received from Mark Salyzyn: The only real difference between the rkt and rx platform modules is the offset of the message registers. This patch recognizes this similarity and simplifies the driver to reduce it's code footprint and to improve maintainability by reducing the code duplication. Visibly, the 'rkt.c' portion of this patch looks more complicated than it really is. View it as retaining the rkt-only specifics of the interface. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 653ba58d55feb708c6f97e6f3e84901b3a03c9c0 tree 833d63cf7fac90e693f0a2503e90d4a1f7362b9d parent 65101355450df2d935f8d56ac3abef279f28a0e2 author Mark Haverkamp Tue, 19 Sep 2006 08:59:43 -0700 committer James Bottomley Sat, 23 Sep 2006 20:09:03 -0500 [SCSI] aacraid: expose physical devices Received from Mark Salyzyn: I am placing this functionality into an insmod parameter. Normally the physical components are exported to sg, and are blocked from showing up in sd. Note that the pass-through I/O path via the driver through the Firmware to the physical disks is not an optimized path, the card is designed for Hardware RAID, elevator sorting and caching. This should not be used as a means for utilizing the aacraid based controllers as a generic scsi/SATA/SAS controller, performance should suck by a few percentage points, any RAID meta-data on the drives will confuse the controller about who owns the drives and there is a high risk of destroying content in both directions. Unreliable and for experimentation or strange controlled circumstances only. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 65101355450df2d935f8d56ac3abef279f28a0e2 tree deea581c99159e8d7f13d0f92c6972d9a5ab9b74 parent 9cbb889786548c1212fb77a9df8d09ed883a3480 author Mark Haverkamp Tue, 19 Sep 2006 08:59:23 -0700 committer James Bottomley Sat, 23 Sep 2006 20:08:26 -0500 [SCSI] aacraid: misc cleanup Received from Mark Salyzyn: Basically cleanup, nothing here will have an affect. Adjusting some error codes, removing superfluous definitions and code fragments. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 1ab9dd0902df4f4ff56fbf672220549090ab28ba tree 4fbb1a75f8bd0ff50e634eaf583db681774e501a parent f7425b160db500520c33f241edb066fc5c413f03 parent 08d3ad6a518051bfaefd5d6a8005e20c036996c3 author Linus Torvalds Sat, 23 Sep 2006 17:23:15 -0700 committer Linus Torvalds Sat, 23 Sep 2006 17:23:15 -0700 Merge git://git.infradead.org/mtd-2.6 * git://git.infradead.org/mtd-2.6: [MTD] Whitespace cleanup in SSFDC driver. [MTD] SSFDC translation layer minor cleanup [MTD] Fix dependencies with CONFIG_MTD=m commit f7425b160db500520c33f241edb066fc5c413f03 tree f1f50b935fa49a273f8df685b5fb2fcf6a0f07a6 parent 9f261e011340bcd22c1dd48b465153bd78caa8c8 parent f0063c4489a00ed5395378ef80a7edea4272f20b author Linus Torvalds Sat, 23 Sep 2006 17:21:12 -0700 committer Linus Torvalds Sat, 23 Sep 2006 17:21:12 -0700 Merge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa * 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa: (148 commits) [ALSA] intel8x0m - Free irq in suspend [ALSA] Move CONFIG_SND_AC97_POWER_SAVE to pci/Kconfig [ALSA] usb-audio: add mixer control names for the Aureon 5.1 MkII [ALSA] ES1938: remove duplicate field initialization [ALSA] usb-audio: increase number of packets per URB [ALSA] hda-codec - Fix headphone auto-toggle on sigmatel codec [ALSA] hda-intel - A slight cleanup of timeout check in azx_get_response() [ALSA] hda-codec - Fix mic input with STAC92xx codecs [ALSA] mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values [ALSA] gus: Use SEEK_{SET,CUR,END} instead of hardcoded values [ALSA] opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values [ALSA] sound core: Use SEEK_{SET,CUR,END} instead of hardcoded values [ALSA] hda-codec - Support multiple headphone pins [ALSA] hda_intel prefer 24bit instead of 20bit [ALSA] hda-codec - Add vendor ids for Motorola and Conexant [ALSA] hda-codec - Add device id for Motorola si3054-compatible codec [ALSA] Add missing compat ioctls for ALSA control API [ALSA] powermac - Fix Oops when conflicting with aoa driver [ALSA] aoa: add locking to tas codec [ALSA] hda-intel - Fix suspend/resume with MSI ... commit 9f261e011340bcd22c1dd48b465153bd78caa8c8 tree b1c266ea746a0e8591e6af781aef22854e652ff9 parent a4c12d6c5dde48c69464baf7c703e425ee511433 parent 026ed5c9185dcc4b2df92e98c3d61a01cea19cbf author Linus Torvalds Sat, 23 Sep 2006 16:58:40 -0700 committer Linus Torvalds Sat, 23 Sep 2006 16:58:40 -0700 Merge git://git.linux-nfs.org/pub/linux/nfs-2.6 * git://git.linux-nfs.org/pub/linux/nfs-2.6: (74 commits) NFS: unmark NFS direct I/O as experimental NFS: add comments clarifying the use of nfs_post_op_update() NFSv4: rpc_mkpipe creating socket inodes w/out sk buffers NFS: Use SEEK_END instead of hardcoded value NFSv4: When mounting with a port=0 argument, substitute port=2049 NFSv4: Poll more aggressively when handling NFS4ERR_DELAY NFSv4: Handle the condition NFS4ERR_FILE_OPEN NFSv4: Retry lease recovery if it failed during a synchronous operation. NFS: Don't invalidate the symlink we just stuffed into the cache NFS: Make read() return an ESTALE if the file has been deleted NFSv4: It's perfectly legal for clp to be NULL here.... NFS: nfs_lookup - don't hash dentry when optimising away the lookup SUNRPC: Fix Oops in pmap_getport_done SUNRPC: Add refcounting to the struct rpc_xprt SUNRPC: Clean up soft task error handling SUNRPC: Handle ENETUNREACH, EHOSTUNREACH and EHOSTDOWN socket errors SUNRPC: rpc_delay() should not clobber the rpc_task->tk_status Fix a referral error Oops NFS: NFS_ROOT should use the new rpc_create API NFS: Fix up compiler warnings on 64-bit platforms in client.c ... Manually resolved conflict in net/sunrpc/xprtsock.c commit a4c12d6c5dde48c69464baf7c703e425ee511433 tree 73c375e41a353e2da0461ff30d744bff73958b08 parent 73af07de3e32b9ac328c3d1417258bb98a9b0a9b parent 3b9f9a1c3903b64c38505f9fed3bb11e48dbc931 author Linus Torvalds Sat, 23 Sep 2006 16:49:31 -0700 committer Linus Torvalds Sat, 23 Sep 2006 16:49:31 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (353 commits) [IPV6] ADDRCONF: Mobile IPv6 Home Address support. [IPV6] ADDRCONF: Allow non-DAD'able addresses. [IPV6] NDISC: Fix is_router flag setting. [IPV6] ADDRCONF: Convert addrconf_lock to RCU. [IPV6] NDISC: Add proxy_ndp sysctl. [IPV6] NDISC: Set per-entry is_router flag in Proxy NA. [IPV6] NDISC: Avoid updating neighbor cache for proxied address in receiving NA. [IPV6]: Don't forward packets to proxied link-local address. [IPV6] NDISC: Handle NDP messages to proxied addresses. [NETFILTER]: PPTP conntrack: fix another GRE keymap leak [NETFILTER]: PPTP conntrack: fix GRE keymap leak [NETFILTER]: PPTP conntrack: fix PPTP_IN_CALL message types [NETFILTER]: PPTP conntrack: check call ID before changing state [NETFILTER]: PPTP conntrack: clean up debugging cruft [NETFILTER]: PPTP conntrack: consolidate header parsing [NETFILTER]: PPTP conntrack: consolidate header size checks [NETFILTER]: PPTP conntrack: simplify expectation handling [NETFILTER]: PPTP conntrack: remove unnecessary cid/pcid header pointers [NETFILTER]: PPTP conntrack: fix header definitions [NETFILTER]: PPTP conntrack: remove more dead code ... commit 73af07de3e32b9ac328c3d1417258bb98a9b0a9b tree 12897ed106e661d74886d753330c01d315366f53 parent 79da342c31ea839277060c1d2086aaf3b5cd85a4 author Herbert Xu Sun, 24 Sep 2006 09:30:19 +1000 committer Linus Torvalds Sat, 23 Sep 2006 16:48:46 -0700 [CRYPTO] hmac: Fix error truncation by unlikely() The error return values are truncated by unlikely so we need to save it first. Thanks to Kyle Moffett for spotting this. Signed-off-by: Herbert Xu Signed-off-by: Linus Torvalds commit 9cbb889786548c1212fb77a9df8d09ed883a3480 tree 5605d2f593421c5ca671a3de1cff9f9057e38a3a parent 99005e91eb2289c0ff0875257b5d18d9b7cc4eb7 author Swen Schillig Thu, 21 Sep 2006 16:29:31 +0200 committer James Bottomley Sat, 23 Sep 2006 18:04:58 -0500 [SCSI] zfcp: update maintainers file As Andreas stated he will not maintain the zfcp driver anymore. Instead I will take over the responsibility. Signed-off-by: Swen Schillig Signed-off-by: James Bottomley commit 99005e91eb2289c0ff0875257b5d18d9b7cc4eb7 tree 42665e73594b39c753b9a36001c100ea04614b5f parent 8165428610446ea9e6aa9dfa5485ab78e58cc9fc author Andreas Herrmann Mon, 18 Sep 2006 22:32:15 +0200 committer James Bottomley Sat, 23 Sep 2006 18:02:14 -0500 [SCSI] zfcp: update maintainers file Removed myself as maintainer of the s390 zfcp driver -- I will not maintain it any longer. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 8165428610446ea9e6aa9dfa5485ab78e58cc9fc tree c410ad0f802abd86461a04ea7a4f552447e3ed03 parent 2abbe866c8eb0296e3f5343bcf73e5371522a738 author Andreas Herrmann Mon, 18 Sep 2006 22:30:36 +0200 committer James Bottomley Sat, 23 Sep 2006 18:01:46 -0500 [SCSI] zfcp: fix: avoid removal of fsf reqs before qdio queues are down Fix the fix ... One of my previous fixes introduced removal of all fsf requests in zfcp's eh_host_reset_handler. But this must not happen before qdio queues are shut down. So, I revert the changes of zfcp_scsi_eh_host_reset_handler. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 2abbe866c8eb0296e3f5343bcf73e5371522a738 tree c839b12b43d07d538e32bcabec1fefa2106f384f parent 4eff4a36516d72e4f6ede901141214a7e05607e7 author Andreas Herrmann Mon, 18 Sep 2006 22:29:56 +0200 committer James Bottomley Sat, 23 Sep 2006 18:01:23 -0500 [SCSI] zfcp: introduce struct timer_list in struct zfcp_fsf_req This instance will be used whenever a timer is needed for a request by zfcp. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 4eff4a36516d72e4f6ede901141214a7e05607e7 tree b6a775ee5acbfdc91a349fc69580031e17276768 parent dd52e0eaf891cd85bf2ca057c15ed6bfd76db4e6 author Andreas Herrmann Mon, 18 Sep 2006 22:29:20 +0200 committer James Bottomley Sat, 23 Sep 2006 18:00:56 -0500 [SCSI] zfcp: fix: use correct req_id in eh_abort_handler zfcp's eh_abort_handler used the wrong request ID to identify the request to be aborted. The bug was introduced with commit fea9d6c7bcd8ff1d60ff74f27ba483b3820b18a3 for improved management of request IDs. The bug is fixed with this patch. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit dd52e0eaf891cd85bf2ca057c15ed6bfd76db4e6 tree dc457fe1b732716b715c05864ab02be767414cb4 parent d136205182b1ea4897da31e325a296f8831a6796 author Heiko Carstens Mon, 18 Sep 2006 22:28:49 +0200 committer James Bottomley Sat, 23 Sep 2006 17:54:24 -0500 [SCSI] zfcp: create private slab caches to guarantee proper data alignment Create private slab caches in order to guarantee proper alignment of data structures that get passed to hardware. Sidenote: with this patch slab cache debugging will finally work on s390 (at least no known problems left). Furthermore this patch does some minor cleanups: - store ptr for transport template in struct zfcp_data Signed-off-by: Heiko Carstens Signed-off-by: Andreas Herrmann Compile fix ups and Signed-off-by: James Bottomley commit d136205182b1ea4897da31e325a296f8831a6796 tree f437535162826c1fa04daebe45f7906b7d42466d parent cf2b5d3fcab77a9390293920ec5b49e67eced200 author Heiko Carstens Mon, 18 Sep 2006 22:28:04 +0200 committer James Bottomley Sat, 23 Sep 2006 17:49:52 -0500 [SCSI] zfcp: remove zfcp_ccw_unregister function Remove unused zfcp_ccw_unregister function (leftover from zfcp's module_exit era). Signed-off-by: Heiko Carstens Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit cf2b5d3fcab77a9390293920ec5b49e67eced200 tree 63f85032f1a5a3423997880d3c9033f1928e90e1 parent 3e3c60e3a8c7013d55768aa7256bb5a7f66b0bb4 author Doug Ledford Sun, 17 Sep 2006 07:38:15 +0200 committer James Bottomley Sat, 23 Sep 2006 17:48:11 -0500 [SCSI] aic7xxx: pause sequencer before touching SBLKCTL Some cards need to pause the sequencer before the SBLKCTL register is touched. This fixes a PCI related oops seen on powerpc macs with this card caused by trying to ascertain the bus signalling before beginning domain validation. Signed-off-by: James Bottomley commit 3e3c60e3a8c7013d55768aa7256bb5a7f66b0bb4 tree fdb4539ec39d15434f74e63e139fb8de3a27e4dc parent 231839102b54512ced7d3ee7fc9b8bcf5e3b583b author James Bottomley Wed, 06 Sep 2006 09:04:40 -0500 committer James Bottomley Sat, 23 Sep 2006 17:39:34 -0500 [SCSI] aic7xxx: avoid checking SBLKCTL register for certain cards For cards that don't support LVD, checking the SBLKCTL register to determine the bus singalling doesn't work. So, check that the card supports LVD first (AHC_ULTRA2) before checking the register. Signed-off-by: James Bottomley commit 231839102b54512ced7d3ee7fc9b8bcf5e3b583b tree 0136daa29d7f67c17da2dc02780a6dadcd4fb615 parent c9802cd9574a80444e689c7525627b40d7dc3a06 author Douglas Gilbert Sat, 16 Sep 2006 20:30:47 -0400 committer James Bottomley Sat, 23 Sep 2006 17:37:44 -0500 [SCSI] scsi_debug version 1.80 See http://www.torque.net/sg/sdebug26.html for more information on the scsi_debug driver. ChangeLog: - add 'vpd_use_hostno' parameter to allow simulated hosts to see the same set of targets (and luns). For testing multipath software. - add 'fake_rw' parameter to ignore the data in READ and WRITE commands - add support for log subpages (new in SPC-4) - yield appropriate block descriptor for MODE SENSE commands (only for pdt=0 (i.e. disks)) - REQUEST SENSE response no longer shows the stopped power condition (SAT changed to agree with SPC-3) Signed-off-by: Douglas Gilbert Signed-off-by: James Bottomley commit c9802cd9574a80444e689c7525627b40d7dc3a06 tree 5954e2ac7e97023b51d36127963a1e9262fbcfe0 parent 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a parent 2d2f8d59b14bec6c745e219a350ac51d9e00673f author James Bottomley Sat, 23 Sep 2006 15:33:43 -0500 committer James Bottomley Sat, 23 Sep 2006 15:33:43 -0500 Merge mulgrave-w:git/scsi-misc-2.6 Conflicts: drivers/scsi/iscsi_tcp.c drivers/scsi/iscsi_tcp.h Pretty horrible merge between crypto hash consolidation and crypto_digest_...->crypto_hash_... conversion Signed-off-by: James Bottomley commit 79da342c31ea839277060c1d2086aaf3b5cd85a4 tree 3d4accf576a5a063afbae009678917021bafd3fb parent 4ac493b1d5bfd332f3dee64baaa620961bab6cdc author Al Viro Sat, 23 Sep 2006 18:21:35 +0100 committer Linus Torvalds Sat, 23 Sep 2006 11:34:43 -0700 [PATCH] more get_property() fallout Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 4ac493b1d5bfd332f3dee64baaa620961bab6cdc tree 276fcdaaad3efc3bbe259a48b2308865b9aefb63 parent 2efc80cb8ddc341d81de996920e3b2ad8a12b1f7 author Al Viro Sat, 23 Sep 2006 18:20:56 +0100 committer Linus Torvalds Sat, 23 Sep 2006 11:34:43 -0700 [PATCH] briq_panel: read() and write() get __user pointers, damnit annotated, fixed a roothole in ->write(). Dereferencing user-supplied pointer is a Bad Idea(tm)... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 2efc80cb8ddc341d81de996920e3b2ad8a12b1f7 tree 029c820b78fd8eeaf9e378c79cb818382f93a781 parent 13b5aeccc4350e5069c723e8f9becd7208ee02f2 author Al Viro Sat, 23 Sep 2006 16:45:55 +0100 committer Linus Torvalds Sat, 23 Sep 2006 11:34:43 -0700 [PATCH] #elif that should've been #elif defined #elif CONFIG_44x in ibm4xx.h should've been #elif defined(CONFIG_44x) Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 13b5aeccc4350e5069c723e8f9becd7208ee02f2 tree 84decf7505e98d2e1d7a0935219f8b5e006c04d7 parent d7b2004528a967f2ba0bf31b1eb0da6a876960e6 author Al Viro Sat, 23 Sep 2006 16:44:58 +0100 committer Linus Torvalds Sat, 23 Sep 2006 11:34:43 -0700 [PATCH] more fallout from get_property returning pointer to const Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit d7b2004528a967f2ba0bf31b1eb0da6a876960e6 tree e527ce665b6d3d4b346e74fd5797113e0f3fd8a4 parent 5f77043f0f7851aa6139fb9a8b297497b540b397 author Al Viro Sat, 23 Sep 2006 16:44:16 +0100 committer Linus Torvalds Sat, 23 Sep 2006 11:34:43 -0700 [PATCH] missing includes from infiniband merge indirect chains of includes are arch-specific and can't be relied upon... (hell, even attempt to build it for itanic would trigger vmalloc.h ones; err.h triggers on e.g. alpha). Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 5f77043f0f7851aa6139fb9a8b297497b540b397 tree 2c9ee5c2c6219cce5fdd30ba41d35eaab6763595 parent 4c8bd7eeee4c8f157fb61fb64b57500990b42e0e author Herbert Xu Sun, 24 Sep 2006 00:40:41 +1000 committer Linus Torvalds Sat, 23 Sep 2006 11:34:43 -0700 [CRYPTO] hmac: Fix hmac_init update call The crypto_hash_update call in hmac_init gave the number 1 instead of the length of the sg list in bytes. This is a missed conversion from the digest => hash change. As tcrypt only tests crypto_hash_digest it didn't catch this. Signed-off-by: Herbert Xu Signed-off-by: Linus Torvalds commit 4c8bd7eeee4c8f157fb61fb64b57500990b42e0e tree 6d410adb72e69270c348a09ece9f5eb3a297af8a parent 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a author David Miller Fri, 22 Sep 2006 22:31:36 -0700 committer Linus Torvalds Sat, 23 Sep 2006 11:34:42 -0700 [KERNEL] Do not truncate to 'int' in ALIGN() macro. Signed-off-by: David S. Miller Signed-off-by: Linus Torvalds commit 2d2f8d59b14bec6c745e219a350ac51d9e00673f tree 0e40289425e854c0b7f6e899600f2abd9a6df6bd parent 5fcda4224529c4e550c917668d5e96c1d3e7039b author Jesper Juhl Fri, 15 Sep 2006 14:43:11 +0200 committer James Bottomley Sat, 23 Sep 2006 11:53:09 -0500 [SCSI] megaraid: Make megaraid_ioctl() check copy_to_user() return value Check copy_to_user() return value in drivers/scsi/megaraid.c::megadev_ioctl() This gets rid of this little warning: drivers/scsi/megaraid.c:3661: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result Signed-off-by: Jesper Juhl Acked-by: "Ju, Seokmann" Signed-off-by: James Bottomley commit 5fcda4224529c4e550c917668d5e96c1d3e7039b tree 94e446cf1366c76daeef2c0d92000f6e812a0ef4 parent 10d19ae5e1715c27db7009df6d59179774e7b8a1 author James Bottomley Thu, 14 Sep 2006 17:04:58 -0500 committer James Bottomley Sat, 23 Sep 2006 11:51:57 -0500 [SCSI] aha152x: remove static host array Fix this driver not to use a static two element host array instead use a list. This should fix panic on multiple eject reinsert of the pcmcia version of this device. Signed-off-by: James Bottomley commit 10d19ae5e1715c27db7009df6d59179774e7b8a1 tree 02ef755c802efc3823c87717aee78174d61f4f58 parent f2d719c65ad8f10afa7bec11315faa7badf4ecb9 author malahal@us.ibm.com Thu, 07 Sep 2006 15:12:42 -0700 committer James Bottomley Sat, 23 Sep 2006 11:47:29 -0500 [SCSI] aic94xx: Fix for a typo in aic94xx_init() Signed-off-by: Malahal Naineni Signed-off-by: James Bottomley commit f2d719c65ad8f10afa7bec11315faa7badf4ecb9 tree 79b3c96a313d24e40a9a0856a739e485e4a01bb4 parent 65396410af63db90d6428c678ff84aa652c3c1ec author Alexis Bruemmer Thu, 07 Sep 2006 14:32:16 -0700 committer James Bottomley Sat, 23 Sep 2006 11:47:00 -0500 [SCSI] aic94xx: Removes Reliance on FLASH Manufacture IDs This patch removes the reliance on FLASH Manufacture IDs for validation. Signed-off-by: Alexis Bruemmer Signed-off-by: James Bottomley commit 08d3ad6a518051bfaefd5d6a8005e20c036996c3 tree d1bdfe06ce6705d0d62d3ce0b005c3ed2cbcb550 parent 9a05eded5d17a425b9d9ed9dd80f518429dde4e8 author David Woodhouse Sat, 23 Sep 2006 16:20:48 +0100 committer David Woodhouse Sat, 23 Sep 2006 16:20:48 +0100 [MTD] Whitespace cleanup in SSFDC driver. Says akpm: ' - search for "( " and " )", fix.' Signed-off-by: David Woodhouse commit 9a05eded5d17a425b9d9ed9dd80f518429dde4e8 tree c89aa151f179eb26abf776d0804f85833f144554 parent 892e4fba1cb5cdc70f3acc65e024e541c0b2d559 author David Woodhouse Sat, 23 Sep 2006 10:56:24 +0100 committer David Woodhouse Sat, 23 Sep 2006 10:56:24 +0100 [MTD] SSFDC translation layer minor cleanup Don't include . Don't say 'MB' where you mean 'MiB'. Don't allocate 512 bytes on the stack. Signed-off-by: David Woodhouse commit 892e4fba1cb5cdc70f3acc65e024e541c0b2d559 tree 0afa420b54842f9ac0fb048bcc0c316f3560c2b7 parent 734a56285dbeedc6cc10aef6f700eeab7c65ea9f author David Woodhouse Sat, 23 Sep 2006 10:24:36 +0100 committer David Woodhouse Sat, 23 Sep 2006 10:24:36 +0100 [MTD] Fix dependencies with CONFIG_MTD=m CMDLINEPARTS shouldn't be selectable, and neither should SSFDC, which can be a tristate anyway. Signed-off-by: David Woodhouse commit f0063c4489a00ed5395378ef80a7edea4272f20b tree 7317be5ca915b882580474ff7f36631271356df7 parent 8b0c4149e82170ebc44b96e9ed96545f8ebd7c81 author Takashi Iwai Fri, 22 Sep 2006 15:30:42 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:40 +0200 [ALSA] intel8x0m - Free irq in suspend Free the irq handler in suspend and reacquire in resume as well as intel8x0 audio driver does. Some devices may change the irq line dynamically during suspend/resume. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 8b0c4149e82170ebc44b96e9ed96545f8ebd7c81 tree d379e6b77fc4c808c959a8498ac091f1218de673 parent fef8a0c03daa1aaf3f83e45da2b14674c073a9f5 author Takashi Iwai Fri, 22 Sep 2006 15:27:55 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:36 +0200 [ALSA] Move CONFIG_SND_AC97_POWER_SAVE to pci/Kconfig Moved the entry of CONFIG_SND_AC97_POWER_SAVE from drivers/Kconfig to more appropriate place, pci/Kconfig. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit fef8a0c03daa1aaf3f83e45da2b14674c073a9f5 tree 0deb792d70f66fe1ce550f1aab0749649c1a4cb5 parent dbf91dd47d90e1d91d5daf37ca30728f4e11c5e3 author Clemens Ladisch Fri, 22 Sep 2006 11:00:51 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:30 +0200 [ALSA] usb-audio: add mixer control names for the Aureon 5.1 MkII Add a mixer name map for the TerraTec Aureon 5.1 MkII USB. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit dbf91dd47d90e1d91d5daf37ca30728f4e11c5e3 tree 9a018868f6500705f8d384ac0ff2a6d69814e3c6 parent 92b9ac78f934616d08c72747607bfb0fa51ee52d author Clemens Ladisch Fri, 22 Sep 2006 10:58:40 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:21 +0200 [ALSA] ES1938: remove duplicate field initialization Remove the duplicate and inconsistent initialization of the kcontrol access field. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit 92b9ac78f934616d08c72747607bfb0fa51ee52d tree decb3ba04de5cf83a1a2ab819e793dc8c2a533cf parent eb995a8c82dba4a8e027c99ac5001fbc287a115c author Clemens Ladisch Fri, 22 Sep 2006 10:57:36 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:17 +0200 [ALSA] usb-audio: increase number of packets per URB To decrease the USB interrupts rate, increase both the default and the maximum number of packets per URB. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit eb995a8c82dba4a8e027c99ac5001fbc287a115c tree ee0bc14b9fd86361661db92f42aaa974d883fc80 parent 5c79b1f887f8edcd399baa164b66a1c08566c994 author Takashi Iwai Thu, 21 Sep 2006 14:28:21 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:12 +0200 [ALSA] hda-codec - Fix headphone auto-toggle on sigmatel codec Fix/optimize the headphone auto-toggle function on sigmatel codecs. The headphone pins are kept as output. When headhpones are unplugged, you cannot hear anyway ;) Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 5c79b1f887f8edcd399baa164b66a1c08566c994 tree e47d2cc5e2bea91c56d001833d960edbdf1f9371 parent 314634bc81325dcfeb31ed138647d428b1f26cbf author Takashi Iwai Thu, 21 Sep 2006 13:34:13 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:06 +0200 [ALSA] hda-intel - A slight cleanup of timeout check in azx_get_response() A slight cleanup of timeout check in azx_get_response() to check jiffies for HZ-independent timeout. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 314634bc81325dcfeb31ed138647d428b1f26cbf tree 9a230e872a69e13d026eae4cb247b1447b14c88f parent 7ffffecc7c4df08ad89723ca32d936ff09b5b3ff author Takashi Iwai Thu, 21 Sep 2006 11:56:18 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:48:01 +0200 [ALSA] hda-codec - Fix mic input with STAC92xx codecs Fixed mic input with STAC92xx codecs. The mic pin was sometimes set to OUTPUT by the headphone jack detection. Also, try to assign a secondary mic as front-mic (or vice versa) in the auto-detection if possible. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 7ffffecc7c4df08ad89723ca32d936ff09b5b3ff tree 430d690b22502e5731b2d4035e6c5eb1fdd4345f parent d158da81ee9a1fa70d980f58b0f143fa873ca9ed author Josef 'Jeff' Sipek Thu, 21 Sep 2006 11:33:42 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:56 +0200 [ALSA] mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit d158da81ee9a1fa70d980f58b0f143fa873ca9ed tree 6c255769165ac98acf6151f6e118cde57e02328a parent dd47a33806bfe93c08b071c4d26a2390cbbc9e65 author Josef 'Jeff' Sipek Thu, 21 Sep 2006 11:33:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:52 +0200 [ALSA] gus: Use SEEK_{SET,CUR,END} instead of hardcoded values gus: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit dd47a33806bfe93c08b071c4d26a2390cbbc9e65 tree 3bdc72c997302c222105838945d91ad921807889 parent e6f8f108a19638d7c6535ab393a228ed9d4804a6 author Josef 'Jeff' Sipek Thu, 21 Sep 2006 11:32:43 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:47 +0200 [ALSA] opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit e6f8f108a19638d7c6535ab393a228ed9d4804a6 tree f8838be1d503e8b6b3edff009bd3e572ecb72da7 parent eb06ed8f4c2440558ebf465e8baeac6367d90201 author Josef 'Jeff' Sipek Thu, 21 Sep 2006 11:31:58 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:43 +0200 [ALSA] sound core: Use SEEK_{SET,CUR,END} instead of hardcoded values sound core: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit eb06ed8f4c2440558ebf465e8baeac6367d90201 tree 60501d5c4e918f96d26033b95373f4368ca929e2 parent 33ef765131bcf82bc5fca3f25d8313fa4df93ce0 author Takashi Iwai Wed, 20 Sep 2006 17:10:27 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:38 +0200 [ALSA] hda-codec - Support multiple headphone pins Some machines have multiple headpohne pins (usually on the lpatop and on the docking station) while the current hda-codec driver assumes a single headphone pin. Now it supports multiple hp pins (at least for detection). The sigmatel 92xx code supports this new multiple hp pins. It detects all hp pins for auto-muting, too. Also, the driver checks speaker pins in addition. In some cases, all line-out, speaker and hp-pins coexist. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 33ef765131bcf82bc5fca3f25d8313fa4df93ce0 tree 0962faa8831af98a9b381b12345e3b5d83e0d691 parent a922625126cc9bf593d801879a965b9f0eae6958 author Nicolas Graziano Tue, 19 Sep 2006 14:23:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:33 +0200 [ALSA] hda_intel prefer 24bit instead of 20bit If I understand the hda_intel code, for format > 20bit it only advertise the SNDRV_PCM_FMTBIT_S32_LE format and play it at 32 bit, 20 bit or 24 bit. But if the 20bit and 24bit are available, actually it prefer the 20bit format. This path is to prefer the 24bit format instead of 20bit. Signed-off-by: Nicolas Graziano Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit a922625126cc9bf593d801879a965b9f0eae6958 tree 52e0e51344bfea3e5fe07bc14a4914d66b9db28c parent 5720fddd62367bb44335ec83f6371ce91e9ead12 author Takashi Iwai Sun, 17 Sep 2006 22:05:54 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:28 +0200 [ALSA] hda-codec - Add vendor ids for Motorola and Conexant Added string entries for Motorola and Conexant vendor ids. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 5720fddd62367bb44335ec83f6371ce91e9ead12 tree 084c29ba2dd7980997d7a3b29f81e2547ff0a6fd parent 2b1181ed83ee8b0afbf9ba3e4f789f00375b2a17 author Takashi Iwai Sun, 17 Sep 2006 22:04:17 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:24 +0200 [ALSA] hda-codec - Add device id for Motorola si3054-compatible codec Added the device id for Motorola si3054-compatible modem codec on a Gateway laptop. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2b1181ed83ee8b0afbf9ba3e4f789f00375b2a17 tree 3248cc6cc9315fc4a5e48bd7f77ae8f005538135 parent 783eaf4671a4f5a95102aedb5a45e1f8adab945c author Takashi Iwai Sun, 17 Sep 2006 22:02:22 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:19 +0200 [ALSA] Add missing compat ioctls for ALSA control API Added the missing 32bit-compat ioctl entries for ALSA control API (espcially for recent additions of TLV stuff). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 783eaf4671a4f5a95102aedb5a45e1f8adab945c tree 678162376dee56761dfba7913d1c85aa62005bbe parent 307192065c55dbc70159037c1e3006a9f761192b author Takashi Iwai Sun, 17 Sep 2006 22:00:51 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:15 +0200 [ALSA] powermac - Fix Oops when conflicting with aoa driver Fixed Oops when conflictin with aoa driver due to lack of i2c initialization. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 307192065c55dbc70159037c1e3006a9f761192b tree 462ed687281672986f54af5ac1d7abc2f2b8c999 parent 43001c9515cf87935c50e84b3e27b1f3b3776b5d author Johannes Berg Sun, 17 Sep 2006 21:59:25 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:06 +0200 [ALSA] aoa: add locking to tas codec Looks like I completely forgot to do this. This patch adds locking to the tas codec so two userspace programs can't hit the controls at the same time. Tested on my powerbook, but I obviously can't find any problems even without it since it doesn't do SMP. Signed-off-by: Johannes Berg Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 43001c9515cf87935c50e84b3e27b1f3b3776b5d tree 295e87add08bfec4a2a4fada76fd1cac7ac0123b parent 854b66e44260320c21ebe4b8a18e189f2e45b5be author Takashi Iwai Fri, 08 Sep 2006 12:30:03 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:47:00 +0200 [ALSA] hda-intel - Fix suspend/resume with MSI Fixed suspend/resume with MSI enablement. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 854b66e44260320c21ebe4b8a18e189f2e45b5be tree 2e9636686f69d9f7ab659d3afa1b7495ef6de7d8 parent 8f88820ee49359ea33af42845456ce9dbf54d39a author Takashi Iwai Fri, 08 Sep 2006 12:27:38 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:55 +0200 [ALSA] ak4xxx - Remove bogus IPGA controls Remove IPGA volume controls and merge the IPGA range to ADC volume controls. These two volumes are not really independent but connected simply in different ranges 0-0x7f and 0x80-max. It doesn't make sense to provide two controls. Since both 0x7f and 0x80 specify 0dB, a hack is needed for IPGA range to skip 0x80 (increment one) for such controls. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 8f88820ee49359ea33af42845456ce9dbf54d39a tree 8df83d4eb69a76ecbdb2d5d961c7d638b3fdf5ca parent e08a007d1041e0bc3df6b855043d8efde91851aa author Liam Girdwood Thu, 07 Sep 2006 18:07:46 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:51 +0200 [ALSA] Fix WM9705 AC97 patch build error This patch fixes a build error (introduced by me) in ac97_patch.c wrt WM9705 touchscreen. o Removed spurious '3D' from character after |= operation (0x3D is ASCII for '=') Signed-off-by: Liam Girdwood Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit e08a007d1041e0bc3df6b855043d8efde91851aa tree ace6ac98dec5bfc7a658df9aa6d0c78393b8598b parent dafbbb1fdbf103b24d0f7aa645625b6bd558c896 author Takashi Iwai Thu, 07 Sep 2006 17:52:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:46 +0200 [ALSA] hda-codec - Fix SPDIF device number of ALC codecs Assign the SPDIF always to the secondary device (dev#1) to keep the same configuration. Move the optional capture device to the third device (dev#2). hda_intel now just ignores the NULL entries in the pcm arrays from codecs. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit dafbbb1fdbf103b24d0f7aa645625b6bd558c896 tree 889cc11043b4f3edd06a1aa8a0089aa06249eb36 parent cd417d4fe89638a2848980cb389b9781d4913173 author Takashi Iwai Thu, 07 Sep 2006 12:40:00 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:42 +0200 [ALSA] hda-intel - Fix pci_disable_msi() call Fix the order to call pci_disable_msi() to be after free_irq(). (Otherwise pci_disable_msi() bugs you.) Also, added a description of disable_msi option to documentation. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit cd417d4fe89638a2848980cb389b9781d4913173 tree 5b8807717f6079c6dd50a18ac0ed315353aae10d parent 9d19f48cfe2570562c2c6226780a7ca627b0f1f1 author Takashi Iwai Wed, 06 Sep 2006 16:03:11 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:37 +0200 [ALSA] hda-codec - Add support for LG LW25 laptop Added the support for LG LW25 laptop with ALC880 codec. It's the same codec model as LG LW20 (model=lg-lw). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 9d19f48cfe2570562c2c6226780a7ca627b0f1f1 tree dffe11da7daa0b27225c08badee58628923d961b parent a7da6ce564a80952d9c0b210deca5a8cd3474a31 author Takashi Iwai Wed, 06 Sep 2006 14:27:46 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:32 +0200 [ALSA] Add pcm_class attribute to PCM sysfs entry This patch adds a new attribute, pcm_class, to each PCM sysfs entry. It's useful to detect what kind of PCM stream is, for example, HAL can check whether it's a modem or not. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit a7da6ce564a80952d9c0b210deca5a8cd3474a31 tree e0520ce4255be7a8692e39241e086334a232b6a8 parent 160ea0dc6b86e2c0c4d325c06bf402bfdde7c1c7 author Takashi Iwai Wed, 06 Sep 2006 14:03:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:27 +0200 [ALSA] hda-codec - Add independent headphone volume control This patch addes the support of the independent 'Headphone' volume control to the generic codec parser. Some codecs (e.g. Conexant) have separate connections to the headphone and the independent amp adjustment is needed. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 160ea0dc6b86e2c0c4d325c06bf402bfdde7c1c7 tree e87db8537135b9e9ab21c0f57c0796f531845802 parent 0b59397268ed418e139db3806f7956ffcb18b33d author Richard Fish Wed, 06 Sep 2006 13:58:25 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:22 +0200 [ALSA] [snd-intel-hda] enable center/LFE speaker on some laptops This patch adds LFE mixer controls for laptops with a stac9200 and a mono speaker pin with amplifier. Signed-off-by: Richard Fish Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 0b59397268ed418e139db3806f7956ffcb18b33d tree 4f5a0a91be5e0bfbfe244b755be6820d66dca3a0 parent 55a29af5ed5d914f017e6a7c613a4d7cc34f82d9 author Takashi Iwai Wed, 06 Sep 2006 13:35:27 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:18 +0200 [ALSA] Add dB information to es1938 driver Added the dB information to ESS Solo (es1938) driver. The new compound dB range TLVs are used for non-linear native volume controls. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 55a29af5ed5d914f017e6a7c613a4d7cc34f82d9 tree 74f44500e741a0ad0cbfd5bb182b3d98da107401 parent 311e70a4741c736795da082da7290164d9cf3726 author Takashi Iwai Wed, 06 Sep 2006 12:15:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:11 +0200 [ALSA] Add definition of TLV dB range compound Added the definition of TLV dB range compound. It contains one or more dB-range or linear-volume TLV entries with min/max ranges. Used for volume controls with non-linear curves. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 311e70a4741c736795da082da7290164d9cf3726 tree 17e746d945ad674fc20841f10566554958d47bd8 parent ea543f1ee61bbfdf6cac4b79d66c7840d5b00037 author Takashi Iwai Wed, 06 Sep 2006 12:13:37 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:46:07 +0200 [ALSA] hdsp - Fix auto-updating of firmware Fixed the auto-updating of firmware if the breakout box was switched off/on. The firmware binary itself was already cached but it wasn't loaded properly. Also, request_firmware() is issued if the box was with firmware at module loading time but later it's erased. The auto-update is triggered at each PCM action (open, prepare, etc) and at opening proc files. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit ea543f1ee61bbfdf6cac4b79d66c7840d5b00037 tree 9afd4cc03826e32f6abd2145c77c7e9d8311a183 parent 679e28eef835cbd30de78c2f80bf488cba1b7e40 author Krzysztof Helt Tue, 05 Sep 2006 20:25:05 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:57 +0200 [ALSA] sparc dbri: SMP fixes The dbri driver hangs when used in kernel compiled with SMP support due to inproper locking. The patch fixes it. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 679e28eef835cbd30de78c2f80bf488cba1b7e40 tree 99eccfb2fd4e89bea16d3c7bcf93b4a982fafa50 parent bd25b7cae1e763b292f359170e16bccd01c7ee5c author Ville Syrjala Mon, 04 Sep 2006 12:28:51 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:53 +0200 [ALSA] es1968: Fix hw volume Fix maestro2 hardware volume control. Tested on a Dell Inspiron 7000. Signed-off-by: Ville Syrjala Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit bd25b7cae1e763b292f359170e16bccd01c7ee5c tree ede5771f67361bb6d2e139c25e4e79d66fed4728 parent 93ed150375187ae7917ed1e3b9b830b9d4065bad author Ville Syrjala Mon, 04 Sep 2006 12:28:24 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:48 +0200 [ALSA] ac97: Fix AD1819 volume range AD1819 volume registers can hold extra bits which do not affect the actual volume. Add a res_table to the codec patch to fix the problem. PCM, line and mic volume were tested. Signed-off-by: Ville Syrjala Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 93ed150375187ae7917ed1e3b9b830b9d4065bad tree 1b33472374a20512bec7cb22733229ae5b88a8fc parent 35a49934a7180fd80fb0bb3777d125dd939df50e author Tobin Davis Fri, 01 Sep 2006 21:03:12 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:43 +0200 [ALSA] hda-codec - Add 5 stack audio support for Intel 965 systems This patch renames the 965_2112 function ids to 965_3ST, and adds functional support for 965_5ST (5 stack 7.1 surround). Signed-off-by: Tobin Davis Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 35a49934a7180fd80fb0bb3777d125dd939df50e tree d52c57ca6531555182d3082ebb509f5f3840a1d4 parent 2fd53a7e9b1392f9cc3002a24f3c13b2796e70c3 author Takashi Iwai Fri, 01 Sep 2006 17:09:44 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:37 +0200 [ALSA] Add dB scale information to mixart driver Added the dB scale information to mixart driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2fd53a7e9b1392f9cc3002a24f3c13b2796e70c3 tree 867ee4c5928d1f6305822740291fbc7c44607bca parent 927fc866025857c109219d4ed62d8c3cbc02713a author Andreas Schwab Fri, 01 Sep 2006 17:15:36 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:33 +0200 [ALSA] [PPC,SOUND] Fix audio gpio state detection When booting with line out or headphone plugged, you won't hear anything. The problem is that after reset all channels are muted, but the actual value of the gpio port doesn't exactly match the active_val settings as expected by check_audio_gpio. For example, the line_mute port is set to 7, but check_audio_gpio would expect 0xd or 0xf, thus its return value indicates that it is not active, even though it is. AFAICS only looking at the low bit is enough to determine whether the port is active. Signed-off-by: Andreas Schwab Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 927fc866025857c109219d4ed62d8c3cbc02713a tree 3f4dce2e6c269f854eb288873ad9d588e1df3c82 parent 929861c669a443cf667ec0d80ac73a567ed4543c author Pavel Machek Thu, 31 Aug 2006 17:03:43 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:28 +0200 [ALSA] sound/pci/hda/intel_hda: small cleanups Cleanup whitespace. Signed-off-by: Pavel Machek Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 929861c669a443cf667ec0d80ac73a567ed4543c tree 240aa4d84868c3c107cd33d7e52c09903cb0ac0c parent f640c3205aca4fe231beccc9e719c946cf3fee7a author Takashi Iwai Thu, 31 Aug 2006 16:55:40 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:22 +0200 [ALSA] hda-intel - Remove volatile Removed volatile from the position buffer pointer. Also, use synchronize_irq() instead of unreliable msleep(1) in the driver remove callback. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit f640c3205aca4fe231beccc9e719c946cf3fee7a tree 4fd4b1db6e426e2640be9eaecab71f14ab27d1cc parent 680ef792a1afdb3bf38e4a0296cce996a5b95317 author Takashi Iwai Wed, 30 Aug 2006 16:57:37 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:18 +0200 [ALSA] Add dB scale information to ice1724 driver Added the dB scale information to each board support code of ice1724 driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 680ef792a1afdb3bf38e4a0296cce996a5b95317 tree 6259caf21efb03a5f528187413871467d75e3bda parent 723b2b0d36fa7cea81a962af2d40d88520d5a5f1 author Takashi Iwai Wed, 30 Aug 2006 16:56:30 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:13 +0200 [ALSA] Add dB scale information to ice1712 driver Added the dB scale information for native digital volumes of ice1712 driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 723b2b0d36fa7cea81a962af2d40d88520d5a5f1 tree 0020b109e0792aba552c99cff7b6576b81a5c2b6 parent d0ae48471570c680333cbe28c143bbab887a4ec2 author Takashi Iwai Wed, 30 Aug 2006 16:49:54 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:08 +0200 [ALSA] Clean up and add TLV support to AK4xxx i2c driver - Clean up the code in AK4xxx-ADDA i2c code. - Fix capture gain controls for AK5365 - Changed the static table for DAC/ADC mixer labels to use structs - Implemented TLV entries for each AK codec The volumes in AK4524, AK4528 and AK5365 are corrected with a table to be suitable for dB conversion. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit d0ae48471570c680333cbe28c143bbab887a4ec2 tree 9de58315e99dc59d7f0d66e708777c7422e504cb parent a79eee8d3d8a80c37d235e1181d67c3705c7bbfe author Takashi Iwai Tue, 29 Aug 2006 18:15:15 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:45:03 +0200 [ALSA] Add missing dB scale information to vxpocket driver Added the missing dB scale information for Mic volume to vxpocket driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit a79eee8d3d8a80c37d235e1181d67c3705c7bbfe tree 1a0618e6aba24c6ca10d5822bc08c03219d794ee parent 9f458e7fb5b92385d348fb6039ba7211a6d6ba6e author Luke Ross Tue, 29 Aug 2006 10:46:32 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:58 +0200 [ALSA] Support for non-standard rates in USB audio driver There's at least one USB audio chipset out there which supports only one non-standard rate (ID 0e6a:0310 supports 46875Hz). There's a few other patches for this card which are unsatisfactory because they attempt to map this rate to 44.1k leading to sound distortion. The patch below uses SNDRV_PCM_RATE_KNOT to properly support the non-standard rates where they are available. Signed-off-by: Luke Ross Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 9f458e7fb5b92385d348fb6039ba7211a6d6ba6e tree 9ac4a4857f3deb6ac8bd4eccf468f353a4a3be9c parent 33925186d843e7004288cd3d87843c5a1dbf55a4 author Andrey Liakhovets Mon, 28 Aug 2006 16:52:41 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:53 +0200 [ALSA] ac97 - Fix VIA EPIA sound problem Fix the bad sound quality on VIA EPIA system using VIA VT1617A (ALSA bug#2381). Signed-off-by: Andrey Liakhovets Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 33925186d843e7004288cd3d87843c5a1dbf55a4 tree 56f7eaa2106ef7fd46c7eea7e9b4a9d8ff4fa656 parent 063a40d9111ce7558f2fdfa4f85acfc47eb27353 author Takashi Iwai Mon, 28 Aug 2006 13:29:42 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:49 +0200 [ALSA] ymfpci - Add TLV entries for native volume controls Added the linear volume TLV entries for YMFPCI native volume controls. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 063a40d9111ce7558f2fdfa4f85acfc47eb27353 tree 66b1d91583d6fa1c4596c349bebc03a0363273cb parent 1f14d167f0233342eab53bb1a429ddad1e848de4 author Takashi Iwai Mon, 28 Aug 2006 13:20:13 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:44 +0200 [ALSA] Add the definition of linear volume TLV Added the definition of linear volume TLV type. Some DSP chips and codecs (e.g. AK codec) use linear volume control. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 1f14d167f0233342eab53bb1a429ddad1e848de4 tree 58cea0df5e0bac079310f05951ce736fea8c1ccd parent 99dabfe716002c54b4dffa545460dc74bc632c22 author Krzysztof Helt Mon, 28 Aug 2006 13:01:31 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:40 +0200 [ALSA] sparc dbri: OSS layer fix This patch removes setting of incorrect stop_threshold value inside the driver. After the change, playback through the OSS layer works correctly. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 99dabfe716002c54b4dffa545460dc74bc632c22 tree facabb1403341d689341481c02e9b90b20b2be60 parent aaad3653a5f073ce9eaef4efd387cf7fc3a53d18 author Krzysztof Helt Mon, 28 Aug 2006 13:00:45 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:35 +0200 [ALSA] dbri sparc: fixes TS leak This patch fixes time slot leak in the dbri driver. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit aaad3653a5f073ce9eaef4efd387cf7fc3a53d18 tree fa42d208052b9b960bc6e689c543898e470b5db8 parent 2c7782b420ee137057eeec7c24a565ac85fc1988 author Krzysztof Helt Mon, 28 Aug 2006 12:59:23 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:31 +0200 [ALSA] sparc dbri: recording is back This patch fixes sound recording after the driver convertion to ring buffered version. It also contains small clean ups to the driver. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2c7782b420ee137057eeec7c24a565ac85fc1988 tree d3e26dd27caf13ca738db721eab05cfda8d17c48 parent 18c1c3f694105ab2a6f43e054e23f9a751b2f869 author Takashi Iwai Fri, 25 Aug 2006 13:11:26 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:26 +0200 [ALSA] hda-codec - Use model=ref for some Dell laptops Force to choose model=ref for some Dell laptops with STAC9200 codec chip for fixing the silent mic recording problem (possibly due to a BIOS bug). Reference: ALSA bug#2038 So far, applied to Inspiron 630m, Latitude D620 and 120L. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 18c1c3f694105ab2a6f43e054e23f9a751b2f869 tree 06c01bed5e123f33bbc9633ac6eb98784e626f3b parent 86148e84c218e49b54521e8dae7bb78eb66c4281 author Takashi Iwai Fri, 25 Aug 2006 11:39:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:21 +0200 [ALSA] Return error if no user TLV is defined Retrun error to user TLV_READ ioctl if no TLV is defined. (Until now, nothing was written and rerunred successfully.) Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 86148e84c218e49b54521e8dae7bb78eb66c4281 tree f05752428c2fe498f6375a22b0d7cb70b1a49949 parent 1186ed8c7dc9c0185e783beddf241509cc224f1a author Takashi Iwai Thu, 24 Aug 2006 12:36:36 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:17 +0200 [ALSA] Fix errors with user TLV_WRITE Fixed the errors at checking info.access field during user TLV_WRITE call. It should have been zero-initialized. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 1186ed8c7dc9c0185e783beddf241509cc224f1a tree f24bf18a5d860ab9a4655c6bc8f67a6eb4a2b667 parent c6ff77f71fe692fa48fe02dbfe74a01f3d5e55e2 author Takashi Iwai Wed, 23 Aug 2006 19:53:28 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:12 +0200 [ALSA] Add dB scale information to vxpocket and vx222 drivers Added the dB scale information to vxpocket and vx222 drivers. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit c6ff77f71fe692fa48fe02dbfe74a01f3d5e55e2 tree 4c2f87ba3e36ba9f2af6023e1eecfd9d87f4387e parent 3479307f8ca3cbf4181b8bf7d8c824156a9e63b7 author Takashi Iwai Wed, 23 Aug 2006 19:53:02 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:05 +0200 [ALSA] Add dB scale information to pcxhr driver Added the dB scale information to pcxhr driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 3479307f8ca3cbf4181b8bf7d8c824156a9e63b7 tree 26c4df6f74358218643f7967507844e872f77686 parent 071c73ad5fce436ee00c9422b7ca0c5d629451fb author Jochen Voss Wed, 23 Aug 2006 18:35:35 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:44:00 +0200 [ALSA] Fix volume control for the AK4358 DAC Fix volume control for the AK4358 DAC. The attenuation control registers of the AK4358 use only 7bit for the volume, the msb is used to enable attenuation output. Without this patch there are 256 volume levels the lower 128 of which are mute. Signed-off-by: Jochen Voss Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 071c73ad5fce436ee00c9422b7ca0c5d629451fb tree ac8c6776f2b4acb24e22c8c55c61832144fc140a parent 11b44bbde52b6c50ed8c9ba579d7ee9ff5b48cd8 author Takashi Iwai Wed, 23 Aug 2006 18:34:06 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:56 +0200 [ALSA] hda-codec - Fix mic capture with generic parser Fixed the mic capture with generic parser of hda-codec driver - Use VREF80 for mic pins if available - Handle multiple inputs correctly on audio-input widget node. Confirmed on a conexant codec chip. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 11b44bbde52b6c50ed8c9ba579d7ee9ff5b48cd8 tree 0e216886680a33d2ca2f29b5551c1484e1da0d48 parent 6d8590650eb81d2c869c7adf4b469071cec11eee author Richard Fish Wed, 23 Aug 2006 18:31:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:51 +0200 [ALSA] hda-codec - restore HDA sigmatel pin configs on resume This patch restores the Intel HDA Sigmatel codec pin configuration on resume. Most of it is dedicated to saving the BIOS pin configuration if necessary, so that even unrecognized chips can be resumed correctly. Signed-off-by: Richard Fish Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 6d8590650eb81d2c869c7adf4b469071cec11eee tree 99f72606dce6cc5e800019d7bd004559006fd63e parent 7b89190cf6ecd5075c272b4ec12f65a4ce45a762 author Guillaume Munch Tue, 22 Aug 2006 17:15:47 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:47 +0200 [ALSA] hda-codec - Support for SigmaTel 9872 - AR11M and AR11S uses the same chip hence we claim to support the AR Series. - Added commentary about STAC9225s which shares the same id as CXD9872RD. - Added entry for 7662 but won't work automatically until pci_subdevice is known. - 'vaio' model now corresponds to CXD9872RD_VAIO for backward compat. - Replaced STAC766x_VAIO with CXD9872RD_VAIO, STAC9872AK_VAIO, STAC9872K_VAIO and CXD9872AKD_VAIO - Added 'vaio-ar' model for potential future modifications. Signed-off-by: Guillaume Munch Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 7b89190cf6ecd5075c272b4ec12f65a4ce45a762 tree f60ba82c95763b052db944b5246defe65b603367 parent bab282b912baf372d8f705357946ef691b621899 author Magnus Sandin Tue, 22 Aug 2006 13:33:12 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:42 +0200 [ALSA] ac97 - Enable S/PDIF on ASUS P5P800-VM mobo The attached patch will force building the S/PDIF controls on the PCU SSID for Asus P5P800-VM motherboard, even if the AC97_EI_SPDIF bit is not set. Signed-off-by: Magnus Sandin Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit bab282b912baf372d8f705357946ef691b621899 tree 104f1fb366f89dfe82670dc98b681da1b28bda32 parent a1c7a7d890634eaec106e5fb3a7d9c92b8f85b0d author Vladimir Avdonin Tue, 22 Aug 2006 13:31:58 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:38 +0200 [ALSA] hda-codec - Fix for Acer laptops with ALC883 codec Patch enables the internal speaker on acer laptops with ALC883. Signed-off-by: Vladimir Avdonin Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit a1c7a7d890634eaec106e5fb3a7d9c92b8f85b0d tree 260025bde47e31aafb7e5e72fdfe8bbbd1ac79f6 parent eac06a10d2b814dfacc36a8fff35ef07bf4eec8e author Takashi Iwai Tue, 22 Aug 2006 13:16:39 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:33 +0200 [ALSA] Add dB scale information to opl3sa2 driver Added the dB scale information to opl3sa2 driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit eac06a10d2b814dfacc36a8fff35ef07bf4eec8e tree b58b442323d539ae6edaebede6643f49213e4978 parent 0e7febf15851fb438b9518654340d1f704d202e5 author Takashi Iwai Tue, 22 Aug 2006 13:16:25 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:28 +0200 [ALSA] Add dB scale information to ad1848 driver Added the dB scale information to ad1848 driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 0e7febf15851fb438b9518654340d1f704d202e5 tree 347b5b86b2ce1991787c66e829ce439f9222c7ff parent fb567a8e4f077b7b084c0558706339c35a4fb186 author Takashi Iwai Tue, 22 Aug 2006 13:16:01 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:23 +0200 [ALSA] Add dB scale information to ad1816a driver Added the dB scale information to ad1816a driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit fb567a8e4f077b7b084c0558706339c35a4fb186 tree 63bfffca736bb7992cee1a566478fa7d967a3608 parent a0aef8edfc9d6d682dba557fe42599297cbc329a author Takashi Iwai Wed, 23 Aug 2006 13:07:19 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:19 +0200 [ALSA] Add dB scale information to dummy driver Added the dB scale information to dummy driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit a0aef8edfc9d6d682dba557fe42599297cbc329a tree bf1cf3b912ac3e1d8a51029002d6dd2c5b4c6eac parent 666c70ffd1c4be795de988f26a8ab13524d4ed47 author Takashi Iwai Wed, 23 Aug 2006 13:01:37 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:14 +0200 [ALSA] Add dB scale information to trident driver Added the dB scale information to trident driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 666c70ffd1c4be795de988f26a8ab13524d4ed47 tree 3a930d34f8a1bcace53ff403333ec37e395cb6e4 parent 9f6ab25063f04597e02968ae8393e8f4703c1563 author Takashi Iwai Wed, 23 Aug 2006 12:32:06 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:10 +0200 [ALSA] Add dB scale information to fm801 driver Added the dB scale information to fm801 driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 9f6ab25063f04597e02968ae8393e8f4703c1563 tree 279423663dc11dd50d3246a9d3073ded4d706645 parent 9107226d2ca8a15534da96313a1d370fb1eb8f9e author Takashi Iwai Wed, 23 Aug 2006 12:14:25 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:05 +0200 [ALSA] Add dB scale information to cs4281 driver Added the dB scale information to cs4281 driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 9107226d2ca8a15534da96313a1d370fb1eb8f9e tree 17f11fd11337f62fc506ea075359c50d9046a88e parent 7058c042001e111c601e1b031d9bcb8b5d392b74 author Takashi Iwai Wed, 23 Aug 2006 12:04:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:43:01 +0200 [ALSA] Add dB scale information to ak4531 codec Added the dB scale information to ak4531 codec driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 7058c042001e111c601e1b031d9bcb8b5d392b74 tree 2ceb87b23ef88ec3b39b69b583ab809830e6152e parent 2f3482fbbd5dac7d0e86fe5b7ac5c1e51d52b084 author Takashi Iwai Mon, 21 Aug 2006 18:44:54 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:56 +0200 [ALSA] Added TLV support to VIA82xx driver Added the TLV support to VIA82xx driver for addition of dB range information. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2f3482fbbd5dac7d0e86fe5b7ac5c1e51d52b084 tree a7f8c3192208f840e6af7322efc0e565221120ca parent 7376d013fc6d3a45d748e0ce758ca9412b01b9dd author Takashi Iwai Mon, 21 Aug 2006 18:44:31 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:51 +0200 [ALSA] Add TLV support to AC97 codec driver Added the TLV support to AC97 codec driver for addition of dB range information. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 7376d013fc6d3a45d748e0ce758ca9412b01b9dd tree ebe54b3ce6e34faf2a1fc8568b754a299174da2d parent 93f09c4cc111506db2ffa6220b7a3d7f73e41aa3 author Stephen Hemminger Mon, 21 Aug 2006 19:17:46 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:47 +0200 [ALSA] intel_hda: MSI support Simple patch to enable Message Signalled Interrupts for the HDA Intel audio controller. Tested with: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03) MSI is better because it means audio doesn't end up sharing IRQ with USB. Signed-off-by: Stephen Hemminger Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 93f09c4cc111506db2ffa6220b7a3d7f73e41aa3 tree 733b0aad32c31998c92a68635669eec0df308837 parent ab93c7ae54a81bcecb77608ca89eea140f1d45ad author Adrian Bunk Mon, 21 Aug 2006 19:22:45 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:42 +0200 [ALSA] make sound/pci/emu10k1/emu10k1.c:snd_emu10k1_resume() static This patch makes the needlessly global snd_emu10k1_resume() static. Signed-off-by: Adrian Bunk Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit ab93c7ae54a81bcecb77608ca89eea140f1d45ad tree f9db7fbc303e6f18e54bcaea3d1e9039fe8561d0 parent 1be54c824be9b5e163cd83dabdf0ad3ac81c72a8 author Krzysztof Helt Wed, 23 Aug 2006 11:37:36 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:38 +0200 [ALSA] sparc dbri: hardware constrains added This patch adds ALSA hardware constrains so stereo is possible only with 16-bit format. It contains small cleanups to ring buffered code as well. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 1be54c824be9b5e163cd83dabdf0ad3ac81c72a8 tree 1a559701342e767a6add56a9e7960f26c1baba4c parent 294a30dc8cf13c492913f2ed3a6540bdf6e84e39 author Krzysztof Helt Mon, 21 Aug 2006 19:30:57 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:33 +0200 [ALSA] sparc dbri: ring buffered version It is a complete rework of low level layer to work on ring buffers for comands and data descriptors. This removes annoying noise due to delay in data buffer switching. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 294a30dc8cf13c492913f2ed3a6540bdf6e84e39 tree 3c92542d4cd9834e65b72241ac1ea2dd54c1d51f parent d1fdf07e22efdb9fa53739c0f0fec1f6b24c2056 author Krzysztof Helt Mon, 21 Aug 2006 19:29:59 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:28 +0200 [ALSA] sparc dbri: simplifed linking time slot function A simplified routines to link and unlink time slots. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit d1fdf07e22efdb9fa53739c0f0fec1f6b24c2056 tree cb83b26fd0e84741e80a0a053374fe2fff8e995c parent 470f1f1a1c2597fab98339ab0966dbf602d604f0 author Krzysztof Helt Mon, 21 Aug 2006 19:29:18 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:24 +0200 [ALSA] sparc dbri: fixed setting of burst size after reset A proper way to set DBRI's burst size. The size must be set after each chip reset. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 470f1f1a1c2597fab98339ab0966dbf602d604f0 tree 71c4f21207c373cfa1e99df79728f00ddba7a720 parent c27354460b1e0cbcd9dfc9232a76bd56c46dce89 author Krzysztof Helt Mon, 21 Aug 2006 19:28:16 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:19 +0200 [ALSA] sparc dbri: more driver cleanup A general clean up and redudant code removal. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit c27354460b1e0cbcd9dfc9232a76bd56c46dce89 tree 3c0de67af75b0c95093b6d0956c6d9b338c9cd1e parent e96224ae974844d3f4e84f927ca4b17f1a2079a3 author Krzysztof Helt Mon, 21 Aug 2006 19:27:35 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:15 +0200 [ALSA] sparc dbri: removal of dri_desc struct The structure is in big part redudant. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit e96224ae974844d3f4e84f927ca4b17f1a2079a3 tree 9b521d379b2ecae8506216ca5b11050d49046718 parent 81d3dbde76eedcd3ede8a73eb72790d67fa254a9 author Takashi Iwai Mon, 21 Aug 2006 17:57:44 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:10 +0200 [ALSA] hda-intel - Switch to polling mode for CORB/RIRB communication Automatically switch to polling mode for CORB/RIRB communication if the irq-driven mode seems not working well. If the polling mode still doesn't work, switch to single_cmd mode as fallback. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 81d3dbde76eedcd3ede8a73eb72790d67fa254a9 tree 391d9fb0fd5384f602c0c17239d4e8616d311a99 parent 948a4db217235ba51c41d8e7c2ffcf9432e57274 author Tobin Davis Tue, 22 Aug 2006 19:44:45 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:06 +0200 [ALSA] hda-codec - Add support for new Intel boards with Stac9227 codec This patch adds full 5.1 audio support for Intel boards with the SigmaTel 9227 codec chip (946, 963, 965 series). Signed-off-by: Tobin Davis Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 948a4db217235ba51c41d8e7c2ffcf9432e57274 tree 6b7b6f2f9a4b0b15b78a2add58157767d29c2be9 parent 79cf0d376fbf1cdf8e9c7c70c3a7c7434a716879 author Tobin Davis Tue, 22 Aug 2006 19:43:46 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:42:00 +0200 [ALSA] hda-codec - add missing device ids for Intel 945 boards This patch adds missing device ids for Intel 945 motherboards. Signed-off-by: Tobin Davis Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 79cf0d376fbf1cdf8e9c7c70c3a7c7434a716879 tree f81868b0290f26c55f541d133e48b872cbfc0e4a parent 68a6abd97f8b9aa072e36b1901531e7bb69b6efc author Takashi Iwai Tue, 22 Aug 2006 16:35:19 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:55 +0200 [ALSA] Fix missing selection of CONFIG_VIDEO_DEV from SND_FM801_TEA575X Fixed the missing selection of CONFIG_VIDEO_DEV from SND_FM801_TEA575X. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 68a6abd97f8b9aa072e36b1901531e7bb69b6efc tree b981b52f3d0359fcbf36e70ae2d7940f0c53adbf parent 2aaeee8bd1cf51b6ed7c751a8472cb77f3ddc642 author Tobin Davis Mon, 21 Aug 2006 19:02:10 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:51 +0200 [ALSA] hda-codec - Fix headphone output for some Intel 945 systems This patch enables headphone output at initialization for Intel 945 based systems that don't have proper detection circuitry. Signed-off-by: Tobin Davis Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2aaeee8bd1cf51b6ed7c751a8472cb77f3ddc642 tree 0e1bf4a190e404adb3fbc199c2b610fcca17239b parent adf75dcab1deb9625538f74906508c1f6136fd98 author Tobin Davis Mon, 21 Aug 2006 19:01:12 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:46 +0200 [ALSA] hda-codec - add missing device ids This patch adds missing device ids for Intel 915 and D102GGC motherboards. Signed-off-by: Tobin Davis Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit adf75dcab1deb9625538f74906508c1f6136fd98 tree b55c3893c2eb2f4a216865a48eead454c679f8bf parent c256652466127872f1b2e510431dc25524ba40ba author Clemens Ladisch Fri, 18 Aug 2006 09:03:45 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:42 +0200 [ALSA] riptide: fix compile errors with older gcc Change the syntax of a union initialization that is not understood by gcc 2.x. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit c256652466127872f1b2e510431dc25524ba40ba tree a7fcb9fb643f70eb2c6702f1a161e92312e9eecf parent e05d696424f21b59eccff35d04938f0d6588cd94 author Takashi Iwai Thu, 17 Aug 2006 18:21:36 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:37 +0200 [ALSA] Add missing TLV callbacks for HD-audio codecs Added missing TLV callbacks for HD-audio codec supports. Also cleaned up the tlv callback for ad1986a (no mutex is needed there). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit e05d696424f21b59eccff35d04938f0d6588cd94 tree 327f921deff3fbcbe7c9eebafc2fe5e19047dc01 parent 16727d94adf9a1376775fd34d982778c7f3506df author Takashi Iwai Thu, 17 Aug 2006 17:12:19 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:33 +0200 [ALSA] Fix some typos in snd-dummy driver Fixed some typos in snd-dummy driver. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 16727d94adf9a1376775fd34d982778c7f3506df tree f1d876d1c81326884f25974054a89755c42f4a88 parent 5fc3a2b250716b34ca7c0128475bbedf795f1ac2 author Krzysztof Helt Thu, 17 Aug 2006 16:59:28 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:28 +0200 [ALSA] sparc dbri: removal of redudant volatile keywords It removes redudant volatile keywords. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 5fc3a2b250716b34ca7c0128475bbedf795f1ac2 tree 399590c917ec6cccfb19666bd78ff16b86caeb3e parent 7cf0a95310f21f3c986288a483801b1d5694dee1 author Krzysztof Helt Thu, 17 Aug 2006 16:58:45 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:23 +0200 [ALSA] sparc dbri: removal of unused struct members It removes unused or rarely used members of defined structures. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 7cf0a95310f21f3c986288a483801b1d5694dee1 tree 74325a39a8ac88c8674c21e71f0e6f4fb90f37a2 parent 99ccc560b73ff7381153dc1391d18391373931d3 author Takashi Iwai Thu, 17 Aug 2006 16:23:07 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:19 +0200 [ALSA] Fix compile errors with older gcc Fixed compile errors with older gcc for initialization of a union. sound/pci/ca0106/ca0106_mixer.c: At top level: sound/pci/ca0106/ca0106_mixer.c:499: unknown field 'p' specified in initializer sound/pci/ca0106/ca0106_mixer.c:499: warning: missing braces around initializer sound/pci/ca0106/ca0106_mixer.c:499: warning: (near initialization for 'snd_ca0106_volume_ctls[0].tlv') Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 99ccc560b73ff7381153dc1391d18391373931d3 tree 711cc97dab35104206c16a347e9213dd5ee58fb6 parent d244bf897b2e7933112067ec8d8dc1d47b86145f author Guillaume Munch Wed, 16 Aug 2006 19:35:12 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:14 +0200 [ALSA] Add support for Sony Vaio AR 11B This patch adds automatic detection for Sigmatel ID 7664, the sound chip in Sony Vaio AR 11B (european name). - patch_stac7661 becomes patch_stac766x - .id = 0x83847664 is added Signed-off-by: Guillaume Munch Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit d244bf897b2e7933112067ec8d8dc1d47b86145f tree fc1c434f9a00c7953050ffbc6242a316a3a5e8fa parent 80b556f26b3830ad5bd6ff9f701675ac8afcb263 author Magnus Sandin Wed, 16 Aug 2006 15:25:23 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:10 +0200 [ALSA] Fix for LG K1 Express Laptop Attached is the patch for the LG K1 Express (K1-2333V) laptop that enables sound output. Signed-off-by: Magnus Sandin Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 80b556f26b3830ad5bd6ff9f701675ac8afcb263 tree 8bcd0bc1cd32c9f6fb0e675670625a0d0f4003a3 parent 5e4968e24ced93b7b130e7e1fc947a79f82776bf author Alexey Dobriyan Wed, 16 Aug 2006 12:56:53 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:05 +0200 [ALSA] emu10k1x: simplify around pci_register_driver() Report errors to modprobe as side effect. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 5e4968e24ced93b7b130e7e1fc947a79f82776bf tree f90d1b77d7f033ba058177c323127651ef5d8d73 parent 6fb982803522bc86ca61774c6edf317f77165453 author Tobias Klauser Wed, 16 Aug 2006 12:56:16 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:41:00 +0200 [ALSA] sound/pci/fm801: Use ARRAY_SIZE macro Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) Signed-off-by: Tobias Klauser Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 6fb982803522bc86ca61774c6edf317f77165453 tree 8603d66246dc7bae650febd87a1c6c0b164c75f5 parent 42fe7647911d0bcaf81aac46db73a3b24387df6d author Krzysztof Helt Wed, 16 Aug 2006 12:54:29 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:56 +0200 [ALSA] sparc dbri removal of DBRI_NO_INTS This patch removes define DBR_NO_INTS and all code related to handling more than one dbri irq statuses block. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 42fe7647911d0bcaf81aac46db73a3b24387df6d tree 89aed63c7fb4384658edc827048f4613938e885c parent fe25befde9723ba7d921c100bf00d7643323e5a7 author Krzysztof Helt Wed, 16 Aug 2006 12:53:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:51 +0200 [ALSA] dbri driver cleanup This is a small clean up of the dbri driver for sparc machines. It contains also a fix to DBRI interrupt queue initialization. Signed-off-by: Krzysztof Helt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit fe25befde9723ba7d921c100bf00d7643323e5a7 tree 5007d23d95a7d7358f76d094db71e5774ff4d52e parent 22309c3e0c8911865cad0aa94f53a9afadaad7ee author Jaroslav Kysela Tue, 15 Aug 2006 14:39:07 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:47 +0200 [ALSA] ice1712 - fix 1600->16000Hz value typo Signed-off-by: Jaroslav Kysela commit 22309c3e0c8911865cad0aa94f53a9afadaad7ee tree 922b876b9e3cb176034c6fced355d700e990f5dc parent f24e9f586b377749dff37554696cf3a105540c94 author Takashi Iwai Wed, 09 Aug 2006 16:57:28 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:41 +0200 [ALSA] Added model for Uniwill laptop with ALC861 Added a new model 'uniwill-m31' for Uniwill laptops with ALC861 codec chip. The patch is taken from ALSA bug#2035, and modifeid. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit f24e9f586b377749dff37554696cf3a105540c94 tree 179aa1c4bb7e6ed15e69d83a8869bba4d2c52613 parent cf93907b98c82c2157e5bbe766bee8f1c5bb87b2 author Takashi Iwai Wed, 09 Aug 2006 14:51:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:37 +0200 [ALSA] Select I2C and I2C_POWERMAC in aoa/codecs/Kconfig Added the missing selection of I2C and I2C_POWERMAC for Onyx and TAS codecs in aoa/codecs/Kconfig. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit cf93907b98c82c2157e5bbe766bee8f1c5bb87b2 tree add0b89171e8aa51ea6da3153fa1f802ecbe4496 parent 30ba6e207a915a6c70f22ccb3f9169d1cce88466 author Takashi Iwai Wed, 09 Aug 2006 14:33:27 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:32 +0200 [ALSA] Fix compile warnings in ak4xxx-adda.c Fixed compile warnings in ak4xxx-adda.c reagarding missing enum cases in switch. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 30ba6e207a915a6c70f22ccb3f9169d1cce88466 tree 34970a5a814f752483800984c3164f62dc950960 parent 96d9e9347c9c5ca980bef22b4add7d437d79034f author Jochen Voss Wed, 09 Aug 2006 14:26:26 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:27 +0200 [ALSA] Revolution 5.1 - complete the AK5365 support Complete the AK5365 support. This adds a boolean control to toggle the soft mute feature of the AK5365 chip. Signed-off-by: Jochen Voss Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 96d9e9347c9c5ca980bef22b4add7d437d79034f tree 302ad6bbddb84efb58367f46d0a4c21df56a71e5 parent 683fe1537e660c322c8af953773921e814791193 author Jochen Voss Tue, 08 Aug 2006 21:13:42 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:23 +0200 [ALSA] Revolution 5.1 - register the AK5365 ADC with ALSA Enable capture support for the M-Audio Revolution 5.1 card, by registering the ADC with ALSA. Signed-off-by: Jochen Voss Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 683fe1537e660c322c8af953773921e814791193 tree fda0252e756a3b276a7cacad778e795c49739006 parent f5a5ffad072ec3c1fd636174c30f0ba52fe0259f author Jochen Voss Tue, 08 Aug 2006 21:12:44 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:18 +0200 [ALSA] Revolution 5.1 - add AK5365 ADC support Add support for the AK5365 ADC. Signed-off-by: Jochen Voss Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit f5a5ffad072ec3c1fd636174c30f0ba52fe0259f tree 382ffdf40a7e045c6449853d80a71d81034ca2fb parent 25b6c43b3d6258f3e87244eeb2b9347dc5e83c40 author Danny Tholen Tue, 08 Aug 2006 18:59:07 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:14 +0200 [ALSA] [snd-hda-intel] fix sound on some Asus W6A chips This patch adds support in ALSA snd-hda-intel driver for Asus W6A motherboard as reported in MDV Bugzilla #19962 (see http://qa.mandriva.com/show_bug.cgi?id=19962) Signed-off-by: Danny Tholen Signed-off-by: Thomas Backlund Signed-off-by: Thierry Vignaud Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 25b6c43b3d6258f3e87244eeb2b9347dc5e83c40 tree 381b8dc19ac10d5386cd1e771e7ff7f1be75e39e parent 727f317a10da74b4e5c6d968bbba07767bfea794 author Takashi Iwai Tue, 08 Aug 2006 13:01:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:09 +0200 [ALSA] Fix the preselected model for HP machine Fixed the preselected model for a HP machine with SSID 103c:3010 to use hp-3013 (ALSA bug#2157). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 727f317a10da74b4e5c6d968bbba07767bfea794 tree 3c8f08e706105e0a0c036ce11e0754e30f9412d3 parent 2529bba7606b23c1b7161d3c2ad486162e8650f9 author Takashi Iwai Fri, 04 Aug 2006 19:08:03 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:40:04 +0200 [ALSA] usb-audio - Fix a typo of CONFIG_PROC_FS Fixed a typo of CONFIG_PROC_FS in usbaudio.c. The stream proc file appears again. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2529bba7606b23c1b7161d3c2ad486162e8650f9 tree fc19403b51f9a8c3d080fac7acd50c3a95cb652c parent f03d68fe343d70bb06ecdb3d70dcf0e678ed99f9 author Takashi Iwai Fri, 04 Aug 2006 12:57:19 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:59 +0200 [ALSA] Fix substream selection in PCM and rawmidi The PCM and rawmidi substreams can be selected explicitly by opening control handle and set via *_PREFER_SUBDEVICE ioctl. But, when multiple controls are opened, the driver gets confused. The patch fixes the initialization of prefer_*_subdevice and the check of multiple controls. The first set subdevice is picked up as the valid one. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit f03d68fe343d70bb06ecdb3d70dcf0e678ed99f9 tree 5d5a232219a95acfb2bfe449968b7fbb0f1e5df8 parent 548a648b98318e4b843b636dd2c7f42377e19a00 author Dmitry Torokhov Thu, 03 Aug 2006 15:06:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:55 +0200 [ALSA] ppc-beep - handle errors from input_register_device() ppc-beep: handle errors from input_register_device() (Also fixed the wrong memory release in the error path.) Signed-off-by: Dmitry Torokhov Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 548a648b98318e4b843b636dd2c7f42377e19a00 tree af08ffaaabd478080656a7fb8df149d37f66cdb8 parent 1c3985580445ef9225c1ea7714d6d963f7626eeb author Takashi Iwai Mon, 31 Jul 2006 16:51:51 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:50 +0200 [ALSA] Fix control/status mmap with shared PCM substream The flag to avoid 32bit-incompatible mmap for control/status records should be outside the pcm substream instance since a substream can be shared among multiple opens. Now it's flagged in pcm_file list that is directly assigned to file->private_data. Also, removed snd_pcm_add_file() and remove_file() functions and substream.files field that are not really used in the code. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 1c3985580445ef9225c1ea7714d6d963f7626eeb tree b3cbc142be479ff13593239c3db6ee132d1d167c parent f3302a59cf6961712658db63b66ea5902c17d5e1 author Ondrej Zary Mon, 31 Jul 2006 12:51:57 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:46 +0200 [ALSA] es18xx - Add PnP BIOS support This patch adds PnP BIOS support to es18xx driver. It allows ESS ES18xx sound chips integrated in some notebooks (such as DTK FortisPro TOP-5A) that don't appear as ISA cards (they aren't recognized by ISA PnP, only by PnP BIOS) to 'just work' automatically. Signed-off-by: Ondrej Zary Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit f3302a59cf6961712658db63b66ea5902c17d5e1 tree b32ae62fd508fba16a9096ba8f30e883eb164443 parent 7012b2dac71988f61b520b33c70c63be372b5994 author Matt Porter Mon, 31 Jul 2006 12:49:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:41 +0200 [ALSA] hda: sigmatel 9205 family support Adds support for the '9205 family' which includes some other part numbers but 9205 is the first one. These are 4 channel codecs, some have digital mic capability. Support for the digital mic feature will come later. Signed-off-by: Matt Porter Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 7012b2dac71988f61b520b33c70c63be372b5994 tree f6dd2ee18b2d2604b3822e5c14331ad60e126e0e parent 4e195a7b78618c89b06547f3140e67a69ec23272 author James Courtier-Dutton Fri, 28 Jul 2006 22:27:56 +0100 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:37 +0200 [ALSA] snd-emu10k1: Add a comment explaining the conversion function for dB gain. Signed-off-by: James Courtier-Dutton Signed-off-by: Jaroslav Kysela commit 4e195a7b78618c89b06547f3140e67a69ec23272 tree c371937f6d62e7b6c316ba9507906258b0454d10 parent 35aec4e2affb99d52b4b744ddb09767eb6e05580 author Takashi Iwai Fri, 28 Jul 2006 14:47:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:32 +0200 [ALSA] Fix noisy output with shared channel mode with hd-audio - Fix the wrong initialization of num_dacs when changing the channel mode between 2 and multi-channel modes. It must be evaluated after calling snd_hda_ch_mode_put() - Added the similar check of num_dacs fix in Realtek code. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 35aec4e2affb99d52b4b744ddb09767eb6e05580 tree 610f3cccb7640ef907f5582f9181991aa4e9871b parent 4b146cb087b4a668511f6c991da1dc40e2e04b0d author Takashi Iwai Fri, 28 Jul 2006 14:44:31 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:27 +0200 [ALSA] Don't set up the same PID twice in snd_hda_multi_out_analog_prepare Check the hp_nid whether it's identical with front pin to avoid the setup of the same widget node twice. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 4b146cb087b4a668511f6c991da1dc40e2e04b0d tree 4be992353d1fb0b981290de789a0a96e49d7ea7a parent 68ab801e32bbe2caac8b8c6e6e94f41fe7d687ad author Takashi Iwai Fri, 28 Jul 2006 14:42:36 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:22 +0200 [ALSA] Misc fixes for Realtek HD-audio codecs - Added model=arima for Arima W820Di1 with ALC882 codec chip - Added EAPD-control verbs to TCL S700 init verbs - Added missing model strings for Realtek codecs (to be specified via module option explicitly for testing/debugging) Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 68ab801e32bbe2caac8b8c6e6e94f41fe7d687ad tree 8a014270a65517a3290416d2a2143e207b3708de parent 9265d199616630c2eb993ffe40c9daef3d6873b3 author Matthias Koenig Thu, 27 Jul 2006 16:59:23 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:16 +0200 [ALSA] Add snd-mts64 driver for ESI Miditerminal 4140 Added snd-mts64 driver for Ego Systems (ESI) Miditerminal 4140 by Matthias Koenig . The driver requires parport (CONFIG_PARPORT). Signed-off-by: Matthias Koenig Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 9265d199616630c2eb993ffe40c9daef3d6873b3 tree 0c272b14f45d20386dd07555615b17d1634c0f94 parent bc6c531eb53de8a0ba355f76ce2bd28f58e46707 author Takashi Iwai Thu, 27 Jul 2006 15:50:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:11 +0200 [ALSA] Fix Makefile of cs5535audio Use ifeq instead of ifdef in Makefile to make the maintenance of out-of-kernel tree easier. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit bc6c531eb53de8a0ba355f76ce2bd28f58e46707 tree 78fadf8996e1183911f1e40003c0e938641955c9 parent b7c6b03405896bc181e1e2c9c06628c3b1681af5 author Jaroslav Kysela Thu, 27 Jul 2006 10:44:30 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:05 +0200 [ALSA] HDA driver - do not set mute flag for dB scale (follow HDA specification) Signed-off-by: Jaroslav Kysela commit b7c6b03405896bc181e1e2c9c06628c3b1681af5 tree 0ff17e2ee28e447a3e4d267fa1edad93627b9b78 parent 827a56ea3d9c3d5f80c5520ba9d487f9b7069238 author Takashi Iwai Tue, 25 Jul 2006 15:29:37 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:39:00 +0200 [ALSA] via82xx - Add dxs_support entry for a FSC machine Added dxs_support=5 entry for a FSC machine. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 827a56ea3d9c3d5f80c5520ba9d487f9b7069238 tree 0ab1d6076a52922b3178799829f4adf5dc505195 parent 304dcaac91f0d26543b31fd7e63726f096c826ee author Takashi Iwai Tue, 25 Jul 2006 14:51:16 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:55 +0200 [ALSA] Added model for ASUS M2NPV-VM mobo Added the proper model (3stack) for ASUS M2NPV-VM mobo with AD1986A codec. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 304dcaac91f0d26543b31fd7e63726f096c826ee tree bb0aaafbfb87824773cce8f44ed29cc8e8d1eb1c parent 6d177ba7839dd7ed391c2f36b121eb09d1eaee4c author Takashi Iwai Tue, 25 Jul 2006 14:51:16 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:50 +0200 [ALSA] Add support of Benq laptop with ALC262 Added the support of Benq laptop with ALC262 codec. A model string 'benq' is added, too. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 6d177ba7839dd7ed391c2f36b121eb09d1eaee4c tree 2fc3501ef9ffc0b894ea909b159721787ac92667 parent 5a053d012d0576e9306009939ca81a86547ef35a author Takashi Iwai Tue, 25 Jul 2006 14:51:15 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:46 +0200 [ALSA] Add hp-bpc model type for HP laptops Added 'hp-bpc' model type for HP xw4400-compatible laptops. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 5a053d012d0576e9306009939ca81a86547ef35a tree 80092d40f521dbf31478f293820ce80583ebefc0 parent 0a197f005a27766f5c9e0d960e7650748ec1ee4f author Takashi Iwai Tue, 25 Jul 2006 14:51:15 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:41 +0200 [ALSA] Add model entry for Clevo m665n laptop Added the proper model entry for Clevo m665n laptop with ALC880 codec. Also, added a model string 'clevo' to enable the clevo-type model option. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 0a197f005a27766f5c9e0d960e7650748ec1ee4f tree c692c2d4837b0cbf0eed682a6fd82efebe840a0d parent 31508f83f591dc8764427b6321c89f8f9e84bad2 author Takashi Iwai Tue, 25 Jul 2006 14:51:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:36 +0200 [ALSA] Add model entry for Samsung X10 laptop Added the proper model entry (laptop-eapd) for Samsung X10-T2300 Culesa laptop with AD1986A codec. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 31508f83f591dc8764427b6321c89f8f9e84bad2 tree e8b131303a9397232b33fbaaf5591f097f93af35 parent fff36e472b4315df77513f4339c5c199c6aad28b author James Courtier-Dutton Sat, 22 Jul 2006 17:02:10 +0100 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:32 +0200 [ALSA] snd-emu10k1: Implement dB gain infomation. Signed-off-by: James Courtier-Dutton Signed-off-by: Jaroslav Kysela commit fff36e472b4315df77513f4339c5c199c6aad28b tree 02c3041d3c006520cb4056847c27b30cdd48254d parent f1265391ea002a28933dc1a8a55948c0ed64c9d0 author James Courtier-Dutton Sat, 22 Jul 2006 15:02:48 +0100 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:26 +0200 [ALSA] snd-ca0106: Fix dB gain TLVs. Signed-off-by: James Courtier-Dutton Signed-off-by: Jaroslav Kysela commit f1265391ea002a28933dc1a8a55948c0ed64c9d0 tree caf87497512e4526ef75ecf1c134ed5ed45aad11 parent 6e9059b05fa733045d7845ac70c5ba0a05e3c2d1 author Clemens Ladisch Fri, 21 Jul 2006 10:46:18 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:22 +0200 [ALSA] usb-audio: add more Yamaha devices Add some quirks for some unknown Yamaha USB MIDI devices. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit 6e9059b05fa733045d7845ac70c5ba0a05e3c2d1 tree af471b0c64182326c6d51cc0388d35a24bc300ff parent cd93fe4770ca607c7f39260c02941deccbd77b8b author Clemens Ladisch Fri, 21 Jul 2006 10:45:19 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:17 +0200 [ALSA] system timer: remove unused snd_timer_system_private.timer field Remove the snd_timer_system_private structure's timer field that was never used. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit cd93fe4770ca607c7f39260c02941deccbd77b8b tree 7f2fc78b8815d88de991160feb7574120cd47aed parent de2696d8bc9c81874b3743e0c27708760cb7fb52 author Clemens Ladisch Mon, 17 Jul 2006 16:53:57 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:13 +0200 [ALSA] timer: fix timer rescheduling When checking whether a hardware timer needs to be rescheduled, we have to compare against the previously scheduled interval and not against the actual interval between the last two interrupts. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit de2696d8bc9c81874b3743e0c27708760cb7fb52 tree a19fca7ba453cc136cfa18b3deb1b57f34759f4a parent 6ed5eff025b72cb84a884d4be05f854f13b1542f author Clemens Ladisch Mon, 17 Jul 2006 16:52:09 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:08 +0200 [ALSA] system timer: clear correction value when timer stops Do not retain the old correction value when the timer was stopped. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit 6ed5eff025b72cb84a884d4be05f854f13b1542f tree c6cf92ad2e646b8134367c2db40168f5e4c651d4 parent 17f48ec3f15ddb8080b151304ee887c68f7e4650 author Clemens Ladisch Mon, 17 Jul 2006 16:51:37 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:38:03 +0200 [ALSA] system timer: accumulate correction for multiple lost ticks When multiple timer interrupts arrive too late, correct for all delays instead of ignoring the earlier ones. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit 17f48ec3f15ddb8080b151304ee887c68f7e4650 tree 05d420b98cff7b2c28c0051be74db0196b6edd1e parent 7bc5ba7e02f63a5732fdf99e7471f54738f6f918 author Clemens Ladisch Mon, 17 Jul 2006 16:50:56 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:58 +0200 [ALSA] system timer: fix lost ticks correction adjustment Fix the adjustment of the lost ticks correction variable in the case when the correction has been fully taken into account in the next timer expiration value. Subtracting the scheduled ticks value would result in an underflow. Signed-off-by: Clemens Ladisch Signed-off-by: Jaroslav Kysela commit 7bc5ba7e02f63a5732fdf99e7471f54738f6f918 tree 8b170e80155eaa18951fde3c2e974aede253cab5 parent 6a65d793b0a82c7e190d9fd92a479401b6a127ca author Takashi Iwai Fri, 14 Jul 2006 15:18:19 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:54 +0200 [ALSA] Add TLV support to snd-usb-audio driver Added TLV-read support to snd-usb-audio driver for passing the volume dB scale information to user-space. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 6a65d793b0a82c7e190d9fd92a479401b6a127ca tree 3f55f0b9e853688203e764f09797758a2a5c8c22 parent 11b3a7555aa1b1629614e919889a4479dfe6f37b author Takashi Iwai Fri, 14 Jul 2006 14:39:34 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:49 +0200 [ALSA] Remove unused tlv_rw field from struct snd_kcontrol Remove unused tlv_rw field from struct snd_kcontrol. The callback is set in tlv.c field, instead. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 11b3a7555aa1b1629614e919889a4479dfe6f37b tree 17035ddd1cae6951232de292ef5b0ba6e388804f parent 22a27c7f8d0752b38b315d6a192c338d45ea28d5 author James Courtier-Dutton Sat, 08 Jul 2006 16:39:30 +0100 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:45 +0200 [ALSA] snd-emu10k1: Implement 24bit capture via Philips 1361T ADC for SB0240 card. Signed-off-by: James Courtier-Dutton Signed-off-by: Jaroslav Kysela commit 22a27c7f8d0752b38b315d6a192c338d45ea28d5 tree 98610de27de0f6c289936da79e3dd48fcc16d8bf parent 302e9c5af4fb3ea258917ee6a32e9e45f578b231 author Matt Porter Thu, 06 Jul 2006 18:49:10 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:40 +0200 [ALSA] hda: fix sigmatel 9227/8/9 codec support SigmaTel 9227/8/9 IDs must use the 927x patch. Signed-off-by: Matt Porter Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 302e9c5af4fb3ea258917ee6a32e9e45f578b231 tree 2f3c5f8c48c198fc3a7c7b1460d094549cd7d313 parent 7f0e2f8bb851f5e0a2e0fef465b7b6f36c7aa7be author Jaroslav Kysela Wed, 05 Jul 2006 17:39:49 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:36 +0200 [ALSA] HDA codec & CA0106 - add/fix TLV support Signed-off-by: Jaroslav Kysela commit 7f0e2f8bb851f5e0a2e0fef465b7b6f36c7aa7be tree 788d092f974bd98ea0b7d84a1362555672f7a81e parent 8aa9b586e42099817163aba01d925c2660c4dbbe author Jaroslav Kysela Wed, 05 Jul 2006 17:39:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:31 +0200 [ALSA] HDA codec - little code & comment cleanup Signed-off-by: Jaroslav Kysela commit 8aa9b586e42099817163aba01d925c2660c4dbbe tree b70172eafcb672074fda1858c7a9c5779a1132f8 parent 6bbe13ecbbce4415a5a7959b3bc35b18313025e0 author Jaroslav Kysela Wed, 05 Jul 2006 17:34:51 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:26 +0200 [ALSA] Control API - more robust TLV implementation - added callback option - added READ/WRITE/COMMAND flags to access member - added WRITE/COMMAND ioctls - added SNDRV_CTL_EVENT_MASK_TLV for TLV change notifications - added TLV support to ELEM_ADD ioctl Signed-off-by: Jaroslav Kysela commit 6bbe13ecbbce4415a5a7959b3bc35b18313025e0 tree f0d962b368d769000776c799c43b810be5524ed5 parent e0a5d82a966172c5f1dff6229d4a07be2222e8b3 author Jaroslav Kysela Tue, 04 Jul 2006 13:39:55 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:21 +0200 [ALSA] fm801: fixed broken previous patch for the FM tuner only code - do not allocate and enable interrupt - do not do the FM tuner mute (it should be handled more cleanly) Signed-off-by: Jaroslav Kysela commit e0a5d82a966172c5f1dff6229d4a07be2222e8b3 tree 2f2873a35c0924a0c047b35aa01a8deb9f47a9cb parent 82466ad76d60c35bf1c48ba1b9c98c35d82fc385 author Andy Shevchenko Tue, 04 Jul 2006 12:05:14 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:17 +0200 [ALSA] fm801: Support FM only card Signed-off-by: Andy Shevchenko Signed-off-by: Jaroslav Kysela commit 82466ad76d60c35bf1c48ba1b9c98c35d82fc385 tree 82d374d6b3b3027bff6c43c057293017bbcab7c5 parent 6dbe662874ba08585eaf732d126762c25ac8e3f7 author Mike Rapoport Thu, 29 Jun 2006 17:15:33 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:12 +0200 [ALSA] add codec-specific controls for UCB1400 This patch adds some codec-specific controls for Philips UCB1400 codec. Signed-off-by: Mike Rapoport Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 6dbe662874ba08585eaf732d126762c25ac8e3f7 tree 7460c36d4d848f223b682f7a700866bcf6dbc7d5 parent 2b29b13c5794f648cd5e839796496704d787f5a6 author Takashi Iwai Tue, 27 Jun 2006 18:28:53 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:08 +0200 [ALSA] Add experimental support of aggressive AC97 power-saving mode Added CONFIG_SND_AC97_POWER_SAVE kernel config to enable the support of aggressive AC97 power-saving mode. In this mode, the AC97 powerdown register bits are dynamically controlled at each open/close of PCM streams. The mode is activated via power_save option for snd-ac97-codec driver. As default it's off. It can be turned on/off on the fly via sysfs, too. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 2b29b13c5794f648cd5e839796496704d787f5a6 tree b9753f2593aff429a8cca63e40f052a0fdd6aedb parent c461482c8072bb073e6146db320d3da85cdc89ad author Takashi Iwai Fri, 23 Jun 2006 14:38:26 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:37:03 +0200 [ALSA] Deprecate snd_card_free_in_thread() Deprecated snd_card_free_in_thread(), replaced with snd_card_free_when_closed(). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit c461482c8072bb073e6146db320d3da85cdc89ad tree 3b69cfd292a488a8cb57ac9b040bd2b1b1a1e26d parent 746d4a02e68499fc6c1f8d0c43d2271853ade181 author Takashi Iwai Fri, 23 Jun 2006 14:38:23 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:36:58 +0200 [ALSA] Unregister device files at disconnection Orignally proposed by Sam Revitch . Unregister device files at disconnection to avoid the futher accesses. Also, the dev_unregister callback is removed and replaced with the combination of disconnect + free. A new function snd_card_free_when_closed() is introduced, which is used in USB disconnect callback. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 746d4a02e68499fc6c1f8d0c43d2271853ade181 tree c4a1e9a0e8f5f95a44a3349d9b86490fe837428f parent 42750b04c5baa7c5ffdf0a8be2b9b320efdf069f author Takashi Iwai Fri, 23 Jun 2006 14:37:59 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:36:48 +0200 [ALSA] Fix disconnection of proc interface - Add the linked list to each proc entry to enable a single-shot disconnection (unregister) - Deprecate snd_info_unregister(), use snd_info_free_entry() - Removed NULL checks of snd_info_free_entry() Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 42750b04c5baa7c5ffdf0a8be2b9b320efdf069f tree 52aea8f1eeb44405b67bc5b381cce6bc20e2bff6 parent 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a author Jaroslav Kysela Thu, 01 Jun 2006 18:34:01 +0200 committer Jaroslav Kysela Sat, 23 Sep 2006 10:36:42 +0200 [ALSA] Control API - TLV implementation for additional information like dB scale This patch implements a TLV mechanism to transfer an additional information like dB scale to the user space. The types might be extended in future. Acked-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 026ed5c9185dcc4b2df92e98c3d61a01cea19cbf tree 3a070b30921f3fedd06478b0d8a435d786416baa parent f551e44ff11d3e2ec8f37907bb88ec2433cc8b74 author Chuck Lever Wed, 20 Sep 2006 14:33:07 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:06 -0400 NFS: unmark NFS direct I/O as experimental Remove the EXPERIMENTAL flag from the NFS_DIRECTIO option. Test plan: Unset the EXPERIMENTAL kernel build option and check to see that the NFS direct I/O option is still available. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit f551e44ff11d3e2ec8f37907bb88ec2433cc8b74 tree f86527c24391f70d72a28111df5c541959e8f293 parent a53a3c58fd83e572a7c768d88b4c4e9840a57e82 author Chuck Lever Wed, 20 Sep 2006 14:33:04 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:05 -0400 NFS: add comments clarifying the use of nfs_post_op_update() Comments-only change to clarify a detail of the NFS protocol and how it is implemented in Linux. Test plan: None. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit a53a3c58fd83e572a7c768d88b4c4e9840a57e82 tree e1ff5aab7dd8d4c27d28abdec5c437bc48375ef8 parent aec5e175288c711cbe44750276f61efa3fa3d370 author Steve Dickson Wed, 06 Sep 2006 11:51:21 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:05 -0400 NFSv4: rpc_mkpipe creating socket inodes w/out sk buffers This patch stop rpc_mkpipe from create S_IFSOCK nodes what don't have associated sk buffers attached (which causes SELinux to oops during NFSv4 mounts). Instead the S_IFIFO mode bit is set which probably make more sense and seems to work just fine during my connectathon and fsx testing... Signed-off-by: Steve Dickson Signed-off-by: Trond Myklebust commit aec5e175288c711cbe44750276f61efa3fa3d370 tree b793c3da94887f25e26b6627959a8bb5cb3b10dc parent 51b6ded4d9a94a61035deba1d8f51a54e3a3dd86 author Josef 'Jeff' Sipek Sat, 16 Sep 2006 21:09:32 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:04 -0400 NFS: Use SEEK_END instead of hardcoded value Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Trond Myklebust commit 51b6ded4d9a94a61035deba1d8f51a54e3a3dd86 tree ec5a7a1cd573a2839e1af36aa74afb217dd1c01c parent 2066fe89b459c3c787c811b3369df191cddd93d8 author Trond Myklebust Fri, 15 Sep 2006 16:31:56 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:04 -0400 NFSv4: When mounting with a port=0 argument, substitute port=2049 RFC3530 states that the registered port 2049 for the NFS protocol should be the default configuration in order to allow clients not to use the RPC binding protocols. If the mount program sends us a port=0, we therefore substitute port=2049. Signed-off-by: Trond Myklebust commit 2066fe89b459c3c787c811b3369df191cddd93d8 tree 0eca930bb5dd17671b49d09e2aad13c6bdee801b parent c514983d8d2260020543a81589a2b8c7d4bdab4e author Trond Myklebust Fri, 15 Sep 2006 08:30:46 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:04 -0400 NFSv4: Poll more aggressively when handling NFS4ERR_DELAY Change the initial retry delay from 1s to 0.1s (and then back off exponentially). Signed-off-by: Trond Myklebust commit c514983d8d2260020543a81589a2b8c7d4bdab4e tree 6151b2a7bb74c6209f7861d0748b35261e53c15e parent 6b30954ebb569fa1b2abdb21f2f4290eec76bf80 author Trond Myklebust Fri, 15 Sep 2006 08:25:04 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:03 -0400 NFSv4: Handle the condition NFS4ERR_FILE_OPEN Retry a few times before we give up: the error is usually due to ordering issues with asynchronous RPC calls. Signed-off-by: Trond Myklebust commit 6b30954ebb569fa1b2abdb21f2f4290eec76bf80 tree 8d342c0709eeb7c0b442db29b6b3754572e75689 parent 97db8f41792839a6912fd21be8b61dd6c50db58f author Trond Myklebust Thu, 14 Sep 2006 14:03:14 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:03 -0400 NFSv4: Retry lease recovery if it failed during a synchronous operation. Signed-off-by: Trond Myklebust commit 97db8f41792839a6912fd21be8b61dd6c50db58f tree b569931dd76809ef4bee9165da54d1c34310fbe4 parent 5f004cf2aa8494708fd8d78e78142b7b2748e765 author Trond Myklebust Thu, 14 Sep 2006 14:03:14 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:03 -0400 NFS: Don't invalidate the symlink we just stuffed into the cache And slight optimisation of nfs_end_data_update(): directories never have delegations anyway. Signed-off-by: Trond Myklebust commit 5f004cf2aa8494708fd8d78e78142b7b2748e765 tree c4f10f43217737e08d68167e1866ef5b305ac571 parent 2dec51466a08ac1c67da41bfd0518d43d983a2eb author Trond Myklebust Thu, 14 Sep 2006 14:03:14 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:02 -0400 NFS: Make read() return an ESTALE if the file has been deleted Currently, a read() request will return EIO even if the file has been deleted on the server, simply because that is what the VM will return if the call to readpage() fails to update the page. Ensure that readpage() marks the inode as stale if it receives an ESTALE. Then return that error to userland. Signed-off-by: Trond Myklebust commit 2dec51466a08ac1c67da41bfd0518d43d983a2eb tree b6df8d1c1dfe41b4aa89d42ba9864358e6eea1d3 parent fd6840714d9cf6e93f1d42b904860a94df316b85 author J. Bruce Fields Tue, 12 Sep 2006 11:53:23 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:02 -0400 NFSv4: It's perfectly legal for clp to be NULL here.... Signed-off-by: J. Bruce Fields Signed-off-by: Trond Myklebust commit fd6840714d9cf6e93f1d42b904860a94df316b85 tree e72a0ef8bff8f1b6183596dbce3de34570ee6180 parent 762d4527c2fc19d821a13d9a3455ccc2d4073731 author Trond Myklebust Tue, 05 Sep 2006 12:27:44 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:01 -0400 NFS: nfs_lookup - don't hash dentry when optimising away the lookup If the open intents tell us that a given lookup is going to result in a, exclusive create, we currently optimize away the lookup call itself. The reason is that the lookup would not be atomic with the create RPC call, so why do it in the first place? A problem occurs, however, if the VFS aborts the exclusive create operation after the lookup, but before the call to create the file/directory: in this case we will end up with a hashed negative dentry in the dcache that has never been looked up. Fix this by only actually hashing the dentry once the create operation has been successfully completed. Signed-off-by: Trond Myklebust commit 762d4527c2fc19d821a13d9a3455ccc2d4073731 tree 8e2f9ad313c1c8faececce38d43e15c9dc94a65c parent 6b6ca86b77b62b798cf9ca2599036420abce7796 author Trond Myklebust Sun, 03 Sep 2006 00:51:55 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:01 -0400 SUNRPC: Fix Oops in pmap_getport_done There is no guarantee that the parent task still exists when we exit from the portmapper. Save the xprt instead. Signed-off-by: Trond Myklebust commit 6b6ca86b77b62b798cf9ca2599036420abce7796 tree cf631a3c293be45fa4bed54bca5dcbfc96a57df1 parent da45828e2835057045150b318c4fbe9bb91f18dd author Trond Myklebust Tue, 05 Sep 2006 12:55:57 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:01 -0400 SUNRPC: Add refcounting to the struct rpc_xprt In a subsequent patch, this will allow the portmapper to take a reference to the rpc_xprt for which it is updating the port number, fixing an Oops. Signed-off-by: Trond Myklebust commit da45828e2835057045150b318c4fbe9bb91f18dd tree b04b3ae7fe4cf79c8af2f399f44d5db65995ac55 parent 76303992b4701124f4cd0791ae2049ab4332f02c author Trond Myklebust Thu, 31 Aug 2006 15:44:52 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:25:00 -0400 SUNRPC: Clean up soft task error handling - Ensure that the task aborts the RPC call only when it has actually timed out. - Ensure that req->rq_majortimeo is initialised correctly. Signed-off-by: Trond Myklebust commit 76303992b4701124f4cd0791ae2049ab4332f02c tree 2f364988b34340e2b4698facdbd84818c224c0d6 parent 8014793b1b2869445adfe678d64cdacd10e99d53 author Trond Myklebust Wed, 30 Aug 2006 14:32:49 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:56 -0400 SUNRPC: Handle ENETUNREACH, EHOSTUNREACH and EHOSTDOWN socket errors In case of any of the above errors occuring, delay for 3 seconds, then handle as if it were a timeout error. Signed-off-by: Trond Myklebust commit 8014793b1b2869445adfe678d64cdacd10e99d53 tree 861968eb71efbeae9918b1f407be99a5e6aaa9d3 parent 297de4f65698ee1e1c75e27d57933b5fa8227e72 author Trond Myklebust Thu, 31 Aug 2006 18:24:08 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:56 -0400 SUNRPC: rpc_delay() should not clobber the rpc_task->tk_status Doing so prevents stuff like call_encode() from working correctly. Signed-off-by: Trond Myklebust commit 297de4f65698ee1e1c75e27d57933b5fa8227e72 tree b04698edae97e64b3ad5290b33a9233f97f48c77 parent 058ad9cbf14b3c7480d01b20280cb4d5858f7a50 author andros@citi.umich.edu Tue, 29 Aug 2006 12:19:41 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:56 -0400 Fix a referral error Oops Fix an oops when the referral server is not responding. Check the error return from nfs4_set_client() in nfs4_create_referral_server. Signed-off-by: Andy Adamson Signed-off-by: Trond Myklebust commit 058ad9cbf14b3c7480d01b20280cb4d5858f7a50 tree 069a2340c25a953b134b09efc9b84e64847b93ec parent 6daabf1b04c89f1fbd8eab5450261360943c8e20 author Chuck Lever Sun, 27 Aug 2006 17:23:53 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:55 -0400 NFS: NFS_ROOT should use the new rpc_create API Teach NFS_ROOT to use the new rpc_create API instead of the old two-call API for creating an RPC transport. Test plan: Compile the kernel with the NFS client build-in, and set CONFIG_NFS_ROOT. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 6daabf1b04c89f1fbd8eab5450261360943c8e20 tree a4aa0653c5edaf6deb41a10c16b8476f331e7c72 parent 158998b6fe36f6acef087f574c96d44713499cc9 author David Howells Thu, 24 Aug 2006 15:44:16 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:55 -0400 NFS: Fix up compiler warnings on 64-bit platforms in client.c Fix up warnings from compiling on ppc64. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 158998b6fe36f6acef087f574c96d44713499cc9 tree afc0f330e51135cdcf05bd8c268bf514165a4e4a parent 5dd3177ae5012c1e2ad7a9ffdbd0e0d0de2f60e4 author Trond Myklebust Thu, 24 Aug 2006 01:03:17 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:54 -0400 SUNRPC: Make rpc_mkpipe() take the parent dentry as an argument Signed-off-by: Trond Myklebust commit 5dd3177ae5012c1e2ad7a9ffdbd0e0d0de2f60e4 tree 2a8730d6443f6d33e8879cfc323396f9a570b97b parent 275a082fe9308e710324e26ccb5363c53d8fd45f author Trond Myklebust Thu, 24 Aug 2006 01:03:05 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:54 -0400 NFSv4: Fix a use-after-free issue with the nfs server. Signed-off-by: Trond Myklebust commit 275a082fe9308e710324e26ccb5363c53d8fd45f tree e97df6e45f98ea2827f71dc749f8cd47f3f353cc parent 94a6d75320b3681e6e728b70e18bd186cb55e682 author Trond Myklebust Tue, 22 Aug 2006 20:06:24 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:54 -0400 Add a real API for dealing with blk_congestion_wait() Signed-off-by: Trond Myklebust commit 94a6d75320b3681e6e728b70e18bd186cb55e682 tree 0957071549d76ceb3857e419998818b11bce7269 parent 873101b33776780d32610fc4c90c7358a5e98f51 author Chuck Lever Tue, 22 Aug 2006 20:06:23 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:53 -0400 NFS: Use cached page as buffer for NFS symlink requests Now that we have a copy of the symlink path in the page cache, we can pass a struct page down to the XDR routines instead of a string buffer. Test plan: Connectathon, all NFS versions. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 873101b33776780d32610fc4c90c7358a5e98f51 tree 39bff3860ecc522e8a716c8cf2eebf55588f081a parent 4f390c152bc87165da4b1f5b7d870b46fb106d4e author Chuck Lever Tue, 22 Aug 2006 20:06:23 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:53 -0400 NFS: copy symlinks into page cache before sending NFS SYMLINK request Currently the NFS client does not cache symlinks it creates. They get cached only when the NFS client reads them back from the server. Copy the symlink into the page cache before sending it. Test plan: Connectathon, all NFS versions. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 4f390c152bc87165da4b1f5b7d870b46fb106d4e tree 643b5d12f76bd7d3688380fbaf69f607a34a06bf parent d3db90e270791b21cd00d3c094884bffa907cc9e author Chuck Lever Tue, 22 Aug 2006 20:06:22 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:52 -0400 NFS: Fix double d_drop in nfs_instantiate() error path If the LOOKUP or GETATTR in nfs_instantiate fail, nfs_instantiate will do a d_drop before returning. But some callers already do a d_drop in the case of an error return. Make certain we do only one d_drop in all error paths. This issue was introduced because over time, the symlink proc API diverged slightly from the create/mkdir/mknod proc API. To prevent other coding mistakes of this type, change the symlink proc API to be more like create/mkdir/mknod and move the nfs_instantiate call into the symlink proc routines so it is used in exactly the same way for create, mkdir, mknod, and symlink. Test plan: Connectathon, all versions of NFS. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit d3db90e270791b21cd00d3c094884bffa907cc9e tree 3d6aea8fabd34fba5db5454867811b087bb71e05 parent b86acd501a34227e0ed2b2d54dc8002c1701ce17 author Chuck Lever Tue, 22 Aug 2006 20:06:22 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:52 -0400 NFS: remove a no-longer-needed error check in nfs_symlink() In the early days of NFS, there was no duplicate reply cache on the server. Thus retransmitted non-idempotent requests often found that the request had already completed on the server. To avoid passing an unanticipated return code to unsuspecting applications, NFS clients would often shunt error codes that implied the request had been retried but already completed. Thanks to NFS over TCP, duplicate reply caches on the server, and network performance and reliability improvements, it is safe to remove such checks. Test plan: None. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit b86acd501a34227e0ed2b2d54dc8002c1701ce17 tree 1f237ba5e565d05a9ed78ebf90d9ff7d1cdade05 parent ff9aa5e56df60cc8565a93cc868fe25ae3f20e49 author Chuck Lever Tue, 22 Aug 2006 20:06:22 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:51 -0400 SUNRPC: export new RPC client functions with _GPL This patch is optional. It has been suggested that the RPC client internal functions used by upper layer protocols (such as NFS) be exported via EXPORT_SYMBOL_GPL. This patch does that. Test plan: Compile kernel with CONFIG_NFS enabled as a module. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit ff9aa5e56df60cc8565a93cc868fe25ae3f20e49 tree ae1045652699feacd18aecbc7023edd430c2695e parent 9e1968c58d72c4b85d8a69bda1e194f9701fb224 author Chuck Lever Tue, 22 Aug 2006 20:06:21 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:51 -0400 SUNRPC: Eliminate xprt_create_proto and rpc_create_client The two function call API for creating a new RPC client is now obsolete. Remove it. Also, remove an unnecessary check to see whether the caller is capable of using privileged network services. The kernel RPC client always uses a privileged ephemeral port by default; callers are responsible for checking the authority of users to make use of any RPC service, or for specifying that a nonprivileged port is acceptable. Test plan: Repeated runs of Connectathon locking suite. Check network trace to ensure correctness of NLM requests and replies. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 9e1968c58d72c4b85d8a69bda1e194f9701fb224 tree ac19353824d0567f6986c505869810228dfaed64 parent ae5c79476f36512d1100e162606bb5691f2cce5a author Chuck Lever Tue, 22 Aug 2006 20:06:21 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:51 -0400 SUNRPC: Convert RPC portmapper to use new rpc_create() API Replace xprt_create_proto/rpc_create_client calls in pmap_clnt.c with new rpc_create() API. Test plan: Repeated runs of Connectathon locking suite. Check network trace for proper PMAP calls and replies. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit ae5c79476f36512d1100e162606bb5691f2cce5a tree 5dd4ea2fad48c21c3ddb7839ab28221d06c3b409 parent 41877d207c46f050b709f452703ade20c3b4a096 author Chuck Lever Tue, 22 Aug 2006 20:06:21 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:50 -0400 NFSD: Convert NFS server callback logic to use new rpc_create API Replace xprt_create_proto/rpc_create_client call in NFS server callback functions to use new rpc_create() API. Test plan: NFSv4 delegation functionality tests. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 41877d207c46f050b709f452703ade20c3b4a096 tree a0da315e01e6008823dcc46c602e13c550a085a8 parent e1ec78928b4d5a31b7a847e65c6009f4229f7c0f author Chuck Lever Tue, 22 Aug 2006 20:06:20 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:50 -0400 NFS: Convert NFS client to use new rpc_create() API Convert NFS client mount logic to use rpc_create() instead of the old xprt_create_proto/rpc_create_client API. Test plan: Mount stress tests. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit e1ec78928b4d5a31b7a847e65c6009f4229f7c0f tree cf4a8b521551b3e398801fc3618b586e19f94f1e parent c2866763b4029411d166040306691773c12d4caf author Chuck Lever Tue, 22 Aug 2006 20:06:20 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:50 -0400 LOCKD: Convert to use new rpc_create() API Replace xprt_create_proto/rpc_create_client with new rpc_create() interface in the Network Lock Manager. Note that the semantics of NLM transports is now "hard" instead of "soft" to provide a better guarantee that lock requests will get to the server. Test plan: Repeated runs of Connectathon locking suite. Check network trace to ensure NLM requests are working correctly. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit c2866763b4029411d166040306691773c12d4caf tree 5b16b3a293843062234c5eaf377da2af93365266 parent 6ca948238724c945bd353f51d54ae7d285f3889f author Chuck Lever Tue, 22 Aug 2006 20:06:20 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:49 -0400 SUNRPC: use sockaddr + size when creating remote transport endpoints Prepare for more generic transport endpoint handling needed by transports that might use different forms of addressing, such as IPv6. Introduce a single function call to replace the two-call xprt_create_proto/rpc_create_client API. Define a new rpc_create_args structure that allows callers to pass in remote endpoint addresses of varying length. Test-plan: Compile kernel with CONFIG_NFS enabled. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 6ca948238724c945bd353f51d54ae7d285f3889f tree 222aa223d93a4ffc7e662e1d80bb3b5d28b5f1a2 parent c4efcb1d3e0bc76aeb9ca6301d19a5079893c6c9 author Chuck Lever Tue, 22 Aug 2006 20:06:19 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:49 -0400 SUNRPC: Clean-up after previous patches. Remove some unused macros related to accessing an RPC peer address Test plan: Compile kernel with CONFIG_NFS option enabled. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit c4efcb1d3e0bc76aeb9ca6301d19a5079893c6c9 tree 23f113b897f1ab2e00e4fcf774d93711d7f703b8 parent e7f7865743fff3d3938ec7540e5a784d662426da author Chuck Lever Tue, 22 Aug 2006 20:06:19 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:48 -0400 SUNRPC: Use "sockaddr_storage" for storing RPC client's remote peer address IPv6 addresses are big (128 bytes). Now that no RPC client consumers treat the addr field in rpc_xprt structs as an opaque, and access it only via the API calls, we can safely widen the field in the rpc_xprt struct to accomodate larger addresses. Test plan: Compile kernel with CONFIG_NFS enabled. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit e7f7865743fff3d3938ec7540e5a784d662426da tree 83034702cda4717d7f687bd2635afd81bc9c15bf parent f425eba437f0051bde979ea2eef8bc875a77cd00 author Chuck Lever Tue, 22 Aug 2006 20:06:19 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:48 -0400 SUNRPC: Teach rpc_pipe.c to use new rpc_peeraddr() API Hide the details of how the RPC client stores remote peer addresses from the RPC pipefs implementation. Test plan: Connectathon with Kerberos 5 authentication. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit f425eba437f0051bde979ea2eef8bc875a77cd00 tree c64aae65d42c1bd67604ec0ffe957c03dc3233fe parent edb267a688fcee5335d596752f117a30c7152e44 author Chuck Lever Tue, 22 Aug 2006 20:06:18 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:48 -0400 SUNRPC: Create API for displaying remote peer address Provide an API for formatting the remote peer address for printing without exposing its internal structure. The address could be dynamic, so we support a function call to get the address rather than reading it straight out of a structure. Test-plan: Destructive testing (unplugging the network temporarily). Probably need to rig a server where certain services aren't running, or that returns an error for some typical operation. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit edb267a688fcee5335d596752f117a30c7152e44 tree b73a91f17f22baa81a3c0a4df1b01929680a2807 parent 39d7bbcb5ba5e9d8d658b70903dd7939400e57db author Chuck Lever Tue, 22 Aug 2006 20:06:18 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:47 -0400 SUNRPC: add xprt switch API for printing formatted remote peer addresses Add a new method to the transport switch API to provide a way to convert the opaque contents of xprt->addr to a human-readable string. Test plan: Compile kernel with CONFIG_NFS enabled. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 39d7bbcb5ba5e9d8d658b70903dd7939400e57db tree 591e25f18cc1779c88c1a9de9306b23ff50bd0e0 parent 081f79a9b09b634f0dc08ed014e0195464d52535 author Chuck Lever Tue, 22 Aug 2006 20:06:18 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:47 -0400 SUNRPC: remove extraneous header inclusions include/linux/sunrpc/clnt.h already includes include/linux/sunrpc/xprt.h. We can remove xprt.h from source files that already include clnt.h. Likewise include/linux/sunrpc/timer.h. Test plan: Compile kernel with CONFIG_NFS enabled. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 081f79a9b09b634f0dc08ed014e0195464d52535 tree ad0829216553e8f86a913dac626c6617e5509398 parent 44c31be261540acf66ddd730631ead8009cc361d author Chuck Lever Tue, 22 Aug 2006 20:06:17 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:46 -0400 SUNRPC: Teach the RPC portmapper to use the new rpc_peeraddr() API. Hide the details of how the RPC client stores remote peer addresses from the RPC portmapper. Test plan: Destructive testing (unplugging the network temporarily). Connectathon with UDP and TCP. NFSv2/3 and NFSv4 mounting should be carefully checked. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 44c31be261540acf66ddd730631ead8009cc361d tree 157a92c24d50f8c82be464a4b326e07a37b2de2a parent ed39440a2573abc926f230267000f21fa5a87822 author Chuck Lever Tue, 22 Aug 2006 20:06:17 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:46 -0400 LOCKD: Teach lockd to use the new rpc_peeraddr() API Hide the details of how the RPC client stores remote peer addresses from the Network Lock Manager. Test plan: Destructive testing (unplugging the network temporarily). Connectathon with UDP and TCP. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit ed39440a2573abc926f230267000f21fa5a87822 tree f9b6ba1ce3a7f94fc9d3f4a3e82eea3fdcc965a6 parent bbf7c1dd2ae2b4040b41b1065ee9b1b6905b1605 author Chuck Lever Tue, 22 Aug 2006 20:06:17 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:45 -0400 SUNRPC: create API for getting remote peer address Provide an API for retrieving the remote peer address without allowing direct access to the rpc_xprt struct. Test-plan: Compile kernel with CONFIG_NFS enabled. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit bbf7c1dd2ae2b4040b41b1065ee9b1b6905b1605 tree b1867e722c1cc679b1834feeeeb21195f57dc873 parent 5b1eacbcd78930d976eb50a93f1779d311b553d1 author Chuck Lever Tue, 22 Aug 2006 20:06:16 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:44 -0400 SUNRPC: Introduce transport switch callout for pluggable rpcbind Introduce a clean transport switch API for plugging in different types of rpcbind mechanisms. For instance, rpcbind can cleanly replace the existing portmapper client, or a transport can choose to implement RPC binding any way it likes. Test plan: Destructive testing (unplugging the network temporarily). Connectathon with UDP and TCP. NFSv2/3 and NFSv4 mounting should be carefully checked. Probably need to rig a server where certain services aren't running, or that returns an error for some typical operation. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 5b1eacbcd78930d976eb50a93f1779d311b553d1 tree 28e573a581f185a0f00e6dbd80435039e31d8c24 parent c4a5692fb83f23008c720fe84454d5603e80b103 author Chuck Lever Tue, 22 Aug 2006 20:06:16 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:40 -0400 SUNRPC: Support for RPC child tasks no longer needed The previous patches removed the last user of RPC child tasks, so we can remove support for child tasks from net/sunrpc/sched.c now. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit c4a5692fb83f23008c720fe84454d5603e80b103 tree 5e82d275121ec3a8bfe32c0f0c48cccde1616e02 parent 4a68179d38874c37be2802442a71b847f5d1a2a9 author Chuck Lever Tue, 22 Aug 2006 20:06:16 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:40 -0400 SUNRPC: Clean-up after recent changes to sunrpc/pmap_clnt.c Add comments for external functions, use modern function definition style, and fix up dprintk formatting. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 4a68179d38874c37be2802442a71b847f5d1a2a9 tree 688b345744d182e303f96891d396a0ee1e43520a parent ec739ef03dc926d05051c8c5838971445504470a author Chuck Lever Tue, 22 Aug 2006 20:06:15 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:39 -0400 SUNRPC: Make RPC portmapper use per-transport storage Move connection and bind state that was maintained in the rpc_clnt structure to the rpc_xprt structure. This will allow the creation of a clean API for plugging in different types of bind mechanisms. This brings improvements such as the elimination of a single spin lock to control serialization for all in-kernel RPC binding. A set of per-xprt bitops is used to serialize tasks during RPC binding, just like it now works for making RPC transport connections. Test-plan: Destructive testing (unplugging the network temporarily). Connectathon with UDP and TCP. NFSv2/3 and NFSv4 mounting should be carefully checked. Probably need to rig a server where certain services aren't running, or that returns an error for some typical operation. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit ec739ef03dc926d05051c8c5838971445504470a tree 940d3dafd873c159c1279ade15ba11ede1d12983 parent 9c5bf38d85a31b946664bcc21078ef5bb10672f7 author Chuck Lever Tue, 22 Aug 2006 20:06:15 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:39 -0400 SUNRPC: Create a helper to tell whether a transport is bound Hide the contents and format of xprt->addr by eliminating direct uses of the xprt->addr.sin_port field. This change is required to support alternate RPC host address formats (eg IPv6). Test-plan: Destructive testing (unplugging the network temporarily). Repeated runs of Connectathon locking suite with UDP and TCP. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 9c5bf38d85a31b946664bcc21078ef5bb10672f7 tree cceee456ebefe2380a417746b366d67a11ec6ebe parent 36b15c54cd0d6f707a3ac03e4a2a60bb530a95b9 author Trond Myklebust Tue, 22 Aug 2006 20:06:14 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:38 -0400 NFS: Fix nfs_alloc_client() The scheme to indicate which services have been started up appears to be seriously broken. Signed-off-by: Trond Myklebust commit 36b15c54cd0d6f707a3ac03e4a2a60bb530a95b9 tree 09aa1cff411f9a26c1da9255241a865b13d738f3 parent 738a35195941ecf604d3070e2a053e1df3de350b author Trond Myklebust Tue, 22 Aug 2006 20:06:14 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:38 -0400 NFS: Ensure NFSv2/v3 mounts respect the NFS_MOUNT_SECFLAVOUR flag Signed-off-by: Trond Myklebust commit 738a35195941ecf604d3070e2a053e1df3de350b tree dd85dd6e48fad4a041d26ef6c36c4dd08537161f parent 27ba851244f627a302d0fc6469d1ad413fc34fcb author David Howells Sun, 30 Jul 2006 14:58:27 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:38 -0400 NFS: Secure the roots of the NFS subtrees in a shared superblock Invoke security_d_instantiate() on root dentries after allocating them with dentry_alloc_anon(). Normally dentry_alloc_root() would do that, but we don't call that as we don't want to assign a name to the root dentry at this point (we may discover the real name later). Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 27ba851244f627a302d0fc6469d1ad413fc34fcb tree 383016ee3e96fe7acf62067bda1ed70371ab4640 parent 6aaca566503296a73f956908ec98173946134fe2 author David Howells Sun, 30 Jul 2006 14:40:56 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:37 -0400 NFS: Fix error handling Fix an error handling problem: nfs_put_client() can be given a NULL pointer if nfs_free_server() is asked to destroy a partially initialised record. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 6aaca566503296a73f956908ec98173946134fe2 tree 7625bbfa14cddd93ed3e2afa03caf4b553116f76 parent 54ceac4515986030c2502960be620198dd8fe25b author David Howells Tue, 22 Aug 2006 20:06:13 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:37 -0400 NFS: Add server and volume lists to /proc Make two new proc files available: /proc/fs/nfsfs/servers /proc/fs/nfsfs/volumes The first lists the servers with which we are currently dealing (struct nfs_client), and the second lists the volumes we have on those servers (struct nfs_server). Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 54ceac4515986030c2502960be620198dd8fe25b tree b4ae4305c5652c0fe883ef5ea3243da91dbd2b34 parent cf6d7b5de8535a9f0088c5cc28ee2dae87371b4a author David Howells Tue, 22 Aug 2006 20:06:13 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:37 -0400 NFS: Share NFS superblocks per-protocol per-server per-FSID The attached patch makes NFS share superblocks between mounts from the same server and FSID over the same protocol. It does this by creating each superblock with a false root and returning the real root dentry in the vfsmount presented by get_sb(). The root dentry set starts off as an anonymous dentry if we don't already have the dentry for its inode, otherwise it simply returns the dentry we already have. We may thus end up with several trees of dentries in the superblock, and if at some later point one of anonymous tree roots is discovered by normal filesystem activity to be located in another tree within the superblock, the anonymous root is named and materialises attached to the second tree at the appropriate point. Why do it this way? Why not pass an extra argument to the mount() syscall to indicate the subpath and then pathwalk from the server root to the desired directory? You can't guarantee this will work for two reasons: (1) The root and intervening nodes may not be accessible to the client. With NFS2 and NFS3, for instance, mountd is called on the server to get the filehandle for the tip of a path. mountd won't give us handles for anything we don't have permission to access, and so we can't set up NFS inodes for such nodes, and so can't easily set up dentries (we'd have to have ghost inodes or something). With this patch we don't actually create dentries until we get handles from the server that we can use to set up their inodes, and we don't actually bind them into the tree until we know for sure where they go. (2) Inaccessible symbolic links. If we're asked to mount two exports from the server, eg: mount warthog:/warthog/aaa/xxx /mmm mount warthog:/warthog/bbb/yyy /nnn We may not be able to access anything nearer the root than xxx and yyy, but we may find out later that /mmm/www/yyy, say, is actually the same directory as the one mounted on /nnn. What we might then find out, for example, is that /warthog/bbb was actually a symbolic link to /warthog/aaa/xxx/www, but we can't actually determine that by talking to the server until /warthog is made available by NFS. This would lead to having constructed an errneous dentry tree which we can't easily fix. We can end up with a dentry marked as a directory when it should actually be a symlink, or we could end up with an apparently hardlinked directory. With this patch we need not make assumptions about the type of a dentry for which we can't retrieve information, nor need we assume we know its place in the grand scheme of things until we actually see that place. This patch reduces the possibility of aliasing in the inode and page caches for inodes that may be accessed by more than one NFS export. It also reduces the number of superblocks required for NFS where there are many NFS exports being used from a server (home directory server + autofs for example). This in turn makes it simpler to do local caching of network filesystems, as it can then be guaranteed that there won't be links from multiple inodes in separate superblocks to the same cache file. Obviously, cache aliasing between different levels of NFS protocol could still be a problem, but at least that gives us another key to use when indexing the cache. This patch makes the following changes: (1) The server record construction/destruction has been abstracted out into its own set of functions to make things easier to get right. These have been moved into fs/nfs/client.c. All the code in fs/nfs/client.c has to do with the management of connections to servers, and doesn't touch superblocks in any way; the remaining code in fs/nfs/super.c has to do with VFS superblock management. (2) The sequence of events undertaken by NFS mount is now reordered: (a) A volume representation (struct nfs_server) is allocated. (b) A server representation (struct nfs_client) is acquired. This may be allocated or shared, and is keyed on server address, port and NFS version. (c) If allocated, the client representation is initialised. The state member variable of nfs_client is used to prevent a race during initialisation from two mounts. (d) For NFS4 a simple pathwalk is performed, walking from FH to FH to find the root filehandle for the mount (fs/nfs/getroot.c). For NFS2/3 we are given the root FH in advance. (e) The volume FSID is probed for on the root FH. (f) The volume representation is initialised from the FSINFO record retrieved on the root FH. (g) sget() is called to acquire a superblock. This may be allocated or shared, keyed on client pointer and FSID. (h) If allocated, the superblock is initialised. (i) If the superblock is shared, then the new nfs_server record is discarded. (j) The root dentry for this mount is looked up from the root FH. (k) The root dentry for this mount is assigned to the vfsmount. (3) nfs_readdir_lookup() creates dentries for each of the entries readdir() returns; this function now attaches disconnected trees from alternate roots that happen to be discovered attached to a directory being read (in the same way nfs_lookup() is made to do for lookup ops). The new d_materialise_unique() function is now used to do this, thus permitting the whole thing to be done under one set of locks, and thus avoiding any race between mount and lookup operations on the same directory. (4) The client management code uses a new debug facility: NFSDBG_CLIENT which is set by echoing 1024 to /proc/net/sunrpc/nfs_debug. (5) Clone mounts are now called xdev mounts. (6) Use the dentry passed to the statfs() op as the handle for retrieving fs statistics rather than the root dentry of the superblock (which is now a dummy). Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit cf6d7b5de8535a9f0088c5cc28ee2dae87371b4a tree 815aecb371fc5b702c209bbda550e950e2bd1b04 parent 5006a76cca8f86c6975c16fcf67e83b8b0eee2b6 author David Howells Tue, 22 Aug 2006 20:06:12 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:36 -0400 NFS: Start rpciod in server common management Start rpciod in the server common (nfs_client struct) management code rather than in the superblock management code. This means we only need to "start" it once per server instead of once per superblock. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 5006a76cca8f86c6975c16fcf67e83b8b0eee2b6 tree fbe711871729ddfc921e91ba86202a15c5a1a55f parent 8fa5c000d7f986ef9cdc6d95f9f7fcee20e0a7d6 author David Howells Tue, 22 Aug 2006 20:06:12 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:36 -0400 NFS: Eliminate client_sys in favour of cl_rpcclient Eliminate nfs_server::client_sys in favour of nfs_client::cl_rpcclient as we only really need one per server that we're talking to since it doesn't have any security on it. The retransmission management variables are also moved to the common struct as they're required to set up the cl_rpcclient connection. The NFS2/3 client and client_acl connections are thenceforth derived by cloning the cl_rpcclient connection and post-applying the authorisation flavour. The code for setting up the initial common connection has been moved to client.c as nfs_create_rpc_client(). All the NFS program definition tables are also moved there as that's where they're now required rather than super.c. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 8fa5c000d7f986ef9cdc6d95f9f7fcee20e0a7d6 tree 356b811803db9775fd9c870d189a9ff75885ae6c parent 1f163415dc05983830bcc47b33c155b2528b1574 author David Howells Tue, 22 Aug 2006 20:06:12 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:35 -0400 NFS: Move rpc_ops from nfs_server to nfs_client Move the rpc_ops from the nfs_server struct to the nfs_client struct as they're common to all server records of a particular NFS protocol version. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 1f163415dc05983830bcc47b33c155b2528b1574 tree e4180da9947f8b802b6927726cda9d0949f8e00f parent 27951bd26031f6c27d38df9e94623bbe208a2464 author David Howells Tue, 22 Aug 2006 20:06:11 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:35 -0400 NFS: Make better use of inode* dereferencing macros Make better use of inode* dereferencing macros to hide dereferencing chains (including NFS_PROTO and NFS_CLIENT). Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 27951bd26031f6c27d38df9e94623bbe208a2464 tree 4d5b84cb50ad06883e5aaf16d144ce6cdab9f006 parent 509de8111656a7d89b4a1a5f430f4460ce510f0f author David Howells Tue, 22 Aug 2006 20:06:11 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:35 -0400 NFS: Maintain a common server record for NFS2/3 as well as for NFS4 Maintain a common server record for NFS2/3 as well as for NFS4 so that common stuff can be moved there from struct nfs_server. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 509de8111656a7d89b4a1a5f430f4460ce510f0f tree 94ec0130ab74a5c80956ca3edd3298999b3b9897 parent 0c7d90cfed91a283228017ba6faf37ee0bcd32b1 author David Howells Tue, 22 Aug 2006 20:06:11 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:34 -0400 NFS: Add extra const qualifiers Add some extra const qualifiers into NFS. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 0c7d90cfed91a283228017ba6faf37ee0bcd32b1 tree bf8aae1186e905660f179cbda720ce51d1b7498c parent 24c8dbbb5f777187d660393599641ab3307b4b97 author David Howells Tue, 22 Aug 2006 20:06:10 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:34 -0400 NFS: Use the dentry superblock directly in nfs_statfs() Use the nominated dentry's superblock directly in the NFS statfs() op to get a file handle, rather than using s_root (which will become a dummy dentry in a future patch). Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 24c8dbbb5f777187d660393599641ab3307b4b97 tree 9d50fdd57c7593d925a21e4bb049095a4e4ead6f parent e9326dcab413848e70ab746c7c5363da13e5f801 author David Howells Tue, 22 Aug 2006 20:06:10 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:33 -0400 NFS: Generalise the nfs_client structure Generalise the nfs_client structure by: (1) Moving nfs_client to a more general place (nfs_fs_sb.h). (2) Renaming its maintenance routines to be non-NFS4 specific. (3) Move those maintenance routines to a new non-NFS4 specific file (client.c) and move the declarations to internal.h. (4) Make nfs_find/get_client() take a full sockaddr_in to include the port number (will be required for NFS2/3). (5) Make nfs_find/get_client() take the NFS protocol version (again will be required to differentiate NFS2, 3 & 4 client records). Also: (6) Make nfs_client construction proceed akin to inodes, marking them as under construction and providing a function to indicate completion. (7) Make nfs_get_client() wait interruptibly if it finds a client that it can share, but that client is currently being constructed. (8) Make nfs4_create_client() use (6) and (7) instead of locking cl_sem. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit e9326dcab413848e70ab746c7c5363da13e5f801 tree 594a1e4ac32fd0620f0b91442d5d1b65fd9cc743 parent 2b3de4411b3ccaeb00018c99d1bbe7203554cf7f author David Howells Tue, 22 Aug 2006 20:06:10 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:33 -0400 NFS: Add a server capabilities NFS RPC op Add a set_capabilities NFS RPC op so that the server capabilities can be set. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 2b3de4411b3ccaeb00018c99d1bbe7203554cf7f tree cb49ea1fe64835fdbb8335a55049e70b3d87c5ae parent b7162792b5c0e0f6e91b8997f8e6bbc76ec5420a author David Howells Tue, 22 Aug 2006 20:06:09 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:32 -0400 NFS: Add a lookupfh NFS RPC op Add a lookup filehandle NFS RPC op so that a file handle can be looked up without requiring dentries and inodes and other VFS stuff when doing an NFS4 pathwalk during mounting. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit b7162792b5c0e0f6e91b8997f8e6bbc76ec5420a tree 214c0aec3cee41cf872e0c4940fa778f6c0f94e9 parent 7539bbab8062aadc1db95a22b377146843cfa88f author David Howells Tue, 22 Aug 2006 20:06:09 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:32 -0400 NFS: Return an error when starting the idmapping pipe Return an error when starting the idmapping pipe so that we can detect it failing. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 7539bbab8062aadc1db95a22b377146843cfa88f tree 697983ea016cbe378e4f2128846edebd78e468b9 parent adfa6f980bd46974e6b32b22dd0c45e3f52063f4 author David Howells Tue, 22 Aug 2006 20:06:09 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:32 -0400 NFS: Rename nfs_server::nfs4_state Rename nfs_server::nfs4_state to nfs_client as it will be used to represent the client state for NFS2 and NFS3 also. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit adfa6f980bd46974e6b32b22dd0c45e3f52063f4 tree 7dbc86985faa0fce0e73103979262c1593ea3a3b parent 5ae1fbce142b67bf59e15fb1af96e88a96abde7b author David Howells Tue, 22 Aug 2006 20:06:08 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:31 -0400 NFS: Rename struct nfs4_client to struct nfs_client Rename struct nfs4_client to struct nfs_client so that it can become the basis for a general client record for NFS2 and NFS3 in addition to NFS4. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 5ae1fbce142b67bf59e15fb1af96e88a96abde7b tree 88e09770f11535b688f9539b5999f836c8b322ab parent 0a8ea4372b2868842986118ca90912f3382e6c5a author David Howells Tue, 22 Aug 2006 20:06:08 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:31 -0400 NFS: Fix NFS4 callback up/down prototypes Make the nfs_callback_up()/down() prototypes just do nothing if NFS4 is not enabled. Also make the down function void type since we can't really do anything if it fails. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 0a8ea4372b2868842986118ca90912f3382e6c5a tree 06d0641bf6d5906c28814c672ce43697467fa03d parent 7d4e2747a0412583526a162fbbd6edeeafcceb08 author David Howells Tue, 22 Aug 2006 20:06:08 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:30 -0400 NFS: Disambiguate nfs_stat_to_errno() Rename the NFS4 version of nfs_stat_to_errno() so that it doesn't conflict with the common one used by NFS2 and NFS3. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 7d4e2747a0412583526a162fbbd6edeeafcceb08 tree 756180b37a02b504998c646ff027652f80e10bab parent 770bfad846ab6628444428467b11fa6773ae9ea1 author David Howells Tue, 22 Aug 2006 20:06:07 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:30 -0400 NFS: Fix up split of fs/nfs/inode.c Fix ups for the splitting of the superblock stuff out of fs/nfs/inode.c, including: (*) Move the callback tcpport module param into callback.c. (*) Move the idmap cache timeout module param into idmap.c. (*) Changes to internal.h: (*) namespace-nfs4.c was renamed to nfs4namespace.c. (*) nfs_stat_to_errno() is in nfs2xdr.c, not nfs4xdr.c. (*) nfs4xdr.c is contingent on CONFIG_NFS_V4. (*) nfs4_path() is only uses if CONFIG_NFS_V4 is set. Plus also: (*) The sec_flavours[] table should really be const. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 770bfad846ab6628444428467b11fa6773ae9ea1 tree 5fd803319fe718367dca081b23abd36bfc85f78a parent 979df72e6f963b42ee484f2eca049c3344da0ba7 author David Howells Tue, 22 Aug 2006 20:06:07 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:30 -0400 NFS: Add dentry materialisation op The attached patch adds a new directory cache management function that prepares a disconnected anonymous function to be connected into the dentry tree. The anonymous dentry is transferred the name and parentage from another dentry. The following changes were made in [try #2]: (*) d_materialise_dentry() now switches the parentage of the two nodes around correctly when one or other of them is self-referential. The following changes were made in [try #7]: (*) d_instantiate_unique() has had the interior part split out as function __d_instantiate_unique(). Callers of this latter function must be holding the appropriate locks. (*) _d_rehash() has been added as a wrapper around __d_rehash() to call it with the most obvious hash list (the one from the name). d_rehash() now calls _d_rehash(). (*) d_materialise_dentry() is now __d_materialise_dentry() and is static. (*) d_materialise_unique() added to perform the combination of d_find_alias(), d_materialise_dentry() and d_add_unique() that the NFS client was doing twice, all within a single dcache_lock critical section. This reduces the number of times two different spinlocks were being accessed. The following further changes were made: (*) Add the dentries onto their parents d_subdirs lists. Signed-Off-By: David Howells Signed-off-by: Trond Myklebust commit 979df72e6f963b42ee484f2eca049c3344da0ba7 tree f3ba48a16203c899dbe57482c1ff7f1c02e0c9ca parent cfcea3e8c66c2dcde98d5c2693d4bff50b5cac97 author Trond Myklebust Tue, 25 Jul 2006 11:28:19 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:29 -0400 NFS: Add an ACCESS cache memory shrinker A pinned inode may in theory end up filling memory with cached ACCESS calls. This patch ensures that the VM may shrink away the cache in these particular cases. The shrinker works by iterating through the list of inodes on the global nfs_access_lru_list, and removing the least recently used access cache entry until it is done (or until the entire cache is empty). Signed-off-by: Trond Myklebust commit cfcea3e8c66c2dcde98d5c2693d4bff50b5cac97 tree ee7b995a48c43de7355fa33079ee7aaad020d6f3 parent 1c3c07e9f6cc50dab2aeb8051325e317d4f6c70e author Trond Myklebust Tue, 25 Jul 2006 11:28:18 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:29 -0400 NFS: Add a global LRU list for the ACCESS cache ...in order to allow the addition of a memory shrinker. Signed-off-by: Trond Myklebust commit 1c3c07e9f6cc50dab2aeb8051325e317d4f6c70e tree 96bbc2a304e9a0e831daf589d1662c6129303796 parent 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a author Trond Myklebust Tue, 25 Jul 2006 11:28:18 -0400 committer Trond Myklebust Fri, 22 Sep 2006 23:24:28 -0400 NFS: Add a new ACCESS rpc call cache to the linux nfs client The current access cache only allows one entry at a time to be cached for each inode. Add a per-inode red-black tree in order to allow more than one to be cached at a time. Should significantly cut down the time spent in path traversal for shared directories such as ${PATH}, /usr/share, etc. Signed-off-by: Trond Myklebust commit 183798799216fad36c7219fe8d4d6dee6b8fa755 tree eec3ee23ae45c095087315c70034cc140e309965 parent 9b6b0b81f0de6a17ce57c818d1f403253c200e1f author Jeff Garzik Fri, 22 Sep 2006 21:19:05 -0400 committer Jeff Garzik Fri, 22 Sep 2006 21:19:05 -0400 net/ieee80211: fix more crypto-related build breakage Signed-off-by: Jeff Garzik commit 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a tree 0bb8477f775e48ab32900d254116288ee794441d parent 6585b572402e5ec7936422123b44b65fef7a5ea6 parent b8c06a2ab68661bf841e21003f4447f8d422aed3 author Linus Torvalds Fri, 22 Sep 2006 17:51:59 -0700 committer Linus Torvalds Fri, 22 Sep 2006 17:51:59 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: [CIFS] statfs for cifs unix extensions no longer experimental [CIFS] New POSIX locking code not setting rc properly to zero on successful [CIFS] Support deep tree mounts (e.g. mounts to //server/share/path) commit 6585b572402e5ec7936422123b44b65fef7a5ea6 tree 52eef1d14bcf6f6ad6226fca02e8198a30d7abe3 parent 2ee8099f2c2bc74a7c2fac7f83e12a5d651681d3 parent edf03fb0575cbee2595a63374b17dc0921f2094a author Linus Torvalds Fri, 22 Sep 2006 17:50:50 -0700 committer Linus Torvalds Fri, 22 Sep 2006 17:50:50 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart * master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart: [AGPGART] Rework AGPv3 modesetting fallback. [AGPGART] Add suspend callback for i965 [AGPGART] Fix number of aperture sizes in 830 gart structs. [AGPGART] Intel 965 Express support. [AGPGART] agp.h: constify struct agp_bridge_data::version [AGPGART] const'ify VIA AGP PCI table. [AGPGART] CONFIG_PM=n slim: drivers/char/agp/intel-agp.c [AGPGART] CONFIG_PM=n slim: drivers/char/agp/efficeon-agp.c [AGPGART] Const'ify the agpgart driver version. [AGPGART] remove private page protection map commit 2ee8099f2c2bc74a7c2fac7f83e12a5d651681d3 tree 433ebb87a3d5d02e7df3700c846ac9af632c55f3 parent c03efdb202a4882f426ce49766859af4058c9b8a parent 24669f7d00d387799fc6a39452ab22d7f078f043 author Linus Torvalds Fri, 22 Sep 2006 17:50:22 -0700 committer Linus Torvalds Fri, 22 Sep 2006 17:50:22 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq * master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq: [CPUFREQ] sw_any_bug_dmi_table can be used on resume, so it isn't initdata [CPUFREQ] Fix some more CPU hotplug locking. [CPUFREQ] Workaround for BIOS bug in software coordination of frequency [CPUFREQ] Longhaul - Add voltage scaling to driver [CPUFREQ] Fix sparse warning in ondemand [CPUFREQ] make drivers/cpufreq/cpufreq_ondemand.c:powersave_bias_target() static [CPUFREQ] Longhaul - Add ignore_latency option [CPUFREQ] Longhaul - Disable arbiter [CPUFREQ][2/2] ondemand: updated add powersave_bias tunable [CPUFREQ][1/2] ondemand: updated tune for hardware coordination [CPUFREQ] Fix typo. commit c03efdb202a4882f426ce49766859af4058c9b8a tree 9bdfd7ff7908d13193605b77faf4b0cc18ef484b parent 956295d50dc5462722f029de64d44a7ecba54e69 author Al Viro Sat, 23 Sep 2006 01:29:34 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:57 -0700 [PATCH] fallout from hcd-core patch missing le16_to_cpu() Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 956295d50dc5462722f029de64d44a7ecba54e69 tree 839ebe5631d59e702db05e37b506af446f4615e9 parent 5932ef077716e3e798eaba6738ef874849f62a17 author Al Viro Sat, 23 Sep 2006 01:27:30 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:57 -0700 [PATCH] fix the survivors of fbcon_vbl_handler() renaming In |Author: James Simmons |Date: Thu Mar 13 22:37:08 2003 -0800 | | [FBCON] Cursor handling clean up. I nuked several static variables. we have -static void fbcon_vbl_handler(int irq, void *dummy, struct pt_regs *fp) +static void fb_vbl_handler(int irq, void *dev_id, struct pt_regs *fp) and 3 years later a couple of instances missed back then still remains there. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 5932ef077716e3e798eaba6738ef874849f62a17 tree aef525063c75811002dc97033cfa6a9933e026ff parent a07562e03a3f4a1276931e3fb3cb532622a6c616 author Al Viro Sat, 23 Sep 2006 01:26:02 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:57 -0700 [PATCH] sun4: fix sbus_setup_iommu() iommu_init() and iounit_init() are never called for sun4, but that's not enough - these calls should be ifdefed out since the functions in question simply do not exist for CONFIG_SUN4 kernel. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit a07562e03a3f4a1276931e3fb3cb532622a6c616 tree 18853119251593544627d1b249b83d34b6064a51 parent 00ddaf20b0049c65ddd0c2b1cbed16c7a433e47c author Al Viro Sat, 23 Sep 2006 01:25:18 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:57 -0700 [PATCH] asm/backlight.h is ppc-only Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 00ddaf20b0049c65ddd0c2b1cbed16c7a433e47c tree 34b5fa03e9d81611dd1e746813a350a9961850c8 parent 55ae922323c90fdcb733c13ccf0da2ee72763913 author Al Viro Sat, 23 Sep 2006 01:22:46 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:56 -0700 [PATCH] sanitize frv archclean Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 55ae922323c90fdcb733c13ccf0da2ee72763913 tree 86fbf40a8bf2678f5cdd254b70021032b20e851c parent 634965f5cfda1763f51e7916cfa49265b70e2a8d author Al Viro Sat, 23 Sep 2006 01:24:25 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:56 -0700 [PATCH] aoa is pmac-only Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 634965f5cfda1763f51e7916cfa49265b70e2a8d tree d8b1dce2b96fb7e63e558085f2a80eb369f62268 parent cc9bd99e9adfa4f44ea050a63fb41a3f764acf84 author Al Viro Sat, 23 Sep 2006 01:20:31 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:56 -0700 [PATCH] memcpy_fromio() missing in istallion memcpy() from iomem is a bad thing... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit cc9bd99e9adfa4f44ea050a63fb41a3f764acf84 tree d8f4512b107305f119d727e7fd3f523fd9125f4e parent a83fbf635992442edf6aa3252e4008d4a08edf12 author Al Viro Sat, 23 Sep 2006 01:18:41 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:56 -0700 [PATCH] fix ancient breakage in ebus_init() Back when pci_dev had base_address[], loop of form base = &...->base_address[0]; for (.....) { ... *base++ = addr; } was fine, but when that array got spread in ->resource[...].start replacing the initialization with base = &...->resource[0].start; was not a sufficient modification. IOW this code got broken for cases when there had been more than one resource to fill. All way back in 2.3.41-pre3... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit a83fbf635992442edf6aa3252e4008d4a08edf12 tree dd31c01247cea278a77dcb88732d19c92b9bca77 parent db392219c5f572610645696e3672f6ea38783a65 author Al Viro Sat, 23 Sep 2006 00:10:18 +0100 committer Linus Torvalds Fri, 22 Sep 2006 17:48:56 -0700 [PATCH] fix missing ifdefs in syscall classes hookup for generic targets several targets have no ....at() family and m32r calls its only chown variant chown32(), with __NR_chown being undefined. creat(2) is also absent in some targets. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 9b6b0b81f0de6a17ce57c818d1f403253c200e1f tree 51706d05197363768630bdcbd5249c906f9567f9 parent 78cc3b78c4208d28e7f4ecded82e238224ed4d1c author Jim Lewis Fri, 22 Sep 2006 17:22:53 -0700 committer Jeff Garzik Fri, 22 Sep 2006 20:26:02 -0400 [PATCH] Spidernet: add ethtool -S (show statistics) Add the ethtool -S (show statistics) feature to the Spidernet ethernet driver. I have tested it extensively and believe it is ready to be applied. Signed-off-by: James K Lewis Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 78cc3b78c4208d28e7f4ecded82e238224ed4d1c tree 137f4fe32e41572bb41ba170f6b822ebf215079e parent ff2a2e0172fd11b1bfb9b45ee1b996d3f10669af parent d81bf551103cc3bc9e4f7ddf337511d6da0d088f author Jeff Garzik Fri, 22 Sep 2006 20:18:02 -0400 committer Jeff Garzik Fri, 22 Sep 2006 20:18:02 -0400 Merge tag 'r8169-20060920-00' of git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6 into tmp commit ff2a2e0172fd11b1bfb9b45ee1b996d3f10669af tree aa73a797810fb389c27af29b9eea2648bc979ee4 parent 06ede91017d015a03cf8c1c87b3ff668f9a846e0 author Ralf Baechle Fri, 22 Sep 2006 20:15:30 -0400 committer Jeff Garzik Fri, 22 Sep 2006 20:15:30 -0400 [NET] GT96100: Delete bitrotting ethernet driver Code for the EV96100 evaluation board hasn't compiled since at least November 15, 2003, so it is being deleted as of 2.6.18 due to lack of a user base. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit 06ede91017d015a03cf8c1c87b3ff668f9a846e0 tree 7c9e4098d676b647f3e5f7d6a11ac1cf1f91f809 parent 1d22e05df8183b36b3cc0760344774040abc74d5 author Dale Farnsworth Wed, 20 Sep 2006 12:24:34 -0700 committer Jeff Garzik Fri, 22 Sep 2006 20:13:23 -0400 [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM No 64-bit PPC_MULTIPLATFORM platforms use the mv643xx_eth driver, so build it only on PPC32. Signed-off-by: Dale Farnsworth Acked-by: Sven Luther Signed-off-by: Jeff Garzik commit 1d22e05df8183b36b3cc0760344774040abc74d5 tree ec560b450a60045d0607b450ced38b60a9db9ecb parent 28eb177dfa5982d132edceed891cb3885df258bb author Lennert Buytenhek Fri, 22 Sep 2006 02:28:13 +0200 committer Jeff Garzik Fri, 22 Sep 2006 20:13:23 -0400 [PATCH] Cirrus Logic ep93xx ethernet driver The Cirrus Logic ep93xx is an ARM SoC that includes an ethernet MAC -- this patch adds a driver for that ethernet MAC. Signed-off-by: Lennert Buytenhek Signed-off-by: Jeff Garzik commit 28eb177dfa5982d132edceed891cb3885df258bb tree 5f8fdc37ad1d8d0793e9c47da7d908b97c814ffb parent fd8ae94eea9bb4269d6dff1b47b9dc741bd70d0b parent db392219c5f572610645696e3672f6ea38783a65 author Jeff Garzik Fri, 22 Sep 2006 20:10:23 -0400 committer Jeff Garzik Fri, 22 Sep 2006 20:10:23 -0400 Merge branch 'master' into upstream Conflicts: net/ieee80211/ieee80211_crypt_tkip.c net/ieee80211/ieee80211_crypt_wep.c commit 24669f7d00d387799fc6a39452ab22d7f078f043 tree 4ccea639fe4958e45586c7f19e6f77a39faaa9cc parent ddad65df0048e210c93640b59b3bad12701febb6 author Jeremy Fitzhardinge Tue, 12 Sep 2006 18:55:53 -0700 committer Dave Jones Fri, 22 Sep 2006 19:18:19 -0400 [CPUFREQ] sw_any_bug_dmi_table can be used on resume, so it isn't initdata sw_any_bug_dmi_table can be used on resume, so it isn't initdata. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Dave Jones commit ddad65df0048e210c93640b59b3bad12701febb6 tree 5530a3fbeef881c48ca02e491529d709dc812ea0 parent 8adcc0c674004c0f9467031a93dc639c2b01411f author Dave Jones Fri, 22 Sep 2006 19:15:23 -0400 committer Dave Jones Fri, 22 Sep 2006 19:15:23 -0400 [CPUFREQ] Fix some more CPU hotplug locking. Lukewarm IQ detected in hotplug locking BUG: warning at kernel/cpu.c:38/lock_cpu_hotplug() [] lock_cpu_hotplug+0x42/0x65 [] cpufreq_update_policy+0x25/0xad [] kprobe_flush_task+0x18/0x40 [] schedule+0x63f/0x68b [] __link_module+0x0/0x1f [] __cond_resched+0x16/0x34 [] cond_resched+0x26/0x31 [] wait_for_completion+0x17/0xb1 [] cpufreq_stat_cpu_callback+0x13/0x20 [cpufreq_stats] [] cpufreq_stats_init+0x74/0x8b [cpufreq_stats] [] sys_init_module+0x91/0x174 [] sysenter_past_esp+0x56/0x79 As there are other places that call cpufreq_update_policy without the hotplug lock, it seems better to keep the hotplug locking at the lower level for the time being until this is revamped. Signed-off-by: Dave Jones commit db392219c5f572610645696e3672f6ea38783a65 tree 240878f6367e528840cc4fe92f6b3a251651572f parent 3e2ab46df697048e222cdc046a2fa97149ca32ba parent 9cd330d36b32ed48d49561b165842db20bd153cc author Linus Torvalds Fri, 22 Sep 2006 15:47:06 -0700 committer Linus Torvalds Fri, 22 Sep 2006 15:47:06 -0700 Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband: (65 commits) IB: Fix typo in kerneldoc for ib_set_client_data() IPoIB: Add some likely/unlikely annotations in hot path IPoIB: Remove unused include of vmalloc.h IPoIB: Rejoin all multicast groups after a port event IPoIB: Create MCGs with all attributes required by RFC IB/sa: fix ib_sa_selector names IB/iser: INFINIBAND_ISER depends on INET IB/mthca: Simplify calls to mthca_cq_clean() RDMA/cma: Document rdma_accept() error handling IB/mthca: Recover from catastrophic errors RDMA/cma: Document rdma_destroy_id() function IB/cm: Do not track remote QPN in timewait state IB/sa: Require SA registration IPoIB: Refactor completion handling IB/iser: Do not use FMR for a single dma entry sg IB/iser: fix some debug prints IB/iser: make FMR "page size" be 4K and not PAGE_SIZE IB/iser: Limit the max size of a scsi command IB/iser: fix a check of SG alignment for RDMA RDMA/cma: Protect against adding device during destruction ... commit 3e2ab46df697048e222cdc046a2fa97149ca32ba tree f0b53afc6054853f7281b833d2d6b9ed48ed2b19 parent e6e5fee1426bef07f4e6c3c76f48343c14207938 parent 54caf44da31995df1f51174468fd9e83ca5c67a2 author Linus Torvalds Fri, 22 Sep 2006 15:37:31 -0700 committer Linus Torvalds Fri, 22 Sep 2006 15:37:31 -0700 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: [netdrvr] mv643xx_eth: fix obvious typo, which caused build breakage [netdrvr] lp486e: fix typo commit 9cd330d36b32ed48d49561b165842db20bd153cc tree 029ddb8fa1fb820cfe61ec77f094ac72f2637f91 parent a8bfca024326560d86c6323b0504288ca55a75fc author Krishna Kumar Fri, 22 Sep 2006 15:22:58 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:58 -0700 IB: Fix typo in kerneldoc for ib_set_client_data() Signed-off-by: Krishna Kumar Signed-off-by: Roland Dreier commit a8bfca024326560d86c6323b0504288ca55a75fc tree cc3bae75628c57b8f70a0ed66beee62201557bad parent 507c33504686e733a14ef0b2dc9db0c20fae4653 author Eli Cohen Fri, 22 Sep 2006 15:22:58 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:58 -0700 IPoIB: Add some likely/unlikely annotations in hot path Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 507c33504686e733a14ef0b2dc9db0c20fae4653 tree eba9071f31789b23751b7bbf3686e7228997ff7e parent 5ccd025553d73e523212ee0860b7f4a75e886bfa author Dotan Barak Thu, 21 Sep 2006 18:26:43 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:57 -0700 IPoIB: Remove unused include of vmalloc.h IPoIB doesn't use anything from , so don't include it. Signed-off-by: Dotan Barak Signed-off-by: Roland Dreier commit 5ccd025553d73e523212ee0860b7f4a75e886bfa tree 31a6fe6745b16b47cab4e34760e6c8a1ab70108b parent d0df6d6d4539241179a1ef5394787825bf05bbce author Eli Cohen Fri, 22 Sep 2006 15:22:56 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:56 -0700 IPoIB: Rejoin all multicast groups after a port event When ipoib_ib_dev_flush() is called because of a port event, the driver needs to rejoin all multicast groups, since the flush will call ipoib_mcast_dev_flush() (via ipoib_ib_dev_down()). Otherwise no (non-broadcast) multicast groups will be rejoined until the networking core calls ->set_multicast_list again, and so multicast reception will be broken for potentially a long time. Signed-off-by: Eli Cohen Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit d0df6d6d4539241179a1ef5394787825bf05bbce tree 82e66fbc8b048e15132fe4eedacfc9187b77abf4 parent aec79fcc3ea3b536a2788b4e22b7ebabbb176485 author Roland Dreier Fri, 22 Sep 2006 15:22:56 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:56 -0700 IPoIB: Create MCGs with all attributes required by RFC RFC 4391 ("Transmission of IP over InfiniBand (IPoIB)") says: If the IB multicast group does not already exist, one must be created first with the IPoIB link MTU. The MGID MUST use the same P_Key, Q_Key, SL, MTU, and HopLimit as those used in the broadcast-GID. The rest of attributes SHOULD follow the values used in the broadcast-GID as well. However, the current IPoIB driver is only setting the attributes required by the InfiniBand spec to create a multicast group, so in particular the MTU and HopLimit are not being set. Add these attributes when creating MCGs, and also set the Rate attribute, since IPoIB pays attention to that attribute as well. Signed-off-by: Roland Dreier commit aec79fcc3ea3b536a2788b4e22b7ebabbb176485 tree 3ae94bd1003362c52aa6118897fbeacfd0b4128a parent 5755d6dad95808a24a65dd9e61e23c305f9b077c author Michael S. Tsirkin Mon, 18 Sep 2006 22:17:08 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:55 -0700 IB/sa: fix ib_sa_selector names Relevant SA queries are actually "greater than" / "less than", not "greater than or equal" / "less than or equal" as the names imply. (See IB spec 1.2 Vol 1, 15.2.5.16 PATHRECORD/Table 205 PathRecord) Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 5755d6dad95808a24a65dd9e61e23c305f9b077c tree 22549b19cc0e4aeeaa8abaf72b34cf0a9c53856d parent d35cc330a2058a32410ef42784b8d3b942f37b8b author Roland Dreier Fri, 22 Sep 2006 15:22:55 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:55 -0700 IB/iser: INFINIBAND_ISER depends on INET iSER won't build without CONFIG_INET enabled, so make Kconfig reflect that. Signed-off-by: Roland Dreier commit d35cc330a2058a32410ef42784b8d3b942f37b8b tree d01f8996ab79610edbf070c21b9200480c5b126f parent 951f7fc1372da3d826b1d975b3cc5e3db92af5d0 author Roland Dreier Fri, 22 Sep 2006 15:22:55 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:55 -0700 IB/mthca: Simplify calls to mthca_cq_clean() If a QP has separate send and receive CQs, then the send CQ will never have receive completions from that QP in it. So when cleaning the send CQ, there's no need to pass in an SRQ pointer, even if the QP is attached to an SRQ. Signed-off-by: Roland Dreier commit 951f7fc1372da3d826b1d975b3cc5e3db92af5d0 tree 21129949b4ad6fd3ad9da5bbd427db090d2cb3da parent b3b30f5e8a0c50db3d76b6f7c7cc50245aeb57fd author Or Gerlitz Fri, 22 Sep 2006 15:22:54 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:54 -0700 RDMA/cma: Document rdma_accept() error handling Document the reject sending and modifying QP to error done in rdma_accept(). Signed-off-by: Or Gerlitz Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit b3b30f5e8a0c50db3d76b6f7c7cc50245aeb57fd tree 02e7b931be922a71e82da5c9baf273ac5d2312d9 parent 07eeec0627e93a1a753c4df004a97a4d0a7b9ceb author Jack Morgenstein Tue, 15 Aug 2006 21:11:18 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:54 -0700 IB/mthca: Recover from catastrophic errors Trigger device remove and then add when a catastrophic error is detected in hardware. This, in turn, will cause a device reset, which we hope will recover from the catastrophic condition. Since this might interefere with debugging the root cause, add a module option to suppress this behaviour. Signed-off-by: Jack Morgenstein Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 07eeec0627e93a1a753c4df004a97a4d0a7b9ceb tree a64ef6da30f93a2443c8a3131e1cfc0d04c721d0 parent a70d059009f4a207e2a9c794f40fc8c870096d54 author Or Gerlitz Tue, 12 Sep 2006 09:03:33 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:54 -0700 RDMA/cma: Document rdma_destroy_id() function Clarify that rdma_destroy_id cancels outstanding asynchronous operations on the Associated id. Signed-off-by: Or Gerlitz Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit a70d059009f4a207e2a9c794f40fc8c870096d54 tree 80c8e31f8db32d1eb1974218886baa2c196d6ab0 parent c1a0b23bf477c2e1068905f4e2b5c3cee139e853 author Michael S. Tsirkin Mon, 28 Aug 2006 16:32:50 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:53 -0700 IB/cm: Do not track remote QPN in timewait state Do not track remote QPN in TimeWait state, since QP is not connected. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit c1a0b23bf477c2e1068905f4e2b5c3cee139e853 tree 68357e32e8b6542647f639da8ca3859b4cb3b59b parent 2439a6e65ff09729c3b4215f134dc5cd4e8a30c0 author Michael S. Tsirkin Mon, 21 Aug 2006 16:40:12 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:53 -0700 IB/sa: Require SA registration Require users to register with SA module, to prevent the sa_query module text from going away while an SA query callback is still running. Update all in-tree users for the new interface. Signed-off-by: Michael S. Tsirkin Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 2439a6e65ff09729c3b4215f134dc5cd4e8a30c0 tree a8c85db68ed2bc15be60e9a713ac7a73c5c40796 parent d81110285f7f6c07a0ce8f99a5ff158a647cd649 author Roland Dreier Fri, 22 Sep 2006 15:22:52 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:52 -0700 IPoIB: Refactor completion handling Split up ipoib_ib_handle_wc() into ipoib_ib_handle_rx_wc() and ipoib_ib_handle_tx_wc() to make the code easier to read. This will also help implement NAPI in the future. Signed-off-by: Roland Dreier commit d81110285f7f6c07a0ce8f99a5ff158a647cd649 tree 7ecbae2d81a7464114a7d57e1a7d0230aaa21071 parent e981f1d4b8288072ba7cf6b7141cd4aefb404383 author Erez Zilber Mon, 11 Sep 2006 12:26:33 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:52 -0700 IB/iser: Do not use FMR for a single dma entry sg Fast Memory Registration (fmr) is used to register for rdma an sg whose elements are not linearly sequential after dma mapping. The IB verbs layer provides an "all dma memory MR (memory region)" which can be used for RDMA-ing a dma linearly sequential buffer. Change the code to use the dma mr instead of doing fmr when dma mapping produces a single dma entry sg. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit e981f1d4b8288072ba7cf6b7141cd4aefb404383 tree b33851f7b985ea86c11a5e99c523fbcf97c12bd3 parent 8dfa0876d3dde5f9c1818a4c35caaabc3ddba78b author Erez Zilber Mon, 11 Sep 2006 12:24:00 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:51 -0700 IB/iser: fix some debug prints fix and add some debug prints related to iser handling of memory for rdma. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit 8dfa0876d3dde5f9c1818a4c35caaabc3ddba78b tree ca68e1f128305185c8cb807e15ab67b36b2be2a5 parent 8072ec2f8f6790df91e85d833e672c9c30a7ab3c author Erez Zilber Mon, 11 Sep 2006 12:22:30 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:51 -0700 IB/iser: make FMR "page size" be 4K and not PAGE_SIZE As iser is able to use at most one rdma operation for the execution of a scsi command, and registration of the sg associated with scsi command has its restrictions, the code checks if an sg is "aligned for rdma". Alignment for rdma is measured in "fmr page" units whose possible resolutions are different between HCAs and can be smaller, equal or bigger to the system page size. When the system page size is bigger than 4KB (eg the default with ia64 kernels) there a bigger chance that an sg would be aligned for rdma if the fmr page size is 4KB. Change the code to create FMR whose pages are of size 4KB and to take that into account when processing the sg. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit 8072ec2f8f6790df91e85d833e672c9c30a7ab3c tree 15866a5b44b5f199fea76f1b540c2a790203aad2 parent 777a71dd4d901f055967ddbd038d2a74ffce0eb8 author Erez Zilber Mon, 11 Sep 2006 12:20:54 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:50 -0700 IB/iser: Limit the max size of a scsi command Currently, the data length of a command coming down from scsi-ml is limited only by the size of its sg list (sg_tablesize). The max data length may be different for different page size values. By setting max_sectors, we limit the data length to max_sectors*512 bytes. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit 777a71dd4d901f055967ddbd038d2a74ffce0eb8 tree 88c05b9d52619a4881c12c752b55ed124f782fc0 parent 61a73c708f37295892176bc911b178278df6a091 author Erez Zilber Mon, 11 Sep 2006 12:19:17 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:49 -0700 IB/iser: fix a check of SG alignment for RDMA dma mapping may include a "compaction" of the sg associated with scsi command. Hence, the size of the maximal prefix of the SG which is aligned for rdma must be compared against the length of the dma mapped sg (mem->dma_nents) and not against the size of it before it was mapped (mem->size). Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit 61a73c708f37295892176bc911b178278df6a091 tree caa11f34a88a687f6699373f24bd93733b048f10 parent f94b533d091a42da92d908eb7b3f9ade1923f90d author Sean Hefty Fri, 01 Sep 2006 15:33:55 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:49 -0700 RDMA/cma: Protect against adding device during destruction Closes a window where address resolution can attach an rdma_cm_id to a device during destruction of the rdma_cm_id. This can result in the rdma_cm_id remaining in the device list after its memory has been freed. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit f94b533d091a42da92d908eb7b3f9ade1923f90d tree e8deed557c293bdb5eeaf8ca87ddda69e1cf3586 parent 07ebafbaaa72aa6a35472879008f5a1d1d469a0c author Tom Tucker Fri, 22 Sep 2006 15:22:48 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:48 -0700 RDMA/amso1100: Add driver for Ammasso 1100 RNIC Add a driver for the Ammasso 1100 gigabit ethernet RNIC. Signed-off-by: Tom Tucker Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 07ebafbaaa72aa6a35472879008f5a1d1d469a0c tree c42ed5c70e5bea1382f1cbde3f4a70d172e2f650 parent 922a8e9fb2e0711212badce47a41137e2ca04cb3 author Tom Tucker Thu, 03 Aug 2006 16:02:42 -0500 committer Roland Dreier Fri, 22 Sep 2006 15:22:47 -0700 RDMA: iWARP Core Changes. Modifications to the existing rdma header files, core files, drivers, and ulp files to support iWARP, including: - Hook iWARP CM into the build system and use it in rdma_cm. - Convert enum ib_node_type to enum rdma_node_type, which includes the possibility of RDMA_NODE_RNIC, and update everything for this. Signed-off-by: Tom Tucker Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 922a8e9fb2e0711212badce47a41137e2ca04cb3 tree 54af57ac9f2ddcaf0e6fdead4d9175eecd9e06e2 parent 3cd965646b7cb75ae84dd0daf6258adf20e4f169 author Tom Tucker Thu, 03 Aug 2006 16:02:40 -0500 committer Roland Dreier Fri, 22 Sep 2006 15:22:46 -0700 RDMA: iWARP Connection Manager. Add an iWARP Connection Manager (CM), which abstracts connection management for iWARP devices (RNICs). It is a logical instance of the xx_cm where xx is the transport type (ib or iw). The symbols exported are used by the transport independent rdma_cm module, and are available also for transport dependent ULPs. Signed-off-by: Tom Tucker Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 3cd965646b7cb75ae84dd0daf6258adf20e4f169 tree 85f078616af532d079fce34c8f307f9a4cb888af parent f06d26537559113207e4b73af6a22eaa5c5e9dc3 author Roland Dreier Fri, 22 Sep 2006 15:22:46 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:46 -0700 IB: Whitespace fixes Remove some trailing whitespace that has snuck in despite the best efforts of whitespace=error-all. Also fix a few other whitespace bogosities. Signed-off-by: Roland Dreier commit f06d26537559113207e4b73af6a22eaa5c5e9dc3 tree d5d33db61adc4070a4b4b0d4f903d3223299db7b parent 2b3e258e5dd1938e2708eb5354ad8ba056fe8154 author Sean Hefty Mon, 28 Aug 2006 15:15:18 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:45 -0700 IB/cm: Randomize starting comm ID Randomize the starting local comm ID to avoid getting a rejected connection due to a stale connection after a system reboot or reloading of the ib_cm. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 2b3e258e5dd1938e2708eb5354ad8ba056fe8154 tree fde0892c0d1de71584c6350eca6cc13d0107d845 parent 75ab13443e4575c00788ba9861105745b9dda05c author James Lentini Mon, 28 Aug 2006 15:12:04 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:44 -0700 IB/mad: Remove unused includes The ib_mad module does not use a kthread function, but mad_priv.h includes . mad_rmpp.c does not do any DMA-related stuff, but includes . Remove the unused includes. Signed-off-by: James Lentini Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 75ab13443e4575c00788ba9861105745b9dda05c tree f1244f0a1e819e2bf31ddef2e9cac5a349da2146 parent 76842405fca5f8b8e08d91558ecd3b922265034a author Sean Hefty Mon, 28 Aug 2006 15:10:32 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:44 -0700 IB/mad: Add support for dual-sided RMPP transfers. The implementation assumes that any RMPP request that requires a response uses DS RMPP. Based on the RMPP start-up scenarios defined by the spec, this should be a valid assumption. That is, there is no start-up scenario defined where an RMPP request is followed by a non-RMPP response. By having this assumption we avoid any API changes. In order for a node that supports DS RMPP to communicate with one that does not, RMPP responses assume a new window size of 1 if a DS ACK has not been received. (By DS ACK, I'm referring to the turn-around ACK after the final ACK of the request.) This is a slight spec deviation, but is necessary to allow communication with nodes that do not generate the DS ACK. It also handles the case when a response is sent after the request state has been discarded. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 76842405fca5f8b8e08d91558ecd3b922265034a tree a0a8940fd2306903251296eb4f1d37a16cacf234 parent c1f250c0b45cdfdd89b21f2b866f317439aa21de author Sean Hefty Mon, 28 Aug 2006 11:57:42 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:43 -0700 IB/cm: Use correct reject code for invalid GID Set the reject code properly when rejecting a request that contains an invalid GID. A suitable GID is returned by the IB CM in the additional reject information (ARI). This is a spec compliancy issue. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit c1f250c0b45cdfdd89b21f2b866f317439aa21de tree 5cc5fab7be988579743d896fab5a01864a2c0df1 parent 9e583b85c2a0215dc7f4427361b4f75fcc0316af author Sean Hefty Mon, 28 Aug 2006 11:55:52 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:42 -0700 IB/cm: Enable atomics along with RDMA reads Enable atomic operations along with RDMA reads if a local RDMA read/atomic depth is provided by the user. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 9e583b85c2a0215dc7f4427361b4f75fcc0316af tree 2ad47c07a32da31189fc5d017e757adab34154fc parent f6f76725b5ed8085c602b16bfd309c9957fb84c8 author Jack Morgenstein Mon, 28 Aug 2006 19:12:39 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:42 -0700 IB/mthca: Return correct number of bits for static rate in query_qp Incorrect number of bits was taken for static_rate field. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit f6f76725b5ed8085c602b16bfd309c9957fb84c8 tree d1784262a4239e7e17dc1262f2a4112561553639 parent b046a04e162dc7f468700a0817acda0321b2b3ae author Jack Morgenstein Mon, 28 Aug 2006 19:10:34 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:41 -0700 IB/mthca: Return port number for unconnected QPs in query_qp port_num was not being returned for unconnected QPs. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit b046a04e162dc7f468700a0817acda0321b2b3ae tree 47d7d08b9a79827125ce11ae83ed4f4c02e982a7 parent 30fc5c3130bdbc7cc051a2d6054ad38360d408a8 author Jack Morgenstein Mon, 28 Aug 2006 19:08:53 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:22:40 -0700 IB/mthca: Fix default static rate returned for Tavor in AV When default static rate is returned for Tavor, need to translate it to an ib rate value. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit 30fc5c3130bdbc7cc051a2d6054ad38360d408a8 tree 6928159aeed17f8a15ae705a0ce16551bef5811e parent e35d710d0c5b74bc9833d6a3791706bd577a3724 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:48 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:40 -0700 IB/ipath: control receive polarity inversion Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit e35d710d0c5b74bc9833d6a3791706bd577a3724 tree 3bb24378144082c7f521e83194d027914c65afbc parent d821f02a6ebed97e35e0bc7575452cfc6f9073cb author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:46 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:39 -0700 IB/ipath: fix return value from ipath_poll This stops the generic poll code from waiting for a timeout. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit d821f02a6ebed97e35e0bc7575452cfc6f9073cb tree a4457534d937843df8f15eb1a2f5c90ab3c46697 parent a78aa6fb156f9954562c9539aeb25dbec1ffca10 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:45 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:39 -0700 IB/ipath: allow SMA to be disabled This is useful for testing purposes. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit a78aa6fb156f9954562c9539aeb25dbec1ffca10 tree 45ce52f85ad0453f39d6f2add8c92f665f3577a6 parent 0b81e4f79af8322c7142701982f40d1431dedf19 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:44 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:38 -0700 IB/ipath: handle sq_sig_all field correctly Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 0b81e4f79af8322c7142701982f40d1431dedf19 tree 4d1161d8603471cbe8ece750980eb22767a91235 parent ca4ce383acfb05b8035453cdbbfd4f8ae36c7a69 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:43 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:38 -0700 IB/ipath: put a limit on the number of QPs that can be created Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit ca4ce383acfb05b8035453cdbbfd4f8ae36c7a69 tree c18fe8810822fe7a6cb01d66ce7ab05a7f29264e parent fc8cf8cdfc3ce328c577b18ebcd60a5595f2a283 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:42 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:37 -0700 IB/ipath: validate path_mig_state properly Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit fc8cf8cdfc3ce328c577b18ebcd60a5595f2a283 tree 55f4240fd9eca1b3d3545881e9cce9c575ddbb7c parent ff0b8597ec3e7db6b37130a195cb3d673dafea27 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:41 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:36 -0700 IB/ipath: be more strict about testing the modify QP verb Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit ff0b8597ec3e7db6b37130a195cb3d673dafea27 tree 84d54a7e32a01e8c2cd536a6f88e8f5e8bb30748 parent 525d0ca1d452ed336c1d907fb20c104467a8a47b author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:40 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:36 -0700 IB/ipath: add serial number to hardware freeze error message Also added the word "Hardware" after "Fatal" to make it more obvious that it's hardware, not software. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 525d0ca1d452ed336c1d907fb20c104467a8a47b tree 8c6e6b649f7b7ce988ac697c58d60e36ab16dc8b parent 092260b8f966ebe0742045416082e9a81bd971d1 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:39 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:35 -0700 IB/ipath: support new QLogic product naming scheme This patch only renames files, fixes product names, and updates comments. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 092260b8f966ebe0742045416082e9a81bd971d1 tree bcd29243f82cfcd6d69d7ec761a7709ae859d509 parent eae33d47a797e159306567643284a98ae7428ec4 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:38 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:35 -0700 IB/ipath: account for attached QPs correctly Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit eae33d47a797e159306567643284a98ae7428ec4 tree 8a878a2e65f8a809d25c6c8ddd22c42073f7867c parent 98341f261893acd7bc5abee5ddc35337ef49e457 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:37 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:34 -0700 IB/ipath: do not allow use of CQ entries with invalid counts Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 98341f261893acd7bc5abee5ddc35337ef49e457 tree 44393b654275fbb4324da3b6622808e36f6c3dbd parent 32c0a26c8f91dbc2797175c2bdff42b54f66c71d author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:36 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:34 -0700 IB/ipath: add new minor device to allow sending of diag packets Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 32c0a26c8f91dbc2797175c2bdff42b54f66c71d tree ba090ead26ea5738976fa533ab173a69e8711095 parent 0fd41363e0785247b7c19127318abc8b5eacc86b author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:35 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:33 -0700 IB/ipath: trivial cleanups Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 0fd41363e0785247b7c19127318abc8b5eacc86b tree bf71d78bd12008367e1c0293280a50a9628133f3 parent b55f4f06c834a67f949a5219c5f97ffafa240989 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:34 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:32 -0700 IB/ipath: remove stale references to userspace SMA When we first submitted a userspace subnet management agent, it was rejected, so we left it out of the final driver submission. This patch removes a number of vestigial references to it. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit b55f4f06c834a67f949a5219c5f97ffafa240989 tree f7fb3095a8e7e09370036ad9d669925897d5f0c4 parent 34b2aafea38efdf02cd8107a6e1057e2a297c447 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:33 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:31 -0700 IB/ipath: simplify debugging code after ipath_core and ib_ipath merger Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 34b2aafea38efdf02cd8107a6e1057e2a297c447 tree fc800510f947696156df70cf6608f8283bab868c parent b1c1b6a30eac88665a35a207cc5e6233090b9d65 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:32 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:31 -0700 IB/ipath: simplify layering code A lot of ipath layer code was only called in one place. Now that the ipath_core and ib_ipath drivers are merged, it's more sensible to simply inline the simple stuff that the layer code was doing. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit b1c1b6a30eac88665a35a207cc5e6233090b9d65 tree 7f2351404d45a48688e3cc2be355d2fb016e4b18 parent 367fe711c5dc85dbc3265cf01e34d4d6fbd55f06 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:31 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:30 -0700 IB/ipath: merge ipath_core and ib_ipath drivers There is little point in keeping the two drivers separate, so we are merging them. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 367fe711c5dc85dbc3265cf01e34d4d6fbd55f06 tree ff3b35b84371afd5fbb2b13ea5657bbda71e73df parent ba11203a11835737df980ef3dd3bd8325b9cc94e author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:30 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:29 -0700 IB/ipath: drop requirement that PIO buffers be mmaped write-only Some userlands try to mmap these pages read-write, so accommodate them. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit ba11203a11835737df980ef3dd3bd8325b9cc94e tree 67c444e4989fcd7e883d0be2d495817b9767e5c6 parent 8e280d94e29af67035637fb957daba7ae0d23583 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:29 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:28 -0700 IB/ipath: fix handling of kpiobufs Change comment: no longer imply that user can set ipath_kpiobufs to zero. Actually set ipath_kpiobufs from parameter. Previously only altered per-device ipath_lastport_piobuf, which was over-written in chip init. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 8e280d94e29af67035637fb957daba7ae0d23583 tree eb95b5a5f8eecee6b8f0b0aacb5da14a05d514fa parent c27fef26271d352b5546c33239edeb0dcb4fc0cc author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:28 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:27 -0700 IB/ipath: fix for crash on module unload, if cfgports < portcnt Allocate enough pointers for all possible ports, to avoid problems in cleanup/unload. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit c27fef26271d352b5546c33239edeb0dcb4fc0cc tree 3dc284784c4218c80d7806c05324be1599d6c6c6 parent eb9dc6f48dc7537ce53163109625bd992150e0cf author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:27 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:27 -0700 IB/ipath: lock resource limit counters correctly Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit eb9dc6f48dc7537ce53163109625bd992150e0cf tree c452c01196bc47b266faec728da87ac5539316e4 parent 373d9915803aebbbf7fd3841efd9dac31c32e148 author Bryan O'Sullivan Fri, 25 Aug 2006 11:24:26 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:26 -0700 IB/ipath: More changes to support InfiniPath on PowerPC 970 systems Ordering of writethrough store buffers needs to be forced, and we need to use ifdef to get writethrough behavior to InfiniPath buffers, because there is no generic way to specify that at this time (similar to code in char/drm/drm_vm.c and block/z2ram.c). Signed-off-by: John Gregor Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 373d9915803aebbbf7fd3841efd9dac31c32e148 tree bd0b05d5e78eab4471bc4d623a880013693077ea parent 9bc57e2d19db4da81c1150120658cc3658a99ed4 author Ralph Campbell Fri, 22 Sep 2006 15:22:26 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:26 -0700 IB/ipath: Performance improvements via mmap of queues Improve performance of userspace post receive, post SRQ receive, and poll CQ operations for ipath by allowing userspace to directly mmap() receive queues and completion queues. This eliminates the copying between userspace and the kernel in the data path. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier commit 9bc57e2d19db4da81c1150120658cc3658a99ed4 tree 0047863da8629f79d59f50d243ad7d6c01a5ec5c parent 64f817ba98095156149ba5991592d5d039f6da74 author Ralph Campbell Fri, 11 Aug 2006 14:58:09 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:25 -0700 IB/uverbs: Pass userspace data to modify_srq and modify_qp methods Pass a struct ib_udata to the low-level driver's ->modify_srq() and ->modify_qp() methods, so that it can get to the device-specific data passed in by the userspace driver. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier commit 64f817ba98095156149ba5991592d5d039f6da74 tree 72aaa87275033036bbf0e886c1cb7cf1e9d38bb5 parent fab97220c9e409a98b1956ba677ddd2dd43b0b95 author Ralph Campbell Fri, 22 Sep 2006 15:22:24 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:24 -0700 IB/uverbs: Allow resize CQ operation to return driver-specific data Add a ib_uverbs_resize_cq_resp.driver_data field so that low-level drivers can return data from a resize CQ operation to userspace. Have ib_uverbs_resize_cq() only copy the cqe field, to avoid having to bump the userspace ABI. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier commit fab97220c9e409a98b1956ba677ddd2dd43b0b95 tree f4fd0456b758a651eb7e774c550641e177a9b333 parent ded7f1a16d50527359be02f8b04f9ba56bc923e6 author Heiko J Schick Fri, 22 Sep 2006 15:22:22 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:22:22 -0700 IB/ehca: Add driver for IBM eHCA InfiniBand adapters Add a driver for IBM GX bus InfiniBand adapters, which are usable with some pSeries/System p systems. Signed-off-by: Heiko J Schick Signed-off-by: Roland Dreier commit 3b9f9a1c3903b64c38505f9fed3bb11e48dbc931 tree 0a508ef9ea7f9795d28333204c0a40c843b81e50 parent 55ebaef1d5db9c1c76ba01a87fd986db5dee550d author Noriaki TAKAMIYA Fri, 22 Sep 2006 14:45:56 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:29 -0700 [IPV6] ADDRCONF: Mobile IPv6 Home Address support. IFA_F_HOMEADDRESS is introduced for Mobile IPv6 Home Addresses on Mobile Node. The IFA_F_HOMEADDRESS flag should be set for Mobile IPv6 Home Addresses for 2 purposes. 1) We need to check this on receipt of Type 2 Routing Header (RFC3775 Secion 6.4), 2) We prefer Home Address(es) in source address selection (RFC3484 Section 5 Rule 4). Signed-off-by: Noriaki TAKAMIYA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 55ebaef1d5db9c1c76ba01a87fd986db5dee550d tree f06df5c635a1313ae6628d15a784076e5929c496 parent fc26d0abd5afd2b5268a7dbdbf8be1095ce5703e author Noriaki TAKAMIYA Fri, 22 Sep 2006 14:45:27 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:28 -0700 [IPV6] ADDRCONF: Allow non-DAD'able addresses. IFA_F_NODAD flag, similar to IN6_IFF_NODAD in BSDs, is introduced to skip DAD. This flag should be set to Mobile IPv6 Home Address(es) on Mobile Node because DAD would fail if we should perform DAD; our Home Agent protects our Home Address(es). Signed-off-by: Noriaki TAKAMIYA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit fc26d0abd5afd2b5268a7dbdbf8be1095ce5703e tree bfb7beca3f0286920e5518541e10c380a6fb8ac6 parent 8814c4b533817df825485ff32ce6ac406c3a54d1 author YOSHIFUJI Hideaki Fri, 22 Sep 2006 14:44:53 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:27 -0700 [IPV6] NDISC: Fix is_router flag setting. We did not send appropriate IsRouter flag if the forwarding setting is positive even value. Let's give 1/0 value to ndisc_send_na(). Also, existing users of ndisc_send_na() give 0/1 to override, we can omit redundant operation in that function. Bug hinted by Nicolas Dichtel . Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 8814c4b533817df825485ff32ce6ac406c3a54d1 tree b72cc3513e7dc4b60e98c7ddebe76bca188f88fc parent fbea49e1e2404baa2d88ab47e2db89e49551b53b author YOSHIFUJI Hideaki Fri, 22 Sep 2006 14:44:24 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:26 -0700 [IPV6] ADDRCONF: Convert addrconf_lock to RCU. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit fbea49e1e2404baa2d88ab47e2db89e49551b53b tree 7e11746b350048e04867a9f67b843057428c2ef0 parent 62dd93181aaa1d5a501a9cebcb254f44b8a48af7 author YOSHIFUJI Hideaki Fri, 22 Sep 2006 14:43:49 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:25 -0700 [IPV6] NDISC: Add proxy_ndp sysctl. We do not always need proxy NDP functionality even we enable forwarding. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 62dd93181aaa1d5a501a9cebcb254f44b8a48af7 tree b19cc7f630d3fecccc338f1c5a75000a4485565a parent 5f3e6e9e19f50a6910aec2dbd479187aabba04b7 author Ville Nuorvala Fri, 22 Sep 2006 14:43:19 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:24 -0700 [IPV6] NDISC: Set per-entry is_router flag in Proxy NA. We have sent NA with router flag from the node-wide forwarding configuration. This is not appropriate for proxy NA, and it should be set according to each proxy entry's configuration. This is used by Mobile IPv6 home agent to support physical home link in acting as a proxy router for mobile node which is not a router, for example. Based on MIPL2 kernel patch. Signed-off-by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit 5f3e6e9e19f50a6910aec2dbd479187aabba04b7 tree 872c70c3012701ebae6d7f1861894f9d0e634817 parent 74553b09dcd9194cbda737016f0b89f245145670 author Ville Nuorvala Fri, 22 Sep 2006 14:42:46 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:23 -0700 [IPV6] NDISC: Avoid updating neighbor cache for proxied address in receiving NA. This aims at proxying router not updating neighbor cache entry for proxied address when it receives NA because either the proxied node is off link or it has already sent a NA to the proxied router. Based on MIPL2 kernel patch. Signed-off-by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit 74553b09dcd9194cbda737016f0b89f245145670 tree 75c131a859fa6152dd62913617bc8225f54c5b93 parent e21e0b5f19ac7835a244c2016f7ed726f971b3e9 author Ville Nuorvala Fri, 22 Sep 2006 14:42:18 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:22 -0700 [IPV6]: Don't forward packets to proxied link-local address. Proxying router can't forward traffic sent to link-local address, so signal the sender and discard the packet. This behavior is clarified by Mobile IPv6 specification (RFC3775) but might be required for all proxying router. Based on MIPL2 kernel patch. Signed-off-by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit e21e0b5f19ac7835a244c2016f7ed726f971b3e9 tree 93c12a003ed5a86caf0fe28ade960da219835cd3 parent 4c5de695cf7f71c85ad8cfff509f6475b8bd4d27 author Ville Nuorvala Fri, 22 Sep 2006 14:41:44 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:21 -0700 [IPV6] NDISC: Handle NDP messages to proxied addresses. It is required to respond to NDP messages sent directly to the "target" unicast address. Proxying node (router) is required to handle such messages. To achieve this, check if the packet in forwarding patch is NDP message. With this patch, the proxy neighbor entries are always looked up in forwarding path. We may want to optimize further. Based on MIPL2 kernel patch. Signed-off-by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit 4c5de695cf7f71c85ad8cfff509f6475b8bd4d27 tree 5175e20ab9244b4a0961ae98d85c8823956aad77 parent fd5e3befa405ea64d4db6b393b821644bf963c57 author Patrick McHardy Wed, 20 Sep 2006 12:11:30 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:20 -0700 [NETFILTER]: PPTP conntrack: fix another GRE keymap leak When the master PPTP connection times out while still having unfullfilled expectations (and a GRE keymap entry) associated with it, the keymap entry is not destroyed. Add a destroy callback to struct ip_conntrack_helper and use it to destroy PPTP siblings when the master is destroyed. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit fd5e3befa405ea64d4db6b393b821644bf963c57 tree 8e8519eb437b20a457c0c8897269216c1fa5622a parent 62fbe9c82b20197a4f9c54f7add5d368418ba277 author Patrick McHardy Wed, 20 Sep 2006 12:11:12 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:19 -0700 [NETFILTER]: PPTP conntrack: fix GRE keymap leak When destroying the GRE expectations without having seen the GRE connection the keymap entry is not freed, leading to a memory leak and, in case of a following call within the same session, failure during expectation setup. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 62fbe9c82b20197a4f9c54f7add5d368418ba277 tree 8dac2b3d2e0fe0bced40b4c12656070023eb4ac2 parent 750a58423309b56751076329e9edf61b93213e0f author Patrick McHardy Wed, 20 Sep 2006 12:10:52 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:18 -0700 [NETFILTER]: PPTP conntrack: fix PPTP_IN_CALL message types Fix incorrectly used message types and call IDs: - PPTP_IN_CALL_REQUEST (PAC->PNS) contains a PptpInCallRequest (icreq) message and the PAC call ID - PPTP_IN_CALL_REPLY (PNS->PAC) contains a PptpInCallReply (icack) message and the PNS call ID Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 750a58423309b56751076329e9edf61b93213e0f tree 8b57331ec4cec74b148a8189c265c167d1037001 parent 87a0117afdfe64473a6c802501bc15aee145ebb8 author Patrick McHardy Wed, 20 Sep 2006 12:10:37 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:17 -0700 [NETFILTER]: PPTP conntrack: check call ID before changing state For rejected calls the state is set to PPTP_CALL_NONE even for non-matching call ids. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 87a0117afdfe64473a6c802501bc15aee145ebb8 tree 7c31d2ade86cc3de46a9256aaf707d7a838df79a parent 4c651756d502e72a68b0bc6fb20bb18c68785227 author Patrick McHardy Wed, 20 Sep 2006 12:10:21 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:16 -0700 [NETFILTER]: PPTP conntrack: clean up debugging cruft Also make sure not to hand packets received in an invalid state to the NAT helper since it will mangle the packet with invalid data. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 4c651756d502e72a68b0bc6fb20bb18c68785227 tree 049a27ab3d5e8e48d9d86bffbb5125e90e903a17 parent a1073406a124c1d3b33a0f06bfb8078a9ddd1985 author Patrick McHardy Wed, 20 Sep 2006 12:10:06 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:15 -0700 [NETFILTER]: PPTP conntrack: consolidate header parsing Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit a1073406a124c1d3b33a0f06bfb8078a9ddd1985 tree f00172adc188074a998d39df64f258c1048d6f73 parent cf9f81523ef3e95d9f222c896d266e4562999150 author Patrick McHardy Wed, 20 Sep 2006 12:09:51 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:14 -0700 [NETFILTER]: PPTP conntrack: consolidate header size checks Also make sure not to pass undersized messages to the NAT helper. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit cf9f81523ef3e95d9f222c896d266e4562999150 tree 6fa5175b120b150a28e495a8b87704bb139bbb69 parent 857c06da2ba2e00b81677c2f6740048d87da0207 author Patrick McHardy Wed, 20 Sep 2006 12:09:34 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:13 -0700 [NETFILTER]: PPTP conntrack: simplify expectation handling Remove duplicated expectation handling in the NAT helper and simplify the remains in the conntrack helper. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 857c06da2ba2e00b81677c2f6740048d87da0207 tree 234bfa8f2ce443606ad7f5f4e3989e4b25a5db98 parent 6013c0a13e335674a783215e182c367406294392 author Patrick McHardy Wed, 20 Sep 2006 12:09:19 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:12 -0700 [NETFILTER]: PPTP conntrack: remove unnecessary cid/pcid header pointers Just the values are needed, not the memory locations. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 6013c0a13e335674a783215e182c367406294392 tree a090b1899c7b96df754df06c537659277328db78 parent 5256f663a0228af9bf69ba74ad9f0928f35713f7 author Patrick McHardy Wed, 20 Sep 2006 12:08:56 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:11 -0700 [NETFILTER]: PPTP conntrack: fix header definitions Fix a few header definitions to match RFC2637. Most importantly the PptpOutCallRequest header included an invalid padding field and a size check was disabled because of this. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 5256f663a0228af9bf69ba74ad9f0928f35713f7 tree 4b317f7b80f001e5dc2004eca4eb6e0fa4acb5d1 parent a1ad1deed5bf6fa06f2213b7f1a794de4cf791a6 author Patrick McHardy Wed, 20 Sep 2006 12:08:41 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:10 -0700 [NETFILTER]: PPTP conntrack: remove more dead code The calculated sequence numbers are not used for anything. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit a1ad1deed5bf6fa06f2213b7f1a794de4cf791a6 tree 5f5895cdb3f19f9137b644f684bb7bc1cb138345 parent 955b944293dd4c931ec866ebe19a6b2463b8f9a0 author Patrick McHardy Wed, 20 Sep 2006 12:08:23 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:09 -0700 [NETFILTER]: PPTP conntrack: remove dead code The call ID in reply packets is never changed, remove the code. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 955b944293dd4c931ec866ebe19a6b2463b8f9a0 tree 2b3053116a8585810977383c3d28c60c0f7d0fb5 parent edd5a329cf69c112882e03c8ab55e985062a5d2a author Patrick McHardy Wed, 20 Sep 2006 12:08:03 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:08 -0700 [NETFILTER]: PPTP conntrack: get rid of unnecessary byte order conversions The conntrack structure contains the call ID in host byte order for no reason, get rid of back and forth conversions. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit edd5a329cf69c112882e03c8ab55e985062a5d2a tree bbaad0b5ccb74b6eff9a81ed6b6df99dfb674a0f parent 127f15dd659b20e722561ff8c86dc058e1a72323 author Patrick McHardy Wed, 20 Sep 2006 12:07:39 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:07 -0700 [NETFILTER]: PPTP conntrack: fix whitespace errors Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 127f15dd659b20e722561ff8c86dc058e1a72323 tree 1a197ff0866d6984899e793d214c19ce565cafb6 parent 02c63cf777c331121bfb6e9c1440a9835ad2f2a8 author Patrick McHardy Wed, 20 Sep 2006 12:07:23 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:06 -0700 [NETFILTER]: ipt_hashlimit: add compat conversion functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 02c63cf777c331121bfb6e9c1440a9835ad2f2a8 tree ff1dd6d4bc9a84264bbddee6792c5b758194eb66 parent 7ce975b9da93b46dbf6ba70a1b4751bec211d079 author Patrick McHardy Wed, 20 Sep 2006 12:07:06 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:06 -0700 [NETFILTER]: xt_limit: add compat conversion functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 7ce975b9da93b46dbf6ba70a1b4751bec211d079 tree fac49f960fff7ac2bfbfec200f30fe1a377d48cd parent f1eda05386ade8dad4e8e9b48ecbd9432b6739d9 author Patrick McHardy Wed, 20 Sep 2006 12:06:40 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:05 -0700 [NETFILTER]: xt_CONNMARK: add compat conversion functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit f1eda05386ade8dad4e8e9b48ecbd9432b6739d9 tree 956400d02fc018dbe428b63208a891ec1fb2d8e4 parent be7263b7b72ed9d5d25958f2b71e77e889e4845a author Patrick McHardy Wed, 20 Sep 2006 12:06:25 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:04 -0700 [NETFILTER]: xt_connmark: add compat conversion functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit be7263b7b72ed9d5d25958f2b71e77e889e4845a tree 1dbe32317083bd80b1b7b805b3e3889a86f1f302 parent bc80b656657251fc936d2d93fc70d5566c1c7d29 author Patrick McHardy Wed, 20 Sep 2006 12:06:10 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:03 -0700 [NETFILTER]: xt_MARK: add compat conversion functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit bc80b656657251fc936d2d93fc70d5566c1c7d29 tree 3b781d832a742a57beda451e4c05a73b31b5d055 parent 9fa492cdc160cd27ce1046cb36f47d3b2b1efa21 author Patrick McHardy Wed, 20 Sep 2006 12:05:54 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:02 -0700 [NETFILTER]: xt_mark: add compat conversion functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 9fa492cdc160cd27ce1046cb36f47d3b2b1efa21 tree 6ecb2a92a87523af2a1f7236f0bca456ca0677f3 parent 79030ed07de673e8451a03aecb9ada9f4d75d491 author Patrick McHardy Wed, 20 Sep 2006 12:05:37 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:01 -0700 [NETFILTER]: x_tables: simplify compat API Split the xt_compat_match/xt_compat_target into smaller type-safe functions performing just one operation. Handle all alignment and size-related conversions centrally in these function instead of requiring each module to implement a full-blown conversion function. Replace ->compat callback by ->compat_from_user and ->compat_to_user callbacks, responsible for converting just a single private structure. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 79030ed07de673e8451a03aecb9ada9f4d75d491 tree 4ba8bd843c8bc95db0ea6877880b73d06da620e5 parent bec71b162747708d4b45b0cd399b484f52f2901a author Patrick McHardy Wed, 20 Sep 2006 12:05:08 -0700 committer David S. Miller Fri, 22 Sep 2006 15:20:00 -0700 [NETFILTER]: ip_tables: revision support for compat code Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit bec71b162747708d4b45b0cd399b484f52f2901a tree 50f93845e00c9aed07383b9c9b003a2749672fd4 parent 1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056 author Patrick McHardy Wed, 20 Sep 2006 12:04:08 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:59 -0700 [NETFILTER]: ip_tables: fix module refcount leaks in compat error paths Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1192e403e9ea2dc23bbbe2b4fe9bdbc47e8c6056 tree 5554ab529123500558637dc39cf14247e02a41cc parent c1fe3ca5106d9568791433fa6c7f27e71ac69e1b author Brian Haley Wed, 20 Sep 2006 12:03:46 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:58 -0700 [NETFILTER]: make some netfilter globals __read_mostly Signed-off-by: Brian Haley Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit c1fe3ca5106d9568791433fa6c7f27e71ac69e1b tree e3a00c265b70caadc7a6b8a17aa82491e354e31e parent 71cd83a8bde61612b277fd5bf91503ac1ad61e23 author George Hansper Wed, 20 Sep 2006 12:03:23 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:57 -0700 [NETFILTER]: TCP conntrack: improve dead connection detection Don't count window updates as retransmissions. Signed-off-by: George Hansper Signed-off-by: Patrick McHardy commit 71cd83a8bde61612b277fd5bf91503ac1ad61e23 tree 77d425753349dbc3e0cf4e34e3065b5a3dcc4a75 parent 7cf73936fe6bb9b027b75fd8fa3c634fe74843d3 author Alexey Dobriyan Wed, 20 Sep 2006 12:02:44 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:56 -0700 [NETFILTER]: xt_policy: remove dups in .family sparse "defined twice" warning Signed-off-by: Alexey Dobriyan Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 7cf73936fe6bb9b027b75fd8fa3c634fe74843d3 tree 3fd047eb700ff11ddaff1a91bef478175c4e8c3b parent ca39df6cdfbe2ea210e31117f5d469576cfe9008 author Patrick McHardy Wed, 20 Sep 2006 12:02:21 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:55 -0700 [NETFILTER]: ip6t_HL: remove write-only variable Noticed by Alexey Dobriyan Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit ca39df6cdfbe2ea210e31117f5d469576cfe9008 tree fd6569e94a28ac9b654fd009918c0e82775ffae8 parent 5251e2d2125407bbff0c39394a4011be9ed8b5d0 author Patrick McHardy Wed, 20 Sep 2006 12:01:34 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:54 -0700 [NETFILTER]: ipt_TTL: fix checksum update bug Fix regression introduced by the incremental checksum patches. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 5251e2d2125407bbff0c39394a4011be9ed8b5d0 tree 3dda0aeb90d80a2ddd0e7a4215bfe9eaa8209033 parent 01f348484dd8509254d045e3ad49029716eca6a1 author Pablo Neira Ayuso Wed, 20 Sep 2006 12:01:06 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:54 -0700 [NETFILTER]: conntrack: fix race condition in early_drop On SMP environments the maximum number of conntracks can be overpassed under heavy stress situations due to an existing race condition. CPU A CPU B atomic_read() ... early_drop() ... ... atomic_read() allocate conntrack allocate conntrack atomic_inc() atomic_inc() This patch moves the counter incrementation before the early drop stage. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 01f348484dd8509254d045e3ad49029716eca6a1 tree 7a3f6d3bc775298bdc4b29749c34f18ffd379ee9 parent 90d47db4a06f93f7339618b2a4f0cb032ef8d6d5 author Pablo Neira Ayuso Wed, 20 Sep 2006 12:00:45 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:52 -0700 [NETFILTER]: ctnetlink: simplify the code to dump the conntrack table Merge the bits to dump the conntrack table and the ones to dump and zero counters in a single piece of code. This patch does not change the default behaviour if accounting is not enabled. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 90d47db4a06f93f7339618b2a4f0cb032ef8d6d5 tree 5bc69de31502801f3526577775e90225a43a0ff2 parent 9123de2c043996050bacf77031cad845f5976f5d author Dmitry Mishin Wed, 20 Sep 2006 12:00:21 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:51 -0700 [NETFILTER]: x_tables: small check_entry & module_refcount cleanup While standard_target has target->me == NULL, module_put() should be called for it as for others, because there were try_module_get() before. Signed-off-by: Dmitry Mishin Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 9123de2c043996050bacf77031cad845f5976f5d tree f6b20a74b75cca066d6ba6837d57fa82efe2a017 parent 57dab5d0bfee21663ed20222b4cedeb0655ba1f3 author Patrick McHardy Wed, 20 Sep 2006 11:59:42 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:51 -0700 [NETFILTER]: ip6table_mangle: reroute when nfmark changes in NF_IP6_LOCAL_OUT Now that IPv6 supports policy routing we need to reroute in NF_IP6_LOCAL_OUT when the mark value changes. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 57dab5d0bfee21663ed20222b4cedeb0655ba1f3 tree adb83bae14ed15f1dd196577c4ab1462325bc8df parent ecb70c95c45ece0935b076295388267f6d8db65c author Patrick McHardy Wed, 20 Sep 2006 11:59:25 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:50 -0700 [NETFILTER]: xt_limit: don't reset state on unrelated rule updates The limit match reinitializes its state whenever the ruleset changes, which means it will forget about previously used credits. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit ecb70c95c45ece0935b076295388267f6d8db65c tree 51677f5b2db693951eb06587ab20732739d01532 parent 2be344c4461d29b99113f62fa91c5ceab9997329 author Patrick McHardy Wed, 20 Sep 2006 11:59:06 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:49 -0700 [NETFILTER]: ipt_TCPMSS: misc cleanup - remove debugging cruft - remove printk for reallocation failures - remove unused addition Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 2be344c4461d29b99113f62fa91c5ceab9997329 tree d543156b5811e9577384e76d02417826b82e8155 parent 68e1f188de535865d4543bae92d168c007857e7b author Patrick McHardy Wed, 20 Sep 2006 11:58:50 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:48 -0700 [NETFILTER]: ipt_TCPMSS: remove impossible condition Every skb must have a dst_entry at this point. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 68e1f188de535865d4543bae92d168c007857e7b tree 78f38adad0eb1bd6325d0c1744404d58bc355ada parent 50b9f1d509eb998db73cd769c9511186474f566e author Patrick McHardy Wed, 20 Sep 2006 11:58:35 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:47 -0700 [NETFILTER]: ipt_TCPMSS: reformat - fix whitespace error - break lines at 80 characters - reformat some expressions to be more readable Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 50b9f1d509eb998db73cd769c9511186474f566e tree 6d69634fbf04b97426fe5cbaa9380c81ecb94eae parent df0933dcb027e156cb5253570ad694b81bd52b69 author Patrick McHardy Wed, 20 Sep 2006 11:58:17 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:46 -0700 [NETFILTER]: xt_conntrack: clean up overly long lines Also fix some whitespace errors and use the NAT bits instead of deriving the state manually. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit df0933dcb027e156cb5253570ad694b81bd52b69 tree 48588f78dfda69f737b5ccfff02787ca0dad6036 parent 1bf38a36b6a0e810dafae048fdbb999e587f0f2f author Patrick McHardy Wed, 20 Sep 2006 11:57:53 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:45 -0700 [NETFILTER]: kill listhelp.h Kill listhelp.h and use the list.h functions instead. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1bf38a36b6a0e810dafae048fdbb999e587f0f2f tree 73578ff692770de7064f3a4beb3bd2749c8dff51 parent c55e2f4997a104d66b59bdf1aa8ab125d09ae00a author Patrick McHardy Wed, 20 Sep 2006 11:57:09 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:44 -0700 [NETFILTER]: remove unused include file Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit c55e2f4997a104d66b59bdf1aa8ab125d09ae00a tree 51c92b1085e5a3067a14386c0b449ac33036bb7a parent 593f16aa627d61da447c76ee5a159450174627f6 author Al Viro Tue, 19 Sep 2006 13:23:19 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:43 -0700 [IPV4]: ipip and ip_gre encapsulation bugs Handling of ipip and ip_gre ICMP error relaying is b0rken; it accesses 8bit field + 3 reserved octets as host-endian 32bit, does comparison, subtraction and stuffs the result back. That breaks on big-endian. Fixed, made endian-clean. [ Note that this effected code is permanently commented out with and ifdef, so this error couldn't actually cause problems for anyone. -DaveM ] Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 593f16aa627d61da447c76ee5a159450174627f6 tree bad929ddf4eae76009c86e96e06cf31d1cd36a18 parent 374bcf32c86e1b56eab832bbb6b21e636707eab6 author Andrea Bittau Tue, 19 Sep 2006 13:15:33 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:42 -0700 [DCCP] CCID2: Add helper functions for changing important CCID2 state Introduce methods which manipulate interesting congestion control state such as pipe and rtt estimate. This is useful for people wishing to monitor the variables of CCID and instrument the code [perhaps using Kprobes]. Personally, I am a fan of encapsulation---that justifies this change =D. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 374bcf32c86e1b56eab832bbb6b21e636707eab6 tree c813985a0736740c683d841010b9317db0a2b1ee parent 07978aabd52ce67f59971872c80f76d6e3ca18ae author Andrea Bittau Tue, 19 Sep 2006 13:14:43 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:41 -0700 [DCCP] CCID2: Halve cwnd once upon multiple losses in a single RTT When multiple losses occur in one RTT, the window should be halved only once [a single "congestion event"]. This is now implemented, although not perfectly. Slightly changed the interface for changing the cwnd: pass hctx instead of dp. This is required in order to allow for change_cwnd to be called from _init(). Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 07978aabd52ce67f59971872c80f76d6e3ca18ae tree 30b878674d4cf147cc6a0e91ff953298bc07b8e2 parent 8d424f6ca2d02026dadff409770639d720375afb author Andrea Bittau Tue, 19 Sep 2006 13:13:37 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:40 -0700 [DCCP] CCID2: Allocate seq records on demand Allocate more sequence state on demand. Each time a packet is sent out by CCID2, a record of it needs to be kept. This list of records grows proportionally to cwnd. Previously, the length of this list was hardcored and therefore the cwnd could only grow to this value (of 128). Now, records are allocated on demand as necessary---cwnd may grow as it wishes. The exceptional case of when memory is not available is not handled gracefully. Perhaps, cwnd should be capped at that point. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 8d424f6ca2d02026dadff409770639d720375afb tree 5132c78f1e1aec21b9d264e416c490c4c7a119df parent 446dec30c7f305ed1bb0092b0a8d9367d842a33f author Andrea Bittau Tue, 19 Sep 2006 13:12:44 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:39 -0700 [DCCP] CCID2: Add Kconfig option for CCID2 debug Allow the user to choose whether or not to enable CCID2 debugging via Kconfig. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 446dec30c7f305ed1bb0092b0a8d9367d842a33f tree 91c7b8e94e973279974f55732b4b37426a3da2df parent 69263bcfb5016bc3bdd099607a4232cba06f8491 author Andrea Bittau Tue, 19 Sep 2006 13:10:11 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:39 -0700 [DCCP] CCID2: Tell DCCP to quickly check whether cwnd is available If not enough cwnd is available, tell the sender to check again as soon as possible. This will increase CPU utilization (polling frequently for cwnd) but will improve network performance. That is, the sender will need to wait less before detecting the increase of cwnd. A better architecture would be for the CCID to call-back (or dequeue) from DCCP when it is able to transmit traffic -- not the other way around as it currently occurs. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 69263bcfb5016bc3bdd099607a4232cba06f8491 tree 0d147c53de267fec3055bd5cb11a24ce4c936f08 parent d458c25ce24ce00ea547e9976e293e7835416253 author Adrian Bunk Fri, 22 Sep 2006 14:28:11 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:13 -0700 [ATM]: proper prototypes in net/atm/mpc.h (and reduce ifdef clutter) Signed-off-by: Adrian Bunk Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit d458c25ce24ce00ea547e9976e293e7835416253 tree b15e036537270aa0f70c390556aaa483702fd326 parent 29651cda97b0a9e4ac0fbeb5ea731a9909f0f128 author Andrea Bittau Tue, 19 Sep 2006 13:07:20 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:11 -0700 [DCCP] CCID2: Initialize ssthresh to infinity Initialize the slow-start threshold to infinity. This way, upon connection initiation, slow-start will be exited only upon a packet loss. This patch will allow connections to quickly gain speed. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 29651cda97b0a9e4ac0fbeb5ea731a9909f0f128 tree 3b6002e4fa3bdf7d233b8d46654effe9f816d505 parent 4a0a50fb43912b4a593d2416c507a198fe607a6d author Andrea Bittau Tue, 19 Sep 2006 13:06:46 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:10 -0700 [DCCP] CCID2: Fix jiffie wrap issues Jiffies are now handled correctly (I hope) in CCID2. If they wrap, no problem. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 4a0a50fb43912b4a593d2416c507a198fe607a6d tree 24b09ba4c83942c2ccec0261affdcbc68a2f335c parent 8e27e4650cb7e73aa4dd97d860539e7605ac7e39 author Andrea Bittau Tue, 19 Sep 2006 13:06:16 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:09 -0700 [DCCP] ackvec: Remove unused variables Get rid of unused variables in ackvector state. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 8e27e4650cb7e73aa4dd97d860539e7605ac7e39 tree 467ff3a8ecbb0fba014f917b42cc14f1f3665e32 parent 23d06e3b986677ec57007a24891fa9deb09ac973 author Andrea Bittau Tue, 19 Sep 2006 13:05:35 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:08 -0700 [DCCP] ackvec: Fix how DCCP_ACKVEC_STATE_NOT_RECEIVED is used Fix the way state is masked out. DCCP_ACKVEC_STATE_NOT_RECEIVED is defined as appears in the packet, therefore bit shifting is not required. This fix allows CCID2 to correctly detect losses. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 23d06e3b986677ec57007a24891fa9deb09ac973 tree f77c083196ebd447fdf5905a984d2235695c62e3 parent a1e59abf824969554b90facd44a4ab16e265afa4 author Andrea Bittau Tue, 19 Sep 2006 13:04:54 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:07 -0700 [DCCP] ACKVEC: fix ackvector length calculation Fix ackvector length calculation upon receiving an "ack-of-ack". This patch avoids the ackvector from growing too large which causes it to not be inserted into packets. Signed-off-by: Andrea Bittau Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit a1e59abf824969554b90facd44a4ab16e265afa4 tree b981536bbf7dde2c55e9a5223a5e31bea2c356a2 parent 1ef9696c909060ccdae3ade245ca88692b49285b author Patrick McHardy Tue, 19 Sep 2006 12:57:34 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:06 -0700 [XFRM]: Fix wildcard as tunnel source Hashing SAs by source address breaks templates with wildcards as tunnel source since the source address used for hashing/lookup is still 0/0. Move source address lookup to xfrm_tmpl_resolve_one() so we can use the real address in the lookup. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1ef9696c909060ccdae3ade245ca88692b49285b tree 3a2df5bbd6b448a4f873125ab5dd7c7a0cc7ae05 parent 4eb327b517cf85f6cb7dcd5691e7b748cbe8c343 author Alexey Kuznetsov Tue, 19 Sep 2006 12:52:50 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:05 -0700 [TCP]: Send ACKs each 2nd received segment. It does not affect either mss-sized connections (obviously) or connections controlled by Nagle (because there is only one small segment in flight). The idea is to record the fact that a small segment arrives on a connection, where one small segment has already been received and still not-ACKed. In this case ACK is forced after tcp_recvmsg() drains receive buffer. In other words, it is a "soft" each-2nd-segment ACK, which is enough to preserve ACK clock even when ABC is enabled. Signed-off-by: Alexey Kuznetsov Signed-off-by: David S. Miller commit 4eb327b517cf85f6cb7dcd5691e7b748cbe8c343 tree 51bd92e6b5582a10f21de0d909fb062d6ecf8cce parent 161643660129dd7d98f0b12418c0a2710ffa7db6 author Venkat Yekkirala Tue, 19 Sep 2006 10:24:19 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:04 -0700 [SELINUX]: Fix bug in security_sid_mls_copy The following fixes a bug where random mem is being tampered with in the non-mls case; encountered by Jashua Brindle on a gentoo box. Signed-off-by: Venkat Yekkirala Acked-by: Stephen Smalley Signed-off-by: James Morris commit 161643660129dd7d98f0b12418c0a2710ffa7db6 tree e14d0bb1429cd2263a1026e204f2b6fc786249bb parent 7198f8cec12ccec6d6f2e18c08ecc8c66c8aaf93 author Adrian Bunk Mon, 18 Sep 2006 00:40:38 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:03 -0700 [SCTP]: Cleanups This patch contains the following cleanups: - make the following needlessly global function static: - socket.c: sctp_apply_peer_addr_params() - add proper prototypes for the several global functions in include/net/sctp/sctp.h Note that this fixes wrong prototypes for the following functions: - sctp_snmp_proc_exit() - sctp_eps_proc_exit() - sctp_assocs_proc_exit() The latter was spotted by the GNU C compiler and reported by David Woodhouse. Signed-off-by: Adrian Bunk Acked-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 7198f8cec12ccec6d6f2e18c08ecc8c66c8aaf93 tree f75e2cd8b76ce7a73c0160245da11cd89e30f7a1 parent 680a27a23af45307095ae432dd0bc859e1fbe219 author Thomas Graf Mon, 18 Sep 2006 00:13:46 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:02 -0700 [IPV6] address: Support NLM_F_EXCL when adding addresses iproute2 doesn't provide the NLM_F_CREATE flag when adding addresses, it is assumed to be implied. The existing code issues a check on said flag when the modify operation fails (likely due to ENOENT) before continueing to create it, this leads to a hard to predict result, therefore the NLM_F_CREATE check is removed. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 680a27a23af45307095ae432dd0bc859e1fbe219 tree 2f879b84afbbe1a6c8ca296e202367d04528d8e3 parent 0ab6803bc90a8ee5c860ef09334b30007d1746be author Thomas Graf Mon, 18 Sep 2006 00:13:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:01 -0700 [IPV6] address: Allow address changes while device is administrative down Same behaviour as IPv4, using IFF_UP is a no-no anyway. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 0ab6803bc90a8ee5c860ef09334b30007d1746be tree 934a0d108a9137337defadc2a396a199fda32610 parent 101bb229691c438bce4d7f13006494dd4de6910a author Thomas Graf Mon, 18 Sep 2006 00:12:35 -0700 committer David S. Miller Fri, 22 Sep 2006 15:19:00 -0700 [IPV6] address: Convert address dumping to new netlink api Replaces INET6_IFADDR_RTA_SPACE with a new function calculating the total required message size for all address messages. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 101bb229691c438bce4d7f13006494dd4de6910a tree 9c8ee441db74606e8af629f8d37cf8d0e8bdde1a parent 85486af00b620ebe26fe0fa72172c115667a2fba author Thomas Graf Mon, 18 Sep 2006 00:11:52 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:59 -0700 [IPV6] address: Add put_ifaddrmsg() and rt_scope() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 85486af00b620ebe26fe0fa72172c115667a2fba tree 8ef0e8c06733a45d4e73f0bb28afe3baca1bbc93 parent 1b29fc2c8bf42d8fc5310f3770d7fd7ddf4386c0 author Thomas Graf Mon, 18 Sep 2006 00:11:24 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:58 -0700 [IPV6] address: Add put_cacheinfo() to dump struct cacheinfo Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 1b29fc2c8bf42d8fc5310f3770d7fd7ddf4386c0 tree c04436343e3222eac4d5aefc9601a36b5779de58 parent b933f7166ba376967f88a598ff04256f6d1b0b21 author Thomas Graf Mon, 18 Sep 2006 00:10:50 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:57 -0700 [IPV6] address: Convert address lookup to new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit b933f7166ba376967f88a598ff04256f6d1b0b21 tree 8054f857bf5e8860a2d9da7021a11e7cb5ffd097 parent 461d8837faac141f4676bf451b3339d0e48656d1 author Thomas Graf Mon, 18 Sep 2006 00:10:19 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:56 -0700 [IPV6] address: Convert address deletion to new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 461d8837faac141f4676bf451b3339d0e48656d1 tree 6bd4a0d5aa2859b5e4c9c97971d992f71b94566e parent 94aec08ea426903a3fb3cafd4d8b900cd50df702 author Thomas Graf Mon, 18 Sep 2006 00:09:49 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:55 -0700 [IPV6] address: Convert address addition to new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 94aec08ea426903a3fb3cafd4d8b900cd50df702 tree d1c9bdea378dee85c06ef98151b3d8c383b55cc8 parent 4cbf1cae9f08c76ed92700090a69a5b1f1f6a982 author Brian Haley Mon, 18 Sep 2006 00:05:22 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:54 -0700 [NETFILTER]: Change tunables to __read_mostly Change some netfilter tunables to __read_mostly. Also fixed some incorrect file reference comments while I was in there. (this will be my last __read_mostly patch unless someone points out something else that needs it) Signed-off-by: Brian Haley Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit 4cbf1cae9f08c76ed92700090a69a5b1f1f6a982 tree 7cda551330ef83303a459a51cec3bca5e4bdeb0f parent 9c1ea148ad8bb06538b43908891afedebeaf361b author Brian Haley Mon, 18 Sep 2006 00:04:22 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:53 -0700 [SCTP]: Change globals to __read_mostly Change sctp globals to __read_mostly. Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit 9c1ea148ad8bb06538b43908891afedebeaf361b tree 88afcb61bc3dbdaabca6126901df45a2bf7ebe19 parent eb328111efde7bca782f340fe805756039ec6a0c author Brian Haley Mon, 18 Sep 2006 00:03:41 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:52 -0700 [BRIDGE]: Change sysctl tunables to __read_mostly Change some bridge sysctl tunables to __read_mostly. Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit eb328111efde7bca782f340fe805756039ec6a0c tree 77c38b0a7ee67703c95caf16c6691576e2f77d03 parent 78e5b8916e7db119850f57ce8548fbb9767078fc author Thomas Graf Mon, 18 Sep 2006 00:01:59 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:51 -0700 [GENL]: Provide more information to userspace about registered genl families Additionaly exports the following information when providing the list of registered generic netlink families: - protocol version - header size - maximum number of attributes - list of available operations including - id - flags - avaiability of policy and doit/dumpit function libnl HEAD provides a utility to read this new information: 0x0010 nlctrl version 1 hdrsize 0 maxattr 6 op GETFAMILY (0x03) [POLICY,DOIT,DUMPIT] 0x0011 NLBL_MGMT version 1 hdrsize 0 maxattr 0 op unknown (0x02) [DOIT] op unknown (0x03) [DOIT] .... Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 78e5b8916e7db119850f57ce8548fbb9767078fc tree 1aa44a67101b354279d4edc98afc6c4ae1389a88 parent d1d9facfd1b326e0df587c96f0ee55de2ae9f946 author Patrick McHardy Wed, 13 Sep 2006 20:35:36 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:50 -0700 [RTNETLINK]: Fix netdevice name corruption When changing a device by ifindex without including a IFLA_IFNAME attribute, the ifname variable contains random garbage and is used to change the device name. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit d1d9facfd1b326e0df587c96f0ee55de2ae9f946 tree a451927f0a8269ce7a34ca0cb833c0f5d16f2576 parent eb878e84575fbce21d2edb079eada78bfa27023d author James Morris Fri, 01 Sep 2006 00:32:12 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:49 -0700 [XFRM]: remove xerr_idxp from __xfrm_policy_check() It seems that during the MIPv6 respin, some code which was originally conditionally compiled around CONFIG_XFRM_ADVANCED was accidently left in after the config option was removed. This patch removes an extraneous pointer (xerr_idxp) which is no longer needed. Signed-off-by: James Morris Acked-by: Masahide NAKAMURA Signed-off-by: David S. Miller commit eb878e84575fbce21d2edb079eada78bfa27023d tree f47eb18d4539015596de96ccb9ac3fd20584cbe5 parent fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9 author Jamal Hadi Salim Thu, 31 Aug 2006 17:42:59 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:48 -0700 [IPSEC]: output mode to take an xfrm state as input param Expose IPSEC modes output path to take an xfrm state as input param. This makes it consistent with the input mode processing (which already takes the xfrm state as a param). Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller commit fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9 tree 6a265dc2038bc5568c5a499e6c8d4733650ed3f7 parent dc435e6dac1439340eaeceef84022c4e4749796d author Dmitry Mishin Thu, 31 Aug 2006 15:28:39 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:47 -0700 [NET]: Fix sk->sk_filter field access Function sk_filter() is called from tcp_v{4,6}_rcv() functions with arg needlock = 0, while socket is not locked at that moment. In order to avoid this and similar issues in the future, use rcu for sk->sk_filter field read protection. Signed-off-by: Dmitry Mishin Signed-off-by: Alexey Kuznetsov Signed-off-by: Kirill Korotaev commit dc435e6dac1439340eaeceef84022c4e4749796d tree 87da22f876202e108d7e908281bc1b21038836bb parent a9917c06652165fe4eeb9ab7a5d1e0674e90e508 author Masahide NAKAMURA Thu, 31 Aug 2006 15:18:49 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:46 -0700 [IPV6] MIP6: Fix to update IP6CB when cloned skbuff is received at HAO. Signed-off-by: Masahide NAKAMURA Signed-off-by: David S. Miller commit a9917c06652165fe4eeb9ab7a5d1e0674e90e508 tree d73dacb6b29848b143bd760fcacec5831f5a8ece parent ff9b5e0f08cb650d113eef0c654f931c0a7ae730 author Masahide NAKAMURA Thu, 31 Aug 2006 15:14:32 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:45 -0700 [XFRM] STATE: Fix flusing with hash mask. This is a minor fix about transformation state flushing for net-2.6.19. Please apply it. Signed-off-by: David S. Miller commit ff9b5e0f08cb650d113eef0c654f931c0a7ae730 tree 65ac7b9220184e96c89626a39df3d45715e7171c parent 3015d5d4e5b15eddea272a697e83391100581932 author Herbert Xu Thu, 31 Aug 2006 15:11:02 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:44 -0700 [TCP]: Fix rcv mss estimate for LRO By passing a Linux-generated TSO packet straight back into Linux, Xen becomes our first LRO user :) Unfortunately, there is at least one spot in our stack that needs to be changed to cope with this. The receive MSS estimate is computed from the raw packet size. This is broken if the packet is GSO/LRO. Fortunately the real MSS can be found in gso_size so we simply need to use that if it is non-zero. Real LRO NICs should of course set the gso_size field in future. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 3015d5d4e5b15eddea272a697e83391100581932 tree fee65f53db7fc175f5a286dd036eae602a14cf8d parent 18adaf067cf013fc2690d3830eba99ff800795b4 author Thomas Graf Thu, 31 Aug 2006 15:04:30 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:43 -0700 [RTNETLINK]: Fix typo causing wrong skb to be freed A typo introduced by myself which leads to freeing the skb containing the netlink message when it should free the newly allocated skb for the reply. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 18adaf067cf013fc2690d3830eba99ff800795b4 tree 7762a71eca108238e8f49cf9a7dc3eb7589331a6 parent 7a42c2175703f54a3640f25dc078c8190a4f904e author Brian Haley Thu, 31 Aug 2006 15:03:36 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:42 -0700 [AF_UNIX]: Change max_dgram_qlen sysctl to __read_mostly Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit 7a42c2175703f54a3640f25dc078c8190a4f904e tree ac04b16a3c0e357f31db886ac73d2ccc2a3d3642 parent 28a7b327b8cc8ea35662d360d3d11d60195debc9 author Brian Haley Thu, 31 Aug 2006 15:03:02 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:41 -0700 [NET]: Change somaxconn sysctl to __read_mostly Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit 28a7b327b8cc8ea35662d360d3d11d60195debc9 tree b0dc6358ea5f5ea45cebc14ab1f66895e258e93f parent 7a0e1d602288370801c353221c6a938eab925053 author Adrian Bunk Wed, 30 Aug 2006 15:03:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:40 -0700 [PKT_SCHED] act_simple.c: make struct simp_hash_info static This patch makes the needlessly global struct simp_hash_info static. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 7a0e1d602288370801c353221c6a938eab925053 tree f11ef396a27549513a91fcaf7d06dafb2b84509a parent e448e931309e703f51d71a557973c620ff12fbda author Paul Moore Tue, 29 Aug 2006 17:56:04 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:39 -0700 [NetLabel]: add some missing #includes to various header files Add some missing include files to the NetLabel related header files. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit e448e931309e703f51d71a557973c620ff12fbda tree 8a738f5f45367965c29210402d28464fec3c04be parent 7b3bbb926f4b3dd3a007dcf8dfa00203f52cb58d author Paul Moore Tue, 29 Aug 2006 17:55:38 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:38 -0700 [NetLabel]: uninline selinux_netlbl_inode_permission() Uninline the selinux_netlbl_inode_permission() at the request of Andrew Morton. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 7b3bbb926f4b3dd3a007dcf8dfa00203f52cb58d tree 1ee2ab452f5c94ce4779171d6ebaa07f7d1fcd21 parent c1b14c0a46232246f61d3157bac1201e1e102227 author Paul Moore Tue, 29 Aug 2006 17:55:11 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:37 -0700 [NetLabel]: Cleanup ebitmap_import() Rewrite ebitmap_import() so it is a bit cleaner and easier to read. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit c1b14c0a46232246f61d3157bac1201e1e102227 tree 51c8097371c251c7dc17a6e637009523ce558bca parent 1b7f775209bbee6b993587bae69acb9fc12ceb17 author Paul Moore Tue, 29 Aug 2006 17:54:41 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:36 -0700 [NetLabel]: Comment corrections. Fix some incorrect comments. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 1b7f775209bbee6b993587bae69acb9fc12ceb17 tree 9760b5b1fcf2f874e32e900ea59e7b185370d360 parent 99f59ed073d3c1b890690064ab285a201dea2e35 author Paul Moore Tue, 29 Aug 2006 17:54:17 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:35 -0700 [NetLabel]: remove unused function prototypes Removed some older function prototypes for functions that no longer exist. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 99f59ed073d3c1b890690064ab285a201dea2e35 tree 0f6ae012cf4f988d3ae0c665fd3b12ea05409ec8 parent fc747e82b40ea50a62eb2aef55bedd4465607cb0 author Paul Moore Tue, 29 Aug 2006 17:53:48 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:34 -0700 [NetLabel]: Correctly initialize the NetLabel fields. Fix a problem where the NetLabel specific fields of the sk_security_struct structure were not being initialized early enough in some cases. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit fc747e82b40ea50a62eb2aef55bedd4465607cb0 tree 31b98872a3dfe8f71740c7047ea5bd09c966e054 parent 8394e9b2faf539f82470b36c86f0485cab5278bd author Ian McDonald Tue, 29 Aug 2006 17:50:19 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:33 -0700 [DCCP]: Tidyup CCID3 list handling As Arnaldo Carvalho de Melo points out I should be using list_entry in case the structure changes in future. Current code functions but is reliant on position and requires type cast. Noticed when doing this that I have one more variable than I needed so removing that also. Signed off by: Ian McDonald Signed-off-by: David S. Miller commit 8394e9b2faf539f82470b36c86f0485cab5278bd tree a386a99ed0563c94d802a8e21ae8a675787fdf74 parent 9bcfcaf5e9cc887eb39236e43bdbe4b4b2572229 author Stephen Hemminger Tue, 29 Aug 2006 17:49:31 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:32 -0700 [NETFILTER] bridge: debug message fixes If CONFIG_NETFILTER_DEBUG is enabled, it shouldn't change the actions of the filtering. The message about skb->dst being NULL is commonly triggered by dhclient, so it is useless. Make sure all messages end in newline. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 9bcfcaf5e9cc887eb39236e43bdbe4b4b2572229 tree 34d6369208bdd707a5e45bdf1972c94e3206b6e3 parent 07317621d004e8e6967f2dac8562825267e56135 author Stephen Hemminger Tue, 29 Aug 2006 17:48:57 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:31 -0700 [NETFILTER] bridge: simplify nf_bridge_pad Do some simple optimization on the nf_bridge_pad() function and don't use magic constants. Eliminate a double call and the #ifdef'd code for CONFIG_BRIDGE_NETFILTER. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 07317621d004e8e6967f2dac8562825267e56135 tree 232ab2aac1fa12c0fb481dfc3f0506ae275bd36e parent cd360007a0eb8cbf17c006cca42aa884d33f96be author Stephen Hemminger Tue, 29 Aug 2006 17:48:17 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:30 -0700 [NETFILTER] bridge: code rearrangement for clarity Cleanup and rearrangement for better style and clarity: Split the function nf_bridge_maybe_copy_header into two pieces Move copy portion out of line. Use Ethernet header size macros. Use header file to handle CONFIG_NETFILTER_BRIDGE differences Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit cd360007a0eb8cbf17c006cca42aa884d33f96be tree eafbf11767e33cf247cc9cc7bc6474fe3c483a29 parent def42ff4dd6f54ebcf78192579a8ff1f81d8e2e8 author Alexey Dobriyan Mon, 28 Aug 2006 23:58:32 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:29 -0700 [IPV4]: Make struct sockaddr_in::sin_port __be16 Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller commit def42ff4dd6f54ebcf78192579a8ff1f81d8e2e8 tree 3ad722dea8f5a157ee9fb01725b7b58aae28d5c1 parent 0719bdf1b5e7eb0d9c3c73ebbd9c9d5d382bb9e1 author Alexey Dobriyan Mon, 28 Aug 2006 23:57:56 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:28 -0700 [IPV4]: Make struct in_addr::s_addr __be32 There will be relatively small increase in sparse endian warnings, but this (and sin_port) patch is a first step to make networking code endian clean. Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller commit 0719bdf1b5e7eb0d9c3c73ebbd9c9d5d382bb9e1 tree 35ae31c424391b1ea48bf00f2528f8f2f68633fe parent 33cc48966827165e49de1cb8ff4fb57c127d4be0 author Benoit Boissinot Mon, 28 Aug 2006 17:50:37 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:27 -0700 [NETFILTER]: xt_CONNMARK.c build fix net/netfilter/xt_CONNMARK.c: In function 'target': net/netfilter/xt_CONNMARK.c:59: warning: implicit declaration of function 'nf_conntrack_event_cache' The warning is due to the following .config: CONFIG_IP_NF_CONNTRACK=m CONFIG_IP_NF_CONNTRACK_MARK=y # CONFIG_IP_NF_CONNTRACK_EVENTS is not set CONFIG_IP_NF_CONNTRACK_NETLINK=m This change was introduced by: http://www.kernel.org/git/?p=linux/kernel/git/davem/net-2.6.19.git;a=commit;h=76e4b41009b8a2e9dd246135cf43c7fe39553aa5 Proposed solution (based on the define in include/net/netfilter/nf_conntrack_compat.h: Signed-off-by: Benoit Boissinot Acked-by: Pablo Neira Ayuso Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 33cc48966827165e49de1cb8ff4fb57c127d4be0 tree 442ad224702bb0a085a71efabc1ff18fdff91d12 parent 5176f91ea83f1a59eba4dba88634a4729d51d1ac author YOSHIFUJI Hideaki Mon, 28 Aug 2006 13:19:30 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:26 -0700 [IPV6] ROUTE: Fix dst reference counting in ip6_pol_route_lookup(). In ip6_pol_route_lookup(), when we finish backtracking at the top-level root entry, we need to hold it. Bug noticed by Mitsuru Chinen . Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 5176f91ea83f1a59eba4dba88634a4729d51d1ac tree 80b35d2cd7ab316f0ee96ab742fee5073b949130 parent a5531a5d852008be40811496029012f4ad3093d1 author Thomas Graf Sat, 26 Aug 2006 20:13:18 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:25 -0700 [NETLINK]: Make use of NLA_STRING/NLA_NUL_STRING attribute validation Converts existing NLA_STRING attributes to use the new validation features, saving a couple of temporary buffers. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit a5531a5d852008be40811496029012f4ad3093d1 tree f59a1b240753ef4f0a672f256fc01d8a965793d1 parent e3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e author Thomas Graf Sat, 26 Aug 2006 20:11:47 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:24 -0700 [NETLINK]: Improve string attribute validation Introduces a new attribute type NLA_NUL_STRING to support NUL terminated strings. Attributes of this kind require to carry a terminating NUL within the maximum specified in the policy. The `old' NLA_STRING which is not required to be NUL terminated is extended to provide means to specify a maximum length of the string. Aims at easing the pain with using nla_strlcpy() on temporary buffers. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit e3b4eadbea77ecb3c3a74d1bc81b392f454c7f2e tree a94577b99959414edd2b76d5005b5d361badc5a6 parent bed53ea7fef37820b7c92ad74feff1b817c6aae3 author David S. Miller Sat, 26 Aug 2006 20:10:15 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:23 -0700 [UDP]: saddr_cmp function should take const socket pointers This also kills a warning while building ipv6: net/ipv6/udp.c: In function ‘udp_v6_get_port’: net/ipv6/udp.c:66: warning: passing argument 3 of ‘udp_get_port’ from incompatible pointer type Signed-off-by: David S. Miller commit bed53ea7fef37820b7c92ad74feff1b817c6aae3 tree 6cacd897edc7a0308d89c2d239d75df5f8624277 parent 25030a7f9eeab2dcefff036469e0e2b4f956198f author David S. Miller Sat, 26 Aug 2006 20:06:49 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:22 -0700 [UDP]: Mark udp_port_rover static. It is not referenced outside of net/ipv4/udp.c any longer. Signed-off-by: David S. Miller commit 25030a7f9eeab2dcefff036469e0e2b4f956198f tree 923030c42f1c2bf4aa9cd851df13b95bd0fe542b parent 6a28ec8cd0c6993a4ac0d52f4347f7ed077b5cac author Gerrit Renker Sat, 26 Aug 2006 20:06:05 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:21 -0700 [UDP]: Unify UDPv4 and UDPv6 ->get_port() This patch creates one common function which is called by udp_v4_get_port() and udp_v6_get_port(). As a result, * duplicated code is removed * udp_port_rover and local port lookup can now be removed from udp.h * further savings follow since the same function will be used by UDP-Litev4 and UDP-Litev6 In contrast to the patch sent in response to Yoshifujis comments (fixed by this variant), the code below also removes the EXPORT_SYMBOL(udp_port_rover), since udp_port_rover can now remain local to net/ipv4/udp.c. Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller commit 6a28ec8cd0c6993a4ac0d52f4347f7ed077b5cac tree ad18c4377c2ce5fb9f0cb859d297498dcda20f10 parent e5d679f33900c71d1a76ba07c5b04055abd34480 author David S. Miller Sat, 26 Aug 2006 19:48:49 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:20 -0700 [NETFILTER]: Fix nf_conntrack_ftp.c build. Noticed by Adrian Bunk. Signed-off-by: David S. Miller commit e5d679f33900c71d1a76ba07c5b04055abd34480 tree fb581f7156870056dbb91feaab9d3dd22fdcf61e parent ff5dfe736dd9f6c74b206aa77c0465dfd503bdb9 author Alexey Dobriyan Sat, 26 Aug 2006 19:25:52 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:19 -0700 [NET]: Use SLAB_PANIC Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller commit ff5dfe736dd9f6c74b206aa77c0465dfd503bdb9 tree 32366a88470dc809f9aa4dd5dbcabd1c8d30b6e5 parent 97e5848dd39e7e76bd6077735ebb5473763ab9c5 author Johannes Berg Sat, 26 Aug 2006 19:17:53 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:18 -0700 [NETLINK]: remove third bogus argument from NLA_PUT_FLAG This patch removes the 'value' argument from NLA_PUT_FLAG which is unused anyway. The documentation comment was already correct so it doesn't need an update :) Signed-off-by: Johannes Berg Signed-off-by: David S. Miller commit 97e5848dd39e7e76bd6077735ebb5473763ab9c5 tree f1292b7bb558df8f27016fbac31a3b017bdba438 parent 2a0109a707d2b0ae48f124d3be0fdf1715c0107a author Ian McDonald Sat, 26 Aug 2006 19:16:45 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:17 -0700 [DCCP]: Introduce tx buffering This adds transmit buffering to DCCP. I have tested with CCID2/3 and with loss and rate limiting. Signed off by: Ian McDonald Signed-off-by: David S. Miller commit 2a0109a707d2b0ae48f124d3be0fdf1715c0107a tree 52d6335e8e50c0573fd455730ae2b0d99d36bf82 parent ef047f5e1085d6393748d1ee27d6327905f098dc author Ian McDonald Sat, 26 Aug 2006 19:15:35 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:16 -0700 [DCCP]: Shift sysctls into feat.h This shifts further sysctls into feat.h. No change in functionality - shifting code only. Signed off by: Ian McDonald Signed-off-by: David S. Miller commit ef047f5e1085d6393748d1ee27d6327905f098dc tree b1ac74cd97e5e39afedbecbffd8feaf59458d3d8 parent 366e4adc0f9ef33f56c62f980a7d83775e64abd0 author YOSHIFUJI Hideaki Fri, 01 Sep 2006 00:29:06 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:15 -0700 [NET]: Use BUILD_BUG_ON() for checking size of skb->cb. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 366e4adc0f9ef33f56c62f980a7d83775e64abd0 tree 66a33db0eb110e75c55e906de27b6693b42e7efa parent 74975d40b16fd4bad24a2e2630dc7957d8cba013 author Patrick McHardy Sat, 26 Aug 2006 16:50:20 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:14 -0700 [IPV6]: Fix routing by fwmark Fix mark comparison, also dump the mask to userspace when the mask is zero, but the mark is not (in which case the mark is dumped, so the mask is needed to make sense of it). Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 74975d40b16fd4bad24a2e2630dc7957d8cba013 tree 4fc905f88af941dd204d4918b2d61829bb3606f6 parent b4e9b520ca5d07a37ea59648e7f50f478e7487a3 author Alexey Dobriyan Fri, 25 Aug 2006 17:10:33 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:13 -0700 [TCP] Congestion control (modulo lp, bic): use BUILD_BUG_ON Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller commit b4e9b520ca5d07a37ea59648e7f50f478e7487a3 tree c007ca2e57ba73e6bc6196ad1deaaf58c7d7aae4 parent 88e91f290307d22ae88302e3a24f0c36905e8a6c author Patrick McHardy Fri, 25 Aug 2006 16:11:42 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:12 -0700 [NET_SCHED]: Add mask support to fwmark classifier Support masking the nfmark value before the search. The mask value is global for all filters contained in one instance. It can only be set when a new instance is created, all filters must specify the same mask. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 88e91f290307d22ae88302e3a24f0c36905e8a6c tree 3824f092df11390d64d2a3be92fc2d4b09b94eda parent bbfb39cbf63829d1db607aa90cbdca557a3a131d author Patrick McHardy Fri, 25 Aug 2006 16:11:08 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:11 -0700 [DECNET]: Add support for fwmark masks in routing rules Add support for fwmark masks. For compatibility a mask of 0xFFFFFFFF is used when a mark value != 0 is sent without a mask. Signed-off-by: Patrick McHardy Acked-by: Steven Whitehouse Signed-off-by: David S. Miller commit bbfb39cbf63829d1db607aa90cbdca557a3a131d tree 9312c446794adf6781c6b92de3b4ea57c8468569 parent 267935b197d2a6e6924f9de2841f0470bfe63acd author Patrick McHardy Fri, 25 Aug 2006 16:10:14 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:10 -0700 [IPV4]: Add support for fwmark masks in routing rules Add a FRA_FWMASK attributes for fwmark masks. For compatibility a mask of 0xFFFFFFFF is used when a mark value != 0 is sent without a mask. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 267935b197d2a6e6924f9de2841f0470bfe63acd tree de297ef5f0e597735e498edcfd7f7301404748a1 parent cd9d742622fbc2190221e0b2aca80596bfd17733 author David S. Miller Fri, 25 Aug 2006 16:07:48 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:09 -0700 [IPV6]: Fix build with fwmark disabled. Based upon a patch by Brian Haley. Signed-off-by: David S. Miller commit cd9d742622fbc2190221e0b2aca80596bfd17733 tree 4734f16bf89a5e7c24427058e494a5815ec6fca6 parent 2613aad5ab28579687519918cdc353af0eed5a3f author YOSHIFUJI Hideaki Fri, 25 Aug 2006 16:05:43 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:08 -0700 [IPV6] ROUTE: Add support for fwmask in routing rules. Add support for fwmark masks. A mask of 0xFFFFFFFF is used when a mark value != 0 is sent without a mask. Based on patch for net/ipv4/fib_rules.c by Patrick McHardy . Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 2613aad5ab28579687519918cdc353af0eed5a3f tree 76e8c22b32b9229367537dcc277fcebd92f30767 parent 6c5eb6a50741b882fd99fbb8178942ca2f74b724 author YOSHIFUJI Hideaki Fri, 25 Aug 2006 16:05:00 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:07 -0700 [IPV6] ROUTE: Fix size of fib6_rule_policy. It should not be RTA_MAX+1 but FRA_MAX+1. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 6c5eb6a50741b882fd99fbb8178942ca2f74b724 tree 24fa447c98e26c7ab939514b360d41a050115829 parent acba48e1a3c95082af1e12c5efaaca3506103a92 author YOSHIFUJI Hideaki Fri, 25 Aug 2006 16:04:29 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:06 -0700 [IPV6] ROUTE: Fix FWMARK support. - Add missing nla_policy entry. - type of fwmark is u32, not u8. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit acba48e1a3c95082af1e12c5efaaca3506103a92 tree a6c001ca19cfb67427aaec822952c32bb0916568 parent 65e3d72654d9a33cdccd5c19777a5515ae9dd37d author David S. Miller Fri, 25 Aug 2006 15:46:46 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:05 -0700 [XFRM]: Respect priority in policy lookups. Even if we find an exact match in the hash table, we must inspect the inexact list to look for a match with a better priority. Noticed by Masahide NAKAMURA . Signed-off-by: David S. Miller commit 65e3d72654d9a33cdccd5c19777a5515ae9dd37d tree 7909c52172b254518c26377ff743241f3838d8eb parent 298969727e7b855d53f3becfa92c055914082ec4 author Alexey Dobriyan Fri, 25 Aug 2006 00:38:03 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:04 -0700 [TCP] tcp_bic: use BUILD_BUG_ON Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller commit 298969727e7b855d53f3becfa92c055914082ec4 tree f9aa6930cfe4d3beede0cd1f7fbbace8783bfb96 parent d4f3e9b735c72823aab597bfa4860d184658a609 author Alexey Dobriyan Fri, 25 Aug 2006 00:37:24 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:03 -0700 [TCP] tcp_lp: use BUILD_BUG_ON Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller commit d4f3e9b735c72823aab597bfa4860d184658a609 tree 50e953f90bfc69df5555322b3bc45bd0fce54ba7 parent 1884f78c7a8b456c654338e3eb2874a99688ea10 author David S. Miller Fri, 25 Aug 2006 00:27:09 -0700 committer David S. Miller Fri, 22 Sep 2006 15:18:02 -0700 [NET] in6_pton: Kill errant printf statement. Signed-off-by: David S. Miller commit 1884f78c7a8b456c654338e3eb2874a99688ea10 tree 1e4bb6d6a4355790e6d8a3fa36b4be7045b6dad3 parent 1aaec67f9335a17856dfacdd3e5cc6f4c18faeec author YOSHIFUJI Hideaki Mon, 19 Jun 2006 03:20:32 +0900 committer David S. Miller Fri, 22 Sep 2006 15:18:02 -0700 [NETFILTER] NF_CONNTRACK_FTP: Use in6_pton() to convert address string. Signed-off-by: YOSHIFUJI Hideaki commit 1aaec67f9335a17856dfacdd3e5cc6f4c18faeec tree 87801e3cb66fc7103dc2c0008246b055fda39deb parent 75bff8f023e02b045a8f68f36fa7da98dca124b8 author YOSHIFUJI Hideaki Sun, 25 Jun 2006 23:54:55 +0900 committer David S. Miller Fri, 22 Sep 2006 15:18:01 -0700 [NET]: Add common helper functions to convert IPv6/IPv4 address string to network address structure. These helpers can be used in netfilter, cifs etc. Signed-off-by: YOSHIFUJI Hideaki commit 75bff8f023e02b045a8f68f36fa7da98dca124b8 tree e476cdbadcb6386d1f2dcbc6d637800261984375 parent 2cc67cc731d9b693a08e781e98fec0e3a6d6ba44 author YOSHIFUJI Hideaki Mon, 21 Aug 2006 19:22:01 +0900 committer David S. Miller Fri, 22 Sep 2006 15:18:00 -0700 [IPV6] ROUTE: Routing by FWMARK. Based on patch by Jean Lorchat . Signed-off-by: YOSHIFUJI Hideaki commit 2cc67cc731d9b693a08e781e98fec0e3a6d6ba44 tree c749d424266ae7f6427495a97da7dc7b3de2446d parent e731c248ba9e8c7025ae8b4a3fa48e4236b82e52 author YOSHIFUJI Hideaki Mon, 21 Aug 2006 19:18:57 +0900 committer David S. Miller Fri, 22 Sep 2006 15:17:59 -0700 [IPV6] ROUTE: Routing by Traffic Class. Signed-off-by: YOSHIFUJI Hideaki commit e731c248ba9e8c7025ae8b4a3fa48e4236b82e52 tree 784c9e9420283f73604f81f31f445ab9b097795a parent e4bec827feda76d5e7417a2696a75424834d564f author YOSHIFUJI Hideaki Thu, 24 Aug 2006 23:18:12 +0900 committer David S. Miller Fri, 22 Sep 2006 15:17:58 -0700 [IPV6] MIP6: Several obvious clean-ups. - Remove redundant code. Pointed out by Brian Haley . - Unify code paths with/without CONFIG_IPV6_MIP. - Use NIP6_FMT for IPv6 address textual presentation. - Fold long line. Pointed out by David Miller . Signed-off-by: YOSHIFUJI Hideaki commit e4bec827feda76d5e7417a2696a75424834d564f tree bd899e0c2fbf7f6dd1d33ce0610d88fc4a8864ee parent 44e36b42a8378be1dcf7e6f8a1cb2710a8903387 author David S. Miller Fri, 22 Sep 2006 15:17:35 -0700 committer David S. Miller Fri, 22 Sep 2006 15:17:35 -0700 [IPSEC] esp: Defer output IV initialization to first use. First of all, if the xfrm_state only gets used for input packets this entropy is a complete waste. Secondly, it is often the case that a configuration loads many rules (perhaps even dynamically) and they don't all necessarily ever get used. This get_random_bytes() call was showing up in the profiles for xfrm_state inserts which is how I noticed this. Signed-off-by: David S. Miller commit ded7f1a16d50527359be02f8b04f9ba56bc923e6 tree 5ef2b43576bb1a07e34c902a52475868be4ba711 parent 2a214182d23594915d6ae517b6368ba2eae055d2 author Ishai Rabinovitz Tue, 15 Aug 2006 17:34:52 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:17:21 -0700 IB/srp: Add port/device attributes Add local_ib_device and local_ib_port attributes to srp scsi_host. These are needed when we want to connect to the same target through multiple distinct ports. Signed-off-by: Ishai Rabinovitz Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 2a214182d23594915d6ae517b6368ba2eae055d2 tree 8bb02515297e0726cfb9558c19ff6c1548ab2a4b parent 1ccf6aa19aabc11587d6d7818a5729adfed0e3de author James Lentini Fri, 22 Sep 2006 15:17:20 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:17:20 -0700 IB/mthca: Include the header we really want Signed-off-by: James Lentini Signed-off-by: Roland Dreier commit 1ccf6aa19aabc11587d6d7818a5729adfed0e3de tree 754e213bc201cd338dd6bffa6877872b1e0dcc93 parent ab10867621a96230757eb4a2a19d560b85f62ce9 author Roland Dreier Fri, 22 Sep 2006 15:17:20 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:17:20 -0700 IB/uverbs: Fix lockdep warning when QP is created with 2 CQs Lockdep warns when userspace creates a QP that uses different CQs for send completions and receive completions, because both CQs are locked and their mutexes belong to the same lock class. However, we know that the mutexes are distinct and the nesting is safe (there is no possibility of AB-BA deadlock because the mutexes are locked with down_read()), so annotate the situation with SINGLE_DEPTH_NESTING to get rid of the lockdep warning. Signed-off-by: Roland Dreier commit ab10867621a96230757eb4a2a19d560b85f62ce9 tree f8dc75cf9222948663ce01b819764cd8d332d6d9 parent 9217b27b12eb5ab910d14b3376c2b6cd13d87711 author Roland Dreier Fri, 22 Sep 2006 15:17:19 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:17:19 -0700 IB/uverbs: Use idr_read_cq() where appropriate There were two functions that open-coded idr_read_cq() in terms of idr_read_uobj() rather than using the helper. Signed-off-by: Roland Dreier commit 9217b27b12eb5ab910d14b3376c2b6cd13d87711 tree 49d1f60e61013b7c60e13de0f60ec9ead81309b5 parent 9fd558f454b666aca218a990d44f9e1ffac6ed4d author Michael S. Tsirkin Thu, 03 Aug 2006 22:16:06 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:17:18 -0700 IB/ipoib: Fix flush/start xmit race (from code review) Prevent flush task from freeing the ipoib_neigh pointer, while ipoib_start_xmit() is accessing the ipoib_neigh through the pointer it has loaded from the skb's hardware address. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 9fd558f454b666aca218a990d44f9e1ffac6ed4d tree 43ab69a01d0c9932b90aa930f21c3a6319b55baa parent b27075735e371f481940a4920b329202334d2259 author Michael S. Tsirkin Fri, 22 Sep 2006 15:17:18 -0700 committer Roland Dreier Fri, 22 Sep 2006 15:17:18 -0700 IB/mthca: Don't use privileged UAR for kernel access Make kernel use UAR2 instead of UAR1 for hardware access: this adds sanity checking from the hardware side, without any performance cost. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit b27075735e371f481940a4920b329202334d2259 tree 3480b0a635a075539e1a1af58cf08b8b6ddcfd8c parent e6e5fee1426bef07f4e6c3c76f48343c14207938 author Jack Morgenstein Tue, 19 Sep 2006 11:13:24 +0300 committer Roland Dreier Fri, 22 Sep 2006 15:17:17 -0700 IB/mthca: Fix lid used for sending traps The SM LID used to send traps to is incorrectly set to port LID. This is a regression from 2.6.17 -- after a PortInfo MAD is received, no traps are sent to the SM LID. The traps go to the loopback interface instead, and are dropped there. The SM LID should be taken from the sm_lid of the PortInfo response. The bug was introduced by commit 12bbb2b7be7f5564952ebe0196623e97464b8ac5: IB/mthca: Add client reregister event generation Signed-off-by: Jack Morgenstein Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 44e36b42a8378be1dcf7e6f8a1cb2710a8903387 tree 2c057957a4e4dc7f679ac671a9f091f3fe366b92 parent 2518c7c2b3d7f0a6b302b4efe17c911f8dd4049f author David S. Miller Thu, 24 Aug 2006 04:50:50 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:49 -0700 [XFRM]: Extract common hashing code into xfrm_hash.[ch] Signed-off-by: David S. Miller commit 2518c7c2b3d7f0a6b302b4efe17c911f8dd4049f tree 7de05ca17d76eee141d4feff3b7b27d850557ae6 parent c1969f294e624d5b642fc8e6ab9468b7c7791fa8 author David S. Miller Thu, 24 Aug 2006 04:45:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:48 -0700 [XFRM]: Hash policies when non-prefixed. This idea is from Alexey Kuznetsov. It is common for policies to be non-prefixed. And for that case we can optimize lookups, insert, etc. quite a bit. For each direction, we have a dynamically sized policy hash table for non-prefixed policies. We also have a hash table on policy->index. For prefixed policies, we have a list per-direction which we will consult on lookups when a non-prefix hashtable lookup fails. This still isn't as efficient as I would like it. There are four immediate problems: 1) Lots of excessive refcounting, which can be fixed just like xfrm_state was 2) We do 2 hash probes on insert, one to look for dups and one to allocate a unique policy->index. Althought I wonder how much this matters since xfrm_state inserts do up to 3 hash probes and that seems to perform fine. 3) xfrm_policy_insert() is very complex because of the priority ordering and entry replacement logic. 4) Lots of counter bumping, in addition to policy refcounts, in the form of xfrm_policy_count[]. This is merely used to let code path(s) know that some IPSEC rules exist. So this count is indexed per-direction, maybe that is overkill. Signed-off-by: David S. Miller commit c1969f294e624d5b642fc8e6ab9468b7c7791fa8 tree b2487a8cd5d2552e837ceaeb279e660267e528b3 parent a47f0ce05ae12ce9acad62896ff703175764104e author David S. Miller Thu, 24 Aug 2006 04:00:03 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:47 -0700 [XFRM]: Hash xfrm_state objects by source address too. The source address is always non-prefixed so we should use it to help give entropy to the bydst hash. Signed-off-by: David S. Miller commit a47f0ce05ae12ce9acad62896ff703175764104e tree 7d2d64d86ca869b2039ffe8ec066a5daa87b8673 parent 1c0953997567b22e32fdf85d3b4bc0f2461fd161 author David S. Miller Thu, 24 Aug 2006 03:54:22 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:47 -0700 [XFRM]: Kill excessive refcounting of xfrm_state objects. The refcounting done for timers and hash table insertions are just wasted cycles. We can eliminate all of this refcounting because: 1) The implicit refcount when the xfrm_state object is active will always be held while the object is in the hash tables. We never kfree() the xfrm_state until long after we've made sure that it has been unhashed. 2) Timers are even easier. Once we mark that x->km.state as anything other than XFRM_STATE_VALID (__xfrm_state_delete sets it to XFRM_STATE_DEAD), any timer that fires will do nothing and return without rearming the timer. Therefore we can defer the del_timer calls until when the object is about to be freed up during GC. We have to use del_timer_sync() and defer it to GC because we can't do a del_timer_sync() while holding x->lock which all callers of __xfrm_state_delete hold. This makes SA changes even more light-weight. Signed-off-by: David S. Miller commit 1c0953997567b22e32fdf85d3b4bc0f2461fd161 tree 5e4d691503d911f2134734e345ae0d7f01b97e4e parent c7f5ea3a4d1ae6b3b426e113358fdc57494bc754 author David S. Miller Thu, 24 Aug 2006 03:30:28 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:46 -0700 [XFRM]: Purge dst references to deleted SAs passively. Just let GC and other normal mechanisms take care of getting rid of DST cache references to deleted xfrm_state objects instead of walking all the policy bundles. Signed-off-by: David S. Miller commit c7f5ea3a4d1ae6b3b426e113358fdc57494bc754 tree d77be695b79131617029d8586fd729a6b94b56e5 parent 2575b65434d56559bd03854450b9b6aaf19b9c90 author David S. Miller Thu, 24 Aug 2006 03:29:04 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:45 -0700 [XFRM]: Do not flush all bundles on SA insert. Instead, simply set all potentially aliasing existing xfrm_state objects to have the current generation counter value. This will make routes get relooked up the next time an existing route mentioning these aliased xfrm_state objects gets used, via xfrm_dst_check(). Signed-off-by: David S. Miller commit 2575b65434d56559bd03854450b9b6aaf19b9c90 tree 6e7ae9460a5a61b97f3964b2cb97ff5524e2557b parent a624c108e5595b5827796c253481436929cd5344 author David S. Miller Thu, 24 Aug 2006 03:26:44 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:44 -0700 [XFRM]: Simplify xfrm_spi_hash It can use __xfrm{4,6}_addr_hash(). Signed-off-by: David S. Miller commit a624c108e5595b5827796c253481436929cd5344 tree 55b4f940a86c1c842c93fd7c98423aa86c0e48da parent 9d4a706d852411154d0c91b9ffb3bec68b94b25c author David S. Miller Thu, 24 Aug 2006 03:24:33 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:43 -0700 [XFRM]: Put more keys into destination hash function. Besides the daddr, key the hash on family and reqid too. Signed-off-by: David S. Miller commit 9d4a706d852411154d0c91b9ffb3bec68b94b25c tree 1613607168baa8b654c300895cd7d0ffb6f18581 parent f034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49 author David S. Miller Thu, 24 Aug 2006 03:18:09 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:42 -0700 [XFRM]: Add generation count to xfrm_state and xfrm_dst. Each xfrm_state inserted gets a new generation counter value. When a bundle is created, the xfrm_dst objects get the current generation counter of the xfrm_state they will attach to at dst->xfrm. xfrm_bundle_ok() will return false if it sees an xfrm_dst with a generation count different from the generation count of the xfrm_state that dst points to. This provides a facility by which to passively and cheaply invalidate cached IPSEC routes during SA database changes. Signed-off-by: David S. Miller commit f034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49 tree e166f1e87606f7e53a78cac543284c3484481727 parent 8f126e37c0b250310a48a609bedf92a19a5559ec author David S. Miller Thu, 24 Aug 2006 03:08:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:41 -0700 [XFRM]: Dynamic xfrm_state hash table sizing. The grow algorithm is simple, we grow if: 1) we see a hash chain collision at insert, and 2) we haven't hit the hash size limit (currently 1*1024*1024 slots), and 3) the number of xfrm_state objects is > the current hash mask All of this needs some tweaking. Remove __initdata from "hashdist" so we can use it safely at run time. Signed-off-by: David S. Miller commit 8f126e37c0b250310a48a609bedf92a19a5559ec tree c1de0aea5f425d74b99453e9edb4561dfd147d2c parent edcd582152090bfb0ccb4ad444c151798a73eda8 author David S. Miller Thu, 24 Aug 2006 02:45:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:40 -0700 [XFRM]: Convert xfrm_state hash linkage to hlists. Signed-off-by: David S. Miller commit edcd582152090bfb0ccb4ad444c151798a73eda8 tree 9d6051e71c5c22c50315d6b2c740170002469288 parent 2770834c9f44afd1bfa13914c7285470775af657 author David S. Miller Thu, 24 Aug 2006 00:42:45 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:39 -0700 [XFRM]: Pull xfrm_state_by{spi,src} hash table knowledge out of afinfo. Signed-off-by: David S. Miller commit 2770834c9f44afd1bfa13914c7285470775af657 tree 40191fdc632e572bc7878f57dc8fb385109a3aa8 parent 64d9fdda8e1bdf416b2d9203c3ad9c249ea301be author David S. Miller Thu, 24 Aug 2006 00:13:10 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:38 -0700 [XFRM]: Pull xfrm_state_bydst hash table knowledge out of afinfo. Signed-off-by: David S. Miller commit 64d9fdda8e1bdf416b2d9203c3ad9c249ea301be tree 875d2925a44cdacd0adc1f1ccfbd3f06cd4d0b69 parent 58c949d1b9551f3e4ba9dde4aeda341ecf5e42b5 author Masahide NAKAMURA Wed, 23 Aug 2006 22:54:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:37 -0700 [XFRM] IPV6: Support Mobile IPv6 extension headers sorting. Support Mobile IPv6 extension headers sorting for two transformation policies. Mobile IPv6 extension headers should be placed after IPsec transport mode, but before transport AH when outbound. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 58c949d1b9551f3e4ba9dde4aeda341ecf5e42b5 tree d219f78a417aeb03167b786d84f878ede237da2f parent f7b6983f0feeefcd2a594138adcffe640593d8de author Masahide NAKAMURA Wed, 23 Aug 2006 22:51:02 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:36 -0700 [XFRM] IPV6: Add sort functions to combine templates/states for IPsec. Add sort functions to combine templates/states for IPsec. Think of outbound transformation order we should be careful with transport AH which must be the last of all transport ones. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit f7b6983f0feeefcd2a594138adcffe640593d8de tree 41878fad9f0f0306718fa832eac7dfa76f51222d parent 41a49cc3c02ace59d4dddae91ea211c330970ee3 author Masahide NAKAMURA Wed, 23 Aug 2006 22:49:28 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:35 -0700 [XFRM] POLICY: Support netlink socket interface for sub policy. Sub policy can be used through netlink socket. PF_KEY uses main only and it is TODO to support sub. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 41a49cc3c02ace59d4dddae91ea211c330970ee3 tree bca262bd2d32f1cf7473b5360052ff3103845e23 parent 4e81bb8336a0ac50289d4d4c7a55e559b994ee8f author Masahide NAKAMURA Wed, 23 Aug 2006 22:48:31 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:34 -0700 [XFRM]: Add sorting interface for state and template. Under two transformation policies it is required to merge them. This is a platform to sort state for outbound and templates for inbound respectively. It will be used when Mobile IPv6 and IPsec are used at the same time. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 4e81bb8336a0ac50289d4d4c7a55e559b994ee8f tree fefa71843c3f8152dd0a008b3b40fe2e42d204d7 parent c11f1a15c522ddd3bbd2c32b5ce3e0b1831b22f2 author Masahide NAKAMURA Wed, 23 Aug 2006 22:43:30 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:34 -0700 [XFRM] POLICY: sub policy support. Sub policy is introduced. Main and sub policy are applied the same flow. (Policy that current kernel uses is named as main.) It is required another transformation policy management to keep IPsec and Mobile IPv6 lives separate. Policy which lives shorter time in kernel should be a sub i.e. normally main is for IPsec and sub is for Mobile IPv6. (Such usage as two IPsec policies on different database can be used, too.) Limitation or TODOs: - Sub policy is not supported for per socket one (it is always inserted as main). - Current kernel makes cached outbound with flowi to skip searching database. However this patch makes it disabled only when "two policies are used and the first matched one is bypass case" because neither flowi nor bundle information knows about transformation template size. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit c11f1a15c522ddd3bbd2c32b5ce3e0b1831b22f2 tree 6946876fcace9b21e142ba21f03a6ebd7801e8d2 parent 01be8e5d59d7e6da5c425a31b43709c2a4a69b5d author Masahide NAKAMURA Wed, 23 Aug 2006 22:38:14 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:33 -0700 [XFRM] POLICY: Add Kconfig to support sub policy. Add Kconfig to support sub policy. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 01be8e5d59d7e6da5c425a31b43709c2a4a69b5d tree 7f85f5741b18fcead2376a93ba407b3353e36a85 parent 70182ed23d2559345aadb3cfb6a68a7c1cc0aa39 author Masahide NAKAMURA Wed, 23 Aug 2006 20:47:44 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:32 -0700 [IPV6] MIP6: Ignore to report if mobility headers is rejected. Ignore to report user-space for known mobility headers rejected by destination options header transformation. Mobile IPv6 specification (RFC3775) says that mobility header is used with destination options header carrying home address option only for binding update message. Other type message cannot be used and node must drop it silently (and must not send binding error) if receving such packet. To achieve it, (1) application should use transformation policy and wild-card states to catch binding update message prior other packets (2) kernel doesn't report the reject to user-space not to send binding error message by application. This patch is for (2). Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 70182ed23d2559345aadb3cfb6a68a7c1cc0aa39 tree 79899680cb66ac9cccbf6e8f5b10f66d9a6f306f parent 97a64b4577ae2bc5599dbd008a3cd9e25de9b9f5 author Masahide NAKAMURA Wed, 23 Aug 2006 20:45:55 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:31 -0700 [IPV6] MIP6: Report to user-space when home address option is rejected. Report to user-space when home address option is rejected. In receiving this message user-space application will send Mobile IPv6 binding error. It is rate-limited by kernel. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 97a64b4577ae2bc5599dbd008a3cd9e25de9b9f5 tree 424700fb0a41b28c5615d0d21ca74d699e1fa872 parent df0ba92a99ca757039dfa84a929281ea3f7a50e8 author Masahide NAKAMURA Wed, 23 Aug 2006 20:44:06 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:30 -0700 [XFRM]: Introduce XFRM_MSG_REPORT. XFRM_MSG_REPORT is a message as notification of state protocol and selector from kernel to user-space. Mobile IPv6 will use it when inbound reject is occurred at route optimization to make user-space know a binding error requirement. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit df0ba92a99ca757039dfa84a929281ea3f7a50e8 tree 26f1f562c513ad43f813dcf2c58d426a3649625b parent 2ce4272a699c731b9736d76126dc742353e381db author Masahide NAKAMURA Wed, 23 Aug 2006 20:41:00 -0700 committer David S. Miller Fri, 22 Sep 2006 15:08:29 -0700 [XFRM]: Trace which secpath state is reject factor. For Mobile IPv6 usage, it is required to trace which secpath state is reject factor in order to notify it to user space (to know the address which cannot be used route optimized communication). Based on MIPL2 kernel patch. This patch was also written by: Henrik Petander Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 2ce4272a699c731b9736d76126dc742353e381db tree ce60343164fa72dde2207d4c4045554662efa141 parent 6e8f4d48b265225bdf437bbf3151b0d6700dda22 author Masahide NAKAMURA Wed, 23 Aug 2006 20:39:03 -0700 committer David S. Miller Fri, 22 Sep 2006 15:07:03 -0700 [IPV6] MIP6: Transformation support mobility header. Transformation support mobility header. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 6e8f4d48b265225bdf437bbf3151b0d6700dda22 tree f71cfecfc21d5a28e10a9e761164252dd65fa154 parent 7be96f7628469e56f91d51f13b03e9bcff113c7f author Masahide NAKAMURA Wed, 23 Aug 2006 20:36:47 -0700 committer David S. Miller Fri, 22 Sep 2006 15:07:02 -0700 [IPV6] MIP6: Add sending mobility header functions through raw socket. Mobility header is built by user-space and sent through raw socket. Kernel just extracts its type to flow. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 7be96f7628469e56f91d51f13b03e9bcff113c7f tree 60db169f3fa51967dd916355face3f2b38d7cc5d parent 2b741653b6c824fe7520ee92b6795f11c5f24b24 author Masahide NAKAMURA Wed, 23 Aug 2006 20:35:31 -0700 committer David S. Miller Fri, 22 Sep 2006 15:07:01 -0700 [IPV6] MIP6: Add receiving mobility header functions through raw socket. Like ICMPv6, mobility header is handled through raw socket. In inbound case, check only whether ICMPv6 error should be sent as a reply or not by kernel. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala This patch was also written by: Antti Tuominen Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 2b741653b6c824fe7520ee92b6795f11c5f24b24 tree eea6f085896ad74e53aa44c00f1b004775e5ef83 parent e23c7194a8a21e96b99106bdabde94614c4b84d6 author Masahide NAKAMURA Wed, 23 Aug 2006 20:34:26 -0700 committer David S. Miller Fri, 22 Sep 2006 15:07:00 -0700 [IPV6] MIP6: Add Mobility header definition. Add Mobility header definition for Mobile IPv6. Based on MIPL2 kernel patch. This patch was also written by: Antti Tuominen Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit e23c7194a8a21e96b99106bdabde94614c4b84d6 tree a1b7f5ec06b0f3f82db55c5250d3021417c07270 parent 3d126890dd67beffec27c1b6f51c040fc8d0b526 author Masahide NAKAMURA Wed, 23 Aug 2006 20:33:28 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:59 -0700 [XFRM] STATE: Add Mobile IPv6 route optimization protocols to netlink interface. Add Mobile IPv6 route optimization protocols to netlink interface. Route optimization states carry care-of address. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 3d126890dd67beffec27c1b6f51c040fc8d0b526 tree c796ef93eb61fe1a93c42dd7965fe21a5b142b66 parent 2c8d7ca0f76103855ad1f2a930e05683b64a00eb author Noriaki TAKAMIYA Wed, 23 Aug 2006 20:32:34 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:58 -0700 [IPV6] MIP6: Add destination options header transformation. Add destination options header transformation for Mobile IPv6. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Noriaki TAKAMIYA Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 2c8d7ca0f76103855ad1f2a930e05683b64a00eb tree 528b684361ba249d3a80a3ded057454cd9ed269d parent 27637df92e25dfb45dd71a93a2f4bf9c080fa627 author Noriaki TAKAMIYA Wed, 23 Aug 2006 20:31:11 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:57 -0700 [IPV6] MIP6: Add routing header type 2 transformation. Add routing header type 2 transformation for Mobile IPv6. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 27637df92e25dfb45dd71a93a2f4bf9c080fa627 tree e4c477a1faff6faf7ae2812a921c06c4116f3731 parent 793832361fe7e9c3fcae2edd1d293c583a0a095c author Masahide NAKAMURA Wed, 23 Aug 2006 19:29:47 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:56 -0700 [IPV6] IPSEC: Support sending with Mobile IPv6 extension headers. Mobile IPv6 defines home address option as an option of destination options header. It is placed before fragment header then ip6_find_1stfragopt() is fixed to know about it. Home address option also carries final source address of the flow, then outbound AH calculation should take care of it like routing header case. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 793832361fe7e9c3fcae2edd1d293c583a0a095c tree 43ee73c5f5cd329089c3fbcf71594036974d6be3 parent 8dd7368dd97def967bbb3aec67b882e8dfd1a528 author Masahide NAKAMURA Wed, 23 Aug 2006 19:27:25 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:55 -0700 [IPV6] MIP6: Revert address to send ICMPv6 error. IPv6 source address is replaced in receiving packet with home address option carried by destination options header. To send ICMPv6 error back, original address which is received one on wire should be used. This function checks such header is included and reverts them. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 8dd7368dd97def967bbb3aec67b882e8dfd1a528 tree 8d5b9cb5b4fa6319a8b91b16163873b5ebf3660d parent a831f5bbc89a9978795504be9e1ff412043f8f77 author David S. Miller Wed, 23 Aug 2006 19:25:55 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:54 -0700 [IPV6]: Put dsthao after flags in order to pack inet6_skb_parm better. Signed-off-by: David S. Miller commit a831f5bbc89a9978795504be9e1ff412043f8f77 tree 755b7e5478b64358a5716fdaa675516d9d36ab3d parent 842426e719f86cd5709617208efae93ff1a1e2d8 author Masahide NAKAMURA Wed, 23 Aug 2006 19:24:48 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:53 -0700 [IPV6] MIP6: Add inbound interface of home address option. Add inbound function of home address option by registering it to TLV table for destination options header. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 842426e719f86cd5709617208efae93ff1a1e2d8 tree aa18a6fae1c45b645c8ae8fcb1568e3d3502cabc parent a80ff03e05e4343d647780c116b02ec86078fd24 author Noriaki TAKAMIYA Wed, 23 Aug 2006 19:21:34 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:52 -0700 [IPV6] MIP6: Add home address option definition. Add home address option definition for Mobile IPv6. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit a80ff03e05e4343d647780c116b02ec86078fd24 tree 71f62b9b95ad1b01b2af9d3032324bb2501ae703 parent c61a404325093250b676f40ad8f4dd00f3bcab5f author Masahide NAKAMURA Wed, 23 Aug 2006 19:19:50 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:51 -0700 [IPV6]: Allow to replace skbuff by TLV parser. In receiving Mobile IPv6 home address option which is a TLV carried by destination options header, kernel will try to mangle source adderss of packet. Think of cloned skbuff it is required to replace it by the parser just like routing header case. This is a framework to achieve that to allow TLV parser to replace inbound skbuff pointer. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit c61a404325093250b676f40ad8f4dd00f3bcab5f tree 8494f117afa5d79fcd97d57fe69e64369d5a78d7 parent 280a9d340057ce1b3cca63084df22f4ef5b35fba author Masahide NAKAMURA Wed, 23 Aug 2006 19:18:35 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:50 -0700 [IPV6]: Find option offset by type. This is a helper to search option offset from extension header which can carry TLV option like destination options header. Mobile IPv6 home address option will use it. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 280a9d340057ce1b3cca63084df22f4ef5b35fba tree fc41839e13cc27f8f3607f829202f1e46cc52e87 parent 65d4ed92219b28875efb52de5700da8c3dfa83e1 author Masahide NAKAMURA Wed, 23 Aug 2006 19:17:12 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:49 -0700 [IPV6] MIP6: Add socket option and ancillary data interface of routing header type 2. Add socket option and ancillary data interface of routing header type 2. Mobile IPv6 application will use this to send binding acknowledgement with the header without relation of confirmed route optimization (binding). Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 65d4ed92219b28875efb52de5700da8c3dfa83e1 tree dc400aa962fa77147128dfe46da34cdbf4a7eb7a parent 642ec62eee5bdc158e01029220c8a23c685778fb author Masahide NAKAMURA Wed, 23 Aug 2006 19:16:22 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:48 -0700 [IPV6] MIP6: Add inbound interface of routing header type 2. Add inbound interface of routing header type 2 for Mobile IPv6. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 642ec62eee5bdc158e01029220c8a23c685778fb tree 37ed4f32dd4fc919f29af4f34e14c9a6eb058b85 parent ee53826801a8fa7a0e333895421ef6d0e5fbfbf0 author Noriaki TAKAMIYA Wed, 23 Aug 2006 19:15:07 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:47 -0700 [IPV6] MIP6: Add routing header type 2 definition. Add routing header type 2 definition for Mobile IPv6. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit ee53826801a8fa7a0e333895421ef6d0e5fbfbf0 tree ea7e689d5c1b3fd7c57d441bff5ad477286b7023 parent 654b32c6aad19d2fd363813cd8a1a1e64daf611b author Masahide NAKAMURA Wed, 23 Aug 2006 19:13:46 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:46 -0700 [IPV6]: Add Kconfig to enable Mobile IPv6. Add Kconfig to enable Mobile IPv6. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit 654b32c6aad19d2fd363813cd8a1a1e64daf611b tree 280057a850e9d79752eb6b20bafb475a0c6f67d9 parent e53820de0f81da1429048634cadc6ef5f50c2f8b author Masahide NAKAMURA Wed, 23 Aug 2006 19:12:56 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:45 -0700 [XFRM]: Fix message about transformation user interface. Transformation user interface is not only for IPsec. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit e53820de0f81da1429048634cadc6ef5f50c2f8b tree 7a63689f564c0719a0d4fea2cc5d3b84ea00fbbd parent 9afaca057980c02771f4657c455cc7592fcd7373 author Masahide NAKAMURA Wed, 23 Aug 2006 19:12:01 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:44 -0700 [XFRM] IPV6: Restrict bundle reusing For outbound transformation, bundle is checked whether it is suitable for current flow to be reused or not. In such IPv6 case as below, transformation may apply incorrect bundle for the flow instead of creating another bundle: - The policy selector has destination prefix length < 128 (Two or more addresses can be matched it) - Its bundle holds dst entry of default route whose prefix length < 128 (Previous traffic was used such route as next hop) - The policy and the bundle were used a transport mode state and this time flow address is not matched the bundled state. This issue is found by Mobile IPv6 usage to protect mobility signaling by IPsec, but it is not a Mobile IPv6 specific. This patch adds strict check to xfrm_bundle_ok() for each state mode and address when prefix length is less than 128. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 9afaca057980c02771f4657c455cc7592fcd7373 tree 3ef6e1b304248fad27c8063b7fbffdba966a0671 parent 060f02a3bdd4d9ba8aa3c48e9b470672b1f3a585 author Masahide NAKAMURA Wed, 23 Aug 2006 18:20:16 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:43 -0700 [XFRM] IPV6: Update outbound state timestamp for each sending. With this patch transformation state is updated last used time for each sending. Xtime is used for it like other state lifetime expiration. Mobile IPv6 enabled nodes will want to know traffic status of each binding (e.g. judgement to request binding refresh by correspondent node, or to keep home/care-of nonce alive by mobile node). The last used timestamp is an important hint about it. Based on MIPL2 kernel patch. This patch was also written by: Henrik Petander Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 060f02a3bdd4d9ba8aa3c48e9b470672b1f3a585 tree 0eb60cf50ad70ceb856c82c32124470f6bce2d86 parent 1b5c229987dc4d0c92a38fac0cde2aeec08cd775 author Noriaki TAKAMIYA Wed, 23 Aug 2006 18:18:55 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:42 -0700 [XFRM] STATE: Introduce care-of address. Care-of address is carried by state as a transformation option like IPsec encryption/authentication algorithm. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit 1b5c229987dc4d0c92a38fac0cde2aeec08cd775 tree 5726243af6aa7194f1ed65e0340539e1ee5c6a42 parent 99505a843673faeae962a8cde128c7c034ba6b5e author Masahide NAKAMURA Wed, 23 Aug 2006 18:11:50 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:41 -0700 [XFRM] STATE: Support non-fragment outbound transformation headers. For originated outbound IPv6 packets which will fragment, ip6_append_data() should know length of extension headers before sending them and the length is carried by dst_entry. IPv6 IPsec headers fragment then transformation was designed to place all headers after fragment header. OTOH Mobile IPv6 extension headers do not fragment then it is a good idea to make dst_entry have non-fragment length to tell it to ip6_append_data(). Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 99505a843673faeae962a8cde128c7c034ba6b5e tree f12a7409b5981881e56fcf5ca973de0d5d6001bd parent 9e51fd371a022318c5b64b831c43026e89bc4f75 author Masahide NAKAMURA Wed, 23 Aug 2006 18:10:33 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:41 -0700 [XFRM] STATE: Add a hook to obtain local/remote outbound address. Outbound transformation replaces both source and destination address with state's end-point addresses at the same time when IPsec tunnel mode. It is also required to change them for Mobile IPv6 route optimization, but we should care about the following differences: - changing result is not end-point but care-of address - either source or destination is replaced for each state This hook is a common platform to change outbound address. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 9e51fd371a022318c5b64b831c43026e89bc4f75 tree d11b58ab8d89bc52eb5c875a8e698fcb285c87ef parent fbd9a5b47ee9c319ff0cae584391241ce78ffd6b author Masahide NAKAMURA Wed, 23 Aug 2006 18:09:09 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:40 -0700 [XFRM]: Rename secpath_has_tunnel to secpath_has_nontransport. On current kernel inbound transformation state is allowed transport and disallowed tunnel mode when mismatch is occurred between tempates and states. As the result of adding two more modes by Mobile IPv6, this function name is misleading. Inbound transformation can allow only transport mode when mismatch is occurred between template and secpath. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit fbd9a5b47ee9c319ff0cae584391241ce78ffd6b tree 3e6cdcf297e3f82b7ab276e5ffa59abfcb912f44 parent f3bd484021d9486b826b422a017d75dd0bd258ad author Masahide NAKAMURA Wed, 23 Aug 2006 18:08:21 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:39 -0700 [XFRM] STATE: Common receive function for route optimization extension headers. XFRM_STATE_WILDRECV flag is introduced; the last resort state is set it and receives packet which is not route optimized but uses such extension headers i.e. Mobile IPv6 signaling (binding update and acknowledgement). A node enabled Mobile IPv6 adds the state. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit f3bd484021d9486b826b422a017d75dd0bd258ad tree 52ec4e50183dffc02d33bd3cfcafe4cbc2022910 parent 1d71627d699eca831c1fbfb66ea67bb1fba41415 author Masahide NAKAMURA Wed, 23 Aug 2006 18:00:48 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:38 -0700 [XFRM]: Restrict authentication algorithm only when inbound transformation protocol is IPsec. For Mobile IPv6 usage, routing header or destination options header is used and it doesn't require this comparison. It is checked only for IPsec template. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 1d71627d699eca831c1fbfb66ea67bb1fba41415 tree 19652e18b0b5f58c94674d8b32168c8c93e0b151 parent aee5adb4307c4c63a4dc5f3b49984d76f8a71b5b author Masahide NAKAMURA Wed, 23 Aug 2006 17:59:44 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:37 -0700 [XFRM] STATE: Introduce route optimization mode. Route optimization is used with routing header and destination options header for Mobile IPv6. At outbound it makes header space like IPsec transport. At inbound it does nothing because exhdrs.c functions have responsibility to update skbuff information for these headers. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit aee5adb4307c4c63a4dc5f3b49984d76f8a71b5b tree b2daac197259c535d66749617ede6f8479b355a4 parent eb2971b68a7d17a7d0fa2c7fc6fbc4bfe41cd694 author Masahide NAKAMURA Wed, 23 Aug 2006 17:57:28 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:36 -0700 [XFRM] STATE: Add a hook to find offset to be inserted header in outbound. On current kernel, ip6_find_1stfragopt() is used by IPv6 IPsec to find offset to be inserted header in outbound for transport mode. (BTW, no usage may be needed for IPv4 case.) Mobile IPv6 requires another logic for routing header and destination options header respectively. This patch is common platform for the offset and adopts it to IPsec. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit eb2971b68a7d17a7d0fa2c7fc6fbc4bfe41cd694 tree 5f6e98ac376d0d2faa69e8a6644706a7312a1ff1 parent 6c44e6b7ab500d7e3e3f406c83325671be51a752 author Masahide NAKAMURA Wed, 23 Aug 2006 17:56:04 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:35 -0700 [XFRM] STATE: Search by address using source address list. This is a support to search transformation states by its addresses by using source address list for Mobile IPv6 usage. To use it from user-space, it is also added a message type for source address as a xfrm state option. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 6c44e6b7ab500d7e3e3f406c83325671be51a752 tree d68b6347f4e437cd4aac9444ed9ee323f73eb06c parent 622dc8281a80374873686514e46f852093d91106 author Masahide NAKAMURA Wed, 23 Aug 2006 17:53:57 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:34 -0700 [XFRM] STATE: Add source address list. Support source address based searching. Mobile IPv6 will use it. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 622dc8281a80374873686514e46f852093d91106 tree 21ea09f939b3fe56e346b92fb07eaebc58e6f2a2 parent dc00a525603650a1471c823a1e48c6505c2f9765 author Masahide NAKAMURA Wed, 23 Aug 2006 17:52:01 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:33 -0700 [XFRM]: Expand XFRM_MAX_DEPTH for route optimization. XFRM_MAX_DEPTH is a limit of transformation states to be applied to the same flow. Two more extension headers are used by Mobile IPv6 transformation. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit dc00a525603650a1471c823a1e48c6505c2f9765 tree 5ea2b999a564daf2f6fb217db13859db702b4537 parent 5794708f11551b6d19b10673abf4b0202f66b44d author Masahide NAKAMURA Wed, 23 Aug 2006 17:49:52 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:32 -0700 [XFRM] STATE: Allow non IPsec protocol. It will be added two more transformation protocols (routing header and destination options header) for Mobile IPv6. xfrm_id_proto_match() can be handle zero as all, IPSEC_PROTO_ANY as all IPsec and otherwise as exact one. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 5794708f11551b6d19b10673abf4b0202f66b44d tree 60d954e185dd80af7e6c08608fd0528cf21a5d41 parent 7e49e6de30efa716614e280d97963c570f3acf29 author Masahide NAKAMURA Fri, 22 Sep 2006 15:06:24 -0700 committer David S. Miller Fri, 22 Sep 2006 15:06:24 -0700 [XFRM]: Introduce a helper to compare id protocol. Put the helper to header for future use. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 7e49e6de30efa716614e280d97963c570f3acf29 tree 8eaef9d40300d16a7675722e082c5d8ab2a53d40 parent 77d16f450ae0452d7d4b009f78debb1294fb435c author Masahide NAKAMURA Fri, 22 Sep 2006 15:05:15 -0700 committer David S. Miller Fri, 22 Sep 2006 15:05:15 -0700 [XFRM]: Add XFRM_MODE_xxx for future use. Transformation mode is used as either IPsec transport or tunnel. It is required to add two more items, route optimization and inbound trigger for Mobile IPv6. Based on MIPL2 kernel patch. This patch was also written by: Ville Nuorvala Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 77d16f450ae0452d7d4b009f78debb1294fb435c tree 464c7c05b32a03068f47af064285a9bce876962d parent 4e96c2b4180aff4f080b77314712073c6ca430e7 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:25:05 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:56 -0700 [IPV6] ROUTE: Unify RT6_F_xxx and RT6_SELECT_F_xxx flags Unify RT6_F_xxx and RT6_SELECT_F_xxx flags into RT6_LOOKUP_F_xxx flags, and put them into ip6_route.h Signed-off-by: YOSHIFUJI Hideaki Acked-by: Ville Nuorvala commit 4e96c2b4180aff4f080b77314712073c6ca430e7 tree a8b7da386b59d7ceaec567a8b5f84c8d0c07fc59 parent c0bece9f2aec546c3750ae3972f80e024a923f34 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:23:39 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:55 -0700 [IPV6] KCONFIG: Add subtrees support. This is for developers only. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala commit c0bece9f2aec546c3750ae3972f80e024a923f34 tree 82a6527979ecaf0b6b2a21d70a2e37baba22e4cd parent cb15d9c224fcc03b32396c1c7416e777c2dcca34 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:23:25 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:55 -0700 [IPV6] ROUTE: Add credits about subtree fixes. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit cb15d9c224fcc03b32396c1c7416e777c2dcca34 tree f946bbfc56daeff71560bd0fb2648bf49a38cd87 parent 150730d5a53b1bbb486101b2a5fb82ff0d3f916e author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:23:11 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:54 -0700 [IPV6] NDISC: Search subtrees when backtracking on receipt of redirects. Signed-off-by: YOSHIFUJI Hideaki Acked-by: Ville Nuorvala commit 150730d5a53b1bbb486101b2a5fb82ff0d3f916e tree d14162b46a962ee3f2e15efd59ff3fd79882ee9d parent 982f56f3a9be4651520c0fdd3d80a5d02e95a178 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:22:55 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:53 -0700 [IPV6] ROUTE: Purge clones on other trees when deleting a route. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala commit 982f56f3a9be4651520c0fdd3d80a5d02e95a178 tree d58b624d1a384bb280aecc2b626c2c18c072eb7d parent 7fc33165a74301b2c5c90b2f2a1f6907cbd5c6f1 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:22:39 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:52 -0700 [IPV6] ROUTE: Search subtree when backtracking. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit 7fc33165a74301b2c5c90b2f2a1f6907cbd5c6f1 tree 377c2299e95fcaae378a3498ccda7b09517722cc parent fefc2a6c201aeafc1d0329a140de502d49f69d04 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:22:24 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:51 -0700 [IPV6] ROUTE: Put SUBTREE() as FIB6_SUBTREE() into ip6_fib.h for future use. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit fefc2a6c201aeafc1d0329a140de502d49f69d04 tree ca3e95d6558719ed7c833880de0099e5587edc70 parent 825e288ef4c55a379a97e104c825eb9b74874099 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:21:50 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:50 -0700 [IPV6] ROUTE: Allow searching subtree only. Signed-off-by: YOSHIFUJI Hideaki Acked-by: Ville Nuorvala Signed-off-by: David S. Miller commit 825e288ef4c55a379a97e104c825eb9b74874099 tree 38cfe6e2e051dd464a115cd9e9c80e634d159328 parent 3fc5e0440be7fab3abae4e801b0ef17e9b3b58c4 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:21:29 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:49 -0700 [IPV6] ROUTE: Make sure we do not exceed args in fib6_lookup_1(). Signed-off-by: YOSHIFUJI Hideaki Acked-by: Ville Nuorvala Signed-off-by: David S. Miller commit 3fc5e0440be7fab3abae4e801b0ef17e9b3b58c4 tree 3512287b6942518c10c122d213334629e2266fd2 parent 2285adc1e6c9f964f9625e7edcd233fccd7a7c92 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:21:12 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:48 -0700 [IPV6] ROUTE: Fix looking up a route on subtree. Even on RTN_ROOT node, we need to process its subtree first. Fix NULL pointer dereference in fib6_locate(). Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit 2285adc1e6c9f964f9625e7edcd233fccd7a7c92 tree 9a101ad7a1bff6e8bf4ba5edef3d39254e6b1216 parent 66729e18df08ee20a9824148236b89f56371659e author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:20:54 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:47 -0700 [IPV6] ROUTE: Prune clones from main tree as well. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit 66729e18df08ee20a9824148236b89f56371659e tree 6f974289880a6a3d6df0e30c9d9c4a067f65c5d0 parent 8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:20:34 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:46 -0700 [IPV6] ROUTE: Make sure we have fn->leaf when adding a node on subtree. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit 8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe tree 245489015b33604df5b270ce3c027205d867a929 parent cf6b1982599cbb60f410adeda659b0b29cdf7ad7 author YOSHIFUJI Hideaki Tue, 29 Aug 2006 17:15:09 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:45 -0700 [IPV6]: Cache source address as well in ipv6_pinfo{}. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit cf6b1982599cbb60f410adeda659b0b29cdf7ad7 tree 37d6b5ad9cc071a99bf175f707f2a1a969763941 parent af184765848c280c7e6190f45c827c5ea3881126 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:19:18 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:44 -0700 [IPV6] ROUTE: Introduce a helper to check route validity. Signed-off-by: YOSHIFUJI Hideaki Acked-by: Ville Nuorvala Signed-off-by: David S. Miller commit af184765848c280c7e6190f45c827c5ea3881126 tree 82d6515825c9679ac5140ec635b4a12fef71ad03 parent a6279458c534d01ccc39498aba61c93083ee0372 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:18:57 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:43 -0700 [IPV6] NDISC: Initialize fl with outbound interface to lookup rules properly. Based on MIPL2 kernel patch. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit a6279458c534d01ccc39498aba61c93083ee0372 tree aeca5c6e3e54345bd35f8217e705f90f414d9452 parent 5e032e32ecc2e6cb0385dc115ca9bfe5e19a9539 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:18:26 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:42 -0700 [IPV6] NDISC: Search over all possible rules on receipt of redirect. Split up function for finding routes for redirects. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 5e032e32ecc2e6cb0385dc115ca9bfe5e19a9539 tree a920b2450737c8688ed7fbbbc73b47a7402f04c6 parent a57d27fc7107ddcc655ba2812cfebfce3163fd62 author YOSHIFUJI Hideaki Wed, 23 Aug 2006 17:12:24 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:41 -0700 [IPV6] NDISC: Take source address into account for redirects. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit a57d27fc7107ddcc655ba2812cfebfce3163fd62 tree 98f5e6816bf1771e9489aa50e781c21bb36d21ca parent 2809486424df58043b380aeb9d7f402c031c46f6 author David S. Miller Tue, 22 Aug 2006 22:20:14 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:40 -0700 [RTNETLINK]: Don't return error on no-metrics. Instead just cancel the nested attribute and return 0. Signed-off-by: David S. Miller commit 2809486424df58043b380aeb9d7f402c031c46f6 tree 60d502933dfb03185adc398fbba1b8af5381984b parent 3fd091e73b81f131e1567c4d4a1ec042940bf2f7 author Thomas Graf Tue, 22 Aug 2006 13:52:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:40 -0700 [NETFILTER]: x_tables: Fix typos after conversion to use mass registation helper Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 3fd091e73b81f131e1567c4d4a1ec042940bf2f7 tree c08ebbeee329bbc31cb578db1dddde7394431f5f parent ce556b3a591fff3bebf8c5590a86aa98e1b2f153 author Vladislav Yasevich Tue, 22 Aug 2006 13:29:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:39 -0700 [SCTP]: Remove multiple levels of msecs to jiffies conversions. The SCTP sysctl entries are displayed in milliseconds, but stored internally in jiffies. This results in multiple levels of msecs to jiffies conversion and as a result produces a truncation error. This patch makes things consistent in that we store and display defaults in milliseconds and only convert once for use by association. This patch also adds some sane min/max values so that we don't go off the deep end. Signed-off-by: Vladislav Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit ce556b3a591fff3bebf8c5590a86aa98e1b2f153 tree 6d4599be0d63b2375fad373a162dc55102caf29c parent 5fa2a7601f994bdd034e871b7ea1abd6969fbb6c author Patrick McHardy Tue, 22 Aug 2006 00:44:14 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:38 -0700 [NETFILTER]: xt_tcpmss: minor cleanups - remove unused define - remove useless wrapper function - use new line for expression after condition Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 5fa2a7601f994bdd034e871b7ea1abd6969fbb6c tree 79c5294c070494498728f7f36f1ea424bf52ad8f parent 91270cf81765152f6e77953440beb4d3b34a71b5 author Patrick McHardy Tue, 22 Aug 2006 00:43:55 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:37 -0700 [NETFILTER]: ip6_tables: consolidate dst and hbh matches The matches are identical besides one looking for NEXTHDR_HOP, the other for NEXTHDR_DEST. Remove ip6t_dst.c and handle both in ip6t_hbh.c. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 91270cf81765152f6e77953440beb4d3b34a71b5 tree e8cd187341a8626612ef800ff6f42e535c9861dc parent 53e26658282373b84ba85a0c9807cb762f7738a6 author Patrick McHardy Tue, 22 Aug 2006 00:43:38 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:36 -0700 [NETFILTER]: x_tables: add data member to struct xt_match Shared match functions can use this to make runtime decisions basen on the used match. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 53e26658282373b84ba85a0c9807cb762f7738a6 tree 53b6a8e005c668958068b0fb9fbf603e9a22379d parent efa741656e9ebf5fd6e0432b0d1b3c7f156392d3 author Patrick McHardy Tue, 22 Aug 2006 00:43:20 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:35 -0700 [NETFILTER]: nfnetlink: remove unnecessary packed attributes Remove unnecessary packed attributes in nfnetlink structures. Unfortunately in a few cases they have to stay to avoid changing structure sizes. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit efa741656e9ebf5fd6e0432b0d1b3c7f156392d3 tree 18ad158b5972904bd9ba930e5c6ec49181f3b400 parent fe1cb10873b44cf89082465823ee6d4d4ac63ad7 author Patrick McHardy Tue, 22 Aug 2006 00:36:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:34 -0700 [NETFILTER]: x_tables: remove unused size argument to check/destroy functions The size is verified by x_tables and isn't needed by the modules anymore. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit fe1cb10873b44cf89082465823ee6d4d4ac63ad7 tree 0176a23fb45e7e45182e5b852a08c6ab16db2015 parent 4470bbc749e5551cce914529309456f631e25120 author Patrick McHardy Tue, 22 Aug 2006 00:35:47 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:33 -0700 [NETFILTER]: x_tables: remove unused argument to target functions Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 4470bbc749e5551cce914529309456f631e25120 tree 972978df336c49235889dc745124fdfd1b990349 parent 52d9c42ef2563d2c420eb23b96bf5a4cae9e167b author Patrick McHardy Tue, 22 Aug 2006 00:34:04 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:32 -0700 [NETFILTER]: x_tables: make use of mass registation helpers Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 52d9c42ef2563d2c420eb23b96bf5a4cae9e167b tree 003022136c43ea48a2d5dcde5c06c261b1705e86 parent 90528e6fe92ee1a353d6a639930e7d70d85b5c85 author Patrick McHardy Tue, 22 Aug 2006 00:33:45 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:31 -0700 [NETFILTER]: x_tables: add helpers for mass match/target registration Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 90528e6fe92ee1a353d6a639930e7d70d85b5c85 tree 4a23ac908acf5ef10b15e8d52354f5915a54d628 parent da878c8e5aae3eeceeee7af8d52633d7bc125edf author Patrick McHardy Tue, 22 Aug 2006 00:33:26 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:30 -0700 [NETFILTER]: xt_CONNMARK: use tabs for indentation Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit da878c8e5aae3eeceeee7af8d52633d7bc125edf tree 27f67c9713e98919e5c38d6cc85a05e9485576e9 parent 1158ba27bec6d1a20999099a938908cf85f47640 author Patrick McHardy Tue, 22 Aug 2006 00:33:09 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:29 -0700 [NETFILTER]: replace open coded checksum updates Replace open coded checksum update by nf_csum_update calls and clean up the surrounding code a bit. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1158ba27bec6d1a20999099a938908cf85f47640 tree dd638a9cab5d580887b6a5498b1a0cc0dfd77fab parent 1a31526baeed30aaa70503cee0ab281f78cae0d6 author Patrick McHardy Tue, 22 Aug 2006 00:32:47 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:28 -0700 [NETFILTER]: nfnetlink_queue: fix typo in error message Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1a31526baeed30aaa70503cee0ab281f78cae0d6 tree bf54c585c3c3d3de92f76645cd40ee5c4fb2d2db parent b3a27bfba51d445784eb0cd6451b73a73fb69cf9 author Pablo Neira Ayuso Tue, 22 Aug 2006 00:32:23 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:27 -0700 [NETFILTER]: ctnetlink: remove impossible events tests for updates IPCT_HELPER and IPCT_NATINFO bits are never set on updates. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit b3a27bfba51d445784eb0cd6451b73a73fb69cf9 tree 0c697133c749cf83167c6e314a4c40ca14d520db parent b9a37e0c81c498be2db9f52063c53e55d76c815e author Pablo Neira Ayuso Tue, 22 Aug 2006 00:32:05 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:26 -0700 [NETFILTER]: ctnetlink: check for listeners before sending expectation events This patch uses nfnetlink_has_listeners to check for listeners in userspace. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit b9a37e0c81c498be2db9f52063c53e55d76c815e tree 9ffb59b51a083c12db5616aeba15f77efbc86508 parent 2521c12cf1a29f6c380b13ca32a38175f6beed08 author Pablo Neira Ayuso Tue, 22 Aug 2006 00:31:49 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:25 -0700 [NETFILTER]: ctnetlink: dump connection mark ctnetlink dumps the mark iif the event mark happened Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 2521c12cf1a29f6c380b13ca32a38175f6beed08 tree 9077f28bd5a1fd25de83874f30cabcd28acb9e6c parent b93ff78317c0b8f42830e2bb13dd8df596232528 author Pablo Neira Ayuso Tue, 22 Aug 2006 00:31:24 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:24 -0700 [NETFILTER]: conntrack: introduce connection mark event This patch introduces the mark event. ctnetlink can use this to know if the mark needs to be dumped. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit b93ff78317c0b8f42830e2bb13dd8df596232528 tree 1a37f733e793463c196f31aebe03e2b5058c991f parent a468701db58a8b3e08e3f55fa6ac66db42014922 author Daniel De Graaf Tue, 22 Aug 2006 00:30:55 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:23 -0700 [NETFILTER]: ipt_recent: add module parameter for changing ownership of /proc/net/ipt_recent/* Signed-off-by: Daniel De Graaf Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit a468701db58a8b3e08e3f55fa6ac66db42014922 tree 7b4b0fe62a7d15eae25b3013fd3ecaf13bce5028 parent 9ba1627617d396135a4d679542a3623d5819e628 author Yasuyuki Kozakai Tue, 22 Aug 2006 00:30:26 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:22 -0700 [NETFILTER]: x_tables: replace IPv4 DSCP target by address family independent version This replaces IPv4 DSCP target by address family independent version. This also - utilizes dsfield.h to get/mangle DS field in IPv4/IPv6 header - fixes Kconfig help text. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 9ba1627617d396135a4d679542a3623d5819e628 tree 4a0a72bca0e4a6ad91ae89b572ac58a074ba4eab parent 131852176c1f5b4350b4af811d1836db387d0c61 author Yasuyuki Kozakai Tue, 22 Aug 2006 00:29:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:21 -0700 [NETFILTER]: x_tables: replace IPv4 dscp match by address family independent version This replaces IPv4 dscp match by address family independent version. This also - utilizes dsfield.h to get the DS field in IPv4/IPv6 header, and - checks for the DSCP value from user space. - fixes Kconfig help text. Signed-off-by: Yasuyuki Kozakai Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 131852176c1f5b4350b4af811d1836db387d0c61 tree 1092efea1219dd4ea2c146b68563c72568183e78 parent 8abfedd889e46ad4977dfcdab737edf5c5803c62 author Henrik Kretzschmar Tue, 22 Aug 2006 00:28:33 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:20 -0700 [TG3]: Convert the pci_device_id table to PCI_DEVICE() Convert the pci_device_ids to PCI_DEVICE() macro. Saves 1.5k in the sourcefile. Signed-off-by: Henrik Kretzschmar Acked-by: Michael Chan Signed-off-by: David S. Miller commit 8abfedd889e46ad4977dfcdab737edf5c5803c62 tree 0c2921fb1b708b7c06d9a0fd81defad0c7a9e562 parent eb5fa39f5ef490c72901b547ac5e7211efd47d56 author Sridhar Samudrala Tue, 22 Aug 2006 00:24:09 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:19 -0700 [SCTP]: Use the flags value that is passed as an arg to sctp_accept. No need to do multiple dereferences - sk->sk_socket->file->f_flags Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit eb5fa39f5ef490c72901b547ac5e7211efd47d56 tree d580df5be11d8a0be0fa45c90588622925046db2 parent df7deeb5402087ea0387173aaf067d37a264a8f0 author Vladislav Yasevich Tue, 22 Aug 2006 00:23:13 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:18 -0700 [SCTP]: Fix IPv6 address flag setting when doing peel-off/accept. During accept/peeloff we try to copy the list of bound addresses from the original endpoint to the new one. However, we forgot to set the flag to say that IPv6 is allowed on the new endpoint. Signed-off-by: Vladislav Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit df7deeb5402087ea0387173aaf067d37a264a8f0 tree 3001b220fe38b48a0bf2d7a4f4590fd2c8ed87e3 parent ac0b04627269ff16c3c7ab854a65fe6780c6e3e5 author Vladislav Yasevich Tue, 22 Aug 2006 00:19:51 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:17 -0700 [SCTP]: Cleanup nomem handling in the state functions. This patch cleans up the "nomem" conditions that may occur during the processing by the state machine functions. In most cases we delay adding side-effect commands until all memory allocations are done. Signed-off-by: Vladislav Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit ac0b04627269ff16c3c7ab854a65fe6780c6e3e5 tree 421ea678ea12d1e193b3bbf27fb1410355ba9b47 parent 72d3b2c970a2d5d2ccb1d1cab4fb76663c4f2e49 author Sridhar Samudrala Tue, 22 Aug 2006 00:15:33 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:16 -0700 [SCTP]: Extend /proc/net/sctp/snmp to provide more statistics. This patch adds more statistics info under /proc/net/sctp/snmp that should be useful for debugging. The additional events that are counted now include timer expirations, retransmits, packet and data chunk discards. The Data chunk discards include all the cases where a data chunk is discarded including high tsn, bad stream, dup tsn and the most useful one(out of receive buffer/rwnd). Also moved the SCTP MIB data structures from the generic include directories to include/sctp/sctp.h. Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 72d3b2c970a2d5d2ccb1d1cab4fb76663c4f2e49 tree 2b75caaaf7c5b6de325b0037169671b6c186f711 parent ab364a6f96bad9625bdb97b5688c76c44eb1e96e author David S. Miller Tue, 22 Aug 2006 00:13:07 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:15 -0700 [IPV6]: Fixup ip6_del_rt() call for new args. Signed-off-by: David S. Miller commit ab364a6f96bad9625bdb97b5688c76c44eb1e96e tree 6a85db5eb05c524401855c77c8e489272869c7b6 parent 2d7202bfdd28687073f5efef8d2f51bbab0af867 author Thomas Graf Tue, 22 Aug 2006 00:01:47 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:14 -0700 [IPv6] route: Convert GETROUTE to use new netlink api Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace applications. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 2d7202bfdd28687073f5efef8d2f51bbab0af867 tree cde1c82c196c353658fc7ede31ea153a306ed7f9 parent 86872cb57925c46a6499887d77afb880a892c0ec author Thomas Graf Tue, 22 Aug 2006 00:01:27 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:13 -0700 [IPv6] route: Convert FIB6 dumping to use new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 86872cb57925c46a6499887d77afb880a892c0ec tree bc0442efb85226adac5c7ae43e632639dd1b6899 parent 40e22e8f3d4d4f1ff68fb03683f007c53ee8b348 author Thomas Graf Tue, 22 Aug 2006 00:01:08 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:12 -0700 [IPv6] route: FIB6 configuration using struct fib6_config Replaces the struct in6_rtmsg based interface orignating from the ioctl interface with a struct fib6_config based on. Allows changing the interface without breaking the ioctl interface and avoids passing on tons of parameters. The recently introduced struct nl_info is used to pass on netlink authorship information for notifications. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 40e22e8f3d4d4f1ff68fb03683f007c53ee8b348 tree e630e465a8fdd12e674d8a160a695a72cf81ca8d parent e0a1ad73d34fd6dfdb630479400511e9879069c0 author Thomas Graf Tue, 22 Aug 2006 00:00:45 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:11 -0700 [IPv6] route: Simplify ip6_ins_rt() Provide a simple ip6_ins_rt() for the majority of users and an alternative for the exception via netlink. Avoids code obfuscation. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit e0a1ad73d34fd6dfdb630479400511e9879069c0 tree eda7611d42a7184131056e08b0bfb13d18b0e24e parent e9ce1cd3cf6cf35b21d0ce990f2e738f35907386 author Thomas Graf Tue, 22 Aug 2006 00:00:21 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:11 -0700 [IPv6] route: Simplify ip6_del_rt() Provide a simple ip6_del_rt() for the majority of users and an alternative for the exception via netlink. Avoids code obfuscation. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit e9ce1cd3cf6cf35b21d0ce990f2e738f35907386 tree 22a3ee7b78ae7cbf00520c66dcc389d87740069c parent 2e4ca75b31b6851dcc036c2cdebf3ecfe279a653 author David S. Miller Mon, 21 Aug 2006 23:54:55 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:10 -0700 [PKT_SCHED]: Kill pkt_act.h inlining. This was simply making templates of functions and mostly causing a lot of code duplication in the classifier action modules. We solve this more cleanly by having a common "struct tcf_common" that hash worker functions contained once in act_api.c can work with. Callers work with real action objects that have the common struct plus their module specific struct members. You go from a common object to the higher level one using a "to_foo()" macro which makes use of container_of() to do the dirty work. This also kills off act_generic.h which was only used by act_simple.c and keeping it around was more work than the it's value. Signed-off-by: David S. Miller commit 2e4ca75b31b6851dcc036c2cdebf3ecfe279a653 tree e1810a6adbbf145b7fafbdaef002b7752a1d2b4f parent d3e01f71863da30a2d6bfca069a036168b6c8607 author Stephen Hemminger Thu, 17 Aug 2006 18:20:18 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:09 -0700 [ETH]: indentation and cleanup Run ethernet support through Lindent and fix up. Applies after docbook comments patch Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit d3e01f71863da30a2d6bfca069a036168b6c8607 tree a2daae93a4ac90070ec0ce5a3ffa5c11542d37ee parent e92b43a3455d3e817c13481bb3ea3cd29d0a47f4 author Stephen Hemminger Thu, 17 Aug 2006 18:18:53 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:08 -0700 [ETH]: docbook comments Add docbook style comments to ethernet support. Signed-off-by: Stephen Hemminger Acked-by: Randy Dunlap Signed-off-by: David S. Miller commit e92b43a3455d3e817c13481bb3ea3cd29d0a47f4 tree e1c02f4f95c9887a0498175023c77a1f37553d5c parent d889ce3b29e55b91257964b4c9aac70b91fedd91 author Stephen Hemminger Thu, 17 Aug 2006 18:17:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:07 -0700 [NET] neighbour: reduce exports There are several symbols only used by rtnetlink and since it can not be a module, there is no reason to export them. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit d889ce3b29e55b91257964b4c9aac70b91fedd91 tree 6d9250959b3cf33ceae6fcd90f34a12315bddb1c parent be403ea1856f1428b5912b42184acbba808c41d6 author Thomas Graf Thu, 17 Aug 2006 18:15:44 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:06 -0700 [IPv4]: Convert route get to new netlink api Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace applications. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit be403ea1856f1428b5912b42184acbba808c41d6 tree 53b7ae4a3d07dd6bcf84f01963aaa32dba2b3a45 parent 4e902c57417c4c285b98ba2722468d1c3ed83d1b author Thomas Graf Thu, 17 Aug 2006 18:15:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:05 -0700 [IPv4]: Convert FIB dumping to use new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 4e902c57417c4c285b98ba2722468d1c3ed83d1b tree 83251829a4bc9628a3543e5f70e7b11090fe22d9 parent ab32ea5d8a760e7dd4339634e95d7be24ee5b842 author Thomas Graf Thu, 17 Aug 2006 18:14:52 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:04 -0700 [IPv4]: FIB configuration using struct fib_config Introduces struct fib_config replacing the ugly struct kern_rta prone to ordering issues. Avoids creating faked netlink messages for auto generated routes or requests via ioctl. A new interface net/nexthop.h is added to help navigate through nexthop configuration arrays. A new struct nl_info will be used to carry the necessary netlink information to be used for notifications later on. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit ab32ea5d8a760e7dd4339634e95d7be24ee5b842 tree 8460a66c529fe03f926848326d9b6aa874e19514 parent 56fc85ac961e2c20dcb5ef07e2628b3f93de2e49 author Brian Haley Fri, 22 Sep 2006 14:15:41 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:03 -0700 [NET/IPV4/IPV6]: Change some sysctl variables to __read_mostly Change net/core, ipv4 and ipv6 sysctl variables to __read_mostly. Couldn't actually measure any performance increase while testing (.3% I consider noise), but seems like the right thing to do. Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit 56fc85ac961e2c20dcb5ef07e2628b3f93de2e49 tree 337f2a13b49fcfc140885a1cc6c3f9e0024277fb parent 0ec6d3f467faeec5dd3b617959eb90e9d520113d author Thomas Graf Tue, 15 Aug 2006 00:37:29 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:02 -0700 [RTNETLINK]: Unexport rtnl socket Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 0ec6d3f467faeec5dd3b617959eb90e9d520113d tree 9258098a14c5a2f50e730e4422d17eabbeadfcbb parent bd5785ba3ac1c89aa4c351ceb2acd96686424d8c author Thomas Graf Tue, 15 Aug 2006 00:37:09 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:01 -0700 [NET] link: Convert notifications to use rtnl_notify() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit bd5785ba3ac1c89aa4c351ceb2acd96686424d8c tree 26e473bff32af75af82ebab226d18bba8ba459cb parent 280a306c539389156477cc9c07028d43fe4fbf86 author Thomas Graf Tue, 15 Aug 2006 00:36:49 -0700 committer David S. Miller Fri, 22 Sep 2006 14:55:00 -0700 [WIRELESS]: Convert notifications to use rtnl_notify() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 280a306c539389156477cc9c07028d43fe4fbf86 tree 956c9fe4e045236bb02980ebe35edc489c6bb47a parent 8c384bfa36b1dbeba8154da20d49167ce3e275c4 author Thomas Graf Tue, 15 Aug 2006 00:36:28 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:59 -0700 [BRIDGE]: Convert notifications to use rtnl_notify() Fixes a wrong use of current->pid as netlink pid. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 8c384bfa36b1dbeba8154da20d49167ce3e275c4 tree 799c78f4b32fc3651bb5e53bc0a8042bbf322828 parent 8d7a76c9b17866f426fcbb531c81af7a1f53e071 author Thomas Graf Tue, 15 Aug 2006 00:36:07 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:58 -0700 [IPv6] prefix: Convert prefix notifications to use rtnl_notify() Fixes a wrong use of current->pid as netlink pid. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 8d7a76c9b17866f426fcbb531c81af7a1f53e071 tree 4eb93041c3454f719324826072c6a42983701b1c parent 21713ebc4f119950e87d21c4637d5a750eea20e8 author Thomas Graf Tue, 15 Aug 2006 00:35:47 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:57 -0700 [IPv6] link: Convert link notifications to use rtnl_notify() Fixes a wrong use of current->pid as netlink pid. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 21713ebc4f119950e87d21c4637d5a750eea20e8 tree 9aee5c6012e7676e6ec70afb907adab912f347c1 parent 5d620266431c03d1dac66287367c6da26c64a069 author Thomas Graf Tue, 15 Aug 2006 00:35:24 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:56 -0700 [IPv6] route: Convert route notifications to use rtnl_notify() Fixes a wrong use of current->pid as netlink pid. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 5d620266431c03d1dac66287367c6da26c64a069 tree f4a8a1dd4a12a3cd7ca8167551cf11be36a49f79 parent f21c7bc5f6a0a5bd03988886ff46656bc3f255b7 author Thomas Graf Tue, 15 Aug 2006 00:35:02 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:55 -0700 [IPv6] address: Convert address notification to use rtnl_notify() Fixes a wrong use of current->pid as netlink pid. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit f21c7bc5f6a0a5bd03988886ff46656bc3f255b7 tree fdbb479b329d10a23315c57573b3485214dfdd1f parent d6062cbbd1f5e92c94e5eae9ef1a280ed48d56d5 author Thomas Graf Tue, 15 Aug 2006 00:34:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:54 -0700 [IPv4] route: Convert route notifications to use rtnl_notify() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit d6062cbbd1f5e92c94e5eae9ef1a280ed48d56d5 tree 1712e15976e15f63e2038772179276ffe926d336 parent dc738dd83e88c3c5de55431f8cfb758de5d4df48 author Thomas Graf Tue, 15 Aug 2006 00:33:59 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:53 -0700 [IPv4] address: Convert address notification to use rtnl_notify() Adds support for NLM_F_ECHO allowing applications to easly see which address have been deleted, added, or promoted. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit dc738dd83e88c3c5de55431f8cfb758de5d4df48 tree bf82bfdb484002d72a2bf2e568514e58b5f397c3 parent b8673311804ca29680dd584bd08352001fcbe2f8 author Thomas Graf Tue, 15 Aug 2006 00:33:35 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:52 -0700 [DECNET]: Convert DECnet notifications to use rtnl_notify() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit b8673311804ca29680dd584bd08352001fcbe2f8 tree c9061b88debe78fae16e60fcb43f1e931abfa448 parent c17084d21c18497b506bd28b82d964bc9e6c424b author Thomas Graf Tue, 15 Aug 2006 00:33:14 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:51 -0700 [NEIGH]: Convert neighbour notifications ot use rtnl_notify() Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit c17084d21c18497b506bd28b82d964bc9e6c424b tree 2c8c32dfc2b1535b2f9edf6cb70ec1a86c48c0f0 parent 97676b6b5538b3e059d33b8338e7d5cc41c5f1f1 author Thomas Graf Tue, 15 Aug 2006 00:32:48 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:51 -0700 [NET] fib_rules: Convert fib rule notification to use rtnl_notify() Adds support for NLM_F_ECHO to simplify the process of identifying inserted rules with an auto generated priority. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 97676b6b5538b3e059d33b8338e7d5cc41c5f1f1 tree 76e41eb58bd86a96e204dacbb6746da387e67452 parent d387f6ad10764fc2174373b4a1cca443adee36e3 author Thomas Graf Tue, 15 Aug 2006 00:31:41 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:50 -0700 [RTNETLINK]: Add rtnetlink notification interface Adds rtnl_notify() to send rtnetlink notification messages and rtnl_set_sk_err() to report notification errors as socket errors in order to indicate the need of a resync due to loss of events. nlmsg_report() is added to properly document the meaning of NLM_F_ECHO. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit d387f6ad10764fc2174373b4a1cca443adee36e3 tree ed22c34f55de9c668eed1727d46239f3b48599b7 parent 2942e90050569525628a9f34e0daaa9b661b49cc author Thomas Graf Tue, 15 Aug 2006 00:31:06 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:49 -0700 [NETLINK]: Add notification message sending interface Adds nlmsg_notify() implementing proper notification logic. The message is multicasted to all listeners in the group. The applications the requests orignates from can request a unicast back report in which case said socket will be excluded from the multicast to avoid duplicated notifications. nlmsg_multicast() is extended to take allocation flags to allow notification in atomic contexts. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 2942e90050569525628a9f34e0daaa9b661b49cc tree fc6acc11514e64ff9efc31bdc1bb458232206642 parent f8d8fda54a1bfcf8cf829e44c494b2b4582819aa author Thomas Graf Tue, 15 Aug 2006 00:30:25 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:48 -0700 [RTNETLINK]: Use rtnl_unicast() for rtnetlink unicasts Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit f8d8fda54a1bfcf8cf829e44c494b2b4582819aa tree 370f231339db628ef05f291a8511cc5f53ba330c parent 62872e2dcb3127b20a49e3b4b1d93523cf476cc4 author David S. Miller Tue, 15 Aug 2006 00:15:41 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:47 -0700 [IPV6] udp: Fix type in previous change. UDPv6 stats are UDP6_foo not UDP_foo. Signed-off-by: David S. Miller commit 62872e2dcb3127b20a49e3b4b1d93523cf476cc4 tree b6ac296c59ab341a26c2a3562d347fac93cbf1dc parent 9c3bd6833a4df1abd9ecd3b51492b8949bf9cd11 author Stphane Witzmann Tue, 15 Aug 2006 00:09:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:46 -0700 [ARCNET]: SoHard PCI support Add support for a SoHard PCI ARCnet card. Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 9c3bd6833a4df1abd9ecd3b51492b8949bf9cd11 tree 6835d90852cd40289ad970b979b694ed55203e60 parent 9a673e563e543a5c8a6f9824562e55e807b8a56c author Bjorn Helgaas Tue, 15 Aug 2006 00:05:38 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:45 -0700 [IRDA]: Replace hard-coded dev_self[] array sizes with ARRAY_SIZE() Several IR drivers used "for (i = 0; i < 4; i++)" to walk their dev_self[] table. Better to use ARRAY_SIZE(). And fix ali-ircc so it won't run off the end if we find too many adapters. Signed-off-by: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 9a673e563e543a5c8a6f9824562e55e807b8a56c tree 53d26641175411b04ce7c755df72e515b3bf79ad parent 97a4f3e7110619568aa239fe19143d9ec42dede5 author Adrian Bunk Tue, 15 Aug 2006 00:03:53 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:44 -0700 [SELINUX]: security/selinux/hooks.c: Make 4 functions static. This patch makes four needlessly global functions static. Signed-off-by: Adrian Bunk Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 97a4f3e7110619568aa239fe19143d9ec42dede5 tree e11b066c4cae9b770ef413a09d84447959caf1f0 parent a18135eb9389c26d36ef5c05bd8bc526e0cbe883 author Alan Cox Tue, 15 Aug 2006 00:01:05 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:43 -0700 [NETFILTER]: Make unused signal code go away so nobody copies its brokenness This code is wrong on so many levels, please lose it so it isn't replicated anywhere else. Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit a18135eb9389c26d36ef5c05bd8bc526e0cbe883 tree 7e5c18ab898e9bd7871ce7f4944d808954a1e000 parent 81aa646cc4df3779bcbf9d18cc2c0813ee9b3262 author David S. Miller Tue, 15 Aug 2006 00:00:09 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:42 -0700 [IPV6]: Add UDP_MIB_{SND,RCV}BUFERRORS handling. Signed-off-by: David S. Miller commit 81aa646cc4df3779bcbf9d18cc2c0813ee9b3262 tree 7cf11f1e09f83b97a36012c187231504c4654199 parent 2aa7f36cdb332a32849afbf25fcbf35dce5b1940 author Martin Bligh Mon, 14 Aug 2006 23:57:10 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:41 -0700 [IPV4]: add the UdpSndbufErrors and UdpRcvbufErrors MIBs Signed-off-by: Martin Bligh Signed-off-by: Andrew Morton commit 2aa7f36cdb332a32849afbf25fcbf35dce5b1940 tree dcf6403b12dbd2b37148a6e8abca74b3ceb36019 parent 50da859d4e566fba90ebda87b843970d902c903e author Adrian Bunk Mon, 14 Aug 2006 23:55:20 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:40 -0700 [DECNET]: cleanups - make the following needlessly global functions static: - dn_fib.c: dn_fib_sync_down() - dn_fib.c: dn_fib_sync_up() - dn_rules.c: dn_fib_rule_action() - remove the following unneeded prototype: - dn_fib.c: dn_cache_dump() Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 50da859d4e566fba90ebda87b843970d902c903e tree 43d7e49e429afe62b61920ba4d8d4278bcf6ced1 parent 90d41122f79c8c3687d965dde4c6d30a6e0cac4c author Andreas Mohr Mon, 14 Aug 2006 23:54:30 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:39 -0700 [TG3]: Constify firmware structs Constify largish areas of firmware data in Tigon3 ethernet driver. non-const: lsmod: tg3 101404 0 objdump -x: .rodata 000003e8 .data 00004a0c ls -l: -rw-r--r-- 1 root root 114404 2006-08-19 21:36 drivers/net/tg3.ko const: lsmod: tg3 101404 0 objdump -x: .rodata 000042c8 .data 00000b4c ls -l: -rw-r--r-- 1 root root 114532 2006-08-19 21:06 drivers/net/tg3.ko Signed-off-by: Andreas Mohr Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 90d41122f79c8c3687d965dde4c6d30a6e0cac4c tree 97aba5d36e7e7a923b9cc0611602219d88b4766e parent d1aa62f15b511457af2233150c960dc1fd02769b author Adrian Bunk Mon, 14 Aug 2006 23:49:16 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:38 -0700 [IPV6] ip6_fib.c: make code static Make the following needlessly global code static: - fib6_walker_lock - struct fib6_walker_list - fib6_walk_continue() - fib6_walk() Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit d1aa62f15b511457af2233150c960dc1fd02769b tree 8f5b1055de7d8de7551eb7f559d644b846938aea parent d880309ae17783c27016bf4f903782d322d0a2a1 author Steven Whitehouse Fri, 11 Aug 2006 16:44:18 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:37 -0700 [DECNET] Fix to decnet rules compare function Here is a fix to the DECnet rules compare function where we used 32bit values rather than 16bit values. Spotted by Patrick McHardy. Signed-off-by: Steven Whitehouse Signed-off-by: David S. Miller commit d880309ae17783c27016bf4f903782d322d0a2a1 tree 9d573199c073960cd9b077c7f22c6183fbb2564e parent b6fe17d6cc5d570b72f8e4da351b593c5a680355 author Steven Whitehouse Fri, 11 Aug 2006 16:43:41 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:36 -0700 [DECNET] Fix to multiple tables routing Here is a fix to Patrick McHardy's increase number of routing tables patch for DECnet. I did just test this and it appears to be working fine with this patch. Signed-off-by: Steven Whitehouse Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit b6fe17d6cc5d570b72f8e4da351b593c5a680355 tree 7245b8476733a9066e453d53c5eb86d168db8b33 parent 3696f625e2efa1f1b228b276788274e1eb86fcfa author Stephen Hemminger Tue, 29 Aug 2006 17:06:13 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:35 -0700 [NET] netdev: Check name length Some improvements to robust name interface. These API's are safe now by convention, but it is worth providing some safety checks against future bugs. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 3696f625e2efa1f1b228b276788274e1eb86fcfa tree 2dfe12d28e7b0017fd3594bf5d1fd46cd2ff0c7e parent 0cef296da9331e871401076b8c0688b2b31fcadd author Stephen Hemminger Thu, 10 Aug 2006 23:36:01 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:34 -0700 [HTB]: rbtree cleanup Add code to initialize rb tree nodes, and check for double deletion. This is not a real fix, but I can make it trap sometimes and may be a bandaid for: http://bugzilla.kernel.org/show_bug.cgi?id=6681 Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 0cef296da9331e871401076b8c0688b2b31fcadd tree 0baba2aa63de49c135d7c3e35a3f5227dfc48573 parent 87990467d387f922103db31678034785d8f21cb7 author Stephen Hemminger Thu, 10 Aug 2006 23:35:38 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:34 -0700 [HTB]: Use hlist for hash lists. Use hlist instead of list for the hash list. This saves space, and we can check for double delete better. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 87990467d387f922103db31678034785d8f21cb7 tree e9bf5a4c22daa703feb246fec34500e938e3718e parent 18a63e868b04cf949643cc9d2c8a51d8cb5da9c4 author Stephen Hemminger Thu, 10 Aug 2006 23:35:16 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:33 -0700 [HTB]: Lindent Code was a mess in terms of indentation. Run through Lindent script, and cleanup the damage. Also, don't use, vim magic comment, and substitute inline for __inline__. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 18a63e868b04cf949643cc9d2c8a51d8cb5da9c4 tree 5c5643cf93f8f7bec1b2bbc4443628346be51a1a parent 9ac961ee05bfc837e5271be34ad7158e90dce7d9 author Stephen Hemminger Thu, 10 Aug 2006 23:34:02 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:32 -0700 [HTB]: HTB_HYSTERESIS cleanup Change the conditional compilation around HTB_HYSTERSIS since code was splitting mid expression. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 9ac961ee05bfc837e5271be34ad7158e90dce7d9 tree da3c748809f3854fa69a1fc9fba86e52a5c083ca parent 3bf72957d2a553c343e4285463ef0a88139bdec4 author Stephen Hemminger Thu, 10 Aug 2006 23:33:16 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:31 -0700 [HTB]: Remove lock macro. Get rid of the macro's being used to obscure the locking. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 3bf72957d2a553c343e4285463ef0a88139bdec4 tree dd7f6882d7ba513d849914db8c7f074bcc69b0c1 parent b801f54917b7c6e8540f877ee562cd0725e62ebd author Stephen Hemminger Thu, 10 Aug 2006 23:31:08 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:30 -0700 [HTB]: Remove broken debug code. The HTB network scheduler had debug code that wouldn't compile and confused and obfuscated the code, remove it. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit b801f54917b7c6e8540f877ee562cd0725e62ebd tree 4e9bfbe7109fd7ccd9a685771b0c37f753726455 parent abcab268303c22d24fc89fedd35d82271d20f5da author Patrick McHardy Thu, 10 Aug 2006 23:12:34 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:29 -0700 [NET]: Increate RT_TABLE_MAX to 2^32 Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit abcab268303c22d24fc89fedd35d82271d20f5da tree 2add5b99164734899d92ad37d89b1ded91c219bf parent 1b43af5480c351dbcb2eef478bafe179cbeb6e83 author Patrick McHardy Thu, 10 Aug 2006 23:11:47 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:28 -0700 [DECNET]: Increase number of possible routing tables to 2^32 Increase the number of possible routing tables to 2^32 by replacing the fixed sized array of pointers by a hash table and replacing iterations over all possible table IDs by hash table walking. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1b43af5480c351dbcb2eef478bafe179cbeb6e83 tree c69adf005f89c7f5147ad338f1e7243aebc14008 parent 1af5a8c4a11cfed0c9a7f30fcfb689981750599c author Patrick McHardy Thu, 10 Aug 2006 23:11:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:27 -0700 [IPV6]: Increase number of possible routing tables to 2^32 Increase number of possible routing tables to 2^32 by replacing iterations over all possible table IDs by hash table walking. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 1af5a8c4a11cfed0c9a7f30fcfb689981750599c tree 9affafefd0b4a023d527e3f5d386957bd1dace7b parent 9e762a4a89b302cb3b26a1f9bb33eff459eaeca9 author Patrick McHardy Thu, 10 Aug 2006 23:10:46 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:26 -0700 [IPV4]: Increase number of possible routing tables to 2^32 Increase the number of possible routing tables to 2^32 by replacing the fixed sized array of pointers by a hash table and replacing iterations over all possible table IDs by hash table walking. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 9e762a4a89b302cb3b26a1f9bb33eff459eaeca9 tree 4be606cc6bfe097beac3aeeea32b4adc107409b7 parent 2dfe55b47e3d66ded5a84caf71e0da5710edf48b author Patrick McHardy Thu, 10 Aug 2006 23:09:48 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:25 -0700 [NET]: Introduce RTA_TABLE/FRA_TABLE attributes Introduce RTA_TABLE route attribute and FRA_TABLE routing rule attribute to hold 32 bit routing table IDs. Usespace compatibility is provided by continuing to accept and send the rtm_table field, but because of its limited size it can only carry the low 8 bits of the table ID. This implies that if larger IDs are used, _all_ userspace programs using them need to use RTA_TABLE. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 2dfe55b47e3d66ded5a84caf71e0da5710edf48b tree f3818a7016985f79856212d797921e319bff8cd2 parent d924424aaed116b362c6d0e667d912b77e655085 author Patrick McHardy Thu, 10 Aug 2006 23:08:33 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:24 -0700 [NET]: Use u32 for routing table IDs Use u32 for routing table IDs in net/ipv4 and net/decnet in preparation of support for a larger number of routing tables. net/ipv6 already uses u32 everywhere and needs no further changes. No functional changes are made by this patch. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit d924424aaed116b362c6d0e667d912b77e655085 tree 3e0471efbc0e5bdba5daee4238eb3996aaafb5d7 parent 1e38bb3a38d08129d08c904b10ea3ba08e22d297 author Stephen Hemminger Thu, 10 Aug 2006 23:03:23 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:23 -0700 [NEIGHBOUR]: Use ALIGN() macro. Rather than opencoding the mask, it looks better to use ALIGN() macro from kernel.h. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 1e38bb3a38d08129d08c904b10ea3ba08e22d297 tree 9397a07c4ba054be8a343694597a622b16fcdaf9 parent bf0d52492d82ad70684e17c8a46942c13d0e140e author David S. Miller Thu, 10 Aug 2006 00:22:41 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:22 -0700 [NET]: Kill double initialization in sock_alloc_inode. No need to set ei->socket.flags to zero twice. Signed-off-by: David S. Miller commit bf0d52492d82ad70684e17c8a46942c13d0e140e tree d3d60f2eb4a19dc18d00a53f6aebeae60629234f parent f0fd27d42e39b91f85e1840ec49b072fd6c545b8 author Dave Jones Fri, 22 Sep 2006 14:00:29 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:21 -0700 [NET]: Remove unnecessary config.h includes from net/ config.h is automatically included by kbuild these days. Signed-off-by: Dave Jones Signed-off-by: David S. Miller commit f0fd27d42e39b91f85e1840ec49b072fd6c545b8 tree aa4d1cbe1671507e4d0ec6787076db92a0ee5926 parent 55737fda0bc73cb20f702301d8b52938a5a43630 author Stephen Hemminger Wed, 09 Aug 2006 21:03:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:20 -0700 [NET]: sock_register interface changes The sock_register() doesn't change the family, so the protocols can define it read-only. No caller ever checks return value from sock_unregister() Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 55737fda0bc73cb20f702301d8b52938a5a43630 tree a605776f772aa189a655da9e5854db5d95e844b7 parent 757dbb494be3309fe41ce4c62f8057d8b41d8897 author Stephen Hemminger Fri, 01 Sep 2006 00:23:39 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:19 -0700 [NET]: socket family using RCU Replace the gross custom locking done in socket code for net_family[] with simple RCU usage. Some reordering necessary to avoid sleep issues with sock_alloc. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 757dbb494be3309fe41ce4c62f8057d8b41d8897 tree f55c1a64768261d71b7845c33d1984ec78eeea77 parent 89bddce58e85bb18b13f5077e8349ba9a3ee2597 author Stephen Hemminger Wed, 09 Aug 2006 20:50:00 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:18 -0700 [NET]: drop unused elements from net_proto_family Three values in net_proto_family are defined but never used. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 89bddce58e85bb18b13f5077e8349ba9a3ee2597 tree ec91323f823a43be782efcfd2914ae6a2edf7ab6 parent 53fad3cbff120d8987f377eff374cf4db4ecb177 author Stephen Hemminger Fri, 01 Sep 2006 00:19:31 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:17 -0700 [NET] socket: code style cleanup Make socket.c conform to current style: * run through Lindent * get rid of unneeded casts * split assignment and comparsion where possible Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 53fad3cbff120d8987f377eff374cf4db4ecb177 tree 43078f18154d1109913f95d7fc3bd7da61ca8f1b parent a22ec367b08455f95fa0096ce1999950b6f6911c author Sridhar Samudrala Wed, 09 Aug 2006 17:03:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:16 -0700 [SUNRPC]: Remove the unnecessary check for highmem in xs_sendpages(). Just call kernel_sendpage() directly. Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit a22ec367b08455f95fa0096ce1999950b6f6911c tree ca6a3be19df20cf63b513d8540e9dc84b5e33bc4 parent a8731cbf61c8768ea129780b70dc7dfc6795aad4 author Steven Whitehouse Wed, 09 Aug 2006 16:00:57 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:15 -0700 [DECNET]: Convert rwlock to spinlock As per Stephen Hemminger's recent patch to ipv4/fib_semantics.c this is the same change but for DECnet. Signed-off-by: Steven Whitehouse Signed-off-by: David S. Miller commit a8731cbf61c8768ea129780b70dc7dfc6795aad4 tree 82e177adc2b342d9943d1737f82fc1b205116b14 parent 8f491069b40be5d627007a343f99759e9da6a178 author Steven Whitehouse Wed, 09 Aug 2006 15:56:46 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:15 -0700 [DECNET]: Covert rules to use generic code This patch converts the DECnet rules code to use the generic rules system created by Thomas Graf . Signed-off-by: Steven Whitehouse Acked-by: Thomas Graf Signed-off-by: David S. Miller commit 8f491069b40be5d627007a343f99759e9da6a178 tree ba2be735de32fa30015fe22febf4329c8e79ca25 parent 832b4c5e184391773e462653aa862a8cab71f38d author Herbert Xu Wed, 09 Aug 2006 15:47:12 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:14 -0700 [IPV4]: Use network-order dport for all visible inet_lookup_* Right now most inet_lookup_* functions take a host-order hnum instead of a network-order dport because that's how it is represented internally. This means that users of these functions have to be careful about using the right byte-order. To add more confusion, inet_lookup takes a network-order dport unlike all other functions. So this patch changes all visible inet_lookup functions to take a dport and move all dport->hnum conversion inside them. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 832b4c5e184391773e462653aa862a8cab71f38d tree 46eb431ae2f0e2b58a4929bbf3363f64633f10b0 parent b14295532421c40f82ee099fdbd3d011f022e756 author Stephen Hemminger Tue, 29 Aug 2006 16:48:09 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:13 -0700 [IPV4] fib: convert reader/writer to spinlock Ther is no point in using a more expensive reader/writer lock for a low contention lock like the fib_info_lock. The only reader case is in handling route redirects. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit b14295532421c40f82ee099fdbd3d011f022e756 tree 5b08b1c3ef0a33952db11c484fb0e2c69190aac6 parent 99a92ff50424146ba01a222248fd47a1cd55b78f author Ville Nuorvala Tue, 08 Aug 2006 16:44:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:12 -0700 [IPV6]: Make sure fib6_rule_lookup doesn't return NULL The callers of fib6_rule_lookup don't expect it to return NULL, therefore it must return ip6_null_entry whenever fib_rule_lookup fails. Signed-off-by: Ville Nuorvala Signed-off-by: David S. Miller commit 99a92ff50424146ba01a222248fd47a1cd55b78f tree 85f78f657bfb7379206d3b27c5c3fa77bb7a1cd9 parent 1a01912ae0a5666c4c24eaae2b4821711e2ad79a author Herbert Xu Tue, 08 Aug 2006 02:18:10 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:11 -0700 [IPV4]: Uninline inet_lookup_listener By modern standards this function is way too big to be inlined. It's even bigger than __inet_lookup_listener :) Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 1a01912ae0a5666c4c24eaae2b4821711e2ad79a tree 64a3767ce51581a67b435931a3868f545bcac764 parent 0298f36a579b5bd7f10f6f6d57e5929977a865a1 author Louis Nyffenegger Tue, 08 Aug 2006 00:56:11 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:10 -0700 [INET]: Remove is_setbyuser patch The value is_setbyuser from struct ip_options is never used and set only one time (http://linux-net.osdl.org/index.php/TODO#IPV4). This little patch removes it from the kernel source. Signed-off-by: Louis Nyffenegger Signed-off-by: David S. Miller commit 0298f36a579b5bd7f10f6f6d57e5929977a865a1 tree 090ba1183c598a5e7f65e89998538f3917d7f093 parent 8423a9aadfaa135fd5fd1ab8bbd4a1e76b4143c9 author David S. Miller Mon, 07 Aug 2006 21:56:52 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:09 -0700 [IPV4]: Kill fib4_rules_clean(). As noted by Adrian Bunk this function is totally unused. Signed-off-by: David S. Miller commit 8423a9aadfaa135fd5fd1ab8bbd4a1e76b4143c9 tree f9f98736ef5aee88a297043ecd4cc1cc6f655879 parent 8ce11e6a9faf1f1c849b77104adc1642c46aee95 author David S. Miller Mon, 07 Aug 2006 21:54:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:08 -0700 [IPV6]: Protect RTM_GETRULE table entry with IPV6_MULTIPLE_TABLES ifdef This is how IPv4 handles this case too. Based upon a patch from Andrew Morton. Signed-off-by: David S. Miller commit 8ce11e6a9faf1f1c849b77104adc1642c46aee95 tree 58b169b6856d5eafb8cbc1fa547ff967be9ad30c parent e6242e928ef1e4ed853f909a7479e4934f4bcb70 author Adrian Bunk Mon, 07 Aug 2006 21:50:48 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:07 -0700 [NET]: Make code static. This patch makes needlessly global code static. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit e6242e928ef1e4ed853f909a7479e4934f4bcb70 tree f348f28e1993c73b2683f7edf87ef673ad2d5ec8 parent ac5a488ef252ed673cb067843e411f8cc43f7ab9 author Sridhar Samudrala Mon, 07 Aug 2006 20:58:01 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:06 -0700 [SUNRPC]: Update to use in-kernel sockets API. Signed-off-by: Sridhar Samudrala Acked-by: James Morris Signed-off-by: David S. Miller commit ac5a488ef252ed673cb067843e411f8cc43f7ab9 tree e607478560ed050723fe5e578dc5ede37bedfa93 parent b63bbc5006a0a62fabc81c4f77e95f16ff16f340 author Sridhar Samudrala Mon, 07 Aug 2006 20:57:31 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:05 -0700 [NET]: Round out in-kernel sockets API This patch implements wrapper functions that provide a convenient way to access the sockets API for in-kernel users like sunrpc, cifs & ocfs2 etc and any future users. Signed-off-by: Sridhar Samudrala Acked-by: James Morris Signed-off-by: David S. Miller commit b63bbc5006a0a62fabc81c4f77e95f16ff16f340 tree 49c4e77ca662ca99863e556b08ff8900256f2a3a parent ca860fb39b4aa1479e2fea67435a2c1eac9ce789 author Thomas Graf Mon, 07 Aug 2006 18:00:57 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:04 -0700 [NEIGH]: Move netlink neighbour table bits to linux/neighbour.h rtnetlink_rcv_msg() is not longer required to parse attributes for the neighbour tables layer, remove dependency on obsolete and buggy rta_buf. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit ca860fb39b4aa1479e2fea67435a2c1eac9ce789 tree 02437f9e08c0cd001cef7e74adcb0f26c418f60c parent 6b3f8674bccbb2e784d01e44373fb730af6cb149 author Thomas Graf Mon, 07 Aug 2006 18:00:18 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:03 -0700 [NEIGH]: Convert neighbour table dumping to new netlink api Also fixes skipping of already dumped neighbours. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 6b3f8674bccbb2e784d01e44373fb730af6cb149 tree f6632cf6c5a06d79e3023aa5828600d64d348907 parent 9067c722cf6930adf1df2d169de9094dd90b0c33 author Thomas Graf Mon, 07 Aug 2006 17:58:53 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:02 -0700 [NEIGH]: Convert neighbour table modification to new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 9067c722cf6930adf1df2d169de9094dd90b0c33 tree eb2133038cbd85bbf55b5acd2d5297f03357e45b parent 8b8aec508302d4e63fd88f47894805115277f70f author Thomas Graf Mon, 07 Aug 2006 17:57:44 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:01 -0700 [NEIGH]: Move netlink neighbour bits to linux/neighbour.h Moves netlink neighbour bits to linux/neighbour.h. Also moves bits to be exported to userspace from net/neighbour.h to linux/neighbour.h and removes __KERNEL__ guards, userspace is not supposed to be using it. rtnetlink_rcv_msg() is not longer required to parse attributes for the neighbour layer, remove dependency on obsolete and buggy rta_buf. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 8b8aec508302d4e63fd88f47894805115277f70f tree 79972eb86fb0a01552bd6ed010126040aa32c34e parent 5208debd0f1da07bbb350f8b0b142775d4f002ea author Thomas Graf Mon, 07 Aug 2006 17:56:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:54:00 -0700 [NEIGH]: Convert neighbour dumping to new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 5208debd0f1da07bbb350f8b0b142775d4f002ea tree fc8d407d963c6d4b36a708006487327336b04c25 parent a14a49d2b7b9290e87751f21f503f1954267d4c4 author Thomas Graf Mon, 07 Aug 2006 17:55:40 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:59 -0700 [NEIGH]: Convert neighbour addition to new netlink api Fixes: Return EAFNOSUPPORT if no table matches the specified address family. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit a14a49d2b7b9290e87751f21f503f1954267d4c4 tree d2d8719332e1b6966d53830de955dec6fb360d70 parent 3226f6881719e61e00e92b4c85a8ef49aa4d42b1 author Thomas Graf Mon, 07 Aug 2006 17:53:08 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:58 -0700 [NEIGH]: Convert neighbour deletion to new netlink api Fixes: Return ENOENT if the neighbour is not found (was EINVAL) Return EAFNOSUPPORT if no table matches the specified address family. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 3226f6881719e61e00e92b4c85a8ef49aa4d42b1 tree 9070d7dcf78183e019a033c076fd335f4c37303c parent 6c813a7297e3af4cd7c3458e09e9ee3d161c6830 author Patrick McHardy Sun, 06 Aug 2006 22:24:08 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:58 -0700 [IPV6]: Fix policy routing lookup When the lookup in a table returns ip6_null_entry the policy routing lookup returns it instead of continuing in the next table, which effectively means it only searches the local table. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 6c813a7297e3af4cd7c3458e09e9ee3d161c6830 tree f4f954814585c1e5eda070742da5a108dd2dbc19 parent d7aba67f814729647c938ac6da2d5224b790f926 author Patrick McHardy Sun, 06 Aug 2006 22:22:47 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:57 -0700 [IPV6]: Fix crash in ip6_del_rt ip6_null_entry doesn't have rt6i_table set, when trying to delete it the kernel crashes dereferencing table->tb6_lock. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit d7aba67f814729647c938ac6da2d5224b790f926 tree a33704e2b4bf5276ddf9b664c0145e0f4b498c25 parent 394f545db6e7e4d7a6a2fa3f543b755ca39d58ac author Patrick McHardy Sat, 05 Aug 2006 02:20:42 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:56 -0700 [IPV6]: Fix thinko in rt6_fill_node This looks like a mistake, the table ID is overwritten again. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 394f545db6e7e4d7a6a2fa3f543b755ca39d58ac tree bc757b66d1a394948dace8b57a6272858e5a511b parent 4cf411de49c65140b3c259748629b561c0d3340f author Patrick McHardy Sat, 05 Aug 2006 00:58:52 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:55 -0700 [NETFILTER]: nf_queue: handle GSO packets Handle GSO packets in nf_queue by segmenting them before queueing to avoid breaking GSO in case they get mangled. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 4cf411de49c65140b3c259748629b561c0d3340f tree 71dbc9fbbb0b64e805033665e3653d991abb0f7e parent 84fa7933a33f806bbbaae6775e87459b1ec584c0 author Patrick McHardy Sat, 05 Aug 2006 00:58:33 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:54 -0700 [NETFILTER]: Get rid of HW checksum invalidation Update hardware checksums incrementally to avoid breaking GSO. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 tree 5be404225d90f640997b12f631e9b496b3fd0d61 parent 8584d6df39db5601965f9bc5e3bf2fea833ad7bb author Patrick McHardy Tue, 29 Aug 2006 16:44:56 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:53 -0700 [NET]: Replace CHECKSUM_HW by CHECKSUM_PARTIAL/CHECKSUM_COMPLETE Replace CHECKSUM_HW by CHECKSUM_PARTIAL (for outgoing packets, whose checksum still needs to be completed) and CHECKSUM_COMPLETE (for incoming packets, device supplied full checksum). Patch originally from Herbert Xu, updated by myself for 2.6.18-rc3. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 8584d6df39db5601965f9bc5e3bf2fea833ad7bb tree b0fe1c5a0bb36ac9692feebfc87c4ece3c0a083b parent 0844565fb8a9418f5a860aa480c1aef70319c9a2 author Patrick McHardy Sat, 05 Aug 2006 00:56:16 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:51 -0700 [NETFILTER]: netbios conntrack: fix compile Fix compile breakage caused by move of IFA_F_SECONDARY to new header file. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 0844565fb8a9418f5a860aa480c1aef70319c9a2 tree 9f75d9472ca3ad12121deef6729ddf96b8b8f687 parent b60c5115f4abf0b961a18682889798dcfbe6a801 author Thomas Graf Fri, 04 Aug 2006 23:05:56 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:50 -0700 [NET]: Move netlink interface bits to linux/if.h Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit b60c5115f4abf0b961a18682889798dcfbe6a801 tree 2612f4a912b3396b6770cb3b8a7ae0e71b0ecc13 parent da5e0494c542dddc56a1f1edfd30310ea30f41ff author Thomas Graf Fri, 04 Aug 2006 23:05:34 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:49 -0700 [NET]: Convert link dumping to new netlink api Transforms netlink code to dump link tables to use the new netlink api. Makes rtnl_getlink() available regardless of the availability of the wireless extensions. Adding copy_rtnl_link_stats() avoids the structural dependency of struct rtnl_link_stats on struct net_device_stats and thus avoids troubles later on. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit da5e0494c542dddc56a1f1edfd30310ea30f41ff tree 7b1a0d32607fa184f6b5a807cd877e9fe31a2bef parent 1823730fbc89fadde72a7bb3b7bdf03cc7b8835c author Thomas Graf Thu, 10 Aug 2006 21:17:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:48 -0700 [NET]: Convert link modification to new netlink api Transforms do_setlink() into rtnl_setlink() using the new netlink api. A warning message printed to the console is added in the event that a change request fails while part of the change request has been comitted already. The ioctl() based nature of net devices makes it almost impossible to move on to atomic netlink operations without obsoleting some of the functionality. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 1823730fbc89fadde72a7bb3b7bdf03cc7b8835c tree c11f23e7cc15f47d61994fc370ece9841203dec2 parent 47f68512d2685431f1781830dfcbab31bda87644 author Thomas Graf Fri, 04 Aug 2006 23:04:54 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:47 -0700 [IPv4]: Move interface address bits to linux/if_addr.h Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 47f68512d2685431f1781830dfcbab31bda87644 tree 3bf7335dd213ac1a51f497ee1f0c2ea49a26820a parent dfdd5fd4e93d98e06be9ac9db84e3b98c6c26706 author Thomas Graf Fri, 04 Aug 2006 23:04:36 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:46 -0700 [IPV4]: Convert address dumping to new netlink api Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit dfdd5fd4e93d98e06be9ac9db84e3b98c6c26706 tree 521f60c85516ace4a28db7c1e7a7a04e2a6557a2 parent 5c7539781d392629fb40b04aad9a1f197b66cd01 author Thomas Graf Fri, 04 Aug 2006 23:04:17 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:45 -0700 [IPV4]: Convert address deletion to new netlink api Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 5c7539781d392629fb40b04aad9a1f197b66cd01 tree 4c625e6191c7dd9fdb7d2479993c4b94ea322290 parent bf8b79e444a748963c71d2a58709e1ce5597e1b5 author Thomas Graf Fri, 04 Aug 2006 23:03:53 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:45 -0700 [IPV4]: Convert address addition to new netlink api Adds rtm_to_ifaddr() transforming a netlink message to a struct in_ifaddr. Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace applications. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit bf8b79e444a748963c71d2a58709e1ce5597e1b5 tree 4f598fc078926f3729cc615d0a5a00c2d1e57967 parent fe4944e59c357f945f81bc67edb7ed1392e875ad author Thomas Graf Fri, 04 Aug 2006 23:03:29 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:44 -0700 [NETLINK]: Convert core netlink handling to new netlink api Fixes a theoretical memory and locking leak when the size of the netlink header would exceed the skb tailroom. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit fe4944e59c357f945f81bc67edb7ed1392e875ad tree 9634365d416ac574442fc7e21e1eaa26a71a26d1 parent e1ef4bf23b1ced0bf78a1c98289f746486e5c912 author Thomas Graf Fri, 04 Aug 2006 23:03:05 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:43 -0700 [NETLINK]: Extend netlink messaging interface Adds: nlmsg_get_pos() return current position in message nlmsg_trim() trim part of message nla_reserve_nohdr(skb, len) reserve room for an attribute w/o hdr nla_put_nohdr(skb, len, data) add attribute w/o hdr nla_find_nested() find attribute in nested attributes Fixes nlmsg_new() to take allocation flags and consider size. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit e1ef4bf23b1ced0bf78a1c98289f746486e5c912 tree 9085559a5bf39e2dffa33d2ae4548d7b15d27064 parent 101367c2f8c464ea96643192673aa18d88e6336d author Thomas Graf Fri, 04 Aug 2006 03:39:22 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:42 -0700 [IPV4]: Use Protocol Independant Policy Routing Rules Framework Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 101367c2f8c464ea96643192673aa18d88e6336d tree bf129373fb6f9e168671f42bf597e5564cdfbd42 parent 14c0b97ddfc2944982d078b8e33b088840068976 author Thomas Graf Fri, 04 Aug 2006 03:39:02 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:41 -0700 [IPV6]: Policy Routing Rules Adds support for policy routing rules including a new local table for routes with a local destination. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 14c0b97ddfc2944982d078b8e33b088840068976 tree 41109287d7e143da29b4bc8742040582af17d870 parent c71099acce933455123ee505cc75964610a209ad author Thomas Graf Fri, 04 Aug 2006 03:38:38 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:40 -0700 [NET]: Protocol Independant Policy Routing Rules Framework Derived from net/ipv/fib_rules.c Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit c71099acce933455123ee505cc75964610a209ad tree cf167c926350ff6c4040289dacce54849824c240 parent 5d0bbeeb144f631150881712607345c532e38e7e author Thomas Graf Fri, 04 Aug 2006 23:20:06 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:39 -0700 [IPV6]: Multiple Routing Tables Adds the framework to support multiple IPv6 routing tables. Currently all automatically generated routes are put into the same table. This could be changed at a later point after considering the produced locking overhead. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 5d0bbeeb144f631150881712607345c532e38e7e tree 379a9e7bd63ecc3a4b3886aa297ba8cf282b273e parent 8161327311fe4da1684ed08015e141feb9a0a737 author Thomas Graf Fri, 04 Aug 2006 03:37:36 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:38 -0700 [IPV6]: Remove ndiscs rt6_lock dependency (Ab)using rt6_lock wouldn't work anymore if rt6_lock is converted into a per table lock. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 8161327311fe4da1684ed08015e141feb9a0a737 tree fe21222e18d93f01fa05c6bc2dd60f16fa03575f parent 7420ed23a4f77480b5b7b3245e5da30dd24b7575 author Paul Moore Thu, 03 Aug 2006 16:50:39 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:37 -0700 [NetLabel]: tie NetLabel into the Kconfig system Modify the net/Kconfig file to enable selecting the NetLabel Kconfig options. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 7420ed23a4f77480b5b7b3245e5da30dd24b7575 tree 016f5bb996c5eae66754b10243c5be6226d773f2 parent 96cb8e3313c7a12e026c1ed510522ae6f6023875 author Venkat Yekkirala Fri, 04 Aug 2006 23:17:57 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:36 -0700 [NetLabel]: SELinux support Add NetLabel support to the SELinux LSM and modify the socket_post_create() LSM hook to return an error code. The most significant part of this patch is the addition of NetLabel hooks into the following SELinux LSM hooks: * selinux_file_permission() * selinux_socket_sendmsg() * selinux_socket_post_create() * selinux_socket_sock_rcv_skb() * selinux_socket_getpeersec_stream() * selinux_socket_getpeersec_dgram() * selinux_sock_graft() * selinux_inet_conn_request() The basic reasoning behind this patch is that outgoing packets are "NetLabel'd" by labeling their socket and the NetLabel security attributes are checked via the additional hook in selinux_socket_sock_rcv_skb(). NetLabel itself is only a labeling mechanism, similar to filesystem extended attributes, it is up to the SELinux enforcement mechanism to perform the actual access checks. In addition to the changes outlined above this patch also includes some changes to the extended bitmap (ebitmap) and multi-level security (mls) code to import and export SELinux TE/MLS attributes into and out of NetLabel. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 96cb8e3313c7a12e026c1ed510522ae6f6023875 tree 35d796afb2365041bc98fdba8f1734419be6b6c8 parent d15c345fe3b8dfda0fa5a1d2143a35fffa746a43 author Paul Moore Thu, 03 Aug 2006 16:48:59 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:35 -0700 [NetLabel]: CIPSOv4 and Unlabeled packet integration Add CIPSO/IPv4 and unlabeled packet management to the NetLabel subsystem. The CIPSO/IPv4 changes allow the configuration of CIPSO/IPv4 within the overall NetLabel framework. The unlabeled packet changes allows NetLabel to pass unlabeled packets without error. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit d15c345fe3b8dfda0fa5a1d2143a35fffa746a43 tree 7de6afd5f4de2fca01eaca879e342ab493dc0bba parent 446fda4f26822b2d42ab3396aafcedf38a9ff2b6 author Paul Moore Thu, 03 Aug 2006 16:48:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:34 -0700 [NetLabel]: core NetLabel subsystem Add a new kernel subsystem, NetLabel, to provide explicit packet labeling services (CIPSO, RIPSO, etc.) to LSM developers. NetLabel is designed to work in conjunction with a LSM to intercept and decode security labels on incoming network packets as well as ensure that outgoing network packets are labeled according to the security mechanism employed by the LSM. The NetLabel subsystem is configured through a Generic NETLINK interface described in the header files included in this patch. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 446fda4f26822b2d42ab3396aafcedf38a9ff2b6 tree 1e095b7f705fafe0e301b7ce0c61a1f92a2a6a8d parent 11a03f78fbf15a866ba3bf6359a75cdfd1ced703 author Paul Moore Thu, 03 Aug 2006 16:48:06 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:33 -0700 [NetLabel]: CIPSOv4 engine Add support for the Commercial IP Security Option (CIPSO) to the IPv4 network stack. CIPSO has become a de-facto standard for trusted/labeled networking amongst existing Trusted Operating Systems such as Trusted Solaris, HP-UX CMW, etc. This implementation is designed to be used with the NetLabel subsystem to provide explicit packet labeling to LSM developers. The CIPSO/IPv4 packet labeling works by the LSM calling a NetLabel API function which attaches a CIPSO label (IPv4 option) to a given socket; this in turn attaches the CIPSO label to every packet leaving the socket without any extra processing on the outbound side. On the inbound side the individual packet's sk_buff is examined through a call to a NetLabel API function to determine if a CIPSO/IPv4 label is present and if so the security attributes of the CIPSO label are returned to the caller of the NetLabel API function. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 11a03f78fbf15a866ba3bf6359a75cdfd1ced703 tree 49c4c35124c05826a940fba6633dd815985cf8a9 parent 8802f616f6de8576805f32e47602816f141118f2 author Paul Moore Thu, 03 Aug 2006 16:46:20 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:32 -0700 [NetLabel]: core network changes Changes to the core network stack to support the NetLabel subsystem. This includes changes to the IPv4 option handling to support CIPSO labels. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit 8802f616f6de8576805f32e47602816f141118f2 tree 0763c745b3b09ebb085b7d8625447e284a5650de parent a51c64f1e5c2876eab2a32955acd9e8015c91c15 author Paul Moore Thu, 03 Aug 2006 16:45:49 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:31 -0700 [NetLabel]: documentation Documentation for the NetLabel system, this includes a basic overview of how NetLabel works, how LSM developers can integrate it into their favorite LSM, as well as documentation on the CIPSO related sysctl variables. Also, due to the difficulty of finding expired IETF drafts, I am including the IETF CIPSO draft that is the basis of the NetLabel CIPSO implementation. Signed-off-by: Paul Moore Signed-off-by: David S. Miller commit a51c64f1e5c2876eab2a32955acd9e8015c91c15 tree 1cc49c6ee7a3135ea000956e5fef41ff4c8e2ebe parent 4237c75c0a35535d7f9f2bfeeb4b4df1e068a0bf author Venkat Yekkirala Thu, 27 Jul 2006 22:01:34 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:30 -0700 [MLSXFRM]: Fix build with SECURITY_NETWORK_XFRM disabled. The following patch will fix the build problem (encountered by Andrew Morton) when SECURITY_NETWORK_XFRM is not enabled. As compared to git-net-selinux_xfrm_decode_session-build-fix.patch in -mm, this patch sets the return parameter sid to SECSID_NULL in selinux_xfrm_decode_session() and handles this value in the caller selinux_inet_conn_request() appropriately. Signed-off-by: Venkat Yekkirala Acked-by: James Morris Signed-off-by: David S. Miller commit 4237c75c0a35535d7f9f2bfeeb4b4df1e068a0bf tree 02adcb6fe6c346a8b99cf161ba5233ed1e572727 parent cb969f072b6d67770b559617f14e767f47e77ece author Venkat Yekkirala Mon, 24 Jul 2006 23:32:50 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:29 -0700 [MLSXFRM]: Auto-labeling of child sockets This automatically labels the TCP, Unix stream, and dccp child sockets as well as openreqs to be at the same MLS level as the peer. This will result in the selection of appropriately labeled IPSec Security Associations. This also uses the sock's sid (as opposed to the isec sid) in SELinux enforcement of secmark in rcv_skb and postroute_last hooks. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit cb969f072b6d67770b559617f14e767f47e77ece tree 4112eb0182e8b3e28b42aebaa40ca25454fc6b76 parent beb8d13bed80f8388f1a9a107d07ddd342e627e8 author Venkat Yekkirala Mon, 24 Jul 2006 23:32:20 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:28 -0700 [MLSXFRM]: Default labeling of socket specific IPSec policies This defaults the label of socket-specific IPSec policies to be the same as the socket they are set on. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit beb8d13bed80f8388f1a9a107d07ddd342e627e8 tree 19d5763b9b3b8ff3969997565e5ec0edd6e4bd33 parent 4e2ba18eae7f370c7c3ed96eaca747cc9b39f917 author Venkat Yekkirala Fri, 04 Aug 2006 23:12:42 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:27 -0700 [MLSXFRM]: Add flow labeling This labels the flows that could utilize IPSec xfrms at the points the flows are defined so that IPSec policy and SAs at the right label can be used. The following protos are currently not handled, but they should continue to be able to use single-labeled IPSec like they currently do. ipmr ip_gre ipip igmp sit sctp ip6_tunnel (IPv6 over IPv6 tunnel device) decnet Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit 4e2ba18eae7f370c7c3ed96eaca747cc9b39f917 tree 9165d8c0fea650e3cf226d4e0bb3c153978f8ae0 parent 0d681623d30c6565e8b62889f3aa3f4d4662c3e8 author Venkat Yekkirala Mon, 24 Jul 2006 23:31:14 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:26 -0700 [MLSXFRM]: Add security context to acquire messages using PF_KEY This includes the security context of a security association created for use by IKE in the acquire messages sent to IKE daemons using PF_KEY. This would allow the daemons to include the security context in the negotiation, so that the resultant association is unique to that security context. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit 0d681623d30c6565e8b62889f3aa3f4d4662c3e8 tree ecda711a40bcee7472e2e25e68cc712854245fad parent e0d1caa7b0d5f02e4f34aa09c695d04251310c6c author Serge Hallyn Mon, 24 Jul 2006 23:30:44 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:25 -0700 [MLSXFRM]: Add security context to acquire messages using netlink This includes the security context of a security association created for use by IKE in the acquire messages sent to IKE daemons using netlink/xfrm_user. This would allow the daemons to include the security context in the negotiation, so that the resultant association is unique to that security context. Signed-off-by: Serge Hallyn Signed-off-by: David S. Miller commit e0d1caa7b0d5f02e4f34aa09c695d04251310c6c tree bf023c17abf6813f2694ebf5fafff82edd6a1023 parent b6340fcd761acf9249b3acbc95c4dc555d9beb07 author Venkat Yekkirala Mon, 24 Jul 2006 23:29:07 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:24 -0700 [MLSXFRM]: Flow based matching of xfrm policy and state This implements a seemless mechanism for xfrm policy selection and state matching based on the flow sid. This also includes the necessary SELinux enforcement pieces. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit b6340fcd761acf9249b3acbc95c4dc555d9beb07 tree d7691da37f840833dae9a14bacd4b657101f5c79 parent 892c141e62982272b9c738b5520ad0e5e1ad7b42 author Venkat Yekkirala Mon, 24 Jul 2006 23:28:37 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:23 -0700 [MLSXFRM]: Add security sid to flowi This adds security to flow key for labeling of flows as also to allow for making flow cache lookups based on the security label seemless. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit 892c141e62982272b9c738b5520ad0e5e1ad7b42 tree c8e0c9b3e55106d2cb085a5047b9d02dbbb28653 parent 08554d6b33e60aa8ee40bbef94505941c0eefef2 author Venkat Yekkirala Fri, 04 Aug 2006 23:08:56 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:22 -0700 [MLSXFRM]: Add security sid to sock This adds security for IP sockets at the sock level. Security at the sock level is needed to enforce the SELinux security policy for security associations even when a sock is orphaned (such as in the TCP LAST_ACK state). This will also be used to enforce SELinux controls over data arriving at or leaving a child socket while it's still waiting to be accepted. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit 08554d6b33e60aa8ee40bbef94505941c0eefef2 tree 1610750ccd13872a33fffffcce057e10aa785d2e parent 51bd39860ff829475aef611a3234309e37e090d9 author Venkat Yekkirala Mon, 24 Jul 2006 23:27:16 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:21 -0700 [MLSXFRM]: Define new SELinux service routine This defines a routine that combines the Type Enforcement portion of one sid with the MLS portion from the other sid to arrive at a new sid. This would be used to define a sid for a security association that is to be negotiated by IKE as well as for determing the sid for open requests and connection-oriented child sockets. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit 51bd39860ff829475aef611a3234309e37e090d9 tree 2ff1569f44f54ecad1d1d232bacfa4c76b9502a6 parent e6e5fee1426bef07f4e6c3c76f48343c14207938 author Venkat Yekkirala Mon, 24 Jul 2006 23:26:30 -0700 committer David S. Miller Fri, 22 Sep 2006 14:53:20 -0700 [MLSXFRM]: Granular IPSec associations for use in MLS environments The current approach to labeling Security Associations for SELinux purposes uses a one-to-one mapping between xfrm policy rules and security associations. This doesn't address the needs of real world MLS (Multi-level System, traditional Bell-LaPadula) environments where a single xfrm policy rule (pertaining to a range, classified to secret for example) might need to map to multiple Security Associations (one each for classified, secret, top secret and all the compartments applicable to these security levels). This patch set addresses the above problem by allowing for the mapping of a single xfrm policy rule to multiple security associations, with each association used in the security context it is defined for. It also includes the security context to be used in IKE negotiation in the acquire messages sent to the IKE daemon so that a unique SA can be negotiated for each unique security context. A couple of bug fixes are also included; checks to make sure the SAs used by a packet match policy (security context-wise) on the inbound and also that the bundle used for the outbound matches the security context of the flow. This patch set also makes the use of the SELinux sid in flow cache lookups seemless by including the sid in the flow key itself. Also, open requests as well as connection-oriented child sockets are labeled automatically to be at the same level as the peer to allow for use of appropriately labeled IPSec associations. Description of changes: A "sid" member has been added to the flow cache key resulting in the sid being available at all needed locations and the flow cache lookups automatically using the sid. The flow sid is derived from the socket on the outbound and the SAs (unlabeled where an SA was not used) on the inbound. Outbound case: 1. Find policy for the socket. 2. OLD: Find an SA that matches the policy. NEW: Find an SA that matches BOTH the policy and the flow/socket. This is necessary since not every SA that matches the policy can be used for the flow/socket. Consider policy range Secret-TS, and SAs each for Secret and TS. We don't want a TS socket to use the Secret SA. Hence the additional check for the SA Vs. flow/socket. 3. NEW: When looking thru bundles for a policy, make sure the flow/socket can use the bundle. If a bundle is not found, create one, calling for IKE if necessary. If using IKE, include the security context in the acquire message to the IKE daemon. Inbound case: 1. OLD: Find policy for the socket. NEW: Find policy for the incoming packet based on the sid of the SA(s) it used or the unlabeled sid if no SAs were used. (Consider a case where a socket is "authorized" for two policies (unclassified-confidential, secret-top_secret). If the packet has come in using a secret SA, we really ought to be using the latter policy (secret-top_secret).) 2. OLD: BUG: No check to see if the SAs used by the packet agree with the policy sec_ctx-wise. (It was indicated in selinux_xfrm_sock_rcv_skb() that this was being accomplished by (x->id.spi == tmpl->id.spi || !tmpl->id.spi) in xfrm_state_ok, but it turns out tmpl->id.spi would normally be zero (unless xfrm policy rules specify one at the template level, which they usually don't). NEW: The socket is checked for access to the SAs used (based on the sid of the SAs) in selinux_xfrm_sock_rcv_skb(). Forward case: This would be Step 1 from the Inbound case, followed by Steps 2 and 3 from the Outbound case. Outstanding items/issues: - Timewait acknowledgements and such are generated in the current/upstream implementation using a NULL socket resulting in the any_socket sid (SYSTEM_HIGH) to be used. This problem is not addressed by this patch set. This patch: Add new flask definitions to SELinux Adds a new avperm "polmatch" to arbitrate flow/state access to a xfrm policy rule. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit e6e5fee1426bef07f4e6c3c76f48343c14207938 tree 28f4ca26cf85e0971e9bb4927c439b36c2b93f51 parent 3e59ddff2b8dfe42b15520c4f8f2486bd9f9708e parent fadcfa33b6319a5faf8af2287f08bf93a7f926b6 author Linus Torvalds Fri, 22 Sep 2006 12:56:22 -0700 committer Linus Torvalds Fri, 22 Sep 2006 12:56:22 -0700 Merge git://git.infradead.org/~dwmw2/hdroneline * git://git.infradead.org/~dwmw2/hdroneline: [HEADERS] One line per header in Kbuild files to reduce conflicts Manual (trivial) conflict resolution in include/asm-s390/Kbuild commit 3e59ddff2b8dfe42b15520c4f8f2486bd9f9708e tree 10587a53ab093fc498fa52651f8a7c1b2b99af60 parent 6bbd9b6d694ff7242d63cda2faac4bd59ee4328e parent eb35746ca5e2211569b91ebb44d55b88ec91f3b0 author Linus Torvalds Fri, 22 Sep 2006 12:52:16 -0700 committer Linus Torvalds Fri, 22 Sep 2006 12:52:16 -0700 Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2 * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2: ocfs2: Remove overzealous BUG_ON() ocfs2: Don't print on unknown remote blocking call ocfs2: Remove EXPERIMENTAL dependency ocfs2: implement directory read-ahead ocfs2: properly update i_mtime on buffered write ocfs2: Fix directory link count checks in ocfs2_link() ocfs2: move nlink check in ocfs2_mknod() ocfs2: Fix heartbeat sector calculation [PATCH] fs/ocfs2/ioctl.c should #include "ioctl.h" ocfs2: add ext2 attributes configfs: Prevent duplicate subsystem names. commit 6bbd9b6d694ff7242d63cda2faac4bd59ee4328e tree 0641aa896e2ea01f4692973e5fbea429408854f4 parent a489d159229fcc07bbb7566ac4fac745b79197ad parent 3c164bd8153c4644a22dc2101b003c67cd2a0d0a author Linus Torvalds Fri, 22 Sep 2006 12:51:33 -0700 committer Linus Torvalds Fri, 22 Sep 2006 12:51:33 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (64 commits) [BLOCK] dm-crypt: trivial comment improvements [CRYPTO] api: Deprecate crypto_digest_* and crypto_alg_available [CRYPTO] padlock: Convert padlock-sha to use crypto_hash [CRYPTO] users: Use crypto_comp and crypto_has_* [CRYPTO] api: Add crypto_comp and crypto_has_* [CRYPTO] users: Use crypto_hash interface instead of crypto_digest [SCSI] iscsi: Use crypto_hash interface instead of crypto_digest [CRYPTO] digest: Remove old HMAC implementation [CRYPTO] doc: Update documentation for hash and me [SCTP]: Use HMAC template and hash interface [IPSEC]: Use HMAC template and hash interface [CRYPTO] tcrypt: Use HMAC template and hash interface [CRYPTO] hmac: Add crypto template implementation [CRYPTO] digest: Added user API for new hash type [CRYPTO] api: Mark parts of cipher interface as deprecated [PATCH] scatterlist: Add const to sg_set_buf/sg_init_one pointer argument [CRYPTO] drivers: Remove obsolete block cipher operations [CRYPTO] users: Use block ciphers where applicable [SUNRPC] GSS: Use block ciphers where applicable [IPSEC] ESP: Use block ciphers where applicable ... commit a489d159229fcc07bbb7566ac4fac745b79197ad tree ea7bcf20e845de8a96ccc1549799ac073fb28a84 parent a48178a2fa17beee17d7e6aeaa6ed2db5813552d parent 388c571cffc4ae4e64f0786333e811308acbbc10 author Linus Torvalds Fri, 22 Sep 2006 12:50:35 -0700 committer Linus Torvalds Fri, 22 Sep 2006 12:50:35 -0700 Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6 * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: (44 commits) [S390] hypfs crashes with invalid mount option. [S390] cio: subchannel evaluation function operates without lock [S390] cio: always query all paths on path verification. [S390] cio: update path groups on logical CHPID changes. [S390] cio: subchannels in no-path state. [S390] Replace nopav-message on VM. [S390] set modalias for ccw bus uevents. [S390] Get rid of DBG macro. [S390] Use alternative user-copy operations for new hardware. [S390] Make user-copy operations run-time configurable. [S390] Cleanup in signal handling code. [S390] Cleanup in page table related code. [S390] Linux API for writing z/VM APPLDATA Monitor records. [S390] xpram off by one error. [S390] Remove kexec experimental flag. [S390] cleanup appldata. [S390] fix typo in vmcp. [S390] Kernel stack overflow handling. [S390] qdio slsb processing state. [S390] Missing initialization in common i/o layer. ... commit a48178a2fa17beee17d7e6aeaa6ed2db5813552d tree 74579777d047478b3d62fcc3349a903b53515770 parent 14d1adfc59ba66932ef167fdff62983e7c2b0197 parent 734a56285dbeedc6cc10aef6f700eeab7c65ea9f author Linus Torvalds Fri, 22 Sep 2006 12:49:18 -0700 committer Linus Torvalds Fri, 22 Sep 2006 12:49:18 -0700 Merge git://git.infradead.org/mtd-2.6 * git://git.infradead.org/mtd-2.6: Remove accidentally-added include/linux/utsrelease.h Revert "[MTD] blkdev helper code: fix printk format warning" [MTD] Add SSFDC (SmartMedia) read-only translation layer [MTD] pmc551 pci cleanup [MTD] pmc551 use kzalloc [MTD] pmc551 whitespace cleanup [MTD] Remove iq80310 map driver [MTD NAND] Fix in typo ndfc.c causing wrong ECC layout [MTD] physmap: add power management support ioremap balanced with iounmap for drivers/mtd subsystem [MTD] Switch to pci_get_device and do ref counting [MTD] blkdev helper code: fix printk format warning [MTD] Fix ixp4xx partition parsing. [JFFS2] Remove unneeded ifdefs from jffs2_fs_i.h [MTD NAND] Remove old code in au1550nd.c [MTD] Unlock NOR flash automatically where necessary commit 14d1adfc59ba66932ef167fdff62983e7c2b0197 tree 34bad21bf4ec220be87fa5d79ff41dd98e7dad9f parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 parent 69917c26c840e7de94522bf90fb190de63bf92bd author Linus Torvalds Fri, 22 Sep 2006 12:48:03 -0700 committer Linus Torvalds Fri, 22 Sep 2006 12:48:03 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc * git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (114 commits) [POWERPC] Fix ohare IDE irq workaround on old powermacs [POWERPC] EEH: Power4 systems sometimes need multiple resets. [POWERPC] Include in arch/powerpc/sysdev/fsl_soc.h for phys_addr_t. [POWERPC] Demacrofy arch/powerpc/platforms/maple/pci.c [POWERPC] Maple U3 HT - reject inappropriate config space access [POWERPC] Fix IPIC pending register assignments [POWERPC] powerpc: fix building gdb against asm/ptrace.h [POWERPC] Remove DISCONTIGMEM cruft from page.h [POWERPC] Merge iSeries i/o operations with the rest [POWERPC] 40x: Fix debug status register defines [POWERPC] Fix compile error in sbc8560 [POWERPC] EEH: support MMIO enable recovery step [POWERPC] EEH: enable MMIO/DMA on frozen slot [POWERPC] EEH: code comment cleanup [POWERPC] EEH: balance pcidev_get/put calls [POWERPC] PPC: Fix xmon stack frame address in backtrace [POWERPC] Add AT_PLATFORM value for Xilinx Virtex-4 FX [POWERPC] Start arch/powerpc/boot code reorganization [POWERPC] Define of_read_ulong helper [POWERPC] iseries: eliminate a couple of warnings ... commit 734a56285dbeedc6cc10aef6f700eeab7c65ea9f tree c13d7334d94afad04e36f0b3ff296e6fcacdd9bb parent e4e3295f0c0e1a09a46522359e24c0569e2e7b47 author David Woodhouse Fri, 22 Sep 2006 18:41:20 +0100 committer David Woodhouse Fri, 22 Sep 2006 18:41:20 +0100 Remove accidentally-added include/linux/utsrelease.h Signed-off-by: David Woodhouse commit e4e3295f0c0e1a09a46522359e24c0569e2e7b47 tree 538e656d60b2872521fcf295f7250df90d21b07a parent 51197abf29657373bcf9803d87da3c3d8fc3a37e author David Woodhouse Fri, 22 Sep 2006 11:05:42 +0100 committer David Woodhouse Fri, 22 Sep 2006 11:05:42 +0100 Revert "[MTD] blkdev helper code: fix printk format warning" This reverts commit 668040fcd1e06fc3e68a92708cbdfa5a52c37d3c. The 'flags' field of the struct request is 'unsigned long'. Quite how Randy came to see 'long int format, different type arg' I don't know, but it doesn't seem to be the case any more. Signed-off-by: David Woodhouse commit 51197abf29657373bcf9803d87da3c3d8fc3a37e tree 9adde058fc9a6817fe0fe45fc2e4e13de36f358f parent 98aacdfde05ccf512d4395eed0d4894eea2d163c author Claudio Lanconelli Fri, 22 Sep 2006 11:01:37 +0100 committer David Woodhouse Fri, 22 Sep 2006 11:01:37 +0100 [MTD] Add SSFDC (SmartMedia) read-only translation layer Signed-off-by: Claudio Lanconelli Signed-off-by: David Woodhouse commit 98aacdfde05ccf512d4395eed0d4894eea2d163c tree 8704accf03834acb16a83cb38f844c1a5e4e4878 parent 7fefb924d7aed7116fe2a68cdbfc9e36318e7300 author Jiri Slaby Tue, 19 Sep 2006 21:55:28 +0200 committer David Woodhouse Fri, 22 Sep 2006 10:34:15 +0100 [MTD] pmc551 pci cleanup Use pci_resource_start for getting start of regions and pci_iomap to not doing this directly by using dev->resource... (Thanks to Rolf Eike Beer) Signed-off-by: Jiri Slaby Signed-off-by: David Woodhouse commit 7fefb924d7aed7116fe2a68cdbfc9e36318e7300 tree d8c5402b6bcf91131dbd7fd471f8c3c0591703da parent cdf0a7d16980858e72f5d26bfe48abf01112fab5 author Jiri Slaby Tue, 19 Sep 2006 21:55:18 +0200 committer David Woodhouse Fri, 22 Sep 2006 10:33:52 +0100 [MTD] pmc551 use kzalloc Use kzalloc instad of kmalloc+memset(0). Signed-off-by: Jiri Slaby Signed-off-by: David Woodhouse commit cdf0a7d16980858e72f5d26bfe48abf01112fab5 tree a46adb9d19fa945dc1ba6e6c62087074834d29a1 parent e417fcfb857b809e5dabc9b252ad70f090d553d1 author Jiri Slaby Tue, 19 Sep 2006 21:55:06 +0200 committer David Woodhouse Fri, 22 Sep 2006 10:33:31 +0100 [MTD] pmc551 whitespace cleanup Spaces were used for indent, there was more than 80 columns per line. Get rid of that stuff. Signed-off-by: Jiri Slaby Signed-off-by: David Woodhouse commit e417fcfb857b809e5dabc9b252ad70f090d553d1 tree 2eaf33a95ad3ee0864604c13423360f743a7225f parent 6a545a0d6021a4d759ba6d0c1082d1abf8d64c84 author Lennert Buytenhek Thu, 21 Sep 2006 03:47:48 +0200 committer David Woodhouse Fri, 22 Sep 2006 10:31:01 +0100 [MTD] Remove iq80310 map driver The iq80310 mtd map driver depends on ARCH_IQ80310, which isn't defined anywhere in the tree (as we don't have 80310 support), and furthermore, everything the driver does can be done with physmap instead. Signed-off-by: Lennert Buytenhek Signed-off-by: David Woodhouse commit 6a545a0d6021a4d759ba6d0c1082d1abf8d64c84 tree 1bd55b9ee6eec2378557bc43630fb163c83075cc parent 17c2dae3aaff9b1e5d83996a5f098ad693f3aeca author Frank Haverkamp Wed, 20 Sep 2006 17:24:52 +0200 committer David Woodhouse Fri, 22 Sep 2006 10:30:25 +0100 [MTD NAND] Fix in typo ndfc.c causing wrong ECC layout Due to this typo, a wrong ECC layout table is chosen. Signed-off-by: Frank Haverkamp Signed-off-by: David Woodhouse commit 17c2dae3aaff9b1e5d83996a5f098ad693f3aeca tree e2d35bb9f404a84761b2641309b22881a4672e7e parent 25f0c659fe64832d8ee06aa623fffaad708dcf8b author Lennert Buytenhek Thu, 21 Sep 2006 23:16:48 +0200 committer David Woodhouse Fri, 22 Sep 2006 10:26:56 +0100 [MTD] physmap: add power management support Implement PM handling for physmap. Idea from Steven Scholz, patch by David Anders. Signed-off-by: Lennert Buytenhek Signed-off-by: David Woodhouse commit 25f0c659fe64832d8ee06aa623fffaad708dcf8b tree b5740156ac2ce5e39aaaba32ddb21b03379abb48 parent dd8e9ed6ed544e2b924429d29cd2a6b55590109b author Amol Lad Thu, 21 Sep 2006 18:12:43 +0530 committer David Woodhouse Fri, 22 Sep 2006 10:24:31 +0100 ioremap balanced with iounmap for drivers/mtd subsystem ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Tested (compilation only) with: - allmodconfig - Modifying drivers/mtd/maps/Kconfig and drivers/mtd/nand/Kconfig to make sure that the changed file is compiling without warning Signed-off-by: Amol Lad Signed-off-by: David Woodhouse commit dd8e9ed6ed544e2b924429d29cd2a6b55590109b tree 0961c205e59591e7da65ce7504c919e7ee3e4351 parent 668040fcd1e06fc3e68a92708cbdfa5a52c37d3c author Alan Cox Fri, 22 Sep 2006 10:19:20 +0100 committer David Woodhouse Fri, 22 Sep 2006 10:19:20 +0100 [MTD] Switch to pci_get_device and do ref counting Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 668040fcd1e06fc3e68a92708cbdfa5a52c37d3c tree 5caced088dbe000e938fc4848b632994c6563443 parent f40a6f1cc7fe522e51e1ac4c7ab3035a434f2cef author Randy Dunlap Fri, 22 Sep 2006 10:17:28 +0100 committer David Woodhouse Fri, 22 Sep 2006 10:17:28 +0100 [MTD] blkdev helper code: fix printk format warning Fix printk format warning(s): drivers/mtd/mtd_blkdevs.c:72: warning: long int format, different type arg (arg 2) Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit f40a6f1cc7fe522e51e1ac4c7ab3035a434f2cef tree d1d449a85661db1241f739bb6f05bc4765aa84e6 parent f2dd117fa51dd8fc071b1352254c0d14d2399b0a author Brian Walsh Fri, 22 Sep 2006 10:16:16 +0100 committer David Woodhouse Fri, 22 Sep 2006 10:16:16 +0100 [MTD] Fix ixp4xx partition parsing. If the amount of flash is not divisible by 2 then the mask in parse_mtd_partitions would fail to work as designed. Passing in the base address corrects this problem. Signed-off-by: Brian Walsh Cc: Deepak Sanexa Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit f2dd117fa51dd8fc071b1352254c0d14d2399b0a tree b7c5e149cdf942723c409b85df8da01fb55324d0 parent cbc88ba83ff772d8c47d95ba0fef38ad888d6fcf author Michal Piotrowski Fri, 22 Sep 2006 10:13:46 +0100 committer David Woodhouse Fri, 22 Sep 2006 10:13:46 +0100 [JFFS2] Remove unneeded ifdefs from jffs2_fs_i.h We certainly don't need the check for Linux version > 2.5.2, and in fact we can also live without the __ECOS check, since we can just add it back in the eCos git tree which is automatically derived from the Linux fs/jffs2 subdirectory in the upstream git tree. Signed-off-by: Michal Piotrowski Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit cbc88ba83ff772d8c47d95ba0fef38ad888d6fcf tree 140bf2cf428ef10db16b7eb3552ec57d1a51f3e8 parent 187ef15268e638603dea55a91fdfa29feaed6d13 author Michal Piotrowski Fri, 22 Sep 2006 10:09:44 +0100 committer David Woodhouse Fri, 22 Sep 2006 10:09:44 +0100 [MTD NAND] Remove old code in au1550nd.c Signed-off-by: Michal Piotrowski Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 187ef15268e638603dea55a91fdfa29feaed6d13 tree a3895b43f90ed87ae54e3b066468ac2c8fdf31ee parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author HÃ¥vard Skinnemoen Fri, 22 Sep 2006 10:07:08 +0100 committer David Woodhouse Fri, 22 Sep 2006 10:07:08 +0100 [MTD] Unlock NOR flash automatically where necessary Introduce the MTD_STUPID_LOCK flag which indicates that the flash chip is always locked after power-up, so all sectors need to be unlocked before it is usable. If this flag is set, and the chip provides an unlock() operation, mtd_add_device will unlock the whole MTD device if it's writeable. This means that non-writeable partitions will stay locked. Set MTD_STUPID_LOCK in fixup_use_atmel_lock() so that these chips will work as expected. Signed-off-by: HÃ¥vard Skinnemoen Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 1694176a210189312e31b083bac1e1688981219a tree 53d0be2ff8cb2898e82aa63ccba548692b90e252 parent ed9526b0d342a1c08a19f880c3f0c1d0fec4e8db author David Woodhouse Fri, 22 Sep 2006 08:00:42 +0100 committer David Woodhouse Fri, 22 Sep 2006 08:00:42 +0100 Remove offsetof() from user-visible It's not used by anything user-visible, and it make g++ unhappy. Signed-off-by: David Woodhouse commit 69917c26c840e7de94522bf90fb190de63bf92bd tree 8ffe260e70dc6bc5be0d010085bec0cebf1ffbd7 parent e102926385b56e593b995ecc433f041b498a49e1 author Benjamin Herrenschmidt Fri, 22 Sep 2006 12:56:30 +1000 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Fix ohare IDE irq workaround on old powermacs Looks like a workaround for old bogus OF bitrot... This fixes it and hence fixes boot on some performa machines. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit e102926385b56e593b995ecc433f041b498a49e1 tree 28426cd50b4cd833a761242b8a7788596e1ddfe0 parent 3d574abd59d49173ac3096a19575a2f7430505be author Linas Vepstas Thu, 21 Sep 2006 18:25:56 -0500 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] EEH: Power4 systems sometimes need multiple resets. On detection of an EEH error, some Power4 systems seem to occasionally want to be reset twice before they report themselves as fully recovered. This patch re-arranges the code to attempt additional resets if the first one doesn't take. Signed-off-by: Linas Vepstas Signed-off-by: Paul Mackerras commit 3d574abd59d49173ac3096a19575a2f7430505be tree 8657d051db10eb49e36d85b09269fc075cc53a8e parent cc9881ce371dc7ff3ef5404feda59566fabaf521 author Scott Wood Thu, 21 Sep 2006 13:11:52 -0500 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Include in arch/powerpc/sysdev/fsl_soc.h for phys_addr_t. This patch causes fsl_soc.h to import the definition of phys_addr_t itself, rather than relying on its includer to do so. Signed-off-by: Scott Wood Signed-off-by: Paul Mackerras commit cc9881ce371dc7ff3ef5404feda59566fabaf521 tree 3326f263f308f9c3c4bc6cb2737e3c1377fade2a parent d608df5c7da6ee968aa2ad43c596d5f8d4022299 author Nathan Lynch Thu, 21 Sep 2006 14:31:13 -0500 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Demacrofy arch/powerpc/platforms/maple/pci.c Noticed that the U3_*CFA macros have some typos: #define U3_HT_CFA0(devfn, off) \ ((((unsigned long)devfn) << 8) | offset) (refers to offset rather than off) #define U3_AGP_CFA0(devfn, off) \ ((1 << (unsigned long)PCI_SLOT(dev_fn)) \ | (((unsigned long)PCI_FUNC(dev_fn)) << 8) \ (refers to dev_fn rather than devfn) Things happen to work, but there doesn't seem to be any reason these shouldn't be functions. Overall behavior should be unchanged. Signed-off-by: Nathan Lynch Signed-off-by: Paul Mackerras commit d608df5c7da6ee968aa2ad43c596d5f8d4022299 tree 421df8cc60c8570e89b15a74cd67b177ca64778c parent ed709d134deeaea7925a3d748b33ca7e58cc683d author Nathan Lynch Thu, 21 Sep 2006 14:25:34 -0500 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Maple U3 HT - reject inappropriate config space access When there is a PCI-X mode 2 capable device behind the HT<->PCI-X bridge, the pci core decides that the device has the extended 4K config space, even though the bus is not operating in mode 2. This is because the u3_ht pci ops silently accept offsets greater than 255 but use only the 8 least significant bits, which means reading at offset 0x100 gets the data at offset 0x0, and causes confusion for lspci. Reject accesses to configuration space offsets greater than 255. Signed-off-by: Nathan Lynch Signed-off-by: Paul Mackerras commit ed709d134deeaea7925a3d748b33ca7e58cc683d tree 9d42ba6363e933273011e6c31d834b950ea8cad8 parent 7d452c326c2ac879aced884411a0fe3ba75d9c87 author Scott Wood Thu, 21 Sep 2006 13:10:51 -0500 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Fix IPIC pending register assignments This patch fixes the assignment of pending registers to IRQ numbers for the IPIC; the code previously assigned all IRQs to the high pending word regardless of which word the interrupt belonged to. Signed-off-by: Scott Wood Signed-off-by: Paul Mackerras commit 7d452c326c2ac879aced884411a0fe3ba75d9c87 tree fd1c533c0ecb8364a00cc28e8f7c8dbca5dc4840 parent 2954da897c40de0f3abdd6a100f2978f30d04068 author Arnd Bergmann Thu, 21 Sep 2006 12:29:51 +0200 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] powerpc: fix building gdb against asm/ptrace.h Ulrich Weigand found a bug with the current version of the asm-powerpc/ptrace.h that prevents building at least the SPU target version of gdb, since some ptrace opcodes are not defined. The problem seems to have originated in the merging of 32 and 64 bit versions of that file, the problem is that some opcodes are only valid on 64 bit kernels, but are also used by 32 bit programs, so they can't depends on the __powerpc64__ symbol. Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras commit 2954da897c40de0f3abdd6a100f2978f30d04068 tree 2e695a29fea688539ef4b933918d5d252fa60760 parent caf81329c39b5c48f6cc0d78fa159b5a587e37f9 author Michael Ellerman Thu, 21 Sep 2006 18:21:35 +1000 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Remove DISCONTIGMEM cruft from page.h This looks like cruft to me, these functions don't exist AFAICT, and I can't see that it's possible to even enable DISCONTIGMEM on powerpc anymore. CC'ing some folks who might know better, based on the who-touched-it-last principle. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras commit caf81329c39b5c48f6cc0d78fa159b5a587e37f9 tree 7cf6afe7a14e2a9d1cc962895b61d8cb24e71793 parent 7da8a2e5c1fd2ee513fdeac8d13c4f3623838fd0 author Stephen Rothwell Thu, 21 Sep 2006 18:00:00 +1000 committer Paul Mackerras Fri, 22 Sep 2006 15:19:58 +1000 [POWERPC] Merge iSeries i/o operations with the rest This patch changes the io operations so that they are out of line if CONFIG_PPC_ISERIES is set and includes a firmware feature check in that case. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit b8c06a2ab68661bf841e21003f4447f8d422aed3 tree c3fc32bb2d9a3d6ac35a4c296ba82053681ccc76 parent 6b70c9559bcf381a6521e38b0dd5d3d4d905868a author Steve French Fri, 22 Sep 2006 01:14:52 +0000 committer Steve French Fri, 22 Sep 2006 01:14:52 +0000 [CIFS] statfs for cifs unix extensions no longer experimental Signed-off-by: Steve French commit 7da8a2e5c1fd2ee513fdeac8d13c4f3623838fd0 tree 215564fe0ebd43b8ab659b2ccb01ec487c02d34f parent 8b9b5a77e3aeb9650b511a8be4c61632999537db author Josh Boyer Wed, 20 Sep 2006 09:11:59 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:59:39 +1000 [POWERPC] 40x: Fix debug status register defines This fixes some debug register defines on PPC 40x that were incorrect. Signed-off-by: Josh Boyer Signed-off-by: Paul Mackerras commit 8b9b5a77e3aeb9650b511a8be4c61632999537db tree 1e704132f4fd02db24cf0e73ab6e0c31d1d74e77 parent 6a1ca373a16b0e170164ab8a2d6d01eab2a22f6e author Amy Fong Mon, 18 Sep 2006 23:07:24 -0400 committer Paul Mackerras Thu, 21 Sep 2006 22:59:38 +1000 [POWERPC] Fix compile error in sbc8560 The following fixes compile errors in sbc8560. Signed-off-by: Amy Fong Signed-off-by: Paul Mackerras commit 6a1ca373a16b0e170164ab8a2d6d01eab2a22f6e tree 94408b9a75b9a031fb3dfaf18c4dd192de4fb448 parent 47b5c838af92d3504e99633bf568578203b7305f author Linas Vepstas Fri, 15 Sep 2006 18:58:59 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:59:20 +1000 [POWERPC] EEH: support MMIO enable recovery step Update to the PowerPC PCI error recovery code. Add code to enable MMIO if a device driver reports that it is capable of recovering on its own. One anticipated use of this having a device driver enable MMIO so that it can take a register dump, which might then be followed by the device driver requesting a full reset. Signed-off-by: Linas Vepstas Signed-off-by: Paul Mackerras commit 47b5c838af92d3504e99633bf568578203b7305f tree 0122e533f39c48572d74a592c61ac394466fff01 parent cb5b562444c27cf53f5d297bd7a89807ea614cf3 author Linas Vepstas Fri, 15 Sep 2006 18:57:42 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:59:14 +1000 [POWERPC] EEH: enable MMIO/DMA on frozen slot Add wrapper around the rtas call to enable MMIO or DMA on a frozen pci slot. Signed-off-by: Linas Vepstas Signed-off-by: Paul Mackerras commit cb5b562444c27cf53f5d297bd7a89807ea614cf3 tree 462b0ed5aad52c2595dc6f906eaf6e82919bd0da parent af525592187951a595c73de11b48969a13b5d5a3 author Linas Vepstas Fri, 15 Sep 2006 18:56:35 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:59:10 +1000 [POWERPC] EEH: code comment cleanup Clean up subroutine documentation; mostly formatting changes, with some new content. Signed-off-by: Linas Vepstas Signed-off-by: Paul Mackerras commit af525592187951a595c73de11b48969a13b5d5a3 tree 0c0c6876b5278b4390fddf1d49fd9d53dc4ff1b8 parent 4dbefe6459555d6fb9d08743615fbaa53894beb2 author Linas Vepstas Fri, 15 Sep 2006 18:55:34 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:59:08 +1000 [POWERPC] EEH: balance pcidev_get/put calls This corrects a pci_dev get/put imbalance that can occur only in highly unlikely situations (kmalloc failures, pci devices with overlapping resource addresses). No actual failures seen, this was spotted during code review. Signed-off-by: Linas Vepstas Signed-off-by: Paul Mackerras commit 4dbefe6459555d6fb9d08743615fbaa53894beb2 tree f185541b0b0224ffb2b26de85e8814115faa3ade parent 838fdb4d2d0e4730364220b51be28a42d04c665e author Josh Boyer Fri, 15 Sep 2006 14:53:10 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:55:06 +1000 [POWERPC] PPC: Fix xmon stack frame address in backtrace The stack frame address was being printed incorrectly in the backtrace option of XMON on PPC. This patch fixes it to print the actual stack address instead of the address of the local variable that contains it. Signed-off-by: Josh Boyer Signed-off-by: Paul Mackerras commit 838fdb4d2d0e4730364220b51be28a42d04c665e tree 6eaece1f5d1295b3d7f43d5362478cd1d71bf243 parent b2c5f61920eeee9c4e78698de4fde4586fe5ae79 author Peter Bergner Thu, 14 Sep 2006 14:18:38 -0500 committer Paul Mackerras Thu, 21 Sep 2006 22:54:54 +1000 [POWERPC] Add AT_PLATFORM value for Xilinx Virtex-4 FX Jakub noticed the cputable.c entry for Xilinx Virtex-4 FX was missing a .platform value, so the AT_PLATFORM value wouldn't be set correctly. This adds it. Signed-off-by: Peter Bergner Signed-off-by: Paul Mackerras commit ed9526b0d342a1c08a19f880c3f0c1d0fec4e8db tree a09b43d06d123bbf8763eb91a5c2c46632d8e27f parent 2a1b181eff32f497f285fcfc1e771ec469205908 author David Woodhouse Thu, 21 Sep 2006 09:33:55 +0100 committer David Woodhouse Thu, 21 Sep 2006 09:33:55 +0100 Clean up exported headers on CRIS This fixes most of the issues with exported headers on CRIS, although we do still need to deal with the asm/arch symlink. Signed-off-by: David Woodhouse commit 2a1b181eff32f497f285fcfc1e771ec469205908 tree 97c12a0ab059efbc6b4b354a11ffef38cf7b9e61 parent f17b7bad396c8f748620f54a88754a1f5af02c8a author David Woodhouse Thu, 21 Sep 2006 09:05:25 +0100 committer David Woodhouse Thu, 21 Sep 2006 09:05:25 +0100 Fix v850 exported headers Signed-off-by: David Woodhouse commit f17b7bad396c8f748620f54a88754a1f5af02c8a tree f003124a953a6fcf1da0ab07ad61899343cd69e9 parent d28d1f10f99f8ab2fe2bd06c3d22397d0ba08687 author David Woodhouse Thu, 21 Sep 2006 09:01:45 +0100 committer David Woodhouse Thu, 21 Sep 2006 09:01:45 +0100 Don't advertise (or allow) headers_{install,check} where inappropriate. For architectures which don't have the include/asm-$(ARCH)/Kbuild file, like ARM26, UM, etc. Signed-off-by: David Woodhouse commit d28d1f10f99f8ab2fe2bd06c3d22397d0ba08687 tree 3b657bed28ac3bf9f7a4a48b901390fb16b8c77e parent cb16da6a71924772dc4580c16541dece2b9a8472 author David Woodhouse Thu, 21 Sep 2006 08:55:28 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:55:28 +0100 Remove UML header export No need for UML to export headers for userspace to build against. Signed-off-by: David Woodhouse commit cb16da6a71924772dc4580c16541dece2b9a8472 tree bd7123f40017aad05441a924c1d6dfd7c57559fd parent 0000f0b1bc9aa340356a8dcdb9e8b1dbbaf0afcb author David Woodhouse Thu, 21 Sep 2006 08:54:44 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:54:44 +0100 Remove ARM26 header export. We ought to be able to use ARM headers; no need for special ARM26 version. Signed-off-by: David Woodhouse commit 0000f0b1bc9aa340356a8dcdb9e8b1dbbaf0afcb tree 456a7fd9a0c0ba8e538abe5bb41528da80070947 parent 5daf3033aa4fc5ec0535816d8a8e94874160482e author David Woodhouse Thu, 21 Sep 2006 08:51:43 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:51:43 +0100 Fix H8300 exported headers. Just clean up asm/page.h Signed-off-by: David Woodhouse commit 5daf3033aa4fc5ec0535816d8a8e94874160482e tree d5d8b83cc9bd3bd3ac23ec29ebc02cb034661fce parent 09087a1a8722fac30b1969a4a542cde064af13f8 author David Woodhouse Thu, 21 Sep 2006 08:50:36 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:50:36 +0100 Fix m68knommu exported headers Just clean up asm/page.h Signed-off-by: David Woodhouse commit 09087a1a8722fac30b1969a4a542cde064af13f8 tree f49a0f35ea85e2756c147269da11c8526112cbbf parent 47dbec79d1b9ce9e80bed932f345adc92049f05d author David Woodhouse Thu, 21 Sep 2006 08:48:27 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:48:27 +0100 Fix exported headers for SPARC, SPARC64 Mostly removing files which have no business being used in userspace. Signed-off-by: David Woodhouse Signed-off-by: David S. Miller commit 47dbec79d1b9ce9e80bed932f345adc92049f05d tree b03f432ff18e1356c5901776040a94c83978f412 parent 029669da25efa18ee4b8911e694fdcf4a11c8cbe author David Woodhouse Sun, 17 Sep 2006 08:39:39 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:41:35 +0100 Fix 'make headers_check' on m32r > asm-m32r/page.h requires asm-generic/memory_model.h, which does not exist > asm-m32r/ptrace.h requires asm/m32r.h, which does not exist > asm-m32r/signal.h requires linux/linkage.h, which does not exist > asm-m32r/unistd.h requires asm/syscall.h, which does not exist > asm-m32r/user.h requires asm/processor.h, which does not exist Signed-off-by: Hirokazu Takata Signed-off-by: David Woodhouse commit 029669da25efa18ee4b8911e694fdcf4a11c8cbe tree 6abe2d1a290865a11e554c92110316cc31560dc8 parent b5233d0704c9a6147ebbfabc576d1638b3ac5274 author Paul Mundt Wed, 20 Sep 2006 03:27:17 +0900 committer David Woodhouse Thu, 21 Sep 2006 08:37:10 +0100 Fix 'make headers_check' on sh64 Cleanup for user headers, as noted: asm-sh64/page.h requires asm-generic/memory_model.h, which does not exist in exported headers asm-sh64/shmparam.h requires asm/cache.h, which does not exist in exported headers asm-sh64/signal.h requires asm/processor.h, which does not exist in exported headers asm-sh64/user.h requires asm/processor.h, which does not exist in exported headers Signed-off-by: Paul Mundt Signed-off-by: David Woodhouse commit b5233d0704c9a6147ebbfabc576d1638b3ac5274 tree af5f587d45cba760ddee8304d8b72fb9007fc1f7 parent 6ff6340abeaaf1a15587c87dac3e56754778cc7a author Paul Mundt Wed, 20 Sep 2006 03:25:34 +0900 committer David Woodhouse Thu, 21 Sep 2006 08:36:50 +0100 Fix 'make headers_check' on sh Cleanup for user headers, as noted: asm-sh/page.h requires asm-generic/memory_model.h, which does not exist in exported headers asm-sh/ptrace.h requires asm/ubc.h, which does not exist in exported headers Signed-off-by: Paul Mundt Signed-off-by: David Woodhouse commit 6b70c9559bcf381a6521e38b0dd5d3d4d905868a tree 2165ddc6fa0d7677b00fdee6265271ac29024df6 parent 2fe87f02a04ad6e7075023a87fe38eb458a4bb9d author Steve French Thu, 21 Sep 2006 07:35:29 +0000 committer Steve French Thu, 21 Sep 2006 07:35:29 +0000 [CIFS] New POSIX locking code not setting rc properly to zero on successful unlock in case where server does not support POSIX locks and nobrl is not specified. Signed-off-by: Steve French commit 6ff6340abeaaf1a15587c87dac3e56754778cc7a tree c8190e7a854f8fc13dcf35ca62fe975fb06c8a16 parent 1f8b444ceabb228594121d3ccea15248a4c2e1a4 author David Woodhouse Thu, 21 Sep 2006 08:34:39 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:34:39 +0100 [HEADERS] Fix ARM 'make headers_check' Sanitise the ARM headers exported to userspace. Signed-off-by: David Woodhouse commit 1f8b444ceabb228594121d3ccea15248a4c2e1a4 tree 80860f944b29d8182859ba75a751769ea17cac11 parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 parent fadcfa33b6319a5faf8af2287f08bf93a7f926b6 author David Woodhouse Thu, 21 Sep 2006 08:29:56 +0100 committer David Woodhouse Thu, 21 Sep 2006 08:29:56 +0100 Merge ssh://git.infradead.org/~/public_git/hdroneline commit 2fe87f02a04ad6e7075023a87fe38eb458a4bb9d tree ec095fecdccad724faa6560cf7a81a9494a5a093 parent b835bebe95608c81270636a78b70333afb011925 author Steve French Thu, 21 Sep 2006 07:02:52 +0000 committer Steve French Thu, 21 Sep 2006 07:02:52 +0000 [CIFS] Support deep tree mounts (e.g. mounts to //server/share/path) Samba bugzilla #4040 Signed-off-by: Steve French commit fd8ae94eea9bb4269d6dff1b47b9dc741bd70d0b tree 88f81d90021bd38b33622169103988f1e0a66510 parent 783c99f42e221217761e9c319838d5533107f7cb parent 54caf44da31995df1f51174468fd9e83ca5c67a2 author Jeff Garzik Thu, 21 Sep 2006 00:08:25 -0400 committer Jeff Garzik Thu, 21 Sep 2006 00:08:25 -0400 Merge branch 'upstream-fixes' into upstream commit 54caf44da31995df1f51174468fd9e83ca5c67a2 tree 306a78de16850b17c81d86492ed088171addbc03 parent 8ce90907ea534f10075a9eba5f83d6dd77b39cb6 author Jeff Garzik Thu, 21 Sep 2006 00:08:10 -0400 committer Jeff Garzik Thu, 21 Sep 2006 00:08:10 -0400 [netdrvr] mv643xx_eth: fix obvious typo, which caused build breakage The last minute fix submitted by the author fixed a bug, but broke the driver build. Noticed by Al Viro, since I can't build on said platform. Signed-off-by: Jeff Garzik commit 8ce90907ea534f10075a9eba5f83d6dd77b39cb6 tree f0afaf6ee678a2e6f3c9c1b2a76921e73257e0d9 parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Jeff Garzik Thu, 21 Sep 2006 00:06:21 -0400 committer Jeff Garzik Thu, 21 Sep 2006 00:06:21 -0400 [netdrvr] lp486e: fix typo inside #if 0'd code, but it bugged me. Really, we should probably just delete the driver. Signed-off-by: Jeff Garzik commit 3c164bd8153c4644a22dc2101b003c67cd2a0d0a tree c6b3f7a3d0f2d3850ce1c8c7e040053f548ebe9b parent 3ad819c61f5f8347f39cdcbe652b3c60ec615888 author Rik Snel Sat, 02 Sep 2006 18:17:33 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:27 +1000 [BLOCK] dm-crypt: trivial comment improvements Just some minor comment nits. - little-endian is better than low-endian - and since it is called essiv everywere it should also be essiv in the comments (and not ess_iv) Signed-off-by: Rik Snel Signed-off-by: Herbert Xu commit 3ad819c61f5f8347f39cdcbe652b3c60ec615888 tree a323dbf1afe0180ceb1d5d7d4caf785742585f1b parent 6010439f47e6b308c031dad7d99686030ef942dd author Herbert Xu Sat, 26 Aug 2006 18:44:31 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:23 +1000 [CRYPTO] api: Deprecate crypto_digest_* and crypto_alg_available This patch marks the crypto_digest_* functions and crypto_alg_available as deprecated. They've been replaced by crypto_hash_* and crypto_has_* respectively. Signed-off-by: Herbert Xu commit 6010439f47e6b308c031dad7d99686030ef942dd tree c59d65017014dec1f0c01e6372c7a92f3284a5e9 parent e4d5b79c661c7cfca9d8d5afd040a295f128d3cb author Herbert Xu Sat, 26 Aug 2006 18:34:10 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:22 +1000 [CRYPTO] padlock: Convert padlock-sha to use crypto_hash This patch converts padlock-sha to use crypto_hash for its fallback. It also changes the fallback selection to use selection by type instead of name. This is done through the new CRYPTO_ALG_NEED_FALLBACK bit, which is set if and only if an algorithm needs a fallback of the same type. Signed-off-by: Herbert Xu commit e4d5b79c661c7cfca9d8d5afd040a295f128d3cb tree 55a19ceca1b51b26d1934d388b26f0b1bed99a3e parent fce32d70ba834129b164c40c2d4260e5a7a7d850 author Herbert Xu Sat, 26 Aug 2006 18:12:40 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:22 +1000 [CRYPTO] users: Use crypto_comp and crypto_has_* This patch converts all users to use the new crypto_comp type and the crypto_has_* functions. Signed-off-by: Herbert Xu commit fce32d70ba834129b164c40c2d4260e5a7a7d850 tree 25076d25f1b95c93b276db253bc8cd301bae6289 parent 35058687912aa2f0b4554383cc10be4e0683b9a4 author Herbert Xu Sat, 26 Aug 2006 17:35:45 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:21 +1000 [CRYPTO] api: Add crypto_comp and crypto_has_* This patch adds the crypto_comp type to complete the compile-time checking conversion. The functions crypto_has_alg and crypto_has_cipher, etc. are also added to replace crypto_alg_available. Signed-off-by: Herbert Xu commit 35058687912aa2f0b4554383cc10be4e0683b9a4 tree 3e18d13aef6682553887076c1e9872e91e6fc5c4 parent dc64ddf4918f0da52df10d83c2a5941a547c2035 author Herbert Xu Thu, 24 Aug 2006 19:10:20 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:21 +1000 [CRYPTO] users: Use crypto_hash interface instead of crypto_digest This patch converts all remaining crypto_digest users to use the new crypto_hash interface. Signed-off-by: Herbert Xu commit dc64ddf4918f0da52df10d83c2a5941a547c2035 tree ed1c3dcd4b5b6d636d9960caeeb64aa01cf092f1 parent 8425165dfed27945e8509c141cea245d1739e372 author Herbert Xu Thu, 24 Aug 2006 18:45:50 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:20 +1000 [SCSI] iscsi: Use crypto_hash interface instead of crypto_digest This patch converts ISCSI to use the new crypto_hash interface instead of crypto_digest. It's a fairly straightforward substitution. Signed-off-by: Herbert Xu commit 8425165dfed27945e8509c141cea245d1739e372 tree c2a05344993a52bb317bb320a97d0566f3d277bf parent 878b9014666217555d16073764f30e825cf18d2f author Herbert Xu Sun, 20 Aug 2006 15:25:22 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:20 +1000 [CRYPTO] digest: Remove old HMAC implementation This patch removes the old HMAC implementation now that nobody uses it anymore. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 878b9014666217555d16073764f30e825cf18d2f tree cd7ab9f6f49dc0eb3cbfacd0abfc1a1daa243aaf parent 1b489e11d4df82514792f9f981f31976f8a94ddf author Herbert Xu Sun, 20 Aug 2006 15:17:04 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:20 +1000 [CRYPTO] doc: Update documentation for hash and me This patch updates the documentation to reflect the switch from digest to hash. It also replaces notes about emailing James Morris to refer to me instead. Signed-off-by: Herbert Xu commit 1b489e11d4df82514792f9f981f31976f8a94ddf tree fe047012069eb528fc18518fc4340a02ab9b0adc parent 07d4ee583e21830ec5604d31f65cdc60a6eca19e author Herbert Xu Sun, 20 Aug 2006 15:07:14 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:19 +1000 [SCTP]: Use HMAC template and hash interface This patch converts SCTP to use the new HMAC template and hash interface. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 07d4ee583e21830ec5604d31f65cdc60a6eca19e tree 32962ef0dd13d0d1f66b143ca5d03a88d8b9f772 parent e9d41164e2fdd897fe4520c2079ea0000f6e0ec3 author Herbert Xu Sun, 20 Aug 2006 14:24:50 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:18 +1000 [IPSEC]: Use HMAC template and hash interface This patch converts IPsec to use the new HMAC template. The names of existing simple digest algorithms may still be used to refer to their HMAC composites. The same structure can be used by other MACs such as AES-XCBC-MAC. This patch also switches from the digest interface to hash. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit e9d41164e2fdd897fe4520c2079ea0000f6e0ec3 tree da56da7216ac1cc7abc040b93ed6a358d374ef71 parent 0796ae061e6da5de7cfc1af57dfd42a73908b1bf author Herbert Xu Sat, 19 Aug 2006 21:38:49 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:18 +1000 [CRYPTO] tcrypt: Use HMAC template and hash interface This patch converts tcrypt to use the new HMAC template rather than the hard-coded version of HMAC. It also converts all digest users to use the new cipher interface. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 0796ae061e6da5de7cfc1af57dfd42a73908b1bf tree 83832b65f93f2979483640d994d72f8b37860701 parent 055bcee3102dc35f019b69df9c2618e9d6dd1c09 author Herbert Xu Mon, 21 Aug 2006 20:50:52 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:17 +1000 [CRYPTO] hmac: Add crypto template implementation This patch rewrites HMAC as a crypto template. This means that HMAC is no longer a hard-coded part of the API. It's now a template that generates standard digest algorithms like any other. The old HMAC is preserved until all current users are converted. The same structure can be used by other MACs such as AES-XCBC-MAC. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 055bcee3102dc35f019b69df9c2618e9d6dd1c09 tree 3f7c68abbbb5041d570e4cb8588f3943530bc0b7 parent 7226bc877a22244e8003924031435a4bffd52654 author Herbert Xu Sat, 19 Aug 2006 22:24:23 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:17 +1000 [CRYPTO] digest: Added user API for new hash type The existing digest user interface is inadequate for support asynchronous operations. For one it doesn't return a value to indicate success or failure, nor does it take a per-operation descriptor which is essential for the issuing of requests while other requests are still outstanding. This patch is the first in a series of steps to remodel the interface for asynchronous operations. For the ease of transition the new interface will be known as "hash" while the old one will remain as "digest". This patch also changes sg_next to allow chaining. Signed-off-by: Herbert Xu commit 7226bc877a22244e8003924031435a4bffd52654 tree b522aec40dcf6c9c3080d6c8d0fce77c432238af parent 03fd9cee7f46dddcd2562bc175d2c348502ce281 author Herbert Xu Mon, 21 Aug 2006 21:40:49 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:16 +1000 [CRYPTO] api: Mark parts of cipher interface as deprecated Mark the parts of the cipher interface that have been replaced by block ciphers as deprecated. Thanks to Andrew Morton for suggesting doing this before removing them completely. Signed-off-by: Herbert Xu commit 03fd9cee7f46dddcd2562bc175d2c348502ce281 tree d2248f83a1842fb0db44d8b0aa89e3605886d9e2 parent efcf8023e299be605f217dc2c1b2754b5534569c author Herbert Xu Mon, 14 Aug 2006 23:11:53 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:16 +1000 [PATCH] scatterlist: Add const to sg_set_buf/sg_init_one pointer argument This patch adds a const modifier to the buf argument of sg_set_buf and sg_init_one. This lets people call it with pointers that are const. Signed-off-by: Herbert Xu commit efcf8023e299be605f217dc2c1b2754b5534569c tree 36baba6406dd270f64c4e039811893877f9f0499 parent f12cc2090d721647c23dfce20834f4306db3b77d author Herbert Xu Sat, 05 Aug 2006 16:28:19 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:16 +1000 [CRYPTO] drivers: Remove obsolete block cipher operations This patch removes obsolete block operations of the simple cipher type from drivers. These were preserved so that existing users can make a smooth transition. Now that the transition is complete, they are no longer needed. Signed-off-by: Herbert Xu commit f12cc2090d721647c23dfce20834f4306db3b77d tree fba6861bdb58153acaab1ba1e51ec4e48fe0fd99 parent 378c6697a282c383d89428380a3405bf95189347 author Herbert Xu Tue, 22 Aug 2006 20:36:13 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:15 +1000 [CRYPTO] users: Use block ciphers where applicable This patch converts all remaining users to use the new block cipher type where applicable. It also changes all simple cipher operations to use the new encrypt_one/decrypt_one interface. Signed-off-by: Herbert Xu commit 378c6697a282c383d89428380a3405bf95189347 tree 3127c641dd07694199cd4e89c9cd5c155c4eb560 parent 6b7326c8497f954c2cfcb4c49fe42be5b80887bc author Herbert Xu Tue, 22 Aug 2006 20:33:54 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:15 +1000 [SUNRPC] GSS: Use block ciphers where applicable This patch converts SUNRPC/GSS to use the new block cipher type where applicable. Signed-off-by: Herbert Xu commit 6b7326c8497f954c2cfcb4c49fe42be5b80887bc tree 5739c37f7a72d1ef281fbbb5bbc1483226eec198 parent 04ff12609445c7b462d7fc7f2d30dad442c922f3 author Herbert Xu Sun, 30 Jul 2006 15:41:01 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:14 +1000 [IPSEC] ESP: Use block ciphers where applicable This patch converts IPSec/ESP to use the new block cipher type where applicable. Similar to the HMAC conversion, existing algorithm names have been kept for compatibility. Signed-off-by: Herbert Xu commit 04ff12609445c7b462d7fc7f2d30dad442c922f3 tree f19aff48d2e6a4c7e4bf25044c1b30ea428f4318 parent d1806f6a97a536b043fe50e6d8a25b061755cf50 author Herbert Xu Sun, 13 Aug 2006 08:50:00 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:14 +1000 [IPSEC]: Add compatibility algorithm name support This patch adds a compatibility name field for each IPsec algorithm. This is needed when parameterised algorithms are used. For example, "md5" will become "hmac(md5)", and "aes" will become "cbc(aes)". Signed-off-by: Herbert Xu commit d1806f6a97a536b043fe50e6d8a25b061755cf50 tree 0df6a3772783600f58fa0c5e709c650d1f832610 parent 69affe7fc52c14e4b81408a2076e9e58ba4af60a author Herbert Xu Tue, 22 Aug 2006 20:29:17 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:46:13 +1000 [BLOCK] dm-crypt: Use block ciphers where applicable This patch converts dm-crypt to use the new block cipher type where applicable. It also changes simple cipher operations to use the new encrypt_one/decrypt_one interface. Signed-off-by: Herbert Xu commit 69affe7fc52c14e4b81408a2076e9e58ba4af60a tree fd971855cfab1005fc954506014acb1bd96bb6bc parent cba83564d112e4aec52227f68670f8dbd4d4ac89 author Herbert Xu Thu, 21 Sep 2006 11:45:53 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:45:53 +1000 [BLOCK] cryptoloop: Use block ciphers where applicable This patch converts cryptoloop to use the new block cipher type where applicable. As a result the ECB-specific and CBC-specific transfer functions have been merged. Signed-off-by: Herbert Xu commit cba83564d112e4aec52227f68670f8dbd4d4ac89 tree 6fe5f3990e67598ae640580d4818f29183244418 parent a9e62fadf0b02ba4a1d945d1a75652507da94319 author Herbert Xu Sun, 13 Aug 2006 08:26:09 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:44:50 +1000 [CRYPTO] tcrypt: Use block ciphers where applicable This patch converts tcrypt to use the new block cipher type where applicable. Signed-off-by: Herbert Xu commit a9e62fadf0b02ba4a1d945d1a75652507da94319 tree 8e17290e66a3b0200d1a55b1798c81c9bb83e19d parent 28ce728a90cce3a0c6c0ed00354299de52db94b1 author Herbert Xu Mon, 21 Aug 2006 21:39:24 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:44:50 +1000 [CRYPTO] s390: Added block cipher versions of CBC/ECB This patch adds block cipher algorithms for S390. Once all users of the old cipher type have been converted the existing CBC/ECB non-block cipher operations will be removed. Signed-off-by: Herbert Xu commit 28ce728a90cce3a0c6c0ed00354299de52db94b1 tree d5f8c799cb949a5afdfb9db4fb9c4c749820c35e parent db131ef9084110d9e82549c0a627e157e8bb99d7 author Herbert Xu Mon, 21 Aug 2006 21:38:42 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:44:35 +1000 [CRYPTO] padlock: Added block cipher versions of CBC/ECB This patch adds block cipher algorithms for cbc(aes) and ecb(aes) for the PadLock device. Once all users to the old cipher type have been converted the old cbc/ecb PadLock operations will be removed. Signed-off-by: Herbert Xu commit db131ef9084110d9e82549c0a627e157e8bb99d7 tree 65330d3557a7dda47fa48876b7ea9cac1461301d parent 5cde0af2a9825dd1edaca233bd9590566579ef21 author Herbert Xu Thu, 21 Sep 2006 11:44:08 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:44:08 +1000 [CRYPTO] cipher: Added block ciphers for CBC/ECB This patch adds two block cipher algorithms, CBC and ECB. These are implemented as templates on top of existing single-block cipher algorithms. They invoke the single-block cipher through the new encrypt_one/decrypt_one interface. This also optimises the in-place encryption and decryption to remove the cost of an IV copy each round. Signed-off-by: Herbert Xu commit 5cde0af2a9825dd1edaca233bd9590566579ef21 tree e396297e3a2436d4a6ac77de63f95f2328c7a0fe parent 5c64097aa0f6dc4f27718ef47ca9a12538d62860 author Herbert Xu Tue, 22 Aug 2006 00:07:53 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:52 +1000 [CRYPTO] cipher: Added block cipher type This patch adds the new type of block ciphers. Unlike current cipher algorithms which operate on a single block at a time, block ciphers operate on an arbitrarily long linear area of data. As it is block-based, it will skip any data remaining at the end which cannot form a block. The block cipher has one major difference when compared to the existing block cipher implementation. The sg walking is now performed by the algorithm rather than the cipher mid-layer. This is needed for drivers that directly support sg lists. It also improves performance for all algorithms as it reduces the total number of indirect calls by one. In future the existing cipher algorithm will be converted to only have a single-block interface. This will be done after all existing users have switched over to the new block cipher type. Signed-off-by: Herbert Xu commit 5c64097aa0f6dc4f27718ef47ca9a12538d62860 tree d8c0cd3358464f589c9f2778b7be348f73db6950 parent f28776a369b12f9a03a822a8e1090ed670a41f4f author Herbert Xu Sat, 12 Aug 2006 21:56:17 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:52 +1000 [CRYPTO] scatterwalk: Prepare for block ciphers This patch prepares the scatterwalk code for use by the new block cipher type. Firstly it halves the size of scatter_walk on 32-bit platforms. This is important as we allocate at least two of these objects on the stack for each block cipher operation. It also exports the symbols since the block cipher code can be built as a module. Finally there is a hack in scatterwalk_unmap that relies on progress being made. Unfortunately, for hardware crypto we can't guarantee progress to be made since the hardware can fail. So this also gets rid of the hack by not advancing the address returned by scatterwalk_map. Signed-off-by: Herbert Xu commit f28776a369b12f9a03a822a8e1090ed670a41f4f tree b1eb08db2d7ad5c83a4b2784aea3af0502d127b3 parent e853c3cfa8cc24869ecd2526e589bcb176bc12e9 author Herbert Xu Sun, 13 Aug 2006 20:58:18 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:51 +1000 [CRYPTO] cipher: Added encrypt_one/decrypt_one This patch adds two new operations for the simple cipher that encrypts or decrypts a single block at a time. This will be the main interface after the existing block operations have moved over to the new block ciphers. It also adds the crypto_cipher type which is currently only used on the new operations but will be extended to setkey as well once existing users have been converted to use block ciphers where applicable. Signed-off-by: Herbert Xu commit e853c3cfa8cc24869ecd2526e589bcb176bc12e9 tree 24ad223420bdea868e891676ebb7285e3c477a05 parent 8f21cf0d2bae04ece761595036c9da8328b279aa author Herbert Xu Tue, 22 Aug 2006 00:06:54 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:51 +1000 [CRYPTO] api: Added crypto_type support This patch adds the crypto_type structure which will be used for all new crypto algorithm types, beginning with block ciphers. The primary purpose of this abstraction is to allow different crypto_type objects for crypto algorithms of the same type, in particular, there will be a different crypto_type objects for asynchronous algorithms. Signed-off-by: Herbert Xu commit 8f21cf0d2bae04ece761595036c9da8328b279aa tree 4025d020895dcbfc2aef330fed01860bbf0ba64d parent 6d7d684d635ac5a345f075015f2c84169c111c6a author Herbert Xu Sun, 30 Jul 2006 11:53:45 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:50 +1000 [CRYPTO] api: Feed flag directly to crypto_yield The sleeping flag used to determine whether crypto_yield can actually yield is really a per-operation flag rather than a per-tfm flag. This patch changes crypto_yield to take a flag directly so that we can start using a per-operation flag instead the tfm flag. Signed-off-by: Herbert Xu commit 6d7d684d635ac5a345f075015f2c84169c111c6a tree 9a1b397fe8db3c14cc69880aba747e50c1a1faa2 parent 65b75c36f4e8422602826c75c803136e0da94122 author Herbert Xu Sun, 30 Jul 2006 11:53:01 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:50 +1000 [CRYPTO] api: Added crypto_alloc_base Up until now all crypto transforms have been of the same type, struct crypto_tfm, regardless of whether they are ciphers, digests, or other types. As a result of that, we check the types at run-time before each crypto operation. This is rather cumbersome. We could instead use different C types for each crypto type to ensure that the correct types are used at compile time. That is, we would have crypto_cipher/crypto_digest instead of just crypto_tfm. The appropriate type would then be required for the actual operations such as crypto_digest_digest. Now that we have the type/mask fields when looking up algorithms, it is easy to request for an algorithm of the precise type that the user wants. However, crypto_alloc_tfm currently does not expose these new attributes. This patch introduces the function crypto_alloc_base which will carry these new parameters. It will be renamed to crypto_alloc_tfm once all existing users have been converted. Signed-off-by: Herbert Xu commit 65b75c36f4e8422602826c75c803136e0da94122 tree 4adf5b95aff10656469572425a0ae14196031370 parent f3f632d61ae9af85d436706ee8e33af1a7fb9c28 author Herbert Xu Mon, 21 Aug 2006 21:18:50 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:50 +1000 [CRYPTO] s390: Added missing driver name and priority Accelerated versions of crypto algorithms must carry a distinct driver name and priority in order to distinguish themselves from their generic counter- part. Signed-off-by: Herbert Xu commit f3f632d61ae9af85d436706ee8e33af1a7fb9c28 tree 38c9aa8a1210d88d60a7d961c47e15210d16ca78 parent 7fed0bf271b374be4c98a5880faed4b1128e78e9 author Herbert Xu Sun, 06 Aug 2006 23:12:59 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:49 +1000 [CRYPTO] api: Added asynchronous flag This patch adds the asynchronous flag and changes all existing users to only look up algorithms that are synchronous. Signed-off-by: Herbert Xu commit 7fed0bf271b374be4c98a5880faed4b1128e78e9 tree 29a1244ed286c500bf64afcef0c571e771ed0cd5 parent df89820ebd5bbf4f3c6b5f8ee7d9e983107f6a91 author Herbert Xu Sun, 06 Aug 2006 23:10:45 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:04 +1000 [CRYPTO] api: Add common instance initialisation code This patch adds the helpers crypto_get_attr_alg and crypto_alloc_instance which can be used by simple one-argument templates like hmac to process input parameters and allocate instances. Signed-off-by: Herbert Xu commit df89820ebd5bbf4f3c6b5f8ee7d9e983107f6a91 tree a782e2662cbdb6c7ad7591f2697d06008048f966 parent c907ee76d8456fe1d98f40b5febfc7802a73b784 author Herbert Xu Fri, 14 Jul 2006 10:42:27 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:03 +1000 [CRYPTO] cipher: Removed special IV checks for ECB This patch makes IV operations on ECB fail through nocrypt_iv rather than calling BUG(). This is needed to generalise CBC/ECB using the template mechanism. Signed-off-by: Herbert Xu commit c907ee76d8456fe1d98f40b5febfc7802a73b784 tree ba7abea258fd89c2873fbac40b1d5928b4a99f5b parent ee7564166da9e218c3f605ee78ff16599d4d5a05 author Herbert Xu Mon, 21 Aug 2006 22:04:03 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:03 +1000 [CRYPTO] tcrypt: Use test_hash for crc32c Now that crc32c has been fixed to conform with standard digest semantics, we can use test_hash for it. I've turned the last test into a chunky test. Signed-off-by: Herbert Xu commit ee7564166da9e218c3f605ee78ff16599d4d5a05 tree 430f72a4711bbfe88d0d04be0d241bc6558b4eef parent 560c06ae1ab7c677002ea3b6ac83521bf12ee07d author Herbert Xu Sun, 09 Jul 2006 14:49:42 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:02 +1000 [CRYPTO] digest: Store temporary digest in tfm When the final result location is unaligned, we store the digest in a temporary buffer before copying it to the final location. Currently that buffer sits on the stack. This patch moves it to an area in the tfm, just like the CBC IV buffer. Signed-off-by: Herbert Xu commit 560c06ae1ab7c677002ea3b6ac83521bf12ee07d tree 374ed69a7e23ba9d07458d20672aac6ae552ae51 parent 25cdbcd9e5d20e431f829cafce48a418830011f4 author Herbert Xu Sun, 13 Aug 2006 14:16:39 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:02 +1000 [CRYPTO] api: Get rid of flags argument to setkey Now that the tfm is passed directly to setkey instead of the ctx, we no longer need to pass the &tfm->crt_flags pointer. This patch also gets rid of a few unnecessary checks on the key length for ciphers as the cipher layer guarantees that the key length is within the bounds specified by the algorithm. Rather than testing dia_setkey every time, this patch does it only once during crypto_alloc_tfm. The redundant check from crypto_digest_setkey is also removed. Signed-off-by: Herbert Xu commit 25cdbcd9e5d20e431f829cafce48a418830011f4 tree 0dff8422d2b0b1da1d3505b0ad0e840f6f0fd66d parent 58ec4152895b96f047dcf5e490ee49b4c574dec3 author Herbert Xu Sun, 06 Aug 2006 23:03:08 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:01 +1000 [CRYPTO] crc32c: Fix unconventional setkey usage The convention for setkey is that once it is set it should not change, in particular, init must not wipe out the key set by it. In fact, init should always be used after setkey before any digestion is performed. The only user of crc32c that sets the key is tcrypt. This patch adds the necessary init calls there. Signed-off-by: Herbert Xu commit 58ec4152895b96f047dcf5e490ee49b4c574dec3 tree 2cc6316aaf70ffd7c43ae9677f0ba35903b9de9d parent 5644bda5d6aa17a70b8842eb56365d501a5da159 author Michal Ludvig Mon, 17 Jul 2006 08:14:58 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:00 +1000 [CRYPTO] padlock-sha: TFMs don't need to be static TFMs are local variables. No need to declare them static. After all one is enough. Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit 5644bda5d6aa17a70b8842eb56365d501a5da159 tree ac19f321bdc0dfa081e4ea7348584f516f6a7e7b parent cb17530b0a4e01bd595a7ac437467a1a9833a15c author Michal Ludvig Sun, 06 Aug 2006 22:50:30 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:00 +1000 [CRYPTO] padlock: Helper module padlock.ko Compile a helper module padlock.ko that will try to autoload all configured padlock algorithms. This also provides backward compatibility with the ancient times before padlock.ko was renamed to padlock-aes.ko Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit cb17530b0a4e01bd595a7ac437467a1a9833a15c tree 4d35d00a4827790e1aeca6ec4baeea299e45cc25 parent 6c833275152b454d311f0e70b5e6bf028b4a2aaf author Adrian Bunk Sat, 15 Jul 2006 11:31:25 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:41:00 +1000 [CRYPTO] padlock-sha: Make 2 functions static This patch makes two needlessly global functions static. Signed-off-by: Adrian Bunk Signed-off-by: Herbert Xu commit 6c833275152b454d311f0e70b5e6bf028b4a2aaf tree a08d9d1057730c1c5dde31de1db0bd81810ee8d2 parent ccc17c34d676f116bd09dd36a3b01627bc6a2f8a author Michal Ludvig Wed, 12 Jul 2006 12:29:38 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:40:59 +1000 [CRYPTO] padlock: Driver for SHA1 / SHA256 algorithms Support for SHA1 / SHA256 algorithms in VIA C7 processors. Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit ccc17c34d676f116bd09dd36a3b01627bc6a2f8a tree 458c6c6e7b187885c5fac80668c44583ce930ab1 parent db5e9a42373ae6d84c4b0179c2fe0aba866474e8 author Michal Ludvig Sat, 15 Jul 2006 10:23:49 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:40:22 +1000 [CRYPTO] padlock: Update private header file PADLOCK_CRA_PRIORITY is shared between padlock-aes and padlock-sha so it should be in the header. On the other hand "struct cword" is only used in padlock-aes.c so it's unnecessary to have it in padlock.h Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit db5e9a42373ae6d84c4b0179c2fe0aba866474e8 tree 7b8ba1a14ca02aeb0df119cf97fa0095f4e5f993 parent 1191f0a49390caf16f4a2831a4fc373757471ad6 author Herbert Xu Sun, 09 Jul 2006 10:35:49 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:40:22 +1000 [CRYPTO] padlock: Add compatibility alias after rename Whenever we rename modules we should add an alias to ensure that existing users can still locate the new module. This patch also gets rid of the now unused module function prototypes from padlock.h. Signed-off-by: Herbert Xu commit 1191f0a49390caf16f4a2831a4fc373757471ad6 tree 8b92255ab82b777feade49a68cc0dc9691f1c665 parent b14cdd6704c96474ba5c74b5959487beaa5ee1cd author Michal Ludvig Sun, 06 Aug 2006 22:46:20 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:40:21 +1000 [CRYPTO] padlock: Get rid of padlock-generic.c Merge padlock-generic.c into padlock-aes.c and compile AES as a standalone module. We won't make a monolithic padlock.ko with all supported algorithms, instead we'll compile each driver into its own module. Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit b14cdd6704c96474ba5c74b5959487beaa5ee1cd tree 9964ad4284280c8064ac8dc6b35d8ef8eaca65f3 parent b3be9a6d9a78bb820f5242f43b98f38b0ca610a6 author Michal Ludvig Sun, 09 Jul 2006 09:02:24 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:40:21 +1000 [CRYPTO] api: Add missing accessors for new crypto_alg fields Add missing accessors for cra_driver_name and cra_priority. Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit b3be9a6d9a78bb820f5242f43b98f38b0ca610a6 tree 138002fa4ad727f5520b7c36e4eb6ca3f2bc599c parent 6bfd48096ff8ecabf955958b51ddfa7988eb0a14 author Michal Ludvig Sun, 09 Jul 2006 08:59:38 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:40:20 +1000 [CRYPTO] sha: Add module aliases for sha1 / sha256 Crypto modules should be loadable by their .cra_driver_name, so we should make MODULE_ALIAS()es with these names. This patch adds aliases for SHA1 and SHA256 only as that's what we need for PadLock-SHA driver. Signed-off-by: Michal Ludvig Signed-off-by: Herbert Xu commit 6bfd48096ff8ecabf955958b51ddfa7988eb0a14 tree 813799f00d8402348ba6817953b1c631541be66c parent 492e2b63eb10c28f4f0b694264d74a8755cd1be0 author Herbert Xu Thu, 21 Sep 2006 11:39:29 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:39:29 +1000 [CRYPTO] api: Added spawns Spawns lock a specific crypto algorithm in place. They can then be used with crypto_spawn_tfm to allocate a tfm for that algorithm. When the base algorithm of a spawn is deregistered, all its spawns will be automatically removed. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 492e2b63eb10c28f4f0b694264d74a8755cd1be0 tree d882a2df15d939b2edf9064963d73c71c5985b9b parent 2b8c19dbdc692e81243a328725a02efb77b144a5 author Herbert Xu Thu, 21 Sep 2006 11:35:17 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:35:17 +1000 [CRYPTO] api: Allow algorithm lookup by type This patch also adds the infrastructure to pick an algorithm based on their type. For example, this allows you to select the encryption algorithm "aes", instead of any algorithm registered under the name "aes". For now this is only accessible internally. Eventually it will be made available through crypto_alloc_tfm. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 2b8c19dbdc692e81243a328725a02efb77b144a5 tree f9256d5515cc315d54971f62e0e9812d5db572ba parent 2825982d9d66ebba4b532a07391dfbb357f71c5f author Herbert Xu Thu, 21 Sep 2006 11:31:44 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:31:44 +1000 [CRYPTO] api: Add cryptomgr The cryptomgr module is a simple manager of crypto algorithm instances. It ensures that parameterised algorithms of the type tmpl(alg) (e.g., cbc(aes)) are always created. This is meant to satisfy the needs for most users. For more complex cases such as deeper combinations or multiple parameters, a netlink module will be created which allows arbitrary expressions to be parsed in user-space. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 2825982d9d66ebba4b532a07391dfbb357f71c5f tree 3789b26b593d081ff8eedc7e528c2b9b49a94dc2 parent 4cc7720cd165273b08a72b4193146dffee58e34b author Herbert Xu Sun, 06 Aug 2006 21:23:26 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:17:13 +1000 [CRYPTO] api: Added event notification This patch adds a notifier chain for algorithm/template registration events. This will be used to register compound algorithms such as cbc(aes). In future this will also be passed onto user-space through netlink. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 4cc7720cd165273b08a72b4193146dffee58e34b tree 19c49af8a8195624ae101f665a05efc086c7f53b parent cce9e06d100df19a327b19f23adad76e7bf63edd author Herbert Xu Sun, 06 Aug 2006 21:16:34 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:17:12 +1000 [CRYPTO] api: Add template registration A crypto_template generates a crypto_alg object when given a set of parameters. this patch adds the basic data structure fo templates and code to handle their registration/deregistration. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit cce9e06d100df19a327b19f23adad76e7bf63edd tree ce10f50679db9ed8db92912c104eef1f05efc3c5 parent 9409f38a0c8773c04bff8dda8c552d7ea013d956 author Herbert Xu Mon, 21 Aug 2006 21:08:13 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:30 +1000 [CRYPTO] api: Split out low-level API The crypto API is made up of the part facing users such as IPsec and the low-level part which is used by cryptographic entities such as algorithms. This patch splits out the latter so that the two APIs are more clearly delineated. As a bonus the low-level API can now be modularised if all algorithms are built as modules. Signed-off-by: Herbert Xu commit 9409f38a0c8773c04bff8dda8c552d7ea013d956 tree 694ad993535d6dcfd479f9b5cb4faab64c12fcd7 parent 6521f30273fbec65146a0f16de74b7b402b0f7b0 author Herbert Xu Sun, 06 Aug 2006 19:49:12 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:30 +1000 [IPSEC]: Move linux/crypto.h inclusion out of net/xfrm.h The header file linux/crypto.h is only needed by a few files so including it in net/xfrm.h (which is included by half of the networking stack) is a waste. This patch moves it out of net/xfrm.h and into the specific header files that actually need it. Signed-off-by: Herbert Xu commit 6521f30273fbec65146a0f16de74b7b402b0f7b0 tree 1e664f6c1a7c960c60c4cae01585933029f81a5f parent 72fa491912689ca69dd15f4266945d2c2f2819f8 author Herbert Xu Sun, 06 Aug 2006 20:28:44 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:29 +1000 [CRYPTO] api: Add crypto_alg reference counting Up until now we've relied on module reference counting to ensure that the crypto_alg structures don't disappear from under us. This was good enough as long as each crypto_alg came from exactly one module. However, with parameterised crypto algorithms a crypto_alg object may need two or more modules to operate. This means that we need to count the references to the crypto_alg object directly. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 72fa491912689ca69dd15f4266945d2c2f2819f8 tree c117b6ccdd08c73694261aac0b7f43fdf27c861c parent eaf44088ff467410dd15a033fef118888002ffe6 author Herbert Xu Sun, 28 May 2006 09:05:24 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:29 +1000 [CRYPTO] api: Rename crypto_alg_get to crypto_mod_get The functions crypto_alg_get and crypto_alg_put operates on the crypto modules rather than the algorithms. Therefore it makes sense to call them crypto_mod_get and crypto_alg_put respectively. This is needed because we need to have real algorithm reference counters for parameterised algorithms as they can be unregistered from below by when their parameter algorithms are themselves unregistered. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit eaf44088ff467410dd15a033fef118888002ffe6 tree 72b225b910342ae74e1b0915ceff61b4ead97883 parent b9f535ffe38f7eb61ac2219d32d97c377b69f70d author Joachim Fritschi Tue, 20 Jun 2006 21:12:02 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:29 +1000 [CRYPTO] twofish: x86-64 assembly version The patch passed the trycpt tests and automated filesystem tests. This rewrite resulted in some nice perfomance increase over my last patch. Short summary of the tcrypt benchmarks: Twofish Assembler vs. Twofish C (256bit 8kb block CBC) encrypt: -27% Cycles decrypt: -23% Cycles Twofish Assembler vs. AES Assembler (128bit 8kb block CBC) encrypt: +18% Cycles decrypt: +15% Cycles Twofish Assembler vs. AES Assembler (256bit 8kb block CBC) encrypt: -9% Cycles decrypt: -8% Cycles Full Output: http://homepages.tu-darmstadt.de/~fritschi/twofish/tcrypt-speed-twofish-c-x86_64.txt http://homepages.tu-darmstadt.de/~fritschi/twofish/tcrypt-speed-twofish-asm-x86_64.txt http://homepages.tu-darmstadt.de/~fritschi/twofish/tcrypt-speed-aes-asm-x86_64.txt Here is another bonnie++ benchmark with encrypted filesystems. Most runs maxed out the hd. It should give some idea what the module can do for encrypted filesystem performance even though you can't see the full numbers. http://homepages.tu-darmstadt.de/~fritschi/twofish/output_20060610_130806_x86_64.html Signed-off-by: Joachim Fritschi Signed-off-by: Herbert Xu commit b9f535ffe38f7eb61ac2219d32d97c377b69f70d tree 57e09481226ab5a25f3938963f8299c9f0cd8439 parent 758f570ea785a5fbcdca026dfab2e9e1a3f89726 author Joachim Fritschi Tue, 20 Jun 2006 20:59:16 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:28 +1000 [CRYPTO] twofish: i586 assembly version The patch passed the trycpt tests and automated filesystem tests. This rewrite resulted in some nice perfomance increase over my last patch. Short summary of the tcrypt benchmarks: Twofish Assembler vs. Twofish C (256bit 8kb block CBC) encrypt: -33% Cycles decrypt: -45% Cycles Twofish Assembler vs. AES Assembler (128bit 8kb block CBC) encrypt: +3% Cycles decrypt: -22% Cycles Twofish Assembler vs. AES Assembler (256bit 8kb block CBC) encrypt: -20% Cycles decrypt: -36% Cycles Full Output: http://homepages.tu-darmstadt.de/~fritschi/twofish/tcrypt-speed-twofish-asm-i586.txt http://homepages.tu-darmstadt.de/~fritschi/twofish/tcrypt-speed-twofish-c-i586.txt http://homepages.tu-darmstadt.de/~fritschi/twofish/tcrypt-speed-aes-asm-i586.txt Here is another bonnie++ benchmark with encrypted filesystems. All runs with the twofish assembler modules max out the drivespeed. It should give some idea what the module can do for encrypted filesystem performance even though you can't see the full numbers. http://homepages.tu-darmstadt.de/~fritschi/twofish/output_20060611_205432_x86.html Signed-off-by: Joachim Fritschi Signed-off-by: Herbert Xu commit 758f570ea785a5fbcdca026dfab2e9e1a3f89726 tree b16a4acb4cb6244a79e6ca41120874aafb39c7e3 parent 2729bb427f686e47970406d6bde6b11892885f29 author Joachim Fritschi Tue, 20 Jun 2006 20:39:29 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:28 +1000 [CRYPTO] twofish: Fix the priority This patch adds a proper driver name and priority to the generic c implemtation to allow coexistance of c and assembler modules. Signed-off-by: Joachim Fritschi Signed-off-by: Herbert Xu commit 2729bb427f686e47970406d6bde6b11892885f29 tree 6c17bab6970fc4bcc92c0de76d174e35d8043844 parent 799111020c66c41aef621a3b53ad112543754124 author Joachim Fritschi Tue, 20 Jun 2006 20:37:23 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:27 +1000 [CRYPTO] twofish: Split out common c code This patch splits up the twofish crypto routine into a common part ( key setup ) which will be uses by all twofish crypto modules ( generic-c , i586 assembler and x86_64 assembler ) and generic-c part. It also creates a new header file which will be used by all 3 modules. This eliminates all code duplication. Correctness was verified with the tcrypt module and automated test scripts. Signed-off-by: Joachim Fritschi Signed-off-by: Herbert Xu commit 799111020c66c41aef621a3b53ad112543754124 tree da9fc944ada8607cf534a2d0b0774ba8e0549fcc parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Herbert Xu Mon, 21 Aug 2006 21:03:52 +1000 committer Herbert Xu Thu, 21 Sep 2006 11:16:27 +1000 [CRYPTO] api: Fixed crypto_tfm context alignment Previously the __aligned__ attribute was added to the crypto_tfm context member to ensure it is alinged correctly on architectures such as arm. Unfortunately kmalloc does not use the same minimum alignment rules as gcc so this is useless. This patch changes it to use kmalloc's minimum alignment. Signed-off-by: Herbert Xu commit eb35746ca5e2211569b91ebb44d55b88ec91f3b0 tree debd08f16bdb89c11b893a7e009892aaf9621411 parent f12033d206ea48928d8124cdd5d35d8008c18935 author Mark Fasheh Wed, 09 Aug 2006 13:23:08 -0700 committer Mark Fasheh Wed, 20 Sep 2006 16:00:54 -0700 ocfs2: Remove overzealous BUG_ON() The truncate code was never supposed to BUG() on an allocator it doesn't know about, but rather to ignore it. Right now, this does nothing, but when we change our allocation paths to use all suballocator files, this will allow current versions of the fs module to work fine. Signed-off-by: Mark Fasheh commit f12033d206ea48928d8124cdd5d35d8008c18935 tree 769c6e3c8c2fb6cef9736ce6557cfbfe29ad9875 parent 02ed8416fe5b7e33b5bbf2d73f9af1d316806822 author Mark Fasheh Wed, 13 Sep 2006 18:57:57 -0700 committer Mark Fasheh Wed, 20 Sep 2006 16:00:36 -0700 ocfs2: Don't print on unknown remote blocking call Signed-off-by: Mark Fasheh commit 02ed8416fe5b7e33b5bbf2d73f9af1d316806822 tree 5d13f6792c2ec5f593f7a89ca55bf8454e06c887 parent aa9588741db907785e4d92c8b768dd6c9077e6f0 author Mark Fasheh Thu, 14 Sep 2006 10:28:06 -0700 committer Mark Fasheh Wed, 20 Sep 2006 16:00:06 -0700 ocfs2: Remove EXPERIMENTAL dependency Things have been working pretty well for a while now. We should've probably done this at least one kernel revision ago, but it doesn't hurt to be paranoid. Signed-off-by: Mark Fasheh commit aa9588741db907785e4d92c8b768dd6c9077e6f0 tree d34da288a9d296a8a2ba19dfa0f1df8429bd3e33 parent e0b4096d34fbd6b30838c417100c9d0ef73c71f2 author Mark Fasheh Fri, 21 Apr 2006 13:49:02 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:53:40 -0700 ocfs2: implement directory read-ahead Uptodate.c now knows about read-ahead buffers. Use some more aggressive logic in ocfs2_readdir(). The two functions which currently use directory read-ahead are ocfs2_find_entry() and ocfs2_readdir(). Signed-off-by: Mark Fasheh commit e0b4096d34fbd6b30838c417100c9d0ef73c71f2 tree cabe34d3ae64b906f186ddea53bf3b4f84099ab7 parent 0f62de2c9ca60a35f63122e7ea992cee8aae4bef author Mark Fasheh Tue, 11 Jul 2006 14:38:54 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:53:05 -0700 ocfs2: properly update i_mtime on buffered write We weren't always updating i_mtime on writes, so fix ocfs2_commit_write() to handle this. Signed-off-by: Mark Fasheh Acked-by: Zach Brown commit 0f62de2c9ca60a35f63122e7ea992cee8aae4bef tree 31af0006aedea3a22e463198b5c4a00ca893bf1c parent a663e30513d7ecc77dd71d474e7646bf78c0ba62 author Tiger Yang Thu, 31 Aug 2006 20:39:47 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:52:27 -0700 ocfs2: Fix directory link count checks in ocfs2_link() Remove the redundant "i_nlink >= OCFS2_LINK_MAX" check and adds an unlinked directory check in ocfs2_link(). Signed-off-by: Tiger Yang Signed-off-by: Mark Fasheh commit a663e30513d7ecc77dd71d474e7646bf78c0ba62 tree ac37a5d33b62cce82df4e35a816f73f4631e339a parent 471e3f57286da7ce8820ad42c77d5f5f49d56a41 author Mark Fasheh Wed, 09 Aug 2006 11:45:07 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:52:08 -0700 ocfs2: move nlink check in ocfs2_mknod() The dir nlink check in ocfs2_mknod() was being done outside of the cluster lock, which means we could have been checking against a stale version of the inode. Fix this by doing the check after the cluster lock instead. Signed-off-by: Mark Fasheh commit 471e3f57286da7ce8820ad42c77d5f5f49d56a41 tree 763078566e354815f0c48684c48b618506be73d3 parent 2d5625181fac18f572cbbd18878d28f5eebf4733 author Mathieu Avila Wed, 13 Sep 2006 11:11:27 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:50:53 -0700 ocfs2: Fix heartbeat sector calculation This fixes things for devices which set max_sectors to 8. Signed-off-by: Mark Fasheh commit 2d5625181fac18f572cbbd18878d28f5eebf4733 tree 5125d63c551d6c7be1f9a5c99b16d05a85a3db7c parent ca4d147e62df370c334898464023aa7f9126abe1 author Adrian Bunk Mon, 10 Jul 2006 01:32:51 +0200 committer Mark Fasheh Wed, 20 Sep 2006 15:49:33 -0700 [PATCH] fs/ocfs2/ioctl.c should #include "ioctl.h" Every file should #include the headers containing the prototypes for its global functions. Signed-off-by: Adrian Bunk Signed-off-by: Mark Fasheh commit ca4d147e62df370c334898464023aa7f9126abe1 tree aff39cd19c5b0a95a1fd85caf439c4aa69c5830e parent b4c98f625fffee3a6f633082e9e4be3e952ca2ab author Herbert Poetzl Mon, 03 Jul 2006 17:27:12 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:48:39 -0700 ocfs2: add ext2 attributes Support immutable, and other attributes. Some renaming and other minor fixes done by myself. Signed-off-by: Herbert Poetzl Signed-off-by: Mark Fasheh commit b4c98f625fffee3a6f633082e9e4be3e952ca2ab tree ff7832706aeab7b16cbe18dd7976be7b56c49e55 parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Joel Becker Wed, 13 Sep 2006 11:01:19 -0700 committer Mark Fasheh Wed, 20 Sep 2006 15:46:14 -0700 configfs: Prevent duplicate subsystem names. For all child objects, creation comes through mkdir(2), so duplicate names are prevented. Subsystems, though, are registered by client drivers at init_module()/__init time. This patch prevents duplicate subsystem names. Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh commit 36b35a5be0e4b406acd816e2122d153e875105be tree 27f50d132f54a5d21c7fd268964162b324827b62 parent 93590859884784520a1850767f86296abc2cdc6d author Jeff Garzik Wed, 20 Sep 2006 17:48:53 -0400 committer Jeff Garzik Wed, 20 Sep 2006 17:48:53 -0400 [libata] Delete pata_it8172 driver This MIPS platform is going away. Acked-by: Ralf Baechle Signed-off-by: Jeff Garzik commit d81bf551103cc3bc9e4f7ddf337511d6da0d088f tree 15ebe716d004a0fc10d3b92869eeec593a7bbf7d parent b39fe41f481d20c201012e4483e76c203802dda7 author Francois Romieu Wed, 20 Sep 2006 21:31:20 +0200 committer Francois Romieu Wed, 20 Sep 2006 21:08:20 +0200 r8169: the MMIO region of the 8167 stands behin BAR#1 Reported by Matt Bockol to make its LOM (MSI 965 Neo) work. Signed-off-by: Francois Romieu commit 388c571cffc4ae4e64f0786333e811308acbbc10 tree 98bfa69fe8fa4cae331ccfa46118e40d1e80d389 parent 564337f34cc10fd8f30329e4e5f14f8995db5711 author Michael Holzheu Wed, 20 Sep 2006 16:00:04 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 16:00:04 +0200 [S390] hypfs crashes with invalid mount option. When an invalid mount option is specified, no root inode is created for hypfs, hypfs_fill_super() returns with -EINVAL and then hypfs_kill_super() is called. hypfs_kill_super() does not check if the root inode has been initialized. This patch adds this check. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 564337f34cc10fd8f30329e4e5f14f8995db5711 tree b2f4791c1b696d1ce4202b14c6dcae3b3211de01 parent 28bdc6f6233f380ddc0b430cabd88ffeafea34c7 author Peter Oberparleiter Wed, 20 Sep 2006 16:00:01 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 16:00:01 +0200 [S390] cio: subchannel evaluation function operates without lock css_evaluate_subchannel() operates subchannel without lock which can lead to erratic behavior caused by concurrent device access. Also split evaluation function to make it more readable. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit 28bdc6f6233f380ddc0b430cabd88ffeafea34c7 tree be2c8e7943dab4328fcbe18cd6e03c50a82e0f34 parent e0e32c8eba86fd5ea79eefad6f2c0b4988dfd02a author Peter Oberparleiter Wed, 20 Sep 2006 15:59:59 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:59 +0200 [S390] cio: always query all paths on path verification. Reappearing channel paths are sometimes not utilized by CCW devices because path verification incorrectly relies on path-operational-mask information which is not updated until a channel path has been used again. Modify path verification procedure to always query all available paths to a device. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit e0e32c8eba86fd5ea79eefad6f2c0b4988dfd02a tree 2337ed7ce0e1c392c31a67da6c534c6d681649aa parent dd9963f9dd0985e16e878fd3632ecadfc54d3fbb author Peter Oberparleiter Wed, 20 Sep 2006 15:59:57 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:57 +0200 [S390] cio: update path groups on logical CHPID changes. CHPIDs that are logically varied off will not be removed from a CCW device's path group because resign-from-pathgroup command is issued with invalid path mask of 0 because internal CCW operations are masked by the logical path mask after the relevant bits are cleared by the vary operation. Do not apply logical path mask to internal operations. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit dd9963f9dd0985e16e878fd3632ecadfc54d3fbb tree 323295ffcc116aceac4c0bcb20bb641d54253737 parent dcd707b4bdc10b4fa20efa116dbaeded21513115 author Peter Oberparleiter Wed, 20 Sep 2006 15:59:54 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:54 +0200 [S390] cio: subchannels in no-path state. Subchannel may incorrectly remain in state no-path after channel paths have reappeared. Currently the scan for subchannels which are using a channel path ends at the first occurrence if a full link address was provided by the channel subsystem. The scan needs to continue over all subchannels. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit dcd707b4bdc10b4fa20efa116dbaeded21513115 tree 2b6558ef933b746819a79ef0f03ba0e8e74bf3d9 parent db0c2d59087296b3567ec408abe17108db88b385 author Peter Oberparleiter Wed, 20 Sep 2006 15:59:52 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:52 +0200 [S390] Replace nopav-message on VM. Specifying kernel parameter "dasd=nopav" on systems running under VM has no function but results in message "disable PAV mode". Correct message is "'nopav' not supported on VM". Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit db0c2d59087296b3567ec408abe17108db88b385 tree 303981d2ff2b5a10069fbee1692189f1b1739608 parent 250b2dc83347feb73eb6bdf7511685e72b587e68 author Peter Oberparleiter Wed, 20 Sep 2006 15:59:49 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:49 +0200 [S390] set modalias for ccw bus uevents. Add the MODALIAS environment variable for ccw bus uevents. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit 250b2dc83347feb73eb6bdf7511685e72b587e68 tree 7e6a1c0dd288d151f77103d921a7793515697cc5 parent 6c2a9e6df60478e712f3c3d98b5047778a82a3d7 author Cornelia Huck Wed, 20 Sep 2006 15:59:47 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:47 +0200 [S390] Get rid of DBG macro. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit 6c2a9e6df60478e712f3c3d98b5047778a82a3d7 tree 6768eb3991f4f1616b211a21ccf1b8e27820ae79 parent d02765d1af743567398eb6d523dea0ba5e5e7e8e author Gerald Schaefer Wed, 20 Sep 2006 15:59:44 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:44 +0200 [S390] Use alternative user-copy operations for new hardware. This introduces new user-copy operations which are optimized for copying more than 256 Bytes on new hardware. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky commit d02765d1af743567398eb6d523dea0ba5e5e7e8e tree 9a39c21d9924a8d81ce85254cd3d013dbe50d23e parent 6837a8c352efcc5efc70424e9bfd94ff9bfa9a47 author Gerald Schaefer Wed, 20 Sep 2006 15:59:42 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:42 +0200 [S390] Make user-copy operations run-time configurable. Introduces a struct uaccess_ops which allows setting user-copy operations at run-time. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky commit 6837a8c352efcc5efc70424e9bfd94ff9bfa9a47 tree a77dd0895fca642175d65db2cd23157be82ff7a5 parent 9282ed929758b82f448a40d3c17319d794970624 author Gerald Schaefer Wed, 20 Sep 2006 15:59:39 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:39 +0200 [S390] Cleanup in signal handling code. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky commit 9282ed929758b82f448a40d3c17319d794970624 tree f3db7796f0ea7afddc853ab4294033b4fdd6d785 parent 31b58088292c7f00f0b81088bfb557285b0b6247 author Gerald Schaefer Wed, 20 Sep 2006 15:59:37 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:37 +0200 [S390] Cleanup in page table related code. Changed and simplified some page table related #defines and code. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky commit 31b58088292c7f00f0b81088bfb557285b0b6247 tree 7ce82a49cbf3ad0c28feb63d15b35a6c97d668a0 parent e620c4940002348417e8d317d65bc7b152646493 author Melissa Howland Wed, 20 Sep 2006 15:59:34 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:34 +0200 [S390] Linux API for writing z/VM APPLDATA Monitor records. This patch delivers a new Linux API in the form of a misc char device that is useable from user space and allows write access to the z/VM APPLDATA Monitor Records collected by the *MONITOR System Service of z/VM. Signed-off-by: Melissa Howland Signed-off-by: Martin Schwidefsky commit e620c4940002348417e8d317d65bc7b152646493 tree 8885306f33abae831d831f1a2a02f7fb67589d3b parent 07d43ce6a2ba0bb914078c3b066a7a3bab57599d author Christian Borntraeger Wed, 20 Sep 2006 15:59:32 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:32 +0200 [S390] xpram off by one error. The xpram driver shows and uses 4096 bytes less than available. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit 07d43ce6a2ba0bb914078c3b066a7a3bab57599d tree 084ab9c3f7e4a3fd531679ced250215ff9ae74ff parent 1f38d61347203055b55e34083cce7a9cd8c529a9 author Heiko Carstens Wed, 20 Sep 2006 15:59:29 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:29 +0200 [S390] Remove kexec experimental flag. Follow other architectures and remove kexec experimental flag. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 1f38d61347203055b55e34083cce7a9cd8c529a9 tree f7793ce226cbef903e4e3400c588ca7fcdaa1a52 parent 45af3af8761a3f790fe414c017de039a08ccd780 author Gerald Schaefer Wed, 20 Sep 2006 15:59:26 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:26 +0200 [S390] cleanup appldata. Introduce asm header that contains the appldata data structures and the diag inline assembly. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky commit 45af3af8761a3f790fe414c017de039a08ccd780 tree 5385f628eba9a54ea649e1159c87600eee1e9d20 parent 9514e2311be97a01e8669c4de78e9fea37489f09 author Christian Borntraeger Wed, 20 Sep 2006 15:59:24 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:24 +0200 [S390] fix typo in vmcp. Fix comment typo in vmcp, it is z/VM and not v/VM. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit 9514e2311be97a01e8669c4de78e9fea37489f09 tree 74a256ce4ab6a94c904635f47862f8f3e3ec7974 parent 6981e936aa156c747bb3e6aea414bba673457115 author Heiko Carstens Wed, 20 Sep 2006 15:59:22 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:22 +0200 [S390] Kernel stack overflow handling. Substract the size of the initial stack frame from the correct register. Otherwise we will end up in a program check loop. Fix the offset into the save area as well. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 6981e936aa156c747bb3e6aea414bba673457115 tree ac18a8ed8bb398480bba575e55411ddaeac6c879 parent 81388d2a45b89c890b981cfc83b01ec15ae3483b author Frank Pavlic Wed, 20 Sep 2006 15:59:19 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:19 +0200 [S390] qdio slsb processing state. The last SLSB has to be set to STATE_PROCESSING if we really want to use the PROCESSING feature. Signed-off-by: Frank Pavlic Signed-off-by: Martin Schwidefsky commit 81388d2a45b89c890b981cfc83b01ec15ae3483b tree 3fcb8f583e4bf12d891a016b25b58df304e8766c parent e87bfe51b5ca2db99dd680bbb1e8fe3c94b607df author Heiko Carstens Wed, 20 Sep 2006 15:59:17 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:17 +0200 [S390] Missing initialization in common i/o layer. Previous patch that was intended to reduce stack usage within common i/o layer didn't consider implicit memset(..., 0, ...) used with the initializations used before. Add these missing memsets wherever it's not obvious that the concerned memory region is zeroed. This should give the same semantics as before. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit e87bfe51b5ca2db99dd680bbb1e8fe3c94b607df tree abbffd8e3ca0edcbe5a0e36e1e94deb9a3b10adc parent 1375fc1fb0434a26f93c59b1b9f3fdb8bf90bba5 author Heiko Carstens Wed, 20 Sep 2006 15:59:15 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:15 +0200 [S390] convert some assembler to C. Convert GET_IPL_DEVICE assembler macro to C function. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 1375fc1fb0434a26f93c59b1b9f3fdb8bf90bba5 tree ea38ce53e9cc74b73fc3171f55a67437e9b29eb2 parent 0fee644ada12c524abbf723132fbea6a082ecfc2 author Heiko Carstens Wed, 20 Sep 2006 15:59:12 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:12 +0200 [S390] __exit cleanup. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 0fee644ada12c524abbf723132fbea6a082ecfc2 tree 3b2a06417a5883ad5226c79d44b222398a3f636a parent b0035f127e007ea0afc8baad740093eb124f7b0b author Martin Schwidefsky Wed, 20 Sep 2006 15:59:10 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:10 +0200 [S390] cleanup sysinfo and add system z9 specific extensions. With System z9 additional fields have been added to the output of the store system information instruction. This patch adds the new model information field and the alternate cpu capability fields to the output of /proc/sysinfo. While we at it clean up the code as well. Signed-off-by: Martin Schwidefsky commit b0035f127e007ea0afc8baad740093eb124f7b0b tree e981be8bbe1ee39431691866b526cb8e8d728276 parent a00bfd7147c0c5c04a59f7adcb0e6d8948b90a6e author Horst Hummel Wed, 20 Sep 2006 15:59:07 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:07 +0200 [S390] dasd default debug level. Enhanced default DBF level to get most important messages in debug feature files. Signed-off-by: Horst Hummel Signed-off-by: Martin Schwidefsky commit a00bfd7147c0c5c04a59f7adcb0e6d8948b90a6e tree ffe3eb5ede49bf5a14fe31f3270d917fc4bc9c7a parent 47addc84b450fd5e391ab118e178645cb0bbd89d author Martin Schwidefsky Wed, 20 Sep 2006 15:59:05 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:05 +0200 [S390] dasd deadlock after state change pending interrupt. The dasd_device_from_cdev function is called from interrupt context to get the struct dasd_device associated with a ccw device. The driver_data of the ccw device points to the dasd_devmap structure which contains the pointer to the dasd_device structure. The lock that protects the dasd_devmap structure is acquire with out irqsave. To prevent the deadlock in dasd_device_from_cdev if it is called from interrupt context the dependency to the dasd_devmap structure needs to be removed. Let the driver_data of the ccw device point to the dasd_device structure directly and use the ccw device lock to protect the access. Signed-off-by: Martin Schwidefsky commit 47addc84b450fd5e391ab118e178645cb0bbd89d tree 026dafc084523245a928675aafb74ff23e54a56b parent 7d5d688f724dd5a651d1ce7bc3ea7c03d28137a1 author Frank Pavlic Wed, 20 Sep 2006 15:59:03 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:03 +0200 [S390] qdio_get_micros return value. qdio_get_micros is supposed to return microseconds. The get_clock() return value needs to be shifted by 12 to get to microseconds. Signed-off-by: Frank Pavlic Signed-off-by: Martin Schwidefsky commit 7d5d688f724dd5a651d1ce7bc3ea7c03d28137a1 tree 8279b48cfd496490003710ef919327c9751e1023 parent 8301425534b87bae9990261f3008f39999be738c author Heiko Carstens Wed, 20 Sep 2006 15:59:00 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:59:00 +0200 [S390] Use simple_strtoul instead of own cmm_strtoul wrapper. Fix compile warning with some configurations: arch/s390/mm/cmm.c:58: warning: 'cmm_strtoul' defined but not used Originally cmm_strtoul was introduced because simple_strtoul couldn't handle strings with hexadecimal numbers that contained a capital 'X'. Since this is no longer true cmm_strtoul can be removed. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 8301425534b87bae9990261f3008f39999be738c tree fc653ebb1945ef03ca7e35dbe908b566c60293f0 parent ba8ce5c6f0a15f08eae39880a0de296007f4a4e7 author Martin Schwidefsky Wed, 20 Sep 2006 15:58:58 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:58 +0200 [S390] architecture co-maintainer. Add Heiko Carstens as co-maintainer for the s390 architecture. Signed-off-by: Martin Schwidefsky commit ba8ce5c6f0a15f08eae39880a0de296007f4a4e7 tree f3f3cb5cfefe97028754ade1436ae8138c3daa6e parent 8427082a506f7ae0abf82ce0047a045ec4309e59 author Martin Schwidefsky Wed, 20 Sep 2006 15:58:56 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:56 +0200 [S390] #undef in unistd.h Avoid using #undef in unistd.h. Signed-off-by: Martin Schwidefsky commit 8427082a506f7ae0abf82ce0047a045ec4309e59 tree ddd756abcf3fe2241ce4a8d322a11e0404fb345f parent 39b083fe1c3c7b88939f6fa1b0b96e579f12e96f author Heiko Carstens Wed, 20 Sep 2006 15:58:54 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:54 +0200 [S390] fix syscall restart handling. If do_signal() gets called several times before returning to user space and no signal is pending (e.g. cancelled by a debugger) syscall restart handling could be done several times. This would change the user space PSW to an address prior to the syscall instruction. Fix this by making sure that syscall restart handling is only done once. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 39b083fe1c3c7b88939f6fa1b0b96e579f12e96f tree b56864fed4a0aa286696cb4e63cbea6d8a962c8a parent ff6b8ea68f4b7353f88b97024f28127e2148aa00 author Heiko Carstens Wed, 20 Sep 2006 15:58:51 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:51 +0200 [S390] empty function defines. Use do { } while (0) constructs instead of empty defines to avoid subtle compile bugs. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit ff6b8ea68f4b7353f88b97024f28127e2148aa00 tree 67ebb74cbbc042d99325ff33c3f80e4b3e0a1c42 parent 331c982d4a6b43cdc0d056956a1cae8a7d6237bf author Michael Holzheu Wed, 20 Sep 2006 15:58:49 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:49 +0200 [S390] ipl/dump on panic. It is now possible to specify a ccw/fcp dump device which is used to automatically create a system dump in case of a kernel panic. The dump device can be configured under /sys/firmware/dump. In addition it is now possible to specify a ccw/fcp device which is used for the next reboot of Linux. The reipl device can be configured under /sys/firmware/reipl. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 331c982d4a6b43cdc0d056956a1cae8a7d6237bf tree 45fd6612c461c278f53c09fe666a17a85d305d29 parent f19bfb2c9b8675590fbecb43e5ce3b34ee321185 author Michael Holzheu Wed, 20 Sep 2006 15:58:47 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:47 +0200 [S390] hypfs compiler warnings. Add casts to avoid compiler warnings. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit f19bfb2c9b8675590fbecb43e5ce3b34ee321185 tree efe625aaf90e61fedfe7d5af028d9b202a44c850 parent 65912a84c0f33304fa5ea004c7b6ee58d5f5572e author Michael Holzheu Wed, 20 Sep 2006 15:58:44 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:44 +0200 [S390] hypfs comment cleanup. Correct some comments in the hypervisor filesystem. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 65912a84c0f33304fa5ea004c7b6ee58d5f5572e tree a9a684ed713f09cd47d6bd1cfe6872cf757feb58 parent 4ba069b802c29eee066385f9826e2d83716626b4 author Heiko Carstens Wed, 20 Sep 2006 15:58:41 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:41 +0200 [S390] initrd vs. bootmem bitmap. Move initrd if the bitmap of the bootmem allocator would overwrite it. In addition this patch sets the default size and address of the initrd to 0. Therefore all boot loaders must set the initrd size and address correctly. This is especially relevant for ftp boot via HMC/SE, where this change requires a special patch file entry in the .ins file which sets these two values contained at address 0x10408 and 0x10410. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 4ba069b802c29eee066385f9826e2d83716626b4 tree 663159a4d05a49b4133bb9145fc41fb95a6d4132 parent 5432114baf0300286a6ca1b0aea549492a379432 author Michael Grundy Wed, 20 Sep 2006 15:58:39 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:39 +0200 [S390] add kprobes support. Signed-off-by: Michael Grundy Signed-off-by: David Wilder Signed-off-by: Martin Schwidefsky commit 5432114baf0300286a6ca1b0aea549492a379432 tree 6a9cf64c86e4ee4d439f91e9bd4485688d28ddd7 parent fe3a1be59c851aba2330387596c6134bc5ec8397 author Ralph Wuerthner Wed, 20 Sep 2006 15:58:36 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:36 +0200 [S390] zcrypt secure key cryptography extension. Allow the user space to send extended cprb messages directly to the PCIXCC / CEX2C cards. This allows the CCA library to construct special crypto requests that use "secure" keys that are stored on the card. Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwidefsky commit fe3a1be59c851aba2330387596c6134bc5ec8397 tree 72f29650a763d127246181a49e92cf2b573212a7 parent 6684af1a07a1f88f3970bc90e5aed173d39168db author Martin Schwidefsky Wed, 20 Sep 2006 15:58:34 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:34 +0200 [S390] zcrypt driver Makefile, Kconfig and monolithic build. The Makefile and Kconfig changes should be obvious. The monolithic build option is there to create an old-style z90crypt module for backward compatability to older distributions. Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwidefsky commit 6684af1a07a1f88f3970bc90e5aed173d39168db tree de3056173598cced75379f04427702497466b515 parent 963ed931c3fd18082bfde0e8704a28955663abf4 author Martin Schwidefsky Wed, 20 Sep 2006 15:58:32 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:32 +0200 [S390] zcrypt PCICC, PCIXCC coprocessor card ap bus drivers. Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwidefsky commit 963ed931c3fd18082bfde0e8704a28955663abf4 tree 3d7fb72d8aca7b4020e8bfe0b055c71f3d7de5c7 parent 2dbc2418bac32a18a372ae9aec386f0fe9174389 author Martin Schwidefsky Wed, 20 Sep 2006 15:58:29 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:29 +0200 [S390] zcrypt CEX2A, CEX2C, PCICA accelerator card ap bus drivers. Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwidefsky commit 2dbc2418bac32a18a372ae9aec386f0fe9174389 tree edfbdc374bc636021aa084c95bd77b49f3a1a1bb parent 1534c3820c26aca4e2567f97b8add8bea40e7e2b author Martin Schwidefsky Wed, 20 Sep 2006 15:58:27 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:27 +0200 [S390] zcrypt user space interface. The user space interface of the zcrypt device driver implements the old user space interface as defined by the old z90crypt driver. Everything is there, the /dev/z90crypt misc character device, all the lovely ioctls and the /proc file. Even writing to the z90crypt proc file to configure the crypto device still works. It stands to reason to remove the proc write function someday since a much cleaner configuration via the sysfs is now available. The ap bus device drivers register crypto cards to the zcrypt user space interface. The request router of the user space interface picks one of the registered cards based on the predicted latency for the request and calls the driver via a callback found in the zcrypt_ops of the device. The request router only knows which operations the card can do and the minimum / maximum number of bits a request can have. Signed-off-by: Cornelia Huck Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwidefsky commit 1534c3820c26aca4e2567f97b8add8bea40e7e2b tree da76ec6d0c3abb099ffe7d542b3f0f6fe570957f parent 7561b974e0cbbdca1bb880b55200afd9a1a20737 author Martin Schwidefsky Wed, 20 Sep 2006 15:58:25 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:25 +0200 [S390] zcrypt adjunct processor bus. Add a bus for the adjunct processor interface. Up to 64 devices can be connect to the ap bus interface, each device with 16 domains. That makes 1024 message queues. The interface is asynchronous, the answer to a message sent to a queue needs to be received at some later point in time. Unfortunately the interface does not provide interrupts when a message reply is pending. So the ap bus needs to implement some fancy polling, each active queue is polled once per 1/HZ second or continuously if an idle cpus exsists and the poll thread is activ (see poll_thread parameter). The ap bus uses the sysfs path /sys/bus/ap and has two bus attributes, ap_domain and config_time. The ap_domain selects one of the 16 domains to be used for this system. This limits the maximum number of ap devices to 64. The config_time attribute contains the number of seconds between two ap bus scans to find new devices. The ap bus uses the modalias entries of the form "ap:tN" to autoload the ap driver for hardware type N. Currently known types are: 3 - PCICC, 4 - PCICA, 5 - PCIXCC, 6 - CEX2A and 7 - CEX2C. Signed-off-by: Cornelia Huck Signed-off-by: Ralph Wuerthner Signed-off-by: Martin Schwidefsky commit 7561b974e0cbbdca1bb880b55200afd9a1a20737 tree 88a6e31a827e79ac29c7bede802554ba40f20319 parent de1a3f1ce6c4c3b2b14cf9157a22d6b4c64f708e author Martin Schwidefsky Wed, 20 Sep 2006 15:58:22 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:22 +0200 [S390] remove old z90crypt driver. The z90crypt driver has served its term. It is replaced by the shiny new zcrypt device driver. Signed-off-by: Martin Schwidefsky commit de1a3f1ce6c4c3b2b14cf9157a22d6b4c64f708e tree dcda907cb6bb49ddbbaa1ac70108188da7f38a9d parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Martin Schwidefsky Wed, 20 Sep 2006 15:58:20 +0200 committer Martin Schwidefsky Wed, 20 Sep 2006 15:58:20 +0200 [S390] EX_TABLE macro. Add EX_TABLE helper macro to simplify creation of inline assembly exception table entries. Signed-off-by: Martin Schwidefsky commit b2c5f61920eeee9c4e78698de4fde4586fe5ae79 tree 53927c324413786b34db4f0e79cd0aa436d3f930 parent a4dc7ff08915a2035aa6d6decc53fa1deaa410bb author Mark A. Greer Tue, 19 Sep 2006 14:05:08 +1000 committer Paul Mackerras Wed, 20 Sep 2006 15:09:58 +1000 [POWERPC] Start arch/powerpc/boot code reorganization This abstracts the operations used in the bootwrapper, and defines the operations needed for the bootwrapper to run on an OF platform. The operations have been divided up into platform ops (platform_ops), firmware ops (fw_ops), device tree ops (dt_ops), and console ops (console_ops). The proper operations will be hooked up at runtime to provide the functionality that you need. Signed-off-by: Mark A. Greer Signed-off-by: Paul Mackerras commit a4dc7ff08915a2035aa6d6decc53fa1deaa410bb tree 9b28af3a21f915e3fe8ed7ee163be1b1d2bfe8b0 parent 19e59df4dc2e6f7b46190ee77ce7093769f597a7 author Paul Mackerras Tue, 19 Sep 2006 14:06:27 +1000 committer Paul Mackerras Wed, 20 Sep 2006 15:09:48 +1000 [POWERPC] Define of_read_ulong helper There are various places where we want to extract an unsigned long value from a device-tree property that can be 1 or 2 cells in length. This replaces some open-coded calculations, and one place where we assumed without checking that properties were the length we wanted, with a little of_read_ulong() helper. Signed-off-by: Paul Mackerras commit 783c99f42e221217761e9c319838d5533107f7cb tree ff09cb67fc0875450e83906af887fe219bc99c53 parent f8ec473387f70d103c83ffb3ab50cb2b1380d0c0 parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Jeff Garzik Wed, 20 Sep 2006 00:48:28 -0400 committer Jeff Garzik Wed, 20 Sep 2006 00:48:28 -0400 Merge branch 'master' into upstream commit 19e59df4dc2e6f7b46190ee77ce7093769f597a7 tree 97860ac68308a91515fbdc1699d26a09aa9a0d10 parent 5adcaf50cf697aa4d0c731107003c1383b59b214 author Stephen Rothwell Thu, 14 Sep 2006 14:55:36 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:12:22 +1000 [POWERPC] iseries: eliminate a couple of warnings Copy and paste bug in io.h Signed-off-by: Stephen Rothwell commit 5adcaf50cf697aa4d0c731107003c1383b59b214 tree c4f93c02f43c325066a46e9d9221cac9d51125d8 parent 73ea9e1bcb8eea4f3b2052fe7ccd7ee4b5a271a0 author Stephen Rothwell Tue, 19 Sep 2006 22:17:49 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:06:18 +1000 [POWERPC] convert string i/o operations to C This produces essentially the same code and will make the iSeries i/o consolidation easier. The count parameter is changed to long since that will produce the same (better) code on 32 and 64 bit builds. Signed-off-by: Stephen Rothwell commit 73ea9e1bcb8eea4f3b2052fe7ccd7ee4b5a271a0 tree be96595750908640a29fb5ad2a4a8224af2bb65e parent 661f1cdb8b3e3c2c44e97df122c1d5643c054ce8 author Stephen Rothwell Tue, 19 Sep 2006 17:30:20 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:06:18 +1000 [POWERPC] clean up ide io accessors Signed-off-by: Stephen Rothwell commit 661f1cdb8b3e3c2c44e97df122c1d5643c054ce8 tree 9f540dda2d57d2ec2fcec5aee3b7f0a4c7992d94 parent fa053d2f008cb73fa768b8e171486d8c0b33312b author Stephen Rothwell Tue, 19 Sep 2006 16:52:55 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:06:18 +1000 [POWERPC] remove unused asm routines _insw, _outsw, _insl amd _outsl are all unused, so remove them. Signed-off-by: Stephen Rothwell commit fa053d2f008cb73fa768b8e171486d8c0b33312b tree 007b3e058e9b065f7a38bd26bc7498802bf68940 parent 9ca91e0fb5295e8317030feb889085e452cedab1 author Stephen Rothwell Tue, 19 Sep 2006 14:51:40 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:06:17 +1000 [POWERPC] remove unused io accessors The io accessors insw_ns, outsw_ns, insl_ns and outsl_ns are unused (except for one unnecessary use in drivers/net/3c509.c that is addressed in a previous patch) and are only defined in powerpc/ppc, so remove them. Signed-off-by: Stephen Rothwell commit 9ca91e0fb5295e8317030feb889085e452cedab1 tree 54fffc6f581d4ae0b2491807f36998c067bdf76f parent 4f896e53eea70013fa48d0d8662680cf8aae8a43 author Stephen Rothwell Thu, 14 Sep 2006 16:59:31 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:02:51 +1000 [POWERPC] silence a warning Left over from the constifying of get_property. Signed-off-by: Stephen Rothwell commit 4f896e53eea70013fa48d0d8662680cf8aae8a43 tree 4a22e8033ac46f4a801e79e8002b60d792efd6cf parent 7dcd86e14319f4ceab883787ab2e00a5f860d14d author Stephen Rothwell Thu, 24 Aug 2006 13:29:33 +1000 committer Stephen Rothwell Wed, 20 Sep 2006 14:01:16 +1000 [POWERPC] make spinlocks work in a combined kernel If we build a pSeries/iSeries combined kernel, we will need this. Signed-off-by: Stephen Rothwell commit f8ec473387f70d103c83ffb3ab50cb2b1380d0c0 tree 8abcae6e3e7c4692519196c26dac4a82e65753b4 parent 23b6b0e3e8306ce3d00e0c87196bfaad335b9096 author Jeff Garzik Tue, 19 Sep 2006 15:27:07 -0400 committer Jeff Garzik Tue, 19 Sep 2006 15:27:07 -0400 e1000, ixgb: Remove pointless wrappers Signed-off-by: Jeff Garzik commit 23b6b0e3e8306ce3d00e0c87196bfaad335b9096 tree 3e690e564ac42444937b0d66b624c0e292d4a88a parent 8624a1c93772d24a38ed10cfcd290e8a18ac5b0a parent 47a5c6fa0e204a2b63309c648bb2fde36836c826 author Jeff Garzik Tue, 19 Sep 2006 15:13:45 -0400 committer Jeff Garzik Tue, 19 Sep 2006 15:13:45 -0400 Merge branch 'master' into upstream commit fadcfa33b6319a5faf8af2287f08bf93a7f926b6 tree 367e931ec64a88c20a4d15c351d4c7dbb1b7adf1 parent 47a5c6fa0e204a2b63309c648bb2fde36836c826 author David Woodhouse Tue, 19 Sep 2006 12:43:58 +0100 committer David Woodhouse Tue, 19 Sep 2006 12:43:58 +0100 [HEADERS] One line per header in Kbuild files to reduce conflicts Signed-off-by: David Woodhouse commit 93590859884784520a1850767f86296abc2cdc6d tree 7465312f962467d8af3b24dd0f7510ea7113e010 parent 4a3381feb823e06c8e2da7e283c17b0b6fdbddcf author Alan Cox Tue, 12 Sep 2006 16:55:12 +0100 committer Jeff Garzik Tue, 19 Sep 2006 01:58:00 -0400 [PATCH] libata: improve handling of diagostic fail (and hardware that misreports it) Our ATA probe code checks that a device is not reporting a diagnostic failure during start up. Unfortunately at least one device seems to like doing this - the Gigabyte iRAM. This is only done for the master right now (which is fine for the iRAM as it is SATA), as with PATA some combinations of ATAPI device seem to fool the check into seeing a drive that isn't there if it is applied to the slave. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 4a3381feb823e06c8e2da7e283c17b0b6fdbddcf tree e1bef4c3db854bb10fd13dc67415d77b5d999533 parent fea63e38013ec628ab3f7fddc4c2148064b7910a parent 47a5c6fa0e204a2b63309c648bb2fde36836c826 author Jeff Garzik Tue, 19 Sep 2006 00:42:13 -0400 committer Jeff Garzik Tue, 19 Sep 2006 00:42:13 -0400 Merge branch 'master' into upstream commit 8624a1c93772d24a38ed10cfcd290e8a18ac5b0a tree 035dc21e3957540c8cdb817507f2377e07065a3b parent 26d36b642e2f024019f94819284a11273807571d author Stephen Rothwell Tue, 19 Sep 2006 11:54:49 +1000 committer Jeff Garzik Tue, 19 Sep 2006 00:36:59 -0400 [PATCH] Remove powerpc specific parts of 3c509 driver On powerpc and ppc, insl_ns and insl are identical as are outsl_ns and outsl, so remove the conditional use of insl_ns and outsl_ns. Signed-off-by: Stephen Rothwell Signed-off-by: Jeff Garzik commit fea63e38013ec628ab3f7fddc4c2148064b7910a tree a3e1cd7f50562a20584cd28ef9d71e0cd6c7c896 parent a64f97f2c351410dfb3099c2369eacf7154b5532 author Tejun Heo Sat, 16 Sep 2006 03:04:15 +0900 committer Jeff Garzik Tue, 19 Sep 2006 00:29:20 -0400 [PATCH] libata: fix non-uniform ports handling Non-uniform ports handling got broken while updating libata to handle those in the same host. Only separate irq for the non-uniform secondary port was implemented while all other fields (host flags, transfer mode...) of the secondary port simply shared those of the first. For ata_piix combined mode, which ATM is the only user of non-uniform ports, this causes the secondary port assume the wrong type. This can cause PATA port to use SATA ops, which results in bogus check on PCS and detection failure. This patch adds ata_probe_ent->pinfo2 which points to optional port_info for the secondary port. For the time being, this seems to be the simplest solution. This workaround will be removed together with ata_probe_ent itself after init model is updated to allow more flexibility. Signed-off-by: Tejun Heo Cc: Alan Cox Cc: Nelson A. de Oliveira Signed-off-by: Jeff Garzik commit a64f97f2c351410dfb3099c2369eacf7154b5532 tree b9f132ee5544febc50a9616a4edb52dd89370105 parent b68c5f546e951d718edf611c4bd9853753e4b366 parent cb60736b32a84cbc9525b0bb4df26b04cbfbc8e8 author Jeff Garzik Tue, 19 Sep 2006 00:25:50 -0400 committer Jeff Garzik Tue, 19 Sep 2006 00:25:50 -0400 Merge branch 'tmp' into upstream Conflicts: drivers/ata/libata-sff.c commit cb60736b32a84cbc9525b0bb4df26b04cbfbc8e8 tree f0e179a8596588366e098f77ffddbe8cf4b8e677 parent 95064a75ebf8744e1ff595e8cd7ff9b6c851523e author Arnaud Patard Tue, 19 Sep 2006 00:23:52 -0400 committer Jeff Garzik Tue, 19 Sep 2006 00:23:52 -0400 Fix libata resource conflict for legacy mode When the libata is trying to handle legacy ide ports (0x1f0 for instance), it doesn't take care if the resource has childs or not. The result is that this situation : 0100-01fe : pnp 00:09 0170-0177 : libata 01f0-01f7 : libata is seen as conflict, which is wrong. The proposed fix is to detect childs and in this case, look at which child is conflicting. Signed-off-by: Arnaud Patard Signed-off-by: Jeff Garzik commit 26d36b642e2f024019f94819284a11273807571d tree cce04aa045ad79dc63fcac3f4652d338218dc66a parent b921c3d8b64fe12948088be049785de49be50990 author Alan Cox Fri, 15 Sep 2006 15:22:51 +0100 committer Jeff Garzik Tue, 19 Sep 2006 00:05:45 -0400 [PATCH] s2io: Switch to pci_get_device We want the pci devices ref counted against hotplug. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit b921c3d8b64fe12948088be049785de49be50990 tree 426619f6bd1d9636cdace998a63ec6885c53fa72 parent 53ccce2395cdc3693c22b9a94764b66dc1a4fcb4 author Alan Cox Fri, 15 Sep 2006 15:27:06 +0100 committer Jeff Garzik Tue, 19 Sep 2006 00:05:45 -0400 [PATCH] gt96100: move to pci_get_device API Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 53ccce2395cdc3693c22b9a94764b66dc1a4fcb4 tree 91a884aafe61608be29dcdf8deba6810dd921bae parent 72e8d6bbc151ca670c66d58a37e5bbfbc041db69 author Jan-Bernd Themann Thu, 14 Sep 2006 13:51:56 +0200 committer Jeff Garzik Tue, 19 Sep 2006 00:05:45 -0400 [PATCH] ehea: bugfix for register access functions Hi Jeff, sorry to bother you again. We figured out that the readq function we included in the eHEA patch we sent yesterday to access eHEA registers is defined as little endian on POWER. This collides with our adapter. We talked to some PPC people who told us there is a discussion going on about new access functions. We were told to use __raw_readq / __raw_writeq for now. This patch fixes this bug found by our internal tests today. Please apply this small patch on the latest patch we sent you yesterday. If it is easier for you I can also give you the entire eHEA patch again. sorry and thanks a lot, Jan-Bernd Signed-off-by: Jan-Bernd Themann drivers/net/ehea/ehea.h | 2 +- drivers/net/ehea/ehea_hw.h | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) Signed-off-by: Jeff Garzik commit 72e8d6bbc151ca670c66d58a37e5bbfbc041db69 tree 20546e26d6b09ba8e3e8421b8a8945e1006833a9 parent f50e5ea14baa321c5f0ff71707a83b02bf5b9398 author Linas Vepstas Mon, 18 Sep 2006 20:58:06 -0700 committer Jeff Garzik Tue, 19 Sep 2006 00:04:29 -0400 [PATCH] e1000 disable device on PCI error A recent patch in -mm3 titled "gregkh-pci-pci-don-t-enable-device-if-already-enabled.patch" causes pci_enable_device() to be a no-op if the kernel thinks that the device is already enabled. This change breaks the PCI error recovery mechanism in the e1000 device driver, since, after PCI slot reset, the card is no longer enabled. This is a trivial fix for this problem. Tested. Signed-off-by: Linas Vepstas Cc: John Ronciak Cc: Jesse Brandeburg Cc: Jeff Kirsher Acked-by: Auke Kok Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit f50e5ea14baa321c5f0ff71707a83b02bf5b9398 tree 2019c5bc11d99a353f3274853e913f489ed103ce parent ecf7f354e228ac9e80d2d25a0a0cbc8c876e9ab4 parent 803db244b9f71102e366fd689000c1417b9a7508 author Jeff Garzik Sun, 17 Sep 2006 01:06:01 -0400 committer Jeff Garzik Sun, 17 Sep 2006 01:06:01 -0400 Merge branch 'upstream-fixes' into upstream commit ecf7f354e228ac9e80d2d25a0a0cbc8c876e9ab4 tree 14c83181a6998c2e230c9746d131b48eaf4e978d parent c233289c29369dba7177ca873e9b8ed457af2a78 parent 8b98a37c4b00f3fbcf162281bd4595777e61241b author Jeff Garzik Sun, 17 Sep 2006 01:03:17 -0400 committer Jeff Garzik Sun, 17 Sep 2006 01:03:17 -0400 Merge branch 'upstream-fixes' into upstream commit 7dcd86e14319f4ceab883787ab2e00a5f860d14d tree c5fa0ea156e38e0aa5edde243c43b0dee1c7f097 parent f04da0bc36566ad17cf21e4ac8dbae377ca1dc75 author Kim Phillips Wed, 13 Sep 2006 17:41:55 -0500 committer Paul Mackerras Thu, 14 Sep 2006 10:36:11 +1000 [POWERPC] Fix MPC8349EMDS dts PCI interrupt-map values for IDSEL 0x18 Fix MPC8349EMDS dts PCI interrupt-map values for IDSEL 0x18 per Tanya's catch. Signed-off-by: Kim Phillips Signed-off-by: Tanya Jiang Signed-off-by: Paul Mackerras commit f04da0bc36566ad17cf21e4ac8dbae377ca1dc75 tree 7555ffd9de1938ed533aa94452a98805508cece3 parent c547fc28ab3e8716076fdaf4bd0260c5d63a18f7 author Olof Johansson Wed, 13 Sep 2006 13:32:39 -0500 committer Paul Mackerras Thu, 14 Sep 2006 10:36:11 +1000 [POWERPC] Fix non-smp build This fixes a compile error that only surfaces on CONFIG_SMP=n builds; seems to get pulled in through another header file for SMP builds. This problem was introduced by the hvcall stats patch. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit c547fc28ab3e8716076fdaf4bd0260c5d63a18f7 tree 34af1fa64a63618660187ae58ad182665a1861ef parent 3dd836a56de0d4f049438412959b905e1db4666e parent 63b98080daa35f0d682db04f4fb7ada010888752 author Paul Mackerras Thu, 14 Sep 2006 07:07:18 +1000 committer Paul Mackerras Thu, 14 Sep 2006 07:07:18 +1000 Merge branch 'linux-2.6' commit c233289c29369dba7177ca873e9b8ed457af2a78 tree 7dc73aa736c2a1164c887f203eff2b533220d11a parent 7282d491ecaee9883233a0e27283c4c79486279a author Jeff Garzik Wed, 13 Sep 2006 14:33:12 -0400 committer Jeff Garzik Wed, 13 Sep 2006 14:33:12 -0400 drivers/net/phy/fixed: #if 0 some incomplete code Signed-off-by: Jeff Garzik commit 7282d491ecaee9883233a0e27283c4c79486279a tree 172ffa70716f5493db57976ceef7652120b3332f parent 76fd85937097a0c2ec8ab23bf21dc10992d1c398 author Jeff Garzik Wed, 13 Sep 2006 14:30:00 -0400 committer Jeff Garzik Wed, 13 Sep 2006 14:30:00 -0400 drivers/net: const-ify ethtool_ops declarations Signed-off-by: Jeff Garzik commit 76fd85937097a0c2ec8ab23bf21dc10992d1c398 tree 0a3dfbacda717b9c55dfd25f6b773016a9a8910a parent f65b138ca94326bbffe06ddc28e65606a249e58e author Stephen Hemminger Fri, 08 Sep 2006 11:16:13 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:30:47 -0400 [PATCH] ethtool: allow const ethtool_ops The ethtool_ops structure is immutable, it expected to be setup by the driver and is never changed. This patch allows drivers to declare there ethtool_ops structure read-only. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit f65b138ca94326bbffe06ddc28e65606a249e58e tree 8fb69b76b32fe10d07678e3721a68638841061ca parent b89165f2b75ba0a79eb5ed60924835cf3c54c51a author Stephen Hemminger Wed, 06 Sep 2006 12:45:02 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:27:44 -0400 [PATCH] sky2: big endian Fix support for big endian platforms like PPC. Still not sure about VLAN acceleration (does it need swapping)? Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit b89165f2b75ba0a79eb5ed60924835cf3c54c51a tree 6ed4af3b2746c94416858753449f74310cb5407c parent 2eaba1a280b6380f5b1238c53ce62e4381fc5f97 author Stephen Hemminger Wed, 06 Sep 2006 12:44:53 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:27:44 -0400 [PATCH] sky2: fiber support Fix the support for fiber connected gigabit boards. Allow half duplex gigabit to be configured. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 2eaba1a280b6380f5b1238c53ce62e4381fc5f97 tree 4b161be011f0bb6adeea1c49c5fef5e84297e26d parent 6aa20a2235535605db6d6d2bd850298b2fe7f31e author Stephen Hemminger Wed, 06 Sep 2006 12:44:47 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:27:44 -0400 [PATCH] sky2: tx pause bug fix Fix problems with transmit pause frames. The driver was telling the GMAC to flush (not process) pause frames. Manually disabling pause wasn't working because of problems in the setup. This maybe the cause of the lockup under load. http://bugzilla.kernel.org/show_bug.cgi?id=6839 Patch against netdev-2.6 git tree Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 6aa20a2235535605db6d6d2bd850298b2fe7f31e tree df0b855043407b831d57f2f2c271f8aab48444f4 parent 7a291083225af6e22ffaa46b3d91cfc1a1ccaab4 author Jeff Garzik Wed, 13 Sep 2006 13:24:59 -0400 committer Jeff Garzik Wed, 13 Sep 2006 13:24:59 -0400 drivers/net: Trim trailing whitespace Signed-off-by: Jeff Garzik commit 7a291083225af6e22ffaa46b3d91cfc1a1ccaab4 tree c87a93ee7d5c1c63ce98dc90a62cd0b4dfc4318f parent 7de745e56244156233e5cdd62b462e52e638d408 author Jan-Bernd Themann Wed, 13 Sep 2006 17:44:31 +0200 committer Jeff Garzik Wed, 13 Sep 2006 13:23:52 -0400 [PATCH] ehea: IBM eHEA Ethernet Device Driver Hi Jeff, I fixed the __iomem issue and tested the driver with sparse. Looks good so far. Thanks for your effort. Jan-Bernd Themann Signed-off-by: Jan-Bernd Themann drivers/net/Kconfig | 9 drivers/net/Makefile | 1 drivers/net/ehea/Makefile | 6 drivers/net/ehea/ehea.h | 447 ++++++ drivers/net/ehea/ehea_ethtool.c | 294 ++++ drivers/net/ehea/ehea_hcall.h | 51 drivers/net/ehea/ehea_hw.h | 287 ++++ drivers/net/ehea/ehea_main.c | 2654 ++++++++++++++++++++++++++++++++++++++++ drivers/net/ehea/ehea_phyp.c | 705 ++++++++++ drivers/net/ehea/ehea_phyp.h | 455 ++++++ drivers/net/ehea/ehea_qmr.c | 582 ++++++++ drivers/net/ehea/ehea_qmr.h | 358 +++++ 12 files changed, 5849 insertions(+) Signed-off-by: Jeff Garzik commit 7de745e56244156233e5cdd62b462e52e638d408 tree fbc0a3e546de813a5276c0c8a5454d46b1329fbc parent 3904c324148930bad5d9b97fdf66c63e7682b546 author Don Fry Wed, 13 Sep 2006 10:16:53 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:23:52 -0400 [PATCH] pcnet32: NAPI implementation Implement NAPI changes to pcnet32 driver. Compile default is off. Listed as experimental. Len and Don both worked on a NAPI implementation and have both tested these changes. An e1000 blasting short packets to the pcnet32 will lockup Don's system until the receive storm stops. Without NAPI Len's system watchdog would expire causing the system to reboot. With NAPI the system will stay operational. Tested ia32 and ppc64. Tested '970A, '971, '972, '973, '975, '976, and '978. The Kconfig changes came from Len. Don is to blame for all the others. Signed-off-by: Len Sorensen Signed-off-by: Don Fry Signed-off-by: Jeff Garzik commit 3904c324148930bad5d9b97fdf66c63e7682b546 tree 92241080690303c39bd1f254906d71a6c214abd5 parent 9691edd26cfae0484367a6b8e3d46f3a5179e663 author Don Fry Wed, 13 Sep 2006 10:16:38 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:23:52 -0400 [PATCH] pcnet32: break receive routine into two pieces. Breaking the receive frame processing into two routines for greater clarity. Tested ia32 and ppc64. Signed-off-by: Don Fry Signed-off-by: Jeff Garzik commit 9691edd26cfae0484367a6b8e3d46f3a5179e663 tree 86e57f62c87c37bac7a2f5036f2e6e6512ab5e3b parent b368a3fbe41c44e4c7eb628002bbd8891defa7e0 author Don Fry Wed, 13 Sep 2006 10:16:21 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:23:52 -0400 [PATCH] pcnet32: move/create receive and transmit routines Move the receive routine and create the transmit routine. Tested ia32 and ppc64. Signed-off-by: Don Fry Signed-off-by: Jeff Garzik commit b368a3fbe41c44e4c7eb628002bbd8891defa7e0 tree d0836b4797a29732182009b28084144eb79a323f parent 5c99346a3358a9c3c3fcf38669c05ac5f06832c9 author Don Fry Wed, 13 Sep 2006 10:16:07 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:23:52 -0400 [PATCH] pcnet32: magic number cleanup Change some magic numbers to clearer names. A few whitespace changes. Tested ia32 and ppc64. Signed-off-by: Don Fry Signed-off-by: Jeff Garzik commit 5c99346a3358a9c3c3fcf38669c05ac5f06832c9 tree 548f8ef561cf81069b41a709f6241704f63d3405 parent 38ed61d6c0b2c35fbaa1ccdb497543a18509d401 author Don Fry Wed, 13 Sep 2006 10:15:43 -0700 committer Jeff Garzik Wed, 13 Sep 2006 13:23:52 -0400 [PATCH] pcnet32: remove unnecessary save/restore register accesses. Delete unnecessary save/restore of rap in interrupt handler and statistics. tested ia32 and ppc64. Signed-off-by: Don Fry Signed-off-by: Jeff Garzik commit 38ed61d6c0b2c35fbaa1ccdb497543a18509d401 tree d7be64b244119ccfb346d3cea7124bbc2135603e parent 4291130595065aa3c9fbb9130231f65e4914629a parent 71d28725548be203e8b8f6ad63b1f64fd7f02d4d author Jeff Garzik Wed, 13 Sep 2006 12:26:12 -0400 committer Jeff Garzik Wed, 13 Sep 2006 12:26:12 -0400 Merge branch 'upstream-fixes' into upstream commit 3dd836a56de0d4f049438412959b905e1db4666e tree d42c0afb2a438403683904c0af089c74167767d6 parent 26c8af5f01dfb91f709cc2ba07fb650949aae13e author David Howells Tue, 12 Sep 2006 16:04:25 +0100 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] Export copy_4K_page() Export copy_4K_page() for use by modules via copy_page() (such as CacheFiles). Signed-Off-By: David Howells Signed-off-by: Paul Mackerras commit 26c8af5f01dfb91f709cc2ba07fb650949aae13e tree dbaa11641da7348bb2fbde3c75429449c7ca4104 parent 87fd7724d4022913ae8dbee3ed55cd04f2c316a6 author Olaf Hering Fri, 08 Sep 2006 16:29:21 +0200 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] print backtrace when entering xmon xmon does not print a backtrace per default. This is bad on systems with USB keyboard, the most needed info about the crash is lost. print a backtrace during the very first xmon entry. Booting with xmon=nobt disables the autobacktrace functionality. Signed-off-by: Olaf Hering Signed-off-by: Paul Mackerras commit 87fd7724d4022913ae8dbee3ed55cd04f2c316a6 tree 9b27b41d106e25ed8185a32db37b63f89df0220f parent 06e6d290ac7a9fb6fcec3a2207988163709f06aa author Olof Johansson Thu, 07 Sep 2006 15:18:08 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] Quiet hvc_console console output on failed opens No other tty driver will print on the console when the open of it fails. On systems that happen to be configured for both ttyS0 and hvc0 console, this will keep flooding the console output. This is most likely to happen with systems booted between with and without hypervisor from the same filesystem. Let's just remove it. When it's really needed (i.e. when the open fails and someone is trying to debug it), noone will see the output anyway. And init will report the opens failing in due time through the syslog. Signed-off-by: Olof Johansson Acked-by: Ryan S. Arnold Signed-off-by: Paul Mackerras commit 06e6d290ac7a9fb6fcec3a2207988163709f06aa tree b307d4cedab14f39b34d7eddbbeb6525dc7b2025 parent 57852a853b0d6761f270be0961d5d8387e98c8bb author Josh Boyer Thu, 07 Sep 2006 08:25:40 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] PPC: Fix Kconfig whitespace warnings Fix the following whitespace warnings when compiling with ARCH=ppc arch/ppc/Kconfig:1207:warning: leading whitespace ignored arch/ppc/Kconfig:1226:warning: leading whitespace ignored arch/ppc/Kconfig:1231:warning: leading whitespace ignored Also fix a typo ("Supprt"). Signed-off-by: Josh Boyer Signed-off-by: Paul Mackerras commit 57852a853b0d6761f270be0961d5d8387e98c8bb tree f3c3ff7ec94014a9acba27761dd489fdce1c66db parent ab06ff3af34a6288b314862abfebd86ad918c5d9 author Mike Kravetz Wed, 06 Sep 2006 16:23:12 -0700 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] powerpc: Instrument Hypervisor Calls Add instrumentation for hypervisor calls on pseries. Call statistics include number of calls, wall time and cpu cycles (if available) and are made available via debugfs. Instrumentation code is behind the HCALL_STATS config option and has no impact if not enabled. Signed-off-by: Mike Kravetz Signed-off-by: Paul Mackerras commit ab06ff3af34a6288b314862abfebd86ad918c5d9 tree 66c38b43bc2f39420c5c47ce50dcd59c2baec6d9 parent 1e76875e51266a5c43f601ecf08a92be5769228c author Olof Johansson Wed, 06 Sep 2006 14:44:54 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] powerpc: PA Semi PWRficient MAINTAINER entry Maintainer entry for PWRficient Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit 1e76875e51266a5c43f601ecf08a92be5769228c tree 62867c80d57bd5fc335917dc0c2bcd26dfcc934b parent b3ebd1d862d6c23caa58e40d341eefc426f835e1 author Olof Johansson Wed, 06 Sep 2006 14:42:08 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:53 +1000 [POWERPC] powerpc: PA Semi PWRficient platform support Base patch for PA6T and PA6T-1682M. This introduces the arch/powerpc/platform/pasemi directory, together with basic implementations for various setup. Much of this was based on other platform code, i.e. Maple, etc. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit b3ebd1d862d6c23caa58e40d341eefc426f835e1 tree c4db512b520833be44b72b97aab0c439138bfb5e parent 0024300000769eadcb4a4fcdff531d45ee7735d4 author Olof Johansson Wed, 06 Sep 2006 14:35:57 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] powerpc: PA6T cputable entry, PVR value Introduce PWRficient PA6T cputable entries and feature bits. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit 0024300000769eadcb4a4fcdff531d45ee7735d4 tree 18a94c4df1716a59a80b8b6934e55a75677f26c3 parent 5a2fe38d2844ba2f2dd8f4946d795e09d8f7e095 author Olof Johansson Wed, 06 Sep 2006 14:35:19 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] powerpc: Divorce CPU_FTR_CTRL from CPU_FTR_PPCAS_ARCH_V2_BASE The performance monitor implementation (including CTRL register behaviour) is just included in PPC v2 as an example, it's not truly part of the base. It's actually a somewhat misleading feature, but I'll leave that be for now: The presence of the register is not what the feature bit is used for, but instead it's used to determine if it contains the runlatch bit for idle reporting of the performance monitor. For alternative implementations, the register might still exist but the bit might have different meaning (or no meaning at all). For now, split it off and don't include it in CPU_FTR_PPCAS_ARCH_V2_BASE. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit 5a2fe38d2844ba2f2dd8f4946d795e09d8f7e095 tree 21a995bedd7c7fdca8b2fdb3b7f91f4bfc8228a3 parent b7e89214aadf82fa5eaff28f50f2078fa6ae773c author Olof Johansson Wed, 06 Sep 2006 14:34:41 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] powerpc: Reduce default cacheline size to 64 bytes Reduce default cacheline size on 64-bit powerpc from 128 bytes to 64. This is the architected minimum. In most cases we'll still end up using cache line information from the device tree, but defaults are used during early boot and doing a few dcbst/icbi's too many there won't do any harm. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit b7e89214aadf82fa5eaff28f50f2078fa6ae773c tree 877bfd9e81dcdb68a2a66080ee562fc4796b0975 parent 477bcae4c289a60f2303fbd4a3a875dcca647cf8 author Josh Boyer Thu, 07 Sep 2006 13:27:58 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] PPC 4xx: Enable XMON on PPC 4xx boards The following patch allows XMON to run on the 4xx platform. Tested on Walnut, Ebony, and Nova (440GX based) eval boards. 440EP, 440SP, and 440SPE boards should work as well. Patch is against 2.6.18-rc6. Signed-off-by: Josh Boyer Signed-off-by: Paul Mackerras commit 477bcae4c289a60f2303fbd4a3a875dcca647cf8 tree c9c7136011ad809d433e94c9bc482f7526c53627 parent c3412dcb75ff4d64b44bedc72761d5707d19edf7 author Corey Minyard Wed, 06 Sep 2006 09:02:53 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] Make function of pm_power_off consistent with x86 Allow the pm_power_off function variable in PPC to work as an override. This makes the function consistent with the other architectures and it allows generic poweroff operations (like those provided in IPMI systems) to work properly on PPC. Signed-off-by: Corey Minyard Cc: Joseph Barnett Signed-off-by: Paul Mackerras commit c3412dcb75ff4d64b44bedc72761d5707d19edf7 tree 3e893de720ce5aca6a3e6471cd6ef0fcbcb62281 parent f50d4cfc98d70f919afb2924b1b53c36b2f4e62f author Will Schmidt Wed, 30 Aug 2006 13:11:38 -0500 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] Emulate power5 popcntb instruction In an attempt to make it easier for a power5 optimized app to run on a power4 or a 970 or random earlier machine, this provides emulation of the popcntb instruction. Signed-off-by: Will Schmidt Signed-off-by: Paul Mackerras commit f50d4cfc98d70f919afb2924b1b53c36b2f4e62f tree 352c8c20b13d6951de56c90895161c06e1bb0563 parent aa43f77939c97bf9d3580c6a5e71a5a40290e451 author Michael Ellerman Thu, 24 Aug 2006 16:54:08 +1000 committer Paul Mackerras Wed, 13 Sep 2006 18:39:52 +1000 [POWERPC] Split out vpa unregister logic from pseries_kexec_cpu_down_xics() As part of the new irq code pseries_kexec_cpu_down() was split into a xics and mpic version. The vpa unregister logic is now only done in the xics routine, and although that's ok in practice (we don't have SPLPAR machines with mpic), I'd rather have the two concepts stay separate. So move the vpa unregister into pseries_kexec_cpu_down(), which gets called by both the xics and mpic routines. This also gives us an obvious place to put any new kexec-down logic needed in future. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras commit b68c5f546e951d718edf611c4bd9853753e4b366 tree 9ee71557445ee9ead299ac3e3a5e7d994ab30ad9 parent b0fea350ce515c6ae01e0f259d9b1ffdec824e22 parent 95064a75ebf8744e1ff595e8cd7ff9b6c851523e author Jeff Garzik Wed, 13 Sep 2006 00:39:09 -0400 committer Jeff Garzik Wed, 13 Sep 2006 00:39:09 -0400 Merge branch 'master' into upstream commit 4291130595065aa3c9fbb9130231f65e4914629a tree 988be49185231866ac4e42d6154994b244e6f991 parent d3148ce9a65813a8020473739c200cb63036f84c parent eff68d452f1a6842fb05218fd93c774ffc4dbc5a author Jeff Garzik Wed, 13 Sep 2006 00:34:46 -0400 committer Jeff Garzik Wed, 13 Sep 2006 00:34:46 -0400 Merge branch 'upstream-fixes' into upstream commit b0fea350ce515c6ae01e0f259d9b1ffdec824e22 tree 2946caf0555f1a81c2b2b7008c7e8cb5dabbab78 parent 97148ba2235e334e57d05fa07045cf3e6629763c author Jeff Garzik Wed, 13 Sep 2006 00:25:23 -0400 committer Jeff Garzik Wed, 13 Sep 2006 00:25:23 -0400 [libata] ata_piix: build fix Spotted by Andrew Morton. Signed-off-by: Jeff Garzik commit d3148ce9a65813a8020473739c200cb63036f84c tree 96be330d1fd69cf19574b44c44e717e891ac2227 parent 2a69bf428e49c229f8b735ba3de0a91ebd5d7f33 author Auke-Jan H Kok Tue, 12 Sep 2006 10:46:15 -0700 committer Jeff Garzik Tue, 12 Sep 2006 22:07:09 -0400 [PATCH] e1000: revert 'e1000: Remove 0x1000 as supported device' The commit 'e1000: Remove 0x1000 as supported device' (Jeff Kirsher, 673a052fde79ab5e9dce569b0336358812ddba2d) Removes PIC device ID 8086:1000 from the list of supported devices. A fix was submitted for the original issue (commit 6a9516989f94df10d9a27ba543c6b53b3e69c84a). This commit reverts commit 673a052fde79ab5e9dce569b0336358812ddba2d and re-enables 82542rev3 chips completely. Signed-off-by: Auke Kok Signed-off-by: Jeff Garzik commit 2a69bf428e49c229f8b735ba3de0a91ebd5d7f33 tree 586eafa1a16f51d4b309ebe0c53f5befd8f88ad0 parent cb930205c9dc26efedba5e93e6f84b98f36257e1 parent b39fe41f481d20c201012e4483e76c203802dda7 author Jeff Garzik Tue, 12 Sep 2006 22:03:36 -0400 committer Jeff Garzik Tue, 12 Sep 2006 22:03:36 -0400 Merge tag 'r8169-20060912-00' of git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6 into tmp commit cb930205c9dc26efedba5e93e6f84b98f36257e1 tree 4a98f78a6a57d9f7c63c6b0aa7d9106f51e011a2 parent 435b70e65d7cecbcf2a7e9495ded9d179d63f3ba parent 48907e39890590792c58272604cfb34ad1d80054 author Jeff Garzik Tue, 12 Sep 2006 21:59:47 -0400 committer Jeff Garzik Tue, 12 Sep 2006 21:59:47 -0400 Merge tag '8139cp-20060912-00' of git://electric-eye.fr.zoreil.com/home/romieu/linux-2.6 into tmp commit 65396410af63db90d6428c678ff84aa652c3c1ec tree 78c610b8dbfda4b583cb4a5b950bf4149738113c parent a506b44bb5000b2652490a906c3e58beb2a8f6bb author Henrik Kretzschmar Tue, 12 Sep 2006 23:49:33 +0200 committer James Bottomley Tue, 12 Sep 2006 17:12:31 -0500 [SCSI] wd33c93: Scsi_Cmnd convertion Changes obsolete typedef'd Scsi_Cmnd to struct scsi_cmnd. Signed-off-by: Henrik Kretzschmar Signed-off-by: James Bottomley commit 48907e39890590792c58272604cfb34ad1d80054 tree 75cc0a74ef9c704b3cfe0745d4bde39b5db515fb parent cccb20d3a9b7c6d4b6e1b52ee02814e6094aaa12 author Francois Romieu Sun, 10 Sep 2006 23:33:44 +0200 committer Francois Romieu Tue, 12 Sep 2006 21:00:46 +0200 8139cp: ring_info removal for the transmit path As long as the descriptor fits on a single cacheline, the change should be almost free. Now ring_info is not used at all. Remove it. Signed-off-by: Francois Romieu commit 435b70e65d7cecbcf2a7e9495ded9d179d63f3ba tree c501a17e7cb7dacff049e28b25ea5ee65a00bd06 parent 4e83b7fad8d3fd55828baa4510885c7362e66a26 parent 6a9516989f94df10d9a27ba543c6b53b3e69c84a author Jeff Garzik Tue, 12 Sep 2006 12:03:54 -0400 committer Jeff Garzik Tue, 12 Sep 2006 12:03:54 -0400 Merge branch 'upstream-fixes' into upstream commit 97148ba2235e334e57d05fa07045cf3e6629763c tree a04504e7d4feb0dacfe1862a59abecaf99997f09 parent 76ff3c6e3b389a5a7692811dd456e0ff58340cac parent 05ff0e291af086f4325bac76abad250690bbbd63 author Jeff Garzik Tue, 12 Sep 2006 12:03:21 -0400 committer Jeff Garzik Tue, 12 Sep 2006 12:03:21 -0400 Merge branch 'master' into upstream commit 76ff3c6e3b389a5a7692811dd456e0ff58340cac tree a004a3ba02a2182f64803d9fdcf46846cd32162a parent af323a2fb508b0fa1c1fa91cbc6ec86fb0879c07 author Alan Cox Tue, 12 Sep 2006 17:14:03 +0100 committer Jeff Garzik Tue, 12 Sep 2006 12:01:46 -0400 [PATCH] pata_amd: Check enable bits on Nvidia A couple of people reported long delays on probe with the newer kernels and Nvidia PATA. This turned out to be because the Nvidia path forgot to check the enable bits so probed empty ports. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit af323a2fb508b0fa1c1fa91cbc6ec86fb0879c07 tree 0ab67f571a6cd2f148ec2b4abd7d8cc9a78723a5 parent dd1dc802368154a75926491092ec9e6a939c32df author Alan Cox Tue, 12 Sep 2006 17:15:12 +0100 committer Jeff Garzik Tue, 12 Sep 2006 12:01:46 -0400 [PATCH] Update SiS PATA New chipset identifiers Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 4e83b7fad8d3fd55828baa4510885c7362e66a26 tree eb3f28516c05a945f2e9c8003e5864de4e0763bc parent c925f1ea9ec20a95d46f57810f4a4d69db74580e parent d5b20697ca37d80cc4ec2ba3c5ddf1339dc1d49a author Jeff Garzik Tue, 12 Sep 2006 11:45:33 -0400 committer Jeff Garzik Tue, 12 Sep 2006 11:45:33 -0400 Merge branch 'tmp' into upstream commit d5b20697ca37d80cc4ec2ba3c5ddf1339dc1d49a tree a5fa98145b1d95b84357157856517de8d0e31edf parent 05ff0e291af086f4325bac76abad250690bbbd63 author Andy Gospodarek Mon, 11 Sep 2006 17:39:18 -0400 committer Jeff Garzik Tue, 12 Sep 2006 11:45:19 -0400 [PATCH] Remove more unnecessary driver printk's As I promised last week, here is the first pass at removing all unnecessary printk's that exist in network device drivers currently in promiscuous mode. The duplicate messages are not needed so they have been removed. Some of these drivers are quite old and might not need an update, but I did them all anyway. I am currently auditing the remaining conditional printk's and will send out a patch for those soon. Signed-off-by: Andy Gospodarek Signed-off-by: Jeff Garzik commit c925f1ea9ec20a95d46f57810f4a4d69db74580e tree 150d09324f1cf6b231bbe1f3791a75f9169470dd parent 8083e1656211eb1487329923d592ee061d08d7b3 parent 884d3a2bad7293e56fe99d9322a1090bfdfd7c4e author Jeff Garzik Tue, 12 Sep 2006 11:43:28 -0400 committer Jeff Garzik Tue, 12 Sep 2006 11:43:28 -0400 Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream commit 8083e1656211eb1487329923d592ee061d08d7b3 tree 92a44787484996b82365fab21f2dec960ab4f2d3 parent 6b12a3d35ff6cb09f8b777ab258ea1e32c680d62 parent 1802ca745280b916cda4090e459741b8c9b3e8d0 author Jeff Garzik Tue, 12 Sep 2006 11:42:45 -0400 committer Jeff Garzik Tue, 12 Sep 2006 11:42:45 -0400 Merge branch 'upstream-fixes' into upstream commit a506b44bb5000b2652490a906c3e58beb2a8f6bb tree 04a2c62f244cdacb88f7a8377c16783e04e66a88 parent 2b7cbe20174695bca1afe2a8f755e1eb299f4768 author Daniel Walker Sat, 09 Sep 2006 09:31:03 -0700 committer James Bottomley Tue, 12 Sep 2006 09:17:30 -0500 [SCSI] fix compile error on module_refcount LD .tmp_vmlinux1 drivers/built-in.o(.text+0x8e1f9): In function `scsi_device_put': drivers/scsi/scsi.c:887: undefined reference to `module_refcount' make: *** [.tmp_vmlinux1] Error 1 There are only two users of module_refcount() outside of kernel/module.c and the other one uses ifdef's similar to this. Signed-Off-By: Daniel Walker Signed-off-by: James Bottomley commit 884d3a2bad7293e56fe99d9322a1090bfdfd7c4e tree 26375b9205380f02fad6a877a7d3f5afa3260c14 parent dca762d63a6fd62599f0d5d18525fa347fa1772a author Christian Steineck Fri, 08 Sep 2006 23:51:34 +0200 committer John W. Linville Mon, 11 Sep 2006 19:34:03 -0400 [PATCH] hostap_cs: added support for Proxim Harmony PCI W-Lan card hostap_cs driver - added support for Proxim Harmony PCI W-Lan Card (uses pd6729 based pcmcia2pci bridge) Signed-off-by: Christian Steineck Signed-off-by: John W. Linville commit dca762d63a6fd62599f0d5d18525fa347fa1772a tree 1c619558db1a846fc318134caa4792d945e41cf1 parent 87d263271b1bbf344c596ac308417ff692ddc851 author Larry Finger Thu, 07 Sep 2006 11:17:05 -0500 committer John W. Linville Mon, 11 Sep 2006 19:34:03 -0400 [PATCH] bcm43xx: remove dead code in bcm43xx_sysfs.c Coverity CID 1160 & 1161 Remove some dead code from bcm43xx_sysfs.c in 2.6.18-rc6 Signed-off-by: Darren Jenkins Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit 87d263271b1bbf344c596ac308417ff692ddc851 tree 566f6b682e55f6ae68a73da17ee6e78f771035ef parent 1ef4583ee3e1efab83d05b6ccdad378c9caaa95f author Larry Finger Thu, 07 Sep 2006 10:12:11 -0500 committer John W. Linville Mon, 11 Sep 2006 19:34:02 -0400 [PATCH] bcm43xx: ucode debug status via sysfs This patch prints out the ucode debug status to sysfs. So, users can watch the microcode status of their hardware. Signed-off-by: Martin Langer Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit 1ef4583ee3e1efab83d05b6ccdad378c9caaa95f tree 3a443ce3f33f020f0a1b89a9f9f0c5fe95caad14 parent 6807b5076373b8a6b6dac3b3b54645c85df91ad6 author Larry Finger Mon, 04 Sep 2006 17:13:57 -0500 committer John W. Linville Mon, 11 Sep 2006 19:34:02 -0400 [PATCH] bcm43xx: Add firmware version printout This patch prints microcode revision, patchlevel, date and time to KERN_INFO. Also, version 4.xx microcodes (rev>0x128) will be rejected by the driver, because they still do not work. Signed-off-by: Martin Langer Acked-by: Michael Buesch Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit 6807b5076373b8a6b6dac3b3b54645c85df91ad6 tree 4f8187d5fd0c0b8c60d6d927d5db94461c70ea3b parent bd6dd756522f3874b0efe576f9c25f5dee239646 author Larry Finger Sun, 03 Sep 2006 23:38:56 -0500 committer John W. Linville Mon, 11 Sep 2006 19:34:02 -0400 [PATCH] bcm43xx: remove dead statistics code This patch removes code that was make obsolete when the wireless statistics in bcm43xx-softmac were changed, but was overlooked at that time. The value of bcm->stats.link_quality computed here is never used. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit bd6dd756522f3874b0efe576f9c25f5dee239646 tree f7fa278d1e4c850a77280bcc40ae1275c31c750c parent 4e1bbd846d00a245dcf78b6b331d8a9afed8e6d7 author Jean Tourrilhes Tue, 29 Aug 2006 18:19:23 -0700 committer John W. Linville Mon, 11 Sep 2006 19:34:02 -0400 [PATCH] Prism54 : add bitrates to scan result This patch adds bitrate information to the scan result in the Prism54 driver, like some/most other driver do. Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit 4e1bbd846d00a245dcf78b6b331d8a9afed8e6d7 tree 5eaca587cf00eef0f27a11a43220ffe602c25c4f parent fc3e39bef9ef5eb594ab2a35206b9b049c36320a author Ulrich Kunitz Tue, 29 Aug 2006 23:51:43 +0100 committer John W. Linville Mon, 11 Sep 2006 19:34:01 -0400 [PATCH] zd1211rw: Removed unneeded packed attributes Inspired by an e-mail by Stephen Hemminger I decided to remove all unneeded packed attributes from the code where the member variables are already aligned. This avoids horrible code being generated on some architectures. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit fc3e39bef9ef5eb594ab2a35206b9b049c36320a tree 8fa1efe3a95eda2a004d9cbffaa99d9996b1ab64 parent fca2714f27376caa04c3127c802a553b295eaa32 author Daniel Drake Tue, 29 Aug 2006 23:49:53 +0100 committer John W. Linville Mon, 11 Sep 2006 19:34:01 -0400 [PATCH] zd1211rw: Add ID for Asus WL-159g Tested by Vincent TOUCHARD zd1211 chip 0b05:170c v4802 high 00-11-d8 AL2230_RF pa0 g--- Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit fca2714f27376caa04c3127c802a553b295eaa32 tree 6b6d86b5a641d744ccf367a4594afc3d362b4c04 parent 6aeb3dddb7c6697c083582a0757078e163758971 author Daniel Drake Tue, 29 Aug 2006 23:49:32 +0100 committer John W. Linville Mon, 11 Sep 2006 19:34:01 -0400 [PATCH] zd1211rw: Add ID for Siemens Gigaset USB Stick 54 Tested by Martin Dummer. zd1211 chip 0b3b:5630 v4330 high 00-01-e3 RF2959_RF pa0 --- Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 6aeb3dddb7c6697c083582a0757078e163758971 tree c032b0e362e1e142bcfa14c7f3988c62cef7902c parent 7d4b0394bbf5e306ff9d5753163a07187131bfd8 author Larry Finger Mon, 11 Sep 2006 16:46:26 -0400 committer John W. Linville Mon, 11 Sep 2006 19:34:01 -0400 [PATCH] bcm43xx: Correct out of sequence initialization step This patch fixes an out of sequence step in the bcm43xx_init_board routine for bcm43xx-softmac. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit 7d4b0394bbf5e306ff9d5753163a07187131bfd8 tree 24696862ca6df267b7c4d30feb240174c99d4237 parent 34fa0e319c760189f1fc226acc5b3b387dc58099 author Larry Finger Mon, 21 Aug 2006 09:43:44 -0500 committer John W. Linville Mon, 11 Sep 2006 19:34:00 -0400 [PATCH] bcm43xx-softmac: Init, shutdown and restart fixes This fixes various bugs in the init and shutdown code that would lead to lockups and crashes. Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit 34fa0e319c760189f1fc226acc5b3b387dc58099 tree 401ce21e352ce538abe25744da9c510a2339cd06 parent 623b3e1d645e42030897d18d37db10133d763006 parent db888aed7e83559d61cff04bf002d0fb80ecbfa7 author John W. Linville Mon, 11 Sep 2006 16:40:03 -0400 committer John W. Linville Mon, 11 Sep 2006 16:40:03 -0400 Merge branch 'upstream-fixes' into upstream commit 623b3e1d645e42030897d18d37db10133d763006 tree 090ff481cd72b47ff87d50615461712a33ba41e6 parent c576af479162c0a11d4e2691ebc97354958d9285 parent 38f5745c5a90641079fd5b48600ae63f7ab6edcd author John W. Linville Mon, 11 Sep 2006 14:08:41 -0400 committer John W. Linville Mon, 11 Sep 2006 14:08:41 -0400 Merge branch 'from-linus' into upstream commit b39fe41f481d20c201012e4483e76c203802dda7 tree 06493995b74c1fd2f40561b0f6924d3b863f166f parent d2eed8cff9a1a5d7e12ec9ddf71432c466b104d0 author Francois Romieu Mon, 11 Sep 2006 20:10:58 +0200 committer Francois Romieu Mon, 11 Sep 2006 19:51:47 +0200 r8169: quirk for the 8110sb on arm platform Inverting the write ordering of the TxDescAddr{High/Low} registers suffices to trigger a sabbat of PCI errors which make the device completely dysfunctional. The issue has not been reported on a different platform. Switching from MMIO accesses to I/O ones as done in Realtek's own driver fixes (papers over ?) the bug as well but I am not thrilled to see everyone pay the I/O price for an obscure bug. This is the minimal change to handle the issue. Signed-off-by: Francois Romieu Reported-by: Lennert Buytenhek commit 6b12a3d35ff6cb09f8b777ab258ea1e32c680d62 tree 433a88c55ac4713e9d839a9589728ac4dd142afd parent 0486a8c83b0f83c52c4d93accd841e08ccdf04dc parent 519854876c66bd04b0c12d3cead6e0e5fc5a1167 author Jeff Garzik Mon, 11 Sep 2006 09:14:17 -0400 committer Jeff Garzik Mon, 11 Sep 2006 09:14:17 -0400 Merge branch 'upstream-fixes' into upstream commit 0486a8c83b0f83c52c4d93accd841e08ccdf04dc tree 793c5740cf6fd8a7bbad01e3b31fe122f81eb56b parent 2a2fc64481ed48ef0952d03979b053d1e6ba89dc author Stephen Hemminger Wed, 06 Sep 2006 11:06:10 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:07:19 -0400 [PATCH] skge: check for PCI hotplug during IRQ Check if IRQ came from hardware fault (hotplug). Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 2a2fc64481ed48ef0952d03979b053d1e6ba89dc tree ba43d147d00fbd4bd68285ce869c98be13967bb4 parent 9f486ae1d9ea700a952b77a8881de05ebc1610c3 author Andy Gospodarek Fri, 08 Sep 2006 08:41:48 -0400 committer Jeff Garzik Mon, 11 Sep 2006 09:06:34 -0400 [PATCH] cleanup unnecessary forcedeth printk This removes unnecessary messages that show up every time I put my ethernet card in promiscuous mode. I'm already getting notification from the networking layer, I don't need notification from the driver as well. There are probably other drivers that do this as well -- I'll look around and see what I can find. Signed-off-by: Andy Gospodarek Signed-off-by: Jeff Garzik commit 9f486ae1d9ea700a952b77a8881de05ebc1610c3 tree 702247e52d2d8ce81758aec6dd3362db52a3cd36 parent 42eab56776b7c9686ee39f8f677a3e3b09caa170 author Valerie Henson Fri, 08 Sep 2006 11:15:41 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Handle pci_enable_device() errors in resume Signed-off-by: Valerie Henson Cc: Jeff Garzik Signed-off-by: Jeff Garzik commit 42eab56776b7c9686ee39f8f677a3e3b09caa170 tree 79a4612538438a1c91d5aa1883a8115296a91540 parent 7f2b12482c86d69ed1804d239a52ea846ef294f2 author Grant Grundler Fri, 08 Sep 2006 11:15:40 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Use tulip.h in winbond-840.c Include "tulip.h" in winbond-840.c and clean up lots of redundant definitions. Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik commit 7f2b12482c86d69ed1804d239a52ea846ef294f2 tree 5bcb8d6c4d9a90634595cf2d4e4a40302dab5e67 parent 0bb3cf726b37c13abce9f9134a68b94aa10e8803 author Grant Grundler Fri, 08 Sep 2006 11:15:39 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Clean up tulip.h Update/cleanup some definitions in tulip.h and tulip_core.c. Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik commit 0bb3cf726b37c13abce9f9134a68b94aa10e8803 tree 52a1fe8fdd08bdc088c1fb95957ecf5e698b8def parent 40c0d87948ab635e814f45664259d4cc193651a1 author Francois Romieu Fri, 08 Sep 2006 11:15:38 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Defer tulip_select_media() to process context Move tulip_select_media() processing to a workqueue, instead of delaying in interrupt context, edited by Kyle McMartin to use kevent thread, instead of creating its own workqueue. Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik commit 40c0d87948ab635e814f45664259d4cc193651a1 tree 24c3c8e62eef0db500466540a7338d161c7ce5d7 parent b892de0bd79d534ff4dcbae7aa2ad5b63e23e9fd author Grant Grundler Fri, 08 Sep 2006 11:15:37 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Flush MMIO writes in reset sequence The obvious safe registers to read is one from PCI config space. Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik commit b892de0bd79d534ff4dcbae7aa2ad5b63e23e9fd tree 45ac1f0e4457b2458583207128d646d19ae11222 parent c69f412219855c9525c96052a65b60814531977c author Thibaut Varene Fri, 08 Sep 2006 11:15:36 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Make DS21143 printout match lspci output Signed-off-by: Thibaut Varene Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik commit c69f412219855c9525c96052a65b60814531977c tree 21df55a4cd4848276a9fec2eaebb88a863ba43af parent 6b92801b43441f1f0280c332b966b75c74222060 author Grant Grundler Fri, 08 Sep 2006 11:15:35 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Print physical address in tulip_init_one As the cookie returned by pci_iomap() is fairly useless... [Compile warning on pci_resource_start() format fixed up by Valerie Henson.] Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik commit 6b92801b43441f1f0280c332b966b75c74222060 tree b506159eff5edb6a458f472eb08c4f7f75b0f410 parent 10e299fc6d596f4e8476d24ebba1495a8355baff author Valerie Henson Fri, 08 Sep 2006 11:15:34 -0700 committer Jeff Garzik Mon, 11 Sep 2006 09:05:37 -0400 [PATCH] Change tulip maintainer Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik MAINTAINERS | 4 ++-- drivers/net/tulip/21142.c | 2 +- drivers/net/tulip/eeprom.c | 2 +- drivers/net/tulip/interrupt.c | 2 +- drivers/net/tulip/media.c | 2 +- drivers/net/tulip/pnic.c | 2 +- drivers/net/tulip/pnic2.c | 2 +- drivers/net/tulip/timer.c | 2 +- drivers/net/tulip/tulip_core.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) commit 10e299fc6d596f4e8476d24ebba1495a8355baff tree f7517eccba4dfc223113961c64429f3986afa8eb parent cff93eb3d3244cc117a5204fe1d62102b506afb9 parent 38f5745c5a90641079fd5b48600ae63f7ab6edcd author Jeff Garzik Mon, 11 Sep 2006 09:05:33 -0400 committer Jeff Garzik Mon, 11 Sep 2006 09:05:33 -0400 Merge branch 'master' into upstream commit dd1dc802368154a75926491092ec9e6a939c32df tree d30356622b57f9d993ff1c54a621c2d1f8cd31d9 parent 406176ee7ef81cec3f346ecd41286a67148e3b0c parent 6708374178d225ef77571ed23b30e8a93c36add5 author Jeff Garzik Mon, 11 Sep 2006 08:54:55 -0400 committer Jeff Garzik Mon, 11 Sep 2006 08:54:55 -0400 Merge branch 'upstream-fixes' into upstream Conflicts: drivers/ata/ata_piix.c commit edf03fb0575cbee2595a63374b17dc0921f2094a tree b9964afc71abc0a6a786a0641380440a5bc8fe34 parent 08da3f413f6aa3eb48cfc5331c68e57393167fe5 author Dave Jones Sun, 10 Sep 2006 21:12:20 -0400 committer Dave Jones Sun, 10 Sep 2006 21:12:20 -0400 [AGPGART] Rework AGPv3 modesetting fallback. Sometimes the logic to handle AGPx8->AGPx4 fallback failed, as can be seen in https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=197346 The failures occured if the bridge was in AGPx8 mode, but the user hadn't specified a mode in their X config. We weren't setting the mode to the highest mode capable by the video card+bridge (as we do in the AGPv2 case), which was leading to all kinds of mayhem including us believing that after falling back from AGPx8, that we couldn't do x4 mode (which is disastrous in AGPv3, as those are the only two modes possible). Signed-off-by: Dave Jones commit 08da3f413f6aa3eb48cfc5331c68e57393167fe5 tree 395758a4848487db6e5c570bc8991e86bfaa3610 parent c14635eb4e591c61e419c065df1fdacf9ff90c00 author Dave Jones Sun, 10 Sep 2006 21:09:26 -0400 committer Dave Jones Sun, 10 Sep 2006 21:09:26 -0400 [AGPGART] Add suspend callback for i965 Signed-off-by: Dave Jones commit 2b7cbe20174695bca1afe2a8f755e1eb299f4768 tree aa60d5d6cab1860b756b373ab98abecbce733754 parent a01e70e570a72b8a8c9a58062e4f5bdcd3986222 author James Bottomley Thu, 07 Sep 2006 15:14:46 -0500 committer James Bottomley Thu, 07 Sep 2006 15:21:50 -0500 [SCSI] fix up SCSI netlink build CONFIG_SCSI_NETLINK can become a bool since the item its selecting (CONFIG_NET) cannot be a module. Signed-off-by: James Bottomley commit a01e70e570a72b8a8c9a58062e4f5bdcd3986222 tree d2b8b5e0e69d14805ac98033561597de6e24d5c6 parent d24e1eeb3a16e4944288c2f3bf082e1513f4b425 author James Bottomley Wed, 06 Sep 2006 19:28:07 -0500 committer James Bottomley Thu, 07 Sep 2006 15:20:23 -0500 [SCSI] aci94xx: implement link rate setting This patch implements the ability to set the minimum and maximum linkrates for both libsas (for expanders) and aic94xx (for the host phys). It also tidies up the setting of the hardware min and max to make sure they're updated when the expander emits a change broadcast. Signed-off-by: James Bottomley commit d24e1eeb3a16e4944288c2f3bf082e1513f4b425 tree 395812a03c26a8693c23362eb403048164352dd6 parent 88edf74610bd894b93438f389688bc8b4a2d3414 author James Bottomley Wed, 06 Sep 2006 19:25:22 -0500 committer James Bottomley Thu, 07 Sep 2006 15:16:44 -0500 [SCSI] scsi_transport_sas: make minimum and maximum linkrate settable quantities According to SPEC, the minimum_linkrate and maximum_linkrate should be settable by the user. This patch introduces a callback that allows the sas class to pass these settings on to the driver. Signed-off-by: James Bottomley commit 88edf74610bd894b93438f389688bc8b4a2d3414 tree 5f22ad465f07a8eda5576185db2e24ac7797d68a parent b4620233d6a3510564c561a5a2a365a1d8a34b68 author James Bottomley Wed, 06 Sep 2006 17:36:13 -0500 committer James Bottomley Thu, 07 Sep 2006 12:41:16 -0500 [SCSI] SAS: consolidate linkspeed definitions At the moment we have two separate linkspeed enumerations covering roughly the same values. This patch consolidates on a single one enum sas_linkspeed in scsi_transport_sas.h and uses it everywhere in the aic94xx driver. Eventually I'll get around to removing the duplicated fields in asd_sas_phy and sas_phy ... Signed-off-by: James Bottomley commit b4620233d6a3510564c561a5a2a365a1d8a34b68 tree d91ffb0c62728f3dab97debfa244d517061bbfab parent f479ab87936563a286b8aa0e39003c40fa31c6da author Henrik Kretzschmar Wed, 06 Sep 2006 10:49:48 +0200 committer James Bottomley Thu, 07 Sep 2006 12:39:34 -0500 [SCSI] scsi-driver ultrastore replace Scsi_Cmnd with struct scsi_cmnd Signed-off-by: Henrik Kretzschmar Signed-off-by: James Bottomley commit f479ab87936563a286b8aa0e39003c40fa31c6da tree 9592ef7ca7b68dd2ec5c21e371a6b4ad76be8ac5 parent 884d25cc4fda20908fd4ef93dbb41d817984b68b author James Bottomley Wed, 06 Sep 2006 09:00:29 -0500 committer James Bottomley Thu, 07 Sep 2006 10:37:22 -0500 [SCSI] fix up non-modular SCSI The recent change to the way scsi_device_get()/put() work broke the non modular build (we do a module_refcount on a NULL). Fix this by checking for non-null before checking module_refcount(). Signed-off-by: James Bottomley commit 884d25cc4fda20908fd4ef93dbb41d817984b68b tree 99a7a2a02ff76bee9c4a0620e6a90321517bba13 parent 26dacd0c9b2dc1dc987c376aeee4e80691a7dd0b author James Bottomley Tue, 05 Sep 2006 16:26:41 -0500 committer James Bottomley Thu, 07 Sep 2006 10:08:43 -0500 [SCSI] Fix refcount breakage with 'echo "1" > scan' when target already present Spotted by: Dan Aloni The problem is there's inconsistent locking semantic usage of scsi_alloc_target(). Two callers assume the target comes back with reference unincremented and the third assumes its incremented. Fix by always making the reference incremented on return. Also fix path in target alloc that could consistently increment the parent lock. Finally document scsi_alloc_target() so its callers know what the expectations are. Signed-off-by: James Bottomley commit cff93eb3d3244cc117a5204fe1d62102b506afb9 tree 14aaadd17ffe8af8904546cc8911aca3918f3d17 parent f6aa1693671fa9ea661fd30f003820d129fe0628 author Adrian Bunk Mon, 04 Sep 2006 13:41:14 +0200 committer Jeff Garzik Wed, 06 Sep 2006 12:52:52 -0400 [PATCH] make drivers/net/e1000/e1000_hw.c:e1000_phy_igp_get_info() static This patch makes the needlessly global e1000_phy_igp_get_info() static. Signed-off-by: Adrian Bunk Signed-off-by: Jeff Garzik commit c14635eb4e591c61e419c065df1fdacf9ff90c00 tree e05cd50d0d3e5e6fa3fdaf06d08a41f31700cfe7 parent 65c25aadfa4e917060e99fe459f33a6a07db53cc author Dave Jones Wed, 06 Sep 2006 11:59:35 -0400 committer Dave Jones Wed, 06 Sep 2006 11:59:35 -0400 [AGPGART] Fix number of aperture sizes in 830 gart structs. Spotted by Eric Anholt. Signed-off-by: Dave Jones commit 65c25aadfa4e917060e99fe459f33a6a07db53cc tree 510a3fd7bd869cb49d27f22e0f9191d4bca44138 parent 115b384cf87249d76adb0b21aca11ee22128927d author Eric Anholt Wed, 06 Sep 2006 11:57:18 -0400 committer Dave Jones Wed, 06 Sep 2006 11:57:18 -0400 [AGPGART] Intel 965 Express support. From: Alan Hourihane From: Eric Anholt Signed-off-by: Dave Jones commit f6aa1693671fa9ea661fd30f003820d129fe0628 tree f17e223a4b80c22e82c2a8543806aebad4e6e77c parent 513f533e3f161c5a59555677d35e8ae28037bd89 author Stephen Hemminger Fri, 01 Sep 2006 15:53:50 -0700 committer Jeff Garzik Wed, 06 Sep 2006 11:19:23 -0400 [PATCH] skge: version 1.8 Because of the NAPI and other SMP fixes, let's call this a version. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 513f533e3f161c5a59555677d35e8ae28037bd89 tree 84d8d7355f8c14f3abd57e8e313ce39ed09e3d05 parent 29365c900963d4986b74a0dadea46872bf283d76 author Stephen Hemminger Fri, 01 Sep 2006 15:53:49 -0700 committer Jeff Garzik Wed, 06 Sep 2006 11:19:23 -0400 [PATCH] skge: use NAPI for transmit complete The skge driver has much better performance if transmit done is handled in NAPI softirq. Change from doing transmit locking in driver (LLTX) and use device lock. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 29365c900963d4986b74a0dadea46872bf283d76 tree d896de1c7306f0f03c9781cb054bbcd5cf0a9817 parent c54f9765daafe8493dba837b3d70e97432cd876a author Stephen Hemminger Fri, 01 Sep 2006 15:53:48 -0700 committer Jeff Garzik Wed, 06 Sep 2006 11:19:23 -0400 [PATCH] skge: irq lock race The driver needs to access the IRQ status inside of lock to avoid races with other places changing IRQ mask etc. This may be related to some of the SMP bugs reported against skge in kernel bugzilla. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit c54f9765daafe8493dba837b3d70e97432cd876a tree 5933a42766864a3117611ec1c999758e9f8a2f38 parent 2f4a66ad49097f0b0207a141aa2115ed352fbf58 author Stephen Hemminger Fri, 01 Sep 2006 15:53:47 -0700 committer Jeff Garzik Wed, 06 Sep 2006 11:19:22 -0400 [PATCH] skge: use netdev_alloc_skb Change to use new netdev_alloc_skb interface for 2.6.18. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 2f4a66ad49097f0b0207a141aa2115ed352fbf58 tree 4909c72aa86e53ce17458cc3347e3682b769aefb parent ce7f93680aa1d37171c654536ae0ce9745d86a24 author Stephen Hemminger Fri, 01 Sep 2006 14:52:04 -0700 committer Jeff Garzik Wed, 06 Sep 2006 11:10:50 -0400 [PATCH] sky2: more pci device id's Some more Marvell device id's, these are from the latest SysKonnect vendor driver version of sk98lin (8.36). Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit ce7f93680aa1d37171c654536ae0ce9745d86a24 tree 7c88e6ebafbcdf5c0a89feb82b572a5ea4e6d000 parent b4d01327e4c05ab555a4cf38a33f4b4fa2f75e64 author Brice Goglin Thu, 31 Aug 2006 01:32:59 -0400 committer Jeff Garzik Wed, 06 Sep 2006 11:06:46 -0400 [PATCH] myri10ge: improve firmware selection Improve the firmware selection by adding 2 cases where we should use the optimized firmware: * when the actual PCIe link width is lower than 8x. * when the board is plugged to one of the new Intel PCIe chipsets that are known to provide aligned PCIe completions. The patch actually raises two concerns: * We might want to add a generic PCI function to get the PCIe link width since some other drivers (at least ipath) do the same. But we probably do not want to add a new function for every PCIe capability. I will probably look at it and discuss it on linux-pci in the future. * As requested during the submission, the PCI ids of chipsets that are known to provided aligned completion are defined in the myri10ge code. If we keep adding new ones, it might become better to move them to pciids.h. But, this sort of quirk to detect these chipsets are very specific to our NIC, I don't think it is worth moving it to the PCI core until somebody else really needs it. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit b4d01327e4c05ab555a4cf38a33f4b4fa2f75e64 tree f683950f737fea82e55153209ef34a4089285abc parent a2413598b8c5f14d75f914ce95d72bacdeabd05e parent d279490543ee4e7c51371eb605b578ab47f45305 author Jeff Garzik Wed, 06 Sep 2006 11:06:44 -0400 committer Jeff Garzik Wed, 06 Sep 2006 11:06:44 -0400 Merge branch 'upstream-fixes' into upstream commit a2413598b8c5f14d75f914ce95d72bacdeabd05e tree 35e1340b05b295dbefefaa45424e00a55c28402e parent f2ad2d9b65963322186a8af2bd2965c734a7badb parent c576af479162c0a11d4e2691ebc97354958d9285 author Jeff Garzik Wed, 06 Sep 2006 11:02:22 -0400 committer Jeff Garzik Wed, 06 Sep 2006 11:02:22 -0400 Merge branch 'upstream' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream commit f2ad2d9b65963322186a8af2bd2965c734a7badb tree 3bac0275d80a590b0254650b6a36e018dcf73b0a parent edf7e5ec99c2e24cea3951f7961958fc7edbfdd1 author Ayaz Abdulla Thu, 24 Aug 2006 17:35:41 -0400 committer Jeff Garzik Wed, 06 Sep 2006 10:57:37 -0400 [PATCH] forcedeth: decouple vlan and rx checksum dependency This patch decouples the dependency between the rx checksum feature and vlan feature. This is done by ignoring the checksum information if the user has disabled rx checksum when vlan is enabled. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit edf7e5ec99c2e24cea3951f7961958fc7edbfdd1 tree 1862fb28066e7f8728f7bc325349e1efc5885ab6 parent 3784fd7316d336f2ba79b6c7c8168d08eff8a714 author Ayaz Abdulla Thu, 24 Aug 2006 15:43:42 -0400 committer Jeff Garzik Wed, 06 Sep 2006 10:57:37 -0400 [PATCH] forcedeth: errata for marvell phys This patch addresses an errata found on certain marvell phys concerning the reset of the BMCR phy register during phy reset. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit 406176ee7ef81cec3f346ecd41286a67148e3b0c tree f938fc24d000b5217d95fb8a1b4e0a2c9d2bbae6 parent fc851fad00d7fa1bf4ac7034d9ba8041bf482d50 author Jeff Garzik Wed, 06 Sep 2006 10:48:19 -0400 committer Jeff Garzik Wed, 06 Sep 2006 10:48:19 -0400 [libata] Add pata_jmicron driver to Kconfig, Makefile Someone on LKML noticed it was missing (sorry, missed the name). Signed-off-by: Jeff Garzik commit 8adcc0c674004c0f9467031a93dc639c2b01411f tree c927083c7ad6be78749ad0ecc2fff1f018a7dd5f parent db44aaf3a2f599163c53ce96658aca688b3466f0 author Venkatesh Pallipadi Fri, 01 Sep 2006 14:02:24 -0700 committer Dave Jones Tue, 05 Sep 2006 17:28:42 -0400 [CPUFREQ] Workaround for BIOS bug in software coordination of frequency Some buggy BIOSes do a "software any" kind of coordination without telling about it to OS. So, when OS sets frequency on one CPU on these platforms, it will also impact all the other logical CPUs that are in the same power domain. Attached patch is a workaround for those buggy BIOSes. Patch should be a noop on the normal non-buggy platforms. Applies over previously sent acpi-cpufreq and software coordination bug fix patch Signed-off-by: Denis Sadykov Signed-off-by: Venkatesh Pallipadi Signed-off-by: Alexey Starikovskiy Signed-off-by: Dave Jones commit db44aaf3a2f599163c53ce96658aca688b3466f0 tree ad6bbd01851d911e0641256f5d10531504a85ee4 parent 23e735bc7b0e1d614656881794257b4224efda3a author Rafa³ Bilski Wed, 16 Aug 2006 01:07:33 +0200 committer Dave Jones Tue, 05 Sep 2006 17:28:42 -0400 [CPUFREQ] Longhaul - Add voltage scaling to driver Rename option "dont_scale_voltage" to "scale_voltage" because don't will be default. Use "pos" for calculating voltage. In this way driver don't need to know mV value or low level value. Simply min U is one pos and max U is second pos. All pos between these two are used. Assume that min U is for min f and max U for max f. For frequency between min and max calculate pos based on difference between current frequency and min f. Values in mobile VRM table changed to values from C3-M datasheet. Signed-off-by: Rafa³ Bilski Signed-off-by: Dave Jones commit 115b384cf87249d76adb0b21aca11ee22128927d tree f39a2a54863e9d82d1196906f92c82ab5991c6af parent 8eb7925f93af75e66a240d148efdec212f95bcb7 parent c336923b668fdcf0312efbec3b44895d713f4d81 author Dave Jones Tue, 05 Sep 2006 17:20:21 -0400 committer Dave Jones Tue, 05 Sep 2006 17:20:21 -0400 Merge ../linus commit 8eb7925f93af75e66a240d148efdec212f95bcb7 tree 228544ec353c1c3fe374eb9ffe13c4efe7fa9f29 parent b53e674a707cf77e76339852abdc063696679261 author Alexey Dobriyan Sun, 20 Aug 2006 18:48:13 +0400 committer Dave Jones Tue, 05 Sep 2006 17:19:51 -0400 [AGPGART] agp.h: constify struct agp_bridge_data::version drivers/char/agp/backend.c: In function `agp_backend_initialize': drivers/char/agp/backend.c:141: warning: assignment discards qualifiers from pointer target type Signed-off-by: Alexey Dobriyan Signed-off-by: Dave Jones commit 23e735bc7b0e1d614656881794257b4224efda3a tree d9523b531156fedb204e31b4612519b0a7a003e7 parent 3906f4edeef976c081c4e7bd92164d2f59c325ae parent c336923b668fdcf0312efbec3b44895d713f4d81 author Dave Jones Tue, 05 Sep 2006 17:16:33 -0400 committer Dave Jones Tue, 05 Sep 2006 17:16:33 -0400 Merge ../linus commit 3906f4edeef976c081c4e7bd92164d2f59c325ae tree 6ad1309a5e2eda9c2dde0e9bd0dca8d0a4060b9b parent b5ecf60fe6b18de0bc59d336d444835d4ef835ed author Dave Jones Tue, 05 Sep 2006 17:15:47 -0400 committer Dave Jones Tue, 05 Sep 2006 17:15:47 -0400 [CPUFREQ] Fix sparse warning in ondemand drivers/cpufreq/cpufreq_ondemand.c:323:2: warning: Using plain integer as NULL pointer Signed-off-by: Dave Jones commit 26dacd0c9b2dc1dc987c376aeee4e80691a7dd0b tree 99aedce0ff57498f3db3a15b3987cf5faf7c42dd parent c3f28afa61343e3e010e3014aa0d6eba271c1558 author James Smart Fri, 18 Aug 2006 17:47:24 -0400 committer James Bottomley Mon, 04 Sep 2006 21:25:59 -0500 [SCSI] lpfc 8.1.10 : Change version number to 8.1.10 Change version number to 8.1.10 Signed-off-by: James Smart Signed-off-by: James Bottomley commit c3f28afa61343e3e010e3014aa0d6eba271c1558 tree 43b20c5595a4590b470b476a3a0251cb21bd6743 parent c01f32087960edd60a302ad62ad6b8b525e4aeec author James Smart Fri, 18 Aug 2006 17:47:18 -0400 committer James Bottomley Mon, 04 Sep 2006 21:25:41 -0500 [SCSI] lpfc 8.1.10 : Add support for new lpfc soft_wwpn attribute Add support for a new lpfc soft_wwpn sysfs attribute Signed-off-by: James Smart Signed-off-by: James Bottomley commit c01f32087960edd60a302ad62ad6b8b525e4aeec tree abefc5afc051d379802de42175e14df37d79b4ae parent 0f29b966d60e9a4f5ecff9f3832257b38aea4f13 author James Smart Fri, 18 Aug 2006 17:47:08 -0400 committer James Bottomley Mon, 04 Sep 2006 21:25:21 -0500 [SCSI] lpfc 8.1.10 : Add support for dev_loss_tmo_callbk and fast_io_fail_tmo_callbk Add support for new dev_loss_tmo callback Goodness is that it removes code for a parallel nodev timer that existed in the driver Add support for the new fast_io_fail callback Signed-off-by: James Smart Signed-off-by: James Bottomley commit 0f29b966d60e9a4f5ecff9f3832257b38aea4f13 tree 0b14cbcdf74aee4676c49353f816ae5f98c504ee parent ae36764a230ff6a278ed93735acf5fcda08f2786 author James Smart Fri, 18 Aug 2006 17:33:29 -0400 committer James Bottomley Mon, 04 Sep 2006 21:22:05 -0500 [SCSI] FC transport: Add dev_loss_tmo callbacks, and new fast_io_fail_tmo w/ callback This patch adds the following functionality to the FC transport: - dev_loss_tmo LLDD callback : Called to essentially confirm the deletion of an rport. Thus, it is called whenever the dev_loss_tmo fires, or when the rport is deleted due to other circumstances (module unload, etc). It is expected that the callback will initiate the termination of any outstanding i/o on the rport. - fast_io_fail_tmo and LLD callback: There are some cases where it may take a long while to truly determine device loss, but the system is in a multipathing configuration that if the i/o was failed quickly (faster than dev_loss_tmo), it could be redirected to a different path and completed sooner. Many thanks to Mike Reed who cleaned up the initial RFC in support of this post. The original RFC is at: http://marc.theaimsgroup.com/?l=linux-scsi&m=115505981027246&w=2 Signed-off-by: James Smart Signed-off-by: James Bottomley commit fc851fad00d7fa1bf4ac7034d9ba8041bf482d50 tree 779a8b572d1701ef2c46755df751d9275650cdf4 parent 85cd7251b9112e3dabeac9fd3b175601ca607241 parent f9bcda7760e1373615c9f6d9ce24209b0ab97de1 author Jeff Garzik Mon, 04 Sep 2006 06:42:01 -0400 committer Jeff Garzik Mon, 04 Sep 2006 06:42:01 -0400 Merge branch 'upstream' into pata-drivers commit f9bcda7760e1373615c9f6d9ce24209b0ab97de1 tree f90b3031126c4e4beb8161f38ea436303e2b8b73 parent 9bec2e38527a9f2497b3d976715c672d08d6160d parent c336923b668fdcf0312efbec3b44895d713f4d81 author Jeff Garzik Mon, 04 Sep 2006 06:41:37 -0400 committer Jeff Garzik Mon, 04 Sep 2006 06:41:37 -0400 Merge branch 'master' into upstream commit 3784fd7316d336f2ba79b6c7c8168d08eff8a714 tree 3019c37f1ba588f252d1a9f1ef33beb5d3d683b1 parent 7c440e7990ea22c0c374c59a5fbd79b0579d1517 parent c336923b668fdcf0312efbec3b44895d713f4d81 author Jeff Garzik Mon, 04 Sep 2006 06:29:54 -0400 committer Jeff Garzik Mon, 04 Sep 2006 06:29:54 -0400 Merge branch 'master' into upstream commit ae36764a230ff6a278ed93735acf5fcda08f2786 tree 3605ce0cffe2e6aee3b5f3107f3949cc27b9ed83 parent d2873e4c1ef293ee6d66456fb84448e258a487fa author James Smart Fri, 18 Aug 2006 17:46:53 -0400 committer James Bottomley Sat, 02 Sep 2006 15:36:04 -0500 [SCSI] lpfc 8.1.10 : Add support to return adapter symbolic name Add support to return adapter symbolic name (now that attribute is dynamic) Signed-off-by: James Smart Signed-off-by: James Bottomley commit d2873e4c1ef293ee6d66456fb84448e258a487fa tree 60941dc2fdd12b50cc94956eacc430e86e6f1c74 parent f14e2e29cdd07f80de6dec168dc2bb39de37eec3 author James Smart Fri, 18 Aug 2006 17:46:43 -0400 committer James Bottomley Sat, 02 Sep 2006 15:35:48 -0500 [SCSI] lpfc 8.1.10 : Add support to post events via new FC event interfaces Add support to post events via new FC event interfaces Signed-off-by: James Smart Signed-off-by: James Bottomley commit f14e2e29cdd07f80de6dec168dc2bb39de37eec3 tree 51f761e90b38f6ec8e6b9fc452f6184df71ebea0 parent 84314fd4740ad73550c76dee4a9578979d84af48 author James Smart Tue, 22 Aug 2006 09:55:23 -0400 committer James Bottomley Sat, 02 Sep 2006 15:35:15 -0500 [SCSI] SCSI & FC transport: extend event vendor id's to 64bits During discussions with Mike Christie, I became convinced that we needed a larger vendor id. This patch extends the id from 32 to 64 bits. This applies on top of the prior patches that add SCSI transport events via netlink. Signed-off-by: James Smart Signed-off-by: James Bottomley commit 84314fd4740ad73550c76dee4a9578979d84af48 tree f8902dbe4134f9bab4f6886bb6c0b2a30797ceaa parent deb81d80ba27da8dfabc29ccb5977db8f4942a0a author James Smart Fri, 18 Aug 2006 17:30:09 -0400 committer James Bottomley Sat, 02 Sep 2006 15:33:49 -0500 [SCSI] SCSI and FC Transport: add netlink support for posting of transport events This patch formally adds support for the posting of FC events via netlink. It is a followup to the original RFC at: http://marc.theaimsgroup.com/?l=linux-scsi&m=114530667923464&w=2 and the initial posting at: http://marc.theaimsgroup.com/?l=linux-scsi&m=115507374832500&w=2 The patch has been updated to optimize the send path, per the discussions in the initial posting. Per discussions at the Storage Summit and at OLS, we are to use netlink for async events from transports. Also per discussions, to avoid a netlink protocol per transport, I've create a single NETLINK_SCSITRANSPORT protocol, which can then be used by all transports. This patch: - Creates new files scsi_netlink.c and scsi_netlink.h, which contains the single and shared definitions for the SCSI Transport. It is tied into the base SCSI subsystem intialization. Contains a single interface routine, scsi_send_transport_event(), for a transport to send an event (via multicast to a protocol specific group). - Creates a new scsi_netlink_fc.h file, which contains the FC netlink event messages - Adds 3 new routines to the fc transport: fc_get_event_number() - to get a FC event # fc_host_post_event() - to send a simple FC event (32 bits of data) fc_host_post_vendor_event() - to send a Vendor unique event, with arbitrary amounts of data. Note: the separation of event number allows for a LLD to send a standard event, followed by vendor-specific data for the event. Note: This patch assumes 2 prior fc transport patches have been installed: http://marc.theaimsgroup.com/?l=linux-scsi&m=115555807316329&w=2 http://marc.theaimsgroup.com/?l=linux-scsi&m=115581614930261&w=2 Sorry - next time I'll do something like making these individual patches of the same posting when I know they'll be posted closely together. Signed-off-by: James Smart Tidy up configuration not to make SCSI always select NET Signed-off-by: James Bottomley commit deb81d80ba27da8dfabc29ccb5977db8f4942a0a tree b4776d0eb64c1e849a40870192e9c90abd773f66 parent cf355883f506051a8ce3ac4539752829320b6c8c author James Bottomley Fri, 01 Sep 2006 09:28:48 -0400 committer James Bottomley Sat, 02 Sep 2006 13:57:28 -0500 [SCSI] add failure return to scsi_init_shared_tag_map() And use it in the stex driver. Signed-off-by: James Bottomley commit cf355883f506051a8ce3ac4539752829320b6c8c tree 2835cac08b85aa9778482938cf4fdf2fbd7d1ebd parent 5a25ba1677ab8d63890016a8c1bca68a3e0fbc7d author Ed Lin Fri, 01 Sep 2006 14:31:51 +0800 committer James Bottomley Sat, 02 Sep 2006 13:57:02 -0500 [SCSI] stex: add shared tags from block Use block shared tags entirely within the driver. In the case of shutdown, assume that there are no other outstanding commands, so tag 0 is fine. Signed-off-by: Ed Lin Signed-off-by: James Bottomley commit 5a25ba1677ab8d63890016a8c1bca68a3e0fbc7d tree 38a1a9361914c689a9914535e67c8bdfde92721e parent 69bdd88ca2670c321fef774e77059516f836c6f2 author Jeff Garzik Fri, 01 Sep 2006 03:12:19 -0400 committer James Bottomley Sat, 02 Sep 2006 13:54:02 -0500 [SCSI] Add Promise SuperTrak driver Add Promise SuperTrak 'stex' driver, supporting SuperTrak EX8350/8300/16350/16300 controllers. The controller's firmware accepts SCSI commands, handing them to the underlying RAID or JBOD disks. The driver consisted of the following cleanups and fixes, beyond its initial submission: Ed Lin: stex: cleanup and minor fixes stex: add new device ids stex: update internal copy code path stex: add hard reset function stex: adjust command timeout in slave_config routine stex: use more efficient method for unload/shutdown flush Jeff Garzik: [SCSI] Add Promise SuperTrak 'shasta' driver. Rename drivers/scsi/shasta.c to stex.c ("SuperTrak EX"). [SCSI] stex: update with community comments from 'Promise SuperTrak' thread [SCSI] stex: Fix warning, trim trailing whitespace. [SCSI] stex: remove last remnants of "shasta" project code name [SCSI] stex: removed 6-byte command emulation [SCSI] stex: minor cleanups [SCSI] stex: minor fixes: irq flag, error return value [SCSI] stex: use dma_alloc_coherent() Signed-off-by: Jeff Garzik Signed-off-by: James Bottomley commit 69bdd88ca2670c321fef774e77059516f836c6f2 tree 4df0e1cc0bc90306762db2b0591dc7a067952365 parent 01dfc7fc56f4b7ec0e5344ab44fcf673ebfbf7fa author Hannes Reinecke Fri, 01 Sep 2006 15:50:23 +0200 committer James Bottomley Sat, 02 Sep 2006 13:37:47 -0500 [SCSI] Wrong size information for devices with disabled read access When accessing a device with disabled read access the capacity is set randomly to 1GB. This makes it impossible to userspace tools to detect invalid device capacities. Signed-off-by: Mike Anderson Acked-by: Chris Mason Signed-off-by: Hannes Reinecke Signed-off-by: James Bottomley commit 01dfc7fc56f4b7ec0e5344ab44fcf673ebfbf7fa tree a3196af588db1cdf8a6aa72bcc6648934580bab8 parent e648f63c6520d6e572573149c16a64d2c5ad7ec5 author Mike Christie Thu, 31 Aug 2006 18:09:35 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:43 -0500 [SCSI] iscsi class: update version Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit e648f63c6520d6e572573149c16a64d2c5ad7ec5 tree 4561ce970213236ec2c3ee732a053a8ae5917e99 parent f47f2cf5d4acf929a3aaa6957c3fc4622c358703 author Mike Christie Thu, 31 Aug 2006 18:09:34 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:40 -0500 [SCSI] libiscsi: don't call into lld to cleanup task In the normal IO path we should not be calling back into the LLD since the LLD will have cleaned up the task before or after calling complete pdu. For the fail_command path we still need to do this to force the cleanup. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit f47f2cf5d4acf929a3aaa6957c3fc4622c358703 tree 6bf770ac6a789f926728b1881a7eee64a463404f parent ca5186842a6d85e982e3d572ecd407453d0c5116 author Mike Christie Thu, 31 Aug 2006 18:09:33 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:36 -0500 [SCSI] libiscsi: check that command ptr is set before accessing it If the scsi eh sends a TUR and the session is down we could return SCSI_ML_HOST_BUSY. scsi eh will ignore this and send ask us to abort the command and we blindly accesst the command ptr. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit ca5186842a6d85e982e3d572ecd407453d0c5116 tree 6eb680933750cf330308ab2c748a3d0e85c30c53 parent db98ccde0881b8247acb52dece6d94ed770a7aa5 author Mike Christie Thu, 31 Aug 2006 18:09:32 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:32 -0500 [SCSI] iscsi_tcp: fix partial digest recv When a digest is spread across two network buffers, we currently ignore this and try to check the digest with the partial buffer. Or course this fails. This patch has use iscsi_tcp_copy to copy the whole digest before testing it. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit db98ccde0881b8247acb52dece6d94ed770a7aa5 tree 6c3c32696b253bac7ed10625a0c57562d4bf7796 parent d5390f5f788f01788e9dfd41ad516a2908901610 author Mike Christie Thu, 31 Aug 2006 18:09:31 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:28 -0500 [SCSI] libiscsi: only check burst lengths when sending unsol data The first burst length is only relevant if immedate data = Yes or if Initial R2T is No Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit d5390f5f788f01788e9dfd41ad516a2908901610 tree e8438950bb9a5e601639d9c0806eae329730b44a parent 753e7d3866748799e4a8769cd27ea7202654211b author Mike Christie Thu, 31 Aug 2006 18:09:30 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:25 -0500 [SCSI] iscsi_tcp: update header size during relogin When we relogin to a target, we have not yet negotiated digests so we must reset the hdr_size var. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 753e7d3866748799e4a8769cd27ea7202654211b tree 1abee266dc83b269495133ce53ab463569e231d2 parent dd8c0d958621e3137f3e3302f7b8952041a4a1d7 author Mike Christie Thu, 31 Aug 2006 18:09:29 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:21 -0500 [SCSI] iscsi_tcp: fix header resend This patch built over the last ones fixes a bug in the partial header resend code, where we add on another 4 bytes to the send length on the resend. We want just the header plus digest. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit dd8c0d958621e3137f3e3302f7b8952041a4a1d7 tree 30b943eebcc044cb3305c449d7eea00376115a22 parent 62f383003c22cd34920d0412465eddcb1223da0d author Mike Christie Thu, 31 Aug 2006 18:09:28 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:18 -0500 [SCSI] scsi_tcp: rm data rx and tx tfms We currently allocated seperate tfms for data and header digests. There is no reason for this since we can never calculate a rx header and digest at the same time. Same for sends. So this patch removes the data tfms and has the send and recv sides use the rx_tfm or tx_tfm. I also made the connection creation code preallocate the tfms because I thought I hit a bug where I changed the digests settings during a relogin but could not allocate the tfm and then we just failed. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 62f383003c22cd34920d0412465eddcb1223da0d tree ca5091110dbf19df3f8031a590cd11229e6081e1 parent 98a9416af08385f8497e9c1595113a81aefa5d49 author Mike Christie Thu, 31 Aug 2006 18:09:27 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:14 -0500 [SCSI] iscsi_tcp: fix padding, data digests, and IO at weird offsets iscsi_tcp calculates padding by using the expected transfer length. This has the problem where if we have immediate data = no and initial R2T = yes, and the transfer length ended up needing padding then we send: 1. header 2. padding which should have gone after data 3. data Besides this bug, we also assume the target will always ask for nice transfer lengths and the first burst length will always be a nice value. As far as I can tell form the RFC this is not a requirement. It would be silly to do this, but if someone did it we will end doing bad things. Finally the last bug in that bit of code is in our handling of the recalculation of data digests when we do not send a whole iscsi_buf in one try. The bug here is that we call crypto_digest_final on a iscsi_sendpage error, then when we send the rest of the iscsi_buf, we doiscsi_data_digest_init and this causes the previous data digest to be lost. And to make matters worse, some of these bugs are replicated over and over and over again for immediate data, solicited data and unsolicited data. So the attached patch made over the iscsi git tree (see kernel.org/git for details) which I updated today to include the patches I said I merged, consolidates the sending of data, padding and digests and calculation of data digests and fixes the above bugs. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 98a9416af08385f8497e9c1595113a81aefa5d49 tree 0029f8f14bd70a366f2bebe54eb386cf1021ca60 parent 60ecebf5a10e42f5e2d6e07eb9e24bdee8500b81 author Mike Christie Thu, 31 Aug 2006 18:09:26 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:11 -0500 [SCSI] attempt to complete r2t with data len greater than max burst A couple targets like string bean and MDS, send r2ts with a data len greater than the max burst we agreed to. We were being strict in our enforcing of the iscsi rfc in that code path, but there is no driver limitation that prevents us from fullfilling the request. To allow those targets to work we will ignore the max_burst length and send as much data as the target asks for assuming it has consciously decided to override its max burst length. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 60ecebf5a10e42f5e2d6e07eb9e24bdee8500b81 tree 79b27fd89fe175daa4e4cd6feda8a6548c6d9bf1 parent ffd0436ed2e5a741c8d30062b489b989acf0a526 author Mike Christie Thu, 31 Aug 2006 18:09:25 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:07 -0500 [SCSI] add refcouting around ctask usage in main IO patch It is possible that a ctask could be completing and getting cleaned up at the same time, we are finishing up the last data transfer. This could then result in the data transfer code using stale or invalid values. This patch adds a refcount to the ctask. When the count goes to zero then we know the transmit thread and recv thread or softirq are not touching it and we can safely release it. The eh should not need to grab a reference because it only cleans up a task if it has both the xmit mutex and recv lock (or recv side suspended). Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit ffd0436ed2e5a741c8d30062b489b989acf0a526 tree 037433a76a116c67d3f074c5a83305be8241a8e5 parent e5b3cd42960a10c1bc3701d4f00767463c88ec9d author Mike Christie Thu, 31 Aug 2006 18:09:24 -0400 committer James Bottomley Sat, 02 Sep 2006 13:37:04 -0500 [SCSI] libiscsi, iscsi_tcp, iscsi_iser: check that burst lengths are valid. iSCSI RFC states that the first burst length must be smaller than the max burst length. We currently assume targets will be good, but that may not be the case, so this patch adds a check. This patch also moves the unsol data out offset to the lib so the LLDs do not have to track it. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit e5b3cd42960a10c1bc3701d4f00767463c88ec9d tree f8e54261c465f51fe1ebc67facf9074f0744e385 parent 85b6c720b0931101c8bcc3a5abdc2b8514b0fb4b author Alan Stern Mon, 21 Aug 2006 15:53:25 -0400 committer James Bottomley Sat, 02 Sep 2006 13:36:59 -0500 [SCSI] SCSI: sanitize INQUIRY strings Sanitize the Vendor, Product, and Revision strings contained in an INQUIRY result by setting all non-graphic or non-ASCII characters to ' '. Since the standard disallows such characters, this will affect only non-compliant devices. To help maintain backward compatibility, NUL characters are treated specially. They are taken as string terminators; they and all the following characters are set to ' '. If some valid characters get erased as a result... well, we weren't seeing them before so we haven't lost anything. The primary purpose of this change is to allow blacklist entries to match devices with illegal Vendor or Product strings. In addition, the patch updates a couple of function prototypes, giving inq_result its correct type (unsigned char *). Signed-off-by: Alan Stern Signed-off-by: James Bottomley commit 85b6c720b0931101c8bcc3a5abdc2b8514b0fb4b tree a6d2883ef3b4f40a71d59c9db0fda87d43419463 parent 86e33a296c2c9ed6eece0bfff4ac776f42040504 author James Bottomley Thu, 31 Aug 2006 18:15:22 -0400 committer James Bottomley Fri, 01 Sep 2006 17:56:56 -0400 [SCSI] sd: fix cache flushing on module removal (and individual device removal) The fix isn't actually in sd: it's in scsi_device_get(). I modified it to allow devices to be returned in SDEV_CANCEL, but not SDEV_DEL. This means that the device_remove_driver, which occurs in device_del() in scsi_remove_device() after the device has gone into SDEV_CANCEL is now effective at flushing the cache. Signed-off-by: James Bottomley commit 7c440e7990ea22c0c374c59a5fbd79b0579d1517 tree 4fa6513ee2740479bf9c2796a3911eefa485572b parent a422142cfdf90d889d8d3e2affb8311a381530b7 parent 9ee093f653bae98cb56b0669819d4bccb8c05fa4 author Jeff Garzik Thu, 31 Aug 2006 17:39:21 -0400 committer Jeff Garzik Thu, 31 Aug 2006 17:39:21 -0400 Merge branch 'upstream' of git://lost.foo-projects.org/~ahkok/git/netdev-2.6 into upstream commit 9ee093f653bae98cb56b0669819d4bccb8c05fa4 tree a04608635a3f16ab2fe5b6d06f481e34e7ff9c24 parent 69c7a940335371cf31a6589bf2b2ad1d197ef6ec author Auke Kok Thu, 31 Aug 2006 14:27:53 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:53 -0700 ixgb: Increment version to 1.0.112-k2 Signed-off-by: Auke Kok commit 69c7a940335371cf31a6589bf2b2ad1d197ef6ec tree 8948770e20ef5526be50230a8cfe2b3187dd1b49 parent 01748fbb413d6f3b36c330544969d1d7254ee509 author Auke Kok Thu, 31 Aug 2006 14:27:52 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:52 -0700 ixgb: remove skb->dev assignment Same change as e1000: remove skb->dev assignment, it's now done by netdev_alloc_skb. Signed-off-by: Auke Kok commit 01748fbb413d6f3b36c330544969d1d7254ee509 tree 1148455cf4d76d0b4bc17186790710282339449c parent adc5413965e6ca2cd18f0ec89933f762b5605574 author Linas Vepstas Thu, 31 Aug 2006 14:27:52 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:52 -0700 ixgb: Add PCI Error recovery callbacks Adds PCI Error recovery callbacks to the Intel 10-gigabit ethernet ixgb device driver. Lightly tested, works. "Zhang, Yanmin" wrote: Both pci_disable_device and ixgb_down would access the device. It doesn't follow Documentation/pci-error-recovery.txt that error_detected shouldn't do any access to the device. Signed-off-by: Linas Vepstas Signed-off-by: Andrew Morton Signed-off-by: Auke Kok commit adc5413965e6ca2cd18f0ec89933f762b5605574 tree 8fd57f8e212b39d944cb61a8e3faed5a7ddaeff9 parent 7a0eec3bca6ca024325defbc454252da6c537d40 author Jesse Brandeburg Thu, 31 Aug 2006 14:27:51 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:51 -0700 ixgb: Add buffer_info and test like e1000 has. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit 7a0eec3bca6ca024325defbc454252da6c537d40 tree 2609600be6b4a5a465c8e8b5570b44c7789bda1a parent ab8ced2fb00f3a1e1b63f8c3c61ad4262308ddc0 author Jesse Brandeburg Thu, 31 Aug 2006 14:27:51 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:51 -0700 ixgb: Cache-align all TX components of the adapter struct. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit ab8ced2fb00f3a1e1b63f8c3c61ad4262308ddc0 tree 8a0c6e990588885917675197e9b6166748d72160 parent a91bb6a8b411bdd8053601d7c2254d54670a4df6 author Auke Kok Thu, 31 Aug 2006 14:27:51 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:51 -0700 ixgb: recalculate after how many descriptors to wake the queue Recalculate when to wake the queue using DESC_NEEDED instead of a static hardcoded number. Signed-off-by: Auke Kok commit a91bb6a8b411bdd8053601d7c2254d54670a4df6 tree f0b95643b3954a1afb1df335c3bb86a8f6dc21d9 parent f990b426afb2f6ed77ba9ec272bdfe3d5d3a3d39 author Jesse Brandeburg Thu, 31 Aug 2006 14:27:50 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:50 -0700 ixgb: Set a constant blink rate for ixgb adapter identify (1sec on, 1sec off) Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit f990b426afb2f6ed77ba9ec272bdfe3d5d3a3d39 tree 5300d4c5e2ef6fff286bddb0b8a937e21be7b1fb parent 5791704fbe6e1a23de29332e18840f8c90faf601 author Auke Kok Thu, 31 Aug 2006 14:27:50 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:50 -0700 ixgb: convert dev->priv to netdev_priv(dev). Signed-off-by: Auke Kok commit 5791704fbe6e1a23de29332e18840f8c90faf601 tree baffbdc9d2d536a13eafb8741de4622378379cf9 parent a535aa1922083c85ce6fb7d1341db0d17df433d4 author Auke Kok Thu, 31 Aug 2006 14:27:50 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:50 -0700 ixgb: Convert dev_alloc_skb to netdev_alloc_skb. Signed-off-by: Auke Kok commit a535aa1922083c85ce6fb7d1341db0d17df433d4 tree d8fe45f2084d42dd8f82cdcd283682e8208f89ec parent 859b039463d7584afb4e25e950bf6dd58460add8 author Auke Kok Thu, 31 Aug 2006 14:27:49 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:49 -0700 e100: increment version to 3.5.16-k2 Increment the version of e100 to 3.5.16-k2, increment dates. Signed-off-by: Auke Kok commit 859b039463d7584afb4e25e950bf6dd58460add8 tree f47e8a0df7177670401b526d64e6eb8fb1c69807 parent b1d26f24e864204dfaa82b1252477e981ba9ef24 author Auke Kok Thu, 31 Aug 2006 14:27:49 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:49 -0700 e100: remove skb->dev assignment Signed-off-by: Auke Kok commit b1d26f24e864204dfaa82b1252477e981ba9ef24 tree 3ebdd35056a551d2605ea62fedd30f0476abf0c7 parent 4187592b6d2230d4f9f7177c369dde2aef1a4337 author Linas Vepstas Thu, 31 Aug 2006 14:27:48 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:48 -0700 e100: fix error recovery A recent patch in -mm3 titled "gregkh-pci-pci-don-t-enable-device-if-already-enabled.patch" causes pci_enable_device() to be a no-op if the kernel thinks that the device is already enabled. This change breaks the PCI error recovery mechanism in the e100 device driver, since, after PCI slot reset, the card is no longer enabled. This is a trivial fix for this problem. Tested. Signed-off-by: Linas Vepstas Signed-off-by: Andrew Morton Signed-off-by: Auke Kok commit 4187592b6d2230d4f9f7177c369dde2aef1a4337 tree eb4deadc93a8ab915372530de1cdf9b7a7c9cb0e parent 7cc33234f23f1abb5d2f6639dda1700b1fde4b64 author Auke Kok Thu, 31 Aug 2006 14:27:48 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:48 -0700 e100: Convert e100 to use netdev_alloc_skb(). Signed-off-by: Auke Kok commit 7cc33234f23f1abb5d2f6639dda1700b1fde4b64 tree 77cb84111a067e3abea208545aa6fc8be54b26fe parent ca6f72241966602d254900b9d624cac00df745bf author Auke Kok Thu, 31 Aug 2006 14:27:47 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:47 -0700 e1000: Increment driver version to 7.2.7-k2 Signed-off-by: Auke Kok commit ca6f72241966602d254900b9d624cac00df745bf tree f600780a8d0aeb8d7814c0de9237c9c39ffb75ec parent 5881cde8a38cab3b228a63516ab64f8d79acc4f5 author Christoph Hellwig Thu, 31 Aug 2006 14:27:47 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:47 -0700 e1000: clean up skb allocation code Signed-off-by: Christoph Hellwig Acked-by: Jesse Brandeburg Signed-off-by: Auke Kok commit 5881cde8a38cab3b228a63516ab64f8d79acc4f5 tree c13da70c1c5838853f2ac607387b1926a70a2142 parent 120cd57644f85b280b538ee403423641167913a9 author Jesse Brandeburg Thu, 31 Aug 2006 14:27:47 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:47 -0700 e1000: Add PCI ID 0x10a4 for our new 4-port PCI-Express device Device 0x10a4 is a double 82571 on a single PCI-Express card and has 4 gigabit capable ports. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit 120cd57644f85b280b538ee403423641167913a9 tree 32c35ef6464c0894c6c279d378493c9d6a289402 parent 1db2740d78c74eb11c4d0906047d9c13229a89a4 author Jesse Brandeburg Thu, 31 Aug 2006 14:27:46 -0700 committer Auke Kok Thu, 31 Aug 2006 14:27:46 -0700 e1000: unify WoL capability detection code WoL is constantly giving problems and needed a rewrite. Consolidates all WoL capabilities into a single function, and disables WoL for all other ports on the device except for port A. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit cccb20d3a9b7c6d4b6e1b52ee02814e6094aaa12 tree 17ed3c7a4f9b818692af55f38da30f7c801f13ed parent 7668a4945ba0e17a61e535a6c67aa64a319a03b4 author Francois Romieu Wed, 16 Aug 2006 13:07:18 +0200 committer Francois Romieu Thu, 31 Aug 2006 22:15:43 +0200 8139cp: use PCI_DEVICE() to shorten the PCI device table Signed-off-by: Francois Romieu commit 7668a4945ba0e17a61e535a6c67aa64a319a03b4 tree 08a883a950a69e1105d1eef59ae7f6e6ec318932 parent e68970e7543815133224f79a858e7c9e0c42f4de author François Romieu Tue, 15 Aug 2006 20:10:57 +0200 committer Francois Romieu Thu, 31 Aug 2006 22:15:42 +0200 8139cp: pci_get_drvdata(pdev) can not be NULL in suspend handler 1) pci_set_drvdata() is used in cp_{init/remove}_one to initialize/reset driver_data to the relevant value (resp. net_device * and NULL). 2) each of the 3 relevant functions is issued under (device *)->sem: 2.1) pci_unregister_driver -> driver_unregister -> bus_remove_driver -> driver_detach (takes (device *)->sem) -> __device_release_driver(dev) -> dev->bus-remove(dev) (== pci_device_remove) -> drv->remove(pdev) (== cp_remove_one) [...] pci_dev->driver = NULL; 2.2) pci_register_driver -> __pci_register_driver -> driver_register -> bus_add_driver -> driver_attach -> __driver_attach (takes (device *)->sem) -> driver_probe_device(drv, dev) -> dev->bus->probe(dev) (== pci_device_probe) -> _pci_device_probe(drv, pci_dev) -> pci_call_probe(drv, pci_dev, id) -> drv->probe(dev, id) (== cp_init_one) [...] pci_dev->driver = drv; 2.3) suspend_device (takes (device *)->sem) -> dev->bus->suspend(dev) (== pci_device_suspend) checking for drv = pci_dev->driver != NULL [...] -> drv->suspend(pci_dev, state) (== cp_suspend) dev->sem and the state of pci_dev->driver provide the expected result. St Mary's day was a bit rainy here. Signed-off-by: Francois Romieu commit e68970e7543815133224f79a858e7c9e0c42f4de tree 87814a5defcad4201cf37e5c15ab497fdd301859 parent d03d376dd29cae53bf70a21a0c26b306abe37326 author Francois Romieu Tue, 15 Aug 2006 16:22:27 +0200 committer Francois Romieu Thu, 31 Aug 2006 22:15:41 +0200 8139cp: removal of useless BUG_ON() check netdev_priv() will provide a nice oops a few lines before the BUG_ON() check. Signed-off-by: Francois Romieu commit d03d376dd29cae53bf70a21a0c26b306abe37326 tree 06dbf38b03287ab45274c1a2105d590a65d312a3 parent 0ba894d420b845667e2981c2147af974a755fba2 author Francois Romieu Sun, 29 Jan 2006 01:31:36 +0100 committer Francois Romieu Thu, 31 Aug 2006 22:15:41 +0200 8139cp: sync the device private data with its r8169 counterpart struct cp_private is reorganized to be more easily compared between the r8169 and the 8139cp drivers. The alignment should not be impacted. Signed-off-by: Francois Romieu commit 0ba894d420b845667e2981c2147af974a755fba2 tree 86d0332de1632929a1c0dbd8c2575a0f78409969 parent c48e9399e895834f26dff9149de1930ba18a0d6c author Francois Romieu Mon, 14 Aug 2006 19:55:07 +0200 committer Francois Romieu Thu, 31 Aug 2006 22:15:40 +0200 8139cp: ring_info removal for the receive path The ring_info.len field is not used at all. cp_private.rx_skb is turned into an array of sk_buff *. Signed-off-by: Francois Romieu commit c48e9399e895834f26dff9149de1930ba18a0d6c tree 3a85dfd9c2426e5ede98aa41e2ad59c2cd9c9abf parent 3598b57be449a2ee9178e5c511bdb1a8aaccba20 author Francois Romieu Sun, 29 Jan 2006 01:30:48 +0100 committer Francois Romieu Thu, 31 Aug 2006 22:15:40 +0200 8139cp: remove gratuitous indirection dev is an argument of the current function. Signed-off-by: Francois Romieu commit 3598b57be449a2ee9178e5c511bdb1a8aaccba20 tree ac100c84aa1afbfc8e9dd66bd3c47c3f788f4ee6 parent dc709bd190c130b299ac19d596594256265c042a author Francois Romieu Sun, 29 Jan 2006 01:31:13 +0100 committer Francois Romieu Thu, 31 Aug 2006 22:15:39 +0200 8139cp: trim ring_info Fat removal: the mapping address is available from the Rx/Tx descriptors. Signed-off-by: Francois Romieu commit d2eed8cff9a1a5d7e12ec9ddf71432c466b104d0 tree 030e38aa61a1e82f84bf83a25c4e23f879af3128 parent 5f787a1aca3705bdc6adbda36f8d6446380e85a6 author Francois Romieu Thu, 31 Aug 2006 22:01:07 +0200 committer Francois Romieu Thu, 31 Aug 2006 22:01:07 +0200 r8169: the 0x8136 needs a 8 bytes alignment Reported by Darren Salt. Signed-off-by: Francois Romieu commit 5f787a1aca3705bdc6adbda36f8d6446380e85a6 tree 54d9f437366053acb21bbed879ec369608123da1 parent 64e4bfb40c9d07a48c1c7e5b8556e92e7cd7406a author Francois Romieu Thu, 17 Aug 2006 13:02:36 +0200 committer Francois Romieu Thu, 31 Aug 2006 21:59:42 +0200 r8169: add basic MII ioctl support Signed-off-by: Francois Romieu commit 64e4bfb40c9d07a48c1c7e5b8556e92e7cd7406a tree 9940402f978632dedad3273b40ee26ba0f1ecb12 parent 5b0384f4fd079c24b976ee333e6d1f0c95cf14de author Francois Romieu Thu, 17 Aug 2006 12:43:06 +0200 committer Francois Romieu Thu, 31 Aug 2006 21:59:36 +0200 r8169: use standard #defines from mii.h instead of declaring private ones Some unused stuff goes away btw. Signed-off-by: Francois Romieu commit 5b0384f4fd079c24b976ee333e6d1f0c95cf14de tree 58cafcab3883a2d8e3b6e60a0bb7f1c879fe6510 parent b518fa8eac2d0ac497c0fdb27e4cec68d0249bb7 author Francois Romieu Wed, 16 Aug 2006 16:00:01 +0200 committer Francois Romieu Thu, 31 Aug 2006 21:59:29 +0200 r8169: trim trailing whitespaces and convert whitespaces to tabs Signed-off-by: Francois Romieu commit b518fa8eac2d0ac497c0fdb27e4cec68d0249bb7 tree 96ffced71b36d055c57726deaa20443c84fb5f6b parent 188f4af04618b32b8ec7c630a3f18201c81ce70c author Francois Romieu Wed, 16 Aug 2006 15:23:13 +0200 committer Francois Romieu Thu, 31 Aug 2006 21:59:24 +0200 r8169: udelay() removal No need to chew CPU cycles as there is no heavy timing requirement and the delays are always requested from a sleepable context. Signed-off-by: Francois Romieu commit 188f4af04618b32b8ec7c630a3f18201c81ce70c tree a09867951537476aa8125a400528e42f85d8a23a parent bcf0bf90cd9e9242b66e0563b6a8c8db2e4c262c author Francois Romieu Wed, 16 Aug 2006 14:51:52 +0200 committer Francois Romieu Thu, 31 Aug 2006 21:59:19 +0200 r8169: use NETDEV_TX_{BUSY/OK} Signed-off-by: Francois Romieu commit 86e33a296c2c9ed6eece0bfff4ac776f42040504 tree 7c4a11084b233e1899aec6c247435f3478bbd3b5 parent 492dfb489658dfe4a755fa29dd0e34e9c8bd8fb8 author James Bottomley Wed, 30 Aug 2006 09:45:51 -0400 committer James Bottomley Thu, 31 Aug 2006 11:18:03 -0400 [SCSI] add shared tag map helpers This patch adds support for sharing tag maps at the host level (i.e. either every queue [LUN] has its own tag map or there's a single one for the entire host). This formulation is primarily intended to help single issue queue hardware, like the aic7xxx Signed-off-by: James Bottomley commit 492dfb489658dfe4a755fa29dd0e34e9c8bd8fb8 tree 1ad52b1ce98743729c7cacce0c602e22d3a5d076 parent f19eaa7f53736449a6eac89c3863eca2c64d5913 author James Bottomley Wed, 30 Aug 2006 15:48:45 -0400 committer James Bottomley Thu, 31 Aug 2006 11:17:18 -0400 [SCSI] block: add support for shared tag maps The current block queue implementation already contains most of the machinery for shared tag maps. The only remaining pieces are a way to allocate and destroy a tag map independently of the queues (so that the maps can be managed on the life cycle of the overseeing entity) Acked-by: Jens Axboe Signed-off-by: James Bottomley commit aa43f77939c97bf9d3580c6a5e71a5a40290e451 tree 095c0b8b3da4b6554a3f8ef4b39240a5d9216d4d parent 2818c5dec5e28d65d52afbb7695bbbafe6377ee5 parent 4c15343167b5febe7bb0ba96aad5bef42ae94d3b author Paul Mackerras Thu, 31 Aug 2006 15:45:48 +1000 committer Paul Mackerras Thu, 31 Aug 2006 15:45:48 +1000 Merge branch 'merge' commit 85cd7251b9112e3dabeac9fd3b175601ca607241 tree b33b80f54883e224a586661165bd0aee2c47ed39 parent 481ff126e8d9be63809e7854badf815e54066eed author Jeff Garzik Thu, 31 Aug 2006 00:03:49 -0400 committer Jeff Garzik Thu, 31 Aug 2006 00:03:49 -0400 [libata #pata-drivers] Trim trailing whitespace. commit 481ff126e8d9be63809e7854badf815e54066eed tree c682ce7a20bf129428fc0f3cc393f9c9b39ed678 parent 669a5db411d85a14f86cd92bc16bf7ab5b8aa235 parent 9bec2e38527a9f2497b3d976715c672d08d6160d author Jeff Garzik Thu, 31 Aug 2006 00:02:26 -0400 committer Jeff Garzik Thu, 31 Aug 2006 00:02:26 -0400 Merge branch 'upstream' into pata-drivers commit 9bec2e38527a9f2497b3d976715c672d08d6160d tree b081189d1beca3a81ade7209c131977cd8f23f3b parent b01e86fee6c821e4e003fd4e9f65453ac478a58e author Jeff Garzik Thu, 31 Aug 2006 00:02:15 -0400 committer Jeff Garzik Thu, 31 Aug 2006 00:02:15 -0400 [libata] Trim trailing whitespace. commit f19eaa7f53736449a6eac89c3863eca2c64d5913 tree dd60f697af06bf3b6b1ece3fa7a29485ff2b4e92 parent bc229b3663dcd7d8f266cb13b0839efdee6d95b5 author Darrick J. Wong Wed, 30 Aug 2006 14:18:33 -0700 committer James Bottomley Wed, 30 Aug 2006 17:30:06 -0400 [SCSI] aic94xx: Increase can_queue for better performance This patch sets can_queue in the aic94xx driver's scsi_host to better performing values than what's there currently. It seems that asd_ha->seq.can_queue reflects the number of requests that can be queued per controller; so long as there's one scsi_host per controller, it seems logical that the scsi_host ought to have the same can_queue value. To the best of my (still limited) knowledge, this method provides the correct value. The effect of leaving this value set to 1 is terrible performance in the case of either (a) certain Maxtor SAS drives flying solo or (b) flooding several disks with I/O simultaneously (md-raid). There may be more scenarios where we see similar problems that I haven't uncovered. Signed-off-by: Darrick J. Wong Signed-off-by: James Bottomley commit bc229b3663dcd7d8f266cb13b0839efdee6d95b5 tree c200150738373f040d2408ca04b9d172d1f00dbe parent 187afbed1814ea0851bf30bacbf807217dd7864b author James Bottomley Mon, 28 Aug 2006 17:08:21 -0500 committer James Bottomley Wed, 30 Aug 2006 11:04:17 -0400 [SCSI] aic94xx: add MODULE_FIRMWARE tag Add a tag which shows what the firmware file we're requesting is. Signed-off-by: James Bottomley commit 187afbed1814ea0851bf30bacbf807217dd7864b tree 3e60ca1e1edf5feac14bbad0ba0fe087a6229853 parent 2908d778ab3e244900c310974e1fc1c69066e450 author Jon Masters Mon, 28 Aug 2006 17:08:21 -0500 committer James Bottomley Wed, 30 Aug 2006 10:47:27 -0400 [SCSI] MODULE_FIRMWARE for binary firmware(s) Right now, various kernel modules are being migrated over to use request_firmware in order to pull in binary firmware blobs from userland when the module is loaded. This makes sense. However, there is right now little mechanism in place to automatically determine which binary firmware blobs must be included with a kernel in order to satisfy the prerequisites of these drivers. This affects vendors, but also regular users to a certain extent too. The attached patch introduces MODULE_FIRMWARE as a mechanism for advertising that a particular firmware file is to be loaded - it will then show up via modinfo and could be used e.g. when packaging a kernel. Signed-off-by: Jon Masters Comments added in line with all the other MODULE_ tag Signed-off-by: James Bottomley Signed-off-by: Greg Kroah-Hartman commit 669a5db411d85a14f86cd92bc16bf7ab5b8aa235 tree 8d4f9d63e18185695a4d97e1a3fa4e18b61c7345 parent b01e86fee6c821e4e003fd4e9f65453ac478a58e author Jeff Garzik Tue, 29 Aug 2006 18:12:40 -0400 committer Jeff Garzik Tue, 29 Aug 2006 18:12:40 -0400 [libata] Add a bunch of PATA drivers. The vast majority of drivers and changes are from Alan Cox. Albert Lee contributed and maintains pata_pdc2027x. Adrian Bunk, Andrew Morton, and Tejun Heo contributed various minor fixes and updates. Signed-off-by: Jeff Garzik commit b01e86fee6c821e4e003fd4e9f65453ac478a58e tree 21695e10cbe7001d2ccc8c87cee5e7a7865b1025 parent e889173c2c67dc288e9b050ab066cfae151b047e parent 60d4684068ff1eec78f55b5888d0bd2d4cca1520 author Jeff Garzik Tue, 29 Aug 2006 17:55:59 -0400 committer Jeff Garzik Tue, 29 Aug 2006 17:55:59 -0400 Merge /spare/repo/linux-2.6 into upstream commit a422142cfdf90d889d8d3e2affb8311a381530b7 tree bde7e2c7a3ee8bca649aecd877a9ee1593f4223e parent 6fc47e31c0e802d205d67e644f654532e5d365d5 parent 60d4684068ff1eec78f55b5888d0bd2d4cca1520 author Jeff Garzik Tue, 29 Aug 2006 17:20:55 -0400 committer Jeff Garzik Tue, 29 Aug 2006 17:20:55 -0400 Merge branch 'master' into upstream commit 6fc47e31c0e802d205d67e644f654532e5d365d5 tree b08f68cca0e9f9a9ba1e76f0135c9538af294457 parent ccdaa2a9daf4777aa50866a28921153ad837a2be author Stephen Hemminger Mon, 28 Aug 2006 16:19:39 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:31 -0400 [PATCH] skge: version 1.7 Increase version. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit ccdaa2a9daf4777aa50866a28921153ad837a2be tree d702099a5f17b806b0fe86f2135462df09688a89 parent 83c758fabd3589842ebcb3af6b9150ff55bc39aa author Stephen Hemminger Mon, 28 Aug 2006 16:19:38 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:31 -0400 [PATCH] skge: use ethX for irq assigments The user level irq balance daemon uses "eth" as a way to distinquish ethernet devices. Also, by using device name it is possible to distinquish different boards. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 83c758fabd3589842ebcb3af6b9150ff55bc39aa tree 27a0f8a772d9552815b38eafb6f7ccd19b13d859 parent 78bc218663e3bd6cbbaf6a363d2f88f17541adfb author Stephen Hemminger Mon, 28 Aug 2006 16:19:37 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:31 -0400 [PATCH] skge: use dev_alloc_skb To avoid problems with buggy protocols that assume extra header space, use dev_alloc_skb() when allocating receive buffers. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 78bc218663e3bd6cbbaf6a363d2f88f17541adfb tree acbbd0e96fafb3a6332bbe9b31c483bb922fb886 parent d38efdd65aaabd82374f386d0cc54de2ffc90af3 author Stephen Hemminger Mon, 28 Aug 2006 16:19:36 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] skge: pci bus post fixes At the end of a critical section, we need to force the PCI write to complete by doing a read. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit d38efdd65aaabd82374f386d0cc54de2ffc90af3 tree 99967ff37a6a491776d790f0e40fb15747ed7ef7 parent e981d47b9f0c322bacc8398c6c25fcd355a19415 author Stephen Hemminger Mon, 28 Aug 2006 16:19:35 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] skge: cleanup suspend/resume code The code for suspend/resume needs several fixes. The hardware lock should be setup in probe only, not in resume. Interrupts should be disabled during suspend, etc. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit e981d47b9f0c322bacc8398c6c25fcd355a19415 tree 596c3996bcc781f612b1d98ce520c08dac98d893 parent 98232f85ffd0efc34c462da5ee81516f7432cec2 author shemminger@osdl.org Mon, 28 Aug 2006 10:00:53 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] sky2: version 1.7 Change version number for this bundle. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 98232f85ffd0efc34c462da5ee81516f7432cec2 tree b78073dfae9bd9cabc46520f2644172de2050551 parent d3bcfbeb27a546d02af202353381ddd91ea39b87 author shemminger@osdl.org Mon, 28 Aug 2006 10:00:52 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] sky2: pci post bug Make sure that PCI write occurs before the delay. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit d3bcfbeb27a546d02af202353381ddd91ea39b87 tree dd960a2854a075b6e46d4c1d1219cd5f6f81d74c parent 1d179332f8918a5f4e031dc068a469283b01c4c1 author shemminger@osdl.org Mon, 28 Aug 2006 10:00:51 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] sky2: power down PHY when not up To save power, don't enable power to the PHY until device is brought up. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 1d179332f8918a5f4e031dc068a469283b01c4c1 tree 004d7ec6faab91cc32609dbd2d2a9de33ec39be6 parent e07560cd4f762935968a1120168eb7d22260d85f author shemminger@osdl.org Mon, 28 Aug 2006 10:00:50 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] sky2: optimize checksum offload information Since many packets have the same checksum starting offset and insertion location; the driver can save the last information and only tell hardware when it changes. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit e07560cd4f762935968a1120168eb7d22260d85f tree fb1b41403609c550e0dffb1d6365ff8883d8e9cb parent bb507fe11ffda19eee158ce0be42d222135b7aca author shemminger@osdl.org Mon, 28 Aug 2006 10:00:49 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] sky2: TSO mss optimization The MSS in the transmit engine only has to change if TSO mtu changes. This means less commands to the chip when mixing TSO and regular data. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit bb507fe11ffda19eee158ce0be42d222135b7aca tree c31b9bcd880dd4f214ec705e9a4cbaefa95e63f9 parent 97bda706b475655088201d7bb96cb8dd6d0d1aa3 author shemminger@osdl.org Mon, 28 Aug 2006 10:00:48 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:30 -0400 [PATCH] sky2: MSI test timing The test for MSI IRQ could have timing issues. The PCI write needs to be pushed out before waiting, and the wait queue should be initialized before the IRQ. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 97bda706b475655088201d7bb96cb8dd6d0d1aa3 tree d691e4a6128a2edc45886120561a8cdc532b057b parent 497d7c8681dec5084b2e79193c2aaeddc789477f author shemminger@osdl.org Mon, 28 Aug 2006 10:00:47 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:29 -0400 [PATCH] sky2: dont use force status bit Don't use force status bit. It was never implemented on all chips, or has no impact. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 497d7c8681dec5084b2e79193c2aaeddc789477f tree cf0063f49e00f8eda26d95cceef7696fdcf15808 parent fba5008cda606488cf42b60de60b4414cc2276ad author shemminger@osdl.org Mon, 28 Aug 2006 10:00:46 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:29 -0400 [PATCH] sky2: use netdev_alloc_skb Use netdev_alloc_skb for buffer allocation to allow for headroom. This prevents bugs in code paths that assume extra space at the front and makes sky2 behave like other drivers. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit fba5008cda606488cf42b60de60b4414cc2276ad tree 0cf28b14ceac3281a97972e9b048e747fec7f5e9 parent 699a71238856b19091503c671bac8abb1e3f9a3a author shemminger@osdl.org Mon, 28 Aug 2006 10:00:45 -0700 committer Jeff Garzik Tue, 29 Aug 2006 17:18:29 -0400 [PATCH] sky2: remove cloned/pskb_expand_head check The code to handle cloned skb overwriting is unnecessary in the sky2 driver and is buggy. The bug is that pskb_expand_head can change the skb but the driver has already mapped in the header. Since the sky2 hardware doesn't need to overwrite memory, the buggy code can just be removed; it was mistakenly copied from the tg3 driver. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit c576af479162c0a11d4e2691ebc97354958d9285 tree 7d7afb028c3bcf8f5d4b42c2e9bcb5f5a9ec47d3 parent 653d5b55c0125dca97a420b9a5e77fad7adbf3f0 author Larry Finger Wed, 23 Aug 2006 23:02:40 -0500 committer John W. Linville Tue, 29 Aug 2006 17:06:34 -0400 [PATCH] bcm43xx: Set floor of wireless signal and noise at -110 dBm This patch sets the floor of wireless level (signal) and noise at -110 dBm, which makes them be comatible with RCPI, as discussed by Simon Barber. With this change, bcm43xx-softmac and bcm43xx-d80211 behave the same. Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit 653d5b55c0125dca97a420b9a5e77fad7adbf3f0 tree 628946c950a6c08087912f11c682f96fa6dce56a parent efa7e0691f476bfe39d83bf367dfd9c4fa05b43f author Larry Finger Wed, 23 Aug 2006 10:04:01 -0500 committer John W. Linville Tue, 29 Aug 2006 17:06:34 -0400 [PATCH] bcm43xx - set correct value in mac_suspended for ifdown/ifup sequence When bcm43xx-softmac is given an ifdown/ifup sequence, the value for bcm->mac_suspended ends up wrong, which leads to a large number of assert(bcm->mac_suspended>=0) messages. This one-line patch fixes this problem. Signed-off-by: Michael Buesch Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit efa7e0691f476bfe39d83bf367dfd9c4fa05b43f tree cbbee0724812d54fec0c9b4b0f0fdc04cd0527d2 parent 8b5f9171f66ce5049d306cd65010ef6cb290f18d author Zhu Yi Tue, 22 Aug 2006 17:11:56 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:34 -0400 [PATCH] ipw2200: Fix compile error when CONFIG_IPW2200_DEBUG is not selected Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 8b5f9171f66ce5049d306cd65010ef6cb290f18d tree 8d7e39196d0e90597333aa019b8bba94cc9f39fd parent 094c4d2df6c17a37d9e1b88601990ab660c00c3e author Zhu Yi Mon, 21 Aug 2006 11:39:13 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:34 -0400 [PATCH] ipw2200: Update version stamp to 1.1.4 Update version ipw2200 stamp to 1.1.4 Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 094c4d2df6c17a37d9e1b88601990ab660c00c3e tree 3c414a9e08f2b94484409655d47d00be28d140cd parent efbd809829001c94e48b96337ea05a16d5ecee85 author Zhu Yi Mon, 21 Aug 2006 11:39:03 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:34 -0400 [PATCH] ipw2200: enable wireless extension passive scan This patch enables the ipw2200 driver to support passive scanning as offered by the wireless extensions. For this, I enhanced the ipw_wx_set_scan function in such a way that it differentiates between a passive and an active scan request. Additionally, I added a new function called ipw_request_passive_scan that is similiar to the ipw_request_scan function to perform passive scans. Last but not least, I added a field (in fact it is a work_struct struct) called request_passive_scan to the ipw_priv struct. Signed-off-by: Thomas King Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit efbd809829001c94e48b96337ea05a16d5ecee85 tree 0ff04bf837a98d6f0dc3cba6154b8a373e7de8a6 parent c8c22c942e46ca0e06fc7c72845314da1ad41702 author Zhu Yi Mon, 21 Aug 2006 11:38:52 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:33 -0400 [PATCH] ipw2100: Fix deadlock detected by lockdep Fix by removing dependency between priv->action_sem and rtnl semaphore. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit c8c22c942e46ca0e06fc7c72845314da1ad41702 tree df4ed73123b9cb1cddac846c0d8c82370b638596 parent b9bec768c321e51a8da00d56230bc795464992b2 author Zhu Yi Mon, 21 Aug 2006 11:38:39 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:33 -0400 [PATCH] ipw2200: Add pci .shutdown handler If we don't disable the card in the pci .shutdown method, there might be pending interrupts still in the interrupt line after a reboot on some platform. This patch fixes the problem by disable the hardware in the pci .shutdown method. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit b9bec768c321e51a8da00d56230bc795464992b2 tree 563e306ba574d80a8ffc2515937dde3ff0971c50 parent d5f7ac203924a51d0e678338a11be42135fa7996 author Zhu Yi Mon, 21 Aug 2006 11:38:28 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:33 -0400 [PATCH] ipw2200: Fix kernel Oops if cmdlog debug is enabled When command error log debug is enabled, we write every host command and parameters into a buffer. But we didn't alloc the parameter buffer for this case. The patch adds struct cmdlog_host_cmd so that the buffer is allocated from the stack. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit d5f7ac203924a51d0e678338a11be42135fa7996 tree 89e3df3d1faaab58226bff8999b375a9dd4bbb22 parent 88a93df4cbc1342108356bda4f163d5cb78b6381 author Zhu Yi Mon, 21 Aug 2006 11:38:17 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:33 -0400 [PATCH] ipw2200: mark "iwconfig retry 255" as invalid The ipw2200 firmware/ucode only support values from 0 to 254. So mark 255 as invalid. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 88a93df4cbc1342108356bda4f163d5cb78b6381 tree c3c46fb93fc55c9f83fcf1cc591f913630507274 parent 851ca2687e224b3ad82222d9788532a0eaa05a41 author Zhu Yi Mon, 21 Aug 2006 11:38:08 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:32 -0400 [PATCH] ipw2200: remove the MAC timestamp present field from radiotap head IEEE80211_RADIOTAP_TSFT is defined as the Value in microseconds of the MAC's 64-bit 802.11 Time Synchronization Function timer when the first bit of the MPDU arrived at the MAC. Since ipw2200 hardware doesn't provide this value, we disable this feature from the radiotap header present flag. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 851ca2687e224b3ad82222d9788532a0eaa05a41 tree b389ad3cd969f55180c8a69687e64182c3ab9d89 parent 39be0aaf20c832c50e5f0a975d13013a13650865 author Zhu Yi Mon, 21 Aug 2006 11:37:58 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:32 -0400 [PATCH] ipw2200: Fix ipw2200 QOS parameters endian issue Signed-off-by: Jackie Wu Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 39be0aaf20c832c50e5f0a975d13013a13650865 tree 03a6a011f6ecc92b6f194ce5eef599a64a8bc08e parent a9f0d42321a7ac40d244a7c6d74a3d1c7a4aa4f3 author Zhu Yi Mon, 21 Aug 2006 11:37:36 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:32 -0400 [PATCH] ipw2200: remove unused struct ipw_rx_buffer Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit a9f0d42321a7ac40d244a7c6d74a3d1c7a4aa4f3 tree 1af416fbb674aaba4aa9d4023f04f40a06f35367 parent ab644b0b51bf3170b398c087b7a34be6d3c7b7ba author Zhu Yi Mon, 21 Aug 2006 11:37:26 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:32 -0400 [PATCH] ipw2200: Reassociate even if set the same essid. This patch traps the case when the essid is being set to its current value. If the essid is being set again and we are already associated, chances are some other parameters have also been altered. I think it is safer to do the re-association for this case. Signed-off-by: Bill Moss Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit ab644b0b51bf3170b398c087b7a34be6d3c7b7ba tree 00dc1725331833e7f7d04aab9e855803500d4634 parent c580f67fd7fa9deee1f4cf6b86c694b880534a82 author Zhu Yi Mon, 21 Aug 2006 11:37:13 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:31 -0400 [PATCH] ipw2200: ipw_wx_set_essid fix This patch cleanups the ipw_wx_set_essid code and forces a reassociation when setting the essid to "any". I have tested this patch with iwconfig. It makes ipw2200 compliant with all the cases mentioned in the iwconfig man page. The commands iwconfig iface essid any iwconfig iface essid -- any iwconfig iface essid off iwconfig iface essid on all seemed to work correctly. None of this worked before the patch. Note, this patch treats iwconfig iface essid iwconfig iface essid "" The same. It produces an error message: essid: Unknown host. Since an essid of "" is not mentioned in the iwconfig man page. Signed-off-by: Bill Moss Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit c580f67fd7fa9deee1f4cf6b86c694b880534a82 tree b2ff842c56d9746a56d1fb51d70d8521c9ae1598 parent 01d478338ff3eff3bade043495f0fc9e57568876 author Zhu Yi Mon, 21 Aug 2006 11:37:01 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:31 -0400 [PATCH] ipw2200: SIOCGIWFREQ ioctl returns frequency rather than channel The SIOCGIWFREQ ioctl fills the request structure's freq field by setting the exponent to 0 and the mantissa to the current channel number. The iwconfig tool works around this behaviour by looking up the frequency from the channel table if a frequency below 1kHz is returned, other tools (e.g. kwlaninfo) don't. According to the comment in the iwconfig source the driver is supposed to return the frequency, not the channel number. Signed-off-by: Ingo van Lil Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 01d478338ff3eff3bade043495f0fc9e57568876 tree ec7317a247a3758fdddaddf6877826f71e0425d8 parent f09fc44d8c25f22c4d985bb93857338ed02feac6 author Zhu Yi Mon, 21 Aug 2006 11:36:53 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:31 -0400 [PATCH] ipw2200: always enable frequently used debugging code Moving part of the debugging code from IPW_DEBUG to IPW_LL_DEBUG (low level debugging) and make IPW_DEBUG be always enabled. IPW_LL_DEBUG still needs to be enabled by selecting CONFIG_IPW2200_DEBUG. But it is highly deprecated for normal users since it adds higher debug verbosity in driver hot paths. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit f09fc44d8c25f22c4d985bb93857338ed02feac6 tree b73af3c9a258a53ad9323edae81ccb9578cf6590 parent 5a656949719bf8598ad1e93a56eb11e70a4c3208 author Zhu Yi Mon, 21 Aug 2006 11:34:19 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:31 -0400 [PATCH] ieee80211: Workaround malformed 802.11 frames from AP Stop processing further but return success when we receive a malformed packet from the AP. We need this patch to workaround some AP bugs. For example, the beacon frames from the Orinoco AP1000 contains an IE (value = 128) with length equals to 8 but the actual frame length is only 7. Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 5a656949719bf8598ad1e93a56eb11e70a4c3208 tree ea0df5c37e264903b9e82e4ec7ade946e6d39be2 parent b4328d87ec5711543b818fea2e1cf64f09d326f1 author Zhu Yi Mon, 21 Aug 2006 11:33:56 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:30 -0400 [PATCH] ieee80211: Fix TKIP and WEP decryption error on SMP machines The IEEE80211 TKIP and WEP Tx and Rx paths use the same crypto_tfm to encrypt and decrypt data. During the encrypt and decrypt process, both of them will set a new key to crypto_tfm. If they happen on the same time, it will corrupt the crypto_tfm. Thus users will receive an ICV error or Michael MIC error. This only likely to happen on SMP box with heavy traffic both on Tx and Rx. The patch use two sets of crypto_tfms to avoid this problem. Signed-off-by: Hong Liu Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit b4328d87ec5711543b818fea2e1cf64f09d326f1 tree c458073bed1b554b0f1a64fc5cd27b16181e6c90 parent 051562f7e980b53f7bc6529f2e55b68e20f5d0e6 author Zhu Yi Mon, 21 Aug 2006 11:33:09 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:30 -0400 [PATCH] ieee80211: TKIP and CCMP replay check rework Signed-off-by: Hong Liu Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 051562f7e980b53f7bc6529f2e55b68e20f5d0e6 tree 47b86d5e32a10b7b94ea3b12aaa16c6a31e44d37 parent 65b6a2775102cd81e57158ef4b1cb89641f76cfd author Zhu Yi Mon, 21 Aug 2006 11:32:47 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:30 -0400 [PATCH] ieee80211: remove ieee80211_tx() is_queue_full warning Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit 65b6a2775102cd81e57158ef4b1cb89641f76cfd tree b470e6c38ebb5efd5d7749355d1226ba15f4e355 parent b6971c2191d910714ec36b0ef50886f12c744a06 author Zhu Yi Mon, 21 Aug 2006 11:32:31 +0800 committer John W. Linville Tue, 29 Aug 2006 17:06:30 -0400 [PATCH] ieee80211: Fix header->qos_ctl endian issue Signed-off-by: Jackie Wu Signed-off-by: Zhu Yi Signed-off-by: John W. Linville commit b6971c2191d910714ec36b0ef50886f12c744a06 tree d0c3a73fd93614cbb330e661784072f9847f1338 parent 80b60fa8488e98ceaecb8f976abe79df50988037 author Larry Finger Sat, 19 Aug 2006 10:56:28 -0500 committer John W. Linville Tue, 29 Aug 2006 17:06:30 -0400 [PATCH] bcm43xx: return correct hard_start_xmit error code hard_start_xmit should return a NETIF_TX_FOO error code. Signed-off-by: Michael Buesch Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit 80b60fa8488e98ceaecb8f976abe79df50988037 tree af64ba4e3589c8b98cb9673bb3aabdffb44c7c3e parent 9c974fb1a44dc8d09c16caa4dd174b0403ba585c author Larry Finger Wed, 16 Aug 2006 11:05:16 -0500 committer John W. Linville Tue, 29 Aug 2006 17:06:29 -0400 [PATCH] bcm43xx: optimization of DMA bitfields Convert the bitfields in the bcm43xx DMA code to properly aligned u8 booleans. These flags are accessed in the DMA hotpath, so it's a good idea to waste a few bytes of memory for the sake of speed by not requiring masking (and probably shifting) of the bitfields. Signed-off-by: Michael Buesch Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit 9c974fb1a44dc8d09c16caa4dd174b0403ba585c tree 69ad62abd798583efdc32b799023e0fd4adec9d1 parent 821fe6831c02259ea0e8c2dec56173bd6037f900 author Pavel Roskin Tue, 15 Aug 2006 20:45:03 -0400 committer John W. Linville Tue, 29 Aug 2006 17:06:29 -0400 [PATCH] orinoco: include linux/if_arp.h directly Don't rely on linux/if_arp.h being included by other headers Signed-off-by: Pavel Roskin Signed-off-by: John W. Linville commit 821fe6831c02259ea0e8c2dec56173bd6037f900 tree b805af8b7c0bedf5effae7991941642b21bbf8e5 parent fb67a0f7b76647ab5ad1e2512275f672584bb4c3 author Pavel Roskin Tue, 15 Aug 2006 20:45:00 -0400 committer John W. Linville Tue, 29 Aug 2006 17:06:29 -0400 [PATCH] orinoco: Don't use "extern inline" on locking functions SPARC architecture has been fixed, so it's no longer needed. Signed-off-by: Pavel Roskin Signed-off-by: John W. Linville commit fb67a0f7b76647ab5ad1e2512275f672584bb4c3 tree e144b3d638d7b6dcd50286958a69ec20e8b13ab7 parent 7a9b8cdacfd42d44f8a615e7db8743655d7647e7 author Michael Buesch Wed, 16 Aug 2006 00:39:36 +0200 committer John W. Linville Tue, 29 Aug 2006 17:06:29 -0400 [PATCH] MAINTAINERS: Add Larry Finger for bcm43xx (softmac) Add Larry Finger to bcm43xx MAINTAINERS Remove Michael Buesch and add Larry Finger in the bcm43xx-softmac MAINTAINERS record. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 7a9b8cdacfd42d44f8a615e7db8743655d7647e7 tree a8cfcdb2cbda9ceef88b333be38e623c94187e71 parent 9218e02bd4dba86e458d9c57d66c18517fb642ff author Michael Buesch Wed, 16 Aug 2006 00:29:07 +0200 committer John W. Linville Tue, 29 Aug 2006 17:06:28 -0400 [PATCH] bcm43xx: re-add bcm43xx_rng_init() call Calls to bcm43xx_rng_init() and bcm43xx_rng_exit() got lost due to merge trouble. Re-add them. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 9218e02bd4dba86e458d9c57d66c18517fb642ff tree cb24a5ed0fe9859d4e4cdfa9470b9bd0a382fb05 parent 3b4c7d640376dbccfe80fc4f7b8772ecc7de28c5 author Michael Buesch Wed, 16 Aug 2006 00:25:16 +0200 committer John W. Linville Tue, 29 Aug 2006 17:06:28 -0400 [PATCH] bcm43xx: >1G and 64bit DMA support This is a rewrite of the bcm43xx DMA engine. It adds support for >1G of memory (for chips that support the extension bits) and 64-bit DMA (for chips that support it). Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 3b4c7d640376dbccfe80fc4f7b8772ecc7de28c5 tree d32851f791af1f1c448cf1d07a941638abe3b3a7 parent e4ac2663ea27d5dda88d97d117080995fcfcd6d5 author Sukadev Bhattiprolu Mon, 14 Aug 2006 23:12:03 -0700 committer John W. Linville Tue, 29 Aug 2006 17:06:28 -0400 [PATCH] kthread: airo.c The airo driver is currently caching a pid for later use, but with the implementation of containers, pids themselves do not uniquely identify a task. The driver is also using kernel_thread() which is deprecated in drivers. This patch essentially replaces the kernel_thread() with kthread_create(). It also stores the task_struct of the airo_thread rather than its pid. Since this introduces a second task_struct in struct airo_info, the patch renames airo_info.task to airo_info.list_bss_task. As an extension of these changes, the patch further: - replaces kill_proc() with kthread_stop() - replaces signal_pending() with kthread_should_stop() - removes thread completion synchronisation which is handled by kthread_stop(). [akpm@osdl.org: fix races] Signed-off-by: Sukadev Bhattiprolu Cc: Javier Achirica Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: John W. Linville commit e4ac2663ea27d5dda88d97d117080995fcfcd6d5 tree 74eac23956a86546ed93eac973b0bc4744b97ccc parent 4c2be501b7e8695f8bdf4f7d5f51595ed55eea44 parent d96299537e43681942ea272e00b0e529aa5b5fa4 author John W. Linville Tue, 29 Aug 2006 16:17:25 -0400 committer John W. Linville Tue, 29 Aug 2006 16:17:25 -0400 Merge branch 'from-linus' into upstream commit 2908d778ab3e244900c310974e1fc1c69066e450 tree 440d56e98414cd2a8ca711dcd6424df1982d474e parent f4ad7b5807385ad1fed0347d966e51a797cd1013 author James Bottomley Tue, 29 Aug 2006 09:22:51 -0500 committer James Bottomley Tue, 29 Aug 2006 09:52:29 -0500 [SCSI] aic94xx: new driver This is the end point of the separate aic94xx driver based on the original driver and transport class from Luben Tuikov The log of the separate development is: Alexis Bruemmer: o aic94xx: fix hotplug/unplug for expanderless systems o aic94xx: disable split completion timer/setting by default o aic94xx: wide port off expander support o aic94xx: remove various inline functions o aic94xx: use bitops o aic94xx: remove queue comment o aic94xx: remove sas_common.c o aic94xx: sas remove depot's o aic94xx: use available list_for_each_entry_safe_reverse() o aic94xx: sas header file merge James Bottomley: o aic94xx: fix TF_TMF_NO_CTX processing o aic94xx: convert to request_firmware interface o aic94xx: fix hotplug/unplug o aic94xx: add link error counts to the expander phys o aic94xx: add transport class phy reset capability o aic94xx: remove local_attached flag o Remove README o Fixup Makefile variable for libsas rename o Rename sas->libsas o aic94xx: correct return code for sas_discover_event o aic94xx: use parent backlink port o aic94xx: remove channel abstraction o aic94xx: fix routing algorithms o aic94xx: add backlink port o aic94xx: fix cascaded expander properties o aic94xx: fix sleep under lock o aic94xx: fix panic on module removal in complex topology o aic94xx: make use of the new sas_port o rename sas_port to asd_sas_port o Fix for eh_strategy_handler move o aic94xx: move entirely over to correct transport class formulation o remove last vestages of sas_rphy_alloc() o update for eh_timed_out move o Preliminary expander support for aic94xx o sas: remove event thread o minor warning cleanups o remove last vestiges of id mapping arrays o Further updates o Convert aic94xx over entirely to the transport class end device and o update aic94xx/sas to use the new sas transport class end device o [PATCH] aic94xx: attaching to the sas transport class o Add missing completion removal from prior patch o [PATCH] aic94xx: attaching to the sas transport class o Build fixes from akpm Jeff Garzik: o [scsi aic94xx] Remove ->owner from PCI info table Luben Tuikov: o initial aic94xx driver Mike Anderson: o aic94xx: fix panic on module insertion o aic94xx: stub out SATA_DEV case o aic94xx: compile warning cleanups o aic94xx: sas_alloc_task o aic94xx: ref count update o aic94xx nexus loss time value o [PATCH] aic94xx: driver assertion in non-x86 BIOS env Randy Dunlap: o libsas: externs not needed Robert Tarte: o aic94xx: sequence patch - fixes SATA support Signed-off-by: James Bottomley commit 1db2740d78c74eb11c4d0906047d9c13229a89a4 tree a20f6b5d852ea01dc1cc610db6b9f96a5842941d parent e7b4411704246e28be0eea8c83af174e1766ed86 author Auke Kok Mon, 28 Aug 2006 14:56:32 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:32 -0700 e1000: Use module param array code Use module param array code to distinguish between defaults and user specified values. Signed-off-by: Auke Kok commit e7b4411704246e28be0eea8c83af174e1766ed86 tree 88895e8bc05e1101378879f370e6cf2b3f79b8fd parent 3d1dd8cb23c30447602563fc8302af0f15fdf3a9 author Auke Kok Mon, 28 Aug 2006 14:56:30 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:30 -0700 e1000: remove unused part_num reading code Remove the code that reads part_num from the EEPROM. This part number is never displayed or queryable by the user. Signed-off-by: Auke Kok commit 3d1dd8cb23c30447602563fc8302af0f15fdf3a9 tree 8bbecd1ced0fa8715f8701a2c5198f217cabe342 parent 3fbbc72ef172cd4272a43234d4c7a7bba44c97f5 author Auke Kok Mon, 28 Aug 2006 14:56:27 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:27 -0700 e1000: error out if we cannot enable PCI device on resume Do not ignore errors returned by pci_enable_device, instead error out. Signed-off-by: Auke Kok commit 3fbbc72ef172cd4272a43234d4c7a7bba44c97f5 tree 94da5cf0359f63ae830c43be61e02fa1816da937 parent 6dd62ab063ec12bf1343d244d89e09d5c3b79f51 author Vasily Averin Mon, 28 Aug 2006 14:56:24 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:24 -0700 e1000: ring buffers resources cleanup Memory leak was found in 2.6.18-rc4 and e1000 7.2.7 from sourceforge: We should free resources allocated for previous rings if following allocation fails. Signed-off-by: Vasily Averin Signed-off-by: Andrew Morton Signed-off-by: Auke Kok commit 6dd62ab063ec12bf1343d244d89e09d5c3b79f51 tree 31a2e5b89a4529c322bd5bf026bdf124f35e644f parent 401a552b8b318d594fc44d36e3da13ad475a41f7 author Vasily Averin Mon, 28 Aug 2006 14:56:22 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:22 -0700 e1000: e1000_probe resources cleanup Fix resources cleanup in e1000_probe() Signed-off-by: Vasily Averin Signed-off-by: Andrew Morton Signed-off-by: Auke Kok commit 401a552b8b318d594fc44d36e3da13ad475a41f7 tree a8d2e8e93a7ce29bc8949bc270a8248e795cc2e7 parent 8fc897b00a7d81ffaa24e18881c2d6b10698ab0b author Vasily Averin Mon, 28 Aug 2006 14:56:19 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:19 -0700 e1000: IRQ resources cleanup irq leak was found in 2.6.18-rc4 and e1000 7.2.7 from sourceforge: if e1000_up fails in e1000_open() we do not free allocated irq Signed-off-by: Vasily Averin Signed-off-by: Andrew Morton Signed-off-by: Auke Kok commit 8fc897b00a7d81ffaa24e18881c2d6b10698ab0b tree 3dac8c72398e8a23228b2a5edd5c926c2a58675d parent 699a71238856b19091503c671bac8abb1e3f9a3a author Auke Kok Mon, 28 Aug 2006 14:56:16 -0700 committer Auke Kok Mon, 28 Aug 2006 14:56:16 -0700 e1000: Whitespace cleanup, cosmetic changes Signed-off-by: Auke Kok commit f4ad7b5807385ad1fed0347d966e51a797cd1013 tree 7661a3f739cc6fc808175a482202885ee1c3ab48 parent 8ce7a9c159c8c4eb480f0a65c6af753dbf9a1a70 author James Bottomley Fri, 25 Aug 2006 13:48:18 -0500 committer James Bottomley Sun, 27 Aug 2006 22:30:11 -0500 [SCSI] scsi_transport_sas: remove local_attached flag This flag denotes local attachment of the phy. There are two problems with it: 1) It's actually redundant ... you can get the same information simply by seeing whether a host is the phys parent 2) we condition a lot of phy parameters on it on the false assumption that we can only control local phys. I'm wiring up phy resets in the aic94xx now, and it will be able to reset non-local phys as well. I fixed 2) by moving the local check into the reset and stats function of the mptsas, since that seems to be the only HBA that can't (currently) control non-local phys. Signed-off-by: James Bottomley commit 8ce7a9c159c8c4eb480f0a65c6af753dbf9a1a70 tree be59573c0af3617d0cd8a7d61f0ed119e58b1156 parent d2afb3ae04e36dbc6e9eb2d8bd54406ff7b6b3bd parent 01da5fd83d6b2c5e36b77539f6cbdd8f49849225 author James Bottomley Sun, 27 Aug 2006 21:59:59 -0500 committer James Bottomley Sun, 27 Aug 2006 21:59:59 -0500 Merge ../linux-2.6 commit 2818c5dec5e28d65d52afbb7695bbbafe6377ee5 tree a061c7228e4716850620a06fde35fd76f7551df6 parent ea0763a7e62f60f3e166327268a80f16ad806718 author Paul Mackerras Fri, 25 Aug 2006 15:08:21 +1000 committer Paul Mackerras Fri, 25 Aug 2006 15:08:21 +1000 [POWERPC] Only offer CONFIG_BRIQ_PANEL if CONFIG_PPC_CHRP is enabled since only the briQ has a briQ front panel, and the briQ is a CHRP and is only supported if CONFIG_PPC_CHRP is set. Signed-off-by: Paul Mackerras commit ea0763a7e62f60f3e166327268a80f16ad806718 tree de54ec5e5d5a49b3cba81b096b7572852aa6f5a9 parent 271c511db9d37d6797745adb1f151a8bd2838c6f parent c85c41ad73c6db4cf4cc98c595cc5e2fdbdb53d5 author Paul Mackerras Fri, 25 Aug 2006 14:56:07 +1000 committer Paul Mackerras Fri, 25 Aug 2006 14:56:07 +1000 Merge branch 'merge' commit 271c511db9d37d6797745adb1f151a8bd2838c6f tree fe789181efeada6073cf3fb6d3d9b366e2f7a742 parent 39ed2fe62c39ac46cda00b1759806a297f38743b author Johannes Berg Tue, 22 Aug 2006 16:57:05 +0200 committer Paul Mackerras Fri, 25 Aug 2006 13:30:27 +1000 [POWERPC] make checkstack work with ARCH=powerpc This patch adds 'powerpc' architecture support to checkstack.pl. Signed-off-by: Johannes Berg Signed-off-by: Paul Mackerras commit 39ed2fe62c39ac46cda00b1759806a297f38743b tree 9afdbd66064c97a2a4951c93f3675a54146ac973 parent e2bf2e26c0915d54208315fc8c9864f1d987217a author Olaf Hering Mon, 21 Aug 2006 18:11:32 +0200 committer Paul Mackerras Fri, 25 Aug 2006 13:30:26 +1000 [POWERPC] reboot when panic_timout is set Only call into RTAS when booted with panic=0 because the RTAS call does not return. The system has to be rebooted via the HMC or via the management console right now. This is cumbersome and not what the default panic=180 is supposed to do. Signed-off-by: Olaf Hering Signed-off-by: Paul Mackerras commit e2bf2e26c0915d54208315fc8c9864f1d987217a tree 23946098081ac558faabaaadd0f1ea88416aeb72 parent 6f3d5d3cc4b1447578ae8484166bbc34a64150c5 author Stephen Rothwell Thu, 17 Aug 2006 16:28:28 +1000 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] iseries: remove some gcc 4.1 warnings gcc 4.1 produces some warnings that say it is ignoring the packed attribute on some structure elements, so, since all the elements of these structs are packed, pack the structs instead. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit 6f3d5d3cc4b1447578ae8484166bbc34a64150c5 tree 3641fb3b82081252fcb67cb8d2c66eb4d877e25c parent a0a428e30077fd64c39aadf5221cf2c7a14dc281 author Michael Ellerman Wed, 16 Aug 2006 22:04:14 +1000 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] Add a helper for calculating RTAS "config_addr" parameters Several RTAS calls take a "config_addr" parameter, which is a particular way of specifying a PCI busno, devfn and register number into a 32-bit word. Currently these are open-coded, and I'll be adding another soon, replace them with a helper that encapsulates the logic. Be more strict about masking the busno too, just in case. Booted on P5 LPAR. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras commit a0a428e30077fd64c39aadf5221cf2c7a14dc281 tree dbdc1172b705b8f1576fb43bebd2fbc83ee83995 parent 9a2ded55c40ad17b8b12f87c592a40b2e8593c4d author Stephen Rothwell Wed, 16 Aug 2006 15:24:28 +1000 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] iseries: remove const warning Just one bit of fallout from the constification of the get_property return value. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit 9a2ded55c40ad17b8b12f87c592a40b2e8593c4d tree f1fd41f15356787e68915257be26dafb0d951932 parent 869d7f381e8c32de85ddfa9621125fb10a885f87 author Michael Neuling Wed, 16 Aug 2006 23:12:14 -0500 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] powerpc: Make RTAS console init generic The rtas console doesn't have to be Cell specific. If we get both RTAS tokens, we should just enabled the console then and there. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras commit 869d7f381e8c32de85ddfa9621125fb10a885f87 tree d6997f7113e20d4a15d9f79d22bcb2819e6564ab parent f39b7a55a84e34e3074b168e30dc73b66e85261d author Jon Loeliger Tue, 15 Aug 2006 16:19:02 -0500 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] Allow MPC8641 HPCN to build with CONFIG_PCI disabled too. Signed-off-by: Jon Loeliger Signed-off-by: Paul Mackerras commit f39b7a55a84e34e3074b168e30dc73b66e85261d tree 9be321bfcd5d0404309b1514127987117c2541cc parent 2e97425197ecf85641a89e5a4868f8e147cc443f author Olof Johansson Fri, 11 Aug 2006 00:07:08 -0500 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] Cleanup CPU inits Cleanup CPU inits a bit more, Geoff Levand already did some earlier. * Move CPU state save to cpu_setup, since cpu_setup is only ever done on cpu 0 on 64-bit and save is never done more than once. * Rename __restore_cpu_setup to __restore_cpu_ppc970 and add function pointers to the cputable to use instead. Powermac always has 970 so no need to check there. * Rename __970_cpu_preinit to __cpu_preinit_ppc970 and check PVR before calling it instead of in it, it's too early to use cputable. * Rename pSeries_secondary_smp_init to generic_secondary_smp_init since everyone but powermac and iSeries use it. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit 2e97425197ecf85641a89e5a4868f8e147cc443f tree 491defe1ac72de19380dafe7053d3dac497ecf82 parent 9e6ee340194e8bd8f463b55c6d028272c0e64155 author Olof Johansson Fri, 11 Aug 2006 00:03:01 -0500 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] Rename cpu_setup_power4.S to cpu_setup_ppc970.S Rename cpu_setup_power4.S to cpu_setup_ppc970.S, since that's really what it is. No functional or other changes. Signed-off-by: Olof Johansson Signed-off-by: Paul Mackerras commit 9e6ee340194e8bd8f463b55c6d028272c0e64155 tree 5e51b6d0b1cbe7076e4f36eeec0f10964eaa8dc9 parent 11a27ad782fc7ae4b7d6ac8fefad4ceb415300d6 author Geoff Levand Wed, 09 Aug 2006 15:28:13 -0700 committer Paul Mackerras Fri, 25 Aug 2006 13:27:35 +1000 [POWERPC] cell: interrupt.c whitespace clean up Whitespace clean up for cell/interrupt.c. Signed-off-by: Geoff Levand Signed-off-by: Paul Mackerras commit 11a27ad782fc7ae4b7d6ac8fefad4ceb415300d6 tree 10e3f8925e8b659a833017ceb674edbbe2fd3c82 parent 32bc6e095d75233e7c87cc6fa0e07942b124d194 author Michael Neuling Wed, 09 Aug 2006 17:00:30 +1000 committer Paul Mackerras Fri, 25 Aug 2006 13:17:08 +1000 [POWERPC] SLB shadow buffer cleanup Cleanup some of the #define magic as suggested by Milton. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras commit e889173c2c67dc288e9b050ab066cfae151b047e tree 1d7dbd8a39d59ebc8573ffa6bac6236709e7bdba parent cca3974e48607c3775dc73b544a5700b2e37c21a author Jeff Garzik Thu, 24 Aug 2006 03:55:09 -0400 committer Jeff Garzik Thu, 24 Aug 2006 03:55:09 -0400 Rename libata-bmdma.c to libata-sff.c. Signed-off-by: Jeff Garzik commit cca3974e48607c3775dc73b544a5700b2e37c21a tree 0777d6121ba199af0aad196eb5a693510ec8e62e parent 54a86bfc3d4601be9c36cd4e8a1bdc580c98fa6a author Jeff Garzik Thu, 24 Aug 2006 03:19:22 -0400 committer Jeff Garzik Thu, 24 Aug 2006 03:19:22 -0400 libata: Grand renaming. The biggest change is that ata_host_set is renamed to ata_host. * ata_host_set => ata_host * ata_probe_ent->host_flags => ata_probe_ent->port_flags * ata_probe_ent->host_set_flags => ata_probe_ent->_host_flags * ata_host_stats => ata_port_stats * ata_port->host => ata_port->scsi_host * ata_port->host_set => ata_port->host * ata_port_info->host_flags => ata_port_info->flags * ata_(.*)host_set(.*)\(\) => ata_\1host\2() The leading underscore in ata_probe_ent->_host_flags is to avoid reusing ->host_flags for different purpose. Currently, the only user of the field is libata-bmdma.c and probe_ent itself is scheduled to be removed. ata_port->host is reused for different purpose but this field is used inside libata core proper and of different type. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 54a86bfc3d4601be9c36cd4e8a1bdc580c98fa6a tree 41956fc365923a8c85037c51b8085076d7d8a303 parent 81ce3c4b4d3771866ce74b1c3856b45c3e2549fc parent ac2164d5e425fa4755bdbab9641d8dab7239b6f5 author Jeff Garzik Thu, 24 Aug 2006 02:51:38 -0400 committer Jeff Garzik Thu, 24 Aug 2006 02:51:38 -0400 Merge branch 'upstream-fixes' into upstream commit 81ce3c4b4d3771866ce74b1c3856b45c3e2549fc tree 4ffcee8ec06cdd0edc1a3d2d215e08b04f9ecf41 parent 281d426c7e64286f433645e27862e7744b1e9310 author Jeff Garzik Thu, 24 Aug 2006 02:41:25 -0400 committer Jeff Garzik Thu, 24 Aug 2006 02:41:25 -0400 Clean up drivers/ata/Kconfig a bit. commit 281d426c7e64286f433645e27862e7744b1e9310 tree 580dcab54f53c2e6d056139294aad2416402e4bd parent 08be09b7c38a71b1677285c10a08725833ff9b95 author Alexey Dobriyan Mon, 14 Aug 2006 22:49:30 -0700 committer Jeff Garzik Thu, 24 Aug 2006 02:37:03 -0400 [PATCH] CONFIG_PM=n slim: drivers/scsi/sata_sil* Remove some code which is unneeded if CONFIG_PM=n. Signed-off-by: Alexey Dobriyan Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 08be09b7c38a71b1677285c10a08725833ff9b95 tree 69a646c4dae51904477e1ae24605f28b0b07292b parent 58707cceeef22bd5e85a7f41491e9c3ff57772f9 author Jay Cliburn Mon, 07 Aug 2006 22:08:30 -0500 committer Jeff Garzik Thu, 24 Aug 2006 02:27:50 -0400 [PATCH] sata_via: Add SATA support for vt8237a This patch adds support for the VIA Technologies VT8237A SATA controller, used, for example, on the ASUS M2V socket AM2 motherboard. Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik commit 699a71238856b19091503c671bac8abb1e3f9a3a tree db0e6db06961db05c35f3df61e7f14b845b7cd29 parent 85a7ea1b0a3263f3ad423b789a841d03c9acbb65 parent 891b11f619dcfe045015394fa89041f02dac9428 author Jeff Garzik Thu, 24 Aug 2006 00:45:36 -0400 committer Jeff Garzik Thu, 24 Aug 2006 00:45:36 -0400 Merge branch 'upstream-fixes' of git://lost.foo-projects.org/~ahkok/git/netdev-2.6 into tmp commit 85a7ea1b0a3263f3ad423b789a841d03c9acbb65 tree 1bd6e9fca08067157425fee973cf68594c827829 parent c58ac5caeb32ef17c2e4fc208f7dc93f6de32b7d author Brice Goglin Mon, 21 Aug 2006 17:36:56 -0400 committer Jeff Garzik Thu, 24 Aug 2006 00:43:51 -0400 [PATCH] myri10ge: use multicast support in the firmware Some recent myri10ge firmwares support multicast filtering as well as an extended mcp_irq_data structure (64 instead of 40 bytes). The new command MXGEFW_CMD_SET_STATS_DMA_V2 is used to check whether the firmware support those. mgp->fw_multicast_support is defined accordingly. When fw_multicast_support is set, some new multicast filtering commands is passed to the board in myri10ge_set_multicast_list(). Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit c58ac5caeb32ef17c2e4fc208f7dc93f6de32b7d tree b31514090620ca564bfe75ba970b843800e51015 parent 8d8b03297c96811501e3821edd4602b315458030 author Brice Goglin Mon, 21 Aug 2006 17:36:49 -0400 committer Jeff Garzik Thu, 24 Aug 2006 00:43:51 -0400 [PATCH] myri10ge: use netif_msg_link Add msg_enable and use netif_msg_link to enable/disable reporting of link status changes since some Ethernet switches seem to generate a lot of status changes under some circumstances and some people want to avoid useless flooding in the logs. Also add a counter for link status changes to statistics. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit 8d8b03297c96811501e3821edd4602b315458030 tree 241e690a9b7957d48b6069940871f37aa9c7df5a parent c67eebd67400c4c2ae1389317f1de0cbb3b7a1ca parent 357eb4cf75fdb9dbe46b64d50f3670de6a45dc91 author Jeff Garzik Thu, 24 Aug 2006 00:42:07 -0400 committer Jeff Garzik Thu, 24 Aug 2006 00:42:07 -0400 Merge branch 'upstream-fixes' into upstream commit 4c2be501b7e8695f8bdf4f7d5f51595ed55eea44 tree d111c2d4601c1e1bdbfbbd585afaee9a8be6f2a6 parent 69758820a42da207bdc775d6eccf1f9fb67cd62e parent 9b5cce07648d059a013444116bd0140b047b25a1 author John W. Linville Wed, 23 Aug 2006 14:22:14 -0400 committer John W. Linville Wed, 23 Aug 2006 14:22:14 -0400 Merge branch 'upstream-fixes' into upstream commit 69758820a42da207bdc775d6eccf1f9fb67cd62e tree 4c4dd2b596aa5535231656bf0fa1bc65a8b17471 parent 113b898e38cb20e80847c24154ce62273b948c6a parent ef7d1b244fa6c94fb76d5f787b8629df64ea4046 author John W. Linville Tue, 22 Aug 2006 14:42:36 -0400 committer John W. Linville Tue, 22 Aug 2006 14:42:36 -0400 Merge branch 'from-linus' into upstream commit 58707cceeef22bd5e85a7f41491e9c3ff57772f9 tree 85bedf4f7c0f7620059f786fbd8779d7217f45e9 parent f89b2b5ddcace8959f760c0556369bd19bda0548 author Henrik Kretzschmar Mon, 21 Aug 2006 18:39:26 -0700 committer Jeff Garzik Tue, 22 Aug 2006 06:11:17 -0400 [PATCH] libata: change path to libata in libata.tmpl Since libata moved from /drivers/scsi to /drivers/ata this template is broken. Signed-off-by: Henrik Kretzschmar Acked-by: Randy Dunlap Acked-by: Alan Cox Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit f89b2b5ddcace8959f760c0556369bd19bda0548 tree 520c9530340056a9cc3f86f65027d22fd401b0a4 parent 7796705244d1f04053acf24bee7eb2983f9cfeaf parent f1a58ecae527fc67c87ce4dcb9e73894f64aadfe author Jeff Garzik Tue, 22 Aug 2006 06:10:49 -0400 committer Jeff Garzik Tue, 22 Aug 2006 06:10:49 -0400 Merge branch 'upstream-fixes' into upstream Conflicts: drivers/ata/ata_piix.c commit d2afb3ae04e36dbc6e9eb2d8bd54406ff7b6b3bd tree 661a4634bcec8202c07db8e9aba71064c550ec66 parent 4041b9cd87d97a7c73a5bf5a9305dffee2599386 author Daniel Walker Mon, 14 Aug 2006 23:09:23 -0700 committer James Bottomley Sat, 19 Aug 2006 16:18:28 -0600 [SCSI] BusLogic gcc 4.1 warning fixes - Reworked all the very long lines in that block (this drivers full of them though) - Returns an error in three places that it didn't before. - Properly clean up after a scsi_add_host() failure. Signed-off-by: Daniel Walker Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit c67eebd67400c4c2ae1389317f1de0cbb3b7a1ca tree 6110d2bf15227860a80e880c3bb01147f32039c3 parent 1fb0a6c8c6fe08ae1a5c20f5bdb05a287df3b828 author Komuro Wed, 16 Aug 2006 13:54:11 +0900 committer Jeff Garzik Sat, 19 Aug 2006 17:52:05 -0400 [PATCH] network: axnet_cs.c: add new id (0x021b, 0x0202) Signed-off-by: komurojun-mbn@nifty.com Signed-off-by: Jeff Garzik commit 1fb0a6c8c6fe08ae1a5c20f5bdb05a287df3b828 tree ddb34baf5704fa755c96cedb14aa913c4fea65a0 parent 299176206b266f204be859adf9e66efd06628ab2 parent a76b044af147135b5fb7570aba35d4908f143cc9 author Jeff Garzik Sat, 19 Aug 2006 17:51:34 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:51:34 -0400 Merge branch 'upstream-fixes' into upstream commit 7796705244d1f04053acf24bee7eb2983f9cfeaf tree b6d9dc2986a22bd3fd2352f9246a59621d959c23 parent 499792ec6dc737467e5486527cef95ed7d74fba9 author Tejun Heo Sat, 19 Aug 2006 03:54:39 +0900 committer Jeff Garzik Sat, 19 Aug 2006 17:50:18 -0400 [PATCH] libata: s/CONFIG_SCSI_SATA/CONFIG_[S]ATA/g in pci/quirks.c drivers/pci/quirks.c was not updated when libata config constants were renamed braking several libata quirks. Fix it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 299176206b266f204be859adf9e66efd06628ab2 tree e25d9ee1c43940e00e70124a18d869a75de543ab parent 5243a37b7991c85e3ea3afb6e3e13eea7ec2927d author Jeff Garzik Sat, 19 Aug 2006 17:48:59 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:48:59 -0400 drivers/net: Remove deprecated use of pci_module_init() From: Michal Piotrowski Signed-off-by: Michal Piotrowski Signed-off-by: Jeff Garzik commit 5243a37b7991c85e3ea3afb6e3e13eea7ec2927d tree f00a3c22acf4f5297752ee935dd24ef5012efd87 parent a513c315f95c6d73041436fd1598d51722bd6264 author Henrik Kretzschmar Tue, 15 Aug 2006 11:41:11 +0200 committer Jeff Garzik Sat, 19 Aug 2006 17:46:33 -0400 [PATCH] remove an unused function from the header Removes an unused function from the via-velocity-driver. It doesn't make the binary smaller, but the source cleaner. Signed-off-by: Henrik Kretzschmar Signed-off-by: Jeff Garzik commit a513c315f95c6d73041436fd1598d51722bd6264 tree 505f9a15c1771756cf21011e3f291b81c86cb3df parent fd6746daade513bf7f887625c107878b6aacccfd parent 113b898e38cb20e80847c24154ce62273b948c6a author Jeff Garzik Sat, 19 Aug 2006 17:46:13 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:46:13 -0400 Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream commit fd6746daade513bf7f887625c107878b6aacccfd tree ee192025b75d54d2db00f6d19b8b307366af1599 parent e700f9f4a208bf6c5d2b4dd67816555930524476 author Brice Goglin Mon, 14 Aug 2006 17:53:15 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:45:17 -0400 [PATCH] myri10ge: convert to netdev_alloc_skb Convert the myri10ge driver to use netdev_alloc_skb instead of dev_alloc_skb, which requires to propagate the net_device across several functions. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit e700f9f4a208bf6c5d2b4dd67816555930524476 tree 58fb624280c4295b8975d18055ac323959cd2e9f parent 846050dd49719b1f68248807bba5c27bfc86f81a author Brice Goglin Mon, 14 Aug 2006 17:52:54 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:45:17 -0400 [PATCH] myri10ge: define some previously hardwired firmware constants Define some previously hardwired firmware constants. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit 846050dd49719b1f68248807bba5c27bfc86f81a tree 79922936e8cde867ba90d753f79aa61f575e162b parent 49666145de54b5d6d256442bb1bec03ffae1ac76 parent 2ca2d5e84c19ddbc0126087af6288533a05f1799 author Jeff Garzik Sat, 19 Aug 2006 17:45:11 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:45:11 -0400 Merge branch 'upstream-fixes' into upstream commit 499792ec6dc737467e5486527cef95ed7d74fba9 tree b88c4ef9d4491c17f71d26d33e73f05f7c7ea6a0 parent 421b20b9c44b3fcdc07d6af875dad5ae86fad014 parent d14b50cc60ca465290fcdb3b88e7d5fb684361ed author Jeff Garzik Sat, 19 Aug 2006 17:27:27 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:27:27 -0400 Merge branch 'upstream-fixes' into upstream commit 49666145de54b5d6d256442bb1bec03ffae1ac76 tree b79bcaabffa18847cab31efdf798dc5740e8d73b parent bcd68373877e74d8ca5039c10dc5d699ba5dc7d0 parent 41ace1861a93f12f70ff10026fb1539fea38fcf8 author Jeff Garzik Sat, 19 Aug 2006 17:25:47 -0400 committer Jeff Garzik Sat, 19 Aug 2006 17:25:47 -0400 Merge branch 'upstream-fixes' into upstream commit 4041b9cd87d97a7c73a5bf5a9305dffee2599386 tree 8f385a2f120dafd6fcad27e2896c960993939121 parent b8d08210126a7b769b857720a59721a453a57a1e author Michal Piotrowski Thu, 17 Aug 2006 13:28:22 +0000 committer James Bottomley Sat, 19 Aug 2006 13:44:54 -0700 [SCSI] megaraid_sas: pci_module_init to pci_register_driver conversion Signed-off-by: Michal Piotrowski Acked-by: "Patro, Sumant" Signed-off-by: James Bottomley commit b8d08210126a7b769b857720a59721a453a57a1e tree d68487391ade14febcce5894e8e16d75e4224d4b parent f3d7271c5ac9029d19fc0252a85bc045334382cc author James Smart Thu, 17 Aug 2006 08:00:43 -0400 committer James Bottomley Sat, 19 Aug 2006 13:43:10 -0700 [SCSI] fc transport: add fc_host system_hostname attribute and u64_to_wwn() This patch updates the fc transport for the following: - Addition of a new attribute "system_hostname" which can be used to set the fully qualified hostname that the fc_host is attached to. The fc_host can then register this string as the FDMI-based host name attribute. Note: for NPIV, a fc_host could be associated with a system which is not the local system. - Add the inline function u64_to_wwn(), which is the inverse of the existing wwn_to_u64() function. - Slight reorg, just to keep dynamic attributes with each other, etc Signed-off-by: James Smart Signed-off-by: James Bottomley commit f3d7271c5ac9029d19fc0252a85bc045334382cc tree 9cc47ccdd7de9e27f31db4beb50a9af3e24f0bd4 parent 2b6ee9b5295460017fc1bc3d60545512df280908 author Henrik Kretzschmar Tue, 15 Aug 2006 11:17:21 +0200 committer James Bottomley Sat, 19 Aug 2006 13:42:00 -0700 [SCSI] convert to PCI_DEVICE() macro Convert the pci_device_id-table of the megaraid_sas-driver to the PCI_DEVICE-macro, to safe some lines. Signed-off-by: Henrik Kretzschmar Acked-by: "Patro, Sumant" Signed-off-by: James Bottomley commit 2b6ee9b5295460017fc1bc3d60545512df280908 tree 157cc851ac58932de7c1daaf971f5d784e5a77ab parent 016131b8fffa1085b4ad165ab228116fdc278ebe author Randy Dunlap Mon, 14 Aug 2006 23:09:23 -0700 committer James Bottomley Sat, 19 Aug 2006 13:41:08 -0700 [SCSI] aic7*: cleanup MODULE_PARM_DESC strings Modify beginning string to be more readable. Remove one trailing newline. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 016131b8fffa1085b4ad165ab228116fdc278ebe tree 3fcd7eadc0524e29d0d3c5ba8e67833b4ccf6f1a parent a2f5d4d94f0ab9560b9a99d73d5b86b377c7f201 author James Smart Mon, 14 Aug 2006 08:20:25 -0400 committer James Bottomley Sat, 19 Aug 2006 13:40:07 -0700 [SCSI] fc transport: convert fc_host symbolic_name attribute to a dynamic attribute Signed-off-by: James Bottomley commit a2f5d4d94f0ab9560b9a99d73d5b86b377c7f201 tree 2a0cc44f528f181d836f25a090f0da783c1e8a87 parent 84961f28e9d13a4b193d0c8545f3c060c1890ff3 author Dave Jones Thu, 10 Aug 2006 21:41:13 -0400 committer James Bottomley Sat, 19 Aug 2006 13:39:11 -0700 [SCSI] remove unnecessary includes of linux/config.h from drivers/scsi/ kbuild includes this automatically these days. Signed-off-by: Dave Jones Signed-off-by: James Bottomley commit 84961f28e9d13a4b193d0c8545f3c060c1890ff3 tree 11ad36484d5a891a2455d876dfd9cf6fd82f51f3 parent 8c867b257d159ca04602d7087fa29f846785f9ea author dave wysochanski Wed, 09 Aug 2006 14:56:32 -0400 committer James Bottomley Sat, 19 Aug 2006 13:37:40 -0700 [SCSI] Don't add scsi_device for devices that return PQ=1, PDT=0x1f Some targets may return slight variations of PQ and PDT to indicate no LUN mapped. USB UFI setting PDT=0x1f but having reserved bits for PQ is one example, and NetApp targets returning PQ=1 and PDT=0x1f is another. Both instances seem like reasonable responses according to SPC-3 and UFI specs. The current scsi_probe_and_add_lun() code adds a scsi_device for targets that return PQ=1 and PDT=0x1f. This causes LUNs of type "UNKNOWN" to show up in /proc/scsi/scsi when no LUNs are mapped. In addition, subsequent rescans fail to recognize LUNs that may be added on the target, unless preceded by a write to the delete attribute of the "UNKNOWN" LUN. This patch addresses this problem by skipping over the scsi_add_lun() when PQ=1,PDT=0x1f is encountered, and just returns SCSI_SCAN_TARGET_PRESENT. Signed-off-by: Dave Wysochanski Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley commit 8c867b257d159ca04602d7087fa29f846785f9ea tree 4c95fc920744556d718b8d63371a6b525524cfbe parent 90ee346651524eb275405d410f5d3bb6765a2d93 author Mark Haverkamp Thu, 03 Aug 2006 08:03:30 -0700 committer James Bottomley Sat, 19 Aug 2006 13:35:11 -0700 [SCSI] aacraid: Reset adapter in recovery timeout Received from Mark Salyzyn If the adapter is in blinkled (Firmware Assert) when error recovery timeout actions have been triggered, perform an adapter warm reset and restart the initialization. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 90ee346651524eb275405d410f5d3bb6765a2d93 tree ff78b321da9aafb44dfbe593f0c7dbe7f88f053e parent 8c23cd7457151fc8ace79ec700a8aeaa9fc5b3d9 author Mark Haverkamp Thu, 03 Aug 2006 08:03:07 -0700 committer James Bottomley Sat, 19 Aug 2006 13:33:45 -0700 [SCSI] aacraid: Check for unlikely errors Received from Mark Salyzyn The enclosed patch cleans up some code fragments, adds some paranoia (unproven causes of potential driver failures). Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 8c23cd7457151fc8ace79ec700a8aeaa9fc5b3d9 tree f957cbf36472ef63872f71d444b0bb75ed594ab4 parent c8f7b073e0e81499474a84ee2a90f77f7805c7f8 author Mark Haverkamp Tue, 08 Aug 2006 08:52:14 -0700 committer James Bottomley Sat, 19 Aug 2006 13:33:13 -0700 [SCSI] aacraid: Restart adapter on firmware assert (Update 2) Received from Mark Salyzyn If the adapter should be in a blinkled (Firmware Assert) state when the driver loads, we will perform a warm restart of the Adapter Firmware to see if we can rescue the adapter. Possible causes of a blinkled can occur on some early release motherboard BIOSes, transitory PCI bus problems on embedded systems or non-x86 based architectures, transitory startup failures of early release drives or transitory hardware failures; some of which can bite the adapter later at runtime. Future enhancements will include recovery during runtime. Fixed extra whitespace space issue. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit c8f7b073e0e81499474a84ee2a90f77f7805c7f8 tree c5421bd69530488d78b76ffab3ebb9fa08000fc7 parent 04846f25920d4b05d6040c531cc601049260db52 author Mark Haverkamp Thu, 03 Aug 2006 08:02:24 -0700 committer James Bottomley Sat, 19 Aug 2006 13:32:57 -0700 [SCSI] aacraid: interruptible ioctl Received from Mark Salyzyn This patch allows the FSACTL_SEND_LARGE_FIB, FSACTL_SENDFIB and FSACTL_SEND_RAW_SRB ioctl calls into the aacraid driver to be interruptible. Only necessary if the adapter and/or the management software has gone into some sort of misbehavior and the system is being rebooted, thus permitting the user management software applications to be killed relatively cleanly. The FIB queue resource is held out of the free queue until the adapter finally, if ever, completes the command. Signed-off-by: Mark Haverkamp Signed-off-by: James Bottomley commit 04846f25920d4b05d6040c531cc601049260db52 tree a41cc37bceb14caf39316212fdee6be480d5137f parent 19ac0db3e22de3b00cc4aadc7efbad0420c7aa08 author Andreas Herrmann Wed, 09 Aug 2006 17:31:16 +0200 committer James Bottomley Sat, 19 Aug 2006 13:31:53 -0700 [SCSI] limit recursion when flushing shost->starved_list Attached is a patch that should limit a possible recursion that can lead to a stack overflow like follows: Kernel stack overflow. CPU: 3 Not tainted Process zfcperp0.0.d819 (pid: 13897, task: 000000003e0d8cc8, ksp: 000000003499dbb8) Krnl PSW : 0404000180000000 000000000030f8b2 (get_device+0x12/0x48) Krnl GPRS: 00000000135a1980 000000000030f758 000000003ed6c1e8 0000000000000005 0000000000000000 000000000044a780 000000003dbf7000 0000000034e15800 000000003621c048 070000003499c108 000000003499c1a0 000000003ed6c000 0000000040895000 00000000408ab630 000000003499c0a0 000000003499c0a0 Krnl Code: a7 fb ff e8 a7 19 00 00 b9 02 00 22 e3 e0 f0 98 00 24 a7 84 Call Trace: ([<000000004089edc2>] scsi_request_fn+0x13e/0x650 [scsi_mod]) [<00000000002c5ff4>] blk_run_queue+0xd4/0x1a4 [<000000004089ff8c>] scsi_queue_insert+0x22c/0x2a4 [scsi_mod] [<000000004089779a>] scsi_dispatch_cmd+0x8a/0x3d0 [scsi_mod] [<000000004089f1ec>] scsi_request_fn+0x568/0x650 [scsi_mod] ... [<000000004089f1ec>] scsi_request_fn+0x568/0x650 [scsi_mod] [<00000000002c5ff4>] blk_run_queue+0xd4/0x1a4 [<000000004089ff8c>] scsi_queue_insert+0x22c/0x2a4 [scsi_mod] [<000000004089779a>] scsi_dispatch_cmd+0x8a/0x3d0 [scsi_mod] [<000000004089f1ec>] scsi_request_fn+0x568/0x650 [scsi_mod] [<00000000002c5ff4>] blk_run_queue+0xd4/0x1a4 [<000000004089fa9e>] scsi_run_host_queues+0x196/0x230 [scsi_mod] [<00000000409eba28>] zfcp_erp_thread+0x2638/0x3080 [zfcp] [<0000000000107462>] kernel_thread_starter+0x6/0xc [<000000000010745c>] kernel_thread_starter+0x0/0xc <0>Kernel panic - not syncing: Corrupt kernel stack, can't continue. This stack overflow occurred during tests on s390 using zfcp. Recursion depth for this panic was 19. Usually recursion between blk_run_queue and a request_fn is avoided using QUEUE_FLAG_REENTER. But this does not help if the scsi stack tries to flush the starved_list of a scsi_host. Limit recursion depth when flushing the starved_list of a scsi_host. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 891b11f619dcfe045015394fa89041f02dac9428 tree b4b9c10c42d2ab2e68671055510183d0a11cb5a2 parent 3ae84d9269592a1284892c93597a604a894f1102 author Auke Kok Wed, 16 Aug 2006 13:47:31 -0700 committer Auke Kok Wed, 16 Aug 2006 13:47:31 -0700 ixgb: Increment version to 1.0.109-k4 Signed-off-by: Auke Kok commit 3ae84d9269592a1284892c93597a604a894f1102 tree e6bb8f5adf7b944ff21b25b0a4586529efceeefb parent 0fe198a5e10229b269624a18bbd390001a8d3476 author Jesse Brandeburg Wed, 16 Aug 2006 13:47:25 -0700 committer Auke Kok Wed, 16 Aug 2006 13:47:25 -0700 ixgb: fix cache miss due to miscalculation Reduce writeback threshold by 1. We were instructing the hardware to wait until the 17th descriptor which went over the cache line limit. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit 0fe198a5e10229b269624a18bbd390001a8d3476 tree 80d96642bec0829a89082a121c78c4aeaa067e0b parent dc335d9735220b3a9ece5ec2d95864b1e8ff06a0 author Manasi Deval Wed, 16 Aug 2006 13:47:20 -0700 committer Auke Kok Wed, 16 Aug 2006 13:47:20 -0700 ixgb: Add CX4 PHY type detection and subdevice ID. Signed-off-by: Manasi Deval Signed-off-by: Auke Kok commit dc335d9735220b3a9ece5ec2d95864b1e8ff06a0 tree 3a5ea5a43370be5507f03c9a060ca8f1544af3e7 parent 600c977c0801210602d7502f9c978c2b8c31a209 author Auke Kok Wed, 16 Aug 2006 13:39:09 -0700 committer Auke Kok Wed, 16 Aug 2006 13:39:09 -0700 e1000: Increment driver version to 7.1.9-k6 Signed-off-by: Auke Kok commit 600c977c0801210602d7502f9c978c2b8c31a209 tree ff7a270e51012a4e10717e68ff9a0a2a7d57dd82 parent 7820d4281a0d746a92992a9117aec007628ae3fe author Jeff Kirsher Wed, 16 Aug 2006 13:39:04 -0700 committer Auke Kok Wed, 16 Aug 2006 13:39:04 -0700 e1000: Disable aggressive clocking on esb2 with SERDES port Disable aggressive clocking on esb2 with SERDES port as it causes hardware problems. Signed-off-by: Jeff Kirsher Signed-off-by: Auke Kok commit 7820d4281a0d746a92992a9117aec007628ae3fe tree 4691b2f0f5a81ee508e360a3373c6364c146c1db parent c9c1b834c7b6e00badfd9a775682644f192f0357 author Jeff Kirsher Wed, 16 Aug 2006 13:39:00 -0700 committer Auke Kok Wed, 16 Aug 2006 13:39:00 -0700 e1000: Force full DMA clocking for 10/100 speed Signed-off-by: Jeff Kirsher Signed-off-by: Auke Kok commit c9c1b834c7b6e00badfd9a775682644f192f0357 tree 7e4f827b726c355bfea01f4229c23f9e5a9d171c parent 1a821ca59593d307e564800c2f25ed1f9e1e2a6f author Jeff Kirsher Wed, 16 Aug 2006 13:38:54 -0700 committer Auke Kok Wed, 16 Aug 2006 13:38:54 -0700 e1000: Allow NVM to setup LPLU for IGP2 and IGP3 Allow NVM to setup LPLU for IGP2 and IGP3. Only IGP needs LPLU D3 disabled during init here. Signed-off-by: Jeff Kirsher Signed-off-by: Auke Kok commit 1a821ca59593d307e564800c2f25ed1f9e1e2a6f tree 371bbd22f21c1b1883acfe44cbefe8991006a232 parent d658266ed6144f9dbc785c7d5bb6e8e5e2e7f3cf author Jesse Brandeburg Wed, 16 Aug 2006 13:38:46 -0700 committer Auke Kok Wed, 16 Aug 2006 13:38:46 -0700 e1000: explicit locking for two ethtool path functions Explicitly lock two more ethtool entry points completely instead of the hardware reset only to prevent a race condition. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok commit d658266ed6144f9dbc785c7d5bb6e8e5e2e7f3cf tree 1b61f68c5339e7591bebafc87de807c144b9fa0b parent 673a052fde79ab5e9dce569b0336358812ddba2d author Jesse Brandeburg Wed, 16 Aug 2006 13:31:33 -0700 committer Auke Kok Wed, 16 Aug 2006 13:31:33 -0700 e1000: Explicitly power up the PHY during loopback testing. Signed-off-by: Jesse Brandeburg commit 673a052fde79ab5e9dce569b0336358812ddba2d tree 836a6f7f333a47d530a72cfe86ab86a2fec12370 parent e15fdd0391dfeb0d439ecac759fb88aca7930f2f author Jeff Kirsher Wed, 16 Aug 2006 11:28:49 -0700 committer Auke Kok Wed, 16 Aug 2006 11:28:49 -0700 e1000: Remove 0x1000 as supported device Remove pci ID 8086:1000 from the list fo supported devices. This device has not functioned with the driver for very long (since v. 5.2.4!) and we lack the resources to come with a substantial fix. There are only few cards of this type out there. Signed-off-by: Jeff Kirsher Signed-off-by: Auke Kok commit e15fdd0391dfeb0d439ecac759fb88aca7930f2f tree 3b42be6be895960c308951e8912ae609128d4d13 parent 4e1dc97d5e0dd5b1cf78e67ea8f12ca9697c9eee author Auke Kok Wed, 16 Aug 2006 11:28:45 -0700 committer Auke Kok Wed, 16 Aug 2006 11:28:45 -0700 e1000: Same cosmetic fix as earlier sent out for IPV4. Signed-off-by: Auke Kok commit 4e1dc97d5e0dd5b1cf78e67ea8f12ca9697c9eee tree 5ba98856e3f699b4d6a5283f65d9a90e703511ab parent 60ffa478759f39a2eb3be1ed179bc3764804b2c8 author Auke Kok Wed, 16 Aug 2006 11:28:35 -0700 committer Auke Kok Wed, 16 Aug 2006 11:28:35 -0700 e100: increment version to 3.5.10-k4 Increment the version of e100 to 3.5.10-k4, increment dates. Signed-off-by: Auke Kok commit 60ffa478759f39a2eb3be1ed179bc3764804b2c8 tree 6195728e45ff7228968a164e44f48bc8bd9b7ca9 parent 09e590e5d5a93f2eaa748a89c623258e6bad1648 author Jeff Kirsher Wed, 16 Aug 2006 11:28:14 -0700 committer Auke Kok Wed, 16 Aug 2006 11:28:14 -0700 e100: Fix MDIO/MDIO-X MDIO/MDIO-X was broken due to a wrong errata. Removing the workaround code fixes for affected NICs. Signed-off-by: Jeff Kirsher Signed-off-by: Auke Kok commit 113b898e38cb20e80847c24154ce62273b948c6a tree b1b498b4d5286fcd21cfafe63a275ad2974869c1 parent c48cf125146852424bfe8e02033c6065dd0a4021 author Michael Wu Sun, 13 Aug 2006 23:27:17 -0700 committer John W. Linville Mon, 14 Aug 2006 15:43:23 -0400 [PATCH] ray_cs: Remove dependency on ieee80211 This patch removes the dependency on ieee80211.h from the ray_cs driver. ray_cs only needs iw_handler.h. Signed-off-by: Michael Wu Signed-off-by: John W. Linville commit c48cf125146852424bfe8e02033c6065dd0a4021 tree a6c94c29648f1fe3b16ea5384812947f3e15819c parent 943599ee2c3a018fd09c25d7a9e8703792dd618e author Ulrich Kunitz Sat, 12 Aug 2006 18:00:17 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:23 -0400 [PATCH] zd1211rw: cleanups Add static to 2 internal functions. Thanks goes to Adrian Bunk, who found that. Also made some modifications to the clear functions: After a discussion on the mailing list, I implemented this code to have on the one hand sufficient test in debug mode, but on the other hand reduce the overhead for structure clearing to a minimum. A new macro ZD_MEMCLEAR is introduced, which produces code if DEBUG is set. Locks are not set anymore for structure clearing, but in debug mode, there is a verification, that the locks have not been set. Finally, removed a misleading comment regarding locking in the disconnect path. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 943599ee2c3a018fd09c25d7a9e8703792dd618e tree 38fb45f68986e4565c53046994eed408646e493d parent a1030e92c1507eb4a3c15d0a7d62987f671b609c author Ulrich Kunitz Sat, 12 Aug 2006 18:00:05 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:23 -0400 [PATCH] zd1211rw: USB id 1582:6003 for Longshine 8131G3 added The Longshine device is a ZD1211B and has a AL2230 RF. I tested it successfully with no encryption and WEP. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit a1030e92c1507eb4a3c15d0a7d62987f671b609c tree 96bdf0831b6a71bbf43fd6ad28f1186a9b408b0c parent 4ceb7e9936dae67d6c553a4954fa410a99b3ea16 author Daniel Drake Sun, 13 Aug 2006 12:15:29 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:23 -0400 [PATCH] zd1211rw: Convert installer CDROM device into WLAN device Some devices identify themselves as a virtual USB CDROM drive. The virtual CD includes the windows driver. We aren't interested in this, so we eject the virtual CDROM and then the real wireless device appears. Patch fixed over the earlier version to not leak cmd, thanks to Michael Buesch for spotting that. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 4ceb7e9936dae67d6c553a4954fa410a99b3ea16 tree 580d1ffdc5b182acaf71e1aadc6742e058106c6b parent d066c2190de86d75e17dc35beba48b920cb125ee author Daniel Drake Sat, 12 Aug 2006 18:00:03 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:22 -0400 [PATCH] zd1211rw: Add ID for ZyXEL G220F zd1211 chip 0586:3402 v4916 high 00-13-49 AL2230_RF pa0 ---- This device pops up after the virtual driver CD has been ejected. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit d066c2190de86d75e17dc35beba48b920cb125ee tree 7920cc3c65f77122e1aa65ed4337580c80537257 parent 12f393089775ca33c53541eb67112fc04d799131 author Daniel Drake Sat, 12 Aug 2006 17:59:59 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:22 -0400 [PATCH] zd1211rw: Firmware version vs bootcode version mismatch handling This is needed for my G220F, otherwise it fails to initialize after the existing firmware upload routine. The vendor driver actually does more than what I have done here: it downloads the firmware + boot code, modifies it, and uploads it again (really messy). I have not copied that part over, as my device can get on its feet without it. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 12f393089775ca33c53541eb67112fc04d799131 tree 1c066826f736d92386b593ce5b7d2b44a438da34 parent 1b865491fcbf9b865fb5cf48c94cbae2995c6589 author Daniel Drake Sat, 12 Aug 2006 17:59:51 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:22 -0400 [PATCH] zd1211rw: Add ID for Allnet ALLSPOT Hotspot finder Tested by Wonka on IRC. zd1211 chip 157e:3204 v4810 high 00-11-e0 AL7230B_RF pa0 g--- Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 1b865491fcbf9b865fb5cf48c94cbae2995c6589 tree b7d4a9e75b2f763f552fc7edfdb86cc22e6a092f parent ec62bd91bbb58254dfddca3d290f5fe4aa1cb769 author Daniel Drake Sat, 12 Aug 2006 17:59:50 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:22 -0400 [PATCH] zd1211rw: Add ID for Senao NUB-8301 Tested by lyakh on IRC zd1211 chip 1740:2000 v4721 high 00-02-6f AL7230B_RF pa0 g--- Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit ec62bd91bbb58254dfddca3d290f5fe4aa1cb769 tree b8c77202028f1a4f2cb2f1dda36882560bc99269 parent 20fe2176e5edbeb5957f113df1282a917ef87b5d author Daniel Drake Sat, 12 Aug 2006 17:59:46 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:21 -0400 [PATCH] zd1211rw: Support AL7230B RF This patch adds support for another Airoha RF which is present in some ZD1211 adapters. This RF supports 802.11a as well as 802.11b/g, but 802.11a connectivity is not yet supported by this driver. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 20fe2176e5edbeb5957f113df1282a917ef87b5d tree bf1b07ba5bc22060f42e37209d41bc51183b72f4 parent 98227a90a727029613f23c5e53554f1f4d7a1c89 author Daniel Drake Sat, 12 Aug 2006 17:59:42 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:21 -0400 [PATCH] zd1211rw: AL2230 ZD1211B vendor sync This patch synchronizes our code to some recent vendor driver modifications. A new PHY layout is supported, some values are tweaked, and the AL2230 is now programmed over a new interface which is many times faster. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 98227a90a727029613f23c5e53554f1f4d7a1c89 tree a94d2935976ff102e9919769b3ee1906a5cc2496 parent fe7215caa033814cee1e6808e44132b7cefb1a9e author Daniel Drake Sat, 12 Aug 2006 17:59:22 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:21 -0400 [PATCH] zd1211rw: Match vendor driver IFS values The vendor driver resets the IFS value every time the channel changes, to this one. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit fe7215caa033814cee1e6808e44132b7cefb1a9e tree d79cba555890bb52f2fbdaf7dc662d1a2a14e0ae parent e9ffb3d7ec94083a44a8721681391beca2ffd68c author Daniel Drake Sat, 12 Aug 2006 17:59:12 +0100 committer John W. Linville Mon, 14 Aug 2006 15:43:21 -0400 [PATCH] zd1211rw: ZD1211B ASIC/FWT, not jointly decoder The vendor driver chooses this value based on an ifndef ASIC, and ASIC is never defined. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit e9ffb3d7ec94083a44a8721681391beca2ffd68c tree 6768ab487b3f44c2a4995ee61307e47760ca9b88 parent 8b9411014e6f18a883c18b38f41338dbd53fddea parent e9fa4f7bd291c29a785666e2fa5a9cf3241ee6c3 author John W. Linville Mon, 14 Aug 2006 15:33:54 -0400 committer John W. Linville Mon, 14 Aug 2006 15:33:54 -0400 Merge branch 'from-linus' into upstream commit 421b20b9c44b3fcdc07d6af875dad5ae86fad014 tree f13d2364937a54f5023b053f67f91ebce403475e parent 24dd01bfbce685395dc0ade71308326b3861187a author Jeff Garzik Mon, 14 Aug 2006 14:27:36 -0400 committer Jeff Garzik Mon, 14 Aug 2006 14:27:36 -0400 libata: Make sure drivers/ata is a separate Kconfig menu Noticed by Rafael J. Wysocki Signed-off-by: Jeff Garzik commit 24dd01bfbce685395dc0ade71308326b3861187a tree 50e9e225deb05109502b003643a359369c6c2df9 parent 370ba07eb8324569636bacb47abba79587640d05 author Jeff Garzik Mon, 14 Aug 2006 14:22:54 -0400 committer Jeff Garzik Mon, 14 Aug 2006 14:22:54 -0400 [libata] ata_piix: add missing kfree() Noticed by Andrew Morton. Signed-off-by: Jeff Garzik commit 370ba07eb8324569636bacb47abba79587640d05 tree 6d0b8ccf5d0f9acc978131490322bd2ce0028090 parent 8ad92ba7152f40cc31f6f15500c01e4eb39cfed1 author Jeff Garzik Mon, 14 Aug 2006 14:12:57 -0400 committer Jeff Garzik Mon, 14 Aug 2006 14:12:57 -0400 libata: Separate libata.ko build from individual driver builds Since some SAS drivers need libata, we can no longer use the rule that auto-builds libata.ko as needed. We must instead depend on Kconfig to determine when to build the library kernel module. Noticed by Brian King @ IBM. Signed-off-by: Jeff Garzik commit 8ad92ba7152f40cc31f6f15500c01e4eb39cfed1 tree 7075ed815c8b3a2d9a54db747234944b8af53841 parent b352e57dc3bb5033996adaa67c2f69b795eddd39 author Jeff Garzik Mon, 14 Aug 2006 14:10:07 -0400 committer Jeff Garzik Mon, 14 Aug 2006 14:10:07 -0400 libata: Remove SCSI_ prefix from Kconfig symbols Signed-off-by: Jeff Garzik commit b352e57dc3bb5033996adaa67c2f69b795eddd39 tree 2bfec75e331452c84a591b6fad1e1407b22a1922 parent cea0d336e7e139becc9432499e0ba8234ffbed5f author Alan Cox Thu, 10 Aug 2006 18:52:12 +0100 committer Jeff Garzik Mon, 14 Aug 2006 14:04:37 -0400 [PATCH] libata: Add CompactFlash support The CFA world has some additional rules and drive modes we need to support for newer expansion cards and on embedded boxes Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit bcd68373877e74d8ca5039c10dc5d699ba5dc7d0 tree 17f105ffe56e49a9b7ee75e63eb2297fa1f558c5 parent 0c913bdf3eb5a829724c286209c079e727935724 author Dave Jones Thu, 10 Aug 2006 21:37:13 -0400 committer Jeff Garzik Mon, 14 Aug 2006 14:00:43 -0400 [PATCH] remove unnecessary config.h includes from drivers/net/ config.h is automatically included by kbuild these days. Signed-off-by: Dave Jones Signed-off-by: Jeff Garzik commit 0c913bdf3eb5a829724c286209c079e727935724 tree 895e0ee458c30044f6b8c49a7b279e6ccf65325c parent 80a8003f9236992fce45e6b2d0f33098b55a3859 parent 09e590e5d5a93f2eaa748a89c623258e6bad1648 author Jeff Garzik Mon, 14 Aug 2006 13:59:38 -0400 committer Jeff Garzik Mon, 14 Aug 2006 13:59:38 -0400 Merge branch 'upstream-fixes' into upstream commit 80a8003f9236992fce45e6b2d0f33098b55a3859 tree 0f42717d499baaed5925079a6a8f4522b0a68399 parent f5c7db1c915ddad32deda2afcdf7ecf1d84fc8fd author Daniele Venzano Sat, 12 Aug 2006 11:17:03 +0200 committer Jeff Garzik Mon, 14 Aug 2006 13:59:31 -0400 [PATCH] Add new PHY to sis900 supported list Please include the attached patch that adds support for a new PHY to the sis900 driver. See also Bugzilla 6919. Signed-off-by: Daniele Venzano -- Signed-off-by: Jeff Garzik commit b5ecf60fe6b18de0bc59d336d444835d4ef835ed tree fa8ccb8598d475a149ac6fb1ada068717bfa179b parent 6595413fc9453a211f4b5d5cc42f0bbf3daa615b author Adrian Bunk Sun, 13 Aug 2006 23:00:08 +0200 committer Dave Jones Mon, 14 Aug 2006 01:18:54 -0400 [CPUFREQ] make drivers/cpufreq/cpufreq_ondemand.c:powersave_bias_target() static This patch makes the needlessly global powersave_bias_target() static. Signed-off-by: Adrian Bunk Signed-off-by: Dave Jones commit 6595413fc9453a211f4b5d5cc42f0bbf3daa615b tree cb0b9b0b1dd91c073eca7e4b26de3a4439dff66d parent 179da8e6e8903a8cdb19bb12672d50dc33f0fde6 author Rafa³ Bilski Sun, 13 Aug 2006 09:16:20 +0200 committer Dave Jones Mon, 14 Aug 2006 01:18:53 -0400 [CPUFREQ] Longhaul - Add ignore_latency option Some laptops with VIA C3 processor, CLE266 chipset and AMI BIOS have incorrect latency values in FADT table. These laptops seems to be C3 capable, but latency values are to big: 101 for C2 and 1017 for C3. This option will allow user to skip C3 latency test but not C3 address test. AMI BIOS is setting C3 address to correct value in DSDT table. Signed-off-by: Rafa³ Bilski Signed-off-by: Dave Jones commit b53e674a707cf77e76339852abdc063696679261 tree b979d52f91dd6b438b7545234ccdec33c6ed4fbf parent 85be7d60595b4803731cec158b0023bc050fdd14 author Dave Jones Fri, 11 Aug 2006 18:13:41 -0400 committer Dave Jones Fri, 11 Aug 2006 18:13:41 -0400 [AGPGART] const'ify VIA AGP PCI table. Signed-off-by: Dave Jones commit 85be7d60595b4803731cec158b0023bc050fdd14 tree 2a3e144f0b5183e0c1e1f976f2ad9a1b7c8481bd parent 71565619af84a15d0abef6f0d6704e6472cd87c1 author Alexey Dobriyan Sat, 12 Aug 2006 02:02:02 +0400 committer Dave Jones Fri, 11 Aug 2006 18:10:27 -0400 [AGPGART] CONFIG_PM=n slim: drivers/char/agp/intel-agp.c Signed-off-by: Alexey Dobriyan Signed-off-by: Dave Jones commit 71565619af84a15d0abef6f0d6704e6472cd87c1 tree 07981be89b5ddbfecb3c8e8b77ea9614a5cb93dd parent e7745d4e0299a3460128917ceb6b6a807fa7f9e8 author Alexey Dobriyan Sat, 12 Aug 2006 01:59:50 +0400 committer Dave Jones Fri, 11 Aug 2006 18:10:27 -0400 [AGPGART] CONFIG_PM=n slim: drivers/char/agp/efficeon-agp.c Signed-off-by: Alexey Dobriyan Signed-off-by: Dave Jones commit e7745d4e0299a3460128917ceb6b6a807fa7f9e8 tree a2137ac22bfbe838faa00e49529f7cbfb9bf55dd parent 804af2cf6e7af31d2e664b54e657dddd9b531dbd author Dave Jones Fri, 11 Aug 2006 18:02:27 -0400 committer Dave Jones Fri, 11 Aug 2006 18:02:27 -0400 [AGPGART] Const'ify the agpgart driver version. Signed-off-by: Dave Jones commit 179da8e6e8903a8cdb19bb12672d50dc33f0fde6 tree 0e791d2d3890db822508f64d2bc1301ac307c982 parent 05ca0350e8caa91a5ec9961c585c98005b6934ea author Rafa³ Bilski Tue, 08 Aug 2006 19:12:20 +0200 committer Dave Jones Fri, 11 Aug 2006 17:59:57 -0400 [CPUFREQ] Longhaul - Disable arbiter ACPI C3 works for "Powersaver" processors, so use it only for them. Older CPU will change frequency on "halt" only. But we can protect transition in two ways: - by ACPI PM2 register, there is "bus master arbiter disable" bit. This isn't tested because VIA mainboards don't have PM2 register, - by PLE133 PCI/AGP arbiter disable register. There are two bits in this register. First is "PCI arbiter disable", second "AGP arbiter disable". This is working on VIA Epia 800 mainboards. Test on bm_control is more proper because this is true when PM2 register exist. Signed-off-by: Rafa³ Bilski Signed-off-by: Dave Jones commit 05ca0350e8caa91a5ec9961c585c98005b6934ea tree 16eb1080f5db361dcd18821f7204b8edf5ffb698 parent 1ce28d6b19112a7c76af8e971e2de3109d19a943 author Alexey Starikovskiy Mon, 31 Jul 2006 22:28:12 +0400 committer Dave Jones Fri, 11 Aug 2006 17:59:57 -0400 [CPUFREQ][2/2] ondemand: updated add powersave_bias tunable ondemand selects the minimum frequency that can retire a workload with negligible idle time -- ideally resulting in the highest performance/power efficiency with negligible performance impact. But on some systems and some workloads, this algorithm is more performance biased than necessary, and de-tuning it a bit to allow some performance impact can save measurable power. This patch adds a "powersave_bias" tunable to ondemand to allow it to reduce its target frequency by a specified percent. By default, the powersave_bias is 0 and has no effect. powersave_bias is in units of 0.1%, so it has an effective range of 1 through 1000, resulting in 0.1% to 100% impact. In practice, users will not be able to detect a difference between 0.1% increments, but 1.0% increments turned out to be too large. Also, the max value of 1000 (100%) would simply peg the system in its deepest power saving P-state, unless the processor really has a hardware P-state at 0Hz:-) For example, If ondemand requests 2.0GHz based on utilization, and powersave_bias=100, this code will knock 10% off the target and seek a target of 1.8GHz instead of 2.0GHz until the next sampling. If 1.8 is an exact match with an hardware frequency we use it, otherwise we average our time between the frequency next higher than 1.8 and next lower than 1.8. Note that a user or administrative program can change powersave_bias at run-time depending on how they expect the system to be used. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Alexey Starikovskiy Signed-off-by: Dave Jones commit 1ce28d6b19112a7c76af8e971e2de3109d19a943 tree 5fe089fa4b9851ca4c975a5e13f636f95fa43078 parent cd878479792cc1e4bc9d62ed0ef2c4454743848c author Alexey Starikovskiy Mon, 31 Jul 2006 22:25:20 +0400 committer Dave Jones Fri, 11 Aug 2006 17:59:56 -0400 [CPUFREQ][1/2] ondemand: updated tune for hardware coordination Try to make dbs_check_cpu() call on all CPUs at the same jiffy. This will help when multiple cores share P-states via Hardware Coordination. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Alexey Starikovskiy Signed-off-by: Dave Jones commit cd878479792cc1e4bc9d62ed0ef2c4454743848c tree 41abf6ff0cb2e4797fb14a31b1723371a5fda685 parent 9f737633e6ee54fc174282d49b2559bd2208391d author Dave Jones Fri, 11 Aug 2006 17:59:28 -0400 committer Dave Jones Fri, 11 Aug 2006 17:59:28 -0400 [CPUFREQ] Fix typo. Signed-off-by: Dave Jones commit f5c7db1c915ddad32deda2afcdf7ecf1d84fc8fd tree c62f64f0c7e446cd11a2092fd101e75a1cfa38a2 parent e714d99cacac976deac3239c89f2c9e3125649b6 parent 8d3d35b4e20dc2e678fc7cb51165905b5a32fb76 author Jeff Garzik Thu, 10 Aug 2006 08:31:03 -0400 committer Jeff Garzik Thu, 10 Aug 2006 08:31:03 -0400 Merge branch 'upstream-fixes' into upstream commit cea0d336e7e139becc9432499e0ba8234ffbed5f tree 14c910c33c3eb79b35a5d3b5ecf7a299d0860b4c parent c6fd280766a050b13360d7c2d59a3d6bd3a27d9a parent a34b6fc04d58ad72fe0cc74cd448f4551bd2ebaf author Jeff Garzik Thu, 10 Aug 2006 08:29:23 -0400 committer Jeff Garzik Thu, 10 Aug 2006 08:29:23 -0400 Merge branch 'upstream-fixes' into upstream commit c6fd280766a050b13360d7c2d59a3d6bd3a27d9a tree fdbeab639bc3dec29267bbf4b32cff7c8dd03593 parent 79ed35a9f139ad2b2653dfdd5f45a8f1453e2cbb author Jeff Garzik Thu, 10 Aug 2006 07:31:37 -0400 committer Jeff Garzik Thu, 10 Aug 2006 07:31:37 -0400 Move libata to drivers/ata. commit 79ed35a9f139ad2b2653dfdd5f45a8f1453e2cbb tree 1f97c3bfd3ae9995a1e396c5a6c02bf5a346b55c parent 6a2e42ad0f7ac0f4093b96ed0c6744f09bdfce1d parent b7887196e38da54ff893897b80875d632d1a1114 author Jeff Garzik Thu, 10 Aug 2006 06:56:51 -0400 committer Jeff Garzik Thu, 10 Aug 2006 06:56:51 -0400 Merge branch 'tj-upstream-pci_register_driver' of git://htj.dyndns.org/libata-tj into upstream commit 6a2e42ad0f7ac0f4093b96ed0c6744f09bdfce1d tree 4e8a07ebf250f287c363ec3931247448827c1ba6 parent 8b881b0410de0f72a43e814393abf3a4cb29ebb4 parent 51704c609fcf256dacfcfae3622eb6ef53ac5b48 author Jeff Garzik Thu, 10 Aug 2006 06:55:26 -0400 committer Jeff Garzik Thu, 10 Aug 2006 06:55:26 -0400 Merge branch 'upstream-fixes' into upstream commit 8b881b0410de0f72a43e814393abf3a4cb29ebb4 tree 4ee2da79e3e069226bb7824019f81e25fa5c3622 parent 2b8ae728a8bada0cca10f30d3e7c52d384e8d5ad author Jeff Garzik Sun, 11 Jun 2006 09:59:27 -0400 committer Jeff Garzik Thu, 10 Aug 2006 06:49:45 -0400 [ATA] Increase lba48 max-sectors from 200 to 256. Also, moved ATA_MAX_SECTORS and ATA_MAX_SECTORS_LBA48 from linux/libata.h to linux/ata.h, now that they truly reflect the standard (well... mostly; note TODO comment). This changes the performance profile (and potential bug profile) for a bunch of drivers, so be wary. commit 2b8ae728a8bada0cca10f30d3e7c52d384e8d5ad tree 97a19d2f2f41c932163d7bc6ce47db66c405a712 parent 4852ba24f647199be797545226c6d325db231937 parent dd3bec63f80e663cdb655b8bdc9c1a0ea938f1c5 author Jeff Garzik Thu, 10 Aug 2006 06:46:16 -0400 committer Jeff Garzik Thu, 10 Aug 2006 06:46:16 -0400 Merge branch 'sii-m15w' into upstream commit b7887196e38da54ff893897b80875d632d1a1114 tree 6cba2112e9058fc67f30edab5baa0fc606b61115 parent 4852ba24f647199be797545226c6d325db231937 author Pavel Roskin Thu, 10 Aug 2006 18:13:18 +0900 committer Tejun Heo Thu, 10 Aug 2006 18:13:18 +0900 [PATCH] libata: replace pci_module_init() with pci_register_driver() Replace pci_module_init() with pci_register_driver(). Signed-off-by: Pavel Roskin Signed-off-by: Tejun Heo commit 4852ba24f647199be797545226c6d325db231937 tree 5c732e919c04f2854622a02f618d4cbcf51a3687 parent 2a88d1ac8dca898a7fb602ddd581bf4d2977509d author Tejun Heo Thu, 10 Aug 2006 16:59:18 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:18 +0900 [PATCH] libata: kill unused hard_port_no and legacy_mode Kill unused probe_ent/ap->hard_port_no and probe_ent->legacy_mode. Signed-off-by: Tejun Heo commit 2a88d1ac8dca898a7fb602ddd581bf4d2977509d tree e399e827ba74349c544f8765b3bf67522a3e7ada parent c4b01f1de254820175fe2d02b4cf7c0fab335846 author Tejun Heo Thu, 10 Aug 2006 16:59:16 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:16 +0900 [PATCH] libata: replace ap->hard_port_no with ap->port_no Replace ap->hard_port_no with ap->port_no. Signed-off-by: Tejun Heo commit c4b01f1de254820175fe2d02b4cf7c0fab335846 tree 316335e3faa6ee6d1dcb3c102d95d7a9d4cf575b parent dd5b06c490de72440ec39f814de99a714a45a1a9 author Tejun Heo Thu, 10 Aug 2006 16:59:14 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:14 +0900 [PATCH] libata: use dummy port for stolen legacy ports Use dummy port for stolen legacy ports. This makes ap->port_no always equal ap->hard_port_no. Signed-off-by: Tejun Heo commit dd5b06c490de72440ec39f814de99a714a45a1a9 tree 7a4665f9b6fdb5a264c753b90a215e2953e2d0f7 parent 2ec7df0457b710d9201f211dbccdbecf0ad38b7e author Tejun Heo Thu, 10 Aug 2006 16:59:12 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:12 +0900 [PATCH] libata: implement dummy port Implement dummy port which can be requested by setting appropriate bit in probe_ent->dummy_port_mask. The dummy port is used as placeholder for stolen legacy port. This allows libata to guarantee that index_of(ap) == ap->port_no == actual_device_port_no, and thus to remove error-prone ap->hard_port_no. As it's used only when one port of a legacy controller is reserved by some other entity (e.g. IDE), the focus is on keeping the added *code* complexity at minimum, so dummy port allocates all libata core resources and acts as a normal port. It just has all dummy port_ops. This patch only implements dummy port. The following patch will make libata use it for stolen legacy ports. Signed-off-by: Tejun Heo commit 2ec7df0457b710d9201f211dbccdbecf0ad38b7e tree 4fbffc3e05aa65fd9ed63b4ac809712719e19cda parent 37deecb5139ee431233781a9a093d9fcaab54c5b author Alan Cox Thu, 10 Aug 2006 16:59:10 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:10 +0900 [PATCH] libata: rework legacy handling to remove much of the cruft Kill host_set->next Fix simplex support Allow per platform setting of IDE legacy bases Some of this can be tidied further later on, in particular all the legacy port gunge belongs as a PCI quirk/PCI header decode to understand the special legacy IDE rules in the PCI spec. Longer term Jeff also wants to move the request_irq/free_irq out of core which will make this even cleaner. tj: folded in three followup patches - ata_piix-fix, broken-arch-fix and fix-new-legacy-handling, and separated per-dev xfermask into separate patch preceding this one. Folded in fixes are... * ata_piix-fix: fix build failure due to host_set->next removal * broken-arch-fix: add missing include/asm-*/libata-portmap.h * fix-new-legacy-handling: * In ata_pci_init_legacy_port(), probe_num was incorrectly incremented during initialization of the secondary port and probe_ent->n_ports was incorrectly fixed to 1. * Both legacy ports ended up having the same hard_port_no. * When printing port information, both legacy ports printed the first irq. Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Tejun Heo commit 37deecb5139ee431233781a9a093d9fcaab54c5b tree ddc3d31e2517619437dfefd311a6d978ba246ae9 parent 6d0500df5b37c94b779ac2c3f522ff917e039f99 author Tejun Heo Thu, 10 Aug 2006 16:59:07 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:07 +0900 [PATCH] libata: implement per-dev xfermask Implement per-dev xfermask. libata used to determine xfermask per-port - the fastest mode of the slowest device on the port. This patch enables per-dev xfermask. Original patch is from Alan Cox . The following changes are made by me. * simplex warning message is added * remove disabled device handling code which is never invoked (originally for choosing port-wide lowest PIO mode) Cc: Alan Cox Signed-off-by: Tejun Heo commit 6d0500df5b37c94b779ac2c3f522ff917e039f99 tree 2d3b3df847a4f1e5ca61d6d6cffd9d1cc16e47b7 parent 996139f1ce50c56c5e66f86b6aba17ff5ea00b86 author Jeff Garzik Thu, 10 Aug 2006 16:59:05 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:05 +0900 [PATCH] [libata] Kill 'count' var in ata_device_add() Eliminate redundant loop variable 'count' Signed-off-by: Jeff Garzik Signed-off-by: Tejun Heo commit 996139f1ce50c56c5e66f86b6aba17ff5ea00b86 tree 286ec88b9323c01f05b5505a19c3cee33b26680f parent 4608c1608501cf2b0dc4478c9b6c3902db58408a author Jeff Garzik Thu, 10 Aug 2006 16:59:03 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:03 +0900 [PATCH] [libata] some function renaming s/ata_host_add/ata_port_add/ s/ata_host_init/ata_port_init/ libata naming got stuck in the middle of a Great Renaming: ata_host -> ata_port ata_host_set -> ata_host To eliminate confusion, let's just give up for now, and simply ensure that things are internally consistent. Signed-off-by: Jeff Garzik Signed-off-by: Tejun Heo commit 4608c1608501cf2b0dc4478c9b6c3902db58408a tree 5b179b34ff3878498c887d5ae9c409f6044342e9 parent 3f066887595de490c411762ce58a31412b09e939 author Tejun Heo Thu, 10 Aug 2006 16:59:01 +0900 committer Tejun Heo Thu, 10 Aug 2006 16:59:01 +0900 [PATCH] libata: update ata_host_init() and rename it to ata_port_init_shost() Update ata_host_init() such that it only initializes SCSI host related stuff and doesn't call into ata_port_init(), and rename it to ata_port_init_shost(). Signed-off-by: Tejun Heo commit 3f066887595de490c411762ce58a31412b09e939 tree a26e04a120ae71ae72910cbd85c52ceba40a3ffc parent f4b5cc874158a139c091b3decd468929e10645e6 parent 22aac0896b1b0b8cabaf00714c55dd12f25d5738 author Jeff Garzik Wed, 09 Aug 2006 01:19:18 -0400 committer Jeff Garzik Wed, 09 Aug 2006 01:19:18 -0400 Merge branch 'upstream-fixes' into upstream commit f4b5cc874158a139c091b3decd468929e10645e6 tree 0ab440ace3cd35ff202e9ee9e3f00e79b91c86c6 parent 80289167fd3ebaeb7b2641e69cbec44b61165fe7 author Tejun Heo Mon, 07 Aug 2006 11:39:04 +0900 committer Jeff Garzik Wed, 09 Aug 2006 00:13:28 -0400 [PATCH] ahci: remove IRQ mask clearing from init_controller() Initial IRQ mask clearing is done by libata-core by freezing all ports prior to requesting IRQ. Remove redundant IRQ clearing from init_controller(). Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 80289167fd3ebaeb7b2641e69cbec44b61165fe7 tree cb979ef0563377b9c901359dbcb1f117ff7d48d5 parent f6d950e2a5209bd7e3fb1a238f43f24f3697f5b0 author Brian King Mon, 07 Aug 2006 14:27:31 -0500 committer Jeff Garzik Wed, 09 Aug 2006 00:08:39 -0400 [PATCH] libata: Add support for SATA attachment to SAS adapters The following patch enhances libata to allow SAS device drivers to utilize libata to talk to SATA devices. It introduces some new APIs which allow libata to be used without allocating a virtual scsi host. New APIs: ata_sas_port_alloc - Allocate an ata_port ata_sas_port_init - Initialize an ata_port (probe device, etc) ata_sas_port_destroy - Free an ata_port allocated by ata_sas_port_alloc ata_sas_slave_configure - configure scsi device ata_sas_queuecmd - queue a scsi command, similar to ata_scsi_queuecomand These new APIs can be used either directly by a SAS LLDD or could be used by the SAS transport class. Possible usage for a SAS LLDD would be: scsi_scan_host target_alloc ata_sas_port_alloc slave_alloc ata_sas_port_init slave_configure ata_sas_slave_configure Commands received by the LLDD for SATA devices would call ata_sas_queuecmd. Device teardown would occur with: slave_destroy port_disable target_destroy ata_sas_port_destroy Signed-off-by: Brian King Signed-off-by: Jeff Garzik commit f6d950e2a5209bd7e3fb1a238f43f24f3697f5b0 tree acdcb6deba03af3255c6e4bd76593ffa570e1698 parent 155a8a9c8f4084016d9e27bf03ba1f19201438f4 author Brian King Mon, 07 Aug 2006 14:27:24 -0500 committer Jeff Garzik Wed, 09 Aug 2006 00:08:38 -0400 [PATCH] libata: Move ata_probe_ent_alloc to libata_core Move ata_probe_ent_alloc to libata-core. It will also be used by future SAS/SATA integration patches. Signed-off-by: Brian King Signed-off-by: Jeff Garzik commit 155a8a9c8f4084016d9e27bf03ba1f19201438f4 tree 31ea68dd479537b3d1e039f124e34d4270cb9eb8 parent b03732f006bd1ecee32587ec8235c41af5ad905f author Brian King Mon, 07 Aug 2006 14:27:17 -0500 committer Jeff Garzik Wed, 09 Aug 2006 00:08:38 -0400 [PATCH] libata: Add ata_port_init Separate out the ata_port initialization from ata_host_init so that it can be used in future SAS patches. Signed-off-by: Brian King Signed-off-by: Jeff Garzik commit b03732f006bd1ecee32587ec8235c41af5ad905f tree 19e1a4abab97cc476d66641bc1043640d61464db parent c256e95f7d602737e380f5f08666cc6a74023b4a author Brian King Mon, 07 Aug 2006 14:27:10 -0500 committer Jeff Garzik Wed, 09 Aug 2006 00:08:38 -0400 [PATCH] libata: Add ata_host_set_init Add ata_host_set_init in preparation for SAS attached SATA. Signed-off-by: Brian King Signed-off-by: Jeff Garzik commit e714d99cacac976deac3239c89f2c9e3125649b6 tree d9e9ee67785867bc0773ec64b294558181778259 parent d15064aa94f44a17bfc052f5b748f5e240735551 author Philippe De Muyter Thu, 03 Aug 2006 18:42:15 +0200 committer Jeff Garzik Wed, 09 Aug 2006 00:02:46 -0400 [PATCH] sundance: small cleanup This patch uses the sundance_reset function everywhere a reset is done, and adds a link to the archives of the original mailing list. Signed-off-by: Philippe De Muyter Signed-off-by: Jeff Garzik commit c256e95f7d602737e380f5f08666cc6a74023b4a tree 70d2111d62face3dbecd61885d61c86d3f81c7cb parent 38ebb1e0ed214efe124534eba4a34e869a0d8da7 parent c71d6be54e92c4b2d31faf51850354aff22b82b0 author Jeff Garzik Tue, 08 Aug 2006 23:59:55 -0400 committer Jeff Garzik Tue, 08 Aug 2006 23:59:55 -0400 Merge branch 'upstream-fixes' into upstream commit d15064aa94f44a17bfc052f5b748f5e240735551 tree e4667c05655d6366e2d69131a892e1e299b7caa3 parent e27cdba53b8ad5c12c9281b3737e07f2a536c3a2 parent 2f96740c26f1dcff9111dca3e01379ab12aafde5 author Jeff Garzik Tue, 08 Aug 2006 23:54:22 -0400 committer Jeff Garzik Tue, 08 Aug 2006 23:54:22 -0400 Merge branch 'upstream-fixes' into upstream commit e27cdba53b8ad5c12c9281b3737e07f2a536c3a2 tree 9ca5866a80e3b553b0956220a7a49e10345f33fa parent 5070d3408405ae1941f259acac7a9882045c3be4 author Stephen Hemminger Mon, 31 Jul 2006 20:37:19 -0700 committer Jeff Garzik Tue, 08 Aug 2006 23:47:59 -0400 [PATCH] forcdeth: revised NAPI support Revised version of the forcedeth NAPI support. This version is based against netdev-2.6#upstream (after the MAC patches from Ayaz today). Can't use nv_disable_hw_interrupts because NAPI only wants to mask off receive irq's and leave the others alone. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 5070d3408405ae1941f259acac7a9882045c3be4 tree c9dd972e8c2d0904ac8181a4466aba18954e3976 parent f1489653e9c891f343d2034aad0ef6984d3ef5cb author Ayaz Abdulla Mon, 31 Jul 2006 12:05:01 -0400 committer Jeff Garzik Tue, 08 Aug 2006 23:47:30 -0400 [PATCH] forcedeth: mac address corrected This patch will correct the mac address and set a flag to indicate that it is already corrected in case nv_probe is called again. For example, when you use kexec to restart the kernel. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit f1489653e9c891f343d2034aad0ef6984d3ef5cb tree d9333c6a7188037bb0d47cc68150348d4cc82159 parent fcf194d19b7857c2467bebdb271bd079a0c0da81 author Ayaz Abdulla Mon, 31 Jul 2006 12:04:45 -0400 committer Jeff Garzik Tue, 08 Aug 2006 23:47:30 -0400 [PATCH] forcedeth: move mac address setup/teardown This patch moves the mac address setup/teardown to the nv_probe/nv_remove functions. This fixes WOL wakeup since on nv_close we would reverse the mac address. Also, bonding driver will reset address after nv_close is called. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit fcf194d19b7857c2467bebdb271bd079a0c0da81 tree 2b2137ffde5d5574b03709a760eb821eaee205e0 parent 242898be7a1921f646ca529ddc26d7337c69922f author Komuro Sun, 23 Jul 2006 10:20:55 +0900 committer Jeff Garzik Tue, 08 Aug 2006 23:38:29 -0400 [PATCH] network: pcnet_cs.c: remove unnecessary 'mdio_reset' 'mdio_reset' has bad side effects that moves the phy_id. DL10022-based cards work properly without 'mdio_reset'. Signed-off-by: komurojun-mbn@nifty.com Signed-off-by: Jeff Garzik commit 32bc6e095d75233e7c87cc6fa0e07942b124d194 tree 8f83ef9a23d52d1305878b65dd98fc22b09b7f3e parent 5cf13911b1e72707b6f0eb39b2d819ec6e343d76 parent 81b73dd92b97423b8f5324a59044da478c04f4c4 author Paul Mackerras Tue, 08 Aug 2006 17:09:11 +1000 committer Paul Mackerras Tue, 08 Aug 2006 17:09:11 +1000 Merge branch 'merge' commit 5cf13911b1e72707b6f0eb39b2d819ec6e343d76 tree cdbd2bc3d6f6e1b6fde2d6fcda43abe186db0313 parent 2f6093c84730b4bad65bcd0f2f904a5769b1dfc5 author Michael Neuling Mon, 07 Aug 2006 17:34:50 +1000 committer Paul Mackerras Tue, 08 Aug 2006 17:08:58 +1000 [POWERPC] Update lppaca offset comments Update offset comments. No functional change. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras commit 2f6093c84730b4bad65bcd0f2f904a5769b1dfc5 tree ab4e64a0520e944062f418e91706ff968e23a6ea parent 452b5e21216011f2f068e80443568f5f3f3f4d63 author Michael Neuling Mon, 07 Aug 2006 16:19:19 +1000 committer Paul Mackerras Tue, 08 Aug 2006 17:08:56 +1000 [POWERPC] Implement SLB shadow buffer This adds a shadow buffer for the SLBs and regsiters it with PHYP. Only the bolted SLB entries (top 3) are shadowed. The SLB shadow buffer tells the hypervisor what the kernel needs to have in the SLB for the kernel to be able to function. The hypervisor can use this information to speed up partition context switches. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras commit 452b5e21216011f2f068e80443568f5f3f3f4d63 tree 0421f30b448e8fa0788665002965e3d10f265745 parent f4dddce57c105c447c566be52c3d210dec570a27 author Matt Porter Fri, 04 Aug 2006 11:44:01 -0500 committer Paul Mackerras Tue, 08 Aug 2006 17:07:08 +1000 [POWERPC] Fix powerpc 44x_mmu build The PIN_SIZE definition name changed, update 44x_mmu.c accordingly. Signed-off-by: Matt Porter Signed-off-by: Paul Mackerras commit f4dddce57c105c447c566be52c3d210dec570a27 tree 3209afe64c48a40cfddd6e6646249bb948e8a763 parent 3d7714867a8d240fae3ab0bde656a369de2b08ab author Matt Porter Fri, 04 Aug 2006 11:41:51 -0500 committer Paul Mackerras Tue, 08 Aug 2006 17:07:07 +1000 [POWERPC] Remove flush_dcache_all export Removes the flush_dcache_all export for non coherent platforms. We removed the last in-kernel user of this years ago in arch/ppc so it no longer serves a purpose. Plus, it breaks the build at the moment. Signed-off-by: Matt Porter Signed-off-by: Paul Mackerras commit 3d7714867a8d240fae3ab0bde656a369de2b08ab tree 9651bca18081f490d7ecfc43f30a1c9d3ed9d5e5 parent 40681b95a4ef798bc38c92e0d9b8c06bbdd34409 author Jon Loeliger Thu, 03 Aug 2006 16:27:57 -0500 committer Paul Mackerras Tue, 08 Aug 2006 17:07:06 +1000 [POWERPC] Add MPC8641 HPCN Device Tree Source file. As per list discussion, let's add device tree source files under powerpc/boot/dts. If nothing else, it is a starting point. Signed-off-by: Jon Loeliger Signed-off-by: Paul Mackerras commit 40681b95a4ef798bc38c92e0d9b8c06bbdd34409 tree 8de6bebd3c876737a6c55263548ad1002fe5cbe2 parent 3ab2b385c8a5cdf060c6a41582118a0cb27d0910 author Michael Ellerman Wed, 02 Aug 2006 11:13:50 +1000 committer Paul Mackerras Tue, 08 Aug 2006 17:07:04 +1000 [POWERPC] Make doc comments extractable We don't have much in the way of doc comments, but some of those we do have don't work because they start with "/***" or "/*", not "/**" which is what kernel-doc requires. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras commit 3ab2b385c8a5cdf060c6a41582118a0cb27d0910 tree 82064e07b6f7ba408d0a3670edba3fafdfe746d7 parent 45934c47237108903ec019f08e124e592ba0b6c2 author Amos Waterland Tue, 01 Aug 2006 15:44:11 -0400 committer Paul Mackerras Tue, 08 Aug 2006 17:07:02 +1000 [POWERPC] Turn on tigon3 support in maple_defconfig I think that most people who use maple_defconfig are doing so for a JS21, so it might make sense to turn Tigon3 support on by default. Built and booted on a JS21. Signed-off-by: Amos Waterland Signed-off-by: Paul Mackerras commit 45934c47237108903ec019f08e124e592ba0b6c2 tree 355209f7393ae88fbcea191b3123e00b913aac08 parent 919fede6edab94cccb3ca8c1c0b32fa62c9369a5 author Jake Moilanen Thu, 27 Jul 2006 13:17:25 -0500 committer Paul Mackerras Tue, 08 Aug 2006 17:06:59 +1000 [POWERPC] Export msi symbols Forgot to export symbols for MSI. Signed-off-by: Jake Moilanen Acked-by: Segher Boessenkool Signed-off-by: Paul Mackerras commit 919fede6edab94cccb3ca8c1c0b32fa62c9369a5 tree 91820c190e4e8fbef6f2a57c0d1e6df014b1d50c parent afd05423e02bc7391a7489b686ba1e166b6e8349 author Jon Loeliger Mon, 31 Jul 2006 15:35:41 -0500 committer Paul Mackerras Tue, 08 Aug 2006 17:05:44 +1000 [POWERPC] Rewrite the PPC 86xx IRQ handling to use Flat Device Tree IRQ setup now comes from the Flat Device Tree and use the new generic IRQ code. Fixed the fsl_soc.c IRQ OF interrupt node parsing. Removed some unused MPC86xx macro definition. Signed-off-by: Zhang Wei Signed-off-by: Jon Loeliger Signed-off-by: Paul Mackerras commit 38ebb1e0ed214efe124534eba4a34e869a0d8da7 tree 3712611527654e81109d194d903401c86763e3f4 parent 236a686b56428a8967a057a2396f9be74e2ee652 parent 9f737633e6ee54fc174282d49b2559bd2208391d author Jeff Garzik Mon, 07 Aug 2006 06:43:17 -0400 committer Jeff Garzik Mon, 07 Aug 2006 06:43:17 -0400 Merge branch 'master' into upstream commit 242898be7a1921f646ca529ddc26d7337c69922f tree 674adf64ca6254318dab5bcd428ebe8ac73957ff parent 6bbad18a8b18228fa65d73547dfd5efad1515ef8 parent 9f737633e6ee54fc174282d49b2559bd2208391d author Jeff Garzik Mon, 07 Aug 2006 06:38:41 -0400 committer Jeff Garzik Mon, 07 Aug 2006 06:38:41 -0400 Merge branch 'master' into upstream commit afd05423e02bc7391a7489b686ba1e166b6e8349 tree 040a752095e88afbebda9eea7cbfa34dcfdf1de8 parent b9377ffc3a03cde558d76349a262a1adbb6d3112 author Michael Neuling Fri, 28 Jul 2006 13:58:37 +1000 committer Paul Mackerras Mon, 07 Aug 2006 12:03:49 +1000 [POWERPC] Enable PURR sysfs entry correctly We have CPU_FTR_PURR now, so let's use it. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras commit 19ac0db3e22de3b00cc4aadc7efbad0420c7aa08 tree b58b629192df8cf6ef5fd4a431c60efead0b1ff0 parent 4ff36718ede26ee2da73f2dae94d71e2b06845fc author James Bottomley Sun, 06 Aug 2006 18:15:22 -0500 committer James Bottomley Sun, 06 Aug 2006 18:19:19 -0500 [SCSI] fix up short inquiry printing A recent drivers base commit: 3e95637a48820ff8bedb33e6439def96ccff1de5 Caused the bus to be added to dev_printk, so now our SCSI inquiry short messages print like this: scsiscsi 2:0:0:0: Direct access IBM-ESXS ST973401SS B519 PQ: 0 ANSI: 5 Just remove the "scsi" from the sdev_printk to compensate. Signed-off-by: James Bottomley commit 4ff36718ede26ee2da73f2dae94d71e2b06845fc tree d9188d88bb3f60427c9976ed0f3da8bf433bb757 parent 008cd5bbfb4763322837cd1f7c621f02ebe22fef author Matthew Wilcox Tue, 04 Jul 2006 12:15:20 -0600 committer James Bottomley Sun, 06 Aug 2006 15:59:26 -0500 [SCSI] Improve inquiry printing - Replace scsi_device_types array API with scsi_device_type function API. Gets rid of a lot of common code, as well as being easier to use. - Add the new device types in SPC4 r05a, and rename some of the older ones. - Reformat the printing of inquiry data; now fits on one line and includes PQ. I think I've addressed all the feedback from the previous versions. My current test box prints: scsi 2:0:1:0: Direct access HP 18.2G ATLAS10K3_18_SCA HP05 PQ: 0 ANSI: 2 Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley commit 008cd5bbfb4763322837cd1f7c621f02ebe22fef tree 1247c6a37a5f3c31a006df2ac6dae01cfc13b772 parent 117d2ce1cea25fc94302ff418ccef644cd3e59af author Brian King Wed, 02 Aug 2006 14:58:04 -0500 committer James Bottomley Sun, 06 Aug 2006 15:51:12 -0500 [SCSI] ipr: Bump driver version to 2.1.4 Bump the ipr driver version to 2.1.4. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 117d2ce1cea25fc94302ff418ccef644cd3e59af tree 110fc53fd3c4e8741ba7deb072e5d17388c2d096 parent 5b7304fbfb74bfca6f7d5a88b28197e3f7f2743b author Brian King Wed, 02 Aug 2006 14:57:58 -0500 committer James Bottomley Sun, 06 Aug 2006 15:50:50 -0500 [SCSI] ipr: Auto sense handling fix Fix up a logic error in the checking for valid sense data. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 5b7304fbfb74bfca6f7d5a88b28197e3f7f2743b tree cd97f3c12720ccdb784c24df63318ab34080313e parent 896bbd21408ddbfb9a57819404dbb04f4f0afb35 author Brian King Wed, 02 Aug 2006 14:57:51 -0500 committer James Bottomley Sun, 06 Aug 2006 15:50:19 -0500 [SCSI] ipr: Properly handle IOA recovered errors The ipr driver currently translates adapter recovered errors to DID_ERROR. This patch fixes this to translate these errors to success instead. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 896bbd21408ddbfb9a57819404dbb04f4f0afb35 tree 35d962735d3aa9225a9cb71408e1d4b5aed5787f parent b5145d25f0d8eae21ad7969822f2d4ce7f22e72a author Brian King Wed, 02 Aug 2006 14:57:44 -0500 committer James Bottomley Sun, 06 Aug 2006 15:49:57 -0500 [SCSI] ipr: Handle new SAS error codes Add definitions for some SAS error codes that can be logged by ipr SAS adapters. Signed-off-by: Brian King Signed-off-by: James Bottomley commit b5145d25f0d8eae21ad7969822f2d4ce7f22e72a tree f0cff80091492cf44ad87b75281ddf4ae29825a5 parent 5d947f2b7607c4674d104accbd3768744aaa4154 author Brian King Wed, 02 Aug 2006 14:57:36 -0500 committer James Bottomley Sun, 06 Aug 2006 15:49:40 -0500 [SCSI] ipr: Add some hardware defined types for SATA Add some hardware defined types for SATA. This is required by future patches to add SATA support to ipr. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 5d947f2b7607c4674d104accbd3768744aaa4154 tree 4edd0cc41502ab2bebdd92c75dfd5ae1db25cf0b parent dd7e2f2266acf66ec882baa6fbd79f853b5fe966 author Michael Reed Mon, 31 Jul 2006 12:19:30 -0500 committer James Bottomley Sun, 06 Aug 2006 15:49:15 -0500 [SCSI] mptfc: add additional fc transport attributes Add host_supported_speeds, host_maxframe_size, host_speed, host_fabric_name, host_port_type, host_port_state, and host_symbolic_name transport attributes to fusion fibre channel. Signed-off-by: Michael Reed Acked-by: Moore, Eric Signed-off-by: James Bottomley commit dd7e2f2266acf66ec882baa6fbd79f853b5fe966 tree 1bfcc0c3e31c08d7a82cf88f6ae48e30298bebdb parent 9e5c50fa8686ede7c37b939a0b950df50346eb3d author Michael Reed Fri, 04 Aug 2006 12:09:24 -0500 committer James Bottomley Sun, 06 Aug 2006 11:36:23 -0500 [SCSI] scsi_queue_work() documented return value is incorrect If you examine the queue_work() routine you'll see that it returns 1 on success, 0 if the work is already queued. This patch corrects the source code documentation for the scsi_queue_work function. Signed-off-by: Michael Reed Signed-off-by: James Bottomley commit 9e5c50fa8686ede7c37b939a0b950df50346eb3d tree 66aa077dc7ca0d298b104db351fd59e053064ff7 parent fddafd3d21953d5ea740f7b2f27149f7dd493194 author Christoph Hellwig Fri, 04 Aug 2006 17:18:30 +0200 committer James Bottomley Sun, 06 Aug 2006 11:35:39 -0500 [SCSI] remove SCSI_STATE_ #defines These aren't used anymore since the field in scsi_cmnd where it was stored has been removed. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley commit 8b9411014e6f18a883c18b38f41338dbd53fddea tree 19097ce80adc22af61073af43991c3525c7267bd parent 71bfe47f023c55c322607939b786ce0a44627dfc parent 782a6675119c76c071e74e2ddd98268f47770cba author John W. Linville Fri, 04 Aug 2006 14:57:43 -0400 committer John W. Linville Fri, 04 Aug 2006 14:57:43 -0400 Merge branch 'upstream-fixes' into upstream commit 71bfe47f023c55c322607939b786ce0a44627dfc tree f59c37feb00f1df2e0f4ec282ae9c80ad6bb0cdc parent 73c1ac1e3b6c989b9b5f7b2313ac590a1c3b6d6a parent efe78cda3596f8a6d1c2d4a6b1a221bafa3e1a48 author John W. Linville Fri, 04 Aug 2006 14:24:15 -0400 committer John W. Linville Fri, 04 Aug 2006 14:24:15 -0400 Merge branch 'from-linus' into upstream commit fddafd3d21953d5ea740f7b2f27149f7dd493194 tree 7e1851143eebfc9ba107aab41e6a46c2ec727aad parent 2672ea86be26353108a72a28910df4dc61cdb5e2 author Brian King Thu, 03 Aug 2006 13:54:59 -0500 committer James Bottomley Fri, 04 Aug 2006 09:29:17 -0400 [SCSI] DAC960: PCI id table fixup The PCI ID table in the DAC960 driver conflicts with some devices that use the ipr driver. All ipr adapters that use this chip have an IBM subvendor ID and all DAC960 adapters that use this chip have a Mylex subvendor id. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 2672ea86be26353108a72a28910df4dc61cdb5e2 tree 206dc3a525dd5a03661f4e55a265b78db1e7e563 parent d67a70aca200f67be42428e74eb3353f20ad1130 author Dave Jones Wed, 02 Aug 2006 17:11:49 -0400 committer James Bottomley Fri, 04 Aug 2006 09:28:43 -0400 [SCSI] advansys pci tweaks. Remove a lot of duplicate #defines from the advansys driver, and make them look like PCI IDs as defined elsewhere in the kernel. Also add a module table so that it automatically gets picked up by tools relying on modinfo output (like say, distro installers). Signed-off-by: Dave Jones Signed-off-by: James Bottomley commit 236a686b56428a8967a057a2396f9be74e2ee652 tree 835fbce4ce6bd19a3a2f4bb7496707f6922d43fb parent 36a2c6b28003dd0592b8ece5e9409991e0820f50 parent efe78cda3596f8a6d1c2d4a6b1a221bafa3e1a48 author Jeff Garzik Fri, 04 Aug 2006 07:47:35 -0400 committer Jeff Garzik Fri, 04 Aug 2006 07:47:35 -0400 Merge branch 'master' into upstream commit 6bbad18a8b18228fa65d73547dfd5efad1515ef8 tree 193e53bc0fa0b01c3c0fab4d3eda23ce84bb1154 parent fe2a24dfc577a05349a39c6c8a6312818d28bb59 parent efe78cda3596f8a6d1c2d4a6b1a221bafa3e1a48 author Jeff Garzik Fri, 04 Aug 2006 07:15:56 -0400 committer Jeff Garzik Fri, 04 Aug 2006 07:15:56 -0400 Merge branch 'master' into upstream commit fe2a24dfc577a05349a39c6c8a6312818d28bb59 tree 5e5b206787da449ef688762136b82c183208284f parent 834695ee415f064036dacdd1b2c414cff1e81cb4 author Stephen Hemminger Tue, 01 Aug 2006 11:55:23 -0700 committer Jeff Garzik Thu, 03 Aug 2006 17:36:39 -0400 [PATCH] sky2: status interrupt handling improvement More changes to prevent losing status and causing hangs. The hardware is smarter than I gave it credit for. Clearing the status IRQ causes the status state machine to toggle an IRQ if needed and post any more transmits. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 36a2c6b28003dd0592b8ece5e9409991e0820f50 tree c5b52547b2658a8a3b898b8224b835a7e8396017 parent 95916edd02e3a7752315422f386c55723d4a3637 parent f1d39b291e2263f5e2f2ec5d4061802f76d8ae67 author Jeff Garzik Thu, 03 Aug 2006 17:35:48 -0400 committer Jeff Garzik Thu, 03 Aug 2006 17:35:48 -0400 Merge branch 'upstream-fixes' into upstream commit 834695ee415f064036dacdd1b2c414cff1e81cb4 tree 1881097e7a4047cdc845655843e931b297bfb47a parent 57fa442c1e842e6ec18ec7cd8cca9e29b5189278 parent c54772e751c0262073e85a7aa87f093fc0dd44f1 author Jeff Garzik Thu, 03 Aug 2006 17:33:27 -0400 committer Jeff Garzik Thu, 03 Aug 2006 17:33:27 -0400 Merge branch 'upstream-fixes' into upstream commit 57fa442c1e842e6ec18ec7cd8cca9e29b5189278 tree 8b3462cf2a5d6ea9af0cb1c9f169d1055a6e7b06 parent 534abebaf746087414291955131f31a39c4f3271 author Stephen Hemminger Sat, 29 Jul 2006 17:21:55 -0700 committer Jeff Garzik Thu, 03 Aug 2006 17:31:56 -0400 [PATCH] sky2: more pci device ids Recent vendor driver and customer reports show more devices. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 534abebaf746087414291955131f31a39c4f3271 tree 36ad09f044eeec65e80944f720aac2d5f491a7eb parent fd39c6889255f939d4010b249096b590549c9273 parent 75c30b1368faaa9c740536b91a15a33aab62f30b author Jeff Garzik Thu, 03 Aug 2006 17:28:34 -0400 committer Jeff Garzik Thu, 03 Aug 2006 17:28:34 -0400 Merge branch 'upstream-fixes' into upstream commit fd39c6889255f939d4010b249096b590549c9273 tree 0cbe728eba60dcc76ab4b0a0d12d02780df0f0b6 parent 23946a8a980d13af7b84bcf3ce023e0d166ec83f parent 73c1ac1e3b6c989b9b5f7b2313ac590a1c3b6d6a author Jeff Garzik Thu, 03 Aug 2006 17:20:58 -0400 committer Jeff Garzik Thu, 03 Aug 2006 17:20:58 -0400 Merge branch 'bcm43xx' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream commit 23946a8a980d13af7b84bcf3ce023e0d166ec83f tree 193d2959a7b62b48aaf2236447f1378779e55104 parent 66e8bb97055ff22a0e5ea89c0a75a35f8738cc96 parent 2b14c30b46e007a16c665cc86329bf4a1d9ff6ee author Jeff Garzik Thu, 03 Aug 2006 17:20:37 -0400 committer Jeff Garzik Thu, 03 Aug 2006 17:20:37 -0400 Merge branch 'upstream-fixes' into upstream commit 73c1ac1e3b6c989b9b5f7b2313ac590a1c3b6d6a tree d86e78cf330bd424c953265861a9c8418af579d1 parent ebf572b448757190027d8ee34e73deb989ec7b60 parent 4456403f5ed589aeecc4271bc09f4ade6eae8adc author John W. Linville Wed, 02 Aug 2006 14:31:12 -0400 committer John W. Linville Wed, 02 Aug 2006 14:31:12 -0400 Merge branch 'upstream' into bcm43xx commit 4456403f5ed589aeecc4271bc09f4ade6eae8adc tree ce5f9d3416b1e47cdb0d40bd4226f6dcd121d20d parent 02b311bce9fc87987a123adc3e6a2d0a2caa70e2 parent fde627b54ce7bef094157074f3adb9b6e1a96d4c author John W. Linville Wed, 02 Aug 2006 14:29:40 -0400 committer John W. Linville Wed, 02 Aug 2006 14:29:40 -0400 Merge branch 'upstream-fixes' into upstream commit 02b311bce9fc87987a123adc3e6a2d0a2caa70e2 tree ba5c42ecf98de1a1a72f4bd5d94dc729ca8196c9 parent 8f0f850e240df5bea027caeb1723142c50e37e57 parent 49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 author John W. Linville Wed, 02 Aug 2006 14:15:39 -0400 committer John W. Linville Wed, 02 Aug 2006 14:15:39 -0400 Merge branch 'from-linus' into upstream commit ebf572b448757190027d8ee34e73deb989ec7b60 tree 2320a92b1aed2c9475e291d75c92616af75e195a parent 48c86da1a211ef13bbfb1c8f2e35dda44a66b8a1 parent 49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 author John W. Linville Wed, 02 Aug 2006 14:15:21 -0400 committer John W. Linville Wed, 02 Aug 2006 14:15:21 -0400 Merge branch 'from-linus' into bcm43xx commit d67a70aca200f67be42428e74eb3353f20ad1130 tree 863562f74854295bfdf60eb26375ff984d8a2d4d parent 43d6b68dc38867e489995e21649bb82f6ee7b5d3 author James Bottomley Fri, 28 Jul 2006 17:36:46 -0500 committer James Bottomley Wed, 02 Aug 2006 10:53:18 -0400 [SCSI] arcmsr: fix up sysfs values The sysfs files in arcmsr are non-standard in that they aren't simple filename value pairs, the values actually contain preceeding text which would have to be parsed. The idea of sysfs files is that the file name is the description and the contents is a simple value. Fix up arcmsr to conform to this standard. Acked-By: Erich Chen Signed-off-by: James Bottomley commit 43d6b68dc38867e489995e21649bb82f6ee7b5d3 tree e4523050e774a13d436dcdfad4c00b28ceff4bd9 parent 1c57e86d75cf162bdadb3a5fe0cd3f65aa1a9ca3 author Andrew Morton Sat, 29 Jul 2006 11:14:08 -0700 committer James Bottomley Wed, 02 Aug 2006 10:51:23 -0400 [SCSI] areca sysfs fix Remove sysfs_remove_bin_file() return-value checking from the areca driver. There's nothing a driver can do if sysfs file removal fails, so we'll soon be changing sysfs_remove_bin_file() to internally print a diagnostic and to return void. Cc: Erich Chen Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit b9377ffc3a03cde558d76349a262a1adbb6d3112 tree c61fcdb732d06c64b9c5634953e46cefdf6af846 parent 57cad8084e0837e0f2c97da789ec9b3f36809be9 author Anton Blanchard Wed, 19 Jul 2006 08:01:28 +1000 committer Paul Mackerras Tue, 01 Aug 2006 16:19:15 +1000 [POWERPC] clean up pseries hcall interfaces Our pseries hcall interfaces are out of control: plpar_hcall_norets plpar_hcall plpar_hcall_8arg_2ret plpar_hcall_4out plpar_hcall_7arg_7ret plpar_hcall_9arg_9ret Create 3 interfaces to cover all cases: plpar_hcall_norets: 7 arguments no returns plpar_hcall: 6 arguments 4 returns plpar_hcall9: 9 arguments 9 returns There are only 2 cases in the kernel that need plpar_hcall9, hopefully we can keep it that way. Pass in a buffer to stash return parameters so we avoid the &dummy1, &dummy2 madness. Signed-off-by: Anton Blanchard -- Signed-off-by: Paul Mackerras commit 57cad8084e0837e0f2c97da789ec9b3f36809be9 tree e9c790afb4286f78cb08d9664f58baa7e876fe55 parent cb18bd40030c879cd93fef02fd579f74dbab473d parent 49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 author Paul Mackerras Tue, 01 Aug 2006 10:37:25 +1000 committer Paul Mackerras Tue, 01 Aug 2006 10:37:25 +1000 Merge branch 'merge' commit 48c86da1a211ef13bbfb1c8f2e35dda44a66b8a1 tree e02987843b4dd1d14673290ac68c406b94ad2436 parent 894b62748bec22a98e636ed40221b27d1b9094b7 author John W. Linville Mon, 31 Jul 2006 14:54:57 -0400 committer John W. Linville Mon, 31 Jul 2006 14:58:18 -0400 [PATCH] bcm43xx: reduce mac_suspend delay loop count Drop the mac_suspend loop count to reduce the maximum delay to 10ms. Signed-off-by: John W. Linville commit 894b62748bec22a98e636ed40221b27d1b9094b7 tree 526755622320add7fa29429edf2390f3f6d5f127 parent f1207ba1a756610a9880fe4b70d7f0e9f0627073 author Larry Finger Mon, 31 Jul 2006 14:20:44 -0400 committer John W. Linville Mon, 31 Jul 2006 14:21:56 -0400 [PATCH] bcm43xx: add missing mac_suspended initialization Fix-up missing mac_suspended initialization which resulted from Linville's sloppy patch mangling. Signed-off-by: John W. Linville commit cb18bd40030c879cd93fef02fd579f74dbab473d tree fdc2d097988ab89fe69d28e36e83b0bad802ad9b parent 5d33eebee83784f5f03bc3861fa92ee5cd831922 author Mike Kravetz Thu, 20 Jul 2006 23:39:51 -0700 committer Paul Mackerras Mon, 31 Jul 2006 15:56:35 +1000 [POWERPC] Instrument Hypervisor Calls: merge headers Move all the Hypervisor call definitions to to a single header file. Signed-off-by: Mike Kravetz Signed-off-by: Paul Mackerras commit 5d33eebee83784f5f03bc3861fa92ee5cd831922 tree 3da9ff7109e0a1d3cd3c17f332dfb84a237852f3 parent 931b261f442e779b0656d9b04c7ffe4939ef8c0a author Jeremy Kerr Thu, 13 Jul 2006 16:32:52 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:06 +1000 [POWERPC] Simplify dma_ops bug conditions Use BUG_ON rather than BUG to simplify the dma_ops handing, and remove the now-unnecessary return cases. Booted on pseries. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 931b261f442e779b0656d9b04c7ffe4939ef8c0a tree 76d650707d78ed7c9e002481001ac175c8502d8e parent 88c805940bb9a1478f06ed6dd5d6f660bdc38eaa author Jeremy Kerr Wed, 12 Jul 2006 15:42:06 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:06 +1000 [POWERPC] Make get_property() return a const void * Previous changes have treated the return values of get_property as const, so now we can make the actual change to get_property(). There shouldn't be a need to cast the return values anymore. We will now get compiler warnings when property values are assigned to a non-const variable. If properties need to be updated, there's still the of_find_property function. Built for cell_defconfig, chrp32_defconfig, g5_defconfig, iseries_defconfig, maple_defconfig, pmac32_defconfig, ppc64_defconfig and pseries_defconfig. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 88c805940bb9a1478f06ed6dd5d6f660bdc38eaa tree 4eefeb6e7555e0eb226647f1fa17bc237aee8c7f parent af5f92d881d783b47d1f993ddffa2bce8b2993fe author Jeremy Kerr Wed, 12 Jul 2006 15:41:52 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:06 +1000 [POWERPC] tsi108: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. tsi108 driver changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit af5f92d881d783b47d1f993ddffa2bce8b2993fe tree 4a566dbd4c559700b1d24250b88dbd0de886df80 parent 5c339e96a391476ebb7cc63d913445c8cee092ff author Jeremy Kerr Wed, 12 Jul 2006 15:41:41 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:06 +1000 [POWERPC] sata_svw: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. sata_svw changes Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 5c339e96a391476ebb7cc63d913445c8cee092ff tree 2d531f40b6886e20ecde612616d8e89cb4b2656a parent abddd185a0195988b8a5e802d55aff91783489de author Jeremy Kerr Wed, 12 Jul 2006 15:41:30 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:06 +1000 [POWERPC] tmp_atmel: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. tpm_atmel changes Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit abddd185a0195988b8a5e802d55aff91783489de tree b155a1d9aef8c34fafbf54ab7ed829726522913e parent 1a2509c946bfd4d4a4c5a6e816082d3a7de45db8 author Jeremy Kerr Wed, 12 Jul 2006 15:41:18 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:06 +1000 [POWERPC] sound: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific sound driver changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 1a2509c946bfd4d4a4c5a6e816082d3a7de45db8 tree 1a99101fe9be656b928272925102c602e6650562 parent 294ef16a2ee34d0d94aa63616f7552d3bc66c982 author Jeremy Kerr Wed, 12 Jul 2006 15:41:03 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:05 +1000 [POWERPC] netdevices: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific network device driver changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 294ef16a2ee34d0d94aa63616f7552d3bc66c982 tree fd41d15117e97a756566a040ca9833e76ea8e525 parent b04e3dd4ab4c7763a4ca8f751caaf69ce8dabbba author Jeremy Kerr Wed, 12 Jul 2006 15:40:51 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:05 +1000 [POWERPC] scsi: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific scsi driver changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit b04e3dd4ab4c7763a4ca8f751caaf69ce8dabbba tree 0224891d9ea4bfa4b1b8245d498cf2fa81737884 parent 018a3d1db7cdb6127656c1622ee1d2302e16436d author Jeremy Kerr Wed, 12 Jul 2006 15:40:40 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:05 +1000 [POWERPC] video & agp: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific video & agp driver changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 018a3d1db7cdb6127656c1622ee1d2302e16436d tree 5b6714fa9fcd1441f7c1b30e0391484c095925b6 parent eeb2b723ef5100fafa381d92eb70d83e98516a44 author Jeremy Kerr Wed, 12 Jul 2006 15:40:29 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:05 +1000 [POWERPC] powermac: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powermac platform & macintosh driver changes. Built for pmac32_defconfig, g5_defconfig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit eeb2b723ef5100fafa381d92eb70d83e98516a44 tree 782883072f3ec64cd795c3c2a69322647ce5f96c parent ae6b4101e53dcf8a41f3432dacca9d3eb34e9cc3 author Jeremy Kerr Wed, 12 Jul 2006 15:40:17 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:05 +1000 [POWERPC] maple: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. maple platform changes. Built for maple_defconfig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit ae6b4101e53dcf8a41f3432dacca9d3eb34e9cc3 tree 9144d6ef4e0fcb30900eef1e2b67904fb7266039 parent c61c27d58af61e5b78257019b173732c29ce0c64 author Jeremy Kerr Wed, 12 Jul 2006 15:40:05 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:05 +1000 [POWERPC] chrp: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. chrp platform changes. Built for chrp32_defconfig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit c61c27d58af61e5b78257019b173732c29ce0c64 tree 259c64446662670d36b40f26dd702b5006a97e1d parent 8efca49329a50710d656a8bb78d6f0f0e2f48a26 author Jeremy Kerr Wed, 12 Jul 2006 15:39:54 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:04 +1000 [POWERPC] cell: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. cell platform changes. Built for cell_defconfig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 8efca49329a50710d656a8bb78d6f0f0e2f48a26 tree 6843306ed52bb6f9b932633ddaf1df90431a2ab6 parent c4c7cba90cf9f180a2c45f7e54143f786360f3dd author Jeremy Kerr Wed, 12 Jul 2006 15:39:42 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:04 +1000 [POWERPC] mpc: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. mpc* platform changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit c4c7cba90cf9f180a2c45f7e54143f786360f3dd tree 293afc1cc7ae9fa206ad85d2fc6d4eacd817a37c parent 954a46e2d5aec6f59976ddeb1d232b486e59b54a author Jeremy Kerr Wed, 12 Jul 2006 15:39:42 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:04 +1000 [POWERPC] iseries: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. iseries platform changes. Built for iseries_defconfig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 954a46e2d5aec6f59976ddeb1d232b486e59b54a tree 4e34abf431de3d6a31036c1fdf33fa4dadeb2951 parent a7f67bdf2c9f24509b8e81e0f35573b611987c80 author Jeremy Kerr Wed, 12 Jul 2006 15:39:43 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:04 +1000 [POWERPC] pseries: Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. pseries platform changes. Built for pseries_defconfig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit a7f67bdf2c9f24509b8e81e0f35573b611987c80 tree 201662dd6504418ef3c84cfe1f280153a4d8cb29 parent 4288b92b9644fdb4c6168273873fe08f32090d7a author Jeremy Kerr Wed, 12 Jul 2006 15:35:54 +1000 committer Paul Mackerras Mon, 31 Jul 2006 15:55:04 +1000 [POWERPC] Constify & voidify get_property() Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc core changes. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 4288b92b9644fdb4c6168273873fe08f32090d7a tree 9f62e8416d65281e3566ec0632b3955b6be16fe0 parent 790e05d8c2b9941218c7c9ffb5c318382fab0a8b author Andrew Morton Sat, 08 Jul 2006 22:38:56 -0700 committer Paul Mackerras Mon, 31 Jul 2006 15:55:04 +1000 [POWERPC] briq_panel Kconfig fix drivers/char/briq_panel.c:28:22: error: asm/prom.h: No such file or directory Cc: Jeremy Kerr Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Paul Mackerras commit 95916edd02e3a7752315422f386c55723d4a3637 tree 60a30047ded7ba486e47cf401edd68a6a7bc2453 parent 3c5100c1c40cc5e27b4da4a736994c76d93392a0 author Jeff Garzik Sat, 29 Jul 2006 04:10:14 -0400 committer Jeff Garzik Sat, 29 Jul 2006 04:10:14 -0400 [libata] ahci: add SiS PCI IDs Signed-off-by: David Wang Signed-off-by: Jeff Garzik commit 3c5100c1c40cc5e27b4da4a736994c76d93392a0 tree 27060b36ff09d3423da9539fc1c796ec058aca29 parent c1332875cbe0c148c7f200d4f9b36b64e34d9872 author Tejun Heo Wed, 26 Jul 2006 16:58:33 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:04:55 -0400 [PATCH] libata: cosmetic changes to PM functions Unify pm_message_t argument to the new-style @mesg. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 66e8bb97055ff22a0e5ea89c0a75a35f8738cc96 tree 4160d135081fbc99cab9426dbfce9299ec68fdee parent e1c3e5014040869abd6ef2cdf987e7c74cb40ada parent dc710afe95ee9b263ab593c11d86a684f1606872 author Jeff Garzik Sat, 29 Jul 2006 04:03:33 -0400 committer Jeff Garzik Sat, 29 Jul 2006 04:03:33 -0400 Merge branch 'master' into upstream commit c1332875cbe0c148c7f200d4f9b36b64e34d9872 tree c4456bfe0a3892989081c1ed1faaff145b9a8837 parent d91542c11f3981768367815cf087ad36e792ea4a author Tejun Heo Wed, 26 Jul 2006 15:59:26 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:01:31 -0400 [PATCH] ahci: implement Power Management support Implement power management support. Original implementation is from Zhao, Forrest Signed-off-by: Tejun Heo Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik commit d91542c11f3981768367815cf087ad36e792ea4a tree ceefba529bf78fa2b8f044ffadd6e2da33a59160 parent 0be0aa98985dfec42502c0d0af2a1baff9bdb19f author Tejun Heo Wed, 26 Jul 2006 15:59:26 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:01:31 -0400 [PATCH] ahci: separate out ahci_reset_controller() and ahci_init_controller() Separate out ahci_reset_controller() and ahci_init_controller() from ata_host_init(). These will be used by PM callbacks. This patch doesn't introduce any behavior change. Signed-off-by: Tejun Heo Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik commit 0be0aa98985dfec42502c0d0af2a1baff9bdb19f tree 110f8d9419bc18370ddc410082e65a634d8a8109 parent 9f5920567bfabbd1be26112a31c44652b6587394 author Tejun Heo Wed, 26 Jul 2006 15:59:26 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:01:31 -0400 [PATCH] libata: improve driver initialization and deinitialization Implement ahci_[de]init_port() and use it during initialization and de-initialization. ahci_[de]init_port() are supersets of what used to be done during driver [de-]initialization. This patch makes the following behavior changes. * Per-port IRQ mask is cleared on driver load as done in other drivers. The mask will be configured properly during probe. * During init_one(), HOST_IRQ_STAT is cleared after masking port IRQs such that there is no race window. * CMD_SPIN_UP is cleared during init_one() instead of being set. It is set in port_start(). This is more consistent with overall structure of initialization. Note that CMD_SPIN_UP simply controls PHY activation. * Slumber and staggered spin-up are handled properly. * All init/deinit operations are done in step-by-step manner as described in the spec instead of issued as single merged command. Original implementation is from Zhao, Forrest Signed-off-by: Tejun Heo Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik commit 9f5920567bfabbd1be26112a31c44652b6587394 tree 27e06539d48f05b85693ba2e9854ebf9a5a4abd7 parent d8fcd116d203dfe2f6c272d0cd67724b172f1bc2 author Tejun Heo Wed, 26 Jul 2006 15:59:26 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:01:31 -0400 [PATCH] ahci: simplify ahci_start_engine() Simplify ahci_start_engine() by killing prerequisite condition checks. Rationales are.. * No user checks error return from ahci_start_engine() * Code flow guarantees the prerequisite conditions unless the controller is malfunctioning. In such cases, the driver had chances to learn about the problem _before_ calling this function. * Closely related to the above two, driver calls into this function even when prerequisites fail hoping for the best. Basically, ahci_start_engine() should only do the operation itself. It isn't the right place to check for prerequisites. Signed-off-by: Tejun Heo Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik commit d8fcd116d203dfe2f6c272d0cd67724b172f1bc2 tree 4b6c9cd5f50c754f5be053a2722162bd337e6534 parent 254950cd56fee220c9d548f3e57211b95976ba64 author Tejun Heo Wed, 26 Jul 2006 15:59:25 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:01:31 -0400 [PATCH] ahci: cosmetic changes to ahci_start/stop_engine() * fascist-format comments according to comment style used in libata core layer. * if() -> if () Signed-off-by: Tejun Heo Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik commit 254950cd56fee220c9d548f3e57211b95976ba64 tree 1a92d2f284f962fcead4ce9cc4a53f7c860ceb2c parent ab1623da2b6659fa9e7810362430de482ebdb9cf author Tejun Heo Wed, 26 Jul 2006 15:59:25 +0900 committer Jeff Garzik Sat, 29 Jul 2006 04:01:31 -0400 [PATCH] ahci: relocate several internal functions * move ahci_port_start/stop() below EH functions. This makes ahci more consistent with other drivers and makes prototypes for ahci_start/stop_engine() unnecessary. * swap positions between ahci_start_engine() and ahci_stop_engine() for readability. Signed-off-by: Tejun Heo Signed-off-by: Zhao, Forrest Signed-off-by: Jeff Garzik commit ab1623da2b6659fa9e7810362430de482ebdb9cf tree b1d8a3dd9ca48886173d19b681d167455e57cc56 parent 5b85f29ca453d56d83cdffa075d615583bb8fb72 parent dc710afe95ee9b263ab593c11d86a684f1606872 author Jeff Garzik Sat, 29 Jul 2006 04:01:23 -0400 committer Jeff Garzik Sat, 29 Jul 2006 04:01:23 -0400 Merge branch 'master' into upstream commit 5b85f29ca453d56d83cdffa075d615583bb8fb72 tree a553754dcef01a22a6bd6e2eeb2fd4eb69bf5b37 parent 48cb37bd9e053429aacb7c2726da3300aba60c68 parent ab3b3fd38125be0242c2f94bf144b48054210882 author Jeff Garzik Sat, 29 Jul 2006 01:39:26 -0400 committer Jeff Garzik Sat, 29 Jul 2006 01:39:26 -0400 Merge branch 'upstream-fixes' into upstream commit e1c3e5014040869abd6ef2cdf987e7c74cb40ada tree cd8cd078e6b40a64866e5e152b0e5d06e7126700 parent a8bed49ecfb47a40cc401f5ec7c9a8a38098e728 author Henrik Kretzschmar Mon, 24 Jul 2006 14:42:01 +0200 committer Jeff Garzik Sat, 29 Jul 2006 01:31:33 -0400 [PATCH] initialisation cleanup for ULI526x-net-driver removes the unneeded local variable rc replace pci_module_init() with pci_register_driver() two coding style issues on switch Signed-off-by: Henrik Kretzschmar Signed-off-by: Jeff Garzik commit a8bed49ecfb47a40cc401f5ec7c9a8a38098e728 tree 178f2c08d38b46960d28f80029ec51567bd5cffc parent f82a9352f6b955d1dd9adc1124d6796be2c147df author Stephen Hemminger Thu, 27 Jul 2006 18:50:09 -0700 committer Jeff Garzik Sat, 29 Jul 2006 01:29:30 -0400 [PATCH] forcedeth: le32 annotation Use __le32 to indicate byte order of hardware ring elements Signed-off-by: Stephen Hemminger drivers/net/forcedeth.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Signed-off-by: Jeff Garzik commit f82a9352f6b955d1dd9adc1124d6796be2c147df tree 3167378582058a2351c938866d6e95692b56a7ac parent 053dd21789eb8fdf9e69982bd223e4cf644c1477 author Stephen Hemminger Thu, 27 Jul 2006 18:50:08 -0700 committer Jeff Garzik Sat, 29 Jul 2006 01:29:30 -0400 [PATCH] forcedeth: coding style cleanups Fix the coding style of the nForce Ethernet driver. - typedef's should not be used - variable names should not be capitialized - structure tags should be lower case - add whitespace near keywords - don't add paren's to switch cases - remove paren's from return - don't use __constant_ntohs unless necessary. Signed-off-by: Stephen Hemminger drivers/net/forcedeth.c | 246 ++++++++++++++++++++++++------------------------ 1 file changed, 123 insertions(+), 123 deletions(-) Signed-off-by: Jeff Garzik commit 053dd21789eb8fdf9e69982bd223e4cf644c1477 tree 5492a50de6f2d46a43b728d6d9ad027cf8a94fbc parent d7446c0b5224e7024bd2f881b3d7fce0b9713fea parent 4da3dcf34671fa15c4f01101754106d97fc98e6e author Jeff Garzik Sat, 29 Jul 2006 01:29:27 -0400 committer Jeff Garzik Sat, 29 Jul 2006 01:29:27 -0400 Merge branch 'upstream-fixes' into upstream commit d7446c0b5224e7024bd2f881b3d7fce0b9713fea tree 57e5fbd69f81ac0ff1220efb876efaae3f723e8b parent 7d2d8259a2a3078c629b6ee9d4a7ae3ef74ac100 parent 187ff3b8575569668cde9021b9fe70386a4131fb author Jeff Garzik Sat, 29 Jul 2006 01:24:00 -0400 committer Jeff Garzik Sat, 29 Jul 2006 01:24:00 -0400 Merge branch 'upstream-fixes' into upstream commit 7d2d8259a2a3078c629b6ee9d4a7ae3ef74ac100 tree 4184f2a7d58ba1a1729225404e52d9a89463dd77 parent a47e9209485243afb4f002b8c3d76d1990b09d0a parent 8f0f850e240df5bea027caeb1723142c50e37e57 author Jeff Garzik Sat, 29 Jul 2006 00:33:35 -0400 committer Jeff Garzik Sat, 29 Jul 2006 00:33:35 -0400 Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream commit a47e9209485243afb4f002b8c3d76d1990b09d0a tree 3bd1d738155bc5e615db144b57077cbe905b858b parent 5a4faa873782d748960b02fdec95e3d4d2e3ae38 parent 5b84b6fa9b96d1598eb77196f9d8b3e62efac647 author Jeff Garzik Sat, 29 Jul 2006 00:32:42 -0400 committer Jeff Garzik Sat, 29 Jul 2006 00:32:42 -0400 Merge branch 'upstream-fixes' into upstream commit 5a4faa873782d748960b02fdec95e3d4d2e3ae38 tree 7faa11e95d9a881a4914529268cae11f210d5c97 parent 572e432e01c1f7c64ad8375a6e0d935b0e40ebf5 author Ron Mercer Tue, 25 Jul 2006 00:40:21 -0700 committer Jeff Garzik Sat, 29 Jul 2006 00:28:51 -0400 [PATCH] qla3xxx NIC driver This is a complementary network driver for our ISP4XXX parts. There is a concurrent effort underway to get the iSCSI driver (qla4xxx) integrated upstream as well. I have been through several iterations with the linux-netdev list and have had much response from Stephen Hemminger. - Built and tested using kernel 2.6.17-rc4. - The chip supports two ethernet and two iSCSI functions. - The functions ql_sem_lock, ql_sem_spinlock, ql_sem_unlock, and ql_wait_for_drvr_lock are used to protect resources that are shared across the network and iSCSI functions. This protection is mostly during chip initialization and resets, but also include link management. - The PHY/MII are not exported through ethtool due to the fact that the iSCSI function will control the common link at least 50% of the time. This driver has been through several iterations on the netdev list and we feel this driver is ready for inclusion in the upstream kernel. It has been built and tested on x86 and PPC64 platforms. Cc: Jeff Garzik Cc: Stephen Hemminger Signed-off-by: Ron Mercer Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 572e432e01c1f7c64ad8375a6e0d935b0e40ebf5 tree 57ae4168e9bf4c88a1267f4ec6c96df3789cc9cc parent d11ea48aab3b57cc931cc7120603e1c2ffb04302 parent e3f2ddeac718c768fdac4b7fe69d465172f788a8 author Jeff Garzik Sat, 29 Jul 2006 00:28:36 -0400 committer Jeff Garzik Sat, 29 Jul 2006 00:28:36 -0400 Merge branch 'master' into upstream commit 1c57e86d75cf162bdadb3a5fe0cd3f65aa1a9ca3 tree 166f691c186d6e663218559c4762299063f63657 parent 0c269e6d3c615403a6e0acbe6e88f1c0da9c2396 author Erich Chen Wed, 12 Jul 2006 08:59:32 -0700 committer James Bottomley Fri, 28 Jul 2006 14:13:40 -0500 [SCSI] arcmsr: initial driver, version 1.20.00.13 arcmsr is a driver for the Areca Raid controller, a host based RAID subsystem that speaks SCSI at the firmware level. This patch is quite a clean up over the initial submission with contributions from: Randy Dunlap Christoph Hellwig Matthew Wilcox Adrian Bunk Signed-off-by: Erich Chen Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 0c269e6d3c615403a6e0acbe6e88f1c0da9c2396 tree e23fa9700542b879dcc39d90ac3004b71e71c064 parent f4c8aa1107969c26b1984eb2996a58f816dea71f author James Bottomley Wed, 12 Jul 2006 09:51:04 -0400 committer James Bottomley Fri, 28 Jul 2006 13:48:54 -0500 [SCSI] mptsas: add parent port backlink This takes advantage of the sas class backlink function to show which port on an expander is used to communicate with the parent. Signed-off-by: James Bottomley commit f4c8aa1107969c26b1984eb2996a58f816dea71f tree 7929bd06154bcfedd8de71674567018685174d45 parent 64821324ca49f24be1a66f2f432108f96a24e596 author brking@charter.net Wed, 05 Jul 2006 17:00:01 -0500 committer James Bottomley Fri, 28 Jul 2006 13:48:14 -0500 [SCSI] megaraid: Add support for change_queue_depth Adds support for change_queue_depth so that device queue depth can be changed at runtime through sysfs. Signed-off-by: Acked-by: Seokmann Ju Signed-off-by: James Bottomley commit f1207ba1a756610a9880fe4b70d7f0e9f0627073 tree f6840b54e05cbffb70e64e9646245b0068217b03 parent 27be44ff8ee29e945adad226cc360c9278239d17 author John W. Linville Thu, 27 Jul 2006 18:10:00 -0400 committer John W. Linville Thu, 27 Jul 2006 18:24:54 -0400 [PATCH] bcm43xx: fix-up build breakage from merging patches out of order Signed-off-by: John W. Linville commit 27be44ff8ee29e945adad226cc360c9278239d17 tree d04c723c2866b062b54c156f6de3ab5f535b667c parent 58e5528ee464d38040b9489e10033c9387a10d56 author Larry Finger Fri, 14 Jul 2006 15:42:17 -0500 committer John W. Linville Thu, 27 Jul 2006 18:19:25 -0400 [PATCH] bcm43xx: improved statistics This minor patch for wireless-2.6 (softmac) adjusts the parameters of the wireless statistics to improve the display of programs such as the "Wireless Network Information" applet of KDE. Thanks to Dan Williams and Jean Tourrilhes for valuable help in setting up the return of info in dBm. Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit 58e5528ee464d38040b9489e10033c9387a10d56 tree 58023ac8bf79757e37a4d05ce7fa63fb3f2388b9 parent 3234faa8abe0c3d6da12cc4a38ce790134c92564 author Michael Buesch Sat, 08 Jul 2006 22:02:18 +0200 committer John W. Linville Thu, 27 Jul 2006 18:19:18 -0400 [PATCH] bcm43xx: init routine rewrite Rewrite of the bcm43xx initialization routines. This fixes several issues: * up-down-up-down-up... stale data issue (May fix some DHCP issues) * Fix the init vs IRQ handler race (and remove the workaround) * Fix init for cards with multiple cores (APHY) As softmac has no internal PHY handling (unlike dscape), this adds the file "phymode" to sysfs. The active PHY can be selected by writing either a, b or g to this file. Current PHY can be determined by reading from it. * Fix the controller restart code. Controller restart can now also be triggered through echo 1 > /debug/bcm43xx/ethX/restart Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 3234faa8abe0c3d6da12cc4a38ce790134c92564 tree ac2ee8630c1bae65b22b0f48c61b64b121227b70 parent b8e7cdb391c50cfc243a387b6690f5a251537e50 author Michael Buesch Wed, 28 Jun 2006 20:35:17 +0200 committer John W. Linville Thu, 27 Jul 2006 18:19:14 -0400 [PATCH] bcm43xx: fix mac_suspend refcount This fixes mac_suspend reference counting for ifconfig up ifconfig down ifconfig up Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit b8e7cdb391c50cfc243a387b6690f5a251537e50 tree 442cd915aab1629ae64005780a61463122f67d8c parent 062caf43d803771b660defe6b147711d8b730364 author Michael Buesch Tue, 27 Jun 2006 17:56:44 +0200 committer John W. Linville Thu, 27 Jul 2006 18:19:10 -0400 [PATCH] bcm43xx: lower mac_suspend udelay Microoptimization: This reduces the udelay in bcm43xx_mac_suspend. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 062caf43d803771b660defe6b147711d8b730364 tree 5e3446bd4cedbd98f70d35f08b0b37ffc11e0bf8 parent 8f0f850e240df5bea027caeb1723142c50e37e57 author Michael Buesch Mon, 12 Jun 2006 17:02:22 +0200 committer John W. Linville Thu, 27 Jul 2006 18:19:02 -0400 [PATCH] bcm43xx: suspend MAC while executing long pwork Suspend MAC (and make MAC-suspend refcounting) when doing long periodic work. On long periodic work, we disable IRQs on the device, so we don't want the MAC to stay operating and probably miss packets due do non-delivery of interrupts. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 8f0f850e240df5bea027caeb1723142c50e37e57 tree 020a588e29d1c15937512bbdcd5266a866545e9a parent f2060f039e8a8bc83b10e6d0f8fb440425560569 author Daniel Drake Tue, 18 Jul 2006 22:00:25 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:28 -0400 [PATCH] softmac: Add MAINTAINERS entry Signed-off-by: Daniel Drake Acked-by: Johannes Berg Signed-off-by: John W. Linville commit f2060f039e8a8bc83b10e6d0f8fb440425560569 tree f1b106e959b66c016903fa90fdeeb63e586ca896 parent d7712ac254a4ae2e9c927e29e37b8c7ac334e6ad author Daniel Drake Tue, 18 Jul 2006 21:38:05 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:28 -0400 [PATCH] ieee80211: Make ieee80211_rx_any usable ieee80211_rx_any is new to 2.6.18-rc1, even though it appears this function was never completed: http://lists.sipsolutions.net/pipermail/softmac-dev/2006-February/000103.html This patch changes ieee80211_rx_any to always claim the skb, which avoids further driver complexity and the possibility of leaking management frames. It also exports the function so that people can actually use it. Signed-off-by: Daniel Drake Acked-by: Johannes Berg Signed-off-by: John W. Linville commit d7712ac254a4ae2e9c927e29e37b8c7ac334e6ad tree 99b5aef9dcb65cf96c6ac97063bb25d17d3e0649 parent 5acd0c4153be25269d7cb9a4b09fd6db571c5cc1 author Daniel Drake Tue, 18 Jul 2006 21:34:56 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:28 -0400 [PATCH] softmac: export highest_supported_rate function zd1211 needs this functionality, no point duplicating it. Signed-off-by: Daniel Drake Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 5acd0c4153be25269d7cb9a4b09fd6db571c5cc1 tree b970a1b9469617597ab1594ca269bc81b020a881 parent d8e2be90d301a0381e9b2528fe2835cf2992bca3 author Daniel Drake Tue, 18 Jul 2006 21:33:27 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:28 -0400 [PATCH] softmac: ERP handling and driver-level notifications This patch implements ERP handling in softmac so that the drivers can support protection and preambles properly. I added a new struct, ieee80211softmac_bss_info, which is used for BSS-dependent variables like these. A new hook has been added (bssinfo_change), which allows the drivers to be notified when anything in bssinfo changes. I modified the txrates_change API to match the bssinfo_change API. The existing one is a little messy and the usefulness of providing the old rates is questionable (and can be implemented at driver level if really necessary). No drivers are using this API (yet), so this should be safe. Signed-off-by: Daniel Drake Acked-by: Johannes Berg Signed-off-by: John W. Linville commit d8e2be90d301a0381e9b2528fe2835cf2992bca3 tree 6595307b63a93c37a4287d3aec89fcf6ab01b385 parent eab411f1e850af5acbd6ef278f4e669250f71915 author Daniel Drake Tue, 18 Jul 2006 21:30:34 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:27 -0400 [PATCH] ieee80211: small ERP handling additions This adds a flag to the ieee80211_network structure which indicates whether the stored erp_value is valid (a check against 0 is not enough, since an ERP of 0 is valid and very meaningful). I also added the ERP IE bit-definitions to ieee80211.h. This is needed by some upcoming softmac patches. Signed-off-by: Daniel Drake Acked-by: Johannes Berg Signed-off-by: John W. Linville commit eab411f1e850af5acbd6ef278f4e669250f71915 tree bdaf5b4db188d90743d28db23e9c611b4d74a43c parent 7c0c3afb6e67004648ca589445e073dba4040509 author Dan Williams Mon, 17 Jul 2006 21:21:47 -0400 committer John W. Linville Thu, 27 Jul 2006 16:17:27 -0400 [PATCH] prism54: update to WE-19 for WPA support Add WE-19 capabilities to prism54 fullmac driver so that it supports the necessary Wireless Extensions WPA calls. Convert reporting of WPA/RSN Generic Information Elements to IWEVGENIE rather than pre-WE-19 IWEVCUSTOM as well. Signed-off-by: Dan Williams Signed-off-by: John W. Linville commit 7c0c3afb6e67004648ca589445e073dba4040509 tree 6c914c3c7ffd2aa25cb788adbc0912bf9495acd2 parent 089f99d8ac398905f6dc75dd2ce5796ced5dd943 author Daniel Drake Sun, 16 Jul 2006 13:55:17 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:27 -0400 [PATCH] Add zd1211rw MAINTAINERS entry Hopefully this will help people like Adrian Bunk send patches where the maintainers will see them :) Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 089f99d8ac398905f6dc75dd2ce5796ced5dd943 tree db7293cbb0054f45cb4af389a73395c1afe77285 parent 67fd6b45231362a2f1ed6c74281a901105ae7d3e author Daniel Drake Thu, 13 Jul 2006 17:56:16 +0100 committer John W. Linville Thu, 27 Jul 2006 16:17:27 -0400 [PATCH] zd1211rw: Implement SIOCGIWNICKN wireless.h discourages using SIOCGIWNAME to publish the driver name which the interface belongs to. Use SIOCGIWNICKN instead. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 67fd6b45231362a2f1ed6c74281a901105ae7d3e tree f3e65998eb9da1ce3a649eaf2d8d089164bb485c parent 13dca9b87edebd5aa1d9ea5811bcf0fa1e975b52 author Pavel Machek Tue, 11 Jul 2006 15:34:05 +0200 committer John W. Linville Thu, 27 Jul 2006 16:17:26 -0400 [PATCH] cleanup // comments from ipw2200 ipw2200 uses // comments, and uses them for removing unneeded code. Clean it up a bit. Signed-off-by: Pavel Machek Signed-off-by: John W. Linville commit 13dca9b87edebd5aa1d9ea5811bcf0fa1e975b52 tree 8658c11b6cce5a19767fa27ceaffdcb4860eefaf parent 416512cb75f51f3d12e5e1aa57b6a36760fd12c9 author Robert Schulze Mon, 10 Jul 2006 18:37:44 +0200 committer John W. Linville Thu, 27 Jul 2006 16:17:26 -0400 [PATCH] airo: collapse debugging-messages in issuecommand to one line Signed-off-by: John W. Linville commit 416512cb75f51f3d12e5e1aa57b6a36760fd12c9 tree f8081ffd9ce0b7a5867d5ad262345c222122abb6 parent 20f99dcf417a28089ef6c877ae97f5dec2eab435 parent ca0084fa90533687b6317e6d084141da87c74d5c author John W. Linville Thu, 27 Jul 2006 15:06:13 -0400 committer John W. Linville Thu, 27 Jul 2006 15:06:13 -0400 Merge branch 'upstream-fixes' into upstream commit 20f99dcf417a28089ef6c877ae97f5dec2eab435 tree b4fe1f3e429d6a82ddaaa8e12899da630cfa8a63 parent dd2f5538a157bda68bfa8efb39feaaccdda9e74e parent 64821324ca49f24be1a66f2f432108f96a24e596 author John W. Linville Thu, 27 Jul 2006 14:27:06 -0400 committer John W. Linville Thu, 27 Jul 2006 14:27:06 -0400 Merge branch 'from-linus' into upstream commit 804af2cf6e7af31d2e664b54e657dddd9b531dbd tree a9127236c76953ddc627b8133aae208651e206fd parent 64821324ca49f24be1a66f2f432108f96a24e596 author Hugh Dickins Wed, 26 Jul 2006 21:39:49 +0100 committer Dave Jones Wed, 26 Jul 2006 19:58:39 -0400 [AGPGART] remove private page protection map AGP keeps its own copy of the protection_map, upcoming DRM changes will also require access to this map from modules. Signed-off-by: Hugh Dickins Signed-off-by: Dave Airlie Signed-off-by: Dave Jones commit bcf0bf90cd9e9242b66e0563b6a8c8db2e4c262c tree 07c718f1bf9ca8c3699ba31727195f5cf95ab93e parent 4ff96fa67379c31ced69f193c7ffba17051f38e8 author Francois Romieu Wed, 26 Jul 2006 23:14:13 +0200 committer Francois Romieu Wed, 26 Jul 2006 23:23:15 +0200 r8169: sync with vendor's driver - add several PCI ID for the PCI-E adapters ; - new identification strings ; - the RTL_GIGA_MAC_VER_ defines have been renamed to closely match the out-of-tree driver. It makes the comparison less hairy ; - various magic ; - the PCI region for the device with PCI ID 0x8136 is guessed. Explanation: the in-kernel Linux driver is written to allow MM register accesses and avoid the IO tax. The relevant BAR register was found at base address 1 for the plain-old PCI 8169. User reported lspci show that it is found at base address 2 for the new Gigabit PCI-E 816{8/9}. Typically: 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 8168 (rev 01) Subsystem: Unknown device 1631:e015 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- commit 4ff96fa67379c31ced69f193c7ffba17051f38e8 tree d552a84e48803533ea155e8b88f56c9b33865793 parent 623a1593c84afb86b2f496a56fb4ec37f82b5c78 author Francois Romieu Wed, 26 Jul 2006 22:05:06 +0200 committer Francois Romieu Wed, 26 Jul 2006 23:23:14 +0200 r8169: remove rtl8169_init_board Rationale: - its signature is not exactly pretty; - it has no knowledge of pci_device_id; - kiss 23 lines good bye. Signed-off-by: Francois Romieu commit 623a1593c84afb86b2f496a56fb4ec37f82b5c78 tree a2b1334700c59aaa078aaec74d928ab58590be50 parent 9dccf61112e6755f4e6f154c1794bab3c509bc71 author Francois Romieu Sun, 14 May 2006 12:42:14 +0200 committer Francois Romieu Wed, 26 Jul 2006 23:23:13 +0200 r8169: hardware flow control The datasheet suggests that the device handles the hardware flow control almost automagically. User report a different story, so let's try to twiddle the mii registers. Signed-off-by: Francois Romieu commit 9dccf61112e6755f4e6f154c1794bab3c509bc71 tree 38c1549ccdcb617fadd5824030995c465f80710f parent a2b98a697fa4e7564f78905b83db122824916cf9 author Francois Romieu Sun, 14 May 2006 12:31:17 +0200 committer Francois Romieu Wed, 26 Jul 2006 23:23:13 +0200 r8169: RX fifo overflow recovery Signed-off-by: Francois Romieu commit a2b98a697fa4e7564f78905b83db122824916cf9 tree 993de4e76f22b8a0831c36abf7133c09615c6dbb parent 64821324ca49f24be1a66f2f432108f96a24e596 author Francois Romieu Sun, 14 May 2006 12:18:44 +0200 committer Francois Romieu Wed, 26 Jul 2006 23:23:12 +0200 r8169: mac address change support Fix for http://bugzilla.kernel.org/show_bug.cgi?id=6032. Cc: Tim Mattox Signed-off-by: Francois Romieu commit d11ea48aab3b57cc931cc7120603e1c2ffb04302 tree dad3c780816d0a76e021ee53c49c7c1fb4dd1243 parent 22ad852b8297e5063fc50f54a77e13f6d9b16a6f parent abb5a5cc6bba1516403146c5b79036fe843beb70 author Jeff Garzik Mon, 24 Jul 2006 03:40:11 -0400 committer Jeff Garzik Mon, 24 Jul 2006 03:40:11 -0400 Merge branch 'master' into upstream commit 48cb37bd9e053429aacb7c2726da3300aba60c68 tree b96346400d0d36557d683bc1535ed5139f9ca76d parent e36fcd8ae611b91f0bbaf6063b0b98e1ef955880 parent b71426eb10d904d421b36f51f93c8d0ba558edac author Jeff Garzik Mon, 24 Jul 2006 03:38:25 -0400 committer Jeff Garzik Mon, 24 Jul 2006 03:38:25 -0400 Merge branch 'upstream-fixes' into upstream commit e36fcd8ae611b91f0bbaf6063b0b98e1ef955880 tree 751b37949e1ca165828cad4bbe2f39d24a8a4d4f parent 5457f2194ad198a0aba4190ec99a6a81846fdca5 parent 8419dc8a34d765f2ff1aa4051084d54cfeff09cf author Jeff Garzik Mon, 24 Jul 2006 03:38:01 -0400 committer Jeff Garzik Mon, 24 Jul 2006 03:38:01 -0400 Merge branch 'upstream-fixes' into upstream commit 5457f2194ad198a0aba4190ec99a6a81846fdca5 tree 2daf5c3cc82bc7c0aea2dea04bfc1dde9287c5ef parent 13abf50df209008b5d44075bafeeab42ace56aa6 author zhao, forrest Thu, 13 Jul 2006 13:38:32 +0800 committer Jeff Garzik Wed, 19 Jul 2006 16:45:42 -0400 [PATCH] The redefinition of ahci_start_engine() and ahci_stop_engine() - Make ahci_start_engine() and ahci_stop_engine() more consistent with AHCI spec 1.1 - Change their input parameter from ap to port_mmio - Update the existing users of ahci_start_engine() and ahci_stop_engine() Signed-off-by: Forrest Zhao Signed-off-by: Hannes Reinecke Signed-off-by: Jens Axboe Signed-off-by: Jeff Garzik commit 22ad852b8297e5063fc50f54a77e13f6d9b16a6f tree d4f36792dd3435e14d132ecf4b90ebff9deb9118 parent 225ec70a8cf5086a70d755e394c56186a30053d3 author Arjan van de Ven Wed, 05 Jul 2006 20:36:40 +0200 committer Jeff Garzik Wed, 19 Jul 2006 14:01:17 -0400 [PATCH] resend of 8390 patch for lockdep The 8390 drivers use disable_irq() as a locking primitive, which means these uses need lockdep specific annotation that they are used as such. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Signed-off-by: Jeff Garzik commit 225ec70a8cf5086a70d755e394c56186a30053d3 tree 0143bb4f394c617822479e1c36a4b3bb3b07e14c parent 3fac0613937dff488141c8ade3320fd815c38ed7 parent dd2f5538a157bda68bfa8efb39feaaccdda9e74e author Jeff Garzik Wed, 19 Jul 2006 13:51:27 -0400 committer Jeff Garzik Wed, 19 Jul 2006 13:51:27 -0400 Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream commit 3fac0613937dff488141c8ade3320fd815c38ed7 tree 82052794092339205a030459820e7c5847d98d05 parent 79690602adc5b52ce224df6ac67bde0074b2aede author Ralf Baechle Thu, 13 Jul 2006 12:14:55 +0100 committer Jeff Garzik Wed, 19 Jul 2006 13:50:39 -0400 [PATCH] Remove useless #ifdef MODULE stuff and printout Get rid of the MODULE stuff. Could have rewritten to use modern interfaces but the copyright message of this BSD licensed code isn't interesting enough to be watched on every bootup, in every syslog. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit 79690602adc5b52ce224df6ac67bde0074b2aede tree 6cb4c9008c5f02cc2ca4cbebe7cc31636042c4b4 parent 15880352659a363209c5ad9cfc796a9c8a7f5196 author Ralf Baechle Thu, 13 Jul 2006 12:12:53 +0100 committer Jeff Garzik Wed, 19 Jul 2006 13:50:39 -0400 [PATCH] Remove useless casts Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit 15880352659a363209c5ad9cfc796a9c8a7f5196 tree 122365b897cff1dd81ee5d372c7c9360620097f7 parent b6e37e55c250f5233401b2566b1a4b512a98bc7b author Ralf Baechle Thu, 13 Jul 2006 12:10:48 +0100 committer Jeff Garzik Wed, 19 Jul 2006 13:50:39 -0400 [PATCH] Convert to kzalloc Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit b6e37e55c250f5233401b2566b1a4b512a98bc7b tree bf7f0e127619ac2b39fc76aee1fcb8157372b656 parent 5f5d83fdbfb50ffb6f5fbf5fd69bc791d9d5cd20 author Ralf Baechle Fri, 14 Jul 2006 12:15:40 +0100 committer Jeff Garzik Wed, 19 Jul 2006 13:50:39 -0400 [PATCH] Cleanup SLHC configuration Convert selection of serial line header compression to use CONFIG_SLHC rather than makefile ifeq uglyness. This makes it easier to select the SLHC module from other code. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit 5f5d83fdbfb50ffb6f5fbf5fd69bc791d9d5cd20 tree d76665b3842d8b33e6eb9dadbdd33ec2a51b426e parent bdd01503c3e4e9827df015bc7e440d5498308fdd author Stephen Hemminger Mon, 17 Jul 2006 15:38:32 -0400 committer Jeff Garzik Wed, 19 Jul 2006 13:49:04 -0400 [PATCH] sky2: add another PCI ID Yet another PCI ID for 88E8056 Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit dd3bec63f80e663cdb655b8bdc9c1a0ea938f1c5 tree 80b6de2e54293100b5a36426b54cb8b239c3142a parent f5beec49636bf8d5a34065c8ab030cd4ea84516f author Tejun Heo Wed, 01 Mar 2006 15:13:50 +0900 committer Jeff Garzik Sun, 16 Jul 2006 11:55:46 -0400 [PATCH] sata_sil: remove unaffected drives from m15w blacklist m15w blacklist overgrew by attributing unrelated problems to m15w including R_ERR on DMA activate FIS errata. This patch shrinks sata_sil m15w blacklist such that it's as reported by Silicon Image. Signed-off-by: Tejun Heo Cc: Carlos Pardo Signed-off-by: Jeff Garzik commit 790e05d8c2b9941218c7c9ffb5c318382fab0a8b tree efc88203419278fbe9aa6ebbf3b74738abf573f2 parent 20697cb775bdd0271f3c90fad2d15c065fd19488 parent ca652c9396fa052815518e2b2ce2ebee6d9fb861 author Stephen Rothwell Fri, 14 Jul 2006 17:27:26 +1000 committer Stephen Rothwell Fri, 14 Jul 2006 17:27:26 +1000 Merge branch 'mpe' commit ca652c9396fa052815518e2b2ce2ebee6d9fb861 tree 734a9f70c12a628fdd09d54ca7c1ced224b3964e parent 2d69ff32ebf3dff9e9b48bbbbafe2b9b6f188d48 author Michael Ellerman Fri, 14 Jul 2006 14:25:33 +1000 committer Stephen Rothwell Fri, 14 Jul 2006 17:26:59 +1000 [POWERPC] iseries: Move iommu_table_cb into platforms/iseries Although we pass the address of an iommu_table_cb to HvCallXm_getTceTableParms, we don't actually need the structure definition anywhere except in the iseries iommu code, so move the struct in there. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit 20697cb775bdd0271f3c90fad2d15c065fd19488 tree 011ae1040fda8cf4a4bf660a523d7e9abf682597 parent 54f5cd8afa1c9c9f8b152a946b0a7e0ecdef1631 parent 4e9e95a3554e98e7383a3591283ffcd850c9ef48 author Stephen Rothwell Thu, 13 Jul 2006 19:05:50 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 19:05:50 +1000 Merge branch 'hvc_iseries' commit 54f5cd8afa1c9c9f8b152a946b0a7e0ecdef1631 tree 6545b38374c9283ce00da3fe300247f3880de2da parent 380ed24b1b81a188c5b716286143157a27935aab author Stephen Rothwell Thu, 13 Jul 2006 18:56:56 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:56:56 +1000 [POWERPC] iseries: Remove unnecessary include of iseries/hv_lp_event.h Also remove unnecessary reference to struct HvLpEvent. Signed-off-by: Stephen Rothwell commit 380ed24b1b81a188c5b716286143157a27935aab tree 42a5bd13caecc7afba4469aa658779d155f64e06 parent 3da27289a8ecc688fc62c0961dfe89d392370480 author Stephen Rothwell Thu, 13 Jul 2006 18:56:00 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:56:00 +1000 [POWERPC] iseries: Small viotape cleanup allowed by devfs removal Signed-off-by: Stephen Rothwell commit 4e9e95a3554e98e7383a3591283ffcd850c9ef48 tree 245703cc917a274b84f02cf68c43ba5efe370f59 parent 8bff05b052db7a4cfaaf0eee7f8145600548e9c9 author Stephen Rothwell Thu, 13 Jul 2006 18:53:32 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:53:32 +1000 [POWERPC] Make the hvc_console output buffer size settable So the iSeries console will be faster since it can send up to 200 bytes at a time to the Hypervisor. This only affects the tty part of the console, the console writes are still in 16 byte lots. Signed-off-by: Stephen Rothwell commit 8bff05b052db7a4cfaaf0eee7f8145600548e9c9 tree fe637e3ba17b1453d039b8fdd7d9339fad674f4a parent 3da27289a8ecc688fc62c0961dfe89d392370480 author Stephen Rothwell Thu, 13 Jul 2006 18:51:22 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:51:22 +1000 [POWERPC] iseries: A new iSeries console This driver uses the hvc_console.c infrastructure that is used by the pSeries virtual and RTAS consoles. This will allow us to make viocons.c obsolete and is another step along the way to a combined kernel (as viocons could not coexist with CONFIG_VT). Signed-off-by: Stephen Rothwell commit 2d69ff32ebf3dff9e9b48bbbbafe2b9b6f188d48 tree 8c1a67ff3867c71427d10331d0e68f6517846477 parent 463c61928c453c2998d39b683c86385ee877c289 author Michael Ellerman Thu, 13 Jul 2006 17:54:44 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:43:25 +1000 [POWERPC] Fix a compiler warning in mm/tlb_64.c The compiler doesn't understand that BUG() never returns, so complains that psize isn't set. Just set it to the normal value, which seems to produce nice code and keeps gcc happy. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit 463c61928c453c2998d39b683c86385ee877c289 tree 86d2cb6885f8e7d2e0a1b20bfa972519f9c73cf8 parent f357b4cc5826ae55a5f3893424502cb15c6b6eba author Michael Ellerman Thu, 13 Jul 2006 17:54:44 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:43:12 +1000 [POWERPC] iseries: Fix a compiler warning in platforms/iseries/vpdinfo.c PhbId might be used unitialised, so set it to 0xff (nothing) always. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit f357b4cc5826ae55a5f3893424502cb15c6b6eba tree 39dcb3204ce8e5670863a180deda0c2a9efc9b5c parent 06a36db1d712242a00cb30aaebdd088b4be28082 author Michael Ellerman Thu, 13 Jul 2006 17:54:39 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:43:01 +1000 [POWERPC] iseries: Fix a compiler warning in platforms/iseries/vpdinfo.c iSeries_Get_Location_Code() has error paths, but currently returns void, so give it a return code and only print the output if it returns successfully. Gcc isn't smart enough to be quiet though, so set frame to 0 to shut it up. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit 06a36db1d712242a00cb30aaebdd088b4be28082 tree d768a710172634e939b4592f68a791e295800a26 parent a2ced11b6af59854cc2a2791dccd8b6c0da2f733 author Michael Ellerman Thu, 13 Jul 2006 17:52:17 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:42:52 +1000 [POWERPC] iseries: Move ItLpNaca into platforms/iseries Move ItLpNaca into platforms/iseries now that it's not used elsewhere. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit a2ced11b6af59854cc2a2791dccd8b6c0da2f733 tree 5f3d913c90c3836ce6b9e84a09d475de47de994a parent c59acae85409fdf5d7574e90009c8410daf38938 author Michael Ellerman Thu, 13 Jul 2006 17:52:12 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:42:38 +1000 [POWERPC] iseries: Make HvLpConfig_get(Primary)LpIndex functions HvLpConfig_get(Primary)LpIndex are currently static inlines that return fields from the itLpNaca, if we make them real functions we can make the itLpNaca private to iSeries. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit c59acae85409fdf5d7574e90009c8410daf38938 tree d61be73e9bff19478e5389b013de70fe0ea98465 parent a892e5d7fa7fb893b5873f7150a83f6f1ee141b5 author Michael Ellerman Thu, 13 Jul 2006 17:52:09 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:42:29 +1000 [POWERPC] iseries: Make ItExtVpdPanel private to iSeries No one outside platforms/iseries needs ItExtVpdPanel anymore, so move it in there. It used to be needed by lparcfg, and so was exported, but isn't needed anymore, so unexport it. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit a892e5d7fa7fb893b5873f7150a83f6f1ee141b5 tree 7bf5194235b14ffc837ed38db7110d01eb7a6089 parent dac411e7aa92d23dadbcb8721845ab88577294c7 author Michael Ellerman Thu, 13 Jul 2006 17:52:06 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:42:20 +1000 [POWERPC] iseries: Cleanup e2a() and strne2a() e2a() was formally used by lparcfg, and so had to be exported, but isn't anymore, so don't. e2a() and strne2a() can both be static, and __init. And e2a can be made much more concise if we use x ... y case labels, while we're there add support for lower case letters. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit dac411e7aa92d23dadbcb8721845ab88577294c7 tree 38cca1b9999c44db1ebf1aea53879a2130f85c7f parent a749690ecf7ab55aa46df1698bcee3ec110612df author Michael Ellerman Thu, 13 Jul 2006 17:52:04 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:42:03 +1000 [POWERPC] iseries: Move e2a()/strne2a() into their only caller The ASCII -> EBCDIC functions, e2a() and strne2a() are now only used in dt.c, so move them in there. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit a749690ecf7ab55aa46df1698bcee3ec110612df tree 2e86beded7bc9e6b2dc6c37a78a1a4c44e6687c1 parent 3da27289a8ecc688fc62c0961dfe89d392370480 author Michael Ellerman Thu, 13 Jul 2006 17:52:01 +1000 committer Stephen Rothwell Thu, 13 Jul 2006 18:41:43 +1000 [POWERPC] iseries: Use device tree /system-id in /proc/iSeries/config We export a bunch of info in /proc/iSeries/config. Currently we pull it directly out of some iSeries specific structs, but we could use the device tree instead, this saves decoding it twice and is a little neater. Signed-off-by: Michael Ellerman Signed-off-by: Stephen Rothwell commit dd2f5538a157bda68bfa8efb39feaaccdda9e74e tree 60d41757ff5ba39afcbe115ef6dd20e8db631334 parent 4221f980a4931364be7ffd81c4f16784990f6f8b author Daniel Drake Wed, 05 Jul 2006 15:57:31 +0100 committer John W. Linville Mon, 10 Jul 2006 14:19:42 -0400 [PATCH] zd1211rw: Add Sagem device ID's Based on a patch by Matthieu CASTET. zd1211 chip 079b:004a v4330 high 00-60-b3 AL2230_RF pa0 g-- zd1211b chip 079b:0062 v4810 high 00-60-b3 AL2230_RF pa0 g-- Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 4221f980a4931364be7ffd81c4f16784990f6f8b tree ab7f3b768a28ff306c95a8dac6c9a7e0182a8da3 parent 2087da5dc12c497123d5fb8949ceed9021b673ec author Larry Finger Thu, 29 Jun 2006 22:48:59 -0500 committer John W. Linville Mon, 10 Jul 2006 14:19:41 -0400 [PATCH] bcm43xx: improved statistics This patch improves the statistics returned from bcm43xx_get_wireless_stats. The signal level comes from smoothing the "rssi" value returned by the firmware after it is converted into a dBm value by the driver. The quality value is a hack derived from the smoothed level and an assumed RX_POWER_MAX of -10 dBM. The noise value is still the one calculated from the clean-room formula. On my system, this is roughly -65 dBm, which seems too high. The revised version uses the ieee80211 spinlock to protect traversing of the network list. Signed-Off-By: Larry Finger Signed-off-by: John W. Linville commit 2087da5dc12c497123d5fb8949ceed9021b673ec tree 86ba0a1f3353cf515208b549b0fb9b0c76794c92 parent efa6a370216f1816456b49aac03295071720f7eb author Michael Buesch Wed, 28 Jun 2006 20:17:57 +0200 committer John W. Linville Mon, 10 Jul 2006 14:19:41 -0400 [PATCH] bcm43xx: voluntary preemtion in the calibration loops This patch adds voluntary preemption points into the PHY calibration loops to allow non-CONFIG_PREEMPT machines to not suffer from huge delays. CONFIG_PREEMPT machines are already fine, because all this code is run in non-atomic process context. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit efa6a370216f1816456b49aac03295071720f7eb tree a29c205e603d96ad3b4ef34b274335a851672aac parent b312d799b324e895745ffe148def234fc60d5b74 author Michael Buesch Tue, 27 Jun 2006 21:38:40 +0200 committer John W. Linville Mon, 10 Jul 2006 14:19:41 -0400 [PATCH] bcm43xx: opencoded locking As many people don't seem to like the locking "obfuscation" in the bcm43xx driver, this patch removes it. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville commit 3da27289a8ecc688fc62c0961dfe89d392370480 tree cda59eaa2450fa1e98185f0c753210625570228e parent b5a1a9abe1a54ba40a9612001920f98bbdd0c56f author Jeremy Kerr Tue, 04 Jul 2006 16:47:18 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Remove linux,pci-domain properties The linux,pci-domain property is no longer used by DLPAR/PCI Hotplug utilites, or LSVPD. This change removes it. Built for ppc64_defconfig. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit b5a1a9abe1a54ba40a9612001920f98bbdd0c56f tree e0ed5a874d08e753b9643120cc68900c31c95cbe parent 980ffd3258dbcdb011e929de5d658ec81febba8d author Jeremy Kerr Tue, 04 Jul 2006 16:46:44 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Use const qualifiers for prom parsing utilites The of_bus callbacks map and get_flags can be constified, as they don't alter the range or addr arguments. of_dump_addr and of_read_addr can also be constified. Built for 32- and 64-bit powerpc Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 980ffd3258dbcdb011e929de5d658ec81febba8d tree 3cdf435f5aaf9fc40b6df43221f7d73576b80651 parent 7ed14c2177694ce086180eb9ca9ca4c6cd72c7ef author Jeremy Kerr Tue, 04 Jul 2006 16:44:46 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Remove linux,device properties The linux,device property isn't used anywhere within the kernel, and since it's a kernel pointer, it's a little useless for userspace. This change removes the code to create this property in of_device_register. Built for pmac32. Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 7ed14c2177694ce086180eb9ca9ca4c6cd72c7ef tree 3ae86ab89905167c8fdc9f220524d4d693895108 parent 861fa7737db889ae1701ba58c083d4a7bd8705d3 author Benjamin Herrenschmidt Thu, 06 Jul 2006 15:09:19 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Add cpufreq support for Xserve G5 The Xserve G5 are capable of frequency switching like other desktop G5s. This enables it. It also fix a Kconfig issue which prevented from building the G5 cpufreq support if CONFIG_PMAC_SMU was not set (the first version of that driver only worked with SMU based macs, but this isn't the case anymore). Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 861fa7737db889ae1701ba58c083d4a7bd8705d3 tree f2398f760279de2169a2c61b0a4034d1a0c0c2c1 parent e7c1f69d4fa4da47dc995b5de64b6cb76ae32081 author Benjamin Herrenschmidt Thu, 06 Jul 2006 18:03:06 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Xserve G5 thermal control fixes The thermal control for the Xserve G5s had a few issues. For one, the way to program the RPM fans speeds into the FCU is different between it and the desktop models, which I didn't figure out until recently, and it was missing a control loop for the slots fan, running it too fast. Both of those problems were causing the machine to be much more noisy than necessary. This patch also changes the fixed value of the slots fan for desktop G5s to 40% instead of 50%. It seems to still have a pretty good airflow that way and is much less noisy. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit e7c1f69d4fa4da47dc995b5de64b6cb76ae32081 tree f28032f439eb7a0a667eb6ac969b008e3e317f2e parent 73ea6959b11821ba5ade77fb1d3d4aed52be3b67 author Michael Ellerman Tue, 04 Jul 2006 17:13:23 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Fix mem= handling when the memory limit is > RMO size There's a bug in my cleaned up mem= handling, if the memory limit is larger than the RMO size we'll erroneously enlarge the RMO size. Fix is to only change the RMO size if the memory limit is less than the current RMO value. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras commit 73ea6959b11821ba5ade77fb1d3d4aed52be3b67 tree 0082aa5e030c4908a8d6f2ff2347a99a00c65bc5 parent a45b83957deabbdac9a3d908c6ca4c25f05ce1ad author Benjamin Herrenschmidt Tue, 04 Jul 2006 17:07:18 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] More offb/bootx fixes There were still some issues with offb when BootX doesn't provide a proper display node, this fixes them. This also re-instates the palette hacks that were disabled a couple of kernel versions ago when I converted to the new OF parsing, and shuffles some functions around to avoid prototypes. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit a45b83957deabbdac9a3d908c6ca4c25f05ce1ad tree 7f2115c9b732e0feae54d7e49134259076a9fc4f parent 26c5032eaa64090b2a01973b0c6ea9e7f6a80fa7 author Benjamin Herrenschmidt Tue, 04 Jul 2006 15:06:20 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:16 +1000 [POWERPC] Add support for briq front panel This adds the driver for the Briq front panel. This is a cleaned up version of a driver that has been floating around for some time now, initially written by Karsten Jeppesen and cleaned up by jk and myself. Signed-off-by: Jeremy Kerr Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 26c5032eaa64090b2a01973b0c6ea9e7f6a80fa7 tree 61cde3e5c0c5c7fe3e0cf89be2f2d5d1b9d35379 parent f704b8d1f080ee71b7a9a88bcf585e7dd4272f4b author Benjamin Herrenschmidt Tue, 04 Jul 2006 14:16:28 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Add briq support to CHRP The support for Briq machines has been floating around as patches for ages. This cleans it up and adds it once for all. Some of this is based on initial code provided by Karsten Jeppesen and mostly rewritten from scratch by me. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit f704b8d1f080ee71b7a9a88bcf585e7dd4272f4b tree c3a1306ef6f17652ea8464bcde3479255251caf2 parent e70e943847bdae13175bf3a8bca6328e369de90a author Benjamin Herrenschmidt Tue, 04 Jul 2006 14:14:07 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Fix legacy_serial.c error handling on 32 bits The code in legacy_serial.c wouldn't properly compare OF translation results against OF_BAD_ADDR as it's using a phys_addr_t which is 32 bits on some 32-bit powerpc platforms. This fixes it by always using a u64 which is what is returned by the OF parsing routines. It also makes translation failure harmless for ISA serial ports. If they can't translate, we can't use the UART early, but we can still let the 8250 driver use it later on by using IO port accessors. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit e70e943847bdae13175bf3a8bca6328e369de90a tree 98e5fdede7ccf87f70d557e148bb379d2a5bea56 parent 1e031d65b0cb5f882b20ebc356ea0345ff18dbf0 author Benjamin Herrenschmidt Tue, 04 Jul 2006 14:11:23 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Fix default clock for udbg_16550 This patch makes it possible to provide 0 as the clock value for udbg_16550, making it default to the standard 1.8432Mhz clock Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 1e031d65b0cb5f882b20ebc356ea0345ff18dbf0 tree 71e14bb61e74237ed1246e00994e1836787612fe parent 470407a88e549135dce5fba7d86fb9910f500e56 author Benjamin Herrenschmidt Tue, 04 Jul 2006 14:09:36 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Fix non-MPIC CHRPs with CONFIG_SMP set Pseudo-CHRP machines like Pegasos without an MPIC would crash at boot if CONFIG_SMP was set because the "smp_ops" pointer was set to MPIC related ops unconditionally. This patch makes it NULL on machines that don't support SMP and provides proper default behaviour in the callers when smp_ops is NULL. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 470407a88e549135dce5fba7d86fb9910f500e56 tree 5796327b363995e1b3833de5bf7253d53aec2986 parent e8c0acf9a4fe3b2b6847541bf5cc3c86c18272ec author Benjamin Herrenschmidt Tue, 04 Jul 2006 14:07:42 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Fix 32 bits warning in prom_init.c A warning is hurting my eyes when building 32 bits kernels Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit e8c0acf9a4fe3b2b6847541bf5cc3c86c18272ec tree e3017dabe83ffb716bd91c33b50c61fa1ff1a75a parent 3a09aa4730f021ad917a66a0c6d2ff6d616a7e4f author Benjamin Herrenschmidt Tue, 04 Jul 2006 14:06:29 +1000 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Workaround Pegasos incorrect ISA "ranges" The Pegasos firmware doesn't create a valid "ranges" property for the ISA bridge, thus causing translation of ISA addresses and IO ports to fail. This fixes it, thus re-enabling proper early serial console to work on Pegasos. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 3a09aa4730f021ad917a66a0c6d2ff6d616a7e4f tree 8eae9bdc1cd249ba4455537df3fcdb502da0eee0 parent fda7ffd25fc5bbe1b4209dfafb854c7ad7308c93 author Johannes Berg Mon, 03 Jul 2006 14:28:14 +0200 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] fix up front-LED Kconfig Rather long patch, apparently no one has updated the pmac32_defconfig in a while. Signed-off-by: Paul Mackerras commit fda7ffd25fc5bbe1b4209dfafb854c7ad7308c93 tree 1611f33a11f6ecb9beef7999b4a261f4af14e75a parent 120bda20c6f64b32e8bfbdd7b34feafaa5f5332e author Niels Kristian Bech Jensen Sun, 02 Jul 2006 13:02:27 +0200 committer Paul Mackerras Fri, 07 Jul 2006 20:19:15 +1000 [POWERPC] Add -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile. I got some undefined references to __stack_chk_fail in arch/powerpc/boot/stdio.o and arch/powerpc/boot/prom.o when I was trying to build a kernel on Ubuntu Edgy Eft - which includes Stack Smashing Protection. This patch adds -fno-stack-protector to BOOTCFLAGS in arch/powerpc/boot/Makefile (why does BOOTCFLAGS depend on HOSTCFLAGS and not CFLAGS?). Regards, Niels Kristian Bech Jensen Signed-off-by: Paul Mackerras