commit 4e9011d50d77ce7d234272e203235d8ecffd61a1 tree 0161b6ce6fccc3c07cebf9ed566cbd7530a34177 parent 82965addad66fce61a92c5f03104ea90b0b87124 author Andrew Morton Sun, 01 Oct 2006 02:22:41 -0700 committer Linus Torvalds Sun, 01 Oct 2006 10:39:01 -0700 [PATCH] rtc-sysfs fix It's not clear how this thinko got through.. Cc: Olaf Hering Cc: David Brownell Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 82965addad66fce61a92c5f03104ea90b0b87124 tree b099c6ef559ea7790b84df5ce34fa54bca46e24f parent f0b364a13d7fba001c0571d954f165dfaf5f434a parent 2cc1a4134f51b4aff7c7486d857e6773f493e370 author Linus Torvalds Sun, 01 Oct 2006 00:40:55 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:40:55 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart * master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart: [AGPGART] printk fixups. [AGPGART] Use pci_get_slot not pci_find_slot commit f0b364a13d7fba001c0571d954f165dfaf5f434a tree 9cd8bf4e800295e5dbf279e63b9793223fd20577 parent 5a73fdc5ea836d2edc5e02890b51185fe304d7d3 parent bfeeb0f57940b143a55dcc7ee88e8842108d9145 author Linus Torvalds Sun, 01 Oct 2006 00:40:35 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:40:35 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq * master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq: [CPUFREQ] Make acpi-cpufreq unsticky again. [CPUFREQ] longhaul: remove duplicated code. [CPUFREQ] Longhaul - Disable arbiter CLE266 [CPUFREQ] Fix section mismatch warning [CPUFREQ] Fix cut-n-paste bug in suspend printk commit 5a73fdc5ea836d2edc5e02890b51185fe304d7d3 tree ca5c79c348eae9d4297952cb9f7ea188bf18bdaf parent 789e6ac0a7cbbb38402293256a295302fd8a1100 author Zachary Amsden Sat, 30 Sep 2006 23:29:38 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:34 -0700 [PATCH] Some config.h removals During tracking down a PAE compile failure, I found that config.h was being included in a bunch of places in i386 code. It is no longer necessary, so drop it. Signed-off-by: Zachary Amsden Cc: Rusty Russell Cc: Jeremy Fitzhardinge Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 789e6ac0a7cbbb38402293256a295302fd8a1100 tree 65a1c946f72bdbc8226c2fab5882cc56b9da031e parent a93cb055a23f3172c1e6a22ac1dc4f1c07929b08 author Zachary Amsden Sat, 30 Sep 2006 23:29:38 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:34 -0700 [PATCH] paravirt: update pte hook Add a pte_update_hook which notifies about pte changes that have been made without using the set_pte / clear_pte interfaces. This allows shadow mode hypervisors which do not trap on page table access to maintain synchronized shadows. It also turns out, there was one pte update in PAE mode that wasn't using any accessor interface at all for setting NX protection. Considering it is PAE specific, and the accessor is i386 specific, I didn't want to add a generic encapsulation of this behavior yet. Signed-off-by: Zachary Amsden Cc: Rusty Russell Cc: Jeremy Fitzhardinge Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a93cb055a23f3172c1e6a22ac1dc4f1c07929b08 tree b2118140583912c78d42a3ba950be39815addc14 parent d6d861e3c963b4077c83e078e3e300c4b81f93e7 author Zachary Amsden Sat, 30 Sep 2006 23:29:37 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:34 -0700 [PATCH] paravirt: remove set pte atomic Now that ptep_establish has a definition in PAE i386 3-level paging code, the only paging model which is insane enough to have multi-word hardware PTEs which are not efficient to set atomically, we can remove the ghost of set_pte_atomic from other architectures which falesly duplicated it, and remove all knowledge of it from the generic pgtable code. set_pte_atomic is now a private pte operator which is specific to i386 Signed-off-by: Zachary Amsden Cc: Rusty Russell Cc: Jeremy Fitzhardinge Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d6d861e3c963b4077c83e078e3e300c4b81f93e7 tree 842071ac905575aa0ea8bedd3a1ac5db29416bcf parent 23002d88be309a7c78db69363c9d933a29a3b0bb author Zachary Amsden Sat, 30 Sep 2006 23:29:36 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:34 -0700 [PATCH] paravirt: optimize ptep establish for pae The ptep_establish macro is only used on user-level PTEs, for P->P mapping changes. Since these always happen under protection of the pagetable lock, the strong synchronization of a 64-bit cmpxchg is not needed, in fact, not even a lock prefix needs to be used. We can simply instead clear the P-bit, followed by a normal set. The write ordering is still important to avoid the possibility of the TLB snooping a partially written PTE and getting a bad mapping installed. Signed-off-by: Zachary Amsden Cc: Rusty Russell Cc: Jeremy Fitzhardinge Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 23002d88be309a7c78db69363c9d933a29a3b0bb tree ecd99ef70c0f38ff81bf2e3c6d7caeed2b88b41e parent 25e4df5bae333a06cd2c9b88baf14432652dc9f7 author Zachary Amsden Sat, 30 Sep 2006 23:29:35 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:34 -0700 [PATCH] paravirt: kpte flush Create a new PTE function which combines clearing a kernel PTE with the subsequent flush. This allows the two to be easily combined into a single hypercall or paravirt-op. More subtly, reverse the order of the flush for kmap_atomic. Instead of flushing on establishing a mapping, flush on clearing a mapping. This eliminates the possibility of leaving stale kmap entries which may still have valid TLB mappings. This is required for direct mode hypervisors, which need to reprotect all mappings of a given page when changing the page type from a normal page to a protected page (such as a page table or descriptor table page). But it also provides some nicer semantics for real hardware, by providing extra debug-proofing against using stale mappings, as well as ensuring that no stale mappings exist when changing the cacheability attributes of a page, which could lead to cache conflicts when two different types of mappings exist for the same page. Signed-off-by: Zachary Amsden Cc: Rusty Russell Cc: Jeremy Fitzhardinge Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 25e4df5bae333a06cd2c9b88baf14432652dc9f7 tree d1391bf273a3a30cc428fee24a626207f5dc331b parent 6606c3e0da5360799e07ae24b05080cc85c68e72 author Zachary Amsden Sat, 30 Sep 2006 23:29:34 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:34 -0700 [PATCH] paravirt: combine flush accessed dirty.patch Remove ptep_test_and_clear_{dirty|young} from i386, and instead use the dominating functions, ptep_clear_flush_{dirty|young}. This allows the TLB page flush to be contained in the same macro, and allows for an eager optimization - if reading the PTE initially returned dirty/accessed, we can assume the fact that no subsequent update to the PTE which cleared accessed / dirty has occurred, as the only way A/D bits can change without holding the page table lock is if a remote processor clears them. This eliminates an extra branch which came from the generic version of the code, as we know that no other CPU could have cleared the A/D bit, so the flush will always be needed. We still export these two defines, even though we do not actually define the macros in the i386 code: #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_YOUNG #define __HAVE_ARCH_PTEP_TEST_AND_CLEAR_DIRTY The reason for this is that the only use of these functions is within the generic clear_flush functions, and we want a strong guarantee that there are no other users of these functions, so we want to prevent the generic code from defining them for us. Signed-off-by: Zachary Amsden Cc: Rusty Russell Cc: Jeremy Fitzhardinge Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6606c3e0da5360799e07ae24b05080cc85c68e72 tree 5072acfc3b36e48ec84fe28805d160cbc9b28900 parent 9888a1cae3f859db38b9604e3df1c02177161bb0 author Zachary Amsden Sat, 30 Sep 2006 23:29:33 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] paravirt: lazy mmu mode hooks.patch Implement lazy MMU update hooks which are SMP safe for both direct and shadow page tables. The idea is that PTE updates and page invalidations while in lazy mode can be batched into a single hypercall. We use this in VMI for shadow page table synchronization, and it is a win. It also can be used by PPC and for direct page tables on Xen. For SMP, the enter / leave must happen under protection of the page table locks for page tables which are being modified. This is because otherwise, you end up with stale state in the batched hypercall, which other CPUs can race ahead of. Doing this under the protection of the locks guarantees the synchronization is correct, and also means that spurious faults which are generated during this window by remote CPUs are properly handled, as the page fault handler must re-check the PTE under protection of the same lock. Signed-off-by: Zachary Amsden Signed-off-by: Jeremy Fitzhardinge Cc: Rusty Russell Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9888a1cae3f859db38b9604e3df1c02177161bb0 tree 5954dc5e1a2dc1251a57a41aa15b7776a530f230 parent 3dc907951446b9317b1887223caa4e083390de9f author Zachary Amsden Sat, 30 Sep 2006 23:29:31 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] paravirt: pte clear not present Change pte_clear_full to a more appropriately named pte_clear_not_present, allowing optimizations when not-present mapping changes need not be reflected in the hardware TLB for protected page table modes. There is also another case that can use it in the fremap code. Signed-off-by: Zachary Amsden Signed-off-by: Jeremy Fitzhardinge Cc: Rusty Russell Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3dc907951446b9317b1887223caa4e083390de9f tree addff9ee95e0caea5e895a1a674e49f38254fddd parent bd4c8ce41a2e2f0c5bf54343ab54e8e09faec021 author Zachary Amsden Sat, 30 Sep 2006 23:29:30 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] paravirt: remove read hazard from cow We don't want to read PTEs directly like this after they have been modified, as a lazy MMU implementation of direct page tables may not have written the updated PTE back to memory yet. Signed-off-by: Zachary Amsden Signed-off-by: Jeremy Fitzhardinge Cc: Rusty Russell Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bd4c8ce41a2e2f0c5bf54343ab54e8e09faec021 tree e8a7d3cfafbe6ee35672953718ba4223e450d938 parent d025c9db7f31fc0554ce7fb2dfc78d35a77f3487 author Andrew Morton Sat, 30 Sep 2006 23:29:29 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] invalidate_inode_pages2(): ignore page refcounts The recent fix to invalidate_inode_pages() (git commit 016eb4a) managed to unfix invalidate_inode_pages2(). The problem is that various bits of code in the kernel can take transient refs on pages: the page scanner will do this when inspecting a batch of pages, and the lru_cache_add() batching pagevecs also hold a ref. Net result is transient failures in invalidate_inode_pages2(). This affects NFS directory invalidation (observed) and presumably also block-backed direct-io (not yet reported). Fix it by reverting invalidate_inode_pages2() back to the old version which ignores the page refcounts. We may come up with something more clever later, but for now we need a 2.6.18 fix for NFS. Cc: Chuck Lever Cc: Nick Piggin Cc: Peter Zijlstra Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d025c9db7f31fc0554ce7fb2dfc78d35a77f3487 tree 5da0a10cbc4b1a5cd5f04d7af2df334352df3728 parent e239ca540594cff00adcce163dc332b27015d8e5 author Andi Kleen Sat, 30 Sep 2006 23:29:28 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] Support piping into commands in /proc/sys/kernel/core_pattern Using the infrastructure created in previous patches implement support to pipe core dumps into programs. This is done by overloading the existing core_pattern sysctl with a new syntax: |program When the first character of the pattern is a '|' the kernel will instead threat the rest of the pattern as a command to run. The core dump will be written to the standard input of that program instead of to a file. This is useful for having automatic core dump analysis without filling up disks. The program can do some simple analysis and save only a summary of the core dump. The core dump proces will run with the privileges and in the name space of the process that caused the core dump. I also increased the core pattern size to 128 bytes so that longer command lines fit. Most of the changes comes from allowing core dumps without seeks. They are fairly straight forward though. One small incompatibility is that if someone had a core pattern previously that started with '|' they will get suddenly new behaviour. I think that's unlikely to be a real problem though. Additional background: > Very nice, do you happen to have a program that can accept this kind of > input for crash dumps? I'm guessing that the embedded people will > really want this functionality. I had a cheesy demo/prototype. Basically it wrote the dump to a file again, ran gdb on it to get a backtrace and wrote the summary to a shared directory. Then there was a simple CGI script to generate a "top 10" crashes HTML listing. Unfortunately this still had the disadvantage to needing full disk space for a dump except for deleting it afterwards (in fact it was worse because over the pipe holes didn't work so if you have a holey address map it would require more space). Fortunately gdb seems to be happy to handle /proc/pid/fd/xxx input pipes as cores (at least it worked with zsh's =(cat core) syntax), so it would be likely possible to do it without temporary space with a simple wrapper that calls it in the right way. I ran out of time before doing that though. The demo prototype scripts weren't very good. If there is really interest I can dig them out (they are currently on a laptop disk on the desk with the laptop itself being in service), but I would recommend to rewrite them for any serious application of this and fix the disk space problem. Also to be really useful it should probably find a way to automatically fetch the debuginfos (I cheated and just installed them in advance). If nobody else does it I can probably do the rewrite myself again at some point. My hope at some point was that desktops would support it in their builtin crash reporters, but at least the KDE people I talked too seemed to be happy with their user space only solution. Alan sayeth: I don't believe that piping as such as neccessarily the right model, but the ability to intercept and processes core dumps from user space is asked for by many enterprise users as well. They want to know about, capture, analyse and process core dumps, often centrally and in automated form. [akpm@osdl.org: loff_t != unsigned long] Signed-off-by: Andi Kleen Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e239ca540594cff00adcce163dc332b27015d8e5 tree 8dfb5c0be4864d738df5a5282e56d9e57ce8261f parent d6cbd281d189977b38eac7eb2a4678de19b6b483 author Andi Kleen Sat, 30 Sep 2006 23:29:27 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] Create call_usermodehelper_pipe() A new member in the ever growing family of call_usermode* functions is born. The new call_usermodehelper_pipe() function allows to pipe data to the stdin of the called user mode progam and behaves otherwise like the normal call_usermodehelp() (except that it always waits for the child to finish) Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d6cbd281d189977b38eac7eb2a4678de19b6b483 tree f853d303687275cd4328bfac53780b7c7c2c67ef parent 65da4d81f48e092f71feaf04bf2ccd096b5a5171 author Andi Kleen Sat, 30 Sep 2006 23:29:26 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:33 -0700 [PATCH] Some cleanup in the pipe code Split the big and hard to read do_pipe function into smaller pieces. This creates new create_write_pipe/free_write_pipe/create_read_pipe functions. These functions are made global so that they can be used by other parts of the kernel. The resulting code is more generic and easier to read and has cleaner error handling and less gotos. [akpm@osdl.org: cleanup] Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 65da4d81f48e092f71feaf04bf2ccd096b5a5171 tree a6822f8aac500b3ab8dae04a2abc615ec4e187ea parent af907dc8cd4157d629e48533b3400786467340d5 author Amol Lad Sat, 30 Sep 2006 23:29:25 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/sunsu.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Cc: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit af907dc8cd4157d629e48533b3400786467340d5 tree 9eaba954eed9be9133a60a94e342fef46b8f9a03 parent a141a04330bd6eadf7081a0860dc786be7d09c46 author Amol Lad Sat, 30 Sep 2006 23:29:25 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/mux.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a141a04330bd6eadf7081a0860dc786be7d09c46 tree d493b835c4c204f55a96b556539743d708cb065b parent be618f550cb499db263e2ce22c5ad4f4dbfd53e6 author Amol Lad Sat, 30 Sep 2006 23:29:24 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/mpsc.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Cc: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be618f550cb499db263e2ce22c5ad4f4dbfd53e6 tree a0ea46641aea148aee5ee5bc46d87b2f2d1a9f88 parent 6257b3bdfde4295c04872d710c2419ff8efc1b86 author Amol Lad Sat, 30 Sep 2006 23:29:23 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/mpc52xx_uart.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6257b3bdfde4295c04872d710c2419ff8efc1b86 tree 443b1cb09a00eeeeef789af521d9a3c0adad9c79 parent f4664132613caf40bfbf17b7e0ab3340a8b8f526 author Amol Lad Sat, 30 Sep 2006 23:29:22 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/ip22zilog.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f4664132613caf40bfbf17b7e0ab3340a8b8f526 tree 19de52077caafb9e0883418b8f95c8cb5301c577 parent d9964d5c9067fe58fecb7ba10b2de4771d2005d9 author Amol Lad Sat, 30 Sep 2006 23:29:21 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/ioc4_serial.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Cc: Brent Casavant Cc: Pat Gefre Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d9964d5c9067fe58fecb7ba10b2de4771d2005d9 tree 9fec2b132168e8b189f1fda323c3187f76a6d56a parent f12ad7d59ab77591e4ab2dacd6faa9ea9afffb99 author Amol Lad Sat, 30 Sep 2006 23:29:21 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/8250_gsc.c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f12ad7d59ab77591e4ab2dacd6faa9ea9afffb99 tree b7213b6cd80ae087076b4d1f99111be02797941d parent 16c564bb3cdecbc39eab5c0de3fe94ed58ba4163 author Amol Lad Sat, 30 Sep 2006 23:29:20 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] ioremap balanced with iounmap for drivers/serial/8250_acorn,c ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 16c564bb3cdecbc39eab5c0de3fe94ed58ba4163 tree d13624568aae302cfd11356d9266237ffa3b571b parent 9540fc42305859705b0232a10c8dec3ad866bd40 author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:19 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:32 -0700 [PATCH] Generic ioremap_page_range: x86_64 conversion Convert x86_64 to use generic ioremap_page_range() [akpm@osdl.org: build fix] Signed-off-by: Haavard Skinnemoen Acked-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9540fc42305859705b0232a10c8dec3ad866bd40 tree fbd227aca68a0ce56327b8c4048acedcbe4f13c8 parent a148ecfdf04d5fcb840324eef45d63ed674c73b9 author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:18 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: m32r conversion Convert m32r to use generic ioremap_page_range() Signed-off-by: Haavard Skinnemoen Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a148ecfdf04d5fcb840324eef45d63ed674c73b9 tree 29373c544fb3f20096f484b2982d3c18ae974482 parent e32cbc3df44838cc93a679aca3561f75b4964c57 author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:17 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: i386 conversion Convert i386 to use generic ioremap_page_range() [bunk@stusta.de: build fix] Signed-off-by: Haavard Skinnemoen Acked-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e32cbc3df44838cc93a679aca3561f75b4964c57 tree b3cf4f3eab9510503536cb83c9a7656a21a6c57c parent 86c8eb360daa6286e3f9bd32a22e5d9c69e86dd1 author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:17 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: cris conversion Convert CRIS to use generic ioremap_page_range() Signed-off-by: Haavard Skinnemoen Acked-by: Mikael Starvik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 86c8eb360daa6286e3f9bd32a22e5d9c69e86dd1 tree abf3912b1c1bf8a87f5d938d67c9831ce7424d15 parent 801f92ad5a0c630646f6746f3ed1663fcab185d1 author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:16 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: avr32 conversion Convert AVR32 to use generic ioremap_page_range() Signed-off-by: Haavard Skinnemoen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 801f92ad5a0c630646f6746f3ed1663fcab185d1 tree 4e8250fc77717c50e2d58a224545299489b98eb9 parent db71daabad0821996483dfe309c4bc81d6755a70 author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:15 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: alpha conversion Convert Alpha to use generic ioremap_page_range() by turning __alpha_remap_area_pages() into an inline wrapper around ioremap_page_range(). Signed-off-by: Haavard Skinnemoen Cc: Richard Henderson Cc: Ivan Kokshaysky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db71daabad0821996483dfe309c4bc81d6755a70 tree 10e60d91178ccb0d1fd1c47321fc6c096db926e5 parent 74588d8ba34ff1bda027cfa737972af01ab00c8b author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:14 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: flush_cache_vmap The existing implementation of ioremap_page_range(), which was taken from i386, does this: flush_cache_all(); /* modify page tables */ flush_tlb_all(); I think this is a bit defensive, so this patch changes the generic implementation to do: /* modify page tables */ flush_cache_vmap(start, end); instead, which is similar to what vmalloc() does. This should still be correct because we never modify existing PTEs. According to James Bottomley: The problem the flush_tlb_all() is trying to solve is to avoid stale tlb entries in the ioremap area. We're just being conservative by flushing on both map and unmap. Technically what vmalloc/vfree does (only flush the tlb on unmap) is just fine because it means that the only tlb entries in the remap area must belong to in-use mappings. Signed-off-by: Haavard Skinnemoen Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Russell King Cc: Mikael Starvik Cc: Andi Kleen Cc: Cc: Ralf Baechle Cc: Kyle McMartin Cc: Martin Schwidefsky Cc: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 74588d8ba34ff1bda027cfa737972af01ab00c8b tree 5e889e96d29c96e9c54ff72933de0612c61e9835 parent bc03613decef0cc4d2f3a24f19fa5a868745715f author Haavard Skinnemoen Sat, 30 Sep 2006 23:29:12 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] Generic ioremap_page_range: implementation This patch adds a generic implementation of ioremap_page_range() in lib/ioremap.c based on the i386 implementation. It differs from the i386 version in the following ways: * The PTE flags are passed as a pgprot_t argument and must be determined up front by the arch-specific code. No additional PTE flags are added. * Uses set_pte_at() instead of set_pte() [bunk@stusta.de: warning fix] ]dhowells@redhat.com: nommu build fix] Signed-off-by: Haavard Skinnemoen Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Russell King Cc: Mikael Starvik Cc: Andi Kleen Cc: Cc: Ralf Baechle Cc: Kyle McMartin Cc: Martin Schwidefsky Cc: Paul Mundt Signed-off-by: Adrian Bunk Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bc03613decef0cc4d2f3a24f19fa5a868745715f tree 7c3343b100ae399df29815d709e4ab01768141ca parent ce53af9496c625a8ae33526713be34a23756db19 author Fernando Vazquez Sat, 30 Sep 2006 23:29:10 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] stack overflow safe kdump: safe smp_send_nmi_allbutself() Re-implement smp_send_nmi_allbutself() so that calls to smp_processor_id (through send_IPI_allbutself) can be replaced with safe_smp_processor_id without affecting other parts of the kernel (as suggested by Eric Biederman). Signed-off-by: Fernando Vazquez Looks-reasonable-to: Andi Kleen Acked-by: "Eric W. Biederman" Cc: Vivek Goyal Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ce53af9496c625a8ae33526713be34a23756db19 tree c1d9b2ab0d4b2b89453e2f2a032fa0505492e85e parent 2654c08caa12a06237b28f85446ae2d223c30144 author Fernando Vazquez Sat, 30 Sep 2006 23:29:09 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] stack overflow safe kdump: crash: use safe_smp_processor_id() Substitute "smp_processor_id" with the stack overflow-safe "safe_smp_processor_id" in the reboot path to the second kernel. [akpm@osdl.org: build fix] Signed-off-by: Fernando Vazquez Looks-reasonable-to: Andi Kleen Acked-by: "Eric W. Biederman" Cc: Vivek Goyal Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2654c08caa12a06237b28f85446ae2d223c30144 tree 5b7d9060723ea1cd30e32343ed0b24a10fdcfd93 parent dc2bc768a009b9ad8711894c544dc6b0d8c0ce57 author Fernando Vazquez Sat, 30 Sep 2006 23:29:08 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:31 -0700 [PATCH] stack overflow safe kdump: safe_smp_processor_id(): voyager "safe_smp_processor_id" implementation for i386-Voyager. Signed-off-by: Fernando Vazquez Looks-reasonable-to: Andi Kleen Acked-by: "Eric W. Biederman" Cc: Vivek Goyal Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dc2bc768a009b9ad8711894c544dc6b0d8c0ce57 tree adc89a0b0a4d049b2a5387e330454809b9af6be2 parent ce71ec36840368b877fb63bd14c8e67ab62d08b1 author Fernando Vazquez Sat, 30 Sep 2006 23:29:07 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] stack overflow safe kdump: safe_smp_processor_id() This is a the first of a series of patch-sets aiming at making kdump more robust against stack overflows. This patch set does the following: * Add safe_smp_processor_id function to i386 architecture (this function was inspired by the x86_64 function of the same name). * Substitute "smp_processor_id" with the stack overflow-safe "safe_smp_processor_id" in the reboot path to the second kernel. This patch: On the event of a stack overflow critical data that usually resides at the bottom of the stack is likely to be stomped and, consequently, its use should be avoided. In particular, in the i386 and IA64 architectures the macro smp_processor_id ultimately makes use of the "cpu" member of struct thread_info which resides at the bottom of the stack. x86_64, on the other hand, is not affected by this problem because it benefits from the use of the PDA infrastructure. To circumvent this problem I suggest implementing "safe_smp_processor_id()" (it already exists in x86_64) for i386 and IA64 and use it as a replacement for smp_processor_id in the reboot path to the dump capture kernel. This is a possible implementation for i386. Signed-off-by: Fernando Vazquez Looks-reasonable-to: Andi Kleen Acked-by: "Eric W. Biederman" Cc: Vivek Goyal Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ce71ec36840368b877fb63bd14c8e67ab62d08b1 tree 55ea3caaa339881dfd66d787b3dbbb964825d07a parent 17ff785691503f63ec648df82a7fdaece7695561 author Dave Hansen Sat, 30 Sep 2006 23:29:06 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] r/o bind mounts: monitor zeroing of i_nlink Some filesystems, instead of simply decrementing i_nlink, simply zero it during an unlink operation. We need to catch these in addition to the decrement operations. Signed-off-by: Dave Hansen Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 17ff785691503f63ec648df82a7fdaece7695561 tree 9777f4787253941c723aac1e13ab37fb285bcc4a parent d8c76e6f45c111c32a4b3e50a2adc9210737b0d8 author Mark Fasheh Sat, 30 Sep 2006 23:29:05 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] r/o bind mounts: clean up OCFS2 nlink handling OCFS2 does some operations on i_nlink, then reverts them if some of its operations fail to complete. This does not fit in well with the drop_nlink() logic where we expect i_nlink to stay at zero once it gets there. So, delay all of the nlink operations until we're sure that the operations have completed. Also, introduce a small helper to check whether an inode has proper "unlinkable" i_nlink counts no matter whether it is a directory or regular inode. This patch is broken out from the others because it does contain some logical changes. Signed-off-by: Dave Hansen Signed-off-by: Mark Fasheh Cc: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d8c76e6f45c111c32a4b3e50a2adc9210737b0d8 tree 25521b59d48c6d8c9aec1af54dbe5008ad4b215b parent 9a53c3a783c2fa9b969628e65695c11c3e51e673 author Dave Hansen Sat, 30 Sep 2006 23:29:04 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] r/o bind mount prepwork: inc_nlink() helper This is mostly included for parity with dec_nlink(), where we will have some more hooks. This one should stay pretty darn straightforward for now. Signed-off-by: Dave Hansen Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9a53c3a783c2fa9b969628e65695c11c3e51e673 tree 5a6115e18ee105246d46e3db3d5b07749d232f5b parent aab520e2f6c80160cabd187a8d0292d1cec8ff68 author Dave Hansen Sat, 30 Sep 2006 23:29:03 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] r/o bind mounts: unlink: monitor i_nlink When a filesystem decrements i_nlink to zero, it means that a write must be performed in order to drop the inode from the filesystem. We're shortly going to have keep filesystems from being remounted r/o between the time that this i_nlink decrement and that write occurs. So, add a little helper function to do the decrements. We'll tie into it in a bit to note when i_nlink hits zero. Signed-off-by: Dave Hansen Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aab520e2f6c80160cabd187a8d0292d1cec8ff68 tree e066da750f4aba3e5b472a2fafd5d267876420e2 parent 6902d925d568cd5bfda8a1a328bf08d26d1bab46 author Dave Hansen Sat, 30 Sep 2006 23:29:02 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] r/o bind mount prepwork: move open_namei()'s vfs_create() The code around vfs_create() in open_namei() is getting a bit too complex. Right now, there is at least the reference count on the dentry, and the i_mutex to worry about. Soon, we'll also have mnt_writecount. So, break the vfs_create() call out of open_namei(), and into a helper function. This duplicates the call to may_open(), but that isn't such a bad thing since the arguments (acc_mode and flag) were being heavily massaged anyway. Signed-off-by: Dave Hansen Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6902d925d568cd5bfda8a1a328bf08d26d1bab46 tree 02f3cc489d0e47fb688587222d1793bd9298679b parent db5fed26b2e0beed939b773dd5896077a1794d65 author Dave Hansen Sat, 30 Sep 2006 23:29:01 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:30 -0700 [PATCH] r/o bind mounts: prepare for write access checks: collapse if() We're shortly going to be adding a bunch more permission checks in these functions. That requires adding either a bunch of new if() conditions, or some gotos. This patch collapses existing if()s and uses gotos instead to prepare for the upcoming changes. Signed-off-by: Dave Hansen Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db5fed26b2e0beed939b773dd5896077a1794d65 tree be7630821744aae53b2431383ef0b304a87f1268 parent 8f0ab5147951267134612570604cf8341901a80c author Jay Lan Sat, 30 Sep 2006 23:29:00 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] csa accounting taskstats update ChangeLog: Feedbacks from Andrew Morton: - define TS_COMM_LEN to 32 - change acct_stimexpd field of task_struct to be of cputime_t, which is to be used to save the tsk->stime of last timer interrupt update. - a new Documentation/accounting/taskstats-struct.txt to describe fields of taskstats struct. Feedback from Balbir Singh: - keep the stime of a task to be zero when both stime and utime are zero as recoreded in task_struct. Misc: - convert accumulated RSS/VM from platform dependent pages-ticks to MBytes-usecs in the kernel Cc: Shailabh Nagar Cc: Balbir Singh Cc: Jes Sorensen Cc: Chris Sturtivant Cc: Tony Ernst Cc: Guillaume Thouvenin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8f0ab5147951267134612570604cf8341901a80c tree d394edb3ab69396128e7971136f05fd71d863ece parent 9acc1853519a0473620d424105f9d49ea5b4e62e author Jay Lan Sat, 30 Sep 2006 23:28:59 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] csa: convert CONFIG tag for extended accounting routines There were a few accounting data/macros that are used in CSA but are #ifdef'ed inside CONFIG_BSD_PROCESS_ACCT. This patch is to change those ifdef's from CONFIG_BSD_PROCESS_ACCT to CONFIG_TASK_XACCT. A few defines are moved from kernel/acct.c and include/linux/acct.h to kernel/tsacct.c and include/linux/tsacct_kern.h. Signed-off-by: Jay Lan Cc: Shailabh Nagar Cc: Balbir Singh Cc: Jes Sorensen Cc: Chris Sturtivant Cc: Tony Ernst Cc: Guillaume Thouvenin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9acc1853519a0473620d424105f9d49ea5b4e62e tree fd4d03bf82ea604e71f8e805e557023226c2dd42 parent f3cef7a99469afc159fec3a61b42dc7ca5b6824f author Jay Lan Sat, 30 Sep 2006 23:28:58 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] csa: Extended system accounting over taskstats Add extended system accounting handling over taskstats interface. A CONFIG_TASK_XACCT flag is created to enable the extended accounting code. Signed-off-by: Jay Lan Cc: Shailabh Nagar Cc: Balbir Singh Cc: Jes Sorensen Cc: Chris Sturtivant Cc: Tony Ernst Cc: Guillaume Thouvenin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f3cef7a99469afc159fec3a61b42dc7ca5b6824f tree b1805a0d0b4a273b8ce0a245c17570ff18abdc5b parent 7d1bdca9b06acb3df07329eaff72d5eaf1543287 author Jay Lan Sat, 30 Sep 2006 23:28:55 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] csa: basic accounting over taskstats Add some basic accounting fields to the taskstats struct, add a new kernel/tsacct.c to handle basic accounting data handling upon exit. A handle is added to taskstats.c to invoke the basic accounting data handling. Signed-off-by: Jay Lan Cc: Shailabh Nagar Cc: Balbir Singh Cc: Jes Sorensen Cc: Chris Sturtivant Cc: Tony Ernst Cc: Guillaume Thouvenin Cc: "Michal Piotrowski" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7d1bdca9b06acb3df07329eaff72d5eaf1543287 tree 1e5b706964002cc6bfc42bc34f9be7f85382fb84 parent 0ae646845b603e9df5711084436d389f8371ffb3 author Balbir Singh Sat, 30 Sep 2006 23:28:54 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] Fix getdelays.c - cpumask length and error reporting Fix the length passed while (un)registering cpumask. We were passing sizeof the array, make it strlen(). Error value printed in fatal errors should be derived from the message. The message contains an nlmsgerr embedded with an error value. We must report that value to the user. Signed-off-by: Balbir Singh Cc: Jamal Hadi Cc: Shailabh Nagar Cc: Thomas Graf Cc: "David S. Miller" Cc: Jay Lan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0ae646845b603e9df5711084436d389f8371ffb3 tree 1554ba465812cc10c10b9bd28020a34effe0d8d4 parent 17db952cd16cecc76937b138c685ae3d198ab17c author Balbir Singh Sat, 30 Sep 2006 23:28:53 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] Fix taskstats size calculation (use the new genetlink utility functions) The addition of the CSA patch pushed the size of struct taskstats to 256 bytes. This exposed a problem with prepare_reply(), we were not allocating space for the netlink and genetlink header. It worked earlier because alloc_skb() would align the skb to SMP_CACHE_BYTES, which added some additonal bytes. Signed-off-by: Balbir Singh Cc: Jamal Hadi Cc: Shailabh Nagar Cc: Thomas Graf Cc: "David S. Miller" Cc: Jay Lan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 17db952cd16cecc76937b138c685ae3d198ab17c tree 5c8c83c75be3eb95065ec5241bfd82142622a91d parent 31608214fe21dc31d8046679054ab033b1fe5cf1 author Balbir Singh Sat, 30 Sep 2006 23:28:51 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] Add genetlink utilities for payload length calculation Add two utility helper functions genlmsg_msg_size() and genlmsg_total_size(). These functions are derived from their netlink counterparts. Signed-off-by: Balbir Singh Cc: Jamal Hadi Cc: Shailabh Nagar Cc: Thomas Graf Cc: "David S. Miller" Cc: Jay Lan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 31608214fe21dc31d8046679054ab033b1fe5cf1 tree 83c092cdafbff5695e6e65d0478b6d7b4e0a55b0 parent eed4e51fb60c3863c134a5e9f6006b29805ead97 author Chen, Kenneth W Sat, 30 Sep 2006 23:28:50 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] clean up unused kiocb variables Signed-off-by: Ken Chen Acked-by: Zach Brown Cc: Suparna Bhattacharya Cc: Benjamin LaHaise Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eed4e51fb60c3863c134a5e9f6006b29805ead97 tree edb0a80d75c454ad77001f3bd1a87933cbcff53f parent 543ade1fc901db4c3dbe9fb27241fb977f1f3eea author Badari Pulavarty Sat, 30 Sep 2006 23:28:49 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:29 -0700 [PATCH] Add vector AIO support This work is initially done by Zach Brown to add support for vectored aio. These are the core changes for AIO to support IOCB_CMD_PREADV/IOCB_CMD_PWRITEV. [akpm@osdl.org: huge build fix] Signed-off-by: Zach Brown Signed-off-by: Christoph Hellwig Signed-off-by: Badari Pulavarty Acked-by: Benjamin LaHaise Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 543ade1fc901db4c3dbe9fb27241fb977f1f3eea tree cdd1a1f67a718adf71e92fe08e4b3d33bf3dbadc parent ee0b3e671baff681d69fbf0db33b47603c0a8280 author Badari Pulavarty Sat, 30 Sep 2006 23:28:48 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:28 -0700 [PATCH] Streamline generic_file_* interfaces and filemap cleanups This patch cleans up generic_file_*_read/write() interfaces. Christoph Hellwig gave me the idea for this clean ups. In a nutshell, all filesystems should set .aio_read/.aio_write methods and use do_sync_read/ do_sync_write() as their .read/.write methods. This allows us to cleanup all variants of generic_file_* routines. Final available interfaces: generic_file_aio_read() - read handler generic_file_aio_write() - write handler generic_file_aio_write_nolock() - no lock write handler __generic_file_aio_write_nolock() - internal worker routine Signed-off-by: Badari Pulavarty Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ee0b3e671baff681d69fbf0db33b47603c0a8280 tree 3202ff815b2196c6c353bc5b28d7a2800df273ec parent 027445c37282bc1ed26add45e573ad2d3e4860a5 author Badari Pulavarty Sat, 30 Sep 2006 23:28:47 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:28 -0700 [PATCH] Remove readv/writev methods and use aio_read/aio_write instead This patch removes readv() and writev() methods and replaces them with aio_read()/aio_write() methods. Signed-off-by: Badari Pulavarty Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 027445c37282bc1ed26add45e573ad2d3e4860a5 tree 93eab101a938ffebaea64703033c8649df4d73f0 parent 9ea0f9499d15c49df23e7aac4332d830c40e12d0 author Badari Pulavarty Sat, 30 Sep 2006 23:28:46 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:28 -0700 [PATCH] Vectorize aio_read/aio_write fileop methods This patch vectorizes aio_read() and aio_write() methods to prepare for collapsing all aio & vectored operations into one interface - which is aio_read()/aio_write(). Signed-off-by: Badari Pulavarty Signed-off-by: Christoph Hellwig Cc: Michael Holzheu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9ea0f9499d15c49df23e7aac4332d830c40e12d0 tree e6a68575b3aa3a6ee0db0acf1c6469c0308bf0a7 parent 5a2618e6a972f305496daa257a56a09dd3acca29 author Jeff Mahoney Sat, 30 Sep 2006 23:28:45 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:28 -0700 [PATCH] reiserfs: eliminate minimum window size for bitmap searching When a file system becomes fragmented (using MythTV, for example), the bigalloc window searching ends up causing huge performance problems. In a file system presented by a user experiencing this bug, the file system was 90% free, but no 32-block free windows existed on the entire file system. This causes the allocator to scan the entire file system for each 128k write before backing down to searching for individual blocks. In the end, finding a contiguous window for all the blocks in a write is an advantageous special case, but one that can be found naturally when such a window exists anyway. This patch removes the bigalloc window searching, and has been proven to fix the test case described above. Signed-off-by: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5a2618e6a972f305496daa257a56a09dd3acca29 tree e2b64f244f3e4c413be0734c54ba25de62ff0138 parent 5065227b46235ec0131b383cc2f537069b55c6b6 author Jeff Mahoney Sat, 30 Sep 2006 23:28:44 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:28 -0700 [PATCH] reiserfs: use generic_file_open for open() checks The other common disk-based file systems (I checked ext[23], xfs, jfs) check to ensure that opens of files > 2 GB fail unless O_LARGEFILE is specified. They check via generic_file_open or their own open routine. ReiserFS doesn't have an f_op->open defined, and as such, it's possible to open files > 2 GB without O_LARGEFILE. This patch adds the f_op->open member to conform with the expected behavior. Signed-off-by: Jeff Mahoney Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5065227b46235ec0131b383cc2f537069b55c6b6 tree 12187734ef619626c901b9d2b43ad72286d4d258 parent 6f01046b35d940079822827498a7dd6d3eec8c6b author Jeff Mahoney Sat, 30 Sep 2006 23:28:44 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:28 -0700 [PATCH] reiserfs: on-demand bitmap loading This is the patch the three previous ones have been leading up to. It changes the behavior of ReiserFS from loading and caching all the bitmaps as special, to treating the bitmaps like any other bit of metadata and just letting the system-wide caches figure out what to hang on to. Buffer heads are allocated on the fly, so there is no need to retain pointers to all of them. The caching of the metadata occurs when the data is read and updated, and is considered invalid and uncached until then. I needed to remove the vs-4040 check for performing a duplicate operation on a particular bit. The reason is that while the other sites for working with bitmaps are allowed to schedule, is_reusable() is called from do_balance(), which will panic if a schedule occurs in certain places. The benefit of on-demand bitmaps clearly outweighs a sanity check that depends on a compile-time option that is discouraged. [akpm@osdl.org: warning fix] Signed-off-by: Jeff Mahoney Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6f01046b35d940079822827498a7dd6d3eec8c6b tree e65426389691c9d3e7d4f29da73725d15ee8e2f6 parent 0b3dc17bc0c0997bde9f5d7691ec0cae24258cf7 author Jeff Mahoney Sat, 30 Sep 2006 23:28:43 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] reiserfs: reorganize bitmap loading functions This patch moves the bitmap loading code from super.c to bitmap.c The code is also restructured somewhat. The only difference between new format bitmaps and old format bitmaps is where they are. That's a two liner before loading the block to use the correct one. There's no need for an entirely separate code path. The load path is generally the same, with the pattern being to throw out a bunch of requests and then wait for them, then cache the metadata from the contents. Again, like the previous patches, the purpose is to set up for later ones. Update: There was a bug in the previously posted version of this that resulted in corruption. The problem was that bitmap 0 on new format file systems must be treated specially, and wasn't. A stupid bug with an easy fix. This is hopefully the last fix for the disaster that is the reiserfs bitmap patch set. If a bitmap block was full, first_zero_hint would end up at zero since it would never be changed from it's zeroed out value. This just sets it beyond the end of the bitmap block. If any bits are freed, it will be reset to a valid bit. When info->free_count = 0, then we already know it's full. Signed-off-by: Jeff Mahoney Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0b3dc17bc0c0997bde9f5d7691ec0cae24258cf7 tree ecdbb6f830737358706b0ba7c628f47f9fdc0ff4 parent e1fabd3ccf02901374bffa434e0af472749a5bd9 author Jeff Mahoney Sat, 30 Sep 2006 23:28:42 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] reiserfs: clean up bitmap block buffer head references Similar to the SB_JOURNAL cleanup that was accepted a while ago, this patch uses a temporary variable for buffer head references from the bitmap info array. This makes the code much more readable in some areas. It also uses proper reference counting, doing a get_bh() after using the pointer from the array and brelse()'ing it later. This may seem silly, but a later patch will replace the simple temporary variables with an actual read, so the reference freeing will be used then. Signed-off-by: Jeff Mahoney Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1fabd3ccf02901374bffa434e0af472749a5bd9 tree 66d618e98020422874a521142ca2da797c9930f3 parent 8ef386092d7c2891bd7acefb2a87f878f7e9a0d6 author Jeff Mahoney Sat, 30 Sep 2006 23:28:40 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] reiserfs: fix is_reusable bitmap check to not traverse the bitmap info array There is a check in is_reusable to determine if a particular block is a bitmap block. It verifies this by going through the array of bitmap block buffer heads and comparing the block number to each one. Bitmap blocks are at defined locations on the disk in both old and current formats. Simply checking against the known good values is enough. This is a trivial optimization for a non-production codepath, but this is the first in a series of patches that will ultimately remove the buffer heads from that array. Signed-off-by: Jeff Mahoney Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8ef386092d7c2891bd7acefb2a87f878f7e9a0d6 tree b149f0c63f9b9bb3f43e82097f1ae5972662288f parent 70bc42f90a3f4721c89dbe865e6c95da8565b41c author Atsushi Nemoto Sat, 30 Sep 2006 23:28:31 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] kill wall_jiffies With 2.6.18-rc4-mm2, now wall_jiffies will always be the same as jiffies. So we can kill wall_jiffies completely. This is just a cleanup and logically should not change any real behavior except for one thing: RTC updating code in (old) ppc and xtensa use a condition "jiffies - wall_jiffies == 1". This condition is never met so I suppose it is just a bug. I just remove that condition only instead of kill the whole "if" block. [heiko.carstens@de.ibm.com: s390 build fix and cleanup] Signed-off-by: Atsushi Nemoto Cc: Andi Kleen Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Russell King Cc: Ian Molton Cc: Mikael Starvik Cc: David Howells Cc: Yoshinori Sato Cc: Hirokazu Takata Cc: Ralf Baechle Cc: Kyle McMartin Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Paul Mundt Cc: Kazumoto Kojima Cc: Richard Curnow Cc: William Lee Irwin III Cc: "David S. Miller" Cc: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Cc: Miles Bader Cc: Chris Zankel Cc: "Luck, Tony" Cc: Geert Uytterhoeven Cc: Roman Zippel Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 70bc42f90a3f4721c89dbe865e6c95da8565b41c tree b98b1b19584c4dfcec283715a14a701139ea32d1 parent 0883d899ef862c1b0f8b2c2d38098470c193a3dd author Adrian Bunk Sat, 30 Sep 2006 23:28:29 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] kernel/time/ntp.c: possible cleanups This patch contains the following possible cleanups: - make the following needlessly global function static: - ntp_update_frequency() - make the following needlessly global variables static: - time_state - time_offset - time_constant - time_reftime - remove the following read-only global variable: - time_precision Signed-off-by: Adrian Bunk Cc: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0883d899ef862c1b0f8b2c2d38098470c193a3dd tree 414fcb7849c285bed87928b4d5be21304cd6724e parent f19923937321244e7dc334767eb4b67e0e3d5c74 author Roman Zippel Sat, 30 Sep 2006 23:28:29 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] ntp: cleanup defines and comments Remove a few unused defines and remove obsolete information from comments. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f19923937321244e7dc334767eb4b67e0e3d5c74 tree be82956c645bab0cb13e73677116417d4c5ce311 parent 04b617e71e363e640e88be1e43f53fa6a3afef9f author Roman Zippel Sat, 30 Sep 2006 23:28:28 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] ntp: convert to the NTP4 reference model This converts the kernel ntp model into a model which matches the nanokernel reference implementations. The previous patches already increased the resolution and precision of the computations, so that this conversion becomes quite simple. explains: The original NTP kernel interface was defined in units of microseconds. That's what Linux implements. As computers have gotten faster and can now split microseconds easily, a new kernel interface using nanosecond units was defined ("the nanokernel", confusing as that name is to OS hackers), and there's an STA_NANO bit in the adjtimex() status field to tell the application which units it's using. The current ntpd supports both, but Linux loses some possible timing resolution because of quantization effects, and the ntpd hackers would really like to be able to drop the backwards compatibility code. Ulrich Windl has been maintaining a patch set to do the conversion for years, but it's hard to keep in sync. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 04b617e71e363e640e88be1e43f53fa6a3afef9f tree b59e8e75e4671bc5e10f4fcaace85d4658d4d0f0 parent 97eebe138caaf78354b1fad233e63bafdcc4fd54 author Roman Zippel Sat, 30 Sep 2006 23:28:27 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:27 -0700 [PATCH] ntp: convert time_freq to nsec value This converts time_freq to a scaled nsec value and adds around 6bit of extra resolution. This pushes the time_freq to its 32bit limits so the calculatons have to be done with 64bit. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 97eebe138caaf78354b1fad233e63bafdcc4fd54 tree 15c006598c953b373af1c164ba344ef7105a7251 parent 8f807f8d2137ba728d22820103131038639b68a9 author Roman Zippel Sat, 30 Sep 2006 23:28:26 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ntp: remove time_tolerance time_tolerance isn't changed at all in the kernel, so simply remove it, this simplifies the next patch, as it avoids a number of conversions. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8f807f8d2137ba728d22820103131038639b68a9 tree cea8d4eedbffc17ea9a01808afacb0e02dbbe206 parent 3d3675cc3d04d7fd4bb11e8c1ea79e5ade4f5e44 author Roman Zippel Sat, 30 Sep 2006 23:28:25 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ntp: add time_adjust to tick length This folds update_ntp_one_tick() into second_overflow() and adds time_adjust to the tick length, this makes time_next_adjust unnecessary. This slightly changes the adjtime() behaviour, instead of applying it to the next tick, it's applied to the next second. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3d3675cc3d04d7fd4bb11e8c1ea79e5ade4f5e44 tree 7beeef2896cb92e06b0a2ee8fa62b17f1732b72b parent dc6a43e46f1b6de22701f97bec022e97088cfa90 author Roman Zippel Sat, 30 Sep 2006 23:28:25 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ntp: prescale time_offset This converts time_offset into a scaled per tick value. This avoids now completely the crude compensation in second_overflow(). Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dc6a43e46f1b6de22701f97bec022e97088cfa90 tree b79c17697fc1f90ea2d6157dbdbf94aded8a0f15 parent ab8783b688f33c40ed7b37b814a4a1e7d341ce11 author Roman Zippel Sat, 30 Sep 2006 23:28:24 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ntp: add time_freq to tick length This adds the frequency part to ntp_update_frequency(). Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ab8783b688f33c40ed7b37b814a4a1e7d341ce11 tree 0c0813bc08f9532fe48135126b4809285de39007 parent b0ee75561beadc4db4d9a899c8ef4a7db50aa0ab author Roman Zippel Sat, 30 Sep 2006 23:28:23 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ntp: add time_adj to tick length This makes time_adj local to second_overflow() and integrates it into the tick length instead of adding it everytime. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b0ee75561beadc4db4d9a899c8ef4a7db50aa0ab tree e50354c74ce17f6ea78dc1d7fac608788de517f3 parent 4c7ee8de956fc250fe31e2fa91f6da980fabe317 author Roman Zippel Sat, 30 Sep 2006 23:28:22 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ntp: add ntp_update_frequency This introduces ntp_update_frequency() and deinlines ntp_clear() (as it's not performance critical). ntp_update_frequency() calculates the base tick length using tick_usec and adds a base adjustment, in case the frequency doesn't divide evenly by HZ. Signed-off-by: Roman Zippel Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4c7ee8de956fc250fe31e2fa91f6da980fabe317 tree e2d7c207a7ca9f785c256513686f6d7f7234ef93 parent c902e0a0102f1095eec4b3511c13c84ca2bc4577 author john stultz Sat, 30 Sep 2006 23:28:22 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] NTP: Move all the NTP related code to ntp.c Move all the NTP related code to ntp.c [akpm@osdl.org: cleanups, build fix] Signed-off-by: John Stultz Cc: Ingo Molnar Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c902e0a0102f1095eec4b3511c13c84ca2bc4577 tree d0b276420263d02436a2f10d323407615f48b94f parent df3fe8defedc52745526914e12eb4ba0b8a9f6ca author Josh Triplett Sat, 30 Sep 2006 23:28:21 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] Pass sparse the lock expression given to lock annotations The lock annotation macros __acquires, __releases, __acquire, and __release all currently throw away the lock expression passed as an argument. Now that sparse can parse __context__ and __attribute__((context)) with a context expression, pass the lock expression down to sparse as the context expression. This requires a version of sparse from GIT commit 37475a6c1c3e66219e68d912d5eb833f4098fd72 or later. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit df3fe8defedc52745526914e12eb4ba0b8a9f6ca tree 389280329901ab1e01e4549ca4fb67b6d3c20060 parent dcb9c39236a27c2288a7059aa504abb57427df7c author Corey Minyard Sat, 30 Sep 2006 23:28:20 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:26 -0700 [PATCH] ipmi: don't start kipmid if the IPMI driver can use interrupts If the driver has interrupts available to it, there is really no reason to have a kernel daemon push the IPMI state machine. Note that I have experienced machines where the interrupts do not work correctly. This was a long time ago and hopefully things are better now. If some machines still have broken interrupts, a blacklist will need to be added. Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dcb9c39236a27c2288a7059aa504abb57427df7c tree 2ec7c2470ab6bc290bc1b6ff5c52fec16ea90dd9 parent 391b1fe67d193df75144a92b146613c36491ef0d author David Brownell Sat, 30 Sep 2006 23:28:19 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] omap_cf works again (sync with linux-omap tree) This syncs the omap_cf driver with the one from the linux-omap tree. Changes include fixing build warnings (section mismatch, unused return value) and coping with various pcmcia core changes related to managing i/o memory and irq resources. Signed-off-by: David Brownell Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 391b1fe67d193df75144a92b146613c36491ef0d tree ea455c0b5b2ed29cf11a33ffecc85d58851d2ab7 parent 90b4d648f02a653b192be7f0feb0a933b7525e6a author Atsushi Nemoto Sat, 30 Sep 2006 23:28:18 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] RTC: rtc-ds1553, rtc-ds1742 update Check return value of sysfs_create_bin_file(). Fix polarity of RTC_BATT_FLAG bit in DS1742. Signed-off-by: Atsushi Nemoto Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 90b4d648f02a653b192be7f0feb0a933b7525e6a tree b3a99a94f4b5f494776cd0d341040f20d55faeb0 parent ff8371ac9a5a55c956991fed8e5f58640c7a32f3 author David Brownell Sat, 30 Sep 2006 23:28:17 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] AT91rm9200 RTC can issue system wakeup events This lets the at91rm9200 RTC alarm be a system wakeup irq, according to the setting of /sys/devices/platform/at91_rtc/power/wakeup. User code can set the alarm, put the system into a low power mode, and then rely on it waking up no later than the specified moment. Signed-off-by: David Brownell Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ff8371ac9a5a55c956991fed8e5f58640c7a32f3 tree 893271623ab3f66ec54e2c27ef93598975f4efbc parent db621f174d2c017d960089ea8cbc91c0763f1069 author David Brownell Sat, 30 Sep 2006 23:28:17 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] constify rtc_class_ops: update drivers Update RTC framework so that drivers can constify their method tables, moving them from ".data" to ".rodata". Then update the drivers. Signed-off-by: David Brownell Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db621f174d2c017d960089ea8cbc91c0763f1069 tree 68a6ab944fdd30b2e6a7a0fb5a06629a4f4a6af9 parent 818a8674b0388d90e33a5d1b13946b40dda7032a author David Brownell Sat, 30 Sep 2006 23:28:16 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] RTC class: error checks The rtc_is_valid_tm() routine needs to treat some of the fields it checks as unsigned, to prevent wrongly accepting invalid rtc_time structs; this is the same approach used elsewhere in the RTC code for such tests. Conversely, rtc_proc_show() is missing one invalid-day-of-month test that rtc_is_valid_tm() makes: there is no day zero. Signed-off-by: David Brownell Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 818a8674b0388d90e33a5d1b13946b40dda7032a tree 8972d170496e416170fcc0c82bcb634118392e78 parent 9e86ecb659f11b36b5e189214b19cb31ef5dfd72 author David Brownell Sat, 30 Sep 2006 23:28:15 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] RTC class uses subsys_init This makes RTC core components use "subsys_init" instead of "module_init", as appropriate for subsystem infrastructure. This is mostly useful for statically linking drivers in other parts of the tree that may provide an RTC interface as a secondary functionality (e.g. part of a multifunction chip); they won't need to worry so much about drivers/Makefile link order. Signed-off-by: David Brownell Cc: Alessandro Zummo Acked-by: Oleg Verych Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9e86ecb659f11b36b5e189214b19cb31ef5dfd72 tree 4442ea511c962765fa06c2ae65b301caaa65d542 parent 0847062ad57e6d2d77875104d66f413a89769809 author David Brownell Sat, 30 Sep 2006 23:28:14 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] RTC class: Kconfig improvements Small updates to make the RTC class Kconfig text be more informative. This should help folk used to the drivers/char/rtc.c support, or a single RTC, be slightly less surprised by the differences. Also, adds a new RTC_DEBUG option to predefine DEBUG in the framework and its drivers, while debugging. That's getting to be a standard idiom, and it's pretty useful. Signed-off-by: David Brownell Cc: Alessandro Zummo Acked-by: Oleg Verych Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0847062ad57e6d2d77875104d66f413a89769809 tree 1a426022cff23084b47fb148d59319928b95dc27 parent 1713e903c680de4934837689abecc5df02f463ac author Randy Dunlap Sat, 30 Sep 2006 23:28:13 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] fix EMBEDDED + SYSCTL menu SYSCTL should still depend on EMBEDDED. This unbreaks the EMBEDDED menu (from the recent SYSCTL_SYCALL menu option patch). Fix typos in new SYSCTL_SYSCALL menu. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1713e903c680de4934837689abecc5df02f463ac tree cc1677465cc57c2a0202eadd27a4a86baccf2850 parent 365e02237b164701897244aab7412b21c5e622af author Jean-Baptiste Maneyrol Sat, 30 Sep 2006 23:28:12 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] rtc driver rtc-pcf8563 century bit inversed The century bit PCF8563_MO_C in the month register is misinterpreted. It is set to 1 for the 20th century and 0 for 21th, and the driver is expecting the opposite behavior. Acked-by: Alessandro Zummo Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 365e02237b164701897244aab7412b21c5e622af tree 59dfbfa62e7b80d5eb197041c8f077e2c39cbe0f parent 6e9a4738c9fadb7cbdcabc1e3b415159f3741ed9 author Jiri Slaby Sat, 30 Sep 2006 23:28:11 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:25 -0700 [PATCH] Char: specialix, kill unneeded page alloc The driver is allocating a page but doesn't actually use it for anything. (History from the old ->write method before Linus cleaned it up) Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6e9a4738c9fadb7cbdcabc1e3b415159f3741ed9 tree 0e470bb8cd431d59698da5a6999ff35a347619a3 parent 397d6140e93156ecb9cafcd9be0db10ff3c12ab3 author Peter Zijlstra Sat, 30 Sep 2006 23:28:10 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] completions: lockdep annotate on stack completions All on stack DECLARE_COMPLETIONs should be replaced by: DECLARE_COMPLETION_ONSTACK Signed-off-by: Peter Zijlstra Acked-by: Ingo Molnar Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 397d6140e93156ecb9cafcd9be0db10ff3c12ab3 tree d24bdacaf4fd31cbddc684e4b3d9d216911b4c2d parent 3a2711116073db258224afd2cc0f478bdf305575 author Eric Sesterhenn Sat, 30 Sep 2006 23:28:09 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] Remove unnecessary check in drivers/rtc/rtc-v3020.c Looks like the probe function always gets a valid pdev, and checking it after dereferencing it is pretty useless. This patch removes the check (cid #1365) Signed-off-by: Eric Sesterhenn Cc: Alessandro Zummo Cc: Raphael Assenat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3a2711116073db258224afd2cc0f478bdf305575 tree 83117f5b2846833102918329e3c17607ddd08d9e parent 9ba0bdfd040b2893bcddfec7165b545d22fc2dc7 author Rolf Eike Beer Sat, 30 Sep 2006 23:28:09 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] Remove BUG_ON(unlikely) in include/linux/aio.h BUG_ON() does this unlikely check itself, as bugs in Linux are unlikely anyway :) Signed-off-by: Rolf Eike Beer Acked-by: Zach Brown Acked-by: Benjamin LaHaise Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9ba0bdfd040b2893bcddfec7165b545d22fc2dc7 tree c83c7eec1fede751cb53dceb5ea44a1d5609d782 parent 710b8b5f4341e72a5f5f6fa58d1f73a0db64bf93 author Jan Altenberg Sat, 30 Sep 2006 23:28:08 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] typo fixes for rt-mutex-design.txt Address some simple typos in rt-mutex-design.txt It also changes the indentation of the cmpxchg example (the cmpxchg example was indented by spaces, while all other code snippets were indented by tabs). Acked-by: Steven Rostedt Signed-off-by: Jan Altenberg Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 710b8b5f4341e72a5f5f6fa58d1f73a0db64bf93 tree 636ab896e273b3eb30cda8f8bf10e0e2f07a933d parent 095d030cff0eafd29ee31e022d374874146a5b4c author Soos Peter Sat, 30 Sep 2006 23:28:06 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] hdaps: support Lenovo ThinkPad T60 Support hdaps on Lenovo ThinkPad T60. It was tested with pivot utility from http://www.kernel.org/pub/linux/kernel/people/rml/hdaps and it seems to be OK. Cc: Jean Delvare Cc: Greg Kroah-Hartman Cc: Robert Love Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 095d030cff0eafd29ee31e022d374874146a5b4c tree cec6f1906b77ed55f71933bd090097487d5da976 parent 1cfee2b3c21d71a8c20884dbb77ed343558db87f author Eric Sesterhenn Sat, 30 Sep 2006 23:28:05 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] Off-by-one in drivers/char/mwave/mwavedd.c This fixes two off by ones in the mwave driver, found via find -iname \*.[ch] | xargs grep "> ARRAY_SIZE(" Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1cfee2b3c21d71a8c20884dbb77ed343558db87f tree e7445d49fc9a9798b5371784b5b78d4d057d815d parent b2e9c7d07fcc8966d6aa50a77afa66c9919bd5a8 author Alan Cox Sat, 30 Sep 2006 23:28:03 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] trident: fix pci_dev reference counting and buglet Switch trident to use pci_get/put_dev properly. Also fix a bug where the driver erroneously passed pdev not NULL to a second search. This happened to always work except with pci=reverse because of chip ordering. Signed-off-by: Alan Cox Signed-off-by: Muli Ben-Yehuda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b2e9c7d07fcc8966d6aa50a77afa66c9919bd5a8 tree 55ef4fd8db585802ac2f0185d5da36ab041b05b5 parent 74ae3221818eaf3884ceac931ba3cd2c00045483 author Peter Zijlstra Sat, 30 Sep 2006 23:28:02 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:24 -0700 [PATCH] sysrq: disable lockdep on reboot SysRq : Emergency Sync Emergency Sync complete SysRq : Emergency Remount R/O Emergency Remount complete SysRq : Resetting BUG: warning at kernel/lockdep.c:1816/trace_hardirqs_on() (Not tainted) Call Trace: [] show_trace+0xae/0x319 [] dump_stack+0x15/0x17 [] trace_hardirqs_on+0xbc/0x13d [] sysrq_handle_reboot+0x9/0x11 [] __handle_sysrq+0x99/0x130 [] handle_sysrq+0x17/0x19 [] kbd_event+0x32e/0x57d [] input_event+0x42d/0x45b [] atkbd_interrupt+0x44d/0x53d [] serio_interrupt+0x49/0x86 [] i8042_interrupt+0x202/0x21a [] handle_IRQ_event+0x2c/0x64 [] __do_IRQ+0xaf/0x114 [] do_IRQ+0xf8/0x107 [] ret_from_intr+0x0/0xf DWARF2 unwinder stuck at ret_from_intr+0x0/0xf Leftover inexact backtrace: [] mwait_idle+0x3f/0x54 [] cpu_idle+0xa2/0xc5 [] rest_init+0x2b/0x2d [] start_kernel+0x24a/0x24c [] _sinittext+0x28b/0x292 Since we're shutting down anyway, don't bother being smart, just turn the thing off. Signed-off-by: Peter Zijlstra Acked-by: Ingo Molnar Cc: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 74ae3221818eaf3884ceac931ba3cd2c00045483 tree 2ccffd76721979ff314ea40471e509b236c13a21 parent df10f4edd5f097251c62f1d4a3adea778100b4a8 author Alan Cox Sat, 30 Sep 2006 23:28:00 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] cardbus: switch to ref counting/hotplug safe API Signed-off-by: Alan Cox Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit df10f4edd5f097251c62f1d4a3adea778100b4a8 tree b5f7ba2e0ed805de67f9a9774d982a08e4f291df parent 1aff0ecafb5e94515dc37849fd32a810554f34f4 author Alan Cox Sat, 30 Sep 2006 23:27:59 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] i2o: Switch to pci_get API Use the safe ref-counted API for the bridge check Signed-off-by: Alan Cox Cc: Markus Lidel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1aff0ecafb5e94515dc37849fd32a810554f34f4 tree 6c212a534d046f9f271b3d7be8fd31ac4c2bf045 parent 30cbc22217bb3d5d4c74c88127fbf595460bdb76 author Alan Cox Sat, 30 Sep 2006 23:27:59 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] ip2: use newer pci_get functions This is one of a series of patches I plan to gradually trickle into the tree which eliminates almost all remaining use of pci_find_* and lets me build a pci_find_* free kernel for all but some obscure ISDN and SCSI drivers. This is important as all pci_find_* users are not hotplug safe - even if they are not the device being plugged. Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 30cbc22217bb3d5d4c74c88127fbf595460bdb76 tree eab298c63f4dcf4ecd35f753da2e5ccf394a7718 parent c69c31270c35a6b8421a8e4ba81de1247ac6df95 author Olaf Hering Sat, 30 Sep 2006 23:27:57 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] update legacy io handling for pmac ppc can boot one single binary on prep, chrp and pmac boards. ppc64 can boot one single binary on pseries and G5 boards. pmac has no legacy io, probing for PC style legacy hardware (or accessing the legacy io area regulary) may lead to a hard crash: * add check for parport_pc, exit on pmac. 32bit chrp has no ->check_legacy_ioport, the probe is always called. 64bit chrp has check_legacy_ioport, check for a "parallel" node * add check for isapnp, only PReP boards may have real ISA slots. 32bit PReP will have no ->check_legacy_ioport, the probe is always called. * update code in i8042_platform_init. Run ->check_legacy_ioport first, always call request_region. No functional change. Remove whitespace before i8042_reset init. Signed-off-by: Olaf Hering Acked-by: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Adam Belay Cc: Dmitry Torokhov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c69c31270c35a6b8421a8e4ba81de1247ac6df95 tree 5f46902faa683f32a69adbe53c8ec3ca4ed19466 parent 54f67f631dfc25ca7a8b19200e34013abc974337 author Corey Minyard Sat, 30 Sep 2006 23:27:56 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] IPMI: per-channel command registration This patch adds the ability to register for a command per-channel in the IPMI driver. If your BMC supports multiple channels, incoming messages can be useful to have the ability to register to receive commands on a specific channel instead the current behaviour of all channels. Signed-off-by: David Barksdale Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 54f67f631dfc25ca7a8b19200e34013abc974337 tree 96c481c2723e1f5f626110c9a7f1c4a07b9ee056 parent 89bbc03c01f68e627a2b120963f136e2815f0d84 author Petr Vandrovec Sat, 30 Sep 2006 23:27:55 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] Move ncpfs 32bit compat ioctl to ncpfs The ncp specific compat ioctls are clearly local to one file system, so the code can better live there. This version of the patch moves everything into the generic ioctl handler and uses it for both 32 and 64 bit calls. Signed-off-by: Arnd Bergmann Signed-off-by: Petr Vandrovec Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 89bbc03c01f68e627a2b120963f136e2815f0d84 tree e2f02e3eb615f36ca4d5e7ebb9d77889f7957bb2 parent 643f720cea989d2913fc0120a2384fecc1be1f9a author Thomas Petazzoni Sat, 30 Sep 2006 23:27:54 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] Prevent multiple inclusion of linux/sysrq.h Prevent multiple inclusions of include/linux/sysrq.h using traditional #ifndef..#endif. Signed-off-by: Thomas Petazzoni Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 643f720cea989d2913fc0120a2384fecc1be1f9a tree f3afb762a3e93a2b71392ee8442f4f9a70e6b169 parent fb48388337182013bce811b9c336e8e64b0c858b author Pierre Ossman Sat, 30 Sep 2006 23:27:52 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:23 -0700 [PATCH] mmc (mainly): add "or later" clause to licence statement. Clarify my (Pierre's) position on which GPL versions apply. The patch only touches the source files where I am the only major author. The people who have made the minor commits to the files have been contacted and have no issues with this change. Signed-off-by: Pierre Ossman Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb48388337182013bce811b9c336e8e64b0c858b tree dbf052a3911e2e0468d82ddd6d0f1adb8d2c67c3 parent e4e040887b8f136d00e253dcf584667d8cd560a6 author Olaf Hering Sat, 30 Sep 2006 23:27:51 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] remove SYSRQ_KEY and related defines from ppc/sh/h8300 Remove unused global SYSRQ_KEY from ppc and powerpc Remove unused define SYSRQ_KEY from sh/sh64 and h8300 Remove unused pckbd_sysrq_xlate and kbd_sysrq_xlate usage Signed-off-by: Olaf Hering Cc: Paul Mundt Cc: Kazumoto Kojima Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e4e040887b8f136d00e253dcf584667d8cd560a6 tree 70672802a7ace7663f6d785845a30418ee3ff305 parent 3f27100872b21e4cc70d07b96eeb3611b30bce63 author Jiri Slaby Sat, 30 Sep 2006 23:27:50 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] isicom: correct firmware loading - loading of firmware didn't fail when something went wrong (returned 0). - pointer to frame was incremented only by sizeof(frame) excluding its data contents -- bad idea. - tell the card we're ready just after checking is complete, not before. Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3f27100872b21e4cc70d07b96eeb3611b30bce63 tree 8c15911bfb2f995fb28b2d72a1c86a4836d92478 parent 328a338f6f9943a0a77292315a25628b22f79fed author Diego Calleja Sat, 30 Sep 2006 23:27:49 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] HOWTO: mention bughunting Signed-off-by: Diego Calleja Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 328a338f6f9943a0a77292315a25628b22f79fed tree f38a4b110b8d728a5be847e567eafb961b586e88 parent cc088d10d02978641c7a2eecd18caf1e01e597b3 author Rolf Eike Beer Sat, 30 Sep 2006 23:27:48 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] rtc: remove superfluous call to call to cdev_del() If cdev_add() fails there is no good reason to call cdev_del(). Signed-off-by: Rolf Eike Beer Cc: Alessandro Zummo Cc: Dmitry Torokhov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cc088d10d02978641c7a2eecd18caf1e01e597b3 tree 31c6e47cb6383d86f0c3cd8b5fca283d9b27e639 parent a077c1a075473910928676ed95acb393259d9310 author Metathronius Galabant Sat, 30 Sep 2006 23:27:47 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] cciss: remove unneeded spaces in output for attached volumes It removes the awkwards spaces after the "=" when displaying the geometry of the attached volumes. Before: cciss: using DAC cycles blocks= 286734240 block_size= 512 heads= 255, sectors= 32, cylinders= 35139 After: cciss: using DAC cycles blocks=286734240 block_size=512 heads=255, sectors=32, cylinders=35139 Signed-off-by: Metathronius Galabant Acked-by: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a077c1a075473910928676ed95acb393259d9310 tree e716bba9465e3c4a2c3269baa2e6e797a0e6bd95 parent cb10dc9ac7eea2c891df6b79b9ef1fbe59cb5429 author Paul Fulghum Sat, 30 Sep 2006 23:27:46 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] synclink_gt: increase max devices Increase maximum number of devices. Signed-off-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cb10dc9ac7eea2c891df6b79b9ef1fbe59cb5429 tree 68afaa1be814d2845c1f516920a48cc59270fa0c parent 3c1fcfe229e99752c74efb945a4a3f560be04204 author Paul Fulghum Sat, 30 Sep 2006 23:27:45 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] synclink_gt: add bisync and monosync modes Add bisync and monosync serial protocol support to the synclink_gt driver. Signed-off-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3c1fcfe229e99752c74efb945a4a3f560be04204 tree 44085d9b599e06a92426141811a6f712beac17aa parent cdc39363d33506b0e067d41fc91f89d186bdf7f7 author Martin Schwidefsky Sat, 30 Sep 2006 23:27:45 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] Directed yield: direct yield of spinlocks for s390. Use the new diagnose 0x9c in the spinlock implementation for s390. It yields the remaining timeslice of the virtual cpu that tries to acquire a lock to the virtual cpu that is the current holder of the lock. Signed-off-by: Martin Schwidefsky Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cdc39363d33506b0e067d41fc91f89d186bdf7f7 tree abbc303abbccd730b56c35bd021f8ff57e4f5929 parent ef6edc9746dc2bfdacf44eefd5f881179971c478 author Martin Schwidefsky Sat, 30 Sep 2006 23:27:44 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:22 -0700 [PATCH] Directed yield: direct yield of spinlocks for powerpc Powerpc already has a directed yield for CONFIG_PREEMPT="n". To make it work with CONFIG_PREEMPT="y" as well the _raw_{spin,read,write}_relax primitives need to be defined to call __spin_yield() for spinlocks and __rw_yield() for rw-locks. Acked-by: Paul Mackerras Signed-off-by: Martin Schwidefsky Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ef6edc9746dc2bfdacf44eefd5f881179971c478 tree e8670e918a852978b2e93e189936f327be072284 parent e3e5fc91d9828a9b94a3992de47d47d2d2e34ec6 author Martin Schwidefsky Sat, 30 Sep 2006 23:27:43 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] Directed yield: cpu_relax variants for spinlocks and rw-locks On systems running with virtual cpus there is optimization potential in regard to spinlocks and rw-locks. If the virtual cpu that has taken a lock is known to a cpu that wants to acquire the same lock it is beneficial to yield the timeslice of the virtual cpu in favour of the cpu that has the lock (directed yield). With CONFIG_PREEMPT="n" this can be implemented by the architecture without common code changes. Powerpc already does this. With CONFIG_PREEMPT="y" the lock loops are coded with _raw_spin_trylock, _raw_read_trylock and _raw_write_trylock in kernel/spinlock.c. If the lock could not be taken cpu_relax is called. A directed yield is not possible because cpu_relax doesn't know anything about the lock. To be able to yield the lock in favour of the current lock holder variants of cpu_relax for spinlocks and rw-locks are needed. The new _raw_spin_relax, _raw_read_relax and _raw_write_relax primitives differ from cpu_relax insofar that they have an argument: a pointer to the lock structure. Signed-off-by: Martin Schwidefsky Cc: Ingo Molnar Cc: Paul Mackerras Cc: Haavard Skinnemoen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e3e5fc91d9828a9b94a3992de47d47d2d2e34ec6 tree ad4af3aeb264438772e85e9c901b15459ade0cbb parent fd7bcea35e7efb108c34ee2b3840942a3749cadb author Paul Collins Sat, 30 Sep 2006 23:27:41 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] leds: turn LED off when changing triggers I was playing with LED triggers when I noticed that changing from heartbeat (or ide-disk) to "none" at the right moment would leave the LED stuck on. This is easy to reproduce by doing "find / >/dev/null" with the ide-disk trigger enabled and then switching to "none". Here is a patch that fixes the problem by explicitly turning the LED off after removing the existing trigger. Signed-off-by: Paul Collins Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fd7bcea35e7efb108c34ee2b3840942a3749cadb tree 683c4d261c71b76de5e1f927be759f18208ef718 parent ce584f913870bbad8779a1130d4be48698560bf0 author Jim Cromie Sat, 30 Sep 2006 23:27:40 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] Doc/lockdep-design: explain display of {state-bits} Signed-off-by: Jim Cromie Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ce584f913870bbad8779a1130d4be48698560bf0 tree 95e1a51fa934ce208e2ea2f861ffcf48f6bf561b parent c53421b18f205c5f97c604ae55c6a921f034b0f6 author Andrew Morton Sat, 30 Sep 2006 23:27:39 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] submit checklist: mention headers_check Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c53421b18f205c5f97c604ae55c6a921f034b0f6 tree 375e5196d5649714737132ac287b12c1ac7091ec parent f5579f8c7d7e2c9eb62b566c511b21091a778157 author Alexey Dobriyan Sat, 30 Sep 2006 23:27:37 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] proper flags type of spin_lock_irqsave() Convert various spin_lock_irqsave() callers to correctly use `unsigned long'. Signed-off-by: Alexey Dobriyan Cc: Miles Bader Cc: "Luck, Tony" Acked-by: Kyle McMartin Cc: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f5579f8c7d7e2c9eb62b566c511b21091a778157 tree 76d3df1e8e3865bc3867f3934df081933d1e9ee6 parent 4636d93b461779cd95156cc5f5d53690a5d6a07b author Josef 'Jeff' Sipek Sat, 30 Sep 2006 23:27:35 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] VFS: Use SEEK_{SET, CUR, END} instead of hardcoded values VFS: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Acked-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4636d93b461779cd95156cc5f5d53690a5d6a07b tree 2d2b3fdad8eb559ac568f0b71e4b192f79e385d5 parent 930ff81c595e7923575cd7c0b8d7284ac1b3815e author Josef 'Jeff' Sipek Sat, 30 Sep 2006 23:27:34 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] EICON ISDN: Removed unused definitions for OS_SEEK_* EICON ISDN: Removed unused definitions for OS_SEEK_* Signed-off-by: Josef 'Jeff' Sipek Cc: Karsten Keil Acked-by: Armin Schindler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 930ff81c595e7923575cd7c0b8d7284ac1b3815e tree 9ce4bd58b5e4d0728e4ae32ad8a2636dfad79dc9 parent edceeaf50be1764db4aa7c1b19e540067a051e77 author Josef 'Jeff' Sipek Sat, 30 Sep 2006 23:27:33 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] MBCS: Use SEEK_{SET, CUR, END} instead of hardcoded values MBCS: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit edceeaf50be1764db4aa7c1b19e540067a051e77 tree 28ea98a31821c94ab0d315ca59cf015b1d4a1699 parent 40cddf2cbd02aa830254afcd5a1a21b4e882a189 author Alan Cox Sat, 30 Sep 2006 23:27:32 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:21 -0700 [PATCH] via* : switch to pci_get_device refcounted PCI API If we can clean up these remainders we can finally delete pci_find_* Signed-off-by: Alan Cox Cc: Greg KH Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 40cddf2cbd02aa830254afcd5a1a21b4e882a189 tree 8ec1525ceaa3d674a44df7a4e1c627924f54f65b parent 970a61363be4a6633de0fbbe6fe3a249238c4acc author Alan Cox Sat, 30 Sep 2006 23:27:30 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] sis5513: Switch to pci refcounting Mirrors the drivers/ata version, hold a reference to the host bridge while we are doing setup. Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 970a61363be4a6633de0fbbe6fe3a249238c4acc tree 198c15246e805853fef4f63d859e308411f152b4 parent 1424e5044882f92b8c51540033b229723e1f2651 author Alan Cox Sat, 30 Sep 2006 23:27:29 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] serverworks: Switch to pci refcounted interfaces As we don't support hotplug we end up leaking an isa_dev reference which if unload was ever added we would drop at the end of unloading. This is fine because we do genuinely need the isa_dev pointer until unload. Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1424e5044882f92b8c51540033b229723e1f2651 tree 59cb71ecaab44b7de4647ad75e6510c100e436d6 parent a78b464a283e55feb286647d9662f5cb8f235500 author Alan Cox Sat, 30 Sep 2006 23:27:28 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] piix: Use refcounted interface when searching for a 450NX Simple conversion Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a78b464a283e55feb286647d9662f5cb8f235500 tree ec74042bb601105c8d38d96e1a4b9facf79c27b1 parent 14fef6414be49d59f4784eeef8d9c3f468993205 author Alan Cox Sat, 30 Sep 2006 23:27:27 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] cs46xx OSS: switch to pci_get_device Fairly trivial change in this case Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 14fef6414be49d59f4784eeef8d9c3f468993205 tree 5b30d0df89584a2a7abea19c558b62db57570479 parent f2443ab6c485701576e9116ee44817e66adafd5a author Alan Cox Sat, 30 Sep 2006 23:27:26 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] via82cxxx_audio: Use pci_get_device pci_find_device is not refcounting and should be getting killed off. Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f2443ab6c485701576e9116ee44817e66adafd5a tree 7a2da6ef78d69f92e44d660a7a041de4147aea20 parent 756184b7d771992f4fb1998d62aebcaf3e028076 author Ross Biro Sat, 30 Sep 2006 23:27:25 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] allow /proc/config.gz to be built as a module The driver for /proc/config.gz consumes rather a lot of memory and it is in fact possible to build it as a module. In some ways this is a bit risky, because the .config which is used for compiling kernel/configs.c isn't necessarily the same as the .config which was used to build vmlinux. But OTOH the potential memory savings are decent, and it'd be fairly dumb to build your configs.o with a different .config. Signed-off-by: Andrew Morton Cc: "Randy.Dunlap" Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 756184b7d771992f4fb1998d62aebcaf3e028076 tree f3ff7af2a600b1e5a9b60e030057c8b3d589499a parent c7bce3097c0f9bbed76ee6fd03742f2624031a45 author Cal Peake Sat, 30 Sep 2006 23:27:24 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] CodingStyle cleanup for kernel/sys.c Fix up kernel/sys.c to be consistent with CodingStyle and the rest of the file. Signed-off-by: Cal Peake Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c7bce3097c0f9bbed76ee6fd03742f2624031a45 tree 6a9690926d5afd84545ca364dd3ca173d9aca1eb parent 00988a3514bbc0cce781c067cf52559741d88b80 author Alan Cox Sat, 30 Sep 2006 23:27:24 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] serial: Fix up offenders peering at baud bits directly Stop some other people peering into the baud bits on their own and make them use the tty_get_baud_rate() helper as a preperation for the move to the new termios. Corrected dependancy previous one had on new termios structs Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 00988a3514bbc0cce781c067cf52559741d88b80 tree e0a844ecd9351c67dd9e73e8e6aafd064fa43137 parent 82b0547cfae1fb2ee26cad588f6d49a347d24740 author Mike Miller (OS Dev) Sat, 30 Sep 2006 23:27:23 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:20 -0700 [PATCH] cciss: support for >2TB logical volumes Add support for logical volumes >2TB. All SAS/SATA controllers support large volumes. Signed-off-by: Mike Miller Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 82b0547cfae1fb2ee26cad588f6d49a347d24740 tree 67575452152d0e51a573f66053c29c2028f3701e parent 52978be636374c4bfb61220b37fa12f55a071c46 author Alexey Dobriyan Sat, 30 Sep 2006 23:27:22 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] Create fs/utimes.c * fs/open.c is getting bit crowdy * preparation to lutimes(2) Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 52978be636374c4bfb61220b37fa12f55a071c46 tree 36444be7bdbc0cdd99d903c0ad87316c93427517 parent 1a2f67b459bb7846d4a15924face63eb2683acc2 author Alexey Dobriyan Sat, 30 Sep 2006 23:27:21 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] kmemdup: some users Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1a2f67b459bb7846d4a15924face63eb2683acc2 tree 4c010d4c4220c9523342fb0daac90a433f36b53e parent 9442e691e4aec85eba43ac60a3e77c77fd2e73a4 author Alexey Dobriyan Sat, 30 Sep 2006 23:27:20 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] kmemdup: introduce One of idiomatic ways to duplicate a region of memory is dst = kmalloc(len, GFP_KERNEL); if (!dst) return -ENOMEM; memcpy(dst, src, len); which is neat code except a programmer needs to write size twice. Which sometimes leads to mistakes. If len passed to kmalloc is smaller that len passed to memcpy, it's straight overwrite-beyond-end. If len passed to memcpy is smaller than len passed to kmalloc, it's either a) legit behaviour ;-), or b) cloned buffer will contain garbage in second half. Slight trolling of commit lists shows several duplications bugs done exactly because of diverged lenghts: Linux: [CRYPTO]: Fix memcpy/memset args. [PATCH] memcpy/memset fixes OpenBSD: kerberosV/src/lib/asn1: der_copy.c:1.4 If programmer is given only one place to play with lengths, I believe, such mistakes could be avoided. With kmemdup, the snippet above will be rewritten as: dst = kmemdup(src, len, GFP_KERNEL); if (!dst) return -ENOMEM; This also leads to smaller code (kzalloc effect). Quick grep shows 200+ places where kmemdup() can be used. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9442e691e4aec85eba43ac60a3e77c77fd2e73a4 tree 51314e5fcf6c023788df67a130cb6e692e5df496 parent 5c87579e65ee4f419b2369407f82326d38b5d2d8 author Takashi Iwai Sat, 30 Sep 2006 23:27:19 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] maximum latency tracking: ALSA support Add maximum latency tracking to the ALSA subsystem for PCM playback. In ALSA, the playback application controls the buffer size and thus indirectly the period of latency that it can deal with. This patch uses 75% of the total available latency as threshold to announce to the latency subsystem; While 75% is a crude heuristic it's a quite reasonable one; the remaining 25% can be used for all driver processing for the next samples which is also proportional to the size of the buffer. With ogg123 a latency setting of about 4msec was seen (at 44Khz), while with the "play" command a much longer maximum tolerable latency was seen. Other, more multimedia oriented players as well as games, will have a lot smaller buffers to allow better synchronization and those will actually get into the latency domains where there is impact on the power management rules. Signed-off-by: Takashi Iwai Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5c87579e65ee4f419b2369407f82326d38b5d2d8 tree 3e015ba93eb6eefb7ed4318daf95be0771d596a8 parent 130c6b98984a058068ea595c465fba2beb48b9ef author Arjan van de Ven Sat, 30 Sep 2006 23:27:17 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] maximum latency tracking infrastructure Add infrastructure to track "maximum allowable latency" for power saving policies. The reason for adding this infrastructure is that power management in the idle loop needs to make a tradeoff between latency and power savings (deeper power save modes have a longer latency to running code again). The code that today makes this tradeoff just does a rather simple algorithm; however this is not good enough: There are devices and use cases where a lower latency is required than that the higher power saving states provide. An example would be audio playback, but another example is the ipw2100 wireless driver that right now has a very direct and ugly acpi hook to disable some higher power states randomly when it gets certain types of error. The proposed solution is to have an interface where drivers can * announce the maximum latency (in microseconds) that they can deal with * modify this latency * give up their constraint and a function where the code that decides on power saving strategy can query the current global desired maximum. This patch has a user of each side: on the consumer side, ACPI is patched to use this, on the producer side the ipw2100 driver is patched. A generic maximum latency is also registered of 2 timer ticks (more and you lose accurate time tracking after all). While the existing users of the patch are x86 specific, the infrastructure is not. I'd like to ask the arch maintainers of other architectures if the infrastructure is generic enough for their use (assuming the architecture has such a tradeoff as concept at all), and the sound/multimedia driver owners to look at the driver facing API to see if this is something they can use. [akpm@osdl.org: cleanups] Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Acked-by: Jesse Barnes Cc: "Brown, Len" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 130c6b98984a058068ea595c465fba2beb48b9ef tree 7dbcc6470bf522db5d94bc90c72f633755ecc74a parent 4d81715fc5dfa1680ad47d7edf3ac4a74c5bf104 author Richard Knutsson Sat, 30 Sep 2006 23:27:15 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] fs/partitions: Conversion to generic boolean Conversion of booleans to: generic-boolean.patch (2006-08-23) Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4d81715fc5dfa1680ad47d7edf3ac4a74c5bf104 tree ec5de5f1e7aa18911fe76957e106fc3492048e86 parent c49c31115067bc7c9a51ffdc735a515151dfa3eb author Richard Knutsson Sat, 30 Sep 2006 23:27:14 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] fs/jfs: Conversion to generic boolean Conversion of booleans to: generic-boolean.patch (2006-08-23) Signed-off-by: Richard Knutsson Cc: Dave Kleikamp Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c49c31115067bc7c9a51ffdc735a515151dfa3eb tree 1ffeddacb5cf06fbdb8a1fc385eb9ee5f1c3174c parent 6e21828743247270d09a86756a0c11702500dbfb author Richard Knutsson Sat, 30 Sep 2006 23:27:12 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:19 -0700 [PATCH] fs/ntfs: Conversion to generic boolean Conversion of booleans to: generic-boolean.patch (2006-08-23) Signed-off-by: Richard Knutsson Signed-off-by: Anton Altaparmakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6e21828743247270d09a86756a0c11702500dbfb tree e38e37a5040801787e8e942ba35c25903cea0d77 parent be5b7a8987f23281b146f22b13e2079f448c69c7 author Richard Knutsson Sat, 30 Sep 2006 23:27:11 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] Generic boolean This patch defines: * a generic boolean-type, named 'bool' * aliases to 0 and 1, named 'false' and 'true' Removing colliding definitions of 'bool', 'false' and 'true'. Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be5b7a8987f23281b146f22b13e2079f448c69c7 tree 41227ddbc82b97095ae45d11b5071c7239868b9b parent 45e0b78b0532f92c01e363dd4287617c5be4574f author Andrew Morton Sat, 30 Sep 2006 23:27:10 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] arch/i386/pci/mmconfig.c tweaks - Add soothing comment - uninline thrice-called function Cc: OGAWA Hirofumi Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 45e0b78b0532f92c01e363dd4287617c5be4574f tree 8c09edff4667535252b5c95efd68d397ae1283a5 parent 53947027ad90542ddb2bb746e3175827c270610a author Keith Mannthey Sat, 30 Sep 2006 23:27:09 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: use CONFIG_MEMORY_HOTPLUG_RESERVE The api for hot-add memory already has a construct for finding nodes based on an address, memory_add_physaddr_to_nid. This patch allows the fucntion to do something besides return 0. It uses the nodes_add infomation to lookup to node info for a hot add event. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 53947027ad90542ddb2bb746e3175827c270610a tree 385add6ef71095c9dba4c23ef778d92502de1086 parent 8c2676a5870ab15cbeea9f826266bc946fe3cc26 author Keith Mannthey Sat, 30 Sep 2006 23:27:08 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: use CONFIG_MEMORY_HOTPLUG_SPARSE Migate CONFIG_MEMORY_HOTPLUG to CONFIG_MEMORY_HOTPLUG_SPARSE where needed. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8c2676a5870ab15cbeea9f826266bc946fe3cc26 tree 0df06fce24312d7f2d1120d984dd7ae258cb40ef parent 4942e998b40b8f6080930ec16442444e9930aee5 author Keith Mannthey Sat, 30 Sep 2006 23:27:07 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: memory_add_physaddr_to_nid node fixup In cases where the acpi memory-add event does not containe the pxm (node) infomation allow the driver to look up node info based on the address. The acpi_get_node call returns -1 if it can't decode the pxm info, this causes add_memory to panic. acpi_get_node would have to decode the resource from the handle (a lenghty proposition). This seems to be the cleanist point to interject the hook. [kamezawa.hiroyu@jp.fujitsu.com: build fixes] [y-goto@jp.fujitsu.com: build fixes] Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4942e998b40b8f6080930ec16442444e9930aee5 tree 7b321e7e632dddb88539dd2e22c3b4ad06fae4f2 parent 71efa8fdc55e70ec6687c897a30759f0a2c2ad7e author Keith Mannthey Sat, 30 Sep 2006 23:27:06 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: memory_add_physaddr_to_nid enable The api for hot-add memory already has a construct for finding nodes based on an address, memory_add_physaddr_to_nid. This patch allows the fucntion to do something besides return 0. It uses the nodes_add infomation to lookup to node info for a hot add event. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 71efa8fdc55e70ec6687c897a30759f0a2c2ad7e tree 93975fd0431f856f7285ad90a13cc4ea73f740d3 parent ec69acbb1191df671ff8e07c8e146619a5c53f70 author Keith Mannthey Sat, 30 Sep 2006 23:27:05 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: Enable SPARSEMEM in srat.c Enable x86_64 srat.c to share code between both reserve and sparsemem based add memory paths. Both paths need the hot-add area node locality infomration (nodes_add). This code refactors the code path to allow this. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ec69acbb1191df671ff8e07c8e146619a5c53f70 tree 431aea50c8b614686543342c114ce36465b9dbc2 parent f28c5edc06ecd8068b38b7662ad19f4d20d741af author Keith Mannthey Sat, 30 Sep 2006 23:27:05 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: Kconfig changes Create Kconfig namespace for MEMORY_HOTPLUG_RESERVE and MEMORY_HOTPLUG_SPARSE. This is needed to create a disticiton between the 2 paths. Selecting the high level opiton of MEMORY_HOTPLUG will get you MEMORY_HOTPLUG_SPARSE if you have sparsemem enabled or MEMORY_HOTPLUG_RESERVE if you are x86_64 with discontig and ACPI numa support. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f28c5edc06ecd8068b38b7662ad19f4d20d741af tree 4582acbf62b7a484b62b69e3f465cf4d069f7e2a parent 236561e5df009f79f1939e3ca269b9b6f18092f5 author Keith Mannthey Sat, 30 Sep 2006 23:27:04 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:18 -0700 [PATCH] hot-add-mem x86_64: fixup externs Fix up externs in memory_hotplug.c. Cleanup. Signed-off-by: Keith Mannthey Cc: KAMEZAWA Hiroyuki Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 236561e5df009f79f1939e3ca269b9b6f18092f5 tree 86e9f0986667c4238983a6520b0f3f6aee622062 parent 3fcd03e07008ec0f667dfb7626171165699ea5c2 author Alan Cox Sat, 30 Sep 2006 23:27:03 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:17 -0700 [PATCH] PCI quirks update This fixes two things Firstly someone mistakenly used "errata" for the singular. This causes Dave Woodhouse to emit diagnostics whenever the string is read, and so should be fixed. Secondly the AMD AGP tunnel has an erratum which causes hangs if you try and do direct PCI to AGP transfers in some cases. We have a flag for PCI/PCI failures but we need a different flag for this really as in this case we don't want to stop PCI/PCI transfers using things like IOAT and the new RAID offload work. I'll post some updates to make proper use of the PCIAGP flag in the media/video drivers to Mauro. Signed-off-by: Alan Cox Cc: David Woodhouse Signed-off-by: Greg Kroah-Hartman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3fcd03e07008ec0f667dfb7626171165699ea5c2 tree 311370abb953013b7ffa458b63b376706560061e parent ab8e92efcf3f7972f30033cad75f180aef4f3abc author Gavin Lambert Sat, 30 Sep 2006 23:27:01 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:17 -0700 [PATCH] NOMMU: don't try and give NULL to fput() Don't try and give NULL to fput() in the error handling in do_mmap_pgoff() as it'll cause an oops. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ab8e92efcf3f7972f30033cad75f180aef4f3abc tree 3205746553d1981de43cdaa07739f910fd25ed2d parent 1bdfd554be94def718323659173517c5d4a69d25 author Andrew Morton Sat, 30 Sep 2006 23:26:59 -0700 committer Linus Torvalds Sun, 01 Oct 2006 00:39:17 -0700 [PATCH] list_del-debug fix These two BUG_ON()s are redundant and undesired: we're checking for this condition further on in the function, only better. Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bfeeb0f57940b143a55dcc7ee88e8842108d9145 tree b437c2887bf46e79358b9a64fbe7c15b92bc3063 parent eed7d41257e2a2a38b3ad121b8948f7bfeaa21c0 author Dave Jones Sat, 30 Sep 2006 23:19:38 -0400 committer Dave Jones Sat, 30 Sep 2006 23:19:38 -0400 [CPUFREQ] Make acpi-cpufreq unsticky again. This caused suspend/resume regressions. Signed-off-by: Dave Jones commit 1bdfd554be94def718323659173517c5d4a69d25 tree 706790ffc4edfe5e113edbff46f3618299423f80 parent cb5d9e0948122dd8b808550574d95bd60674ba3b author Jeff Garzik Sat, 30 Sep 2006 21:28:22 -0400 committer Linus Torvalds Sat, 30 Sep 2006 19:33:43 -0700 [PATCH] SCSI: fix request flag-related build breakage The ->flags in struct request was split into two variables, in a recent changeset. The merge of this change forgot to update SCSI's libsas, probably because libsas was a very recent merge. Signed-off-by: Jeff Garzik Signed-off-by: Linus Torvalds commit cb5d9e0948122dd8b808550574d95bd60674ba3b tree f10c819fb1ec99df7c1b71aadff9bcae7591660e parent cfae35804bcb909225d6f4eb5bd29e25971614d8 author Andrew Morton Sat, 30 Sep 2006 21:23:44 -0400 committer Linus Torvalds Sat, 30 Sep 2006 19:33:43 -0700 [PATCH] scsi: device_reprobe() can fail device_reprobe() should return an error code. When it does so, scsi_device_reprobe() should propagate it back. Acked-by: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: James Bottomley Signed-off-by: Linus Torvalds commit cfae35804bcb909225d6f4eb5bd29e25971614d8 tree 029566def2c19f2f19c1510c719ca8898f224c2e parent 56f29d7fe452890eeeb7f2b0138b2d95b9745fb6 parent 51d7513a8a54e4210d358ff1dbd34daab99a6638 author Linus Torvalds Sat, 30 Sep 2006 13:59:54 -0700 committer Linus Torvalds Sat, 30 Sep 2006 13:59:54 -0700 Merge branch 'block' of git://brick.kernel.dk/data/git/linux-2.6-block * 'block' of git://brick.kernel.dk/data/git/linux-2.6-block: [PATCH] Only enable CONFIG_BLOCK option for embedded commit 51d7513a8a54e4210d358ff1dbd34daab99a6638 tree 5ec08a403f8194d0cd9035e4d7d6fd3a2830668c parent 059af497c23492cb1ddcbba11c09dad385960bc0 author Jens Axboe Sat, 30 Sep 2006 21:14:05 +0200 committer Jens Axboe Sat, 30 Sep 2006 21:14:05 +0200 [PATCH] Only enable CONFIG_BLOCK option for embedded It's too easy for people to shoot themselves in the foot, and it only makes sense for embedded folks anyway. Signed-off-by: Jens Axboe commit 56f29d7fe452890eeeb7f2b0138b2d95b9745fb6 tree 01b6b70297c53c9beb8d11eb186fbad9c166b1a2 parent e823aff2d6eb43083abcc75a32ddfb167c324089 parent 059af497c23492cb1ddcbba11c09dad385960bc0 author Linus Torvalds Sat, 30 Sep 2006 12:07:01 -0700 committer Linus Torvalds Sat, 30 Sep 2006 12:07:01 -0700 Merge branch 'block' of git://brick.kernel.dk/data/git/linux-2.6-block * 'block' of git://brick.kernel.dk/data/git/linux-2.6-block: (67 commits) [PATCH] blk_queue_start_tag() shared map race fix [PATCH] Update axboe@suse.de email address [PATCH] fix creating zero sized bio mempools in low memory system [PATCH] CONFIG_BLOCK: blk_congestion_wait() fix [PATCH] CONFIG_BLOCK internal.h cleanups [PATCH] BLOCK: Make USB storage depend on SCSI rather than selecting it [try #6] [PATCH] BLOCK: Make it possible to disable the block layer [try #6] [PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h inclusions [try #6] [PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions [try #6] [PATCH] BLOCK: Move the msdos device ioctl compat stuff to the msdos driver [try #6] [PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 driver [try #6] [PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 driver [try #6] [PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver [try #6] [PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h [try #6] [PATCH] BLOCK: Move the loop device ioctl compat stuff to the loop driver [try #6] [PATCH] BLOCK: Move __invalidate_device() to block_dev.c [try #6] [PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff [try #6] [PATCH] BLOCK: Remove dependence on existence of blockdev_superblock [try #6] [PATCH] BLOCK: Move extern declarations out of fs/*.c into header files [try #6] [PATCH] BLOCK: Don't call block_sync_page() from AFS [try #6] ... commit 059af497c23492cb1ddcbba11c09dad385960bc0 tree 656bbfa7104e065f0da8eac0c14b62ba1c088214 parent 0fe23479577124bd2687e6783e39fa0fa4c28005 author Jens Axboe Thu, 21 Sep 2006 20:37:22 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:34 +0200 [PATCH] blk_queue_start_tag() shared map race fix If we share the tag map between two or more queues, then we cannot use __set_bit() to set the bit. In fact we need to make sure we atomically acquire this tag, so loop using test_and_set_bit() to protect from that. Noticed by Mike Christie Signed-off-by: Jens Axboe commit 0fe23479577124bd2687e6783e39fa0fa4c28005 tree 954ae8c079fd10cd52bf212ca5cd2530ec5c2315 parent 50be345560f1ffdcb15cc0e146416b80529a2ef2 author Jens Axboe Mon, 04 Sep 2006 15:41:16 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:34 +0200 [PATCH] Update axboe@suse.de email address As people often look for the copyright in files to see who to mail, update the link to a neutral one. Signed-off-by: Jens Axboe commit 50be345560f1ffdcb15cc0e146416b80529a2ef2 tree 056278d82ea7fcbd26d9cc95c806d3978bbbb56e parent bcfd8d36151e531e1c6c731f1fbf792509a1c494 author Milan Broz Mon, 04 Sep 2006 15:37:57 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:33 +0200 [PATCH] fix creating zero sized bio mempools in low memory system In the very low memory systems is in the init_bio call scale parameter set to zero and it leads to creating zero sized mempool. This patch prevents pool_entries parameter become zero, so the created pool have at least 1 entry. Mempool with 0 entries lead to incorrect behaviour of mempool_free. (Alloc requests are not waken up and system stalls in mempool_alloc->ioschedule). Signed-off-by: Milan Broz Signed-off-by: Jens Axboe commit bcfd8d36151e531e1c6c731f1fbf792509a1c494 tree 6c8dec2cffc8310ecc09207aef9c2027a1c89003 parent 5e6d12b2c8be2cac099df6dcb8b26884f24d2621 author Andrew Morton Thu, 31 Aug 2006 12:56:06 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:33 +0200 [PATCH] CONFIG_BLOCK: blk_congestion_wait() fix Don't just do nothing: it'll cause busywaits all over writeback and page reclaim. For now, take a fixed-length nap. Will improve when NFS starts waking up throttled processes. Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit 5e6d12b2c8be2cac099df6dcb8b26884f24d2621 tree 2ac881cd0670f0bd5bfa0438bc1570b169e7af3b parent 65934a9a028b88e83e2b0f8b36618fe503349f8e author Andrew Morton Thu, 31 Aug 2006 12:55:23 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:32 +0200 [PATCH] CONFIG_BLOCK internal.h cleanups - forward declare struct superblock - use inlines, not macros Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit 65934a9a028b88e83e2b0f8b36618fe503349f8e tree b0113f8387ee5592e579c63d41643f7911ad45e4 parent 9361401eb7619c033e2394e4f9f6d410d6719ac7 author David Howells Tue, 29 Aug 2006 19:06:31 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:32 +0200 [PATCH] BLOCK: Make USB storage depend on SCSI rather than selecting it [try #6] This makes CONFIG_USB_STORAGE depend on CONFIG_SCSI rather than selecting it, as selecting it makes CONFIG_USB_STORAGE override the dependencies of SCSI, causing it to turn on even if they aren't all met. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 9361401eb7619c033e2394e4f9f6d410d6719ac7 tree 04b94a71f2366988c17740d1c16cfbdec41d5d2e parent d366e40a1cabd453be6e2609caa7e12f9ca17b1f author David Howells Sat, 30 Sep 2006 20:45:40 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:31 +0200 [PATCH] BLOCK: Make it possible to disable the block layer [try #6] Make it possible to disable the block layer. Not all embedded devices require it, some can make do with just JFFS2, NFS, ramfs, etc - none of which require the block layer to be present. This patch does the following: (*) Introduces CONFIG_BLOCK to disable the block layer, buffering and blockdev support. (*) Adds dependencies on CONFIG_BLOCK to any configuration item that controls an item that uses the block layer. This includes: (*) Block I/O tracing. (*) Disk partition code. (*) All filesystems that are block based, eg: Ext3, ReiserFS, ISOFS. (*) The SCSI layer. As far as I can tell, even SCSI chardevs use the block layer to do scheduling. Some drivers that use SCSI facilities - such as USB storage - end up disabled indirectly from this. (*) Various block-based device drivers, such as IDE and the old CDROM drivers. (*) MTD blockdev handling and FTL. (*) JFFS - which uses set_bdev_super(), something it could avoid doing by taking a leaf out of JFFS2's book. (*) Makes most of the contents of linux/blkdev.h, linux/buffer_head.h and linux/elevator.h contingent on CONFIG_BLOCK being set. sector_div() is, however, still used in places, and so is still available. (*) Also made contingent are the contents of linux/mpage.h, linux/genhd.h and parts of linux/fs.h. (*) Makes a number of files in fs/ contingent on CONFIG_BLOCK. (*) Makes mm/bounce.c (bounce buffering) contingent on CONFIG_BLOCK. (*) set_page_dirty() doesn't call __set_page_dirty_buffers() if CONFIG_BLOCK is not enabled. (*) fs/no-block.c is created to hold out-of-line stubs and things that are required when CONFIG_BLOCK is not set: (*) Default blockdev file operations (to give error ENODEV on opening). (*) Makes some /proc changes: (*) /proc/devices does not list any blockdevs. (*) /proc/diskstats and /proc/partitions are contingent on CONFIG_BLOCK. (*) Makes some compat ioctl handling contingent on CONFIG_BLOCK. (*) If CONFIG_BLOCK is not defined, makes sys_quotactl() return -ENODEV if given command other than Q_SYNC or if a special device is specified. (*) In init/do_mounts.c, no reference is made to the blockdev routines if CONFIG_BLOCK is not defined. This does not prohibit NFS roots or JFFS2. (*) The bdflush, ioprio_set and ioprio_get syscalls can now be absent (return error ENOSYS by way of cond_syscall if so). (*) The seclvl_bd_claim() and seclvl_bd_release() security calls do nothing if CONFIG_BLOCK is not set, since they can't then happen. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit d366e40a1cabd453be6e2609caa7e12f9ca17b1f tree 509768047fd75b116c1158204abad07ff9fe80b7 parent 4cb50dc2eaeddb0bc20bc4cd108c4fec99f5045a author David Howells Tue, 29 Aug 2006 19:06:29 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:31 +0200 [PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h inclusions [try #6] Remove inclusions of linux/buffer_head.h that are no longer necessary due to the transfer of a number of things out of there. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 4cb50dc2eaeddb0bc20bc4cd108c4fec99f5045a tree f15ede5614ff497dca3cd1342fbecfbe33c2715a parent 188f83dfe0eeecd1427d0d255cc97dbf7ef6b4b7 author David Howells Tue, 29 Aug 2006 19:06:27 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:30 +0200 [PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions [try #6] Remove inclusions of linux/mpage.h that are no longer necessary due to the transfer of generic_writepages(). Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 188f83dfe0eeecd1427d0d255cc97dbf7ef6b4b7 tree 72a36a42e6b1f4693b4c39dc70d25241418dc228 parent 52a700c5675f399c07e6e57328291e57f13ef3bb author David Howells Thu, 31 Aug 2006 12:50:04 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:30 +0200 [PATCH] BLOCK: Move the msdos device ioctl compat stuff to the msdos driver [try #6] Move the msdos device ioctl compat stuff from fs/compat_ioctl.c to the msdos driver so that the msdos header file doesn't need to be included. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 52a700c5675f399c07e6e57328291e57f13ef3bb tree 4ef1a3a7d66f589ad2e5f7d769da8c30f172a70e parent e322ff07fb2d0f05c02d85e7c6b30d23f308c20f author David Howells Tue, 29 Aug 2006 19:06:23 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:29 +0200 [PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 driver [try #6] Move the Ext3 device ioctl compat stuff from fs/compat_ioctl.c to the Ext3 driver so that the Ext3 header file doesn't need to be included. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit e322ff07fb2d0f05c02d85e7c6b30d23f308c20f tree 56c6817342087294f5242dbea9eaaa38098a9046 parent 52b499c438ff60991eb3855ca090782569b3e8cf author David Howells Tue, 29 Aug 2006 19:06:20 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:29 +0200 [PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 driver [try #6] Move the Ext2 device ioctl compat stuff from fs/compat_ioctl.c to the Ext2 driver so that the Ext2 header file doesn't need to be included. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 52b499c438ff60991eb3855ca090782569b3e8cf tree ce6dde5d3488a0ba0497c4c49d99d3b94ce921c0 parent 36695673b012096228ebdc1b39a6a5850daa474e author David Howells Tue, 29 Aug 2006 19:06:18 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:28 +0200 [PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver [try #6] Move the ReiserFS device ioctl compat stuff from fs/compat_ioctl.c to the ReiserFS driver so that the ReiserFS header file doesn't need to be included. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 36695673b012096228ebdc1b39a6a5850daa474e tree 4b617e27256750f367b2b50653981c70db0ce2d0 parent 863d5b822c02d0e7215fb84ca79e9f8c3e35f04e author David Howells Tue, 29 Aug 2006 19:06:16 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:28 +0200 [PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h [try #6] Move common FS-specific ioctls from linux/ext2_fs.h to linux/fs.h as FS_IOC_* and FS_IOC32_* and have the users of them use those as a base. Also move the GETFLAGS/SETFLAGS flags to linux/fs.h as FS_*_FL macros, and then have the other users use them as a base. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 863d5b822c02d0e7215fb84ca79e9f8c3e35f04e tree 86e2fd2507a78a1adc6a7126f26c38ebf2ee4d1d parent b71e8a4ce03b3098c7801ee5e6e08d1a39a226c2 author David Howells Tue, 29 Aug 2006 19:06:14 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:27 +0200 [PATCH] BLOCK: Move the loop device ioctl compat stuff to the loop driver [try #6] Move the loop device ioctl compat stuff from fs/compat_ioctl.c to the loop driver so that the loop header file doesn't need to be included. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit b71e8a4ce03b3098c7801ee5e6e08d1a39a226c2 tree 69e287c96181862f911b19dfd37abb968d26bdaf parent 811d736f9e8013966e1a5a930c0db09508bdbb15 author David Howells Tue, 29 Aug 2006 19:06:11 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:27 +0200 [PATCH] BLOCK: Move __invalidate_device() to block_dev.c [try #6] Move __invalidate_device() from fs/inode.c to fs/block_dev.c so that it can more easily be disabled when the block layer is disabled. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 811d736f9e8013966e1a5a930c0db09508bdbb15 tree 566225f7991f987007ccc2e8d99255f21041b6cb parent 7b0de42d7c5a471741ede4e71727d88000e6ea59 author David Howells Tue, 29 Aug 2006 19:06:09 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:26 +0200 [PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff [try #6] Dissociate the generic_writepages() function from the mpage stuff, moving its declaration to linux/mm.h and actually emitting a full implementation into mm/page-writeback.c. The implementation is a partial duplicate of mpage_writepages() with all BIO references removed. It is used by NFS to do writeback. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 7b0de42d7c5a471741ede4e71727d88000e6ea59 tree 808b27ad3b2f4a83a97bcc4c001970fab96ff7b6 parent 07f3f05c1e3052b8656129b2a5aca9f888241a34 author David Howells Tue, 29 Aug 2006 19:06:07 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:52:26 +0200 [PATCH] BLOCK: Remove dependence on existence of blockdev_superblock [try #6] Move blockdev_superblock extern declaration from fs/fs-writeback.c to a headerfile and remove the dependence on it by wrapping it in a macro. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 07f3f05c1e3052b8656129b2a5aca9f888241a34 tree 3338b004d518a0d2189efdc3fb88e94e1c02c0ce parent 65e6f5bc8149165efb9d7bdbd142bb837d5edfeb author David Howells Sat, 30 Sep 2006 20:52:18 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:52:18 +0200 [PATCH] BLOCK: Move extern declarations out of fs/*.c into header files [try #6] Create a new header file, fs/internal.h, for common definitions local to the sources in the fs/ directory. Move extern definitions that should be in header files from fs/*.c to fs/internal.h or other main header files where they span directories. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 65e6f5bc8149165efb9d7bdbd142bb837d5edfeb tree 6da4d9fd5260c007964c2c56cd77bbde452825b2 parent 831058dec3735665fe91bd0d37b6a8cf56b91abd author David Howells Tue, 29 Aug 2006 19:06:03 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:32:12 +0200 [PATCH] BLOCK: Don't call block_sync_page() from AFS [try #6] The AFS filesystem no longer needs to override its sync_page() op. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 831058dec3735665fe91bd0d37b6a8cf56b91abd tree 5ef7d38d9c43b24d5a31eb8f0e23c91e20e799e7 parent b398f6bff93a247d2a7099e92905374966e4558f author David Howells Tue, 29 Aug 2006 19:06:00 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:32:11 +0200 [PATCH] BLOCK: Separate the bounce buffering code from the highmem code [try #6] Move the bounce buffer code from mm/highmem.c to mm/bounce.c so that it can be more easily disabled when the block layer is disabled. !!!NOTE!!! There may be a bug in this code: Should init_emergency_pool() be contingent on CONFIG_HIGHMEM? Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit b398f6bff93a247d2a7099e92905374966e4558f tree 6cdd20fcb8764f8222f6cf1bacbd95eeeaaf3d56 parent 0d67a46df0125e20d14f12dbd3646f1f1bf23e8c author David Howells Tue, 29 Aug 2006 19:05:58 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:31:20 +0200 [PATCH] BLOCK: Stop fallback_migrate_page() from using page_has_buffers() [try #6] Stop fallback_migrate_page() from using page_has_buffers() since that might not be available. Use PagePrivate() instead since that's more general. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 0d67a46df0125e20d14f12dbd3646f1f1bf23e8c tree 8e823eedbc068e3a1ed3a4af6696a43a48fffa0a parent cf9a2ae8d49948f861b56e5333530e491a9da190 author David Howells Tue, 29 Aug 2006 19:05:56 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:31:20 +0200 [PATCH] BLOCK: Remove duplicate declaration of exit_io_context() [try #6] Remove the duplicate declaration of exit_io_context() from linux/sched.h. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit cf9a2ae8d49948f861b56e5333530e491a9da190 tree 21f0b0d781b3e60cc60464d39b6d95681201b37e parent 4090959aee403817ff386415f9bc602c1a0882ef author David Howells Tue, 29 Aug 2006 19:05:54 +0100 committer Jens Axboe Sat, 30 Sep 2006 20:31:19 +0200 [PATCH] BLOCK: Move functions out of buffer code [try #6] Move some functions out of the buffering code that aren't strictly buffering specific. This is a precursor to being able to disable the block layer. (*) Moved some stuff out of fs/buffer.c: (*) The file sync and general sync stuff moved to fs/sync.c. (*) The superblock sync stuff moved to fs/super.c. (*) do_invalidatepage() moved to mm/truncate.c. (*) try_to_release_page() moved to mm/filemap.c. (*) Moved some related declarations between header files: (*) declarations for do_invalidatepage() and try_to_release_page() moved to linux/mm.h. (*) __set_page_dirty_buffers() moved to linux/buffer_head.h. Signed-Off-By: David Howells Signed-off-by: Jens Axboe commit 4090959aee403817ff386415f9bc602c1a0882ef tree e2bd8b6ea922b14def3309eb18fc7d469e635b90 parent cf342e52e3117391868fb4bd900ce772a27a5a1a author Martin Peschke Tue, 29 Aug 2006 19:52:55 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:31:19 +0200 [PATCH] blktrace: cleanup using on_each_cpu This patch kills a few lines of code in blktrace by making use of on_each_cpu(). Signed-off-by: Martin Peschke Signed-off-by: Jens Axboe commit cf342e52e3117391868fb4bd900ce772a27a5a1a tree 4e9d48d0680bfd8dc90de645c891a6fa47931fdd parent 25034d7a83cf77667f3d65822484b305d4be6b25 author Oleg Nesterov Tue, 29 Aug 2006 09:17:41 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:31:18 +0200 [PATCH] Don't need to disable interrupts for tasklist_lock Signed-off-by: Oleg Nesterov Signed-off-by: Jens Axboe commit 25034d7a83cf77667f3d65822484b305d4be6b25 tree 7e4d432aae0cab93c22e692ceceffe2b5f7500d6 parent 9bf09c23853bb8009625c2ec60dc6beb9472d3ca author Oleg Nesterov Tue, 29 Aug 2006 09:15:14 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:31:18 +0200 [PATCH] exit_io_context: don't disable irqs We don't need to disable irqs to clear current->io_context, it is protected by ->alloc_lock. Even IF it was possible to submit I/O from IRQ on behalf of current this irq_disable() can't help: current_io_context() will re-instantiate ->io_context after irq_enable(). We don't need task_lock() or local_irq_disable() to clear ioc->task. This can't prevent other CPUs from playing with our io_context anyway. Signed-off-by: Oleg Nesterov Signed-off-by: Jens Axboe commit 9bf09c23853bb8009625c2ec60dc6beb9472d3ca tree ae6e84bce2ce633dcf9e2c8d4e7e4db30b40b1fe parent 7457e6e2d7406c7009e9ad03db1335fe93b5fb71 author Jens Axboe Sat, 30 Sep 2006 20:31:11 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:31:11 +0200 [PATCH] SCSI: scsi_done_q is unused It is a leftover from before the softirq completion was migrated to the block layer. Signed-off-by: Jens Axboe commit e823aff2d6eb43083abcc75a32ddfb167c324089 tree 60b67f3f2f088d6741a5af8488b4a565fb4c4cfe parent 77ed74da26f50fa28471571ee7a2251b77526d84 parent 3e14a2867d8ccf555fe6e318eac0f8200399fe1c author Linus Torvalds Sat, 30 Sep 2006 11:29:54 -0700 committer Linus Torvalds Sat, 30 Sep 2006 11:29:54 -0700 Merge branch 'drm-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (36 commits) drm: Use register writes instead of BITBLT_MULTI packets for buffer swap blits drm: use radeon specific names for radeon flags drm: add device/vendor id to drm_device_t for compat with FreeBSD drivers drm: allow multiple addMaps with the same 32-bit map offsset. drm: fd.o Bug #7595: Avoid u32 overflows in radeon_check_and_fixup_offset(). drm: Fix hashtab implementation leaking illegal error codes to user space. drm: domain changes broke ppc r200 drm: fixup setversion return codes.. drm: fixup i915 error codes drm: realign sosme radeon code with drm git tree drm: realign via driver with drm git tree drm: remove hash tables on drm exit drm: cleanups drm: i810_dma.c: fix pointer arithmetic for 64-bit target drm: avoid kernel oops in some error paths calling drm_lastclose drm: allow detection of new VIA chipsets drm: fix i965 build bug drm: remove FALSE/TRUE that snuck in with simple memory manager changes. drm: Add support for Intel i965G chipsets. drm: add better explanation for i830/i915 ... commit 7457e6e2d7406c7009e9ad03db1335fe93b5fb71 tree b1653b11f3fe9a2d9a061aec7c4747a9809ecdb1 parent 374f84ac39ec7829a57a66efd5125d3561ff0e00 author Jens Axboe Sun, 23 Jul 2006 02:12:01 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:43 +0200 [PATCH] blktrace: support for logging metadata reads Signed-off-by: Jens Axboe commit 374f84ac39ec7829a57a66efd5125d3561ff0e00 tree a1303aba1804f621ebea8304ba94e02c16a70a5c parent caa38fb0f481a3cb732b115cb59bfa6b59b6daaf author Jens Axboe Sun, 23 Jul 2006 01:42:19 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:43 +0200 [PATCH] cfq-iosched: use metadata read flag Give meta data reads preference over regular reads, as the process often needs to get that out of the way to do the io it was actually interested in. Signed-off-by: Jens Axboe commit caa38fb0f481a3cb732b115cb59bfa6b59b6daaf tree c68f069f58748813e9195b6205936846aba2e43e parent 5404bc7a87b9949cf61e0174b21f80e73239ab25 author Jens Axboe Sun, 23 Jul 2006 01:41:26 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:42 +0200 [PATCH] ext3: make meta data reads use READ_META Signed-off-by: Jens Axboe commit 5404bc7a87b9949cf61e0174b21f80e73239ab25 tree 230c799aef2dcad8c64da55114508d28d2b30183 parent da20a20f3b5c175648fa797c899dd577e4dacb51 author Jens Axboe Thu, 10 Aug 2006 09:01:02 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:42 +0200 [PATCH] Allow file systems to differentiate between data and meta reads We can use this information for making more intelligent priority decisions, and it will also be useful for blktrace. Signed-off-by: Jens Axboe commit da20a20f3b5c175648fa797c899dd577e4dacb51 tree 690ba6f8f4f62a9deaa2b6d5d3cf6bd3220dac1b parent bf57225670bcbeb357182d800736b4782cde7295 author Jens Axboe Fri, 21 Jul 2006 20:30:28 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:41 +0200 [PATCH] ll_rw_blk: allow more flexibility for read_ahead_kb store It can make sense to set read-ahead larger than a single request. We should not be enforcing such policy on the user. Additionally, using the BLKRASET ioctl doesn't impose such a restriction. So additionally we now expose identical behaviour through the two. Issue also reported by Anton Signed-off-by: Jens Axboe commit bf57225670bcbeb357182d800736b4782cde7295 tree c86d71fefff36090fc5c2ea3694f95d0162cdc2c parent dc72ef4ae35c2016fb594bcc85ce871376682174 author Jens Axboe Wed, 19 Jul 2006 20:29:12 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:41 +0200 [PATCH] cfq-iosched: improve queue preemption Don't touch the current queues, just make sure that the wanted queue is selected next. Simplifies the logic. Signed-off-by: Jens Axboe commit dc72ef4ae35c2016fb594bcc85ce871376682174 tree c0c78879addf0d65adcc8f8cce01165fa2502dac parent 981a79730d586335ef8f942c83bdf2b1de6d4e3d author Jens Axboe Thu, 20 Jul 2006 14:54:05 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:40 +0200 [PATCH] Add blk_start_queueing() helper CFQ implements this on its own now, but it's really block layer knowledge. Tells a device queue to start dispatching requests to the driver, taking care to unplug if needed. Also fixes the issue where as/cfq will invoke a stopped queue, which we really don't want. Signed-off-by: Jens Axboe commit 981a79730d586335ef8f942c83bdf2b1de6d4e3d tree 0dec9ba389ed1fbfb8adb842f86a27e9be643559 parent 53b03744e5699832e6c5b04f2ec506d8b0c50c38 author Jens Axboe Wed, 19 Jul 2006 14:56:28 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:40 +0200 [PATCH] cfq-iosched: kill the empty_list No point in having a place holder list just for empty queues, so remove it. It's not used for anything other than to keep ->cfq_list busy. Signed-off-by: Jens Axboe commit 53b03744e5699832e6c5b04f2ec506d8b0c50c38 tree 7205d972bf6f25be3a3f2c360130b269dadcb3b2 parent b5deef901282628d88c784f4c9d2f0583ec3b355 author Jens Axboe Fri, 28 Jul 2006 09:48:51 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:39 +0200 [PATCH] cfq-iosched: Kill O(N) runtime of cfq_resort_rr_list() Currently it scales with number of processes in that priority group, which is potentially not very nice as it's called quite often. Basically we always need to do tail inserts, except for the case of a new process. So just mark/detect a queue as such. Signed-off-by: Jens Axboe commit b5deef901282628d88c784f4c9d2f0583ec3b355 tree 1d3be92f18c9afd9426b06739c8f76931acbf03f parent a3b05e8f58c95dfccbf2c824d0c68e5990571f24 author Jens Axboe Wed, 19 Jul 2006 23:39:40 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:39 +0200 [PATCH] Make sure all block/io scheduler setups are node aware Some were kmalloc_node(), some were still kmalloc(). Change them all to kmalloc_node(). Signed-off-by: Jens Axboe commit a3b05e8f58c95dfccbf2c824d0c68e5990571f24 tree 768aad0f032790df38b277eff062c47b6ecff533 parent 1ea25ecb7256978947c258f08a30c878eebe9edb author Jens Axboe Fri, 28 Jul 2006 09:36:46 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:38 +0200 [PATCH] Kill various deprecated/unused block layer defines/functions Signed-off-by: Jens Axboe commit 1ea25ecb7256978947c258f08a30c878eebe9edb tree d0dd75162f20afdf97a086bb22604d2aeb9c263e parent 4050cf1674c632c73801a561689543d4887df2ef author Jens Axboe Tue, 18 Jul 2006 22:24:11 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:38 +0200 [PATCH] Audit block layer inlines Kill a few inlines that bring in too much code to more than one location Shrinks kernel text by about 300 bytes on 32-bit x86. Signed-off-by: Jens Axboe commit 4050cf1674c632c73801a561689543d4887df2ef tree f7a3e55857e917bb129d16d27458c2ff897a1864 parent e4313dd423148fa729571b50c06cbc0bedf5c494 author Jens Axboe Wed, 19 Jul 2006 05:07:12 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:37 +0200 [PATCH] cfq-iosched: use new io context counting mechanism It's ok if the read path is a lot more costly, as long as inc/dec is really cheap. The inc/dec will happen for each created/freed io context, while the reading only happens when a disk queue exits. Signed-off-by: Jens Axboe commit e4313dd423148fa729571b50c06cbc0bedf5c494 tree 7524020d6d822b06aa433c1252a4926b91a8b328 parent 4a893e837bb470867d74c05d6c6b97bba5a96185 author Jens Axboe Wed, 19 Jul 2006 05:10:01 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:37 +0200 [PATCH] as-iosched: use new io context counting mechanism It's ok if the read path is a lot more costly, as long as inc/dec is really cheap. The inc/dec will happen for each created/freed io context, while the reading only happens when a disk queue exits. Signed-off-by: Jens Axboe commit 4a893e837bb470867d74c05d6c6b97bba5a96185 tree a8795f4422eac82679309e1f1f500789c3fd9bff parent fc46379daf90dce57bf765c81d3b39f55150aac2 author Jens Axboe Sat, 22 Jul 2006 15:37:43 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:36 +0200 [PATCH] elevator: define ioc counting mechanism None of the in-kernel primitives for handling "atomic" counting seem to be a good fit. We need something that is essentially free for incrementing/decrementing, while the read side may be more expensive as we only ever need to do that when a device is removed from the kernel. Use a per-cpu variable for maintaining a per-cpu ioc count and define a reading mechanism that just sums up the values. Signed-off-by: Jens Axboe commit fc46379daf90dce57bf765c81d3b39f55150aac2 tree 43aa28f0db6c73f137550b0b2e2ec29b9f9a1fc6 parent 89850f7ee905410c89f9295e89dc4c33502a34ac author Jens Axboe Tue, 29 Aug 2006 09:05:44 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:36 +0200 [PATCH] cfq-iosched: kill cfq_exit_lock cfq_exit_lock is protecting two things now: - The per-ioc rbtree of cfq_io_contexts - The per-cfqd linked list of cfq_io_contexts The per-cfqd linked list can be protected by the queue lock, as it is (by definition) per cfqd as the queue lock is. The per-ioc rbtree is mainly used and updated by the process itself only. The only outside use is the io priority changing. If we move the priority changing to not browsing the rbtree, we can remove any locking from the rbtree updates and lookup completely. Let the sys_ioprio syscall just mark processes as having the iopriority changed and lazily update the private cfq io contexts the next time io is queued, and we can remove this locking as well. Signed-off-by: Jens Axboe commit 89850f7ee905410c89f9295e89dc4c33502a34ac tree c499b53c052a6e515ec232fdbde4537f20f1d23d parent e6a1c874a064e7d07f24986aba7cd537b7f4a25d author Jens Axboe Sat, 22 Jul 2006 16:48:31 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:35 +0200 [PATCH] cfq-iosched: cleanups, fixes, dead code removal A collection of little fixes and cleanups: - We don't use the 'queued' sysfs exported attribute, since the may_queue() logic was rewritten. So kill it. - Remove dead defines. - cfq_set_active_queue() can be rewritten cleaner with else if conditions. - Several places had cfq_exit_cfqq() like logic, abstract that out and use that. - Annotate the cfqq kmem_cache_alloc() so the allocator knows that this is a repeat allocation if it fails with __GFP_WAIT set. Allows the allocator to start freeing some memory, if needed. CFQ already loops for this condition, so might as well pass the hint down. - Remove cfqd->rq_starved logic. It's not needed anymore after we dropped the crq allocation in cfq_set_request(). - Remove uneeded parameter passing. Signed-off-by: Jens Axboe commit e6a1c874a064e7d07f24986aba7cd537b7f4a25d tree 35f80d2c96e1d499ecafa0cf435da070ad2ff73c parent 51da90fcb6acd580e87280eaf4eb1f788021807d author Jens Axboe Thu, 10 Aug 2006 09:00:21 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:35 +0200 [PATCH] struct request: shrink and optimize some more Move some members around and unionize completion_data and rb_node since they cannot ever be used at the same time. Signed-off-by: Jens Axboe commit 51da90fcb6acd580e87280eaf4eb1f788021807d tree fea3d2266942557f0b061aea022bbb0f5e383dec parent cb78b285c8f9d59b0d4e4f6a54c2977ce1d9b880 author Jens Axboe Tue, 18 Jul 2006 04:14:45 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:34 +0200 [PATCH] ll_rw_blk: cleanup __make_request() - Don't assign variables that are only used once. - Kill spin_lock() prefetching, it's opportunistic at best. Signed-off-by: Jens Axboe commit cb78b285c8f9d59b0d4e4f6a54c2977ce1d9b880 tree fec08d228e25103962c56f8cd43727d9d6af23c8 parent cdd6026217c0e4cda2efce1bdc318661bef1f66f author Jens Axboe Fri, 28 Jul 2006 09:32:57 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:23 +0200 [PATCH] Drop useless bio passing in may_queue/set_request API It's not needed for anything, so kill the bio passing. Signed-off-by: Jens Axboe commit cdd6026217c0e4cda2efce1bdc318661bef1f66f tree e26bb9c40b603b9cc321aa4217fecf34e1bc5f24 parent 49171e5c6f414d49a061b5c1c84967c2eb569822 author Jens Axboe Fri, 28 Jul 2006 09:32:07 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:23 +0200 [PATCH] Remove ->rq_status from struct request After Christophs SCSI change, the only usage left is RQ_ACTIVE and RQ_INACTIVE. The block layer sets RQ_INACTIVE right before freeing the request, so any check for RQ_INACTIVE in a driver is a bug and indicates use-after-free. So kill/clean the remaining users, straight forward. Signed-off-by: Jens Axboe commit 49171e5c6f414d49a061b5c1c84967c2eb569822 tree 95da6dad18f9bfe10367db86e740b8842f60a686 parent c00895ab2f08df7044e58ee01c38bf0a661ea0eb author Jens Axboe Thu, 10 Aug 2006 08:59:11 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:22 +0200 [PATCH] Remove struct request_list from struct request It is always identical to &q->rq, and we only use it for detecting whether this request came out of our mempool or not. So replace it with an additional ->flags bit flag. Signed-off-by: Jens Axboe commit c00895ab2f08df7044e58ee01c38bf0a661ea0eb tree 95dee4eb76042087c4b8d43a5841b6bae85b8cf3 parent 8a8e674cb1dafc818ffea93d97e4c1c1f01fdbb6 author Jens Axboe Sat, 30 Sep 2006 20:29:12 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:29:12 +0200 [PATCH] Remove ->waiting member from struct request As the comments indicates in blkdev.h, we can fold it into ->end_io_data usage as that is really what ->waiting is. Fixup the users of blk_end_sync_rq(). Signed-off-by: Jens Axboe commit 8a8e674cb1dafc818ffea93d97e4c1c1f01fdbb6 tree 98716fa9974c79928113c887c57fb5d8f7b6cc42 parent 5e705374796e72b36e7bb9c59c8d46d2dc5db36a author Jens Axboe Tue, 18 Jul 2006 21:07:29 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:02 +0200 [PATCH] as-iosched: kill arq Get rid of the as_rq request type. With the added elevator_private2, we have enough room in struct request to get rid of any arq allocation/free for each request. Signed-off-by: Jens Axboe Signed-off-by: Nick Piggin commit 5e705374796e72b36e7bb9c59c8d46d2dc5db36a tree 94b365b5b56d08dfa1eb127285f7da9019bbf670 parent ff7d145fd911266ae42af7552edc32681c01addb author Jens Axboe Thu, 13 Jul 2006 12:39:25 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:02 +0200 [PATCH] cfq-iosched: kill crq Get rid of the cfq_rq request type. With the added elevator_private2, we have enough room in struct request to get rid of any crq allocation/free for each request. Signed-off-by: Jens Axboe commit ff7d145fd911266ae42af7552edc32681c01addb tree 03ddb7b02e6cbeeda1c0c68af5d67c907e98ad7e parent 5380a101d33d1d3a32c6b6bd2e17e5dd835842b0 author Jens Axboe Wed, 12 Jul 2006 14:04:37 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:01 +0200 [PATCH] Add one more pointer to struct request for IO scheduler usage Then we have enough room in the request to get rid of the dynamic allocations in CFQ/AS. Signed-off-by: Jens Axboe commit 5380a101d33d1d3a32c6b6bd2e17e5dd835842b0 tree 26cce0604f8c5860f3616d00bd6af18e11fadaa9 parent 8840faa1eebba22a9e2f86acddc0cf5145937df4 author Jens Axboe Thu, 13 Jul 2006 12:37:56 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:01 +0200 [PATCH] cfq-iosched: remove the crq flag functions/variable There's just one flag currently (SYNC), and that one can be grabbed from the request. Signed-off-by: Jens Axboe commit 8840faa1eebba22a9e2f86acddc0cf5145937df4 tree 4938f01545638879f616aab59d54821ff7739a3f parent 9e2585a8a23f3a42f815b2a638725d85a921cd65 author Jens Axboe Thu, 13 Jul 2006 12:36:41 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:00 +0200 [PATCH] deadline-iosched: remove elevator private drq request type A big win, we now save an allocation/free on each request! With the previous rb/hash abstractions, we can just reuse queuelist/donelist for the FIFO data and be done with it. Signed-off-by: Jens Axboe commit 9e2585a8a23f3a42f815b2a638725d85a921cd65 tree 6c318a746596ea8523ccf07aaa270cf4295cf50e parent d4f2f4629ea6a003cd021a9ea1a8a23ec0cd70ac author Jens Axboe Fri, 28 Jul 2006 09:26:13 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:00 +0200 [PATCH] as-iosched: remove arq->is_sync member We can track this in struct request. Signed-off-by: Jens Axboe Signed-off-by: Nick Piggin commit d4f2f4629ea6a003cd021a9ea1a8a23ec0cd70ac tree d3ed19dd78e26c71245d4111d2b1698a1297ff87 parent 95e8810b283cfac50789126de4207f9909299de9 author Jens Axboe Thu, 13 Jul 2006 09:12:14 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:27:00 +0200 [PATCH] as-iosched: reuse rq for fifo Saves some space in arq. Signed-off-by: Jens Axboe Signed-off-by: Nick Piggin commit 95e8810b283cfac50789126de4207f9909299de9 tree 5fc74242c9cc3e2a753f7b7e54fd08a3653f65bd parent 1fbfdfcddff4df188b24d9d05271a76a85064583 author Jens Axboe Tue, 11 Jul 2006 21:30:31 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:59 +0200 [PATCH] cfq-iosched: convert to using the FIFO elevator defines Signed-off-by: Jens Axboe commit 1fbfdfcddff4df188b24d9d05271a76a85064583 tree b975a9e9ea5a20750b14ae593eca1d9b2609c29d parent b8aca35af5e9fbc2e41a3ba1b2e66f24e80ca9b6 author Jens Axboe Tue, 11 Jul 2006 21:49:15 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:59 +0200 [PATCH] elevator: introduce a way to reuse rq for internal FIFO handling The io schedulers can use this instead of having to allocate space for it themselves. Signed-off-by: Jens Axboe commit b8aca35af5e9fbc2e41a3ba1b2e66f24e80ca9b6 tree cb25861431d320eade140875bdd326faa0de19e2 parent 21183b07ee4be405362af8454f3647781c77df1b author Jens Axboe Thu, 13 Jul 2006 12:34:24 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:58 +0200 [PATCH] deadline-iosched: migrate to using the elevator rb functions This removes the rbtree handling from deadline. Signed-off-by: Jens Axboe commit 21183b07ee4be405362af8454f3647781c77df1b tree 753d327a8e6d1e0fc7b41eecd68ea52dbb8b24dc parent e37f346e347e5035c80760df2be0fcb2824f6c16 author Jens Axboe Thu, 13 Jul 2006 12:33:14 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:58 +0200 [PATCH] cfq-iosched: migrate to using the elevator rb functions This removes the rbtree handling from CFQ. Signed-off-by: Jens Axboe commit e37f346e347e5035c80760df2be0fcb2824f6c16 tree 9bd354f831005f04c1c33182607cf61e8fcc09a0 parent 2e662b65f05d550b6799ed6bfa9963b82279e6b7 author Jens Axboe Tue, 18 Jul 2006 21:06:01 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:57 +0200 [PATCH] as-iosched: migrate to using the elevator rb functions This removes the rbtree handling from AS. Signed-off-by: Jens Axboe Signed-off-by: Nick Piggin commit 2e662b65f05d550b6799ed6bfa9963b82279e6b7 tree 82911ec73a52d149d74a3d13c3c5eedb269a19cb parent 10fd48f2376db52f08bf0420d2c4f580e39269e1 author Jens Axboe Thu, 13 Jul 2006 11:55:04 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:57 +0200 [PATCH] elevator: abstract out the rbtree sort handling The rbtree sort/lookup/reposition logic is mostly duplicated in cfq/deadline/as, so move it to the elevator core. The io schedulers still provide the actual rb root, as we don't want to impose any sort of specific handling on the schedulers. Introduce the helpers and rb_node in struct request to help migrate the IO schedulers. Signed-off-by: Jens Axboe commit 10fd48f2376db52f08bf0420d2c4f580e39269e1 tree 89de18dcda9c8a09937187a0e8d138cfe3cb4089 parent 9817064b68fef7e4580c6df1ea597e106b9ff88b author Jens Axboe Tue, 11 Jul 2006 21:15:52 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:56 +0200 [PATCH] rbtree: fixed reversed RB_EMPTY_NODE and rb_next/prev The conditions got reserved. Also make rb_next() and rb_prev() check for the empty condition. Signed-off-by: Jens Axboe commit 9817064b68fef7e4580c6df1ea597e106b9ff88b tree 76c27990626247613e9efa45b792d51ad79635d7 parent 4aff5e2333c9a1609662f2091f55c3f6fffdad36 author Jens Axboe Fri, 28 Jul 2006 09:23:08 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:26:56 +0200 [PATCH] elevator: move the backmerging logic into the elevator core Right now, every IO scheduler implements its own backmerging (except for noop, which does no merging). That results in duplicated code for essentially the same operation, which is never a good thing. This patch moves the backmerging out of the io schedulers and into the elevator core. We save 1.6kb of text and as a bonus get backmerging for noop as well. Win-win! Signed-off-by: Jens Axboe commit 4aff5e2333c9a1609662f2091f55c3f6fffdad36 tree b73d8c2b7c1bdc03d3313c108da7dfc95ee95525 parent 77ed74da26f50fa28471571ee7a2251b77526d84 author Jens Axboe Thu, 10 Aug 2006 08:44:47 +0200 committer Jens Axboe Sat, 30 Sep 2006 20:23:37 +0200 [PATCH] Split struct request ->flags into two parts Right now ->flags is a bit of a mess: some are request types, and others are just modifiers. Clean this up by splitting it into ->cmd_type and ->cmd_flags. This allows introduction of generic Linux block message types, useful for sending generic Linux commands to block devices. Signed-off-by: Jens Axboe commit 77ed74da26f50fa28471571ee7a2251b77526d84 tree 5db5671bb6f69613103ded68027b1d7e8677c87e parent 5ffd1a6aaacc25be8cd0770a51ec6d46add3a276 author Jean Delvare Sat, 30 Sep 2006 17:18:59 +0200 committer Linus Torvalds Sat, 30 Sep 2006 10:58:47 -0700 [PATCH] i2c: Prevent deadlock on i2c client registration Delay the call to adapter->client_register() until after we are certain that the client registration is a success. At this point the client is fully initialized and we no longer hold the adapter->clist mutex, so this should prevent the deadlocks if the client_register() callback needs to take that mutex too, as is the case for the bttv driver. This fixes bug #7234. Signed-off-by: Jean Delvare Signed-off-by: Linus Torvalds commit 5ffd1a6aaacc25be8cd0770a51ec6d46add3a276 tree 5b076c44f8b7ff88dba9a554d7748c6f083c9071 parent 0cd43f83d381c4246a08cd775834833d6fd64805 parent 8dd86eebc5315910ebfd9f30f1674254308be4b3 author Linus Torvalds Sat, 30 Sep 2006 09:39:15 -0700 committer Linus Torvalds Sat, 30 Sep 2006 09:39:15 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb * master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (180 commits) V4L/DVB (4641): Trivial: use lowercase letters in hex subsystem ids V4L/DVB (4639): Cx88: add autodetection for alternate revision of Leadtek PVR V4L/DVB (4638): Basic DVB-T and analog TV support for the HVR1300. V4L/DVB (4637): Add a default method for VIDIOC_G_PARM V4L/DVB (4635): Extend bttv and saa7134 to check for both AGP and PCI PCI failure case V4L/DVB (4634): Zr36120: implement pcipci checks V4L/DVB (4632): Zoran: Implement pcipci failure check V4L/DVB (4631): Av7110: remove V4L2_CAP_VBI_CAPTURE flag V4L/DVB (4630): Av7110: FW_LOADER depemdency fixed V4L/DVB (4629): Saa7134: add card support for Proteus Pro 2309 V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c V4L/DVB (4627): Vivi crashes with mplayer V4L/DVB (4626): On saa7111/7113, LUMA_CTRL need a different value V4L/DVB (4624): Tvaudio: Replaced kernel_thread() with kthread_run() V4L/DVB (4622): Copy-paste bug in videodev.c V4L/DVB (4620): Fix AGC configuration for MOD3000P-based boards V4L/DVB (4619): Fixes some I2C dependencies on V4L devices V4L/DVB (4617): Problem with dibusb-mb.c USB IDs V4L/DVB (4616): [PATCH] Nebula DigiTV USB RC support V4L/DVB (4614): Export symbol saa7134_tvaudio_setmute from saa7134 for saa7134-alsa ... commit 0cd43f83d381c4246a08cd775834833d6fd64805 tree e69ddf876edfb4ff7d5d5d0c6e7c2ff0be885492 parent db1a19b38f3a85f475b4ad716c71be133d8ca48e parent 3253b669eed7194ae490acb4aadab7262bbfeb8d author Linus Torvalds Sat, 30 Sep 2006 09:38:19 -0700 committer Linus Torvalds Sat, 30 Sep 2006 09:38:19 -0700 Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6 * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: (48 commits) ieee1394: raw1394: arm functions slept in atomic context ieee1394: sbp2: enable auto spin-up for all SBP-2 devices MAINTAINERS: updates to IEEE 1394 subsystem maintainership ieee1394: ohci1394: check for errors in suspend or resume set power state of firewire host during suspend ieee1394: ohci1394: more obvious endianess handling ieee1394: ohci1394: fix endianess bug in debug message ieee1394: sbp2: don't prefer MODE SENSE 10 ieee1394: nodemgr: grab class.subsys.rwsem in nodemgr_resume_ne ieee1394: nodemgr: fix rwsem recursion ieee1394: sbp2: more help in Kconfig ieee1394: sbp2: prevent rare deadlock in shutdown ieee1394: sbp2: update includes ieee1394: sbp2: better handling of transport errors ieee1394: sbp2: recheck node generation in sbp2_update ieee1394: sbp2: safer agent reset in error handlers ieee1394: sbp2: handle "sbp2util_node_write_no_wait failed" CONFIG_PM=n slim: drivers/ieee1394/ohci1394.c ieee1394: safer definition of empty macros video1394: add poll file operation support ... commit db1a19b38f3a85f475b4ad716c71be133d8ca48e tree cdc0599c20b52a472254720890727a3d9fbde957 parent 369aa8395a5dcc89230f1de5459124c4b0db9fca parent 4dc3595f5c569021b1bd0109502acfca82036902 author Linus Torvalds Sat, 30 Sep 2006 09:36:56 -0700 committer Linus Torvalds Sat, 30 Sep 2006 09:36:56 -0700 Merge branch 'intelfb-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/intelfb-2.6 * 'intelfb-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/intelfb-2.6: intelfbhw.c: intelfbhw_get_p1p2 defined but not used intelfb: fix mtrr_reg signedness intelfb: update doc and Kconfig (supported devices) intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add preliminary i2c support intelfb: add vsync interrupt support intelfb: add vsync interrupt support intelfb: add vsync interrupt support intelfb: add vsync interrupt support intelfb: add vsync interrupt support commit 369aa8395a5dcc89230f1de5459124c4b0db9fca tree d95edf4c52e343e2080427ad153da051ea52eee6 parent bf603625660b1742004bf86432ce3c210d14d4fd parent c84ef5305930d19bdd6cd576b3a3a73786a82e57 author Linus Torvalds Sat, 30 Sep 2006 08:37:55 -0700 committer Linus Torvalds Sat, 30 Sep 2006 08:37: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: [PATCH] Use early clobber in semaphores [PATCH] Define vsyscall cache as blob to make clearer that user space shouldn't use it [PATCH] Re-positioning the bss segment [PATCH] Use ARRAY_SIZE in setup.c [PATCH] i386: replace intermediate array-size definitions with ARRAY_SIZE() [PATCH] x86: Clean up x86 NMI sysctls [PATCH] Refactor some duplicated code in mpparse.c [PATCH] Document iommu=panic [PATCH] Fix broken indentation in iommu_setup [PATCH] Allow disabling DAC using command line options [PATCH] Add proper sparse __user casts to __copy_to_user_inatomic [PATCH] i386: Update defconfig [PATCH] Update defconfig commit bf603625660b1742004bf86432ce3c210d14d4fd tree db327975e92e01f2f2badb8ec5ae55282f156674 parent fbe96f92b3d9450e77a3a4bb1d46aa1bb908c1ab parent 6656e3c4c8e0c80f2d2bfece574876d269f64861 author Linus Torvalds Fri, 29 Sep 2006 18:54:48 -0700 committer Linus Torvalds Fri, 29 Sep 2006 18:54:48 -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: [ATM]: [lec] use refcnt to protect lec_arp_entries outside lock [ATM]: [lec] add reference counting to lec_arp entries [ATM]: [lec] use work queue instead of timer for lec arp expiry [ATM]: [lec] old_close is no longer used [ATM]: [lec] convert lec_arp_table to hlist [ATM]: [lec] header indent, comment and whitespace cleanup [ATM]: [lec] indent, comment and whitespace cleanup [continued] [ATM]: [lec] indent, comment and whitespace cleanup [SCTP]: Do not timestamp every SCTP packet. [SCTP]: Use correct mask when disabling PMTUD. [SCTP]: Include sk_buff overhead while updating the peer's receive window. [SCTP]: Enable Nagle algorithm by default. [BNX2]: Disable MSI on 5706 if AMD 8132 bridge is present. [NetLabel]: audit fixups due to delayed feedback commit 6656e3c4c8e0c80f2d2bfece574876d269f64861 tree b4470a2f0ffd372eb3886a6e344cd336ec430d03 parent 33a9c2d4b758279c5077fc15d221b385a574ae0b author Chas Williams Fri, 29 Sep 2006 17:17:17 -0700 committer David S. Miller Fri, 29 Sep 2006 17:17:17 -0700 [ATM]: [lec] use refcnt to protect lec_arp_entries outside lock Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit 33a9c2d4b758279c5077fc15d221b385a574ae0b tree adcaad67bd057b2d8200bae2219710c920c586f5 parent 987e46bdf314c55e060570ff46723d770e461f0e author Chas Williams Fri, 29 Sep 2006 17:16:48 -0700 committer David S. Miller Fri, 29 Sep 2006 17:16:48 -0700 [ATM]: [lec] add reference counting to lec_arp entries Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit 987e46bdf314c55e060570ff46723d770e461f0e tree c544f11f72d0e12f5862b8dda9e650227525b8f1 parent edbc9b014fda4b13466b2e2ac53b940337548ab4 author Chas Williams Fri, 29 Sep 2006 17:15:59 -0700 committer David S. Miller Fri, 29 Sep 2006 17:15:59 -0700 [ATM]: [lec] use work queue instead of timer for lec arp expiry Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit edbc9b014fda4b13466b2e2ac53b940337548ab4 tree ba3d8b96fe0a3d8f5677f144e914ee7684266497 parent d0732f649f090b31f976a9ce59a38e1191077909 author Chas Williams Fri, 29 Sep 2006 17:15:15 -0700 committer David S. Miller Fri, 29 Sep 2006 17:15:15 -0700 [ATM]: [lec] old_close is no longer used Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit d0732f649f090b31f976a9ce59a38e1191077909 tree 31309d2d342e0eac8ce4cd28e67fd56a6fd01ed1 parent 1c9d3e72a7164c590437f2ab6c2c4f6da91f1703 author Chas Williams Fri, 29 Sep 2006 17:14:27 -0700 committer David S. Miller Fri, 29 Sep 2006 17:14:27 -0700 [ATM]: [lec] convert lec_arp_table to hlist Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit 1c9d3e72a7164c590437f2ab6c2c4f6da91f1703 tree 8a3ab9d20514f1bddc40e9a7e0f3c763410d5abd parent 1fa9961d631fcde21cc42678157129c6fae7fe6d author Chas Williams Fri, 29 Sep 2006 17:13:24 -0700 committer David S. Miller Fri, 29 Sep 2006 17:13:24 -0700 [ATM]: [lec] header indent, comment and whitespace cleanup Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit 1fa9961d631fcde21cc42678157129c6fae7fe6d tree c9cfa49762b2d0aa33d9fc2e309b3d088f8c51f7 parent d44f77466cfdc6f1d1e3870e176afedab7f46a42 author Chas Williams Fri, 29 Sep 2006 17:11:47 -0700 committer David S. Miller Fri, 29 Sep 2006 17:11:47 -0700 [ATM]: [lec] indent, comment and whitespace cleanup [continued] Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit d44f77466cfdc6f1d1e3870e176afedab7f46a42 tree 6ec7e9f83ac240a3f4e3d5512f3bbfdeccbbc427 parent f236218b7292bccb0f8754a0feb5d9e9a06fe5a2 author Chas Williams Fri, 29 Sep 2006 17:11:14 -0700 committer David S. Miller Fri, 29 Sep 2006 17:11:14 -0700 [ATM]: [lec] indent, comment and whitespace cleanup Signed-off-by: Chas Williams Signed-off-by: David S. Miller commit f236218b7292bccb0f8754a0feb5d9e9a06fe5a2 tree 3d787eac398a370504d3dd051437dd33099b9d89 parent b56bab46f3220eb6b1f71c000faa44c6b13fb148 author Vlad Yasevich Fri, 29 Sep 2006 17:10:03 -0700 committer David S. Miller Fri, 29 Sep 2006 17:10:03 -0700 [SCTP]: Do not timestamp every SCTP packet. We only need the timestamp on COOKIE-ECHO chunks, so instead of always timestamping every SCTP packet, let common code timestamp if the socket option is set. For COOKIE-ECHO, simply get the time of day if we don't have a timestamp. This introduces a small possibility that the cookie may be considered expired, but it will be renegotiated. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit b56bab46f3220eb6b1f71c000faa44c6b13fb148 tree ffd2fe5959e0174838bcb735669ea26398ad3ca8 parent cd49788563d3b9e2ec0b316fa57aef1c0cb3bd4b author Vlad Yasevich Fri, 29 Sep 2006 17:09:34 -0700 committer David S. Miller Fri, 29 Sep 2006 17:09:34 -0700 [SCTP]: Use correct mask when disabling PMTUD. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit cd49788563d3b9e2ec0b316fa57aef1c0cb3bd4b tree a05455a25c805f5ec775f730ee7cab789948649d parent 208edef6a5b6c50363c77efcf34c4b4020681029 author Sridhar Samudrala Fri, 29 Sep 2006 17:09:05 -0700 committer David S. Miller Fri, 29 Sep 2006 17:09:05 -0700 [SCTP]: Include sk_buff overhead while updating the peer's receive window. Currently if the sender is sending small messages, it can cause a receiver to run out of receive buffer space even when the advertised receive window is still open and results in packet drops and retransmissions. Including a overhead while updating the sender's view of peer receive window will reduce the chances of receive buffer space overshooting the receive window. Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 208edef6a5b6c50363c77efcf34c4b4020681029 tree 0e8a34c95e4acc48734240705a47b030ddd91628 parent f9317a40c4e09e20ef01601fc9f5de9e6acb5b96 author Sridhar Samudrala Fri, 29 Sep 2006 17:08:01 -0700 committer David S. Miller Fri, 29 Sep 2006 17:08:01 -0700 [SCTP]: Enable Nagle algorithm by default. This allows more aggressive bundling of chunks when sending small messages. Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit f9317a40c4e09e20ef01601fc9f5de9e6acb5b96 tree 0f138aa972a892c311a11a5252723c413259a03e parent 95d4e6be25a68cd9fbe8c0d356b585504d8db1c7 author Michael Chan Fri, 29 Sep 2006 17:06:23 -0700 committer David S. Miller Fri, 29 Sep 2006 17:06:23 -0700 [BNX2]: Disable MSI on 5706 if AMD 8132 bridge is present. MSI is defined to be 32-bit write. The 5706 does 64-bit MSI writes with byte enables disabled on the unused 32-bit word. This is legal but causes problems on the AMD 8132 which will eventually stop responding after a while. Without this patch, the MSI test done by the driver during open will pass, but MSI will eventually stop working after a few MSIs are written by the device. AMD believes this incompatibility is unique to the 5706, and prefers to locally disable MSI rather than globally disabling it using pci_msi_quirk. Update version to 1.4.45. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 95d4e6be25a68cd9fbe8c0d356b585504d8db1c7 tree 2133c970e6786bdf82004ace225b6bca19b9ddba parent d6c641026dec68acfb4b0baa98aad960e963ed97 author Paul Moore Fri, 29 Sep 2006 17:05:05 -0700 committer David S. Miller Fri, 29 Sep 2006 17:05:05 -0700 [NetLabel]: audit fixups due to delayed feedback Fix some issues Steve Grubb had with the way NetLabel was using the audit subsystem. This should make NetLabel more consistent with other kernel generated audit messages specifying configuration changes. Signed-off-by: Paul Moore Acked-by: Steve Grubb Signed-off-by: David S. Miller commit c84ef5305930d19bdd6cd576b3a3a73786a82e57 tree 26f9b94efa67ce79cf89dee251ac519804cab793 parent 34596dc9e59d7bece16fe5aba08116b49465da26 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Use early clobber in semaphores New code clobbers the result always early, so tell gcc about it Signed-off-by: Andi Kleen commit 34596dc9e59d7bece16fe5aba08116b49465da26 tree 75e09786a8ff8db3a69a5c82663f97d317e59e46 parent 120b114237e2461fb4fa437c5c37edf014c916b9 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Define vsyscall cache as blob to make clearer that user space shouldn't use it Signed-off-by: Andi Kleen commit 120b114237e2461fb4fa437c5c37edf014c916b9 tree 0083bec556d2c3bec35a909a35286c7aded24a56 parent 9d0ef4fd61693acd3741ab7ee544246cda1f8738 author Vivek Goyal Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Re-positioning the bss segment [AK: This apparently broke some systems, but we need it to fix a compile problem with old binutils and in theory the patch is correct. So let's trying reenabling it again.] o Currently bss segment is being placed somewhere in the middle (after .data) section and after bss lots of init section and data sections are coming. Is it intentional? o One side affect of placing bss in the middle is that objcopy keeps the bss in raw binary image (vmlinux.bin) hence unnecessarily increasing the size of raw binary image. (In my case ~600K). It also increases the size of generated bzImage, though the increase is very small (896 bytes), probably a very high compression ratio for stream of zeros. o This patch moves the bss at the end hence reducing the size of bzImage by 896 bytes and size of vmlinux.bin by 600K. o This change benefits in the context of relocatable kernel patches. If kernel bss is not part of compressed data (vmlinux.bin) then it does not have to be decompressed and this area can be used by the decompressor for its execution hence keeping the memory requirements bounded and decompressor code does not stomp over any other data loaded beyond kernel image (As might be the case with bootloaders like kexec). Signed-off-by: Vivek Goyal Signed-off-by: Andi Kleen commit 9d0ef4fd61693acd3741ab7ee544246cda1f8738 tree a52103681f1d7ad1ab9ee68d1fc31a0e6b0c34ca parent b9629b82c81709eb0f9c98b8f9cc684f8e212ef3 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Use ARRAY_SIZE in setup.c Based on i386 patch from Bjorn. Signed-off-by: Andi Kleen commit b9629b82c81709eb0f9c98b8f9cc684f8e212ef3 tree d5423026f42f0881b38c2793a6bfcf3bd61d2cea parent 29cbc78b90a73ad80f2f58ba2927956cf663abed author Bjorn Helgaas Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] i386: replace intermediate array-size definitions with ARRAY_SIZE() Code is easier to validate if array sizes aren't hidden behind extra #defines. Signed-off-by: Bjorn Helgaas Signed-off-by: Andi Kleen commit 29cbc78b90a73ad80f2f58ba2927956cf663abed tree e72fdb9c1c055da47b4cd8834bc944af8efc1ed8 parent 013bf2c50ed943e9c23a2145d3ea7c4d88cda310 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] x86: Clean up x86 NMI sysctls Use prototypes in headers Don't define panic_on_unrecovered_nmi for all architectures Cc: dzickus@redhat.com Signed-off-by: Andi Kleen commit 013bf2c50ed943e9c23a2145d3ea7c4d88cda310 tree c7239879cac638bd9bec86059bec6bed7b0e159c parent d802ab981da67d433fbb48f5640b7e3a9ba9fd54 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Refactor some duplicated code in mpparse.c No logic changes Signed-off-by: Andi Kleen commit d802ab981da67d433fbb48f5640b7e3a9ba9fd54 tree d0499267b945c506c5d3ad0c52608e0fd815385f parent ded318ec80071557155604197ea45dcdb2a9ff2f author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Document iommu=panic Signed-off-by: Andi Kleen commit ded318ec80071557155604197ea45dcdb2a9ff2f tree e9619febd4b2b014d55a06bd4159af9c08273fff parent ece668401250c1d0419ed078c1d26ccdd30d3289 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Fix broken indentation in iommu_setup No functional changes; only white space. Signed-off-by: Andi Kleen commit ece668401250c1d0419ed078c1d26ccdd30d3289 tree 6a8fc43edbee644cc6af3cf8252795c858a99b6a parent b885808e185a4ec2dfe16c84434f79e95f0245b0 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Allow disabling DAC using command line options Might or might not work around some reported bugs on VIA systems. Signed-off-by: Andi Kleen commit b885808e185a4ec2dfe16c84434f79e95f0245b0 tree 275c7fbed3b7de20a18ee220e6b05a1862ae8af1 parent ae853e79faa27ca1a08c8ae3b5aee71ea98482f9 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] Add proper sparse __user casts to __copy_to_user_inatomic Noticed by Al Viro Cc: viro@ftp.linux.org.uk Signed-off-by: Andi Kleen commit ae853e79faa27ca1a08c8ae3b5aee71ea98482f9 tree 3c117c69ecc4fc55fc4bb4858f024b0066126c07 parent 81b999b10b3246fd80691a7936a564deb99640b9 author Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:55 +0200 [PATCH] i386: Update defconfig Signed-off-by: Andi Kleen commit 81b999b10b3246fd80691a7936a564deb99640b9 tree d1562f744dceebb08dbec22f11c9aafab8b3e951 parent d6c641026dec68acfb4b0baa98aad960e963ed97 author Andi Kleen Sat, 30 Sep 2006 01:47:54 +0200 committer Andi Kleen Sat, 30 Sep 2006 01:47:54 +0200 [PATCH] Update defconfig Signed-off-by: Andi Kleen commit fbe96f92b3d9450e77a3a4bb1d46aa1bb908c1ab tree 0080a00c0c5afd539c11623f8ba78f86ec18f9bb parent 3a1d5c84ed2fa4034f86e3b204129c139471516e author David S. Miller Wed, 27 Sep 2006 19:52:35 -0700 committer David S. Miller Fri, 29 Sep 2006 16:12:43 -0700 [SERIAL] sunzilog: Mark sunzilog_init_hw as __devinit. Signed-off-by: David S. Miller commit 3a1d5c84ed2fa4034f86e3b204129c139471516e tree 621b55281a61bdac15efe36ea00dd30fdba49cb5 parent d6c641026dec68acfb4b0baa98aad960e963ed97 author David S. Miller Wed, 27 Sep 2006 19:43:02 -0700 committer David S. Miller Fri, 29 Sep 2006 16:12:41 -0700 [SPARC]: Don't zero out tail during copy_from_user_inatomic(). Actually, since we use the same code for all the copying types in and out of userspace, we check at runtime whether preemption is disabled. Signed-off-by: David S. Miller commit d6c641026dec68acfb4b0baa98aad960e963ed97 tree 7a6c69dc0343d7498ba93c4a9107d2ffde5dbeed parent 2148ccc437a9eac9f0d4b3c27cb1e41f6a48194c author Ollie Wild Fri, 29 Sep 2006 15:50:28 -0700 committer Linus Torvalds Fri, 29 Sep 2006 15:58:21 -0700 [PATCH] uml build fix Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2148ccc437a9eac9f0d4b3c27cb1e41f6a48194c tree 03dc59734526aa654d29e1b81cdad18369598182 parent 9a69d1aeccf169d9a1e442c07d3a6e87f06a7b49 author David Woodhouse Fri, 29 Sep 2006 15:50:25 -0700 committer Linus Torvalds Fri, 29 Sep 2006 15:58:21 -0700 [PATCH] MLSXFRM: fix mis-labelling of child sockets Accepted connections of types other than AF_INET, AF_INET6, AF_UNIX won't have an appropriate label derived from the peer, so don't use it. Signed-off-by: David Woodhouse Acked-by: Stephen Smalley Acked-by: James Morris Acked-by: Paul Moore Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9a69d1aeccf169d9a1e442c07d3a6e87f06a7b49 tree 5597011c3595867bf0e073b8f4bdffefe9238a10 parent c0341b0f47722fbe5ab45f436fc6ddc1c58c0a6f parent 3d27b00457167103fb9f7e23fc2454c801a6b8f0 author Linus Torvalds Fri, 29 Sep 2006 15:18:22 -0700 committer Linus Torvalds Fri, 29 Sep 2006 15:18:22 -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: (33 commits) IB/ipath: Fix lockdep error upon "ifconfig ibN down" IB/ipath: Fix races with ib_resize_cq() IB/ipath: Support new PCIE device, QLE7142 IB/ipath: Set CPU affinity early IB/ipath: Fix EEPROM read when driver is compiled with -Os IB/ipath: Fix and recover TXE piobuf and PBC parity errors IB/ipath: Change HT CRC message to indicate how to resolve problem IB/ipath: Clean up module exit code IB/ipath: Call mtrr_del with correct arguments IB/ipath: Flush RWQEs if access error or invalid error seen IB/ipath: Improved support for PowerPC IB/ipath: Drop unnecessary "(void *)" casts IB/ipath: Support multiple simultaneous devices of different types IB/ipath: Fix mismatch in shifts and masks for printing debug info IB/ipath: Fix compiler warnings and errors on non-x86_64 systems IB/ipath: Print more informative parity error messages IB/ipath: Ensure that PD of MR matches PD of QP checking the Rkey IB/ipath: RC and UC should validate SLID and DLID IB/ipath: Only allow complete writes to flash IB/ipath: Count SRQs properly ... commit c0341b0f47722fbe5ab45f436fc6ddc1c58c0a6f tree 63279f95e7250a3c465eb061be97fff071d0903b parent ae1390d8c3e2142e5cf6d192951d6e2b1fa213c5 parent 1b06e7926694178e146ff708b2c15a6da64c9765 author Linus Torvalds Fri, 29 Sep 2006 09:36:55 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:36:55 -0700 Merge git://oss.sgi.com:8090/xfs/xfs-2.6 * git://oss.sgi.com:8090/xfs/xfs-2.6: (49 commits) [XFS] Remove v1 dir trace macro - missed in a past commit. [XFS] 955947: Infinite loop in xfs_bulkstat() on formatter() error [XFS] pv 956241, author: nathans, rv: vapo - make ino validation checks [XFS] pv 956240, author: nathans, rv: vapo - Minor fixes in [XFS] Really fix use after free in xfs_iunpin. [XFS] Collapse sv_init and init_sv into just the one interface. [XFS] standardize on one sema init macro [XFS] Reduce endian flipping in alloc_btree, same as was done for [XFS] Minor cleanup from dio locking fix, remove an extra conditional. [XFS] Fix kmem_zalloc_greedy warnings on 64 bit platforms. [XFS] pv 955157, rv bnaujok - break the loop on EFAULT formatter() error [XFS] pv 955157, rv bnaujok - break the loop on formatter() error [XFS] Fixes the leak in reservation space because we weren't ungranting [XFS] Add lock annotations to xfs_trans_update_ail and [XFS] Fix a porting botch on the realtime subvol growfs code path. [XFS] Minor code rearranging and cleanup to prevent some coverity false [XFS] Remove a no-longer-correct debug assert from dio completion [XFS] Add a greedy allocation interface, allocating within a min/max size [XFS] Improve error handling for the zero-fsblock extent detection code. [XFS] Be more defensive with page flags (error/private) for metadata ... commit ae1390d8c3e2142e5cf6d192951d6e2b1fa213c5 tree dd47aa251fa9d604a67494f6d1806da3f5802057 parent 181b64803661209cda64e5e874ad75f373a69de8 author Yoichi Yuasa Fri, 29 Sep 2006 08:42:38 +0200 committer Linus Torvalds Fri, 29 Sep 2006 09:34:17 -0700 [PATCH] i2c-sibyte: Fix modular build breakage Fix undefined reference in i2c_sibyte_exit(). drivers/built-in.o: In function `i2c_sibyte_exit': i2c-sibyte.c:(.exit.text+0x368): undefined reference to `i2c_del_bus' i2c-sibyte.c:(.exit.text+0x368): relocation truncated to fit: R_MIPS_26 against `i2c_del_bus' i2c-sibyte.c:(.exit.text+0x38c): undefined reference to `i2c_del_bus' i2c-sibyte.c:(.exit.text+0x38c): relocation truncated to fit: R_MIPS_26 against `i2c_del_bus' Signed-off-by: Yoichi Yuasa Signed-off-by: Jean Delvare Signed-off-by: Linus Torvalds commit 181b64803661209cda64e5e874ad75f373a69de8 tree 0e0ee378b98e5ee72aeae428b1f155d031fe2597 parent 683e91cbd0582cb8e63daaf0429e0a62be9cc421 author Paul Jackson Fri, 29 Sep 2006 02:01:48 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] cpuset: fix obscure attach_task vs exiting race Fix obscure race condition in kernel/cpuset.c attach_task() code. There is basically zero chance of anyone accidentally being harmed by this race. It requires a special 'micro-stress' load and a special timing loop hacks in the kernel to hit in less than an hour, and even then you'd have to hit it hundreds or thousands of times, followed by some unusual and senseless cpuset configuration requests, including removing the top cpuset, to cause any visibly harm affects. One could, with perhaps a few days or weeks of such effort, get the reference count on the top cpuset below zero, and manage to crash the kernel by asking to remove the top cpuset. I found it by code inspection. The race was introduced when 'the_top_cpuset_hack' was introduced, and one piece of code was not updated. An old check for a possibly null task cpuset pointer needed to be changed to a check for a task marked PF_EXITING. The pointer can't be null anymore, thanks to the_top_cpuset_hack (documented in kernel/cpuset.c). But the task could have gone into PF_EXITING state after it was found in the task_list scan. If a task is PF_EXITING in this code, it is possible that its task->cpuset pointer is pointing to the top cpuset due to the_top_cpuset_hack, rather than because the top_cpuset was that tasks last valid cpuset. In that case, the wrong cpuset reference counter would be decremented. The fix is trivial. Instead of failing the system call if the tasks cpuset pointer is null here, fail it if the task is in PF_EXITING state. The code for 'the_top_cpuset_hack' that changes an exiting tasks cpuset to the top_cpuset is done without locking, so could happen at anytime. But it is done during the exit handling, after the PF_EXITING flag is set. So if we verify that a task is still not PF_EXITING after we copy out its cpuset pointer (into 'oldcs', below), we know that 'oldcs' is not one of these hack references to the top_cpuset. Signed-off-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 683e91cbd0582cb8e63daaf0429e0a62be9cc421 tree 1035937aabb0736ffa7ff5e9b2180c2ecb2b54e3 parent 03cbc358aab3faf34bfeaa02206fa660127e9b3f author Kirill Korotaev Fri, 29 Sep 2006 02:01:47 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] SubmittingPatches: add a note about "format=flowed" when sending patches Add a note about "format=flowed" when sending patches and explain how to fix mozilla. Thunderbird has the similar options. Signed-off-by: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 03cbc358aab3faf34bfeaa02206fa660127e9b3f tree 8d95237532390a1beeef37158174fd045b0f8819 parent 632dd2053a1146c826ceb6f26ab689389c05e751 author Ingo Molnar Fri, 29 Sep 2006 02:01:46 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] lockdep core: improve the lock-chain-hash With CONFIG_DEBUG_LOCK_ALLOC turned off i was getting sporadic failures in the locking self-test: ------------> | Locking API testsuite: ---------------------------------------------------------------------------- | spin |wlock |rlock |mutex | wsem | rsem | -------------------------------------------------------------------------- A-A deadlock: ok | ok | ok | ok | ok | ok | A-B-B-A deadlock: ok | ok | ok | ok | ok | ok | A-B-B-C-C-A deadlock: ok | ok | ok | ok | ok | ok | A-B-C-A-B-C deadlock: ok | ok | ok | ok | ok | ok | A-B-B-C-C-D-D-A deadlock: ok |FAILED| ok | ok | ok | ok | A-B-C-D-B-D-D-A deadlock: ok | ok | ok | ok | ok | ok | A-B-C-D-B-C-D-A deadlock: ok | ok | ok | ok | ok |FAILED| after much debugging it turned out to be caused by accidental chain-hash key collisions. The current hash is: #define iterate_chain_key(key1, key2) \ (((key1) << MAX_LOCKDEP_KEYS_BITS/2) ^ \ ((key1) >> (64-MAX_LOCKDEP_KEYS_BITS/2)) ^ \ (key2)) where MAX_LOCKDEP_KEYS_BITS is 11. This hash is pretty good as it will shift by 5 bits in every iteration, where every new ID 'mixed' into the hash would have up to 11 bits. But because there was a 6 bits overlap between subsequent IDs and their high bits tended to be similar, there was a chance for accidental chain-hash collision for a low number of locks held. the solution is to shift by 11 bits: #define iterate_chain_key(key1, key2) \ (((key1) << MAX_LOCKDEP_KEYS_BITS) ^ \ ((key1) >> (64-MAX_LOCKDEP_KEYS_BITS)) ^ \ (key2)) This keeps the hash perfect up to 5 locks held, but even above that the hash is still good because 11 bits is a relative prime to the total 64 bits, so a complete match will only occur after 64 held locks (which doesnt happen in Linux). Even after 5 locks held, entropy of the 5 IDs mixed into the hash is already good enough so that overlap doesnt generate a colliding hash ID. with this change the false positives went away. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 632dd2053a1146c826ceb6f26ab689389c05e751 tree 439c457364f5b58e2de09950e5e0854968e3cde2 parent 327dcaadc0bc08ad081aa8e36b6ec7ad7aa45e30 author Vivek Goyal Fri, 29 Sep 2006 02:01:45 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] Kcore elf note namesz field fix o As per ELF specifications, it looks like that elf note "namesz" field contains the length of "name" including the size of null character. And currently we are filling "namesz" without taking into the consideration the null character size. o Kexec-tools performs this check deligently hence I ran into the issue while trying to open /proc/kcore in kexec-tools for some info. Signed-off-by: Vivek Goyal Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 327dcaadc0bc08ad081aa8e36b6ec7ad7aa45e30 tree 68bec9183fcee79370e076244be347dd20d5dd9f parent 74d392aaabfc890cc1f0e80fc5ff13e5d3bcf4c9 author Andrew Morton Fri, 29 Sep 2006 02:01:44 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] expand_fdtable(): remove pointless unlock+lock This unlock/lock on a super-unlikely path isn't worth the kernel text. Cc: Vadim Lobanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 74d392aaabfc890cc1f0e80fc5ff13e5d3bcf4c9 tree e70c15452798ac7745d9f9f0f8bb732286d77784 parent 3706baa8b1ba0d71d52fd0c656752a6495f6364a author Vadim Lobanov Fri, 29 Sep 2006 02:01:43 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] Clean up expand_fdtable() and expand_files() Perform a code cleanup against the expand_fdtable() and expand_files() functions inside fs/file.c. It aims to make the flow of code within these functions simpler and easier to understand, via added comments and modest refactoring. Signed-off-by: Vadim Lobanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3706baa8b1ba0d71d52fd0c656752a6495f6364a tree c2a744367dc347a79ac144088778116a97202bef parent eb84a20e9e6b98dcb33023ad22241d79107a08a7 author Alexey Dobriyan Fri, 29 Sep 2006 02:01:43 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] Documentation/SubmittingDrivers: minor update * fix copright typo * remove trailing whitespace * remove Kernel Traffic from Resources. Zack, it was great reading! * Name Arjan by name and fix URL of "How to NOT" paper. * Remove "Last updated" tag. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eb84a20e9e6b98dcb33023ad22241d79107a08a7 tree 4971aef730cc3a1917463afe1dbb381dea664e99 parent 5f412b24240d92212e50ebbaff2dff20c9e6f3d0 author Alan Cox Fri, 29 Sep 2006 02:01:41 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:25 -0700 [PATCH] audit/accounting: tty locking Add tty locking around the audit and accounting code. The whole current->signal-> locking is all deeply strange but it's for someone else to sort out. Add rather than replace the lock for acct.c Signed-off-by: Alan Cox Acked-by: Arjan van de Ven Cc: Al Viro Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5f412b24240d92212e50ebbaff2dff20c9e6f3d0 tree 4929d68d6949c887fbd3fb0594b0c1ec5a7e765d parent 67cc0161ecc9ebee6eba4af6cbfdba028090b1b9 author Alan Cox Fri, 29 Sep 2006 02:01:40 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] Fix locking for tty drivers when doing urgent characters If you send a priority character (as is done for flow control) then the tty driver can either have its own method for "jumping the queue" or the characrer can be queued normally. In the latter case we call the write method but without the atomic_write_lock taken elsewhere. Make this consistent. Note that the send_xchar method if implemented remains outside of the lock as it can jump ahead of a current write so must not be locked out by it. Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 67cc0161ecc9ebee6eba4af6cbfdba028090b1b9 tree 2a115aac9872851a4c886c51c8fda2f593c44c00 parent 1db27c11e9a0c6d659040ac0b7c64a339e248fa1 author Alan Cox Fri, 29 Sep 2006 02:01:39 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] specialix - remove private speed decoding Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1db27c11e9a0c6d659040ac0b7c64a339e248fa1 tree 213dc86e25d734ab59ddf0f2074c1317b28e3f28 parent d720bc4b8fc5d6d179ef094908d4fbb5e436ffad author Alan Cox Fri, 29 Sep 2006 02:01:38 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] istallion: Remove private baud rate decoding, which is also broken in this case on some platforms Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d720bc4b8fc5d6d179ef094908d4fbb5e436ffad tree 63468b72b89791971403a4826cc6f7dc1d07232c parent 13c73f045f2ac33219729678f4a9389d4ccab799 author Alan Cox Fri, 29 Sep 2006 02:01:38 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] generic_serial: remove private decoding of baud rate bits The driver has no business doing this work itself any more and hasn't for some years. When the new speed stuff goes in this will break entirely so fix it up ready. Also remove a #if 0 around a comment.... Signed-off-by: Alan Cox Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 13c73f045f2ac33219729678f4a9389d4ccab799 tree 9be3f3f917a6a766090381d202c059c5c5d1875c parent b9dd6ffc3d6b56417a2c4c917f51dab6470166e6 author Atsushi Nemoto Fri, 29 Sep 2006 02:01:37 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] RTC: more XSTP/VDET support for rtc-rs5c348 driver If the chip detected "oscillator stop" condition, show an warning message. And initialize it with the Epoch time instead of leaving it with unknown date/time. Signed-off-by: Atsushi Nemoto Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b9dd6ffc3d6b56417a2c4c917f51dab6470166e6 tree 629111b68c1db6de82acef3f7ab486d61751235c parent e5582ca21af82929d5cd3613321ac9233c492ebc author Adrian Bunk Fri, 29 Sep 2006 02:01:36 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] build sound/sound_firmware.c only for OSS All sound/sound_firmware.c contains is mod_firmware_load() that is a legacy API only used by some OSS drivers. This patch builds it into an own sound_firmware module that is only built depending on CONFIG_SOUND_PRIME making the kernel slightly smaller for ALSA users. [alan@lxorguk.ukuu.org.uk: comment fix] Signed-off-by: Adrian Bunk Acked-by: Takashi Iwai Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e5582ca21af82929d5cd3613321ac9233c492ebc tree 33d2b5cc6a42efac04320c7b566c55ca5388dfe9 parent 39f0247d3823e4e0bf8f6838a10362864b1e1053 author Rusty Russell Fri, 29 Sep 2006 02:01:35 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] stop_machine.c copyright I had to look back: this code was extracted from the module.c code in 2005. Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 39f0247d3823e4e0bf8f6838a10362864b1e1053 tree f5808b2bb5fd719c42c7068e2dc43a4b8f402304 parent f0c8bd164e1a0585d7e46896553136b4f488bd19 author Andreas Gruenbacher Fri, 29 Sep 2006 02:01:35 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] Access Control Lists for tmpfs Add access control lists for tmpfs. Signed-off-by: Andreas Gruenbacher Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f0c8bd164e1a0585d7e46896553136b4f488bd19 tree 75cbeec5113da7c20c6ee9ef09bdaea82014738a parent 4e6fd33b75602ced4c5d43e99a10a1d13f33d4f4 author Andreas Gruenbacher Fri, 29 Sep 2006 02:01:34 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:24 -0700 [PATCH] Generic infrastructure for acls The patches solve the following problem: We want to grant access to devices based on who is logged in from where, etc. This includes switching back and forth between multiple user sessions, etc. Using ACLs to define device access for logged-in users gives us all the flexibility we need in order to fully solve the problem. Device special files nowadays usually live on tmpfs, hence tmpfs ACLs. Different distros have come up with solutions that solve the problem to different degrees: SUSE uses a resource manager which tracks login sessions and sets ACLs on device inodes as appropriate. RedHat uses pam_console, which changes the primary file ownership to the logged-in user. Others use a set of groups that users must be in in order to be granted the appropriate accesses. The freedesktop.org project plans to implement a combination of a console-tracker and a HAL-device-list based solution to grant access to devices to users, and more distros will likely follow this approach. These patches have first been posted here on 2 February 2005, and again on 8 January 2006. We have been shipping them in SLES9 and SLES10 with no problems reported. The previous submission is archived here: http://lkml.org/lkml/2006/1/8/229 http://lkml.org/lkml/2006/1/8/230 http://lkml.org/lkml/2006/1/8/231 This patch: Add some infrastructure for access control lists on in-memory filesystems such as tmpfs. Signed-off-by: Andreas Gruenbacher Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4e6fd33b75602ced4c5d43e99a10a1d13f33d4f4 tree f22573e7d57532c4393ae26bea08866decad2813 parent 8c6ba51bdad0de0dc2a2e2415d4dac2d0db6c1a1 author Chris Snook Fri, 29 Sep 2006 02:01:33 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] enforce RLIMIT_NOFILE in poll() POSIX states that poll() shall fail with EINVAL if nfds > OPEN_MAX. In this context, POSIX is referring to sysconf(OPEN_MAX), which is the value of current->signal->rlim[RLIMIT_NOFILE].rlim_cur in the linux kernel, not the compile-time constant which happens to also be named OPEN_MAX. In the current code, an application may poll up to max_fdset file descriptors, even if this exceeds RLIMIT_NOFILE. The current code also breaks applications which poll more than max_fdset descriptors, which worked circa 2.4.18 when the check was against NR_OPEN, which is 1024*1024. This patch enforces the limit precisely as POSIX defines, even if RLIMIT_NOFILE has been changed at run time with ulimit -n. To elaborate on the rationale for this, there are three cases: 1) RLIMIT_NOFILE is at the default value of 1024 In this (default) case, the patch changes nothing. Calls with nfds > 1024 fail with EINVAL both before and after the patch, and calls with nfds <= 1024 pass the check both before and after the patch, since 1024 is the initial value of max_fdset. 2) RLIMIT_NOFILE has been raised above the default In this case, poll() becomes more permissive, allowing polling up to RLIMIT_NOFILE file descriptors even if less than 1024 have been opened. The patch won't introduce new errors here. If an application somehow depends on poll() failing when it polls with duplicate or invalid file descriptors, it's already broken, since this is already allowed below 1024, and will also work above 1024 if enough file descriptors have been open at some point to cause max_fdset to have been increased above nfds. 3) RLIMIT_NOFILE has been lowered below the default In this case, the system administrator or the user has gone out of their way to protect the system from inefficient (or malicious) applications wasting kernel memory. The current code allows polling up to 1024 file descriptors even if RLIMIT_NOFILE is much lower, which is not what the user or administrator intended. Well-written applications which only poll valid, unique file descriptors will never notice the difference, because they'll hit the limit on open() first. If an application gets broken because of the patch in this case, then it was already poorly/maliciously designed, and allowing it to work in the past was a violation of POSIX and a DoS risk on low-resource systems. With this patch, poll() will permit exactly what POSIX suggests, no more, no less, and for any run-time value set with ulimit -n, not just 256 or 1024. There are existing apps which which poll a large number of file descriptors, some of which may be invalid, and if those numbers stradle 1024, they currently fail with or without the patch in -mm, though they worked fine under 2.4.18. Signed-off-by: Chris Snook Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8c6ba51bdad0de0dc2a2e2415d4dac2d0db6c1a1 tree 83727f2519978147ff509787ad6cb25379dd2cfd parent 04b1db9fd7eea63c9663072feece616ea41b0a79 author Eric Sesterhenn Fri, 29 Sep 2006 02:01:32 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] Uninitialized variable in drivers/net/wan/syncppp.c For len equal to 4, we never call sppp_lcp_conf_parse_options(), therefore rmagic does not get initialized. Signed-off-by: Eric Sesterhenn Acked-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 04b1db9fd7eea63c9663072feece616ea41b0a79 tree 70b92bf4040acbad744970b82432caac768c2658 parent 3b5e0cbb4fb6e2a599d72652f56a9acb6af16bcf author Ian S. Nelson Fri, 29 Sep 2006 02:01:31 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] /sys/modules: allow full length section names I've been using systemtap for some debugging and I noticed that it can't probe a lot of modules. Turns out it's kind of silly, the sections section of /sys/module is limited to 32byte filenames and many of the actual sections are a a bit longer than that. [akpm@osdl.org: rewrite to use dymanic allocation] Cc: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3b5e0cbb4fb6e2a599d72652f56a9acb6af16bcf tree b16b61aa7171cfaca21c6891c656689fffbe29d7 parent 5ddb88c0ab636e6ac0b5e409f6288a814dc87275 author Matthew Wilcox Fri, 29 Sep 2006 02:01:30 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] SuperH list is moderated I just got a bounce telling me my contributions aren't welcome. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ddb88c0ab636e6ac0b5e409f6288a814dc87275 tree d84b5bd58905347b5a4aaf0c46e99497e141f932 parent 8e9cb8fdab0709c508cd9689bee6916a270191cc author Pavel Machek Fri, 29 Sep 2006 02:01:29 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] network block device is mostly known as "NBD" People search maintainers for NBD and then decide it is not maintained. (akpm: ditto LVM. And other things, but I forget what they were) Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8e9cb8fdab0709c508cd9689bee6916a270191cc tree b7471650ba29b342c2cae805187534b6969d1283 parent 1497b2749babb01458a6d9dfd4dfb493b3d388f2 author Pavel Machek Fri, 29 Sep 2006 02:01:29 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] SubmittingPatches cleanups This cleans up SubmittingPatches a bit. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1497b2749babb01458a6d9dfd4dfb493b3d388f2 tree 7b1d39c22a6b3a730cd9e19c8c22dcd05b8229bf parent 4050914f7c2665736a82265a029466071a90094e author Andreas Mohr Fri, 29 Sep 2006 02:01:28 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] lib/ts_fsm.c: constify structs Constify two structs. Correct some typos. Compile-tested and run-tested (module inserted) on 2.6.18-rc4-mm3. Signed-off-by: Andreas Mohr Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4050914f7c2665736a82265a029466071a90094e tree 529bf07480c936bb9e3be5b80ac0eb948946056b parent 1a036cdd955b695b7e09e6505e6d6eba697f043e author Akinobu Mita Fri, 29 Sep 2006 02:01:27 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] rate limiting for the ldisc open failure messages This patch limits the messages when ldisc open faulures happen. It happens under memory pressure. Signed-off-by: Akinobu Mita Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1a036cdd955b695b7e09e6505e6d6eba697f043e tree cddcfbac159f544e41d3e0102f8a8a2ba63f2699 parent 3f9e7949f86dfe2bd9a1ad0604f78e7683c059de author Randy Dunlap Fri, 29 Sep 2006 02:01:26 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] Mention Documenation/ABI/ requirements in Documentation/SubmitChecklist Mention Documenation/ABI/ requirements in Documentation/SubmitChecklist. Signed-off-by: Randy Dunlap Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3f9e7949f86dfe2bd9a1ad0604f78e7683c059de tree af710aa375e0f641ceec1bf7d4002ef33beeb571 parent 2d1d43f6a43b703587e759145f69467e7c6553a7 author Hugh Dickins Fri, 29 Sep 2006 02:01:26 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:23 -0700 [PATCH] valid_swaphandles() fix akpm draws my attention to the fact that sysctl(VM_PAGE_CLUSTER) might conceivably change page_cluster to 0 while valid_swaphandles() is in the middle of using it, leading to an embarrassingly long loop: take a local snapshot of page_cluster and work with that. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2d1d43f6a43b703587e759145f69467e7c6553a7 tree 8ceb1c78a54c6f44f177779b2b7bdbbc9e03048a parent 40c99aae23529f3d069ae08836ae46fadb3fd2bd author Chandra Seetharaman Fri, 29 Sep 2006 02:01:25 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] call mm/page-writeback.c:set_ratelimit() when new pages are hot-added ratelimit_pages in page-writeback.c is recalculated (in set_ratelimit()) every time a CPU is hot-added/removed. But this value is not recalculated when new pages are hot-added. This patch fixes that problem by calling set_ratelimit() when new pages are hot-added. [akpm@osdl.org: cleanups] Signed-off-by: Chandra Seetharaman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 40c99aae23529f3d069ae08836ae46fadb3fd2bd tree 5172ca1dca669de3ddc2a6aacc79e41667204aea parent 153dcc54df826d2f8413c026313cba673c6bcc5b author Chandra Seetharaman Fri, 29 Sep 2006 02:01:24 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] remove static variable mm/page-writeback.c:total_pages page-writeback.c has a static local variable "total_pages", which is the total number of pages in the system. There is a global variable "vm_total_pages", which is the total number of pages the VM controls. Both are assigned from the return value of nr_free_pagecache_pages(). This patch removes the local variable and uses the global variable in that place. One more issue with the local static variable "total_pages" is that it is not updated when new pages are hot-added. Since vm_total_pages is updated when new pages are hot-added, this patch fixes that problem too. Signed-off-by: Chandra Seetharaman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 153dcc54df826d2f8413c026313cba673c6bcc5b tree ed9c7ecd2f9f3d44990a3a501008b3d5804bbf14 parent 781b823e093b6ab3fd489f7d56ed869d27a78c1d author Geoff Levand Fri, 29 Sep 2006 02:01:23 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] mem driver: fix conditional on isa i/o support This change corrects the logic on the preprocessor conditionals that include support for ISA port i/o (/dev/ioports) into the mem character driver. This fixes the following error when building for powerpc platforms with CONFIG_PCI=n. drivers/built-in.o: undefined reference to `pci_io_base' Signed-off-by: Geoff Levand Acked-by: Linas Vepstas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 781b823e093b6ab3fd489f7d56ed869d27a78c1d tree f674e9f8798e99fd0fc1262fff9e8b12e0268bfa parent e518ddb7ba44a3d852c0e41961365844c76eb2bf author Kaz Kojima Fri, 29 Sep 2006 02:01:22 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] SuperH maintainership change I think this is a time to step down from my SUPERH architecture maintainerships. The major development issues for this port seem to shift on the hardwares I can't access and I have no recent activity on kernel. I shouldn't qualify as a maintainer of SUPERH port now and there is no problem because Paul is actively maintaining it. The attached patch drops my name, address and web URL from MAINTAINERS file. Signed-off-by: Kazumoto Kojima Cc: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e518ddb7ba44a3d852c0e41961365844c76eb2bf tree 82bda48f6dac153015ef02fe6f8ccbbfa15151d0 parent c16a02d6f5fcfe05dc6fd40aa80a8e1d055300db author Andreas Mohr Fri, 29 Sep 2006 02:01:22 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] fs/namei.c: replace multiple current->fs by shortcut variable Replace current->fs by fs helper variable to reduce some indirection overhead and (at least at the moment, before the current_thread_info() %gs PDA improvement is available) get rid of more costly current references. Reduces fs/namei.o from 37786 to 37082 Bytes (704 Bytes saved). [akpm@osdl.org: cleanup] Signed-off-by: Andreas Mohr Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c16a02d6f5fcfe05dc6fd40aa80a8e1d055300db tree 9335cbe024a12723395a92f5aeca7111700a0766 parent fdf8cb0909b531f9ae8f9b9d7e4eb35ba3505f07 author Alan Stern Fri, 29 Sep 2006 02:01:21 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] Add section on function return values to CodingStyle This patch (as776) adds a new chapter to Documentation/CodingStyle, explaining the circumstances under which a function should return 0 for failure and non-zero for success as opposed to a negative error code for failure and 0 for success. Signed-off-by: Alan Stern Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fdf8cb0909b531f9ae8f9b9d7e4eb35ba3505f07 tree 0e06d558f1e349fcc26a9fb06b2c5f96776b6b86 parent 2752e401148a064a23a5a1e92d502d05017a560c author Andreas Mohr Fri, 29 Sep 2006 02:01:20 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] lib/rwsem.c: un-inline rwsem_down_failed_common() Un-inlining rwsem_down_failed_common() (two callsites) reduced lib/rwsem.o on my Athlon, gcc 4.1.2 from 5935 to 5480 Bytes (455 Bytes saved). I thus guess that reduced icache footprint (and better function caching) is worth more than any function call overhead. Signed-off-by: Andreas Mohr Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2752e401148a064a23a5a1e92d502d05017a560c tree 909d791b972afc22ae0833e8566da62b0faf1993 parent a7422bf8a6feee6ec0c130fab7080df0cea86ebc author Jim Lewis Fri, 29 Sep 2006 02:01:19 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] Add to MAINTAINERS file This patch adds Jim Lewis to the MAINTAINERS file for the Spidernet network driver. Signed-off-by: James K Lewis Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a7422bf8a6feee6ec0c130fab7080df0cea86ebc tree 2b624eed131e8ceafb0a711827144c817ff7bf2e parent cdae9695870895dd6be4c7d6d31d8704ea27f064 author Serge E. Hallyn Fri, 29 Sep 2006 02:01:18 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:22 -0700 [PATCH] loop: forward-port resource leak checks from Solar Forward port of the patch by Solar and ported by Julio. Compiles, boots, and passes my looptorturetest.sh. Signed-off-by: Serge E. Hallyn Cc: Julio Auto Cc: Solar Designer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cdae9695870895dd6be4c7d6d31d8704ea27f064 tree e07d2956b218c8d882ec2352cc01987b8e1e45dd parent b1aac8bb824c658ddebd296b088a8bff5029c288 author Andrew Morton Fri, 29 Sep 2006 02:01:17 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] remove sound/oss/COPYING This appears to be a verbatim copy-n-paste of the GPL. Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b1aac8bb824c658ddebd296b088a8bff5029c288 tree 4b19b71fac4f769b7be7cff97ac7f6445d14d236 parent 38837fc75acb7fa9b0e111b0241fe4fe76c5d4b3 author Paul Jackson Fri, 29 Sep 2006 02:01:17 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] cpuset: hotunplug cpus and mems in all cpusets The cpuset code handling hot unplug of CPUs or Memory Nodes was incorrect - it could remove a CPU or Node from the top cpuset, while leaving it still in some child cpusets. One basic rule of cpusets is that each cpusets cpus and mems are subsets of its parents. The cpuset hot unplug code violated this rule. So the cpuset hotunplug handler must walk down the tree, removing any removed CPU or Node from all cpusets. However, it is not allowed to make a cpusets cpus or mems become empty. They can only transition from empty to non-empty, not back. So if the last CPU or Node would be removed from a cpuset by the above walk, we scan back up the cpuset hierarchy, finding the nearest ancestor that still has something online, and copy its CPU or Memory placement. Signed-off-by: Paul Jackson Cc: Nathan Lynch Cc: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 38837fc75acb7fa9b0e111b0241fe4fe76c5d4b3 tree 51508cbc49527e35921efb4ba31bca7da9795ad2 parent af3ffa6758dbd2ab7ebe62dddf66b3aa94d64eeb author Paul Jackson Fri, 29 Sep 2006 02:01:16 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] cpuset: top_cpuset tracks hotplug changes to node_online_map Change the list of memory nodes allowed to tasks in the top (root) nodeset to dynamically track what cpus are online, using a call to a cpuset hook from the memory hotplug code. Make this top cpus file read-only. On systems that have cpusets configured in their kernel, but that aren't actively using cpusets (for some distros, this covers the majority of systems) all tasks end up in the top cpuset. If that system does support memory hotplug, then these tasks cannot make use of memory nodes that are added after system boot, because the memory nodes are not allowed in the top cpuset. This is a surprising regression over earlier kernels that didn't have cpusets enabled. One key motivation for this change is to remain consistent with the behaviour for the top_cpuset's 'cpus', which is also read-only, and which automatically tracks the cpu_online_map. This change also has the minor benefit that it fixes a long standing, little noticed, minor bug in cpusets. The cpuset performance tweak to short circuit the cpuset_zone_allowed() check on systems with just a single cpuset (see 'number_of_cpusets', in linux/cpuset.h) meant that simply changing the 'mems' of the top_cpuset had no affect, even though the change (the write system call) appeared to succeed. With the following change, that write to the 'mems' file fails -EACCES, and the 'mems' file stubbornly refuses to be changed via user space writes. Thus no one should be mislead into thinking they've changed the top_cpusets's 'mems' when in affect they haven't. In order to keep the behaviour of cpusets consistent between systems actively making use of them and systems not using them, this patch changes the behaviour of the 'mems' file in the top (root) cpuset, making it read only, and making it automatically track the value of node_online_map. Thus tasks in the top cpuset will have automatic use of hot plugged memory nodes allowed by their cpuset. [akpm@osdl.org: build fix] [bunk@stusta.de: build fix] Signed-off-by: Paul Jackson Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit af3ffa6758dbd2ab7ebe62dddf66b3aa94d64eeb tree 58a3f1af6ec9278288ded4d75f29bbd43d162f75 parent b78483a4ba60d5d90930262a533a784e1d9df660 author Pavel Machek Fri, 29 Sep 2006 02:01:14 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] Fix typo in rtc kconfig Fix simple typo in RTC_HCTOSYS option. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b78483a4ba60d5d90930262a533a784e1d9df660 tree 0b2cb0f3cf2852bf4138c13179221e58a37f402a parent 01017a227044d64face2588fab9427a1da1bdb9f author Nick Piggin Fri, 29 Sep 2006 02:01:14 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] oom: don't kill current when another OOM in progress A previous patch to allow an exiting task to OOM kill itself (and thereby avoid a little deadlock) introduced a problem. We don't want the PF_EXITING task, even if it is 'current', to access mem reserves if there is already a TIF_MEMDIE process in the system sucking up reserves. Also make the commenting a little bit clearer, and note that our current scheme of effectively single threading the OOM killer is not itself perfect. Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 01017a227044d64face2588fab9427a1da1bdb9f tree b1f369a8d20aff94447ac6acd18bbb23d268b443 parent 972c4ea59c9dbf82647ee9665d9e945241911a51 author Oleg Nesterov Fri, 29 Sep 2006 02:01:13 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] oom_kill_task(): cleanup ->mm checks - It is not possible to have task->mm == &init_mm. - task_lock() buys nothing for 'if (!p->mm)' check. Signed-off-by: Oleg Nesterov Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 972c4ea59c9dbf82647ee9665d9e945241911a51 tree 11f084b503b2b539e0dba3c18e69ccdf7d722052 parent 28324d1df646521256e83389244adcce98e89ff2 author Oleg Nesterov Fri, 29 Sep 2006 02:01:12 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] select_bad_process(): cleanup 'releasing' check No logic changes, but imho easier to read. Signed-off-by: Oleg Nesterov Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 28324d1df646521256e83389244adcce98e89ff2 tree aaa81642185611b4996daeba7d65e6b3c3eb05a7 parent c394cc9fbb367f87faa2228ec2eabacd2d4701c6 author Oleg Nesterov Fri, 29 Sep 2006 02:01:12 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] select_bad_process(): kill a bogus PF_DEAD/TASK_DEAD check The only one usage of TASK_DEAD outside of last schedule path, select_bad_process: for_each_task(p) { if (!p->mm) continue; ... if (p->state == TASK_DEAD) continue; ... TASK_DEAD state is set at the end of do_exit(), this means that p->mm was already set == NULL by exit_mm(), so this task was already rejected by 'if (!p->mm)' above. Note also that the caller holds tasklist_lock, this means that p can't pass exit_notify() and then set TASK_DEAD when p->mm != NULL. Also, remove open-coded is_init(). Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c394cc9fbb367f87faa2228ec2eabacd2d4701c6 tree 2177214ac92b3a7ac21cb2632786c9de728c3868 parent 55a101f8f71a3d3dbda7b5c77083ffe47552f831 author Oleg Nesterov Fri, 29 Sep 2006 02:01:11 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:21 -0700 [PATCH] introduce TASK_DEAD state I am not sure about this patch, I am asking Ingo to take a decision. task_struct->state == EXIT_DEAD is a very special case, to avoid a confusion it makes sense to introduce a new state, TASK_DEAD, while EXIT_DEAD should live only in ->exit_state as documented in sched.h. Note that this state is not visible to user-space, get_task_state() masks off unsuitable states. Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 55a101f8f71a3d3dbda7b5c77083ffe47552f831 tree 52706df201efd82d09bed39562502b4caa357af4 parent 29b884921634e1e01cbd276e1c9b8fc07a7e4a90 author Oleg Nesterov Fri, 29 Sep 2006 02:01:10 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] kill PF_DEAD flag After the previous change (->flags & PF_DEAD) <=> (->state == EXIT_DEAD), we don't need PF_DEAD any longer. Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 29b884921634e1e01cbd276e1c9b8fc07a7e4a90 tree 951fce8626715b1ad26ca81bec9002cfcb8242af parent e8106b941ceab68cc5ff713df7b1276484554584 author Oleg Nesterov Fri, 29 Sep 2006 02:01:09 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] set EXIT_DEAD state in do_exit(), not in schedule() schedule() checks PF_DEAD on every context switch and sets ->state = EXIT_DEAD to ensure that the exiting task will be deactivated. Note that this EXIT_DEAD is in fact a "random" value, we can use any bit except normal TASK_XXX values. It is better to set this state in do_exit() along with PF_DEAD flag and remove that check in schedule(). We are safe wrt concurrent try_to_wake_up() (for example ptrace, tkill), it can not change task's ->state: the 'state' argument of try_to_wake_up() can't have EXIT_DEAD bit. And in case when try_to_wake_up() sees a stale value of ->state == TASK_RUNNING it will do nothing. Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e8106b941ceab68cc5ff713df7b1276484554584 tree 6d8ad676796f4469aa334589565e971932049bc4 parent 6ea36ddbd1abfe867f1e874a8312bfd811e5fd2c author Arjan van de Ven Fri, 29 Sep 2006 02:01:08 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] lockdep: core, add enable/disable_irq_irqsave/irqrestore() APIs Introduce the disable_irq_nosync_lockdep_irqsave() and enable_irq_lockdep_irqrestore() APIs. These are needed for NE2000; basically NE2000 calls disable_irq and enable_irq as locking against the IRQ handler, but both in cases where interrupts are on and off. This means that lockdep needs to track the old state of the virtual irq flags on disable_irq, and restore these at enable_irq time. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ea36ddbd1abfe867f1e874a8312bfd811e5fd2c tree c70f28e5e644440cfa93dac2effdde9040866e9c parent d826380b305971ff9825ef005ff039d655542bbb author Alexey Dobriyan Fri, 29 Sep 2006 02:01:07 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] Ban register_filesystem(NULL); Everyone passes valid pointer there. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d826380b305971ff9825ef005ff039d655542bbb tree 8c03475644a23f4d65c9d029e2ca0e63530893cc parent 368bdb3d616fa352971f45b423ae6344715e620b author Alexey Dobriyan Fri, 29 Sep 2006 02:01:06 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] 9p: fix leak on error path If register_filesystem() fails mux workqueue must be killed. Signed-off-by: Alexey Dobriyan Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Latchesar Ionkov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 368bdb3d616fa352971f45b423ae6344715e620b tree dcb02bd584d5d23c12393726f91694b1fc03ccc1 parent a4376e13ce07774be14e83fe501ef5c8500b83a1 author Alexey Dobriyan Fri, 29 Sep 2006 02:01:05 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] cramfs: make cramfs_uncompress_exit() return void It always returns 0, so relying on it is useless. The only caller isn't checking return value. In general, un-, de-, -free functions should return void. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a4376e13ce07774be14e83fe501ef5c8500b83a1 tree 2f56903af62a7ab5820e069aeab1813f45469b6b parent 50d44ed009a628e6d5c784fae18ea743d7cf199a author Alexey Dobriyan Fri, 29 Sep 2006 02:01:04 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] freevxfs: fix leak on error path If register_filesystem() fails, vxfs_inode cache must be destroyed. Signed-off-by: Alexey Dobriyan Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 50d44ed009a628e6d5c784fae18ea743d7cf199a tree 596b91bfd22d0101619599e5085451e9558421fe parent dcc8e559ee5ae03fa6bdb8611d76d86d0083e793 author Alexey Dobriyan Fri, 29 Sep 2006 02:01:04 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] cramfs: rewrite init_cramfs_fs() Two lines -- two bugs. :-( Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dcc8e559ee5ae03fa6bdb8611d76d86d0083e793 tree 8847aba4ed68074ec9ab0ef28ee2cdd7937f51d9 parent 7d2c502f141042f6e5d145aa40107685d751e5a3 author Josh Triplett Fri, 29 Sep 2006 02:01:03 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] Pass a lock expression to __cond_lock, like __acquire and __release Currently, __acquire and __release take a lock expression, but __cond_lock takes only a condition, not the lock acquired if the expression evaluates to true. Change __cond_lock to accept a lock expression, and change all the callers to pass in a lock expression. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7d2c502f141042f6e5d145aa40107685d751e5a3 tree 874628c962838191c99b1163803d03b33ac23ab1 parent f7ca54f486d3b07f48b8bbc92705bde6ba98ee54 author Randy Dunlap Fri, 29 Sep 2006 02:01:02 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:20 -0700 [PATCH] doc: fix kernel-parameters 'quiet' Fix "quiet" parameter doc. No trailing '=' sign, no value after it. And it disables "most" kernel messages, not all of them. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f7ca54f486d3b07f48b8bbc92705bde6ba98ee54 tree 33a464bf15016d5521c1c18f53af5c64a2cc06de parent 87d7c8aca8670a772f74766c19e0345a606b67a9 author Frederik Deweerdt Fri, 29 Sep 2006 02:01:02 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:19 -0700 [PATCH] fix mem_write() return value At the beginning of the routine, "copied" is set to 0, but it is no good because in lines 805 and 812 it is set to other values. Finally, the routine returns as if it copied 12 (=ENOMEM) bytes less than it actually did. Signed-off-by: Frederik Deweerdt Acked-by: Eric Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 87d7c8aca8670a772f74766c19e0345a606b67a9 tree 5373f4a6095d8772f33f1c9faa12f1a583f8f14e parent 303912e2a32aa73785b4c4dee15466d944a38a46 author Jason Baron Fri, 29 Sep 2006 02:01:01 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:19 -0700 [PATCH] block_dev.c mutex_lock_nested() fix In the case below we are locking the whole disk not a partition. This change simply brings the code in line with the piece above where when we are the 'first' opener, and we are a partition. Signed-off-by: Jason Baron Acked-by: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 303912e2a32aa73785b4c4dee15466d944a38a46 tree e98f5cda14643fd705b69e318ad86f854edbb18b parent 9f50b93f066f8dc339de9b0eb78a22a75e6c8f8f author Josh Triplett Fri, 29 Sep 2006 02:01:00 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:19 -0700 [PATCH] Replace _spin_trylock with spin_trylock in the IRQ variants to use __cond_lock spin_trylock_irq and spin_trylock_irqsave use _spin_trylock, which does not use the __cond_lock wrapper annotation and thus does not affect the lock context; change them to use spin_trylock instead, which does use __cond_lock. Signed-off-by: Josh Triplett Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9f50b93f066f8dc339de9b0eb78a22a75e6c8f8f tree 9977ea31409d3ac73b9b47b9d0c5d3f0c7cbea87 parent 92e9a8507ba81ff9e25bd9c5030ff8586269eefb author Josh Triplett Fri, 29 Sep 2006 02:00:59 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:19 -0700 [PATCH] Make spinlock/rwlock annotations more accurate by using parameters, not types The lock annotations used on spinlocks and rwlocks currently use __{acquires,releases}(spinlock_t) and __{acquires,releases}(rwlock_t), respectively. This loses the information of which lock actually got acquired or released, and assumes a different type for the parameter of __acquires and __releases than the rest of the kernel. While the current implementations of __acquires and __releases throw away their argument, this will not always remain the case. Change this to use the lock parameter instead, to preserve this information and increase consistency in usage of __acquires and __releases. Signed-off-by: Josh Triplett Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 92e9a8507ba81ff9e25bd9c5030ff8586269eefb tree 40c7f1ab30ac5a0e0966d1673e00dec753242eb4 parent 28298232a15c48ea9835d5d24577cde87923e55c author Alexey Dobriyan Fri, 29 Sep 2006 02:00:58 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:19 -0700 [PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver() Signed-off-by: Alexey Dobriyan Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 28298232a15c48ea9835d5d24577cde87923e55c tree 09075921f79015bdb83dfd571a891d3a111c3796 parent de2a84f2be8ed8a166f13d6aa2ae474541172bb2 author Alan Cox Fri, 29 Sep 2006 02:00:58 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] tty: Fix bits and note more bits to fix If your driver implements "break on" and "break off" this ensures you won't get multiple overlapping requests or requests in parallel. If your driver has its own break handling then its still your problem as the driver author. Break is also now serialized against writes from user space properly but no new guarantees are made driver level about writes from the line discipline itself (eg flow control or echo) Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit de2a84f2be8ed8a166f13d6aa2ae474541172bb2 tree 1c6e236c8fb87ec37d4e7cce126e42361156e471 parent 074a5dde04abc66eea30368c74913d83b1a410f9 author Alan Cox Fri, 29 Sep 2006 02:00:57 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] solaris emulation: incorrect tty locking [akpm@osdl.org: build fix] [akpm@osdl.org: warning fix] Signed-off-by: Alan Cox Acked-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 074a5dde04abc66eea30368c74913d83b1a410f9 tree f858588a6a19289ca5b430c3796aa99cbf6f299c parent aaa2a97eb9c0e91d7abc66bf76811a9599fdb3ee author Henrik Kretzschmar Fri, 29 Sep 2006 02:00:56 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] docbook: fix segfault in docproc.c Adds a missing exit, if the file that should be parsed couldn't be opened. Without it crashes with a segfault, cause the filedescriptor is accessed even if the file could not be opened. Signed-off-by: Henrik Kretzschmar Acked-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aaa2a97eb9c0e91d7abc66bf76811a9599fdb3ee tree 90d45393fe0116e53412f8f8afa4e8b538177832 parent d359b549bf3d7f42f0084918a4816ea4572e507c author Oleg Nesterov Fri, 29 Sep 2006 02:00:55 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] sys_get_robust_list(): don't take tasklist_lock use rcu locks for find_task_by_pid(). Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d359b549bf3d7f42f0084918a4816ea4572e507c tree a154a9b1913a459bdaed49c623d39f1e73689295 parent 44938af6e08580514abce8bea23ae1c034ea0b1d author Oleg Nesterov Fri, 29 Sep 2006 02:00:55 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] futex_find_get_task(): don't take tasklist_lock It is ok to do find_task_by_pid() + get_task_struct() under rcu_read_lock(), we cand drop tasklist_lock. Note that testing of ->exit_state is racy with or without tasklist anyway. Signed-off-by: Oleg Nesterov Acked-by: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 44938af6e08580514abce8bea23ae1c034ea0b1d tree 98b23773af1a0a8482a09eb60f5dc4a732484d58 parent be3ca7fecb1a9903c6253f49aec0af2a0f3a04e4 author Ian Kent Fri, 29 Sep 2006 02:00:54 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] autofs4: pending flag not cleared on mount fail During testing I've found that the mount pending flag can be left set at exit from autofs4_lookup after a failed mount request. This shouldn't be allowed to happen and causes incorrect error returns. Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be3ca7fecb1a9903c6253f49aec0af2a0f3a04e4 tree 128cc5b9e66dbd426f7200c67eae325ab13cfd5c parent 5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62 author Ian Kent Fri, 29 Sep 2006 02:00:53 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] autofs4: autofs4_follow_link false negative fix The check for an empty directory in the autofs4_follow_link method fails occassionally due to old dentrys. We had the same problem autofs4_revalidate ages ago. I thought we wouldn't need this in autofs4_follow_link, silly me. Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62 tree ff7f77b4178299146d6450f01f5d1da769c3fda9 parent 1c573afebc6213e4372e0d8352034c23d5262e1f author Oleg Nesterov Fri, 29 Sep 2006 02:00:52 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] copy_process: cosmetic ->ioprio tweak copy_process: // holds tasklist_lock + ->siglock /* * inherit ioprio */ p->ioprio = current->ioprio; Why? ->ioprio was already copied in dup_task_struct(). I guess this is needed to ensure that the child can't escape sys_ioprio_set(IOPRIO_WHO_{PGRP,USER}), yes? In that case we don't need ->siglock held, and the comment should be updated. Signed-off-by: Oleg Nesterov Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1c573afebc6213e4372e0d8352034c23d5262e1f tree 89741782e842fcbe8d499cb0d07de818d37893eb parent 8dc3e9099e01dfdd53f27f329c268eced03dfef6 author Oleg Nesterov Fri, 29 Sep 2006 02:00:51 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:18 -0700 [PATCH] reparent_to_init(): use has_rt_policy() Remove open-coded has_rt_policy(), no changes in kernel/exit.o Signed-off-by: Oleg Nesterov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Steven Rostedt Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8dc3e9099e01dfdd53f27f329c268eced03dfef6 tree c4a88aeabd5726185bf65c75cc52145d9dc33e43 parent 57a6f51c4281aa3119975473c70dce0480d322bd author Oleg Nesterov Fri, 29 Sep 2006 02:00:50 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:17 -0700 [PATCH] sched_setscheduler: fix? policy checks I am not sure this patch is correct: I can't understand what the current code does, and I don't know what it was supposed to do. The comment says: * can't change policy, except between SCHED_NORMAL * and SCHED_BATCH: The code: if (((policy != SCHED_NORMAL && p->policy != SCHED_BATCH) && (policy != SCHED_BATCH && p->policy != SCHED_NORMAL)) && But this is equivalent to: if ( (is_rt_policy(policy) && has_rt_policy(p)) && which means something different. We can't _decrease_ the current ->rt_priority with such a check (if rlim[RLIMIT_RTPRIO] == 0). Probably, it was supposed to be: if ( !(policy == SCHED_NORMAL && p->policy == SCHED_BATCH) && !(policy == SCHED_BATCH && p->policy == SCHED_NORMAL) this matches the comment, but strange: it doesn't allow to _drop_ the realtime priority when rlim[RLIMIT_RTPRIO] == 0. I think the right check would be: /* can't set/change rt policy */ if (is_rt_policy(policy) && policy != p->policy && !rlim_rtprio) return -EPERM; Signed-off-by: Oleg Nesterov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Steven Rostedt Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 57a6f51c4281aa3119975473c70dce0480d322bd tree 05d22c0c64fc9de38554b6aca24b021a81479975 parent 5fe1d75f34974046fffcca5e22fb8a7b42fded33 author Oleg Nesterov Fri, 29 Sep 2006 02:00:49 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:17 -0700 [PATCH] introduce is_rt_policy() helper Imho, makes the code a bit easier to read. Signed-off-by: Oleg Nesterov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Steven Rostedt Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5fe1d75f34974046fffcca5e22fb8a7b42fded33 tree 831e360aa8d7d37c7c5202937a2f617ebea6e737 parent c9472e0f28cd2f0695a0ac3a0b4bd33f21714a7e author Oleg Nesterov Fri, 29 Sep 2006 02:00:48 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:17 -0700 [PATCH] do_sched_setscheduler(): don't take tasklist_lock Use rcu locks instead. sched_setscheduler() now takes ->siglock before reading ->signal->rlim[]. Signed-off-by: Oleg Nesterov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Steven Rostedt Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c9472e0f28cd2f0695a0ac3a0b4bd33f21714a7e tree fb5e4c3d3acf40549249cdca6f047cc2927ec2c2 parent 111dbe0c8a21dffa473239861be47ebc87f593b3 author Cal Peake Fri, 29 Sep 2006 02:00:47 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] kill extraneous printk in kernel_restart() Get rid of an extraneous printk in kernel_restart(). Signed-off-by: Cal Peake Acked-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 111dbe0c8a21dffa473239861be47ebc87f593b3 tree e2bbc7f3abdf3110f0292f0fd0d3a13a0b018dcd parent 3e26a423e78c1bb1ebd29c49d4ae4ccbbacd861b author Björn Steinbrink Fri, 29 Sep 2006 02:00:46 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] Fix ____call_usermodehelper errors being silently ignored If ____call_usermodehelper fails, we're not interested in the child process' exit value, but the real error, so let's stop wait_for_helper from overwriting it in that case. Issue discovered by Benedikt Böhm while working on a Linux-VServer usermode helper. Signed-off-by: Björn Steinbrink Cc: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3e26a423e78c1bb1ebd29c49d4ae4ccbbacd861b tree 9ef489f3ec27e1d4325ac2a2ed9f0f0031e63ef7 parent 416bc51292f977b43b010c6dd937522b90062390 author Rolf Eike Beer Fri, 29 Sep 2006 02:00:46 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] Return better error codes if drivers/char/raw.c module init fails Currently this module just returns 1 if anything on module init fails. Store the error code of the different function calls and return their error on problems. Signed-off-by: Rolf Eike Beer Cc: Greg KH Signed-off-by: Andrew Morton [ Fixed to not unregister twice on error ] Signed-off-by: Linus Torvalds commit 416bc51292f977b43b010c6dd937522b90062390 tree 012c8df7f762fedb8a2bcd027fa3e8a228bc49d0 parent cf3e43dbe0cc4a7ee7f6ab1bb5231dcfda164e02 author Roland McGrath Fri, 29 Sep 2006 02:00:45 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] Use decimal for PTRACE_ATTACH and PTRACE_DETACH. It is sure confusing that linux/ptrace.h has: #define PTRACE_SINGLESTEP 9 #define PTRACE_ATTACH 0x10 #define PTRACE_DETACH 0x11 #define PTRACE_SYSCALL 24 All the low-numbered constants are in decimal, but the last two in hex. It sure makes it likely that someone will look at this and think that 9, 10, 11 are used, and that 16 and 17 are not used. How about we use the same notation for all the numbers [0,24] in the same short list? Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cf3e43dbe0cc4a7ee7f6ab1bb5231dcfda164e02 tree 3eee5517c4d6fe86f8d153e07cbd2015dd66566d parent 5785c95baede8459d70c4aa0f7becb6e8b5fde4b author Jonathan Corbet Fri, 29 Sep 2006 02:00:44 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] cdev documentation Add some documentation comments for the cdev interface. Signed-off-by: Jonathan Corbet Cc: Rolf Eike Beer Acked-by: "Randy.Dunlap" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5785c95baede8459d70c4aa0f7becb6e8b5fde4b tree 17744eac694b4eab81cba4db28c4e083d779b753 parent 54306cf04c0ea0a8c432603dbc657ab62a438668 author Arjan van de Ven Fri, 29 Sep 2006 02:00:43 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] tty: make termios_sem a mutex [akpm@osdl.org: fix] Cc: Alan Cox Cc: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 54306cf04c0ea0a8c432603dbc657ab62a438668 tree da60e18bfdc89803255c02c026e065c144e43a96 parent 3cfd0885fac78c130a119ed576d18b5948fa2a5a author Alan Cox Fri, 29 Sep 2006 02:00:42 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] exit: fix crash case If we are going to BUG() not panic() here then we should cover the case of the BUG being compiled out Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3cfd0885fac78c130a119ed576d18b5948fa2a5a tree 9a49ab330a39fc32cff3208038f1cef7763780aa parent 808a0d389ff8d85017ec811085a6083394c02caf author Alan Cox Fri, 29 Sep 2006 02:00:41 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] tty: stop the tty vanishing under procfs access Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 808a0d389ff8d85017ec811085a6083394c02caf tree bdd458bced9222bcf9515c3e3b4d349304c9d1a4 parent 1266b1e1aed0a4d7d5cb569deca8c31cba34a990 author Alan Cox Fri, 29 Sep 2006 02:00:40 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] tty: lock ticogwinsz Now we lock the set ioctl its trivial to lock the get one so the data copied is consistent. At the moment we have the BKL here but this removes the need for it and is a step in the right direction Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1266b1e1aed0a4d7d5cb569deca8c31cba34a990 tree 068b6914c89efd98fb75ff0eb3fa952ec92b56fa parent 0b4a8a789a328af6aac613734c362cf6aad72201 author Alan Cox Fri, 29 Sep 2006 02:00:40 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:16 -0700 [PATCH] tty: trivial kzalloc opportunity Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0b4a8a789a328af6aac613734c362cf6aad72201 tree e2488a7e4767dd1d25f4691b12fde86041404982 parent 3171a0305d62e6627a24bff35af4f997e4988a80 author Roland McGrath Fri, 29 Sep 2006 02:00:39 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] kexec warning fix This fixes a couple of compiler warnings, and adds paranoia checks as well. Signed-off-by: Roland McGrath Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3171a0305d62e6627a24bff35af4f997e4988a80 tree 5cf70462490528523172927c75f47970faa46ce9 parent 27d91e07f9b863fa94491ffafe250580f0c2ce78 author Atsushi Nemoto Fri, 29 Sep 2006 02:00:32 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] simplify update_times (avoid jiffies/jiffies_64 aliasing problem) Pass ticks to do_timer() and update_times(), and adjust x86_64 and s390 timer interrupt handler with this change. Currently update_times() calculates ticks by "jiffies - wall_jiffies", but callers of do_timer() should know how many ticks to update. Passing ticks get rid of this redundant calculation. Also there are another redundancy pointed out by Martin Schwidefsky. This cleanup make a barrier added by 5aee405c662ca644980c184774277fc6d0769a84 needless. So this patch removes it. As a bonus, this cleanup make wall_jiffies can be removed easily, since now wall_jiffies is always synced with jiffies. (This patch does not really remove wall_jiffies. It would be another cleanup patch) Signed-off-by: Atsushi Nemoto Cc: Martin Schwidefsky Cc: "Eric W. Biederman" Cc: Thomas Gleixner Cc: Ingo Molnar Cc: john stultz Cc: Andi Kleen Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Richard Henderson Cc: Ivan Kokshaysky Acked-by: Russell King Cc: Ian Molton Cc: Mikael Starvik Acked-by: David Howells Cc: Yoshinori Sato Cc: Hirokazu Takata Acked-by: Ralf Baechle Cc: Kyle McMartin Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Paul Mundt Cc: Kazumoto Kojima Cc: Richard Curnow Cc: William Lee Irwin III Cc: "David S. Miller" Cc: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Cc: Miles Bader Cc: Chris Zankel Acked-by: "Luck, Tony" Cc: Geert Uytterhoeven Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 27d91e07f9b863fa94491ffafe250580f0c2ce78 tree 0e5237670110b70496d68398e68a071c43c9e03e parent b9ecb2bd5d3ab8904752685696cb76aac1f3fef2 author Roland McGrath Fri, 29 Sep 2006 02:00:31 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] __dequeue_signal() cleanup This tightens up __dequeue_signal a little. It also avoids doing recalc_sigpending twice in a row, instead doing it once in dequeue_signal. Signed-off-by: Roland McGrath Cc: Oleg Nesterov Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b9ecb2bd5d3ab8904752685696cb76aac1f3fef2 tree e831f310301d68bb16c0df0efca05a8045c9bb0b parent fb50ae7446abb35184be029c51f825e45a4e0670 author Roland McGrath Fri, 29 Sep 2006 02:00:31 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] has_stopped_jobs() cleanup This check has been obsolete since the introduction of TASK_TRACED. Now TASK_STOPPED always means job control stop. Signed-off-by: Roland McGrath Cc: Oleg Nesterov Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb50ae7446abb35184be029c51f825e45a4e0670 tree 493a51a67bf5c3505f2833a551554c12a45578bd parent e4b765551aa6355eae60b644bed851a9477c4e2b author Joel & Rebecca VanderZee Fri, 29 Sep 2006 02:00:30 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] I/O Error attempting to read last partial block of a file in an ISO9660 file system There was an I/O error that prevented reading the last partial block of large files in an ISO9660 filesystem. The error was generated when a file comprised more than one section and had a size that was not an exact multiple of the filesystem block size. This patch removes the check (and failure) for reading into the last partial block (and possibly beyond) for multiple-section files. It worked in my testing to prevent reading beyond the end of the section; my first patch just incremented the sect_size block count for a partial block and continued doing the check. But there is a commment in the source code about reading beyond the end of the file to fill a page cache. Failing to access beyond the section would prevent reading beyond the end of the file. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e4b765551aa6355eae60b644bed851a9477c4e2b tree d1636c58e475407e2a770659430d54c7d67d72be parent 1711ef3866b0360e102327389fe4b76c849bbe83 author Toyo Abe Fri, 29 Sep 2006 02:00:29 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] posix-timers: Fix the flags handling in posix_cpu_nsleep() When a posix_cpu_nsleep() sleep is interrupted by a signal more than twice, it incorrectly reports the sleep time remaining to the user. Because posix_cpu_nsleep() doesn't report back to the user when it's called from restart function due to the wrong flags handling. This patch, which applies after previous one, moves the nanosleep() function from posix_cpu_nsleep() to do_cpu_nanosleep() and cleans up the flags handling appropriately. Signed-off-by: Toyo Abe Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1711ef3866b0360e102327389fe4b76c849bbe83 tree b74a2cb6167840563d450859a571d6685966b771 parent 9c4751fd0eab5b8ebbfafb28cbcc8e03b0da5933 author Toyo Abe Fri, 29 Sep 2006 02:00:28 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] posix-timers: Fix clock_nanosleep() doesn't return the remaining time in compatibility mode The clock_nanosleep() function does not return the time remaining when the sleep is interrupted by a signal. This patch creates a new call out, compat_clock_nanosleep_restart(), which handles returning the remaining time after a sleep is interrupted. This patch revives clock_nanosleep_restart(). It is now accessed via the new call out. The compat_clock_nanosleep_restart() is used for compatibility access. Since this is implemented in compatibility mode the normal path is virtually unaffected - no real performance impact. Signed-off-by: Toyo Abe Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9c4751fd0eab5b8ebbfafb28cbcc8e03b0da5933 tree 164ae23293204aa4b93dc84299d1958781096f4e parent b525a7e4445c4702dfc541930747517615c0c72a author jens m. noedler Fri, 29 Sep 2006 02:00:27 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:15 -0700 [PATCH] update Documentation/kernel-parameters.txt Signed-off-by: jens m. noedler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b525a7e4445c4702dfc541930747517615c0c72a tree d6feb0839c37ba70b284d31aa35469c8cee4c113 parent 254e948b2908dd50df9dca4e6ed14b6cc8524fc9 author Jan Kara Fri, 29 Sep 2006 02:00:26 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] dquot: add proper locking when using current->signal->tty Dquot passes the tty to tty_write_message without locking Signed-off-by: Jan Kara Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 254e948b2908dd50df9dca4e6ed14b6cc8524fc9 tree 5c3e3cf8c40babc88ae772dce0c90c0c40140baa parent bce9a234ce7d8dddbfcec28e37ea58b5d8f6003d author Catalin Marinas Fri, 29 Sep 2006 02:00:25 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] Fix memory leak in vc_resize/vc_allocate Memory leaks can happen in the vc_resize() function in drivers/char/vt.c because of the vc->vc_screenbuf variable overriding in vc_allocate(). The kmemleak reported trace is as follows: <__kmalloc> This patch no longer allocates a screen buffer in vc_allocate() if it was already allocated by vc_resize(). Signed-off-by: Catalin Marinas Acked-by: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bce9a234ce7d8dddbfcec28e37ea58b5d8f6003d tree c5bdbedb08abab4673f1cdab12b7358facc247db parent 486ccb05fdbb7ca79784fdf0d07d2a86de48cf05 author Oleg Nesterov Fri, 29 Sep 2006 02:00:25 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] elf_fdpic_core_dump: don't take tasklist_lock do_each_thread() is rcu-safe, and all tasks which use this ->mm must sleep in wait_for_completion(&mm->core_done) at this point, so we can use RCU locks. Also, remove unneeded INIT_LIST_HEAD(new) before list_add(new, head). Signed-off-by: Oleg Nesterov Acked-By: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 486ccb05fdbb7ca79784fdf0d07d2a86de48cf05 tree 9f53973acf7080790ec18984a9eb4a1005bb2875 parent b22b4cdd53f5e1ee9ef1ef7933ddb77065859d05 author Oleg Nesterov Fri, 29 Sep 2006 02:00:24 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] elf_core_dump: don't take tasklist_lock do_each_thread() is rcu-safe, and all tasks which use this ->mm must sleep in wait_for_completion(&mm->core_done) at this point, so we can use RCU locks. Also, remove unneeded INIT_LIST_HEAD(new) before list_add(new, head). Signed-off-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b22b4cdd53f5e1ee9ef1ef7933ddb77065859d05 tree caa06b143f3f20a849afee6ea3a26d1910c1665e parent 07dccf3344010f9b9df7fe725da7e73bca2992df author Peter Korsgaard Fri, 29 Sep 2006 02:00:23 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] fix serial/amba-pl011.c console Kconfig Fix the Kconfig entry for console on AMBA PL011 to match the code. Signed-off-by: Peter Korsgaard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 07dccf3344010f9b9df7fe725da7e73bca2992df tree 696730ef4e1bf85a24eac84713921746f74c7c10 parent 6c2d8b5dcad468cb0bdec3368b53383bde51e487 author Akinobu Mita Fri, 29 Sep 2006 02:00:22 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] check return value of cpu_callback Spawing ksoftirqd, migration, or watchdog, and calling init_timers_cpu() may fail with small memory. If it happens in initcalls, kernel NULL pointer dereference happens later. This patch makes crash happen immediately in such cases. It seems a bit better than getting kernel NULL pointer dereference later. Cc: Ingo Molnar Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6c2d8b5dcad468cb0bdec3368b53383bde51e487 tree 5dea01c439ee037c32c09ec7c98e990b8e275e0a parent 2ad3479decccd12301a3f9920a22fa567d4bdae8 author Tobias Klauser Fri, 29 Sep 2006 02:00:21 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] sound/sparc/dbri: 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: Linus Torvalds commit 2ad3479decccd12301a3f9920a22fa567d4bdae8 tree 0e1c59d0c3a0bbf9407d8a513a36060856557b36 parent d202a6c0883cf17a4a6e61a12e138598ec3ed32d author Tobias Klauser Fri, 29 Sep 2006 02:00:20 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:14 -0700 [PATCH] sound/mips/au1x00: Use ARRAY_SIZE macro Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) Signed-off-by: Tobias Klauser Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d202a6c0883cf17a4a6e61a12e138598ec3ed32d tree 385e5fd11d45071fc49abf21fe7718b205901a88 parent 99f932f02627b211f7efa9602ddc389d1ccbed2b author Ben Dooks Fri, 29 Sep 2006 02:00:19 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] Remove old drivers/char/s3c2410_rtc.c This can now be removed, since there is now a drivers/rtc/rtc-s3c.c driver. Signed-off-by: Ben Dooks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 99f932f02627b211f7efa9602ddc389d1ccbed2b tree 3c06304b982117a0e81f3c116664d39ac72f93c2 parent aadcc2eef70640302805a6bb8c0f2a485779eea3 author Alexey Dobriyan Fri, 29 Sep 2006 02:00:18 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] CONFIG_PM=n slim: sound/oss/cs46xx.c Remove some code which is unneeded if CONFIG_PM=n. * Make suspend/resume registration look like the rest of drivers: #ifdef CONFIG_PM in struct pci_driver, prototypes, actual hooks. * Drop CS46XX_ACPI_SUPPORT. It logically duplicated CONFIG_PM. It was hardcoded to 1 approx forever (ALSA merge just moved driver to sound/oss/). * After previous point, sound/oss/cs46xxpm-24.h removed as being useless. * As side effect selling (unused) static inline functions as suspend/resume hooks funkiness removed too. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aadcc2eef70640302805a6bb8c0f2a485779eea3 tree 48cc2605278076964e233d9dc7d3caf260de424f parent 7dd7d6912b8a978878847fdcd3feef0d1b6471de author Alexey Dobriyan Fri, 29 Sep 2006 02:00:16 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] CONFIG_PM=n slim: sound/oss/trident.c Remove some code which is unneeded if CONFIG_PM=n. Signed-off-by: Alexey Dobriyan Ackde-by: Muli Ben-Yehuda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7dd7d6912b8a978878847fdcd3feef0d1b6471de tree c989b47ee136e56ef8c5e1e9628d0e1aa6d127b6 parent af410fc13d95f079910fc3dca7496590c3275967 author Alexey Dobriyan Fri, 29 Sep 2006 02:00:16 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] CONFIG_PM=n slim: drivers/parport/parport_serial.c Remove some code which is unneeded if CONFIG_PM=n. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit af410fc13d95f079910fc3dca7496590c3275967 tree e1c1112e4347f9e32bc3b08ac0c22ea3237b22ec parent 3ca212b813299899d2968aa0a24a797c3746f5ec author Johannes Berg Fri, 29 Sep 2006 02:00:14 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] make leds.h include relevant headers Make it possible to include linux/leds.h without first including list.h and spinlock.h. Signed-off-by: Johannes Berg Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3ca212b813299899d2968aa0a24a797c3746f5ec tree 2f3718cb7ae02da400def2c49cb9b5a691b004ef parent ee731f4f7880b09ca147008ab46ad4e5f72cb8bf author Dave Jones Fri, 29 Sep 2006 02:00:14 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] Remove another config.h After the asm/ uses of #include this one is the next biggest source of noise. Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ee731f4f7880b09ca147008ab46ad4e5f72cb8bf tree a61545ec0a04c7699727dc9e5c5c9a30b1d75ab0 parent 7bbab9166a82d15442357cfd63ec530b5b5fb62e author Ernie Petrides Fri, 29 Sep 2006 02:00:13 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] fix wrong error code on interrupted close syscalls The problem is that close() syscalls can call a file system's flush handler, which in turn might sleep interruptibly and ultimately pass back an -ERESTARTSYS return value. This happens for files backed by an interruptible NFS mount under nfs_file_flush() when a large file has just been written and nfs_wait_bit_interruptible() detects that there is a signal pending. I have a test case where the "strace" command is used to attach to a process sleeping in such a close(). Since the SIGSTOP is forced onto the victim process (removing it from the thread's "blocked" mask in force_sig_info()), the RPC wait is interrupted and the close() is terminated early. But the file table entry has already been cleared before the flush handler was called. Thus, when the syscall is restarted, the file descriptor appears closed and an EBADF error is returned (which is wrong). What's worse, there is the hypothetical case where another thread of a multi-threaded application might have reused the file descriptor, in which case that file would be mistakenly closed. The bottom line is that close() syscalls are not restartable, and thus -ERESTARTSYS return values should be mapped to -EINTR. This is consistent with the close(2) manual page. The fix is below. Signed-off-by: Ernie Petrides Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7bbab9166a82d15442357cfd63ec530b5b5fb62e tree bed051f82a734fe16021d9dc919182177a7f6bd6 parent a45bce49545739a940f8bd4ca85c3b7435564893 author Jesper Juhl Fri, 29 Sep 2006 02:00:12 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] Small update to CREDITS Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a45bce49545739a940f8bd4ca85c3b7435564893 tree 3f558e487448db9e49c8d4cd36379d9f42f93da2 parent 99de055ac065e19ed69de961e97c6336a261b34e author Paul E. McKenney Fri, 29 Sep 2006 02:00:11 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] memory ordering in __kfifo primitives Both __kfifo_put() and __kfifo_get() have header comments stating that if there is but one concurrent reader and one concurrent writer, locking is not necessary. This is almost the case, but a couple of memory barriers are needed. Another option would be to change the header comments to remove the bit about locking not being needed, and to change the those callers who currently don't use locking to add the required locking. The attachment analyzes this approach, but the patch below seems simpler. Signed-off-by: Paul E. McKenney Cc: Stelian Pop Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 99de055ac065e19ed69de961e97c6336a261b34e tree edc25ea5f39c09e4e273b8824f2306655d6f4726 parent 2b33b4dcbe5e09e683eef281f72aef951e17061c author Dave Jones Fri, 29 Sep 2006 02:00:10 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:13 -0700 [PATCH] lockdep: print kernel version Lets do the same thing we do for oopses - print out the version in the report. It's an extra line of output though. We could tack it on the end of the INFO: lines, but that screws up Ingo's pretty output. Signed-off-by: Dave Jones Cc: Ingo Molnar Cc: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2b33b4dcbe5e09e683eef281f72aef951e17061c tree c933020feb873f274ee5d72fb5d9071865e64ecf parent 01d553d0fe9f90a132c5ff494872be8d4126be1e author Anatoli Antonovitch Fri, 29 Sep 2006 02:00:09 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] atiixp: ATI SB600 IDE support for various modes Support SB600 SATA legacy IDE (DMA enable). Signed-off-by: Anatoli Antonovitch Cc: Jeff Garzik Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 01d553d0fe9f90a132c5ff494872be8d4126be1e tree 64d21c1cc1073822c594a57e72aececd5248f1f2 parent f400e198b2ed26ce55b22a1412ded0896e7516ac author Amos Waterland Fri, 29 Sep 2006 02:00:08 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] Chardev checking of overlapping ranges The code in __register_chrdev_region checks that if the driver wishing to register has the same major as an existing driver the new minor range is strictly less than the existing minor range. However, it does not also check that the new minor range is strictly greater than the existing minor range. That is, if driver X has registered with major=x and minor=0-3, __register_chrdev_region will allow driver Y to register with major=x and minor=1-4. Signed-off-by: Amos Waterland Cc: Linas Vepstas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f400e198b2ed26ce55b22a1412ded0896e7516ac tree a3d78bfc1c20635e199fe0fe85aaa1d8792acc58 parent 959ed340f4867fda7684340625f60e211c2296d6 author Sukadev Bhattiprolu Fri, 29 Sep 2006 02:00:07 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] pidspace: is_init() This is an updated version of Eric Biederman's is_init() patch. (http://lkml.org/lkml/2006/2/6/280). It applies cleanly to 2.6.18-rc3 and replaces a few more instances of ->pid == 1 with is_init(). Further, is_init() checks pid and thus removes dependency on Eric's other patches for now. Eric's original description: There are a lot of places in the kernel where we test for init because we give it special properties. Most significantly init must not die. This results in code all over the kernel test ->pid == 1. Introduce is_init to capture this case. With multiple pid spaces for all of the cases affected we are looking for only the first process on the system, not some other process that has pid == 1. Signed-off-by: Eric W. Biederman Signed-off-by: Sukadev Bhattiprolu Cc: Dave Hansen Cc: Serge Hallyn Cc: Cedric Le Goater Cc: Acked-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 959ed340f4867fda7684340625f60e211c2296d6 tree 61832d7f0a5c8a4864003949b7eb545154d9acec parent 3b9b8ab65d8eed784b9164d03807cb2bda7b5cd6 author Eric Biederman Fri, 29 Sep 2006 02:00:06 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] Fix conflict with the is_init identifier on parisc This appears to be the only usage of is_init in the kernel besides the usage in sched.h. On ia64 the same function is called in_init. So to remove the conflict and make the kernel more consistent rename is_init is_core is_local and is_local_section to in_init in_core in_local and in_local_section respectively. Thanks to Adrian Bunk who spotted this, and to Matthew Wilcox who suggested this fix. Signed-off-by: Eric Biederman Cc: Kyle McMartin Cc: Matthew Wilcox Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3b9b8ab65d8eed784b9164d03807cb2bda7b5cd6 tree 104c7b01768acd7e152cbf66e4868a73804e8af9 parent fc09561d6392771a392dea55c287de7e849b6b63 author Kirill Korotaev Fri, 29 Sep 2006 02:00:05 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] Fix unserialized task->files changing Fixed race on put_files_struct on exec with proc. Restoring files on current on error path may lead to proc having a pointer to already kfree-d files_struct. ->files changing at exit.c and khtread.c are safe as exit_files() makes all things under lock. Found during OpenVZ stress testing. [akpm@osdl.org: add export] Signed-off-by: Pavel Emelianov Signed-off-by: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fc09561d6392771a392dea55c287de7e849b6b63 tree 8f754252a1e3109c4187f9e6f53f66eaf9486f49 parent ca9bda00b4aafc42cd3d1b9d32934463e2993b4c author Serge E. Hallyn Fri, 29 Sep 2006 02:00:04 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] kthread: convert arch/i386/kernel/apm.c Convert i386 apm.c from kernel_thread(), whose export is deprecated, to kthread API. Signed-off-by: Serge E. Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ca9bda00b4aafc42cd3d1b9d32934463e2993b4c tree dbb7ba5320bb8d1cbf97b3493687cb87932ad5f4 parent ae78bf9c4f5fde3c67e2829505f195d7347ce3e4 author Alan Cox Fri, 29 Sep 2006 02:00:03 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] tty locking on resize The current kernel serializes console resizes but does not serialize the resize against the tty structure updates. This means that while two parallel resizes cannot mess up the console you can get incorrect results reported. Secondly while doing this I added vc_lock_resize() to lock and resize the console. This leaves all knowledge of the console_sem in the vt/console driver and kicks it out of the tty layer, which is good Thirdly while doing this I decided I couldn't stand "disallocate" any longer so I switched it to "deallocate". Signed-off-by: Alan Cox Cc: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ae78bf9c4f5fde3c67e2829505f195d7347ce3e4 tree b9376237e596ed7e95db35b9ccf1ad3177b10460 parent 6b77df08a36d989f7dd00ccb6a026a0e96170d16 author Chris Mason Fri, 29 Sep 2006 02:00:03 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:12 -0700 [PATCH] add -o flush for fat Fat is commonly used on removable media. Mounting with -o flush tells the FS to write things to disk as quickly as possible. It is like -o sync, but much faster (and not as safe). Signed-off-by: Chris Mason Cc: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6b77df08a36d989f7dd00ccb6a026a0e96170d16 tree 54b742acda47156c102f8af940f7def92413f1ef parent 50462062a02226a698a211d5bd535376c89b8603 author Arun Sharma Fri, 29 Sep 2006 02:00:01 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] oprofile: ppro: need to enable/disable all the counters Need to enable/disable all the counters instead of just counter 0. This affects all cpus with family=6, including i386/core. Usual symptom: only counter 0 provides samples. Other counters don't produce samples. Signed-off-by: Arun Sharma Cc: Philippe Elie Cc: John Levon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 50462062a02226a698a211d5bd535376c89b8603 tree 07a34af458b338c609a35072b8c6fd1ed2a235a1 parent cfe14677f286c9be5d683b88214def8f4b8a6f24 author Alexey Dobriyan Fri, 29 Sep 2006 02:00:01 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] fs.h: ifdef security fields [assuming BSD security levels are deleted] The only user of i_security, f_security, s_security fields is SELinux, however, quite a few security modules are trying to get into kernel. So, wrap them under CONFIG_SECURITY. Adding config option for each security field is likely an overkill. Following Stephen Smalley's suggestion, i_security initialization is moved to security_inode_alloc() to not clutter core code with ifdefs and make alloc_inode() codepath tiny little bit smaller and faster. The user of (highly greppable) struct fown_struct::security field is still to be found. I've checked every "fown_struct" and every "f_owner" occurence. Additionally it's removal doesn't break i386 allmodconfig build. struct inode, struct file, struct super_block, struct fown_struct become smaller. P.S. Combined with two reiserfs inode shrinking patches sent to linux-fsdevel, I can finally suck 12 reiserfs inodes into one page. /proc/slabinfo -ext2_inode_cache 388 10 +ext2_inode_cache 384 10 -inode_cache 280 14 +inode_cache 276 14 -proc_inode_cache 296 13 +proc_inode_cache 292 13 -reiser_inode_cache 336 11 +reiser_inode_cache 332 12 <= -shmem_inode_cache 372 10 +shmem_inode_cache 368 10 Signed-off-by: Alexey Dobriyan Cc: Stephen Smalley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cfe14677f286c9be5d683b88214def8f4b8a6f24 tree 038d6cc9d2a1f71a74fa753c0291038f37fb6718 parent 068fbb315dd1e9dd3418aac39a9cfeabe39c16a6 author Alexey Dobriyan Fri, 29 Sep 2006 02:00:00 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] reiserfs: ifdef ACL stuff from inode Shrink reiserfs inode more (by 8 bytes) for ACL non-users: -reiser_inode_cache 344 11 +reiser_inode_cache 336 11 Signed-off-by: Alexey Dobriyan Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 068fbb315dd1e9dd3418aac39a9cfeabe39c16a6 tree 200b12fa1145f7876ddd10e6871c1a1652f90189 parent e6cab99bb478e067b1a7a120333ff326954a2412 author Alexey Dobriyan Fri, 29 Sep 2006 01:59:58 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] reiserfs: ifdef xattr_sem Shrink reiserfs inode by 12 bytes for xattr non-users (me). -reiser_inode_cache 356 11 +reiser_inode_cache 344 11 Signed-off-by: Alexey Dobriyan Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e6cab99bb478e067b1a7a120333ff326954a2412 tree 59211a97c63eaa87db1b8e44343eb15f1be21d1a parent 0e51a720b9d9ea5ebf0fda39108919c6626bffa3 author Chuck Ebbert <76306.1226@compuserve.com> Fri, 29 Sep 2006 01:59:57 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] unwind: fix unused variable warning when !CONFIG_MODULES Fix "variable defined but not used" compiler warning in unwind.c when CONFIG_MODULES is not set. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Cc: Jan Beulich Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0e51a720b9d9ea5ebf0fda39108919c6626bffa3 tree ef3fed3bca02c3439a9c44358171c1cceef8af70 parent a3172027148120b8f8797cbecc7d0a0b215736a1 author Alexey Dobriyan Fri, 29 Sep 2006 01:59:56 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] ifdef ->quota_read, ->quota_write All suppliers of ->quota_read, ->quota_write (I've found ext2, ext3, UFS, reiserfs) already have them properly ifdeffed. All callers of ->quota_read, ->quota_write are under CONFIG_QUOTA umbrella, so... Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a3172027148120b8f8797cbecc7d0a0b215736a1 tree 9da7b5eafe136c8c5b9e76e9a9cccd70899df252 parent 25736b1c692d436508585d1d710912e6f76be2d8 author Chris Mason Fri, 29 Sep 2006 01:59:56 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] Fix reiserfs latencies caused by data=ordered ReiserFS does periodic cleanup of old transactions in order to limit the length of time a journal replay may take after a crash. Sometimes, writing metadata from an old (already committed) transaction may require committing a newer transaction, which also requires writing all data=ordered buffers. This can cause very long stalls on journal_begin. This patch makes sure new transactions will not need to be committed before trying a periodic reclaim of an old transaction. It is low risk because if a bad decision is made, it just means a slightly longer journal replay after a crash. Signed-off-by: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 25736b1c692d436508585d1d710912e6f76be2d8 tree 8cf9a65b5a6d464ceabfe992b49a028a9a939198 parent d4328b40af16bae62ff8f854060d33daad237093 author Chris Mason Fri, 29 Sep 2006 01:59:54 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] reiserfs_fsync should only use barriers when they are enabled make sure that reiserfs_fsync only triggers barriers when mounted with -o barrier=flush Signed-off-by: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d4328b40af16bae62ff8f854060d33daad237093 tree 7fdb3bb354da8a04efc19ec0eb9cdabe7adef98e parent 08c67d2a5d1c97b7997dc9589f702d875c63de07 author Adam Tlalka Fri, 29 Sep 2006 01:59:53 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:11 -0700 [PATCH] console utf-8 mode fixes Fix utf-8 mode so alternate charset modes always work according to control sequences interpreted in do_con_trol function preserving backward US-ASCII and VT100 semigraphics compatibility. Malformed utf-8 sequences are represented as sequences of replacement glyphs,original codes or '?' as a last resort. unicode-xterm, gnome-terminal, kconsole and other terminal emulators in utf-8 mode respect acsc, enacs, rmacs sequences. Also I found that some important system programs (from Debian distro) uses acsc in utf-8 mode - dselect, aptitude, w3m for example. Signed-off-by: Adam Tlalka Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 08c67d2a5d1c97b7997dc9589f702d875c63de07 tree b0b8f98c0d689dded45514ce801429e7264ad542 parent aa83aa40ed2ae113d9ee5529cdd9e8c0e5fabe61 author Dmitry Torokhov Fri, 29 Sep 2006 01:59:52 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] ucb1x00-ts: handle errors from input_register_device() ucb1x00-ts: handle errors from input_register_device() Signed-off-by: Dmitry Torokhov Cc: Russell King Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aa83aa40ed2ae113d9ee5529cdd9e8c0e5fabe61 tree 08fa036a2793046528f84baebd3edf14272c5540 parent 527063ba985740e9cd271731c31f503f916681c9 author Dave Jones Fri, 29 Sep 2006 01:59:51 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] single bit flip detector In cases where we detect a single bit has been flipped, we spew the usual slab corruption message, which users instantly think is a kernel bug. In a lot of cases, single bit errors are down to bad memory, or other hardware failure. This patch adds an extra line to the slab debug messages in those cases, in the hope that users will try memtest before they report a bug. 000: 6b 6b 6b 6b 6a 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b Single bit error detected. Possibly bad RAM. Run memtest86. [akpm@osdl.org: cleanups] Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 527063ba985740e9cd271731c31f503f916681c9 tree db8ecc8ac45c432887bc1a7c623625db714c5354 parent 3bc1fa8ae18f281b40903cce94baba10c3cf9d88 author Alexey Dobriyan Fri, 29 Sep 2006 01:59:50 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] tty_io.c: keep davej sane Just comment and next "while" look _very_ wrong. Place { correctly to hint unsuspecting ones that it's the end of the loop actually. Signed-off-by: Alexey Dobriyan Cc: Dave Jones Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3bc1fa8ae18f281b40903cce94baba10c3cf9d88 tree 9097244b28cbf4eba16368803272af0fc70224d5 parent cd1c6a48ac16b360746f9f111895931d332c35dd author Chris Wright Fri, 29 Sep 2006 01:59:49 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] LSM: remove BSD secure level security module This code has suffered from broken core design and lack of developer attention. Broken security modules are too dangerous to leave around. It is time to remove this one. Signed-off-by: Chris Wright Acked-by: Michael Halcrow Acked-by: Serge Hallyn Cc: Davi Arnaut Acked-by: Greg Kroah-Hartman Acked-by: James Morris Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cd1c6a48ac16b360746f9f111895931d332c35dd tree fc26eaff11fd8bc8f2d725e3519211998a558351 parent d6bd3a39f7c6ebad49c261c3d458df974c880758 author Rolf Eike Beer Fri, 29 Sep 2006 01:59:49 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] Use valid_dma_direction() in include/asm-i386/dma-mapping.h Now that the generic DMA code has a function to decide if a given DMA mapping is valid use it. This will catch cases where direction is not any of the defined enum values but some random number outside the valid range. The current implementation will only catch the defined but invalid case DMA_NONE. Signed-off-by: Rolf Eike Beer Acked-by: Muli Ben-Yehuda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d6bd3a39f7c6ebad49c261c3d458df974c880758 tree a5cf6054a8ff276f8d84ba94bb5df89ed5646332 parent d09d7ddf3018b4c6efa76dce72f6dec6054fa22b author Rolf Eike Beer Fri, 29 Sep 2006 01:59:48 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] Move valid_dma_direction() from x86_64 to generic code As suggested by Muli Ben-Yehuda this function is moved to generic code as may be useful for all archs. [akpm@osdl.org: fix] Signed-off-by: Rolf Eike Beer Cc: Muli Ben-Yehuda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d09d7ddf3018b4c6efa76dce72f6dec6054fa22b tree 09e28b0602f482b2fadcaecf353ffc02134485cd parent 2aae4a108dab8b8bc92270335f6e4b5c146b32ae author Alan Cox Fri, 29 Sep 2006 01:59:47 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] There is no devfs, there has never been a devfs, we have always been at war with... Jon Smirl noted a couple of tty driver functions now are quite misleadingly named with the death of devfs. A quick grep found another case in the lp driver. Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2aae4a108dab8b8bc92270335f6e4b5c146b32ae tree e1bc601a3575d1ea25947564bcaf7abbe08b9d69 parent d7ff0dbf45ee8a7c4802ff46844e6e8167b7f360 author Rolf Eike Beer Fri, 29 Sep 2006 01:59:46 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] Fix kerneldoc comments in kernel/timer.c Some of the kerneldoc comments in this file are ignored since the lead-in is malformed, using either "/*" or "/***" instead of "/**". [rdunlap@xenotime.net: kerneldoc fixes] Signed-off-by: Rolf Eike Beer Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d7ff0dbf45ee8a7c4802ff46844e6e8167b7f360 tree 42a5f6bd33a5decb8c3a0bb6ad8fcce3120b7e56 parent db630637b2f192bea2ba1c000e9cbe4e542a03ea author Jan-Frode Myklebust Fri, 29 Sep 2006 01:59:45 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:10 -0700 [PATCH] oom_adj/oom_score documentation I was looking for the a way around an OOM-problem, and found a couple of undocumented new features for tuning the OOM-score of individual processes. Here's a small documentation patch for /proc//oom_adj and /proc//oom_score. Signed-off-by: Jan-Frode Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db630637b2f192bea2ba1c000e9cbe4e542a03ea tree 87866cf839510cc2e434730bc1f33fe4264f25a1 parent c24c95a085c6b52c11c2f5afecc38b0ca143cdae author Steven Rostedt Fri, 29 Sep 2006 01:59:44 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] clean up and remove some extra spinlocks from rtmutex Oleg brought up some interesting points about grabbing the pi_lock for some protections. In this discussion, I realized that there are some places that the pi_lock is being grabbed when it really wasn't necessary. Also this patch does a little bit of clean up. This patch basically does three things: 1) renames the "boost" variable to "chain_walk". Since it is used in the debugging case when it isn't going to be boosted. It better describes what the test is going to do if it succeeds. 2) moves get_task_struct to just before the unlocking of the wait_lock. This removes duplicate code, and makes it a little easier to read. The owner wont go away while either the pi_lock or the wait_lock are held. 3) removes the pi_locking and owner blocked checking completely from the debugging case. This is because the grabbing the lock and doing the check, then releasing the lock is just so full of races. It's just as good to go ahead and call the pi_chain_walk function, since after releasing the lock the owner can then block anyway, and we would have missed that. For the debug case, we really do want to do the chain walk to test for deadlocks anyway. [oleg@tv-sign.ru: more of the same] Signed-of-by: Steven Rostedt Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Oleg Nesterov Cc: Esben Nielsen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c24c95a085c6b52c11c2f5afecc38b0ca143cdae tree f24a1714d7d25511d7927841ceadca1df103ac7f parent 39b3f6d6e915aa29ad6f90d1517d9217f903c8dc author Jan Beulich Fri, 29 Sep 2006 01:59:42 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] fix Intel RNG detection Previously, since determination whether there was an Intel random number generator was based on a single bit, on systems with a matching bridge device but without a firmware hub, there was a 50% chance that the code would incorrectly decide that the system had an RNG. This patch adds detection of the firmware hub to better qualify the existence of an RNG. There is one issue with the patch: I was unable to determine the LPC equivalent for the PCI bridge 8086:2430 (since the old code didn't care about which of the many devices provided by the ICH/ESB it was chose to use the PCI bridge device, but the FWH settings live in the LPC device, so the device list needed to be changed). Signed-off-by: Jan Beulich Signed-off-by: Michael Buesch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 39b3f6d6e915aa29ad6f90d1517d9217f903c8dc tree 5297a26715e78ef2f0a22424357076982c98a0fb parent 6c5c934153513dc72e2d6464f39e8ef1f27c0a3e author Eric Sandeen Fri, 29 Sep 2006 01:59:41 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] mount udf UDF_PART_FLAG_READ_ONLY partitions with MS_RDONLY There's a bug where a UDF_PART_FLAG_READ_ONLY udf partition gets mounted read-write, then subsequent problems happen; files seem to be able to be removed, but file creation results in EIO or worse, oops. EIO is coming from udf_new_block(), which returns EIO if the right flags aren't set; only UDF_PART_FLAG_READ_ONLY is set in this case. We probably s hould not have gotten this far... Attached patch seems to fix it - and includes a printk to alert the user that their "rw" mount request has been converted to "ro." Here's the testcase I used: [root@magnesium ~]# mkisofs -R -J -udf -o testiso /tmp/ ... Total translation table size: 0 Total rockridge attributes bytes: 342923 Total directory bytes: 382312 Path table size(bytes): 104 Max brk space used 103000 105059 extents written (205 MB) [root@magnesium ~]# mount -o loop testiso /mnt/test/ [root@magnesium ~]# ls /mnt/test/fsfile /mnt/test/fsfile [root@magnesium ~]# rm /mnt/test/fsfile [root@magnesium ~]# ls /mnt/test/fsfile ls: /mnt/test/fsfile: No such file or directory [root@magnesium ~]# touch /mnt/test/fsfile touch: cannot touch `/mnt/test/fsfile': Input/output error [root@magnesium tmp]# grep udf /proc/mounts /dev/loop1 /mnt/test udf rw 0 0 Force readonly mounts of UDF partitions marked as read-only. Signed-off-by: Eric Sandeen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6c5c934153513dc72e2d6464f39e8ef1f27c0a3e tree be799da4af646a96c2d6ab473e276a7361beb685 parent 3d5b6fccc4b900cc4267692f015ea500bad4c6bf author Alexey Dobriyan Fri, 29 Sep 2006 01:59:40 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] ifdef blktrace debugging fields Signed-off-by: Alexey Dobriyan Acked-by: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3d5b6fccc4b900cc4267692f015ea500bad4c6bf tree 7ec9dbaeeb190af073fd52a6c3a936e70870c96e parent e1dfa92dcab72397ed1f85f7b8f98a9da43b3f7b author Alexey Dobriyan Fri, 29 Sep 2006 01:59:40 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] task_struct: ifdef Missed'em V IPC ipc/sem.c only. $ agrep sysvsem -w -n ipc/sem.c:912: undo_list = current->sysvsem.undo_list; ipc/sem.c:932: undo_list = current->sysvsem.undo_list; ipc/sem.c:954: undo_list = current->sysvsem.undo_list; ipc/sem.c:963: current->sysvsem.undo_list = undo_list; ipc/sem.c:1247: tsk->sysvsem.undo_list = undo_list; ipc/sem.c:1249: tsk->sysvsem.undo_list = NULL; ipc/sem.c:1271: undo_list = tsk->sysvsem.undo_list; include/linux/sched.h:876: struct sysv_sem sysvsem; Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1dfa92dcab72397ed1f85f7b8f98a9da43b3f7b tree 7995e41f84b1c0f4dbaf4bfdf50c3fa21bff1aef parent 402749ea2538be9ddad981a990739b93a0178bc6 author Olaf Hering Fri, 29 Sep 2006 01:59:39 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] ignore partition table on disks with AIX label The on-disk data structures from AIX are not known, also the filesystem layout is not known. There is a msdos partition signature at the end of the first block, and the kernel recognizes 3 small (and overlapping) partitions. But they are not usable. Maybe the firmware uses it to find the bootloader for AIX, but AIX boots also if the first block is cleared. This is the content of the partition table: # dd if=/dev/sdb count=$(( 4 * 16 )) bs=1 skip=$(( 0x1be )) | xxd 0000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0000010: 80ff ffff 41ff ffff 1b11 0000 381b 0000 ....A.......8... 0000020: 00ff ffff 41ff ffff 0211 0000 1900 0000 ....A........... 0000030: 80ff ffff 41ff ffff 1b11 0000 381b 0000 ....A.......8... Handle the whole disk as empty disk. This fixes also YaST which compares the output from parted (and formerly fdisk) with /proc/partitions. fdisk recognizes the AIX label since a long time, SuSE has a patch for parted to handle the disk label as unknown. dmesg will look like this: sda: [AIX] unknown partition table Tested on an IBM B50 with AIX V4.3.3. Signed-off-by: Olaf Hering Cc: Albert Cahalan Cc: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 402749ea2538be9ddad981a990739b93a0178bc6 tree 71a611f825f956f6cc43906b100fb09635dbdcf1 parent 2e0c1f6ce7b816f63fea2af3e5e2cb20c66430e9 author Matthias Urlichs Fri, 29 Sep 2006 01:59:37 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] Remove unused tty_struct field Unused: tty_struct.max_flip_cnt $ git grep max_flip_cnt include/linux/tty.h: int max_flip_cnt; $ Cc: Paul Fulghum Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2e0c1f6ce7b816f63fea2af3e5e2cb20c66430e9 tree 9ee9f9d5d1aff04df6d0974883d8817a980dfa37 parent 89e7e374dde1015d69d2d70797ae4053b14fa9db author Shem Multinymous Fri, 29 Sep 2006 01:59:37 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] DMI: Decode and save OEM String information This teaches dmi_decode() how to decode and save OEM Strings (type 11) DMI information, which is currently discarded silently. Existing code using DMI is not affected. Follows the "System Management BIOS (SMBIOS) Specification" (http://www.dmtf.org/standards/smbios), and also the userspace dmidecode.c code. OEM Strings are the only safe way to identify some hardware, e.g., the ThinkPad embedded controller used by the soon-to-be-submitted tp_smapi driver. This will also let us eliminate the long whitelist in the mainline hdaps driver (in a future patch). Signed-off-by: Shem Multinymous Cc: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 89e7e374dde1015d69d2d70797ae4053b14fa9db tree c6d819506caeec6680be88fccc4ed8e910a25ac9 parent 650a898342b3fa21c392c06a2b7010fa19823efa author Josh Triplett Fri, 29 Sep 2006 01:59:36 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:09 -0700 [PATCH] timer: add lock annotation to lock_timer_base lock_timer_base acquires a lock and returns with that lock held. Add a lock annotation to this function so that sparse can check callers for lock pairing, and so that sparse will not complain about this function since it intentionally uses the lock in this manner. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 650a898342b3fa21c392c06a2b7010fa19823efa tree e5fc9b3c9590ac82b49755535e1de5e56d2dd6e8 parent 5b35e8e58a315b16d123e2bc080fcc9981501ac4 author Miklos Szeredi Fri, 29 Sep 2006 01:59:35 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] vfs: define new lookup flag for chdir In the "operation does permission checking" model used by fuse, chdir permission is not checked, since there's no chdir method. For this case set a lookup flag, which will be passed to ->permission(), so fuse can distinguish it from permission checks for other operations. Signed-off-by: Miklos Szeredi Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b35e8e58a315b16d123e2bc080fcc9981501ac4 tree e741e98a2a205b1f76adeb175b8468450fd0d9bf parent d10be6d1bdb0c901b78244872de3cc1c1b6c3fb2 author Miklos Szeredi Fri, 29 Sep 2006 01:59:34 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] fuse: use dentry in statfs Some filesystems may want to report different values depending on the path within the filesystem, i.e. one mount is actually several filesystems. This can be the case for a network filesystem exported by an unprivileged server (e.g. sshfs). This is now possible, thanks to David Howells "VFS: Permit filesystem to perform statfs with a known root dentry" patch. This change is backward compatible, so no need to change interface version. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d10be6d1bdb0c901b78244872de3cc1c1b6c3fb2 tree 560171a8091e7f18763ff40099ccbcf9567b7842 parent 8454aeef6fea944ced757ff8e761b59eb3ee960f author Mark Huang Fri, 29 Sep 2006 01:59:34 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] module_subsys: initialize earlier Initialize module_subsys earlier (or at least earlier than devices) since it could be used very early in the boot process if kmod loads a module before the device initcalls. Otherwise, kmod will crash in kernel/module.c:mod_sysfs_setup() since the kset in module_subsys is not initialized yet. I only noticed this problem because occasionally, kmod loads the modules for my SCSI and Ethernet adapters very early, during the boot process itself. I don't quite understand why it loads them sometimes and doesn't load them other times. Or who is telling kmod to do so. Can someone explain? Signed-off-by: Mark Huang Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8454aeef6fea944ced757ff8e761b59eb3ee960f tree 235e366e3744cdf76381d9e8a709d7564dde94e0 parent 563d075702454f6fa745ff8b0db605c73478078e author Eugene Teo Fri, 29 Sep 2006 01:59:33 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] Require mmap handler for a.out executables Files supported by fs/proc/base.c, i.e. /proc//*, are not capable of meeting the validity checks in ELF load_elf_*() handling because they have no mmap handler which is required by ELF. In order to stop a.out executables being used as part of an exploit attack against /proc-related vulnerabilities, we make a.out executables depend on ->mmap() existing. Signed-off-by: Eugene Teo Signed-off-by: Marcel Holtmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 563d075702454f6fa745ff8b0db605c73478078e tree 8879eeb7aa0c6f7f944cad5cab6b4587fac977e2 parent a49a4af759c0193d42aeaeefb4df7de8973dd713 author Sukadev Bhattiprolu Fri, 29 Sep 2006 01:59:31 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] kthread: drivers/base/firmware_class.c Replace kernel_thread() call in drivers/base/firmware_class.c with kthread_create() since kernel_thread() is deprecated in drivers. Signed-off-by: Sukadev Bhattiprolu Cc: Cedric Le Goater Cc: Serge E. Hallyn Cc: Dave Hansen Cc: Manuel Estrada Sainz Acked-by: Marcel Holtmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a49a4af759c0193d42aeaeefb4df7de8973dd713 tree e93b6621352db514da2fd4ae364a5054f99fc6ac parent 9c4dbee79d3f46608bec3ac80d392ce6415d2f90 author Josh Triplett Fri, 29 Sep 2006 01:59:30 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] rcu: add lock annotations to rcu{,_bh}_torture_read_{lock,unlock} rcu_torture_read_lock and rcu_bh_torture_read_lock acquire locks without releasing them, and the matching functions rcu_torture_read_unlock and rcu_bh_torture_read_unlock get called with the corresponding locks held and release them. Add lock annotations to these four 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 Acked-by: Paul McKenney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9c4dbee79d3f46608bec3ac80d392ce6415d2f90 tree af5206a2db7a81a94460fb2b36a000006a0a149d parent db0b0ead60815155c791e8f479ee4777e7946369 author Josh Triplett Fri, 29 Sep 2006 01:59:29 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] fs: add lock annotation to grab_super grab_super gets called with sb_lock held, and releases it. Add a lock annotation to this function so that sparse can check callers for lock pairing, and so that sparse will not complain about this function since it intentionally uses the lock in this manner. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db0b0ead60815155c791e8f479ee4777e7946369 tree 013317fde85b57af3e9240858c952858a63d1773 parent ddc0a51d2e351985aa542ff650635e2fd62d3f8b author Michael S. Tsirkin Fri, 29 Sep 2006 01:59:28 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] lockdep: don't pull in includes when lockdep disabled Do not pull in various includes through lockdep.h if lockdep is disabled. Signed-off-by: Michael S. Tsirkin Cc: Ingo Molnar Cc: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ddc0a51d2e351985aa542ff650635e2fd62d3f8b tree e257e32dae1622c83aa720f5b08c10e29af5167f parent 105f4d7a813e9ef6be58549f5d2a49af1764da19 author Josh Triplett Fri, 29 Sep 2006 01:59:27 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] hugetlbfs: add lock annotation to hugetlbfs_forget_inode() hugetlbfs_forget_inode releases inode_lock. Add a lock annotation to this function so that sparse can check callers for lock pairing, and so that sparse will not complain about this functions since it intentionally uses the lock in this manner. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 105f4d7a813e9ef6be58549f5d2a49af1764da19 tree 8dcb1f371f05ff8699919eebe7e187c8f74c5844 parent 99fc705996285ed2746c0c8ae8313d0a04d62ec9 author Josh Triplett Fri, 29 Sep 2006 01:59:25 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:08 -0700 [PATCH] fuse: add lock annotations to request_end and fuse_read_interrupt request_end and fuse_read_interrupt release fc->lock. 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 Acked-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 99fc705996285ed2746c0c8ae8313d0a04d62ec9 tree 32e6b8feaf0e8a4682c00ef3a9b1884290d7b323 parent 58f555e5f62b6a8326caf6d45ac611186f24587d author Josh Triplett Fri, 29 Sep 2006 01:59:25 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] afs: add lock annotations to afs_proc_cell_servers_{start,stop} afs_proc_cell_servers_start acquires a lock, and afs_proc_cell_servers_stop releases that lock. 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 Acked-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 58f555e5f62b6a8326caf6d45ac611186f24587d tree 0c6cc0aadc2c15587d9e91595f19c28216e00fc9 parent b0de7fca10a3d7ddb99188b4752cc473c4e2c96e author Josh Triplett Fri, 29 Sep 2006 01:59:24 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] mbcache: add lock annotation for __mb_cache_entry_release_unlock() __mb_cache_entry_release_unlock releases mb_cache_spinlock, so annotate it accordingly. Signed-off-by: Josh Triplett Cc: Andreas Gruenbacher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b0de7fca10a3d7ddb99188b4752cc473c4e2c96e tree 65cfecd5fbd0fad2278b56271c05467e3b615db4 parent 538d9d532b0e0320c9dd326a560b5a72d73f910d author Josh Triplett Fri, 29 Sep 2006 01:59:23 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] efi: add lock annotations for efi_call_phys_prelog and efi_call_phys_epilog The functions efi_call_phys_prelog and efi_call_phys_epilog in arch/i386/kernel/efi.c wrap the spinlock efi_rt_lock: efi_call_phys_prelog returns with the lock held, and efi_call_phys_epilog 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 538d9d532b0e0320c9dd326a560b5a72d73f910d tree ad41d9ddc79aa74eceb806f6d207cea479c06608 parent 2ff6fd8f4a40b72ff35dbb1e08eb9ed6b64b6028 author Yoichi Yuasa Fri, 29 Sep 2006 01:59:22 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] irq: remove a extra line Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2ff6fd8f4a40b72ff35dbb1e08eb9ed6b64b6028 tree c6a3f085b6bbba80f468eab68e04477e42194232 parent 42012cc4a2183c555a907eee32d7ce4fc7dc3a6a author Yoichi Yuasa Fri, 29 Sep 2006 01:59:21 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] irq: fixed coding style Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 42012cc4a2183c555a907eee32d7ce4fc7dc3a6a tree 90fbd712085050fac8f06544e3186736539cf2bc parent 4d24607bfaab3d02fd0d6e0ffc22f29c2bc8eb30 author Olaf Hering Fri, 29 Sep 2006 01:59:21 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] use gcc -O1 in fs/reiserfs only for ancient gcc versions Only compile with -O1 if the (very old) compiler is broken. We use reiserfs alot since SLES9 on ppc64, and it was never seen with gcc33. Assume the broken gcc is gcc-3.4 or older. Signed-off-by: Olaf Hering Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4d24607bfaab3d02fd0d6e0ffc22f29c2bc8eb30 tree 50e0bfa287b913a9308651d2b78d6fef90e9a835 parent ad4e09b16ad361c15bd7186dcd118cb901089b97 author Komal Shah Fri, 29 Sep 2006 01:59:20 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] OMAP: Update OMAP1/2 boards to give keymapsize and other pdata This patch adds keymapsize, delay and debounce flag in the keypad platform data for various TI OMAP1/2 based boards like F-sample, H2, H3, Innovator, Nokia770, OSK, Perseus and H4. Signed-off-by: Komal Shah Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ad4e09b16ad361c15bd7186dcd118cb901089b97 tree eb74ac65ec10ac73eb404a98b34e851fd98bd499 parent 7768a13c252a97e13a552f88f642962768de1fa4 author Komal Shah Fri, 29 Sep 2006 01:59:19 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] OMAP: Add keypad driver This patch adds support for keypad driver running on different TI OMAP(http://www.ti.com/omap) processor based boards like OSK, H2, H3, H4, Persuas and Nokia 770. Signed-off-by: Komal Shah Acked-by: Dmitry Torokhov Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7768a13c252a97e13a552f88f642962768de1fa4 tree 6c21fc7dcd915c676b87115ca0b769bb04954533 parent f1b7c5f459b21feba80f96415429ff2570d63e4d author Komal Shah Fri, 29 Sep 2006 01:59:18 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] OMAP: Add Watchdog driver support Add Texas Instruments (TI) OMAP1/2 (http://www.ti.com/omap) based processors, like OMAP1610/1710/242x. [akpm@osdl.org: cleanups] Cc: Cc: "Komal Shah" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f1b7c5f459b21feba80f96415429ff2570d63e4d tree dcfe4f9fe3c6584f13c8db3c394395020da725e7 parent c22f008ba226e2ff25ee1a56abd9c5fd355828fc author Komal Shah Fri, 29 Sep 2006 01:59:15 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:07 -0700 [PATCH] OMAP: Add smc91x support for TI OMAP2420 H4 board Add smc91x support for TI OMAP2420 H4 EVM board. Cc: Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c22f008ba226e2ff25ee1a56abd9c5fd355828fc tree ffa01da1cf0dec73de897889a1aa5f354f521df1 parent 92a0f861fe1790dad55ea249169d94f2dc88d696 author Chuck Ebbert <76306.1226@compuserve.com> Fri, 29 Sep 2006 01:59:14 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] spinlock_debug: don't recompute (jiffies_per_loop * HZ) in spinloop In spinlock_debug.c, the spinloops call __delay() on every iteration. Because that is an external function, (jiffies_per_loop * HZ), the loop's iteration limit, gets recomputed every time. Caching it explicitly prevents that. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 92a0f861fe1790dad55ea249169d94f2dc88d696 tree 4cc7adf57b8531ea3b540868837b3dafed166c68 parent 78b2290f2977044ced27d1158b03587aa674fe07 author Rolf Eike Beer Fri, 29 Sep 2006 01:59:13 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] Fix parameter names in drivers/base/class.c Change parameter names to match arguments of functions. Signed-off-by: Rolf Eike Beer Cc: Martin Waitz Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 78b2290f2977044ced27d1158b03587aa674fe07 tree 7ecc1442489f037f4df7ad6c9e0c7d4f8c31c13a parent 6c9979185c7ef4feeb7f8d29be032b8f032a1838 author Rolf Eike Beer Fri, 29 Sep 2006 01:59:12 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] Include documentation for functions in drivers/base/class.c drivers/base/class.c is omitted by "make *docs". Add it to get documentation for class_create() and friends for free. Signed-off-by: Rolf Eike Beer Cc: Martin Waitz Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6c9979185c7ef4feeb7f8d29be032b8f032a1838 tree dd6d45dc21adf280164ba840ae0c954dd0c94233 parent 5b217fa75c3aea381f1f5fa7ff09e7b4019ea374 author Serge E. Hallyn Fri, 29 Sep 2006 01:59:11 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] kthread: convert loop.c to kthread Convert loop.c from the deprecated kernel_thread to kthread. This patch simplifies the code quite a bit and passes similar testing to the previous submission on both emulated x86 and s390. Changes since last submission: switched to using a rather simple loop based on wait_event_interruptible. Signed-off-by: Serge E. Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b217fa75c3aea381f1f5fa7ff09e7b4019ea374 tree 52a0c5017ffbd8dc99802c48a9fa57ca32775038 parent 4c78a6639386f9e7399fbc0d0a173d4cc1a3e9bf author Randy Dunlap Fri, 29 Sep 2006 01:59:10 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] kernel-doc: move filesystems together Move all VFS + filesystem docs together. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4c78a6639386f9e7399fbc0d0a173d4cc1a3e9bf tree 3c4413565f1146ee589bcbc43c23c153879966cf parent c0d92cbc5849f26451f478d538b8d885ae547221 author Randy Dunlap Fri, 29 Sep 2006 01:59:10 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] kernel-doc for relay interface Add relay interface support to DocBook/kernel-api.tmpl. Fix typos etc. in relay.c and relayfs.txt. Signed-off-by: Randy Dunlap Acked-by: Tom Zanussi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c0d92cbc5849f26451f478d538b8d885ae547221 tree bf5ef7e15c6f35443a8e156f3bcd9c6642004cdd parent cfedc920a7bca828fd4af8e203f7d8514990f999 author Pekka J Enberg Fri, 29 Sep 2006 01:59:09 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] libfs: remove page up-to-date check from simple_readpage Remove the unnecessary PageUptodate check from simple_readpage. The only two callers for ->readpage that don't have explicit PageUptodate check are read_cache_pages and page_cache_read which operate on newly allocated pages which don't have the flag set. [akpm: use the allegedly-faster clear_page(), too] Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cfedc920a7bca828fd4af8e203f7d8514990f999 tree bde0f40c77b9e433652492e9ffc9301506be3ea9 parent 58012cd788443b9d144bd7c72260a84b6b30f45d author Chris Boot Fri, 29 Sep 2006 01:59:08 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] Make net48xx-led use scx200_gpio_ops Make the next48xx LED code use scx200_gpio_ops instead of raw SCx200 GPIO accesses. Signed-off-by: Chris Boot Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 58012cd788443b9d144bd7c72260a84b6b30f45d tree 22696f3e8201dfb5b5a59544a8f6be335293077e parent 684f978347deb42d180373ac4c427f82ef963171 author Chris Boot Fri, 29 Sep 2006 01:59:07 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] scx200_gpio export cleanups Use EXPORT_SYMBOL_GPL for new symbols, and declare the struct in the header file for access by other modules. Signed-off-by: Chris Boot Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 684f978347deb42d180373ac4c427f82ef963171 tree db9025d8c6b267565c7110e09b16193957186a48 parent 6299a2dec89d22940e36832f15c0addfb77e6910 author Herbert Xu Fri, 29 Sep 2006 01:59:06 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:06 -0700 [PATCH] Let WARN_ON/WARN_ON_ONCE return the condition Letting WARN_ON/WARN_ON_ONCE return the condition means that you could do if (WARN_ON(blah)) { handle_impossible_case } Rather than if (unlikely(blah)) { WARN_ON(1) handle_impossible_case } I checked all the newly added WARN_ON_ONCE users and none of them test the return status so we can still change it. [akpm@osdl.org: warning fix] [akpm@osdl.org: build fix] Signed-off-by: Herbert Xu Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6299a2dec89d22940e36832f15c0addfb77e6910 tree 504cff1e9d845bf4364bf6afdc16491650d63126 parent c8ad9681fdec37ad298da6d505f9baba61e5f15c author Adrian Bunk Fri, 29 Sep 2006 01:59:05 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] drivers/char/pc8736x_gpio.c: remove unused static functions drivers/char/pc8736x_gpio.c:192: warning: #pc8736x_gpio_set_high# defined but not used drivers/char/pc8736x_gpio.c:197: warning: #pc8736x_gpio_set_low# defined but not used Signed-off-by: Adrian Bunk Acked-by: Jim Cromie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c8ad9681fdec37ad298da6d505f9baba61e5f15c tree 8c40b208d6f230eb39506f65d2cb0d28d780112c parent 358333a0cb4a6d279806e38d0368b79066dbe5e7 author Jim Cromie Fri, 29 Sep 2006 01:59:05 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] drivers/char/scx200_gpio.c: make code static This patch makes a needlessly global variable static. Signed-off-by: Adrian Bunk Signed-off-by: Jim Cromie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 358333a0cb4a6d279806e38d0368b79066dbe5e7 tree a3f32e874a52aa6874bb8ca5291daa970877d3cc parent 9938406ab6b2558d60c0c7200cc8e12f1ea7104a author Steven Rostedt Fri, 29 Sep 2006 01:59:04 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] remove unnecessary barrier in rtc_get_rtc_time Signed-off-by: Steven Rostedt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9938406ab6b2558d60c0c7200cc8e12f1ea7104a tree 2c0e7f9200253bca62cef833ba5405bdf5032351 parent df89a864631f5d840f4873c4c03733b4206e78ea author Michal Schmidt Fri, 29 Sep 2006 01:59:03 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] Make touch_nmi_watchdog imply touch_softlockup_watchdog on all archs touch_nmi_watchdog() calls touch_softlockup_watchdog() on both architectures that implement it (i386 and x86_64). On other architectures it does nothing at all. touch_nmi_watchdog() should imply touch_softlockup_watchdog() on all architectures. Suggested by Andi Kleen. [heiko.carstens@de.ibm.com: s390 fix] Signed-off-by: Michal Schmidt Cc: Andi Kleen Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Cc: Michal Schmidt Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit df89a864631f5d840f4873c4c03733b4206e78ea tree ea72861bb3348ff740f0ff1e89260eb451666a5b parent 199a9afc3dbe98c35326f1d3907ab94dae953a6e author Manfred Spraul Fri, 29 Sep 2006 01:59:01 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] list_del debug check A list_del() debugging check. Has been in -mm for years. Dave moved list_del() out-of-line in the debug case, so this is now suitable for mainline. Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 199a9afc3dbe98c35326f1d3907ab94dae953a6e tree f656df600bec86e8764af2e33bc4a0b98330e758 parent df67b3daea602728b51325a4debaeeb912ee51d1 author Dave Jones Fri, 29 Sep 2006 01:59:00 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] Debug variants of linked list macros Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit df67b3daea602728b51325a4debaeeb912ee51d1 tree 22181d324d541a27b037673cf1315827900e998c parent 15a67dd8ccf696392176c95a08234a8b8ee59005 author Jason Baron Fri, 29 Sep 2006 01:58:58 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] make PROT_WRITE imply PROT_READ Make PROT_WRITE imply PROT_READ for a number of architectures which don't support write only in hardware. While looking at this, I noticed that some architectures which do not support write only mappings already take the exact same approach. For example, in arch/alpha/mm/fault.c: " if (cause < 0) { if (!(vma->vm_flags & VM_EXEC)) goto bad_area; } else if (!cause) { /* Allow reads even for write-only mappings */ if (!(vma->vm_flags & (VM_READ | VM_WRITE))) goto bad_area; } else { if (!(vma->vm_flags & VM_WRITE)) goto bad_area; } " Thus, this patch brings other architectures which do not support write only mappings in-line and consistent with the rest. I've verified the patch on ia64, x86_64 and x86. Additional discussion: Several architectures, including x86, can not support write-only mappings. The pte for x86 reserves a single bit for protection and its two states are read only or read/write. Thus, write only is not supported in h/w. Currently, if i 'mmap' a page write-only, the first read attempt on that page creates a page fault and will SEGV. That check is enforced in arch/blah/mm/fault.c. However, if i first write that page it will fault in and the pte will be set to read/write. Thus, any subsequent reads to the page will succeed. It is this inconsistency in behavior that this patch is attempting to address. Furthermore, if the page is swapped out, and then brought back the first read will also cause a SEGV. Thus, any arbitrary read on a page can potentially result in a SEGV. According to the SuSv3 spec, "if the application requests only PROT_WRITE, the implementation may also allow read access." Also as mentioned, some archtectures, such as alpha, shown above already take the approach that i am suggesting. The counter-argument to this raised by Arjan, is that the kernel is enforcing the write only mapping the best it can given the h/w limitations. This is true, however Alan Cox, and myself would argue that the inconsitency in behavior, that is applications can sometimes work/sometimes fails is highly undesireable. If you read through the thread, i think people, came to an agreement on the last patch i posted, as nobody has objected to it... Signed-off-by: Jason Baron Cc: Russell King Cc: "Luck, Tony" Cc: Hugh Dickins Cc: Roman Zippel Cc: Geert Uytterhoeven Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Acked-by: Andi Kleen Acked-by: Alan Cox Cc: Arjan van de Ven Acked-by: Paul Mundt Cc: Kazumoto Kojima Cc: Ian Molton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 15a67dd8ccf696392176c95a08234a8b8ee59005 tree 8ae15dd6e51ad1df6cf89e539009b0e128b548ed parent 87a57261105669d13a9cae747b5b67ca1cbcda3c author Randy Dunlap Fri, 29 Sep 2006 01:58:57 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] fs/namespace: handle init/registration errors Check and handle init errors. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 87a57261105669d13a9cae747b5b67ca1cbcda3c tree a82f6e81137ef987118e043040adac41599979b3 parent 4d7dd8fd9557840162b724a8ac1366dd78a12dff author Randy Dunlap Fri, 29 Sep 2006 01:58:56 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:05 -0700 [PATCH] block: handle subsystem_register() init errors Check and handle init errors. Signed-off-by: Randy Dunlap Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4d7dd8fd9557840162b724a8ac1366dd78a12dff tree ba67748bb0951a40a8921b5f2c05a4f961646415 parent d8c7649e99e4b081b624aefe1e77caa30b53cb18 author Andrew Morton Fri, 29 Sep 2006 01:58:56 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] blockdev.c: check driver layer errors Check driver layer errors. Fix from: "Jun'ichi Nomura" In blockdevc-check-errors.patch, add_bd_holder() is modified to return error values when some of its operation failed. Among them, it returns -EEXIST when a given bd_holder object already exists in the list. However, in this case, the function completed its work successfully and need no action by its caller other than freeing unused bd_holder object. So I think it's better to return success after freeing by itself. Otherwise, bd_claim-ing with same claim pointer will fail. Typically, lvresize will fails with following message: device-mapper: reload ioctl failed: Invalid argument and you'll see messages like below in kernel log: device-mapper: table: 254:13: linear: dm-linear: Device lookup failed device-mapper: ioctl: error adding target to table Similarly, it should not add bd_holder to the list if either one of symlinking fails. I don't have a test case for this to happen but it should cause dereference of freed pointer. If a matching bd_holder is found in bd_holder_list, add_bd_holder() completes its job by just incrementing the reference count. In this case, it should be considered as success but it used to return 'fail' to let the caller free temporary bd_holder. Fixed it to return success and free given object by itself. Also, if either one of symlinking fails, the bd_holder should not be added to the list so that it can be discarded later. Otherwise, the caller will free bd_holder which is in the list. Signed-off-by: Jun'ichi Nomura Cc: "Randy.Dunlap" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d8c7649e99e4b081b624aefe1e77caa30b53cb18 tree 4afc0411a45521963492a22a6c9712d9b7059bbb parent 5906e4171ad61ce68de95e51b773146707671f80 author Randy Dunlap Fri, 29 Sep 2006 01:58:55 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] kernel/params: driver layer error checking Check driver layer return values in kernel/params.c Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5906e4171ad61ce68de95e51b773146707671f80 tree e8e2479c9fa361948d10740b7e65e4eb751ee8c0 parent fade5d5461b0379b27ca96faf560d855d7a0ea8b author Jeff Dike Fri, 29 Sep 2006 01:58:54 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: remove pte_mkexec Andi is making pte_mkexec go away, and UML had one of the last uses. This removes the use and the definition. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fade5d5461b0379b27ca96faf560d855d7a0ea8b tree e12b7753db8c4dcb7f5fd187062eb5e055526228 parent 3b89af765cd62c1c3ca6c81adca45084f8840e06 author Jeff Dike Fri, 29 Sep 2006 01:58:53 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: don't roll my own random MAC generator Use the existing random_ether_addr() instead of cooking up my own version. Pointed out by Dave Hollis and Jason Lunz. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3b89af765cd62c1c3ca6c81adca45084f8840e06 tree 29beac2754382df0fd5fb4ee71cccc4c083a8a71 parent f92afe56a0dcd271cb94e12acf1861d44c3faefd author Jeff Dike Fri, 29 Sep 2006 01:58:52 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: remove unneeded file Remove arch/um/kernel/skas/process_kern.c again. The stack alignment change which resulted in this file being here is safely in arch/um/kernel/process.c. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f92afe56a0dcd271cb94e12acf1861d44c3faefd tree 4c8fc05c2dd6d9142ab3e5850ccbb5ff7b0065d1 parent 80c13749140284abdc23bbeed2507b7e5a3dc459 author Jeff Dike Fri, 29 Sep 2006 01:58:52 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: stack consumption reduction Fix some stack abuse in the sysrq t path. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 80c13749140284abdc23bbeed2507b7e5a3dc459 tree 9d5a56f718e8f467af3daf0089309d3b1ac9d12e parent 730760e90a173ef81f89beed2f1dad2fab310f68 author Jeff Dike Fri, 29 Sep 2006 01:58:51 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: close file descriptor leaks Close two file descriptor leaks, one in the ubd driver and one to /proc/mounts. The ubd driver bug also leaked some vmalloc space. The /proc/mounts leak was a descriptor that was just never closed. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 730760e90a173ef81f89beed2f1dad2fab310f68 tree e60039deb19683fac30e58277450c657ecd33e07 parent b10aeeef554eb1ff80e10111829f6e7484877811 author Jeff Dike Fri, 29 Sep 2006 01:58:50 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: locking documentation Some locking documentation and a cleanup. uml_exitcode is copied into a local before sprintf sees it, in case sprintf does anything non-atomic with it. The rest are comments about why certain globals don't need any kind of locking. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b10aeeef554eb1ff80e10111829f6e7484877811 tree efe33871539700cb6f530ed38b755b405b3f3b08 parent f3e7ed2b617824f79d1223f37430ccffae59e5b8 author Jeff Dike Fri, 29 Sep 2006 01:58:50 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: mechanical tidying after random MACs change Mechanical, hopefully non-functional changes stemming from setup_etheraddr always succeeding now that it always assigns a MAC, either from the command line or generated randomly: the test of the return of setup_etheraddr is removed, and code dependent on it succeeding is now unconditional setup_etheraddr can now be made void struct uml_net.have_mac is now always 1, so tests of it can be similarly removed, and uses of it can be replaced with 1 struct uml_net.have_mac is no longer used, so it can be removed struct uml_net_private.have_mac is copied from struct uml_net, so it is always 1 tests of uml_net_private.have_mac can be removed uml_net_private.have_mac can now be removed the only call to dev_ip_addr was removed, so it can be deleted It also turns out that setup_etheraddr is called only once, from the same file, so it can be static and its declaration removed from net_kern.h. Similarly, set_ether_mac is defined and called only from one file. Finally, setup_etheraddr and set_ether_mac were moved to avoid needing forward declarations. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f3e7ed2b617824f79d1223f37430ccffae59e5b8 tree 629961c5ea7aa34675c8a6760e88e3957099f0af parent 3b08606dc2991bcdab14139efd9ed9d492f5f901 author Jeff Dike Fri, 29 Sep 2006 01:58:46 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:04 -0700 [PATCH] uml: assign random MACs to interfaces if necessary Assign a random MAC to an ethernet interface if one was not provided on the command line. This became pressing when distros started bringing interfaces up before assigning IPs to them. The previous pattern of assigning an IP then bringing it up allowed the MAC to be generated from the first IP assigned. However, once the thing is up, it's probably a bad idea to change the MAC, so the MAC stayed initialized to fe:fd:0:0:0:0. Now, if there is no MAC from the command line, one is generated. We use the microseconds from gettimeofday (20 bits), plus the low 12 bits of the pid to seed the random number generator. random() is called twice, with 16 bits of each result used. I didn't want to have to try to fill in 32 bits optimally given an arbitrary RAND_MAX, so I just assume that it is greater than 65536 and use 16 bits of each random() return. There is also a bit of reformatting and whitespace cleanup here. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3b08606dc2991bcdab14139efd9ed9d492f5f901 tree c225c9fc5a7b3cdfe516c4279f77e40068396162 parent 3528a95322b5c1ce882ab723f175a1845430cd89 author keith mannthey Fri, 29 Sep 2006 01:58:46 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] convert i386 Summit subarch to use SRAT info for apicid_to_node calls Convert the i386 summit subarch apicid_to_node to use node information provided by the SRAT. It was discussed a little on LKML a few weeks ago and was seen as an acceptable fix. The current way of obtaining the nodeid static inline int apicid_to_node(int logical_apicid) { return logical_apicid >> 5; } is just not correct for all summit systems/bios. Assuming the apicid matches the Linux node number require a leap of faith that the bios mapped out the apicids a set way. Modern summit HW (IBM x460) does not layout its bios in the manner for various reasons and is unable to boot i386 numa. The best way to get the correct apicid to node information is from the SRAT table during boot. It lays out what apicid belongs to what node. I use this information to create a table for use at run time. Signed-off-by: Keith Mannthey Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3528a95322b5c1ce882ab723f175a1845430cd89 tree 3aa8b456e08ed3e57fe23152c934b8ed1b234022 parent 79f5acf5d784492afe80723496624093079aed9c author Cory Olmo Fri, 29 Sep 2006 01:58:44 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] SELinux: support mls categories for context mounts Allows commas to be embedded into context mount options (i.e. "-o context=some_selinux_context_t"), to better support multiple categories, which are separated by commas and confuse mount. For example, with the current code: mount -t iso9660 /dev/cdrom /media/cdrom -o \ ro,context=system_u:object_r:iso9660_t:s0:c1,c3,c4,exec The context option that will be interpreted by SELinux is context=system_u:object_r:iso9660_t:s0:c1 instead of context=system_u:object_r:iso9660_t:s0:c1,c3,c4 The options that will be passed on to the file system will be ro,c3,c4,exec. The proposed solution is to allow/require the SELinux context option specified to mount to use quotes when the context contains a comma. This patch modifies the option parsing in parse_opts(), contained in mount.c, to take options after finding a comma only if it hasn't seen a quote or if the quotes are matched. It also introduces a new function that will strip the quotes from the context option prior to translation. The quotes are replaced after the translation is completed to insure that in the event the raw context contains commas the kernel will be able to interpret the correct context. Signed-off-by: Cory Olmo Signed-off-by: James Morris Acked-by: Stephen Smalley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 79f5acf5d784492afe80723496624093079aed9c tree 64933a842722dbd8923680a9aafa4c334d1b06d5 parent 4ce072f1faf29d24df4600f53db8cdd62d400a8f author Adam Litke Fri, 29 Sep 2006 01:58:43 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] mm: make filemap_nopage use NOPAGE_SIGBUS Don't open-code NOPAGE_SIGBUS. Signed-off-by: Adam Litke Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4ce072f1faf29d24df4600f53db8cdd62d400a8f tree b56ac328eb4542d6a05b0d35aef95ed3834127d3 parent 2dcea57ae19275451a756a2d5bf96b329487b0e0 author Siddha, Suresh B Fri, 29 Sep 2006 01:58:42 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] mm: fix a race condition under SMC + COW Failing context is a multi threaded process context and the failing sequence is as follows. One thread T0 doing self modifying code on page X on processor P0 and another thread T1 doing COW (breaking the COW setup as part of just happened fork() in another thread T2) on the same page X on processor P1. T0 doing SMC can endup modifying the new page Y (allocated by the T1 doing COW on P1) but because of different I/D TLB's, P0 ITLB will not see the new mapping till the flush TLB IPI from P1 is received. During this interval, if T0 executes the code created by SMC it can result in an app error (as ITLB still points to old page X and endup executing the content in page X rather than using the content in page Y). Fix this issue by first clearing the PTE and flushing it, before updating it with new entry. Hugh sayeth: I was a bit sceptical, in the habit of thinking that Self Modifying Code must look such issues itself: but I guess there's nothing it can do to avoid this one. Fair enough, what you're changing it to is pretty much what powerpc and s390 were already doing, and is a more robust way of proceeding, consistent with how ptes are set everywhere else. The ptep_clear_flush is a bit heavy-handed (it's anxious to return the pte that was atomically cleared), but we'd have to wander through lots of arches to get the right minimal behaviour. It'd also be nice to eliminate ptep_establish completely, now only used to define other macros/inlines: it always seemed obfuscation to me, what you've got there now is clearer. Let's put those cleanups on a TODO list. Signed-off-by: Suresh Siddha Acked-by: "David S. Miller" Acked-by: Hugh Dickins Cc: Nick Piggin Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2dcea57ae19275451a756a2d5bf96b329487b0e0 tree 37b0def2369c106fdf3653ca85e0c1a34ce4d905 parent d1807793e1e7e502e3dc047115e9dbc3b50e4534 author Heiko Carstens Fri, 29 Sep 2006 01:58:41 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] convert s390 page handling macros to functions Convert s390 page handling macros to functions. In particular this fixes a problem with s390's SetPageUptodate macro which uses its input parameter twice which again can cause subtle bugs. [akpm@osdl.org: build fix] Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d1807793e1e7e502e3dc047115e9dbc3b50e4534 tree 0ee76ff91643dc23fd5aef6d0498a7e139fdc6f8 parent f71b2f10f56802075d67c5710cd9f1816382d720 author Zoltan Menyhart Fri, 29 Sep 2006 01:58:40 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] JBD: memory leak in "journal_init_dev()" We leak a bh ref in "journal_init_dev()" in case of failure. Signed-off-by: Zoltan Menyhart Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f71b2f10f56802075d67c5710cd9f1816382d720 tree a0a85e3827d70fc0b2b9bfe771c9e35c32c83559 parent 4efd587bf9f9a97608b1fcecc78a4a046c37e9b1 author Dave Kleikamp Fri, 29 Sep 2006 01:58:39 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] JBD: Make journal_brelse_array() static It's always good to make symbols static when we can, and this also eliminates the need to rename the function in jbd2 Suggested by Eric Sandeen. Signed-off-by: Dave Kleikamp Cc: Eric Sandeen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4efd587bf9f9a97608b1fcecc78a4a046c37e9b1 tree ee626d2ce4af18c0296df3f257079b76f71ae76d parent 910067d188d56d80801b71b0ca1f73aa400c7b8c author David Woodhouse Fri, 29 Sep 2006 01:58:37 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] Fix uninitialised spinlock in via-pmu-backlight code. The uninitialised pmu_backlight_lock causes the current Fedora test kernel (which has spinlock debugging enabled) to panic on suspend. This is suboptimal, so I fixed it. Signed-off-by: David Woodhouse Acked-by: Benjamin Herrenschmidt Acked-by: Michael Hanselmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 910067d188d56d80801b71b0ca1f73aa400c7b8c tree 5176ec3f62544cb4d8c3ff33c00d75c877856a17 parent e04da1dfd9041e306cb33d1b40b6005c23c5b325 author Matthew Wilcox Fri, 29 Sep 2006 01:58:36 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] remove generic__raw_read_trylock() If the cpu has the lock held for write, is interrupted, and the interrupt handler calls read_trylock(), it's an instant deadlock. Now, Dave Miller has subsequently pointed out that we don't have any situations where this can occur. Nevertheless, we should delete generic__raw_read_lock (and its associated EXPORT to make Arjan happy) so that nobody thinks they can use it. Acked-by: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e04da1dfd9041e306cb33d1b40b6005c23c5b325 tree 2e9c1a183d9cde4e9a3dfae5591f203fedb7b32b parent 0891a8d706d6e6838a926b6dec42f95581747d0e author Al Viro Fri, 29 Sep 2006 01:58:35 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:03 -0700 [PATCH] sys_getcpu() prototype annotated Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0891a8d706d6e6838a926b6dec42f95581747d0e tree dc926aef2b56cbe4ddf3a974c51a99f70d39c1ea parent 3dcbbcda7c5b77c400791b26facd6593c5b176e0 author Al Viro Fri, 29 Sep 2006 01:58:34 -0700 committer Linus Torvalds Fri, 29 Sep 2006 09:18:02 -0700 [PATCH] __percpu_alloc_mask() has to be __always_inline in UP case ... or we'll end up with cpu_online_map being evaluated on UP. In modules. cpumask.h is very careful to avoid that, and for a very good reason. So should we... PS: yes, it really triggers (on alpha). Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b06e7926694178e146ff708b2c15a6da64c9765 tree 30602fa4a854d6956f478212937726ca75ea13ce parent 65e8697a12e356cd7a6ecafa1149f5c5c6a71593 parent c972398b7871d9fb58c6a317786065a7cc6ca4be author Tim Shimmin Fri, 29 Sep 2006 16:45:43 +1000 committer Tim Shimmin Fri, 29 Sep 2006 16:45:43 +1000 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 commit 3dcbbcda7c5b77c400791b26facd6593c5b176e0 tree 2e7b844c4d450cf43810a6ed0ddd5c702c245a88 parent c972398b7871d9fb58c6a317786065a7cc6ca4be parent 6fbe59b9569b2c8d5522d182263935c6c86fc40a author Linus Torvalds Thu, 28 Sep 2006 23:03:42 -0700 committer Linus Torvalds Thu, 28 Sep 2006 23:03:42 -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: (160 commits) [ETHTOOL]: Remove some entries from non-root command list. [Bluetooth]: Fix section mismatch of bt_sysfs_cleanup() [Bluetooth]: Don't update disconnect timer for incoming connections [ETHTOOL]: let mortals use ethtool [NetLabel]: add audit support for configuration changes [TCP]: Fix and simplify microsecond rtt sampling [TCP] tcp-lp: prevent chance for oops [SUNRPC]: Remove unnecessary check in net/sunrpc/svcsock.c [IPVS] bug: endianness breakage in ip_vs_ftp [IPVS]: ipvs annotations [NETFILTER]: h323 annotations [NETFILTER]: ipt annotations [NETFILTER]: NAT annotations [NETFILTER]: conntrack annotations [NETFILTER]: netfilter misc annotations [NET]: Annotate dst_ops protocol [NET]: is it Andy or Andi ?? [IPVS]: Make sure ip_vs_ftp ports are valid: module_param_array approach [IPVS]: Reverse valid ip_vs_ftp ports fix: port check approach [IrDA] stir4200: removing undocumented bits handling ... commit c972398b7871d9fb58c6a317786065a7cc6ca4be tree d83d783326f2c7204d8e1ff7812319e2be91be0c parent 2ff712585a5026a021859233fce145068292584d parent 6e3ce3ae8e872f2d3a30f5ce5bc3b7c5eeca4343 author Linus Torvalds Thu, 28 Sep 2006 22:59:32 -0700 committer Linus Torvalds Thu, 28 Sep 2006 22:59:32 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: USB: fix build error in ohci driver commit 65e8697a12e356cd7a6ecafa1149f5c5c6a71593 tree cb08feaf37a33eb27236ea83c25efc75138f0823 parent 6e73b418887675da18602550ca296211caeb3897 author Tim Shimmin Fri, 29 Sep 2006 15:23:02 +1000 committer Tim Shimmin Fri, 29 Sep 2006 15:23:02 +1000 [XFS] Remove v1 dir trace macro - missed in a past commit. Signed-off-by: Tim Shimmin commit 6fbe59b9569b2c8d5522d182263935c6c86fc40a tree b0218a3a68f66c380bc3ee367276bdc3829c9ed8 parent 860e13b5c591f1040b76fff57a6a3d6ca9633983 author David S. Miller Thu, 28 Sep 2006 15:34:05 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:12 -0700 [ETHTOOL]: Remove some entries from non-root command list. GWOL might provide passwords GSET, GLINK, and GSTATS might poke the hardware Based upon feedback from Jeff Garzik. Signed-off-by: David S. Miller commit 860e13b5c591f1040b76fff57a6a3d6ca9633983 tree cd6dd159aeb87fe3a7796293e5054f6656758ea3 parent 37e97b4ef0d18b77a45a4714154daf3499206654 author Arnaud Patard Thu, 28 Sep 2006 15:29:37 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:12 -0700 [Bluetooth]: Fix section mismatch of bt_sysfs_cleanup() The bt_sysfs_cleanup() is marked with __exit attribute, but it will be called from an __init function in the error case. So the __exit attribute must be removed. Signed-off-by: Arnaud Patard Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 37e97b4ef0d18b77a45a4714154daf3499206654 tree a4a245c811525bbe7bf728558a6415b50bf1ea3c parent 75f3123c118743f52b690d9ab41649814befda0a author Marcel Holtmann Thu, 28 Sep 2006 15:29:09 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:11 -0700 [Bluetooth]: Don't update disconnect timer for incoming connections In the case of device pairing the only safe method is to establish a low-level ACL link. In this case, the remote side should not use the disconnect timer to give the other side the chance to enter the PIN code. If the disconnect timer is used, the connection will be dropped to soon, because it is impossible to identify an actual user of this link. Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 75f3123c118743f52b690d9ab41649814befda0a tree d1a149bcdf39901757122b2fcc86b4bcc3ed2ff8 parent 32f50cdee666333168b5203c7864bede159f789e author Stephen Hemminger Thu, 28 Sep 2006 15:13:37 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:10 -0700 [ETHTOOL]: let mortals use ethtool There is no reason to not allow non-admin users to query network statistics and settings. [ Removed PHYS_ID and GREGS based upon feedback from Auke Kok and Michael Chan -DaveM] Acked-by: James Morris Signed-off-by: David S. Miller commit 32f50cdee666333168b5203c7864bede159f789e tree c4989cc2521551714f656d60f6b895232ffdeda6 parent 8ea333eb5da3e3219f570220c56bca09f6f4d25a author Paul Moore Thu, 28 Sep 2006 14:51:47 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:09 -0700 [NetLabel]: add audit support for configuration changes This patch adds audit support to NetLabel, including six new audit message types shown below. #define AUDIT_MAC_UNLBL_ACCEPT 1406 #define AUDIT_MAC_UNLBL_DENY 1407 #define AUDIT_MAC_CIPSOV4_ADD 1408 #define AUDIT_MAC_CIPSOV4_DEL 1409 #define AUDIT_MAC_MAP_ADD 1410 #define AUDIT_MAC_MAP_DEL 1411 Signed-off-by: Paul Moore Acked-by: James Morris Signed-off-by: David S. Miller commit 8ea333eb5da3e3219f570220c56bca09f6f4d25a tree 97e76b5aa8a8cd795dc65768fe5c75a4135a5ec1 parent bfbea8a8869a0e21b97605841d04190d63665d19 author John Heffner Thu, 28 Sep 2006 14:47:38 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:08 -0700 [TCP]: Fix and simplify microsecond rtt sampling This changes the microsecond RTT sampling so that samples are taken in the same way that RTT samples are taken for the RTO calculator: on the last segment acknowledged, and only when the segment hasn't been retransmitted. Signed-off-by: John Heffner Acked-by: Stephen Hemminger Signed-off-by: David S. Miller commit bfbea8a8869a0e21b97605841d04190d63665d19 tree c447c1787942fcc9d2b4c6b7404ca75104984c70 parent 1811474620d1986da45f7245168bf7c2d883d770 author Wong Hoi Sing Edison Thu, 28 Sep 2006 14:40:21 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:07 -0700 [TCP] tcp-lp: prevent chance for oops This patch fix the chance for tcp_lp_remote_hz_estimator return 0, if 0 < rhz < 64. It also make sure the flag LP_VALID_RHZ is set correctly. Signed-off-by: Wong Hoi Sing Edison Signed-off-by: David S. Miller commit 1811474620d1986da45f7245168bf7c2d883d770 tree dbd73019e333f8410b326a383854ef334393f703 parent 96d2ca4ec0bb8d0f344e5960224700be3dec3515 author Eric Sesterhenn Thu, 28 Sep 2006 14:37:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:06 -0700 [SUNRPC]: Remove unnecessary check in net/sunrpc/svcsock.c coverity spotted this one as possible dereference in the dprintk(), but since there is only one caller of svc_create_socket(), which always passes a valid sin, we dont need this check. Signed-off-by: Eric Sesterhenn Signed-off-by: David S. Miller commit 96d2ca4ec0bb8d0f344e5960224700be3dec3515 tree f1e8dce6214ee5e35dc290da7ed39e7168afaf8a parent 014d730d56b559eacb11e91969a1f41c3feb36f9 author Al Viro Thu, 28 Sep 2006 14:31:49 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:05 -0700 [IPVS] bug: endianness breakage in ip_vs_ftp (p[3]<<24) | (p[2]<<16) | (p[1]<<8) | p[0] is not a valid way to spell get_unaligned((__be32 *)p Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 014d730d56b559eacb11e91969a1f41c3feb36f9 tree d8c3a08108f435879b4d436c7b3c4a726d31c6af parent d4263cde88d3fee2af0aac8836bb785cdb6b06c0 author Al Viro Thu, 28 Sep 2006 14:29:52 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:04 -0700 [IPVS]: ipvs annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit d4263cde88d3fee2af0aac8836bb785cdb6b06c0 tree f9d7720ebc7211cf479c0271a4de0d256562edcd parent 6a19d61472d0802a24493c0d200e88f99ad39cd8 author Al Viro Thu, 28 Sep 2006 14:22:51 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:03 -0700 [NETFILTER]: h323 annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 6a19d61472d0802a24493c0d200e88f99ad39cd8 tree 0689ae578aec5d32fdf5e53875a4b90cbfdf97ae parent a76b11dd25957287af12ce6855be6d7fd415b3a9 author Al Viro Thu, 28 Sep 2006 14:22:24 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:02 -0700 [NETFILTER]: ipt annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a76b11dd25957287af12ce6855be6d7fd415b3a9 tree f85569f37e1c05d9b946e7df4b826d401dc1d593 parent cdcb71bf964e02e0a22007f5d90ead7bede3b85b author Al Viro Thu, 28 Sep 2006 14:22:02 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:01 -0700 [NETFILTER]: NAT annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit cdcb71bf964e02e0a22007f5d90ead7bede3b85b tree e632690c78cb4e7fada1bbd6ad0b1db70c16a194 parent 59b8bfd8fd608821e5addc9f4682c7f2424afd8c author Al Viro Thu, 28 Sep 2006 14:21:37 -0700 committer David S. Miller Thu, 28 Sep 2006 18:03:00 -0700 [NETFILTER]: conntrack annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 59b8bfd8fd608821e5addc9f4682c7f2424afd8c tree c360a29cf3c2a975149ebe9b4106a8e4eea40528 parent d77072ecfb6d28287d5e2a61d60d87a3a444ac97 author Al Viro Thu, 28 Sep 2006 14:21:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:59 -0700 [NETFILTER]: netfilter misc annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit d77072ecfb6d28287d5e2a61d60d87a3a444ac97 tree 459319535a67ecca3f615dd8aefc36f2b56a7f49 parent 75b31c33512f46bf650f4652272d8bef39881890 author Al Viro Thu, 28 Sep 2006 14:20:34 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:58 -0700 [NET]: Annotate dst_ops protocol Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 75b31c33512f46bf650f4652272d8bef39881890 tree aece5fa1f12dac1cb6ee941fa608671a9802dada parent 28b06c380fca7e248c90e45f0aad1753097f6824 author Steven Rostedt Wed, 27 Sep 2006 22:55:39 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:57 -0700 [NET]: is it Andy or Andi ?? I don't know of any Andy Kleen's but I do know a Andi Kleen. Signed-off-by: Steven Rostedt Signed-off-by: David S. Miller commit 28b06c380fca7e248c90e45f0aad1753097f6824 tree 7070f82b1f85780927e69abe8d8aa50bed9655cd parent e44fd82caf89a8548e7868592618b243e85c69e6 author Simon Horman Wed, 27 Sep 2006 22:53:24 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:56 -0700 [IPVS]: Make sure ip_vs_ftp ports are valid: module_param_array approach I'm not entirely sure what happens in the case of a valid port, at best it'll be silently ignored. This patch ensures that the port values are unsigned short values, and thus always valid. This is a second take at fixing this problem, it is simpler and arguably more correct than the previous approach that was committed as 3f5af5b353ca36aca4f8a46e3da2172f669dbbbc. Prior to this patch a patch that reverses 3f5af5b353ca36aca4f8a46e3da2172f669dbbbc was sent. Signed-off-by: Simon Horman Signed-off-by: David S. Miller commit e44fd82caf89a8548e7868592618b243e85c69e6 tree 081fc3cfa6d9fb219485c2b54b9c4982a50d1cad parent febac9b93724f3ee293e7e5450043ae28e61531a author Simon Horman Wed, 27 Sep 2006 22:52:47 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:55 -0700 [IPVS]: Reverse valid ip_vs_ftp ports fix: port check approach This patch reverses 3f5af5b353ca36aca4f8a46e3da2172f669dbbbc as a better fix was suggested by Patrick McHardy. Signed-off-by: Simon Horman Signed-off-by: David S. Miller commit febac9b93724f3ee293e7e5450043ae28e61531a tree 4671a821410ffa228d8b6aac8457c444e0dbac9e parent 895de090d4302a02a77cdf366fc6e54fc2001857 author Samuel Ortiz Wed, 27 Sep 2006 22:50:06 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:54 -0700 [IrDA] stir4200: removing undocumented bits handling FIFOCTL_RXERR and FIFOCTL_TXERR are undocumented bits, according to the Sigmatel datasheet. We should thus not take any assumption on their values and semantics. Problem spotted by andrzej zaborowski Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 895de090d4302a02a77cdf366fc6e54fc2001857 tree 6460188f54fc5e2a58ae17c7be6bcc250b600d1c parent 2fd19a687c256fa4c4750465b9856e2c80660ec8 author Linus Walleij (LD/EAB Wed, 27 Sep 2006 22:49:23 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:53 -0700 [IrDA] smsc-ircc: More laptops detected This patch detects the smsc-ircc chipset on the nx1000 (including nx7000 and nx7010) and the nx5000 HP/Compaq laptop series. Patch from "Linus Walleij (LD/EAB)" Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 2fd19a687c256fa4c4750465b9856e2c80660ec8 tree aca83115bcf8fafc7f91a8e607aa0f452b1d8c4d parent b854d0d218688b30ccea70521d6ea5f3f56d4e12 author Lamarque Vieira Souza Wed, 27 Sep 2006 22:48:36 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:52 -0700 [IrDA] nsc-ircc: Configuration base address for PC87383 According to NatSemi datasheet, the configuration base address for the PC8738x family is 0x2e or 0x164. 0x0 doesn't appear in any datasheet. Patch from Lamarque Vieira Souza Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit b854d0d218688b30ccea70521d6ea5f3f56d4e12 tree 281254f1c48ee91a83e1f7f4e82cf9e802ce2392 parent cbde1668e4f08e0a150207646010bc65e1e2a42b author YOSHIFUJI Hideaki Wed, 27 Sep 2006 22:43:05 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:51 -0700 [NET] KBUILD: Add missing entries for new net headers. Add the following for userspace export by the 'headers_include' make target: linux/fib_rules.h, linux/if_addr.h, linux/if_link.h, linux/neighbour.h. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit cbde1668e4f08e0a150207646010bc65e1e2a42b tree 568986c8b47b7228deb05f3b415318a9eb20d528 parent 7b4dc3600e4877178ba94c7fbf7e520421378aa6 author YOSHIFUJI Hideaki Wed, 27 Sep 2006 22:40:19 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:50 -0700 [NET]: Move netlink interface bits to linux/if_link.h. Moving netlink interface bits to linux/if.h is rather troublesome for applications including both linux/if.h (which was changed to be included from linux/rtnetlink.h automatically) and net/if.h. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 7b4dc3600e4877178ba94c7fbf7e520421378aa6 tree ce3d6601b8fd7748d3026a1aed042bba002ecac0 parent 7fa6b06689085a3e2237cf810f5e0c114e00a2da author Masahide NAKAMURA Wed, 27 Sep 2006 22:21:52 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:49 -0700 [XFRM]: Do not add a state whose SPI is zero to the SPI hash. SPI=0 is used for acquired IPsec SA and MIPv6 RO state. Such state should not be added to the SPI hash because we do not care about it on deleting path. Signed-off-by: Masahide NAKAMURA Signed-off-by: YOSHIFUJI Hideaki commit 7fa6b06689085a3e2237cf810f5e0c114e00a2da tree 729eeef31a9ad44c0635f5e27b6c924767e17238 parent 1b0fee7d68f234be6b270cda51d9fcb71bebd780 author Stephen Hemminger Wed, 27 Sep 2006 20:33:34 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:49 -0700 [NET] loopback: minor statistics optimization The loopback device status structure is a singleton and doesn't need to be allocated. Add ethtool_ops hooks to show checksum always on, and make ethtool_ops const. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 1b0fee7d68f234be6b270cda51d9fcb71bebd780 tree 11e734d80ebaf2f0a053f912bfc59068c33ef4aa parent 778e6398d32590eaf2333706318cbcd04dbe50b7 author Samuel Ortiz Wed, 27 Sep 2006 20:06:44 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:48 -0700 [IrDA]: Memory allocations cleanups This patch replaces the bunch of arbitrary 64 and 128 bytes alloc_skb() calls with more accurate allocation sizes. Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 778e6398d32590eaf2333706318cbcd04dbe50b7 tree 9c7aa6c79c80f882735a8b0229e4db26ea4eb0a1 parent da349f1c2e0a0bf8958cdaf14e8f33acdf3182a5 author Samuel Ortiz Wed, 27 Sep 2006 20:06:16 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:47 -0700 [IrDA]: irda-usb needs firmware loader With the inclusion of the stir421x code, we now need to select FW_LOADER whenever we try to build the irda-usb code. Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit da349f1c2e0a0bf8958cdaf14e8f33acdf3182a5 tree c959dd1fe9a4104f94febd0ac6928d9f286f12f8 parent 1a9e9ef684ec2bd27fcdb373a82957a0c050daf6 author Samuel Ortiz Wed, 27 Sep 2006 20:05:38 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:46 -0700 [IrDA]: af_irda.c cleanups We lock the socket when both releasing and getting a disconnected notification. In the latter case, we also ste the socket as orphan. This fixes a potential kernel bug that can be triggered when we get the disconnection notification before closing the socket. Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 1a9e9ef684ec2bd27fcdb373a82957a0c050daf6 tree ffe9696b24a6d62de6c61f20233224e7f8aefcb6 parent 8122adf06e6f93ae608cf8227e878cc44f4a8fd1 author Herbert Xu Wed, 27 Sep 2006 19:03:36 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:45 -0700 [IPV6]: Disable SG for GSO unless we have checksum Because the system won't turn off the SG flag for us we need to do this manually on the IPv6 path. Otherwise we will throw IPv6 packets with bad checksums at the hardware. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 8122adf06e6f93ae608cf8227e878cc44f4a8fd1 tree b83ddb821f85c015e5414817c3d6a1f42a35630c parent 4324a174304d1d826582be5422a976e09d2b1e63 author Al Viro Wed, 27 Sep 2006 18:49:35 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:44 -0700 [XFRM]: xfrm_spi_hash() annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 4324a174304d1d826582be5422a976e09d2b1e63 tree b1d0b1e47e09901ca94419ec94cb31acc542baf1 parent 9916ecb0a6f52f1475fa2f71845227d3c75fb40c author Al Viro Wed, 27 Sep 2006 18:49:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:43 -0700 [XFRM]: fl_ipsec_spi is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 9916ecb0a6f52f1475fa2f71845227d3c75fb40c tree 554243e1ad82c21468b2bff19f4c5db86093ad8b parent 61f4627b2fecce9d5c9645e4b47e75a0c29ad8c3 author Al Viro Wed, 27 Sep 2006 18:48:48 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:42 -0700 [XFRM]: struct xfrm_usersa_id annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 61f4627b2fecce9d5c9645e4b47e75a0c29ad8c3 tree 56eceeeb96291a2fe0f3f5f1ff34de31bf2ec605 parent a252cc2371930debe3162f1ac91467b9791324cb author Al Viro Wed, 27 Sep 2006 18:48:33 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:41 -0700 [XFRM]: xfrm_replay_advance() annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a252cc2371930debe3162f1ac91467b9791324cb tree 9679147dcceac5dd24c97dc9dbe7c63546cf568a parent 6067b2baba32211e84d1ef2dba863422281bd6c7 author Al Viro Wed, 27 Sep 2006 18:48:18 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:40 -0700 [XFRM]: xrfm_replay_check() annotations seq argument is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 6067b2baba32211e84d1ef2dba863422281bd6c7 tree ee954829024c0e96d240bff8cdbec3f056017ab5 parent e037c39bf965ca66fde902e191d849a90de278fe author Al Viro Wed, 27 Sep 2006 18:47:59 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:39 -0700 [XFRM]: xfrm_parse_spi() annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e037c39bf965ca66fde902e191d849a90de278fe tree 2c7738234504e30d7011970c63da57daaf784b42 parent a94cfd19744a568d97b14bbaa500b2a0c3684f34 author Al Viro Wed, 27 Sep 2006 18:47:40 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:38 -0700 [XFRM]: struct xfrm_id annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a94cfd19744a568d97b14bbaa500b2a0c3684f34 tree 1e933aec3969ba63315d147fa39d0103ce311200 parent 26977b4ed728ae911a162b16dbfe1a165b7cf9a1 author Al Viro Wed, 27 Sep 2006 18:47:24 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:37 -0700 [XFRM]: xfrm_state_lookup() annotations spi argument of xfrm_state_lookup() is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 26977b4ed728ae911a162b16dbfe1a165b7cf9a1 tree e70980811cbd0c6a271e3e92cd3c2c48bdea5701 parent 737b5761dfc609b5be4163deb2cf09226f56bcbc author Al Viro Wed, 27 Sep 2006 18:47:05 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:36 -0700 [XFRM]: xfrm_alloc_spi() annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 737b5761dfc609b5be4163deb2cf09226f56bcbc tree a9ac88da54380293245672095a311934706c8100 parent 5f19343fb19613539355296b23cbc08d1336b52d author Al Viro Wed, 27 Sep 2006 18:46:48 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:35 -0700 [XFRM]: xfrm_address_t annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 5f19343fb19613539355296b23cbc08d1336b52d tree 122996f66a4dde454dfdadc7ba25bbb8808ea13c parent 8f83f23e6db8b9a9fe787d02f73489224668c4e2 author Al Viro Wed, 27 Sep 2006 18:46:32 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:34 -0700 [XFRM]: addr_match() annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 8f83f23e6db8b9a9fe787d02f73489224668c4e2 tree 23348f11be718d24229ced9c49c0d2c82c759104 parent f9d07e41f89e7305eb2c0475c170c51d21425581 author Al Viro Wed, 27 Sep 2006 18:46:11 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:33 -0700 [XFRM]: ports in struct xfrm_selector annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit f9d07e41f89e7305eb2c0475c170c51d21425581 tree 9cfdb75f75ffcb6160fcfe579713b6daba538df1 parent e2e38e819bd03e9674c102aaa2c9dc8151a3c3d0 author Al Viro Wed, 27 Sep 2006 18:45:50 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:32 -0700 [XFRM]: xfrm_flowi_[sd]port() annotations both return net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e2e38e819bd03e9674c102aaa2c9dc8151a3c3d0 tree aae0e7e66dbd43d895a28d3f9c6730ef3433565f parent 43505077df075545e9b28b7c6ea12d82b3caf036 author Al Viro Wed, 27 Sep 2006 18:45:27 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:31 -0700 [IPV6]: sin6_port is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 43505077df075545e9b28b7c6ea12d82b3caf036 tree f7a2d58b96c78fdefb025128d6802168911ef065 parent 48818f822d2b2e16f4bf4d1ed1185e7d2146dc34 author Al Viro Wed, 27 Sep 2006 18:45:11 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:30 -0700 [IPV6]: IPv6 headers annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 48818f822d2b2e16f4bf4d1ed1185e7d2146dc34 tree 2dbc1c04e79f773b0805aff0da9547e857035ea1 parent 9f8552996d969f56039ec88128cf5ad35b12f141 author Al Viro Wed, 27 Sep 2006 18:44:54 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:30 -0700 [IPV6]: struct in6_addr annotations in6_addr elements are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 9f8552996d969f56039ec88128cf5ad35b12f141 tree a17cf32c4e661e0fd2a674534f41e35d827debb8 parent 82103232edc4b4ed48949a195aca93cfa3fe3fa8 author Al Viro Wed, 27 Sep 2006 18:44:30 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:29 -0700 [IPV4]: inet_diag annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 82103232edc4b4ed48949a195aca93cfa3fe3fa8 tree 59df0023c030b466bb4398cf7a42ac3121c8ec09 parent 23f33c2d4fd5986243b67a2bf5e63ebae1a76ffa author Al Viro Wed, 27 Sep 2006 18:44:10 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:28 -0700 [IPV4]: inet_rcv_saddr() annotations inet_rcv_saddr() returns net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 23f33c2d4fd5986243b67a2bf5e63ebae1a76ffa tree 17c3315cd4d8f4aa86a45b9e069b57d9f9c46299 parent fb99c848e5ae6b8b2bc11f0f90c9e2bb3d702c0d author Al Viro Wed, 27 Sep 2006 18:43:50 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:27 -0700 [IPV4]: struct inet_timewait_sock annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit fb99c848e5ae6b8b2bc11f0f90c9e2bb3d702c0d tree 843afd532897b2034769c7260436c49455f0d34d parent 4f765d842fa6e6fe15d555b247b640118d65b4dd author Al Viro Wed, 27 Sep 2006 18:43:33 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:26 -0700 [IPV4]: annotate inet_lookup() and friends inet_lookup() annotated along with helper functions (__inet_lookup(), __inet_lookup_established(), inet_lookup_established(), inet_lookup_listener(), __inet_lookup_listener() and inet_ehashfn()) Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 4f765d842fa6e6fe15d555b247b640118d65b4dd tree 7a7d3ef7f8013c76811558c045d7aacfc7feeaff parent 45d60b9e29556a7831812ec338d82f4d3a4145f8 author Al Viro Wed, 27 Sep 2006 18:43:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:25 -0700 [IPV4]: INET_MATCH() annotations INET_MATCH() and friends depend on an interesting set of kludges: * there's a pair of adjacent fields in struct inet_sock - __be16 dport followed by __u16 num. We want to search by pair, so we combine the keys into a single 32bit value and compare with 32bit value read from &...->dport. * on 64bit targets we combine comparisons with pair of adjacent __be32 fields in the same way. Make sure that we don't mix those values with anything else and that pairs we form them from have correct types. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 45d60b9e29556a7831812ec338d82f4d3a4145f8 tree 9a75754845b8935483464dc6470ac5b340385c12 parent 81f7bf6cbaca02c034b0393c51fc22b29cba20f7 author Al Viro Wed, 27 Sep 2006 18:40:27 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:24 -0700 [IPV4]: FRA_{DST,SRC} annotated use be32 netlink accessors for those Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 81f7bf6cbaca02c034b0393c51fc22b29cba20f7 tree e0da3b9060cb955588895c0c73547df6cc74a8bc parent 114c7844f34c1608aec20ae7ff85cec471ac90ae author Al Viro Wed, 27 Sep 2006 18:40:00 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:23 -0700 [IPV4]: net/ipv4/fib annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 114c7844f34c1608aec20ae7ff85cec471ac90ae tree f1cd7e413187004d6af8bdd62f20ffa6252d4a0b parent 1b620154273d5cc57690e0d199282c6bb9e56974 author Al Viro Wed, 27 Sep 2006 18:39:29 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:22 -0700 [IPV4]: mroute annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 1b620154273d5cc57690e0d199282c6bb9e56974 tree a98f81594b4c5a214ece8b458e174fd273f98520 parent df7a3b07c28e7b547d8252a237299e32880b505d author Al Viro Wed, 27 Sep 2006 18:39:09 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:21 -0700 [IPV4]: PIMv2 header annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit df7a3b07c28e7b547d8252a237299e32880b505d tree b1efe4d8b46b4adaee380cda4b5cc647f0fc397b parent b03d73e30c1b29a365f085bca5214a14c6df3859 author Al Viro Wed, 27 Sep 2006 18:38:52 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:20 -0700 [TCP] net/ipv4/tcp_output.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit b03d73e30c1b29a365f085bca5214a14c6df3859 tree 729c73b7c24a67f8bb27cb6cc2a602470efc1cf1 parent b1dd39ac963040c2d282ab8026b9c9aa9306ea06 author Al Viro Wed, 27 Sep 2006 18:38:30 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:19 -0700 [IPV4] net/ipv4/icmp.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit b1dd39ac963040c2d282ab8026b9c9aa9306ea06 tree 03487b6f675680e636bd6d30aaddcd3d0d451195 parent 734ab87f632e94dfd4299f4d4d1d10668548f9d8 author Al Viro Wed, 27 Sep 2006 18:38:13 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:18 -0700 [IPV4]: ICMP header annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 734ab87f632e94dfd4299f4d4d1d10668548f9d8 tree da5225f270efbb1e345c9967626893227e6806bf parent 4e7e0c7592cafe5453e5b2f115fc0065d11b3d44 author Al Viro Wed, 27 Sep 2006 18:37:41 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:17 -0700 [UDP] net/ipv4/udp.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 4e7e0c7592cafe5453e5b2f115fc0065d11b3d44 tree eca3be8dede072c4337143295734064069b8c13b parent 6b72977bd6c6fefc6497d4f0275079f539eaf0ac author Al Viro Wed, 27 Sep 2006 18:37:19 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:16 -0700 [IPV4]: UDP header annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 6b72977bd6c6fefc6497d4f0275079f539eaf0ac tree e4ed422550c98ebe8a51abe6f0cf12f2d074b926 parent ed9bad06eec5ee7842851f9abeb406e9a73084e8 author Al Viro Wed, 27 Sep 2006 18:36:59 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:15 -0700 [IPV4]: inet_csk_search_req() annotations rport argument is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit ed9bad06eec5ee7842851f9abeb406e9a73084e8 tree b1bb4dd10f067bd42fc2a367080c612d4a6c34d8 parent bd6d610a14f2ed896b76dfb61fbdec829e44b8d3 author Al Viro Wed, 27 Sep 2006 18:36:36 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:14 -0700 [IPV4] net/ipv4/arp.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit bd6d610a14f2ed896b76dfb61fbdec829e44b8d3 tree edc583634cd10646f3920cc04de86afbeac7e714 parent e11be94bf6a3bfc90816d37847e6b5b179ca2ff6 author Al Viro Wed, 27 Sep 2006 18:35:47 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:13 -0700 [IPV4]: ARP header annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e11be94bf6a3bfc90816d37847e6b5b179ca2ff6 tree cbfb22254750354bffabc25b2c2bda054f24aa4e parent 4f3608b787f471e8e6b9f39c5ed1edde5a2e7d04 author Al Viro Wed, 27 Sep 2006 18:35:29 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:12 -0700 [IPV4]: struct inet_request_sock annotations ->port is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 4f3608b787f471e8e6b9f39c5ed1edde5a2e7d04 tree 8caf222862ba3fda6e511bf483654a51d0ae54cc parent 39dccd9d922b595301e5d43ca7a30823d81393b6 author Al Viro Wed, 27 Sep 2006 18:35:09 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:11 -0700 [TCP] net/ipv4/tcp_input.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 39dccd9d922b595301e5d43ca7a30823d81393b6 tree bc524d2da8fdc14fab5c4ce2e0a4426f2c3f7f25 parent 35986b329f5476630cef00cc7a164ff336ec1a21 author Al Viro Wed, 27 Sep 2006 18:34:41 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:10 -0700 [IPV4]: route.h annotations ip_route_connect(), ip_route_newports() get port numbers net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 35986b329f5476630cef00cc7a164ff336ec1a21 tree c9125a35a00a981b6a3daea76af8ac71042647cc parent b406313c733156c8eea7d9c1891476f400914367 author Al Viro Wed, 27 Sep 2006 18:34:21 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:09 -0700 [IPV4]: ip_icmp_error() annotations port is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit b406313c733156c8eea7d9c1891476f400914367 tree 62ed28c8991a6953b74ad3486426fc78b9ea57e6 parent 0579016ec4691116f6322ec6ed7fb7ce746948e9 author Al Viro Wed, 27 Sep 2006 18:34:02 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:08 -0700 [NET]: struct sock_exterr_skb annotations ->port is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 0579016ec4691116f6322ec6ed7fb7ce746948e9 tree 9149400d6294f0a47df8aa0a4a2dd829d72011ab parent cc939d37349bf82891bd1f4558284d7fafe7acb2 author Al Viro Wed, 27 Sep 2006 18:33:40 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:08 -0700 [IPV4]: ip_local_error() annotations port argument is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit cc939d37349bf82891bd1f4558284d7fafe7acb2 tree 0abc4445a7cd2077c84dde0d9b28af3f99269cf7 parent 2816e1284a2db03ad5e205bab4eacbc5f7d4f991 author Al Viro Wed, 27 Sep 2006 18:33:22 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:07 -0700 [NET]: ip ports in struct flowi are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 2816e1284a2db03ad5e205bab4eacbc5f7d4f991 tree 31a4669c50d29270a8a4c0e3ae2010329893ba06 parent dddc93c05d7dba60b44866486502c155e96ab915 author Al Viro Wed, 27 Sep 2006 18:33:05 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:06 -0700 [IPV4]: ports in struct inet_sock are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit dddc93c05d7dba60b44866486502c155e96ab915 tree d8126e1d55e6fd9147d9342896ad9c8e89dc2c79 parent 269bd27e66037a7932cee6d6aa7ef7defd0bfe38 author Al Viro Wed, 27 Sep 2006 18:32:46 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:05 -0700 [TCP]: struct tcp_sock .pred_flags is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 269bd27e66037a7932cee6d6aa7ef7defd0bfe38 tree 92b1694b00ee61777bd6976d32cb283effdf9172 parent 46a97324a5ebdc1e343a0223d993e79551adab0f author Al Viro Wed, 27 Sep 2006 18:32:28 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:04 -0700 [TCP]: struct tcp_sack_block annotations Some of the instances of tcp_sack_block are host-endian, some - net-endian. Define struct tcp_sack_block_wire identical to struct tcp_sack_block with u32 replaced with __be32; annotate uses of tcp_sack_block replacing net-endian ones with tcp_sack_block_wire. Change is obviously safe since for cc(1) __be32 is typedefed to u32. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 46a97324a5ebdc1e343a0223d993e79551adab0f tree 0d33307b5061a94a2d4324780263b72543e15cd7 parent 63007727e0bb09e8d906f73d36a09b9fac0d5893 author Al Viro Wed, 27 Sep 2006 18:31:51 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:03 -0700 [IPV4]: TCP headers annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 63007727e0bb09e8d906f73d36a09b9fac0d5893 tree 015d2627d9a28e2b81989d3b82d130c32f138d5f parent c0cda068aac3481d40795b115e4fd36f7d386e3a author Al Viro Wed, 27 Sep 2006 18:31:32 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:02 -0700 [IPV4]: trivial igmp annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit c0cda068aac3481d40795b115e4fd36f7d386e3a tree 61dd1789701cc9c30f8a27577fd62af7e9f7d7c6 parent ea4d9e7220d32348cc9742ba6d27de5165262664 author Al Viro Wed, 27 Sep 2006 18:31:10 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:01 -0700 [IPV4]: ip_mc_sf_allow() annotated ip_mc_sf_allow() expects addresses to be passed net-endian. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit ea4d9e7220d32348cc9742ba6d27de5165262664 tree 4281211a94b6f7e68f96ebb5912086bbdfa8eac2 parent 942bf921e922560c05fde6afb00ddedf6224c608 author Al Viro Wed, 27 Sep 2006 18:30:52 -0700 committer David S. Miller Thu, 28 Sep 2006 18:02:00 -0700 [IPV4]: struct ip_sf_list and struct ip_sf_socklist annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 942bf921e922560c05fde6afb00ddedf6224c608 tree 83a53a8e56f9f33c482802e223048e348e1eb8a5 parent 8f935bbd7c6c66796c2403aefdab74bb48045bf6 author Al Viro Wed, 27 Sep 2006 18:30:28 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:59 -0700 [IPV4]: IGMP on-the-wire data is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 8f935bbd7c6c66796c2403aefdab74bb48045bf6 tree 500b6cb37a536cdf4b63b6d33c53bdc6c752b228 parent 00a5020cd51febbb3166ff7a09a2901c47ba251a author Al Viro Wed, 27 Sep 2006 18:30:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:58 -0700 [IPV4]: ip_mc_{inc,dec}_group() annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 00a5020cd51febbb3166ff7a09a2901c47ba251a tree 81019d6669d6ee1a69b40ff845ceeb093be9f86a parent 4b06a7cf2f3c053e7fc47ca6a4c74553e2291e24 author Al Viro Wed, 27 Sep 2006 18:29:47 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:57 -0700 [IPV4]: annotate ipv4 address fields in struct ip_msfilter and struct ip_mreq_source Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 4b06a7cf2f3c053e7fc47ca6a4c74553e2291e24 tree 551d4742937279bb148d035889955baa9825ffc3 parent e25d2ca6b2808c427704b01608baf0f7dea1696e author Al Viro Wed, 27 Sep 2006 18:29:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:56 -0700 [IPV4]: ip_local_error() ipv4 address argument annotated daddr is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e25d2ca6b2808c427704b01608baf0f7dea1696e tree ff0e7ffb3ac5230a5e97e18b7d9a4667cbb2e09a parent c1d18f9fa09489635a451ee13c1727e1683c2333 author Al Viro Wed, 27 Sep 2006 18:28:47 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:55 -0700 [IPV4]: trivial ip_options.c annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit c1d18f9fa09489635a451ee13c1727e1683c2333 tree f44abb3c8ac44ec7113c00d2ca86bb2e33488464 parent 3ca3c68e76686bee058937ade2b96f4de58ee434 author Al Viro Wed, 27 Sep 2006 18:28:28 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:54 -0700 [IPV4]: struct ipcm_cookie annotation ->addr is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 3ca3c68e76686bee058937ade2b96f4de58ee434 tree 13319a2f2a7f53c41746a32a5635254c157fe87e parent 7f25afbbefb266520a237df0e9b59112704a7a42 author Al Viro Wed, 27 Sep 2006 18:28:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:53 -0700 [IPV4]: struct ip_options annotations ->faddr is net-endian; annotated as such, variables inferred to be net-endian annotated. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 7f25afbbefb266520a237df0e9b59112704a7a42 tree 2a394c336c6cb4c4c331c9fe6ba90ec60ec25160 parent adaf345b537681c6ed3657941904d976fe72f342 author Al Viro Wed, 27 Sep 2006 18:27:47 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:52 -0700 [IPV4]: inet_csk_search_req() (partial) annotations raddr is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit adaf345b537681c6ed3657941904d976fe72f342 tree 14912ce41908193e03bb1e570329e234448726bb parent 85670cc1faa2e1472e4a423cbf0b5e3d55c5ba88 author Al Viro Wed, 27 Sep 2006 18:27:13 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:51 -0700 [IPV4]: annotate address in inet_request_sock Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 85670cc1faa2e1472e4a423cbf0b5e3d55c5ba88 tree a5da67836995f1b04c844071db97608bc2c37b85 parent 787e0617e5176176c494a787f1b0a5248a3db568 author Patrick McHardy Wed, 27 Sep 2006 16:45:45 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:50 -0700 [NET_SCHED]: Fix fallout from dev->qdisc RCU change The move of qdisc destruction to a rcu callback broke locking in the entire qdisc layer by invalidating previously valid assumptions about the context in which changes to the qdisc tree occur. The two assumptions were: - since changes only happen in process context, read_lock doesn't need bottem half protection. Now invalid since destruction of inner qdiscs, classifiers, actions and estimators happens in the RCU callback unless they're manually deleted, resulting in dead-locks when read_lock in process context is interrupted by write_lock_bh in bottem half context. - since changes only happen under the RTNL, no additional locking is necessary for data not used during packet processing (f.e. u32_list). Again, since destruction now happens in the RCU callback, this assumption is not valid anymore, causing races while using this data, which can result in corruption or use-after-free. Instead of "fixing" this by disabling bottem halfs everywhere and adding new locks/refcounting, this patch makes these assumptions valid again by moving destruction back to process context. Since only the dev->qdisc pointer is protected by RCU, but ->enqueue and the qdisc tree are still protected by dev->qdisc_lock, destruction of the tree can be performed immediately and only the final free needs to happen in the rcu callback to make sure dev_queue_xmit doesn't access already freed memory. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 787e0617e5176176c494a787f1b0a5248a3db568 tree 1ea176bcc24937619d52759016ccf70b4927733d parent 321efff7c3b7a26fa0522cb12b2af2ac82c05f1e author Patrick McHardy Wed, 27 Sep 2006 16:36:23 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:49 -0700 [NET_SCHED]: HTB: fix incorrect use of RB_EMPTY_NODE Fix incorrect use of RB_EMPTY_NODE in htb_safe_rb_erase, which makes it skip nodes within the rbtree instead of nodes not in the tree, resulting in crashes later on. The root cause for this seems to be the very counter-intuitive behaviour of the RB_EMPTY_NODE macro, which returns _false_ when the node is empty. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 321efff7c3b7a26fa0522cb12b2af2ac82c05f1e tree 4cf5ef42a015559aa063500da21e5e8559dc4746 parent f0e82fd0e5ad8494985ddfca7de89a800cf96fb8 author Olaf Kirch Wed, 27 Sep 2006 16:33:45 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:48 -0700 [IPV4]: Fix order in inet_init failure path. This is just a minor buglet I came across by accident - when inet_init fails to register raw_prot, it jumps to out_unregister_udp_proto which should unregister UDP _and_ TCP. Signed-off-by: Olaf Kirch Signed-off-by: David S. Miller commit f0e82fd0e5ad8494985ddfca7de89a800cf96fb8 tree 19ef02d1f6723b252a115e78c11f93ae5017af93 parent 1ca7768c87ac1393228857d576654f7e84c8cee6 author Francesco Fondelli Wed, 27 Sep 2006 16:33:05 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:48 -0700 [PKTGEN]: Documentation update Signed-off-by: Francesco Fondelli Signed-off-by: Robert Olsson Signed-off-by: David S. Miller commit 1ca7768c87ac1393228857d576654f7e84c8cee6 tree 0be67f8f07ca1e245892dd093b2464851933d2a9 parent 34954ddc4f3e790fb6d5ed331513f54b38713234 author Francesco Fondelli Wed, 27 Sep 2006 16:32:03 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:47 -0700 [PKTGEN]: DSCP support Anyway, I've been asked to add support for managing DSCP codepoints, so one can test DiffServ capable routers. It's very simple code and is working for me. Signed-off-by: Francesco Fondelli Signed-off-by: Robert Olsson Signed-off-by: David S. Miller commit 34954ddc4f3e790fb6d5ed331513f54b38713234 tree d0bdd9f7b3a5240cb65a5944ad1ba94e3317016c parent 658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4 author Francesco Fondelli Wed, 27 Sep 2006 16:30:44 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:46 -0700 [PKTGEN]: vlan support The attached patch allows pktgen to produce 802.1Q and Q-in-Q tagged frames. I have used it for stress test a bridge and seems ok to me. Unfortunately I have no access to net-2.6.x git tree so the diff is against 2.6.17.13. Signed-off-by: Francesco Fondelli Acked-by: Steven Whitehouse Signed-off-by: Robert Olsson Signed-off-by: David S. Miller commit 658270a0a49612a0e3fdc01c2e8c0e1a6d47cbf4 tree a0210099c1136df9c3fc7478bde9050cb310e192 parent c9aa6895371b2a257401f59d3393c9f7ac5a8698 author Kim Nordlund Wed, 27 Sep 2006 16:19:53 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:45 -0700 [PKT_SCHED] cls_basic: Use unsigned int when generating handle Prevents filters from being added if the first generated handle already exists. Signed-off-by: Kim Nordlund Signed-off-by: Thomas Graf commit c9aa6895371b2a257401f59d3393c9f7ac5a8698 tree 1ee6813a6db0e4d1b7f77e8c002e37bc9411a420 parent 1533d382155ee888d9621391c108ffb7a68bb25d author Michal Ostrowski Wed, 27 Sep 2006 16:11:25 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:44 -0700 [PPPOE]: Advertise PPPoE MTU PPPoE must advertise the underlying device's MTU via the ppp channel descriptor structure, as multilink functionality depends on it. Signed-off-by: Michal Ostrowski Acked-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 1533d382155ee888d9621391c108ffb7a68bb25d tree 92e59711126e7213d0c4a5a3661f4ab0e414addd parent b16250e3d1c55820f08f0296624a423122ea9805 author Michael Chan Wed, 27 Sep 2006 16:10:35 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:43 -0700 [TG3]: Update version and reldate. Update version to 3.66. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit b16250e3d1c55820f08f0296624a423122ea9805 tree 9559f4acd5e740b727c42e635699b7427f21d3c3 parent 715116a12610b67c1d301a9b845ce95f7247dad3 author Michael Chan Wed, 27 Sep 2006 16:10:14 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:42 -0700 [TG3]: Add 5709 self-test support. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 715116a12610b67c1d301a9b845ce95f7247dad3 tree 1f9b680e4cfc32cc7759b82481f104eae6e22f24 parent b5d3772ccbe0bc5ac8ffbb5356b74ca698aee28c author Michael Chan Wed, 27 Sep 2006 16:09:25 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:41 -0700 [TG3]: Add 5709 PHY support. Add support for the 5709 10/100 PHY. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit b5d3772ccbe0bc5ac8ffbb5356b74ca698aee28c tree ef5f1e64d6e656a4931e22efed5809eb42d0e39f parent 7a6f4369449a471a6e5718a87c53ac75a46960ba author Michael Chan Wed, 27 Sep 2006 16:06:21 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:40 -0700 [TG3]: Add basic 5906 support. Add support for the new 5709 device. This is a new 10/100 Mbps chip. The mailbox access and firmware interface are quite different from all other tg3 chips. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 7a6f4369449a471a6e5718a87c53ac75a46960ba tree 16de5bf219d8c9730ff4ac0f4a06eb9b0e975f73 parent 126a336822a6594662f5898f1ddf33e6d048fcc7 author Michael Chan Wed, 27 Sep 2006 16:03:31 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:39 -0700 [TG3]: Add tg3_poll_fw(). Put the firmware polling logic into a separate function. This makes the code cleaner. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 126a336822a6594662f5898f1ddf33e6d048fcc7 tree b8bf224c080868d0f2e89c55eef1b23e2b6a2bc9 parent 3f7045c1f28bedd44389b9392b54c6fdb83ee5c6 author Michael Chan Wed, 27 Sep 2006 16:03:07 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:38 -0700 [TG3]: Add 5722 and 5756 support. Add IDs to support 5722 and 5756. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 3f7045c1f28bedd44389b9392b54c6fdb83ee5c6 tree c504ff6ea5aa82500a43929fe10333060bc691d1 parent 130b8e4d0e4edadcecee9fdff2c32f33d77c4fe9 author Michael Chan Wed, 27 Sep 2006 16:02:29 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:36 -0700 [TG3]: PHY fixes. Some PHY related fixes: 1. Fix Serdes WoL. 2. Fix loopback test on 10/100 only devices. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 130b8e4d0e4edadcecee9fdff2c32f33d77c4fe9 tree 1c0f165309fa5a6b5d23fdad038ae932470d0cf9 parent 3d3ebe741b2c06fe3df67739d09f6ef0e25ee41a author Michael Chan Wed, 27 Sep 2006 16:00:40 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:35 -0700 [TG3]: Improve ASF heartbeat. Change to a different ASF heartbeat message code to improve reliability. There were some reports of unintended resets on real time kernels where the timer may be slow and cause the heartbeat to be late. Netpoll will also have the same problem because the timer irq will be unavailable. Using the new heartbeat code, the ASF firmware will also check the ring condition before resetting the chip when the heartbeat is expiring. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 3d3ebe741b2c06fe3df67739d09f6ef0e25ee41a tree f9112f5b5beac57673a26563a3a50517c5c96798 parent 6ac59344ef25d5f0ebadb5663cf700d25d2a3886 author Michael Chan Wed, 27 Sep 2006 15:59:15 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:34 -0700 [TG3]: Improve 5704S autoneg. Improve 5704S autoneg logic by using a serdes_counter field to keep track of the transient states. This eliminates a 200 msec busy loop in the code. Autoneg will take its course without the driver busy waiting for it to finish. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 6ac59344ef25d5f0ebadb5663cf700d25d2a3886 tree b4dbdf1589e0a7b6d3ed04d38fb7615a54f0d7af parent 1143e5a6d4d69cd36d44e0184769aa2b17041a10 author Marcel Holtmann Tue, 26 Sep 2006 09:43:48 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:33 -0700 [Bluetooth] Support create connection cancel command In case of non-blocking connects it is possible that the last user of an ACL link quits before the connection has been fully established. This will lead to a race condition where the internal state of a connection is closed, but the actual link has been established and is active. In case of Bluetooth 1.2 and later devices it is possible to call create connection cancel to abort the connect. For older devices the disconnect timer will be used to trigger the needed disconnect. Signed-off-by: Marcel Holtmann commit 1143e5a6d4d69cd36d44e0184769aa2b17041a10 tree e3fb71220eb08c0c0b03ec7f76655818338643b5 parent b4c612a473eb816dff6e5ab6820dff338057aa8d author Marcel Holtmann Sat, 23 Sep 2006 09:57:20 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:32 -0700 [Bluetooth] Read local version information on device init The local version information are needed to identify certain feature sets of devices. They must be read on device init and stored for later use. It is also possible to access them through the device model. Signed-off-by: Marcel Holtmann commit b4c612a473eb816dff6e5ab6820dff338057aa8d tree 26d2a88e2355ec9852abf4f70b7990087da3a58c parent 7785162cf2baf7c6c1e4ad8ae5888f85fcc5febc author Marcel Holtmann Sat, 23 Sep 2006 09:54:38 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:31 -0700 [Bluetooth] Return EINPROGRESS for non-blocking socket calls In case of non-blocking socket calls we should return EINPROGRESS and not EAGAIN. Signed-off-by: Ulisses Furquim Signed-off-by: Marcel Holtmann commit 7785162cf2baf7c6c1e4ad8ae5888f85fcc5febc tree 440e68917ac0f276bbfa32e58d79b29666220b9f parent 62ae15919b6db6644049338296624fbd724c0054 author Marcel Holtmann Thu, 21 Sep 2006 16:23:19 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:30 -0700 [Bluetooth] Code cleanup for the HCI UART driver This patch cleans up the Bluetooth HCI UART driver a bit. Signed-off-by: Pavel Machek Signed-off-by: Marcel Holtmann commit 62ae15919b6db6644049338296624fbd724c0054 tree 7556180e6f3ccc6f7e63028520ec84df81a1f776 parent defc761bc25643eeedee3abd6af0079ef214b55d author Marcel Holtmann Thu, 21 Sep 2006 16:19:55 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:29 -0700 [Bluetooth] Add support for Canyon CN-BTU1 dongle This patch adds the vendor and product id of the Canycon CN-BTU1 dongle and sets a flag to send HCI_Reset as the first command. Signed-off-by: Marcel Holtmann commit defc761bc25643eeedee3abd6af0079ef214b55d tree 4ac4e3584629345f8c20f5dcaace2cb011fa9a94 parent 0ac53939a06c610b394aeb0211b985804f2d2da3 author Marcel Holtmann Thu, 21 Sep 2006 16:04:00 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:29 -0700 [Bluetooth] Handle command complete event for exit periodic inquiry The command complete event of the exit periodic inquiry command must clear the HCI_INQUIRY flag and finish the HCI request. Signed-off-by: Marcel Holtmann commit 0ac53939a06c610b394aeb0211b985804f2d2da3 tree 40e4b80f70a7cd42705e49a817950857055f2d1b parent 9c724357f432df5ddc83a62c8168414a604cd420 author Marcel Holtmann Sat, 08 Jul 2006 13:57:15 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:28 -0700 [Bluetooth] Add HCI device identifier for SDIO cards This patch assigns the next free HCI device identifier to Bluetooth devices based on the SDIO interface. Signed-off-by: Marcel Holtmann commit 9c724357f432df5ddc83a62c8168414a604cd420 tree d0a31bb522fbc78f4a813a9be81c7a5c34a9426b parent 0a85b964e141a4b8db6eaf500ceace12f8f52f93 author Marcel Holtmann Thu, 06 Jul 2006 15:45:23 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:27 -0700 [Bluetooth] Code cleanup of the drivers source code This patch is an attempt to cleanup the drivers source code to make all Bluetooth drivers look more unique. Signed-off-by: Marcel Holtmann commit 0a85b964e141a4b8db6eaf500ceace12f8f52f93 tree 8479bdc23230d7c1fa581af15199d7bef7268231 parent b219e3ac66183fc9771b94af931fb5fd41d586ec author Marcel Holtmann Thu, 06 Jul 2006 13:09:02 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:26 -0700 [Bluetooth] Integrate services into the driver model This patch integrates the services of the Bluetooth protocols RFCOMM, BNEP and HIDP into the driver model. This makes it possible to assign the virtual TTY, network and input devices to a specific Bluetooth connection. Signed-off-by: Marcel Holtmann commit b219e3ac66183fc9771b94af931fb5fd41d586ec tree 671a6a553c6744fce2eb35c6508249cbc616c326 parent 4d0eb0049ce94101f7f169f89216ba58475219e2 author Marcel Holtmann Thu, 06 Jul 2006 12:38:46 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:25 -0700 [Bluetooth] Integrate low-level connections into the driver model This patch integrates the low-level connections (ACL and SCO) into the driver model. Every connection is presented as device with the parent set to its host controller device. Signed-off-by: Marcel Holtmann commit 4d0eb0049ce94101f7f169f89216ba58475219e2 tree ed203109e89d7bf1cb6f92a833b592bab1a7fd9d parent 9918f230969bdaf3df012b77abcbcd4cdb0ab221 author Marcel Holtmann Thu, 06 Jul 2006 12:34:41 +0200 committer David S. Miller Thu, 28 Sep 2006 18:01:24 -0700 [Bluetooth] Remove unused host controller attributes This patch removes the unused device attribute entries for the Bluetooth host controllers. Signed-off-by: Marcel Holtmann commit 9918f230969bdaf3df012b77abcbcd4cdb0ab221 tree 8cad5227f352a2a0756b2978339eff4b0a5ba0cb parent 753ed90d92009260616f6402aafa7ee47e03b162 author Eric Sesterhenn Tue, 26 Sep 2006 23:26:38 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:23 -0700 [RTNETLINK]: Possible dereference in net/core/rtnetlink.c another possible dereference spotted by coverity (#cid 1390). if the nlmsg_parse() call fails, we goto errout, where we call dev_put(), with dev still initialized to NULL. Signed-off-by: Eric Sesterhenn Signed-off-by: David S. Miller commit 753ed90d92009260616f6402aafa7ee47e03b162 tree 18db9f72bb5ff58961a14c37b1c263301cb120d8 parent d8ed029d6000ba2e2908d9286409e4833c091b4c author Al Viro Tue, 26 Sep 2006 22:30:23 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:22 -0700 [SUNRPC]: more sunrpc endianness annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit d8ed029d6000ba2e2908d9286409e4833c091b4c tree 732feaa2e3751df5c81032a30ff4761427492ac4 parent 7699431301b189fca7ccbb64fe54e5a5170f8497 author Alexey Dobriyan Tue, 26 Sep 2006 22:29:38 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:21 -0700 [SUNRPC]: trivial endianness annotations pure s/u32/__be32/ [AV: large part based on Alexey's patches] Signed-off-by: Alexey Dobriyan Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 7699431301b189fca7ccbb64fe54e5a5170f8497 tree 4c20c5121776984cb054de3e0759cbeae860de3a parent 13d8eaa06abfeb708b60fa64203a20db033088b3 author Alexey Dobriyan Tue, 26 Sep 2006 22:28:46 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:20 -0700 [SUNRPC]: svc_{get,put}nl() * add svc_getnl(): Take network-endian value from buffer, convert to host-endian and return it. * add svc_putnl(): Take host-endian value, convert to network-endian and put it into a buffer. * annotate svc_getu32()/svc_putu32() as dealing with network-endian. * convert to svc_getnl(), svc_putnl(). [AV: in large part it's a carved-up Alexey's patch] Signed-off-by: Alexey Dobriyan Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 13d8eaa06abfeb708b60fa64203a20db033088b3 tree 87fb8643226444ec20368fe7d274b2e84e8e1910 parent 8712f774dc47ec6353c9b75317d6db62e58d9367 author Al Viro Tue, 26 Sep 2006 22:27:30 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:19 -0700 [IPV4]: ip_build_and_send_pkt() annotations saddr and daddr are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 8712f774dc47ec6353c9b75317d6db62e58d9367 tree 86a3298c55963e3248f4ea4c335b27b3160d583a parent e8192f367cb3dcbefaa4109d26f3b1645b0c6b56 author Al Viro Tue, 26 Sep 2006 22:27:05 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:18 -0700 [IPV4]: ip_options_build() annotations daddr is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e8192f367cb3dcbefaa4109d26f3b1645b0c6b56 tree 983e897fce2b94831b64b125b16fba386cc66325 parent f20f4a60d74b0d7e2a5dafd5e7d5760f44ce2f30 author Al Viro Tue, 26 Sep 2006 22:26:21 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:17 -0700 [IPV4] bug: broken open-coded inet_make_mask() (multipath_wrandom) multipath_wrandom.c::__multipath_lookup_weight() contains open-coded attempt at inet_make_mask(); broken on big-endian. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit f20f4a60d74b0d7e2a5dafd5e7d5760f44ce2f30 tree 2451900886ea445774cf024d05ca84d4aa864757 parent d9cd66e0e593929077b5ecf87384e23db7271c6e author Al Viro Tue, 26 Sep 2006 22:25:13 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:16 -0700 [IPV4] multipath_wrandom.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit d9cd66e0e593929077b5ecf87384e23db7271c6e tree 88687af48f84fff9329060b7b286a52083dea997 parent 32ab5f80334fc067386c4c56c434010c01cff6b9 author Al Viro Tue, 26 Sep 2006 22:22:50 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:15 -0700 [IPV4]: multipath_set_nhinfo() annotations multipath_set_nhinfo() (and underlying callback) take net-endian network and netmask. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 32ab5f80334fc067386c4c56c434010c01cff6b9 tree a3cac70ec86e94f90df6a54f251a0893bd98585d parent 1e8aa6f125d959d1a9f16a3f15e9ebbc6df63935 author Al Viro Tue, 26 Sep 2006 22:21:45 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:14 -0700 [IPV4] fib_trie.c: trivial annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 1e8aa6f125d959d1a9f16a3f15e9ebbc6df63935 tree bd3a60b326edf2096556cf6b34faecf64c4a3414 parent 1ef1b8c85bb4954b7dca816f1bb7fd54bcd78078 author Al Viro Tue, 26 Sep 2006 22:21:22 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:13 -0700 [IPV4] bug: open-coded inet_make_mask() in fib_semantic_match() is broken ... and works only on little-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 1ef1b8c85bb4954b7dca816f1bb7fd54bcd78078 tree cb5eff99198c273e880f5f6bdb50e9b198dd50bb parent b6e80c6c8b2de8b581e7521af3e118ea379260f1 author Al Viro Tue, 26 Sep 2006 22:20:56 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:12 -0700 [IPV4]: fib_semantic_match() annotations 'mask' and 'zone' arguments are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit b6e80c6c8b2de8b581e7521af3e118ea379260f1 tree b4e71679677889a1f1ee270ca24bf94c760825ad parent 80e856e16a145d7f44f613d9f3d903bf459510ca author Al Viro Tue, 26 Sep 2006 22:20:01 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:11 -0700 [IPV4]: trivial fib_hash.c annotations hash key and stored netmask are net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 80e856e16a145d7f44f613d9f3d903bf459510ca tree e4332afcaa1eb7a57a790c95d3048704525a6c7f parent 182777700d912a69824245e9ee99148ac0aa57d7 author Al Viro Tue, 26 Sep 2006 22:19:36 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:10 -0700 [IPV4]: annotate addresses in fib_result and fib_result_nl Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 182777700d912a69824245e9ee99148ac0aa57d7 tree 027f34a2a3342d59a29dac0d1fef1974e3239f76 parent 53576d9b995605a9edc7414b900a9218c8f23b1f author Al Viro Tue, 26 Sep 2006 22:19:02 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:09 -0700 [IPV4]: ip_fragment.c endianness annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 53576d9b995605a9edc7414b900a9218c8f23b1f tree a0287612fda29ef5908febacecd001f59fe2ff28 parent d878e72e419db9ff4c66848375ee30a19820e4de author Al Viro Tue, 26 Sep 2006 22:18:43 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:09 -0700 [IPV4]: inetpeer annotations This one is interesting - we use net-endian value as search key, but order the tree by *host-endian* comparisons of keys. OK since we only care about lookups. Annotated inet_getpeer() and friends. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit d878e72e419db9ff4c66848375ee30a19820e4de tree 69df883f29c7d140440bb9cc2f47b5d9003d9643 parent fd6832220974809141b3981e380b78690bba8911 author Al Viro Tue, 26 Sep 2006 22:18:13 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:08 -0700 [IPV4]: ip_fib_check_default() annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit fd6832220974809141b3981e380b78690bba8911 tree 60fcf8bb0912b3b2eb91836540fdbb83265ef8e4 parent e4883014f48f8c17c17a2526cb5cb6e17c5f94e7 author Al Viro Tue, 26 Sep 2006 22:17:51 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:07 -0700 [IPV4]: inet_addr_type() annotations argument and inferred net-endian variables in callers annotated. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e4883014f48f8c17c17a2526cb5cb6e17c5f94e7 tree 024030596297b68c3ee3d6a46c031c60c5fc7a44 parent 60cad5da5791ceb0beefe9a79b570cca45791f50 author Al Viro Tue, 26 Sep 2006 22:17:28 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:06 -0700 [IPV4]: icmp_send() annotation The last argument is network-endian (it will go straight into the packet). Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 60cad5da5791ceb0beefe9a79b570cca45791f50 tree a70aaf76021d0824855d48f975ac2a12a14a045d parent a7a628c442ed28511e1569a975c993b27fa034f4 author Al Viro Tue, 26 Sep 2006 22:17:09 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:05 -0700 [IPV4]: annotate inetdev.h helpers inet_confirm_addr(), inet_ifa_byprefix(), ip_dev_find(), inet_make_mask() and inet_ifa_match() annotated, along with inferred net-endian variables Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a7a628c442ed28511e1569a975c993b27fa034f4 tree f0fa844d3a742afbfff63c9a83919a44b8ae8d92 parent a144ea4b7a13087081ab5402fa9ad0bcfd249e67 author Al Viro Tue, 26 Sep 2006 22:16:43 -0700 committer David S. Miller Thu, 28 Sep 2006 18:01:04 -0700 [IPV4]: IFA_{LOCAL,ADDRESS,BROADCAST,ANYCAST} on ipv4 annotated use be32 netlink accessors Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a144ea4b7a13087081ab5402fa9ad0bcfd249e67 tree a0452a546c231d85a89e8920c26e5dec4595ba54 parent 6d85c10abe840e98cbac673202fe7cc9ada2180c author Al Viro Thu, 28 Sep 2006 18:00:55 -0700 committer David S. Miller Thu, 28 Sep 2006 18:00:55 -0700 [IPV4]: annotate struct in_ifaddr ifa_local, ifa_address, ifa_mask, ifa_broadcast and ifa_anycast are net-endian. Annotated them and variables that are inferred to be net-endian. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 6d85c10abe840e98cbac673202fe7cc9ada2180c tree 6f8c6c18c58dfea095cc6f9e0f3e19b3e0303d0c parent 17fb2c64394a2d5106540d69fc83c183ee7c206e author Al Viro Tue, 26 Sep 2006 22:15:46 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:17 -0700 [IPV4]: struct fib_config IPv4 address fields annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 17fb2c64394a2d5106540d69fc83c183ee7c206e tree cfc528dd1dde8a711c63b9b05b2e6d2370d5b2ba parent e448515c79c3785eae225c25e8cd5b90b470d0a6 author Al Viro Tue, 26 Sep 2006 22:15:25 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:16 -0700 [IPV4]: RTA_{DST,SRC,GATEWAY,PREFSRC} annotated these are passed net-endian; use be32 netlink accessors Signed-off-by: Al Viro Signed-off-by: David S. Miller commit e448515c79c3785eae225c25e8cd5b90b470d0a6 tree 193578af763e2664df698352f59cb69ba68def62 parent 00012e5bb9527022cbc843c5d372b282dbe6c4af author Al Viro Tue, 26 Sep 2006 22:15:01 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:15 -0700 [IPV4] net/ipv4/route.c: trivial endianness annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 00012e5bb9527022cbc843c5d372b282dbe6c4af tree fbf1b0dfdda4a7234c4938c66d9b5fa20b97e355 parent b83738ae003dde613712ddb1e90a8a01f5587b51 author Al Viro Tue, 26 Sep 2006 22:14:41 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:14 -0700 [IPV4]: introduce nla_get_be32()/NLA_PUT_BE32() net-endian counterparts of nla_get_u32()/NLA_PUT_U32() Signed-off-by: Al Viro Signed-off-by: David S. Miller commit b83738ae003dde613712ddb1e90a8a01f5587b51 tree 55a60484109b539d6e9dbb359b6dda9071b877fa parent ed49e3caaa6126f8e29f08e8b4fdcafcae431b57 author Al Viro Tue, 26 Sep 2006 22:14:15 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:13 -0700 [IPV4]: FIB_RES_PREFSRC() annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit ed49e3caaa6126f8e29f08e8b4fdcafcae431b57 tree 0b61555bf757e8b708f0e949fcf1d36d593ce98e parent ff428d72c59b35e4ba34bc1b487e707648010fe3 author Al Viro Tue, 26 Sep 2006 22:13:54 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:12 -0700 [IPV4]: fib_hn ->nh_gw is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller commit ff428d72c59b35e4ba34bc1b487e707648010fe3 tree 27fca5deb97e0a91f731327d13510b0050863e7a parent a60c4923da795c74db9ff61a60e2f1df5754e4ce author Al Viro Tue, 26 Sep 2006 22:13:35 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:11 -0700 [IPV4]: inet_addr_onlink() annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a60c4923da795c74db9ff61a60e2f1df5754e4ce tree 70811e8c52e0edab4e27540b91c26f96daec6894 parent d9c9df8c9368f4102324e8c3923edae83974602b author Al Viro Tue, 26 Sep 2006 21:28:34 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:10 -0700 [IPV4]: ip_check_mc() annotations annotated arguments Signed-off-by: Al Viro Signed-off-by: David S. Miller commit d9c9df8c9368f4102324e8c3923edae83974602b tree 11b1df675c261c5fe9ea84e954de276905d6ec40 parent a61ced5d1c2e773620d7855ea2009d770c10a6e6 author Al Viro Tue, 26 Sep 2006 21:28:14 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:09 -0700 [IPV4]: fib_validate_source() annotations annotated arguments and inferred net-endian variables in callers Signed-off-by: Al Viro Signed-off-by: David S. Miller commit a61ced5d1c2e773620d7855ea2009d770c10a6e6 tree ca9d49774eb4740a60e5338d4da51af1c8c862d6 parent 011a92610826bdeec4b80ab423958d4c512639f6 author Al Viro Tue, 26 Sep 2006 21:27:54 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:08 -0700 [IPV4]: inet_select_addr() annotations argument and return value are net-endian. Annotated function and inferred net-endian variables in callers. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 011a92610826bdeec4b80ab423958d4c512639f6 tree f06bf2067a5c6a9ebf87ed30b7c63e2a3d0f2074 parent bada8adc4e6622764205921e6ba3f717aa03c882 author Al Viro Tue, 26 Sep 2006 21:27:35 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:07 -0700 [IPV4]: annotated ipv4 addresses in struct inet_sock Signed-off-by: Al Viro Signed-off-by: David S. Miller commit bada8adc4e6622764205921e6ba3f717aa03c882 tree 6052ffa8b3f6fbb8e11566f7a0e3f1f557acccd2 parent f2c3fe24119ee4f8faca08699f0488f500014a27 author Al Viro Tue, 26 Sep 2006 21:27:15 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:06 -0700 [IPV4]: ip_route_connect() ipv4 address arguments annotated annotated address arguments (port number left alone for now); ditto for inferred net-endian variables in callers. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit f2c3fe24119ee4f8faca08699f0488f500014a27 tree 7f1d1e4a80f3b9f345a5339bc7370ad187132a55 parent 8c7bc84085135d5cc87e9fc6802d3c7bbbb40ef5 author Al Viro Tue, 26 Sep 2006 21:26:42 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:05 -0700 [IPV4]: annotate ipv4 addresses in struct rtable and struct flowi Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 8c7bc84085135d5cc87e9fc6802d3c7bbbb40ef5 tree 9411e9f05014223c84c9e18de09e8a734507846c parent f7655229c06d041323b40bd6eb9f95ca0ce95506 author Al Viro Tue, 26 Sep 2006 21:26:19 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:04 -0700 [IPV4]: annotate rt_hash_code() users Signed-off-by: Al Viro Signed-off-by: David S. Miller commit f7655229c06d041323b40bd6eb9f95ca0ce95506 tree 55dd35d7a70a8e2041b79f76f9122d89b1c1d2c4 parent 9e12bb22e32389b41222c9d9fb55724fed83a038 author Al Viro Tue, 26 Sep 2006 21:25:43 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:03 -0700 [IPV4]: ip_rt_redirect() annotations The first 4 arguments of ip_rt_redirect() are net-endian. Annotated. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 9e12bb22e32389b41222c9d9fb55724fed83a038 tree 8961158286de30363fe3a4c2be25d1d4c89168b2 parent 046d033148e6936ee2466d38214cf0743a210f39 author Al Viro Tue, 26 Sep 2006 21:25:20 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:02 -0700 [IPV4]: ip_route_input() annotations ip_route_input() takes net-endian source and destination address. * Annotated as such. * arguments of its invocations annotated where needed. * local helpers getting the same values passed to by it (ip_route_input_mc(), ip_route_input_slow(), ip_handle_martian_source(), ip_mkroute_input(), ip_mkroute_input_def(), __mkroute_input()) annotated Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 046d033148e6936ee2466d38214cf0743a210f39 tree bc82c7d00502da04ab1fde6c356a99516521e05b parent b4229934bd11e1dd03d433072ef3871915fc5e4f author Al Viro Tue, 26 Sep 2006 21:24:24 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:01 -0700 [IPV4]: headers endianness Signed-off-by: Al Viro Signed-off-by: David S. Miller commit b4229934bd11e1dd03d433072ef3871915fc5e4f tree edd1ddcd326ae2fd9183528d1fb0c95abcc38f91 parent 0ac0760a57a6b1eb75c21a590e578be5dfc2f88b author Al Viro Tue, 26 Sep 2006 21:23:43 -0700 committer David S. Miller Thu, 28 Sep 2006 17:54:00 -0700 [ATM]: use NIPQUAD instead of open-coding it Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 0ac0760a57a6b1eb75c21a590e578be5dfc2f88b tree 397d0458d430251a80c2d55716639e14f5b96f3f parent 2a50f28c326d20ab4556be1b867ecddf6aefbb88 author Al Viro Tue, 26 Sep 2006 21:23:16 -0700 committer David S. Miller Thu, 28 Sep 2006 17:53:59 -0700 [TR]: endiannness annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 2a50f28c326d20ab4556be1b867ecddf6aefbb88 tree 6890abb1bf8ebfadca86b19bceb48502bda47001 parent 82fe7c924e61f9444b376498496942d41fbe9d26 author Al Viro Tue, 26 Sep 2006 21:22:08 -0700 committer David S. Miller Thu, 28 Sep 2006 17:53:58 -0700 [ATALK]: endianness annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 82fe7c924e61f9444b376498496942d41fbe9d26 tree 3886364eca14653ab60d3084dc2780d20f4d3108 parent 1618cb0c9c2ac128beb94ff376e3367932ae6432 author Grant Grundler Mon, 25 Sep 2006 23:47:14 -0700 committer David S. Miller Thu, 28 Sep 2006 17:53:57 -0700 [NET] Kconfig: fix cut/paste error in TCPPROBE Fix cut/paste error in TCPPROBE help text. Signed-off-by: Grant Grundler Signed-off-by: David S. Miller commit 1618cb0c9c2ac128beb94ff376e3367932ae6432 tree 48459d2a26440137f90e359302e3f96dfc7b6805 parent 83e331e2a492a134e491bcf50c984fd50c7fae03 author Randy Dunlap Mon, 25 Sep 2006 23:11:21 -0700 committer David S. Miller Thu, 28 Sep 2006 17:53:56 -0700 [NETDEV] config: revert part of previous patch Net devices should depend on NETDEVICES, so revert part of Paolo's previous patch. See http://marc.theaimsgroup.com/?l=linux-kernel&m=115566326218740&w=2 for history. Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller commit 83e331e2a492a134e491bcf50c984fd50c7fae03 tree 47ebe92b328ba1456e9437d09c7da3d1fc233b96 parent 293b9c42511d800b5f7bb2acba50f3e584b8c410 author Chuck Short Mon, 25 Sep 2006 22:31:03 -0700 committer David S. Miller Thu, 28 Sep 2006 17:53:55 -0700 [IRDA] via-ircc: fix memory leak Fix memory leak. Coverity id# 653 patch location: http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=a1f34cb68b16807ed9d5ebb0f6a6ec5ff8a5fc78 Signed-off-by: Chuck Short Signed-off-by: Ben Collins Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 293b9c42511d800b5f7bb2acba50f3e584b8c410 tree bec6ae33c1e50ed5cf03a7ecf05f5bd88636c0b8 parent 2ff712585a5026a021859233fce145068292584d author Fabio Olive Leite Mon, 25 Sep 2006 22:28:47 -0700 committer David S. Miller Thu, 28 Sep 2006 17:53:54 -0700 [IPV6]: bh_lock_sock_nested on tcp_v6_rcv A while ago Ingo patched tcp_v4_rcv on net/ipv4/tcp_ipv4.c to use bh_lock_sock_nested and silence a lock validator warning. This fixed it for IPv4, but recently I saw a report of the same warning on IPv6. Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 6e3ce3ae8e872f2d3a30f5ce5bc3b7c5eeca4343 tree d280a3f08a0e9803d270e45507c0a28df7cb044b parent 6174d0fd35f486f59b743630bdf088a9f9792d4d author Greg Kroah-Hartman Thu, 28 Sep 2006 17:06:45 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 17:06:45 -0700 USB: fix build error in ohci driver Thanks to Andrew for the original patch for this. I need to upgrade my version of gcc to catch these things... Signed-off-by: Greg Kroah-Hartman commit 2cc1a4134f51b4aff7c7486d857e6773f493e370 tree 07eabddc1448ae3a321224827a9c5448e345e281 parent 7357db1209f27210f97b2a9dd22177f1886a1198 author Dave Jones Thu, 28 Sep 2006 19:50:07 -0400 committer Dave Jones Thu, 28 Sep 2006 19:50:07 -0400 [AGPGART] printk fixups. Signed-off-by: Dave Jones commit 2ff712585a5026a021859233fce145068292584d tree 1dda6f9fa831be1267cafe260932f0abfccc4583 parent 6174d0fd35f486f59b743630bdf088a9f9792d4d parent 3379ceeefde923a05c2c77ed2d84ba26c2fe9e81 author Linus Torvalds Thu, 28 Sep 2006 16:23:27 -0700 committer Linus Torvalds Thu, 28 Sep 2006 16:23:27 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/hwmon-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/hwmon-2.6: (39 commits) hwmon: Remove Yuan Mu's address hwmon: Fix unchecked return status, SMSC chips hwmon: Fix unchecked return status, batch 6 w83792d: Fix unchecked return status w83l785ts: Fix unchecked return status w83781d: Fix unchecked return status vt8231: Fix unchecked return status Fix unchecked return status, batch 5 hwmon: Fix unchecked return status, batch 4 hwmon: Fix unchecked return status, batch 3 hwmon: Fix unchecked return status, batch 2 w83627ehf: Fix unchecked return status pc87360: Check for error on sysfs files creation pc87360: Delete sysfs files on device deletion pc87360: Move some code around hwmon: Fix unchecked return status, batch 1 vt1211: Document module parameters vt1211: Add documentation hwmon: New driver for the VIA VT1211 w83791d: Documentation update ... commit 6174d0fd35f486f59b743630bdf088a9f9792d4d tree dff7959fbb7d36b96301a85c5e651912c6cf02b7 parent e0318ebff4d96131bb3524308b845f642e64df81 author Alan Stern Tue, 26 Sep 2006 14:51:48 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:47 -0700 USB: g_file_storage: Set sense info Valid bit only when needed Strictly speaking, the Valid bit in SCSI sense data is supposed to be set only when the Information field contains a valid number. This patch (as793) turns off the Valid bit when the Information field hasn't been set. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit e0318ebff4d96131bb3524308b845f642e64df81 tree 20cc60b491fc9694521a48a996075e652ab9de49 parent 8d1a243ba5dda5c1a3cca5df8fb19ab8b138f074 author Alan Stern Tue, 26 Sep 2006 14:50:20 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:46 -0700 USB: fix autosuspend when CONFIG_PM isn't set This patch (as791b) fixes things up to avoid compiler warnings or errors when CONFIG_USB_SUSPEND or CONFIG_PM isn't set. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 8d1a243ba5dda5c1a3cca5df8fb19ab8b138f074 tree c9be9a9d8d4f5477a47bfc5f8a6f612a0c4867ca parent 1f7e1a3b7e05c833229c4b6e9d3c96262df59e99 author Alan Stern Tue, 26 Sep 2006 14:46:16 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:46 -0700 OHCI: add auto-stop support This patch (as790b) adds "autostop" support to ohci-hcd: the driver will automatically stop the host controller when no devices have been connected for at least one second. This feature is useful when the USB autosuspend facility isn't available, such as when CONFIG_USB_SUSPEND hasn't been set. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 1f7e1a3b7e05c833229c4b6e9d3c96262df59e99 tree b5b618378407be0785e3ba4324d8423dcb1c2a6d parent d19ac7da72ab950c315d0da0aa03464587d88b53 author Alan Stern Mon, 25 Sep 2006 15:41:21 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:46 -0700 OHCI: remove existing autosuspend code The autosuspend technique used by ohci-hcd doesn't mesh well with the newer USB core autosuspend code. This patch (as789) removes ohci-hcd's autosuspend support. Now the driver will be usable, but it won't automatically go into a low-power state when no devices are connected. That's for a later patch. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit d19ac7da72ab950c315d0da0aa03464587d88b53 tree 1007c1222a7844a18be1fb04de77f0a0ff7a28fc parent 2de9eaefa7330b8e3d3fc5f31288cb1e826173a8 author Alan Stern Mon, 25 Sep 2006 15:41:12 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:45 -0700 USB: allow both root-hub interrupts and polling Originally I didn't think any host controller driver would ever use interrupts and polling at the same time, but it turns out ohci-hcd wants to do exactly that. This patch (as788) makes it possible. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 2de9eaefa7330b8e3d3fc5f31288cb1e826173a8 tree da2121f71043fa686167abacfb69c644cacda53d parent efd54a364121f61b2050b1df5ecb1b8329c4eaba author Alan Stern Mon, 25 Sep 2006 14:31:15 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:45 -0700 USB: g_file_storage: fix "ignoring return value" warnings This patch (as792) fixes "ignoring return value" warnings in file_storage.c. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit efd54a364121f61b2050b1df5ecb1b8329c4eaba tree 869e06362a7c0c6c2c4f05a6983b02647c73fe52 parent bd859281c09b4318153dc7222b5e9052aad83b61 author Alan Stern Mon, 25 Sep 2006 11:55:56 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:45 -0700 USB: dummy-hcd: fix "warn-unused-result" messages This patch (as758) fixes the "warn-unused-result" messages in dummy-hcd. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit bd859281c09b4318153dc7222b5e9052aad83b61 tree c56c116b7720aae3dc5192f115444d16a5c21e58 parent 6a9fb060393e04a79973f95925f4f6587442e9c7 author Alan Stern Tue, 19 Sep 2006 10:14:07 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:44 -0700 USB: create new workqueue thread for USB autosuspend This patch (as787) creates a new workqueue thread to handle delayed USB autosuspend requests. Previously the code used keventd. However it turns out that the hub driver's suspend routine calls flush_scheduled_work(), making it a poor candidate for running in keventd (the call immediately deadlocks). The solution is to use a new thread instead of keventd. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 6a9fb060393e04a79973f95925f4f6587442e9c7 tree 394ccc9cabfd53574e6fd4b27bb93f35ff536275 parent 0eebe6ac7c58dc617d78b4e4713540f388e7c1f6 author Jan Mate Mon, 25 Sep 2006 17:00:57 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:44 -0700 USB Storage: unusual_devs.h entry for Sony Ericsson P990i USB Storage: this patch adds support for Sony Ericsson P990i Signed-off-by: Jan Mate Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 0eebe6ac7c58dc617d78b4e4713540f388e7c1f6 tree 7c6d8df62a35a0b1cab40c6e38e0d6a6f1162c35 parent 701f35af282e3955159bd30d3fb3f6ebafe8bff2 author Henrik Kretzschmar Mon, 25 Sep 2006 17:00:58 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:44 -0700 USB: microtek usb scanner: Scsi_Cmnd conversion Converts obsolete typedef'd Scsi_Cmnd into struct scsi_cmnd. Signed-off-by: Henrik Kretzschmar Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 701f35af282e3955159bd30d3fb3f6ebafe8bff2 tree b9cad9736b26c61b5fe457fc86aa0de9f53c76d8 parent 931e24b93a10b53da8223272b83941bc5b1d6dc5 author Henrik Kretzschmar Mon, 25 Sep 2006 17:00:56 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:44 -0700 USB: fixes kerneldoc errors in usbcore-auto(susp/res)-patch Fixes kerneldoc errors on usb/core/driver.c, which occured in 2.6.18-rc6-mm2 gregkh-usb-usbcore-add-autosuspend-autoresume-infrastructure.patch Signed-off-by: Henrik Kretzschmar Acked-by: Alan Stern Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 931e24b93a10b53da8223272b83941bc5b1d6dc5 tree 5a60eb02a744d0db64c82efa49ac4a3f28e9270a parent b923e7fcc152199959b673e09c318a750a10928b author Raghavendra Biligiri Fri, 15 Sep 2006 19:53:35 +0530 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:44 -0700 USB: add Raritan KVM USB Dongle to the HID_QUIRK_NOGET blacklist During Installation the host tries to enumerate the keyboard/mouse dongle for the Raritan KVM.At this time timeouts have been observed Adding the Raritan KVM USB dongle to the blacklist fixes this issue. Signed-off-by: Raghavendra Biligiri Signed-off-by: Greg Kroah-Hartman commit b923e7fcc152199959b673e09c318a750a10928b tree a36c706b758952d2b62cfbe75952b83f66bc3a04 parent e81ee637e4aed723f71007c90a901268317ed6d6 author David Hollis Thu, 21 Sep 2006 08:09:29 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 USB: asix - Add alternate device IDs for Dlink DUB-E100 Rev B1 Add alternate device IDs for Dlink DUB-E100 Rev B1 Signed-off-by: David Hollis Signed-off-by: Greg Kroah-Hartman commit e81ee637e4aed723f71007c90a901268317ed6d6 tree 25fec34b4577eb36b52b8e4e45a191138ac49404 parent 2e3a43f0b6f16705ec76d3744b82a116965ebebe author Peter Zijlstra Mon, 25 Sep 2006 12:51:41 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 usb-serial: possible irq lock inversion (PPP vs. usb/serial) ========================================================= [ INFO: possible irq lock inversion dependency detected ] commit 2e3a43f0b6f16705ec76d3744b82a116965ebebe tree 27fdc7716743cf77291931cda7e75b45d3529ad8 parent 54bee6e1b455573658972510a76119f279db32b7 author Alan Cox Wed, 27 Sep 2006 15:43:22 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 ohci: Use ref-counting hotplug safe interfaces We want to avoid legacy APIs like pci_find_slot(). Signed-off-by: Alan Cox Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 54bee6e1b455573658972510a76119f279db32b7 tree 22d19b6377bdec45540db12bc4ae7bfc47343797 parent a14848275b04f3193b9d9e9c745a4fae37f11f2f author Mikael Pettersson Sat, 23 Sep 2006 17:05:31 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 USB: Fix alignment of buffer passed down to ->hub_control() Implementations assume the buffer is at least 4 byte aligned. Signed-off-by: David S. Miller Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit a14848275b04f3193b9d9e9c745a4fae37f11f2f tree 64440fb12a93cb5bbf9a85f94bde8fdb4c57ca3a parent 238d0e7bcf20981f7baac8bedfc219a90748700d author Justin Carlson Sun, 24 Sep 2006 11:52:12 +0300 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 USB: add SeaLevel 2106 SeaLINK support to ftdi_sio We have a couple of these USB-Serial converters around; they're slightly different from the 2104 models in that they can handle 500Kb/sec over RS422. The existing ftdi driver seems to work just fine if we add in the appropriate IDs. Patch is against 2.6.17.6, but should apply cleanly to pretty much anything recent. From: Justin Carlson Signed-off-by: Greg Kroah-Hartman commit 238d0e7bcf20981f7baac8bedfc219a90748700d tree a879ddd71cd3e61d60fd94284000347d221a7f4a parent 1b495f753a65835e7dd9d043b12f2fca6a105b3d author Sean Young Sun, 24 Sep 2006 19:26:57 +0000 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 USB: New PhidgetKit 8/8/8 reset outputs after 2 seconds New phidget interface kits (type 8/8/8) reset their outputs if they haven't received a set report for 2 seconds. Signed-off-by: Sean Young Signed-off-by: Greg Kroah-Hartman commit 1b495f753a65835e7dd9d043b12f2fca6a105b3d tree 8a6ab9d4e172811059275282b5e0911e32baf67e parent 9978f9e1243be91243346b3e9555f1f53e50bb9c author Matthias Urlichs Sun, 24 Sep 2006 21:38:47 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 USB: another device ID for ipaq Add yet another device ID to the ipaq USB-serial driver. Signed-Off-By: Matthias Urlichs Cc: Ganesh Varadarajan Signed-off-by: Greg Kroah-Hartman commit 9978f9e1243be91243346b3e9555f1f53e50bb9c tree 7b93d8ebe24c5f693ba5e5e66fcb0542cc88a45e parent 37cf3477d2140f496e0713738fabdb5bc6fd60f3 author Ian Abbott Mon, 25 Sep 2006 14:19:19 +0100 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:43 -0700 USB serial ftdi_sio: Add support for Tactrix OpenPort devices This patch adds support for three OpenPort ECU data cables from Tactrix Inc. to the ftdi_sio driver's device ID table. One of the PIDs was supplied by Donour Sizemore on the ftdi-usb-sio-devel mailing list. The other two were added by myself after examining the Windows driver software. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman commit 37cf3477d2140f496e0713738fabdb5bc6fd60f3 tree 162f7a38f3279f03924d80272d9dd723c60c654b parent 7923811a46f7e29ae8052edf2461e6c6b8ec2415 author Petko Manolov Wed, 27 Sep 2006 14:25:37 -0700 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:42 -0700 USB: Pegasus driver failing for ADMtek 8515 network device Address http://bugzilla.kernel.org/show_bug.cgi?id=7126 Attempting to read the ethernet ID directly from the eeprom somehow confuses ADM8515. Subsequent read requests to either the eeprom or the MII fail as well. Didn't dig much deeper, though. For example ADM8513 does not experience this problem. I used the fact that at power up the device is reading its ID automatically (not true for older Pegasus based devices) and put it in the Ethernet ID registers. So now the driver uses get_registers() instead of read_eprom_word() if the device is Pegasus_II based one. Tested it with all (Pegasus and Pegasus_II) gadgets i have and everything seems ok. Cc: Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 7923811a46f7e29ae8052edf2461e6c6b8ec2415 tree ebd8f2c3ca3d3dbcfb868548ad03971aa68385fd parent b697f70f763fe92d5fd05e7e2043bd2b5f12b073 author Alan Stern Thu, 28 Sep 2006 12:11:56 -0400 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:42 -0700 USB: unusual-devs entry for Nokia E60 This patch (as794) adds an unusual_devs entry for the Nokia E60. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit b697f70f763fe92d5fd05e7e2043bd2b5f12b073 tree 983f1d34523cdba70d689de2c309bc417786ac2c parent 486ba2a9b26dd8b6219a13297eac012be78108cc author Wesley PA4WDH Thu, 28 Sep 2006 20:45:38 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:42 -0700 USB: Add vendor / product ID to pl2303 Signed-off-by: Greg Kroah-Hartman commit 486ba2a9b26dd8b6219a13297eac012be78108cc tree 8b949f43bf170c601defcaeeca8d74f383682e25 parent ebdea46fecae40c4d7effcd33f40918a37a1df4b author Oliver Neukum Thu, 28 Sep 2006 22:21:19 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:36:42 -0700 USB: new id for kaweth this adds a new id to the kaweth driver. Please apply. Signed-Off-By: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit 3379ceeefde923a05c2c77ed2d84ba26c2fe9e81 tree f736b86cc6c02ffac2a8ba5b235c8b64eff81ce2 parent ce8c6ce1eceecfe090f6c1aa4108087b2051497b author Jean Delvare Sun, 24 Sep 2006 21:25:52 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:19 -0700 hwmon: Remove Yuan Mu's address hwmon: Remove Yuan Mu's address Yuan Mu no longer works at Winbond. I wish to publicly thank Yuan for his help with Winbond hardware monitoring chips support during the past 10 months. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit ce8c6ce1eceecfe090f6c1aa4108087b2051497b tree a119733f9fb1772f7c2436761fbbbe805b5f46fd parent a5ebe668add5f76ed8f01f752b37cfa164a26a30 author Jean Delvare Sun, 24 Sep 2006 21:25:12 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:19 -0700 hwmon: Fix unchecked return status, SMSC chips hwmon: Fix unchecked return status, SMSC chips Fix up 2 more hwmon drivers so that they no longer ignore return status from device_create_file(). Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit a5ebe668add5f76ed8f01f752b37cfa164a26a30 tree 116324063bd55666d0fa23db4342d5bd097518be parent f52f79da2908796a0fa1e7bbbe0d5ff20183d75f author Jean Delvare Sun, 24 Sep 2006 21:24:46 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:19 -0700 hwmon: Fix unchecked return status, batch 6 hwmon: Fix unchecked return status, batch 6 Fix up 5 more hwmon drivers so that they no longer ignore return status from device_create_file(). Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit f52f79da2908796a0fa1e7bbbe0d5ff20183d75f tree 32de8a34992593136d42381d9503a9f4bc85506f parent ccc5c306957bb7fbaef61de249bac4b0f09f2336 author Rudolf Marek Sun, 24 Sep 2006 21:24:12 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:18 -0700 w83792d: Fix unchecked return status w83792d: Fix unchecked return status Fix the w83792d driver. Add error checking to device_create_file and also care to destroy the files upon exit. Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit ccc5c306957bb7fbaef61de249bac4b0f09f2336 tree 484101b931764f176ce027566b35cb7a93a6749b parent 311ce2efb1b640584676fc1b0b7f16c5baf85eb8 author Rudolf Marek Sun, 24 Sep 2006 21:23:26 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:18 -0700 w83l785ts: Fix unchecked return status w83l785ts: Fix unchecked return status Fix the w83l785ts driver. Add error checking to device_create_file and also care to destroy the files upon exit. Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 311ce2efb1b640584676fc1b0b7f16c5baf85eb8 tree 8f3cb7fdf3513a36390411d19610a00a7adbc0d8 parent cbeeb5b7c91b23967162185d7580048559db8d58 author Jim Cromie Sun, 24 Sep 2006 21:22:52 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:18 -0700 w83781d: Fix unchecked return status w83781d: Fix unchecked return status Add 2 attr-file groups (for base and model-specific attrs respectively), create the base group with single call to sysfs_create_group, check the return code on individual calls to device_create_file for each of the model-specific attr-files. Signed-off-by: Jim Cromie Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit cbeeb5b7c91b23967162185d7580048559db8d58 tree 49f924307d9786dc7da738fa5cc76757addfc86a parent 87808be4f97674e6a2982fa835080cc0320dcbdc author Roger Lucas Sun, 24 Sep 2006 21:21:46 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:18 -0700 vt8231: Fix unchecked return status vt8231: Fix unchecked return status Check the return status from device_create_file() and also use the newer and cleaner sysfs creation functions. Signed-off-by: Roger Lucas Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 87808be4f97674e6a2982fa835080cc0320dcbdc tree c01cc40b9b3710c8692ddbb5641c3ca978dd8cc9 parent 0e39e01c908fdc498fff0d788fd7b955ab75ebb6 author Jean Delvare Sun, 24 Sep 2006 21:17:13 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:18 -0700 Fix unchecked return status, batch 5 hwmon: Fix unchecked return status, batch 5 Fix up some hwmon drivers so that they no longer ignore return status from device_create_file(). Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 0e39e01c908fdc498fff0d788fd7b955ab75ebb6 tree 2e117466ec9a60f3dac6d678e95af97454aa6c8c parent 681c6f7a6702f208d48b501c8829dbc03a2ca238 author Jean Delvare Sun, 24 Sep 2006 21:16:40 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:18 -0700 hwmon: Fix unchecked return status, batch 4 hwmon: Fix unchecked return status, batch 4 Fix up some hwmon drivers so that they no longer ignore return status from device_create_file(). Note: f71805f actually checked the status from device_create_file already. However it did not remove the files on device destruction. It was also an opportunity to use sysfs_create/remove_group instead of hand-made loops. This makes the changes much more important but I think the result is worth it. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 681c6f7a6702f208d48b501c8829dbc03a2ca238 tree edeba1565c69b4be8e3aeb73df97ccea05fce66c parent 0501a3816e5b778830fc2157a6d6bb11a965fc2c author Mark M. Hoffman Sun, 24 Sep 2006 21:15:35 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 hwmon: Fix unchecked return status, batch 3 hwmon: Fix unchecked return status, batch 3 Fix up some hwmon drivers so that they no longer ignore return status from device_create_file(). Signed-off-by: Mark M. Hoffman Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 0501a3816e5b778830fc2157a6d6bb11a965fc2c tree 9424b8b523ea1a9c1522babe2becd77b8c614494 parent c18beb5b92b090cb424718a4f1771b1a9fad56de author Mark M. Hoffman Sun, 24 Sep 2006 21:14:35 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 hwmon: Fix unchecked return status, batch 2 hwmon: Fix unchecked return status, batch 2 Fix up some hwmon drivers so that they no longer ignore return status from device_create_file(). Signed-off-by: Mark M. Hoffman Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit c18beb5b92b090cb424718a4f1771b1a9fad56de tree 7fd1a129f13710d9273a71cf4d514199abd97944 parent f3722d5b6a474e31237d23980e9bd38facfda6f4 author David Hubbard Sun, 24 Sep 2006 21:04:38 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 w83627ehf: Fix unchecked return status w83627ehf: Fix unchecked return status Fix: check return value from device_create_file() Fix: call device_remove_file() on error and module unload Fix: call hwmon_device_register() after device_create_file() to eliminate race Signed-off-by: David Hubbard Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit f3722d5b6a474e31237d23980e9bd38facfda6f4 tree 68cf55a62cad0e4ea98e861e13c1fa184333c24c parent 941c5c05cf38da5e12d70edc5d0fec5c24bce8b6 author Jim Cromie Sun, 24 Sep 2006 21:03:25 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 pc87360: Check for error on sysfs files creation pc87360: Check for error on sysfs files creation Use sysfs_create_group() for 2 sensor-types which are chip-model invariant, i.e. all-or-nothing attribute groups. Other 2 groups vary too much due to configuration, etc, so we keep the loops of device_create_file(), but now check their returns. Signed-off-by: Jim Cromie Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 941c5c05cf38da5e12d70edc5d0fec5c24bce8b6 tree 411baa7b0d43a314ceb58da2c4e551da7ae69161 parent 44646c19b41e40d81f5e4863466914e8ce060cc0 author Jim Cromie Sun, 24 Sep 2006 21:02:44 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 pc87360: Delete sysfs files on device deletion pc87360: Delete sysfs files on device deletion Add 4 explicit attribute groups for the 5 sensor types: voltage (in), therm, temp, and fan & pwm (together in one group). Use sysfs_remove_group() to drop them, but keeps the existing startup code, which calls device_create_file in loops. Signed-off-by: Jim Cromie Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 44646c19b41e40d81f5e4863466914e8ce060cc0 tree 82aab01472d4f46d382c735da49dde8f3003652b parent c1685f61b0a3110b701d09b84a9f9a3d4e9ef2e2 author Jim Cromie Sun, 24 Sep 2006 21:01:56 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 pc87360: Move some code around pc87360: Move some code around Moves code for get-set-decl tuples for 3 items: cpu0_vid, vrm, alarms_in up, to just after the get-set-decl tuple for voltages. These items are already 'activated' together with the rest of the voltage attributes, so the move tightens the grouping that's made explicit in next patch. Signed-off-by: Jim Cromie Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit c1685f61b0a3110b701d09b84a9f9a3d4e9ef2e2 tree 8c7f4791ae7c31390ba127d4e0c0d766775819f4 parent a1fdcb96ee33ba75318476a2a4691147c9f2ad90 author Mark M. Hoffman Sun, 24 Sep 2006 20:59:49 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:17 -0700 hwmon: Fix unchecked return status, batch 1 hwmon: Fix unchecked return status, batch 1 Fix up some hwmon drivers so that they no longer ignore return status from device_create_file(). Signed-off-by: Mark M. Hoffman Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit a1fdcb96ee33ba75318476a2a4691147c9f2ad90 tree ac5d846a5ad4106406b793abacd168075d7e59b8 parent 61d0b53363256e87aeb79286be2dc8f62a9d429a author Juerg Haefliger Sun, 24 Sep 2006 20:55:34 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:16 -0700 vt1211: Document module parameters vt1211: Document module parameters Add a description of the module parameters to the documentation of the vt1211 driver. Signed-off-by: Juerg Haefliger Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 61d0b53363256e87aeb79286be2dc8f62a9d429a tree ffcb76c1f5280aff408b7200b43c8e705b1ff24f parent ab41319eab3b5e600873dc77dff7756970424ca6 author Juerg Haefliger Sun, 24 Sep 2006 20:54:46 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:16 -0700 vt1211: Add documentation vt1211: Add documentation Add documentation for the new vt1211 hardware monitoring driver. Signed-off-by: Juerg Haefliger Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit ab41319eab3b5e600873dc77dff7756970424ca6 tree 28a66a3df7ed73de1fd90a7e20b095ddefd6cde2 parent 125751cb833f20c12c7237782b2a4680fd636ed0 author Juerg Haefliger Sun, 24 Sep 2006 20:54:04 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:16 -0700 hwmon: New driver for the VIA VT1211 hwmon: New driver for the VIA VT1211 This is a new driver for the VIA VT1211 Super-IO chip. It is a rewrite of the existing vt1211 driver (by Mark D. Studebaker and Lars Ekman) which has been around for a while but never made it into the main kernel tree. It is implemented as a platform driver and therefore requires lm_sensors 2.10.1 to function properly. Signed-off-by: Juerg Haefliger Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 125751cb833f20c12c7237782b2a4680fd636ed0 tree 1f815c587d404c32f4127ac6454804d1a68f3cad parent 2d45771e6ea79f56a7d85e448f702f60ef86c228 author Charles Spirakis Sun, 24 Sep 2006 20:53:04 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:16 -0700 w83791d: Documentation update w83791d: Documentation update The alarm bits and the beep enable bits are in different positions in the hardware. Document the problem and leave it to the user-space code to handle the situation. When this driver is updated to the standardized sysfs alarm/beep methodology, this won't be a problem. This is a documentation only change. Signed-off by: Charles Spirakis Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 2d45771e6ea79f56a7d85e448f702f60ef86c228 tree c3cdd385657c59fe9356cb32283f85f09a717382 parent 51bd56339335fad3643739504523190cd6d3416b author Jean Delvare Sun, 24 Sep 2006 20:52:15 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:15 -0700 hwmon: Add individual alarm files to 4 drivers hwmon: Add individual alarm files to 4 drivers Add individual sysfs files for all f71805f, lm63, lm83 and lm90 alarm and fault conditions. This is a requirement for the planned chip-independent libsensors. Almost all other hwmon drivers will need the same improvement. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 51bd56339335fad3643739504523190cd6d3416b tree f05830de081ea058677e61a6ec2eaa050ca64920 parent ef4c4fdb2809c84c2ed8f037ae7c96cc03992569 author Jean Delvare Sun, 24 Sep 2006 20:51:37 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:15 -0700 hwmon: Make a dozen drivers no more experimental hwmon: Make a dozen drivers no more experimental Remove the EXPERIMENTAL tag from a dozen hardware monitoring drivers. They are in the tree for quite a long time, so we would know by now if they were causing trouble. Also make it clearer that the VT8231 is a VIA chip. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit ef4c4fdb2809c84c2ed8f037ae7c96cc03992569 tree 3f370d63afef990567ff0dbaec812c3f06bad3b8 parent 360b9ab220aedaf346380fc2344729d9acc3b075 author Rudolf Marek Sun, 24 Sep 2006 20:50:57 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:14 -0700 k8temp: Add documentation k8temp: Add documentation Add promised documentation for the k8temp driver. Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 360b9ab220aedaf346380fc2344729d9acc3b075 tree ad843d0f33fe396c6d0ae22e93b151a5386de40c parent b17ebc9402040959690b5a2c4e1cfb1e6d4fb206 author Hans de Goede Mon, 28 Aug 2006 14:42:24 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:14 -0700 abituguru: Add suspend/resume support This patch contains rudimentary suspend / resume support for the uguru, this protects the uguru and the driver against suspend / resume cycles, so there is no reason to unload the driver in your suspend / resume scripts. Only include suspend / resume functions when CONFIG_PM is set. Signed-off-by: Hans de Goede Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit b17ebc9402040959690b5a2c4e1cfb1e6d4fb206 tree e7535cb10449e5ffe644a68a6579438568977745 parent 29fa06c1292f473ae51a84f55c8fe22179bc1080 author Jean Delvare Mon, 28 Aug 2006 14:41:03 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:14 -0700 k8temp: Enable automatic loading Let the k8temp driver load automatically. Signed-off-by: Jean Delvare Cc: Rudolf Marek Signed-off-by: Greg Kroah-Hartman commit 29fa06c1292f473ae51a84f55c8fe22179bc1080 tree 81f21d0692217fb4829452ec6f37e71574208ad6 parent b19367c6f438b3a7700aceca21a03396702069ce author Rudolf Marek Mon, 28 Aug 2006 14:40:17 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:14 -0700 hwmon: New driver k8temp Add support for the temperature sensor(s) found in AMD K8 CPUs. Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit b19367c6f438b3a7700aceca21a03396702069ce tree a1170f757012801a7abedb65bdf33897fb8d5f64 parent c5df9b7a7c7600e4365e81f64ea44beb5be8bfa7 author Jean Delvare Mon, 28 Aug 2006 14:39:26 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: Copyright update it87: Copyright update I think my contributions to the it87 driver over the past two years qualify me as a co-author of this driver. Also drop old comments of dubious usefulness. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit c5df9b7a7c7600e4365e81f64ea44beb5be8bfa7 tree 8a896e389021b6a8d5870336d3781e025a4d37b2 parent 87673dd735b8e089b7f2830edd353aa5f5e743ad author Jean Delvare Mon, 28 Aug 2006 14:37:54 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: Overwrite broken default limits it87: Overwrite broken default limits Some IT8716F chips where seen with unreasonable defaults for low voltage and high temperature limits. Overwrite them with sane defaults so as to not generate meaningless alarms. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 87673dd735b8e089b7f2830edd353aa5f5e743ad tree 030b275650c5d8c79285bc3f7b0ba8f1c2cc25b6 parent 8ab4ec3ef45cc2facbe14c733ef7230e7d94fcf2 author Jean Delvare Mon, 28 Aug 2006 14:37:19 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: Add support for the IT8718F it87: Add support for the IT8718F The IT8718F is a Super-I/O chip with integrated hardware monitoring functions. It is very similar to the IT8716F, so adding support to the it87 driver was pretty straightforward. The most significant difference is that the IT8718F has up to 8 VID pins, instead of 6 for the older chips. For the IT8718F, the VID value can only be read from Super-I/O space. Userspace support is already in lm_sensors SVN (to be soon released as 2.10.1.) Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 8ab4ec3ef45cc2facbe14c733ef7230e7d94fcf2 tree aee9c9ba26cbde2b7c1ffc89821d1d1bb02c959d parent 3543a53f6c5b58c233218327f671108590151876 author Jean Delvare Mon, 28 Aug 2006 14:35:46 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: Cleanup set_fan_div it87: Cleanup set_fan_div We only change one fan clock divider at a time, so there is only one fan min which needs to be saved and restored. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 3543a53f6c5b58c233218327f671108590151876 tree a717e76ae3167add861b785f1c5f187871087157 parent b9e349f710376ef55f200e9fa07e88b4fe2cdf98 author Jean Delvare Mon, 28 Aug 2006 14:27:25 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: in8 has no limit registers it87: in8 has no limit registers Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit b9e349f710376ef55f200e9fa07e88b4fe2cdf98 tree 221fe66ca1b1fe93ed1e9cf7b9fa988779d22a11 parent 9060f8bdd0c40e31d2be388e59f2dbeea55988a2 author Jean Delvare Mon, 28 Aug 2006 14:26:22 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: Prevent overflow on fan clock divider write it87: Prevent overflow on fan clock divider write The highest possible clock divider for fan1 and fan2 is 128. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 9060f8bdd0c40e31d2be388e59f2dbeea55988a2 tree 785b330c027326eac78cad5dcb224e4b2a949168 parent 17d648bf5786ba5b8cbf7cbd5cb18d3d8d2657ca author Jean Delvare Mon, 28 Aug 2006 14:24:17 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: No sysfs files for disabled fans it87: No sysfs files for disabled fans Only create the fan attributes for enabled fan tachometers. Some motherboards have a nice BIOS which only enables the fan inputs which are wired to a fan header on the board. This makes the configuration easier for the user. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 17d648bf5786ba5b8cbf7cbd5cb18d3d8d2657ca tree 8761d44284bbff01c0bd720c6cfd47a42b145978 parent 0dd7699ec4b27b3662d8980ff7a309cc81276298 author Jean Delvare Mon, 28 Aug 2006 14:23:46 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:13 -0700 it87: Add support for the IT8716F it87: Add support for the IT8716F The IT8716F is a Super-I/O chip with integrated hardware monitoring functions. It is very similar to the IT8712F, so adding support to the it87 driver was pretty straightforward. The most significant change here is that the IT8716F has 16-bit fan speed counters, so the user no more needs to tweak the fan clock dividers to get the best readings. Userspace support is already in lm_sensors SVN (to be soon released as 2.10.1.) Thanks to Stian Oksavik, Olivier Nicolas, Prakash Punnoor and Juergen Kilb for testing the early versions of this patch. Thanks also to ITE for providing datasheets and answering my questions. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 0dd7699ec4b27b3662d8980ff7a309cc81276298 tree 17b7f7d6e6c7947ae03cab6e3681cc91f72f6352 parent b25a10631a81fca33a94d1f1f6960928d8e9ce63 author Jean Delvare Mon, 28 Aug 2006 14:22:34 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:12 -0700 smsc47m1: dev_warn fix smsc47m1: dev_warn fix We can't use dev_warn on an i2c client before it is attached. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit b25a10631a81fca33a94d1f1f6960928d8e9ce63 tree 5f327a3b3af52fbd24b8ec5590f1f55d3ac8e5b9 parent c41bdb526bca5cda5be3de8c112f63c400bf990f author Dmitry Torokhov Mon, 28 Aug 2006 14:21:42 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:12 -0700 hdaps: Handle errors from input_register_device HDAPS: handle errors from input_register_device() Signed-off-by: Dmitry Torokhov Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit c41bdb526bca5cda5be3de8c112f63c400bf990f tree 8a1cd935598c827baa83cbbefbc532cca6e0f7ea parent 563daaf4047464eef5ffcb46194a99c1a8f2260e author Alexey Dobriyan Mon, 28 Aug 2006 14:18:14 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:12 -0700 atxp1: Signed/unsigned char bug fix vid_to_reg() can return -1 and char can be unsigned. Signed-off-by: Alexey Dobriyan Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 563daaf4047464eef5ffcb46194a99c1a8f2260e tree 19a4f8c8f83986b1c84a6228c9178931e2066719 parent 08c79950a047dbaccf05d70a203db2ee75ac3bd8 author Rudolf Marek Wed, 05 Jul 2006 18:15:31 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:12 -0700 hwmon: Documentation update for w83627ehf Add documentation for the w83627ehf hardware monitoring driver. Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 08c79950a047dbaccf05d70a203db2ee75ac3bd8 tree 4041fdd9899cde225c4ff64e3feadf1955bd8a77 parent 94c12cc7d196bab34aaa98d38521549fa1e5ef76 author Rudolf Marek Wed, 05 Jul 2006 18:14:31 +0200 committer Greg Kroah-Hartman Thu, 28 Sep 2006 15:31:12 -0700 hwmon: Add fan speed control features to w83627ehf This patch adds long-awaited support for automatic fan modes. Based on the work of Yuan Mu from Winbond, I finished the support with the great help of David Hubbard. Signed-off-by: Yuan Mu Signed-off-by: Rudolf Marek Signed-off-by: David Hubbard Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit ebdea46fecae40c4d7effcd33f40918a37a1df4b tree e4312bf7f1f3d184738963a0ec300aa9fdfd55c1 parent fecf3404f4aba6d0edeba31eeb018cbb6326dff2 parent 250d375d1da45a5e08ab8baf5eaa7eb258afd82b author Linus Torvalds Thu, 28 Sep 2006 14:40:39 -0700 committer Linus Torvalds Thu, 28 Sep 2006 14:40:39 -0700 Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (130 commits) [ARM] 3856/1: Add clocksource for Intel IXP4xx platforms [ARM] 3855/1: Add generic time support [ARM] 3873/1: S3C24XX: Add irq_chip names [ARM] 3872/1: S3C24XX: Apply consistant tabbing to irq_chips [ARM] 3871/1: S3C24XX: Fix ordering of EINT4..23 [ARM] nommu: confirms the CR_V bit in nommu mode [ARM] nommu: abort handler fixup for !CPU_CP15_MMU cores. [ARM] 3870/1: AT91: Start removing static memory mappings [ARM] 3869/1: AT91: NAND support for DK and KB9202 boards [ARM] 3868/1: AT91 hardware header update [ARM] 3867/1: AT91 GPIO update [ARM] 3866/1: AT91 clock update [ARM] 3865/1: AT91RM9200 header updates [ARM] 3862/2: S3C2410 - add basic power management support for AML M5900 series [ARM] kthread: switch arch/arm/kernel/apm.c [ARM] Off-by-one in arch/arm/common/icst* [ARM] 3864/1: Refactore sharpsl_pm [ARM] 3863/1: Add Locomo SPI Device [ARM] 3847/2: Convert LOMOMO to use struct device for GPIOs [ARM] Use CPU_CACHE_* where possible in asm/cacheflush.h ... commit fecf3404f4aba6d0edeba31eeb018cbb6326dff2 tree f29b18c6e564e515212b6c88e89cf5770cc0f350 parent 94c12cc7d196bab34aaa98d38521549fa1e5ef76 parent 2ed6d22cec37d9a3df4c5bacf1160dee7700106e author Linus Torvalds Thu, 28 Sep 2006 14:23:55 -0700 committer Linus Torvalds Thu, 28 Sep 2006 14:23:55 -0700 Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-mmc * 'devel' of master.kernel.org:/home/rmk/linux-2.6-mmc: [MMC] Don't check READY_FOR_DATA when reading [MMC] MMC_CAP_BYTEBLOCK flag for non-log2 block sizes capable hosts [MMC] Add multi block-write capability [MMC] Remove data->blksz_bits member [MMC] Convert mmci to use data->blksz rather than data->blksz_bits commit 250d375d1da45a5e08ab8baf5eaa7eb258afd82b tree fb5dc6df00065f11578f837835c6d5a99530b223 parent 84904d0ead0a8c419abd45c7b2ac8d76d50a0d48 parent 6afd6fae1d5f7e7129a10c4f3e32018966eeac1c author Russell King Thu, 28 Sep 2006 22:20:39 +0100 committer Russell King Thu, 28 Sep 2006 22:20:39 +0100 Merge nommu branch commit 84904d0ead0a8c419abd45c7b2ac8d76d50a0d48 tree f0744701f7eb7efad9adc63e2e7113a141de8fec parent 746140c71d537560bbd22c1b148fb21031c30e71 author Kevin Hilman Fri, 22 Sep 2006 00:58:57 +0100 committer Russell King Thu, 28 Sep 2006 20:59:25 +0100 [ARM] 3856/1: Add clocksource for Intel IXP4xx platforms Enables the ixp4xx platforms to use Generic time-of-day. Signed-off-by: Kevin Hilman Acked-by: John Stultz Signed-off-by: Deepak Saxena Signed-off-by: Russell King commit 746140c71d537560bbd22c1b148fb21031c30e71 tree c9753521f7443f946b966d0e8bd19d60c71f99f9 parent 82606c66e943227afcec8a3c7b8428b99a7f88b8 author Kevin Hilman Fri, 22 Sep 2006 00:16:30 +0100 committer Russell King Thu, 28 Sep 2006 20:59:24 +0100 [ARM] 3855/1: Add generic time support This patch adds Generic time-of-day support for the ARM architecture. The support is currently added using #ifdef's so that it can support sub-arches that do not (yet) have a clocksource added. As sub-arches add clocksource support, they should 'select GENERIC_TIME' Signed-off-by: Deepak Saxena Signed-off-by: Daniel Walker Signed-off-by: Kevin Hilman Acked-by: John Stultz Signed-off-by: Russell King commit 82606c66e943227afcec8a3c7b8428b99a7f88b8 tree b07a730cbe4ae9aab0f40ca5ddd293ba188c1c61 parent 625ac112d4253c7e5f7a6d59c99943e8eb0b46c9 author Ben Dooks Thu, 28 Sep 2006 20:51:35 +0100 committer Russell King Thu, 28 Sep 2006 20:55:23 +0100 [ARM] 3873/1: S3C24XX: Add irq_chip names Add names to all the irq_chip structes Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 625ac112d4253c7e5f7a6d59c99943e8eb0b46c9 tree e193d3557e66fa7ca31756306e16bce7b9a07f9e parent 38e0533ce87a58e25f959e6d0958478b6a137794 author Ben Dooks Thu, 28 Sep 2006 20:45:29 +0100 committer Russell King Thu, 28 Sep 2006 20:49:32 +0100 [ARM] 3872/1: S3C24XX: Apply consistant tabbing to irq_chips Apply consistant tabbing to the IRQ chip structures in arch/arm/mach-s3c2410/irq.c Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 38e0533ce87a58e25f959e6d0958478b6a137794 tree c9c1f02946b3ad39cded1c6ad8d0a815c3f61f41 parent 1f51c10c5e85050506663bce1d69513eb901db87 author Ben Dooks Thu, 28 Sep 2006 20:40:50 +0100 committer Russell King Thu, 28 Sep 2006 20:48:49 +0100 [ARM] 3871/1: S3C24XX: Fix ordering of EINT4..23 The demux code for the IRQ EINTs above 3 was using find last set instead of finding first set. Also fix it so that we only check EINT4..7 when the parent EINT4t7 goes off, and the 8..23 when EINT8t23 goes off. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 6afd6fae1d5f7e7129a10c4f3e32018966eeac1c tree 4b7470f0f771c4e97b18f83db0bd4ca3d529684b parent 0f45d7f36b766cb668cebfb5d4d2f67b4a8676ba author Hyok S. Choi Thu, 28 Sep 2006 21:46:34 +0900 committer Russell King Thu, 28 Sep 2006 20:17:30 +0100 [ARM] nommu: confirms the CR_V bit in nommu mode In nommu mode, the exception vector location depends on the platforms. Some of the implementations may have some special exception control forwarding method in their ROM/flash and for some of them has its own re-mapping mechanism by the h/w. This patch introduces a special configuration CONFIG_CPU_HIGH_VECTOR which turns on the CR_V bit in nommu mode. The CR_V bit is turned off by default. This feature depends on CP15 and does not supported by ARM740. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit 0f45d7f36b766cb668cebfb5d4d2f67b4a8676ba tree 975c493fc13a2a078ef4d41374794faf1c5d1510 parent 6cc7cbef948ea2660cc40d7aab090a479f7db6a2 author Hyok S. Choi Thu, 28 Sep 2006 21:46:16 +0900 committer Russell King Thu, 28 Sep 2006 20:15:46 +0100 [ARM] nommu: abort handler fixup for !CPU_CP15_MMU cores. There is no FSR/FAR register on no-CP15 or MPU cores. This patch adds a dummy abort handler which returns zero for the base restored Data Abort model !CPU_CP15_MMU cores. The abort-lv4t.S is still used with the fix-up for the base updated Data Abort model cores. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit 3d27b00457167103fb9f7e23fc2454c801a6b8f0 tree 406480c11683d5d587c23cba92cb33aff6a123ef parent 7a26c47412b201e1977ad42b760885f825158915 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:24 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:14 -0700 IB/ipath: Fix lockdep error upon "ifconfig ibN down" Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 7a26c47412b201e1977ad42b760885f825158915 tree 523874b1a1ad97cbfee58737952dc38ce717a518 parent bf3258ec418a008ab4672787ebff2c5837dd1e69 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:23 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:12 -0700 IB/ipath: Fix races with ib_resize_cq() The resize CQ function changes the memory used to store the queue. Other routines need to honor the lock before accessing the pointer to the queue and verify that the head and tail are in range. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit bf3258ec418a008ab4672787ebff2c5837dd1e69 tree c7dc058087aa04ec51462979554af8fca5c4ff5b parent c97d27d8a992cf6cefee945489d5f93fca160aa2 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:22 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:10 -0700 IB/ipath: Support new PCIE device, QLE7142 Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit c97d27d8a992cf6cefee945489d5f93fca160aa2 tree 6d788ad830d2437c217a3000d681d9422a7dfc3d parent 1a4e74a08788db913486cb9a3dc30984c55e9897 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:21 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:07 -0700 IB/ipath: Set CPU affinity early This change moves around port assignment so that it happens before any memory is allocated. This allows memory to be allocated on an appropriate CPU, which improves performance for users of /dev/ipath. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 1a4e74a08788db913486cb9a3dc30984c55e9897 tree 29a2ca27af6000366c9d9a751629c78632820d4c parent 89d1e09b6a6d844ef327937f41658a426be42501 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:19 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:05 -0700 IB/ipath: Fix EEPROM read when driver is compiled with -Os The EEPROM is read via programmable I/O pins. When the driver is compiled -Os, the CPU can speculatively read the I/O value before it is valid. This patch fixes the problem. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 89d1e09b6a6d844ef327937f41658a426be42501 tree 5730241c737baf67b0b1ddf89ff38f6936d649c4 parent 510847750c9d26052a71631e0fcad9e7f7a5f369 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:18 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:03 -0700 IB/ipath: Fix and recover TXE piobuf and PBC parity errors We can sometimes trigger parity errors due to processor speculative reads to our write-combined memory (mostly seen on Woodcrest). Add a stats counter for these. Factored out the sendbuffererror buffer cancellation code so it can be used in the new handling; suppress likely subsequent error messages if within two jiffies of the cancellation. Also restore 2 dropped TXE lines on hwe_bitsextant noticed while debugging. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 510847750c9d26052a71631e0fcad9e7f7a5f369 tree b8cd6a4374785b3417d7c666d6377ee90e11aee2 parent 7227aac47deac20daa0073a1ebbf608b4f2f8d94 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:17 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:17:01 -0700 IB/ipath: Change HT CRC message to indicate how to resolve problem The system must be powercycled to clear a HT CRC error; reloading the driver is not enough. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 7227aac47deac20daa0073a1ebbf608b4f2f8d94 tree 63cd3ed2aefe30012ea538515b1dd8bbdc908989 parent 957670a57eb63b932b09b444ad44192ad9ee9382 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:16 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:59 -0700 IB/ipath: Clean up module exit code Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 957670a57eb63b932b09b444ad44192ad9ee9382 tree 915a2c61198f96fc8c479b9af827742bfdf3885f parent 8d0208cb59a43bf867e16b977c34c4d6cd618f59 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:15 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:57 -0700 IB/ipath: Call mtrr_del with correct arguments We were passing 0 for base and length, which worked on older kernels, but it doesn't seem to any longer. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 8d0208cb59a43bf867e16b977c34c4d6cd618f59 tree db5d04d6d0f823118f063d061c9188b57304d19f parent 1fd3b40fde3bfacdf742cadfe99cfd47ffd05219 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:14 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:55 -0700 IB/ipath: Flush RWQEs if access error or invalid error seen If the receiver goes into the error state, we need to flush the posted receive WQEs. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 1fd3b40fde3bfacdf742cadfe99cfd47ffd05219 tree 5f08e8046319dc31d5abdec16764b7889feb9b74 parent 076fafcdee37c87564abd1ad993e17d77fc32daa author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:13 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:53 -0700 IB/ipath: Improved support for PowerPC Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 076fafcdee37c87564abd1ad993e17d77fc32daa tree a3689e743949a19bcd81f537448bba2a79ca6ee7 parent f62fe77ad26b9c89c2028d96709f0f28793fe6cd author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:12 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:51 -0700 IB/ipath: Drop unnecessary "(void *)" casts Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit f62fe77ad26b9c89c2028d96709f0f28793fe6cd tree c84a4b8b90219a5385299bd9dcd5b994cd1ff531 parent 5659416207a9bcf35a646c7b798b290953e4891c author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:11 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:49 -0700 IB/ipath: Support multiple simultaneous devices of different types Prior to this change, the driver was not able to support a HT and PCIE card simultaneously present in the same machine. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 5659416207a9bcf35a646c7b798b290953e4891c tree 3d8ea17b0e40266378189307192fe7b140d43130 parent 0624b072f230af4f24c112019b04f898ef7b4e2c author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:10 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:47 -0700 IB/ipath: Fix mismatch in shifts and masks for printing debug info Fixed mismatch in linkstate/trainingstate shifts and masks in the IPATH_IBSTATE_MASK macro. It kept some linktrainingstates from being printed correctly in debug; no functionality issue unless I misread the code. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 0624b072f230af4f24c112019b04f898ef7b4e2c tree e3ea265f2945f913594d9017c87e91ea6035d6d6 parent 8d588f8bb79c86a5826f66946c1ea026b6b07bd8 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:09 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:45 -0700 IB/ipath: Fix compiler warnings and errors on non-x86_64 systems Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 8d588f8bb79c86a5826f66946c1ea026b6b07bd8 tree 472dfec24f59ac565cd97e67dd62f8df4fa93d24 parent 6a553af286653818bb5831f1b351eefdc8a93b61 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:08 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:43 -0700 IB/ipath: Print more informative parity error messages Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 6a553af286653818bb5831f1b351eefdc8a93b61 tree f37156843f767f7609b266dd42675c812767966a parent 10aeb0e6d8823c1cccf9edc8401c848745c128be author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:07 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:41 -0700 IB/ipath: Ensure that PD of MR matches PD of QP checking the Rkey Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 10aeb0e6d8823c1cccf9edc8401c848745c128be tree 641cd8b5ff5e82598703a9502622894b78ef75f3 parent 7dae5bff2e8e4699744e782a6e7605ad18d1240e author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:06 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:39 -0700 IB/ipath: RC and UC should validate SLID and DLID This is required for IB conformance (spec ch. 9.6.1.5). Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 7dae5bff2e8e4699744e782a6e7605ad18d1240e tree dc771fe6e05c45eeabc66812f7706345042dbb87 parent f3e93c7757043cd5d5c4879b8b92effcc7817c81 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:05 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:37 -0700 IB/ipath: Only allow complete writes to flash Don't allow a write to the eeprom from ipathfs unless the write is exactly 128 bytes and starts at offset 0. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit f3e93c7757043cd5d5c4879b8b92effcc7817c81 tree 0c0ea60bc3af804f34f400b5f63ac558e1d0c6bf parent aa4eaed702cb5d07babaaa04596436156b922249 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:04 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:35 -0700 IB/ipath: Count SRQs properly Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit aa4eaed702cb5d07babaaa04596436156b922249 tree a191d501fe979fb9440859a4155bb1efac4a797e parent 11b054fe1d453954449a86de178bb98274bb86ef author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:03 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:34 -0700 IB/ipath: Lock and count allocated CQs properly Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 11b054fe1d453954449a86de178bb98274bb86ef tree 9c53e99d7496389260f717f1c5e730837a2d1cfe parent c78f6415e964aafd3a91d834970c16b613e421d9 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:02 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:32 -0700 IB/ipath: Clean up handling of GUID 0 Respond with an error to the SM if our GUID is 0, and don't allow the user to set our GUID to 0. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit c78f6415e964aafd3a91d834970c16b613e421d9 tree 0c12248b84ed15f5c49cce6a9160facf3feab82f parent 2c9446a1d63f1ca570e92f89422595732efedf44 author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:01 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:29 -0700 IB/ipath: Unregister from IB core early This gives upper-level protocols a chance to unregister while the device is still usable. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 2c9446a1d63f1ca570e92f89422595732efedf44 tree 9b401358de12f9f88e79ac471c5950b61aba45a3 parent 9929b0fb0f35f54371e9364bab809bcd753f9d3a author Bryan O'Sullivan Thu, 28 Sep 2006 09:00:00 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:27 -0700 IB/ipath: Support revision 2 InfiniPath PCIE devices This also entailed a little GPIO-interrupt general cleanup. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 9929b0fb0f35f54371e9364bab809bcd753f9d3a tree 1722f36becc47589bb7b0d98ad00c10dece2a95e parent 221e31985b490309eb9ae33ac815deae3b5aa021 author Bryan O'Sullivan Thu, 28 Sep 2006 08:59:59 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:25 -0700 IB/ipath: Driver support for userspace sharing of HW contexts This allows multiple userspace processes to share a single hardware context in a master/slave arrangement. It is backwards binary compatible with existing userspace. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 221e31985b490309eb9ae33ac815deae3b5aa021 tree b18590bafe833354d80e03f2184d40d2e6ad4551 parent 6022943eb4cb3cb9e43f27f1faeaba38e162d966 author Bryan O'Sullivan Thu, 28 Sep 2006 08:59:58 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:23 -0700 IB/ipath: Fix memory leak if allocation fails If the second allocation failed, the first structure allocated in this routine was not freed. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit 6022943eb4cb3cb9e43f27f1faeaba38e162d966 tree 0c495a94448610e20a4872416b85c8ffdb0f2adf parent fd6a79a786b84510d00ee6aa6449a468e6d75dee author Bryan O'Sullivan Thu, 28 Sep 2006 08:59:57 -0700 committer Roland Dreier Thu, 28 Sep 2006 11:16:21 -0700 IB/ipath: Limit # of packets sent without an ACK received The sender requests an ACK every 1/2 MB to avoid retransmit timeouts that were causing MVAPICH mod_bw to fail after a predictable number of sends. Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier commit fd6a79a786b84510d00ee6aa6449a468e6d75dee tree f9f4d8b26aa664922852e4fcfd0d00544708f4b7 parent 74a2078061409e027ccb51a28cf6174c31ab8f99 author Erez Zilber Wed, 27 Sep 2006 16:48:57 +0300 committer Roland Dreier Thu, 28 Sep 2006 10:54:51 -0700 IB/iser: Fix the description of iSER in Kconfig Fix the description of iSER in Kconfig. It is not accurate. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit 74a2078061409e027ccb51a28cf6174c31ab8f99 tree 281557a02ff3c5fe33e0d2dbf52fe77b6eaab474 parent 87e8df7a273c7c1acb864c90b5253609c44375a6 author Erez Zilber Wed, 27 Sep 2006 16:43:06 +0300 committer Roland Dreier Thu, 28 Sep 2006 10:53:18 -0700 IB/iser: DMA unmap unaligned for RDMA data before touching it iSER uses the DMA mapping api to map the page holding the SCSI command data to the HCA DMA address space. When the command data is not aligned for RDMA, the data is copied to/from an allocated buffer which in turn is used for executing this command. The pages associated with the command must be unmapped before being touched. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit 87e8df7a273c7c1acb864c90b5253609c44375a6 tree e1de2523387f416a67570122c2632ca3be80aafd parent ee30cb5b0b65392843cc3beaba48160ee4a3764e author Erez Zilber Wed, 27 Sep 2006 15:27:10 +0300 committer Roland Dreier Thu, 28 Sep 2006 10:53:16 -0700 IB/iser: Have iSER data transaction object point to iSER conn iSER uses a data transaction object (struct iser_dto) as part of its IB data descriptors (struct iser_desc) management. It also uses a hierarchy of connection structures pointing to each other. A DTO may exist even after the iscsi_iser connection pointed by it is destroyed (eg one that is bound to a post receive buffer which was flushed by the IB HW). Hence DTOs need point to the lowest connection, which is struct iser_conn. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier commit ee30cb5b0b65392843cc3beaba48160ee4a3764e tree c996c2327d3986d2a06e3a1352aa8774394aadca parent 44334bd97e76662c5f40c629357e6acc4dee3e8a author Roland Dreier Thu, 28 Sep 2006 10:44:07 -0700 committer Roland Dreier Thu, 28 Sep 2006 10:44:07 -0700 RDMA/amso1100: Fix memory leak in c2_reg_phys_mr() If the allocation of mr fails, then c2_reg_phys_mr() leaks the page_list array it allocated earlier. This was Coverity CID #1413. Signed-off-by: Roland Dreier commit 44334bd97e76662c5f40c629357e6acc4dee3e8a tree a64a99877e65dcc86b28a45a28c2ca9cb2111126 parent 6edf602341cd8f6e79479ff7f5bca72562c1f608 author Eric Sesterhenn Thu, 28 Sep 2006 10:38:32 -0700 committer Roland Dreier Thu, 28 Sep 2006 10:38:32 -0700 RDMA/amso1100: Fix error path in c2_llp_accept() Another NULL dereference spotted by the Coverity checker (cid #1395): In case we can't alloc the vq_req, we goto bail1, where we call vq_req_free(c2dev, vq_req); which then dereferences vq_req. Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Acked-by: Tom Tucker Signed-off-by: Roland Dreier commit 1f51c10c5e85050506663bce1d69513eb901db87 tree a71ad28d526c2b4fa3f4ad67084ab61338a0e534 parent cc2b28ba61b0a6bdfcf18274b8b883b98486eca4 author Andrew Victor Thu, 28 Sep 2006 16:26:47 +0100 committer Russell King Thu, 28 Sep 2006 18:11:22 +0100 [ARM] 3870/1: AT91: Start removing static memory mappings This patch removes the static memory mapping for the currently-unused peripherals [Synchronous Serial, Timer/Counter unit], and for those drivers that already ioremap() their registers [UART]. Also, the Ethernet driver now uses the platform_device resources but doesn't yet use ioremap() so we need to pass it the virtual address instead of the physical address. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit 94c12cc7d196bab34aaa98d38521549fa1e5ef76 tree 8e0cec0ed44445d74a2cb5160303d6b4dfb1bc31 parent 25d83cbfaa44e1b9170c0941c3ef52ca39f54ccc author Martin Schwidefsky Thu, 28 Sep 2006 16:56:43 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:56:43 +0200 [S390] Inline assembly cleanup. Major cleanup of all s390 inline assemblies. They now have a common coding style. Quite a few have been shortened, mainly by using register asm variables. Use of the EX_TABLE macro helps as well. The atomic ops, bit ops and locking inlines new use the Q-constraint if a newer gcc is used. That results in slightly better code. Thanks to Christian Borntraeger for proof reading the changes. Signed-off-by: Martin Schwidefsky commit 25d83cbfaa44e1b9170c0941c3ef52ca39f54ccc tree 30d9bbc0a1051b837313edfafc40ffa6c5fbfedc parent 52149ba6b0ddf3e9d965257cc0513193650b3ea8 author Heiko Carstens Thu, 28 Sep 2006 16:56:37 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:56:37 +0200 [S390] Whitespace cleanup. Huge s390 assembly files whitespace cleanup. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 52149ba6b0ddf3e9d965257cc0513193650b3ea8 tree af8097516b3cd9d9f2397080e4cf81414fd4172a parent 51dced544e3964b684afc99282ceceaa384b16a8 author Martin Schwidefsky Thu, 28 Sep 2006 16:56:03 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:56:03 +0200 [S390] user readable uninitialised kernel memory. A user space program can read uninitialised kernel memory by appending to a file from a bad address and then reading the result back. The cause is the copy_from_user function that does not clear the remaining bytes of the kernel buffer after it got a fault on the user space address. Signed-off-by: Martin Schwidefsky commit 51dced544e3964b684afc99282ceceaa384b16a8 tree 7f63cd3491c58e4fb60fd1bce7c5eea887ab42e9 parent 0efa470363699ecba49e67cc3c75f46b300f98a4 author Jan Glauber Thu, 28 Sep 2006 16:55:53 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:53 +0200 [S390] init_timer in tty3270. Call init_timer only once fpr tp->timer in tty3270. Signed-off-by: Jan Glauber Signed-off-by: Martin Schwidefsky commit 0efa470363699ecba49e67cc3c75f46b300f98a4 tree a27ea609d8a45369fa47d016839fc94db8f80cdb parent d9f7a745d55527d0d41684b22506a86c4381f7f1 author Christian Borntraeger Thu, 28 Sep 2006 16:55:46 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:46 +0200 [S390] config option for z9-109 code generation. Add a kernel config option for the IBM System z9. This will produce faster code on newer compilers using the -march=z9-109 option. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit d9f7a745d55527d0d41684b22506a86c4381f7f1 tree ea8870ef06c3723ad59b78aac97bfe8152894c72 parent 1fce518e8e7de62597c823d6d795cafc694e7910 author Martin Schwidefsky Thu, 28 Sep 2006 16:55:39 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:39 +0200 [S390] __div64_32 for 31 bit. The clocksource infrastructure introduced with commit ad596171ed635c51a9eef829187af100cbf8dcf7 broke 31 bit s390. The reason is that the do_div() primitive for 31 bit always had a restriction: it could only divide an unsigned 64 bit integer by an unsigned 31 bit integer. The clocksource code now uses do_div() with a base value that has the most significant bit set. The result is that clock->cycle_interval has a funny value which causes the linux time to jump around like mad. The solution is "obvious": implement a proper __div64_32 function for 31 bit s390. Signed-off-by: Martin Schwidefsky commit 1fce518e8e7de62597c823d6d795cafc694e7910 tree 3026f6f638feb0935ba29b5807d909733d22ccc0 parent 23c100d99c1dfd0bba49a63fb02a8f8fddad607b author Christian Borntraeger Thu, 28 Sep 2006 16:55:33 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:33 +0200 [S390] remove unnecessary includes. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit 23c100d99c1dfd0bba49a63fb02a8f8fddad607b tree c937d041eea37d24997e0bcc0b385c07d8d541d5 parent 925afbd6cbc0d5154710f00dc186518f396e04ec author Michael Holzheu Thu, 28 Sep 2006 16:55:28 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:28 +0200 [S390] hypfs sparse warnings. sparse complains, if we use bitwise operations on enums. Cast enum to long in order to fix that problem! Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 925afbd6cbc0d5154710f00dc186518f396e04ec tree 98e3594f8a2a0d6b26eb3e00ac5155bd91de6e63 parent bac9c66cd25e134077b284fc59bee6e5a8475d33 author Gerald Schaefer Thu, 28 Sep 2006 16:55:23 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:23 +0200 [S390] Avoid static struct initializations in appldata. Don't use static initialization for struct members containing variables because gcc would generate more code and use double space on stack. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky commit bac9c66cd25e134077b284fc59bee6e5a8475d33 tree 5fa9a8bbda52f10f613060849f13e403a7dedb89 parent a77c64c1a641950626181b4857abb701d8f38ccc author Akinobu Mita Thu, 28 Sep 2006 16:55:18 +0200 committer Martin Schwidefsky Thu, 28 Sep 2006 16:55:18 +0200 [S390] init task memory faults. Lock for mmap_sem is missing on page fault retry for init task when it fails due to out of memory. Signed-off-by: Akinobu Mita Signed-off-by: Martin Schwidefsky commit cc2b28ba61b0a6bdfcf18274b8b883b98486eca4 tree 63b6c8c1be3708399d116a4b84485516bf0a90a8 parent 97f0fb68f142b477773c05140da27c1dbd31a2ab author Andrew Victor Thu, 28 Sep 2006 10:27:00 +0100 committer Russell King Thu, 28 Sep 2006 11:53:55 +0100 [ARM] 3869/1: AT91: NAND support for DK and KB9202 boards This patch adds support for the NAND flash on the Atmel AT91RM9200-DK and KwikByte KB920x boards. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit 97f0fb68f142b477773c05140da27c1dbd31a2ab tree b44ae4dda6b66f408be6b1af3db87d6df93f2d6e parent f21738341ca330ec83ef978ee63ffa5ecf13f082 author Andrew Victor Wed, 27 Sep 2006 16:18:18 +0100 committer Russell King Thu, 28 Sep 2006 11:53:54 +0100 [ARM] 3868/1: AT91 hardware header update This patch adds the hardware register definitions for the TWI (I2C) controller found on the AT91RM9200 and AT91SAM9xx processors. It also defines the AIC Fast-Forcing registers added to the AT91SAM9's. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit f21738341ca330ec83ef978ee63ffa5ecf13f082 tree be42abeb9ef2509a5a0c4187f4aa076d8f3c2dee parent 2eeaaa21de68cb8869d3a54438a9224321d3dd03 author Andrew Victor Wed, 27 Sep 2006 13:23:00 +0100 committer Russell King Thu, 28 Sep 2006 11:53:47 +0100 [ARM] 3867/1: AT91 GPIO update This patch makes the AT91 gpio.c support processor-generic (AT91RM9200 and AT91SAM9xxx). The GPIO controllers supported by a particular AT91 processor are defined in the processor-specific file and are registered with gpio.c at startup. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit 2eeaaa21de68cb8869d3a54438a9224321d3dd03 tree 3d81cac00241b7a4239497d60bc409210ba42429 parent 72729910c38ca5b4736032c15dc3f9d48fe4f68a author Andrew Victor Wed, 27 Sep 2006 10:50:59 +0100 committer Russell King Thu, 28 Sep 2006 11:52:06 +0100 [ARM] 3866/1: AT91 clock update This patch makes the AT91 clock.c support processor-generic (AT91RM9200 and AT91SAM9xxx). The clocks supported by a particular AT91 processor are defined in the processor-specific file and are registered with clock.c at startup. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit 72729910c38ca5b4736032c15dc3f9d48fe4f68a tree e7461ec8e0ff07d1634d7d7a467cb8454135a5c8 parent 26f908186f923291999833e9d563259834bdca06 author Andrew Victor Wed, 27 Sep 2006 09:44:11 +0100 committer Russell King Thu, 28 Sep 2006 11:52:05 +0100 [ARM] 3865/1: AT91RM9200 header updates This is more preparation for adding support for the new Atmel AT91SAM9 processors. Changes include: - Replace AT91_BASE_* with AT91RM9200_BASE_* - Replace AT91_ID_* with AT91RM9200_ID_* - ROM, SRAM and UHP address definitions moved to at91rm9200.h. - The raw AT91_P[ABCD]_* definitions are now depreciated in favour of the GPIO API. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit 6e73b418887675da18602550ca296211caeb3897 tree 52b5b7533038dd3f21854787917c37c97093a4f8 parent 6f1f21684078884b62cfff2ea80a1a6c07f79824 author Vlad Apostolov Thu, 28 Sep 2006 11:06:21 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:06:21 +1000 [XFS] 955947: Infinite loop in xfs_bulkstat() on formatter() error SGI-PV: 955947 SGI-Modid: xfs-linux-melb:xfs-kern:26986a Signed-off-by: Vlad Apostolov Signed-off-by: Tim Shimmin commit 6f1f21684078884b62cfff2ea80a1a6c07f79824 tree fb238ef535e721cf6a0e992a416455335db26ad2 parent 6216ff18839bf302805f67c93e8bc344387c513b author Vlad Apostolov Thu, 28 Sep 2006 11:06:15 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:06:15 +1000 [XFS] pv 956241, author: nathans, rv: vapo - make ino validation checks consistent in bulkstat SGI-PV: 956241 SGI-Modid: xfs-linux-melb:xfs-kern:26984a Signed-off-by: Vlad Apostolov Signed-off-by: Tim Shimmin commit 6216ff18839bf302805f67c93e8bc344387c513b tree 3b94cb694ef8277ab0006cb2363dadfe7c348124 parent f273ab848b7cbc0088b0ac7457b3769e6566074e author Vlad Apostolov Thu, 28 Sep 2006 11:06:10 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:06:10 +1000 [XFS] pv 956240, author: nathans, rv: vapo - Minor fixes in kmem_zalloc_greedy() SGI-PV: 956240 SGI-Modid: xfs-linux-melb:xfs-kern:26983a Signed-off-by: Vlad Apostolov Signed-off-by: Tim Shimmin commit f273ab848b7cbc0088b0ac7457b3769e6566074e tree 27f1b0ce7b056f77e7105284524cbdb658943ae5 parent 01106eae97b70399ce5a273a3cceb5246e8d9cc8 author David Chinner Thu, 28 Sep 2006 11:06:03 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:06:03 +1000 [XFS] Really fix use after free in xfs_iunpin. The previous attempts to fix the linux inode use-after-free in xfs_iunpin simply made the problem harder to hit. We actually need complete exclusion between xfs_reclaim and xfs_iunpin, as well as ensuring that the i_flags are consistent during both of these functions. Introduce a new spinlock for exclusion and the i_flags, and fix up xfs_iunpin to use igrab before marking the inode dirty. SGI-PV: 952967 SGI-Modid: xfs-linux-melb:xfs-kern:26964a Signed-off-by: David Chinner Signed-off-by: Tim Shimmin commit 01106eae97b70399ce5a273a3cceb5246e8d9cc8 tree b2a318f9bfaea1a31e586782854e5c8c0a25b8b7 parent 7ae67d78e7518fba89e5f3a74bdcb68e48ae8858 author Eric Sandeen Thu, 28 Sep 2006 11:05:52 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:05:52 +1000 [XFS] Collapse sv_init and init_sv into just the one interface. SGI-PV: 907752 SGI-Modid: xfs-linux-melb:xfs-kern:26925a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 7ae67d78e7518fba89e5f3a74bdcb68e48ae8858 tree 6582b0968c4c8554eeb16efb8d9b7018877671f1 parent 91d87232044c1ceb8371625c27479e982984a848 author Eric Sandeen Thu, 28 Sep 2006 11:05:46 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:05:46 +1000 [XFS] standardize on one sema init macro One sema to rule them all, one sema to find them... SGI-PV: 907752 SGI-Modid: xfs-linux-melb:xfs-kern:26911a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 91d87232044c1ceb8371625c27479e982984a848 tree 535e6ae2630625624c245dee818523b70ea4fb9f parent edcd4bce5e58987c8c039bdf7705a22cd229fe96 author Eric Sandeen Thu, 28 Sep 2006 11:05:40 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:05:40 +1000 [XFS] Reduce endian flipping in alloc_btree, same as was done for ialloc_btree. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26910a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit edcd4bce5e58987c8c039bdf7705a22cd229fe96 tree 208d7420365a9a6f6a0f33a19ae92db205c966b3 parent 215101c36012399cf2eaee849de54eeefc9f618c author Nathan Scott Thu, 28 Sep 2006 11:05:33 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:05:33 +1000 [XFS] Minor cleanup from dio locking fix, remove an extra conditional. SGI-PV: 955696 SGI-Modid: xfs-linux-melb:xfs-kern:26908a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 215101c36012399cf2eaee849de54eeefc9f618c tree 02b4f4e8e312503be9515a2b064528b25ec7d8f2 parent e132f54ce8660bbf34723cc12cb11e6f61d6fbac author Nathan Scott Thu, 28 Sep 2006 11:04:43 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:04:43 +1000 [XFS] Fix kmem_zalloc_greedy warnings on 64 bit platforms. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26907a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit e132f54ce8660bbf34723cc12cb11e6f61d6fbac tree 70b188bd20af01adf9c801088213403e2025db0c parent 22de606a0b9623bf15752808f123848a65a6cc28 author Vlad Apostolov Thu, 28 Sep 2006 11:04:31 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:04:31 +1000 [XFS] pv 955157, rv bnaujok - break the loop on EFAULT formatter() error SGI-PV: 955157 SGI-Modid: xfs-linux-melb:xfs-kern:26869a Signed-off-by: Vlad Apostolov Signed-off-by: Tim Shimmin commit 22de606a0b9623bf15752808f123848a65a6cc28 tree f4432677ca6c876b230caf8a0efb9bb3a49fd40e parent 955e47ad28b5b255ddcd7eb9cb814a269dc6e991 author Vlad Apostolov Thu, 28 Sep 2006 11:04:24 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:04:24 +1000 [XFS] pv 955157, rv bnaujok - break the loop on formatter() error SGI-PV: 955157 SGI-Modid: xfs-linux-melb:xfs-kern:26866a Signed-off-by: Vlad Apostolov Signed-off-by: Tim Shimmin commit 955e47ad28b5b255ddcd7eb9cb814a269dc6e991 tree 46890060c312cacd02dedcd830812aa7287449f8 parent 22d91f65d57a7f1a1c5fc81f47b47b0cc54ad6f7 author Tim Shimmin Thu, 28 Sep 2006 11:04:16 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:04:16 +1000 [XFS] Fixes the leak in reservation space because we weren't ungranting space for the unmount record - which becomes a problem in the freeze/thaw scenario. SGI-PV: 942533 SGI-Modid: xfs-linux-melb:xfs-kern:26815a Signed-off-by: Tim Shimmin commit 22d91f65d57a7f1a1c5fc81f47b47b0cc54ad6f7 tree b8110f18127ef5882987cd7c7aabbd6801d391cc parent 68c3271515f11f6665dc8732e53aaab3d3fdd7d3 author Josh Triplett Thu, 28 Sep 2006 11:04:07 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:04:07 +1000 [XFS] Add lock annotations to xfs_trans_update_ail and xfs_trans_delete_ail xfs_trans_update_ail and xfs_trans_delete_ail get called with the AIL lock held, and release 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. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26807a Signed-off-by: Josh Triplett Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 68c3271515f11f6665dc8732e53aaab3d3fdd7d3 tree 18d8c9996da0666efbf8bb1edbb7ad5b1011f491 parent d432c80e68e3c283fc9a85021f5b65e0aabf254e author Nathan Scott Thu, 28 Sep 2006 11:03:53 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:53 +1000 [XFS] Fix a porting botch on the realtime subvol growfs code path. SGI-PV: 955515 SGI-Modid: xfs-linux-melb:xfs-kern:26806a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit d432c80e68e3c283fc9a85021f5b65e0aabf254e tree 95bd72316cc4992d6dc1392f24a8d6786f15d221 parent b627259c602f3f1b995d09aad2b57bed889430b9 author Nathan Scott Thu, 28 Sep 2006 11:03:44 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:44 +1000 [XFS] Minor code rearranging and cleanup to prevent some coverity false positives. SGI-PV: 955502 SGI-Modid: xfs-linux-melb:xfs-kern:26805a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit b627259c602f3f1b995d09aad2b57bed889430b9 tree 8bd0c3d34fed9e3874eb8891273b85efab9d0653 parent 77e4635ae191774526ed695482a151ac986f3806 author Nathan Scott Thu, 28 Sep 2006 11:03:33 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:33 +1000 [XFS] Remove a no-longer-correct debug assert from dio completion handling. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26804a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 77e4635ae191774526ed695482a151ac986f3806 tree 42cfa03f913883cd7f3d53be19b7e8c25258ee2c parent 572d95f49f3652fffe8242c4498b85f4083e52ab author Nathan Scott Thu, 28 Sep 2006 11:03:27 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:27 +1000 [XFS] Add a greedy allocation interface, allocating within a min/max size range. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26803a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 572d95f49f3652fffe8242c4498b85f4083e52ab tree 5c452a69a005a6a18dc80e4ab7090d6d8e230fc6 parent 948ecdb4c118293d2f3e267eec642c30c5d3a056 author Nathan Scott Thu, 28 Sep 2006 11:03:20 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:20 +1000 [XFS] Improve error handling for the zero-fsblock extent detection code. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26802a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 948ecdb4c118293d2f3e267eec642c30c5d3a056 tree 73675cc22ba239f49c479acae0fed447270b5d06 parent efb8ad7e9431a430a75d44288614cf6047ff4baa author Nathan Scott Thu, 28 Sep 2006 11:03:13 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:13 +1000 [XFS] Be more defensive with page flags (error/private) for metadata buffers. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26801a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit efb8ad7e9431a430a75d44288614cf6047ff4baa tree cbebf7d8bf1b5f25235756c0aa7ff610d4cb4055 parent 3f89243c5b987dd55f8eec6fd54be05887d69bc6 author Nathan Scott Thu, 28 Sep 2006 11:03:05 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:03:05 +1000 [XFS] Add a debug flag for allocations which are known to be larger than one page. SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26800a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 3f89243c5b987dd55f8eec6fd54be05887d69bc6 tree a642932049eadf9c9eb94bd16f3b1594c11a466b parent 065d312e15902976d256ddaf396a7950ec0350a8 author Eric Sandeen Thu, 28 Sep 2006 11:02:57 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:57 +1000 [XFS] Remove several macros that are no longer used anywhere SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26749a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 065d312e15902976d256ddaf396a7950ec0350a8 tree 3bb473ec8f6d6dd8abc551ac52692d9e68d1721b parent 43129c16e85119355d352e10ff4b30a08053228c author Eric Sandeen Thu, 28 Sep 2006 11:02:44 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:44 +1000 [XFS] Remove unused iop_abort log item operation SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26747a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 43129c16e85119355d352e10ff4b30a08053228c tree 3da4c2bedb8b4b46e74493d305f3adcff5399907 parent 17370097dace78c93d6fa32110983e74b981d192 author Eric Sandeen Thu, 28 Sep 2006 11:02:37 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:37 +1000 [XFS] Remove a couple of unused BUF macros SGI-PV: 955302 SGI-Modid: xfs-linux-melb:xfs-kern:26746a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 17370097dace78c93d6fa32110983e74b981d192 tree 30d8436cbaff72f4fe4a89e6a6d1aeedfbfea65c parent 745b1f47fc0c68dbb1ff440eec8889f61e57194b author Vlad Apostolov Thu, 28 Sep 2006 11:02:30 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:30 +1000 [XFS] pass file mode on DMAPI remove events SGI-PV: 953687 SGI-Modid: xfs-linux-melb:xfs-kern:26639a Signed-off-by: Vlad Apostolov Signed-off-by: Tim Shimmin commit 745b1f47fc0c68dbb1ff440eec8889f61e57194b tree 419a02c175ae4d6d6a2eeac7561c7eeb77b789b6 parent a3c6685eaa1b6c5cf05b084b3bc91895e253ad2c author Nathan Scott Thu, 28 Sep 2006 11:02:23 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:23 +1000 [XFS] Remove last bulkstat false-positives with debug kernels. SGI-PV: 953819 SGI-Modid: xfs-linux-melb:xfs-kern:26628a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit a3c6685eaa1b6c5cf05b084b3bc91895e253ad2c tree e8302047f74bdb3071451e1b0b848dab37624f0f parent bb3c7d2936b6db6f5ded9abf4d215abe97af8372 author Nathan Scott Thu, 28 Sep 2006 11:02:14 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:14 +1000 [XFS] Ensure xlog_state_do_callback does not report spurious warnings on ramdisks. SGI-PV: 954802 SGI-Modid: xfs-linux-melb:xfs-kern:26627a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit bb3c7d2936b6db6f5ded9abf4d215abe97af8372 tree 0958e0102e703cceb42c4d4947227ac29642456e parent 2627509330323efc88b5818065cba737e000de5c author Nathan Scott Thu, 28 Sep 2006 11:02:09 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:09 +1000 [XFS] Increase the size of the buffer holding the local inode cluster list, to increase our potential readahead window and in turn improve bulkstat performance. SGI-PV: 944409 SGI-Modid: xfs-linux-melb:xfs-kern:26607a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 2627509330323efc88b5818065cba737e000de5c tree 1305a2809944fb5baf7f0287db6b59687cfed81c parent 51bdd70681e247184b81c2de61dbc26154511155 author Nathan Scott Thu, 28 Sep 2006 11:02:03 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:02:03 +1000 [XFS] Drop unneeded endian conversion in bulkstat and start readahead for batches of inode cluster buffers at once, before any blocking reads are issued. SGI-PV: 944409 SGI-Modid: xfs-linux-melb:xfs-kern:26606a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 51bdd70681e247184b81c2de61dbc26154511155 tree 5ed741ebfb03e5e9ba6a9234a20808df28a1b186 parent 8b56f083c2a6bd0a88271225f0bcf1d81db20d3c author Nathan Scott Thu, 28 Sep 2006 11:01:57 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:01:57 +1000 [XFS] When issuing metadata readahead, submit bio with READA not READ. SGI-PV: 944409 SGI-Modid: xfs-linux-melb:xfs-kern:26603a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 8b56f083c2a6bd0a88271225f0bcf1d81db20d3c tree 90acd2461a8d7a8852385711ce7ef4a771f0cebb parent 726801ba067410a1d38518823f2c253a087f6c6f author Nathan Scott Thu, 28 Sep 2006 11:01:46 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:01:46 +1000 [XFS] Rework DMAPI bulkstat calls in such a way that we can directly extract inline attributes out of the bulkstat buffer (for that case), rather than using an (extremely expensive for large icount filesystems) iget for fetching attrs. SGI-PV: 944409 SGI-Modid: xfs-linux-melb:xfs-kern:26602a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 726801ba067410a1d38518823f2c253a087f6c6f tree 78e544ad0bf55d4055ddf83f10562ba5e77bb1e3 parent 69e23b9a5e7430ced667d8b699330e370c202f28 author Tim Shimmin Thu, 28 Sep 2006 11:01:37 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:01:37 +1000 [XFS] Add EA list callbacks for xfs kernel use. Cleanup some namespace code. SGI-PV: 954372 SGI-Modid: xfs-linux-melb:xfs-kern:26583a Signed-off-by: Tim Shimmin commit 69e23b9a5e7430ced667d8b699330e370c202f28 tree 9a3cf3d783adf98b9f76c354e7da6de1bfbb70b3 parent 29b6d22b011d83dac8ca5b7d26f766ae598abbbd author Nathan Scott Thu, 28 Sep 2006 11:01:22 +1000 committer Tim Shimmin Thu, 28 Sep 2006 11:01:22 +1000 [XFS] Update XFS for i_blksize removal from generic inode structure SGI-PV: 954366 SGI-Modid: xfs-linux-melb:xfs-kern:26565a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 29b6d22b011d83dac8ca5b7d26f766ae598abbbd tree eba7a7e096efa082fbfe8715a2fa2c3d976cab87 parent fe48cae9ed979d2ac14080c837d793c4f6bfaa82 author Nathan Scott Thu, 28 Sep 2006 10:59:06 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:59:06 +1000 [XFS] remove accidentally reintroduced vfs unmount flag, unneeded in current kernels SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26564a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit fe48cae9ed979d2ac14080c837d793c4f6bfaa82 tree 8e130619553b5415952b2184a83c6fabc7c062f8 parent 1121b219bf3fe6d1bd1d1f7618cc5e0c409fabb4 author Christoph Hellwig Thu, 28 Sep 2006 10:58:52 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:58:52 +1000 [XFS] remove bhv_lookup, _range version works aswell and has more useful semantics. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26563a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 1121b219bf3fe6d1bd1d1f7618cc5e0c409fabb4 tree e4fa877ce76e9d8aca0addf38611c882ff5d726a parent 8801bb99e4425b9a778b355153ab3254bb431d92 author Nathan Scott Thu, 28 Sep 2006 10:58:40 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:58:40 +1000 [XFS] use NULL for pointer initialisation instead of zero-cast-to-ptr SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26562a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 8801bb99e4425b9a778b355153ab3254bb431d92 tree 56659910a182c468c40db7e56de7d37f940f5879 parent 576039cf3c668d5f8d97dff8a0a5817e8b3a761b author Christoph Hellwig Thu, 28 Sep 2006 10:58:17 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:58:17 +1000 [XFS] endianess annotations for xfs_bmbt_key Trivial as there are no incore users. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26561a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 576039cf3c668d5f8d97dff8a0a5817e8b3a761b tree b6d28b6fc2d8fc24759ab8732b9db978b709aa3a parent 397b5208d5609e2f01b171a34ab690f325253492 author Christoph Hellwig Thu, 28 Sep 2006 10:58:06 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:58:06 +1000 [XFS] endianess annotate XFS_BMAP_BROOT_PTR_ADDR Make sure it returns a __be64 and let the callers use the proper macros. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26560a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 397b5208d5609e2f01b171a34ab690f325253492 tree 5ca1934ecc40839cf66b609209a72ec89f58c165 parent b113bcb83efb411f3cc6c7692fbf933ed01b67d8 author Christoph Hellwig Thu, 28 Sep 2006 10:57:52 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:57:52 +1000 [XFS] endianess annotations for xfs_bmbt_ptr_t/xfs_bmdr_ptr_t SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26559a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit b113bcb83efb411f3cc6c7692fbf933ed01b67d8 tree 8b414cbdc2f8fdffbaa7a93e8e11d0d1679a5bc5 parent c38e5e84dbbeda9a92ea878ec9f6255b519a69e7 author Christoph Hellwig Thu, 28 Sep 2006 10:57:42 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:57:42 +1000 [XFS] add xfs_btree_check_lptr_disk variant which handles endian conversion SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26558a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit c38e5e84dbbeda9a92ea878ec9f6255b519a69e7 tree 5375b3bb535cf885ac5582a6d854aa7b6c56a1fe parent 61a258486795ff710cf4518b5a1729c965c32aa0 author Christoph Hellwig Thu, 28 Sep 2006 10:57:17 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:57:17 +1000 [XFS] remove left over INT_ comments in *alloc*.c We can verify endianess handling with sparse now, no need for comments. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26557a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 61a258486795ff710cf4518b5a1729c965c32aa0 tree 80ed20512f5c811f5114ac99eeecca88220a7787 parent e21010053a0f11122db728f82ae115f2808752d6 author Christoph Hellwig Thu, 28 Sep 2006 10:57:04 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:57:04 +1000 [XFS] endianess annotations for xfs_inobt_rec_t / xfs_inobt_key_t SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26556a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit e21010053a0f11122db728f82ae115f2808752d6 tree d0e5a4dd4ff950a708287ad13c75b11be8c73ad2 parent ed9d88f7b7e6feba457b87ff30249e6c1e139005 author Christoph Hellwig Thu, 28 Sep 2006 10:56:51 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:56:51 +1000 [XFS] endianess annotation for xfs_agfl_t. Trivial, xfs_agfl_t is always used for ondisk values. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26553a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit ed9d88f7b7e6feba457b87ff30249e6c1e139005 tree 8711035c066fd9c4c934c5e622c672a4fb280f0b parent 673cdf5c72ff9551df08a71f2ac1a8fe02888e8d author Nathan Scott Thu, 28 Sep 2006 10:56:43 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:56:43 +1000 [XFS] Fix sparse warning found when page tracing enabled, due to overloaded gfp_t param. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26552a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 673cdf5c72ff9551df08a71f2ac1a8fe02888e8d tree 94857685aa78d1b1edc7f526a961ff59549cf415 parent 87395deb0b3d174ffcc7f66569764f0715ac5174 author Nathan Scott Thu, 28 Sep 2006 10:56:26 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:56:26 +1000 [XFS] Fix rounding bug in xfs_free_file_space found by sparse checking. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26551a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 87395deb0b3d174ffcc7f66569764f0715ac5174 tree 40a3f1372fd2df70a7033ee10efa33f76d0a7aff parent 128dabc5e9aa13dfebcad84e6b4ab31078555131 author Alexey Dobriyan Thu, 28 Sep 2006 10:56:01 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:56:01 +1000 [XFS] move XFS_IOC_GETVERSION to main multiplexer Avoids doing an unnecessary inode to vnode conversion and avoids a memory allocation. SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:26492a Signed-off-by: Alexey Dobriyan Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 128dabc5e9aa13dfebcad84e6b4ab31078555131 tree 2a2fe4bf5298e96f003ff27f273f43b6027c779e parent f07c225036358038bf8a64f75351f10cdca2fb22 author Tim Shimmin Thu, 28 Sep 2006 10:55:43 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:55:43 +1000 [XFS] cleanup the field types of some item format structures SGI-PV: 954365 SGI-Modid: xfs-linux-melb:xfs-kern:26406a Signed-off-by: Tim Shimmin commit f07c225036358038bf8a64f75351f10cdca2fb22 tree b64bb87fa152240d77ae749c3b4a95af9190d583 parent f37ea14969bf85633d3bd29ddf008171a5618855 author Nathan Scott Thu, 28 Sep 2006 10:52:15 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:52:15 +1000 [XFS] Improve xfsbufd delayed write submission patterns, after blktrace analysis. Under a sequential create+allocate workload, blktrace reported backward writes being issued by xfsbufd, and frequent inappropriate queue unplugs. We now insert at the tail when moving from the delwri lists to the temp lists, which maintains correct ordering, and we avoid unplugging queues deep in the submit paths when we'd shortly do it at a higher level anyway. blktrace now reports much healthier write patterns from xfsbufd for this workload (and likely many others). SGI-PV: 954310 SGI-Modid: xfs-linux-melb:xfs-kern:26396a Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit f37ea14969bf85633d3bd29ddf008171a5618855 tree cba4e7f2de1a24ebf97edae50e264b25b0f64892 parent a77c64c1a641950626181b4857abb701d8f38ccc author Alexey Dobriyan Thu, 28 Sep 2006 10:52:04 +1000 committer Tim Shimmin Thu, 28 Sep 2006 10:52:04 +1000 [XFS] pass inode to xfs_ioc_space(), simplify some code. There is trivial "inode => vnode => inode" conversion, but only flags and mode of final inode are looked at. Pass original inode instead. SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:26395a Signed-off-by: Alexey Dobriyan Signed-off-by: Nathan Scott Signed-off-by: Tim Shimmin commit 26f908186f923291999833e9d563259834bdca06 tree 3fd7656ade08d17d6213fdaa27c86bda6f4b0b8b parent ea33a59802f8fd21d24fbf5c906bc3f399bcca00 author David Anders Tue, 26 Sep 2006 17:46:00 +0100 committer Russell King Wed, 27 Sep 2006 23:44:33 +0100 [ARM] 3862/2: S3C2410 - add basic power management support for AML M5900 series this patch registers the wakeup irq, sets a gpio pin to indicate the status of system for suspend/resume operations, and adds the machine to the supported machines for use with the simtec-pm Signed-off-by: David Anders Signed-off-by: Ben Dooks Signed-off-by: Russell King commit ea33a59802f8fd21d24fbf5c906bc3f399bcca00 tree 56358371c405fccf95230fe22e74be9c8bef89d7 parent d1d8f7dec179a421d6d449ddcd1713ed55db40be author Serge E. Hallyn Mon, 07 Aug 2006 11:57:36 -0500 committer Russell King Wed, 27 Sep 2006 23:17:54 +0100 [ARM] kthread: switch arch/arm/kernel/apm.c Switch arch/arm/kernel/apm.c from using kernel_thread - whose export is deprecated - to kthread. Signed-off-by: Serge E. Hallyn Signed-off-by: Russell King commit d1d8f7dec179a421d6d449ddcd1713ed55db40be tree 46dff83ffc5618eb22b60add847434b7e03ada53 parent 576b3ef2495c732a56509febd5de5144f3ebccf6 author Eric Sesterhenn Tue, 26 Sep 2006 14:22:00 +0200 committer Russell King Wed, 27 Sep 2006 23:17:54 +0100 [ARM] Off-by-one in arch/arm/common/icst* hi, a quick find -iname \*.[ch] | xargs grep "> ARRAY_SIZE(", revealed these in the icst drivers. If i == ARRAY_SIZE, we get past the idx2s array. Signed-off-by: Eric Sesterhenn Signed-off-by: Russell King commit 6edf602341cd8f6e79479ff7f5bca72562c1f608 tree 4dd02ea1fb9d18355f89d4adc43bccc05d0ec64a parent cdb8355add9b1d87ecfcb58b12879897dc1e3e36 author Roland Dreier Wed, 27 Sep 2006 14:42:56 -0700 committer Roland Dreier Wed, 27 Sep 2006 14:42:56 -0700 RDMA/amso1100: Fix compile warnings Make sure all 64-bit quantities are cast to unsigned long long when printed with "%ll" printk formats. Signed-off-by: Roland Dreier commit a77c64c1a641950626181b4857abb701d8f38ccc tree 9bfd2a99cc969b3d863d583b9ef18114a4fc4793 parent ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc parent 0ba8821b12231386c8c1d506c682061f7225ae49 author Linus Torvalds Wed, 27 Sep 2006 14:41:24 -0700 committer Linus Torvalds Wed, 27 Sep 2006 14:41:24 -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: (48 commits) [PATCH] bonding: update version number [PATCH] git-netdev-all: pc300_tty build fix [PATCH] Make PC300 WAN driver compile again [PATCH] Modularize generic HDLC [PATCH] more s2io __iomem annotations [PATCH] restore __iomem annotations in e1000 [PATCH] 64bit bugs in s2io [PATCH] bonding: Fix primary selection error at enslavement time [PATCH] bonding: Don't mangle LACPDUs [PATCH] bonding: Validate probe replies in ARP monitor [PATCH] bonding: Don't release slaves when master is admin down [PATCH] bonding: Add priv_flag to avoid event mishandling [PATCH] bonding: Handle large hard_header_len [PATCH] bonding: Remove unneeded NULL test [PATCH] bonding: Format fix in seq_printf call [PATCH] bonding: Convert delay value from s16 to int [PATCH] bonding: Allow bonding to enslave a 10 Gig adapter Delete unused drivers/net/gt64240eth.h [PATCH] skge: fiber support [PATCH] fix possible NULL ptr deref in forcedeth ... commit ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc tree 32d5f592be4222f0d6a8a05fcbc1c2eaed729499 parent 1f9bd4c96a8e918a86e083706e0d3eb7f030b9a3 parent bda3028813bd07f34f30288a492fbf6f7b8712dd author Linus Torvalds Wed, 27 Sep 2006 14:41:00 -0700 committer Linus Torvalds Wed, 27 Sep 2006 14:41:00 -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] Don't use old-EH ->eng_timeout() hook when not needed [libata] sata_mv: fix oops by filling in missing hook [libata] One more s/15/ATA_SECONDARY_IRQ/ substitution [libata] pata_serverworks: fill in ->irq_clear hook [PATCH] pata_serverworks: correct PCI ID in cable detection table [PATCH] libata-sff: use our IRQ defines [PATCH] libata-eh: Remove layering violation and duplication when handling absent ports [PATCH] libata: tighten rules for legacy dependancies [PATCH] libata: refuse to register IRQless ports commit 1f9bd4c96a8e918a86e083706e0d3eb7f030b9a3 tree a840b35ca8c193cb0ec5579de3fac4e4e7f47f11 parent 00463c1633b6d6a2178d2dc794c0a70ac2f9ce6b parent 7f38aa0f04259d37f26e1e906607f1ebb39c0c5c author Linus Torvalds Wed, 27 Sep 2006 14:40:30 -0700 committer Linus Torvalds Wed, 27 Sep 2006 14:40:30 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (129 commits) [PATCH] USB Storage: fix Rio Karma eject support build error USB: Airprime driver improvements to allow full speed EvDO transfers USB: remove OTG build warning USB: EHCI update VIA workaround USB: force root hub resume after power loss USB: ohci_usb can oops on shutdown USB: Dealias -110 code (more complete) USB: Remove unneeded void * casts in core files USB: u132-hcd: host controller driver for ELAN U132 adapter USB: ftdi-elan: client driver for ELAN Uxxx adapters usb serial: support Alcor Micro Corp. USB 2.0 TO RS-232 through pl2303 driver USB: Moschip 7840 USB-Serial Driver USB: add PlayStation 2 Trance Vibrator driver USB: Add ADU support for Ontrak ADU devices aircable: fix printk format warnings Add AIRcable USB Bluetooth Dongle Driver cypress_m8: implement graceful failure handling cypress_m8: improve control endpoint error handling cypress_m8: use usb_fill_int_urb where appropriate cypress_m8: use appropriate URB polling interval ... commit 00463c1633b6d6a2178d2dc794c0a70ac2f9ce6b tree 83d02451139608ad70fb33c5f0e3bb90019841b2 parent cdb8355add9b1d87ecfcb58b12879897dc1e3e36 author Andi Kleen Wed, 27 Sep 2006 21:38:56 +0200 committer Linus Torvalds Wed, 27 Sep 2006 14:39:51 -0700 [PATCH] i386: Use early clobbers for semaphores now The new code does clobber the result early, so make sure to tell gcc to not put it into the same register as a input argument Signed-off-by: Andi Kleen Cc: Andrew Morton Acked-by: Kyle McMartin Signed-off-by: Linus Torvalds commit eed7d41257e2a2a38b3ad121b8948f7bfeaa21c0 tree c32cb37f2c051068b5446801b65a63df02df634b parent 7f1be8924791535c5fdc6749d1f119e141baa122 author Rafa³ Bilski Wed, 27 Sep 2006 08:25:27 +0200 committer Dave Jones Wed, 27 Sep 2006 17:03:36 -0400 [CPUFREQ] longhaul: remove duplicated code. removing duplicated code. Signed-off-by: Rafa³ Bilski Signed-off-by: Dave Jones commit 0ba8821b12231386c8c1d506c682061f7225ae49 tree c17443422c843cb2000a5b3783f3eb8700daec2f parent fab2062ee4a3969a9c6cb7155534d0d15ddeff54 author Jay Vosburgh Tue, 26 Sep 2006 10:55:00 -0700 committer Jeff Garzik Wed, 27 Sep 2006 16:18:24 -0400 [PATCH] bonding: update version number I neglected to properly update the version number in the recent patch series; this sets it to something reasonable. Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit fab2062ee4a3969a9c6cb7155534d0d15ddeff54 tree fc9bc18025a6e023d964cf32324e3f9d9e45f6c3 parent 8aca23103c2ed2cf158adbe92f4f17ee69463d1a author Andrew Morton Wed, 27 Sep 2006 00:40:36 -0700 committer Jeff Garzik Wed, 27 Sep 2006 16:18:24 -0400 [PATCH] git-netdev-all: pc300_tty build fix In file included from drivers/net/wan/pc300_tty.c:59: drivers/net/wan/pc300.h:335: error: field 'pppdev' has incomplete type Cc: Krzysztof Halasa Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 576b3ef2495c732a56509febd5de5144f3ebccf6 tree ba4fa9ef723972d4d3cff1881386a24ef4c6732c parent a2025e7f73ae5eab0a25dad88c60aba67e3ae690 author Dirk Opfer Mon, 25 Sep 2006 22:51:02 +0100 committer Russell King Wed, 27 Sep 2006 20:59:22 +0100 [ARM] 3864/1: Refactore sharpsl_pm This patch adds another hook into sharpsl_pm to notify the machine specific driver immediately after resume. This is needed to support the Sharp SL-6000 (Tosa). Signed-off-by: Dirk Opfer Signed-off-by: Russell King commit a2025e7f73ae5eab0a25dad88c60aba67e3ae690 tree 95470b4d1fea82bf8ef9b92afaf4bf49b8c238f3 parent 8d48427ecb0639593ccf14e807479b7873254ccb author Dirk Opfer Mon, 25 Sep 2006 22:41:47 +0100 committer Russell King Wed, 27 Sep 2006 20:59:00 +0100 [ARM] 3863/1: Add Locomo SPI Device The Locomo chip has a SPI interface which is used for SD/MMC cards (only collie). This patch adds the definition for the SPI device inside the Locomo chip. Signed-off-by: Dirk Opfer Signed-off-by: Russell King commit 8d48427ecb0639593ccf14e807479b7873254ccb tree 7bcc5f49faf33515d5d65fae53d6670cfe76e5c3 parent 2dc94310bd94d0906febea7d0f7c188da620c952 author Richard Purdie Mon, 25 Sep 2006 20:11:48 +0100 committer Russell King Wed, 27 Sep 2006 20:58:59 +0100 [ARM] 3847/2: Convert LOMOMO to use struct device for GPIOs Convert LOMOMO to use struct device * for GPIOs instead of struct locomo_dev. This enables access to the GPIOs from code which is not a locomo device itself (such as audio). Access for gpio 31 is removed for error handling (no such hardware exists). Signed-off-by: Richard Purdie Signed-off-by: Russell King commit 7f38aa0f04259d37f26e1e906607f1ebb39c0c5c tree c4f8c46d467b1a461f3e87b23667a315a72da34e parent 5dda171202f94127e49c12daf780cdae1b4e668b author Andrew Morton Mon, 25 Sep 2006 17:00:52 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 12:45:07 -0700 [PATCH] USB Storage: fix Rio Karma eject support build error In file included from drivers/usb/storage/usb.c:180: drivers/usb/storage/unusual_devs.h:221: error: 'US_PR_KARMA' undeclared here (not in a function) drivers/usb/storage/unusual_devs.h:221: error: 'rio_karma_init' undeclared here (not in a function) Cc: Keith Bennett Acked-by: Bob Copeland Cc: Matthew Dharm Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 5dda171202f94127e49c12daf780cdae1b4e668b tree 475853f201f78fe7401d6a0e44d22ae46ec5d2be parent fc849b85fb14ccbbc10098d501a870bc9b44a641 author Andy Gay Mon, 03 Jul 2006 18:43:01 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:59:00 -0700 USB: Airprime driver improvements to allow full speed EvDO transfers Adapted from an earlier patch by Greg KH . That patch added multiple read urbs and larger transfer buffers to allow data transfers at full EvDO speed. This version includes additional device IDs and fixes a memory leak in the transfer buffer allocation. Some (maybe all?) of the supported devices present multiple bulk endpoints, the additional EPs can be used for control and status functions, This version allocates 3 EPs by default, that can be changed using the 'endpoints' module parameter. Tested with Sierra Wireless EM5625 and MC5720 embedded modules. Device ID (0x0c88, 0x17da) for the Kyocera Wireless KPC650/Passport was added but is not yet tested. From: Andy Gay Cc: Kevin Lloyd Signed-off-by: Greg Kroah-Hartman commit fc849b85fb14ccbbc10098d501a870bc9b44a641 tree f43b5f8e1528ccbb0433304b38b99ab0a6b28369 parent 26f953fd884ea4879585287917f855c63c6b2666 author David Brownell Mon, 18 Sep 2006 16:53:26 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:59:00 -0700 USB: remove OTG build warning Somewhere along the line, a variable in a USB-OTG codepath stopped being used; this removes the relevant compiler warning. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 26f953fd884ea4879585287917f855c63c6b2666 tree 78e6bd71dc1bb4089bc8589eb995765d64d4797d parent 353a4098c61272b33a02ec5802fb3859fec91a0e author David Brownell Mon, 18 Sep 2006 17:03:16 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:59:00 -0700 USB: EHCI update VIA workaround This revamps handling of the hardware "async advance" IRQ, and its watchdog timer. Basically it dis-entangles that important timeout from the others, simplifying the associated state and code to make it more robust. This reportedly improves behavior of EHCI on some systems with VIA chips, and AFAIK won't affect non-VIA hardware. VIA systems need this code to recover from silcon bugs whereby the "async advance" IRQ isn't issued. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 353a4098c61272b33a02ec5802fb3859fec91a0e tree be2480d2fb0184b6d31954f01ccd074296bde252 parent 71795c1df30b034414c921b4930ed88de34ca348 author Alan Stern Tue, 19 Sep 2006 10:07:58 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:59:00 -0700 USB: force root hub resume after power loss This patch(as785) forces the PM core to resume a root hub after a power loss during system sleep. If the root hub had been suspended before the system sleep then normally the PM core would not resume it afterward. Without this resume, various sorts of wakeup events (like port change events) can get lost. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 71795c1df30b034414c921b4930ed88de34ca348 tree 962dc749e8d56bb90d9b40c2401d6519eca8f630 parent 38e2bfc94e95dd6005fdaf40dfec0157396741da author Pete Zaitcev Mon, 18 Sep 2006 22:57:22 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:59:00 -0700 USB: ohci_usb can oops on shutdown When ohci-hcd is shutting down (for rmmod or PC-card removal), there is a window when the device is shut down, HC communication area (->hcca) is freed, but the core has not called "free_irq" yet. If another device triggers a shared interrupt in this window, we oops when trying to access the freed ->hcca. This patch removes the window by calling free_irq before ->hcca is freed. The patch is tested at the PC hotplug test rig at Stratus, and with rmmod by Rafael Wysocki. Signed-off-by: Pete Zaitcev Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 38e2bfc94e95dd6005fdaf40dfec0157396741da tree 1cc927239e3369ec7ce4920b1347dd8bc504bb2d parent ec17cf1cfe0b557210b27313bd584e9b5187d4ca author Pete Zaitcev Mon, 18 Sep 2006 22:49:02 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:59:00 -0700 USB: Dealias -110 code (more complete) The purpose of this patch is to split off the case when a device does not reply on the lower level (which is reported by HC hardware), and a case when the device accepted the request, but does not reply at upper level. This redefinition allows to diagnose issues easier, without asking the user if the -110 happened "immediately". The usbmon splits such cases already thanks to its timestamp, but it's not always available. I adjusted all drivers which I found affected (by searching for "urb"). Out of tree drivers may suffer a little bit, but I do not expect much breakage. At worst they may print a few messages. Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman commit ec17cf1cfe0b557210b27313bd584e9b5187d4ca tree 002f63361c189d3ce3820284199e6fe5d3d95eec parent d774efeabccf5f5207aa70d5c126fc928e8b30bd author Tobias Klauser Wed, 13 Sep 2006 21:38:41 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 USB: Remove unneeded void * casts in core files The patch removes unneeded casts for the following (void *) pointers: - struct file: private - struct urb: context - struct usb_bus: hcpriv - return value of kmalloc() The patch also contains some whitespace cleanup in the relevant areas. Signed-off-by: Tobias Klauser Signed-off-by: Greg Kroah-Hartman commit d774efeabccf5f5207aa70d5c126fc928e8b30bd tree ed06d0e280feb9f0aa89fbf4ef793dd5d48cebce parent a5c66e4b2418278786a025a5bd9625f485b2087a author Tony Olech Wed, 13 Sep 2006 11:27:35 +0100 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 USB: u132-hcd: host controller driver for ELAN U132 adapter This "u132-hcd" module is one half of the "driver" for ELAN's U132 which is a USB to CardBus OHCI controller adapter. This module needs the "ftdi-elan" module in order to communicate to CardBus OHCI controller inserted into the U132 adapter. When the "ftdi-elan" module detects a supported CardBus OHCI controller in the U132 adapter it loads this "u132-hcd" module. Upon a successful device probe() the single workqueue is started up which does all the processing of commands from the USB core that implement the host controller. The workqueue maintains the urb queues and issues commands via the functions exported by the "ftdi-elan" module. Each such command will result in a callback. Note that the "ftdi-elan" module is a USB client driver. Note that this "u132-hcd" module is a (cut-down OHCI) host controller. Thus we have a topology with the parent of a host controller being a USB client! This really stresses the USB subsystem semaphore/mutex handling in the module removal. Signed-off-by: Tony Olech Signed-off-by: Greg Kroah-Hartman commit a5c66e4b2418278786a025a5bd9625f485b2087a tree f089d9a7350c9c154f46b2537eba7b6a3849a2fe parent 8fd801339350b63cbb90730ff8b2be349fb3dc67 author Tony Olech Wed, 13 Sep 2006 11:26:04 +0100 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 USB: ftdi-elan: client driver for ELAN Uxxx adapters This "ftdi-elan" module is one half of the "driver" for ELAN's Uxxx series adapters which are USB to PCMCIA CardBus adapters. Currently only the U132 adapter is available and it's module is called "u132-hcd". When the USB hot plug subsystem detects a Uxxx series adapter it should load this module. Upon a successful device probe() the jtag device file interface is created and the status workqueue started up. The jtag device file interface exists for the purpose of updating the firmware in the Uxxx series adapter, but as yet it had never been used. The status workqueue initializes the Uxxx and then sits there polling the Uxxx until a supported PCMCIA CardBus device is detected it will start the command and respond workqueues and then load the module that handles the device. This will initially be only the u132-hcd module. The status workqueue then just polls the Uxxx looking for card ejects. The command and respond workqueues implement a command sequencer for communicating with the firmware on the other side of the FTDI chip in the Uxxx. This "ftdi-elan" module exports some functions to interface with the sequencer. Note that this module is a USB client driver. Note that the "u132-hcd" module is a (cut-down OHCI) host controller. Thus we have a topology with the parent of a host controller being a USB client! This really stresses the USB subsystem semaphore/mutex handling in the module removal. Signed-off-by: Tony Olech Signed-off-by: Greg Kroah-Hartman commit 8fd801339350b63cbb90730ff8b2be349fb3dc67 tree 36c30093131b08446b9932f356534ac4bec6d9e9 parent 3f5429746d91f21f60f68b14177c0d534d80240b author Johannes Steingraeber Sat, 16 Sep 2006 16:17:34 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 usb serial: support Alcor Micro Corp. USB 2.0 TO RS-232 through pl2303 driver Patch to add support for Alcor Micro Corp. USB 2.0 TO RS-232 converter. This patch adds VID and PID to pl2303.[ch], adds it to the "HORRIBLE HACK FOR PL2303" in usb-serial.c and also prevents cdc-acm to claim driving this device by blacklisting it in hid-core. Signed-off-by: Johannes Steingraeber Signed-off-by: Greg Kroah-Hartman commit 3f5429746d91f21f60f68b14177c0d534d80240b tree d4b4a08129eb4d90ddf532c2da0dfd9120dc1faf parent 5638e4d92e7707bd037a36654f914c80ccd7161d author Paul B Schroeder Thu, 31 Aug 2006 19:41:47 -0500 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 USB: Moschip 7840 USB-Serial Driver Signed-off-by: Paul B Schroeder Signed-off-by: Greg Kroah-Hartman commit 5638e4d92e7707bd037a36654f914c80ccd7161d tree 3f9b8b3cbf1c6564e856a31aca991e23169ae7fe parent 03270634e242dd10cc8569d31a00659d25b2b8e7 author Sam Hocevar Wed, 30 Aug 2006 02:34:56 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 USB: add PlayStation 2 Trance Vibrator driver This patch is a driver for the PlayStation 2 specific Trance Vibrator device. The only thing that device can do is vibrate at various speeds. Signed-off-by: Sam Hocevar Cc: Pete Zaitcev Cc: Luiz Fernando N. Capitulino" Signed-off-by: Greg Kroah-Hartman commit 03270634e242dd10cc8569d31a00659d25b2b8e7 tree 8f4665eb7b17386e733fcdc7d02e87c4a1592550 parent 8ac283ad415358f022498887811c35ac656b5222 author Steven Haigh Wed, 09 Aug 2006 07:42:06 +1000 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 USB: Add ADU support for Ontrak ADU devices This patch adds support for Ontrak ADU USB devices. Fixed for printk issues by Randy Dunlap Signed-off-by: Steven Haigh Signed-off-by: Greg Kroah-Hartman commit 8ac283ad415358f022498887811c35ac656b5222 tree 3e8d45622a994bdc69f444d58beee08558cf108c parent 3fe70ba2272c123cf38e4c577bf220f8bcf25366 author Randy Dunlap Sat, 26 Aug 2006 10:56:10 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 aircable: fix printk format warnings Fix printk format warnings: drivers/usb/serial/aircable.c:221: warning: format ‘%Zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’ drivers/usb/serial/aircable.c:283: warning: format ‘%Zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’ Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 3fe70ba2272c123cf38e4c577bf220f8bcf25366 tree 14a29be4109d2f3c537b954734825916369b981e parent 78aef519ed07797f94cff1d0d66dd01704474916 author Manuel Francisco Naranjo Wed, 09 Aug 2006 16:35:12 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 Add AIRcable USB Bluetooth Dongle Driver Add driver for AIRcable USB Bluetooth dongle. Signed-off-by: Naranjo, Manuel Francisco Signed-off-by: Greg Kroah-Hartman commit 78aef519ed07797f94cff1d0d66dd01704474916 tree a0faf74c0e128badd7e7989d45ca0076459d1627 parent 48298e50e0f7dfc7273ebfaa37ffd225428e83ed author Mike Isely Tue, 29 Aug 2006 22:07:11 -0500 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:59 -0700 cypress_m8: implement graceful failure handling When receiving a fatal error from the USB core, e.g. EILSEQ (which can happen if the polling interval is too short), fail gracefully. Previously the driver would fill the log with useless error messages or (more alarmingly) silently spin forever trying to write updated control information to the device. This change implements a new flag which if cleared indicates that the driver has failed. The flag will be set on initialization, cleared on fatal errors, and anything else that touches the USB port in the driver will abort if the flag is clear. When the flag is cleared, a message will be logged indicating that the driver has failed. Signed-off-by: Mike Isely Signed-off-by: Greg Kroah-Hartman commit 48298e50e0f7dfc7273ebfaa37ffd225428e83ed tree c70741f603c5a65571dc70b846de1f28471eeadf parent 9aa8dae7b1fa7af099a403fc3766e068a0ea6d68 author Mike Isely Tue, 29 Aug 2006 22:07:07 -0500 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 cypress_m8: improve control endpoint error handling Fix usb core function error return checks to look for negative errno values, not positive errno values. This bug had rendered those checks useless. Also remove attempted error recovery on control endpoints for EPIPE - with control endpoints EPIPE does not indicate a halted endpoint so trying to recover with usb_clear_halt() is not the correct action. Signed-off-by: Mike Isely Signed-off-by: Greg Kroah-Hartman commit 9aa8dae7b1fa7af099a403fc3766e068a0ea6d68 tree 83976cac5a3ee6277a8d0fdcdd76d1e29576fbc1 parent 0257fa9ffe4f0287a9d90476bb733cfc2272396e author Mike Isely Tue, 29 Aug 2006 22:07:04 -0500 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 cypress_m8: use usb_fill_int_urb where appropriate Rather than directly filling in URB fields, it's safer to use usb_fill_int_urb(). This improves robustness of the driver; URB changes in the future will not go uninitialized here. That point not withstanding, this driver should at least be self-consistent. Either use usb_fill_int_urb() everywhere or don't bother with it all. Signed-off-by: Mike Isely Signed-off-by: Greg Kroah-Hartman commit 0257fa9ffe4f0287a9d90476bb733cfc2272396e tree 323e08e486099d996be410e36a4d7ba927688956 parent 13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff author Mike Isely Tue, 29 Aug 2006 22:06:59 -0500 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 cypress_m8: use appropriate URB polling interval The polling interval for the device can't always be 1msec. If it is too quick, the device can fail causing a fatal (to the driver) EILSEQ error from the USB core. The actual correct value is reported by the device as part of its configuration data, so use that value as the default. On a DeLorme Earthmate for example, the device reports that it wants a 6msec interval. As part of this fix, the "interval" module option has been fixed as well; the device's default can be overridden by specifying interval= as a module option. Signed-off-by: Mike Isely Signed-off-by: Greg Kroah-Hartman commit 13f4db9e1bf0a6efcdbbb3a1e4da8a1a8c620fff tree 539065e3ee004ad8aa4fb3bddc7a8d1f5d145c16 parent 1ee95216c0db6305c047a90b0822e2f1d2d5acdc author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 USB: fix __must_check warnings in drivers/usb/serial/ Signed-off-by: Greg Kroah-Hartman commit 1ee95216c0db6305c047a90b0822e2f1d2d5acdc tree 1bc92c5bbfe23aedb8508d757a46d2fe2e274928 parent 657b6717e7e7dc5620525a34f1561b563fd472fa author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 USB: fix __must_check warnings in drivers/usb/host/ Signed-off-by: Greg Kroah-Hartman commit 657b6717e7e7dc5620525a34f1561b563fd472fa tree cbe9052726995b5f78182c0a9283bfcbb8597a16 parent 96cede531c632ac019003bf40128b1821761a164 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 USB: fix __must_check warnings in drivers/usb/input/ Signed-off-by: Greg Kroah-Hartman commit 96cede531c632ac019003bf40128b1821761a164 tree 9905643c2d106d83a860dfa9b00ad3bb2065dc36 parent e7ccdfec087f02930c5cdc81143d4a045ae8d361 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 USB: fix __must_check warnings in drivers/usb/class/ Signed-off-by: Greg Kroah-Hartman commit e7ccdfec087f02930c5cdc81143d4a045ae8d361 tree 99032e6dc4b6809fe90ab80021cd935fba518bd2 parent 4d42e1bb9e8ec7eb5e39d82aaf3ff2f3c994af84 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 USB: fix __must_check warnings in drivers/usb/atm/ Signed-off-by: Greg Kroah-Hartman commit 4d42e1bb9e8ec7eb5e39d82aaf3ff2f3c994af84 tree 1316e32df6772e99221a9b88cbcc6f60abfc3f54 parent 1b21d5e166e104f8914441ef52e2cd50ce65b479 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:58 -0700 USB: fix __must_check warnings in drivers/usb/misc/ Signed-off-by: Greg Kroah-Hartman commit 1b21d5e166e104f8914441ef52e2cd50ce65b479 tree e3139ee35d16be051d3dd01688bc29ec2afc7315 parent 592fbbe4bc339399d363dd55f0391e0623400706 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 USB: fix __must_check warnings in drivers/usb/core/ Signed-off-by: Greg Kroah-Hartman commit 592fbbe4bc339399d363dd55f0391e0623400706 tree 4b21f83f393e7fefb5c73e0e460052b67058f178 parent 02c399ee45a54987c152fe5f627ed949bb55f187 author Alan Stern Tue, 19 Sep 2006 10:08:43 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 USB: fix root-hub resume when CONFIG_USB_SUSPEND is not set This patch (as786) removes a redundant test and fixes a problem involving repeated system sleeps when CONFIG_USB_SUSPEND is not set. During the first wakeup, the root hub's dev.power.power_state.event field doesn't get updated, causing it not to be suspended during the second sleep transition. This takes care of the issue raised by Rafael J. Wysocki and Mattia Dongili. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 02c399ee45a54987c152fe5f627ed949bb55f187 tree b4af9b47729985739815f62a2388e4afa2b49e03 parent 01d883d44a1ca8dc77486635d428cba63e7fdadf author Alan Stern Wed, 30 Aug 2006 15:47:11 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 usbcore: remove usb_suspend_root_hub This patch (as740) removes the existing support for autosuspend of root hubs. That support fit in rather awkwardly with the rest of usbcore and it was used only by ohci-hcd. It won't be needed any more since the hub driver will take care of autosuspending all hubs, root or external. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 01d883d44a1ca8dc77486635d428cba63e7fdadf tree 447a4293b2ec4dfa1b3d03a46a3a33498809f0e8 parent 645daaab0b6adc35c1838df2a82f9d729fdb1767 author Alan Stern Wed, 30 Aug 2006 15:47:18 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 usbcore: non-hub-specific uses of autosuspend This patch (as741) makes the non-hub parts of usbcore actually use the autosuspend facilities added by an earlier patch. Devices opened through usbfs are autoresumed and then autosuspended upon close. Likewise for usb-skeleton. Devices are autoresumed for usb_set_configuration. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 645daaab0b6adc35c1838df2a82f9d729fdb1767 tree 908d58f6c0ad01e9c1622a4c12c9c8080c629baa parent b6956ffa595db97656d5901ca8fec77ef272d41a author Alan Stern Wed, 30 Aug 2006 15:47:02 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 usbcore: add autosuspend/autoresume infrastructure This patch (as739) adds the basic infrastructure for USB autosuspend and autoresume. The main features are: PM usage counters added to struct usb_device and struct usb_interface, indicating whether it's okay to autosuspend them or they are currently in use. Flag added to usb_device indicating whether the current suspend/resume operation originated from outside or as an autosuspend/autoresume. Flag added to usb_driver indicating whether the driver supports autosuspend. If not, no device bound to the driver will be autosuspended. Mutex added to usb_device for protecting PM operations. Unlike the device semaphore, the locking rule for the pm_mutex is that you must acquire the locks going _up_ the device tree. New routines handling autosuspend/autoresume requests for interfaces and devices. Suspend and resume requests are propagated up the device tree (but not outside the USB subsystem). work_struct added to usb_device, for carrying out delayed autosuspend requests. Autoresume added (and autosuspend prevented) during probe and disconnect. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit b6956ffa595db97656d5901ca8fec77ef272d41a tree de10e798f086de6d0fcda6f8d2423ef176d13839 parent d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38 author Alan Stern Wed, 30 Aug 2006 15:46:48 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 usbcore: store each usb_device's level in the tree This patch (as778) adds a field to struct usb_device to store the device's level in the USB tree. In itself this number isn't really important. But the overhead is very low, and in a later patch it will be used for preventing bogus warnings from the lockdep checker. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38 tree 4f12208aa12a3cb2ccf066862474f7ef0ed0f999 parent 14acdcd32160767d7f2fa00803d2d764d3e3373a author Pete Zaitcev Thu, 07 Sep 2006 16:54:22 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 USB: UB: Let cdrecord to see a device with media absent The command "cdrecord dev=/dev/uba x.iso" prints nasty garbage if a blank is not in the drive. This happens because drivers have to set req->errors separately from just returning zero uptodate with end_that_request_first, end_that_request_last. These functions only set error in BIO, but sg_io() ignores it. Since we're on it, let cdrecord access a device when ->changed is set. It's useful if someone wants to know device capabilities without burning anything. Signed-Off-By: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman commit 14acdcd32160767d7f2fa00803d2d764d3e3373a tree cb4f41a769010f5429be81c0bcacf8a626101086 parent cd22afda3f84452c6def29a68b06933e814e0e95 author Reiner Herrmann Wed, 06 Sep 2006 02:37:21 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 USB: usb/input/usbmouse.c: whitespace cleanup Replace spaces with tab and change comment indention for better readability. Signed-off-by: Reiner Herrmann Signed-off-by: Greg Kroah-Hartman commit cd22afda3f84452c6def29a68b06933e814e0e95 tree 4e5ab29301df0417ed4607dcc6bcda8f23fbe1a5 parent 901b3d75e71535f29b64f352e94ff474d95df475 author David Brownell Sun, 03 Sep 2006 12:21:50 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 USB: ohci-at91, two one-liners This includes two one-liners forwarded to me for the OHCI support on at91: - KB920x (and other boards with CPUs in non-BGA packages) need a slightly different way to say "ignore that port, it's not pinned out"; - On resume, if we turn clocks on, record that we did so. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 901b3d75e71535f29b64f352e94ff474d95df475 tree bc9dd49a1184bac831afb76943661e47f6366ad0 parent 80f8af0c59385b41564a3ae670f94a1b4caa43b2 author David Brownell Sat, 02 Sep 2006 03:13:45 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:57 -0700 USB: net2280: update dma buffer allocation This updates the code handling dma-coherent buffer allocations, basically reusing code from the musb_hdrc driver. Instead of trying to work around two significant limitations of the dma framework (memory wastage for buffers smaller than a page, and inconsistency between calling context requirements for allocation and free) this just works around one of them (the latter). So count this as two steps forward (bugfixes: the latter issue could cause errors on some platforms, and some MIPS changes broke code for the former), and one step back (increasing cross-platform memory wastage). Plus linelength and whitespace fixes; and minor data segment shrinkage. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 80f8af0c59385b41564a3ae670f94a1b4caa43b2 tree c2721898c3db66f743639a8446d72c48ebd11950 parent 0e3c8c26c7013b9d34929857598fd86ff1c22a6c author Eugeny S. Mints Sat, 02 Sep 2006 03:59:19 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 USB: usb serial gadget smp related bug Adjust dev->dev_lock spinlock lock/unlock calls to be safe for SMP case. Otherwise the following sequence may lead to a deadlock in SMP case: gs_send()->usb_ep_queue() ->(in case a request is satisfied immediatly) gs_write_complete() for ex for pxa2xx_udc.c: usb_ep_queue()->pxa2xx_ep_queue()->write_fifo()->done()->gs_write_complete() (through req.complete pointer) Signed-off-by: Eugeny S. Mints Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 0e3c8c26c7013b9d34929857598fd86ff1c22a6c tree 39127c200f162e814a309bdbcb7f73ab39f74b54 parent 997694defd085f4dd168c6e7e0e82382c5be9db4 author Matthew Dharm Thu, 31 Aug 2006 13:37:29 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 USB: replace kernel_thread() with kthread_run() in libusual.c Replaced kernel_thread() with kthread_run() since kernel_thread() is deprecated in drivers/modules. Signed-off-by: Cedric Le Goater Cc: Alan Stern Signed-off-by: Matthew Dharm Signed-off-by: Greg Kroah-Hartman commit 997694defd085f4dd168c6e7e0e82382c5be9db4 tree a78d8f960bf1e01286ed48b55a8273a2d672b49e parent 53bd6a601a87bb6d0df844872bc15fd4e8d127ce author Skip Hansen Fri, 01 Sep 2006 15:26:27 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 gadgetfs patch for ep0out For ep0out transfers (rare), be sure to copy the right data to userspace. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 53bd6a601a87bb6d0df844872bc15fd4e8d127ce tree c3437c0846e099c77d820510d822f9d13a2f58e2 parent 729ed6d502b45fd3b5c3b21c3ceaa63a8fe7cc43 author David Brownell Wed, 30 Aug 2006 14:50:06 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 USB: EHCI whitespace fixes (cosmetic) [ ... when you have an editor set to remind you of whitespace bugs ... ] Cosmetic EHCI changes: remove end-of-line whitespace, spaces before tabs. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 729ed6d502b45fd3b5c3b21c3ceaa63a8fe7cc43 tree 2bbf684c8be54c4cbd1517e5d08ce185fa3f02bd parent 4d6cd48380c4d361cc8ec34359df22377d85d202 author David Brownell Wed, 30 Aug 2006 13:24:56 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 USB: ethernet gadget avoids zlps for musb_hdrc For systems using the Mentor HDRC controllers we get better TX DMA throughput if we can avoid falling back to PIO to write zero length packets ... so tell the driver to avoid ZLPs. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 4d6cd48380c4d361cc8ec34359df22377d85d202 tree 21f052fc743818d0c14c85505293f96b9274a94c parent 1720058343fa43a1a25bfad9e62ea06e7e9743b6 author Alan Stern Wed, 30 Aug 2006 11:35:21 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 usbmon: don't call mon_dmapeek if DMA isn't being used This patch (as755b) fixes a bug in usbmon. Rather than assuming all USB host controllers use DMA, the code will check the usb_bus data structure. If DMA isn't used, we don't want to try peeking into a non-existent DMA buffer! Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 1720058343fa43a1a25bfad9e62ea06e7e9743b6 tree 8225039836451d9784f729cf5136d5ad0443658c parent dd990f16a39d4e615c0b70a0ab50b79b32bfb16d author Alan Stern Wed, 30 Aug 2006 11:32:52 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 usbcore: trim down usb_bus structure As part of the ongoing program to flatten out the HCD bus-glue layer, this patch (as771b) eliminates the hcpriv, release, and kref fields from struct usb_bus. hcpriv and release were not being used for anything worthwhile, and kref has been moved into the enclosing usb_hcd structure. Along with those changes, the patch gets rid of usb_bus_get and usb_bus_put, replacing them with usb_get_hcd and usb_put_hcd. The one interesting aspect is that the dev_set_drvdata call was removed from usb_put_hcd, where it clearly doesn't belong. This means the driver private data won't get reset to NULL. It shouldn't cause any problems, since the private data is undefined when no driver is bound. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit dd990f16a39d4e615c0b70a0ab50b79b32bfb16d tree 471ab506eb21fadf05eaea7c47a33266b9e7a7d7 parent a6d2bb9ff919b4685bd684620ec7a1ffa8bf2349 author Alan Stern Wed, 30 Aug 2006 11:29:56 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 usbcore: Add flag for whether a host controller uses DMA This patch (as770b) introduces a new field to usb_bus: a flag indicating whether or not the host controller uses DMA. This serves to encapsulate the computation. It also means we will have only one spot to update if the DMA API changes. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit a6d2bb9ff919b4685bd684620ec7a1ffa8bf2349 tree 5bd0cc451d3ce84765c7ec6a60d486d0155b3356 parent 511366da534bad226e89d294c3b3e910a2aaba6b author Alan Stern Wed, 30 Aug 2006 11:27:36 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:56 -0700 USB: remove struct usb_operations All of the currently-supported USB host controller drivers use the HCD bus-glue framework. As part of the program for flattening out the glue layer, this patch (as769) removes the usb_operations structure. All function calls now go directly to the HCD routines (slightly renamed to remain within the "usb_" namespace). The patch also removes usb_alloc_bus(), because it's not useful in the HCD framework and it wasn't referenced anywhere. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 511366da534bad226e89d294c3b3e910a2aaba6b tree 4c9a8e98b99d26c2b0fe39d6726c887233cd241b parent 42d8a2d22bbaed80f1ade65a08e4e1097a111d4b author Andrew Morton Mon, 14 Aug 2006 23:11:02 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 USB: usb-hub-driver-improve-use-of-ifdef fix Fix CONFIG_PM=n build. Cc: Alan Stern Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 42d8a2d22bbaed80f1ade65a08e4e1097a111d4b tree c15bc9a106a114fdda9a3f5557641dd06e786cbb parent 088dc270e1da03744d977cbd9edd4311af142348 author Alexey Dobriyan Sun, 20 Aug 2006 18:58:42 +0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 USB: Turn usb_resume_both() into static inline drivers/usb/core/hub.c: In function `hub_events': drivers/usb/core/hub.c:2591: warning: statement with no effect Signed-off-by: Alexey Dobriyan Signed-off-by: Greg Kroah-Hartman commit 088dc270e1da03744d977cbd9edd4311af142348 tree 92ccfd907137f2135857bea8a43981b040028d37 parent 3a3416b12f1fbd607bc137a57c924a628aa5485c author Alan Stern Mon, 21 Aug 2006 12:08:19 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 usbcore: help drivers to change device configs It's generally a bad idea for USB interface drivers to try to change a device's configuration, and usbcore doesn't provide any way for them to do it. However in a few exceptional circumstances it can make sense. This patch (as767) adds a roundabout mechanism to help drivers that may need it. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 3a3416b12f1fbd607bc137a57c924a628aa5485c tree a774044a6a0f3f4f5134a3d76c1e0be0b5982b12 parent e113f29c902f0f4bbfa5370c380e5927e6e78f8e author Alan Stern Mon, 21 Aug 2006 12:00:53 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 usb-storage: fix for UFI LUN detection The UFI specification doesn't permit devices to indicate non-existent LUNs in the manner prescribed by the SCSI spec. This patch (as773) sets a special flag so that the SCSI scanner will recognize these devices and treat them specially. Signed-off-by: Alan Stern Signed-off-by: Matthew Dharm Signed-off-by: Greg Kroah-Hartman commit e113f29c902f0f4bbfa5370c380e5927e6e78f8e tree f14ab2c68d6da835d4f51cb3fc6f1472cd9de936 parent 55359021b9a75a6d61a49ca8b9a1209793cd55f7 author Jules Villard Tue, 22 Aug 2006 22:40:15 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 USB: fix typo in drivers/usb/gadget/Kconfig This tiny patch fixes a typo in drivers/usb/gadget/Kconfig. The typo is present in 2.6.18-rc4 and in the corresponding -mm tree (and AFAIK, FYI and FWIW was present in previous kernel versions as well). From: Jules Villard Signed-off-by: Greg Kroah-Hartman commit 55359021b9a75a6d61a49ca8b9a1209793cd55f7 tree 6629b914a76f169184e52bc08d9ef0a0316f1d33 parent 095bc335360a51623dd8571839bbf465851a7f4b author Eric Sesterhenn Mon, 21 Aug 2006 15:31:05 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 USB: fix signedness issue in drivers/usb/gadget/ether.c another gcc 4.1 signdness warning: drivers/usb/gadget/ether.c:2028: warning: comparison of unsigned expression < 0 is always false length is assigned the value of usb_ep_queue() which returns an int. Directly after this it is checked for < 0, which can never be true. Making length an int makes the error check work again. Signed-off-by: Eric Sesterhenn Acked-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 095bc335360a51623dd8571839bbf465851a7f4b tree e28c101dd9665b67b137e3e21a8161c1bcf4b898 parent 83a07196735dbf371b61d6dffbb7e6a696c633c2 author Luiz Fernando N. Capitulino Sat, 26 Aug 2006 23:48:11 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 USB core: Use const where possible. This patch marks some USB core's functions parameters as const. This improves the design (we're saying to the caller that its parameter is not going to be modified) and may help in compiler's optimisation work. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 83a07196735dbf371b61d6dffbb7e6a696c633c2 tree c0c646c595665e4706d0becd42f0bd59700f2710 parent 5bb6e0ae8f9f3a215d6a7f99c8486b0301cc5db9 author Inaky Perez-Gonzalez Fri, 25 Aug 2006 19:35:31 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 wusb: pretty print new wireless USB devices when they connect New code being pushed to linuxuwb.org requires this patch to connect WUSB devices. Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Greg Kroah-Hartman commit 5bb6e0ae8f9f3a215d6a7f99c8486b0301cc5db9 tree eee524e6f099445dbcacc38fd92e38fa0cf05101 parent 0165de09747be76b09ef769fcfed3514fe5f6509 author Inaky Perez-Gonzalez Fri, 25 Aug 2006 19:35:30 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 wusb: handle wusb device ep0 speed settings This patch teaches the USB stack handling of WUSB devices (those whose speed is USB_SPEED_VARIABLE). For these devices, we need to set ep0's maxpacketsize to 512 (even though the device descriptor reports it as 0xff). New code being pushed to linuxuwb.org requires this patch to connect WUSB devices. Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Greg Kroah-Hartman commit 0165de09747be76b09ef769fcfed3514fe5f6509 tree f4b3dd96715630fbaa73b7791ba08f5c170d32a1 parent cb4c8fe57c05dbb04128503f4a7483a1163b1b47 author Inaky Perez-Gonzalez Fri, 25 Aug 2006 19:35:29 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 wusb: hub code recognizes wusb ports This patch enables the USB stack to recognize WUSB devices (from a WUSB HCD) and assigns them the proper speed setting (USB_SPEED_VARIABLE). 1. Introduce usb_hcd->wireless to mark a host controller instance as being wireless, and thus having wireless 'fake' ports. [discarded previous model of using a reserved bit in the port_stat struct to do this; thanks to Alan Stern for indicating the proper way to do it]. 2. Introduce hub.c:hub_is_wusb() that tests if a hub is a WUSB root hub (WUSB doesn't have non-root hubs). New code being pushed to linuxuwb.org requires this patch to connect WUSB devices. Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Greg Kroah-Hartman commit cb4c8fe57c05dbb04128503f4a7483a1163b1b47 tree 2b03138c98989cc865e8c98cf738a5fd423faa41 parent dfe0d3ba20e860d0b9a16c4c6524180b8f93be05 author Inaky Perez-Gonzalez Fri, 25 Aug 2006 19:35:28 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:55 -0700 usb: deal with broken config descriptors Change usb_get_configuration() so that it is more tolerant to devices with bad configuration descriptors (it'll make it ignore configurations that fail to load). Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Greg Kroah-Hartman commit dfe0d3ba20e860d0b9a16c4c6524180b8f93be05 tree 974215119e673fadf9ce5ebe8e1e372ecafa5bd8 parent c07045412f21c5bb344244e8ec45671529e411bd author Matthew Dharm Sun, 13 Aug 2006 17:30:14 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB Storage: add rio karma eject support This changeset from Keith Bennett (via Bob Copeland) moves the Karma initializer to its own file and adds trapping of the START_STOP command to enable eject of the device. Signed-off-by: Keith Bennett Signed-off-by: Bob Copeland Signed-off-by: Matthew Dharm Signed-off-by: Greg Kroah-Hartman commit c07045412f21c5bb344244e8ec45671529e411bd tree 2e4e988a86a112e73b8ad3de74d140809a75fa5c parent d5cbad4b8b37acfde3e63d31b92561b87288ad0f author Luiz Fernando N. Capitulino Mon, 14 Aug 2006 22:44:29 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 usb-skeleton: small update o CodingStyle fixes o Removes trailing spaces o Do not make not needed initialiation of automatic variables o Use usb_endpoint_* functions o If we get an error in the write URB callback print an error message instead of a debug one (Pretty unrelated changes, but spliting this up doesn't pay off as our main changes are just CodingStyle fixes). Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit d5cbad4b8b37acfde3e63d31b92561b87288ad0f tree 98869f0db85e1f257c5ddd13a2afda934626153a parent 455b25fb209c8241e2163b491228b28667d82c1c author Alan Stern Fri, 11 Aug 2006 16:52:39 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 usbcore: khubd and busy-port handling We don't want khubd to start interfering in the device-resume process merely because the PORT_STATUS_C_SUSPEND feature happens to be set. Ports need to be marked as busy while a resume is taking place. In addition, so long as ports are marked as busy, khubd won't be able to clear their various status-change features. On an interrupt-driven root hub this could lead to an interrupt storm. Root hub IRQs should not be re-enabled until the busy_bits value is equal to 0. This patch (as765) fixes these two potential problems. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 455b25fb209c8241e2163b491228b28667d82c1c tree c7155eb33fa8b2916d52472fb517165b3b32813c parent de06a3b842b31b31220637c869f112cfbc1a5ef6 author Alan Stern Fri, 11 Aug 2006 16:01:45 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 usbcore: make hcd_endpoint_disable wait for queue to drain The inconsistent lock state problem in usbcore (the one that shows up when an HCD is unloaded) comes down to two inter-related problems: usb_rh_urb_dequeue() isn't set up to be called with interrupts disabled. hcd_endpoint_disable() doesn't wait for all URBs on the endpoint's queue to complete. The two problems are related because the one type of URB that isn't likely to be complete when hcd_endpoint_disable() returns is a root-hub URB. Right now usb_rh_urb_dequeue() waits for them to complete, and it assumes interrupts are enabled so it can wait. But hcd_endpoint_disable() calls it with interrupts disabled. Now, it should be legal to unlink root-hub URBs with interrupts disabled. The solution is to move the waiting into hcd_endpoint_disable(), where it belongs. This patch (as754) does that. It turns out to be completely safe to replace the del_timer_sync() with a simple del_timer(). It doesn't matter if the timer routine is running; hcd_root_hub_lock will synchronize the two threads and the status URB will complete with an unlink error, as it should. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit de06a3b842b31b31220637c869f112cfbc1a5ef6 tree 3b179338903b5ad7ca0c0676f14d2ef6437eb545 parent 64a21d025d3a979a8715f2ec7acabca7b5406c8a author Alan Stern Fri, 11 Aug 2006 11:33:58 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 UHCI: increase Resume-Detect-off delay The UHCI controller in my laptop takes longer to turn off the Resume-Detect bit than the 4 us allowed by uhci-hcd. Presumably other computers will have the same problem. This patch (as752) increases the maximum delay to 10 us, which should be plenty, and uses polling to avoid penalizing systems which can turn the bit off more quickly. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 64a21d025d3a979a8715f2ec7acabca7b5406c8a tree e3cbcef560d848e177cddde6d093aa2411cddd53 parent a94da8971e836f32315f8832b0bf3e88bee9efae author Aleksey Gorelov Tue, 08 Aug 2006 17:24:08 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB: Properly unregister reboot notifier in case of failure in ehci hcd If some problem occurs during ehci startup, for instance, request_irq fails, echi hcd driver tries it best to cleanup, but fails to unregister reboot notifier, which in turn leads to crash on reboot/poweroff. The following patch resolves this problem by not using reboot notifiers anymore, but instead making ehci/ohci driver get its own shutdown method. For PCI, it is done through pci glue, for everything else through platform driver glue. One downside: sa1111 does not use platform driver stuff, and does not have its own shutdown hook, so no 'shutdown' is called for it now. I'm not sure if it is really necessary on that platform, though. Signed-off-by: Aleks Gorelov Cc: Alan Stern Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit a94da8971e836f32315f8832b0bf3e88bee9efae tree 6c9fe746a803f26b5c853c7cbb646a867b3f13a4 parent e22fc27c87b41bda1b0daf8436224b0f79853482 author Milan Svoboda Tue, 08 Aug 2006 22:14:43 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB gadget: gadgetfs dont try to lock before free I spotted this during my tests with -rt on arm. The -rt patch contains some better tools to diagnose problems with locks and some other things... Original code tries to take semaphore in BUG_ON and then free the memory with this semaphore. Signed-off-by: Milan Svoboda Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit e22fc27c87b41bda1b0daf8436224b0f79853482 tree c4067db8d26ddff8939892cefeb2af600bca90e8 parent 9bcbcf4d00cd2400e655a738e77f0d21b69c6771 author Milan Svoboda Tue, 08 Aug 2006 22:23:12 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB: add poll to gadgetfs's endpoint zero Add poll() support to gadgetfs ep0 Signed-off-by: Milan Svoboda Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 9bcbcf4d00cd2400e655a738e77f0d21b69c6771 tree 2ef039b8fd9967c9de2ef06cee17b6b8e7e00e80 parent 5482687b8be4dedb8a5879f07c734ff11a88a7d5 author dave rientjes Tue, 18 Jul 2006 23:23:02 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB: net1080 inherent pad length The size of struct nc_trailer is inherently the newtailroom pad. Signed-off-by: David Rientjes Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit 5482687b8be4dedb8a5879f07c734ff11a88a7d5 tree 66ea970a0df87478defa6a12aefff9cbe2e1ad09 parent b0b660b8d5b446bf26a46b233adef5819d9a683c author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:54 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB: ldusb: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit b0b660b8d5b446bf26a46b233adef5819d9a683c tree e529be7d3c88f8c2d727067ff4d9f91f6a4d0eb5 parent 4fa1bbf5cfac0e8c795e0ef7b2b939b45229ef2b author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:54 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:54 -0700 USB: usblcd: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 4fa1bbf5cfac0e8c795e0ef7b2b939b45229ef2b tree 5ed78ad5c5375c6808a0b54e636df2ead32eb670 parent 60ca126c9589e3f4bcf81db9762dca82946cd2ba author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: usb-serial: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 60ca126c9589e3f4bcf81db9762dca82946cd2ba tree e2635271a3257c5141456bbc8f930ab3ef74f143 parent 96723199e00c4f27fecd8f43e1367c5f25b39a27 author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: powermate: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 96723199e00c4f27fecd8f43e1367c5f25b39a27 tree 390bbb894b0aa5609a6be5063931b052a0737d26 parent 96642a2ce524f00f783edc95be8b2ce1429803df author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: keyspan_remote: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 96642a2ce524f00f783edc95be8b2ce1429803df tree 3eadeff39d5735262be6120b8120b3269be212f5 parent ee709a3c613d9c458323e04dd69c8eb233d45199 author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: ati_remote: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit ee709a3c613d9c458323e04dd69c8eb233d45199 tree 8c79a5a10dd65585134a935c6e99dc9ac9ebad9d parent 97b107ca391c0411e6c5fc1e26585cd8285696f9 author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: acecad: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 97b107ca391c0411e6c5fc1e26585cd8285696f9 tree 76febcf9e5bee420cf2cfb74d5574d6bbe805bf7 parent fbf81c29a3c05cd227cad89435d71c15e958feaf author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: appletouch: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit fbf81c29a3c05cd227cad89435d71c15e958feaf tree 1534c05a69bcd0d0c0f8b0ea9d5c51a3b8292f38 parent 5bc66d530b6c158795cb3fefd2106a09afb5e0f7 author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: hub: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 5bc66d530b6c158795cb3fefd2106a09afb5e0f7 tree 3bec292410110e62b3d4be3f4565447cb994dea0 parent b7cfaaaf86571732c7728e95a2231a860385463c author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: usblp: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit b7cfaaaf86571732c7728e95a2231a860385463c tree 42faec6a06598baafc16639d4e367457edbc555a parent 3d5b2510f6e361e2203e163c03b93d0026de5629 author Luiz Fernando N. Capitulino Wed, 27 Sep 2006 11:58:53 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:53 -0700 USB: New functions to check endpoints info. These functions makes USB driver's code simpler when dealing with endpoints by avoiding them from accessing the endpoint's descriptor structure directly when they only need to know the endpoint's transfer type and/or direction. Please, read each functions' documentation in order to know how to use them. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 3d5b2510f6e361e2203e163c03b93d0026de5629 tree 0ea75b71862103a6c095948a2eecb68ded92fdcd parent 066202dd48cf3296b6cc22b5fcf89aef33fa0efc author Jesper Juhl Sun, 30 Jul 2006 18:43:43 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: making the kernel -Wshadow clean - USB & completion include/linux/usb.h causes a lot of -Wshadow warnings - fix them. include/linux/usb.h:901: warning: declaration of 'complete' shadows a global declaration include/linux/completion.h:52: warning: shadowed declaration is here include/linux/usb.h:932: warning: declaration of 'complete' shadows a global declaration include/linux/completion.h:52: warning: shadowed declaration is here include/linux/usb.h:967: warning: declaration of 'complete' shadows a global declaration include/linux/completion.h:52: warning: shadowed declaration is here Signed-off-by: Jesper Juhl Signed-off-by: Greg Kroah-Hartman commit 066202dd48cf3296b6cc22b5fcf89aef33fa0efc tree 1730104f5b1634e0dca42c5ea7a331fb1c773813 parent f2ebf92c9e1930a8f79b7eb49a32122931929014 author Luiz Fernando N. Capitulino Sat, 05 Aug 2006 20:37:11 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: Make file operations structs in drivers/usb const. Making structs const prevents accidental bugs and with the proper debug options they're protected against corruption. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit f2ebf92c9e1930a8f79b7eb49a32122931929014 tree 814cf172c1baa7e3d9990224b50148f50e537b33 parent ba307f5828b1b4a1348d99c4f430a0cf3beeae2f author Ben Williamson Tue, 01 Aug 2006 11:28:16 +1000 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: gmidi: New USB MIDI Gadget class driver. This driver is glue between the USB gadget interface and the ALSA MIDI interface. It allows us to appear as a MIDI Streaming device to a host system on the other end of a USB cable. This includes linux/usb/audio.h and linux/usb/midi.h containing definitions from the relevant USB specifications for USB audio and USB MIDI devices. The following changes have been made since the first RFC posting: * Bug fixes to endpoint handling. * Workaround for USB_REQ_SET_CONFIGURATION handling, not understood yet. * Added SND and SND_RAWMIDI dependencies in Kconfig. * Moved usb_audio.h and usb_midi.h to usb/*.h * Added module parameters for ALSA card index and id. * Added module parameters for USB descriptor IDs and strings. * Removed some unneeded stuff inherited from zero.c, more to go. * Provide DECLARE_* macros for the variable-length structs. * Use kmalloc instead of usb_ep_alloc_buffer. * Limit source to 80 columns. * Return actual error code instead of -ENOMEM in a few places. Signed-off-by: Ben Williamson Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit ba307f5828b1b4a1348d99c4f430a0cf3beeae2f tree 86bc891c6be4b8e48da2f7806526ab3a15ee4aa9 parent 8a7471aba19dc526978a03bfe2e3c122712b5900 author Milan Svoboda Mon, 26 Jun 2006 07:48:00 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: gadgetfs: protect ep_release with lock This patch adds mutex protection to ep_release. Signed-off-by: Milan Svoboda Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 8a7471aba19dc526978a03bfe2e3c122712b5900 tree cc78b29c2b0118a805197c8d143188a4a4e1ea8a parent 07cb7f23d07aa4d197dbeb123eb9719c176190ee author Milan Svoboda Mon, 26 Jun 2006 07:19:00 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: fix ep_config to return correct value This patch fixes ep_config to return correct value. Without patch ep_config returns submitted lenght minus 4 on succes. With this patch applied, whole submitted lenght is returned. ep_config parses submitted data and if buffer starts with (int) 1 it is parsed, otherwise error is reported. Problem is that ep_config returns size of buffer minus 4 on success. I think that size of buffer should be returned instead, because there were no problems and all data were processed. Signed-off-by: Milan Svoboda Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 07cb7f23d07aa4d197dbeb123eb9719c176190ee tree 9cecc8aa069b5ed1550106dab1aab5e6c42eefc7 parent 17efe155253e3f81caa6cc57ec2af1c128618698 author Milan Svoboda Mon, 26 Jun 2006 07:46:00 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: correct locking in gadgetfs_disconnect This patch moves spin_lock (&dev->lock) before first use of dev. I think that test to the state of device should be protected with this spin_lock... Signed-off-by: Milan Svoboda Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 17efe155253e3f81caa6cc57ec2af1c128618698 tree 4075a7dad14e51334db498665d4a1993fd1f6ba1 parent bd35078f47f795569fae29b2ff187e6f921460ad author Dmitry Torokhov Tue, 01 Aug 2006 22:45:28 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: onetouch - handle errors from input_register_device() Onetouch: handle errors from input_register_device() Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman commit bd35078f47f795569fae29b2ff187e6f921460ad tree 869d4681e9dcfb4ea54b753195c0b5597643afd1 parent eb6d8c2d145a864aedd874b4226762c5ef0d7a77 author David Brownell Mon, 31 Jul 2006 07:29:39 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: build fixes: ohci-omap The ohci-omap code has diverged from the working version in the linux-omap tree; this syncs up the versions: - Another clock is needed in various cases - The omap-1510 iommu code needs to be #ifdeffed out on newer parts - Saner use of the HCD framework - Various other changes, e.g. a Nokia 770 quirk And some minor dead-whitespace removal. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit eb6d8c2d145a864aedd874b4226762c5ef0d7a77 tree c0385a70a45376572c69152c8fd309e54442d3a0 parent 3bea733ab21247290bd552dd6a2cd3049af9adef author Hermann Kneissel Tue, 11 Jul 2006 19:41:33 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: garmin_gps support for new generation of gps receivers The attached patch adds support for the new generation of gps receivers (eg. GPSmap 60Cx) to garmin_gps.c. Signed-off-by: Hermann Kneissel Signed-off-by: Greg Kroah-Hartman commit 3bea733ab21247290bd552dd6a2cd3049af9adef tree 26a879698f47702b64e07392a0e813b7ec2589f6 parent ecdc0a590268f1926ed8534a040a390c77d20948 author Ping Cheng Thu, 13 Jul 2006 18:01:36 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:52 -0700 USB: wacom tablet driver reorganization - split wacom.c into 4 files: wacom.h, wacom_wac.h, wacom_sys.c, and wacom_wac.c - where wacom_sys.c deals with system specific code, - and wacom_wac.c deals with Wacom specific code Signed-off-by: Ping Cheng Signed-off-by: Greg Kroah-Hartman commit ecdc0a590268f1926ed8534a040a390c77d20948 tree 2815f3ad943ed71e16ce02b8e87dccfd41609a00 parent 014aa2a3c32ebe33f97e9d219d91d3c5c7231bf7 author Franck Bui-Huu Wed, 12 Jul 2006 10:09:41 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: usbcore get rid of the timer in usb_start_wait_urb() This patch uses completion timeout instead of a timer to implement a timeout when submitting an URB in usb_start_wait_urb(). It also fixes a small issue. With the previous code, if no timeout happened and the URB's status was set to ECONNRESET value, the code assumed wrongly that a timeout had occured. Signed-off-by: Franck Bui-Huu Signed-off-by: Greg Kroah-Hartman commit 014aa2a3c32ebe33f97e9d219d91d3c5c7231bf7 tree ab51798d1a84e0bd91d498d946a1e8b68576d15d parent 25d94e682ccb8938177bffafa67a7d21c7282a4a author Luiz Fernando N. Capitulino Thu, 27 Jul 2006 10:30:43 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: ipaq: minor ipaq_open() cleanup. Commit b512504e5671f83638be0ddr085c4b1832f623d3 made ipaq_open() a bit messy by moving the read urb submission far from its usb_fill_bulk_urb() call and the comment explaining what it does. This patch put they together again. Although only compiled tested, should not break the fix introduced by b512504e5671f83638be0ddr085c4b1832f623d3, of course. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 25d94e682ccb8938177bffafa67a7d21c7282a4a tree 428e7e512dcf6dae9891f8c2c22ae000cbcfde66 parent 933a27d39e0e57ba56cff2e4ebe92cf23f4cd815 author Randy Dunlap Mon, 07 Aug 2006 15:56:40 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 usbnet: printk format warning Fix printk format warning(s): drivers/usb/net/usbnet.c:654: warning: int format, different type arg (arg 3) The fact that rx_urb_size happens to be a size_t has propagated all the way back to this printk. It's fragile to be using %z in this case - let's just typecast the args instead. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 933a27d39e0e57ba56cff2e4ebe92cf23f4cd815 tree 0739c8301bc9ae8c079e0c85a3cfa18e28cf137d parent a99c19492a801013fd25ce7bab1f0f65a328a4ba author David Hollis Sat, 29 Jul 2006 10:12:50 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: asix - Add AX88178 support and many other changes * More generi-fication of function/macro names where appropriate: ax88772_xx() -> asix_xx() * Reorder functions to provide more logical grouping * AX88178 device support * Support DLink DUB-E100 Rev B Support * Hopefully resolve all endian-ness issues * Use more defines for bitmask values * Change a number of devdbg() calls to deverr() so that if DEBUG is not defined, the error messages still get through as necessary Signed-off-by: David Hollis Signed-off-by: Greg Kroah-Hartman commit a99c19492a801013fd25ce7bab1f0f65a328a4ba tree a88fd5e6c315817238ca3481c0804dfd73df820b parent 9c53761681497d598a31ed2f6b29b5b3480c49db author Jamie Painter Thu, 27 Jul 2006 14:17:28 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: usbnet - Add unlink_rx_urbs() call to allow for Jumbo Frames Add usbnet_unlink_rx_urbs() which can be called by mini-drivers when they change their MTU such as for Jumbo Frame support. Signed-off-by: David Hollis Signed-off-by: Greg Kroah-Hartman commit 9c53761681497d598a31ed2f6b29b5b3480c49db tree ee020e9b5278ba83ca4a0c169d80a0b4d7a7675b parent 572d3138eb0cf17a2bf36944cc1d2c753578862e author Thiago Galesi Sat, 29 Jul 2006 10:47:12 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: pl2303: cosmetic changes to quirk Cosmetic changes to quirk in pl2303_update_line_status Signed-off-by: Thiago Galesi Signed-off-by: Greg Kroah-Hartman commit 572d3138eb0cf17a2bf36944cc1d2c753578862e tree e291cf803ef5ae756c8df6095caf502e6cb2751e parent 10a18cd1a31e34d123d5ae4736a3393432352750 author Thiago Galesi Sat, 29 Jul 2006 10:46:37 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: pl2303: reduce number of prototypes Reduce number of needed prototypes in Prolific pl2303 driver Signed-off-by: Thiago Galesi Signed-off-by: Greg Kroah-Hartman commit 10a18cd1a31e34d123d5ae4736a3393432352750 tree 462df0ea45a3120224c6bcd43192f95f44d9825b parent 372db8a780f63368c6960a167b7a19aad776d704 author Thiago Galesi Sat, 29 Jul 2006 10:45:43 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: pl2303: cosmetic changes to pl2303_buf_{clear, data_avail} Changes the functions pl2303_buf_clear and pl2303_buf_data_avail for the purpose of keeping them under the 80 column limit, making them more similar to similar functions and making then simpler. Signed-off-by: Thiago Galesi Signed-off-by: Greg Kroah-Hartman commit 372db8a780f63368c6960a167b7a19aad776d704 tree 02c9a9ce71a28442e126ec183bee00c06aa31875 parent a009b75aa0ed55f0bc473c8a3b3e872cbca807ec author Thiago Galesi Mon, 31 Jul 2006 15:39:27 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: pl2303: remove 80-columns limit violations in pl2303 driver Fixes several lines that overrun 80 columns in Prolific pl2303 driver and cleans up some space usages in the function calls. Signed-off-by: Thiago Galesi Signed-off-by: Greg Kroah-Hartman commit a009b75aa0ed55f0bc473c8a3b3e872cbca807ec tree e9160c47a4fcfa8adf365e4cf811b9addb955a20 parent 5d8926658ce41b254fdfba7d057e6c9438c25cca author Luiz Fernando N. Capitulino Tue, 25 Jul 2006 16:58:30 -0300 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 USB: pl2303: Removes unneeded goto. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman commit 5d8926658ce41b254fdfba7d057e6c9438c25cca tree 64bddda2a71765f807ae0599905c7bcce083f1fb parent d388dab7b562b76525761f89702246686747ba30 author Daniel Ritz Mon, 31 Jul 2006 21:43:24 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:51 -0700 usbtouchscreen: version 0.4 changes over 0.3: - some more eGalax device IDs (from eGalax driver/spec) - return the error code in probe() - 3M/MTouch init fixes, tested by Don Alexander - eGalax fixes for bugs in multi-packet handling, spottet by Pieter Grimmerink - support for some eTurboTouch devices, mostly by Pieter Grimmerink - support for Gunze AHL61 controller (untested, but simple enough) Signed-off-by: Daniel Ritz Cc: Pieter Grimmerink Cc: Don Alexander Signed-off-by: Greg Kroah-Hartman commit d388dab7b562b76525761f89702246686747ba30 tree 5bd84a39fcd05800d83b8ba5df1262568ab130ae parent 1c5df7e705671f11a71112eb3a1f9765cd1719f9 author Alan Stern Sat, 01 Jul 2006 22:14:24 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 hub driver: improve use of #ifdef This patch (as736) makes the hub driver more readable by improving the usage of "#ifdef CONFIG_PM" and "#ifdef CONFIG_USB_SUSPEND". Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 1c5df7e705671f11a71112eb3a1f9765cd1719f9 tree 40fcbab03d1c70fca992896feda057577edda5f2 parent 114b368c07964caa3f4e1fa575b16e87fa11936c author Alan Stern Sat, 01 Jul 2006 22:13:50 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: suspending devices with no driver Since usb_generic can be unbound from a USB device, we need to be able to handle the possibility that a suspend or resume request arrives for a device with no driver. This patch (as735) arranges things so that resume requests will fail and suspend requests will use the standard USB port-suspend code. Attempts to suspend or resume an unbound interface are handled similarly (although the error caused by trying to resume an unbound interface is dropped by the calling routine). Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 114b368c07964caa3f4e1fa575b16e87fa11936c tree 74500e47040be3bf4923eebd60404fc7b62004a9 parent 2bf4086d7a7722b470aa24e1be725cc58619c6fe author Alan Stern Sat, 01 Jul 2006 22:13:04 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: fix up device and power state tests This patch (as734) rationalizes the various tests of device state and power states. There are duplications and mistaken tests in several places. Perhaps the most interesting challenge is where the hub driver tests to see that all the child devices are suspended before allowing itself to be suspended. When CONFIG_USB_SUSPEND is set the test is straightforward, since we expect that the children _will_ be suspended. But when CONFIG_USB_SUSPEND isn't set, it's not so clear what should be done. The code compromises by checking the child's power.power_state.event field. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 2bf4086d7a7722b470aa24e1be725cc58619c6fe tree 26724ce626c7b522311d7f9993527a8d2a0268fd parent 4d064c080265a41324d108fccc26b72106d43db3 author Alan Stern Sat, 01 Jul 2006 22:12:19 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: set device and power states properly This patch (as733) fixes up the places where device states and power states are set in usbcore. Right now things are duplicated or missing; this should straighten things out. The idea is that udev->state is USB_STATE_SUSPENDED exactly when the device's upstream port has been suspended, whereas udev->dev.power.power_state.event reflects the result of the last call to the suspend/resume routines (which might not actually change the device state, especially if CONFIG_USB_SUSPEND isn't set). Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 4d064c080265a41324d108fccc26b72106d43db3 tree 78418a918af1ca6fa33bca474cc086fc6fa74caf parent a8e7c5653562f88c0f5f53eac0a890c012655789 author Alan Stern Sat, 01 Jul 2006 22:11:44 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: track whether interfaces are suspended Currently we rely on intf->dev.power.power_state.event for tracking whether intf is suspended. This is not a reliable technique because that value is owned by the PM core, not by usbcore. This patch (as718b) adds a new flag so that we can accurately tell which interfaces are suspended and which aren't. At first one might think these flags aren't needed, since interfaces will be suspended along with their devices. It turns out there are a couple of intermediate situations where that's not quite true, such as while processing a remote-wakeup request. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit a8e7c5653562f88c0f5f53eac0a890c012655789 tree ba227138d408fdc73ccfc62ad8f75d912ece4baf parent 1cc8a25d5b680ff656927ffa9b66fae6b415b1d3 author Alan Stern Sat, 01 Jul 2006 22:11:02 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: resume device resume recursion This patch (as717b) removes the existing recursion in hub resume code: Resuming a hub will no longer automatically resume the devices attached to the hub. At the same time, it adds one level of recursion: Suspending a USB device will automatically suspend all the device's interfaces. Failure at an intermediate stage will cause all the already-suspended interfaces to be resumed. Attempts to suspend or resume an interface by itself will do nothing, although they won't return an error. Thus the regular system-suspend and system-resume procedures should continue to work as before; only runtime PM will be affected. The patch also removes the code that tests state of the interfaces before suspending a device. It's no longer needed, since everything gets suspended together. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 1cc8a25d5b680ff656927ffa9b66fae6b415b1d3 tree 4cc4f1f5f0266dab5408c1de77215517822be92a parent 782da727b0d59e93c84a627948b1535a3db90392 author Alan Stern Sat, 01 Jul 2006 22:10:15 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: split suspend/resume for device and interfaces This patch (as716b) splits up the core suspend and resume routines into two parts each: one for handling devices and one for handling interfaces. The behavior of the parts should be the same as in the old unified code. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 782da727b0d59e93c84a627948b1535a3db90392 tree 155cfe2df2a57961234c44186890fdcce72a0eb6 parent 8bb54ab573ecd1b4fe2ed66416a8d99a86e65316 author Alan Stern Sat, 01 Jul 2006 22:09:35 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: make usb_generic a usb_device_driver This patch (as714b) makes usb_generic into a usb_device_driver capable of being probed and unbound, just like other drivers. A fair amount of the work that used to get done during discovery or removal of a USB device have been moved to the probe and disconnect methods of usb_generic: creating the sysfs attributes and selecting an initial configuration. However the normal behavior should continue to be the same as before. We will now have the possibility of creating other USB device drivers, They will assist with exporting devices to remote systems (USB-over-TCPIP) or to paravirtual guest operating systems. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 8bb54ab573ecd1b4fe2ed66416a8d99a86e65316 tree 36df75387a62923e3bd152f3c2ce16147be1828c parent 36e56a34586783c7986ce09d39db80b27c95ce24 author Alan Stern Sat, 01 Jul 2006 22:08:49 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: add usb_device_driver definition This patch (as732) adds a usb_device_driver structure, for representing drivers that manage an entire USB device as opposed to just an interface. Support routines like usb_register_device_driver, usb_deregister_device_driver, usb_probe_device, and usb_unbind_device are also added. Unlike an earlier version of this patch, the new code is type-safe. To accomplish this, the existing struct driver embedded in struct usb_driver had to be wrapped in an intermediate wrapper. This enables the core to tell at runtime whether a particular struct driver belongs to a device driver or to an interface driver. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 36e56a34586783c7986ce09d39db80b27c95ce24 tree 08637f4fbdd1fd46baba8a48645fcbe37b94cdf5 parent 140d8f687457c40a66af362838fac0d7893e7df5 author Alan Stern Sat, 01 Jul 2006 22:08:06 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:50 -0700 usbcore: move code among source files This revised patch (as713b) moves a few routines among source files in usbcore. Some driver-related code in usb.c (claiming interfaces and matching IDs) is moved to driver.c, where it belongs. Also the usb_generic stuff in driver.c is moved to a new source file: generic.c. (That's the reason for revising the patch.) Although not very big now, it will get bigger in a later patch. None of the code has been changed; it has only been re-arranged. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 140d8f687457c40a66af362838fac0d7893e7df5 tree 976b40f316c65f93bd1f391e5a7bd6107a4985cc parent 121e287cb554f3d3402c85a1950d852691b08f5c author Alan Stern Sat, 01 Jul 2006 22:07:21 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 usbcore: rename usb_suspend_device to usb_port_suspend This revised patch (as715b) renames usb_suspend_device to usb_port_suspend, usb_resume_device to usb_port_resume, and finish_device_resume to finish_port_resume. There was no objection to the original version of the patch so this should be okay to apply. The revision was needed only because I have re-arranged the order of the earlier patches. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 121e287cb554f3d3402c85a1950d852691b08f5c tree fa05e0d622e5f3d339004c4708223a24088ee574 parent 349710c3a79c0405911b8b604953f0c665e17756 author Alan Stern Sat, 01 Jul 2006 22:06:36 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 usb-skeleton: don't submit URBs after disconnection This patch (as712b) is a slight revision of one submitted earlier. It fixes the usb-skeleton example driver so that it won't try to submit URBs after skel_disconnect() has returned. This could cause errors, if the driver was unbound and then a different driver was bound to the device. It also fixes a couple of small bugs in the skel_write() routine. The revised patch uses a slightly different test, suggested by Dave Brownell, for determining whether to free a transfer buffer. It's a little clearer than the earlier version. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 349710c3a79c0405911b8b604953f0c665e17756 tree 78cf600f2e2467161df0bf634601e2894f376da5 parent 4a2a8a2cce86b9d001378cc25acb5c61e6ca7d63 author Alan Stern Sat, 01 Jul 2006 22:05:56 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 usbfs: detect device unregistration This patch (as711b) is a revised version of an earlier submission. It modifies the usbfs code to detect when a device has been unregistered from usbfs, even if the device is still connected. Although this can't happen now, it will be able to happen after the upcoming changes to usb_generic. Nobody objected to this patch when it was submitted before, so it should be okay to apply this version. The revision is merely to take into account the changes introduced by as723, which touches the same driver. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 4a2a8a2cce86b9d001378cc25acb5c61e6ca7d63 tree 01f2d9eb9a23bd14575ace882b3b3cc8b60f62e6 parent da308e8da700637d6271dddda08128094691b980 author Alan Stern Sat, 01 Jul 2006 22:05:01 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 usbfs: private mutex for open, release, and remove The usbfs code doesn't provide sufficient mutual exclusion among open, release, and remove. Release vs. remove is okay because they both acquire the device lock, but open is not exclusive with either one. All three routines modify the udev->filelist linked list, so they must not run concurrently. Apparently someone gave this a minimum amount of thought in the past by explicitly acquiring the BKL at the start of the usbdev_open routine. Oddly enough, there's a comment pointing out that locking is unnecessary because chrdev_open already has acquired the BKL. But this ignores the point that the files in /proc/bus/usb/* are not char device files; they are regular files and so they don't get any special locking. Furthermore it's necessary to acquire the same lock in the release and remove routines, which the code does not do. Yet another problem arises because the same file_operations structure is accessible through both the /proc/bus/usb/* and /dev/usb/usbdev* file nodes. Even when one of them has been removed, it's still possible for userspace to open the other. So simple locking around the individual remove routines is insufficient; we need to lock the entire usb_notify_remove_device notifier chain. Rather than rely on the BKL, this patch (as723) introduces a new private mutex for the purpose. Holding the BKL while invoking a notifier chain doesn't seem like a good idea. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit da308e8da700637d6271dddda08128094691b980 tree 07d132503e754915db98171cd00e106c27138b64 parent 912b24c333843514ff77ed88961c6945f0f286ce author Sean Young Fri, 11 Aug 2006 09:28:28 +0000 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 USB: Phidgets should check create_device_file() return value device_create_file() could fail, add proper error paths for this condition. Signed-off-by: Sean Young Signed-off-by: Greg Kroah-Hartman commit 912b24c333843514ff77ed88961c6945f0f286ce tree 16b5617c0b92acb638a88ccf392e4d0d6dc910fc parent d5176b413dcce85334e270021fc0d723d1714c84 author Sean Young Mon, 10 Jul 2006 09:56:25 +0000 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 USB: Put phidgets driver in a sysfs class This patch creates a device class phidget and add the phidget drivers to them. Signed-off-by: Sean Young Signed-off-by: Greg Kroah-Hartman commit d5176b413dcce85334e270021fc0d723d1714c84 tree 690b664d7f75a6f4376c9a8424af79fa6eca5659 parent b6eb2d84d2bb01e9fcc46a032a3429b4747b1c47 author Sean Young Sun, 09 Jul 2006 13:01:02 +0000 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 USB: Add driver for PhidgetMotorControl This driver add support for the Phidgets Inc., MotorControl via sysfs. Also some minor fixes for the InterfaceKit. Signed-off-by: Sean Young Signed-off-by: Greg Kroah-Hartman commit b6eb2d84d2bb01e9fcc46a032a3429b4747b1c47 tree 29b45817f18101378d4943fa354c1f553f7e5a64 parent b94badbb47cb50f4fca8440efdaa8ebd32604fe4 author Alan Stern Thu, 06 Jul 2006 15:37:42 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 usbcore: add configuration_string to attribute group This patch (as737b) does a very small cleanup of core/sysfs.c by adding the configuration_string attribute file to the existing attribute group instead of treating it separately. It doesn't need this separate treatment because unlike the other device string attributes, it changes along with the active configuration. The patch also fixes a simple typo (which, oddly enough, doesn't seem to bother the compiler). Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit b94badbb47cb50f4fca8440efdaa8ebd32604fe4 tree ab30562cdd55a5587bb596f23f443b3d8910a0e1 parent 988440e7e51c6f8061c98d03d618ba090e7b84ef author Dmitry Torokhov Tue, 01 Aug 2006 22:33:34 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 USB: Make usb_buffer_free() NULL-safe kfree() handles NULL arguments which is handy in error handling paths as one does need to insert bunch of ifs. How about making usb_buffer_free() do the same? Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman commit 988440e7e51c6f8061c98d03d618ba090e7b84ef tree 60b4ef067d38f7cda97aa32898c399262d33ab7d parent 2f430b4bbae7faa167730f954252eb7db4ac58dd author Werner Lemberg Tue, 18 Jul 2006 17:00:22 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 USB: ark3116: Formatting cleanups Formatting only. Signed-off-by: Werner Lemberg Signed-off-by: Greg Kroah-Hartman commit 2f430b4bbae7faa167730f954252eb7db4ac58dd tree fa3cbccf8fc63040eb384153aed4d02905aeb0e0 parent bfb2c965d669045b7629fd577b7834c87c2dfd54 author Werner Lemberg Tue, 18 Jul 2006 17:00:52 +0200 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:49 -0700 USB: ark3116: Add TIOCGSERIAL and TIOCSSERIAL ioctl calls. Add (dummy?) support for TIOCGSERIAL and TIOCSSERIAL ioctl calls to the USB serial driver file `ark3116.c'. This is sufficient for me to run wvdial successfully, receive my email, and do webbrowsing with firefox. On the other hand, running the cvs program to update archives seems not to work, and the traceroute command sometimes says send failed: No buffer space available Looks like a buffering problem... My knowledge of serial device drivers is zero, so I can't fix this -- I just did a cut'n'paste from other USB serial drivers... Signed-off-by: Werner Lemberg Signed-off-by: Greg Kroah-Hartman commit bfb2c965d669045b7629fd577b7834c87c2dfd54 tree b438384f72e80f769c6f98e1ecfb5b502f396a69 parent b2bbb20b37d734443d1c279d0033a64f6095db54 author Tony Lindgren Thu, 29 Jun 2006 22:27:36 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: Allow compile in g_ether, fix typo Allows compiling g_ether in and fixes a typo with MUSB_HDRC Signed-off-by: Tony Lindgren Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit b2bbb20b37d734443d1c279d0033a64f6095db54 tree 067510f143dcb0e4f938f932994e5ac34f5da6b9 parent 3a16f7b4a75d68364c3278523f51ac141a12758a author David Brownell Thu, 29 Jun 2006 12:25:39 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: pxa2xx_udc understands GPIO based VBUS sensing This updates the PXA 25x UDC board-independent infrastructure for VBUS sensing and the D+ pullup. The original code evolved from rather bizarre support on Intel's "Lubbock" reference hardware, so that on more sensible hardware it doesn't work as well as it could/should. The change is just to teach the UDC driver how to use built-in PXA GPIO pins directly. This reduces the amount of board-specfic object code needed, and enables the use of a VBUS sensing IRQ on boards (like Gumstix) that have one. With VBUS sensing, the UDC is unclocked until a host is actually connected. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 3a16f7b4a75d68364c3278523f51ac141a12758a tree d4fbdb0a1fcce7664cef0abd727b529142d13c3e parent 26facdff1d39c0028565137ad27e8bd5a5cafcf1 author David Brownell Thu, 29 Jun 2006 12:27:23 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: move to Move to . Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 26facdff1d39c0028565137ad27e8bd5a5cafcf1 tree 24d991a224d7004540ef1df88dd8d6ab7113ab97 parent 60bbfc84b6d916f5a10127762d0dcb3f4726450d author Andrew Morton Fri, 07 Jul 2006 00:11:45 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: kill usb kconfig warning drivers/usb/host/Kconfig:87:warning: 'select' used by config symbol 'USB_OHCI_HCD' refer to undefined symbol 'I2C_PNX' Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 60bbfc84b6d916f5a10127762d0dcb3f4726450d tree d8ed7d510398056ad40911e67aa656408af75236 parent b2a8e097d0f3bbb7ef550103022db92fc3832842 author Vitaly Wool Thu, 29 Jun 2006 18:28:18 +0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB OHCI controller support for PNX4008 inlined is the patch that adds basic support for USB OHCI controller support for PNX4008 Philips PNX4008 ARM board. Due to HW design, it depends on I2C driver for PNX4008 which I've recetnly posted to LKML and i2c at lm-sensors. Signed-off-by: Vitaly Wool Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit b2a8e097d0f3bbb7ef550103022db92fc3832842 tree 83335d49c520dba337589c93491c26a3068d446d parent d413984ae936fad46678403b38d79c595e5aaafe author Ben Dooks Mon, 26 Jun 2006 23:36:07 +0100 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: ohci-s3c2410.c: clock now usb-bus-host With the newer Samsung S3C2412 and S3C2413 SoC devices, the 48MHz USB clock has been given an individual gate into the USB OHCI and gadget blocks. This clock is called usb-bus-clock, and we need to replace the old use of the USB PLL (upll) directly with the new usb-bus-host. The S3C2410 clock driver has been updated already to provide a virtual clock which is a child of the UPLL to maintain compatibility. The S3C2412 clock driver correctly enables the PLL when either usb-bus clock is active. Signed-off-by: Ben Dooks Signed-off-by: Greg Kroah-Hartman commit d413984ae936fad46678403b38d79c595e5aaafe tree f494a450d7289d941e3ca2b2e33bfacc29cac024 parent 06afff00bcab0e384afbef70194fd3469532abdf author David Brownell Fri, 04 Aug 2006 11:31:55 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: OHCI avoids root hub timer polling This teaches OHCI to use the root hub status change (RHSC) IRQ, bypassing root hub timers most of the time and switching over to the "new" root hub polling scheme. It's complicated by the fact that implementations of OHCI trigger and ack that IRQ differently (the spec is vague there). Avoiding root hub timers helps mechanisms like "dynamic tick" leave the CPU in lowpower modes for longer intervals. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 06afff00bcab0e384afbef70194fd3469532abdf tree 7c1da770bfa971697ab1c1615ba4731d85890549 parent 341323269258ab8484077a9c70db804fbae6ae93 author Sam Bishop Mon, 28 Aug 2006 16:52:15 -0600 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB doc patch 2 A little more detail on how and when to poll() /proc/bus/usb/devices. Signed-off-by: Sam Bishop Signed-off-by: Greg Kroah-Hartman commit 341323269258ab8484077a9c70db804fbae6ae93 tree 10f2a93eee8f107ddb3e83acaa5778c01d24c0b0 parent 39c2f3ac04663bb2546a7058701a621e526eabb2 author Sam Bishop Mon, 28 Aug 2006 16:42:10 -0600 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: doc patch 1 Grammar, spelling, and stylistic edits. Signed-off-by: Sam Bishop Signed-off-by: Greg Kroah-Hartman commit 39c2f3ac04663bb2546a7058701a621e526eabb2 tree bafd489a17ee0f03986e73ebba491f618e81fb44 parent b97b196c9d351a501ed89fc836e4e2fe71ff93c9 author Phil Dibowitz Mon, 11 Sep 2006 00:27:40 -0700 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:48 -0700 USB: unusual_dev entry for Sony P990i This patch is a re-diffed version of one originally sent by Jan Mate . Signed-off-by: Phil Dibowitz Signed-off-by: Greg Kroah-Hartman commit b97b196c9d351a501ed89fc836e4e2fe71ff93c9 tree 534a7543d3bb9e3a01e6b0edca17fbe81c989be7 parent cdb8355add9b1d87ecfcb58b12879897dc1e3e36 author Alan Stern Thu, 14 Sep 2006 15:18:54 -0400 committer Greg Kroah-Hartman Wed, 27 Sep 2006 11:58:47 -0700 USB: unusual_devs entry for Lacie DVD+-RW This patch (as781) adds an entry to unusual_devs.h for the Lacie DVD+-RW drive. Apparently its USB interface has requirements similar to the Genesys Logic interface; it doesn't like data to be sent too soon after a command. This fixes Bugzilla #6817. Signed-off-by: Alan Stern Signed-off-by: Phil Dibowitz Signed-off-by: Greg Kroah-Hartman commit 2dc94310bd94d0906febea7d0f7c188da620c952 tree 6de4096f1887e2c00966177354b1c378e59bd632 parent c06015148fa9a3cc452ec7121b8c3f59f4a7d6ac parent fb60cf4ab52f3520c2119aa42f7d4ed8e7594eb6 author Russell King Wed, 27 Sep 2006 19:57:54 +0100 committer Russell King Wed, 27 Sep 2006 19:57:54 +0100 Merge master.kernel.org:/pub/scm/linux/kernel/git/tmlind/linux-omap-upstream into devel commit cdb8355add9b1d87ecfcb58b12879897dc1e3e36 tree 9af61da194aaa6c255cf17de9e324c21a35581b3 parent b98adfccdf5f8dd34ae56a2d5adbe2c030bd4674 parent df8f0ec1a413ae610899f009e25dc9777881e149 author Linus Torvalds Wed, 27 Sep 2006 10:53:30 -0700 committer Linus Torvalds Wed, 27 Sep 2006 10:53:30 -0700 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] minor reformatting to vmlinux.lds.S [IA64] CMC/CPE: Reverse the order of fetching log and checking poll threshold [IA64] PAL calls need physical mode, stacked [IA64] ar.fpsr not set on MCA/INIT kernel entry [IA64] printing support for MCA/INIT [IA64] trim output of show_mem() [IA64] show_mem() printk levels [IA64] Make gp value point to Region 5 in mca handler Revert "[IA64] Unwire set/get_robust_list" [IA64] Implement futex primitives [IA64-SGI] Do not request DMA memory for BTE [IA64] Move perfmon tables from thread_struct to pfm_context [IA64] Add interface so modules can discover whether multithreading is on. [IA64] kprobes: fixup the pagefault exception caused by probehandlers [IA64] kprobe opcode 16 bytes alignment on IA64 [IA64] esi-support [IA64] Add "model name" to /proc/cpuinfo commit 6cc7cbef948ea2660cc40d7aab090a479f7db6a2 tree 7f755b98add50c5bca9b6c4410baa4d7bd555b79 parent 6b237a355afd342509f1471e0c338637bcd958bc author Russell King Wed, 27 Sep 2006 18:00:35 +0100 committer Russell King Wed, 27 Sep 2006 18:00:35 +0100 [ARM] Use CPU_CACHE_* where possible in asm/cacheflush.h Three of the generic cache method options were using explicit CPU types, whereas they could use the CPU_CACHE_* definitions instead. Switch them over to use the CPU_CACHE_* definitions. Signed-off-by: Russell King commit 6b237a355afd342509f1471e0c338637bcd958bc tree 044b7a3508b6751fd68a30a1fce85d0b06c0891c parent f37f46eb1c0bd0b11c34ef06c7365658be989d80 author Russell King Wed, 27 Sep 2006 17:44:39 +0100 committer Russell King Wed, 27 Sep 2006 17:44:39 +0100 [ARM] Make !MMU CPUs depend on !MMU Don't offer non-MMU based CPUs for selection when CONFIG_MMU is set. Signed-off-by: Russell King commit f37f46eb1c0bd0b11c34ef06c7365658be989d80 tree 1790995456cafc852899927140e5dd7523463fdb parent d60674eb5d961b2421db16cc373dc163f38cc105 author Hyok S. Choi Tue, 26 Sep 2006 17:38:32 +0900 committer Russell King Wed, 27 Sep 2006 17:39:19 +0100 [ARM] nommu: add ARM946E-S core support This patch adds ARM946E-S core support which has typically 8KB I&D cache. It has a MPU and supports ARMv5TE instruction set. Because the ARM946E-S core can be synthesizable with various cache size, CONFIG_CPU_DCACHE_SIZE is defined for vendor specific configurations. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit d60674eb5d961b2421db16cc373dc163f38cc105 tree f2d6e9fad27cd132e5a45f88350f80cae7444e5c parent 43f5f0146ef5c3a3421ea53a0708fd37edcb8905 author Hyok S. Choi Tue, 26 Sep 2006 17:38:18 +0900 committer Russell King Wed, 27 Sep 2006 17:39:18 +0100 [ARM] nommu: add ARM940T core support This patch adds ARM940T core support which has 4KB D-cache, 4KB I-cache and a MPU. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit 43f5f0146ef5c3a3421ea53a0708fd37edcb8905 tree 9bc8d546aa0d801f28ef882937af929b0f4f22d3 parent b731c3118d87f26c8bf3f358ffbbc24450af50a6 author Hyok S. Choi Tue, 26 Sep 2006 17:38:05 +0900 committer Russell King Wed, 27 Sep 2006 17:39:17 +0100 [ARM] nommu: add ARM9TDMI core support This patch adds ARM9TDMI core support which has no cache and no CP15 register(no memory control unit). Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit b731c3118d87f26c8bf3f358ffbbc24450af50a6 tree 63e280a475d81eb39c16a7fbd4cd12568b4e1f1e parent 07e0da78abdc679714a12e7a60137d950c346681 author Hyok S. Choi Tue, 26 Sep 2006 17:37:50 +0900 committer Russell King Wed, 27 Sep 2006 17:39:17 +0100 [ARM] nommu: add ARM740T core support This patch adds ARM740T core support which has a MPU and 4KB or 8KB cache. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit 07e0da78abdc679714a12e7a60137d950c346681 tree 5a6e759c1063d8ec5113c37f72a906c7db711307 parent f12d0d7c7786af39435ef6ae9defe47fb58f6091 author Hyok S. Choi Tue, 26 Sep 2006 17:37:36 +0900 committer Russell King Wed, 27 Sep 2006 17:39:17 +0100 [ARM] nommu: add ARM7TDMI core support This patch adds ARM7TDMI core support which has no cache and no CP15 register(no memory control unit). Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit f12d0d7c7786af39435ef6ae9defe47fb58f6091 tree 03361f2b925754f2acf4f311df2122f844d3d4fe parent fefdaa06ccdde394be865ed76509be82813e425b author Hyok S. Choi Tue, 26 Sep 2006 17:36:37 +0900 committer Russell King Wed, 27 Sep 2006 17:34:30 +0100 [ARM] nommu: manage the CP15 things All the current CP15 access codes in ARM arch can be categorized and conditioned by the defines as follows: Related operation Safe condition a. any CP15 access !CPU_CP15 b. alignment trap CPU_CP15_MMU c. D-cache(C-bit) CPU_CP15 d. I-cache CPU_CP15 && !( CPU_ARM610 || CPU_ARM710 || CPU_ARM720 || CPU_ARM740 || CPU_XSCALE || CPU_XSC3 ) e. alternate vector CPU_CP15 && !CPU_ARM740 f. TTB CPU_CP15_MMU g. Domain CPU_CP15_MMU h. FSR/FAR CPU_CP15_MMU For example, alternate vector is supported if and only if "CPU_CP15 && !CPU_ARM740" is satisfied. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit fefdaa06ccdde394be865ed76509be82813e425b tree 66be18fac28b847e33ff24f8d2a878fa35b3450c parent 6a570b28b5948e7bf54ea42ec3161bded0a1c460 author Hyok S. Choi Tue, 26 Sep 2006 17:36:37 +0900 committer Russell King Wed, 27 Sep 2006 17:28:47 +0100 [ARM] nommu: defines CPU_CP15, CPU_CP15_MMU and CPU_CP15_MPU By merging of uClinux/ARM, we need to treat various CPU cores which have MMU, MPU or even none for memory management. The memory management coprocessors are controlled by CP15 register set and the ARM core family can be categorized by 5 groups by the register ; G-a. CP15 is MMU : 610, 710, 720, 920, 922, 925, 926, 1020, 1020e, 1022, v6 and the derivations sa1100, sa110, xscale, xsc3. G-b. CP15 is MPU : 740, 940, 946, 996, 1156. G-c. CP15 is MPU or MMU : 1026 (selectable by schematic design) G-d. CP15 is exist, but nothing for memory managemnt : 966, 968. G-e. no-CP15 : 7tdmi, 9tdmi, 9e, 9ej This patch defines CPU_CP15, CPU_CP15_MMU and CPU_CP15_MPU. Thus the family can be defined as : - CPU_CP15 only : G-d - CPU_CP15_MMU(implies CPU_CP15) : G-a, G-c(selectable) - CPU_CP15_MPU(implies CPU_CP15) : G-b, G-c(selectable) - !CPU_CP15 : G-e Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit 6a570b28b5948e7bf54ea42ec3161bded0a1c460 tree 3756b17a3ec66f2e84c7f7bc28d58b991cd2c4f2 parent e5beac371af0af47bcbd6819f4c2a0a2721a1735 author Hyok S. Choi Tue, 26 Sep 2006 17:37:07 +0900 committer Russell King Wed, 27 Sep 2006 17:02:50 +0100 [ARM] nommu: allows to support module in nommu A simple patch to support module in nommu mode. The vmalloc is used instead of __vmalloc_area which depends on CONFIG_MMU. Signed-off-by: Hyok S. Choi Signed-off-by: Russell King commit b98adfccdf5f8dd34ae56a2d5adbe2c030bd4674 tree 1807a029520f550dd4f90c95ad0063bceb00d645 parent ba21fe71725f94792330ebc3034ef2b35a36276f parent 33573c0e3243aaa38b6ad96942de85a1b713c2ff author Linus Torvalds Wed, 27 Sep 2006 08:49:07 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:49:07 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: (108 commits) sh: Fix occasional flush_cache_4096() stack corruption. sh: Calculate shm alignment at runtime. sh: dma-mapping compile fixes. sh: Initial vsyscall page support. sh: Clean up PAGE_SIZE definition for assembly use. sh: Selective flush_cache_mm() flushing. sh: More intelligent entry_mask/way_size calculation. sh: Support for L2 cache on newer SH-4A CPUs. sh: Update kexec support for API changes. sh: Optimized readsl()/writesl() support. sh: Report movli.l/movco.l capabilities. sh: CPU flags in AT_HWCAP in ELF auxvt. sh: Add support for 4K stacks. sh: Enable /proc/kcore support. sh: stack debugging support. sh: select CONFIG_EMBEDDED. sh: machvec rework. sh: Solution Engine SH7343 board support. sh: SH7710VoIPGW board support. sh: Enable verbose BUG() support. ... commit ba21fe71725f94792330ebc3034ef2b35a36276f tree 7e61050452b3a3fa6e17a8ae6147d0e4ecc611ca parent 1e2af92e089d4c845248844a3e7ee06ce889af46 parent 715a0ecc29c850d2b2f76e1803d3f22cd5a0ac0d author Linus Torvalds Wed, 27 Sep 2006 08:32:01 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:32:01 -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: [SPARC64]: Kill bogus check from bootmem_init(). [SPARC64]: Update defconfig. commit 1e2af92e089d4c845248844a3e7ee06ce889af46 tree f5c995fa5b56cc3f7be030efe5ced10f0cbc70f9 parent 1b79e5513d52e8533a08af35a3595dad80c74d1f author Andrew Morton Wed, 27 Sep 2006 01:51:15 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:20 -0700 [PATCH] x86: use probe_kernel_address in handle_BUG() Avoid possible deadlock on a BUG() inside down_write(mmap_sem). The deadlock can only occur if something has gone horridly wrong, because a fault here shouldn't happen. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b79e5513d52e8533a08af35a3595dad80c74d1f tree 01d69b3e5e9fca89fc44b462bfe24cb06243ac0f parent aafe6c2a2b6bce5a3a4913ce5c07e85ea143144d author Andrew Morton Wed, 27 Sep 2006 01:51:14 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:20 -0700 [PATCH] add probe_kernel_address() Add a version of __get_user() which is safe to call inside mmap_sem. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aafe6c2a2b6bce5a3a4913ce5c07e85ea143144d tree 602fefd6b12dad6351bb91661defce0abaf9b24d parent 66f37509fc7191df468a8d183374f48b13bacb73 author Eric W. Biederman Wed, 27 Sep 2006 01:51:13 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:20 -0700 [PATCH] de_thread: Use tsk not current Ingo Oeser pointed out that because current expands to an inline function it is more space efficient and somewhat faster to simply keep a cached copy of current in another variable. This patch implements that for the de_thread function. (akpm: saves nearly 100 bytes of text on x86) Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66f37509fc7191df468a8d183374f48b13bacb73 tree 6e9d7d2679297f0c6ebe933e138d4aa07c9caaa3 parent b7b52630deca785c4fc2bf4c53500cee066786af author Adrian Bunk Wed, 27 Sep 2006 01:51:13 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:20 -0700 [PATCH] fs/nfs/: make code static Signed-off-by: Adrian Bunk Acked-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b7b52630deca785c4fc2bf4c53500cee066786af tree 7f33a5b37d3ecc5598ef68a8c8fbcd4d0dee96e4 parent 65800ac77e080cf159d6c1207b6886e18f22bc08 author Martin Bligh Wed, 27 Sep 2006 01:51:12 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] add newline to nfs dprintk Add missing \n to dprintk Signed-off-by: Martin Bligh Acked-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 65800ac77e080cf159d6c1207b6886e18f22bc08 tree e18a27daff0f97139afa1ff731ac47f054285ee6 parent c18258c6f0848f97e85287f6271c511a092bb784 author Eric W. Biederman Wed, 27 Sep 2006 01:51:11 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] pid: remove temporary debug code in attach_pid With the patches flying between Oleg and myself somehow this temporary debug code got left in pid.c. It was never intended to make it to the stable kernel. Signed-off-by: Eric W. Biederman Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c18258c6f0848f97e85287f6271c511a092bb784 tree 16c057a171b7623895ee208459392c1104193b84 parent 35fa2048ab13d1be846be612e395c15c200bd51c author Eric W. Biederman Wed, 27 Sep 2006 01:51:06 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] pid: Implement transfer_pid and use it to simplify de_thread In de_thread we move pids from one process to another, a rather ugly case. The function transfer_pid makes it clear what we are doing, and makes the action atomic. This is useful we ever want to atomically traverse the process group and session lists, in a rcu safe manner. Even if the atomic properties this change should be a win as transfer_pid should be less code to execute than executing both attach_pid and detach_pid, and this should make de_thread slightly smaller as only a single function call needs to be emitted. The only downside is that the code might be slower to execute as the odds are against transfer_pid being in cache. Signed-off-by: Eric W. Biederman Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 35fa2048ab13d1be846be612e395c15c200bd51c tree b839611bfb72dbe264e2d35a638ba559aa464a4e parent b89a81712f486e4f7a606987413e387605fdeaf4 author Eric W. Biederman Wed, 27 Sep 2006 01:51:05 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] sysctl: Document that sys_sysctl will be removed Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b89a81712f486e4f7a606987413e387605fdeaf4 tree 98702b89a50e927c38f2e31cf824c10d2585722f parent 571817849c76aabf34d534c905b5e604f2e824c5 author Eric W. Biederman Wed, 27 Sep 2006 01:51:04 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] sysctl: Allow /proc/sys without sys_sysctl Since sys_sysctl is deprecated start allow it to be compiled out. This should catch any remaining user space code that cares, and paves the way for further sysctl cleanups. [akpm@osdl.org: If sys_sysctl() is not compiled-in, emit a warning] Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 571817849c76aabf34d534c905b5e604f2e824c5 tree 5541946f87861b66e2612e623edccf81b8f42c70 parent 7583ddfd3aae1007bc4fc67ea4c07d573d376e9e author Pekka J Enberg Wed, 27 Sep 2006 01:51:03 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] msi: use kmem_cache_zalloc() Simpler, cleaner. Signed-off-by: Pekka Enberg Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7583ddfd3aae1007bc4fc67ea4c07d573d376e9e tree f88625aa25b246b29fc683682fa427ce18f08925 parent 8b0e330b7720a206339887044fa275bf537a5264 author Marcelo Tosatti Wed, 27 Sep 2006 01:51:02 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] Include __param section in read-only data range The param section is an array of "kernel_param" structures, storing only constant data: pointer to name, permission of the variable pointed to by (void *)arg and pointers to set/get methods. Move end_rodata down to include __param section in the read-only range used by CONFIG_DEBUG_RODATA. Signed-off-by: Marcelo Tosatti Acked-by: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8b0e330b7720a206339887044fa275bf537a5264 tree f76b1e82f09988aef047a1d8b2636bee93eab92e parent 07563c711fbc25389e58ab9c9f0b9de2fce56760 author Andrew Morton Wed, 27 Sep 2006 01:51:02 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] alloc_fdtable() cleanup free_fdset(NULL, ...) is legal. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 07563c711fbc25389e58ab9c9f0b9de2fce56760 tree aadbe41b9303c636a2c44169680613b8b56d5006 parent ebba5f9fcb882306bef7175dee987342ec6fcf2f author Michael Tokarev Wed, 27 Sep 2006 01:50:56 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:19 -0700 [PATCH] EISA bus MODALIAS attributes support Add modalias attribute support for the almost forgotten now EISA bus and (at least some) EISA-aware modules. The modalias entry looks like (for an 3c509 NIC): eisa:sTCM5093 and the in-module alias like: eisa:sTCM5093* The patch moves struct eisa_device_id declaration from include/linux/eisa.h to include/linux/mod_devicetable.h (so that the former now #includes the latter), adds proper MODULE_DEVICE_TABLE(eisa, ...) statements for all drivers with EISA IDs I found (some drivers already have that DEVICE_TABLE declared), and adds recognision of __mod_eisa_device_table to scripts/mod/file2alias.c so that proper modules.alias will be generated. There's no support for /lib/modules/$kver/modules.eisamap, as it's not used by any existing tools, and because with in-kernel modalias mechanism those maps are obsolete anyway. The rationale for this patch is: a) to make EISA bus to act as other busses with modalias support, to unify driver loading b) to foget about EISA finally - with this patch, kernel (who still supports EISA) will be the only one who knows how to choose the necessary drivers for this bus ;) [akpm@osdl.org: fix the kbuild bit] Signed-off-by: Michael Tokarev Cc: Rusty Russell Cc: Randy Dunlap Acked-the-net-bits-by: Jeff Garzik Acked-the-tulip-bit-by: Valerie Henson Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ebba5f9fcb882306bef7175dee987342ec6fcf2f tree a947175a24a3261ab3ffb5d9244e40939dd5495d parent bd8e39f9e4c0960541c8c69e1f7cb321574d7c90 author Randy Dunlap Wed, 27 Sep 2006 01:50:55 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] consistently use MAX_ERRNO in __syscall_return Consistently use MAX_ERRNO when checking for errors in __syscall_return(). [ralf@linux-mips.org: build fix] Signed-off-by: Randy Dunlap Signed-off-by: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bd8e39f9e4c0960541c8c69e1f7cb321574d7c90 tree a9b0fbf4c476dcd030c5f1fa828e79ee2f236584 parent 9a4b9efa1d39d7d31bed08fbe5a9b2a03b2759d4 author Shaohua Li Wed, 27 Sep 2006 01:50:54 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] x86 microcode: don't check the size IA32 manual says if micorcode update's size is 0, then the size is default size (2048 bytes). But this doesn't suggest all microcode update's size should be above 2048 bytes to me. We actually had a microcode update whose size is 1024 bytes. The patch just removed the check. Signed-off-by: Shaohua Li Cc: Tigran Aivazian Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9a4b9efa1d39d7d31bed08fbe5a9b2a03b2759d4 tree 61a75eddfe151c4ba7212e69222f11cb6393b487 parent a30a6a2cb0fdc2c9701d6ddfb21affeb8146c038 author Shaohua Li Wed, 27 Sep 2006 01:50:53 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] x86 microcode: add sysfs and hotplug support Add sysfs support. Currently each CPU has three microcode related attributes. One is 'version' which shows current ucode version of CPU. Tools can use the attribute do validation or show CPU ucode status. one is 'reload' which allows manually reloading ucode. Another is 'processor_flags', which exports processor flags, so we can write tools to check if CPU has latest ucode. Also add suspend/resume and CPU hotplug support. [akpm@osdl.org: cleanups, build fix] [bunk@stusta.de: Kconfig fixes] Signed-off-by: Shaohua Li Acked-by: Tigran Aivazian Cc: Greg KH Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a30a6a2cb0fdc2c9701d6ddfb21affeb8146c038 tree 72502de7266fbed2e4791cc162ef7607710f7cd0 parent 9a3110bf4bb0466b43b898533bfd4952001bc38f author Shaohua Li Wed, 27 Sep 2006 01:50:52 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] x86 microcode: using request_firmware to pull microcode Using request_firmware to pull ucode from userspace, so we don't need the application 'microcode_ctl' to assist. We name each ucode file according to CPU's info as intel-ucode/family-model-stepping. In this way we could split ucode file as small one. This has a lot of advantages such as selectively update and validate microcode for specific models, better manage microcode file, easily write tools for administerators and so on. with the changes, we should put all intel-ucode/xx-xx-xx microcode files into the firmware dir (I had a tool to split previous big data file into small one and later we will release new style data file). The init script should be changed to just loading the driver without unloading Signed-off-by: Shaohua Li Acked-by: Tigran Aivazian Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9a3110bf4bb0466b43b898533bfd4952001bc38f tree a2a9c94564562fda7fb8ca2bbec9611e094ed1f6 parent 36b756f2b5762e6d5acba0c18e75cb5c11f11c1b author Shaohua Li Wed, 27 Sep 2006 01:50:51 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] x86 microcode: microcode driver cleanup. Clean up microcode update driver and make it more readable. [akpm@osdl.org: cleanups] Signed-off-by: Shaohua Li Acked-by: Tigran Aivazian Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 36b756f2b5762e6d5acba0c18e75cb5c11f11c1b tree 493c0592acbb8899b5a2f57237ffe57d442ca4ea parent ba52de123d454b57369f291348266d86f4b35070 author Adrian Bunk Wed, 27 Sep 2006 01:50:50 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] reiserfs: warn about the useless nolargeio option Since the nolargeio option no longer has any effect, print a warning instead of setting a write-only variable. Signed-off-by: Adrian Bunk Cc: Jeff Mahoney Cc: Chris Mason Cc: Hans Reiser Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ba52de123d454b57369f291348266d86f4b35070 tree 3973f3f3c853b5857b6b64a027cadd4fe954e3b9 parent 577c4eb09d1034d0739e3135fd2cff50588024be author Theodore Ts'o Wed, 27 Sep 2006 01:50:49 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:18 -0700 [PATCH] inode-diet: Eliminate i_blksize from the inode structure This eliminates the i_blksize field from struct inode. Filesystems that want to provide a per-inode st_blksize can do so by providing their own getattr routine instead of using the generic_fillattr() function. Note that some filesystems were providing pretty much random (and incorrect) values for i_blksize. [bunk@stusta.de: cleanup] [akpm@osdl.org: generic_fillattr() fix] Signed-off-by: "Theodore Ts'o" Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 577c4eb09d1034d0739e3135fd2cff50588024be tree 2eb22d60a62d013f300729ee563d1fe61f544da9 parent eaf796e7ef6014f208c409b2b14fddcfaafe7e3a author Theodore Ts'o Wed, 27 Sep 2006 01:50:49 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] inode-diet: Move i_cdev into a union Move the i_cdev pointer in struct inode into a union. Signed-off-by: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eaf796e7ef6014f208c409b2b14fddcfaafe7e3a tree 4a872d4b2b086132a9ebdaec1420b8a861ddf6b7 parent 4c1541680f8d189d21dd07b053bc12996574646e author Theodore Ts'o Wed, 27 Sep 2006 01:50:48 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] inode-diet: Move i_bdev into a union Move the i_bdev pointer in struct inode into a union. Signed-off-by: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4c1541680f8d189d21dd07b053bc12996574646e tree 82028e01537a968ef66b075f79f3c95f8c60fd70 parent 8e18e2941c53416aa219708e7dcad21fb4bd6794 author Theodore Ts'o Wed, 27 Sep 2006 01:50:47 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] inode-diet: Move i_pipe into a union Move the i_pipe pointer into a union that will be shared with i_bdev and i_cdev. Signed-off-by: "Theodore Ts'o" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8e18e2941c53416aa219708e7dcad21fb4bd6794 tree 44118f8b09556193ac93e0b71aecfa3e1d4bc182 parent 6a1d9805ec506d8b9d04450997707da5f643d87c author Theodore Ts'o Wed, 27 Sep 2006 01:50:46 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] inode_diet: Replace inode.u.generic_ip with inode.i_private The following patches reduce the size of the VFS inode structure by 28 bytes on a UP x86. (It would be more on an x86_64 system). This is a 10% reduction in the inode size on a UP kernel that is configured in a production mode (i.e., with no spinlock or other debugging functions enabled; if you want to save memory taken up by in-core inodes, the first thing you should do is disable the debugging options; they are responsible for a huge amount of bloat in the VFS inode structure). This patch: The filesystem or device-specific pointer in the inode is inside a union, which is pretty pointless given that all 30+ users of this field have been using the void pointer. Get rid of the union and rename it to i_private, with a comment to explain who is allowed to use the void pointer. This is just a cleanup, but it allows us to reuse the union 'u' for something something where the union will actually be used. [judith@osdl.org: powerpc build fix] Signed-off-by: "Theodore Ts'o" Signed-off-by: Judith Lebzelter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6a1d9805ec506d8b9d04450997707da5f643d87c tree 244a37aa522076010d1d95523a42cdfb17540b73 parent 7e96287ddc4f42081e18248b6167041c0908004c author OGAWA Hirofumi Wed, 27 Sep 2006 01:50:45 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] fat: cleanup fat_get_block(s) get_blocks() was removed. So, this removes it on fat, and will take advantage of the multi block mapping. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7e96287ddc4f42081e18248b6167041c0908004c tree 6c890798c6c7093c74e3c44324d29ae99fade24f parent bcdc5e019d9f525a9f181a7de642d3a9c27c7610 author Vivek Goyal Wed, 27 Sep 2006 01:50:44 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] kdump: introduce "reset_devices" command line option Resetting the devices during driver initialization can be a costly operation in terms of time (especially scsi devices). This option can be used by drivers to know that user forcibly wants the devices to be reset during initialization. This option can be useful while kernel is booting in unreliable environment. For ex. during kdump boot where devices are in unknown random state and BIOS execution has been skipped. Signed-off-by: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bcdc5e019d9f525a9f181a7de642d3a9c27c7610 tree c2a93b8456095b260bee2be6e169c116f4b0be84 parent 1183dc943cae8b0fddca0b310c26052b2355e04b author Ian Kent Wed, 27 Sep 2006 01:50:44 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:17 -0700 [PATCH] autofs4 needs to force fail return revalidate For a long time now I have had a problem with not being able to return a lookup failure on an existsing directory. In autofs this corresponds to a mount failure on a autofs managed mount entry that is browsable (and so the mount point directory exists). While this problem has been present for a long time I've avoided resolving it because it was not very visible. But now that autofs v5 has "mount and expire on demand" of nested multiple mounts, such as is found when mounting an export list from a server, solving the problem cannot be avoided any longer. I've tried very hard to find a way to do this entirely within the autofs4 module but have not been able to find a satisfactory way to achieve it. So, I need to propose a change to the VFS. Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1183dc943cae8b0fddca0b310c26052b2355e04b tree 9bf94e50ca050459fb8bfe743bf203ce2654cf11 parent c1b4098d4852f823ecf1abb2d369cb1beb902653 author Jeff Dike Wed, 27 Sep 2006 01:50:43 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: fix allocation size Fix an instance of ptr=alloc(sizeof(ptr)). Grepping showed no more instances of this pattern. Also fixed the formatting in the area. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c1b4098d4852f823ecf1abb2d369cb1beb902653 tree 599e7ebe0316ec8a4592a9b4d7cb9f72b03715d9 parent db9d988eaa48fa8d64cf3234a301eb9406b91de1 author Jeff Dike Wed, 27 Sep 2006 01:50:42 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: fix sleep length bug um_timer shouldn't add local_offset to the host time since get_time already did it. This threw off sleep when a settimeofday or equivalent had happened. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db9d988eaa48fa8d64cf3234a301eb9406b91de1 tree cf85c5a32104e38d2334572d2b7977332de27ea0 parent 995473aec0be1d9993205accc03e19d32d4e4a2a author Jeff Dike Wed, 27 Sep 2006 01:50:41 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: add an export Some modules need strnlen_user_skas. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 995473aec0be1d9993205accc03e19d32d4e4a2a tree ab945c35f29b001ae1f42285e67bba082f446293 parent 3c9173509985b957bea692ea887a8a0e5055cfe8 author Jeff Dike Wed, 27 Sep 2006 01:50:40 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: file renaming Move some foo_kern.c files to foo.c now that the old foo.c files are out of the way. Also cleaned up some whitespace and an emacs formatting comment. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3c9173509985b957bea692ea887a8a0e5055cfe8 tree 9406fb650d6085f992b6d2a0a3fd8763b045cc35 parent 0915ee38c7db57ff41a7a68bcc02d0dd3b7b849b author Jeff Dike Wed, 27 Sep 2006 01:50:40 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: thread creation tidying fork on UML has always somewhat subtle. The underlying cause has been the need to initialize a stack for the new process. The only portable way to initialize a new stack is to set it as the alternate signal stack and take a signal. The signal handler does whatever initialization is needed and jumps back to the original stack, where the fork processing is finished. The basic context switching mechanism is a jmp_buf for each process. You switch to a new process by longjmping to its jmp_buf. Now that UML has its own implementation of setjmp and longjmp, and I can poke around inside a jmp_buf without fear that libc will change the structure, a much simpler mechanism is possible. The jmpbuf can simply be initialized by hand. This eliminates - the need to set up and remove the alternate signal stack sending and handling a signal the signal blocking needed around the stack switching, since there is no stack switching setting up the jmp_buf needed to jump back to the original stack after the new one is set up In addition, since jmp_buf is now defined by UML, and not by libc, it can be embedded in the thread struct. This makes it unnecessary to have it exist on the stack, where it used to be. It also simplifies interfaces, since the switch jmp_buf used to be a void * inside the thread struct, and functions which took it as an argument needed to define a jmp_buf variable and assign it from the void *. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0915ee38c7db57ff41a7a68bcc02d0dd3b7b849b tree 63b608e830c06fa9eeb102e5fd71d0feb84c4d50 parent e3ccf6e3699c879973b616fe681ecaa363457d41 author Jeff Dike Wed, 27 Sep 2006 01:50:38 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: mark some tt-mode code Mark a symbol and file as being tt-mode only. This shrinks the binary slightly when tt mode support is compiled out and makes it easier to identity stuff when tt mode is removed. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e3ccf6e3699c879973b616fe681ecaa363457d41 tree 91aba1c6ddf86881a84966af84e7a128fd6ba742 parent 53dd2b55c50c810073615c79816bc06aea02dba9 author Jeff Dike Wed, 27 Sep 2006 01:50:37 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: add checkstack support Make checkstack work for UML. We need to pass the underlying architecture name, rather than "um" to checkstack.pl. Signed-off-by: Jeff Dike Acked-by: Matt Mackall Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 53dd2b55c50c810073615c79816bc06aea02dba9 tree 7576ae7d1ab19701a20f6a906208526a69c4b697 parent 09b185a3169c5a8f9b7baf97f16d32add7e10ca4 author Jeff Dike Wed, 27 Sep 2006 01:50:37 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: use correct SIGBUS handler BB noticed that we had the wrong bus error handler. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 09b185a3169c5a8f9b7baf97f16d32add7e10ca4 tree e4cb09d6ea4638513c6f2cb14de26b1397628deb parent a8b4fc4d7c3ccf80d4fa1805cee85c06c2aa653e author Jeff Dike Wed, 27 Sep 2006 01:50:36 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: fix gcov support Make __bb_init_func weak in order to avoid a link failure with some libcs and/or gccs. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8b4fc4d7c3ccf80d4fa1805cee85c06c2aa653e tree 55cc6eed8fccc96d5a50b2e947cc85f8caba7242 parent 0715501bf1d915002d92e34e8a78ea889e5a0049 author Jeff Dike Wed, 27 Sep 2006 01:50:35 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:16 -0700 [PATCH] uml: fix missing x86_64 register definitions The UML/x86_64 headers were missing ptrace support for some segment registers. The underlying problem was that the x86_64 kernel uses user_regs_struct rather than the ptrace register definitions in ptrace. This patch switches UML/x86_64 to using user_regs_struct for its definitions of the host's registers. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0715501bf1d915002d92e34e8a78ea889e5a0049 tree 38dd7f8144ba7c754e47300ea2eb499301422846 parent 5e7672ec3f059f764fcc5c78216e24bb16c44dba author Jeff Dike Wed, 27 Sep 2006 01:50:34 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] uml: get rid of ZONE_DMA use ZONE_DMA might become dependent on CONFIG_ZONE_DMA, which UML doesn't define (we're still arguing about this) So, let's change ZONE_DMA to ZONE_NORMAL. This is prompted by optional-zone_dma-in-the-vm.patch, but should be harmless on its own. Signed-off-by: Jeff Dike Cc: Christoph Lameter Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5e7672ec3f059f764fcc5c78216e24bb16c44dba tree ea0e36468e19fbc3c9ff79d6378b5d8e7eef8ea3 parent 48af05ed54ddf8dc6eceea4f009e063d7e784b37 author Jeff Dike Wed, 27 Sep 2006 01:50:33 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] uml: const more data Make lots of structures const in order to make it obvious that they need no locking. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 48af05ed54ddf8dc6eceea4f009e063d7e784b37 tree 4960c5a2ed9a3a04c4423317824aad9af6075880 parent 06837504de7b4883e92af207dbbab4310d0db0ed author Paolo 'Blaisorblade' Giarrusso Wed, 27 Sep 2006 01:50:31 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] uml: fix proc-vs-interrupt context spinlock deadlock This spinlock can be taken on interrupt too, so spin_lock_irq[save] must be used. However, Documentation/networking/netdevices.txt explains we are called with rtnl_lock() held - so we don't need to care about other concurrent opens. Verified also in LDD3 and by direct checking. Also verified that the network layer (through a state machine) guarantees us that nobody will close the interface while it's being used. Please correct me if I'm wrong. Also, we must check we don't sleep with irqs disabled!!! But anyway, this is not news - we already can't sleep while holding a spinlock. Who says this is guaranted really by the present code? Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 06837504de7b4883e92af207dbbab4310d0db0ed tree ab3743a38bb2731dc93ac83001975ae939dc2996 parent 85f651794c46e8e3faf204a767d1caa7f9f278f0 author Paolo 'Blaisorblade' Giarrusso Wed, 27 Sep 2006 01:50:27 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] uml: use -mcmodel=kernel for x86_64 We have never used this flag and recently one user experienced a complaining warning about this (there was a symbol in the positive half of the address space IIRC). So fix it. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 85f651794c46e8e3faf204a767d1caa7f9f278f0 tree a57f99fa8f84c95a7a9899d1ab28a118c7ad15e3 parent a27f3113322edff36743014cc9e752a21ffc0324 author Hirokazu Takata Wed, 27 Sep 2006 01:50:24 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] m32r: revise __raw_read_trylock() Signed-off-by: Hirokazu Takata Cc: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a27f3113322edff36743014cc9e752a21ffc0324 tree a9e15e79b9a9de559a5f60a316fc1599076dea53 parent f269fdd1829acc5e53bf57b145003e5733133f2b author Hirokazu Takata Wed, 27 Sep 2006 01:50:24 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] m32r: Fix "value computed not used" warnings Fix to remove annoying gcc-4.1 warnings "value computed not used" for m32r; Modify set_mb to cast to void for SMP. Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f269fdd1829acc5e53bf57b145003e5733133f2b tree 494fef02f26f089f14c719e9a4394a41f7b686ec parent 930e652a21a08986b03d1f370f933057dc0db2dc author David Howells Wed, 27 Sep 2006 01:50:23 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] NOMMU: move the fallback arch_vma_name() to a sensible place Move the fallback arch_vma_name() to a sensible place (kernel/signal.c). Currently it's in fs/proc/task_mmu.c, a file that is dependent on both CONFIG_PROC_FS and CONFIG_MMU being enabled, but it's used from kernel/signal.c from where it is called unconditionally. [akpm@osdl.org: build fix] Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 930e652a21a08986b03d1f370f933057dc0db2dc tree c422f35bc2e7c17f58cb14544919affa52d8bac6 parent 0112c4c6461fed12ed9bcb249f967bc17a23f6c4 author David Howells Wed, 27 Sep 2006 01:50:22 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:15 -0700 [PATCH] NOMMU: Make futexes work under NOMMU conditions Make futexes work under NOMMU conditions. This can be tested by running this in one shell: #define SYSERROR(X, Y) \ do { if ((long)(X) == -1L) { perror(Y); exit(1); }} while(0) int main() { int shmid, tmp, *f, n; shmid = shmget(23, 4, IPC_CREAT|0666); SYSERROR(shmid, "shmget"); f = shmat(shmid, NULL, 0); SYSERROR(f, "shmat"); n = *f; printf("WAIT: %p{%x}\n", f, n); tmp = futex(f, FUTEX_WAIT, n, NULL, NULL, 0); SYSERROR(tmp, "futex"); printf("WAITED: %d\n", tmp); tmp = shmdt(f); SYSERROR(tmp, "shmdt"); exit(0); } And then this in the other shell: #define SYSERROR(X, Y) \ do { if ((long)(X) == -1L) { perror(Y); exit(1); }} while(0) int main() { int shmid, tmp, *f; shmid = shmget(23, 4, IPC_CREAT|0666); SYSERROR(shmid, "shmget"); f = shmat(shmid, NULL, 0); SYSERROR(f, "shmat"); (*f)++; printf("WAKE: %p{%x}\n", f, *f); tmp = futex(f, FUTEX_WAKE, 1, NULL, NULL, 0); SYSERROR(tmp, "futex"); printf("WOKE: %d\n", tmp); tmp = shmdt(f); SYSERROR(tmp, "shmdt"); exit(0); } The first program will set up a SYSV IPC SHM segment and wait on a futex in it for the number at the start to change. The program will increment that number and wake the first program up. This leads to output of the form: SHELL 1 SHELL 2 ======================= ======================= # /dowait WAIT: 0xc32ac000{0} # /dowake WAKE: 0xc32ac000{1} WAITED: 0 WOKE: 1 Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0112c4c6461fed12ed9bcb249f967bc17a23f6c4 tree 7e42f8bbce885b4dfa88ff109960235c246e4da5 parent 6fa5f80bc34da1a49b42117602b44441402cac2f author David Howells Wed, 27 Sep 2006 01:50:21 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Add docs about shared memory Add documentation about using shared memory in NOMMU mode. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6fa5f80bc34da1a49b42117602b44441402cac2f tree 7cdc7bf5c0df29b218c9c40d6cddd5124587b7a5 parent 3034097a5017dd9281b1f795e80af9859627850e author David Howells Wed, 27 Sep 2006 01:50:21 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Make mremap() partially work for NOMMU kernels Make mremap() partially work for NOMMU kernels. It may resize a VMA provided that it doesn't exceed the size of the slab object in which the storage is allocated that the VMA refers to. Shareable VMAs may not be resized. Moving VMAs (as permitted by MREMAP_MAYMOVE) is not currently supported. This patch also makes use of the fact that the VMA list is now ordered to cut it short when possible. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3034097a5017dd9281b1f795e80af9859627850e tree d03d6749ac52e6c23020bd9caa5fdee301ca8fa6 parent dbf8685c8e21404e3a8ed244bd0219d3c4b89101 author David Howells Wed, 27 Sep 2006 01:50:20 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Order the per-mm_struct VMA list Order the per-mm_struct VMA list by address so that searching it can be cut short when the appropriate address has been exceeded. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dbf8685c8e21404e3a8ed244bd0219d3c4b89101 tree 716b83de856049b51abf9770840ea122b7ca3285 parent d00c7b993712e4bb16d0012b35b654e40159b327 author David Howells Wed, 27 Sep 2006 01:50:19 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Implement /proc/pid/maps for NOMMU Implement /proc/pid/maps for NOMMU by reading the vm_area_list attached to current->mm->context.vmlist. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d00c7b993712e4bb16d0012b35b654e40159b327 tree 79f8fc60f8e41e054abc39b5d69e84d7a389777c parent 7b4d5b8b39fd3701ed3693a89f2bd8f6ef49bce2 author David Howells Wed, 27 Sep 2006 01:50:19 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Permit ptrace to ignore non-PROT_WRITE VMAs in NOMMU mode Permit ptrace to modify a section that's non-shared but is marked unwritable, such as is obtained by mapping the text segment of an ELF-FDPIC executable binary with into a binary that's being ptraced[*]. [*] Under NOMMU conditions ptrace causes read-only MAP_PRIVATE mmaps to become totally private copies because if a private mapping was actually shared then the debugging setting breakpoints in it would potentially crash other processes. This is done by using the VM_MAYWRITE flag rather than the VM_WRITE flag when deciding whether to permit a write. Without this patch a debugger can't set breakpoints in the mapped text sections of executables that are mapped read-only private, even if the mmap() syscall has taken a private copy because PT_PTRACED is set. In addition, VM_MAYREAD is used instead of VM_READ for similar reasons. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7b4d5b8b39fd3701ed3693a89f2bd8f6ef49bce2 tree b1741de6753ec41a45a7b69276eeccb1bcb3e46d parent 910e46da4b4e93d56ffea318c64afa41868d5e6d author David Howells Wed, 27 Sep 2006 01:50:18 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Check VMA protections Check the VMA protections in get_user_pages() against what's being asked. This checks to see that we don't accidentally write on a non-writable VMA or permit an I/O mapping VMA to be accessed (which may lack page structs). Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 910e46da4b4e93d56ffea318c64afa41868d5e6d tree 67f7dd9086dcf456101c843a1e310e7090a590db parent 0159b141d8b1f9b9f9cffacae47bec1e05c63b8b author Sonic Zhang Wed, 27 Sep 2006 01:50:17 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] Check if start address is in vma region in NOMMU function get_user_pages() In NOMMU arch, if run "cat /proc/self/mem", data from physical address 0 are read. This behavior is different from MMU arch. In IA32, message "cat: /proc/self/mem: Input/output error" is reported. This issue is rootcaused by not validate the start address in NOMMU function get_user_pages(). Following patch solves this issue. Signed-off-by: Sonic Zhang Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0159b141d8b1f9b9f9cffacae47bec1e05c63b8b tree 2555ce3afb2307b4532be4247d1f87e06f0071d0 parent 5da6185bca064e35aa73a7c1f27488d2b96434f4 author David Howells Wed, 27 Sep 2006 01:50:16 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Use find_vma() rather than reimplementing a VMA search Use find_vma() in the NOMMU version of access_process_vm() rather than reimplementing it. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5da6185bca064e35aa73a7c1f27488d2b96434f4 tree b854ad2105e177d4b4ec4bb6a5ac26d41ebe368f parent 0ec76a110f432e98277e464b82ace8dd66571689 author David Howells Wed, 27 Sep 2006 01:50:16 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Set BDI capabilities for /dev/mem and /dev/kmem Set the backing device info capabilities for /dev/mem and /dev/kmem to permit direct sharing under no-MMU conditions and full mapping capabilities under MMU conditions. Make the BDI used by these available to all directly mappable character devices. Also comment the capabilities for /dev/zero. [akpm@osdl.org: ifdef reductions] Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0ec76a110f432e98277e464b82ace8dd66571689 tree 3ed8de0ea6869fe17bec7689c493a2db02f73f4a parent 361f6ed1d00f666a1a7c33f3e9aaccb713f9b9e4 author David Howells Wed, 27 Sep 2006 01:50:15 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:14 -0700 [PATCH] NOMMU: Check that access_process_vm() has a valid target Check that access_process_vm() is accessing a valid mapping in the target process. This limits ptrace() accesses and accesses through /proc//maps to only those regions actually mapped by a program. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 361f6ed1d00f666a1a7c33f3e9aaccb713f9b9e4 tree a16708ea71e3d8332d5babbfee5f5634082b3e94 parent d24afc57d51b1be41f95521e81399061fa5875a6 author Haavard Skinnemoen Wed, 27 Sep 2006 01:50:14 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] AVR32: Use unsigned long flags for saving interrupt state Signed-off-by: Haavard Skinnemoen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d24afc57d51b1be41f95521e81399061fa5875a6 tree 325d8cd04919980d7d51e82d44dcfd9a4521e3f5 parent ead04089b138ed669658f80fafbe11fc7d97740b author Rolf Eike Beer Wed, 27 Sep 2006 01:50:13 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] Mark __remove_vm_area() static The function is exported but not used from anywhere else. It's also marked as "not for driver use" so noone out there should really care. Signed-off-by: Rolf Eike Beer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ead04089b138ed669658f80fafbe11fc7d97740b tree 35c623c292d569e9d8f99559836075ab8ec9be13 parent 423b41d773abe443bb546ce91361192073b96f88 author Rolf Eike Beer Wed, 27 Sep 2006 01:50:13 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] Fix kerneldoc comments in mm/vmalloc.c The empty line between the short description and the first argument description causes a section to appear twice in the generated manpage. Also the short description should really be short: the script can't handle multiple lines. Signed-off-by: Rolf Eike Beer Acked-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 423b41d773abe443bb546ce91361192073b96f88 tree 495b410fb4001ecf0daba6198e6b4c009a638ff8 parent 17a3b05047119b7fc72ef03962e202becc659579 author Randy Dunlap Wed, 27 Sep 2006 01:50:12 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] mm/page_alloc: use NULL instead of 0 for ptr Use NULL instead of 0 for pointer value, eliminate sparse warnings. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 17a3b05047119b7fc72ef03962e202becc659579 tree bbf7dc536cfdb3b399223317b661a286671d3d55 parent f4b81804a2d1ab341a4613089dc31ecce0800ed8 author Jes Sorensen Wed, 27 Sep 2006 01:50:11 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] mspec driver Implement the special memory driver (mspec) based on the do_no_pfn approach. The driver is currently used only on SN2 hardware with special fetchop support but could be beneficial on other architectures using the uncached mode. Signed-off-by: Jes Sorensen Cc: Hugh Dickins Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f4b81804a2d1ab341a4613089dc31ecce0800ed8 tree fdad77a7c40790908546a74a9b5918400d01333d parent 5d2923436217ba8bd05c5ee157712a391891c382 author Jes Sorensen Wed, 27 Sep 2006 01:50:10 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] do_no_pfn() Implement do_no_pfn() for handling mapping of memory without a struct page backing it. This avoids creating fake page table entries for regions which are not backed by real memory. This feature is used by the MSPEC driver and other users, where it is highly undesirable to have a struct page sitting behind the page (for instance if the page is accessed in cached mode via the struct page in parallel to the the driver accessing it uncached, which can result in data corruption on some architectures, such as ia64). This version uses specific NOPFN_{SIGBUS,OOM} return values, rather than expect all negative pfn values would be an error. It also bugs on cow mappings as this would not work with the VM. [akpm@osdl.org: micro-optimise] Signed-off-by: Jes Sorensen Cc: Hugh Dickins Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5d2923436217ba8bd05c5ee157712a391891c382 tree ddb06469d5a992a1839ca5d7f626486ac99490d2 parent 66a550308b8e4cbaba185d0326cb05d1bd758101 author Christoph Lameter Wed, 27 Sep 2006 01:50:10 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] zone_statistics: Use hot node instead of cold zone_pgdat Now that we have the node in the hot zone of struct zone we can avoid accessing zone_pgdat in zone_statistics. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66a550308b8e4cbaba185d0326cb05d1bd758101 tree e0ac829da7702413e57c7de288ce27398f32cfdb parent d5f541ed6e31518508c688912e7464facf253c87 author Christoph Lameter Wed, 27 Sep 2006 01:50:09 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] Do not allocate pagesets for unpopulated zones. We do not need to allocate pagesets for unpopulated zones. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d5f541ed6e31518508c688912e7464facf253c87 tree 028d296306e247ca32ec5db398d365dcd70d26b7 parent 765c4507af71c39aba21006bbd3ec809fe9714ff author Christoph Lameter Wed, 27 Sep 2006 01:50:08 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:13 -0700 [PATCH] Add node to zone for the NUMA case Add the node in order to optimize zone_to_nid. Signed-off-by: Christoph Lameter Acked-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 765c4507af71c39aba21006bbd3ec809fe9714ff tree 8bf1f5f940af830e18321b4e8ceac55457e5b981 parent 77f700dab4c05f8ee17584ec869672796d7bcb87 author Christoph Lameter Wed, 27 Sep 2006 01:50:08 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] GFP_THISNODE for the slab allocator This patch insures that the slab node lists in the NUMA case only contain slabs that belong to that specific node. All slab allocations use GFP_THISNODE when calling into the page allocator. If an allocation fails then we fall back in the slab allocator according to the zonelists appropriate for a certain context. This allows a replication of the behavior of alloc_pages and alloc_pages node in the slab layer. Currently allocations requested from the page allocator may be redirected via cpusets to other nodes. This results in remote pages on nodelists and that in turn results in interrupt latency issues during cache draining. Plus the slab is handing out memory as local when it is really remote. Fallback for slab memory allocations will occur within the slab allocator and not in the page allocator. This is necessary in order to be able to use the existing pools of objects on the nodes that we fall back to before adding more pages to a slab. The fallback function insures that the nodes we fall back to obey cpuset restrictions of the current context. We do not allocate objects from outside of the current cpuset context like before. Note that the implementation of locality constraints within the slab allocator requires importing logic from the page allocator. This is a mischmash that is not that great. Other allocators (uncached allocator, vmalloc, huge pages) face similar problems and have similar minimal reimplementations of the basic fallback logic of the page allocator. There is another way of implementing a slab by avoiding per node lists (see modular slab) but this wont work within the existing slab. V1->V2: - Use NUMA_BUILD to avoid #ifdef CONFIG_NUMA - Exploit GFP_THISNODE being 0 in the NON_NUMA case to avoid another #ifdef [akpm@osdl.org: build fix] Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 77f700dab4c05f8ee17584ec869672796d7bcb87 tree f51447c092beaa02b91ca2ce0c61ee511e48002f parent 08e0f6a9705376732fd3bc9bf8ba97a6b5211eb1 author Christoph Lameter Wed, 27 Sep 2006 01:50:07 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] Disable GFP_THISNODE in the non-NUMA case GFP_THISNODE must be set to 0 in the non numa case otherwise we disable retry and warnings for failing allocations in the SMP and UP case. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 08e0f6a9705376732fd3bc9bf8ba97a6b5211eb1 tree dfb761013377b983641fae33223157880171c498 parent c72419138fa34e1bc1f1c6fa54ee77df55a05ed0 author Christoph Lameter Wed, 27 Sep 2006 01:50:06 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] Add NUMA_BUILD definition in kernel.h to avoid #ifdef CONFIG_NUMA The NUMA_BUILD constant is always available and will be set to 1 on NUMA_BUILDs. That way checks valid only under CONFIG_NUMA can easily be done without #ifdef CONFIG_NUMA F.e. if (NUMA_BUILD && ) { ... } [akpm: not a thing we'd normally do, but CONFIG_NUMA is special: it is causing ifdef explosion in core kernel, so let's see if this is a comfortable way in whcih to control that] Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c72419138fa34e1bc1f1c6fa54ee77df55a05ed0 tree 293e2d11f5d4b8487aeccbb4eca71f3572012c17 parent de3083ec3e6bfb1ab60bc8a410f37702529f953c author Jes Sorensen Wed, 27 Sep 2006 01:50:05 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] Condense output of show_free_areas() On larger systems, the amount of output dumped on the console when you do SysRq-M is beyond insane. This patch is trying to reduce it somewhat as even with the smaller NUMA systems that have hit the desktop this seems to be a fair thing to do. The philosophy I have taken is as follows: 1) If a zone is empty, don't tell, we don't need yet another line telling us so. The information is available since one can look up the fact how many zones were initialized in the first place. 2) Put as much information on a line is possible, if it can be done in one line, rahter than two, then do it in one. I tried to format the temperature stuff for easy reading. Change show_free_areas() to not print lines for empty zones. If no zone output is printed, the zone is empty. This reduces the number of lines dumped to the console in sysrq on a large system by several thousand lines. Change the zone temperature printouts to use one line per CPU instead of two lines (one hot, one cold). On a 1024 CPU, 1024 node system, this reduces the console output by over a million lines of output. While this is a bigger problem on large NUMA systems, it is also applicable to smaller desktop sized and mid range NUMA systems. Old format: Mem-info: Node 0 DMA per-cpu: cpu 0 hot: high 42, batch 7 used:24 cpu 0 cold: high 14, batch 3 used:1 cpu 1 hot: high 42, batch 7 used:34 cpu 1 cold: high 14, batch 3 used:0 cpu 2 hot: high 42, batch 7 used:0 cpu 2 cold: high 14, batch 3 used:0 cpu 3 hot: high 42, batch 7 used:0 cpu 3 cold: high 14, batch 3 used:0 cpu 4 hot: high 42, batch 7 used:0 cpu 4 cold: high 14, batch 3 used:0 cpu 5 hot: high 42, batch 7 used:0 cpu 5 cold: high 14, batch 3 used:0 cpu 6 hot: high 42, batch 7 used:0 cpu 6 cold: high 14, batch 3 used:0 cpu 7 hot: high 42, batch 7 used:0 cpu 7 cold: high 14, batch 3 used:0 Node 0 DMA32 per-cpu: empty Node 0 Normal per-cpu: empty Node 0 HighMem per-cpu: empty Node 1 DMA per-cpu: [snip] Free pages: 5410688kB (0kB HighMem) Active:9536 inactive:4261 dirty:6 writeback:0 unstable:0 free:338168 slab:1931 mapped:1900 pagetables:208 Node 0 DMA free:1676304kB min:3264kB low:4080kB high:4896kB active:128048kB inactive:61568kB present:1970880kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 Node 0 DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 Node 0 Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 Node 0 HighMem free:0kB min:512kB low:512kB high:512kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 Node 1 DMA free:1951728kB min:3280kB low:4096kB high:4912kB active:5632kB inactive:1504kB present:1982464kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 .... New format: Mem-info: Node 0 DMA per-cpu: CPU 0: Hot: hi: 42, btch: 7 usd: 41 Cold: hi: 14, btch: 3 usd: 2 CPU 1: Hot: hi: 42, btch: 7 usd: 40 Cold: hi: 14, btch: 3 usd: 1 CPU 2: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 0 CPU 3: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 0 CPU 4: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 0 CPU 5: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 0 CPU 6: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 0 CPU 7: Hot: hi: 42, btch: 7 usd: 0 Cold: hi: 14, btch: 3 usd: 0 Node 1 DMA per-cpu: [snip] Free pages: 5411088kB (0kB HighMem) Active:9558 inactive:4233 dirty:6 writeback:0 unstable:0 free:338193 slab:1942 mapped:1918 pagetables:208 Node 0 DMA free:1677648kB min:3264kB low:4080kB high:4896kB active:129296kB inactive:58864kB present:1970880kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 Node 1 DMA free:1948448kB min:3280kB low:4096kB high:4912kB active:6864kB inactive:3536kB present:1982464kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 0 Signed-off-by: Jes Sorensen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit de3083ec3e6bfb1ab60bc8a410f37702529f953c tree 4093fcf3991e9af4be57c7c942dbea42011e4eb7 parent 0fd0e6b05aa096622f151cac2f81f2e6844fb1bb author Christoph Lameter Wed, 27 Sep 2006 01:50:03 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] slab: fix kmalloc_node applying memory policies if nodeid == numa_node_id() kmalloc_node() falls back to ___cache_alloc() under certain conditions and at that point memory policies may be applied redirecting the allocation away from the current node. Therefore kmalloc_node(...,numa_node_id()) or kmalloc_node(...,-1) may not return memory from the local node. Fix this by doing the policy check in __cache_alloc() instead of ____cache_alloc(). This version here is a cleanup of Kiran's patch. - Tested on ia64. - Extra material removed. - Consolidate the exit path if alternate_node_alloc() returned an object. [akpm@osdl.org: warning fix] Signed-off-by: Alok N Kataria Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0fd0e6b05aa096622f151cac2f81f2e6844fb1bb tree 4fd336eaea48b320f69e970323eef5dc77c62f20 parent 5b99cd0effaf846240a15441aec459a592577eaf author Nick Piggin Wed, 27 Sep 2006 01:50:02 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] page invalidation cleanup Clean up the invalidate code, and use a common function to safely remove the page from pagecache. Signed-off-by: Nick Piggin Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b99cd0effaf846240a15441aec459a592577eaf tree 355772422c716698762030e6261596c2ba484a37 parent e129b5c23c2b471d47f1c5d2b8b193fc2034af43 author Heiko Carstens Wed, 27 Sep 2006 01:50:01 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] own header file for struct page This moves the definition of struct page from mm.h to its own header file page-struct.h. This is a prereq to fix SetPageUptodate which is broken on s390: #define SetPageUptodate(_page) do { struct page *__page = (_page); if (!test_and_set_bit(PG_uptodate, &__page->flags)) page_test_and_clear_dirty(_page); } while (0) _page gets used twice in this macro which can cause subtle bugs. Using __page for the page_test_and_clear_dirty call doesn't work since it causes yet another problem with the page_test_and_clear_dirty macro as well. In order to avoid all these problems caused by macros it seems to be a good idea to get rid of them and convert them to static inline functions. Because of header file include order it's necessary to have a seperate header file for the struct page definition. Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e129b5c23c2b471d47f1c5d2b8b193fc2034af43 tree 78232266849d0f04b056b0f44554bcb476f0b8e1 parent fb01439c5b778d5974a488c5d4fe85e6d0e18a68 author Andrew Morton Wed, 27 Sep 2006 01:50:00 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] vm: add per-zone writeout counter The VM is supposed to minimise the number of pages which get written off the LRU (for IO scheduling efficiency, and for high reclaim-success rates). But we don't actually have a clear way of showing how true this is. So add `nr_vmscan_write' to /proc/vmstat and /proc/zoneinfo - the number of pages which have been written by the vm scanner in this zone and globally. Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb01439c5b778d5974a488c5d4fe85e6d0e18a68 tree dd5483b2555adbdc51f215fcb010484d423f63a0 parent 9c7cd6877cf8db15269163deda69392263124c1e author Mel Gorman Wed, 27 Sep 2006 01:49:59 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:12 -0700 [PATCH] Allow an arch to expand node boundaries Arch-independent zone-sizing determines the size of a node (pgdat->node_spanned_pages) based on the physical memory that was registered by the architecture. However, when CONFIG_MEMORY_HOTPLUG_RESERVE is set, the architecture expects that the spanned_pages will be much larger and that mem_map will be allocated that is used lated on memory hot-add. This patch allows an architecture that sets CONFIG_MEMORY_HOTPLUG_RESERVE to call push_node_boundaries() which will set the node beginning and end to at *least* the requested boundary. Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9c7cd6877cf8db15269163deda69392263124c1e tree ff5197bdd2d5f02a5032c050eb39349534a4b14b parent 0e0b864e069c52a7b3e4a7da56e29b03a012fd75 author Mel Gorman Wed, 27 Sep 2006 01:49:58 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Account for holes that are outside the range of physical memory absent_pages_in_range() made the assumption that users of the API would not care about holes beyound the end of physical memory. This was not the case. This patch will account for ranges outside of physical memory as holes correctly. Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0e0b864e069c52a7b3e4a7da56e29b03a012fd75 tree e3fcfd997ef912ed3c61cb2b5c2ca57a7f45ec58 parent 05e0caad3b7bd0d0fbeff980bca22f186241a501 author Mel Gorman Wed, 27 Sep 2006 01:49:56 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Account for memmap and optionally the kernel image as holes The x86_64 code accounted for memmap and some portions of the the DMA zone as holes. This was because those areas would never be reclaimed and accounting for them as memory affects min watermarks. This patch will account for the memmap as a memory hole. Architectures may optionally use set_dma_reserve() if they wish to account for a portion of memory in ZONE_DMA as a hole. Signed-off-by: Mel Gorman Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 05e0caad3b7bd0d0fbeff980bca22f186241a501 tree d213789aca5bf91b74bbf5946d428590e3e368b1 parent 5cb248abf5ab65ab543b2d5fc16c738b28031fc0 author Mel Gorman Wed, 27 Sep 2006 01:49:54 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Have ia64 use add_active_range() and free_area_init_nodes Size zones and holes in an architecture independent manner for ia64. [bob.picco@hp.com: fix ia64 FLATMEM+VIRTUAL_MEM_MAP] Signed-off-by: Mel Gorman Signed-off-by: Bob Picco Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Bob Picco Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5cb248abf5ab65ab543b2d5fc16c738b28031fc0 tree e9af2f7f86000e36f11f1091cb675c1738d69ca3 parent 4cfee88ad30acc47f02b8b7ba3db8556262dce1e author Mel Gorman Wed, 27 Sep 2006 01:49:52 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Have x86_64 use add_active_range() and free_area_init_nodes Size zones and holes in an architecture independent manner for x86_64. Signed-off-by: Mel Gorman Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4cfee88ad30acc47f02b8b7ba3db8556262dce1e tree a336e6774143c869ec4e945f176368792355478b parent c67c3cb4c99fb2ee63c8733943c353d745f45b84 author Mel Gorman Wed, 27 Sep 2006 01:49:51 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Have x86 use add_active_range() and free_area_init_nodes Size zones and holes in an architecture independent manner for x86. [akpm@osdl.org: build fix] Signed-off-by: Mel Gorman Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c67c3cb4c99fb2ee63c8733943c353d745f45b84 tree 5628da22a723aab1d11dfbedda264f3f65addc21 parent c713216deebd95d2b0ab38fef8bb2361c0180c2d author Mel Gorman Wed, 27 Sep 2006 01:49:49 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Have Power use add_active_range() and free_area_init_nodes() Size zones and holes in an architecture independent manner for Power. [judith@osdl.org: build fix] Signed-off-by: Mel Gorman Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c713216deebd95d2b0ab38fef8bb2361c0180c2d tree a5a8c61be427e3591811ff712b9ec7ef2f1a1f20 parent 2bd0cfbde2c0a74e209acbf045f1298cc2f61e01 author Mel Gorman Wed, 27 Sep 2006 01:49:43 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Introduce mechanism for registering active regions of memory At a basic level, architectures define structures to record where active ranges of page frames are located. Once located, the code to calculate zone sizes and holes in each architecture is very similar. Some of this zone and hole sizing code is difficult to read for no good reason. This set of patches eliminates the similar-looking architecture-specific code. The patches introduce a mechanism where architectures register where the active ranges of page frames are with add_active_range(). When all areas have been discovered, free_area_init_nodes() is called to initialise the pgdat and zones. The zone sizes and holes are then calculated in an architecture independent manner. Patch 1 introduces the mechanism for registering and initialising PFN ranges Patch 2 changes ppc to use the mechanism - 139 arch-specific LOC removed Patch 3 changes x86 to use the mechanism - 136 arch-specific LOC removed Patch 4 changes x86_64 to use the mechanism - 74 arch-specific LOC removed Patch 5 changes ia64 to use the mechanism - 52 arch-specific LOC removed Patch 6 accounts for mem_map as a memory hole as the pages are not reclaimable. It adjusts the watermarks slightly Tony Luck has successfully tested for ia64 on Itanium with tiger_defconfig, gensparse_defconfig and defconfig. Bob Picco has also tested and debugged on IA64. Jack Steiner successfully boot tested on a mammoth SGI IA64-based machine. These were on patches against 2.6.17-rc1 and release 3 of these patches but there have been no ia64-changes since release 3. There are differences in the zone sizes for x86_64 as the arch-specific code for x86_64 accounts the kernel image and the starting mem_maps as memory holes but the architecture-independent code accounts the memory as present. The big benefit of this set of patches is a sizable reduction of architecture-specific code, some of which is very hairy. There should be a greater reduction when other architectures use the same mechanisms for zone and hole sizing but I lack the hardware to test on. Additional credit; Dave Hansen for the initial suggestion and comments on early patches Andy Whitcroft for reviewing early versions and catching numerous errors Tony Luck for testing and debugging on IA64 Bob Picco for fixing bugs related to pfn registration, reviewing a number of patch revisions, providing a number of suggestions on future direction and testing heavily Jack Steiner and Robin Holt for testing on IA64 and clarifying issues related to memory holes Yasunori for testing on IA64 Andi Kleen for reviewing and feeding back about x86_64 Christian Kujau for providing valuable information related to ACPI problems on x86_64 and testing potential fixes This patch: Define the structure to represent an active range of page frames within a node in an architecture independent manner. Architectures are expected to register active ranges of PFNs using add_active_range(nid, start_pfn, end_pfn) and call free_area_init_nodes() passing the PFNs of the end of each zone. Signed-off-by: Mel Gorman Signed-off-by: Bob Picco Cc: Dave Hansen Cc: Andy Whitcroft Cc: Andi Kleen Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Keith Mannthey" Cc: "Luck, Tony" Cc: KAMEZAWA Hiroyuki Cc: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2bd0cfbde2c0a74e209acbf045f1298cc2f61e01 tree 2efb7fb6e574c0cbb6e4d93975a5b519d5c6a190 parent 133d205a18b7a4d8cb52959c5310f6664277cf61 author Andrew Morton Wed, 27 Sep 2006 01:49:42 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] fix x86_64-mm-spinlock-cleanup We need processor.h for cpu_relax(). Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 133d205a18b7a4d8cb52959c5310f6664277cf61 tree be3056dedc3190d06647a07425e8fcdcce5da868 parent 1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b author Alexey Dobriyan Wed, 27 Sep 2006 01:49:41 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:11 -0700 [PATCH] Make kmem_cache_destroy() return void un-, de-, -free, -destroy, -exit, etc functions should in general return void. Also, There is very little, say, filesystem driver code can do upon failed kmem_cache_destroy(). If it will be decided to BUG in this case, BUG should be put in generic code, instead. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b tree fade83955f75e718e39153d6f81d221403338bed parent f52720ca5f48574e347dff35ffe6b389ace61537 author Alexey Dobriyan Wed, 27 Sep 2006 01:49:40 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:10 -0700 [PATCH] Really ignore kmem_cache_destroy return value * Rougly half of callers already do it by not checking return value * Code in drivers/acpi/osl.c does the following to be sure: (void)kmem_cache_destroy(cache); * Those who check it printk something, however, slab_error already printed the name of failed cache. * XFS BUGs on failed kmem_cache_destroy which is not the decision low-level filesystem driver should make. Converted to ignore. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f52720ca5f48574e347dff35ffe6b389ace61537 tree 7efc8ec6bad32b98e406a5c553149d57e46bd07e parent f8314dc60ccba7e41f425048c4160dc7f63377d5 author Panagiotis Issaris Wed, 27 Sep 2006 01:49:39 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:10 -0700 [PATCH] fs: Removing useless casts * Removing useless casts * Removing useless wrapper * Conversion from kmalloc+memset to kzalloc Signed-off-by: Panagiotis Issaris Acked-by: Dave Kleikamp Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f8314dc60ccba7e41f425048c4160dc7f63377d5 tree 4e361a6e93dc7f64da0244e5a0dfef1fface0ddb parent 32c2d2bc4bed61323f14f2a7d69ccbd567253d8a author Panagiotis Issaris Wed, 27 Sep 2006 01:49:37 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:10 -0700 [PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to kzalloc. Signed-off-by: Panagiotis Issaris Jffs2-bit-acked-by: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 32c2d2bc4bed61323f14f2a7d69ccbd567253d8a tree 07b65d42ae5fa3d38ad8832928408dcd4aa31fc6 parent a4e4de36dc446b2193bdc8ebb96a96e44b69dd94 author Eric Sandeen Wed, 27 Sep 2006 01:49:36 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:10 -0700 [PATCH] more ext3 16T overflow fixes Some of the changes in balloc.c are just cosmetic, as Andreas pointed out - if they overflow they'll then underflow and things are fine. 5th hunk actually fixes an overflow problem. Also check for potential overflows in inode & block counts when resizing. Signed-off-by: Eric Sandeen Cc: Mingming Cao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a4e4de36dc446b2193bdc8ebb96a96e44b69dd94 tree d9a024e2c10dcb94decadc57caac162cef706307 parent e9ad5620bfb901df8a7a2603c88689ededeecaf1 author Dave Kleikamp Wed, 27 Sep 2006 01:49:36 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:10 -0700 [PATCH] ext3: Fix sparse warnings Fixing up some endian-ness warnings in preparation to clone ext4 from ext3. Signed-off-by: Dave Kleikamp Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e9ad5620bfb901df8a7a2603c88689ededeecaf1 tree 82a2b22e1b7401b98fc2f201b8df2db05764332a parent 7543fc7b3abfee8c6cd6349ebd5e5fde02fac984 author Dave Kleikamp Wed, 27 Sep 2006 01:49:35 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:10 -0700 [PATCH] ext3: More whitespace cleanups More white space cleanups in preparation of cloning ext4 from ext3. Removing spaces that precede a tab. Signed-off-by: Dave Kleikamp Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7543fc7b3abfee8c6cd6349ebd5e5fde02fac984 tree c3525ab6440599fcde96bda0cd41db30308dc2b3 parent 36faadc144477b4929c8fe60b8053f4472eeb3d2 author Vasily Averin Wed, 27 Sep 2006 01:49:33 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] ext3: wrong error behavior SWsoft Virtuozzo/OpenVZ Linux kernel team has discovered that ext3 error behavior was broken in linux kernels since 2.5.x versions by the following patch: 2002/10/31 02:15:26-05:00 tytso@snap.thunk.org Default mount options from superblock for ext2/3 filesystems http://linux.bkbits.net:8080/linux-2.6/gnupatch@3dc0d88eKbV9ivV4ptRNM8fBuA3JBQ In case ext3 file system is mounted with errors=continue (EXT3_ERRORS_CONTINUE) errors should be ignored when possible. However at present in case of any error kernel aborts journal and remounts filesystem to read-only. Such behavior was hit number of times and noted to differ from that of 2.4.x kernels. This patch fixes this: - do nothing in case of EXT3_ERRORS_CONTINUE, - set EXT3_MOUNT_ABORT and call journal_abort() in all other cases - panic() should be called after ext3_commit_super() to save sb marked as EXT3_ERROR_FS Signed-off-by: Vasily Averin Acked-by: Kirill Korotaev Cc: Theodore Ts'o Cc: "Stephen C. Tweedie" Cc: Mingming Cao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 36faadc144477b4929c8fe60b8053f4472eeb3d2 tree b329171a15b7caf363b0dec82ef7641fc43faced parent 321fb9e81821a81b2cda1328698b0c19d57c717f author Mingming Cao Wed, 27 Sep 2006 01:49:32 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] ext3: more comments about block allocation/reservation code Signed-off-by: Mingming Cao Acked-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 321fb9e81821a81b2cda1328698b0c19d57c717f tree 6d9aad256d4a6597fc34c5b130092ca109ef2e33 parent 37ed322290eb6d5cf2ab33915793ed4219eae1d6 author Mingming Cao Wed, 27 Sep 2006 01:49:32 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] ext3: turn on reservation dump on block allocation errors In the past there were a few kernel panics related to block reservation tree operations failure (insert/remove etc). It would be very useful to get the block allocation reservation map info when such error happens. Signed-off-by: Mingming Cao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 37ed322290eb6d5cf2ab33915793ed4219eae1d6 tree bd6e122b7af0b4c6a71bca21972cea3d124262b4 parent eee194e76c681dbdbf5024b889fda1181b66ef57 author Eric Sandeen Wed, 27 Sep 2006 01:49:31 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] JBD: 16T fixes These are a few places I've found in jbd that look like they may not be 16T-safe, or consistent with the use of unsigned longs for block containers. Problems here would be somewhat hard to hit, would require journal blocks past the 8T boundary, which would not be terribly common. Still, should fix. (some of these have come from the ext4 work on jbd as well). I think there's one more possibility that the wrap() function may not be safe IF your last block in the journal butts right up against the 232 block boundary, but that seems like a VERY remote possibility, and I'm not worrying about it at this point. Signed-off-by: Eric Sandeen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eee194e76c681dbdbf5024b889fda1181b66ef57 tree bbefd2b2da5a49dcf8057e182f35c044445111e9 parent 41f04d852e359582518f950d12b2287766613022 author Eric Sandeen Wed, 27 Sep 2006 01:49:30 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] ext3: inode numbers are unsigned long This is primarily format string fixes, with changes to ialloc.c where large inode counts could overflow, and also pass around journal_inum as an unsigned long, just to be pedantic about it.... Signed-off-by: Eric Sandeen Cc: Mingming Cao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 41f04d852e359582518f950d12b2287766613022 tree 3c4431dda993a930acd64b45e8df14564c61920f parent 855565e81ad8940cc645b5110ec2c7f124a76d23 author Eric Sandeen Wed, 27 Sep 2006 01:49:30 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] ext2: fix mounts at 16T Signed-off-by: Eric Sandeen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 855565e81ad8940cc645b5110ec2c7f124a76d23 tree 48b5ff0eb7bd297404b301e679d6330976e3e90d parent 2aed3484695ecb03f1395bb62f1099e8b0826124 author Eric Sandeen Wed, 27 Sep 2006 01:49:29 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] fix ext3 mounts at 16T I need to do some actual IO testing now, but this gets things mounting for a 16T ext3 filesystem. (patched up e2fsprogs is needed too, I'll send that off the kernel list) This patch fixes these issues in the kernel: o sbi->s_groups_count overflows in ext3_fill_super() sbi->s_groups_count = (le32_to_cpu(es->s_blocks_count) - le32_to_cpu(es->s_first_data_block) + EXT3_BLOCKS_PER_GROUP(sb) - 1) / EXT3_BLOCKS_PER_GROUP(sb); at 16T, s_blocks_count is already maxed out; adding EXT3_BLOCKS_PER_GROUP(sb) overflows it and groups_count comes out to 0. Not really what we want, and causes a failed mount. Feel free to check my math (actually, please do!), but changing it this way should work & avoid the overflow: (A + B - 1)/B changed to: ((A - 1)/B) + 1 o ext3_check_descriptors() overflows range checks ext3_check_descriptors() iterates over all block groups making sure that various bits are within the right block ranges... on the last pass through, it is checking the error case [item] >= block + EXT3_BLOCKS_PER_GROUP(sb) where "block" is the first block in the last block group. The last block in this group (and the last one that will fit in 32 bits) is block + EXT3_BLOCKS_PER_GROUP(sb)- 1. block + EXT3_BLOCKS_PER_GROUP(sb) wraps back around to 0. so, make things clearer with "first_block" and "last_block" where those are first and last, inclusive, and use <, > rather than <, >=. Finally, the last block group may be smaller than the rest, so account for this on the last pass through: last_block = sb->s_blocks_count - 1; (a similar patch could be done for ext2; does anyone in their right mind use ext2 at 16T? I'll send an ext2 patch doing the same thing if that's warranted) Signed-off-by: Eric Sandeen Cc: Mingming Cao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2aed3484695ecb03f1395bb62f1099e8b0826124 tree 4d3aed23944293a28d240f83921a6135dac49476 parent ae6ddcc5f24d6b06ae9231dc128904750a4155e0 author Alexey Dobriyan Wed, 27 Sep 2006 01:49:28 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] jbd: use BUILD_BUG_ON in journal init Signed-off-by: Alexey Dobriyan Acked-by: Stephen Tweedie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ae6ddcc5f24d6b06ae9231dc128904750a4155e0 tree 93c6e20b513f39b616af101dabe9b756f7300d0d parent e7ab8d65055e9b9dfc131d0467cfc5a8368d7ee4 author Mingming Cao Wed, 27 Sep 2006 01:49:27 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:09 -0700 [PATCH] ext3 and jbd cleanup: remove whitespace Remove whitespace from ext3 and jbd, before we clone ext4. Signed-off-by: Mingming Cao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e7ab8d65055e9b9dfc131d0467cfc5a8368d7ee4 tree b4e71a005cd4688cd42f19173cc77e67dbeae622 parent bbf2bef9f50eb119ffadd735eb0966ac8a04f91f author Josh Triplett Wed, 27 Sep 2006 01:49:26 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:08 -0700 [PATCH] jbd: add lock annotation to jbd_sync_bh jbd_sync_bh releases journal->j_list_lock. Add a lock annotation to this function so that sparse can check callers for lock pairing, and so that sparse will not complain about this function since it intentionally uses the lock in this manner. Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bbf2bef9f50eb119ffadd735eb0966ac8a04f91f tree 8eee0357d62723aedb04787c0e398695a7704d16 parent a5b08073a0b512d75fa1a7f82ee850e5c105cce9 author KAMEZAWA Hiroyuki Wed, 27 Sep 2006 01:49:25 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:26:08 -0700 [PATCH] fix "cpu to node relationship fixup: map cpu to node" Fix build error introduced by 3212fe1594e577463bc8601d28aa008f520c3377 Non-NUMA case should be handled. Signed-off-by: KAMEZAWA Hiroyuki Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e5beac371af0af47bcbd6819f4c2a0a2721a1735 tree 6dbaf0a1ba258977da34e3efa00b035a69ef67ec parent 80878d6c4ab8611a0edf139a7f8a7a64860b87c9 author Russell King Wed, 27 Sep 2006 16:13:48 +0100 committer Russell King Wed, 27 Sep 2006 16:13:48 +0100 [ARM] do_bad_area() always takes current and current->active_mm Since do_bad_area() always takes the currently active task and (supposed to) take the currently active MM, there's no point passing them to this function. Instead, obtain references to them inside do_bad_area(). Signed-off-by: Russell King commit a5b08073a0b512d75fa1a7f82ee850e5c105cce9 tree 3e609b471ae2ca1f200f974fc65eaf242673db71 parent ff0972c26bbf209da6f6d244cce60e695df863f6 parent 6d3aae9d74221b00e2cbf50a353527e5a71a58ba author Linus Torvalds Wed, 27 Sep 2006 08:09:48 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:09:48 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6: (30 commits) i2c: Drop unimplemented slave functions i2c: Constify i2c_algorithm declarations, part 2 i2c: Constify i2c_algorithm declarations, part 1 i2c: Let drivers constify i2c_algorithm data i2c-isa: Restore driver owner i2c-viapro: Add support for the VT8237A and VT8251 i2c: Warn on i2c client creation failure i2c-core: Drop useless bitmaskings i2c-algo-pcf: Discard the mdelay data struct member i2c-algo-bit: Cleanups i2c-isa: Fail adding driver on attach_adapter error i2c: __must_check fixes (chip drivers) i2c-dev: attach/detach_adapter cleanups i2c-stub: Chip address as a module parameter i2c: Plan i2c-isa for removal i2c: New bus driver for TI OMAP boards i2c-algo-bit: Discard the mdelay data struct member i2c-matroxfb: Struct init conversion i2c: Fix copy-n-paste in subsystem Kconfig i2c-au1550: Add I2C support for Au1200 ... commit ff0972c26bbf209da6f6d244cce60e695df863f6 tree 79db41583bf3847139ace7a6d1eff0266ea63bc2 parent a09fc446fb6d541281d9559fe7215d7c0d3cc9ce parent c9d86d76c1cdd76d67292ab75643db66573ca7dd author Linus Torvalds Wed, 27 Sep 2006 08:09:15 -0700 committer Linus Torvalds Wed, 27 Sep 2006 08:09:15 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6: (28 commits) pciehp - fix wrong return value IA64: PCI: dont disable irq which is not enabled acpiphp: add support for ioapic hot-remove PCI: assign ioapic resource at hotplug acpiphp: disable bridges acpiphp: stop bus device before acpi_bus_trim PCI: add pci_stop_bus_device acpiphp: do not initialize existing ioapics acpiphp: initialize ioapics before starting devices acpiphp: set hpp values before starting devices PCI Hotplug: cleanup pcihp skeleton code. PCI: Restore PCI Express capability registers after PM event PCI: drivers/pci/hotplug/acpiphp_glue.c: make a function static PCI: Multiprobe sanitizer PCI: fix __must_check warnings PCI Hotplug: fix __must_check warnings SHPCHP: fix __must_check warnings PCI-Express AER implemetation: pcie_portdrv error handler PCI-Express AER implemetation: AER core and aerdriver PCI-Express AER implemetation: export pcie_port_bus_type ... commit 80878d6c4ab8611a0edf139a7f8a7a64860b87c9 tree aa3a0c17496453789f173f132b9b0d30293c373f parent 0c668984ddff94f800b37f244d7b21074b04b971 author Russell King Wed, 27 Sep 2006 15:43:47 +0100 committer Russell King Wed, 27 Sep 2006 15:43:47 +0100 [ARM] Add setup_mm_for_reboot() for nommu Add an empty setup_mm_for_reboot() function for nommu machines. Signed-off-by: Russell King commit 0c668984ddff94f800b37f244d7b21074b04b971 tree ea5986742ada97cc21b0341daf2b6cf34c14c60a parent ae8f154129e4d965771c2d6adbe36210b3913d72 author Russell King Wed, 27 Sep 2006 15:40:28 +0100 committer Russell King Wed, 27 Sep 2006 15:40:28 +0100 [ARM] Rename mm-armv.c to pgd.c mm-armv.c now only contains the pgd allocation/freeing code, so rename it to have a more sensible filename. Signed-off-by: Russell King commit ae8f154129e4d965771c2d6adbe36210b3913d72 tree a0ae19dfe29e7a2f3b9db1f081b643eafc71d221 parent d111e8f9644aa585c1a7e198d74a4d2682ef1374 author Russell King Wed, 27 Sep 2006 15:38:34 +0100 committer Russell King Wed, 27 Sep 2006 15:38:34 +0100 [ARM] Move rest of MMU setup code from mm-armv.c to mmu.c If we're going to have mmu.c for code which is specific to the MMU machines, we might as well move the other MMU initialisation specific code from mm-armv.c into this new file. This also allows us to make some functions static. Signed-off-by: Russell King commit d111e8f9644aa585c1a7e198d74a4d2682ef1374 tree 4f29f58d0bbcd224790a3eae00668ce4d8a7483a parent 456335e2072fb35bf290b45e61d51916c322c145 author Russell King Wed, 27 Sep 2006 15:27:33 +0100 committer Russell King Wed, 27 Sep 2006 15:27:33 +0100 [ARM] Split ARM MM initialisation for !mmu Move the MMU specific code from init.c into mmu.c, and add nommu fixups to nommu.c Signed-off-by: Russell King commit a09fc446fb6d541281d9559fe7215d7c0d3cc9ce tree ab3f122acacd85908d1be424b1c376a73402b7c0 parent 1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32 author Franck Bui-Huu Fri, 11 Aug 2006 17:51:53 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:38:04 +0100 [MIPS] setup.c: use early_param() for early command line parsing There's no point to rewrite some logic to parse command line to pass initrd parameters or to declare a user memory area. We could use instead parse_early_param() that does the same thing. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32 tree f815c06c26ce0934627bc006ec99c187d341a631 parent 8df32c636e785069ba7d223ceb9b72c182902295 author Franck Bui-Huu Fri, 11 Aug 2006 17:51:52 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:38:02 +0100 [MIPS] setup.c: remove MAXMEM macro It doesn't improve readability. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 8df32c636e785069ba7d223ceb9b72c182902295 tree 9a4e138ec20a2f68c2b003fe3d5f839ae6c64e09 parent 8ff7bc4808f25e4dd75c3775dba313ddf35277e1 author Franck Bui-Huu Fri, 11 Aug 2006 17:51:51 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:38:01 +0100 [MIPS] setup.c: do not inline functions There's no point to inline any functions in setup.c. Let's GCC doing its job, it's good enough for that now. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 8ff7bc4808f25e4dd75c3775dba313ddf35277e1 tree 31c5a28c0f26e4d043d399f29430788b6f562405 parent d2043ca8484d434201816267c0e23c5999df6cfd author Franck Bui-Huu Fri, 11 Aug 2006 17:51:50 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:59 +0100 [MIPS] setup.c: remove useless includes. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit d2043ca8484d434201816267c0e23c5999df6cfd tree 92c6aceddb4abd4ed8fdf58cf7fab9308c7eb027 parent b6f1f0dea1469e0c956eb89399916d60dd2a3808 author Franck Bui-Huu Fri, 11 Aug 2006 17:51:49 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:59 +0100 [MIPS] setup.c: move initrd code inside dedicated functions NUMA specific code could rely on them too. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit b6f1f0dea1469e0c956eb89399916d60dd2a3808 tree 8fab639f1d883db492bcb27c5d0298d8cacd31c2 parent b5943182592ba256639a569c7d5305cf60360733 author Franck Bui-Huu Fri, 11 Aug 2006 17:51:48 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:59 +0100 [MIPS] setup.c: cleanup bootmem_init() This function although doing simple thing is hard to follow. It's mainly due to: - a lot of #ifdef - bad local names - redundant tests So this patch try to address these issues. It also do not use max_pfn global which is marked as an unused exported symbol. As a bonus side, it's now really easy to see what part of the code is for no-numa system. There's also no point to make this function inline. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit b5943182592ba256639a569c7d5305cf60360733 tree 3bd1df9b9c8c88f78833801094f6790ea7875717 parent 29b376ff10aaea69ee4d93b70d0fbb2ebfd80f4e author Franck Bui-Huu Fri, 18 Aug 2006 16:18:09 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:58 +0100 [MIPS] get_wchan(): remove uses of mfinfo[64] This array was used to 'cache' some frame info about scheduler functions to speed up get_wchan(). This array was 1Ko size and was only used when CONFIG_KALLSYMS was set but declared for all configs. Rather than make the array statement conditional, this patches removes this array and its uses. Indeed the common case doesn't seem to use this array and get_wchan() is not a critical path anyways. It results in a smaller bss and a smaller/cleaner code: text data bss dec hex filename 2543808 254148 139296 2937252 2cd1a4 vmlinux-new-get-wchan 2544080 254148 143392 2941620 2ce2b4 vmlinux~old Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 29b376ff10aaea69ee4d93b70d0fbb2ebfd80f4e tree b498fe6a70b26fe9a3dd79d51eaf744951b74583 parent 1fd6909802b837ed5510603846c0ce5938d296a1 author Franck Bui-Huu Fri, 18 Aug 2006 16:18:08 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:58 +0100 [MIPS] get_frame_info(): null function size means size is unknown This patch adds 2 sanity checks. The first one test that the start address of the function to analyze has been set by the caller. If not return an error since nothing usefull can be done without. The second one checks that the function's size has been set. A null size can happen if CONFIG_KALLSYMS is not set and it means that we don't know the size of the function to analyze. In this case, we make it equal to 128 instructions by default. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 1fd6909802b837ed5510603846c0ce5938d296a1 tree 5b9bb20189d38749b339990922a6059fb28ea3fd parent f83b854a1d2d28bc1ed86fec8a80940b59f8d932 author Franck Bui-Huu Fri, 18 Aug 2006 16:18:07 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:58 +0100 [MIPS] unwind_stack(): return ra if an exception occured at the first instruction Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit f83b854a1d2d28bc1ed86fec8a80940b59f8d932 tree a19d2b464444ec293fcc977775433f588a3271ac parent 36396f3c36b04f79438f87a0fccfa76aa3de6af9 author Ralf Baechle Tue, 26 Sep 2006 03:07:22 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:57 +0100 [MIPS] Enable tmpfs for anything that possibly runs a full distribution. Signed-off-by: Ralf Baechle commit 36396f3c36b04f79438f87a0fccfa76aa3de6af9 tree 2e9e26d7ace9005502014a1e624a34792f5be925 parent e584ade1a6679bfb417620f15951796bed9805d9 author Ralf Baechle Mon, 25 Sep 2006 15:49:49 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:57 +0100 [MIPS] s/__ASSEMBLER__/__ASSEMBLY__/ for clarity sake. Signed-off-by: Ralf Baechle commit e584ade1a6679bfb417620f15951796bed9805d9 tree 9e6cbf0665a8f10b98aefc64c7f112cb101cce0c parent ddb1199c4cd74a02d70f4c297373400893d70aa9 author Ralf Baechle Sat, 23 Sep 2006 18:08:36 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:56 +0100 [MIPS] Have headers_install install and . Signed-off-by: Ralf Baechle commit ddb1199c4cd74a02d70f4c297373400893d70aa9 tree 998c3f089fc6eb326d5319c58be645b3919bf7a9 parent 63415dbb54fb929a6ea597f2f6b885d570225d90 author Richard Sandiford Sun, 17 Sep 2006 20:38:39 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:56 +0100 [MIPS] fstatat syscall names MIPS is the only port to call its fstatat()-related syscalls "__NR_fstatat". Now I can see why that might be seen as every other port being wrong, but I think for o32, it is at best confusing. __NR_fstat provides a plain (32-bit) stat while __NR_fstatat provides a 64-bit stat. Changing the name to __NR_fstatat64 would make things more explicit, match x86, and make the glibc port slightly easier. The current name is more appropriate for n32 and n64, but it would be appropriate for other 64-bit targets too, and those targets have chosen to call it __NR_newfstatat instead. Using the same name for MIPS would again be more consistent and make the glibc port slightly easier. I'm not wedded to this idea if the current names are preferred, but FWIW... Signed-off-by: Richard Sandiford Signed-off-by: Ralf Baechle commit 63415dbb54fb929a6ea597f2f6b885d570225d90 tree 4e753ac4e61dccb0d141a70719d605c156e71403 parent d48f1de2d8170814fb64effa320848410c466f95 author Richard Sandiford Sun, 17 Sep 2006 20:30:46 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:55 +0100 [MIPS] The o32 fstatat syscall behaves differently on 32 and 64 bit kernels While working on a glibc patch to support the fstatat() functions[1], I noticed that the o32 implementation behaves differently on 32-bit and 64-bit kernels; the former provides a stat64 while the latter provides a plain (o32) stat. I think the former is what's intended, as there is no separate fstatat64. It's also what x86 does. I think this is just a case of a compat too far. [1] I've seen Khem's patch, but I don't think it's right. Signed-off-by: Richard Sandiford Signed-off-by: Ralf Baechle commit d48f1de2d8170814fb64effa320848410c466f95 tree 24aae2fe37aa995b49a30e050a6c323b3c41fd27 parent 432bef2a31668a0562e5738eaa59a43854f26567 author Ralf Baechle Wed, 20 Sep 2006 20:56:02 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:55 +0100 [MIPS] Remove EV96100 as previously announced. Signed-off-by: Ralf Baechle commit 432bef2a31668a0562e5738eaa59a43854f26567 tree a69c0aa57e5f017a89f8f32fa15bafb959359357 parent d7d86aa88a1f3922b85e39edd8a6d6c01e939842 author Ralf Baechle Fri, 08 Sep 2006 04:16:21 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:54 +0100 [MIPS] Replace BARRIER with more appropriate hazard barrier. This is the unchanged part 2 of Chris' hazard cleanup. Signed-off-by: Ralf Baechle commit d7d86aa88a1f3922b85e39edd8a6d6c01e939842 tree 88fb6fabb51ac122c1b069aa194773de5b5821e1 parent da79e827d4164ba1b961b62774800a8a52a3b6e4 author Ralf Baechle Fri, 08 Sep 2006 04:13:49 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:53 +0100 [MIPS] Cleanup hazard handling. Mostly based on patch by Chris Dearman and cleanups from Yoichi. Signed-off-by: Ralf Baechle commit da79e827d4164ba1b961b62774800a8a52a3b6e4 tree a74fd08a1556f598cc7572e6c4715fea0c46e64e parent 9dbd7b9142e95867ee8a56da5d45c72884c107d3 author Ralf Baechle Thu, 07 Sep 2006 02:29:57 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:52 +0100 [MIPS] IP27: Delete useless declaration of allocate_irqno(). Signed-off-by: Ralf Baechle commit 9dbd7b9142e95867ee8a56da5d45c72884c107d3 tree a21e246155a5d4e779f161ea7595ada9b1f43a51 parent 663c3d9009c1a41194b8390abdcea61e3ade1c8f author Peter Watkins Wed, 23 Aug 2006 11:15:49 -0400 committer Ralf Baechle Wed, 27 Sep 2006 13:37:52 +0100 [MIPS] Fix USER_PTRS_PER_PGD for 64K page size. The code in pgtable-64.h assumes TASK_SIZE is always bigger than a first level PGDIR_SIZE. This is not the case for 64K pages, where task size is 40 bits (1TB) and a pgd entry can map 42 bits. This leads to USER_PTRS_PER_PGD being zero for 64K pages. Signed-off-by: Peter Watkins Signed-off-by: Ralf Baechle commit 663c3d9009c1a41194b8390abdcea61e3ade1c8f tree d764c5c0ae81d677f52ede0d4b73547112e35454 parent 0c68a9b6a7da0cc9095c117bea573f9058b00fff author thomas@koeller.dyndns.org Sun, 27 Aug 2006 13:51:48 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:51 +0100 [MIPS] Add configuration variables for RM9xxx processor This patch introduces a number of configuration variables. These allow to specify presence/absence of integrated peripherals found on the MIPS RM9xxx processor family, based on the particular processor model used. Signed-off-by: Thomas Koeller Signed-off-by: Ralf Baechle commit 0c68a9b6a7da0cc9095c117bea573f9058b00fff tree 985935dd47af45781a09089b34aaf238761e3b3c parent 48712a96e31d11dce6dcb2a886894bd4d8b890f1 author thomas@koeller.dyndns.org Sun, 27 Aug 2006 13:54:31 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:50 +0100 [MIPS] Move excite_fpga.h to include/asm-mips/mach-excite excite_fpga.h, like all platform headers, really belongs in the platform header directory. Signed-off-by: Thomas Koeller Signed-off-by: Ralf Baechle commit 48712a96e31d11dce6dcb2a886894bd4d8b890f1 tree 42a1ae6910e9235d8f98dc4f0261877d70f302a9 parent 6b8aab09309c577318f8484fce401e5c3546bb3b author thomas@koeller.dyndns.org Sun, 27 Aug 2006 13:53:16 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:50 +0100 [MIPS] Suppress compiler warnings The excite platform exports hardware resources for device drivers to use. Any driver wanting to use these resources will look up them by their names. Since these resources are declared to have static linkage, but are not used in the source file defining them, the compiler used to emit an 'unused' warning, which this patch suppresses. Signed-off-by: Thomas Koeller Signed-off-by: Ralf Baechle commit 6b8aab09309c577318f8484fce401e5c3546bb3b tree 6dcfa49b31c589b4214c50e188d56532ab1933e6 parent 3c70f12bfaec6e1a1c4bfb94aec0c17675bc9310 author Ralf Baechle Fri, 25 Aug 2006 12:34:33 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:49 +0100 [MIPS] Reformat missformated SMTC bits. Signed-off-by: Ralf Baechle commit 3c70f12bfaec6e1a1c4bfb94aec0c17675bc9310 tree 2ab7da3a8c1752cc9d012f657b89b6ad16b199a7 parent bdb37c8d63f9455cd2ea505d62d0d6de221f3c76 author Atsushi Nemoto Sun, 20 Aug 2006 00:33:38 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:49 +0100 [MIPS] Qemu does not have D-cache aliases Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit bdb37c8d63f9455cd2ea505d62d0d6de221f3c76 tree 151497e4f19360b87ccf31a3e7f1ebdafb2e51dd parent 633fd568c1db825b9eb563681af09260ecee87b6 author Yoichi Yuasa Wed, 16 Aug 2006 23:10:00 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:48 +0100 [MIPS] Remove F_SETSIG and F_GETSIG in favor of the asm-generic definitions. Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 633fd568c1db825b9eb563681af09260ecee87b6 tree 367eda7fc503cd8224658a07aa035a8e40ccfcf1 parent 6b3e5f44b56745daad8cd913ccc7bcd9a9ece5ea author Ralf Baechle Fri, 04 Aug 2006 01:49:31 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:45 +0100 [MIPS] Move definition of IRIX compat constant into IRIX compat code. Signed-off-by: Ralf Baechle commit 6b3e5f44b56745daad8cd913ccc7bcd9a9ece5ea tree ea1eb1da48e0b89e940cfe47c06ec2d914aa98e8 parent a00f6310183e164ad2cfa5f4ec5d8c724ff0f799 author Yoichi Yuasa Mon, 31 Jul 2006 23:01:37 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:44 +0100 [MIPS] Use common definitions from asm-generic/signal.h Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit a00f6310183e164ad2cfa5f4ec5d8c724ff0f799 tree 75699ba81b4c11e21593a727b186b0b0ad9a816a parent 06be375b9ae237b295648980e8a52048ab640f92 author Ralf Baechle Tue, 01 Aug 2006 23:39:42 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:44 +0100 [MIPS] c-r4k: Convert init functions from inline to __init. With more recent compilers inline doesn't necessarily means a function will always be inlined. So leave that decission to the compiler and make the function as __init. Signed-off-by: Ralf Baechle commit 06be375b9ae237b295648980e8a52048ab640f92 tree be5e1fe3c3317fb8558245498ce150d28d4c8c60 parent 717736d4d73f8966fcc9802732f52f9e85830247 author Ralf Baechle Tue, 19 Sep 2006 17:18:53 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:43 +0100 [MIPS] TLS: set_thread_area returns asmlinkage int not void. Signed-off-by: Ralf Baechle commit 717736d4d73f8966fcc9802732f52f9e85830247 tree 16fa56a0324e1b5e0978b8be7b5c5f6d03afa26e parent 00932ba3052a84ed73fab34ff1ec5a413b77fbab author Ralf Baechle Tue, 19 Sep 2006 17:16:56 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:43 +0100 [MIPS] TLS: Delete unused sys32_set_thread_area There is no need for a compat version. Signed-off-by: Ralf Baechle commit 00932ba3052a84ed73fab34ff1ec5a413b77fbab tree b4e0d328eb0df53c7cb5d495cb609cd079461ac5 parent fc095a902181b72ce77a10feb7b36ba1cbacd736 author Ralf Baechle Sat, 16 Sep 2006 01:29:37 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:42 +0100 [MIPS] Make PROT_WRITE imply PROT_READ. commit fc095a902181b72ce77a10feb7b36ba1cbacd736 tree fdd84f9ea29f26dea3ae340ca168e2a2df27b3be parent 3ee24e1b1e0b5ae413a85ba63677a7110915e3af author Maciej W. Rozycki Tue, 12 Sep 2006 19:12:18 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:42 +0100 [MIPS] Atlas: update interrupt handling The following change updates the Atlas interrupt handling to match that of Malta. Tested with a 5Kc and a 34Kf successfully. Signed-off-by: Maciej W. Rozycki Signed-off-by: Ralf Baechle commit 3ee24e1b1e0b5ae413a85ba63677a7110915e3af tree bb34accf49edf5ad6e29daab026d4dfdaf54c030 parent 846acaa2b4974ae2e28038d024dedcfc184efbb7 author Maciej W. Rozycki Tue, 12 Sep 2006 19:02:44 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:41 +0100 [MIPS] Atlas: Fix building the RTC driver Atlas maps its RTC chip in the host mmio space rather than using the "traditional" location in the PCI/ISA port space. A change that has happened to the generic RTC header requires to define ARCH_RTC_LOCATION now. Signed-off-by: Maciej W. Rozycki Signed-off-by: Ralf Baechle commit 846acaa2b4974ae2e28038d024dedcfc184efbb7 tree c721a4fe21a658508f410898ec9a358710e31caa parent 60a6c3777ec607c5b19df9eac35088db4e142a6b author Kevin D. Kissell Tue, 12 Sep 2006 12:08:08 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:41 +0100 [MIPS] Patch to arch/mips/mips-boards/generic/time.c In hooking up the perf counter overflow interrupt to the experimental deprecated-real-soon-now /proc/perf interface last night, I had to revisit arch/mips/mips-boards/generic/time.c, and discovered that when the 2.6.9-based SMTC prototype was merged with the more recent tree, it was missed that arch/mips/kernel/time.c had changed so that even in SMP kernels, timer_interrupt() calls local_timer_interrupt(), so there is no longer a need to invoke it directly from mips_timer_interrupt() in those cases where timer_interrupt() has been called. So I got rid of that, and added the invocation of perf_irq() if Cause.PCI is set, more-or-less following the same logic as in the non-SMTC case, with the modifications that (a) a runtime check for Release 2 isn't done, because it's redundant in SMTC), and (b) we check for a clock interrupt regardless of the value returned by the perf counter service - I don't understand why we'd want to control that with perf_irq(), but maybe one of you knows the story. I also got rid of the stupid warning about the unused variable when compiled for SMTC (another artifact of the merge). The result hasn't been beaten to death, but boots, seems stable, and supports extended precision event counting. Signed-off-by: Kevin D. Kissell Signed-off-by: Ralf Baechle commit 60a6c3777ec607c5b19df9eac35088db4e142a6b tree 8f4a680f4667ac4698dfd80bd4ccd79a34f10b19 parent 7fdeb048141b363a23b8cf6f6a226d74aca4d724 author Atsushi Nemoto Thu, 08 Jun 2006 01:09:01 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:40 +0100 [MIPS] Reduce race between cpu_wait() and need_resched() checking If a thread became runnable between need_resched() and the WAIT instruction, switching to the thread will delay until a next interrupt. Some CPUs can execute the WAIT instruction with interrupt disabled, so we can get rid of this race on them (at least UP case). Original Patch by Atsushi with fixing up for MIPS Technology's cores by Ralf based on feedback from the RTL designers. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 7fdeb048141b363a23b8cf6f6a226d74aca4d724 tree 5df2585bb21a10ab0ea0b43c788a2a84ca53bab3 parent 8f9a2b324644d3f8c233287f0a7764d61655cda4 author Atsushi Nemoto Wed, 06 Sep 2006 22:42:02 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:40 +0100 [MIPS] Wire up set_robust_list(2) and get_robust_list(2) Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 8f9a2b324644d3f8c233287f0a7764d61655cda4 tree c35f35bb0e5c4999237f4b954d6fe393985dfad8 parent d34555fb20e7abf33f86d7aa3ec0826343f38256 author Atsushi Nemoto Thu, 07 Sep 2006 01:00:22 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:40 +0100 [MIPS] Fix errors detected by "make headers_check" * export asm/sgidefs.h * include asm/isadep.h only if in kernel * do not export contents of asm/timex.h and asm/user.h Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit d34555fb20e7abf33f86d7aa3ec0826343f38256 tree 975a282d62f8e23648cfd23f5fa8ac7f8893b5d1 parent 65316fd13ad9d82560edbad0a940d684380f7461 author Ralf Baechle Thu, 31 Aug 2006 19:39:09 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:39 +0100 [MIPS] Do not lose upper 32-bit on MIPS32 with 64-bit addresses in __pte(). Signed-off-by: Ralf Baechle commit 65316fd13ad9d82560edbad0a940d684380f7461 tree 9b3bf885035525a42143a49952b5eabb45fab65e parent 09f451bfb9fe5ceea763a9ebd6ec73dd05e4faf8 author Ralf Baechle Thu, 31 Aug 2006 14:16:06 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:39 +0100 [MIPS] Replace generic__raw_read_trylock usage generic__raw_read_trylock() is a defect generic function actually doing a __raw_read_lock ... Signed-off-by: Ralf Baechle commit 09f451bfb9fe5ceea763a9ebd6ec73dd05e4faf8 tree 9214195d989c2ce0494e5d6f5a1b49df09fecdab parent 32136568a9828c27c07eedb8d2b3e3d9fe8d87ba author Maciej W. Rozycki Wed, 30 Aug 2006 14:29:57 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:38 +0100 [MIPS] SEAD defconfig build fix Signed-off-by: Maciej W. Rozycki Signed-off-by: Ralf Baechle commit 32136568a9828c27c07eedb8d2b3e3d9fe8d87ba tree 97b07246b93d46b9ad9bcc654a1178077d503053 parent 898d229107f7aa8ea45685c11e2930783755f9ba author Alexander Bigga Tue, 29 Aug 2006 16:48:34 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:38 +0100 [MIPS] Fix for pci config_access on alchemy au1x000 I've encountered a serious problem with PCI config space access on Au1x000 platforms with recent 2.6.x-kernel. With 2.4.31 the same hardware works fine. So I was looking for the differences: Symptoms: - no PCI-device is seen on bootup though two or three cards are present - lspci output is empty - OR: lspci shows 20 times the same device (- OR: in some slot-configurations it worked anyhow) System(s): 1. platform with Au1500 and three PCI-devices (actually a mycable XXS1500 with backplane for three PCI-devices) 2. platform with Au1550 and two PCI-devices (custom board) Debugging: I digged down to the config_access() of the au1xxx-processors in arch/mips/pci/ops-au1000.c and switched on DEBUG. The code of config_access() seems to be almost the same as of the 2.4.x-kernel. But the "pci_cfg_vm->addr" returned by get_vm_area(0x2000, 0) once on booting is different. That's of course not forbidden. But the alignment seems to be wrong. In my case, I received: 2.4.31: pci_cfg_vm->addr = c0000000 2.6.18-rc5: pci_cfg_vm->addr = c0101000 To make it short: With 2.6.x it fails on the first config-access with: "PCI ERR detected: status 83a00356". Fixup: My fix is now, to use the VM_IOREMAP-flag in the get_vm_area call. This flag seems to be introduced in mm/vmalloc.c a long time ago (in 2.6.7-bk13, I found in gitweb). Now, the returned address is pci_cfg_vm->addr = c0104000 and everything works fine. Signed-off-by: Ralf Baechle commit 898d229107f7aa8ea45685c11e2930783755f9ba tree bcff787ee7f792571c7b1b8e480a80b8da04c45b parent f6502791d780b22fc147150137704a07a05ba361 author Atsushi Nemoto Tue, 29 Aug 2006 12:10:22 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:37 +0100 [MIPS] Make prepare_frametrace() not clobber v0 Since lmo commit 323a380bf9e1a1679a774a2b053e3c1f2aa3f179 ("Simplify dump_stack()") made prepare_frametrace() always inlined, using $2 (v0) in __asm__ is not safe anymore. We can use $1 (at) instead. Also we should use "dla" instead of "la" for 64-bit kernel. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit f6502791d780b22fc147150137704a07a05ba361 tree 687dbfcd20e60c480868eb1b64f784e8084b6e4b parent a94d702049569401c65b579d0751ce282f962b41 author Atsushi Nemoto Fri, 25 Aug 2006 17:55:31 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:37 +0100 [MIPS] Do not use drop_mmu_context to flusing other task's VIPT I-cache. c-r4k.c and c-sb1.c use drop_mmu_context() to flush virtually tagged I-caches, but this does not work for flushing other task's icache. This is for example triggered by copy_to_user_page() called from ptrace(2). Use indexed flush for such cases. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit a94d702049569401c65b579d0751ce282f962b41 tree 4272d85203da3648ef1f6feea02c24465e132057 parent 6e74bae9a0c2fc59ffb0e25fec074b4ac0ac7048 author Elizabeth Oldham Thu, 17 Aug 2006 12:39:21 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:36 +0100 [MIPS] MT: Fix setting of XTC. XTC can only be set if VPA is clear, which it may not be. There is also the possibility of a back to back c0 register access hazard to take care of. Signed-off-by: Ralf Baechle commit 6e74bae9a0c2fc59ffb0e25fec074b4ac0ac7048 tree d15d23874a19760e3e2b43cf9ae053d8b3629206 parent dc41fb43966ae1318fe34a8e5f959924a7c05d81 author Ralf Baechle Wed, 16 Aug 2006 14:05:11 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:36 +0100 [MIPS] SMTC Build fix. Signed-off-by: Ralf Baechle commit dc41fb43966ae1318fe34a8e5f959924a7c05d81 tree 4dbca3a63776353c118877c417d0f9a23d11b61e parent 73b76c78fdf3a25faecbffb52c925950d46152b6 author Ralf Baechle Wed, 16 Aug 2006 00:59:40 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:35 +0100 [MIPS] Fix 32-bit kernel by replacing 64-bit-only code. dclz() expects its 64-bit argument being passed as a single register but on 32-bit kernels it'll actually be in a register pair. Signed-off-by: Ralf Baechle commit 73b76c78fdf3a25faecbffb52c925950d46152b6 tree b42c56810a50fc3e3321300078fa3c1c0692506e parent c487d2a5a03163a1e0bd35ea72f7e5a6bd8b0d56 author Ralf Baechle Tue, 15 Aug 2006 19:36:40 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:35 +0100 [MIPS] MT: When doing "select SMP" also select SMP's prerequesites or ... ... kconfig will do weird stuff. Signed-off-by: Ralf Baechle commit c487d2a5a03163a1e0bd35ea72f7e5a6bd8b0d56 tree c27a95c06e9582bd73ff9e5c2147eb008b8ad740 parent 585fa72493edd7d5acb308806e7bb609412c6228 author Ralf Baechle Sat, 12 Aug 2006 22:56:03 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:34 +0100 [MIPS] eXcite: Don't set SERIAL_RM9000. The driver has not been merged yet so selecting it results in a warning message. Signed-off-by: Ralf Baechle commit 585fa72493edd7d5acb308806e7bb609412c6228 tree 5ba44983f09c477a35381b1171f58596b7d1110e parent 13fdd31abec5f48cf97693bd14d2e11e0779b4ca author Ralf Baechle Sat, 12 Aug 2006 16:40:08 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:34 +0100 [MIPS] Retire flush_icache_page from mm use. On the 34K the redundant cache operations were causing excessive stalls resulting in realtime code running on the second VPE missing its deadline. For all other platforms this patch is just a significant performance improvment as illustrated by below benchmark numbers. Processor, Processes - times in microseconds - smaller is better ------------------------------------------------------------------------------ Host OS Mhz null null open slct sig sig fork exec sh call I/O stat clos TCP inst hndl proc proc proc --------- ------------- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 25Kf 2.6.18-rc4 533 0.49 1.16 7.57 33.4 30.5 1.34 12.4 5497 17.K 54.K 25Kf 2.6.18-rc4-p 533 0.49 1.16 6.68 23.0 30.7 1.36 8.55 5030 16.K 48.K 4Kc 2.6.18-rc4 80 4.21 15.0 131. 289. 261. 16.5 258. 18.K 70.K 227K 4Kc 2.6.18-rc4-p 80 4.34 13.1 128. 285. 262. 18.2 258. 12.K 52.K 176K 34Kc 2.6.18-rc4 40 5.01 14.0 61.6 90.0 477. 17.9 94.7 29.K 108K 342K 34Kc 2.6.18-rc4-p 40 4.98 13.9 61.2 89.7 475. 17.6 93.7 8758 44.K 158K BCM1480 2.6.18-rc4 700 0.28 0.60 3.68 5.92 16.0 0.78 5.08 931. 3163 15.K BCM1480 2.6.18-rc4-p 700 0.28 0.61 3.65 5.85 16.0 0.79 5.20 395. 1464 8385 TX49-16K 2.6.18-rc3 197 0.73 2.41 19.0 37.8 82.9 2.94 17.5 4438 14.K 56.K TX49-16K 2.6.18-rc3-p 197 0.73 2.40 19.9 36.3 82.9 2.94 23.4 2577 9103 38.K TX49-32K 2.6.18-rc3 396 0.36 1.19 6.80 11.8 41.0 1.46 8.17 2738 8465 32.K TX49-32K 2.6.18-rc3-p 396 0.36 1.19 6.82 10.2 41.0 1.46 8.18 1330 4638 18.K Original patch by me with enhancements by Atsushi Nemoto. Signed-off-by: Ralf Baechle Signed-off-by: Atsushi Nemoto commit 13fdd31abec5f48cf97693bd14d2e11e0779b4ca tree 66eff81e11545ef5259812a1a83dd75a8d520567 parent 847b9dfccad7dd34b2e44b1c6ceeb1c4cb88084a author Ralf Baechle Tue, 08 Aug 2006 03:47:01 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:33 +0100 [MIPS] Avoid double signal restarting. In entry.S resume_userspace ... jal do_notify_resume form a loop through which the kernel will iterate as long as work is pending. If we iterate through this loop more than once with no signal pending for at least one but the last iteration we will take do the syscall restarting multiple times resulting in a syscall return prior to the the syscall instruction in userspace. This may happen when debugging a multithreaded program. Debugging and original fix by Maciej; extended to other ABIs by me. Signed-off-by: Maciej W. Rozycki Signed-off-by: Ralf Baechle commit 847b9dfccad7dd34b2e44b1c6ceeb1c4cb88084a tree 46374a118b2f42c17aef00ec478021043e56e38b parent bca70d24c09b740d6fd96b972011644cba8383d6 author Chris Dearman Mon, 07 Aug 2006 15:08:01 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:33 +0100 [MIPS] MT: Initialise all writable bits in Cause register to zero. Recent 34Ks come out of reset with WP enabled on VPE 1 so we take an immediate exception when starting the second VPE. Signed-off-by: Chris Dearman Signed-off-by: Ralf Baechle commit bca70d24c09b740d6fd96b972011644cba8383d6 tree 579ab8668780d1adbedfd79e35a73bcf4f083a9d parent 45887e12f21780f00b861fdaff8e9d02a42eeb0f author Yoichi Yuasa Mon, 31 Jul 2006 23:05:04 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:33 +0100 [MIPS] Fix EV64120 PCI fixup in Makefile Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 45887e12f21780f00b861fdaff8e9d02a42eeb0f tree 01865fe44d9b4d7c105d498dcaff1e2859be01d1 parent 1b223c861fd98080c2483f196b2496ac1f06f308 author Ralf Baechle Thu, 03 Aug 2006 21:54:13 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:32 +0100 [MIPS] Add missing returns in signal code. Signed-off-by: Ralf Baechle commit 1b223c861fd98080c2483f196b2496ac1f06f308 tree 125f51085a8dcd68f00b5268c477ba5262239dda parent 048c6140c0f5d0bb1af8308c91dfa560ac65a296 author Ralf Baechle Thu, 03 Aug 2006 21:53:10 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:31 +0100 [MIPS] IRIX: Crapectopy. Signed-off-by: Ralf Baechle commit 048c6140c0f5d0bb1af8308c91dfa560ac65a296 tree 8b49aaa9cb05e7f6a5bbab924a09398db195f4f5 parent b4b30a5a0a270e6b3fef88373ad35d235a047fc1 author Ralf Baechle Thu, 03 Aug 2006 19:36:37 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:30 +0100 [MIPS] Don't call try_to_freeze in do_signal & co. Signed-off-by: Ralf Baechle commit b4b30a5a0a270e6b3fef88373ad35d235a047fc1 tree ccf776ad71c648ac7077491e48f2a5b66f7778bf parent 4d157d5eac29d7d5559fdcabf20f3961bc5cb3e7 author Ralf Baechle Thu, 03 Aug 2006 17:34:24 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:29 +0100 [MIPS] Cleanup leftovers of ARCH_HAS_IRQ_PER_CPU CONFIG_IRQ_PER_CPU now controls the IRQ_PER_CPU stuff. Signed-off-by: Ralf Baechle commit 4d157d5eac29d7d5559fdcabf20f3961bc5cb3e7 tree 82662abbe473e5bd0be973e2a8ceb8b63082da55 parent 0cceb4aa9acf6192a5f02134e764b1feeea8b9de author Franck Bui-Huu Thu, 03 Aug 2006 09:29:21 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:29 +0100 [MIPS] Improve unwind_stack() This patch allows unwind_stack() to return ra for leaf function. But it tries to detects cases where get_frame_info() wrongly consider nested function as a leaf one. It also pass 'unsinged long *sp' instead of 'unsigned long **sp' as second parameter. The code looks cleaner. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 0cceb4aa9acf6192a5f02134e764b1feeea8b9de tree 9c5dd31e00b7e7b3fcc694bd0d4e6213614a66c7 parent 1666a6fc73f724cdc6bd7d699f9ada4b04953efe author Franck Bui-Huu Thu, 03 Aug 2006 09:29:20 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:28 +0100 [MIPS] Make get_frame_info() more robust Now get_frame_info() wants to detect move sp instruction first. It assumes that the save ra in the stack instruction can't happen before allocating frame size space into the stack. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 1666a6fc73f724cdc6bd7d699f9ada4b04953efe tree 394ad3c83258ec0ccdf841cff0474e45be97b474 parent 6057a7987608941a203f40f8b53513af433d8d2f author Franck Bui-Huu Thu, 03 Aug 2006 09:29:19 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:28 +0100 [MIPS] Simplify dump_stack() Make dump_stack() code not depend on CONFIG_KALLSYMS. It also make prepare_frametrace() always inlined to get less false entries reported by show_raw_backtrace(). Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 6057a7987608941a203f40f8b53513af433d8d2f tree 1fa63ef112a4350c5bf00fc673aed44609c1ed21 parent 87151ae39bf5556abe83d69af0be9580c32c501b author Franck Bui-Huu Thu, 03 Aug 2006 09:29:18 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:27 +0100 [MIPS] Make frame_info_init() more readable. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit 87151ae39bf5556abe83d69af0be9580c32c501b tree 5e5a39ef8b8f75d4980791b0bffb7413ed199e6e parent cf495a333093a1c0eca90c7d8d98313a3b7f01a1 author Franck Bui-Huu Thu, 03 Aug 2006 09:29:17 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:26 +0100 [MIPS] Miscellaneous cleanup in prologue analysis code We usually use backtrace term for dumping a call tree during debug. Therefore this patch renames show_frametrace() into show_backtrace() and show_trace() into show_raw_backtrace(). It also uses the new function print_ip_sym(). Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit cf495a333093a1c0eca90c7d8d98313a3b7f01a1 tree 16c9d6614a1439e55f6378cf6bd3b3d0b32b8cf7 parent c0efbb6dc2726785482d85a284c883d541a6e0be author Franck Bui-Huu Thu, 03 Aug 2006 09:29:16 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:25 +0100 [MIPS] Remove unused MODULE_RANGE macro. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit c0efbb6dc2726785482d85a284c883d541a6e0be tree 786a13988605f27fc38d1f11ab555c361cc96a92 parent df586d59a4f069bb60a94ff4e5b64fe5c876f72c author Franck Bui-Huu Thu, 03 Aug 2006 09:29:15 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:24 +0100 [MIPS] Make get_frame_info() more readable. Signed-off-by: Atsushi Nemoto Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit df586d59a4f069bb60a94ff4e5b64fe5c876f72c tree c7a750e05fae3a7952590e63d84239b0d64f8283 parent 1b4ee40a1330cad05e1cf65b60d8c82732bcafba author Ralf Baechle Tue, 01 Aug 2006 23:42:30 +0100 committer Ralf Baechle Wed, 27 Sep 2006 13:37:23 +0100 [MIPS] c-r4k: Typo fix. Signed-off-by: Ralf Baechle commit 1b4ee40a1330cad05e1cf65b60d8c82732bcafba tree 31dd277307ec504ade81e5636b438fa227570533 parent f66686f70a2a61e53ee8c2284f75ca342e4c0dc8 author Peter Watkins Thu, 27 Jul 2006 16:05:49 -0400 committer Ralf Baechle Wed, 27 Sep 2006 13:37:22 +0100 [MIPS] N32 rt_sigqueueinfo uses O32 padding, not N64 Signed-off-by: Ralf Baechle commit f66686f70a2a61e53ee8c2284f75ca342e4c0dc8 tree 881e98d7255770314dde60109a316cf9f84522b2 parent 79495d876c2074af5552a0c4b7aea600c2320e83 author Atsushi Nemoto Sat, 29 Jul 2006 23:27:20 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:06 +0100 [MIPS] dump_stack() based on prologue code analysis Instead of dump all possible address in the stack, unwind the stack frame based on prologue code analysis, as like as get_wchan() does. While the code analysis might fail for some reason, there is a new kernel option "raw_show_trace" to disable this feature. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 79495d876c2074af5552a0c4b7aea600c2320e83 tree 8e604f27087a159efc5b9331235be0faf5022861 parent e889d78fd5775d0b466f570928f5b0f0c9f05355 author Yoichi Yuasa Wed, 26 Jul 2006 23:34:19 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:05 +0100 [MIPS] db1x00: Remove unused mirage_ts.c CONFIG_WM97XX_COMODULE doesn't exist. Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit e889d78fd5775d0b466f570928f5b0f0c9f05355 tree c85ebfa9ae7fb6d72d6c1ac6f67d64fba92b1145 parent e7dee3cea4dcd54744cf68864784c1336a42144f author Atsushi Nemoto Tue, 25 Jul 2006 23:51:36 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:05 +0100 [MIPS] Rearrange show_stack, show_trace Print call-trace in show_stack() (like on other archs). Also make show_trace() static and simplify its argument list. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit e7dee3cea4dcd54744cf68864784c1336a42144f tree e5adbf325367a11cf1f3e691ac84d0a295735c43 parent bbbdb8567e972f39a377a0bbd10b78b5b1ba4657 author Yoichi Yuasa Tue, 25 Jul 2006 23:26:09 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:05 +0100 [MIPS] Updat mpc30x defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit bbbdb8567e972f39a377a0bbd10b78b5b1ba4657 tree 3def8e9b2ab7bccb84b8d83d98095edb27699dad parent 53a73347faa38d3e80b46fc3c1999ee6bfbadbef author Yoichi Yuasa Tue, 25 Jul 2006 23:24:54 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:04 +0100 [MIPS] Updat workpad defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 53a73347faa38d3e80b46fc3c1999ee6bfbadbef tree 9fdbfb758448e4b16dd91b2aa063f9541a49b371 parent d4fd1989ea142be620978dcac2e1b86929f3237a author Yoichi Yuasa Tue, 25 Jul 2006 23:24:47 +0900 committer Ralf Baechle Wed, 27 Sep 2006 13:37:04 +0100 [MIPS] Update e55 defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit d4fd1989ea142be620978dcac2e1b86929f3237a tree 58894f0c99bada929ea39bba0dce709fdf5510f2 parent b278240839e20fa9384ea430df463b367b90e04e author Maxime Bizon Thu, 20 Jul 2006 18:52:02 +0200 committer Ralf Baechle Wed, 27 Sep 2006 13:37:03 +0100 [MIPS] Honour "panic_on_oops" sysctl. Signed-off-by: Maxime Bizon Signed-off-by: Ralf Baechle commit bda3028813bd07f34f30288a492fbf6f7b8712dd tree 2773c970205cfa0c918dc7e5cb3a77a8b26e1e57 parent ae1f19aeb715098ac06323f279383f3843429d97 author Jeff Garzik Wed, 27 Sep 2006 05:41:13 -0400 committer Jeff Garzik Wed, 27 Sep 2006 05:41:13 -0400 [libata] Don't use old-EH ->eng_timeout() hook when not needed The PATA driver set got converted to the new error handling setup, but the old hooks were accidentally left in place. Now, removed. Signed-off-by: Jeff Garzik commit 33573c0e3243aaa38b6ad96942de85a1b713c2ff tree 977c71557e8c1603ac4934db2d3ceb5535826701 parent f3c2575818fab45f8609e4aef2e43ab02b3a142e author Paul Mundt Wed, 27 Sep 2006 18:37:30 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:37:30 +0900 sh: Fix occasional flush_cache_4096() stack corruption. IRQs disabling in flush_cache_4096 for cache purge. Under certain workloads we would get an IRQ in the middle of a purge operation, and the cachelines would remain in an inconsistent state, leading to occasional stack corruption. Signed-off-by: Takeo Takahashi Signed-off-by: Paul Mundt commit f3c2575818fab45f8609e4aef2e43ab02b3a142e tree a4924d7dd8f8df229e36fab24ccccfe12437509b parent 87b0ef91b6f27c07bf7dcce8584437481f473092 author Paul Mundt Wed, 27 Sep 2006 18:36:17 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:36:17 +0900 sh: Calculate shm alignment at runtime. Set the SHM alignment at runtime, based off of probed cache desc. Optimize get_unmapped_area() to only colour align shared mappings. Signed-off-by: Paul Mundt commit 87b0ef91b6f27c07bf7dcce8584437481f473092 tree 6f529ebfe59fc7d0332c31b889f86ac62515a443 parent 19f9a34f87c48bbd270d617d1c986d0c23866a1a author Paul Mundt Wed, 27 Sep 2006 18:34:41 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:34:41 +0900 sh: dma-mapping compile fixes. Silly bug, make it build again.. Signed-off-by: Paul Mundt commit 19f9a34f87c48bbd270d617d1c986d0c23866a1a tree 19f32122aec9c16cbbf8e3331e81040a4850cb8d parent 8c12b5dc13bf8516303a8224ab4e9708b33d5b00 author Paul Mundt Wed, 27 Sep 2006 18:33:49 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:33:49 +0900 sh: Initial vsyscall page support. This implements initial support for the vsyscall page on SH. At the moment we leave it configurable due to having nommu to support from the same code base. We hook it up for the signal trampoline return at present, with more to be added later, once uClibc catches up. Signed-off-by: Paul Mundt commit 8c12b5dc13bf8516303a8224ab4e9708b33d5b00 tree dc87b59da89d73963041267328ab88b7424d551b parent 28ccf7f91b1ac42ee1f18480a69d2a7486b625ce author Paul Mundt Wed, 27 Sep 2006 18:31:06 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:31:06 +0900 sh: Clean up PAGE_SIZE definition for assembly use. We want to be able to use PAGE_SIZE all over the place, this is the same approach adopted by other architectures.. Signed-off-by: Paul Mundt commit 28ccf7f91b1ac42ee1f18480a69d2a7486b625ce tree 456f8287e15c59e8a1f98a49932c4ecf85419227 parent d15f456043175bdf3464514b92a825b88d0546ae author Paul Mundt Wed, 27 Sep 2006 18:30:07 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:30:07 +0900 sh: Selective flush_cache_mm() flushing. flush_cache_mm() wraps in to flush_cache_all(), which is rather excessive given that the number of PTEs within the specified context are generally quite low. Optimize for walking the mm's VMA list and selectively flushing the VMA ranges from the dcache. Invalidate the icache only if a VMA sets VM_EXEC. Signed-off-by: Paul Mundt commit d15f456043175bdf3464514b92a825b88d0546ae tree b98ee188453dd5d79ca433c63993bad21c9ca38b parent 72c35543f8cf1316773ffbd9619575bb84ac44fb author Paul Mundt Wed, 27 Sep 2006 18:28:34 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:28:34 +0900 sh: More intelligent entry_mask/way_size calculation. Figure out the cache desc entry_mask at runtime, and remove hard-coded assumption about the cacheline size. Signed-off-by: Paul Mundt commit 72c35543f8cf1316773ffbd9619575bb84ac44fb tree 5dc8ba51079cbc65be0ee0e881da03e6ac0b0b5b parent 9d549a7d8ef71f684a35cf1e438543957cf81d12 author Paul Mundt Wed, 27 Sep 2006 18:27:43 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:27:43 +0900 sh: Support for L2 cache on newer SH-4A CPUs. This implements preliminary support for the L2 caches found on newer SH-4A CPUs. Signed-off-by: Paul Mundt commit 9d549a7d8ef71f684a35cf1e438543957cf81d12 tree 0090b908ba5fe448c082b2e2da51d7136cb04e29 parent 05ae91585167410dadd1bc8f2e207a062e638a16 author Paul Mundt Wed, 27 Sep 2006 18:26:05 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:26:05 +0900 sh: Update kexec support for API changes. This was falling a bit behind.. Signed-off-by: Paul Mundt commit 05ae91585167410dadd1bc8f2e207a062e638a16 tree 8814def2576aeb54ea3860b4563c54bc3fe3be35 parent 2220d164933a8776d1336c814e3c2e5573256d34 author Paul Mundt Wed, 27 Sep 2006 18:25:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:25:24 +0900 sh: Optimized readsl()/writesl() support. Implement optimized copies of readsl()/writesl(). Signed-off-by: Paul Mundt commit 2220d164933a8776d1336c814e3c2e5573256d34 tree 7cad89b8e9a852092fa169a5d783a7184d10fd69 parent 315bb96824149614efe4844ded077a13fc908880 author Paul Mundt Wed, 27 Sep 2006 18:24:28 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:24:28 +0900 sh: Report movli.l/movco.l capabilities. Add llsc to cpu_flags[] and comment cpu-features.h. Signed-off-by: Jamie Lenehan Signed-off-by: Paul Mundt commit 315bb96824149614efe4844ded077a13fc908880 tree 3a8db24ec8554d8e56b1460d85cc81b34299b0d7 parent a6a31139897a5e539efe7ad3b7bd351fa9673ce8 author Paul Mundt Wed, 27 Sep 2006 18:22:53 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:22:53 +0900 sh: CPU flags in AT_HWCAP in ELF auxvt. Encode processor flags in AT_HWCAP in the ELF auxiliary vector. Signed-off-by: Paul Mundt commit a6a31139897a5e539efe7ad3b7bd351fa9673ce8 tree 6e2ad11d93ab95214694038080c79284c6da30d6 parent 2cb7ce3bb384f30a377f66336c78546b834604df author Paul Mundt Wed, 27 Sep 2006 18:22:14 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:22:14 +0900 sh: Add support for 4K stacks. This enables support for 4K stacks on SH. Currently this depends on DEBUG_KERNEL, but likely all boards will switch to this as the default in the future. Signed-off-by: Paul Mundt commit 2cb7ce3bb384f30a377f66336c78546b834604df tree 8954cf1acdb07acba9a2014771720d0da2670358 parent d153ea88dccf003173315b5d21acabebb897fb4a author Paul Mundt Wed, 27 Sep 2006 18:20:58 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:20:58 +0900 sh: Enable /proc/kcore support. This was previously unimplemented.. Signed-off-by: Paul Mundt commit d153ea88dccf003173315b5d21acabebb897fb4a tree 5cdc96ef0ec58026d82c03f76250ac1833f566d4 parent 7a440c950efb5cdc8a05cc6c3ec8fc864b60ef77 author Paul Mundt Wed, 27 Sep 2006 18:20:16 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:20:16 +0900 sh: stack debugging support. This adds a DEBUG_STACK_USAGE and DEBUG_STACKOVERFLOW for SH. Signed-off-by: Paul Mundt commit 7a440c950efb5cdc8a05cc6c3ec8fc864b60ef77 tree 44a03ff7583978f6a6ce6566a78d16fd176e9888 parent 2c7834a6f15fe6c50ed4766f1bb6f9183b9e2740 author Paul Mundt Wed, 27 Sep 2006 18:18:31 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:18:31 +0900 sh: select CONFIG_EMBEDDED. This solution isn't very optimal, but it's generaly the behaviour that we want.. Signed-off-by: Paul Mundt commit 2c7834a6f15fe6c50ed4766f1bb6f9183b9e2740 tree 2dee1fc4b2cd69d8e7f07e0462c57c98261a9fcf parent bc8fb5d0471473f775378d09db712dcb8eeece75 author Paul Mundt Wed, 27 Sep 2006 18:17:31 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:17:31 +0900 sh: machvec rework. Some more machvec overhauling and setup code cleanup. Kill off get_system_type() and platform_setup(), we can do these both through the machvec. While we're add it, kill off more useless mach.c's and drop some legacy cruft from setup.c. Signed-off-by: Paul Mundt commit 456335e2072fb35bf290b45e61d51916c322c145 tree 985fddceeeff3e3a8cbbff33a8130fc31637ec8d parent c06015148fa9a3cc452ec7121b8c3f59f4a7d6ac author Russell King Wed, 27 Sep 2006 10:00:54 +0100 committer Russell King Wed, 27 Sep 2006 10:10:58 +0100 [ARM] Separate page table manipulation code from bootmem initialisation nommu does not require the page table manipulation code in the bootmem initialisation paths. Move this into separate inline functions. Signed-off-by: Russell King commit bc8fb5d0471473f775378d09db712dcb8eeece75 tree 373f7b27ae734c03d4d995a9ea8f3fecade3acab parent 91b91d01416afba8d3f230a62b5d2784bd7af94a author Paul Mundt Wed, 27 Sep 2006 18:09:34 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:09:34 +0900 sh: Solution Engine SH7343 board support. This adds support for the SE7343 board. Signed-off-by: Paul Mundt commit 91b91d01416afba8d3f230a62b5d2784bd7af94a tree 09812a19d82f697d3dd0cc8ab9c26a526f513970 parent 49c3f807f5734605c10cdfb462a8fd5c3075eb76 author Paul Mundt Wed, 27 Sep 2006 18:08:33 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:08:33 +0900 sh: SH7710VoIPGW board support. This adds support for the SH7710 VoIP Gateway board. Signed-off-by: Paul Mundt commit 49c3f807f5734605c10cdfb462a8fd5c3075eb76 tree a1056540599a8f4c13ea7d4df172326dacfdc559 parent 8599cf059209de22dd3be16816b90f1aad10c74a author Paul Mundt Wed, 27 Sep 2006 18:04:36 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:04:36 +0900 sh: Enable verbose BUG() support. Add SH to the list of platforms interested in Verbose BUG(). Signed-off-by: Paul Mundt commit 8599cf059209de22dd3be16816b90f1aad10c74a tree 8cd5bdec25431a2797147c3eea11532ec71b6272 parent ba463937ef75bceaf3943edf01f849257c68623a author Paul Mundt Wed, 27 Sep 2006 18:03:34 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:03:34 +0900 sh: Cleanup IRQ disabling for hardirq handlers. The generic hardirq layer already takes care of a lot of the appropriate locking and disabling for us, no need to duplicate it in the handlers.. Signed-off-by: Paul Mundt commit ba463937ef75bceaf3943edf01f849257c68623a tree 42d8d401e2710b76d40943c4c45beab5cd084541 parent 5a4053b23262afefa748e1e4c439931d4c27693b author Paul Mundt Wed, 27 Sep 2006 18:01:16 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:01:16 +0900 sh: maskreg IRQ support. Formerly implemented by ADX, we can use this generically, so move it over. Signed-off-by: Paul Mundt commit 5a4053b23262afefa748e1e4c439931d4c27693b tree d8ed63a427c01361435d14d97b5ce3b2ab33b25c parent f118420be83c3ce7888fe1d42db84af495da9edb author Paul Mundt Wed, 27 Sep 2006 18:00:19 +0900 committer Paul Mundt Wed, 27 Sep 2006 18:00:19 +0900 sh: Kill off dead boards. None of these have been maintained in years, and no one seems to be interested in doing so, so just get rid of them. Signed-off-by: Paul Mundt commit f118420be83c3ce7888fe1d42db84af495da9edb tree 5d6bf59f2d9dee6623a63cd51a56a806b73d81d0 parent 781125ca58dfbd47635cfc0e408f1f9d7e10b227 author Paul Mundt Wed, 27 Sep 2006 17:53:59 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:53:59 +0900 watchdog: Add a simple mmap() stub for shwdt. In some applications people have expressed a need for an mmap() method, so we implement a simple stub for this that maps back a page with the counter in it. Signed-off-by: Paul Mundt commit 781125ca58dfbd47635cfc0e408f1f9d7e10b227 tree 92d44b262478d5cece046ff661694b1109ab1e9d parent 15f57a29a19ad0dbb468363cb617b06f71f6de92 author Paul Mundt Wed, 27 Sep 2006 17:52:19 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:52:19 +0900 sh: New atomic ops for SH-4A movli.l/movco.l SH-4A implements LL/SC instructions, so we implement a simple set of atomic operations using these. Signed-off-by: Paul Mundt commit 15f57a29a19ad0dbb468363cb617b06f71f6de92 tree 51a8a889603143abd896f14b6a64511e08d7a5cf parent c7afb7e5cbc4baa781ec82731fc9fe9039efee22 author Paul Mundt Wed, 27 Sep 2006 17:51:01 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:51:01 +0900 sh: Add support for cacheline poking through debugfs. A simple debugging aid for easier visibility of the respective cachelines. Signed-off-by: Paul Mundt commit c7afb7e5cbc4baa781ec82731fc9fe9039efee22 tree 1a7f7c01354727af39bed2d6ed59af8e4224d1c4 parent 91550f715b7f7707b5ab5b9b0cd455bda8505954 author Nobuhiro Iwamatsu Wed, 27 Sep 2006 17:50:03 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:50:03 +0900 sh: Fix memcpy() build error on sh4eb. A trivial bug breaking the build on sh4eb. Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Paul Mundt commit 91550f715b7f7707b5ab5b9b0cd455bda8505954 tree 252b23d87eb62562f16e95d24761f03a9d82ede0 parent 51e22e7a05c1c6f2e38ac7459d3404e32e543b75 author Paul Mundt Wed, 27 Sep 2006 17:45:01 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:45:01 +0900 sh: Kill off the rest of the legacy rtc mess. With the new RTC class driver, we can get rid of most of the old left over cruft. Signed-off-by: Paul Mundt commit 51e22e7a05c1c6f2e38ac7459d3404e32e543b75 tree efd81ee22e036c1d268827715e6515314e05cdf7 parent e5723e0eeb2dc16629e86d66785024ead9169000 author Takashi YOSHII Wed, 27 Sep 2006 17:41:31 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:41:31 +0900 sh: SHMIN board support. This adds support for the SHMIN SH7706 board. Signed-off-by: Takashi YOSHII Signed-off-by: Paul Mundt commit e5723e0eeb2dc16629e86d66785024ead9169000 tree 7fe39cdaf3106cc726d3b84fdc998b382b6c5e22 parent ecd9561687a0952a96a0a705f618e59cb6f3189b author Paul Mundt Wed, 27 Sep 2006 17:38:11 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:38:11 +0900 sh: Add support for SH7706/SH7710/SH7343 CPUs. This adds support for the aforementioned CPU subtypes, and cleans up some build issues encountered as a result. Signed-off-by: Paul Mundt commit c06015148fa9a3cc452ec7121b8c3f59f4a7d6ac tree 348ff2fee459a074987cc1bc8607f8201e782f5f parent 4052ebb7a2729bd7c28260cdf8e470c0d81b9c56 author Paul Brook Sun, 24 Sep 2006 16:54:40 +0100 committer Russell King Wed, 27 Sep 2006 09:35:07 +0100 [ARM] 3860/1: Versatile PCI config byte accesses The ARM Versatile board PCI config space read routines are broken for byte accesses. The access uses a byte read, so masking the bottom two bits of the address is wrong. I guess this is a cut/paste error from the the halfword code which uses aligned word access+shift+mask. Signed-off-by: Paul Brook Signed-off-by: Russell King commit 4052ebb7a2729bd7c28260cdf8e470c0d81b9c56 tree be3d93df979ab49c9607f290265f955f2198ddd9 parent 4b053e7a320882fbdbc6613cec60a929553b4215 author George G. Davis Fri, 22 Sep 2006 18:36:38 +0100 committer Russell King Wed, 27 Sep 2006 09:35:05 +0100 [ARM] 3859/1: Fix devicemaps_init() XIP_KERNEL odd 1MiB XIP_PHYS_ADDR translation error The ARM XIP_KERNEL map created in devicemaps_init() is wrong. The map.pfn is rounded down to an even 1MiB section boundary which results in va/pa translations errors when XIP_PHYS_ADDR starts on an odd 1MiB boundary and this causes the kernel to hang. This patch fixes ARM XIP_KERNEL translation errors for the odd 1MiB XIP_PHYS_ADDR boundary case. Signed-off-by: George G. Davis Signed-off-by: Russell King commit 4b053e7a320882fbdbc6613cec60a929553b4215 tree c6c8d41fe2df1ec65ae4c5d31390109477274dfd parent da56c949261d462452a68cf05bfc645445bee830 author Ben Dooks Fri, 22 Sep 2006 15:42:18 +0100 committer Russell King Wed, 27 Sep 2006 09:35:04 +0100 [ARM] 3858/1: S3C2412: power management code Add S3C2412 power management code, and move the core register saving in from s3c2412.c Signed-off-by: Ben Dooks Signed-off-by: Russell King commit da56c949261d462452a68cf05bfc645445bee830 tree a45a6982066ffb357b314a88cee63e830e5df9f3 parent 7d95ded91149564100a3181d341361aedcfd5bf5 author David Anders Thu, 21 Sep 2006 22:57:12 +0100 committer Russell King Wed, 27 Sep 2006 09:35:03 +0100 [ARM] 3854/2: S3C2410 - add machine type for AML M5900 series (resubmitted) Add the AML M5900 series to the list of supported machines in the arch/arm/mach-s3c2410 directory. This ensures the core peripherals are registered, and the timer source is configured. if selected in the kernel config the framebuffer registers and mtd partition information are set. This version of the patch has corrected formatting and removed the legacy procfs directory entry. Signed-off-by: David Anders Signed-off-by: Russell King commit ecd9561687a0952a96a0a705f618e59cb6f3189b tree ec73915c651734e9d5bcf5baf0824a20e814577f parent 7dec62e96b38e6c62490ea5dc6939dd8d680a8b8 author Paul Mundt Wed, 27 Sep 2006 17:32:30 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:32:30 +0900 serial: Add SERIAL_SH_SCI_NR_UARTS for sh-sci. sh-sci needs to be able to define its number of ports to support, we do this with a config option, like most other ports do. Signed-off-by: Paul Mundt commit 7dec62e96b38e6c62490ea5dc6939dd8d680a8b8 tree 57d3173abbafb5093cb639362358f788d57de2f1 parent 237b98f61d02499ee248ae33cad616d950c15f49 author Paul Mundt Wed, 27 Sep 2006 17:30:35 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:30:35 +0900 sh: Add setup code for various CPU subtypes. This adds some simple setup code for most of the CPU subtypes, primarily simple platform device registration. Signed-off-by: Paul Mundt commit 237b98f61d02499ee248ae33cad616d950c15f49 tree 408ca46458c3399e7e9ff82110a794149f2e670a parent 9f23e7e94f7083d9705b595cbd6b30972be6fbbb author Paul Mundt Wed, 27 Sep 2006 17:28:20 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:28:20 +0900 sh: sem2mutex conversion for clock framework. Simple sem2mutex conversion. Signed-off-by: Paul Mundt commit 9f23e7e94f7083d9705b595cbd6b30972be6fbbb tree 5fc6e90a9e361dca2e56bb03327078a2eb88cb4c parent a2d1a5fae6296c2a3ac1aaa982c95464c46c0585 author Paul Mundt Wed, 27 Sep 2006 17:27:00 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:27:00 +0900 sh: pselect6 and ppoll, along with signal trampoline rework. This implements support for ppoll() and pselect6().. Signed-off-by: Paul Mundt commit a2d1a5fae6296c2a3ac1aaa982c95464c46c0585 tree fa704906d368f6ab0f03b164d5071992a4029a9a parent 0b8929354cdeddb17e81bfda903812c9adfd0b67 author Yoshinori Sato Wed, 27 Sep 2006 17:25:07 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:25:07 +0900 sh: __addr_ok() and other misc nommu fixups. A few more outstanding nommu fixups.. Signed-off-by: Yoshinori Sato Signed-off-by: Paul Mundt commit 0b8929354cdeddb17e81bfda903812c9adfd0b67 tree ff3a450e750752bfde6afe414ee0c1b0eea3ac8e parent e96636ccfa373a00a0ee0558e1971baa7856d8b5 author Paul Mundt Wed, 27 Sep 2006 17:22:49 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:22:49 +0900 sh: __NR_restart_syscall support. This implements support for __NR_restart_syscall. Signed-off-by: Paul Mundt commit e96636ccfa373a00a0ee0558e1971baa7856d8b5 tree c4f98b1c92f30f17c8c0d36419977789fe537aab parent e7f93a355c7e32c26eab8910cf53b7506bb046c5 author Yoshinori Sato Wed, 27 Sep 2006 17:21:02 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:21:02 +0900 sh: Various nommu fixes. This fixes up some of the various outstanding nommu bugs on SH. Signed-off-by: Yoshinori Sato Signed-off-by: Paul Mundt commit e7f93a355c7e32c26eab8910cf53b7506bb046c5 tree 0f4f2e60423a2c4c70134e6734b57b97e277af65 parent adf1890b0cd63f754b2171b73e4d845c0950d407 author Paul Mundt Wed, 27 Sep 2006 17:19:13 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:19:13 +0900 sh: Make PAGE_OFFSET configurable. nommu needs to be able to shift PAGE_OFFSET, so we switch it to a non-user-visible CONFIG_PAGE_OFFSET and use that in the few places where it matters. Signed-off-by: Paul Mundt commit adf1890b0cd63f754b2171b73e4d845c0950d407 tree 059ae908bdbbc6b4e55b7faa740b786664c07007 parent 4b565680d16300acab0ff167e24f0ea289a6bd5d author Paul Mundt Wed, 27 Sep 2006 17:17:27 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:17:27 +0900 sh: Move voyagergx_reg.h to a more sensible place. Other boards require this as well, so move it out of the rts7751r2d directory. Signed-off-by: Paul Mundt commit 4b565680d16300acab0ff167e24f0ea289a6bd5d tree d233188a29c0a0ccfdf72c84899e926df2fc2ba8 parent 317a6104a99f87c0b35c0d9f19ec23ee7429b33e author Takashi YOSHII Wed, 27 Sep 2006 17:15:32 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:15:32 +0900 sh: math-emu support This implements initial math-emu support, aimed primarily at SH-3. Signed-off-by: Takashi YOSHII Signed-off-by: Paul Mundt commit 317a6104a99f87c0b35c0d9f19ec23ee7429b33e tree 3925cb052b27e175e1ecc17dfea1fd241b87673b parent af514ca7d27b31e3c278e1331f0ebdb3ad385a90 author Paul Mundt Wed, 27 Sep 2006 17:13:19 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:13:19 +0900 rtc: New RTC driver for SuperH On-Chip RTC. This replaces the old SH RTC driver, and allows us to clean quite a lot of things up on the board-specific side. Signed-off-by: Paul Mundt commit af514ca7d27b31e3c278e1331f0ebdb3ad385a90 tree af5444786b8b9251e6a6f011ee71333025bb2c84 parent 2991be725260d6fec11691a6138b9d71de949956 author Paul Mundt Wed, 27 Sep 2006 17:11:32 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:11:32 +0900 sh: Rename rtc_get/set_time() to avoid RTC_CLASS conflict. We have a clash with RTC_CLASS over these names, so we change them.. Signed-off-by: Paul Mundt commit 2991be725260d6fec11691a6138b9d71de949956 tree 407241b126eed902bacba4e02043930c6ce087b4 parent 0f08f338083cc1d68788ccbccc44bd0502fc57ae author Paul Mundt Wed, 27 Sep 2006 17:07:07 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:07:07 +0900 sh: Fixup __strnlen_user() behaviour. Drop TIF_USERSPACE and add addr_limit to the thread_info struct. Subsequently, use that for address checking in strnlen_user() to ward off bogus -EFAULTs. Make __strnlen_user() return 0 on exception, rather than -EFAULT. Signed-off-by: Paul Mundt commit 0f08f338083cc1d68788ccbccc44bd0502fc57ae tree 97c69dbbd63a108a7367644dadedd390a3948f0c parent 9e3043c091819729ecf4fc5063d0a2d0954dfd7f author Paul Mundt Wed, 27 Sep 2006 17:03:56 +0900 committer Paul Mundt Wed, 27 Sep 2006 17:03:56 +0900 sh: More cosmetic cleanups and trivial fixes. Nothing exciting here, just trivial fixes.. Signed-off-by: Paul Mundt commit 9e3043c091819729ecf4fc5063d0a2d0954dfd7f tree ee20330eef54d709d276cc56336b8f71eeaa403a parent e2d1864da5bfa419a108f42c0615f69432b1b876 author Paul Mundt Wed, 27 Sep 2006 16:55:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:55:24 +0900 sh: Fixup TEI IRQ requests in request_dma(). If a channel is not TEI capable, don't try to request_irq().. Signed-off-by: Paul Mundt commit e2d1864da5bfa419a108f42c0615f69432b1b876 tree 2ebd838b7b6cca8d5db7d2991797a5bc9ae1d1ab parent ade2b3f6ed199dc4a7a0be53edf20f9399023640 author Paul Mundt Wed, 27 Sep 2006 16:53:40 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:53:40 +0900 sh: G2 DMA IRQ and residue sampling. This fixes a long-standing FIXME for G2 DMA, where we finally wire up the IRQ handler and allow for sampling remaining bytes while in-flight. Signed-off-by: Paul Mundt commit ade2b3f6ed199dc4a7a0be53edf20f9399023640 tree 839523b6b551e44e1c37669d74d664974d50a3a4 parent a3e61d50dc82475ebca3ff8b18c174c02c5ff511 author Paul Mundt Wed, 27 Sep 2006 16:48:46 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:48:46 +0900 sh: VoyagerGX cleanups and 8250 UART support. This adds the VoyagerGX UART to the RTS7751R2D setup code, and cleans up a few build issues. Signed-off-by: Manuel Lauss Signed-off-by: Paul Mundt commit a3e61d50dc82475ebca3ff8b18c174c02c5ff511 tree d7a39867983b0bca5619cfe7493358e6bde6f3ba parent 959f85f8a3223c116bbe95dd8a9b207790b5d4d3 author Paul Mundt Wed, 27 Sep 2006 16:45:22 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:45:22 +0900 sh: Inhibit mapping PCI apertures through page tables. Inhibit mapping through page tables in __ioremap() for PCI memory apertures on SH7751 and SH7780-style PCI controllers, translation is not possible for these areas. For other users that map a small window in P1/P2 space, ioremap() traps that already, and should never make it to __ioremap(). Signed-off-by: Paul Mundt commit 959f85f8a3223c116bbe95dd8a9b207790b5d4d3 tree e7da9ccf292f860bfa0ff9cc8b2682cd1d6bad4d parent e108b2ca2349f510ce7d7f910eda89f71d710d84 author Paul Mundt Wed, 27 Sep 2006 16:43:28 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:43:28 +0900 sh: Consolidated SH7751/SH7780 PCI support. This cleans up quite a lot of the PCI mess that we currently have, and attempts to consolidate the duplication in the SH7780 and SH7751 PCI controllers. Signed-off-by: Paul Mundt commit ae1f19aeb715098ac06323f279383f3843429d97 tree de2464984fa36157e93145f0daefd9281b996e6a parent fb4633019fd0a871cdf315e1f4082f4c6926af82 author Jeff Garzik Wed, 27 Sep 2006 03:42:37 -0400 committer Jeff Garzik Wed, 27 Sep 2006 03:42:37 -0400 [libata] sata_mv: fix oops by filling in missing hook Only two of three ata_port_operations structs had a ->data_xfer member, which led to, uh, a lack of data xfer. Signed-off-by: Jeff Garzik commit e108b2ca2349f510ce7d7f910eda89f71d710d84 tree b7724e3c2edd0157da9b66d50898fd6c741a61dd parent 56e8d7b5786dc2f7d1f701500f8914fd2c52b111 author Paul Mundt Wed, 27 Sep 2006 16:32:13 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:32:13 +0900 serial: Rework sh-sci for driver model. sh-sci was turning in to an unmaintainable mess, especially with regards to the port list. This cleans it up quite a bit, and switches over to a platform device model where subtypes will register their port list individually in their setup code. Signed-off-by: Paul Mundt commit 56e8d7b5786dc2f7d1f701500f8914fd2c52b111 tree 68654c185bdf5badbddd9698dd14bb0166b9270e parent 2549b3222f588c188674aed0b9a0ef78bbba5c6c author Paul Mundt Wed, 27 Sep 2006 16:24:55 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:24:55 +0900 sh: kgdb stub cleanups. Some kgdb cleanup. Move hexchars/highhex/lowhex to the header, so it can be reused by sh-sci. Also drop silly ctrl_inl/outl() overloading being done by the kgdb stub. Signed-off-by: Paul Mundt commit 2549b3222f588c188674aed0b9a0ef78bbba5c6c tree aba7471cdec193c0d1f27a25505e9195dd612e4b parent 3aa770e7972723f479122cf66b529017d2175289 author Paul Mundt Wed, 27 Sep 2006 16:22:33 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:22:33 +0900 sh: Use generic CONFIG_FRAME_POINTER. We had our own version, which serves no purpose. Simply hook SH in to the generic one. Signed-off-by: Paul Mundt commit 3aa770e7972723f479122cf66b529017d2175289 tree f70d870381cec8034693704e346c53b311db688f parent ef48e8e3498605351f91f195cc9af0ef981b0dde author Andriy Skulysh Wed, 27 Sep 2006 16:20:22 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:20:22 +0900 sh: APM/PM support. This adds some simple PM stubs and the basic APM interfaces, primarily for use by hp6xx, where the existing userland expects it. Signed-off-by: Andriy Skulysh Signed-off-by: Paul Mundt commit ef48e8e3498605351f91f195cc9af0ef981b0dde tree f2fc373ebcc3569687b06005578c9bf1389e0a5b parent 801e045860586b6a4ca21b3269d111dfca7ef17b author Paul Mundt Wed, 27 Sep 2006 16:17:17 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:17:17 +0900 sh: Free up some and document PTEL flags. Drop _PAGE_SHARED/_PAGE_U0_SHARED and document Linux PTE encodings in the PTEL value. Preserve the swap cache entry encoding semantics for now, though it will need rework to free up _PAGE_WT from _PAGE_FILE. Signed-off-by: Paul Mundt commit 801e045860586b6a4ca21b3269d111dfca7ef17b tree ccede03d32cb9c5e559eec7bd9cabdeaf54529a3 parent a328ff9a7e3109919f59ce1903a31f8b2e6339e5 author Paul Mundt Wed, 27 Sep 2006 16:15:48 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:15:48 +0900 sh: Update new-machine.txt so it's more accurate. This fell behind a bit, get it updated so the documentation has something in common with reality. Signed-off-by: Paul Mundt commit a328ff9a7e3109919f59ce1903a31f8b2e6339e5 tree 5533f6f8618397376731006d9ff61b37802dfc67 parent 848dd265947c976b6340027088c090ff7f0a0b8b author Paul Mundt Wed, 27 Sep 2006 16:14:54 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:14:54 +0900 sh: SE73180 updates for IRQ changes. SE73180 can use the generic support, we just need to wire up the IRQ demuxing. Signed-off-by: Paul Mundt commit 848dd265947c976b6340027088c090ff7f0a0b8b tree 35346ff37561c9bce38279d2efe27abc51120ea7 parent ae31825e63e11188d96ad9c4d2d5d4e0fc798a75 author Andriy Skulysh Wed, 27 Sep 2006 16:09:59 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:09:59 +0900 video: Update header location in hp680_bl. Trivial build fix. Signed-off-by: Andriy Skulysh Signed-off-by: Paul Mundt commit ae31825e63e11188d96ad9c4d2d5d4e0fc798a75 tree 0f42d023f7bda00cfb9d1cbcc8e245f69dcdf8c4 parent 00b3aa3fc9bd827caaa859de90d9eba831b77d40 author Paul Mundt Wed, 27 Sep 2006 16:08:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:08:24 +0900 sh: Make O= builds work again. Some of the paths were a bit broken, fix it up. Signed-off-by: Paul Mundt commit 00b3aa3fc9bd827caaa859de90d9eba831b77d40 tree 303ec8e19c9289b1a54d2c67005ac44f68adcd9d parent bc8bff63bacea47561de34e04a17c79846ecfe91 author Paul Mundt Wed, 27 Sep 2006 16:05:56 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:05:56 +0900 sh: xchg()/__xchg() always_inline fixes for gcc4. Make __xchg() a macro, so that gcc 4.0 doesn't blow up thanks to always_inline.. Signed-off-by: Paul Mundt commit bc8bff63bacea47561de34e04a17c79846ecfe91 tree b19925258503cf40a704b1eab06c9da4b6072889 parent d2b06a8b17f96b75fa1e8e7765cb900c99fd80fb author Paul Mundt Wed, 27 Sep 2006 16:04:51 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:04:51 +0900 sh: Drop incdir rule for SE7751. No longer needed.. Signed-off-by: Paul Mundt commit d2b06a8b17f96b75fa1e8e7765cb900c99fd80fb tree f8c962eccc54a46245d6a8fe753bccf4aa7d0b15 parent f1517494407b1f1ca0063a756cc30d75e96d433c author Paul Mundt Wed, 27 Sep 2006 16:03:25 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:03:25 +0900 video: Update pvr2fb for sq API changes. With the store queue API rework, we need to change the in-kernel users too. Signed-off-by: Paul Mundt commit f1517494407b1f1ca0063a756cc30d75e96d433c tree fe7827210e76750687de601e6b0695a4e4e16fa7 parent 5283ecb5ccbdb90d49fce6488d3944bba63a591c author Paul Mundt Wed, 27 Sep 2006 16:01:12 +0900 committer Paul Mundt Wed, 27 Sep 2006 16:01:12 +0900 sh: Cleanup and document register bank usage. Initial register bank cleanup. Make SR.RB configurable, and add some preliminary documentation on register bank usage within the kernel. Signed-off-by: Paul Mundt commit 5283ecb5ccbdb90d49fce6488d3944bba63a591c tree a58e20bd532fa5f933d099bb7b5dd0637b581d33 parent d7c30c682a278abe1a52db83f69efec1a9d8f8c2 author Paul Mundt Wed, 27 Sep 2006 15:59:17 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:59:17 +0900 sh: Add support for R7780RP and R7780MP boards. This adds support for the Renesas SH7780 development boards, R7780RP and R7780MP. Signed-off-by: Paul Mundt commit d7c30c682a278abe1a52db83f69efec1a9d8f8c2 tree 48918e531904edb05944b1e097c386b87e746a24 parent 373e68b5472d421cbd2703e7a77caf053f78c005 author Paul Mundt Wed, 27 Sep 2006 15:49:57 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:49:57 +0900 sh: Store Queue API rework. Rewrite the store queue API for a per-cpu interface in the driver model. The old miscdevice is dropped, due to TASK_SIZE limitations, and no one was using it anyways. Carve up and allocate store queue space with a bitmap, back sq mapping objects with a slab cache, and let userspace worry about its own prefetching. Signed-off-by: Paul Mundt commit 373e68b5472d421cbd2703e7a77caf053f78c005 tree 6fed51fdf1b89f80a1ec9ea4aab285c1af649945 parent f647d33f879d258de4ab2559975bd6eebda2033e author Paul Mundt Wed, 27 Sep 2006 15:41:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:41:24 +0900 sh: Board updates for I/O routine rework. This updates the various boards for some of the recent I/O routine updates. Signed-off-by: Paul Mundt commit f647d33f879d258de4ab2559975bd6eebda2033e tree 15364f27dea1203004ae7016c676332032c17a7d parent c470662854ff94d44bf8c192cefac3efa33db676 author Paul Mundt Wed, 27 Sep 2006 15:30:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:30:24 +0900 sh: Fix split ptlock for user mappings in __do_page_fault(). There was a bug that got introduced when the split ptlock changes went in where mm could be unintialized for user mappings, this fixes it up.. Signed-off-by: Paul Mundt commit c470662854ff94d44bf8c192cefac3efa33db676 tree a54b42ea6bec224f8a211cd44355d2ee05d29de6 parent d7cdc9e8ac82c43fdcd4fde6b5b53d2dcba7f707 author Paul Mundt Wed, 27 Sep 2006 15:29:18 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:29:18 +0900 sh: Fixup SHMLBA definition for SH7705. We need this set to something sensible anywhere were we have an aliasing dcache.. Signed-off-by: Paul Mundt commit d7cdc9e8ac82c43fdcd4fde6b5b53d2dcba7f707 tree 2489b1831a1b5818af0927e4d3c8933bf7d05f31 parent 26ff6c11ef38e08990c1e417c299246e6ab18ff7 author Paul Mundt Wed, 27 Sep 2006 15:16:42 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:16:42 +0900 sh: ioremap() overhaul. ioremap() overhaul. Add support for transparent PMB mapping, get rid of p3_ioremap(), etc. Also drop ioremap() and iounmap() routines from the machvec, as everyone can use the generic ioremap() API instead. For PCI memory apertures and other special cases, use the pci_iomap() API, as boards are already required to get the mapping right there. Signed-off-by: Paul Mundt commit 715a0ecc29c850d2b2f76e1803d3f22cd5a0ac0d tree e174bca291d145b4b2128b9dd59b6e73e596b457 parent e531dcc568ca326428158e9574b8560572b8ae28 author David S. Miller Tue, 26 Sep 2006 23:14:21 -0700 committer David S. Miller Tue, 26 Sep 2006 23:14:21 -0700 [SPARC64]: Kill bogus check from bootmem_init(). There is an ancient and totally incorrect sanity check being done on the ramdisk location. The check assumes that the kernel is always loaded to physical address zero, which is wrong. It was trying to validate the ramdisk value by saying that if it fell within the kernel image address range it must be wrong. Anyways, kill this because it actually creates problems. The 'ramdisk_image' should always be adjusted down by KERNBASE. SILO can easily put the ramdisk in a location which causes this test to trigger, breaking things. [ Based almost entirely upon a patch from Ben Collins. ] Signed-off-by: David S. Miller commit 26ff6c11ef38e08990c1e417c299246e6ab18ff7 tree ebd37fd0270b7c7dfe8474a046663db78fcdb1ab parent 9359e757709a211040e4b0151eae69248e7c6eca author Paul Mundt Wed, 27 Sep 2006 15:13:36 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:13:36 +0900 sh: page table alloc cleanups and page fault optimizations. Cleanup of page table allocators, using generic folded PMD and PUD helpers. TLB flushing operations are moved to a more sensible spot. The page fault handler is also optimized slightly, we no longer waste cycles on IRQ disabling for flushing of the page from the ITLB, since we're already under CLI protection by the initial exception handler. Signed-off-by: Paul Mundt commit e531dcc568ca326428158e9574b8560572b8ae28 tree cab0d88c6ebf6847224f7a1383a84fc359dfd4d0 parent b278240839e20fa9384ea430df463b367b90e04e author David S. Miller Tue, 26 Sep 2006 23:10:01 -0700 committer David S. Miller Tue, 26 Sep 2006 23:10:01 -0700 [SPARC64]: Update defconfig. Signed-off-by: David S. Miller commit 9359e757709a211040e4b0151eae69248e7c6eca tree 0a12af716001c2bcd2b07813ea33a3a89d892be3 parent 0c7b1df69c62209db19d1279dd882b37c04c5c2f author Paul Mundt Wed, 27 Sep 2006 15:09:48 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:09:48 +0900 sh: export clear_user_page() for the modules that need it. Some modules seem to need this, so we export it.. Signed-off-by: Paul Mundt commit 0c7b1df69c62209db19d1279dd882b37c04c5c2f tree 48e8f95b2ec02173ad2e930325e21e4509a08d19 parent a09749dd86e9e93de10f12ab4ce4e90815b5650a author Paul Mundt Wed, 27 Sep 2006 15:08:07 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:08:07 +0900 sh: SH-4A Privileged Space Mapping Buffer (PMB) support. Add support for 32-bit physical addressing through the SH-4A Privileged Space Mapping Buffer (PMB). Signed-off-by: Paul Mundt commit a09749dd86e9e93de10f12ab4ce4e90815b5650a tree 013d7deabb31dea70063a2acdc50ee86fb3c7b9a parent b7e108ee63624176af85b97d4d80bef6fe099395 author Jamie Lenehan Wed, 27 Sep 2006 15:05:39 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:05:39 +0900 sh: Titan board support. Add support for the titan board. Signed-off-by: Jamie Lenehan Signed-off-by: Paul Mundt commit b7e108ee63624176af85b97d4d80bef6fe099395 tree 747d9a2e760c6aa955dd4f228caaf433228ce5a0 parent 298476220d1f793ca0ac6c9e5dc817e1ad3e9851 author Paul Mundt Wed, 27 Sep 2006 15:00:04 +0900 committer Paul Mundt Wed, 27 Sep 2006 15:00:04 +0900 sh: BSS init bugfix and barrier in entry point. A synco is needed before we jump to start_kernel(). While we're at it, also move the sh_cpu_init() jump until after we've zeroed BSS, as this has caused some undesirable results in sh_cpu_init(). Signed-off-by: Paul Mundt commit 298476220d1f793ca0ac6c9e5dc817e1ad3e9851 tree 59cff744ad1837844cb7a5a43a0623d39058fb44 parent 749cf486920bf53f16e6a6889d9635a91ffb6c82 author Paul Mundt Wed, 27 Sep 2006 14:57:44 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:57:44 +0900 sh: Add control register barriers. Currently when making changes to control registers, we typically need some time for changes to take effect (8 nops, generally). However, for sh4a we simply need to do an icbi.. This is a simple patch for implementing a general purpose ctrl_barrier() which functions as a control register write barrier. There's some additional documentation in the patch itself, but it's pretty self explanatory. There were also some places where we were not doing the barrier, which didn't seem to have any adverse effects on legacy parts, but certainly did on sh4a. It's safer to have the barrier in place for legacy parts as well in these cases, though this does make flush_tlb_all() more expensive (by an order of 8 nops). We can ifdef around the flush_tlb_all() case for now if it's clear that all legacy parts won't have a problem with this. Signed-off-by: Paul Mundt commit 749cf486920bf53f16e6a6889d9635a91ffb6c82 tree ff288990effd0fe5bf980d6c27af5dc9ad11bc3d parent 94c0fa520cc169ccf661e9c03b5b95f74d1520b8 author Paul Mundt Wed, 27 Sep 2006 14:55:41 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:55:41 +0900 sh: Add flag for MMU PTEA capability. Add CPU_HAS_PTEA, refactor some of the cpu flag settings. Signed-off-by: Paul Mundt commit 94c0fa520cc169ccf661e9c03b5b95f74d1520b8 tree 2fc73ea11df222998a363083e03ef6c9e8066b28 parent 634bf4f69b925950ddb09ef99ad7516a449a4333 author kogiidena Wed, 27 Sep 2006 14:53:35 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:53:35 +0900 sh: landisk board support. This adds support for the I-O DATA Landisk. Signed-off-by: kogiidena Signed-off-by: Paul Mundt commit 634bf4f69b925950ddb09ef99ad7516a449a4333 tree 2a43f2602bf06c7e4430452bcd9f5bc4ab851532 parent 24ab54cb49c099d691c68fdd1ac6a0c2f5177da4 author Paul Mundt Wed, 27 Sep 2006 14:48:09 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:48:09 +0900 sh: Fix libata build. Drop virt_to_bus() from sg_dma_address() so libata builds. While we're at it, move sg_dma_address() and sg_dma_len() from pci.h to scatterlist.h. Signed-off-by: Paul Mundt commit 24ab54cb49c099d691c68fdd1ac6a0c2f5177da4 tree a75607c77faadb28a994a056469165386406a8e4 parent 8b395265f81817385f12e62f03f795efb732a445 author Ollie Wild Wed, 27 Sep 2006 14:46:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:46:24 +0900 sh: Fix TCP payload csum bug in csum_partial_copy_generic(). There's a bug in the Hitachi SuperH csum_partial_copy_generic() implementation. If the supplied length is 1 (and several alignment conditions are met), the function immediately branches to label 4. However, the assembly at label 4 expects the length to be stored in register r2. Since this has not occurred, subsequent behavior is undefined. This can cause bad payload checksums in TCP connections. I've fixed the problem by initializing register r2 prior to the branch instruction. Signed-off-by: Ollie Wild Signed-off-by: Paul Mundt commit 8b395265f81817385f12e62f03f795efb732a445 tree 17f6b1f4f0e09330f108f0a9ffc5b30aa9166da1 parent 75c92acdd5b19a5e3536ed670e1122d73c635b4a author Paul Mundt Wed, 27 Sep 2006 14:38:02 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:38:02 +0900 sh: Fix fatal oops in copy_user_page() on sh4a (SH7780). We had a pretty interesting oops happening, where copy_user_page() was down()'ing p3map_sem[] with a bogus offset (particularly, an offset that hadn't been initialized with sema_init(), due to the mismatch between cpu_data->dcache.n_aliases and what was assumed based off of the old CACHE_ALIAS value). Luckily, spinlock debugging caught this for us, and so we drop the old hardcoded CACHE_ALIAS for sh4 completely and rely on the run-time probed cpu_data->dcache.alias_mask. This in turn gets the p3map_sem[] index right, and everything works again. While we're at it, also convert to 4-level page tables.. Signed-off-by: Paul Mundt commit 75c92acdd5b19a5e3536ed670e1122d73c635b4a tree 9925f84c4c286c5ad52af61bb6dec672722c1a5e parent ef9a1d4c0c383f75710f6adf2abb8cc264877e2c author Paul Mundt Wed, 27 Sep 2006 14:36:44 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:36:44 +0900 sh: Wire up new syscalls. The syscall table has lagged behind a bit, wire up the new ones.. Signed-off-by: Paul Mundt commit ef9a1d4c0c383f75710f6adf2abb8cc264877e2c tree 75a0694ae808dbe1e1597d146124722cf25c70e0 parent 5b19c9081fbd0882c936ec087bf9055a20251dec author Alexey Dobriyan Wed, 27 Sep 2006 14:32:57 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:32:57 +0900 sh: remove cpu_online() definition from It's defined in and log is horribly flooded by "redefined" messages. Signed-off-by: Alexey Dobriyan Signed-off-by: Paul Mundt commit 5b19c9081fbd0882c936ec087bf9055a20251dec tree 3bfb5779699b485fcf524ea34dd227e42f74ae78 parent 555ef1963029d19d2367acd09f6b9a6a0056f217 author Paul Mundt Wed, 27 Sep 2006 14:31:40 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:31:40 +0900 sh: Support for SH7770/SH7780 CPU subtypes. Merge support for SH7770 and SH7780 SH-4A subtypes. Signed-off-by: Paul Mundt commit 555ef1963029d19d2367acd09f6b9a6a0056f217 tree 617ae936d0379362c7156066d6b8dbc882b5e54c parent a80fd21e52cc09ff1e4d36de5781173a5b87b2dc author Paul Mundt Wed, 27 Sep 2006 14:30:11 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:30:11 +0900 sh: Add SH7750S/SH7091 rules for SH7750 oprofile driver. Update oprofile build rules for additional subtypes, particularly SH7750S/SH7091. Signed-off-by: Paul Mundt commit a80fd21e52cc09ff1e4d36de5781173a5b87b2dc tree 9e4ee0efc4809209f5bb9c9a288a6a1cf43c060e parent e86d6b66f5b38680746b2cb71186d90af17f150f author Paul Mundt Wed, 27 Sep 2006 14:26:53 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:26:53 +0900 sh: earlyprintk= support and cleanups. Allow multiple early printk consoles via earlyprintk=. With this change earlyprintk is no longer enabled by default, it must be specified on the kernel command line. Optionally with ,keep to prevent unreg by tty_io. Signed-off-by: Paul Mundt commit e86d6b66f5b38680746b2cb71186d90af17f150f tree aa1074d77c65c578ece46f33a112955e0b0081e0 parent e7be853df79fe8ae08ba7d933bd21e1dbb0db7bc author Paul Mundt Wed, 27 Sep 2006 14:20:54 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:20:54 +0900 sh: prefetch()/prefetchw() support. SH-2/3/4 are able to prefetch, add support for it.. Signed-off-by: Paul Mundt commit e7be853df79fe8ae08ba7d933bd21e1dbb0db7bc tree 0285f786e261017e42e05c080978e1c4b8d55f5d parent 73388cc7c648861742e584a97fbffed16afc7dc3 author Toshinobu Sugioka Wed, 27 Sep 2006 14:13:14 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:13:14 +0900 sh: Fix a sign extension bug in memset(). Minor sign-extension bug in SH-specific memset().. Signed-off-by: Toshinobu Sugioka Signed-off-by: Paul Mundt commit 73388cc7c648861742e584a97fbffed16afc7dc3 tree 557a675be8c5ecf8d48e430623f918d14802bc6e parent b638d0b921dc95229af0dfd09cd24850336a2f75 author Paul Mundt Wed, 27 Sep 2006 14:11:33 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:11:33 +0900 sh: Refactor PRR masking to catch newer SH7760 cuts. Newer SH7760 cuts have a range of acceptable PRR values.. Signed-off-by: Paul Mundt commit b638d0b921dc95229af0dfd09cd24850336a2f75 tree 0ef34527a47b22421fb92ba2141052fecfe36482 parent fdfc74f9fcebdda14609159d5010b758a9409acf author Richard Curnow Wed, 27 Sep 2006 14:09:26 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:09:26 +0900 sh: Optimized cache handling for SH-4/SH-4A caches. This reworks some of the SH-4 cache handling code to more easily accomodate newer-style caches (particularly for the > direct-mapped case), as well as optimizing some of the old code. Signed-off-by: Richard Curnow Signed-off-by: Paul Mundt commit fdfc74f9fcebdda14609159d5010b758a9409acf tree 191532cb703383768cc198a41503e412578921bb parent 36efc35447154317f9ffc5163a1793b5f7ff3de1 author Paul Mundt Wed, 27 Sep 2006 14:05:52 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:05:52 +0900 sh: Support for SH-4A memory barriers. SH-4A supports 'synco' as a barrier, sprinkle it around the cache ops as necessary.. Signed-off-by: Paul Mundt commit 36efc35447154317f9ffc5163a1793b5f7ff3de1 tree e90017bb7caffa93994c05897e4cb1bbcc278de1 parent e8fb67f8e05bb1f4c07c3585967cfc6d44822ab0 author Paul Mundt Wed, 27 Sep 2006 14:02:09 +0900 committer Paul Mundt Wed, 27 Sep 2006 14:02:09 +0900 sh: RTS7751R2D board updates. More of the same, trivial cleanups, and moving options to their own board-specific Kconfig. Signed-off-by: Paul Mundt commit e8fb67f8e05bb1f4c07c3585967cfc6d44822ab0 tree 9665b58f9ca86cf577b308a29b9beb4d544fb200 parent 7e27b9b720e74f471f0f0880c56578d07206c0af author Paul Mundt Wed, 27 Sep 2006 13:56:28 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:56:28 +0900 sh: HS7751RVoIP board updates. Various cleanups for HS7751RVoIP. Mostly just getting rid of the old mach.c and splitting codec configuration in to its own Kconfig. Signed-off-by: Paul Mundt commit 7e27b9b720e74f471f0f0880c56578d07206c0af tree c99bfe14282117a933a78548569a78b2376338c9 parent 048839dc548a5315b733993dfc7d082e1e848061 author Andriy Skulysh Wed, 27 Sep 2006 13:48:32 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:48:32 +0900 sound: SH DAC audio driver updates. Update the SH DAC audio driver for the clock framework. Signed-off-by: Andriy Skulysh Signed-off-by: Paul Mundt commit 048839dc548a5315b733993dfc7d082e1e848061 tree 634b0d46a9e20ea65d579e7daeb7bbd476af13ea parent 6d75e650f1d0d59fd97c7629f0903ef18e8dfb7b author Andriy Skulysh Wed, 27 Sep 2006 13:47:22 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:47:22 +0900 video: hitfb suspend/resume and updates. suspend/resume support for hitfb, as well as some other minor cleanups. Signed-off-by: Andriy Skulysh Signed-off-by: Paul Mundt commit 6d75e650f1d0d59fd97c7629f0903ef18e8dfb7b tree 71753efdb503c351079e7ece10229a87cf263901 parent d95fb13c960ae19e9fd4a95807eb68fa20caf537 author Paul Mundt Wed, 27 Sep 2006 13:42:57 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:42:57 +0900 sh: Move hd64461.h to a more sensible location. With the I/O rework for hd64461 we're down to a single header, so move it by itself and get rid of the directory. Signed-off-by: Paul Mundt commit d95fb13c960ae19e9fd4a95807eb68fa20caf537 tree 73fda6890849396586afad1590a40e2adcfd7247 parent 3530570fd43632b60b00e5ea17519d2bd69d1434 author Paul Mundt Wed, 27 Sep 2006 13:30:08 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:30:08 +0900 sh: Fixup TMU_TOCR definition for SH7300. SH7300 has a different TMU_TOCR, make the TMU code work again. Signed-off-by: Paul Mundt commit 3530570fd43632b60b00e5ea17519d2bd69d1434 tree 47b2199a54cb013f60024892649b650abb0cc669 parent 5c930e8cbfaa9dfdf9fa082fd891c6e3ab6ef2fc author Paul Mundt Wed, 27 Sep 2006 13:28:23 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:28:23 +0900 sh: Kill off dead code for SE and SystemH boards. Some of these have suffered some bitrot, and so there is some degree of dead code that has been left sitting around, clean it up.. Signed-off-by: Paul Mundt commit 5c930e8cbfaa9dfdf9fa082fd891c6e3ab6ef2fc tree 0b66a76ff83bdc97a8f84944d539bf9eab250a7e parent 3f787fe2e077ecfe43ad9ad56f12a8e21cffafc3 author Paul Mundt Wed, 27 Sep 2006 13:20:22 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:20:22 +0900 video: Disable vgacon for SuperH. We don't support this on SH, so just disable it.. Signed-off-by: Paul Mundt commit 3f787fe2e077ecfe43ad9ad56f12a8e21cffafc3 tree 69c3abcc67137503f17b8535b854578c3aac394b parent 4bcac20a7a01d49dffb5e88a8140efa34927c383 author Paul Mundt Wed, 27 Sep 2006 13:11:57 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:11:57 +0900 sh: hugetlb updates. For some of the larger sizes we permitted spanning pages across several PTEs, but this turned out to not be generally useful. This reverts the sh hugetlbpage interface to something more sensible using huge pages at single PTE granularity. Signed-off-by: Paul Mundt commit 4bcac20a7a01d49dffb5e88a8140efa34927c383 tree c931d2d1ef979b431f297265ea386083e13aeefa parent e4c2cfee5d5cf3e4c16b423be23551aeddf2717b author Andriy Skulysh Wed, 27 Sep 2006 13:07:38 +0900 committer Paul Mundt Wed, 27 Sep 2006 13:07:38 +0900 sh: hp6xx mach-type cleanups. Some minor cleanups for the updated consolidated hp6xx mach-type. Signed-off-by: Andriy Skulysh Signed-off-by: Paul Mundt commit e4c2cfee5d5cf3e4c16b423be23551aeddf2717b tree 656b3feabfb595448b04f4111ea82f6e395d1e0a parent a56d276c05a80ce727902076a3b4c6247705e2df author Paul Mundt Wed, 27 Sep 2006 12:31:01 +0900 committer Paul Mundt Wed, 27 Sep 2006 12:31:01 +0900 sh: Various cosmetic cleanups. We had quite a bit of whitespace damage, clean most of it up.. Signed-off-by: Stuart Menefy Signed-off-by: Arthur Othieno Signed-off-by: Paul Mundt commit 7f1be8924791535c5fdc6749d1f119e141baa122 tree 195e61a5bd40e3d01abc56f3355b04d34da0d476 parent 0497c8ca282915a1c36d51db33fbf2629d7346f3 author rafalbilski@interia.pl Sun, 24 Sep 2006 20:28:13 +0200 committer Dave Jones Tue, 26 Sep 2006 23:12:02 -0400 [CPUFREQ] Longhaul - Disable arbiter CLE266 Please ignore previous message. This patch is adding support for CPU connected to CLE266 chipset. For older CPU this is only way. For "Powersaver" processor this way will be used if ACPI C3 isn't supported. I have tested it. It seems to work exacly like ACPI. But it is less safe. On CLE266 chipset port 0x22 is blocking processor access to PCI bus too. Signed-off-by: Rafa³ Bilski Signed-off-by: Dave Jones commit 7357db1209f27210f97b2a9dd22177f1886a1198 tree bd02a20804f36dfe87418b0fee3267d1d021b6ac parent b278240839e20fa9384ea430df463b367b90e04e author Alan Cox Tue, 26 Sep 2006 17:56:55 +0100 committer Venkatesh Pallipadi Tue, 26 Sep 2006 23:05:55 -0400 [AGPGART] Use pci_get_slot not pci_find_slot Signed-off-by: Alan Cox Signed-off-by: Dave Jones commit 0497c8ca282915a1c36d51db33fbf2629d7346f3 tree 3b0908351be488ed0091a35c1f0fe43d1d20a48a parent 0e37b159aa7427bf311487e3ea03d8aa5ff5956e author Venkatesh Pallipadi Mon, 25 Sep 2006 11:23:32 -0700 committer Venkatesh Pallipadi Tue, 26 Sep 2006 23:02:45 -0400 [CPUFREQ] Fix section mismatch warning Make the sections proper and get rid of section mismatch warnings. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Dave Jones commit 0e37b159aa7427bf311487e3ea03d8aa5ff5956e tree c337e1614689b65bd3af35af6c40b61c9b60de29 parent b278240839e20fa9384ea430df463b367b90e04e author Dave Jones Tue, 26 Sep 2006 23:02:34 -0400 committer Venkatesh Pallipadi Tue, 26 Sep 2006 23:02:34 -0400 [CPUFREQ] Fix cut-n-paste bug in suspend printk Signed-off-by: Dave Jones commit a56d276c05a80ce727902076a3b4c6247705e2df tree ad4acaf463477f66dd4734c6c7210268114bb29f parent 50e98e72e459e43b6b9a5449e35bb6fc54e21149 author Paul Mundt Wed, 27 Sep 2006 11:43:24 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:43:24 +0900 sh: Make hs7751rvoip/rts7751r2d use pm_power_off. These were previously sprinkled in machine_power_off(), though missed being updated when the rest of the boards switched over. Signed-off-by: Paul Mundt commit 50e98e72e459e43b6b9a5449e35bb6fc54e21149 tree 7f807f70e884721535d56857a71d599ade6be9c4 parent 6ae5e8d7598ce01ac0e7dab1b89894c7386a2e61 author Paul Mundt Wed, 27 Sep 2006 11:40:05 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:40:05 +0900 sh: Kill off the .stack section. We had a special .stack section in the ld script that was being used to position r15 initially. This is nonsensical, as we can just use a THREAD_SIZE offset from the init_thread_union instead (as every other arch does). Signed-off-by: Paul Mundt commit 6ae5e8d7598ce01ac0e7dab1b89894c7386a2e61 tree 03061d388b9cee2dc8140afe3d9fca71f75c4268 parent 1c5f8f85df96dd7c17d63eed2d7da18b3ad00b6d author Paul Mundt Wed, 27 Sep 2006 11:37:33 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:37:33 +0900 sh: Fix kGDB NMI handling. in_nmi shifted down a few labels, so we were inadvertently clearing the lower byte of do_syscall_trace, badness ensues. Signed-off-by: Paul Mundt commit 1c5f8f85df96dd7c17d63eed2d7da18b3ad00b6d tree c207fba027e33ada37d5e043528922241d024626 parent 765ae317ce030217af556dc46bec238dab15091e author Paul Mundt Wed, 27 Sep 2006 11:36:10 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:36:10 +0900 sh: Move syscall table in to syscall.S. Move the syscall table in to its own file, as per sh64. The entry.S bits will end up being considerably different in the sh2/sh2a cases, so this lets us keep things in sync somewhat.. Signed-off-by: Paul Mundt commit 765ae317ce030217af556dc46bec238dab15091e tree b2460562ac2d6b2efe9138f3cf6c66b1cab308fa parent a252710fc5b63b24934905ca47ecf661702d7f00 author Paul Mundt Wed, 27 Sep 2006 11:31:32 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:31:32 +0900 sh: Fixup some uninitialized spinlocks. Fix use of uninitialized spinlocks, caught with spinlock debugging.. Signed-off-by: Paul Mundt commit a252710fc5b63b24934905ca47ecf661702d7f00 tree 7fbaddfb977095879f42c68a2a2f115d0e2314ee parent e4e3b5ccd77226c9c4dbb0737106b868dfc182d9 author Paul Mundt Wed, 27 Sep 2006 11:29:55 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:29:55 +0900 sh: flush_cache_range() cleanup and optimizations. flush_cache_range() wasn't page aligning the end of the range, we can't assume that it will always be page aligned, and we ended up getting unaligned faults in some rare call paths. Additionally, we add a small optimization to just purge the dcache entirely if the range is large enough that the page table walking will take longer. We use an arbitrary value of 64 pages for the large range size, as per sh64. Signed-off-by: Paul Mundt commit e4e3b5ccd77226c9c4dbb0737106b868dfc182d9 tree 8401beac23ca03f79c52094ea10139658661769d parent 0c91c1a7012911e4b0180a1c1ae258e2b706f987 author Tom Rini Wed, 27 Sep 2006 11:28:20 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:28:20 +0900 sh: Add a simple cmpxchg(). We didn't have one of these before, a simple implementation borrowed from MIPS as well as the __HAVE_ARCH_CMPXCHG bits. Signed-off-by: Tom Rini Signed-off-by: Paul Mundt commit 0c91c1a7012911e4b0180a1c1ae258e2b706f987 tree f437f4bf763c7257daa2a29a8b37570f678ca9c4 parent b278240839e20fa9384ea430df463b367b90e04e author Paul Mundt Wed, 27 Sep 2006 11:16:20 +0900 committer Paul Mundt Wed, 27 Sep 2006 11:16:20 +0900 sh: Move smc37c93x.h for SystemH board use. SystemH needs this header as well, not just 770x SE. Signed-off-by: Paul Mundt commit c9d86d76c1cdd76d67292ab75643db66573ca7dd tree 29c781cce06b90472cccc3e2cc6668bcb13d9e0b parent aa4f63cad4f70a52adbabb66ac6c8b6072910fdf author Kenji Kaneshige Tue, 19 Sep 2006 17:04:33 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 pciehp - fix wrong return value This patch fixes the problem that trying to enable already enabled slot disables the slot by returning the proper value from pciehp_enable_slot()/pciehp_disable_slot(). Signed-off-by: Kenji Kaneshige Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit aa4f63cad4f70a52adbabb66ac6c8b6072910fdf tree 5e8e6da36c56516922d2087265fd513299fce7df parent 600812ecead0da2e7b6f9e5f5aad68b1ad8ae581 author Satoru Takeuchi Tue, 12 Sep 2006 10:24:14 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 IA64: PCI: dont disable irq which is not enabled This patch prevents pcibios_disable_device() from disabling interrupts of devices which is not enabled. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 600812ecead0da2e7b6f9e5f5aad68b1ad8ae581 tree db714ba8a865f45ccd6d741f0218001f37f27210 parent 23186279658cea6d42a050400d3e79c56cb459b4 author Satoru Takeuchi Tue, 12 Sep 2006 10:22:53 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 acpiphp: add support for ioapic hot-remove This patch adds support for ioapics hot-remove. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 23186279658cea6d42a050400d3e79c56cb459b4 tree 6ee58000baed3cd34af6a47f49f0d6107c3bdf2d parent d5cdb67236dba94496de052c9f9f431e1fc658f4 author Satoru Takeuchi Tue, 12 Sep 2006 10:21:44 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 PCI: assign ioapic resource at hotplug We need to assign resources to ioapics being hot-added. This patch changes pbus_assign_resources_sorted() to assign resources if the ioapic has no assigned resources. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit d5cdb67236dba94496de052c9f9f431e1fc658f4 tree 7aad7540e86bfd339766c02aba2536c138bd8649 parent 0dad3510ee82bcf8a380b81a2184a664a911ef9c author Satoru Takeuchi Tue, 12 Sep 2006 10:19:00 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 acpiphp: disable bridges Currently acpiphp calls pci_enable_device() against all hot-added bridges, but acpiphp does not call pci_disable_device() against them in hot-remove. So ioapic hot-remove would fail. This patch fixes this issue. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 0dad3510ee82bcf8a380b81a2184a664a911ef9c tree 57a721d57a7cd896a5742730b3d8db04d8568752 parent 24f8aa9b464b73e0553f092b747770940ee0ea54 author Satoru Takeuchi Tue, 12 Sep 2006 10:17:46 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 acpiphp: stop bus device before acpi_bus_trim Contrary to PCI bridge hot-add, we need to follow the sequence below for PCI bridge hot-removal. (1) Stop devices (detach drivers, remove from the global list, etc.) (2) Unbind ACPI node from the devices (remove the _PRT entries) (3) Remove devices (remove from the device list, etc.) This patch fixes acpiphp driver to follow above sequence for P2P bridge hot-removal. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 24f8aa9b464b73e0553f092b747770940ee0ea54 tree e42b0d8d8b57c17da943a5c1cd8748dc8a04880b parent 9b1d19ee86746618a8b43d2aaef8319c01af1514 author Satoru Takeuchi Tue, 12 Sep 2006 10:16:36 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 PCI: add pci_stop_bus_device This patch adds pci_stop_bus_device() which stops a PCI device (detach the driver, remove from the global list and so on) and any children. This is needed for ACPI based PCI-to-PCI bridge hot-remove, and it will be also needed for ACPI based PCI root bridge hot-remove. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 9b1d19ee86746618a8b43d2aaef8319c01af1514 tree 58ee3384f3cf9593fa9f2d6cb624fda3074aa1ac parent b99feebe597f7b8c566048e11dbbd2d6df9abc83 author Satoru Takeuchi Tue, 12 Sep 2006 10:15:10 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 acpiphp: do not initialize existing ioapics Currently acpiphp initializes all ioapics under the bus on which hot-add event occured. It also initializes already working ioapics. This patch fixes this bug. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit b99feebe597f7b8c566048e11dbbd2d6df9abc83 tree 17020088ca4649664c7e020b85096e347502123d parent 287af2fbe902206fabd42ade4e94f77db900083e author Satoru Takeuchi Tue, 12 Sep 2006 10:13:44 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:54 -0700 acpiphp: initialize ioapics before starting devices Currently acpiphp initializes ioapics after starting devices, but ioapics should be initialized before starting devices. This patch fixes this bug. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 287af2fbe902206fabd42ade4e94f77db900083e tree f6d36a63eccab415ba3a917d74cd6476f441e430 parent 753388c2e91c15c12550bb20dda05ce657cfdc3e author Satoru Takeuchi Tue, 12 Sep 2006 10:12:16 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 acpiphp: set hpp values before starting devices Currently acpiphp sets hpp values after starting devices, but the values should be set before starting devices. This patch fixes this bug. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 753388c2e91c15c12550bb20dda05ce657cfdc3e tree f7461592eb9573804e5527df1c51879f558eb34c parent b56a5a23bfecd9cac9187164a9d5f22d287c48b9 author Satoru Takeuchi Wed, 06 Sep 2006 16:47:28 +0900 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI Hotplug: cleanup pcihp skeleton code. Cleanup pcihp skeleton code. Fix some typos and remove some unnecessary blank lines. Signed-off-by: Satoru Takeuchi Signed-off-by: Greg Kroah-Hartman commit b56a5a23bfecd9cac9187164a9d5f22d287c48b9 tree b0c713c6a51edb1491fdf6545a5d2742f2f77630 parent 6d47a5e4c3f8b6458002065d98a9cc6ff90fb597 author Michael S. Tsirkin Mon, 21 Aug 2006 16:22:22 +0300 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI: Restore PCI Express capability registers after PM event Restore PCI Express capability registers after PM event. This includes maxumum MTU for PCI express and other vital data. Signed-off-by: Michael S. Tsirkin Signed-off-by: Greg Kroah-Hartman commit 6d47a5e4c3f8b6458002065d98a9cc6ff90fb597 tree 22a0154151bdaf5651b7aca86d470801f53b86f0 parent 50b0075520a0acba9cabab5203bbce918b966d9a author Adrian Bunk Mon, 14 Aug 2006 23:07:38 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI: drivers/pci/hotplug/acpiphp_glue.c: make a function static Signed-off-by: Adrian Bunk Acked-by: MUNEDA Takahiro Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 50b0075520a0acba9cabab5203bbce918b966d9a tree afb8dfb1ebb24b96754efea260a071ca79241ccd parent b19441af185559118e8247382ea4f2f76ebffc6d author Alan Cox Wed, 16 Aug 2006 17:42:18 +0100 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI: Multiprobe sanitizer There are numerous drivers that can use multithreaded probing but having some kind of global flag as the way to control this makes migration to threaded probing hard and since it enables it everywhere and is almost as likely to cause serious pain as holding a clog dance in a minefield. If we have a pci_driver multithread_probe flag to inherit you can turn it on for one driver at a time. From playing so far however I think we need a different model at the device layer which serializes until the called probe function says "ok you can start another one now". That would need some kind of flag and semaphore plus a helper function. Anyway in the absence of that this is a starting point to usefully play with this stuff Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit b19441af185559118e8247382ea4f2f76ebffc6d tree 5b687d2a0052b38fa5d32abeec75374b4aa8830e parent 660a0e8fdf85f30b1e5f6905a78361476094eb7c author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI: fix __must_check warnings Signed-off-by: Greg Kroah-Hartman commit 660a0e8fdf85f30b1e5f6905a78361476094eb7c tree bbbb3adc62184869713dac5151d5a634ef1160af parent e1b95dc6b1cd02c3625ba3d1d770d095d6a4b313 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI Hotplug: fix __must_check warnings Signed-off-by: Greg Kroah-Hartman commit e1b95dc6b1cd02c3625ba3d1d770d095d6a4b313 tree cfc7777afe5d8153fd106f317274890469241048 parent 4bf3392e0bf55e5aabbd7bbdbc52cc58eb63f837 author Greg Kroah-Hartman Mon, 28 Aug 2006 11:43:25 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 SHPCHP: fix __must_check warnings Cc: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman commit 4bf3392e0bf55e5aabbd7bbdbc52cc58eb63f837 tree 7ba7dbfec7dc8e32c48868fb9b9196e6c934c1eb parent 6c2b374d74857e892080ee726184ec1d15e7d4e4 author Zhang, Yanmin Mon, 31 Jul 2006 15:26:16 +0800 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI-Express AER implemetation: pcie_portdrv error handler Patch 4 implements error handlers for pcie_portdrv. Signed-off-by: Zhang Yanmin Signed-off-by: Greg Kroah-Hartman commit 6c2b374d74857e892080ee726184ec1d15e7d4e4 tree c107532c288bcede80e45ebc3e46292bfaf0cea2 parent 48408157ebf5b2c6dc1e04ba5d258012f6a7f356 author Zhang, Yanmin Mon, 31 Jul 2006 15:21:33 +0800 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:53 -0700 PCI-Express AER implemetation: AER core and aerdriver Patch 3 implements the core part of PCI-Express AER and aerdrv port service driver. When a root port service device is probed, the aerdrv will call request_irq to register irq handler for AER error interrupt. When a device sends an PCI-Express error message to the root port, the root port will trigger an interrupt, by either MSI or IO-APIC, then kernel would run the irq handler. The handler collects root error status register and schedules a work. The work will call the core part to process the error based on its type (Correctable/non-fatal/fatal). As for Correctable errors, the patch chooses to just clear the correctable error status register of the device. As for the non-fatal error, the patch follows generic PCI error handler rules to call the error callback functions of the endpoint's driver. If the device is a bridge, the patch chooses to broadcast the error to downstream devices. As for the fatal error, the patch resets the pci-express link and follows generic PCI error handler rules to call the error callback functions of the endpoint's driver. If the device is a bridge, the patch chooses to broadcast the error to downstream devices. Signed-off-by: Zhang Yanmin Signed-off-by: Greg Kroah-Hartman commit 48408157ebf5b2c6dc1e04ba5d258012f6a7f356 tree fc6bcc0a737a7855c984d524d4b8f09c73a9c5e9 parent 47402400c6496dd114463deb3a2ba2d64055284e author Zhang, Yanmin Mon, 31 Jul 2006 15:18:39 +0800 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 PCI-Express AER implemetation: export pcie_port_bus_type Patch 2 exports pcie_port_bus_type. Signed-off-by: Zhang Yanmin Signed-off-by: Greg Kroah-Hartman commit 47402400c6496dd114463deb3a2ba2d64055284e tree 70547ed6a96270b2de0bdc80a0ec94c96cf21960 parent 20d516602c022997feb24a9f1a806fc986b9e4e8 author Zhang, Yanmin Mon, 31 Jul 2006 15:15:18 +0800 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 PCI-Express AER implemetation: aer howto document PCI-Express AER (Advanced Error Reporting) provides more robust error reporting. The series of patches enable kernel support to AER. The initial patches were written by Tom Long Nguyen. I ported them to the kernel 2.6.18-rc3. Many thanks to Rajesh Shah and Narayanan Chandramouli for their great review comments and testing help. Patch 1 consists of the pciaer-howto.txt document. Signed-off-by: Zhang Yanmin Signed-off-by: Greg Kroah-Hartman commit 20d516602c022997feb24a9f1a806fc986b9e4e8 tree cf74447266832d62cdb38e7ca29532c65848b60e parent 6397c75cbc4d7dbc3d07278b57c82a47dafb21b5 author Randy Dunlap Sat, 08 Jul 2006 22:58:25 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 PCIE: check and return bus_register errors Have pcie_port_bus_register() notice and return errors. Mark it __must_check so that its caller(s) must check its return value. Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 6397c75cbc4d7dbc3d07278b57c82a47dafb21b5 tree d12791eba1b138c1cf8c82cd9dd50402a3b1f461 parent 46ff34633ed09f36ebc4b5c40ac37e592172df74 author Brice Goglin Thu, 31 Aug 2006 01:55:32 -0400 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 MSI: Blacklist PCI-E chipsets depending on Hypertransport MSI capability Introduce msi_ht_cap_enabled() to check the MSI capability in the Hypertransport configuration space. It is used in a generic quirk quirk_msi_ht_cap() to check whether MSI is enabled on hypertransport chipset, and a nVidia specific quirk quirk_nvidia_ck804_msi_ht_cap() where two 2 HT MSI mappings have to be checked. Both quirks set the PCI_BUS_FLAGS_NO_MSI bus flag when MSI is disabled. Signed-off-by: Brice Goglin Signed-off-by: Greg Kroah-Hartman commit 46ff34633ed09f36ebc4b5c40ac37e592172df74 tree e5603dd4fe5f9331c99b2b6c61a26650509338e2 parent fe97064c2870e174a6ff4a93feb11a70c4b71cc5 author Brice Goglin Thu, 31 Aug 2006 01:55:24 -0400 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 MSI: Rename PCI_CAP_ID_HT_IRQCONF into PCI_CAP_ID_HT 0x08 is the HT capability, while PCI_CAP_ID_HT_IRQCONF would be the subtype 0x80 that mpic_scan_ht_pic() uses. Rename PCI_CAP_ID_HT_IRQCONF into PCI_CAP_ID_HT. And by the way, use it in the ipath driver instead of defining its own HT_CAPABILITY_ID. Signed-off-by: Brice Goglin Signed-off-by: Greg Kroah-Hartman commit fe97064c2870e174a6ff4a93feb11a70c4b71cc5 tree 1ce4aff048e1b1a428444b7ae087dba8519854de parent 24334a12533e9ac70dcb467ccd629f190afc5361 author Brice Goglin Thu, 31 Aug 2006 01:55:15 -0400 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 MSI: Export the PCI_BUS_FLAGS_NO_MSI flag in sysfs Export the PCI_BUS_FLAGS_NO_MSI flag of a PCI bus in the sysfs files of its parent device and make it writable. Could be used to: * disable MSI on a device which has not been blacklisted yet * allow MSI when some setpci hacks enable MSI support (for instance on the ServerWorks HT2000 chipset where the MSI HT cap is disabled by default). Architecture where some bus have no parent chipset cannot use this strategy to change MSI support. If the chipset does not have a subordinate bus, its 'bus_msi' file is empty. Also document and warn about the possible danger of changing the flag. Signed-off-by: Brice Goglin Signed-off-by: Greg Kroah-Hartman commit 24334a12533e9ac70dcb467ccd629f190afc5361 tree bf771331e8b657fd4f4e7170a4ad3dc437b8d514 parent 3f79e107f72e8efa86cd2f21356692b712713b5c author Brice Goglin Thu, 31 Aug 2006 01:55:07 -0400 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 MSI: Factorize common code in pci_msi_supported() pci_enable_msi() and pci_enable_msix() use the same code to detect whether MSI might be enabled on this device. Factorize this code in pci_msi_supported(). And improve the documentation about the fact that only the root chipset must support MSI, but it is hard to find the root bus so we check all parent busses MSI flags. Signed-off-by: Brice Goglin Signed-off-by: Greg Kroah-Hartman commit 3f79e107f72e8efa86cd2f21356692b712713b5c tree ce6bdebdf26ee15f38de4ee7e5f74bafda6836bc parent d33b6fba2c4350651f3f61ff2ab858a2f116e9a4 author Brice Goglin Thu, 31 Aug 2006 01:54:56 -0400 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 MSI: Cleanup existing MSI quirks Move MSI quirks in CONFIG_PCI_MSI, document why the serverworks quirk does not simply set PCI_BUS_FLAGS_NO_MSI, and create a generic quirk for other chipsets where setting PCI_BUS_FLAGS_NO_MSI is fine. Signed-off-by: Brice Goglin Signed-off-by: Greg Kroah-Hartman commit d33b6fba2c4350651f3f61ff2ab858a2f116e9a4 tree fa4fa45fd6cc3bf177e13c2e9544b3e8134e1456 parent b278240839e20fa9384ea430df463b367b90e04e author Matthew Wilcox Fri, 30 Jun 2006 02:31:24 -0700 committer Greg Kroah-Hartman Tue, 26 Sep 2006 17:43:52 -0700 Resources: insert identical resources above existing resources If you have two resources which aree exactly the same size, insert_resource() currently inserts the new one below the existing one. This is wrong because there's no way to insert a resource of the same size above an existing one. I took this opportunity to rewrite the initial loop to be a for-loop instead of a goto-loop and fix the documentation. Signed-off-by: Matthew Wilcox Cc: Ivan Kokshaysky Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 6d3aae9d74221b00e2cbf50a353527e5a71a58ba tree 50748c29a9c3da537d085f07273df9af700700e4 parent 8f9082c5ce0e2c2f7ad0211b0c089f680d2efc11 author Jean Delvare Sun, 03 Sep 2006 22:41:08 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c: Drop unimplemented slave functions i2c: Drop unimplemented slave functions Drop the function declarations for slave mode support of i2c adapters. This was never implemented, and by the time it is I bet we will want something different anyway. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 8f9082c5ce0e2c2f7ad0211b0c089f680d2efc11 tree 3e4dda294cf571eb4c07a3378245e6e7c145754f parent 9e11a9fbfe48a2f65188aae64bf4f690e40ea2f4 author Jean Delvare Sun, 03 Sep 2006 22:39:46 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c: Constify i2c_algorithm declarations, part 2 i2c: Constify i2c_algorithm declarations, part 2 Make struct i2c_algorithm declarations const in all i2c bus drivers where it is possible. Signed-off-by: Jean Delvare Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit 9e11a9fbfe48a2f65188aae64bf4f690e40ea2f4 tree c5217391e5e69ff4a176feb8f203ae5c0d0359bb parent af71ff690b92894f66ccede27f731150dc10d80d author Jean Delvare Sun, 03 Sep 2006 22:38:52 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c: Constify i2c_algorithm declarations, part 1 i2c: Constify i2c_algorithm declarations, part 1 Make struct i2c_algorithm declarations const in all i2c algorithm drivers. Signed-off-by: Jean Delvare Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit af71ff690b92894f66ccede27f731150dc10d80d tree fb9080f5648a8fc7e51c0861e7deb7b7bc8bb3d9 parent 872188420997f7f7c1b968fd9bce6578e4c3d45f author David Brownell Sun, 03 Sep 2006 22:37:11 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c: Let drivers constify i2c_algorithm data i2c: Let drivers constify i2c_algorithm data Let drivers constify I2C algorithm method operations tables, moving them from ".data" to ".rodata". Signed-off-by: David Brownell Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 872188420997f7f7c1b968fd9bce6578e4c3d45f tree f50e0b64ee5e1c682de5f22e432ebfdf3abcc0d9 parent c243353a90fae3a9a85d2bd79b1df06bb21c568a author Jean Delvare Sun, 03 Sep 2006 22:36:14 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c-isa: Restore driver owner i2c-isa: Restore driver owner Commit 2b48716d1d2f2edb1e7cbc5ecf1cb2cb39373e33 back in January 2006 was a bit overzealous. It removed .owner from all i2c drivers, including i2c-isa ones, while they still need it. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit c243353a90fae3a9a85d2bd79b1df06bb21c568a tree 5c3b967d154bb5d487a245636120e318be2a1a6a parent 114fd18397eb0eacf51ac784f7d5c929b8499715 author Rudolf Marek Sun, 03 Sep 2006 22:35:21 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c-viapro: Add support for the VT8237A and VT8251 i2c-viapro: Add support for the VT8237A and VT8251 Documentation update included. Compile tested. Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 114fd18397eb0eacf51ac784f7d5c929b8499715 tree 902287737d800a5bcfa382419e48f98f7ed502fe parent 7eff82c8b1511017ae605f0c99ac275a7e21b867 author Jean Delvare Sun, 03 Sep 2006 22:25:04 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c: Warn on i2c client creation failure i2c: Warn on i2c client creation failure Warn when an i2c client creation fails. If we don't, the user will never know something wrong happened, as i2c client creation is typically called through an attach_adapter callback, those return value we currently ignore for technical reasons. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 7eff82c8b1511017ae605f0c99ac275a7e21b867 tree 1201c99e9730a4e1a878560bf22a623a3a7e79f2 parent 9b4ccb86b4abe644ffd218720da2f942b6a20fc2 author Jean Delvare Sun, 03 Sep 2006 22:24:00 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c-core: Drop useless bitmaskings i2c-core: Drop useless bitmaskings The code generated is exactly the same. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 9b4ccb86b4abe644ffd218720da2f942b6a20fc2 tree c7f299c9956acb9174d99f9da904298672905569 parent 7b288a018ac563f5babe0818f581d8f8a4fdcbfb author Adrian Bunk Sun, 03 Sep 2006 22:22:50 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:52 -0700 i2c-algo-pcf: Discard the mdelay data struct member i2c-algo-pcf: Discard the mdelay data struct member Just as i2c-algo-bit, i2c-algo-pcf has an unused mdelay struct member, which we can get rid of to spare some code and memory. Signed-off-by: Adrian Bunk Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 7b288a018ac563f5babe0818f581d8f8a4fdcbfb tree ae177369ee19d059228067aad967a58a87580f03 parent 8202632647278eba7223727dc442f49227c040d0 author Jean Delvare Sun, 03 Sep 2006 22:22:12 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c-algo-bit: Cleanups i2c-algo-bit: Cleanups * Uninline long functions (saves around 1 kB or 15%) * Refactor code in sclhi() * Drop redundant udelay on repeated start Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 8202632647278eba7223727dc442f49227c040d0 tree 922573b40bc3f9332ac431e1bf7b3276750e9d3a parent 7d9db67febf67dd76329a9dd8f97cf4611a8ac2e author David Hubbard Sun, 03 Sep 2006 22:21:20 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c-isa: Fail adding driver on attach_adapter error i2c-isa: Fail adding driver on attach_adapter error Signed-off-by: David Hubbard Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 7d9db67febf67dd76329a9dd8f97cf4611a8ac2e tree 6354fa99b17f89c8f26ccf7c440d0d29096f2dc2 parent b32d20dc8b187e03605f091dbde9a78676a2a642 author Jean Delvare Sun, 03 Sep 2006 22:20:24 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c: __must_check fixes (chip drivers) i2c: __must_check fixes (chip drivers) Check for error on sysfs file creation. Delete sysfs files on device removal. The approach taken for the most complex case (pcf8591) is similar to what Mark M. Hoffman proposed for hardware monitoring chip drivers. Signed-off-by: Jean Delvare Cc: Ben Gardner Cc: Aurelien Jarno Signed-off-by: Greg Kroah-Hartman commit b32d20dc8b187e03605f091dbde9a78676a2a642 tree 893976c1632c6b99ed3f7f510bb34f2a846cea9e parent 7a8d29cec7a53cf1a29dc5055aa9d1fa0f95830f author Jean Delvare Sun, 03 Sep 2006 22:19:25 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c-dev: attach/detach_adapter cleanups i2c-dev: attach/detach_adapter cleanups * Only print that an adapter was attached when it succeeds. * i2c_dev == NULL on detach simply means that the attach failed before, this isn't an error per se. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 7a8d29cec7a53cf1a29dc5055aa9d1fa0f95830f tree d7be7f4fe5909b34fb4ca1587bc6a981c7c0b67b parent 6c805d2ce9d910ea915d7dbe4aed0a91f138be07 author Jean Delvare Sun, 13 Aug 2006 23:46:44 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c-stub: Chip address as a module parameter i2c-stub: Chip address as a module parameter Add a mandatory chip_addr parameter to i2c-stub. This parameter defines to which chip address the driver will respond, instead of reponding to all addresses as before. The idea is to prevent the users from loading i2c-stub at random and being then confused by the results of sensors-detect or other user-space tools. Signed-off-by: Jean Delvare Signed-off-by: Mark M. Hoffman Signed-off-by: Greg Kroah-Hartman commit 6c805d2ce9d910ea915d7dbe4aed0a91f138be07 tree 29ecfb8558c7bb98461a03c4b8aa1228faef752c parent 010d442c4a295a73e90e93c5e42579cee61c5cc7 author Jean Delvare Sun, 13 Aug 2006 23:45:52 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c: Plan i2c-isa for removal i2c: Plan i2c-isa for removal i2c-isa doesn't make much sense in the device driver model. Drivers relying on it are better implemented as platform drivers. We must wait for recent versions of libsensors (2.10.0 or later) to be widely deployed beforehand, though. This move should also make it easier to convert i2c-core to the device driver model. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 010d442c4a295a73e90e93c5e42579cee61c5cc7 tree c8c754bfc7aa7df5bbdc860c0907100a99362d4a parent a0d9c63d3640bd4fc90a408e8334754ef44bcf48 author Komal Shah Sun, 13 Aug 2006 23:44:09 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c: New bus driver for TI OMAP boards i2c: New bus driver for TI OMAP boards This patch adds I2C bus driver for various Texas Instruments (TI) OMAP1/2 (http://www.ti.com/omap) series based boards like OMAP1510/1610/1710/242x. Signed-off-by: Komal Shah Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit a0d9c63d3640bd4fc90a408e8334754ef44bcf48 tree 6f34994fa1d325467453e2cc4d552b82eac7ce3f parent 8241cb1401873e18bba746fd3f6c56ce4252a61f author Jean Delvare Sun, 27 Aug 2006 11:46:49 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c-algo-bit: Discard the mdelay data struct member i2c-algo-bit: Discard the mdelay data struct member The i2c_algo_bit_data structure has an mdelay member, which is not used by the algorithm code (the code has always been ifdef'd out.) Let's discard it to save some code and memory. Signed-off-by: Jean Delvare Acked-by: Mauro Carvalho Chehab Cc: Adrian Bunk Signed-off-by: Greg Kroah-Hartman commit 8241cb1401873e18bba746fd3f6c56ce4252a61f tree 0ee5d7420bbe4d2dbce1913b3368232501d1f7c9 parent be53f9b2a08e647396ceaa004199ae4b032a9bd2 author Jean Delvare Sun, 13 Aug 2006 23:40:09 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c-matroxfb: Struct init conversion i2c-matroxfb: Struct init conversion Convert the struct i2c_algo_bit_data initialization to proper C99 style. Signed-off-by: Jean Delvare Acked-by: Petr Vandrovec Signed-off-by: Greg Kroah-Hartman commit be53f9b2a08e647396ceaa004199ae4b032a9bd2 tree cf6b9083c8842ae8c2a43ffa32beb05c1928cfda parent a294de4e97a7a0cdeb949a3b2fbd4d81addc6d8c author Arthur Othieno Sun, 13 Aug 2006 23:39:11 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:51 -0700 i2c: Fix copy-n-paste in subsystem Kconfig i2c: Fix copy-n-paste in subsystem Kconfig We have: drivers/i2c/Kconfig:2:# Character device configuration Which is obviously not true.. Signed-off-by: Arthur Othieno Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit a294de4e97a7a0cdeb949a3b2fbd4d81addc6d8c tree 89befb2c35261a7f44227d34d9509402005897b6 parent 6ed07134792655db12fddaafbf870425331a21f6 author Domen Puncer Sun, 13 Aug 2006 23:37:13 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-au1550: Add I2C support for Au1200 i2c-au1550: Add I2C support for Au1200 Signed-off-by: Domen Puncer Signed-off-by: Ralf Baechle Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 6ed07134792655db12fddaafbf870425331a21f6 tree e98129c07c99a3fd2054d4b3cd442258a352b66a parent 8859942ede8154c1e90e3b0d1b60aecf0cfaa169 author Domen Puncer Sun, 13 Aug 2006 23:36:27 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-au1550: Add SMBus functionality flag i2c-au1550: Add SMBus functionality flag Add SMBus functionality flag, so we can use eeprom and similar drivers. Signed-off-by: Domen Puncer Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 8859942ede8154c1e90e3b0d1b60aecf0cfaa169 tree b71e1447c4bce6ce4b7dfca581430cacdfc95533 parent 643bd3fbd9dc73ed3dc1e4f6980e6f15fdbb9bb6 author Domen Puncer Sun, 13 Aug 2006 23:35:40 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-au1550: Fix timeout problem i2c-au1550: Fix timeout problem Fix from Jordan Crouse: If the transmit and recieve FIFOS are not empty, forceably flush them rather then waiting for them to drain on their own. This solves at least a problem reported by Clem Taylor: http://www.linux-mips.org/archives/linux-mips/2006-05/msg00240.html (1% of I2C transactions would timeout) Signed-off-by: Domen Puncer Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 643bd3fbd9dc73ed3dc1e4f6980e6f15fdbb9bb6 tree 88da1e080687157f93acf1131ff6c6fdf8735aac parent 51c3711704b66986373408cbc0540abea43d2380 author Jean Delvare Sun, 13 Aug 2006 23:34:05 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-sibyte: Kip Walker is gone i2c-sibyte: Kip Walker is gone Kip Walker no longer works at Broadcom, and his e-mail address there bounces back, so let's drop it. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 51c3711704b66986373408cbc0540abea43d2380 tree 2bb3fc022d9462a76deb7d29c9001377906ec5eb parent 3fd39687540bd5d0501f413c91461d3b9fcbb525 author Jean Delvare Sun, 13 Aug 2006 23:33:16 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-algo-sibyte: Merge into i2c-sibyte i2c-algo-sibyte: Merge into i2c-sibyte Merge i2c-algo-sibyte into i2c-sibyte, as this is a complete, hardware-dependent SMBus implementation and not a reusable algorithm. Perform some basic coding style cleanups while we're here (mainly space-based indentation replaced by tabulations.) Signed-off-by: Jean Delvare Cc: Ralf Baechle Signed-off-by: Greg Kroah-Hartman commit 3fd39687540bd5d0501f413c91461d3b9fcbb525 tree 6adc73fab509b926d8917ce01ee6516739efbfaa parent defcb46ed4666095677c8f52904b9e328587a20d author Jean Delvare Sun, 13 Aug 2006 23:32:37 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-algo-sibyte: Cleanups i2c-algo-sibyte: Cleanups * Delete empty algo_control implementation. * Simplify i2c_sibyte_del_bus. * Delete empty module init and cleanup functions. * Drop out-of-date #ifdef MODULE construct. Signed-off-by: Jean Delvare Cc: Ralf Baechle Signed-off-by: Greg Kroah-Hartman commit defcb46ed4666095677c8f52904b9e328587a20d tree 99ff28198c12230510a9864d64971268c2d75617 parent b119c6c952a086f74202ccda4b7ed72161bb6522 author Jean Delvare Tue, 15 Aug 2006 18:30:24 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c: __must_check fixes, i2c-dev i2c: __must_check fixes (i2c-dev) Check for error on sysfs file creation. Check for error on device creation. Delete sysfs file on device destruction. I couldn't test this one beyond compilation, as it applies on top of another patch in Greg's tree [1] which breaks all my systems when I apply it (my udev isn't recent enough.) Anyone with bleeding edge udev is welcome to test and report. [1] http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/i2c/i2c-dev-device.patch Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit b119c6c952a086f74202ccda4b7ed72161bb6522 tree d402c6b9ea26897077b2042a31045ecc0d689883 parent 22f76e744dc41096987c6df8270b5c249511cde5 author Jean Delvare Tue, 15 Aug 2006 18:26:30 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c: __must_check fixes (core drivers) i2c: __must_check fixes (core drivers) Check for error on sysfs file creation. Check for error on device registration. Check for error on class device registration. Greg, I am not familiar with completion, can you please tell me if I need to take care of it in the error paths (as I did in this patch, see /* Needed? */ comments), or if it isn't needed? These patches were tested, including forced errors, so they should work fine. But of course more testing can't hurt. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 22f76e744dc41096987c6df8270b5c249511cde5 tree 16afa3c645afb5a22fbe7095b1fe2311c6684d01 parent f3b3aadbbd66d8a020550b01b37d9b1ea559f2c3 author Jean Delvare Sat, 01 Jul 2006 17:20:57 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-dev: Drop the client template i2c-dev: Drop the client template Drop the i2c-dev client template. This saves about 360 bytes of memory. I got the idea from a similar cleanup Hans-Frieder Vogt made to i2c-nforce2 recently. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit f3b3aadbbd66d8a020550b01b37d9b1ea559f2c3 tree eea7ec792ffd33df9eb2c2933fd78ea201cfe6c5 parent 9455e4c9abf76fa02170743859b2ddbb484e7fdf author Jean Delvare Sat, 01 Jul 2006 17:17:38 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-dev: Use a list for data storage i2c-dev: Use a list for data storage Use a list instead of a static array for storing the i2c-dev data. Given that most systems have less than 10 i2c busses, most of the space was wasted, so this saves around 1 kB of memory (2 kB on 64-bit archs.) The drawback is that lookup was in O(1) and is now in O(N), but given that the values of N are always small, I don't think this is a problem. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 9455e4c9abf76fa02170743859b2ddbb484e7fdf tree e42acab99cae87ba519fe429025d63840bbc0ec7 parent dd77a4ee0f3981693d4229aa1d57cea9e526ff47 author Jean Delvare Sat, 01 Jul 2006 17:16:57 +0200 committer Greg Kroah-Hartman Tue, 26 Sep 2006 15:38:50 -0700 i2c-dev: Cleanups i2c-dev: Cleanups * We no more need to include platform_device.h. * Delete the to_i2c_dev macro, which is no more used (and no more valid either.) * Drop i2c_dev.minor. Now that the minor number always matches the i2c adapter number, this field is redundant with i2c_dev.adap->nr. * Delete i2c_dev_get_by_adapter() which is now redundant with i2c_dev_get_by_minor() for the same reason. * Drop the local variable dev in i2cdev_attach_adapter(), we can easily do without it. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit df8f0ec1a413ae610899f009e25dc9777881e149 tree ed0435b5f4f3b71cd3be547ed403d66e140fe8e4 parent ddb4f0df0424d174567a011a176782ffa4202071 author Al Stone Sat, 12 Aug 2006 11:08:12 -0600 committer Tony Luck Tue, 26 Sep 2006 15:35:47 -0700 [IA64] minor reformatting to vmlinux.lds.S Minor reformatting to vmlinux.lds.S to make it 80-column usable, in accordance with Linux coding style. Signed-off-by: Al Stone Signed-off-by: Tony Luck commit ddb4f0df0424d174567a011a176782ffa4202071 tree 81eeb2f18b3a4a295c87673493c2b113c6cf9393 parent b29e7132b5a9f2496beed37beef7ba4d010afb2c author Hidetoshi Seto Tue, 26 Sep 2006 15:27:56 -0700 committer Tony Luck Tue, 26 Sep 2006 15:27:56 -0700 [IA64] CMC/CPE: Reverse the order of fetching log and checking poll threshold This patch reverses the order of fetching log from SAL and checking poll threshold. This will fix following trivial issues: - If SAL_GET_SATE_INFO is unbelievably slow (due to huge system or just its silly implementation) and if it takes more than 1/5 sec, CMCI/CPEI will never switch to CMCP/CPEP. - Assuming terrible flood of interrupt (continuous corrected errors let all CPUs enter to handler at once and bind them in it), CPUs will be serialized by IA64_LOG_LOCK(*). Now we check the poll threshold after the lock and log fetch, so we need to call SAL_GET_STATE_INFO (num_online_cpus() + 4) times in the worst case. if we can check the threshold before the lock, we can shut up interrupts quickly without waiting preceding log fetches, and the number of times will be reduced to (num_online_cpus()) in the same situation. Signed-off-by: Hidetoshi Seto Signed-off-by: Tony Luck commit b29e7132b5a9f2496beed37beef7ba4d010afb2c tree d274ba31b5f8aa1ab4a3560c3480c5afecca4fe4 parent 8f9e146732dcba5161dad3747ee73be1f8c13133 author Russ Anderson Tue, 26 Sep 2006 14:47:48 -0500 committer Tony Luck Tue, 26 Sep 2006 15:21:11 -0700 [IA64] PAL calls need physical mode, stacked PAL_CACHE_READ and PAL_CACHE_WRITE need to be called in physical mode with stacked registers. Signed-off-by: Russ Anderson (rja@sgi.com) Signed-off-by: Tony Luck commit 8f9e146732dcba5161dad3747ee73be1f8c13133 tree 463488a8c6c2ca1e5b74a6b80bdd8d1699e8bec7 parent 43ed3baf623410b3fa6ca14a9d3f6deca3493c56 author Russ Anderson Mon, 18 Sep 2006 18:37:15 -0500 committer Tony Luck Tue, 26 Sep 2006 15:20:35 -0700 [IA64] ar.fpsr not set on MCA/INIT kernel entry When entering the kernel due to an MCA or INIT, ar.fpsr (ar40) was not getting set to the kernel default value (remaining at the user value). The effect depends on the user setting of ar.fpsr. In the test case, the effect was addresses printing with strange hex values. Setting ar.fpsr in ia64_set_kernel_registers sets it for both the MCA and INIT paths. The user value of ar.fpsr is correctly saved (in ia64_state_save) and restored (in ia64_state_restore). Below is an example of output with very strange hex values. Anyone know the value of hex 'g'? :-) Processes interrupted by INIT - 0 (cpu 14 task 0xdfffg55g7a4c6gA) Signed-off-by: Russ Anderson (rja@sgi.com) Signed-off-by: Tony Luck commit 43ed3baf623410b3fa6ca14a9d3f6deca3493c56 tree b086b18adff2af6b2633e239e9d1b26d764ae333 parent 816add4e986499145135c4014a7c8a8857f9f3c3 author Hidetoshi Seto Tue, 26 Sep 2006 14:44:37 -0700 committer Tony Luck Tue, 26 Sep 2006 14:44:37 -0700 [IA64] printing support for MCA/INIT Printing message to console from MCA/INIT handler is useful, however doing oops_in_progress = 1 in them exactly makes something in kernel wrong. Especially it sounds ugly if system goes wrong after returning from recoverable MCA. This patch adds ia64_mca_printk() function that collects messages into temporary-not-so-large message buffer during in MCA/INIT environment and print them out later, after returning to normal context or when handlers determine to down the system. Also this print function is exported for use in extensional MCA handler. It would be useful to describe detail about recovery. NOTE: I don't think it is sane thing if temporary message buffer is enlarged enough to hold whole stack dumps from INIT, so buffering is disabled during stack dump from INIT-monarch (= default_monarch_init_process). please fix it in future. Signed-off-by: Hidetoshi Seto Acked-by: Russ Anderson Signed-off-by: Tony Luck commit 8aca23103c2ed2cf158adbe92f4f17ee69463d1a tree b6f1babd265c861c5cef890827f5cb91092d0ce7 parent eb2a2fd91f7c8a53b15063d6f08cf22b9a56cbfb author Krzysztof Halasa Tue, 26 Sep 2006 23:24:16 +0200 committer Jeff Garzik Tue, 26 Sep 2006 17:40:24 -0400 [PATCH] Make PC300 WAN driver compile again This patch removes accesses to the HDLC-internal data structures from pc300 driver, thus enabling it to compile but breaking part of its functionality. Signed-off-by: Krzysztof Halasa Signed-off-by: Jeff Garzik commit eb2a2fd91f7c8a53b15063d6f08cf22b9a56cbfb tree 1d910a9460b76fd85ed02e8b9131270e4977f6f7 parent c226951b93f7cd7c3a10b17384535b617bd43fd0 author Krzysztof Halasa Tue, 26 Sep 2006 23:23:45 +0200 committer Jeff Garzik Tue, 26 Sep 2006 17:40:24 -0400 [PATCH] Modularize generic HDLC This patch enables building of individual WAN protocol support routines (parts of generic HDLC) as separate modules. All protocol-private definitions are moved from hdlc.h file to protocol drivers. User-space interface and interface between generic HDLC and underlying low-level HDLC drivers are unchanged. Signed-off-by: Krzysztof Halasa Signed-off-by: Jeff Garzik commit 816add4e986499145135c4014a7c8a8857f9f3c3 tree 659155937ec49b48fa488a8b19a7cf347e1baa13 parent 709a6c1c07673a9f7879b5f7306dc8d723db93a2 author Jes Sorensen Thu, 14 Sep 2006 07:10:30 -0400 committer Tony Luck Tue, 26 Sep 2006 14:16:56 -0700 [IA64] trim output of show_mem() Cut the number of lines of memory info output per node from five to one line. Signed-off-by: Jes Sorensen Signed-off-by: Tony Luck commit fb4633019fd0a871cdf315e1f4082f4c6926af82 tree 923802e2ab54254921be375a69d3b44e49c9d64f parent efbf3f14204b77e6afc8c13571357173de9ab707 author Jeff Garzik Tue, 26 Sep 2006 17:16:32 -0400 committer Jeff Garzik Tue, 26 Sep 2006 17:16:32 -0400 [libata] One more s/15/ATA_SECONDARY_IRQ/ substitution Signed-off-by: Jeff Garzik commit 709a6c1c07673a9f7879b5f7306dc8d723db93a2 tree 9703e9652852bad1aa55bba3ba91b22fcd710c25 parent f5a3f3dc189485d607fbd42678cc23958acc0a6e author Jes Sorensen Wed, 13 Sep 2006 08:43:42 -0400 committer Tony Luck Tue, 26 Sep 2006 14:15:54 -0700 [IA64] show_mem() printk levels Use the default sysrq printk level for printing show_mem() output both for disconfig and contig versions. This is consistent with the printk level used on other architectures (well ia32 at least). Signed-off-by: Jes Sorensen Signed-off-by: Tony Luck commit f5a3f3dc189485d607fbd42678cc23958acc0a6e tree 7896c4c57d99011129af4ebfc8e3c24ca460cd1a parent 5c55cd63a77a85f603c98c2171a8054ca34b6a9f author Zou Nan hai Thu, 14 Sep 2006 08:25:15 +0800 committer Tony Luck Tue, 26 Sep 2006 14:13:03 -0700 [IA64] Make gp value point to Region 5 in mca handler MCA dispatch code take physical address of GP passed from SAL, then call DATA_PA_TO_VA twice on GP before call into C code. The first time is in ia64_set_kernel_register, the second time is in VIRTUAL_MODE_ENTER. The gp is changed to a virtual address in region 7 because DATA_PA_TO_VA is implemented by dep instruction. However when notify blocks were called from MCA handler code, because notify blocks are supported by callback function pointers, gp value value was switched to region 5 again. The patch set gp register to kernel gp of region 5 at entry of MCA dispatch. Signed-off-by: Zou Nan hai Signed-off-by: Tony Luck commit efbf3f14204b77e6afc8c13571357173de9ab707 tree 21a182fa778c6252b19345c82f91ef670b11850d parent 68d0d7abcc4cfcf0a1eeb49785cb32ec05473e42 author Jeff Garzik Tue, 26 Sep 2006 17:10:53 -0400 committer Jeff Garzik Tue, 26 Sep 2006 17:10:53 -0400 [libata] pata_serverworks: fill in ->irq_clear hook Required by libata, as it is called unconditionally. Fixes an obvious oops. Signed-off-by: Jeff Garzik commit 68d0d7abcc4cfcf0a1eeb49785cb32ec05473e42 tree 1b12d8dc9ad2dd7568200cf05f7c1ae080cb1dcd parent daac0acd597618b99bba5f8fff31f21e4f283154 author Alan Cox Tue, 26 Sep 2006 22:24:31 +0100 committer Jeff Garzik Tue, 26 Sep 2006 17:10:04 -0400 [PATCH] pata_serverworks: correct PCI ID in cable detection table Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 5c55cd63a77a85f603c98c2171a8054ca34b6a9f tree 44a849c2e4e40dc56733a88a0aa6a22c0f471e60 parent a192dc16000241dc02990a36b6830839b73c44de author Tony Luck Tue, 26 Sep 2006 14:04:42 -0700 committer Tony Luck Tue, 26 Sep 2006 14:04:42 -0700 Revert "[IA64] Unwire set/get_robust_list" This reverts commit 2636255488484e04d6d54303d2b0ec30f7ef7e02. Jakub Jelinek provided the missing futex_atomic_cmpxchg_inatomic() function, so now it should be safe to re-enable these syscalls. Signed-off-by: Tony Luck commit a192dc16000241dc02990a36b6830839b73c44de tree 31c228936a92bab32d950aadce2316cc7abdc39b parent fd1dfc6f0165e2ad426665e517103672d6832f90 author Jakub Jelinek Tue, 26 Sep 2006 14:00:56 -0700 committer Tony Luck Tue, 26 Sep 2006 14:00:56 -0700 [IA64] Implement futex primitives Implement futex_atomic_op_inuser() and futex_atomic_cmpxchg_inatomic() on IA64 in order to fully support all futex functionality. Signed-off-by: Jakub Jelinek Signed-off-by: David Woodhouse Signed-off-by: Tony Luck commit fd1dfc6f0165e2ad426665e517103672d6832f90 tree a3bb26ace2427cd5fe0fd62c72d79ef0668cfad1 parent 35589a8fa8138244e7f2ef9317c440aa580c9335 author Christoph Lameter Tue, 05 Sep 2006 11:56:51 -0700 committer Tony Luck Tue, 26 Sep 2006 13:56:39 -0700 [IA64-SGI] Do not request DMA memory for BTE The GFP_DMA option usually does nothing on SN2 since all of memory is in thei DMA zone and the BTE has always been capable of addressing all of memory. So there is no need to get memory from a restricted range of memory (which is what GFP_DMA is for). Remove useless __GFP_DMA option. Signed-off-by: Christoph Lameter Signed-off-by: Tony Luck 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 35589a8fa8138244e7f2ef9317c440aa580c9335 tree c108ecc979e4b95ee5b6d617790212426b80d372 parent dd562c05410e13e878a3ee0deb8ac06db2e132c7 author Keshavamurthy Anil S Tue, 26 Sep 2006 12:03:13 -0700 committer Tony Luck Tue, 26 Sep 2006 12:03:13 -0700 [IA64] Move perfmon tables from thread_struct to pfm_context This patch renders thread_struct->pmcs[] and thread_struct->pmds[] OBSOLETE. The actual table is moved to pfm_context structure which saves space in thread_struct (in turn saving space in task_struct which frees up more space for kernel stacks). Signed-off-by: Stephane Eranian Signed-off-by: Anil S Keshavamurthy Signed-off-by: Tony Luck 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 dd562c05410e13e878a3ee0deb8ac06db2e132c7 tree b99f2e8c4aae70a17a8caf7e3f72926c4dcdd7a4 parent fd32cb3a9c9f9399421408e8734cd8a6d9d1a09f author Stephane Eranian Thu, 21 Sep 2006 10:35:44 -0700 committer Tony Luck Tue, 26 Sep 2006 11:39:38 -0700 [IA64] Add interface so modules can discover whether multithreading is on. Add is_multithreading_enabled() to check whether multi-threading is enabled independently of which cpu is currently online Signed-off-by: stephane eranian Signed-off-by: Tony Luck commit fd32cb3a9c9f9399421408e8734cd8a6d9d1a09f tree d030d93f169bd9ff39019dacc8f5b3c5a828b079 parent 214ddde2f95037e129eff7e895869771719c7c1b author Keshavamurthy Anil S Mon, 25 Sep 2006 16:32:20 -0700 committer Tony Luck Tue, 26 Sep 2006 11:33:32 -0700 [IA64] kprobes: fixup the pagefault exception caused by probehandlers If the user-specified kprobe handler causes the page fault when accessing user space address, fixup this fault since do_page_fault() should not continue as the kprobe handler are run with preemption disabled. Signed-off-by: Anil S Keshavamurthy Signed-off-by: Andrew Morton Signed-off-by: Tony Luck commit 214ddde2f95037e129eff7e895869771719c7c1b tree 6879e433635ce84b964d7c78331cd8eda698f35e parent a4b47ab9464a8200528fad3101668abdd7379cf9 author bibo mao Tue, 26 Sep 2006 11:20:37 -0700 committer Tony Luck Tue, 26 Sep 2006 11:20:37 -0700 [IA64] kprobe opcode 16 bytes alignment on IA64 On IA64 instruction opcode must be 16 bytes alignment, in kprobe structure there is one element to save original instruction, currently saved opcode is not statically allocated in kprobe structure, that can not assure 16 bytes alignment. This patch dynamically allocated kprobe instruction opcode to assure 16 bytes alignment. Signed-off-by: bibo mao Acked-by: Anil S Keshavamurthy Signed-off-by: Tony Luck commit daac0acd597618b99bba5f8fff31f21e4f283154 tree 260cd8e9024655ca6b017318fc4ae8c918cba52c parent c961922b73dab429a759f560952fd4c3f60bd6b3 author Alan Cox Tue, 26 Sep 2006 17:55:37 +0100 committer Jeff Garzik Tue, 26 Sep 2006 13:34:27 -0400 [PATCH] libata-sff: use our IRQ defines Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit c961922b73dab429a759f560952fd4c3f60bd6b3 tree cbd6d6424d508fd208ae9992c1cf11b3b8a91fb1 parent 4735ebedf37731160e3d3efc9fc9d4939c66fefa author Alan Cox Tue, 26 Sep 2006 17:53:38 +0100 committer Jeff Garzik Tue, 26 Sep 2006 13:34:27 -0400 [PATCH] libata-eh: Remove layering violation and duplication when handling absent ports This removes the layering violation where drivers have to fiddle directly with EH flags. Instead we now recognize -ENOENT means "no port" and do the handling in the core code. This also removes an instance of a call to disable the port, and an identical printk from each driver doing this. Even better - future rule changes will be in one place only. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 4735ebedf37731160e3d3efc9fc9d4939c66fefa tree 617975b475aa83942bf3c7af651fd3c80b09d5b9 parent 02f076aaa1478a91762de522ecb029efbc279690 author Alan Cox Tue, 26 Sep 2006 17:37:22 +0100 committer Jeff Garzik Tue, 26 Sep 2006 13:34:27 -0400 [PATCH] libata: tighten rules for legacy dependancies The legacy and QDI drivers are ISA/VLB bus [we don't have a VLB define but ISA will do nicely]. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 02f076aaa1478a91762de522ecb029efbc279690 tree 486c3f2b08fceda0fe7f35c2f57cc93c08e779cf parent e8216dee838c09776680a6f1a2e54d81f3cdfa14 author Alan Cox Tue, 26 Sep 2006 17:35:32 +0100 committer Jeff Garzik Tue, 26 Sep 2006 13:34:26 -0400 [PATCH] libata: refuse to register IRQless ports We don't currently support pure polled operation so when we meet a BIOS which forgot to assign an IRQ to a PCI device it all goes a little pear shaped. Trap this case properly. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit c226951b93f7cd7c3a10b17384535b617bd43fd0 tree 07b8796a5c99fbbf587b8d0dbcbc173cfe5e381e parent b0df3bd1e553e901ec7297267611a5db88240b38 parent e8216dee838c09776680a6f1a2e54d81f3cdfa14 author Jeff Garzik Tue, 26 Sep 2006 13:13:19 -0400 committer Jeff Garzik Tue, 26 Sep 2006 13:13:19 -0400 Merge branch 'master' into upstream commit a4b47ab9464a8200528fad3101668abdd7379cf9 tree dbf522f1be3ecac23885e44c9864af77a641efdc parent ae3e0218621db0590163b2d5c424ef1f340e3cc6 parent 2ab561a116e16cdee3ae0e13d51910634c15aee9 author Tony Luck Tue, 26 Sep 2006 09:47:30 -0700 committer Tony Luck Tue, 26 Sep 2006 09:47:30 -0700 Pull esi-support into release branch commit ae3e0218621db0590163b2d5c424ef1f340e3cc6 tree a7e84e4b4a1e32fb64a99d7d5c73420b717f01ae parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 parent 76d08bb3f09054edc45326ce5c698a3f6c45f5d0 author Tony Luck Tue, 26 Sep 2006 09:47:04 -0700 committer Tony Luck Tue, 26 Sep 2006 09:47:04 -0700 Pull model-name into release branch 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 8dd86eebc5315910ebfd9f30f1674254308be4b3 tree b1d27c898a21de8660765dc338471433129d38aa parent dab489df2a3eec77e2ed7a4499ec7b9ef09e35b7 author Michael Krufky Sat, 16 Sep 2006 19:09:38 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4641): Trivial: use lowercase letters in hex subsystem ids Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit dab489df2a3eec77e2ed7a4499ec7b9ef09e35b7 tree c9e77113d03e08bb969711569c256d0b30b3eced parent aa481a654771217645188b64d82acfc38c2da892 author Michael Krufky Fri, 15 Sep 2006 15:41:23 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4639): Cx88: add autodetection for alternate revision of Leadtek PVR Add autodetection for PCI subsystem ID 107d:6632, to detect as a Leadtek PVR 2000 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit aa481a654771217645188b64d82acfc38c2da892 tree e7faefe2776e2cc6ea89ae30ff96685c86715d3c parent 1c2d034e3c0ce4c1c89f1636a9f4aa7615cc7474 author Steven Toth Thu, 14 Sep 2006 15:41:13 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4638): Basic DVB-T and analog TV support for the HVR1300. This is the first in a series of patches to add full WinTV-HVR1300 support to Linux. This first patch will enable analog TV support and DVB-T support. Later patches will add the hardware MPEG encoder support. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 1c2d034e3c0ce4c1c89f1636a9f4aa7615cc7474 tree 53e7454a2dac4f21de1056f1fdc75ac73e855918 parent 3d265c96ccb8f72153b4e926053a79e1a52bf264 author Mauro Carvalho Chehab Thu, 14 Sep 2006 13:36:34 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4637): Add a default method for VIDIOC_G_PARM For most drivers, VIDIOC_G_PARM will just return the current standard fps. So, instead of failing, drivers based on video_ioctl2 will implement the default method. Signed-off-by: Mauro Carvalho Chehab commit 3d265c96ccb8f72153b4e926053a79e1a52bf264 tree 1d72758576c494e491a00d1ad013b55c667ddd0d parent 13f1371e8fb53df6b0a6c0cc7de56195bf132f1c author Alan Cox Thu, 14 Sep 2006 11:53:16 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4635): Extend bttv and saa7134 to check for both AGP and PCI PCI failure case We could go and work out if the target object is AGP or PCI but the corner case of an Athlon 64 era box with PCI video is sufficiently unusual it doesn't seem worth the extra work, at least until other cases if any pop up. Signed-off-by: Alan Cox Signed-off-by: Mauro Carvalho Chehab commit 13f1371e8fb53df6b0a6c0cc7de56195bf132f1c tree 93fec098c3b58f9dc5f7a0007ed01675136b5cd7 parent e355880b838c80ff53e6386a1caad10e6f719259 author Alan Cox Thu, 14 Sep 2006 11:53:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4634): Zr36120: implement pcipci checks Again depends on the PCIAGP_FAIL patch for a define. Someone with more card knowledge should look at the ALIMAGIK case and whether latency can be safely to set to 0xA or so. Signed-off-by: Alan Cox Signed-off-by: Mauro Carvalho Chehab commit e355880b838c80ff53e6386a1caad10e6f719259 tree bb9400b4f6dc2d994bf4d428b2ec6c617af1f52f parent d7e7a1567894146ca6c9442c824dded4f0f48dde author Alan Cox Thu, 14 Sep 2006 11:47:55 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4632): Zoran: Implement pcipci failure check We should be doing this on all devices doing PCI<->PCI DMA. We only set the _FAIL ones when the DMA will fail or may cause crashes. This relies on the PCIAGP_FAIL patch I sent to Andrew already Signed-off-by: Alan Cox Signed-off-by: Mauro Carvalho Chehab commit d7e7a1567894146ca6c9442c824dded4f0f48dde tree 771298b2f30d8e3dd05352771aa79ba015f1e963 parent d98821e21ecbadb8c4dbf608d25454a8835c0667 author Oliver Endriss Thu, 14 Sep 2006 00:43:22 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4631): Av7110: remove V4L2_CAP_VBI_CAPTURE flag Implement fix suggested by Michael Hunold for a bug reported by Philipp Matthias Hahn: Starting "kdetv" on a Siemens DVB-C 1.x produced an oops because kdetv opened "/dev/vbi0". Remove the V4L2_CAP_VBI_CAPTURE flag because it does not work with this type of hardware anyway. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit d98821e21ecbadb8c4dbf608d25454a8835c0667 tree c9450c2ce96823ae8cdeaaefc22e42bf4c9d11d7 parent b04c1baf485f4c3a25d8dbc187156030f9247cb0 author Oliver Endriss Thu, 14 Sep 2006 00:15:13 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4630): Av7110: FW_LOADER depemdency fixed Do not select FW_LOADER unless it is really required. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit b04c1baf485f4c3a25d8dbc187156030f9247cb0 tree 6768cdbbecbac2e64f4dc0d1e046ccd42044b2a2 parent 666c73d9e123b9ea230fcb1e2bf47fe0294332a8 author Michal Majchrowicz Wed, 13 Sep 2006 16:42:42 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4629): Saa7134: add card support for Proteus Pro 2309 Add card support for Proteus Pro 2309, based on saa7130 bridge Signed-off-by: Michal Majchrowicz Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 666c73d9e123b9ea230fcb1e2bf47fe0294332a8 tree 090fcf32ae58a33ca29e375f76c5c00f9e3da8ca parent d7fbefe06d2061de126095f903359ce1ef61faf3 author Sascha Hauer Wed, 13 Sep 2006 13:26:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c Do not return -EINVAL for index=0 in VIDIOC_ENUMSTD, because it is a valid index Signed-off-by: Sascha Hauer Signed-off-by: Mauro Carvalho Chehab commit d7fbefe06d2061de126095f903359ce1ef61faf3 tree 42da9dcd05563bc73624d16ca670cdca7fc03590 parent 183d896a03e1f0e4ab69d75f123d33a62b47cf03 author Sascha Hauer Wed, 13 Sep 2006 13:26:03 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4627): Vivi crashes with mplayer The vivi.current_norm field is not initialized in vivi.c, so a VIDIOC_G_STD ioctl without a prior call to VIDIOC_S_STD gives unpredictable results. mplayer does exactly this. Signed-off-by Sascha Hauer Signed-off-by: Mauro Carvalho Chehab commit 183d896a03e1f0e4ab69d75f123d33a62b47cf03 tree 2750a8d9e1b11ddb8da27b11134e4803e7e52d77 parent bc28287979592c015560f8837a98b63a3be8bbc1 author Mauro Carvalho Chehab Tue, 12 Sep 2006 20:02:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4626): On saa7111/7113, LUMA_CTRL need a different value Also sends the proper saa71111 init table. Signed-off-by: Mauro Carvalho Chehab commit bc28287979592c015560f8837a98b63a3be8bbc1 tree 8103d470146c201dfe811af5374984e13e17f8df parent c93a5c34887426daa70f3caf05881fafb1cd687f author Cedric Le Goater Mon, 11 Sep 2006 16:31:45 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4624): Tvaudio: Replaced kernel_thread() with kthread_run() Replaced kernel_thread() with kthread_run() since kernel_thread() is deprecated in drivers/modules. Removed the completion and the wait queue which are now useless with kthread. Also removed the allow_signal() call as signals don't apply to kernel threads. Fixed a small race condition when thread is stopped. Please check if the timer vs. thread still works fine without the wait queue. Signed-off-by: Cedric Le Goater Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit c93a5c34887426daa70f3caf05881fafb1cd687f tree 3c0027e5fb46e96a691c70ef7f13ae6d331015fc parent 5ab6b267e5684452e229c58f4a5ba9f267866d42 author Sascha Hauer Mon, 11 Sep 2006 09:49:19 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4622): Copy-paste bug in videodev.c This patch fixes a copy-paste bug in videodev.c where the vidioc_qbuf() function gets called for the dqbuf ioctl. Signed-off-by: Sascha Hauer Signed-off-by: Mauro Carvalho Chehab commit 5ab6b267e5684452e229c58f4a5ba9f267866d42 tree b88ca79630266aa525e20de6c516014a0178d94a parent 6386828cb1748ba466e3d9df5d650ffeab937fd2 author Jose Alberto Reguero Mon, 11 Sep 2006 04:34:31 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4620): Fix AGC configuration for MOD3000P-based boards While converting the configuration for the old DiB3000MC-module to the new one a wrong AGC configuration was introduced. This is using the old one again. Signed-off-by: Jose Alberto Reguero Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 6386828cb1748ba466e3d9df5d650ffeab937fd2 tree 0aaeadf899d541010c7a6d562717c7f0a90caeb6 parent 83905b02af4ebc1cbc952401788cb92619393d04 author Mauro Carvalho Chehab Sun, 10 Sep 2006 12:47:50 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4619): Fixes some I2C dependencies on V4L devices Signed-off-by: Mauro Carvalho Chehab commit 83905b02af4ebc1cbc952401788cb92619393d04 tree 3138acb963de112d44a8a5ce8deb5727645698ba parent 774c0de4aed4d5171e8c3cb47402265d278d2591 author Alistair Buxton Sun, 10 Sep 2006 12:09:22 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4617): Problem with dibusb-mb.c USB IDs There seems to be an off by one error in the dibusb-mb.c which causes the "Artec T1 with AN2235" box to be detected as a totally different box - but it only happens if the Artec is one with the correct USB IDs. A patch is attached to the second post. However, even with this patch, the box still won't tune. It will tune using a 2.6.12 kernel though. Signed-off-by: Alistair Buxton Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 774c0de4aed4d5171e8c3cb47402265d278d2591 tree 923a2c2c09e38066700ebc59719e9ee1aabbe922 parent e9f964da79f6dcdd1c1a85dea84e9e7d7236729e author Allan Third Sun, 10 Sep 2006 12:05:50 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:36 -0300 V4L/DVB (4616): [PATCH] Nebula DigiTV USB RC support Attached is a patch against latest HG which adds remote control support to the DigiTV driver. It works for me; Signed-off-by: Allan Third Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit e9f964da79f6dcdd1c1a85dea84e9e7d7236729e tree d9e13e3bdb038d0aacca23918b4676db2f45b494 parent dafcaaf86a77c086ed663eb25da1ca42800e171c author Ricardo Cerqueira Sat, 09 Sep 2006 12:24:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4614): Export symbol saa7134_tvaudio_setmute from saa7134 for saa7134-alsa saa7134-alsa now unmutes/mutes the line when opening/closing the capture device, and needs this symbol Signed-off-by: Ricardo Cerqueira Signed-off-by: Mauro Carvalho Chehab commit dafcaaf86a77c086ed663eb25da1ca42800e171c tree bfbeb9a1dd3a449c8fbe723b5fae56b71f1bc38f parent c8cd2ad3bb499ad684799b55ca10e260a9e2fd84 author Ricardo Cerqueira Wed, 06 Sep 2006 06:25:38 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4613): Unmute/mute saa7134 when opening/closing the audio capture device. This patch should enable unmuting the audio device when opening it (and posterior muting when closing it), doing away with the need for unmute ioctls or v4lctl usage. Signed-off-by: Ricardo Cerqueira Signed-off-by: Mauro Carvalho Chehab commit c8cd2ad3bb499ad684799b55ca10e260a9e2fd84 tree b28f9527b07ec2ddde562f57e5e72114b49bc850 parent 92cd24fea4feefb9bde8efab3fdb25f525220672 author Andrew de Quincey Thu, 07 Sep 2006 02:07:21 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4611): Add module-init-tools version comment. I've just determined that module-init-tools >=3.2 is needed for dvb_attach to work. This adds a comment to Kconfig about it. Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 92cd24fea4feefb9bde8efab3fdb25f525220672 tree 59b7ba8447f674eece69a23d9699c3b207f47f57 parent 141276b57e1f83a86b8e77554b36511be0a7049c author Andrew de Quincey Thu, 07 Sep 2006 00:31:55 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4610): Add tua6100 config wrapper I had forgotten to add the wrapper round the tua6100_attach function if its disabled in Kconfig Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 141276b57e1f83a86b8e77554b36511be0a7049c tree fe0e93f7eeaca9ba6b06bd74bf6758b8a1986b94 parent 48c06d5e2d63c1d6282c0f7fe67741a39d6c1852 author Mauro Carvalho Chehab Wed, 06 Sep 2006 19:04:28 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4609): Improved i2c performance on software bitbang algoritm Software I2C were using a very conservative value of udelay=16, meaning about 20Kbps. According with Philips I2C datasheet, the i2c should answer well for times at the order of 4.7 us. So, using udelay=5 should work for all devices. After this patch, the speed should be close to 66,67 Kbps, with the current kernel software bitbang, with 30/60 duty cycle. Anyway, added a new parameter (i2c_udelay) that would allow using conservative values, if eventually a hardware doesn't support the datasheet values. Thanks to Jean Delvare for pointing this improvement. Signed-off-by: Mauro Carvalho Chehab commit 48c06d5e2d63c1d6282c0f7fe67741a39d6c1852 tree 57bb9499d431f92eec2bd823336271f9c6b741d7 parent 1c72cfdcea00fbdcae37d096f2e58b4736d305fb author Mauro Carvalho Chehab Wed, 06 Sep 2006 09:29:00 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4608a): V4L1 API conversion not finished yet Updates feature-removal-schedule.txt to reflect the current scheduled date to convert all V4L1 drivers to V4L2. Signed-off-by: Mauro Carvalho Chehab commit 1c72cfdcea00fbdcae37d096f2e58b4736d305fb tree beabfe726996b22c7174800ced86d3d9bb30c627 parent 00be2e7c64157c845afff56f25677da706b151b6 author Andrew de Quincey Tue, 05 Sep 2006 17:58:20 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4607): Port budget-av to use the new tua6100 driver Port budget-av to use the new tua6100 driver Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 00be2e7c64157c845afff56f25677da706b151b6 tree 763eecb4d93db9c2e407b6085e21655fd11cd23a parent c4e4aac88737879a562760ac07e51167847f193d author Andrew de Quincey Tue, 05 Sep 2006 17:53:06 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4606): Add driver for TUA6100 This driver was originally in budget-av.c, however I have extracted it into a seperate file to permit reuse. I also reworked the code to make it maintainable. I then examined the KNC1 windows drivers and rewrote the code in order to configure the PLL as they do. This solves a lot of reported tuning problems. Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit c4e4aac88737879a562760ac07e51167847f193d tree 02b09b04dc8fc487fcd9878941ab619b3c537dc4 parent 1e9dadbe7a0afa0c3eeae538164d8b9d489d3cc0 author Mike Isely Sun, 03 Sep 2006 13:33:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4604): Fix broken pvrusb2 build Fix broken build when 24XXX support is not selected. This is required due to the requirement of removing 24XXX ifdef's from the driver source. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 1e9dadbe7a0afa0c3eeae538164d8b9d489d3cc0 tree 19fc613624df1fff611b08ea82e31d6649e0ab3f parent 81409ed08a7ecc6a3da08b9b0321fd070c57a721 author Bradley Kite Sat, 02 Sep 2006 21:14:27 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4600): Fix DVB Front-End Signal Strength Inconsistency The cx22702 returns an 8 bit unshifted value for signal strength; this is inconsistent with most other frontends Signed-off-by: Bradley Derek Kite Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 81409ed08a7ecc6a3da08b9b0321fd070c57a721 tree 38a78689a60ae02cd02e9f4b5bf6744866f40aa6 parent 97d9e80e75547e940a24ebcd2ec99e817bcf47d6 author Bas Bloemsaat Sun, 03 Sep 2006 09:47:41 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4599): Adds Compro PS39U USB ID to Vicam driver Trivial patch to make Compro PS39U WebCam work with linux by using the vicam driver. The camera is just a vicam with another USB ID, so I added that ID to the driver, and it works now. Signed-off-by: Bas Bloemsaat Signed-off-by: Mauro Carvalho Chehab commit 97d9e80e75547e940a24ebcd2ec99e817bcf47d6 tree 222e81095fa300e48c317d54d5964485de122bac parent 3ad9fc37bacd74c5c05eb0bd4b76876e0daf8a2d author Mauro Carvalho Chehab Sun, 03 Sep 2006 09:38:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4598): Fix a typo: VRES, instead o HRES Signed-off-by: Mauro Carvalho Chehab commit 3ad9fc37bacd74c5c05eb0bd4b76876e0daf8a2d tree fae4e6dc78ea80a95f49174dd6a806b186dca2e0 parent 22ebb77dfa94904f534563512b70178f98bbe962 author Mike Isely Sat, 02 Sep 2006 22:37:52 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4597): Improve resolution limit enforcements in pvrusb2 The pvrusb2 driver resolution limits are now programmed the following way, based on empirical measurements of the hardware: Vertical max: 480 for NTSC, 576 otherwise Vertical min: 75 for 24xxx, 17 otherwise Horizontal max: 720 Horizontal min: 720 for 24xxx, 19 otherwise Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 22ebb77dfa94904f534563512b70178f98bbe962 tree 305e0c1e37c738a67c5d8dee5e7a70058d23a08d parent 7f19d0278c86c7f27df287fd0bd5170fe75dc7d2 author Mike Isely Sat, 02 Sep 2006 22:33:02 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4596): Fix saa7115 miscalculation that breaks NTSC This repairs a problem introduced by a commit earlier applied. Thanks-to: Hans Verkuil Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 7f19d0278c86c7f27df287fd0bd5170fe75dc7d2 tree a3ff18cd443d79615fb23b748e4563a91c666907 parent 4d31256f378e1a5fca7f4f3fb8b0a0aa1fff4312 author Mike Isely Sat, 02 Sep 2006 15:56:33 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4595): Remove CONFIG_VIDEO_PVRUSB2_24XXX from pvrusb2 driver Support for 24xxx devices was previously explicitly bracketed with CONFIG_VIDEO_PVRUSB2_24XXX inside the code because we didn't trust the stability of these changes. We trust it now; so there's no reason to leave this out of the driver anymore. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 4d31256f378e1a5fca7f4f3fb8b0a0aa1fff4312 tree 31f1bbe785a6872960360778d0534ec4c2079e98 parent d9dce96faec043f261dc5a57d43cfc0e2905f2a5 author Mike Isely Sat, 02 Sep 2006 15:54:23 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4594): Remove some dead data elements from pvrusb2 driver Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit d9dce96faec043f261dc5a57d43cfc0e2905f2a5 tree b148fe4eb3ef007702e55aa6db0600b770349579 parent 3e7d3e57350ab8b7b8ce930074a31c87f1cbc8cc author Mauro Carvalho Chehab Sat, 02 Sep 2006 12:59:38 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4592): Fixes some troubles on saa7115 Scaling were not working fine; Some reserved registers were wrong; On some situations, saa7115 were not properly being initializated. Removed some duplicated code. Thanks-to: Hans Verkuil for co-working on this patch. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 3e7d3e57350ab8b7b8ce930074a31c87f1cbc8cc tree c32489cfcbc88c5b08e36a6e94c39b2ec304f274 parent 616b8b639e6491cfa63f79238a5c6fbee383eb09 author Mauro Carvalho Chehab Fri, 01 Sep 2006 18:39:05 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4586): Code were preventing saa7111 and saa7118 to work Signed-off-by: Mauro Carvalho Chehab commit 616b8b639e6491cfa63f79238a5c6fbee383eb09 tree b7c902eb37262db3bd47cab8f52e14da0d383fad parent b31e341be01475e016842a662946b4fc9cff6bd4 author Hans Verkuil Fri, 01 Sep 2006 18:36:48 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4585): VIDIOC_G_SLICED_VBI_CAP now accepts a v4l2_buf_type, make it IOWR The VIDIOC_G_SLICED_VBI_CAP needs to receive the v4l2_buf_type field before it can return a result. Hence this ioctl must be IOWR, not IOR. Since this ioctl is still marked experimental we can make this change. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit b31e341be01475e016842a662946b4fc9cff6bd4 tree 8dfef09aa562b63a196388ce3630b5e972355cc8 parent f2a49bc72bd2993356b3640cc105646ae56b10b8 author Hans Verkuil Fri, 01 Sep 2006 18:36:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4584): Fix VIDIOC_S_FMT min/max check in pvrusb2 Acked-by: Mike Isely Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit f2a49bc72bd2993356b3640cc105646ae56b10b8 tree 084fa0f2a1a9edd134c3bba7f810b05468ed1eb3 parent d87edf264a1f7d7678015e5a6752cde877434d4b author Hans Verkuil Fri, 01 Sep 2006 18:32:55 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:35 -0300 V4L/DVB (4582): VIDIOC_INT_S_REGISTER is IOW, not IOR. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d87edf264a1f7d7678015e5a6752cde877434d4b tree a846f3e2003a92e31c90c760bf91c65ef72ce8a3 parent 66440ccbf2f4077ce59c9692a2c7288201ea0171 author Mauro Carvalho Chehab Fri, 01 Sep 2006 09:37:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4573): Fix: There were some missing breaks at register check routine Without the breaks, saa7115 were not initializing PLL2. Signed-off-by: Mauro Carvalho Chehab commit 66440ccbf2f4077ce59c9692a2c7288201ea0171 tree 55f8be86a1387813b6891e0801dde63071e4d7a2 parent 4fcd7d8f7b6ce0a0adb3edd6d6edcbf2fd05a02b author Mauro Carvalho Chehab Wed, 30 Aug 2006 19:52:14 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4565): Fix scaling calculus Signed-off-by: Mauro Carvalho Chehab commit 4fcd7d8f7b6ce0a0adb3edd6d6edcbf2fd05a02b tree a5aca4e4b71a90ad1120516c9c5d8016ba41c3e2 parent 58f56cbe29042dca81fd59c05fb2055d58557d1e author Unai Uribarri Sun, 27 Aug 2006 23:01:24 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4561): Sync'ing dvb-usb-remote with changes in USB input subsystem This patch fixes the physical address and takes into account recent changes in the USB input subsystem. Acked-by: Dmitry Torokhov Signed-off-by: Unai Uribarri Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 58f56cbe29042dca81fd59c05fb2055d58557d1e tree 1faa874585b29f4c681879759e01c6fc3e1e4367 parent 59ba9154952baddfaea18e9decf91c040511c0ed author Mauro Carvalho Chehab Wed, 30 Aug 2006 05:44:31 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4556): Fix a typo. Signed-off-by: Mauro Carvalho Chehab commit 59ba9154952baddfaea18e9decf91c040511c0ed tree 5edceeafa6fb2e5542dea36aaf715e1d53196195 parent 66ec1193ba2b4171c8f7e08245393d1b547ffd1e author Mauro Carvalho Chehab Wed, 30 Aug 2006 05:34:36 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4555): Cleanup: removed hardcoded tables saa7115 module is capable of calculating the proper FIR tables. However, there were 4 hardcoded tables for the standard resolution. Signed-off-by: Mauro Carvalho Chehab commit 66ec1193ba2b4171c8f7e08245393d1b547ffd1e tree fd224e688d832947896c014e388ebbfca7ca134f parent 89f75ffc7e97d96ea76556671446d57d77c46beb author Mauro Carvalho Chehab Tue, 29 Aug 2006 22:52:32 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4554): Renamed several common structs/functions to saa711x instead of saa7115 Signed-off-by: Mauro Carvalho Chehab commit 89f75ffc7e97d96ea76556671446d57d77c46beb tree 1252810a156b30b1bf1c2a36fc91f90d1f75c25e parent 96ecfc4edf6bdb535b4ae3d87db2ba7f91596dd8 author Mauro Carvalho Chehab Tue, 29 Aug 2006 22:07:03 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4553): Add support for saa7111 and partial support for saa7118 Signed-off-by: Mauro Carvalho Chehab commit 96ecfc4edf6bdb535b4ae3d87db2ba7f91596dd8 tree b4ba4231a0af8f658113d7015be875e56e6ce58f parent 236f16d241e16b269cd00ef0116975882f498be5 author Mauro Carvalho Chehab Mon, 28 Aug 2006 19:18:49 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4551): Added register aliases for saa711x registers, instead of using reg numbers Signed-off-by: Mauro Carvalho Chehab commit 236f16d241e16b269cd00ef0116975882f498be5 tree d49e3e780c490e2f165224568655dd63ceff26e4 parent 44b579d63678609a16265a0acdb6405fafd173d6 author Mauro Carvalho Chehab Mon, 28 Aug 2006 08:25:29 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4550): Make saa7115 to report the complete chipset name Signed-off-by: Mauro Carvalho Chehab commit 44b579d63678609a16265a0acdb6405fafd173d6 tree f93c5a55b6761b7afab62f6f828b06fe48d7c441 parent 299006612a811ba5acc92e2686f2e8b8bc10d4b7 author Hans Verkuil Sun, 27 Aug 2006 19:22:15 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4548): Better temporal filter handling. Adjust temporal filter if necessary. The problem with the temporal filter is that it works well with full resolution capturing, but not when the capture window is scaled (the filter introduces a ghosting effect). So if the capture window changed, and there is no updated filter value, then the filter is set depending on whether the new window is full resolution or not. For full resolution a setting of 8 really improves the video quality, especially if the original video quality is suboptimal. Also report VBI Format in VIDIOC_LOG_STATUS, it was missing. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 299006612a811ba5acc92e2686f2e8b8bc10d4b7 tree d80813b510a850d1053500212d9c33eb5116b4df parent 784e8fe417d45b526eeb74794b7df43e11000f70 author Hans Verkuil Sat, 26 Aug 2006 05:00:12 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4547): Add YUV HM12 and VBI IVTV format documentation. README.hm12: documentation on the HM12 YUV format used by the cx23415/6 chip. README.vbi: documentation on the V4L2_MPEG_STREAM_VBI_FMT_IVTV VBI format used in MPEG streams. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 784e8fe417d45b526eeb74794b7df43e11000f70 tree d66c48b05d417eb9527a48601b1a86720feb60fb parent 1739adea321788e380794c1072c810d445090bca author Hans Verkuil Sat, 26 Aug 2006 03:17:58 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4546): Add u32 argument to VIDIOC_INT_RESET. The extra argument makes it possible to reset subsystems of a chip if that is supported. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 1739adea321788e380794c1072c810d445090bca tree ba646ed14da20a4c239d5806bb29c996cd41c933 parent d7304dee3b7e29e801ba59bbf9a47440c196263d author Hans Verkuil Sat, 26 Aug 2006 03:05:17 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4545): Add missing v4l2_buf_type to struct v4l2_sliced_vbi_cap. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d7304dee3b7e29e801ba59bbf9a47440c196263d tree d1b2149829323d79482a61aaf8a1cab8be4393d1 parent 62a7b3e2ada3a76f1a6887b537c07517e90f72dd author Trent Piepho Thu, 24 Aug 2006 22:43:45 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4533): Tda9887: add configuration setting for L standard PLL gating Add a tuner config parameter for TDA9887, default_pll_gating_18, that changes the L standard PLL gating value from 36% to 0% (datasheet says 0%, tda9887 code says 18%). Turn this on for Microtune 4049FM5, as recomended by tuner datasheet. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 62a7b3e2ada3a76f1a6887b537c07517e90f72dd tree e7c98e7ca7a2c8ad084ff657ad72a93429b0b62b parent fb6065bbd915f9cf6022d52e114f5078654834b5 author Trent Piepho Thu, 24 Aug 2006 22:43:16 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4532): Isl6421: Release callback installed incorrectly The release callback was installed in ops.release, it should have been ops.release_sec. This prevented to front-end release from getting called. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit fb6065bbd915f9cf6022d52e114f5078654834b5 tree 0717716f81a152e7fb0b3429a2c3abe69eb5a7a5 parent 559463bba8b91d36b12f6722dc27440567e4f6be author Patrick Boettcher Mon, 21 Aug 2006 08:21:52 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4530): Another fix for the PID parsing Still the pid_parse bit was erased. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 559463bba8b91d36b12f6722dc27440567e4f6be tree 5c9c113726832c80af6218d9adb940841c40cadd parent ded38d2806b508b0b0f95581c103958949403daf author Patrick Boettcher Sat, 19 Aug 2006 16:13:53 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4529): Keep the PID parse bit when resetting the output mode Matthieu Castet found that with the rewritten dib3000mc-driver the PID-parsing was handled correctly. This changeset fixes it. Thanks Matthieu Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit ded38d2806b508b0b0f95581c103958949403daf tree 94ea1249b0ab5a1fe49b5f20f3be04ee19d1cc61 parent 56760f07a7948d53b807c8f00c1639df9acf97fd author Jochen Issing Sat, 19 Aug 2006 16:03:21 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4528): PATCH: Club 3D zap250mini After some structural changes, here comes the updated patch for the Club 3D zap250mini USB dvb device. Adding support for a WideView-based device with a different "COLD" ID. Signed-off-by: Jochen Issing Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 56760f07a7948d53b807c8f00c1639df9acf97fd tree a894fb39271b09b5364959eb541d6298640e50d6 parent 1e805e679a4e92099c62cc952cd668a6c683e849 author Adrian Bunk Tue, 15 Aug 2006 11:38:40 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4525): Drivers/media/dvb/dvb-usb/dibusb-mb.c: NULL dereference The Coverity checker spotted the following "we dereference d->fe only when we know it's NULL" bug: <-- snip --> ... static int dibusb_dib3000mb_frontend_attach(struct dvb_usb_device *d) { ... if ((d->fe = dib3000mb_attach(&demod_cfg,&d->i2c_adap,&st->ops)) == NULL) { d->fe->ops.tuner_ops.init = dvb_usb_tuner_init_i2c; d->fe->ops.tuner_ops.set_params = dvb_usb_tuner_set_params_i2c; return -ENODEV; } ... <-- snip --> Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 1e805e679a4e92099c62cc952cd668a6c683e849 tree c2cdd803e99cc0fcca36623bb1ef601c417c89a1 parent 1450e6bedc58c731617d99b4670070ed3ccc91b4 author Mauro Carvalho Chehab Wed, 23 Aug 2006 16:51:43 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4523): Fix a warning caused by a typo (comma instead of dot-comma) Signed-off-by: Mauro Carvalho Chehab commit 1450e6bedc58c731617d99b4670070ed3ccc91b4 tree dbff352cc73f67934d1be60d6a2995f8cab038b5 parent 29adeee5340cb0de393330f962349ae88f747cea author Mauro Carvalho Chehab Wed, 23 Aug 2006 10:08:41 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4519): Fixes Helper module dependencies against V4L APIs Signed-off-by: Mauro Carvalho Chehab commit 29adeee5340cb0de393330f962349ae88f747cea tree f2b0a6b47f8e73ca85bd5d13a186f30ad162f611 parent faa1cb2039141030c7179b530ea4c63246847bc3 author Mauro Carvalho Chehab Thu, 31 Aug 2006 15:31:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:34 -0300 V4L/DVB (4568): Added missing KS0197 Kconfig item Signed-off-by: Mauro Carvalho Chehab commit faa1cb2039141030c7179b530ea4c63246847bc3 tree a7714d8154f16c74be466b0cab2d720328389a66 parent fe9b5bb5e57a92df74bd7bc6a79a04671a65dddd author Mauro Carvalho Chehab Tue, 22 Aug 2006 18:49:17 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:33 -0300 V4L/DVB (4518): Allow manually selecting the proper helper drivers There are several boards on V4L that can work with several different helper modules for audio/video encoding/decoding and similar stuff. This patch adds the capability of choicing between autoselecting the pertinent helper modules for each driver, or to manually selecting them. Acked-by: Michael Krufky Acked-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit fe9b5bb5e57a92df74bd7bc6a79a04671a65dddd tree a9a17499d1c2342a2ceba66d3377455fdd088728 parent 6e40773a9b8fe196720b913cff31a346a39483e2 author Mauro Carvalho Chehab Tue, 22 Aug 2006 15:38:18 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:33 -0300 V4L/DVB (4516): Split audio/video encoders/decoders from main drivers Several audio/video encoders/decoders were just bound as if they were part of the core driver. In fact, they are generic enough to be used by other drivers as well, since they use I2C event bus to communicate. Signed-off-by: Mauro Carvalho Chehab commit 6e40773a9b8fe196720b913cff31a346a39483e2 tree 58277776658a5052805d2b77f993cf0b16852da2 parent b961b9c5a27da21f78b5e02c687db9cee259468e author Mauro Carvalho Chehab Tue, 22 Aug 2006 15:37:41 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4515): Fixed module name, since it is, in fact, a decoder. Signed-off-by: Mauro Carvalho Chehab commit b961b9c5a27da21f78b5e02c687db9cee259468e tree e3cf2d7517e1c4f9b0a13d5ad6b992b4af0c44d5 parent 897ea1307b40a17cb2d6b8d458eaa1573bf1a45e author Mauro Carvalho Chehab Tue, 22 Aug 2006 12:21:18 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4514): Add some comments for Kconfig encoders/decoders itens Signed-off-by: Mauro Carvalho Chehab commit 897ea1307b40a17cb2d6b8d458eaa1573bf1a45e tree add369021b910b1fd63b0159880ec0733df7bee4 parent f70a7a918adeebe6be4a72742bff9399210c7541 author Mauro Carvalho Chehab Fri, 01 Sep 2006 09:25:30 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4513): Split audio decoders from bttv Several audio decoders were just bound as if they were part of bttv driver. In fact, they are generic enough to be used by other drivers as well, since they use I2C event bus to communicate. Signed-off-by: Mauro Carvalho Chehab commit f70a7a918adeebe6be4a72742bff9399210c7541 tree 625dc8ecd917a4d5d197026f4d70a91e6044ac16 parent d084aa706761060940110279794e6a4e83785858 author Alexey Dobriyan Tue, 22 Aug 2006 09:57:24 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4512): Ks0127: wire up i2c_add_driver() return value Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit d084aa706761060940110279794e6a4e83785858 tree 8669af3857f5ef9e70f3261e3a8c0af9651518fc parent 3153d0d05d2b4e0466818e4f2319882010928d59 author Eric Sesterhenn Mon, 21 Aug 2006 10:36:36 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4510): Fix signedness error in drivers/media/video/vivi.c when checking the -Wextra signedness warnings issued by gcc 4.1 I came across this one: drivers/media/video/vivi.c:1001: warning: comparison of unsigned expression < 0 is always false Since videobuf_reqbufs() returns negative values on errors the current code does no real error checking since gcc removes the comparison. This patch fixes this issue by making ret a normal, signed integer. Signed-off-by: Eric Sesterhenn Signed-off-by: Mauro Carvalho Chehab commit 3153d0d05d2b4e0466818e4f2319882010928d59 tree 203ff231bd8c9055ad37d221126a52e59612aeba parent 0d0d871b3f3395820ec33a78fb2cc101b9bdcced author Mauro Carvalho Chehab Mon, 21 Aug 2006 09:04:14 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4509): Added missing copyright Several changes at register stuff were done since commit b45009b0288a96a3458f4f8e93cb776678d41875, but I've forgot to add the copyright line for this. Those changes allowed cx88 to have multiple tuners, allowing it to support hardware with separated radio and video tuners. It also allows binding a tuner to an specific i2c address. Signed-off-by: Mauro Carvalho Chehab commit 0d0d871b3f3395820ec33a78fb2cc101b9bdcced tree 272019d21a2dc5f3bbddee6c6c533dd666eb1149 parent eb42c42449b4d018881dc8f1856ce84cf74f90c5 author Mauro Carvalho Chehab Fri, 18 Aug 2006 07:40:28 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4508): Fix an array overflow on bt866 The Coverity checker spotted the following two array overflows. Registers 0xcc and 0xdc were cached on reg[] array, with only 128 elements, instead of 256. Signed-off-by: Mauro Carvalho Chehab commit eb42c42449b4d018881dc8f1856ce84cf74f90c5 tree 09d6cec024b45370cc64aa5b208bc34905146b1c parent 12500f07c6e179692ae3bd4d7bee9aa07ec74c25 author Mauro Carvalho Chehab Fri, 18 Aug 2006 07:31:22 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4507): Make tvp5150 an independent Kconfig item Signed-off-by: Mauro Carvalho Chehab commit 12500f07c6e179692ae3bd4d7bee9aa07ec74c25 tree 9233db90a08ad3851a872797f99cd6c3345c869c parent e738e35d1e9ae15b597c713e0b74e9a535020c0d author Mauro Carvalho Chehab Fri, 18 Aug 2006 07:31:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4506): TVP5150 routing logic were broken. As pointed by The Coverity checker, commit c7c0b34c27bbf0671807e902fbfea6270c8f138d broked input selection. Signed-off-by: Mauro Carvalho Chehab commit e738e35d1e9ae15b597c713e0b74e9a535020c0d tree b5bf56f45307ae39412add8a1c9b028b86763b6f parent 4e318bef68e819f001a3c8af65401891893d3d54 author Ricardo Cerqueira Thu, 17 Aug 2006 18:40:28 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4504): Enable audio DMA restart on channel change even when cx88-alsa is compiled cx88-alsa can be compiled in (in distro built kernels, for example), but not used. In those cases, the audio DMA restart is needed for proper sound on NICAM channels. This patch enables the DMA restart even with ALSA, but the functions now check if cx88-alsa is really active. Signed-off-by: Ricardo Cerqueira Signed-off-by: Mauro Carvalho Chehab commit 4e318bef68e819f001a3c8af65401891893d3d54 tree f01f2f11dc90f7f9161ef11b78d905f4059240d2 parent 0d7466146fa59cfa4b992a52cf274d603b475fd1 author Christoph Pfister Sat, 12 Aug 2006 09:13:35 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4501): Add support for knc one dvb-s plus with 1894:0011 Apparently there are two types of knc1 dvb-s plus cards with different tuners (as for the knc1 dvb-s ones). This patch adds support for those cards with subsystem id 1894:0011. Successfully tested by: Benjamin Weber Signed-off-by: Christoph Pfister Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 0d7466146fa59cfa4b992a52cf274d603b475fd1 tree 1bded65cdabe5d5ffa79c7f74797c0ac3f37f033 parent 17bc98a41ae0ef82bab502ec1f9224ec5fcbe764 author Andrew de Quincey Sat, 12 Aug 2006 09:09:44 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4500): Fix KNC1 DVBC support This actually needs the same configuration as the other DVBC cards; simply no one had managed to test before to find out. Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 17bc98a41ae0ef82bab502ec1f9224ec5fcbe764 tree 3a093d405afee0ee2ef33db097bae59459d5e05c parent 4d98816be7f3e2ffe90093a8e41074ea348289df author Alexey Dobriyan Sat, 12 Aug 2006 22:01:27 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4499): CONFIG_PM=n slim: drivers/media/video/* Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 4d98816be7f3e2ffe90093a8e41074ea348289df tree 5dc3d804cde5ef3221fa898de5631b535e0bcec6 parent d536e9c41f78c9959c585181f8a1e7fe8b157197 author Mauro Carvalho Chehab Sat, 12 Aug 2006 21:59:19 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4498): Offset parameter permission were 0x666, instead of 0x664 Although not dangerous, it may allow a normal user with access to a machine to untune a TV channel. Signed-off-by: Mauro Carvalho Chehab commit d536e9c41f78c9959c585181f8a1e7fe8b157197 tree b6d87415ba6952f80598a773bb937803dfb774ff parent fc3398d8b317bebe542f57c65572d9b9f52112f7 author Chris Pascoe Thu, 10 Aug 2006 03:22:21 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4497): Reset USB part of DViCO Dual Digital during PCI driver attach If the FX2 does not reset properly during reboot, it can present an invalid USB device ID and fail to attach. Prevent this situation from occuring by resetting the USB part of the card when the PCI part probes. Also fix the GPIO configurations so that analog capture will not inadvertantly reset the USB part. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit fc3398d8b317bebe542f57c65572d9b9f52112f7 tree 070706e3b365a5b8bef9017bd66624c8aa814597 parent 8fb957841b2f4311e6418dcbef24564e4cebb87d author Chris Pascoe Thu, 10 Aug 2006 03:17:42 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4496): Tuning tweaks for ZL10353 More register setup which improves the ZL10353's tuning characteristics. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit 8fb957841b2f4311e6418dcbef24564e4cebb87d tree fabf278b240514ba7c430c8f9352a95d387f92e7 parent b5b168d7b9e28e0569ed4fe2c0a44fae71df30b5 author Chris Pascoe Thu, 10 Aug 2006 03:17:16 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4495): Fix "no data from ZL10353 based USB tuner" problem Force parallel transport stream output on the ZL10353 attached to a bluebird device. Addresses the problem where a frontend lock was observed, but no MPEG transport data was received. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit b5b168d7b9e28e0569ed4fe2c0a44fae71df30b5 tree f09e1423be03ed91638925673c2f55b65cc550e7 parent 7df0994d7bda8eb30b459e31f8b6be97a8f1b0b0 author Oliver Endriss Tue, 08 Aug 2006 19:58:27 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:32 -0300 V4L/DVB (4493): [lnbp21] release callback fixed lnbp21 module must use fe->ops.release_sec, not fe->ops.release. The release function of the frontend driver was never called for cards with lnbp21... Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 7df0994d7bda8eb30b459e31f8b6be97a8f1b0b0 tree 652e40478c7e445ed00c6ffa65cdec8cf7526d3c parent a2b9e3e74a8edbc4a9d266cc54cd30266215fbdf author Oliver Endriss Tue, 08 Aug 2006 19:51:04 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4492): [dvb_attach] dvb_frontend_detach fix dvb_frontend_detach() used invalid config option CONFIG_DVB_DETACH, so dvb_frontend_detach() did not call symbol_put_addr(). Replaced CONFIG_DVB_DETACH by CONFIG_DVB_CORE_ATTACH. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit a2b9e3e74a8edbc4a9d266cc54cd30266215fbdf tree 6cee334481851e5b018573ffffdfb0ed39b842e0 parent 18795eb98d117dbb96fadfc17a7da44c93857fd6 author Trent Piepho Mon, 07 Aug 2006 20:01:01 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4490): Whitespace cleanup from whitespace cleaning script Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 18795eb98d117dbb96fadfc17a7da44c93857fd6 tree ca4a4209c302bac8d16d30f6eee85523db3a0c8e parent 40346b290fcbf95d17c05ffe5101a1b5de8af548 author Trent Piepho Mon, 07 Aug 2006 19:43:21 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4488): Fix possible crash in Hauppauge eeprom reading If an eeprom defined two tuners and they supported more than eight standards combined (as opposed to each), it would overflow an array. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 40346b290fcbf95d17c05ffe5101a1b5de8af548 tree 30a52eb8bc7cb30db8580fbba701ce9c7e6286d5 parent d591b9ccbe27fe974702411cff422fb6c6c62ad2 author Mauro Carvalho Chehab Tue, 08 Aug 2006 15:21:47 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4485): Fix a warning on PPC64 drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c: In function 'set_standard': drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c:33: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'v4l2_std_id' Signed-off-by: Mauro Carvalho Chehab commit d591b9ccbe27fe974702411cff422fb6c6c62ad2 tree 8e6a2b2b5b74dd8c15cd0198196fb6a0bc615864 parent c6d74c2ce86a80c9859010eb65e622214a6993ed author Andrew Morton Tue, 08 Aug 2006 10:52:22 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4484): Git-dvb: cadet build fix drivers/media/radio/radio-cadet.c: In function 'cadet_do_ioctl': drivers/media/radio/radio-cadet.c:362: warning: implicit declaration of function 'KERNEL_VERSION' Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit c6d74c2ce86a80c9859010eb65e622214a6993ed tree 89f6540555fc6e80c0d7af0c6f448fb0bdbe8758 parent 0e367a15ed08710098e2ff59aa25cec723c0a9d4 author Patrick Boettcher Sun, 06 Aug 2006 08:49:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4481): Make the dibx000-common-module GPL Forget to put the MODULE-define and thus to give the license. Now GPL Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 0e367a15ed08710098e2ff59aa25cec723c0a9d4 tree 23eef4fc0ea1a2943713524310fecfd122debdc4 parent ef76856d26087f897e163b9fd8b2f7bd0cd54fc7 author Dave Jones Mon, 07 Aug 2006 13:18:56 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:31 -0300 V4L/DVB (4480): Remove null chars from dvb names DVB null terminates its device names, which seems odd, and should be unnecessary. Acked-by: Alan Cox Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit ef76856d26087f897e163b9fd8b2f7bd0cd54fc7 tree aac68db3ea0572961b11a95c7b1daeeb6f384ce9 parent 8d90ee5e0e57b67e6e5c01cb14495fb69edccbbf author Yeasah Pell Tue, 26 Sep 2006 12:30:14 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 12:30:14 -0300 V4L/DVB (4479): LNB voltage control was inverted for the benefit of geniatech cards on Kworld 1) It sets LNBDCPol differently based on the card type. Now it should work properly for both the kworld and geniatech cards. 2) It stops returning an error for the SEC_VOLTAGE_OFF voltage command (the cx88-dvb level handles the actual voltage on/off, but it still passes the ioctl down to the cx24123 level, which previously rejected the OFF as invalid so the ioctl would report failure) Acked-by: Manu Abraham Signed-off-by: Yeasah Pell Signed-off-by: Mauro Carvalho Chehab commit 8d90ee5e0e57b67e6e5c01cb14495fb69edccbbf tree 9b6167cbfdba6d0bbc2d06f437352c17a7395322 parent d93f8860cc55504b376b38b95d22efeb3cc10edd author Oliver Endriss Mon, 07 Aug 2006 02:04:26 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:52 -0300 V4L/DVB (4478): [av7110] Support Grundig DVB-T tuner for sub-system 13c2:0001 Some DVB-T cards with Grundig 29504-401 tuner use subsystem id 13c2:0001 (reported by Stuart Butterfield). Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit d93f8860cc55504b376b38b95d22efeb3cc10edd tree 0e159ad8062ae6c5cc5fe4d8a8310f52324c4fe1 parent 8a36ecf0f4c0861330cc9e69885b0502fedac14a author Mauro Carvalho Chehab Sun, 06 Aug 2006 17:03:50 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:51 -0300 V4L/DVB (4477): Improve hardware algorithm by setting the appropriate registers Hardware algorithm needs to be configured to: 1) Increase timeout constants, to detect weaker signals; 2) do a wider zigzag search. Acked-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit 8a36ecf0f4c0861330cc9e69885b0502fedac14a tree 836f060155a82d633bd381a5cc82a0fc9a619b08 parent 3702627899db1d6a818c6e0b4ba5205f94bfbef4 author Mauro Carvalho Chehab Sun, 06 Aug 2006 10:16:27 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:51 -0300 V4L/DVB (4475): Fix most Compat32 stuff on V4L2 Tested on x64 with a bttv board. Most Get ioctls are fixed. The only non-completely working one is VIDIOCGAUDIO. All other IOR ioctls give the same results on x86_64 and i386 architectures. Thanks to Alastair Poole for part of this patch and tests on ppc64. Signed-off-by: Alastair Poole Signed-off-by: Mauro Carvalho Chehab commit 3702627899db1d6a818c6e0b4ba5205f94bfbef4 tree e572f177b0c75afd265a1db087b24ff4f15015f0 parent a202a5bfb6c1d7c778f67f28b5f2caac21beafce author Mauro Carvalho Chehab Sun, 06 Aug 2006 09:10:06 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:49 -0300 V4L/DVB (4474): On some cases, depth were not returned. Signed-off-by: Mauro Carvalho Chehab commit a202a5bfb6c1d7c778f67f28b5f2caac21beafce tree 203c1d70267ea81f0fa1a317c4a1e3152076ec54 parent 294d83d7fed1ba5a15b625500b96b3fbf60138ad author Patrick Boettcher Sun, 06 Aug 2006 06:40:58 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:49 -0300 V4L/DVB (4472): Remove debug-print from dib3000mc Removed and commented a small debug function. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 294d83d7fed1ba5a15b625500b96b3fbf60138ad tree 0c55ce17ad62161dd2babbaf4ab203e6057062e4 parent 0f69e7f3f5256ab392fc44e7340777348b5da2cd author matthieu castet Thu, 03 Aug 2006 06:36:17 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:48 -0300 V4L/DVB (4470): MT2060: turn on the VGA The VGA was not turned on after calling sleep. This lead to bad performance in difficult areas. Signed-off-by: matthieu castet Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 0f69e7f3f5256ab392fc44e7340777348b5da2cd tree e040cdc67b40267bd6fad668d62bcbb0810528c4 parent 4e66c97c9299d53f1d9167e42b05357f023099c8 author Patrick Boettcher Thu, 03 Aug 2006 06:04:16 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:48 -0300 V4L/DVB (4468): Another fix for attaching the DiB3000MC Another stupid fix for attaching the DiB3000MC. == 0 instead of != 0. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 4e66c97c9299d53f1d9167e42b05357f023099c8 tree 43e0ad4156bfe890a59b0bb2c54d8cec5ad886d8 parent a2c00a0eee751e298c916508b6fa5cee0d7d188d author Patrick Boettcher Tue, 08 Aug 2006 15:48:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:48 -0300 V4L/DVB: DiB3000MC: set FE to NULL after being freed DiB3000MC: set FE to NULL after being freed Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit a2c00a0eee751e298c916508b6fa5cee0d7d188d tree ec5abde1f2062847f10055f82b765d311b549ed4 parent 6c95f61bcb3bd8dde9efc70f0ae9a83a7b7ac9cd author Klaus Frahm Sat, 29 Jul 2006 18:49:36 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:47 -0300 V4L/DVB (4464): FIX_ AverTV A800 trouble A new revision of the Avermedia A800 does not reenumerate after download the firmware. Signed-off-by: Klaus Frahm Signed-off-by: Martin Habbecke Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 6c95f61bcb3bd8dde9efc70f0ae9a83a7b7ac9cd tree 690d1af20f01eba61267120743a61ac9869e6eb5 parent 5a19f312162abd1356cdcda608f2b13502a383cc author Patrick Boettcher Sat, 29 Jul 2006 18:24:21 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:47 -0300 V4L/DVB (4463): New firmware for Nova-t-usb2 Thomas Rokamp and others are reporting: "I have now with success extracted a working firmware for the 93004 rev. C1A2." This patch increments the firmware version to 2. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 5a19f312162abd1356cdcda608f2b13502a383cc tree ec54b98becf8e47f215587f33e26784fc4011732 parent 42afd061700edb43bb082bc65a2ddde431151d6b author Patrick Boettcher Wed, 02 Aug 2006 08:44:31 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:47 -0300 V4L/DVB (4465): Attach the dib3000mc correctly Flynn Marquardt found out that there is problem with the new dib3000mc-driver when using with the real dib3000mc. It resulted in a segfault. Fixed two things: use the correct I2C address and do not attach a tuner, when the demod was previously failing. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 42afd061700edb43bb082bc65a2ddde431151d6b tree b8d6331b47c158f29c8271e6d8e58a256937f35a parent b7571f8d7e12cd70048331e6a0199a42dc995d99 author Patrick Boettcher Sat, 29 Jul 2006 17:33:44 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:46 -0300 V4L/DVB (4461): Added missing dibx000-common code and headers The first commit omitted the common-code and header-files. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit b7571f8d7e12cd70048331e6a0199a42dc995d99 tree 5a536abb2530f3bec89666ddebc457b35a1aba37 parent 74340b0a8bc60b400c7e5fe4950303aa6f914d16 author Patrick Boettcher Tue, 08 Aug 2006 15:48:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:46 -0300 V4L/DVB: Complete rewrite of the DiB3000mc-driver A complete rewrite of the DiB3000MC/P driver has been done. It is now much more easy to maintain and to get improvements inside. Additionally the tuning time has been reduced and the usage of the driver is much more understandable now. Signed-off-by: Patrick Boettcher Signed-off-by: Francois KANOUNNIKOFF Signed-off-by: Mauro Carvalho Chehab commit 74340b0a8bc60b400c7e5fe4950303aa6f914d16 tree 1cf35a926b7cc63d3c5174d179bdf05eaa2d7ea8 parent 46f73f936665ab26c8501634e6aa34464fcc1521 author Patrick Boettcher Tue, 04 Jul 2006 13:47:16 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:45 -0300 V4L/DVB (4457): Remove dib3000-common-module removing the dib3000-common-module. The common stuff is not common anymore - it will be only used by the 3000mb-driver. A new 3000mc/p-driver will be added which will share common stuff with dib7000. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 46f73f936665ab26c8501634e6aa34464fcc1521 tree 540ad8149d7460f0d0adf90c9294bc3e59716bf0 parent 83fa907963662ecaade803cec4c9c3e14b69ad7d author Olivier DANET Tue, 08 Aug 2006 15:48:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:45 -0300 V4L/DVB: Update for MT2060 to use dvb_tuner_ops new tuner api minor fixes for tuning Signed-off-by: Olivier DANET Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 83fa907963662ecaade803cec4c9c3e14b69ad7d tree 56b1fa4a46c84c443fe6d61f7db8692dd17ab33b parent 825d51ef9ed956d896244f82b02988d370a7e47e author Patrick Boettcher Sun, 14 May 2006 10:49:42 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:43 -0300 V4L/DVB (4454): Corrected debugging output of the mt2060 When debugging was disabled at lot of empty lines where printed anyway. Reported by Rolf Ahrenberg and Sergei Haller. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 825d51ef9ed956d896244f82b02988d370a7e47e tree 40d3b77300b4fe46ba2a56ad3121bd533550abde parent a841e1f6d153c72e29802a33520f2c862792f7b0 author Patrick Boettcher Tue, 08 Aug 2006 15:48:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:43 -0300 V4L/DVB: MT2060: Code cleanups, adding to new build-mechanism Some minor code cleanups and added the MT2060 to new v4l-dvb-build-system, preliminarily under dvb/frontends. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit a841e1f6d153c72e29802a33520f2c862792f7b0 tree 6729a39150b74fd1fd8f75ded1b9e409995d33fa parent 4de2730a1d2742aea67f24d1041bdc5e0bad37e3 author Sergei Haller Sun, 14 May 2006 10:47:21 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:42 -0300 V4L/DVB (4453): [PATCH] dibcom mod3000p + mt2060 -- remote control + Added support for the remote control shipped with the pen drive size DVB-T receiver [ID 10b8:0bc7 DiBcom DiBcom USB2.0 DVB-T reference design (MOD3000P)] Signed-off-by: Sergei Haller Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 4de2730a1d2742aea67f24d1041bdc5e0bad37e3 tree 25cd8c6aa973e31fa5c1f5dc6f786493fe116794 parent d7357a53ef4d59724ad80560e47102e0095555b6 author Patrick Boettcher Mon, 17 Apr 2006 13:22:15 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:42 -0300 V4L/DVB (4451): MT2060: IF1 Offset from EEPROM, several updates - AGC gain set to 3 - The tuning sequence has been changed to match the DibCom driver ( from I2C spy captures ) - For LITE-ON adapters : The IF1 frequency is now tuned according to the calibration values stored in EEPROM. Signed-off-by: Patrick Boettcher Signed-off-by: Olivier DANET Signed-off-by: Mauro Carvalho Chehab commit d7357a53ef4d59724ad80560e47102e0095555b6 tree 6d69ac7f50fd5b6fb4d0954e59056cce1c4928d4 parent cb25a74d49f3589c7868422ec48d219246a4fca4 author Olivier DANET Tue, 08 Aug 2006 15:48:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:42 -0300 V4L/DVB: Added support for LeadTek DVB-T USB clone Adding the USB ids for the LeadTek clone of the STK3000P-ref-design. Signed-off-by: Olivier DANET Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit cb25a74d49f3589c7868422ec48d219246a4fca4 tree 72e003439d36f95fb148f666e136e13fccfb6d57 parent e4d6c1f74aaac1bbe5be50e7368e5ac99d54e5a2 author Patrick Boettcher Fri, 31 Mar 2006 18:48:39 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:41 -0300 V4L/DVB (4446): Add support for the Artec T14 Adding the USB IDs to dibusb-mc.c for the Artec T14 USB Stick based on STK3000P reference design. Thanks to Thomas Rabe testing. Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit e4d6c1f74aaac1bbe5be50e7368e5ac99d54e5a2 tree df1106a211770b6c5c13ae32703cece73ef0e6fe parent a16bf5d5603184dc1db88f37051881b2eeacfd17 author Patrick Boettcher Tue, 08 Aug 2006 15:48:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:41 -0300 V4L/DVB: Cleanups for mt2060-integration - some coding style fixes for newly added mt2060 - moved agc-config from fixed values in dib3000mc to configurable ones - whitespace clean-ups for usb-id-file Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit a16bf5d5603184dc1db88f37051881b2eeacfd17 tree dbb50cc4d2e8ec9d7e57853e391181735b2ae809 parent 47922e9c3f583adf05a23842ff98f3b0bf7eec6d author Olivier DANET Tue, 08 Aug 2006 15:48:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:41 -0300 V4L/DVB: Adding support for MT2060 and thus for some DVB-USB-devices based on it - MT2060 tuner driver - Added support for some USB DVB-T devices based on Dib3000P Signed-off-by: Olivier DANET Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit 47922e9c3f583adf05a23842ff98f3b0bf7eec6d tree 7720aab123aa6ae63d96026dc9d51079d7cfd4e8 parent f7b54b1067bc0ccc6a2a2051f039ce630083f927 author Chris Pascoe Sat, 05 Aug 2006 23:47:16 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:40 -0300 V4L/DVB (4441): Flexcop/nxt200x attach fix Address another case where the test in dvb-pll to see if a tuner's PLL responds when attaching may fail. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit f7b54b1067bc0ccc6a2a2051f039ce630083f927 tree 9320e72a998547079c7d1f13d5ac16f3f87fb1bb parent 4ad8eee5ac8d8336ac7965e4a4027a7b4ec080f1 author Michael Krufky Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:40 -0300 V4L/DVB (4439): Whitespace cleanups for cx88-dvb and saa7134-dvb This patch cleans up some whitespace problems after the dvb_attach changes in cx88-dvb.c and saa7134-dvb.c, and converts some capitalized i2c address constants to lowercase. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4ad8eee5ac8d8336ac7965e4a4027a7b4ec080f1 tree 3ded043f9341c69ac72a761c9213cfd5e5d33cae parent c162dff6437d5f66c272b1811074ee32c53d17b9 author Michael Krufky Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:40 -0300 V4L/DVB (4438): Fix dvb_pll_attach for nxt2004-based cards The test in dvb-pll to see if a tuner's PLL responds when attaching fails on NXT2004 based boards before the firmware is loaded. This patch allows us to avoid this test by not passing an I2C bus handle to the dvb_pll_attach routine, just as Chris Pascoe has done for MT352 and ZL10353 based boards when used in cx88-dvb. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit c162dff6437d5f66c272b1811074ee32c53d17b9 tree b9bdc3002c5ab742a1ca2fe6e9b9db36cd31d90e parent 174ff219b7e3212f701f70c71860894716b0045b author Chris Pascoe Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:38 -0300 V4L/DVB (4436): Dvb-pll support for MT352/ZL10353 based tuners. Typical wiring of MT352 and ZL10353 based tuners differs from dvb-pll's expectation that the PLL is directly accessible. On these boards, the PLL is actually hidden behind the demodulator, and as such can only be accessed via the demodulator's interface. It was failing to communicate with the PLL during an attach test and subsequently not connecting the tuner ops. By passing a NULL I2C bus handle to dvb_pll_attach, this accessibility check can be bypassed. Do this for the affected boards. Also fix a possible NULL dereference at sleep time, which would otherwise be exposed by this change. Signed-off-by: Chris Pascoe Acked-by: Andrew de Quincey Acked-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit 174ff219b7e3212f701f70c71860894716b0045b tree 41f34cae5fa75d19c89238b9ad66a786543be58d parent 18c053b3c5414c385f4a67134fd963b98881aa0d author Yeasah Pell Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:38 -0300 V4L/DVB (4435): HW algo Change this card to use HW ALGO tuning Signed-off-by: Yeasah Pell Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit 18c053b3c5414c385f4a67134fd963b98881aa0d tree 007fbce6362062683a0b041903e3bc345f89b97f parent d12a9b911c793ab5b6b02379880efd6fa3499575 author Yeasah Pell Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:38 -0300 V4L/DVB (4434): Change BER config Change the bit error counter configuration to be the actual BER. Originally it was reporting UCB. Signed-off-by: Yeasah Pell Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit d12a9b911c793ab5b6b02379880efd6fa3499575 tree db64aeddc0248527994454f46f86005efbea7005 parent bbdd11fa957913d6648cabbca59be1da479180ed author Yeasah Pell Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:37 -0300 V4L/DVB (4433): Soft decision threshold Set the Soft decision threshold properly for the specified FEC Signed-off-by: Yeasah Pell Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit bbdd11fa957913d6648cabbca59be1da479180ed tree 48d00e950c54a6cb1d04c3eba4e742a0c829ad9e parent e4a49d76ca4e2c0b2b4c89d59d43486d781ffe95 author Manu Abraham Tue, 08 Aug 2006 15:48:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:37 -0300 V4L/DVB (4432): Fix Circular dependencies Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit e4a49d76ca4e2c0b2b4c89d59d43486d781ffe95 tree 9700761b6dbaa14c008d5c8d38eaeb6223a7158d parent 17aafcc67feb359820488ffb0017405ad48b776e author Andrew de Quincey Tue, 08 Aug 2006 15:48:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:37 -0300 V4L/DVB (4428): Fix tda826x detection The tda826x detection was (correctly) cleaned up earlier, but unfortunately changing the number of received i2c messages from 2 -> 1 was missed. This fixes it. Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 17aafcc67feb359820488ffb0017405ad48b776e tree 69ebf18371155505ecda8ed50f7ef29144b63520 parent 0518999c5fd640bfac24c7c452e902007b1a2b0a author Andrew de Quincey Tue, 08 Aug 2006 15:48:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:36 -0300 V4L/DVB (4424): Add missing dvb-pll Kconfig infrastructure Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 0518999c5fd640bfac24c7c452e902007b1a2b0a tree 46ed3f693926e365d55bd4f053d621d34271dc18 parent b23056ef373c27a3bd089b40f45f4bc74674e71c author Mauro Carvalho Chehab Tue, 08 Aug 2006 15:48:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:36 -0300 V4L/DVB (4422): Improved comment for AR device and fix some typos Signed-off-by: Mauro Carvalho Chehab commit b23056ef373c27a3bd089b40f45f4bc74674e71c tree bff1e28bfead771094b63240e120a5bb6708e3b3 parent 704fd4a5672a5447a7f177838236eb13232be3c1 author Mauro Carvalho Chehab Tue, 08 Aug 2006 15:48:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:36 -0300 V4L/DVB (4421): V4L2 Conversion: saa5246a, saa5249, vino, hexium_orion, hexium_gemini Just a few adjustments were required on those drivers to be V4L2 compliant. Signed-off-by: Mauro Carvalho Chehab commit 704fd4a5672a5447a7f177838236eb13232be3c1 tree 6c8823e2bdb60cabb0e4b06c8b1d4a4d60689910 parent 56b8df11345452103a75060a44429751ce71ee97 author Hans Verkuil Tue, 08 Aug 2006 15:48:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:35 -0300 V4L/DVB (4417): Add support for PAL-Nc in cx24850. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 56b8df11345452103a75060a44429751ce71ee97 tree 7ab323b3043c735365aad60557309cd094c19f7e parent 5aff308c5e73307fc495b89b6421b491f56d3657 author Dmitry Torokhov Tue, 08 Aug 2006 15:48:06 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:33 -0300 V4L/DVB (4413): Konicawc - handle errors from input_register_device() Compile-tested only (no hardware) Signed-off-by: Dmitry Torokhov Signed-off-by: Mauro Carvalho Chehab commit 5aff308c5e73307fc495b89b6421b491f56d3657 tree a7e46e5d1d0274532a97a67efb1865f785fe97bf parent c0c7fa096623c0cfdd9d253de9d874558066cdbb author Alan Cox Tue, 08 Aug 2006 15:47:50 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:33 -0300 V4L/DVB (4410): Cleanups and fixes for dsbr100 Signed-off-by: Alan Cox Signed-off-by: Mauro Carvalho Chehab commit c0c7fa096623c0cfdd9d253de9d874558066cdbb tree 7a6fff35c6b6ba9367b1aabcbfbf5716b932eab9 parent 176ac9da4f09820a43fd48f0e74b1486fc3603ba author Hans J. Koch Tue, 08 Aug 2006 09:10:12 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:32 -0300 V4L/DVB (4406): Convert radio-cadet to V4L2 API This is a card with RDS capabilities. RDS specifications didn't change from V4L1 to V4L2, so that part should be OK. This patch changed the following stuff: * The device can be opened multiple times. That's necessary because there are at least a radio application and an RDS application (rdsd) that want to open() the device. * Added a poll() function. Every character device should have that, and rdsd expects it as it uses select() on that file descriptor. * Converted the ioctls to V4L2. MUTE is not implemented correctly as the card doesn't seem to have a special bit for that. Probably there are a few more ioctls that should at least return 0 or an error. As I do not own such a card, I couldn't test anything. If there is anybody out there who owns such an ancient card, please test and report. I just checked that the code compiles. Signed-off-by: Hans J. Koch Signed-off-by: Mauro Carvalho Chehab commit 176ac9da4f09820a43fd48f0e74b1486fc3603ba tree 2c5ec74afc41c944a931cc2b20790c0915303702 parent 8b9a46647b965f7033c198dd5e73d58b10e22a21 author Andrew de Quincey Tue, 08 Aug 2006 09:10:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:32 -0300 V4L/DVB (4405): Add missing KConfig I2C dependencies This was breaking the build if i2c was not previously set Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 8b9a46647b965f7033c198dd5e73d58b10e22a21 tree 1f162c9868f0473524a60d65ee8c66b29e2f2588 parent 2b100e7d3c448dd369cf36ff38844b2440fab49d author Andrew de Quincey Tue, 08 Aug 2006 09:10:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:32 -0300 V4L/DVB (4403): Use dprintk in tda826x. As opposed to printk() at the moment, which will fill logs uselessly Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 2b100e7d3c448dd369cf36ff38844b2440fab49d tree 05470e0f348611854e820915a23868cb5fccf438 parent 07e19c20c8cdd5e1cc96e0bc8a37f5322ce78cdb author Andrew de Quincey Tue, 08 Aug 2006 09:10:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:31 -0300 V4L/DVB (4402): Fix budget-ci to use dvb_frontend_detach() I missed one call during the dvb_attach() development. Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 07e19c20c8cdd5e1cc96e0bc8a37f5322ce78cdb tree 4e670c89ffd3d2e571fb1121ad5e490a195dfb35 parent ef09c071a2867279a49374c35b2a169f69fced73 author Andrew de Quincey Tue, 08 Aug 2006 09:10:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:31 -0300 V4L/DVB (4401): Disable tda10086 debug by default. Left on by accident. Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit ef09c071a2867279a49374c35b2a169f69fced73 tree e25248b7a8b82adede8a60b15c985a904e3a5863 parent e2ac28fa15696d3d9dc38923438ad39fe1235ecd author Trent Piepho Tue, 08 Aug 2006 09:10:11 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:31 -0300 V4L/DVB (4400): Tda826x: Remove 0-byte I2C write; put tuner_ops info in static struct Remove the 0-byte write that precedes 2-byte read. Move initialize the info field in the static tuner_ops definition, so that it doesn't need to be done manually. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit e2ac28fa15696d3d9dc38923438ad39fe1235ecd tree a6664aca84160e6ada67ca852180e08e435d63a8 parent adc619ac6e3d3b4a175476b915befe37650ee109 author Igor M. Liplianin Tue, 08 Aug 2006 09:10:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:30 -0300 V4L/DVB (4398): Add support for Acorp TV134DS + FlyDVB-S cards. Add support for Acorp TV134DS and FlyDVB-S cards (both based on tda10086+tda826x) Signed-off-by: Igor M. Liplianin Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit adc619ac6e3d3b4a175476b915befe37650ee109 tree 5f14b4ad77b4bc8fa5d9877f215505d79d14bdec parent 6bca3580c3303451b65afc98276edf40628dffe0 author Andrew de Quincey Tue, 08 Aug 2006 09:10:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:30 -0300 V4L/DVB (4397): Add tda10086 support for TT DVB-S-1401 Add the necessary code and makefile infrastructure Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 6bca3580c3303451b65afc98276edf40628dffe0 tree 95e9e6dd94ebaa2b286b6119e627306dc20ee470 parent 2cd885aa0f35e9329292e5be2a6c9d424bba5531 author Andrew de Quincey Tue, 08 Aug 2006 09:10:10 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:30 -0300 V4L/DVB (4396): Add drivers for tda10086 + tda826x chips TDA10086 is a new DVB-S demodulator TDA826x is a DVB-S Silicon Tuner Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 2cd885aa0f35e9329292e5be2a6c9d424bba5531 tree 043225875dfc93f14945ff47410efd1e22572370 parent 0912ad0b0fdee374f1f49d75fee341980f0868b6 author Andrew Morton Tue, 08 Aug 2006 09:10:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:29 -0300 V4L/DVB (4394): Git-dvb: radio-sf16fmi build fix drivers/media/radio/radio-sf16fmi.c: In function 'fmi_do_ioctl': drivers/media/radio/radio-sf16fmi.c:147: warning: implicit declaration of function 'KERNEL_VERSION' Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 0912ad0b0fdee374f1f49d75fee341980f0868b6 tree 9845dc4c6e64d7964f1e7d3bcb7606a128f51711 parent f52a838b74be70b4054ab27e435e9acb92d8c50a author Andrew de Quincey Tue, 08 Aug 2006 09:10:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:29 -0300 V4L/DVB (4392): Fix dst_ca attach Move the call to dst_attach into the dst_attach function to eliminate problems caused with dvb_attach. Signed-off-by: Andrew de Quincey Acked-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit f52a838b74be70b4054ab27e435e9acb92d8c50a tree 81b9b3dff85a069781244636c0a4cf29f0220d86 parent 2a514dea5fda67958c79f5137d4dcb272f8561e8 author Andrew de Quincey Tue, 08 Aug 2006 09:10:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:29 -0300 V4L/DVB (4391): Refactor dvb_detach calls into a single dvb_frontend_detach function. Remove buggy dvb_detach() macro and replace with unified dvb_frontend_detach() call. Signed-off-by: Andrew de Quincey Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 2a514dea5fda67958c79f5137d4dcb272f8561e8 tree f8909c2b622d7a4dbd51ed73017c1c4101507ca8 parent 1f10c7afa1ac611c32ec4a2114788876a3f5d05e author Andrew de Quincey Tue, 08 Aug 2006 09:10:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:26 -0300 V4L/DVB (4389): Remove duplication _release() op. I added a duplicate method during one of the previous dvb_attach attempts. This removes the unnecessary duplication. Signed-off-by: Andrew de Quincey Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 1f10c7afa1ac611c32ec4a2114788876a3f5d05e tree 0021db082b7f7b9c18448bcef9dd3a099cabe1df parent 102a342bb9672f67a34fd185803aaded4ce8dd0f author Andrew de Quincey Tue, 08 Aug 2006 09:10:09 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:26 -0300 V4L/DVB (4388): Remove frontend selection from cx88/saa7134 drivers Replaced with dvb_attach() Signed-off-by: Andrew de Quincey Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 102a342bb9672f67a34fd185803aaded4ce8dd0f tree 2dffbcbe618d16036c5e3227e8bd003714553b0b parent 2bfe031df6bd5e3b8e503eba8e3b6461d7c2c27e author Andrew de Quincey Tue, 08 Aug 2006 09:10:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:25 -0300 V4L/DVB (4387): Add Kconfig infrastructure for dvb_attach Allow it to be en/disabled Disable it in < 2.6.17 due to symbol_xxx() bug Signed-off-by: Andrew de Quincey Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 2bfe031df6bd5e3b8e503eba8e3b6461d7c2c27e tree 2d7288c2221fb6f7ef98ef7a1ee3fef3f04cf87e parent d995506062c974133ba66d0822e58a923d4d74d9 author Andrew de Quincey Tue, 08 Aug 2006 09:10:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:25 -0300 V4L/DVB (4386): Convert DVB devices to use dvb_attach() Only devices using > 1 frontend were ported; ones which did not are left using static binding. Signed-off-by: Andrew de Quincey Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit d995506062c974133ba66d0822e58a923d4d74d9 tree 160bfd17a7c96276f3543960c66b9d46b559d98d parent c10d14d62d7b7596fd5c7bb8aad3f2b56f8640e6 author Andrew de Quincey Tue, 08 Aug 2006 09:10:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:24 -0300 V4L/DVB (4385): Add dvb_attach() macro and supporting routines Add dvb_attach() macro and supporting routines Signed-off-by: Andrew de Quincey Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit c10d14d62d7b7596fd5c7bb8aad3f2b56f8640e6 tree f66723500fbc0414742f14411cd64dd6d9a336a0 parent 13fef9335f4fe2a73e1733f8807e69711736faef author Andrew de Quincey Tue, 08 Aug 2006 09:10:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:24 -0300 V4L/DVB (4384): Remove remaining static function calls Rewrote _write() calls to use write() op. Signed-off-by: Andrew de Quincey Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 13fef9335f4fe2a73e1733f8807e69711736faef tree 499ccb23b708e265517388cfce80d4b25a2e315d parent 94cbae5a1a1537ef5a402199f597e84dc5dd92cb author Andrew de Quincey Tue, 08 Aug 2006 09:10:08 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:23 -0300 V4L/DVB (4383): Convert SEC drivers to new frontend API Convert SEC drivers to new frontend API Signed-off-by: Andrew de Quincey Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 94cbae5a1a1537ef5a402199f597e84dc5dd92cb tree 1e664f5b950aa70f04721e149f0a099291a94586 parent 0e957becc3d22bcdab550aadac36893c8e0cb36e author Andrew de Quincey Tue, 08 Aug 2006 09:10:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:23 -0300 V4L/DVB (4382): Dvb_attach modifications to dvb frontend structures Add write() op Add release_sec() op Add change misc_priv->sec_priv data field Acked-by: Michael Krufky Acked-by: Trent Piepho Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab commit 0e957becc3d22bcdab550aadac36893c8e0cb36e tree 9b286200f9d8e010838ec4febccffd30c5d60288 parent 094ddbe9506706187b58df91d64695547a807916 author Adrian Bunk Tue, 08 Aug 2006 09:10:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:23 -0300 V4L/DVB (4378): Ttpci/: remove unneeded #include 's Since av7110.c is the only file actually using something from this header, there's no reson for other files to Signed-off-by: Adrian Bunk Signed-off-by: Mauro Carvalho Chehab commit 094ddbe9506706187b58df91d64695547a807916 tree d597d8071ac4f6d840fceed2578d91e821d5a40f parent 89ebd63fdddc83fabb5cc751d0e59a1350c1627c author Mike Isely Tue, 08 Aug 2006 09:10:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:22 -0300 V4L/DVB (4377): Force horizontal resolution limits in the pvrusb2 driver This change causes the pvrusb2 driver to limit horizontal resolution to be only 720 if 24xxx device hardware is being used. This is a workaround for an unsolved problem in the driver where if the resolution is set to something other than 720 the video quality will be _seriously_ degraded. It only happens on 24xxx devices (29xxx are unaffected by the problem and unaffected by this change). Once the problem is finally solved, this small change can be removed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 89ebd63fdddc83fabb5cc751d0e59a1350c1627c tree c5d3956965dbb8b62cf9f06f480b06a7e58274fe parent e95a191566685530ef49b702bbce0a33c57c3136 author Mike Isely Tue, 08 Aug 2006 09:10:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:20 -0300 V4L/DVB (4376): Make it possible for run-time calculation of control min/max in pvrusb2 The internal control implementation in the pvrusb2 driver normally encodes integer range limits using literal values in a const structure. This change adds two function pointers, which if not null will be called through in order to determine integer min / max values. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit e95a191566685530ef49b702bbce0a33c57c3136 tree 1972930857eb33239234e1f62c7cd4f70550a12d parent 434449f4c8902198e6fa90023f60395230f36c23 author Mike Isely Tue, 08 Aug 2006 09:10:07 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:20 -0300 V4L/DVB (4375): Eliminate hardcoded limits in VIDIOC_[S|TRY]_FMT for pvrusb2 The pvrusb2 implementation for VIDIOC_[S|TRY]_FMT was hardcoding limits on the range for allowed resolution, but it would be much better if we instead just queried the internal control for these values. This then opens the door for the driver to adjust these limits based on the detected hardware. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 434449f4c8902198e6fa90023f60395230f36c23 tree 0e42af806f2aadc8b7a6951e58ad9f7ada6a480c parent 1ddf5bc5472f4a45b00bee33fc8c96d4616f8561 author Mike Isely Tue, 08 Aug 2006 09:10:06 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:20 -0300 V4L/DVB (4372): Clean up some post mpeg-controls issues in pvrusb2 Fix a few miscellaneous issues in the pvrusb2 driver related to use of the new mpeg controls. This also should fix problems involving update of the saa7115 / cx25840 configuration as control changes are made. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 1ddf5bc5472f4a45b00bee33fc8c96d4616f8561 tree c5606107caff43dec6f1e8178ac62be71a874af5 parent 3ca57169ce979be1919b013230940bb5c7b3ba5d author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:06 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:19 -0300 V4L/DVB (4371): Included missing linux/version.h Signed-off-by: Mauro Carvalho Chehab commit 3ca57169ce979be1919b013230940bb5c7b3ba5d tree b48cba783e2e257ba3618d749af8da589db0e125 parent 22694c0c38ba023c6535f6b5b7925f9fb7a868fd author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:06 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:19 -0300 V4L/DVB (4370): Fix some typos on ioctl handling function Signed-off-by: Mauro Carvalho Chehab commit 22694c0c38ba023c6535f6b5b7925f9fb7a868fd tree e6b676427f66611f22a6552a8ef31d8d3db5c7db parent e84fef6b4a9d36fea53354633c590a7800d9fd83 author Trent Piepho Tue, 08 Aug 2006 09:10:05 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:19 -0300 V4L/DVB (4366): Remove of couple of useless lines A buffer was set just before an if block, and then again in both branches of the if. Obvious coding error. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit e84fef6b4a9d36fea53354633c590a7800d9fd83 tree f39ad93c025da16767e7f9086cccf40480981fb3 parent 982eddb911b772295d5efc11f7c2b34c7fd6e60e author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:05 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:18 -0300 V4L/DVB (4364): V4L2 conversion: radio-maxiradio Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit 982eddb911b772295d5efc11f7c2b34c7fd6e60e tree a2b44c258e172b246416d391d6ff061ded5dc268 parent 2acadefa311b480864d686fb3f7e5f79737d0187 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:05 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:18 -0300 V4L/DVB (4363): V4L2 conversion: radio-trust Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit 2acadefa311b480864d686fb3f7e5f79737d0187 tree 3fdae4ed7658c78dbe3713b74c76fc8c363b0cf3 parent d1009bd733a9324baff74611e0635e17fce4dfa2 author David Bussenschutt Tue, 08 Aug 2006 09:10:05 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:17 -0300 V4L/DVB (4362): Cx88: Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann PCI TV Tuner card support Add support for Shenzhen Tungsten Ages Tech TE-DTV-250 OEM for Swann PCI TV Tuner Card Signed-off-by: David Bussenschutt Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit d1009bd733a9324baff74611e0635e17fce4dfa2 tree 1a24068f7ad17615b950717514d7996a1f136d5f parent 5dbaa2cb757545f8238319d55aa75cc8fabc8212 author Peter Naulls Tue, 08 Aug 2006 09:10:05 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:17 -0300 V4L/DVB (4361): Cx88: add support for Norwood PCI TV Tuner (non-pro) This patch adds support for Norwood PCI TV Tuner (non-pro) Signed-off-by: Peter Naulls Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 5dbaa2cb757545f8238319d55aa75cc8fabc8212 tree 36f863178a58a892f29bb2edd2e4be0ac1f08dc3 parent ad10c930e8857585cc316e96c15f02b42020bac6 author Michael Krufky Tue, 08 Aug 2006 09:10:04 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:17 -0300 V4L/DVB (4360): Cx88: add autodetection support for AverMedia M150-D This patch adds autodetection support for the AverMedia M150-D blackbird MPEG encoder / analog video capture card. This board is known to work with the ASUS PVR 416 configuration. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit ad10c930e8857585cc316e96c15f02b42020bac6 tree 58432135a77cf51b1f73fe0611b6a1904e520d1c parent 2ab652993623954c7bfdadeba311d15a3e1494c0 author Eric Thomas Tue, 08 Aug 2006 09:10:04 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:15 -0300 V4L/DVB (4359): Cx88: add initial support for Hauppauge HVR3000 trimode card add initial support for Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T only analog is working for now Signed-off-by: Eric Thomas Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 2ab652993623954c7bfdadeba311d15a3e1494c0 tree d8098db596ffbed25bf83a0fea296a201d0124f0 parent 30c48305ba3e785cef33ff90efcbf5d9bdc3cffe author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:04 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:15 -0300 V4L/DVB (4358): V4L2 conversion: radio-zoltrix Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit 30c48305ba3e785cef33ff90efcbf5d9bdc3cffe tree 282c043421682038d0590d98c70638dc875b6f60 parent 55ac7b690f086112ab8ac35764189269cdfae768 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:04 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:14 -0300 V4L/DVB (4357): V4L2 conversion: radio-typhoon Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit 55ac7b690f086112ab8ac35764189269cdfae768 tree 9b036219a82f747049120adee626013338af2910 parent acda0e71857c8ec4e5348d08b53a52d35b92e6aa author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:03 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:14 -0300 V4L/DVB (4356): V4L2 conversion: radio-terratec Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit acda0e71857c8ec4e5348d08b53a52d35b92e6aa tree 1e54fff32a3220be7cbd832d574410c31d5427d8 parent fa38ad6592558660086e8ed4b12e5fdf90e78f90 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:02 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:14 -0300 V4L/DVB (4355): V4L2 conversion: radio-sf16fmr2 Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit fa38ad6592558660086e8ed4b12e5fdf90e78f90 tree a9a98e9eb2caf4f617d8e2b2ca5e3c899bf5a06b parent a2ef73af4cd6cb46be13b11f9ce64d6b44f0350b author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:02 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:13 -0300 V4L/DVB (4354): A small fix at fmi->flags logic Signed-off-by: Mauro Carvalho Chehab commit a2ef73af4cd6cb46be13b11f9ce64d6b44f0350b tree d1bec6b312ff5861f32fb84dfa3b946f35f8bc65 parent f8c559f8c066a045fb3f70bbb35f9e7c2064b8ae author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:02 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:13 -0300 V4L/DVB (4353): V4L2 conversion: radio-sf16fmi Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit f8c559f8c066a045fb3f70bbb35f9e7c2064b8ae tree 5fc41061bb9d84964b5107d7a65f11b32f0cb90a parent b6055d7b1841e14ecc8c72a11490b42c85bf7bec author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:02 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:12 -0300 V4L/DVB (4352): V4L2 conversion: radio-rtrack2 Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit b6055d7b1841e14ecc8c72a11490b42c85bf7bec tree 7c2d82befc5c79b719b5b2f805f8810664728343 parent 52afbc2f4f1ab78c038bc0d56273ca68021bd3d5 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:02 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:12 -0300 V4L/DVB (4351): V4L2 conversion: radio-maestro Driver conversion to V4L2 API. Require some testing, since I don't have such hardware Signed-off-by: Mauro Carvalho Chehab commit 52afbc2f4f1ab78c038bc0d56273ca68021bd3d5 tree 5a2ac0badc90fad9034dded883efb9e00e65abc9 parent d1c4ecdeec612a587e9b564839fc578f41d3049d author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:01 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:12 -0300 V4L/DVB (4350): V4L2 conversion: radio_gemtek-pci Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit d1c4ecdeec612a587e9b564839fc578f41d3049d tree 2c3ebef4c841c38520fec0d36de3efc3cff5c1ad parent 38ee04f04340ffd6af868499862341d11ed2b331 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:01 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:53:11 -0300 V4L/DVB (4349): V4L2 conversion: radio_gemtek Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit 38ee04f04340ffd6af868499862341d11ed2b331 tree cb8c4a7336cb3dc89f4ff6a46fab706ea3603b76 parent a4366af40d7d2021499b84b8311336c944a9a71c author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:01 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 11:52:53 -0300 V4L/DVB (4348): Fix: compile for radio aimslab and aztech with V4L2 only All radio devices use an obsolete mode of opening/release driver. Since this is not V4L1 core, better to keep the method available for more time than to rewrite open/release without a radio device to test, since the newer method is much more complex than the previous one (although providing support for multiple opens and multiple devices). Signed-off-by: Mauro Carvalho Chehab commit a4366af40d7d2021499b84b8311336c944a9a71c tree 2ceff5d9e7f341b7c4dff0327085a45dddc7fb63 parent 46ff2c7250eece24974ddb2198421c83a69a6289 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:01 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:18 -0300 V4L/DVB (4347): V4L2 conversion: radio_aztech Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit 46ff2c7250eece24974ddb2198421c83a69a6289 tree 4aebfd54e805108934b16c8bed1774b5eeb4c960 parent b59b36db9e8f441868c9907d6ea8fe0cdcb77f39 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:01 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:17 -0300 V4L/DVB (4346): V4L2 conversion: radio_aimslab Driver conversion to V4L2 API. Require some testing, since this obsolete hardware is not common those days. Signed-off-by: Mauro Carvalho Chehab commit b59b36db9e8f441868c9907d6ea8fe0cdcb77f39 tree 0f2eb12be665a056d2f97b1808e423168bf7fbb3 parent 2c591947b044513bcc42dd57ea61f41b5b462d93 author Mauro Carvalho Chehab Tue, 08 Aug 2006 09:10:00 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:16 -0300 V4L/DVB (4339): Removed the remaining config.h stuff Since kernel include autoconf.h via command line, those config.h inclusion can be removed. Signed-off-by: Mauro Carvalho Chehab commit 2c591947b044513bcc42dd57ea61f41b5b462d93 tree fe61366187f691eee15e5e49c45a6862adc01ea0 parent 1e9bfb979bab6051c125f56230bfeeefe603f99e author Hartmut Hackmann Mon, 07 Aug 2006 14:03:32 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:13 -0300 V4L/DVB (4309): Added PCI ID of the Genius VideoWonder Dual Cardbus It is just another Lifeview clone Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 1e9bfb979bab6051c125f56230bfeeefe603f99e tree f08a71f57509e8bcaddedb81473500d632ddda9a parent 5eda227fc622799a543dd7606f1037e89cd9e21b author Hartmut Hackmann Mon, 07 Aug 2006 14:03:32 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:12 -0300 V4L/DVB (4308): Added PCI ID for AverMedia DVB-T 777 with SAA7133 The change is just an additional PCI ID Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 5eda227fc622799a543dd7606f1037e89cd9e21b tree 68d4996bfc682beffe331af58bc5d5f9293dd92f parent 19e22576d29cadaba88f08fb958f4fcf0de9b16c author Hartmut Hackmann Mon, 07 Aug 2006 14:03:32 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:11 -0300 V4L/DVB (4307): Added support for the md8800 quadro board Analog TV, CVBS, S-video and DVB-T are working, DVB-S not yet Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 19e22576d29cadaba88f08fb958f4fcf0de9b16c tree 1ecadf1ead2323fae3462cdc1b2ec18b1ca46a87 parent 7e4720201ad44ace85a443f41d668a62a737e7d0 author Alexander Tuschen Sun, 16 Jul 2006 15:03:17 -0300 committer Mauro Carvalho Chehab Tue, 26 Sep 2006 09:03:06 -0300 V4L/DVB (4442): [PATCH] Freecom DVB-T stick with ID 14aa:0225 Ok, here is the working patch for the Freecom DVB-T stick with USB-ID 14aa:0225. It uses the Firmware-file, wich Erich Focht created and wich can be obtainded from http://home.arcor.de/efocht/dvb-usb-wt220u-fc03.fw Also the original patch is from Erich. It adds the proper USB-IDs and I only had to change the endpoint of the MPEG-2 data-transfer to 0x86. Signed-off-by: Alexander Tuschen Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab 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 b0df3bd1e553e901ec7297267611a5db88240b38 tree 3eceef36f96a6cf187cf8c4072fd83b4f6435315 parent cc3afe6f856054a3752ef2b3ccc5eebf33bd5024 parent a67ab2bde752b26be75d4b68ecead9a14692eac5 author Jeff Garzik Mon, 25 Sep 2006 20:09:14 -0400 committer Jeff Garzik Mon, 25 Sep 2006 20:09:14 -0400 Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into tmp commit cc3afe6f856054a3752ef2b3ccc5eebf33bd5024 tree 95b5b48a0b9082ae8f1f808305d070c7f759ce85 parent 0c5649af3accc7f2941c5eebcc613e1a81b03448 author Al Viro Sat, 23 Sep 2006 01:33:40 +0100 committer Jeff Garzik Mon, 25 Sep 2006 20:08:10 -0400 [PATCH] more s2io __iomem annotations Signed-off-by: Al Viro Signed-off-by: Jeff Garzik commit 0c5649af3accc7f2941c5eebcc613e1a81b03448 tree 6de49be3a8712d7b20f58c364468a263080a848f parent ee705dba75c2f7daae5403ad4599b6738e2da7a0 author Al Viro Sat, 23 Sep 2006 01:32:40 +0100 committer Jeff Garzik Mon, 25 Sep 2006 20:08:10 -0400 [PATCH] restore __iomem annotations in e1000 Signed-off-by: Al Viro Signed-off-by: Jeff Garzik commit ee705dba75c2f7daae5403ad4599b6738e2da7a0 tree 9e0dfdfee96d35a6e25c7d0c937b1284530f20d6 parent 8a8e447b2aa1f9139d0bfc94a2a3426be9c8d40a author Al Viro Sat, 23 Sep 2006 01:28:17 +0100 committer Jeff Garzik Mon, 25 Sep 2006 20:08:10 -0400 [PATCH] 64bit bugs in s2io le32_to_cpu() on 64bit values Signed-off-by: Al Viro Signed-off-by: Jeff Garzik commit 8a8e447b2aa1f9139d0bfc94a2a3426be9c8d40a tree 154d0eae23c8a90f7c260e9dd513b0acb898828c parent 89cc76f95af3608d83a1d70b3c76b71ffe66e1f7 author Jay Vosburgh Fri, 22 Sep 2006 21:56:15 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Fix primary selection error at enslavement time At enslavement time, the primary slave might not be activated if there is already an active slave and the new slave is the primary. Replaced complicated logic with a call to bond_select_active_slave(), which does the right thing. Fixes http://bugzilla.kernel.org/show_bug.cgi?id=6378 Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 89cc76f95af3608d83a1d70b3c76b71ffe66e1f7 tree a2d0c16ffd5850087885287eab98d0f0feb9e6a6 parent f5b2b966f032f22d3a289045a5afd4afa09f09c6 author Jay Vosburgh Fri, 22 Sep 2006 21:55:32 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Don't mangle LACPDUs Fixed handling of 802.3ad LACPDUs. Do not byte swap data in place in the packet. Updated nomenclature of "__ntohs_lacpdu" to be "htons"; it was previously used for both ntohs and htons operations, but only called ntohs functions. Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit f5b2b966f032f22d3a289045a5afd4afa09f09c6 tree cb3c505d8f444438bed09353788f6c96150f68ad parent 70298705bb29fb7982b85089adf17cd37b94baa7 author Jay Vosburgh Fri, 22 Sep 2006 21:54:53 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Validate probe replies in ARP monitor Add logic to check ARP request / reply packets used for ARP monitor link integrity checking. The current method simply examines the slave device to see if it has sent and received traffic; this can be fooled by extraneous traffic. For example, if multiple hosts running bonding are behind a common switch, the probe traffic from the multiple instances of bonding will update the tx/rx times on each other's slave devices. Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 70298705bb29fb7982b85089adf17cd37b94baa7 tree f0522fcc50991fdc295d6f3f8f1b737c9146ccfa parent 0b680e753724d31a9c45f059d1aad29df54584a1 author jamal Fri, 22 Sep 2006 21:54:37 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Don't release slaves when master is admin down When a bonding netdevice is admin-ed down it loses the slaves attributes (set via ifenslave). This is not consistent with other behavior of netdevices (example a qdisc attached to a netdevice doesnt disappear or an attached IP address etc). The included patch fixes this. Ive tested by ifenslaving, downing the bond, checking /proc and making sure it still has the slaves, up-ing the bond and making sure things continue to work. Jay/Bonding folks if you are ok with it, just ACK it or include it in your tree etc. Otherwise we can discuss. Acked-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 0b680e753724d31a9c45f059d1aad29df54584a1 tree 02f121ee2804e63d17015907da3b2c51d81223be parent 54ef313714070b397d3857289f0fd099b7643631 author Jay Vosburgh Fri, 22 Sep 2006 21:54:10 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Add priv_flag to avoid event mishandling Add priv_flag to specifically identify bonding-involved devices. Needed because IFF_MASTER is an unreliable identifier (vlan interfaces above bonding will inherit IFF_MASTER). Misidentification of devices would cause notifier events for other devices to be erroneously processed by bonding, causing various havoc. Bug discovered by Martin Papik ; this patch is modified from his original. Signed-off-by: Martin Papik Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 54ef313714070b397d3857289f0fd099b7643631 tree 33e0c4ae228ad52a5f5dc9c4389412c436d22d0f parent a50d8de2cc872818b61e60c20c75be3f19aa6887 author Jay Vosburgh Fri, 22 Sep 2006 21:53:39 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Handle large hard_header_len The bonding driver fails to adjust its hard_header_len when enslaving interfaces. Whenever an interface with a hard_header_len greater than the ETH_HLEN default is enslaved, the potential for an oops exists, and if the oops happens while responding to an arp request, for example, the system panics. GIANFAR devices may use an extended hard_header for VLAN or hardware checksumming. Enslaving such a device and then transmitting over it causes a kernel panic. Patch modified from submitter's original, but submitter agreed with this patch in private email. Signed-off-by: Mark Huth Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit a50d8de2cc872818b61e60c20c75be3f19aa6887 tree 9ea764b51534cc2a85111515d8dd95da419c0ea4 parent 65509645ae05886eccc81b8a453afea07f0eabb6 author Jay Vosburgh Fri, 22 Sep 2006 21:53:25 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:09 -0400 [PATCH] bonding: Remove unneeded NULL test Remove unneeded test for NULL. Reported by Thomas Dillig and Isil Dillig via Stephen Hemminger . Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 65509645ae05886eccc81b8a453afea07f0eabb6 tree d023f27b6f85d6d9203ba303bb1256c0ac8c03c0 parent 8bb5f96b0c1f430e6be56edd6c7032bcedd86ff0 author Kenzo Iwami Fri, 22 Sep 2006 21:53:08 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:08 -0400 [PATCH] bonding: Format fix in seq_printf call Though link_failure_count is type unsigned int, this value is outputted to /proc/net/bonding/bondX file using "%d" instead of "%u". The attached patch fixes this problem. Signed-off-by: Kenzo Iwami Acked-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 8bb5f96b0c1f430e6be56edd6c7032bcedd86ff0 tree fa30518bf610319d042236beb3a47eb092d43e4f parent 94dbffd540eea601aecad07e2df5bfd8a46672f3 author Jay Vosburgh Fri, 22 Sep 2006 21:52:51 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:08 -0400 [PATCH] bonding: Convert delay value from s16 to int The value of "downdelay/miimon" and "updelay/miimon" are stored in slave->delay. The type of downdelay, updelay, and miimon are all int. However, slave->delay is type short, and it is not possible to store the value of "downdelay/miimon" or "updelay/miimon" in some cases. (For example, miimon=1 downdelay=32768) The attached patch fixes this problem. Signed-off-by: Kenzo Iwami Acked-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit 94dbffd540eea601aecad07e2df5bfd8a46672f3 tree 5758474bb25f8ba8c43aae1d9632616b9a7133b9 parent e8126c82ccbfd39ccf3d22645207fbcc798021a3 author Jay Vosburgh Fri, 22 Sep 2006 21:52:15 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:08:08 -0400 [PATCH] bonding: Allow bonding to enslave a 10 Gig adapter Allow channel bonding to enslave a 10 Gig adapter without errors. Signed-off-by: Mitch Williams Acked-by: Jay Vosburgh Signed-off-by: Jeff Garzik commit e8126c82ccbfd39ccf3d22645207fbcc798021a3 tree 224722e6a2c8c5decd35d7e87f3bad7c262b91fa parent 64f6b64dfb8cdda21652f24a0fb0a68e2f0b0022 author Jeff Garzik Mon, 25 Sep 2006 20:06:24 -0400 committer Jeff Garzik Mon, 25 Sep 2006 20:06:24 -0400 Delete unused drivers/net/gt64240eth.h Noticed by Yoichi Yuasa. Signed-off-by: Jeff Garzik commit 64f6b64dfb8cdda21652f24a0fb0a68e2f0b0022 tree e1706db57e1a1b4c65884c9b79a7f9d4e0e2ae7c parent 46798c897e235e71e1e9c46a5e6e9adfffd8b85d author Stephen Hemminger Sat, 23 Sep 2006 21:25:28 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:04:29 -0400 [PATCH] skge: fiber support Add support for older fiber versions of the SysKonnect board. These chipsets use an internal PHY so they require special handling. The older sk98lin driver already supported these Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 46798c897e235e71e1e9c46a5e6e9adfffd8b85d tree a43e0781a3d2076321b19fc47ba2791e180e6860 parent 84c22d7901f793bd267b5f79270080964b252826 author Jesper Juhl Mon, 25 Sep 2006 16:39:24 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] fix possible NULL ptr deref in forcedeth There seems to be a possible NULL pointer deref bug in drivers/net/forcedeth.c::nv_loopback_test(). If dev_alloc_skb() fails, the next line will call skb_put() with a NULL first argument which it'll then try to deref - kaboom: a NULL pointer deref. Found by coverity (#1337). Signed-off-by: Jesper Juhl Cc: Ayaz Abdulla Cc: Manfred Spraul Cc: Stephen Hemminger Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 84c22d7901f793bd267b5f79270080964b252826 tree 253633abda9f66686e8d5bea5a6f00a07911d663 parent 0fe2480aded9504434e24815c410cbebb4f4efad author Eric Sesterhenn Mon, 25 Sep 2006 16:39:22 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] Signedness issue in drivers/net/phy/phy_device.c While checking gcc 4.1 -Wextra warnings, I stumbled across the following two warnings: drivers/net/phy/phy_device.c:528: warning: comparison of unsigned expression < 0 is always false drivers/net/phy/phy_device.c:546: warning: comparison of unsigned expression < 0 is always false Since phy_read() returns an integer and can return negative values, it seems to me the best way to get proper error handling working again is to make val an int. Currently it is an u32, so the < 0 check always fails. Signed-off-by: Eric Sesterhenn Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 0fe2480aded9504434e24815c410cbebb4f4efad tree 4605c6d7be87caaa4558e5882c46d31afc1dc968 parent f8d9c9c876d3a2a109caa2c06b2761af0337c2f4 author Michal Piotrowski Mon, 25 Sep 2006 16:39:21 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] drivers/net/typhoon.c Removal of old code Signed-off-by: Michal Piotrowski Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit f8d9c9c876d3a2a109caa2c06b2761af0337c2f4 tree 3e2167868880a934bd140658d2250c0a57d1b22d parent 9098f5ba6947944d9b0d3e989535ab55ae6af3f6 author Michal Piotrowski Mon, 25 Sep 2006 16:39:21 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] drivers/net/tokenring/lanstreamer.h Removal of old code Signed-off-by: Michal Piotrowski Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 9098f5ba6947944d9b0d3e989535ab55ae6af3f6 tree ee77da3fee5138f6eeb4f724420e2ffa76cb4aa5 parent bef363a1e07a913508cf10ab2d7e2b11e6313257 author Michal Piotrowski Mon, 25 Sep 2006 16:39:20 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] drivers/net/tokenring/lanstreamer.c Removal of old code Signed-off-by: Michal Piotrowski Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit bef363a1e07a913508cf10ab2d7e2b11e6313257 tree 90901c7a44c8e86abd8b2e6113661eb28fb78449 parent 6432dc1f44ff3f02a304db26717c4f76e2e57be9 author Michal Piotrowski Mon, 25 Sep 2006 16:39:19 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] drivers/net/acenic.c Removal of old code Signed-off-by: Michal Piotrowski Cc: Jeff Garzik Cc: Jes Sorensen Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 6432dc1f44ff3f02a304db26717c4f76e2e57be9 tree cd860ea4f9cdfb85ba305d38d29cc851fcb8c6be parent a6d967a485c67ec8a1276261f39d81ace6a3e308 author Deepak Saxena Mon, 25 Sep 2006 16:39:18 -0700 committer Jeff Garzik Mon, 25 Sep 2006 20:01:19 -0400 [PATCH] Update smc91x driver with ARM Versatile board info We need to specify a Versatile-specific SMC_IRQ_FLAGS value or the new generic IRQ layer will complain thusly: No IRQF_TRIGGER set_type function for IRQ 25 () Signed-off-by: Deepak Saxena Cc: Jeff Garzik Cc: Russell King Cc: Nicolas Pitre Signed-off-by: Andrew Morton 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 a67ab2bde752b26be75d4b68ecead9a14692eac5 tree 5974fad766ec87f84a1d3c382acdc7fb86f4f6d7 parent 583afd1e4f25c87000c85ad7d03f5299fd4155dc author Larry Finger Thu, 14 Sep 2006 08:28:54 -0500 committer John W. Linville Mon, 25 Sep 2006 16:52:18 -0400 [PATCH] bcm43xx: fix netdev watchdog timeouts The setup for running long periodic work has a bug that leads to netdev watchdog tx timeouts. This change eliminates the timeouts. Signed-off-by: Michael Buesch Acked-by: Larry Finger Signed-off-by: John W. Linville commit 583afd1e4f25c87000c85ad7d03f5299fd4155dc tree e5ceeee697091a1b9a654ae3e6411cd4674a47c2 parent bc5f06a8aaa29a79c9da2cedb5b9779b8081289c author Ulrich Kunitz Wed, 13 Sep 2006 02:42:38 +0100 committer John W. Linville Mon, 25 Sep 2006 16:52:17 -0400 [PATCH] zd1211rw: Add LED support This patch includes a big cleanup of the existing unused LED code, and adds support for controlling the LED. The link LED will blink if the device is not associated. The LED switches between 2 seconds on and 1 second off. If the device is associated the LED is switched on. The link LED also indicates packet TX. I do a little bit more led resetting than the vendor driver, but the device works now as expected for single LED and double LED devices. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit bc5f06a8aaa29a79c9da2cedb5b9779b8081289c tree ebfe3c0f62aa90ea11d59cfb3196a4e9ae0a2a3f parent 44976c66bb2b44e4cf29a259a0cd6adadf8eb031 author Ulrich Kunitz Wed, 13 Sep 2006 02:42:12 +0100 committer John W. Linville Mon, 25 Sep 2006 16:52:17 -0400 [PATCH] zd1211rw: Added workqueue For housekeeping and watchdog tasks a workqueue is created. The central workqueue is not used to prevent crashes creates by bugs. It might be changed, when the housekeeping is stabilized. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 44976c66bb2b44e4cf29a259a0cd6adadf8eb031 tree 697f5cbc4aefa1c54732e82519a637a0e7a384c9 parent cbb5e6bbb29a850dcb87d8efa30b457ce8014369 author Ulrich Kunitz Wed, 13 Sep 2006 02:41:35 +0100 committer John W. Linville Mon, 25 Sep 2006 16:52:17 -0400 [PATCH] zd1211rw: Removes wrong assertions Checking whether a mutex is not locked directly before mutex_lock() is called, doesn't make sense. The whole point of mutex_lock() is to block, if the mutex is locked. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit cbb5e6bbb29a850dcb87d8efa30b457ce8014369 tree 61ff22dd19cb4a5b6a4ebc0c4e1bd264cb6ba803 parent 927db87fb1523101653eae44ac27223a30a18ada author Ulrich Kunitz Wed, 13 Sep 2006 02:41:02 +0100 committer John W. Linville Mon, 25 Sep 2006 16:52:17 -0400 [PATCH] zd1211rw: 16-bit writes for physical control registers Caused by the fact that physical control registers appear to have only a width of 16 bit, 32-bit writes are not required. Signed-off-by: Ulrich Kunitz Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 927db87fb1523101653eae44ac27223a30a18ada tree 5f52cf372e1423288d5ce80b245d69119d907c75 parent 8aeb9fc5699f1b3c64ba152910f7c5c075c3a93a author Daniel Drake Tue, 12 Sep 2006 23:37:25 +0100 committer John W. Linville Mon, 25 Sep 2006 16:52:17 -0400 [PATCH] softmac: Update MAINTAINERS entry This mailing list has been deactivated. Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 8aeb9fc5699f1b3c64ba152910f7c5c075c3a93a tree 9363f785dfed04cc3eddb6e4d55b431ca0d53277 parent b2f206f4a711b0b1e6d3cdca52e919a986aceada author Larry Finger Tue, 12 Sep 2006 15:29:04 -0500 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] bcm43xx-softmac: improve wrong firmware message An error message is changed to a printk as the original dprintk would be optimized away if debugging were not enabled. If the error is triggered, a more meaningful message is returned. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit b2f206f4a711b0b1e6d3cdca52e919a986aceada tree 25dfd2d486553667672d79e120406c01c106691b parent a271ca5bbb1df988806bead8910b603819f4190f author Larry Finger Tue, 12 Sep 2006 12:40:32 -0500 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] bcm43xx-softmac: update noise handling In bcm43xx-softmac, the bcm43xx_stats struct contains a variable that is no longer used. In addition, two TODO entries related to noise processing in bcm43xx_rx have been completed, and as unused one is removed. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit a271ca5bbb1df988806bead8910b603819f4190f tree 4c809e9427cf5bafb1e84a0d647a40c22dabce58 parent 919ee6ddcd3fcff09dee90c11af17a802196ad1f author Larry Finger Mon, 11 Sep 2006 21:50:56 -0500 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] bcm43xx-softmac: update PHY initialization This patch updates the PHY initialization code for bcm43xx-softmac to conform with recent changes in the clean-room specs at http://bcm-specs.sipsolutions.net. Mostly, these changes implement the sequence needed for chips with GPHY revision 8; however, the patch also corrects a typo in one address, and some parts that were missing from the spec when the initial coding was done. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit 919ee6ddcd3fcff09dee90c11af17a802196ad1f tree c45e35201d7a3f2c998fc316898f902fd85fdfd2 parent b978d0278c3a4c41bda806743c6ef5dca86b4c61 author Jean Tourrilhes Tue, 29 Aug 2006 18:01:40 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] WE-21 for ipw2200 Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit b978d0278c3a4c41bda806743c6ef5dca86b4c61 tree be2aa99aec33494c13326fd5606fad1ee6b55c12 parent a6082f4032a9667e844fecd974f17268249fb966 author Larry Finger Thu, 31 Aug 2006 10:01:39 -0500 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] bcm43xx: WE-21 support Patch to make bcm43xx-softmac be compatible with the revised SSID length of WE-21. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit a6082f4032a9667e844fecd974f17268249fb966 tree 2fe3c1bcdddc333984bae5108cd8e6a6cba7594b parent 22b99262f59ddf5d283e19047e37dbc3be907e93 author Daniel Drake Wed, 30 Aug 2006 03:46:27 +0100 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] WE-21 for zd1211rw Signed-off-by: Daniel Drake Signed-off-by: John W. Linville commit 22b99262f59ddf5d283e19047e37dbc3be907e93 tree 2b368ee2bc99e0c888e8ad4ecf60b0e6322ec256 parent de9621bc5637be5f9e3e3ff2fc1475b3de41132e author Jean Tourrilhes Tue, 29 Aug 2006 18:07:11 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:16 -0400 [PATCH] WE-21 for zd1201 Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit de9621bc5637be5f9e3e3ff2fc1475b3de41132e tree 7e9731c303ca471134bb9437bcfa14883bc458bf parent 4ced38ac48137e1928dd40de3cdc074ec31c059d author Jean Tourrilhes Tue, 29 Aug 2006 18:05:37 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:15 -0400 [PATCH] WE-21 for wl3501 Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit 4ced38ac48137e1928dd40de3cdc074ec31c059d tree 70210914c3a67be2f4b26b1a4ed0eb4367574714 parent bad04f2ce00da5aaa6c8e97b1b80ad2ebd755b8b author Jean Tourrilhes Tue, 29 Aug 2006 18:04:09 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:15 -0400 [PATCH] WE-21 for ray_cs Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit bad04f2ce00da5aaa6c8e97b1b80ad2ebd755b8b tree c6490bb236590537413834c40b2a9e8274e45575 parent eeec9f1a931262d69811135092c8447d6dccc3e6 author Jean Tourrilhes Tue, 29 Aug 2006 18:03:23 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:15 -0400 [PATCH] WE-21 for Prism54 Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit eeec9f1a931262d69811135092c8447d6dccc3e6 tree 8480c04931d504667afb8c34f61ae9826925b8d4 parent 5b63bae0ab750942e84bfb9b353e6222583457a2 author Jean Tourrilhes Tue, 29 Aug 2006 18:02:31 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:15 -0400 [PATCH] WE-21 for orinoco Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit 5b63bae0ab750942e84bfb9b353e6222583457a2 tree 788ebae3d57eb8da46d6c22a45cadbcff702b34f parent 9fb08363f1f6d360dbaf6d7f51b9e7ca07c05ecd author Jean Tourrilhes Tue, 29 Aug 2006 18:00:48 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:15 -0400 [PATCH] WE-21 for ipw2100 Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit 9fb08363f1f6d360dbaf6d7f51b9e7ca07c05ecd tree 75d15c62f8d1b07df7b563325b1feb32d9da3f0f parent 6a484db472e77218252025d31d4ef96dbc11ada9 author Jean Tourrilhes Tue, 29 Aug 2006 17:59:47 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:15 -0400 [PATCH] WE-21 for hostap Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit 6a484db472e77218252025d31d4ef96dbc11ada9 tree b05d24b3a673a21cfacde4a7646b31eb6186510c parent 7f8544cc95c7f521847fa760ce38d932e6ab4542 author Jean Tourrilhes Tue, 29 Aug 2006 17:59:03 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:14 -0400 [PATCH] WE-21 for atmel Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit 7f8544cc95c7f521847fa760ce38d932e6ab4542 tree fa08b34e5d4e0c17cb9bfd659c16dda3297a57e7 parent baef186519c69b11cf7e48c26e75feb1e6173baa author Jean Tourrilhes Tue, 29 Aug 2006 17:58:11 -0700 committer John W. Linville Mon, 25 Sep 2006 16:52:14 -0400 [PATCH] WE-21 for airo Signed-off-by: Jean Tourrilhes Signed-off-by: John W. Linville commit baef186519c69b11cf7e48c26e75feb1e6173baa tree a4a1ac70808443bec2f924e48b8a705050325cdf parent 7c250413e5b7c3dfae89354725b70c76d7621395 author John W. Linville Fri, 08 Sep 2006 16:04:05 -0400 committer John W. Linville Mon, 25 Sep 2006 16:52:14 -0400 [PATCH] WE-21 support (core API) This is version 21 of the Wireless Extensions. Changelog : o finishes migrating the ESSID API (remove the +1) o netdev->get_wireless_stats is no more o long/short retry This is a redacted version of a patch originally submitted by Jean Tourrilhes. I removed most of the additions, in order to minimize future support requirements for nl80211 (or other WE successor). CC: Jean Tourrilhes Signed-off-by: John W. Linville 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 fb60cf4ab52f3520c2119aa42f7d4ed8e7594eb6 tree bffa8cd8f9597dc1ce330c078e1422db37e411f6 parent 90afd5cb2ac0977c38e83b6b21493da911b242b3 author Tony Lindgren Mon, 25 Sep 2006 13:28:17 +0300 committer Tony Lindgren Mon, 25 Sep 2006 13:28:17 +0300 ARM: OMAP: Remove common pm.c There is now separate pm.c for OMAP1 and OMAP2. Signed-off-by: Tony Lindgren commit 90afd5cb2ac0977c38e83b6b21493da911b242b3 tree 7d0dedf7bfedb76e9bb2149f7f8aec1aaed159f9 parent 1630b52ddf4fc27e0dc421a57e4788bf9d3886cc author Tony Lindgren Mon, 25 Sep 2006 13:27:20 +0300 committer Tony Lindgren Mon, 25 Sep 2006 13:27:20 +0300 ARM: OMAP: Sync clocks with linux-omap tree Mostly clean up CONFIG_OMAP_RESET_CLOCKS. Also includes a patch from Imre Deak to make McSPI clocks use id. Signed-off-by: Tony Lindgren commit 1630b52ddf4fc27e0dc421a57e4788bf9d3886cc tree 0c93958dcc47088ccf2095030eced7d0b8585926 parent 709eb3e5ccb304dca011c41456da5ffd246d7271 author Komal Shah Mon, 25 Sep 2006 12:51:08 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:51:08 +0300 [PATCH] ARM: OMAP: Check gpio_fck not gpio_ick Check gpio_fck not gpio_ick. Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren commit 709eb3e5ccb304dca011c41456da5ffd246d7271 tree f9d3c1bc97f1a4f51150f14f70d9fee648bbdb50 parent ddc32a87497d8806e361cfe7168f173396fe9219 author Tony Lindgren Mon, 25 Sep 2006 12:45:45 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:45:45 +0300 ARM: OMAP: Sync DMA with linux-omap tree This patch syncs OMAP DMA code with linux-omap tree. Mostly allow changing DMA callback function and set OMAP2 specific transfer mode. Signed-off-by: Tony Lindgren commit ddc32a87497d8806e361cfe7168f173396fe9219 tree 41e4235bb358443fa187b11c49d8d9c418dbff99 parent dc0d794e488090082b7194738a08f18db0874900 author Juha Yrjola Mon, 25 Sep 2006 12:41:50 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:50 +0300 ARM: OMAP2: Make sure peripherals can be accessed after clk_enable Some peripherals seem to need additional delay until they can actually be accessed after enabling their FCLK and ICLK. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit dc0d794e488090082b7194738a08f18db0874900 tree e3bd71aa1de6395843023eebbe4776b179d557c1 parent dee45648a5e2f3075c51f5d6b5da65b32235d3f9 author Juha Yrjola Mon, 25 Sep 2006 12:41:49 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:49 +0300 ARM: OMAP2: Keep both APLLs active during bootup Enabling and disabling the 54 MHz and 96 MHz APLLs can happen unnecessarily often during bootup. Make sure they're kept enabled during init. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit dee45648a5e2f3075c51f5d6b5da65b32235d3f9 tree 17b6fd404b66e60d1486d4103462f6ceda0b04e7 parent bee7930f4aa501de4e3c793640c3af31fd3867e2 author Juha Yrjola Mon, 25 Sep 2006 12:41:47 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:47 +0300 ARM: OMAP: Add sanity check to clk_disable BUG() if the clock use count is already zero. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit bee7930f4aa501de4e3c793640c3af31fd3867e2 tree 2df6d29c65e21ba82f1ac86ae42a5a7f16c48d74 parent 0d9356cbb5d7a0bc8628f74fb15fd7268372c7fe author Hiroshi DOYU Mon, 25 Sep 2006 12:41:46 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:46 +0300 ARM: OMAP: GPIO: IRQSTATUS2 workaround for retention state In OMAP2420, an incoming GPIO interrupt always sets both GPIO_IRQSTATUS1 and GPIO_IRQSTATUS2, even if the relevant bit is disabled in GPIO_IRQENABLE1/2 and DSP doesn't use GPIO at all. GPIO_IRQSTATUS1 is for MPU and GPIO_IRQSTATUS2 is for DSP. If IRQSTATUS is set, this will prevent the system from going to idle state. This patch also clears IRQSTATUS2 to avoid the above situation. Signed-off-by: Hiroshi DOYU Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 0d9356cbb5d7a0bc8628f74fb15fd7268372c7fe tree a361a243489c5b897bc808518ab01a109ee82bb6 parent 39020842b3d8a450e80724a71d5df676535d249e author Tony Lindgren Mon, 25 Sep 2006 12:41:45 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:45 +0300 ARM: OMAP: Fix typo for 24xx GPIO resume Fix typo for 24xx GPIO resume Signed-off-by: Tony Lindgren commit 39020842b3d8a450e80724a71d5df676535d249e tree ca33882d0d89ba97c864c17ec950b7c1ef8c1212 parent ab0a2b9b9f536d860681dacbfb5784bd76e88a1e author Juha Yrjola Mon, 25 Sep 2006 12:41:44 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:44 +0300 ARM: OMAP: OMAP2 dmtimer power management support GPT1 will be set into non-posted mode, and the wakeup register is set for all timers. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit ab0a2b9b9f536d860681dacbfb5784bd76e88a1e tree 88735e033544ec2836065fd3c39aa4ebbcbbb002 parent 12583a70ac6b6641905e37fdd61a7f711fb4ce2b author Juha Yrjola Mon, 25 Sep 2006 12:41:43 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:43 +0300 ARM: OMAP: Add support for forcing osc_ck on Some boards might use the oscillator clock for powering external peripherals. Add support for making sure osc_ck stays active even when trying to go to sleep. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 12583a70ac6b6641905e37fdd61a7f711fb4ce2b tree 3b494d5d846615c21ebe431f053e931eb403e5e4 parent 893a668ee2a0bd28fbeb639ae97dd60ec8b7db66 author Timo Teras Mon, 25 Sep 2006 12:41:42 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:42 +0300 ARM: OMAP: Add enable/disable functions for dmtimer Add enable/disable functions which effectively control the GPT iclk and fclk. Signed-off-by: Timo Teras Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 893a668ee2a0bd28fbeb639ae97dd60ec8b7db66 tree 66a28ef544594d273d96ca5f527d8196ac9065a8 parent 14188b3a4cbffd317ac65434750481d2ee14e09e author David Brownell Mon, 25 Sep 2006 12:41:41 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:41 +0300 ARM: OMAP: Remove Remove superfluous/recursive locking for GPIO Remove Remove superfluous/recursive locking for GPIO Signed-off-by: David Brownell Signed-off-by: Tony Lindgren commit 14188b3a4cbffd317ac65434750481d2ee14e09e tree 96749861adc371357a0ea873987b6f2782cacea6 parent e4d5ee8109c210b65becfc1ef7697a0ce4eaf3c4 author Tony Lindgren Mon, 25 Sep 2006 12:41:40 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:40 +0300 ARM: OMAP: Fix spinlock recursion for dyntick Fix spinlock recursion for dyntick. Modified version based on Imre Deak's earlier patch. Signed-off-by: Tony Lindgren commit e4d5ee8109c210b65becfc1ef7697a0ce4eaf3c4 tree 3012d2fdbab839be8dbb6b25f536403e205d5d07 parent 4196dd6baabccdef3786c1d51d75e041313af848 author Komal Shah Mon, 25 Sep 2006 12:41:39 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:39 +0300 ARM: OMAP: Remove IVA IRQ bank ARM11 can't access the IVA interrupt controller from IVA slave port. From Richard Woodruff: "The 0x40000000 is an IVA-ARM7 local bus address. The IVA-INTC is NOT accessible through the IVA-L3-Slave Port. The current TRM does say this directly and indirectly in a few spots and in figures." Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren commit 4196dd6baabccdef3786c1d51d75e041313af848 tree a12f643d5d358fa5259f91cce333f6cd2df97702 parent eaca33df44c0d00bc12b16e72b728ade25adf14d author Tony Lindgren Mon, 25 Sep 2006 12:41:38 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:38 +0300 ARM: OMAP: Reset GPIO irq state after free_irq() This is needed to reset GPIO after free_irq(). Signed-off-by: Tony Lindgren commit eaca33df44c0d00bc12b16e72b728ade25adf14d tree e825e325d2b398cd14bccb1ed77a3007c63bd888 parent dbab288be47ddc84ad52ff926ea1a0efd33acb57 author Juha Yrjola Mon, 25 Sep 2006 12:41:37 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:37 +0300 ARM: OMAP: Add write memory barriers to OMAP2 clock code After adjusting clock parameters, OMAP2 CPUs need a memory barrier to make sure the changes go into effect immediately. Otherwise bad things will happen if we try to access the peripheral whose clock is just being enabled. Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit dbab288be47ddc84ad52ff926ea1a0efd33acb57 tree f5e7e25eeb9be291353d304f68f4cf0b7196752a parent fa4bb626c660ada7cad3cc7e45da14f8ec17847c author Samuel Ortiz Mon, 25 Sep 2006 12:41:36 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:36 +0300 ARM: OMAP: Fix OMAP2 clock.c typo A forgotten parenthesis in clock.c caused the PLL stabilization loop to not be executed correctly. Signed-off-by: Samuel Ortiz Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit fa4bb626c660ada7cad3cc7e45da14f8ec17847c tree 8f8d3c09b2ace6721d36b3e53fe29bfcf44914f9 parent 123e9a5573098dbb10194c18d6d575620d0e94f3 author Timo Teras Mon, 25 Sep 2006 12:41:35 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:35 +0300 ARM: OMAP: Use GPT iclk only when needed This patch makes the OMAP2 dmtimers module using the interface clocks only while the registers are accessed (except GPT1 which has iclk enabled all the time). Signed-off-by: Timo Teras Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 123e9a5573098dbb10194c18d6d575620d0e94f3 tree 6ee92a011b1f48b2a6b6a48915df7762b4f8e741 parent f37e4580c409e290f6e482007c3573cdb4470bf9 author Tony Lindgren Mon, 25 Sep 2006 12:41:34 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:34 +0300 ARM: OMAP: DMA source and destination addresses are unsigned Also export some omap24xx specific DMA functions. Signed-off-by: Tony Lindgren commit f37e4580c409e290f6e482007c3573cdb4470bf9 tree 7d5741defdda9bf6edb554a541f2d5478ed6b413 parent 2eaff915744b6c8db7770fa9e841fd1c0105fb0b author Imre Deak Mon, 25 Sep 2006 12:41:33 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:33 +0300 ARM: OMAP2: Dynamic allocator for GPMC memory space Add support for assigning memory regions dynamically to peripherals attached to GPMC interface. Platform specific code should now call gpmc_cs_request to get a free GPMC memory region instead of using a fixed address. Make the H4 and Apollon platform initialization use the new API. Signed-off-by: Imre Deak Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 2eaff915744b6c8db7770fa9e841fd1c0105fb0b tree 478dafe44bf5c1064ec03a51ba981630a752388c parent 193e68be335890a99879799bdcd06e18247c110a author Jonathan McDowell Mon, 25 Sep 2006 12:41:31 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:31 +0300 ARM: OMAP: Add some extra #defines for Amstrad Delta This patch adds some further #defines regarding GPIOs and latch bits for the Amstrad Delta; the drivers that use them will be submitted at a later date but there's no reason not to have the information already there and available for use. Signed-off-by: Jonathan McDowell Signed-off-by: Tony Lindgren commit 193e68be335890a99879799bdcd06e18247c110a tree 793d6219a3550c4474ac05243dce07efd9c73870 parent 75a1d10e2f110380adaa9b993fd417537e2f85ba author Jonathan McDowell Mon, 25 Sep 2006 12:41:30 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:30 +0300 ARM: OMAP: Fix OMAP1 compilation after MPUIO check change The recent MPUIO range change fix breaks compilation if CONFIG_ARCH_OMAP24XX isn't defined; it should be OMAP_MAX_GPIO_LINES not MAX_GPIO_LINES I believe. This one liner fixes it. Signed-off-by: Jonathan McDowell Signed-off-by: Tony Lindgren commit 75a1d10e2f110380adaa9b993fd417537e2f85ba tree 353c0099360439a54aa59d3de546480a04d6e6e7 parent b5beef5d5dddef820eb36c97216487ed7cf68971 author Mark Howell Mon, 25 Sep 2006 12:41:29 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:29 +0300 ARM: OMAP: mux: add config for 16xx SPI pins This patch adds pin mux info for the SPI master/slave interface on OMAP16xx. Data from OMAP 1611/1612 TRM and errata. Works for me on my 1611/H2 with current git kernel. Signed-off-by: Mark Howell Signed-off-by: Tony Lindgren commit b5beef5d5dddef820eb36c97216487ed7cf68971 tree 0af4876d2211273eeb1757420a436021c46890c6 parent 5a4e86daa29e73a02ce8eb484837813e341a0b8a author Imre Deak Mon, 25 Sep 2006 12:41:28 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:28 +0300 ARM: OMAP: Sleep is prevented when no LCD is attached We have to make sure that the LCD DMA external destination bit is cleared by default, otherwise OMAP won't sleep. Signed-off-by: Imre Deak Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 5a4e86daa29e73a02ce8eb484837813e341a0b8a tree 6363d06807e52b09bdfe1c9a5652929120b9a366 parent 0e0a198690f5769e5687cb0d66e4486796ccdef0 author Imre Deak Mon, 25 Sep 2006 12:41:27 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:27 +0300 ARM: OMAP: GPIO: fix MPUIO check - MPUIO doesn't exist on OMAP2 - no error was returned for too big MPUIO numbers Signed-off-by: Imre Deak Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit 0e0a198690f5769e5687cb0d66e4486796ccdef0 tree 8dc95c416af3f13e79eec5c628c200cc29f44bed parent abc45e1d69542281fb2b40968e5d112f51976623 author Tony Lindgren Mon, 25 Sep 2006 12:41:26 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:26 +0300 ARM: OMAP: Remove sys_ck and sys_clkout from McBSP for 24xx McBSP does not need sys_ck or sys_clkout. If the devices connected to McBSP need sys_clkout, they need to request it. Signed-off-by: Tony Lindgren commit abc45e1d69542281fb2b40968e5d112f51976623 tree 363aec3e781d5d44762dd7513cbfb678ac746c37 parent d1284b5f11aa946d732d60a402dfeec86a7bb2ef author Kyungmin Park Mon, 25 Sep 2006 12:41:25 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:25 +0300 ARM: OMAP: Apollon MMC support Apollon board MMC supports on OMAP2 TODO: We have to check MMC on H4 Signed-off-by: Kyungmin Park Signed-off-by: Tony Lindgren commit d1284b5f11aa946d732d60a402dfeec86a7bb2ef tree 7e761e3e316e9bc64759f82beb3a80cfaeb4d0fc parent 93bda4c0214441b0bb03b61c2bf1d6727896a750 author Kevin Hilman Mon, 25 Sep 2006 12:41:24 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:24 +0300 ARM: OMAP: 2420 boot BUG(): failure to map SRAM ARM: OMAP: Fix SRAM static mapping for EMU devices. Fix SRAM static mapping for EMU devices. Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren commit 93bda4c0214441b0bb03b61c2bf1d6727896a750 tree f97b7bfbda21f566f5c352304d6c7a4cbd4ca672 parent df51a84d93e776b7481d937ccd60be1b27d320c5 author Samuel Ortiz Mon, 25 Sep 2006 12:41:22 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:22 +0300 ARM: OMAP: Added OMAP24xx camera IRQ definition Signed-off-by: Samuel Ortiz Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit df51a84d93e776b7481d937ccd60be1b27d320c5 tree e94a6327eff576dac2ea84cae1e7e3ebda0f0cfe parent ae78dcf79aefa98a1ed245898467eb6d3bfc11e6 author Imre Deak Mon, 25 Sep 2006 12:41:21 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:21 +0300 ARM: OMAP: timer32k: fix tick count calculation when reprogramming Reprogramming takes places before putting the CPU into idle mode if the dynamic tick option is enabled. The timer is then set to expire at the next pending timer event. Because some time has already passed since the last reported jiffy we have to wait less than the time specified in jiffies. Also make sure we don't set a load value of 0 whose outcome is unspecified according to the TRM. Signed-off-by: Imre Deak Signed-off-by: Juha Yrjola Signed-off-by: Tony Lindgren commit ae78dcf79aefa98a1ed245898467eb6d3bfc11e6 tree 9aa69ece663dd5c8ed4ec5ec1cb776be04ec25b6 parent 7c250413e5b7c3dfae89354725b70c76d7621395 author Tony Lindgren Mon, 25 Sep 2006 12:41:20 +0300 committer Tony Lindgren Mon, 25 Sep 2006 12:41:20 +0300 ARM: OMAP: Avoid sleeping during arch_reset If we call clk_get() from arch_reset we get ugly messages before reboot. Signed-off-by: Tony Lindgren commit 7d95ded91149564100a3181d341361aedcfd5bf5 tree 5be7882a7cc3f3c646f12c2c60cb7a689d46d0ba parent baf97ce6eda5891ee45fae9c1b06db855bb697e1 author Tony Lindgren Wed, 20 Sep 2006 13:03:34 +0100 committer Russell King Mon, 25 Sep 2006 10:36:09 +0100 [ARM] 3838/1: ARM: DCC debug console support for ARM11 Adds support for CONFIG_DEBUG_ICEDCC for ARM11. Tested on ARM1136 (OMAP2420). Signed-off-by: Tony Lindgren Signed-off-by: Russell King commit baf97ce6eda5891ee45fae9c1b06db855bb697e1 tree 6fea562bd69bd3a2a807853fb20f04ff9c5e4063 parent 4cc9bd2eaa1063c68341c1c00e66660adcfdf254 author Russell King Thu, 21 Sep 2006 17:00:08 +0100 committer Russell King Mon, 25 Sep 2006 10:34:59 +0100 [ARM] Cleanups for 4cc9bd2eaa1063c68341c1c00e66660adcfdf254 - Document the meaning for OP_SCALAR, OP_SD and add OP_DD. - Formatting cleanups - Remove now redundant code for making compare instructions operate on scalar values. Signed-off-by: Russell King commit 4cc9bd2eaa1063c68341c1c00e66660adcfdf254 tree 3ee6d9f6b2075d4a5e340d2a3370f9e068aab723 parent f8c440b209581809c5c8acac599410f23597a7b8 author Gen FUKATSU Thu, 21 Sep 2006 14:08:24 +0100 committer Russell King Mon, 25 Sep 2006 10:34:06 +0100 [ARM] 3789/4: Fix VFP emulation to ignore VECITR for scalar instruction VECITR in Floating-Point Exception register indicates the number of remaining short vector iterations after a potential exception was detected. In case of exception caused by scalar instructions, VECITR is NOT updated. Therefore emulation for VFP must ignore VECITR field and treat "veclen" as zero when recognizing scalar instructing. Signed-off-by: Gen Fukatsu Signed-off-by: Russell King commit f8c440b209581809c5c8acac599410f23597a7b8 tree e2afdb25ea3edbec39187db139f51d5ba1b8d473 parent a71ebdfa5243765e455a9ec2d6360e1704c6599e author Dan Fandrich Wed, 20 Sep 2006 23:28:51 +0100 committer Russell King Mon, 25 Sep 2006 10:34:05 +0100 [ARM] 3792/2: Fix description of ZBOOT_ROM_BSS The documentation for the ZBOOT_ROM_BSS config option describes it as "The base address of 64KiB of read/write memory in the target for the ROM-able zImage..." In actuality, it requires more than 100 KiB of space in addition to enough space to hold the decompressed kernel. This patch fixes the description in the Kconfig file. Signed-off-by: Dan Fandrich Signed-off-by: Russell King commit a71ebdfa5243765e455a9ec2d6360e1704c6599e tree 07685ddb0d4a8f3b1872b73be5d6fda724a6dc9e parent e7cc2c59cc83558fc26f17eee3c8f901119f0a7c author George G. Davis Thu, 21 Sep 2006 03:57:04 +0100 committer Russell King Mon, 25 Sep 2006 10:34:04 +0100 [ARM] 3853/1: Fix flush_ptrace_access() thinko for nonaliasing VIPT cache case Fix thinko in the flush_ptrace_access() "if (expr)" for the ARM VIPT non-aliasing cache case. We only need to flush cache when VM_EXEC is set in vma->vm_flags but "if (expr) always evaluates to true on UP systems for the ARM VIPT non-aliasing cache case. Signed-off-by: George G. Davis Signed-off-by: Russell King commit e7cc2c59cc83558fc26f17eee3c8f901119f0a7c tree 5aa69457ad2fc134e7459fadc79beb682add2319 parent 0c92e830bd39f3e6cf7b151dffecafbdc623496c author Lennert Buytenhek Thu, 21 Sep 2006 03:35:20 +0100 committer Russell King Mon, 25 Sep 2006 10:34:03 +0100 [ARM] 3852/1: convert atomic bitops and __xchg over to raw_local_irq_{save,restore} Thomas Gleixner noticed that bitops.h should also use the raw_* irq disable/enable variants, and __xchg needs them as well. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 0c92e830bd39f3e6cf7b151dffecafbdc623496c tree 56d9d48416a73cc78cd318880542d7571f5e84cb parent e60d07b6cd38a7afb85f2cf51aebcb3359b63819 author Lennert Buytenhek Thu, 21 Sep 2006 02:46:03 +0100 committer Russell King Mon, 25 Sep 2006 10:34:02 +0100 [ARM] 3851/1: iop3xx: add io-data glantank support Add support for the IO-Data GLAN Tank, from Martin Michlmayr. Signed-off-by: Martin Michlmayr Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit e60d07b6cd38a7afb85f2cf51aebcb3359b63819 tree 639b895384a70502f2aac9e8f7bc82ec1a4930f4 parent 17b602b1c1a38f3f0a4461bb1f571346e751b36b author Lennert Buytenhek Thu, 21 Sep 2006 02:42:12 +0100 committer Russell King Mon, 25 Sep 2006 10:34:01 +0100 [ARM] 3850/1: iop3xx: add thecus n2100 support Add support for the Thecus n2100 (80219-based.) Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 17b602b1c1a38f3f0a4461bb1f571346e751b36b tree 406ea984d518c5eaa3fd14f03dd17ff216c356d4 parent 3b7a86c2f01dafa797908fdcf386f51eb0d01f29 author Lennert Buytenhek Thu, 21 Sep 2006 02:24:38 +0100 committer Russell King Mon, 25 Sep 2006 10:34:00 +0100 [ARM] 3849/1: fix get_unaligned() for gcc >= 4.1 gcc 4.1's __typeof__ propagates 'const', which breaks get_unaligned(). Rewrite get_unaligned() not to use __typeof__. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 3b7a86c2f01dafa797908fdcf386f51eb0d01f29 tree 0dc5f1b66573258e2eeb7058aa18b8bb03d89808 parent bccd7458c0f6229a8cfbfad6c1fc0894b1d5fee8 author Ben Dooks Wed, 20 Sep 2006 21:57:06 +0100 committer Russell King Mon, 25 Sep 2006 10:33:59 +0100 [ARM] 3846/1: S3C24XX: Fix osiris memory map The memory mapping for the Osiris machine are all off by one bit, and the base address has been fixed for writing (bit25 is being checked by the write, but not on read) Signed-off-by: Ben Dooks Signed-off-by: Russell King commit bccd7458c0f6229a8cfbfad6c1fc0894b1d5fee8 tree 389d8f81890ae4854226f825036243f0cbce5ccf parent 7f61a84076ce4a6fe83a381751e33972f2a91ddc author Ben Dooks Wed, 20 Sep 2006 21:15:29 +0100 committer Russell King Mon, 25 Sep 2006 10:33:58 +0100 [ARM] 3844/1: S3C24XX: update s3c2410_defconfig New s3c2410_defconfig, updated 2.6.18 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 7f61a84076ce4a6fe83a381751e33972f2a91ddc tree 8336051e71bf57ef9fd44177b799281f5f33613c parent 72d70d06d8e431f40fc2d41710615735c0a84aed author Ben Dooks Wed, 20 Sep 2006 20:54:54 +0100 committer Russell King Mon, 25 Sep 2006 10:33:57 +0100 [ARM] 3843/1: S3C24XX: Remove modfication lines from comments Remove the redundant Modification lines from the top of the files in arch/arm/mach-s3c2410 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 72d70d06d8e431f40fc2d41710615735c0a84aed tree 21a6a6e057b39ebf3ac89eccace253e0bf83489b parent d9bc55faf7aaeea1d098bc8511d074837edb149d author Ben Dooks Wed, 20 Sep 2006 20:46:09 +0100 committer Russell King Mon, 25 Sep 2006 10:33:56 +0100 [ARM] 3842/1: S3C2412: Rename LCD device The S3C2412 LCD controller is different enough to warrant renaming the platform device. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit d9bc55faf7aaeea1d098bc8511d074837edb149d tree 9454e1211aa8a790f3304ecf2e5b702cc9a55cb4 parent b6c440a98eb3245fb06d411f1bc9d584269e95d5 author Ben Dooks Wed, 20 Sep 2006 20:39:15 +0100 committer Russell King Mon, 25 Sep 2006 10:33:55 +0100 [ARM] 3841/1: S3C2412: Add new IDCODE 32412003 Add new code for the S3C2412 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit b6c440a98eb3245fb06d411f1bc9d584269e95d5 tree eca4fc008b9c20ff8a8e6b871436158b78d3354a parent 1649adc78d46db79510b92ffd58486ca82a86549 author Ben Dooks Wed, 20 Sep 2006 20:32:33 +0100 committer Russell King Mon, 25 Sep 2006 10:33:54 +0100 [ARM] 3840/1: S3C2412: Add machine VSTMS Add new machine VSTMS Signed-off-by: Ben Dooks Signed-off-by: Thomas Gleixner Signed-off-by: Russell King commit 1649adc78d46db79510b92ffd58486ca82a86549 tree 83df2b841f4e69878a479874c6b671d3d04a07f3 parent 8337dd68aaef4faaa15e126f9f5c3f6f02711508 author Russell King Sat, 23 Sep 2006 20:48:24 +0100 committer Russell King Mon, 25 Sep 2006 10:32:32 +0100 [ARM] Update mach-types Signed-off-by: Russell King commit 8337dd68aaef4faaa15e126f9f5c3f6f02711508 tree cec49f19ca768cef84153722a45f6f179bfbe87f parent 2d703ca0f9098fe0d6b1dbd668cf6eec3f701fb6 author Lennert Buytenhek Mon, 18 Sep 2006 23:32:04 +0100 committer Russell King Mon, 25 Sep 2006 10:25:55 +0100 [ARM] 3834/1: iop3xx: remove per-board defconfigs Remove the old per-board defconfigs. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 2d703ca0f9098fe0d6b1dbd668cf6eec3f701fb6 tree 01fd82e5476ef7f1afc8707e2c63963742e3a208 parent c852ac80440db9b0a47f48578e9c6303078abbc1 author Lennert Buytenhek Mon, 18 Sep 2006 23:31:31 +0100 committer Russell King Mon, 25 Sep 2006 10:25:54 +0100 [ARM] 3833/1: iop3xx: add per-mach defconfigs Add one defconfig for all iop32x boards and one defconfig for all iop33x boards. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit c852ac80440db9b0a47f48578e9c6303078abbc1 tree 0c7fc1ca7700b0196a20242ca306003db7e35fb6 parent 475549faa161f4e002225f2ef75fdd2a6d83d151 author Lennert Buytenhek Mon, 18 Sep 2006 23:26:25 +0100 committer Russell King Mon, 25 Sep 2006 10:25:53 +0100 [ARM] 3832/1: iop3xx: coding style cleanup Since the iop32x code isn't iop321-specific, and the iop33x code isn't iop331-specfic, do a s/iop321/iop32x/ and s/iop331/iop33x/, and tidy up the code to conform to the coding style guidelines somewhat better. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 475549faa161f4e002225f2ef75fdd2a6d83d151 tree 9b0e646fbe76fd51da6c3afc44e1baceea4f8f07 parent c680b77efe4542830bb170e1cc40db1c47c569bc author Lennert Buytenhek Mon, 18 Sep 2006 23:25:33 +0100 committer Russell King Mon, 25 Sep 2006 10:25:52 +0100 [ARM] 3831/1: iop3xx: factor out common register defines Factor out the register defines for a number of other peripherals common to the iop32x and iop33x. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit c680b77efe4542830bb170e1cc40db1c47c569bc tree ed79bf5cb4bab39e694690747c34cee8798c6d02 parent 7412b10f7967ef4210ed6f793004d23642dc5140 author Lennert Buytenhek Mon, 18 Sep 2006 23:24:52 +0100 committer Russell King Mon, 25 Sep 2006 10:25:50 +0100 [ARM] 3830/1: iop3xx: board support file cleanup Revamp the iop3xx board support: move the support code for each iop board type into its own file, start using platform serial and platform physmap flash devices, switch to a per-board time tick rate, and get rid of the ARCH_EP80219 and STEPD config options by doing the relevant checks at run time. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 7412b10f7967ef4210ed6f793004d23642dc5140 tree f82586f106e50c16b84878cee8e9265dfd9db5e5 parent d7d214e974b94e8332d1f6c16f6f19b661dfa855 author Lennert Buytenhek Mon, 18 Sep 2006 23:24:10 +0100 committer Russell King Mon, 25 Sep 2006 10:25:49 +0100 [ARM] 3829/1: iop3xx: optimise irq entry macros Squeeze three instructions out of the iop32x irq demuxer, and nine out of the iop33x irq demuxer by using the hardware vector generator. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit d7d214e974b94e8332d1f6c16f6f19b661dfa855 tree 9ec5a6d4885b3855008779170fe9ca35dfaabc1b parent 72edd84a6b2db1a21d1ed07929cae560e276a0a6 author Lennert Buytenhek Mon, 18 Sep 2006 23:23:38 +0100 committer Russell King Mon, 25 Sep 2006 10:25:48 +0100 [ARM] 3828/1: iop3xx: remove useless loadsp macro The iop33x loadsp hunk in arch/arm/boot/compressed/head.S serves no purpose -- remove it. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 72edd84a6b2db1a21d1ed07929cae560e276a0a6 tree b67000e2bbf7447968c784cc3696a680ad66c47e parent 610300e8f4f833904096ca1233ffd9dbd73fb11f author Lennert Buytenhek Mon, 18 Sep 2006 23:23:07 +0100 committer Russell King Mon, 25 Sep 2006 10:25:47 +0100 [ARM] 3827/1: iop3xx: add common gpio module Implement the gpio_line_{config,get,set} API for iop3xx. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 610300e8f4f833904096ca1233ffd9dbd73fb11f tree 2b8e26c511edbbfc666af184a3de984c03d06220 parent 38ce73ebd74a9a1738b73619557f2397c59ba628 author Lennert Buytenhek Mon, 18 Sep 2006 23:22:24 +0100 committer Russell King Mon, 25 Sep 2006 10:25:46 +0100 [ARM] 3826/1: iop3xx: remove IOP3??_IRQ_OFS irq offset Get rid of the unused IOP3??_IRQ_OFS irq offset define, start IRQ numbering from zero. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 38ce73ebd74a9a1738b73619557f2397c59ba628 tree 02c812c665d0bb9c6872f81ad64328306fa3157f parent 0b29de4a6ac0936f56b974a3c19bd9c24ac5b5d7 author Lennert Buytenhek Mon, 18 Sep 2006 23:21:38 +0100 committer Russell King Mon, 25 Sep 2006 10:25:45 +0100 [ARM] 3825/1: iop3xx: use cp6 enable/disable macros Add CP6 enable/disable sequences to the timekeeping code and the IRQ code. As a result, we can't depend on CP6 access being enabled when we enter get_irqnr_and_base anymore, so switch the latter over to using memory-mapped accesses for now. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 0b29de4a6ac0936f56b974a3c19bd9c24ac5b5d7 tree d93449b73cbfc51458d72cae01229c9df103ec0e parent 863753a81e4f863015be34900dc2ba3637622f34 author Lennert Buytenhek Mon, 18 Sep 2006 23:20:55 +0100 committer Russell King Mon, 25 Sep 2006 10:25:44 +0100 [ARM] 3824/1: iop3xx: add cp6 enable/disable macros Add macros to enable and disable access to CP6. On the iop3xx, enabling CP6 access unfortunately also enables access to that coprocessor from unprivileged code, so we need these macros to enable and disable access to the coprocessor whenever we need to access it. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 863753a81e4f863015be34900dc2ba3637622f34 tree 9843fbb5b8f972f488d056c3dd11de483064b27d parent 48388b2a56ae5e0f1c422e84d536f31729469b17 author Lennert Buytenhek Mon, 18 Sep 2006 23:19:02 +0100 committer Russell King Mon, 25 Sep 2006 10:25:43 +0100 [ARM] 3823/1: iop3xx: switch iop32x/iop33x over to shared time code Switch the iop32x and iop33x code over to the common time implementation, and remove the (nearly identical) iop32x and iop33x time implementations. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 48388b2a56ae5e0f1c422e84d536f31729469b17 tree b3206175b8b7d884eb65be6e85236369466d3994 parent 7e9740b11529a0a69789fbe92d324f293e6266f6 author Lennert Buytenhek Mon, 18 Sep 2006 23:18:16 +0100 committer Russell King Mon, 25 Sep 2006 10:25:42 +0100 [ARM] 3822/1: iop3xx: rewrite time handling Merge and rewrite the iop32x/iop33x time code to do lost jiffy tracking properly, and put the result in plat-iop/time.c. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 7e9740b11529a0a69789fbe92d324f293e6266f6 tree 7ea94f603608744270756b56c668d658174a5b9b parent 0cb015f9dea8a40d82d170be1a4f39ff909890bf author Lennert Buytenhek Mon, 18 Sep 2006 23:17:36 +0100 committer Russell King Mon, 25 Sep 2006 10:25:41 +0100 [ARM] 3821/1: iop3xx: switch iop32x/iop33x over to shared pci code Switch the iop32x and iop33x code over to the common PCI implementation, and remove the (nearly identical) iop32x and iop33x PCI implementations. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 0cb015f9dea8a40d82d170be1a4f39ff909890bf tree 5621ee188d4a48dc8f412370a8153503f0dd545e parent e25d64f1242e8586f6e20c26fd876a4d956a6c45 author Lennert Buytenhek Mon, 18 Sep 2006 23:16:23 +0100 committer Russell King Mon, 25 Sep 2006 10:25:39 +0100 [ARM] 3820/1: iop3xx: factor out shared pci code Merge the iop32x PCI code and iop33x PCI code into plat-iop/pci.c. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit e25d64f1242e8586f6e20c26fd876a4d956a6c45 tree 1a68da7173716896254847708dcd1675102a24ac parent 7ae1f7ec525c32db441836ab0ab010b85cb819a2 author Lennert Buytenhek Mon, 18 Sep 2006 23:15:21 +0100 committer Russell King Mon, 25 Sep 2006 10:25:38 +0100 [ARM] 3819/1: iop3xx: factor out shared i2c code Move the i2c bits shared between iop32x and iop33x to plat-iop/i2c.c and include/asm-arm/hardware/iop3xx.h. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 7ae1f7ec525c32db441836ab0ab010b85cb819a2 tree 25d87bd43198bdc3868c20cf3e8d44e8e343f0e6 parent 3f7e5815f4b774270e6506962de37af85aa9c830 author Lennert Buytenhek Mon, 18 Sep 2006 23:12:53 +0100 committer Russell King Mon, 25 Sep 2006 10:25:37 +0100 [ARM] 3818/1: iop3xx: introduce arch/arm/plat-iop for shared iop32x/iop33x code Introduce the arch/arm/plat-iop directory, for code shared between the iop32x and iop33x, and move the common memory map setup bits there. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 3f7e5815f4b774270e6506962de37af85aa9c830 tree 7e4a2b0d6f8b9f1a21ba7a4eb8baf1a1ec04d4f9 parent 98954df6917cb8f7e65f4f0f79ed641112fcf6b6 author Lennert Buytenhek Mon, 18 Sep 2006 23:10:26 +0100 committer Russell King Mon, 25 Sep 2006 10:25:36 +0100 [ARM] 3817/1: iop3xx: split the iop3xx mach into iop32x and iop33x Split the iop3xx mach type into iop32x and iop33x -- split the config symbols, and move the code in the mach-iop3xx directory to the mach-iop32x and mach-iop33x directories. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 98954df6917cb8f7e65f4f0f79ed641112fcf6b6 tree 64c6d17b7f05b8b1d7322f9d05201e374d779c6b parent cdf3f8e0387e81477dee72ecb2e3be28feac05c8 author Lennert Buytenhek Mon, 18 Sep 2006 23:02:25 +0100 committer Russell King Mon, 25 Sep 2006 10:25:34 +0100 [ARM] 3816/1: iop3xx: rename config symbols Rename CONFIG_ARCH_IOP321 to CONFIG_ARCH_IOP32X and CONFIG_ARCH_IOP331 to CONFIG_ARCH_IOP33X. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit cdf3f8e0387e81477dee72ecb2e3be28feac05c8 tree 6a2dd8f4b3afa374fce1e56d1d12446c2595f9c4 parent 50dedf168c1afd23cbc6c4fd8429c9e931b4e813 author Ben Dooks Tue, 19 Sep 2006 10:04:18 +0100 committer Russell King Mon, 25 Sep 2006 10:25:32 +0100 [ARM] 3836/1: S3C24XX: Clear both EINT and INT status before sleep Clear both the EINT and INT status before going to sleep, otherwise we may end up being woken by something that was not set in our wakeup map. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 50dedf168c1afd23cbc6c4fd8429c9e931b4e813 tree f2c184606f5ee0d8efe108cf5732b19ab8976d10 parent 0033a2f0d028400ad04588efbd5740c73f0eb740 author Ben Dooks Mon, 18 Sep 2006 10:19:06 +0100 committer Russell King Mon, 25 Sep 2006 10:25:30 +0100 [ARM] 3806/2: S3C2412: Fix GPIO VA when only S3C2412 selected The s3c24xx_va_gpio2 variable is only used when the S3C2412 and another cpu-type is being used in the kernel. This patch ensures it is not set when it is not being used. Fixes bug report by Thomas Gleixner. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 0033a2f0d028400ad04588efbd5740c73f0eb740 tree 16ea22f882eac68b61041dc7f3fdc13313fdfa7e parent 34348012d6b43eca5e241fe97381420d5758866c author Ben Dooks Tue, 19 Sep 2006 09:51:32 +0100 committer Russell King Mon, 25 Sep 2006 10:25:30 +0100 [ARM] 3803/2: S3C24XX: PM split S3C2410 out of core pm Remove the S3C2410 specific items out of the core PM code. Add sysdev driver for all the S3C24XX series that used the S3C2410 PM code. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 34348012d6b43eca5e241fe97381420d5758866c tree b4fd2e528cbc609cdebe4371df97802143bc7f57 parent 197c9444d6093b70c8faa24e7ab04a2423c9d14d author Ben Dooks Mon, 18 Sep 2006 23:52:03 +0100 committer Russell King Mon, 25 Sep 2006 10:25:29 +0100 [ARM] 3800/2: S3C2412: DMA channel mappings DMA channel mappings for the S3C2312 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 197c9444d6093b70c8faa24e7ab04a2423c9d14d tree 581916e32828c2454c099fdb443e2a7fefc5172e parent 51635ad282ead58b9d164f07e1fb62a9456b427c author Lennert Buytenhek Sat, 16 Sep 2006 10:52:02 +0100 committer Russell King Mon, 25 Sep 2006 10:25:27 +0100 [ARM] 3814/1: move 80200 dma_inv_range() erratum check out of line On stepping A0/A1 of the 80200, invalidating D-cache by line doesn't clear the dirty bits, which means that if we invalidate a dirty line, the dirty data can still be written back to memory later on. To work around this, dma_inv_range() on these two processors is implemented as dma_flush_range() (i.e. do a clean D-cache line before doing the invalidate D-cache line.) For this, we currently have a processor ID check in xscale_dma_inv_range(), but a better solution is to add a separate cache_fns and proc_info for A0/A1 80200. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 51635ad282ead58b9d164f07e1fb62a9456b427c tree a7d9fb162d09aaf02da3dee89520b10c07d92c8b parent bf11d26cb96fe8221ef056eedab692e91634cc65 author Lennert Buytenhek Sat, 16 Sep 2006 10:50:22 +0100 committer Russell King Mon, 25 Sep 2006 10:25:26 +0100 [ARM] 3813/1: prevent >= 4G /dev/mem mmap() Prevent userland from mapping in physical address regions >= 4G by checking for that in valid_mmap_phys_addr_range(). Unfortunately, we cannot override valid_mmap_phys_addr_range() without also overriding valid_phys_addr_range(), so copy drivers/char/mem.c's version of valid_phys_addr_range() over to arch/arm/mm/mmap.c as well. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit bf11d26cb96fe8221ef056eedab692e91634cc65 tree 858416eb5178b9a5554c550113695d4010f3971e parent 8dd5c845bbc26c3517398abc3e5477b4b42e7176 author Lennert Buytenhek Sat, 16 Sep 2006 10:48:02 +0100 committer Russell King Mon, 25 Sep 2006 10:25:25 +0100 [ARM] 3811/1: ep93xx: add cirrus logic edb9312 support Add Cirrus Logic EDB9312 support. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 8dd5c845bbc26c3517398abc3e5477b4b42e7176 tree 76f9a6d4aba323653a65a4354bf7fe65805a7808 parent 34148c6990d2f0107b53fe4ddf29b1ba30e613d3 author Lennert Buytenhek Sat, 16 Sep 2006 10:47:18 +0100 committer Russell King Mon, 25 Sep 2006 10:25:24 +0100 [ARM] 3810/1: switch atomic helpers over to raw_local_irq_{save,restore} Now that we have raw_* variants of local_irq_$FOO(), switch the atomic helpers over to use those raw_* variants. This is necessary when using lockdep on pre-ARMv6 hardware, as lockdep uses atomic_t counters in the trace_hardirqs_off() path. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 34148c6990d2f0107b53fe4ddf29b1ba30e613d3 tree 235cdd81392bc8c78bf9bd3de31d287f420ff494 parent 3e9fc8e5de0fb00226325cf34eb08411eb72ec6d author Ben Dooks Sat, 16 Sep 2006 00:12:53 +0100 committer Russell King Mon, 25 Sep 2006 10:25:23 +0100 [ARM] 3805/1: S3C2412: LCD register update Add LCD register definitions for the S3C2412. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 3e9fc8e5de0fb00226325cf34eb08411eb72ec6d tree a63da8bbdd8d92bec49d2dc70862316007078151 parent 58095d7f39edc919cd3c63c6109ad282e7085da1 author Ben Dooks Sat, 16 Sep 2006 00:11:32 +0100 committer Russell King Mon, 25 Sep 2006 10:25:22 +0100 [ARM] 3804/1: S3C2442: LCD register update Add LCD register definitions for the S3C2442. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 58095d7f39edc919cd3c63c6109ad282e7085da1 tree d0e7f7ef1a5a4b68dafbbc8e83eb57abd581bb83 parent 1e582fc73781da47eddd90c75bf97f191e4f450f author Ben Dooks Sat, 16 Sep 2006 00:04:23 +0100 committer Russell King Mon, 25 Sep 2006 10:25:21 +0100 [ARM] 3802/1: S3C24XX: PM tidy up cache flushing Change to using flush_cache_all() in pm.c and also remove the need to flush the cache in the PM code. This changes the sleep.S code to have an entry to store the registers for resume, and then a second entry (after the caches are cleaned) to do the suspend and resume. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 1e582fc73781da47eddd90c75bf97f191e4f450f tree 7cbfc0c3eb2b206dd3a39dbe6e00675b4c331a8b parent 3fc3a25ba47735296984ddbb2e6ba504017ec3e1 author Ben Dooks Sat, 16 Sep 2006 00:01:39 +0100 committer Russell King Mon, 25 Sep 2006 10:25:20 +0100 [ARM] 3801/1: S3C24XX: Move IRQ PM out of pm.c Seperate the IRQ power management code out of the pm.c file, and add it to the relevant system class devices. Also make the suspend and resume code take notice of the fact these registers can be moved by compile time code. Add fix from Ilya Yanok to also save the INTSUBMSK over sleep. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 3fc3a25ba47735296984ddbb2e6ba504017ec3e1 tree 1d863539f440805e761a24b7cb5578a1f0178325 parent 98c418a002ce5f3110eeb31d1ce8261f5199997d author Ben Dooks Fri, 15 Sep 2006 23:46:20 +0100 committer Russell King Mon, 25 Sep 2006 10:25:19 +0100 [ARM] 3799/1: S3C2442: DMA channel mappings DMA channel mappings for the S3C2442 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 98c418a002ce5f3110eeb31d1ce8261f5199997d tree 5fc4c72fe6a01afa33fe4a88a53bd980320ab299 parent c374fe7148f1b13854186a7a14c4a2c4ffe3134b author Ben Dooks Fri, 15 Sep 2006 23:45:17 +0100 committer Russell King Mon, 25 Sep 2006 10:25:18 +0100 [ARM] 3798/1: S3C2440: DMA channel mappings S3C2440 DMA channel mappings Signed-off-by: Ben Dooks Signed-off-by: Russell King commit c374fe7148f1b13854186a7a14c4a2c4ffe3134b tree 7dd6b996fbcdc6e01d794703c9cf9d0493786d48 parent 505788cccbb96cd496b646594c8a5fcdc26bc2d9 author Ben Dooks Fri, 15 Sep 2006 23:44:00 +0100 committer Russell King Mon, 25 Sep 2006 10:25:16 +0100 [ARM] 3797/1: S3C2410: DMA channel mappings DMA channel mappings for the S3C2410 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 505788cccbb96cd496b646594c8a5fcdc26bc2d9 tree 9dbf59540c937cada2c5ae81e8459c50842374a3 parent fd88edd20fb0e8e2729aa8ce565316242189ceea author Ben Dooks Fri, 15 Sep 2006 23:42:24 +0100 committer Russell King Mon, 25 Sep 2006 10:25:15 +0100 [ARM] 3796/1: S3C24XX: Add per-cpu DMA channel mapper Allow each CPU type in the S3C24XX range to select the DMA channel mapping it supports. We change the DMA registration to use an virtual channel number that the DMA system will allocate to a hardware channel at request time. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit fd88edd20fb0e8e2729aa8ce565316242189ceea tree 1259136625c59c1212013a2e3f3e131dd25f79cc parent acc46c0144b6d1cf0d77bb8b4d1b7dcd5dc28d71 author Ben Dooks Fri, 15 Sep 2006 23:34:34 +0100 committer Russell King Mon, 25 Sep 2006 10:25:14 +0100 [ARM] 3795/1: S3C24XX: add base AC97 registers Add base definitions for the AC97 register definitions. Signed-off-by: Ben Dooks Signed-off-by: Russell King 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 2ed6d22cec37d9a3df4c5bacf1160dee7700106e tree 4623ce1d0aa0f22c5b65ff7014034f24df13e5cc parent 42431acbac43eb47c774c29d370f5c59136805bf author Russell King Sun, 24 Sep 2006 10:46:43 +0100 committer Russell King Sun, 24 Sep 2006 10:46:43 +0100 [MMC] Don't check READY_FOR_DATA when reading There's no point checking to see if the card is ready to accept data when we're reading from it - sending the command only wastes precious bus bandwidth. Signed-off-by: Russell King commit 42431acbac43eb47c774c29d370f5c59136805bf tree 6e2a3353b4aa3f7ab179d10c287053f04c637542 parent db53f28b3a6d9338cca1b7e917dc063ac99e1871 author Russell King Sun, 24 Sep 2006 10:44:09 +0100 committer Russell King Sun, 24 Sep 2006 10:44:09 +0100 [MMC] MMC_CAP_BYTEBLOCK flag for non-log2 block sizes capable hosts Some MMC hosts can only handle log2 block sizes. Unfortunately, the MMC password support needs to be able to send non-log2 block sizes. Provide a capability so that the MMC password support can decide whether it should use this support or not. The unfortunate side effect of this host limitation is that any MMC card protected by a password which is not a log2 block size can not be accessed on a host which only allows a log2 block size. This change just adds the flag. The MMC password support code needs updating to use it (if and when it is finally submitted.) Signed-off-by: Russell King 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 3253b669eed7194ae490acb4aadab7262bbfeb8d tree 376e683b87841ac2fa30d43f705d6982c2edc990 parent 919251758195919ae3568021bc221e4f8c4b20eb author Stefan Richter Thu, 14 Sep 2006 22:05:16 +0200 committer Stefan Richter Sat, 23 Sep 2006 15:13:55 +0200 ieee1394: raw1394: arm functions slept in atomic context Sleeping functions like copy_to_user were accessed inside spinlocks in raw1394's arm_register, arm_unregister, arm_get_buf, arm_set_buf. http://bugzilla.kernel.org/show_bug.cgi?id=7120 Signed-off-by: Stefan Richter Tested-by: David Trent (cherry picked from e575953ec17c3f5c1e738847d2d16c241bb99783 commit) commit 919251758195919ae3568021bc221e4f8c4b20eb tree 81137a037ff8e6c91cc8de72d568275605c653c5 parent c394f1eafef61c6666f5876afde6110a276c4c9f parent 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a author Stefan Richter Sat, 23 Sep 2006 14:34:10 +0200 committer Stefan Richter Sat, 23 Sep 2006 14:34:10 +0200 Merge branch 'mainline' into upstream-linus 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 3e14a2867d8ccf555fe6e318eac0f8200399fe1c tree a33f49fd5c107c0dc9101217e48602cea3376b32 parent 54a56ac583ac66f3f4bc2c4cc3ef9b0676770742 author Michel Daenzer Fri, 22 Sep 2006 04:26:35 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:34 +1000 drm: Use register writes instead of BITBLT_MULTI packets for buffer swap blits This takes up two more ring buffer entries per rectangle blitted but makes sure the blit is performed top to bottom, reducing the likelyhood of tearing. Signed-off-by: Dave Airlie commit 54a56ac583ac66f3f4bc2c4cc3ef9b0676770742 tree 7aeb381e897c6b247c1836788b1feb10a8048f74 parent 2f02cc3fb8960754a2a5df6a33f53528e0d830be author Dave Airlie Fri, 22 Sep 2006 04:25:09 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:34 +1000 drm: use radeon specific names for radeon flags Signed-off-by: Dave Airlie commit 2f02cc3fb8960754a2a5df6a33f53528e0d830be tree 73c692f47c6f589e394b71b89122f9566ecbd11d parent e08870c87ab5b0c0c3cb05d0d0041240736493e4 author Eric Anholt Fri, 22 Sep 2006 04:19:34 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:34 +1000 drm: add device/vendor id to drm_device_t for compat with FreeBSD drivers Signed-off-by: Dave Airlie commit e08870c87ab5b0c0c3cb05d0d0041240736493e4 tree fcc53c55b955143793187aad54d331f2e8f7a49a parent 214ff13d9ebbba7940f29bc89669f85f12533083 author Thomas Hellstrom Fri, 22 Sep 2006 04:18:37 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:34 +1000 drm: allow multiple addMaps with the same 32-bit map offsset. Reported on -mm kernels. Signed-off-by: Dave Airlie commit 214ff13d9ebbba7940f29bc89669f85f12533083 tree bb1e106de12fca7046be3bc6b21cb13a765e4ea1 parent 47cc140931cc03076014fdbfdd512d6dd9d74d34 author Michel Daenzer Fri, 22 Sep 2006 04:12:11 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:34 +1000 drm: fd.o Bug #7595: Avoid u32 overflows in radeon_check_and_fixup_offset(). The overflows could cause valid offsets to get rejected under some circumstances, e.g. when the framebuffer resides at the very end of the card's address space. Signed-off-by: Dave Airlie commit 47cc140931cc03076014fdbfdd512d6dd9d74d34 tree 14998b3aee870ed85a732541164aecd6b213ec9c parent 9b1a51b69c89028f18277e235533c160e7506ebb author Thomas Hellstrom Fri, 22 Sep 2006 04:04:18 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:34 +1000 drm: Fix hashtab implementation leaking illegal error codes to user space. reported by Dave Airlie Signed-off-by: Dave Airlie commit 9b1a51b69c89028f18277e235533c160e7506ebb tree 4f73b62d45e409259cfb6ef19b7977f5aca3dc66 parent 1f27ce6ab7ad7abf014ef7f181d494cf1107f9db author Dave Airlie Fri, 22 Sep 2006 03:37:19 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: domain changes broke ppc r200 Freedesktop.org bug #8246 The domain changes regressed on PPC, go back to just using 0, as X.org's domain support is crap Signed-off-by: Dave Airlie commit 1f27ce6ab7ad7abf014ef7f181d494cf1107f9db tree 85e8a9b3fe35f6ac871b52659fc3fa7921052f29 parent 46acbf13fb280e69c5cafe7c837d5a27c6e380c3 author Dave Airlie Sun, 27 Aug 2006 11:11:14 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: fixup setversion return codes.. Frederik Deweerdt noticed some badness in setversion returns, however just making it work, breaks things... this code is hairy with backwards compat... Signed-off-by: Dave Airlie commit 46acbf13fb280e69c5cafe7c837d5a27c6e380c3 tree 4ebc937d60c6132af73202bb57a1540474617aa9 parent b15ec36806ce3b89a2fddce958de9370efb249da author Dave Airlie Sun, 27 Aug 2006 11:09:46 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: fixup i915 error codes Frederik Deweerdt pointed this out, I fixed a missing DRM error wrapper also. Signed-off-by: Dave Airlie commit b15ec36806ce3b89a2fddce958de9370efb249da tree a7c027ffd411eb719123aec77c69355cdf4aded2 parent d40c8533a5b8ca1887f81ae1c81136f3c40a8488 author Dave Airlie Sat, 19 Aug 2006 17:43:52 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: realign sosme radeon code with drm git tree this applies some minor cleanups for the radeon driver, to use the 3D flush and reset the AGP flags on X recycle Signed-off-by: Dave Airlie commit d40c8533a5b8ca1887f81ae1c81136f3c40a8488 tree 53790b7313dbab36de615cf369949438cfb06010 parent 1f4eccfdb2a5f8b2751aea8cf2d6b00401c156e0 author Dave Airlie Sat, 19 Aug 2006 17:40:50 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: realign via driver with drm git tree This just realigns some code/whitespace between the kernel and main tree Signed-off-by: Dave Airlie commit 1f4eccfdb2a5f8b2751aea8cf2d6b00401c156e0 tree 4ad236f299d478a6a2ce7c59b921c50fb2bd1206 parent fb41e54be4bad6f64d343d051d699efde3c92e2c author Thomas Hellstrom Fri, 18 Aug 2006 16:37:10 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: remove hash tables on drm exit Signed-off-by: Dave Airlie commit fb41e54be4bad6f64d343d051d699efde3c92e2c tree d52f398bfbafe071e09a46c8637bd79c9a608753 parent c7aed1790254aed286b7bfb51167c2676df86f4b author Adrian Bunk Wed, 16 Aug 2006 11:55:18 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: cleanups This patch contains the following cleanups: - make 3 needlessly global functions static - sis_mm.c: fix compile warnings with CONFIG_FB_SIS=y Signed-off-by: Adrian Bunk Signed-off-by: Dave Airlie commit c7aed1790254aed286b7bfb51167c2676df86f4b tree a33b073fb62cb18cf6184da8c2f7d2e7f94533ae parent 0a0c721dc5d0de011e5d363cd454c60c66ca00ec author Denis Vlasenko Wed, 16 Aug 2006 11:54:07 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:33 +1000 drm: i810_dma.c: fix pointer arithmetic for 64-bit target First warning result from open-coded PTR_ERR, the rest is caused by code like this: *(u32 *) ((u32) buf_priv->kernel_virtual + used) I've also fixed a missing PTR_ERR in i830_dma.c Signed-off-by: Dave Airlie commit 0a0c721dc5d0de011e5d363cd454c60c66ca00ec tree 6afaf6fb6a25e82768212c1122cb89d21bc7a85f parent bd5af0781aed12b9707d238c17cf55d46f9bf98d author Thomas Hellstrom Wed, 16 Aug 2006 09:21:56 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: avoid kernel oops in some error paths calling drm_lastclose Signed-off-by: Dave Airlie commit bd5af0781aed12b9707d238c17cf55d46f9bf98d tree 07afd90787a4021f05a9a31e0b9259d50af2badc parent 78eca43d0391f59c3b1505bb7bd38ff45b650aab author Chuck Short Wed, 16 Aug 2006 09:17:53 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: allow detection of new VIA chipsets Update pci ids. patch location: http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=c ommitdiff;h=5195a64a27550a279b2ecaf400066a3823f2d053 Signed-off-by: Chuck Short Signed-off-by: Ben Collins Signed-off-by: Andrew Morton Signed-off-by: Dave Airlie commit 78eca43d0391f59c3b1505bb7bd38ff45b650aab tree 9d2b2fb545e115bd8d2264a7598141c4e4a82382 parent a1d0fcf5a1cf56ae4711c7e0f857832724a67e8b author Andrew Morton Wed, 16 Aug 2006 09:15:51 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: fix i965 build bug Signed-off-by: Andrew Morton Signed-off-by: Dave Airlie commit a1d0fcf5a1cf56ae4711c7e0f857832724a67e8b tree 2773f67ec366cecdf18de83a0df867ce7164fe93 parent c29b669caae4ed1630ef479e54bdde126a0378ec author Andrew Morton Mon, 14 Aug 2006 11:35:15 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: remove FALSE/TRUE that snuck in with simple memory manager changes. Thanks to Andrew Morton for pointing these out, I've fixed a few his patch missed. Signed-off-by: Andrew Morton Signed-off-by: Dave Airlie commit c29b669caae4ed1630ef479e54bdde126a0378ec tree 6a1b68ea33fd6bcfcf921494df35bc532aaac7ad parent d000b486ea1633380e6224c03e94227db46567ad author Alan Hourihane Sat, 12 Aug 2006 16:29:24 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: Add support for Intel i965G chipsets. This is a patch prepared by Guangdeng Liao based off of Tungsten Graphics's final code drop. From: Alan Hourihane Signed-off-by: Dave Airlie commit d000b486ea1633380e6224c03e94227db46567ad tree a1cb40e7daa042b24a3a6653236be224512600ac parent c2604ce05853939cf712ebc5acc0da4011289346 author Dave Airlie Sat, 12 Aug 2006 16:03:52 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: add better explanation for i830/i915 Signed-off-by: Dave Airlie commit c2604ce05853939cf712ebc5acc0da4011289346 tree 49890202d044b01f8188a59bcc9c5daf40f08ce0 parent 572225bedf8e39b5dd7cc687a51015edbb738401 author Dave Airlie Sat, 12 Aug 2006 16:03:26 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: remove a tab that snuck in Signed-off-by: Dave Airlie commit 572225bedf8e39b5dd7cc687a51015edbb738401 tree ef74665d157db35c08fb4f1346f5e9b10dc849f5 parent 7981bf7d494a6c4d45e22c54b0da887e5a67e705 author Dave Airlie Tue, 08 Aug 2006 22:17:02 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:32 +1000 drm: fix return value in auth function This just fixes up the return value in the drm_auth:remove_magic Signed-off-by: Dave Airlie commit 7981bf7d494a6c4d45e22c54b0da887e5a67e705 tree 2cf27c4def2875d2463050056def16736189f5f3 parent 8d153f7107ff2c5d6e32053ae377c961187ab6b9 author Thomas Hellstrom Tue, 08 Aug 2006 21:34:46 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: SiS 315 Awareness. Add support for the SiS 315 to the DRM. Signed-off-by: Dave Airlie commit 8d153f7107ff2c5d6e32053ae377c961187ab6b9 tree c90cdf1bf8e04237e840b37033fc0f57b74ab292 parent 8669cbc5e651bf4effa20e8c244a5a7d67da6fe9 author Thomas Hellstrom Mon, 07 Aug 2006 22:36:47 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: update user token hashing and map handles Keep hashed user tokens, with the following changes: 32-bit physical device addresses are mapped directly to user-tokens. No duplicate maps are allowed, and the addresses are assumed to be outside of the range 0x10000000 through 0x30000000. The user-token is identical to the 32-bit physical start-address of the map. 64-bit physical device addressed are mapped to user-tokens in the range 0x10000000 to 0x30000000 with page-size increments. The user_token should not be interpreted as an address. Other map types, like upcoming TTM maps are mapped to user-tokens in the range 0x10000000 to 0x30000000 with page-size increments. The user_token should not be interpreted as an address. Implement hashed map lookups. Signed-off-by: Dave Airlie commit 8669cbc5e651bf4effa20e8c244a5a7d67da6fe9 tree a97ac359c8041bc39efc0f32cac26772a43a0736 parent 3d45dbd611d1441d667b06acced9fbad3c8fcb1b author Thomas Hellstrom Mon, 07 Aug 2006 22:22:10 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: move drm authentication to new generic hash table. Fix drm_remove_magic potential memory leak / corruption. Move drm authentication token hashing to new generic hash table implementation. Signed-off-by: Dave Airlie commit 3d45dbd611d1441d667b06acced9fbad3c8fcb1b tree 954dab8ef875c3902bc20de34bb2db5523327c43 parent ce65a44de07f73ceda1749812b75086b7add408d author Dave Airlie Mon, 07 Aug 2006 22:06:04 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: Add the P4VM800PRO (?) PCI ID. Signed-off-by: Dave Airlie commit ce65a44de07f73ceda1749812b75086b7add408d tree 9656065df50d0125b834e100aa2f5038c8d207e7 parent 3a1bd924f36da202e480a0e0174b2878c0924a05 author Thomas Hellstrom Mon, 07 Aug 2006 22:03:22 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: add drm simple memory manager support for SiS and VIA drivers This add support to the SiS and VIA drivers for the simple memory manager. This fixes a lot of problems with the current simple code these drivers used, including locking and SMP issues. Signed-off-by: Dave Airlie commit 3a1bd924f36da202e480a0e0174b2878c0924a05 tree ffae75227509c612a12dc1abb4f9b717de185054 parent b9b603dd1c99a68e65ad51cda25379441df2e17b author Thomas Hellstrom Mon, 07 Aug 2006 21:30:28 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: add simple DRM memory manager, and hash table This adds the DRM hashtable and simple memory manager implementations from Tungsten Graphics, this is NOT the new memory manager, this is a replacement for the SIS and VIA memory managers. Signed-off-by: Dave Airlie commit b9b603dd1c99a68e65ad51cda25379441df2e17b tree 7f8c00912a48714072840a2d4345282ae5d25049 parent ae1b1a4816ac11075d338af79a239f4c326d675c author Michel Dänzer Mon, 07 Aug 2006 20:41:53 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:31 +1000 drm: radeon: Use RADEON_RB3D_DSTCACHE_CTLSTAT instead of RADEON_RB2D_DSTCACHE_CTLSTAT. The latter seems to be a read-only mirror of the former. Signed-off-by: Dave Airlie commit ae1b1a4816ac11075d338af79a239f4c326d675c tree 60faac04eb4cf6d08b01d41e33dddd0f8275aad0 parent 8624ecbf68e90e5a8124514a0b7f92767fb80a62 author Michel Dänzer Mon, 07 Aug 2006 20:37:46 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: radeon: fix up bus mastering when writeback is disabled When writeback isn't used, actually disable it in the hardware. Not doing this might waste bus bandwidth or even cause memory corruption or system crashes on systems that check bus transfers. No such incident has been reported though. Signed-off-by: Dave Airlie commit 8624ecbf68e90e5a8124514a0b7f92767fb80a62 tree b0de0beb4e43e567f6e09a4dae08a9fb0ad494ec parent 9ca941615ee6418cd38c13602960f29c7ac7d973 author Michel Dänzer Mon, 07 Aug 2006 20:33:57 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: radeon: implement RADEON_PARAM_SCRATCH_OFFSET getparam When this succeeds, userspace can read the scratch register contents from th mapped writeback page directly. Signed-off-by: Dave Airlie commit 9ca941615ee6418cd38c13602960f29c7ac7d973 tree 6340fb5032820937553be543bc80766965016ae8 parent 7a3f1f216b92724ff822fe3122272b7fd6a58f8c author Michel Dänzer Mon, 07 Aug 2006 20:31:30 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: radeon: add some debug output when getparam is called with unknown Signed-off-by: Dave Airlie commit 7a3f1f216b92724ff822fe3122272b7fd6a58f8c tree f9ee051d41c0de64656a453ae29f8d94594c3320 parent 332296016ee2e808b362de66bf6bec49c396e5bf author Thomas Hellstrom Mon, 07 Aug 2006 20:28:29 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: missing mutex unlock Signed-off-by: Dave Airlie commit 332296016ee2e808b362de66bf6bec49c396e5bf tree 4bf9c5794f851f1a54e8468b4da9c0531795e004 parent 242ef0e1e7e5bb7e80c3620c1aa55168819d6fb8 author Dave Airlie Mon, 07 Aug 2006 20:23:42 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: remove the DRM pci domain This patch removes the pci_domain from the DRM device structure, and gets it via a macro that either asks the platform or does the alpha special case. jgarzik asked for this to just use the platform magic, but I've no alpha experience and I'd rather not just break it and wait for someone to give out. Signed-off-by: Dave Airlie commit 242ef0e1e7e5bb7e80c3620c1aa55168819d6fb8 tree 759bc571c641b90271c306ee37c6dfff7daffca3 parent 3d77461ecd7fb92bb888f69478e3518b3c947ce3 author Dave Tue, 18 Jul 2006 04:01:01 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: remove local copies of pci bus/slot/func The drm keeps a local copy of these for little use. Signed-off-by: Dave Airlie commit 3d77461ecd7fb92bb888f69478e3518b3c947ce3 tree 8f5c01d7d50873e9361aa50a070f633bb77f838c parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Dave Airlie Mon, 07 Aug 2006 20:07:43 +1000 committer Dave Airlie Fri, 22 Sep 2006 05:32:30 +1000 drm: cleanup old compat code and DRM fns from Linux only code This patch removes some of the old compatibility macros from the DRM, and removes use of DRM wrappers from Linux specific code. Signed-off-by: Dave Airlie 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 acc46c0144b6d1cf0d77bb8b4d1b7dcd5dc28d71 tree b68d114c88a98b5463d397be5fed6376172ab2b1 parent 6a39dd6222dda5ee2414a1b42e8e62118742a49e author Greg Ungerer Thu, 14 Sep 2006 00:28:26 +1000 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] nommu: create flat.h to support uClinux flat binaries Create header with uClinux flat format binary support macros for ARM platforms. Derived from the m68knommu flat.h. Signed-off-by: Greg Ungerer Signed-off-by: Russell King commit 6a39dd6222dda5ee2414a1b42e8e62118742a49e tree 8c4eeeb2d48b583aed900f2a3e8c57f0536a0193 parent 681a4991f83742a0d2325afbf7b7f22045ad5b30 author Daniel Jacobowitz Wed, 30 Aug 2006 15:02:08 +0100 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] 3759/2: Remove uses of %? Patch from Daniel Jacobowitz The ARM kernel has several uses of asm("foo%?"). %? is a GCC internal modifier used to output conditional execution predicates. However, no version of GCC supports conditionalizing asm statements. GCC 4.2 will correctly expand %? to the empty string in user asms. Earlier versions may reuse the condition from the previous instruction. In 'if (foo) asm ("bar%?");' this is somewhat likely to be right... but not reliable. So, the only safe thing to do is to remove the uses of %?. I believe the tlbflush.h occurances were supposed to be removed before, based on the comment about %? not working at the top of that file. Old versions of GCC could omit branches around user asms if the asm didn't mark the condition codes as clobbered. This problem hasn't been seen on any recent (3.x or 4.x) GCC, but it could theoretically happen. So, where %? was removed a cc clobber was added. Signed-off-by: Daniel Jacobowitz Signed-off-by: Russell King commit 681a4991f83742a0d2325afbf7b7f22045ad5b30 tree 8665ef5bba53d53759c34e6e8c0fa08c98c8e4f2 parent b36e4758dc1b9ff1f6d97e951edba22366230d11 author Russell King Sun, 27 Aug 2006 12:38:34 +0100 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] Optimise VFP thread notify function a little The common case for the thread notifier is a context switch. Tell gcc that this is the most likely condition so it can optimise the function for this case. Signed-off-by: Russell King commit b36e4758dc1b9ff1f6d97e951edba22366230d11 tree 3419ae3d588bdc1ecc51748c63077cb18ac974c3 parent 7ad1bcb25c5623f1f87c50fdf2272f58ff91db5a author Russell King Sun, 27 Aug 2006 12:26:34 +0100 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] Fix kernel/fork.c for lockdep on ARM ARM has interrupts enabled over context switches (iow, has __ARCH_WANT_INTERRUPTS_ON_CTXSW defined.) The lockdep code in fork.c assumes that interrupts are always disabled. Fix this wrong assumption by making the initialisation of 'p->hardirqs_enabled' depend on __ARCH_WANT_INTERRUPTS_ON_CTXSW. Acked-by: Ingo Molnar Signed-off-by: Russell King commit 7ad1bcb25c5623f1f87c50fdf2272f58ff91db5a tree 75323e39a757fdb92ff4b44bd85ab4c72cbc1ed2 parent d84b47115a04d9f6b0da777e8aa8cd930d5b6b8b author Russell King Sun, 27 Aug 2006 12:07:02 +0100 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] Add ARM irqtrace support This adds support for irqtrace for lockdep on ARM. Signed-off-by: Russell King commit d84b47115a04d9f6b0da777e8aa8cd930d5b6b8b tree 7ec15930b462387c6f740d9acb82c854c5cf7d87 parent 1b2e2b73b4c84c918686c04a00724197036c0847 author Russell King Mon, 21 Aug 2006 19:23:38 +0100 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] Move mmu.c out of the way Rename mmu.c to context.c - it's the ARMv6 ASID context handling code rather than generic "mmu" handling code. Signed-off-by: Russell King commit 1b2e2b73b4c84c918686c04a00724197036c0847 tree d0b2d703573dbe5a7f3d6d647b51a3137e039007 parent e478bec0ba0a83a48a0f6982934b6de079e7e6b3 author Russell King Mon, 21 Aug 2006 17:06:38 +0100 committer Russell King Wed, 20 Sep 2006 14:58:35 +0100 [ARM] Cleanup arch/arm/mm a little Move top_pmd into arch/arm/mm/mm.h - nothing outside arch/arm/mm references it. Move the repeated definition of TOP_PTE into mm/mm.h, as well as a few function prototypes. Signed-off-by: Russell King 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 c394f1eafef61c6666f5876afde6110a276c4c9f tree 687d5ee149996dd6bdd8da1a190d418569f51e0a parent 87730d045913f28e636cf53ad35950069a85c7f2 author Stefan Richter Mon, 07 Aug 2006 20:48:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:53:01 +0200 ieee1394: sbp2: enable auto spin-up for all SBP-2 devices This is a follow-up to patch "ieee1394: sbp2: enable auto spin-up for Maxtor disks". When I 'ejected' an OXUF922 based HDD from a Mac OS X box, it was spun down by the Mac and did not spin up by itself when attached to a Linux box right after that. The first SCSI command that required the bridge to access the drive ended in sda:<6>sd 18:0:0:0: Device not ready: <6>: Current: sense key: Not Ready Additional sense: Logical unit not ready, initializing cmd. required Therefore the flag which instructs scsi_mod to send START STOP UNIT with START=1 ("make medium ready") after such a condition is now enabled unconditionally for all FireWire storage devices. Signed-off-by: Stefan Richter commit 87730d045913f28e636cf53ad35950069a85c7f2 tree 3dda368b03e08ecd78721b435c786387a66023b6 parent ea6104c22468239083857fa07425c312b1ecb424 author Stefan Richter Sat, 16 Sep 2006 12:24:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:41:48 +0200 MAINTAINERS: updates to IEEE 1394 subsystem maintainership - Stefan Richter snatches Jody's place - update path to linux1394.org's repo - remove now redundant entries of ohci1394 and sbp2 - promote eth1394 from Orphaned to Odd Fixes - Stefan takes patches to pcilynx but doesn't have the hardware Signed-off-by: Stefan Richter commit ea6104c22468239083857fa07425c312b1ecb424 tree ad34dd8e4cfb7f667de04f2ec89dd0db94f23427 parent f0645e7720e0baacbde61d7d1f0180309451c695 author Stefan Richter Sun, 17 Sep 2006 19:41:45 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:41:45 +0200 ieee1394: ohci1394: check for errors in suspend or resume Some of the suspend and resume litany may fail. Tell the PCI core about it. Signed-off-by: Stefan Richter commit f0645e7720e0baacbde61d7d1f0180309451c695 tree 78a0c50f341648770963372162331643888647ba parent 9531f13ae56b136d0ad09e6e5c8308a7dc58f3f0 author Pavel Machek Sun, 17 Sep 2006 19:39:06 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:39:06 +0200 set power state of firewire host during suspend Put firewire host controller in PCI Dx state for system suspend. (I was not able to measure any power savings, but it sounds like right thing to do, anyway.) Signed-off-by: Pavel Machek Update by stefanr: Shuffle with existing PPC_PMAC code. Set power state in the resume hook too. Signed-off-by: Stefan Richter commit 9531f13ae56b136d0ad09e6e5c8308a7dc58f3f0 tree f4f3f0348abd5ca2fc5404d0418122d9191330fc parent cf82703dc6f8197341ca6be33cd38e80332685f0 author Stefan Richter Thu, 07 Sep 2006 20:36:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:39:01 +0200 ieee1394: ohci1394: more obvious endianess handling Rename ohci1394's packet_swab to header_le32_to_cpu to better reflect what it actually does. Also, define a constant array as 'const' and check the array index properly. Signed-off-by: Stefan Richter commit cf82703dc6f8197341ca6be33cd38e80332685f0 tree 6174c25ccf8cf6e02b2736d78ae0949e43b443a6 parent 98e238cd42be6c0852da519303cf0182690f8d9f author Stefan Richter Thu, 07 Sep 2006 15:52:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:38:57 +0200 ieee1394: ohci1394: fix endianess bug in debug message The transaction labels were misprinted int the debug printk "Packet received from node..." due two byte-swapping once too often. Affected were big endian machines, except UniNorth based ones. Fix tested by Wolfgang Pfeiffer. Signed-off-by: Stefan Richter commit 98e238cd42be6c0852da519303cf0182690f8d9f tree 8e9aab3bf39d6194bd9009e36586535887ff139d parent a1842be898a2295ef513ed0a5d26f65d6283cb11 author Stefan Richter Thu, 07 Sep 2006 01:06:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:38:52 +0200 ieee1394: sbp2: don't prefer MODE SENSE 10 In the old days, sbp2 used to coerce all MODE SENSE commands into the 10 bytes version. When all command set conversions were removed from sbp2 several months ago, sdev->use_10_for_ms = 1 was added. Meaning, higher SCSI layers preferred the 10 bytes version but would try the 6 bytes version if the former failed. Recently, a problem with the 10 bytes version was discovered. An Initio INIC-1530 firmware accepted the 10 bytes version but replied with bogus data, showing the HDD incorrectly as write-protected. Since RBC actually mandates MODE SENSE (6), I checked which version was sent by Windows XP and Mac OS X 10.3 to an SBP-2 target hosted by Linux --- it was the 6 bytes version. (Exception: OS X sent the 10 bytes version to an MMC target. RBC and SBC got MODE SENSE (6).) Therefore, drop the use_10_for_ms flag from sbp2. Now the upper layers will try MODE SENSE (6) before MODE SENSE (10) on all SBP-2 devices. Signed-off-by: Stefan Richter commit a1842be898a2295ef513ed0a5d26f65d6283cb11 tree 41065a6271b2c6247752d545227f7e9b2038ac27 parent 9b516010863195ba7db061233a3eeffe779130e8 author Stefan Richter Wed, 06 Sep 2006 19:04:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:38:43 +0200 ieee1394: nodemgr: grab class.subsys.rwsem in nodemgr_resume_ne nodemgr_resume_ne was iterating over nodemgr_ud_class.children without protection by nodemgr_ud_class.subsys.rwsem. FIXME: Shouldn't we rather use class->sem there, not class->subsys.rwsem? Signed-off-by: Stefan Richter commit 9b516010863195ba7db061233a3eeffe779130e8 tree 90e2b8a96d8010d350f2a62f676aab0dc6d55a76 parent b809289df06ff9453c1b19df74ea83aba311dfc6 author Stefan Richter Wed, 06 Sep 2006 19:04:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:38:14 +0200 ieee1394: nodemgr: fix rwsem recursion nodemgr_update_pdrv grabbed an rw semaphore (as reader) which was already taken by its caller's caller, nodemgr_probe_ne (as reader too). Reported by Miles Lane, call path pointed out by Arjan van de Ven. FIXME: Shouldn't we rather use class->sem there, not class->subsys.rwsem? Signed-off-by: Stefan Richter commit b809289df06ff9453c1b19df74ea83aba311dfc6 tree 5b2324d89bbb75ffd523ed653400a962fe511038 parent 2cccbb555c77e641de9008660e08bdf17fc4206a author Stefan Richter Wed, 30 Aug 2006 18:22:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:50 +0200 ieee1394: sbp2: more help in Kconfig Add some pointers to SCSI to the configuration menu item of sbp2. Signed-off-by: Stefan Richter commit 2cccbb555c77e641de9008660e08bdf17fc4206a tree 62cd3291088cce86f8a4ef9e25b1072b5c16ae2e parent 902abed1587805fe8513e10aef6643f58a6de0a6 author Stefan Richter Mon, 14 Aug 2006 18:59:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:44 +0200 ieee1394: sbp2: prevent rare deadlock in shutdown Scsi_remove_device() may go into uninterruptible sleep if blocked. Therefore sbp2_remove() unblocks the Scsi_Host before the device is requested to be removed. But there could be another 1394 bus reset after that which would block the host again. The 1394 subsystem won't call sbp2_update() concurrently to sbp2_remove(), which is why there is no chance for sbp2_remove() to be unblocked by sbp2_update(). The fix is to tell sbp2's bus reset handler when a device is to be shut down so that it skips scsi_block_requests() on that host. As before, any new commands after a reset without reconnect will be failed quickly by sbp2scsi_queuecommand(). In the long term, means to go without scsi_block_requests() should be found. Signed-off-by: Stefan Richter commit 902abed1587805fe8513e10aef6643f58a6de0a6 tree 4d90215d119b6f77961b54ceb9514d1f2e09cd42 parent abbca103a02ff0e87569c38be518f9cb2d6baabc author Stefan Richter Mon, 14 Aug 2006 18:56:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:41 +0200 ieee1394: sbp2: update includes Remove unused includes. Add missing includes, i.e. explicitly include all used headers. Sort includes alphabetically. Replace one call to signal_pending(current) to avoid to include headers just for this line. Signed-off-by: Stefan Richter commit abbca103a02ff0e87569c38be518f9cb2d6baabc tree c22b0cffd7cd35e1f6760562dd584826b2c437f0 parent 4fc383c09d14783ca7d7e97e2134abbe7dc43230 author Stefan Richter Mon, 14 Aug 2006 18:51:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:37 +0200 ieee1394: sbp2: better handling of transport errors If the target signals a transport failure via status block, complete the request with DID_BUSY to indicate to the SCSI subsystem that the command may succeed when retried. Also log diagnostic information if the status block shows a transport related problem. It may point to hardware faults. Signed-off-by: Stefan Richter commit 4fc383c09d14783ca7d7e97e2134abbe7dc43230 tree c1163633adfea681f340d3a42814aaded3ef6515 parent 1f427e8055b1ab408395d6da421d93783120484c author Stefan Richter Mon, 14 Aug 2006 18:46:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:33 +0200 ieee1394: sbp2: recheck node generation in sbp2_update While sbp2_update() is doing its duties after a bus reset, another reset could happen. Don't accept new requests until the next undisturbed sbp2_update() or until sbp2_remove(). Signed-off-by: Stefan Richter commit 1f427e8055b1ab408395d6da421d93783120484c tree 5d9ed71fc260589a6186ab5f04a91cac5b49afd1 parent 09ee67abe997ee95cd3f6cc552fa9532bc722d83 author Stefan Richter Mon, 14 Aug 2006 18:44:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:30 +0200 ieee1394: sbp2: safer agent reset in error handlers The scsi_host_template's eh_abort_handler and eh_device_reset_handler are allowed to sleep. Use this to run sbp2_agent_reset in the more reliable mode which returns _after_ its write transaction was finished. Signed-off-by: Stefan Richter commit 09ee67abe997ee95cd3f6cc552fa9532bc722d83 tree 389f4726e5b4b3be1e4e4ed201a42ae33e67242d parent 2a874182842c6a70f245b7f1ad859f9152517951 author Stefan Richter Mon, 14 Aug 2006 18:43:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:34:14 +0200 ieee1394: sbp2: handle "sbp2util_node_write_no_wait failed" Fix for http://bugzilla.kernel.org/show_bug.cgi?id=6948 Because sbp2 writes to the target's fetch agent's registers from within atomic context, it cannot sleep to guaranteedly get a free transaction label. This may repeatedly lead to "sbp2util_node_write_no_wait failed" and consequently to SCSI command abortion after timeout. A likely cause is that many queue_command softirqs may occur before khpsbpkt (the ieee1394 driver's thread which cleans up after finished transactions) is woken up to recycle tlabels. Sbp2 now schedules a workqueue job whenever sbp2_link_orb_command fails in sbp2util_node_write_no_wait. The job will reliably get a transaction label because it can sleep. We use the kernel-wide shared workqueue because it is unlikely that the job itself actually needs to sleep. In the improbable case that it has to sleep, it doesn't need to sleep long since the standard transaction timeout is 100ms. Signed-off-by: Stefan Richter commit 2a874182842c6a70f245b7f1ad859f9152517951 tree c58ffd6ac72b406cd6981f71e2270865e4331ea6 parent 611aa19fd60fe57059d9972fa6ae29f7472a13cf author Alexey Dobriyan Fri, 11 Aug 2006 16:46:14 -0700 committer Stefan Richter Sun, 17 Sep 2006 19:33:19 +0200 CONFIG_PM=n slim: drivers/ieee1394/ohci1394.c Remove some code which is unneeded if CONFIG_PM=n. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Stefan Richter commit 611aa19fd60fe57059d9972fa6ae29f7472a13cf tree a87f71ef393eec3e904291d1d5da1f2fdc5bb11b parent 4b60912e52bc6ccdf587f2b92f3435ee2678d730 author Stefan Richter Wed, 02 Aug 2006 18:44:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:31:20 +0200 ieee1394: safer definition of empty macros A deactivated macro, defined as "#define foo(bar)", will result in silent corruption if somebody forgets a semicolon after a call to foo. Replace it by "#define foo(bar) do {} while (0)" which will reveal any respective syntax errors. Signed-off-by: Stefan Richter commit 4b60912e52bc6ccdf587f2b92f3435ee2678d730 tree da9d20b66ba27d73df1cfe17bbeeffd01d904539 parent a1b3206b362335f7986d1fab294c16148a8c50ab author David Moore Wed, 02 Aug 2006 01:00:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:31:13 +0200 video1394: add poll file operation support This patch adds support for the poll file operation to the video1394 driver. Signed-off-by: David Moore Signed-off-by: Stefan Richter commit a1b3206b362335f7986d1fab294c16148a8c50ab tree 6b8c95df1cc380ba04adbb814058f2f6cd6afa57 parent 8df4083c5291b3647e0381d3c69ab2196f5dd3b7 author Adrian Bunk Sat, 29 Jul 2006 19:48:28 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:31:08 +0200 the scheduled removal of drivers/ieee1394/sbp2.c:force_inquiry_hack This patch contains the scheduled removal of the force_inquiry_hack module parameter. Signed-off-by: Adrian Bunk Signed-off-by: Stefan Richter commit 8df4083c5291b3647e0381d3c69ab2196f5dd3b7 tree 3120e8d59bd321e2871998b51dc756a56324877c parent e8398bb737ceadff8825aa98cb9f4a5e96857546 author Andi Kleen Thu, 27 Jul 2006 21:54:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:29:34 +0200 Initialize ieee1394 early when built in This makes debugging with firescope easier. Signed-off-by: Andi Kleen (original patch) Update: - no need for #ifdef MODULE - add comment in ieee1394_core, more verbose comment in ohci1394 Signed-off-by: Stefan Richter (update) commit e8398bb737ceadff8825aa98cb9f4a5e96857546 tree 049eb24f1e8c2277160b58237443a7cf056325b7 parent 6065772d54a3b994b9b5d3df6413ec6a1c8c2ec1 author Stefan Richter Sun, 23 Jul 2006 22:19:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:29:31 +0200 ieee1394: sbp2: convert sbp2util_down_timeout to waitqueue The waitqueue API is used to replace a custom wait mechanism. Only one global waitqueue (instead of per-device waitqueues or completions) is added because there is usually just one waiter. Signed-off-by: Stefan Richter commit 6065772d54a3b994b9b5d3df6413ec6a1c8c2ec1 tree ad4eff582622e00443e1a685d8d8a2553412edc0 parent 3e98eab46d1a482532c653bdb0c006413654d171 author Stefan Richter Sun, 23 Jul 2006 22:18:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:29:24 +0200 ieee1394: sbp2: more checks of status block - Add checks for the (very unlikely) cases that the target writes too little or too much status data or writes unsolicited status. - Indicate that these and similar conditions are unlikely(). - Check the 'resp' and 'sbp_status' fields for possible failure status. - Slightly optimize access macros for the status block bitfields. - Unify a few related log messages. TODO: Check if 'src'==1, then withhold the respective ORB from reuse until status for any subsequent ORB was received. This is an old bug whose fix requires more complex command queue handling. Signed-off-by: Stefan Richter commit 3e98eab46d1a482532c653bdb0c006413654d171 tree b7135fa6db9b39b3f351a6030df0131fb0514163 parent d4018d7fa63d25f3e1ecf6949fca6b81a182231a author Stefan Richter Sun, 23 Jul 2006 22:16:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:29:22 +0200 ieee1394: sbp2: safer initialization of status fifo Sbp2's copy of the status fifo was cleared when management ORBs or new command ORBs were prepared. The latter had potential for a race condition if the block layer's soft IRQ and the 1394 LLD's interrupt handler ran on different CPUs. It would also yield wrong status if a command was completed with non-zero completion status before other commands that had zero completion status, and no new command was enqueued in the meantime. Now, the status buffer is cleared right before it is written. Thus it ends up in the following simpler and safer access pattern: - sbp2_alloc_device: allocates and implicitly clears once, - sbp2_handle_status_write: clears, writes, and reads, - sbp2_query_logins, sbp2_login_device, sbp2_reconnect_device: read. The latter three do not race with sbp2_handle_status_write because of how the protocol works. As a tiny optimization, the first two quadlets of the status never need to be cleared. Signed-off-by: Stefan Richter commit d4018d7fa63d25f3e1ecf6949fca6b81a182231a tree b9ef9048699ee71f0a37069702415051d15d946c parent 28212767e58402ea362edcb80b753d49bfd44d98 author Stefan Richter Sun, 23 Jul 2006 22:57:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:29:11 +0200 ieee1394: sbp2: optimize DMA direction of command ORBs Only the driver writes ORBs, the device just reads them. Therefore PCI_DMA_BIDIRECTIONAL can be replaced by PCI_DMA_TODEVICE which may be cheaper on some architectures. Signed-off-by: Stefan Richter commit 28212767e58402ea362edcb80b753d49bfd44d98 tree a8428f807aae7dde68a43c36ea7845d3844aea6a parent cc078189125db84a85a3bbb82df788b84fc68aa1 author Stefan Richter Sun, 23 Jul 2006 22:10:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:29:01 +0200 ieee1394: sbp2: discard return value of sbp2_link_orb_command Since sbp2 is at the moment unable to do anything with the return value of sbp2_link_orb_command, just discard it. Signed-off-by: Stefan Richter commit cc078189125db84a85a3bbb82df788b84fc68aa1 tree 223a5db571c2717fac380df21f3ee56f7c395728 parent 9154df538fa044ac2b729ae5c6c47cae09e6977f author Stefan Richter Sun, 23 Jul 2006 22:12:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:19:25 +0200 ieee1394: sbp2: safer last_orb and next_ORB handling The sbp2 initiator has two ways to tell a target's fetch agent about new command ORBs: - Write the ORB's address to the ORB_POINTER register. This must not be done while the fetch agent is active. - Put the ORB's address into the previously submitted ORB's next_ORB field and write to the DOORBELL register. This may be done while the fetch agent is active or suspended. It must not be done while the fetch agent is in reset state. Sbp2 has a last_orb pointer which indicates in what way a new command should be announced. That pointer is concurrently accessed at various occasions. Furthermore, initiator and target are accessing the next_ORB field of ORBs concurrently and asynchronously. This patch does: - Protect all initiator accesses to last_orb by sbp2_command_orb_lock. - Add pci_dma_sync_single_for_device before a previously submitted ORB's next_ORB field is overwritten. - Insert a memory barrier between when next_ORB_lo and next_ORB_hi are overwritten. Next_ORB_hi must not be updated before next_ORB_lo. - Remove the rather unspecific and now superfluous qualifier "volatile" from the next_ORB fields. - Add comments on how last_orb is connected with what is known about the target's fetch agent's state. Signed-off-by: Stefan Richter commit 9154df538fa044ac2b729ae5c6c47cae09e6977f tree 51b88708b56d18298af8b7827e07d4847a8a286d parent 9951903e616662e9a5dad5fbd296690e2ebbbc65 author Stefan Richter Sun, 23 Jul 2006 22:01:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:18:50 +0200 ieee1394: remove #include These includes in ieee1394_core and eth1394 are obsolete. Signed-off-by: Stefan Richter commit 9951903e616662e9a5dad5fbd296690e2ebbbc65 tree 3d0de40aa9100ccebea03a339dc080f7ad80333e parent 9b4f2e9576658c4e52d95dc8d309f51b2e2db096 author Stefan Richter Sun, 02 Jul 2006 14:17:00 +0200 committer Stefan Richter Sun, 17 Sep 2006 19:17:13 +0200 ieee1394: shrink tlabel pools, remove tpool semaphores This patch reduces the size of struct hpsb_host and also removes semaphores from ieee1394_transactions.c. On i386, struct hpsb_host shrinks from 10656 bytes to 6688 bytes. This is accomplished by - using a single wait_queue for hpsb_get_tlabel instead of many instances of semaphores, - using a single lock to serialize access to all tlabel pools (the protected code regions are small, i.e. lock contention very low), - omitting the sysfs attribute tlabels_allocations. Drawback: In the rare case that a process needs to sleep because all transaction labels for the node are temporarily exhausted, it is also woken up if a tlabel for a different node became free, checks for an available tlabel, and is put to sleep again. The check is not costly and the situation occurs extremely rarely. (Tlabels are typically only exhausted if there was no context switch to the khpsbpkt thread which recycles tlables.) Therefore the benefit of reduced tpool size outweighs this drawback. The sysfs attributes tlabels_free and tlabels_mask are not compiled anymore unless CONFIG_IEEE1394_VERBOSEDEBUG is set. The by far biggest member of struct hpsb_host, the struct csr_control csr (5272 bytes on i386), is now placed at the end of struct hpsb_host. Note, hpsb_get_tlabel calls the macro wait_event_interruptible with a condition argument which has a side effect (allocation of a tlabel and manipulation of the packet). This side effect happens only if the condition is true. The patch relies on wait_event_interruptible not evaluating the condition again after it became true. Signed-off-by: Stefan Richter commit 9b4f2e9576658c4e52d95dc8d309f51b2e2db096 tree 7b1902b0f931783fccc6fee45c6f9c16b4fde5ce parent 3c6c65f5ed5a6d307bd607aecd06d658c0934d88 parent 803db244b9f71102e366fd689000c1417b9a7508 author Stefan Richter Sun, 17 Sep 2006 18:17:19 +0200 committer Stefan Richter Sun, 17 Sep 2006 18:19:31 +0200 ieee1394: merge from Linus Conflicts: drivers/ieee1394/hosts.c Patch "lockdep: annotate ieee1394 skb-queue-head locking" was meddling with patch "ieee1394: fix kerneldoc of hpsb_alloc_host". Signed-off-by: Stefan Richter 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 db53f28b3a6d9338cca1b7e917dc063ac99e1871 tree e75578ec00cfe0fa8a3449dc97038e3bb621f01f parent 132919ba80ad207755fe271277bfefff865a54fe author Russell King Wed, 30 Aug 2006 15:14:56 +0100 committer Russell King Sat, 16 Sep 2006 11:57:49 +0100 [MMC] Add multi block-write capability Add a capability flag for drivers to set when they can perform multi- block transfers to cards _and_ correctly report the number of bytes transferred should an error occur. The last point is very important - if a driver reports more bytes than were actually accepted by the card and an error occurs, there is the possibility for data loss. Pierre Ossman provided the patch for wbsd and sdhci. Signed-off-by: Pierre Ossman Signed-off-by: Russell King commit 132919ba80ad207755fe271277bfefff865a54fe tree 61d5ec2e561cc60032475d89cec7ee2a3116bb31 parent 3bc87f243f64c953717bea058f4b458a57fc1a29 author Russell King Sun, 27 Aug 2006 13:56:52 +0100 committer Russell King Sat, 16 Sep 2006 11:54:04 +0100 [MMC] Remove data->blksz_bits member data->blksz_bits is unused now - remove it. Signed-off-by: Russell King commit 3bc87f243f64c953717bea058f4b458a57fc1a29 tree dcc194a21ec5c95059b2b8afc6fa2dece871e587 parent 63b98080daa35f0d682db04f4fb7ada010888752 author Russell King Sun, 27 Aug 2006 13:51:28 +0100 committer Russell King Sat, 16 Sep 2006 11:50:29 +0100 [MMC] Convert mmci to use data->blksz rather than data->blksz_bits Signed-off-by: Russell King 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 4dc3595f5c569021b1bd0109502acfca82036902 tree 5343019f683b42d097f332dfe942f6bcab928d57 parent d5afabcea215a828eb00df992b429486aae14c2f author Parag Warudkar Tue, 22 Aug 2006 10:12:58 +1000 committer Dave Airlie Tue, 22 Aug 2006 10:12:58 +1000 intelfbhw.c: intelfbhw_get_p1p2 defined but not used intelfbhw_get_p1p2 is used only if REGDUMP is defined - compile it in only if REGDUMP is defined - one less compiler warning. Signed-off-by: Dave Airlie commit d5afabcea215a828eb00df992b429486aae14c2f tree 2240740ef681c008bdb9ddd8f4c2fbb85f7562cb parent d463d34e7b336ae3645ac331adccb578ae5a4285 author Dave Airlie Tue, 22 Aug 2006 10:10:56 +1000 committer Dave Airlie Tue, 22 Aug 2006 10:10:56 +1000 intelfb: fix mtrr_reg signedness This is my fix for gcc 4.1 sign issue reported by Eric Sesterhenn . Signed-off-by: Dave Airlie commit d463d34e7b336ae3645ac331adccb578ae5a4285 tree 89e777da0c000e1a79cf7a341fd37a1414a09207 parent 7627899b11ece118b46fbf652e944f9a239f6cd1 author Christian Merkle Tue, 22 Aug 2006 10:07:01 +1000 committer Dave Airlie Tue, 22 Aug 2006 10:07:01 +1000 intelfb: update doc and Kconfig (supported devices) According to drivers/video/intelfb/intelfb.h, the intelfb driver supportes the following devices: 830M/845G/852GM/855GM/865G/915G/915GM/945G/945GM. So the description in drivers/video/Kconfig and the documentation in Documentation/fb/intelfb.txt is outdated. airlied: cleaned up some other obvious mistakes in intelfb.txt. Signed-off-by: Christian Merkle Signed-off-by: Dave Airlie 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 commit 3c6c65f5ed5a6d307bd607aecd06d658c0934d88 tree d15d8997a2a6b1e2c339a1cf26cc7cfaa6d72eb0 parent cab8d154e2ed43fe1495aa0e18103e747552891b author Stefan Richter Mon, 03 Jul 2006 12:02:37 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:37 -0400 [PATCH] ieee1394: fix kerneldoc of hpsb_alloc_host There was stuff between the comment and the function. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit cab8d154e2ed43fe1495aa0e18103e747552891b tree 038af3da7bb8c8579b98b8ca58e3077797927a27 parent d2f119fe319528da8c76a1107459d6f478cbf28c author Stefan Richter Mon, 03 Jul 2006 12:02:36 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:36 -0400 [PATCH] ieee1394: nodemgr: convert nodemgr_serialize semaphore to mutex Another trivial sem2mutex conversion. Side note: nodemgr_serialize's purpose, when introduced in linux1394's revision 529 in July 2002, was to protect several data structures which are now largely handled by or together with Linux' driver core and are now protected by the LDM's own mechanisms. It may very well be possible to remove this mutex now. But fully parallelized node scanning is on our long-term TODO list anyway; the mutex will certainly go away then. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit d2f119fe319528da8c76a1107459d6f478cbf28c tree b2fceeb383874bc89010847cd88de9ef86c5c110 parent 3a632fe2321f6440ea8184b99549c74b912f5cef author Stefan Richter Mon, 03 Jul 2006 12:02:35 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:35 -0400 [PATCH] ieee1394: nodemgr: switch to kthread api, replace reset semaphore Convert nodemgr's host thread from kernel_thread to kthread and its sleep/restart mechanism from a counting semaphore to a schedule()/ wake_up_process() scheme. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 3a632fe2321f6440ea8184b99549c74b912f5cef tree 9ba2e9d483428069d5ea0ab023ea8988cfd6abff parent 40fd89cc54a8a67c81b5aa40b22c4f40b39e47b9 author Stefan Richter Mon, 03 Jul 2006 12:02:35 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:35 -0400 [PATCH] ieee1394: nodemgr: make module parameter ignore_drivers writable Nodemgr's ignore_drivers variable is exposed as a module load parameter (therefore also as a sysfs attribute below /sys/module) and additionally as an attribute below /sys/bus/ieee1394. Since the latter is writable, make the former writable too. Note, the bus's attribute ignore_drivers is only relevant to newly added units, not to present or suspended or resuming units. Those have their own attribute ignore_driver. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 40fd89cc54a8a67c81b5aa40b22c4f40b39e47b9 tree 7a757e1bf10c9c53d40fdbab7601d6ea03d3781a parent 1ee0dc51fb68d2d25888250c554492c4926c5ec1 author Stefan Richter Mon, 03 Jul 2006 12:02:34 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:34 -0400 [PATCH] ieee1394: nodemgr: do not spawn kernel_thread for sysfs rescan nodemgr.c::fw_set_rescan() is used to re-run the driver core over nodemgr's representation of unit directories in order to initiate protocol driver probes. It is initiated via write access to one of nodemgr's sysfs attributes. The purpose is to attach drivers to units after switching a unit's ignore_driver attribute from 1 to 0. It is not really necessary to fork a kernel_thread for this job. The call to kernel_thread() can be eliminated to avoid the deprecated API and to simplify the code a bit. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 1ee0dc51fb68d2d25888250c554492c4926c5ec1 tree 83b1c18d38ea767d2303ca4c6dcba93827381e80 parent 45289bf6ac70b106f5000d10b040e4485dd3e9d5 author Stefan Richter Mon, 03 Jul 2006 12:02:33 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:33 -0400 [PATCH] ieee1394: nodemgr: remove unnecessary includes Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 45289bf6ac70b106f5000d10b040e4485dd3e9d5 tree b01499ed66e27d512b9c573bbd2a5fd78d761f1c parent 438bd525e5240a48233cd3290f7fe66ff0167e20 author Stefan Richter Mon, 03 Jul 2006 12:02:33 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:33 -0400 [PATCH] ieee1394: raw1394: remove redundant counting semaphore An already existing wait queue replaces raw1394's complete_sem which was maintained in parallel to the wait queue. The role of the semaphore's counter is taken over by a direct check of what was really counted: The presence of items in the list of completed requests. Notes: - raw1394_release() sleeps uninterruptibly until all requests were completed. This is the same behaviour as before the patch. - The macros wait_event and wait_event_interruptible are called with a condition argument which has a side effect, i.e. manipulation of the requests list. This side effect happens only if the condition is true. The patch relies on the fact that wait_event[_interruptible] does not evaluate the condition again after it became true. - The diffstat looks unfavorable with respect to added lines of code. However 19 of them are comments, and some are due to separation of existing code blocks into two small helper functions. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 438bd525e5240a48233cd3290f7fe66ff0167e20 tree 5559a543c9ff18290b29fded7e20522308fea5dc parent d8831d5554c2f295a6746e9d3b4cbd8bb13a540f author Stefan Richter Mon, 03 Jul 2006 12:02:32 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:32 -0400 [PATCH] ieee1394: dv1394: sem2mutex conversion Signed-off-by: Stefan Richter (not runtime-tested) Signed-off-by: Ben Collins commit d8831d5554c2f295a6746e9d3b4cbd8bb13a540f tree 55c407be6dba1f3be07be382085732a3df7257b6 parent d83e7d8e7e9f41a9d0e68aaf24ec4e785dd071bb author Stefan Richter Mon, 03 Jul 2006 12:02:31 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:31 -0400 [PATCH] ieee1394: clean up declarations of hpsb_*_config_rom hpsb_update_config_rom() is defined in csr.c, not hosts.c. hpsb_get_config_rom() does not exist. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit d83e7d8e7e9f41a9d0e68aaf24ec4e785dd071bb tree eb026c5463e9f2338b975217a713beb6e7093c3c parent 66faadfac3b8488d27374acaa407e3bd7380131a author Stefan Richter Mon, 03 Jul 2006 12:02:31 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:31 -0400 [PATCH] ieee1394: remove unused macros HPSB_PANIC and HPSB_TRACE Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 66faadfac3b8488d27374acaa407e3bd7380131a tree 2da7570d595b9190e65252fe5ebaa592ae5b7478 parent de4394f13cc843fae2a3ba2df752ee20e6e779a8 author Stefan Richter Mon, 03 Jul 2006 12:02:30 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:30 -0400 [PATCH] ieee1394: remove redundant code from ieee1394_hotplug.h Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit de4394f13cc843fae2a3ba2df752ee20e6e779a8 tree f583ed92bda4b5da3b27a10ff1d40131996eff0d parent e1d118f16dca0f54faba3e8dd5b6adbbf7ac68c8 author Stefan Richter Mon, 03 Jul 2006 12:02:29 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:29 -0400 [PATCH] ieee1394: update #include directives in midlayer header files Remove unnecessary includes, add missing includes. Use forward type declarations for some structs. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit e1d118f16dca0f54faba3e8dd5b6adbbf7ac68c8 tree fffc9d2b1fbe3fe6bb55758e2a6951ad9c581e63 parent 2b01b80b944b3abf623c8acc2b5537a85b5ebd3c author Stefan Richter Mon, 03 Jul 2006 12:02:28 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:28 -0400 [PATCH] ieee1394: coding style and comment fixes in midlayer header files Adjust tabulators, line wraps, empty lines, and comment style. Update comments in ieee1394_transactions.h and highlevel.h. Fix typo in comment in csr.h. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 2b01b80b944b3abf623c8acc2b5537a85b5ebd3c tree ab376b3d5da8aa0de91da1564c1eb518f7f22c6f parent 433a87d528f685028b6f61fc3d7fae07ed915aa8 author Stefan Richter Mon, 03 Jul 2006 12:02:28 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:28 -0400 [PATCH] ieee1394: replace __inline__ by inline Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 433a87d528f685028b6f61fc3d7fae07ed915aa8 tree 6dde8ae1b1fbe199b8a41c2e54e95bed427c61c5 parent f0cbefe63c4347044fffebca24c03f3c6829f322 author Stefan Richter Mon, 03 Jul 2006 12:02:27 -0400 committer Ben Collins Mon, 03 Jul 2006 12:02:27 -0400 [PATCH] ieee1394: skip dummy loop in build_speed_map The last loop in ieee1394 core's speed calculation is not required unless ieee1394.h::IEEE1394_SPEED_MAX is changed from its current value of 3. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit f0cbefe63c4347044fffebca24c03f3c6829f322 tree 2faf7c1cb2bc803fd037b18743eb8d90113fb740 parent 31a379e1067834868b8f1ce3e409392c42dc0f2b author Stefan Richter Mon, 03 Jul 2006 12:01:59 -0400 committer Ben Collins Mon, 03 Jul 2006 12:01:59 -0400 [PATCH] ieee1394: fix calculation of csr->expire This variant of calculate_expire() is more correct and easier to read. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 31a379e1067834868b8f1ce3e409392c42dc0f2b tree ae0d172ebb43865347e42d3f5a12e602da8b51b8 parent d7530a1e767b562c7e071f559d542c132d85fff7 author Stefan Richter Mon, 03 Jul 2006 12:01:58 -0400 committer Ben Collins Mon, 03 Jul 2006 12:01:58 -0400 [PATCH] ieee1394: sbp2: enable auto spin-up for Maxtor disks At least Maxtor OneTouch III require a "start stop unit" command after auto spin-down before the next access can proceed. This patch activates the responsible code in scsi_mod for all Maxtor SBP-2 disks. https://bugzilla.novell.com/show_bug.cgi?id=183011 Maybe that should be done for all SBP-2 disks, but better be cautious. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 7627899b11ece118b46fbf652e944f9a239f6cd1 tree cd0e9e56a144193b64885fb6a1eb3a2068e4f168 parent 1f6e8449e11fd79ee30456ce7ec973317b8dd6ae author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:04:37 +1000 intelfb: add preliminary i2c support Adds code to unregister the I2C buses in the cleanup function. Signed-off-by: Dennis Munsie commit 1f6e8449e11fd79ee30456ce7ec973317b8dd6ae tree a795e58b085a515762ac494e6d06651b60a5336f parent 41c9480a1d22e8f28b8675a2d7ec7fd4c50bc900 author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:04:37 +1000 intelfb: add preliminary i2c support [07/07] intelfb: adds an option to enable I2C support in the intelfb driver. Also adds the intel_i2c.c file to the Makefile. Signed-off-by: Dennis Munsie commit 41c9480a1d22e8f28b8675a2d7ec7fd4c50bc900 tree 16307f2e69efe62e36f0e3c73b73816f05ad6bd2 parent dd696ec852dc34c40e2a18cc426c8f462c0715a5 author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:04:37 +1000 intelfb: add preliminary i2c support [06/07] intelfb: adds intelfb_i2c.c which contains the infrastructure needed to enumerate the i2c busses on the intelfb. Signed-off-by: Dennis Munsie commit dd696ec852dc34c40e2a18cc426c8f462c0715a5 tree 1c0ea78f07f8ed7180b5fe97fe20dd141062e38d parent 399fb4316ab4fe4c46d1e4ed8b12d56c94b4c251 author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:04:37 +1000 intelfb: add preliminary i2c support [05/07] intelfb: add output fields to dinfo. Signed-off-by: Dennis Munsie commit 399fb4316ab4fe4c46d1e4ed8b12d56c94b4c251 tree 71aa6e512bac1b4b6b7b005345f8f63d94153a6b parent 183b1214402a205bf6eea2030686249c7d365fd1 author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:03:11 +1000 intelfb: add preliminary i2c support [04/07] intelfb: add intelfb_output_rec struct and the constants for it's fields. Signed-off-by: Dennis Munsie commit 183b1214402a205bf6eea2030686249c7d365fd1 tree 3bb2492ed41d41c178c33df60de74ae0b5446fde parent 82c10f07c2d7baf6f280f206f9067a4715777962 author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:03:11 +1000 intelfb: add preliminary i2c support [03/07] intelfb: add intelfb_i2c_chan struct. Signed-off-by: Dennis Munsie commit 82c10f07c2d7baf6f280f206f9067a4715777962 tree b324abddfa5eabde40ba773df9efa9b5ba63b242 parent c37bb26654bb8981ea237076e333eb37d4aa2dc6 author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:03:10 +1000 intelfb: add preliminary i2c support [02/07] intelfb: add GPIO registers. Signed-off-by: Dennis Munsie commit c37bb26654bb8981ea237076e333eb37d4aa2dc6 tree 4d9cbffbf1359c2742960eb19762bd425b59545c parent f80d0d23f2010b7682e06449345e8199a2b2619c author Dennis Munsie Tue, 20 Jun 2006 14:55:55 -0400 committer Dave Airlie Mon, 03 Jul 2006 19:03:10 +1000 intelfb: add preliminary i2c support [01/07] i2c: add intelfb bit algorithm id Adds the intelfb bit algorithm id to i2c-id.h. Signed-off-by: Dennis Munsie commit f80d0d23f2010b7682e06449345e8199a2b2619c tree 4562504d7d10a87a9da62bdb0098850fd1fb13c9 parent 37bced38b3d09c3de7c871790eddde81a3ce57cb author Eric Hustvedt Tue, 20 Jun 2006 14:36:42 -0400 committer Dave Airlie Mon, 03 Jul 2006 18:59:47 +1000 intelfb: add vsync interrupt support [05/05] intelfb: Honor FB_ACTIVATE_VBL for display panning Extends the intelfb_vsync struct to store panning offset. The interrupt service routine uses the stored panning offset if a pan is requested for the vsync. intelfbhw_disable_irq also pans the display if there is a pending request. Signed-off-by: Eric Hustvedt commit 37bced38b3d09c3de7c871790eddde81a3ce57cb tree 9472bb814b65c990fe004e715e810eb0ac0fc120 parent 7649757bd900bc900adcd95ab08903cdc28342fa author Eric Hustvedt Tue, 20 Jun 2006 14:36:42 -0400 committer Dave Airlie Mon, 03 Jul 2006 18:59:46 +1000 intelfb: add vsync interrupt support [04/05] intelfb: implement FBIO_WAITFORVSYNC ioctl The (unofficial) FBIO_WAITFORVSYNC ioctl is implemented by sleeping on the appropriate waitqueue, as defined in my earlier patch. Currently, only display 0 (aka pipe A) is supported. Signed-off-by: Eric Hustvedt commit 7649757bd900bc900adcd95ab08903cdc28342fa tree 4c710d9e458ff3c6731180aca738123886f7adec parent 9a5f019b1a9ea6a75ba36d7c312ff069006ed479 author Eric Hustvedt Tue, 20 Jun 2006 14:36:41 -0400 committer Dave Airlie Mon, 03 Jul 2006 18:59:46 +1000 intelfb: add vsync interrupt support [03/05] intelfb: Implement basic interrupt handling Functions have been added to enable and disable interrupts using the MMIO registers. Currently only pipe A vsync interrupts are enabled. A generalized vsync accounting struct is defined, with the intent that it can encapsulate per-pipe vsync related info in the future. Currently a single instance is hard-coded. The interrupt service routine currently only looks for vsync interrupts on pipe A, and increments a counter and wakes up anyone waiting on it. This implementation is heavily influenced by similar implementations in the atyfb and matroxfb drivers. Signed-off-by: Eric Hustvedt commit 9a5f019b1a9ea6a75ba36d7c312ff069006ed479 tree 03fb6003c48a7d8bd0df2bc40678f8bc601015f1 parent 3ce6fb4358bce6aced489f798138795163ad3f7c author Eric Hustvedt Tue, 20 Jun 2006 14:36:41 -0400 committer Dave Airlie Mon, 03 Jul 2006 18:59:46 +1000 intelfb: add vsync interrupt support [02/05] intelfb: Add interrupt related register definitions Add constants for accessing HWSTAM, IER, IIR, and IMR registers. Add constants for interrupt types supported by the 8xx and 9xx chipsets. The registers are also stored in the hwstate struct and dumped in the debug routine. Signed-off-by: Eric Hustvedt commit 3ce6fb4358bce6aced489f798138795163ad3f7c tree 233894f62ac13a02bc88300e596f212656adc4d6 parent 0fe6e2d2928e089d16ec5ed7ba634c1d60916020 author Eric Hustvedt Tue, 20 Jun 2006 14:36:41 -0400 committer Dave Airlie Mon, 03 Jul 2006 18:59:46 +1000 intelfb: add vsync interrupt support [01/05] intelfb: Add 16-bit register access macros This patch adds macros to read and write two-byte MMIO registers. The interrupt-related registers are all word-sized, rather than long-sized. Signed-off-by: Eric Hustvedt commit d7530a1e767b562c7e071f559d542c132d85fff7 tree f607e05022d084fd50ea44f794f33edc49fc14ed parent 29454dde27d8e340bb1987bad9aa504af7081eba author Stefan Richter Mon, 03 Jul 2006 00:58:01 +0200 committer Ben Collins Mon, 03 Jul 2006 00:03:59 -0400 [PATCH] ieee1394: fix cosmetic problem in speed probe If ieee1394.h::IEEE1394_SPEED_MAX is bigger than the actual speed of an 1394b host adapter and the speed to another 1394b node was probed, a bigger speed than actually used was kept in host->speed[n]. The only resulting problem so far was sbp2 displaying bogus values in the syslog, e.g. S3200 for actual S800 connections if IEEE1394_SPEED_MAX was S3200. But other high-level drivers which access this field could get into more trouble. (Eth1394 is the only other in-tree driver which does so. It seems it is not affected.) Nodemgr now clips this value according to the host adapter's link speed. A pointer expression in nodemgr_check_speed is also changed for clarity. Signed-off-by: Stefan Richter Signed-off-by: Ben Collins commit 2ab561a116e16cdee3ae0e13d51910634c15aee9 tree 3a1ff4ae7546c57778a2cd4b51fb5d76aaaae93e parent 22ae813b85df7c0b0fc7c8d6f336d6a9f566ff97 author David Mosberger-Tang Wed, 21 Jun 2006 11:19:22 -0700 committer Tony Luck Wed, 21 Jun 2006 11:19:22 -0700 [IA64] esi-support Add support for making ESI calls [1]. ESI stands for "Extensible SAL specification" and is basically a way for invoking firmware subroutines which are identified by a GUID. I don't know whether ESI is used by vendors other than HP (if you do, please let me know) but as firmware "backdoors" go, this seems one of the cleaner methods, so it seems reasonable to support it, even though I'm not aware of any publicly documented ESI calls. I'd have liked to make the ESI module completely stand-alone, but unfortunately that is not easily (or not at all) possible because in order to make ESI calls in physical mode, a small stub similar to the EFI stub is needed in the kernel proper. I did try to create a stub that would work in user-level, but it quickly got ugly beyond recognition (e.g., the stub had to make assumptions about how the module-loader generated call-stubs work) and I didn't even get it to work (that's probably fixable, but I didn't bother because I concluded it was too ugly anyhow). While it's not terribly elegant to have kernel code which isn't actively used in the kernel proper, I think it might be worth making an exception here for two reasons: the code is trivially small (all that's really needed is esi_stub.S) and by including it in the normal kernel distro, it might encourage other OEMs to also use ESI, which I think would be far better than each inventing their own firmware "backdoor". The code was originally written by Alex. I just massaged and packaged it a bit (and perhaps messed up some things along the way...). Changes since first version of patch that was posted to mailing list: * Export ia64_esi_call and ia64_esi_call_phys() as GPL symbols. * Disallow building esi.c as a module for now. Building as a module would currently lead to an unresolved reference to "sal_lock" on SMP kernels because that symbol doesn't get exported. * Export esi_call_phys() only if ESI is enabled. * Remove internal stuff from esi.h and add a "proc_type" argument to ia64_esi_call() such that serialization-requirements can be expressed (ESI follows SAL here, where procedure calls may have to be serialized, are MP-safe, or MP-safe andr reentrant). [1] h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,919,00.html Signed-off-by: David Mosberger Signed-off-by: Alex Williamson Signed-off-by: Tony Luck commit 76d08bb3f09054edc45326ce5c698a3f6c45f5d0 tree 5d0197f8ad8e4f778d6f117bcf49f9467fcdc0dd parent 672c6108a51bf559d19595d9f8193dfd81f0f752 author Tony Luck Mon, 05 Jun 2006 13:54:14 -0700 committer Tony Luck Mon, 05 Jun 2006 13:54:14 -0700 [IA64] Add "model name" to /proc/cpuinfo Linux ia64 port tried to decode the processor family number to something human-readable, but Intel brandnames don't change synchronously with updates to the family number. Adopt a more i386-like approach and just print the family number in decimal. Add a new field "model name" that uses PAL_BRAND_INFO to find the official name for the cpu, or on older systems, falls back to using the well-known codenames (Merced, McKinley, Madison). Signed-off-by: Tony Luck