commit 99abfeafb5f2eea1bb481330ff37343e1133c924 Author: Linus Torvalds Date: Wed Jan 24 18:19:28 2007 -0800 Linux 2.6.20-rc6 commit 717d44e849219781ced028a40fcc59d3e1f49e4c Author: Trond Myklebust Date: Wed Jan 24 11:54:55 2007 -0800 [PATCH] NFS: Fix races in nfs_revalidate_mapping() Prevent the call to invalidate_inode_pages2() from racing with file writes by taking the inode->i_mutex across the page cache flush and invalidate. Signed-off-by: Trond Myklebust Signed-off-by: Linus Torvalds commit bde8f00ce64d9824a4f227c8594e335a1a10d044 Author: Trond Myklebust Date: Wed Jan 24 11:54:53 2007 -0800 [PATCH] NFS: Fix Oops in rpc_call_sync() Fix the Oops in http://bugzilla.linux-nfs.org/show_bug.cgi?id=138 We shouldn't be calling rpc_release_task() for tasks that are not active. Signed-off-by: Trond Myklebust Signed-off-by: Linus Torvalds commit 66218da212bf141532d678a699f5789c78145ab1 Author: Atsushi Nemoto Date: Wed Jan 24 15:43:34 2007 +0900 [MIPS] Fix wrong checksum calculation on 64-bit MIPS The commit 8e3d8433d8c22ca6c42cba4a67d300c39aae7822 ([NET]: MIPS checksum annotations and cleanups) broke 64-bit MIPS. The problem is the commit replaces some unsigned long with __be32. On 64bit MIPS, a __be32 (i.e. unsigned int) value is represented as a sign-extented 32-bit value in a 64-bit argument register. So the address 192.168.0.1 (0xc0a80001) is passed as 0xffffffffc0a80001 to csum_tcpudp_nofold() but the asm code in the function expects 0x00000000c0a80001, therefore it returns a wrong checksum. Explicit cast to unsigned long is needed to drop high 32bit. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 9cfdf6f15a2a462b6b328b4c60b252cfc04ec03e Author: Ralf Baechle Date: Wed Jan 24 19:13:08 2007 +0000 [MIPS] VPE loader: Initialize lists before they're actually being used ... kspd which due to makefile order happens to be initialized before the vpe loader causes references to vpecontrol lists before they're actually been initialized. Signed-off-by: Ralf Baechle commit 80aac59ed5b3e5ae2132bc620ff5607929c6a304 Author: Thiemo Seufer Date: Wed Jan 24 01:29:15 2007 +0000 [MIPS] Fix reported amount of freed memory - it's in kB not bytes While at it, change message on DEC for consistency. Signed-off-by: Thiemo Seufer Signed-off-by: Ralf Baechle commit 3f3183709feb35c30ca5f649224d01921870f81c Author: Yoichi Yuasa Date: Wed Jan 24 22:22:06 2007 +0900 [MIPS] vr41xx: need one more nop with mtc0_tlbw_hazard() NEC VR4111 and VR4121 need one more nop with mtc0_tlbw_hazard(). Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit ec43c01420fc1da8bf0b19f0ceb24d7d3c7f47f3 Author: Ralf Baechle Date: Wed Jan 24 19:23:21 2007 +0000 [MIPS] SMTC: Fix module build by exporting symbol Signed-off-by: Ralf Baechle commit a0b6218037b5cf50737a7dc0fc5464ea3f8781cd Author: Ralf Baechle Date: Fri Jan 19 14:35:14 2007 +0000 [MIPS] SMTC: Fix TLB sizing bug for TLB of 64 >= entries Signed-off-by: Ralf Baechle commit 89c07fd14fe857c223b042a857a08c3ea46b92eb Author: Ralf Baechle Date: Wed Jan 24 12:31:47 2007 +0000 [MIPS] Fix APM build Definitions for TIF_FREEZE and _TIF_FREEZE were missing. Signed-off-by: Ralf Baechle commit 48c35b2d245fffedadce62769aafea8ecf493d19 Author: Alexey Dobriyan Date: Tue Jan 23 21:30:14 2007 +0300 [MIPS] There is no __GNUC_MAJOR__ Gcc major version number is in __GNUC__. As side effect fix checking with sparse if sparse was built with gcc 4.1 and mips cross-compiler is 3.4. Sparse will inherit version 4.1, __GNUC__ won't be filtered from "-dM -E -xc" output, sparse will pick only new major, effectively becoming gcc version 3.1 which is unsupported. Signed-off-by: Alexey Dobriyan Signed-off-by: Ralf Baechle commit d0f29485686d9d1c4f31240953a742d5dd4fdb72 Author: Brian King Date: Wed Jan 17 12:32:28 2007 -0600 libata: Initialize qc->pad_len Initialize qc->pad_len for each new command. This ensures that pad_len is not set to a stale value for zero data length commands. Signed-off-by: Brian King Signed-off-by: Jeff Garzik commit 7a801184fa480e11e6431f184a5bdf31f63326fb Author: Brian King Date: Wed Jan 17 12:32:12 2007 -0600 libata: Fixup n_elem initialization Fixup the inialization of qc->n_elem. It currently gets initialized to 1 for commands that do not transfer any data. Fix this by initializing n_elem to 0 and only setting to 1 in ata_scsi_qc_new when there is data to transfer. This fixes some problems seen with SATA devices attached to ipr adapters. Signed-off-by: Brian King Signed-off-by: Jeff Garzik commit 07c53dac4904206a50dd7c87adabbb1acff903fb Author: Tejun Heo Date: Sun Jan 21 02:10:11 2007 +0900 ahci: don't enter slumber on power down Some ATA/ATAPI devices act weirdly after the link is put into slumber mode. Some hang completely requiring physical power removal while others fail to wake up till the link is hardreset a couple of times. The addition of slumber on power down was never driven by real need. It just followed what ahci spec said literally. The spec itself seems faulty in that it doesn't consider devices (not controllers) which don't support link powersaving mode. Theory never matches reality when it comes to dark allys of cheap ATA/ATAPI world. It's just unrealistic to expect vendors to test rarely used link powersaving feature rigorously. This patch makes ahci more friendly to the coldness of reality. This shouldn't have any negative effect - when suspend operation succeeds, we power off the whole machine; otherwise, we wake up everything. I can't see any reason to be so elaborate with powering down the link in the first place. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit f740d1689d91415cfc749d17138a11ed03b7d38b Author: Robert Hancock Date: Tue Jan 23 20:09:02 2007 -0600 sata_nv: don't rely on NV_INT_DEV indication with ADMA Several people reported issues with certain drive commands timing out on sata_nv controllers running in ADMA mode. The commands in question were non-DMA-mapped commands, usually FLUSH CACHE or FLUSH CACHE EXT. From experimentation it appears that the NV_INT_DEV indication isn't always set when a legitimate command completion interrupt is received on a legacy-mode command, at least not on these controllers in ADMA mode. When a command is pending on the port, force the flag on always in the irq_stat value before calling nv_host_intr so that the drive busy state is always checked by ata_host_intr. This also fixes some questionable code in nv_host_intr which called ata_check_status when a command was pending and ata_host_intr returned "unhandled". If the device interrupted at just the wrong time this could cause interrupts to be lost. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 82490c0937cb455e7e4150455ff52e89a9fc5ab8 Author: Tejun Heo Date: Tue Jan 23 15:13:39 2007 +0900 ahci: make ULi M5288 ignore interface fatal error bit As with JMicron controllers, ULi M5288 sets interface fatal error bit on device error including ATAPI CC. This makes libata hardreset the port on ATAPI CC thus making it impossible to use. Ignore interface fatal error bit on ULi M5288. This fixes bugzilla bug #7837. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 1e5c11fc89ef6663aaa14db1e9e27477f07c24e0 Author: Brian Haley Date: Tue Jan 23 22:32:23 2007 -0800 [SCTP]: Fix compiler warning. > --- a/net/sctp/sm_statefuns.c > +++ b/net/sctp/sm_statefuns.c > @@ -462,24 +461,6 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(const struct sctp_endpoint *ep, > - if (!init_tag) { > - struct sctp_chunk *reply = sctp_make_abort(asoc, chunk, 0); > - if (!reply) > - goto nomem; This introduced a compiler warning, easily fixed. Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit 6fd8bb881509c6bdc3469b3ed16ec25a3b7cad0e Author: Masahide NAKAMURA Date: Tue Jan 23 22:17:23 2007 -0800 [IP] TUNNEL: Fix to be built with user application. include/linux/if_tunnel.h is broken for user application because it was changed to use __be32 which is required to include linux/types.h in advance but didn't. (This issue is found when building MIPL2 daemon. We are not sure this is the last header to be fixed about __be32.) Signed-off-by: Masahide NAKAMURA Signed-off-by: TAKAMIYA Noriaki Signed-off-by: David S. Miller commit 6a2b9ce0a383059492c93682bc094cce0f705fff Author: Noriaki TAKAMIYA Date: Tue Jan 23 22:09:41 2007 -0800 [IPV6]: Fixed the size of the netlink message notified by inet6_rt_notify(). I think the return value of rt6_nlmsg_size() should includes the amount of RTA_METRICS. Signed-off-by: Noriaki TAKAMIYA Acked-by: Thomas Graf Signed-off-by: David S. Miller commit 52d570aabe921663a987b2e4bae2bdc411cee480 Author: Jarek Poplawski Date: Tue Jan 23 22:07:12 2007 -0800 [TCP]: rare bad TCP checksum with 2.6.19 The patch "Replace CHECKSUM_HW by CHECKSUM_PARTIAL/CHECKSUM_COMPLETE" changed to unconditional copying of ip_summed field from collapsed skb. This patch reverts this change. The majority of substantial work including heavy testing and diagnosing by: Michael Tokarev Possible reasons pointed by: Herbert Xu and Patrick McHardy. Signed-off-by: Jarek Poplawski Acked-by: Herbert Xu Signed-off-by: David S. Miller commit bf1c1ee88008fd639ebb5c74f0555fd414369bdc Author: Adrian Bunk Date: Tue Jan 23 22:04:35 2007 -0800 [NET]: Process include/linux/if_{addr,link}.h with unifdef After commit d3dcc077bf88806201093f86325ec656e4dbfbce, include/linux/if_{addr,link}.h should be processed with unifdef. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 2748e5dec7ca8a3804852c7c4171f9156384d15c Author: Patrick McHardy Date: Tue Jan 23 22:00:13 2007 -0800 [NETFILTER]: Fix iptables ABI breakage on (at least) CRIS With the introduction of x_tables we accidentally broke compatibility by defining IPT_TABLE_MAXNAMELEN to XT_FUNCTION_MAXNAMELEN instead of XT_TABLE_MAXNAMELEN, which is two bytes larger. On most architectures it doesn't really matter since we don't have any tables with names that long in the kernel and the structure layout didn't change because of alignment requirements of following members. On CRIS however (and other architectures that don't align data) this changed the structure layout and thus broke compatibility with old iptables binaries. Changing it back will break compatibility with binaries compiled against recent kernels again, but since the breakage has only been there for three releases this seems like the better choice. Spotted by Jonas Berlin . Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 778a43fd626b710faca32038afc7460f314ba82a Author: Adrian Bunk Date: Tue Jan 23 21:16:40 2007 -0800 [IRDA] vlsi_ir.{h,c}: remove kernel 2.4 code This patch removes kernel 2.4 compatibility code. Signed-off-by: Adrian Bunk Acked-by: Samuel Ortiz Signed-off-by: David S. Miller commit fb7e2399ec17f1004c0e0ccfd17439f8759ede01 Author: Masayuki Nakagawa Date: Tue Jan 23 20:15:06 2007 -0800 [TCP]: skb is unexpectedly freed. I encountered a kernel panic with my test program, which is a very simple IPv6 client-server program. The server side sets IPV6_RECVPKTINFO on a listening socket, and the client side just sends a message to the server. Then the kernel panic occurs on the server. (If you need the test program, please let me know. I can provide it.) This problem happens because a skb is forcibly freed in tcp_rcv_state_process(). When a socket in listening state(TCP_LISTEN) receives a syn packet, then tcp_v6_conn_request() will be called from tcp_rcv_state_process(). If the tcp_v6_conn_request() successfully returns, the skb would be discarded by __kfree_skb(). However, in case of a listening socket which was already set IPV6_RECVPKTINFO, an address of the skb will be stored in treq->pktopts and a ref count of the skb will be incremented in tcp_v6_conn_request(). But, even if the skb is still in use, the skb will be freed. Then someone still using the freed skb will cause the kernel panic. I suggest to use kfree_skb() instead of __kfree_skb(). Signed-off-by: Masayuki Nakagawa Signed-off-by: David S. Miller commit a6c7ab55dda3e16ab5a3cf6f39585aee5876ac3a Author: Herbert Xu Date: Tue Jan 16 16:52:02 2007 -0800 [IPSEC]: Policy list disorder The recent hashing introduced an off-by-one bug in policy list insertion. Instead of adding after the last entry with a lesser or equal priority, we're adding after the successor of that entry. This patch fixes this and also adds a warning if we detect a duplicate entry in the policy list. This should never happen due to this if clause. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 8f1adb5f27d352c776ac34648cc277d1f8199dba Author: Samuel Ortiz Date: Mon Jan 15 19:40:34 2007 -0800 [IrDA]: Removed incorrect IRDA_ASSERT() With USB2.0 bulk out MTU can be 512 bytes, so checking it only for 64 bytes is incorrect. Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 3958fb34ef18529c1e4a3eca44b7aaf94d4f4697 Author: Samuel Ortiz Date: Mon Jan 15 19:37:25 2007 -0800 [IrDA]: irda-usb TX path optimization (was Re: IrDA spams logfiles - since 2.6.19) Since we stop using dev_alloc_skb on the IrDA TX frame, we constantly run into the case of the skb headroom being 0, and thus we call skb_cow for every IrDA TX frame. This patch uses a local buffer and memcpy the skb to it, saving us a kmalloc for each of those IrDA TX frames. Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 9d0f7d29f38d4f7bf66d38d448a7d23e0bed9074 Author: Andrew Hendry Date: Mon Jan 15 19:29:31 2007 -0800 [X.25]: Add missing sock_put in x25_receive_data __x25_find_socket does a sock_hold. This adds a missing sock_put in x25_receive_data. Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit 732ba35e759112be5cecd79d4351084edf88dba7 Author: Vlad Yasevich Date: Mon Jan 15 19:20:21 2007 -0800 [SCTP]: Fix SACK sequence during shutdown Currently, when association enters SHUTDOWN state,the implementation will SACK any DATA first and then transmit the SHUTDOWN chunk. This is against the order required by 2960bis spec. SHUTDOWN must always be first, followed by SACK. This change forces this order and also enables bundling. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 610ab73ac4cc8912fc253bbdc6d1f74bad3c8e3a Author: Vlad Yasevich Date: Mon Jan 15 19:18:30 2007 -0800 [SCTP]: Correctly handle unexpected INIT-ACK chunk. Consider the chunk as Out-of-the-Blue if we don't have an endpoint. Otherwise discard it as before. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit d023f629451ace6f37eb5d2cf29ddd24497c91dc Author: Vlad Yasevich Date: Mon Jan 15 19:15:45 2007 -0800 [SCTP]: Verify some mandatory parameters. Verify init_tag and a_rwnd mandatory parameters in INIT and INIT-ACK chunks. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit ebdfcad4dc2a6851f75fac0a3315046cbd9c4410 Author: Vlad Yasevich Date: Mon Jan 15 19:12:31 2007 -0800 [SCTP]: Set correct error cause value for missing parameters sctp_process_missing_param() needs to use the SCTP_ERROR_MISS_PARAM error cause value. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 16d807988ffaf9b7cbb1966955aa8f738c32e740 Author: Mikael Pettersson Date: Mon Jan 15 17:17:31 2007 -0800 [NETFILTER]: fix xt_state compile failure In file included from net/netfilter/xt_state.c:13: include/net/netfilter/nf_conntrack_compat.h: In function 'nf_ct_l3proto_try_module_get': include/net/netfilter/nf_conntrack_compat.h:70: error: 'PF_INET' undeclared (first use in this function) include/net/netfilter/nf_conntrack_compat.h:70: error: (Each undeclared identifier is reported only once include/net/netfilter/nf_conntrack_compat.h:70: error: for each function it appears in.) include/net/netfilter/nf_conntrack_compat.h:71: warning: control reaches end of non-void function make[2]: *** [net/netfilter/xt_state.o] Error 1 make[1]: *** [net/netfilter] Error 2 make: *** [net] Error 2 A simple fix is to have nf_conntrack_compat.h #include . Signed-off-by: Mikael Pettersson Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit c54ea3b95ac504ed81e0ec3acfaa26d0f55bdfa4 Author: Patrick McHardy Date: Mon Jan 15 17:16:03 2007 -0800 [NETFILTER]: ctnetlink: fix leak in ctnetlink_create_conntrack error path Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 334c85569b8adeaa820c0f2fab3c8f0a9dc8b92e Author: Venkat Yekkirala Date: Mon Jan 15 16:38:45 2007 -0800 [SELINUX]: increment flow cache genid Currently, old flow cache entries remain valid even after a reload of SELinux policy. This patch increments the flow cache generation id on policy (re)loads so that flow cache entries are revalidated as needed. Thanks to Herbet Xu for pointing this out. See: http://marc.theaimsgroup.com/?l=linux-netdev&m=116841378704536&w=2 There's also a general issue as well as a solution proposed by David Miller for when flow_cache_genid wraps. I might be submitting a separate patch for that later. I request that this be applied to 2.6.20 since it's a security relevant fix. Signed-off-by: Venkat Yekkirala Signed-off-by: David S. Miller commit d88ae4cc97b24783ee4480697fbdcc02ab4133a6 Author: YOSHIFUJI Hideaki Date: Sun Jan 14 21:48:40 2007 -0800 [IPV6] MCAST: Fix joining all-node multicast group on device initialization. Join all-node multicast group after assignment of dev->ip6_ptr because it must be assigned when ipv6_dev_mc_inc() is called. This fixes Bug#7817, reported by . Closes: 7817 Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit e0e8f1c8220c43bdf25cfb5622f6ab6947027fb1 Author: Herbert Xu Date: Wed Jan 10 22:06:32 2007 -0800 [IPSEC] flow: Fix potential memory leak When old flow cache entries that are not at the head of their chain trigger a transient security error they get unlinked along with all the entries preceding them in the chain. The preceding entries are not freed correctly. This patch fixes this by simply leaving the entry around. It's based on a suggestion by Venkat Yekkirala. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 419dd8378dfa32985672ab7927b4bc827f33b332 Author: Oleg Nesterov Date: Tue Jan 23 20:04:13 2007 -0300 V4L/DVB (5123): Buf_qbuf: fix: videobuf_queue->stream corruption and lockup We are doing ->buf_prepare(buf) before adding buf to q->stream list. This means that videobuf_qbuf() should not try to re-add a STATE_PREPARED buffer. Signed-off-by: Oleg Nesterov Signed-off-by: Mauro Carvalho Chehab commit 99ddcc7edbb6b1d35a542f6bf0383f1f5a1aa0b0 Author: Linus Torvalds Date: Tue Jan 23 14:22:35 2007 -0800 Change Linus' email address too This changes a few mentions of my email address to point to the new one, leaving things like old copyright messages alone. Signed-off-by: Linus Torvalds commit 65ebe63420eae40fba73d3b4f79f99adc8e148b3 Author: Stephen Hemminger Date: Tue Jan 23 11:38:57 2007 -0800 [PATCH] email change for shemminger@osdl.org Change my email address to reflect OSDL merger. Signed-off-by: Stephen Hemminger [ The irony. Somebody still has his sign-off message hardcoded in a script or his brainstem ;^] Signed-off-by: Linus Torvalds commit 8528b0f1de1101c6002036fd53638fb21111d0ea Author: Linus Torvalds Date: Tue Jan 23 14:16:31 2007 -0800 Clear spurious irq stat information when adding irq handler Any newly added irq handler may obviously make any old spurious irq status invalid, since the new handler may well be the thing that is supposed to handle any interrupts that came in. So just clear the statistics when adding handlers. Pointed-out-by: Alan Cox Acked-by: Thomas Gleixner Acked-by: Ingo Molnar Signed-off-by: Linus Torvalds commit d344bff9c36db17dc4765215495aaa7212c1eb6c Author: Dale Farnsworth Date: Tue Jan 23 09:52:25 2007 -0700 mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs This bug was found and isolated by Thibaut VARENE and Jarek Poplawski . This patch is a modification of their fixes. We acquire and release the lock for each descriptor that is freed to minimize the time the lock is held. Signed-off-by: Jeff Garzik commit 3196265e97c661d9e9be04d5d64ca8ff3186536d Author: Al Viro Date: Tue Jan 23 12:25:08 2007 +0000 s2io bogus memset memset() after kmalloc() on size * 8 would better be on size * 8, not just size; fixed by switching to kcalloc() - it's more idiomatic anyway. Signed-off-by: Al Viro Signed-off-by: Jeff Garzik commit f66d45e99eb7ca91822c3e3f6d7a98843c9626cb Author: Guy Streeter Date: Tue Jan 23 12:20:04 2007 -0600 [PATCH] correct sys_shmget allocation check As written, sys_shmget will return ENOSPC when one page is still available for allocation. This patch corrects the test. Signed-off-by: Guy Streeter Signed-off-by: Linus Torvalds -- commit 73f66ace34e3d935d1ad01208234f8871ac1f500 Author: Al Viro Date: Tue Jan 23 12:27:04 2007 +0000 [PATCH] fix prototype of csum_ipv6_magic() (ia64) Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 4384247b6910df91049f8d0bbd5c1075898ac290 Author: Al Viro Date: Tue Jan 23 12:25:08 2007 +0000 [PATCH] s2io bogus memset memset() after kmalloc() on size * 8 would better be on size * 8, not just size; fixed by switching to kcalloc() - it's more idiomatic anyway. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 0a3c4bdc1b197a7d37fc75643a68daf45fe0a7cc Author: Al Viro Date: Tue Jan 23 12:25:08 2007 +0000 [PATCH] horizon.c: missing __devinit Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit c3ea6729feb304e0c3be74e8eca001215e78d1bc Author: Al Viro Date: Tue Jan 23 12:25:08 2007 +0000 [PATCH] funsoft: ktermios fix Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 1b5180b65122666a36a1a232b7b9b38b21a9dcdd Author: Ingo Molnar Date: Tue Jan 23 10:45:50 2007 +0100 [PATCH] notifiers: fix blocking_notifier_call_chain() scalability while lock-profiling the -rt kernel i noticed weird contention during mmap-intense workloads, and the tracer showed the following gem, in one of our MM hotpaths: threaded-2771 1.... 65us : sys_munmap (sysenter_do_call) threaded-2771 1.... 66us : profile_munmap (sys_munmap) threaded-2771 1.... 66us : blocking_notifier_call_chain (profile_munmap) threaded-2771 1.... 66us : rt_down_read (blocking_notifier_call_chain) ouch! a global rw-semaphore taken in one of the most performance- sensitive codepaths of the kernel. And i dont even have oprofile enabled! All distro kernels have CONFIG_PROFILING enabled, so this scalability problem affects the majority of Linux users. The fix is to enhance blocking_notifier_call_chain() to only take the lock if there appears to be work on the call-chain. With this patch applied i get nicely saturated system, and much higher munmap performance, on SMP systems. And as a bonus this also fixes a similar scalability bottleneck in the thread-exit codepath: profile_task_exit() ... Signed-off-by: Ingo Molnar Acked-by: Peter Zijlstra Acked-by: Nick Piggin Signed-off-by: Linus Torvalds commit 95543179f158b4891c5dc49004853ce081e8d794 Author: Linas Vepstas Date: Tue Jan 23 19:40:54 2007 +0100 [PATCH] elevator: move clearing of unplug flag earlier A flag was recently added to the elevator code to avoid performing an unplug when reuests are being re-queued. The goal of this flag was to avoid a deep recursion that can occur when re-queueing requests after a SCSI device/host reset. See http://lkml.org/lkml/2006/5/17/254 However, that fix added the flag near the bottom of a case statement, where an earlier break (in an if statement) could transport one out of the case, without setting the flag. This patch sets the flag earlier in the case statement. I re-discovered the deep recursion recently during testing; I was told that it was a known problem, and the fix to it was in the kernel I was testing. Indeed it was ... but it didn't fix the bug. With the patch below, I no longer see the bug. Signed-off by: Linas Vepstas Signed-off-by: Jens Axboe Cc: Chris Wright Signed-off-by: Linus Torvalds commit 364ca8a897eadb2f0e76b7f0ffe94168f6d83d66 Author: Yoichi Yuasa Date: Mon Jan 22 23:01:06 2007 +0900 [MIPS] Vr41xx: Fix after GENERIC_HARDIRQS_NO__DO_IRQ change Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit ac8be955049dab828a68b9c68a75144832f8289f Author: Ralf Baechle Date: Sat Jan 20 00:18:01 2007 +0000 [MIPS] SMTC: Instant IPI replay. SMTC pseudo-interrupts between TCs are deferred and queued if the target TC is interrupt-inhibited (IXMT). In the first SMTC prototypes, these queued IPIs were serviced on return to user mode, or on entry into the kernel idle loop. The INSTANT_REPLAY option dispatches them as part of local_irq_restore() processing, which adds runtime overhead (hence the option to turn it off), but ensures that IPIs are handled promptly even under heavy I/O interrupt load. Signed-off-by: Ralf Baechle commit 3a7122923e87fc5cdf8affa1845924a0def4657d Author: Jeff Chua Date: Mon Jan 22 20:40:50 2007 -0800 [PATCH] acpi: remove "video device notify" message Seems to be some left-over debug code. Cc: Len Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ee8bb9eae66d3d5558b685f71b52bd8bc4ba5a62 Author: Horms Date: Mon Jan 22 20:40:49 2007 -0800 [PATCH] Kdump documentation update: ia64 portion this patch fills in the portions for ia64 kexec. Signed-off-by: Simon Horman Cc: "Zou, Nanhai" Cc: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ea112bd5493d44967b3dc44fd078be517272b044 Author: Horms Date: Mon Jan 22 20:40:48 2007 -0800 [PATCH] Kdump documentation update: kexec-tools update Mohan Kumar suggested making kexec-tools-testing.tar.gz a link to the latest version. I have done this and this patch updates the documentation accordingly. Signed-off-by: Simon Horman Cc: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit de14569f94513279e3d44d9571a421e9da1759ae Author: Vladimir Saveliev Date: Mon Jan 22 20:40:46 2007 -0800 [PATCH] resierfs: avoid tail packing if an inode was ever mmapped This patch fixes a confusion reiserfs has for a long time. On release file operation reiserfs used to try to pack file data stored in last incomplete page of some files into metadata blocks. After packing the page got cleared with clear_page_dirty. It did not take into account that the page may be mmaped into other process's address space. Recent replacement for clear_page_dirty cancel_dirty_page found the confusion with sanity check that page has to be not mapped. The patch fixes the confusion by making reiserfs avoid tail packing if an inode was ever mmapped. reiserfs_mmap and reiserfs_file_release are serialized with mutex in reiserfs specific inode. reiserfs_mmap locks the mutex and sets a bit in reiserfs specific inode flags. reiserfs_file_release checks the bit having the mutex locked. If bit is set - tail packing is avoided. This eliminates a possibility that mmapped page gets cancel_page_dirty-ed. Signed-off-by: Vladimir Saveliev Cc: Jeff Mahoney Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 30150f8d7b76f25b1127a5079528b7a17307f995 Author: Christoph Lameter Date: Mon Jan 22 20:40:45 2007 -0800 [PATCH] mbind: restrict nodes to the currently allowed cpuset Currently one can specify an arbitrary node mask to mbind that includes nodes not allowed. If that is done with an interleave policy then we will go around all the nodes. Those outside of the currently allowed cpuset will be redirected to the border nodes. Interleave will then create imbalances at the borders of the cpuset. This patch restricts the nodes to the currently allowed cpuset. The RFC for this patch was discussed at http://marc.theaimsgroup.com/?t=116793842100004&r=1&w=2 Signed-off-by: Christoph Lameter Cc: Paul Jackson Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 79603a35009ff39562cd5634fa1cf513eb080f27 Author: Mark Gross Date: Mon Jan 22 20:40:44 2007 -0800 [PATCH] tlclk: bug fix + misc fixes The following patch fixes a few problems with the tlclk driver. * bug in the select_amcb1_transmit_clock * racy read sys call * racy open sys call * use of add_timer where mod_timer would be better * change to the timer data parameter use Signed-off-by: Mark Gross Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cda9205da24aeaa8fb086b0fb85cdf39571ecc3f Author: Chen, Kenneth W Date: Mon Jan 22 20:40:43 2007 -0800 [PATCH] fix blk_direct_IO bio preparation For large size DIO that needs multiple bio, one full page worth of data was lost at the boundary of bio's maximum sector or segment limits. After a bio is full and got submitted. The outer while (nbytes) { ... } loop will allocate a new bio and just march on to index into next page. It just forgets about the page that bio_add_page() rejected when previous bio is full. Fix it by put the rejected page back to pvec so we pick it up again for the next bio. Signed-off-by: Ken Chen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 15c945c3d0913d73a7d57d7a0a3c4e2902598cc6 Author: Jamie Lenehan Date: Mon Jan 22 20:40:41 2007 -0800 [PATCH] rtc-sh: act on rtc_wkalrm.enabled when setting an alarm This fixes the SH rtc driver correctly act on the "enabled" flag when setting an alarm. Signed-off-by: Jamie Lenehan Cc: David Brownell Cc: Alessandro Zummo Cc: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fc3dffe12148b9612870eb21b24f2aecefa9ea24 Author: Avi Kivity Date: Mon Jan 22 20:40:40 2007 -0800 [PATCH] KVM: fix bogus pagefault on writable pages If a page is marked as dirty in the guest pte, set_pte_common() can set the writable bit on newly-instantiated shadow pte. This optimization avoids a write fault after the initial read fault. However, if a write fault instantiates the pte, fix_write_pf() incorrectly reports the fault as a guest page fault, and the guest oopses on what appears to be a correctly-mapped page. Fix is to detect the condition and only report a guest page fault on a user access to a kernel page. With the fix, a kvm guest can survive a whole night of running the kernel hacker's screensaver (make -j9 in a loop). Signed-off-by: Avi Kivity Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 038e51de2e7ae2c8e9d8a0b15231f8509875dc33 Author: Avi Kivity Date: Mon Jan 22 20:40:40 2007 -0800 [PATCH] KVM: x86 emulator: fix bit string instructions The various bit string instructions (bts, btc, etc.) fail to adjust the address correctly if the bit address is beyond BITS_PER_LONG. This bug creeped in as the emulator originally relied on cr2 to contain the memory address; however we now decode it from the mod r/m bits, and must adjust the offset to account for large bit indices. The patch is rather large because it switches src and dst decoding around, so that the bit index is available when decoding the memory address. This fixes workloads like the FC5 installer. Signed-off-by: Avi Kivity Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cccf748b810832cfab4dbb3ed4c7cf1a1ee35ad2 Author: Avi Kivity Date: Mon Jan 22 20:40:39 2007 -0800 [PATCH] KVM: fix race between mmio reads and injected interrupts The kvm mmio read path looks like: 1. guest read faults 2. kvm emulates read, calls emulator_read_emulated() 3. fails as a read requires userspace help 4. exit to userspace 5. userspace emulates read, kvm sets vcpu->mmio_read_completed 6. re-enter guest, fault again 7. kvm emulates read, calls emulator_read_emulated() 8. succeeds as vcpu->mmio_read_emulated is set 9. instruction completes and guest is resumed A problem surfaces if the userspace exit (step 5) also requests an interrupt injection. In that case, the guest does not re-execute the original instruction, but the interrupt handler. The next time an mmio read is exectued (likely for a different address), step 3 will find vcpu->mmio_read_completed set and return the value read for the original instruction. The problem manifested itself in a few annoying ways: - little squares appear randomly on console when switching virtual terminals - ne2000 fails under nfs read load - rtl8139 complains about "pci errors" even though the device model is incapable of issuing them. Fix by skipping interrupt injection if an mmio read is pending. A better fix is to avoid re-entry into the guest, and re-emulating immediately instead. However that's a bit more complex. Signed-off-by: Avi Kivity Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 084384754ebe6636f9e5554ad30b3143b4a26c84 Author: Avi Kivity Date: Mon Jan 22 20:40:38 2007 -0800 [PATCH] KVM: make sure there is a vcpu context loaded when destroying the mmu This makes the vmwrite errors on vm shutdown go away. Signed-off-by: Avi Kivity Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0dbe5a111382fd1320ff4b1d889e5b8c41290619 Author: Ingo Molnar Date: Mon Jan 22 20:40:36 2007 -0800 [PATCH] paravirt: mark the paravirt_ops export internal The paravirt subsystem is still in flux so all exports from it are definitely internal use only. The APIs around this /will/ change. Signed-off-by: Ingo Molnar Cc: Andi Kleen Cc: Zachary Amsden Cc: Jeremy Fitzhardinge Acked-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a517b9f9fe8e57437b0b9b50e279220aaf651268 Author: Andrew Morton Date: Mon Jan 22 20:40:36 2007 -0800 [PATCH] SubmitChecklist update Sing the praises of `gcc -W'. Would have prevented that blockdev direct-IO bug. Cc: "Chen, Kenneth W" Cc: "Randy.Dunlap" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 790816dd54e22827f63c8cbb30bd623d3d45e594 Author: Andrew Morton Date: Mon Jan 22 20:40:35 2007 -0800 [PATCH] blockdev direct_io: fix signedness bug size_t is unsigned. IO errors aren't getting through. Cc: "Chen, Kenneth W" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 58d9ce7d751fa11c6c8ea5dcd4d63b320aae1363 Author: Venkatesh Pallipadi Date: Mon Jan 22 20:40:34 2007 -0800 [PATCH] Revert nmi_known_cpu() check during boot option parsing Commit f2802e7f571c05f9a901b1f5bd144aa730ccc88e and its x86 version (b7471c6da94d30d3deadc55986cc38d1ff57f9ca) adds nmi_known_cpu() check while parsing boot options in x86_64 and i386. With that, "nmi_watchdog=2" stops working for me on Intel Core 2 CPU based system. The problem is, setup_nmi_watchdog is called while parsing the boot option and identify_cpu is not done yet. So, the return value of nmi_known_cpu() is not valid at this point. So revert that check. This should not have any adverse effect as the nmi_known_cpu() check is done again later in enable_lapic_nmi_watchdog(). Signed-off-by: Venkatesh Pallipadi Cc: Don Zickus Cc: Andi Kleen Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bbe1a59b3a3d4af3869647d294618a23f6c9c6a4 Author: Andrew Morton Date: Mon Jan 22 20:40:33 2007 -0800 [PATCH] fix "kvm: add vm exit profiling" export profile_hits() on !SMP too. Cc: Ingo Molnar Cc: Avi Kivity Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bc6191b10018311a301fb6ef22994177c769b868 Author: Karsten Wiese Date: Wed Jan 10 19:02:26 2007 +0100 [ALSA] Repair snd-usb-usx2y over OHCI The previous patch 'Repair snd-usb-usx2y for usb 2.6.18' assumed urb->start_frame roll over beyond MAX_INT for both UHCI & OHCI. This isn't true until now (kernel 2.6.20). Fix this by only looking at the common between OHCI & UHCI Frame number range. This is for mainline and stable kernels >= 2.6.18. Signed-off-by: Karsten Wiese Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela commit 184231bdb41fc4c385ae8e115f5afaff02fe1690 Author: Amit S. Kale Date: Mon Jan 22 06:52:53 2007 -0800 NetXen: Use pci_register_driver() instead of pci_module_init() in init_module This will use pci_register_driver() instead of pci_module_init(). Signed-off-by: Amit S. Kale Signed-off-by: Richard Knutsson Signed-off-by: Jeff Garzik commit 90f8b1d295e0c4a2148776e6cf801391cf07ae92 Author: Amit S. Kale Date: Mon Jan 22 06:38:05 2007 -0800 NetXen: Firmware check modifications This patch is to make the driver work with multiple minor firmware versions Signed-off-by: Amit S. Kale Signed-off-by: Jeff Garzik commit 41b69c705152e93b3c6c872678dffd8a19b14d61 Author: Thomas Klein Date: Mon Jan 22 12:55:20 2007 +0100 ehea: Fixed possible nullpointer access Fixed possible nullpointer access in event queue processing Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit bb3a6449c18f6203e59195a98d633f5b5b57c133 Author: Thomas Klein Date: Mon Jan 22 12:54:50 2007 +0100 ehea: Added logging off associated errors Added logging of error events associated with a specific queue pair Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit 7674a588e93c6fa1fde8e452a4c025c49037cb96 Author: Thomas Klein Date: Mon Jan 22 12:54:20 2007 +0100 ehea: Improved logging of permission issues Disabled dump of hcall regs on some permission issues and fixed appropriate misleading logmessages Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit 4e996b32e0585756c335b35980dc68852c33f297 Author: Thomas Klein Date: Mon Jan 22 12:53:50 2007 +0100 ehea: New method to determine number of available ports Count OFDT nodes to determine the number of available ports instead of using the possibly outdated value from the hypervisor Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit e919b5938b11e1d48a6dcdcb2860e890a954f10d Author: Thomas Klein Date: Mon Jan 22 12:53:20 2007 +0100 ehea: Modified initial autoneg state determination Logical partitions are not allowed to (try to) set the autonegotiation status. This patch removes the respective function call from the port setup function. Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit 602e0d100daa9ba9bc7c17e0014a6f76b638dc80 Author: Thomas Klein Date: Mon Jan 22 12:52:50 2007 +0100 ehea: Fixing firmware queue config issue Fix to use exactly one queue for incoming packets in all firmware configurations Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit 061bf3cdba753ae7b52fba8cc324d81adac77696 Author: Thomas Klein Date: Mon Jan 22 12:52:20 2007 +0100 ehea: Fixed wrong dereferencation Not only check the pointer against 0 but also the dereferenced value Signed-off-by: Thomas Klein Signed-off-by: Jeff Garzik commit 9f6d55d0846dd8628fd3eac15be377c4d3493c3e Author: Kumar Gala Date: Sat Jan 20 16:38:26 2007 -0600 PHY: Export phy ethtool helpers We need to export phy_ethtool_gset and phy_ethtool_sset to allow drivers that use these functions to be built as modules. Signed-off-by: Kumar Gala Signed-off-by: Jeff Garzik commit b3a242b75361936ab9a42c42c44ea35e79a9d4cd Author: Adrian Bunk Date: Thu Jan 11 14:49:44 2007 +0100 more ftape removal This patch removes some more ftape code. Signed-off-by: Adrian Bunk Signed-off-by: Jeff Garzik commit 54b290a2ecfbfb8613fbf854f9c45667821d9b8d Author: Jeff Garzik Date: Tue Jan 23 00:29:01 2007 -0500 Note that JFFS (v1) is to be deleted, in feature-removal-schedule.txt It is already noted in Kconfig, but the listing in this file was accidentally forgotten. Signed-off-by: Jeff Garzik commit d08d283974f96cb30d78ba24282a0a7d6709af32 Author: Komuro Date: Sat Dec 2 11:53:27 2006 +0900 modify 3c589_cs to be SMP safe 1. EL3WINDOW is always 1 when lock is not held. 2. The second argument of el3_interrupt is 'void *dev_id', not 'struct el3_private *lp'. Signed-off-by: komurojun-mbn@nifty.com Signed-off-by: Jeff Garzik commit 9ee79a3d372fcb6729893437f4923c5efd1f85db Author: James Bottomley Date: Mon Jan 22 09:18:31 2007 -0600 [PATCH] x86: fix PDA variables to work during boot The current PDA code, which went in in post 2.6.19 has a flaw in that it doesn't correctly cycle the GDT and %GS segment through the boot PDA, the CPU PDA and finally the per-cpu PDA. The bug generally doesn't show up if the boot CPU id is zero, but everything falls apart for a non zero boot CPU id. The basically kills voyager which is perfectly capable of doing non zero CPU id boots, so voyager currently won't boot without this. The fix is to be careful and actually do the GDT setups correctly. Signed-off-by: James Bottomley Cc: Andi Kleen Cc: Jeremy Fitzhardinge Cc: Andrew Morton Signed-off-by: Linus Torvalds commit e00154891137e3b0659556b877d45a16cabd700c Author: Herbert Xu Date: Tue Jan 23 14:10:00 2007 +1100 [PATCH] vmx: Fix register constraint in launch code Both "=r" and "=g" breaks my build on i386: $ make CC [M] drivers/kvm/vmx.o {standard input}: Assembler messages: {standard input}:3318: Error: bad register name `%sil' make[1]: *** [drivers/kvm/vmx.o] Error 1 make: *** [_module_drivers/kvm] Error 2 The reason is that setbe requires an 8-bit register but "=r" does not constrain the target register to be one that has an 8-bit version on i386. According to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10153 the correct constraint is "=q". Signed-off-by: Herbert Xu Signed-off-by: Linus Torvalds commit cea9ea67e9927da18af89b49bd949a8d65ba1b15 Author: Hoang-Nam Nguyen Date: Fri Jan 19 22:50:10 2007 +0100 IB/ehca: Fix mismatched spin_unlock in irq handler The lock is taken with _irqsave and hence must be released with _irqrestore on all paths. Signed-off-by Hoang-Nam Nguyen Signed-off-by: Roland Dreier commit ce29d72cc737df3573854a4719f00385adf1c9a6 Author: Hoang-Nam Nguyen Date: Fri Jan 19 22:50:10 2007 +0100 IB/ehca: Fix improper use of yield() with spinlock held Signed-off-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier commit a20f3a6d7e67a8aee571fb04634a631ba59f6e92 Author: Ishai Rabinovitz Date: Tue Jan 16 17:20:25 2007 +0200 IB/srp: Check match_strdup() return Checks if the kmalloc in match_strdup() was successful, and bail out on looking at the token if it failed. Signed-off-by: Ishai Rabinovitz Signed-off-by: Roland Dreier commit 847641d7db15ac3f18b3d4aa05479812abdf397a Author: Marcel Holtmann Date: Mon Jan 22 22:00:45 2007 +0100 [Bluetooth] Restrict well known PSM to privileged users The PSM values below 0x1001 of L2CAP are reserved for well known services. Restrict the possibility to bind them to privileged users. Signed-off-by: Marcel Holtmann commit 7386397636d49cd5f03da29432467d3e98cbad35 Author: Marcel Holtmann Date: Mon Jan 22 22:00:40 2007 +0100 [Bluetooth] Missing endian swapping for L2CAP socket list The PSM value in the L2CAP socket list must be converted to host order before printing it. Signed-off-by: Marcel Holtmann commit ae9608af9e300395ec032479621f32688c121141 Author: Randy Dunlap Date: Tue Jan 9 21:41:01 2007 -0800 PCI: fix pci-driver kernel-doc Function short description should be on only one line. Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 74da15eb1188ba9f22f7eba2c0dc56bbffcc597b Author: Grant Grundler Date: Mon Dec 25 01:06:35 2006 -0700 PCI: rework Documentation/pci.txt Rewrite Documentation/pci.txt: o restructure document to match how API is used when writing init code. o update to reflect changes in struct pci_driver function pointers. o removed language on "new style vs old style" device discovery. "Old style" is now deprecated. Don't use it. Left description in to document existing driver behaviors. o add section "Legacy I/O Port free driver" by Kenji Kaneshige http://lkml.org/lkml/2006/11/22/25 (renamed to "pci_enable_device_bars() and Legacy I/O Port space") o add "MMIO space and write posting" section to help avoid common pitfall when converting drivers from IO Port space to MMIO space. Orignally posted http://lkml.org/lkml/2006/2/27/24 o many typo/grammer/spelling corrections from Randy Dunlap o two more spelling corrections from Stephan Richter o fix CodingStyle as per Randy Dunlap Signed-off-by: Grant Grundler Signed-off-by: Greg Kroah-Hartman commit 2e45785c529e0c60b1801b4fabacb05e0b8cdf87 Author: Jean Delvare Date: Fri Jan 5 09:17:56 2007 +0100 PCI: Unhide the SMBus on the Asus P4P800-X Unhide the SMBus on the Asus P4P800-X (and probably some other models of the family.) This gives access to the memory module SPD EEPROMs. Thanks to Winbond for supporting the lm-sensors project with the donation of this motherboard. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman commit 39559b4ff89e390c42633d23d257e793a1177e03 Author: Manuel Osdoba Date: Thu Jan 18 21:28:45 2007 +0100 USB: unusual_devs.h entry for nokia 6233 In appendix a patch for the nokia 6233 mobile phone is included. The patch is against 2.6.20-rc5. It is my first patch. Hopefully it has the right format. The code makes my nokia 6233 on my computer work. From: Manuel Osdoba Signed-off-by: Greg Kroah-Hartman commit caaf26325d70f5b559a647d4c11d84ef5a3341a4 Author: Petr Stetiar Date: Wed Jan 17 06:30:39 2007 -0800 USB: Fix for typo in ohci-ep93xx.c Attached patch fixes typo in USB driver reported by Chase Douglas on linux-cirrus mailing list. http://www.freelists.org/archives/linux-cirrus/12-2006/msg00003.html Signed-off-by: Petr Stetiar Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit b1bf4f412b4818869106ffcb5304d69551697b9c Author: Greg Kroah-Hartman Date: Tue Jan 16 15:41:03 2007 -0800 USB: disable USB_MULTITHREAD_PROBE Disable the USB_MULTITHREAD_PROBE option because it causes crashes on people's machines and they never remember to actually read the config help files. No one likes this, everyone hates it, I'm going to go eat worms... The full logic will be ripped out later. Signed-off-by: Greg Kroah-Hartman commit 53e8f84dc68f29c724bbb7e0675040386f6143ae Author: garrett_damore@tadpole.com Date: Fri Jan 12 17:10:28 2007 -0800 USB: add vendor/device id for Option GT Max 3.6 cards This fixes http://bugzilla.kernel.org/show_bug.cgi?id=7814 Signed-off-by: Greg Kroah-Hartman commit 379885a9b204dec9d0009b6b450e104389b4a590 Author: Pete Zaitcev Date: Sat Jan 13 15:17:46 2007 -0800 USB: unusual_devs.h for 0x046b:ff40 American Megatrends did something wrong in their floppy emulator. It breaks with both kinds of MODE SENSE which our stack sends. Alan and I tried a few tweaks, and got LUNs sensed right, but US_FL_NO_WP_DETECT is still needed. I set the firmware bracket to 1.00 exactly, in case AMI or Sun fix it with a firmware update. Hey, you never know. Signed-off-by: Pete Zaitcev Signed-off-by: Phil Dibowitz Signed-off-by: Greg Kroah-Hartman commit 8d2bad8788a6f968247df409f50c757b1a5489f4 Author: Oliver Neukum Date: Thu Jan 11 10:14:33 2007 +0100 USB: make usbhid ignore Imation Disc Stakka on request of the sourceforge project for this device, a kind of robotized CD storage, it should be ignored by the generic driver. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit deb31f1764e0a11bcfe8d44e0658f83d83860e84 Author: Daniel Gollub Date: Tue Jan 16 11:03:01 2007 +0100 USB: rndis_host: fix crash while probing a Nokia S60 mobile Bug fix for driver rndis_host which fixes rndis_host probing certain Nokia S60 (Series 60) mobiles. While the rndis_host get probed by usbnet and tries to bind the Nokia mobile the bind is going to fail. The rndis_host module tries to release the device, in a wrong way, which cause the oops. Fixes Bugzilla #7201 Signed-off-by: Daniel Gollub Signed-off-by: Greg Kroah-Hartman commit d0ffff8fddd5853e4b2b101790ac0c3690655af5 Author: Andres Salomon Date: Thu Jan 11 18:39:16 2007 -0500 USB: asix: Detect internal PHY and enable/use accordingly Different AX88772 dongles use different PHYs; the chip is capable of using both a primary and secondary PHY, and supports an internal and external PHY. It appears that some DUB-E100 devices use the internal PHY, so trying to use an external one will not work (note that this is different across revisions, as well; the "A" and "B" revs of the DUB-E100 use different PHYs!). The data sheet for the AX88772 chip specifies that the internal PHY id will be 0x10, so if that's read from the EEPROM, we should use that rather than attempting to use an external PHY. Thanks to Mitch Bradley for pointing this out! Signed-off-by: Andres Salomon Cc: David Hollis Cc: Chris Ball Signed-off-by: Greg Kroah-Hartman commit c9d8c2b324d24ffb4fdcd93b3f752530a5a0a591 Author: Daniel Ritz Date: Mon Dec 11 18:17:45 2006 +0100 usbtouchscreen: make ITM screens report BTN_TOUCH as zero when not touched ITM screens send invalid x/y data when not touched. this was fixes a while ago but the problem is if the screen is not touched anymore the driver never does not report BTN_TOUCH as zero. fix it by sending the report with the last valid coordinates when pressure is released. Signed-off-by: Daniel Ritz Cc: J.P. Delport Signed-off-by: Greg Kroah-Hartman commit 6d3154cc1143f62c3b80d9929caeaec6db8cb451 Author: Linus Torvalds Date: Mon Jan 22 08:53:24 2007 -0800 Revert "[PATCH] Fix up mmap_kmem" This reverts commit 99a10a60ba9bedcf5d70ef81414d3e03816afa3f. As per Hugh Dickins: "Nadia Derbey has reported that mmap of /dev/kmem no longer works with the kernel virtual address as offset, and Franck has confirmed that his patch came from a misunderstanding of what an offset means to /dev/kmem - whereas his patch description seems to say that he was correcting the offset on a few plaforms, there was no such problem to correct, and his patch was in fact changing its API on all platforms." Suggested-by: Hugh Dickins Cc: Franck Bui-Huu Cc: Nadia Derbey Cc: Andi Kleen Cc: Arjan van de Ven Cc: Andrew Morton Signed-off-by: Linus Torvalds commit e89debcd18a3ef74b27894e479d6b9e658fc6de6 Author: Paul Mackerras Date: Mon Jan 22 22:39:24 2007 +1100 [POWERPC] Update defconfigs Mostly took the defaults, except tried to get the netfilter options more or less as they were before. Signed-off-by: Paul Mackerras commit 434f98c48fc1d2a1f562a28a1562a7b53e940957 Author: Robert Jennings Date: Wed Jan 17 10:50:20 2007 -0600 [POWERPC] atomic_dec_if_positive sign extension fix On 64-bit machines, if an atomic counter is explicitly set to a negative value, the atomic_dec_if_positive function will decrement and store the next smallest value in the atomic counter, contrary to its intended operation. The comparison to determine if the decrement will make the result negative was done by the "addic." instruction, which operates on a 64-bit value, namely the zero-extended word loaded from the atomic variable. This patch uses an explicit word compare (cmpwi) and changes the addic. to an addi (also changing "=&r" to "=&b" so that r0 isn't used, and addi doesn't become li). This also fixes a bug for both 32-bit and 64-bit in that previously 0x80000000 was considered positive, since the result after decrementing is positive. Now it is considered negative. Also, I clarify the return value in the comments just to make it clear that the value returned is always the decremented value, even if that value is not stored back to the atomic counter. Signed-off-by: Robert Jennings Signed-off-by: Paul Mackerras commit 06cd9396778d5b70ba27fa8158db78d6bc0f007b Author: Li Yang Date: Wed Jan 17 14:42:22 2007 +0800 [POWERPC] Fix OF node refcnt underflow in 836x and 832x platform code Incorrect use of of_find_node_by_name() causes of_node_put() on a node which has already been put. It causes the refcount of the node to underflow, which triggers the WARN_ON in kref_get for 836x and 832x. This fixes it. Signed-off-by: Li Yang Signed-off-by: Paul Mackerras commit 121361f72ca93cb6710e368bb89f9d976b1da443 Author: Grant Likely Date: Fri Jan 19 00:00:14 2007 -0700 [POWERPC] Make it blatantly clear; mpc5200 device tree is not yet stable Documentation-only change. The 5200 device tree layout has not yet stablized, so nobody should depend on the layout of the tree. Signed-off-by: Grant Likely Acked-by: Sylvain Munaut Signed-off-by: Paul Mackerras commit 77319254f109963213f33cbb15e0103f2e81a64a Author: Linas Vepstas Date: Wed Jan 10 19:16:29 2007 -0600 [POWERPC] Fix broken DMA on non-LPAR pSeries It appears that the iommu table address is never stored, and thus never found, on non-lpar systems. Thus, for example, during boot: <7>[ 93.067916] PCI: Scanning bus 0001:41 <7>[ 93.068542] PCI: Found 0001:41:01.0 [8086/100f] 000200 00 <7>[ 93.068550] PCI: Calling quirk c0000000007822e0 for 0001:41:01.0 <7>[ 93.069815] PCI: Fixups for bus 0001:41 <4>[ 93.070167] iommu: Device 0001:41:01.0 has no iommu table <7>[ 93.070251] PCI: Bus scan for 0001:41 returning with max=41 No iommu table? How can that be? Well, circa line 471 of arch/powerpc/platforms/pseries/iommu.c we see the code: while (dn && PCI_DN(dn) && PCI_DN(dn)->iommu_table == NULL) dn = dn->parent; and a few lines later is the surprising print statement about the missing table. Seems that this loop ran unto the end, never once finding a non-null PCI_DN(dn)->iommu_table. The problem can be found a few lines earlier: it sems that the value of PCI_DN(dn)->iommu_table is never ever set. Thus, the patch sets it. The patch was tested on a Power4 system running in full system partition mode, which is where I saw the problem. It works; I've not done any wider testing. Had a brief discussion on this on irc. Signed-off-by: Linas Vepstas Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 6984ee797a8798128e94ab2447c8ed91f0156eb5 Author: Benjamin Herrenschmidt Date: Thu Jan 11 16:08:41 2007 +1100 [POWERPC] Fix cell's mmio nvram to properly parse device tree The mmio nvram driver (used by cell only atm) isn't properly parsing the device-tree, meaning that nvram isn't found correctly on the new Cell blades. It works ok for old blades where the nvram is at the root of the device tree but fails on Malta and CAB when it's hanging off axon. This fixes it by using the proper OF parsing functions. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 4ef6e68117e93111590d9d4ada1a282304241169 Author: Benjamin Herrenschmidt Date: Thu Jan 11 16:38:22 2007 +1100 [POWERPC] Remove bogus sanity check in pci -> OF node code The new implementation of pci_device_to_OF_node() on ppc32 has a bogus sanity check in it that can cause oopses at boot when no device node is present, and might hit correct cases with older/weird apple device-trees where they have the type "vci" for the chaos bridge. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 8e6f195af0e1f226e9b2e0256af8df46adb9d595 Author: Steve French Date: Mon Jan 22 01:19:30 2007 +0000 [CIFS] Fix oops when Windows server sent bad domain name null terminator Fixes RedHat bug 211672 Windows sends one byte (instead of two) of null to terminate final Unicode string (domain name) in session setup response in some cases - this caused cifs to misalign some informational strings (making it hard to convert from UCS16 to UTF8). Thanks to Shaggy for his help and Akemi Yagi for debugging/testing Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit 50af94b14c98f5769860a282a397c6f3b135c8a8 Author: Mark Fasheh Date: Sun Jan 21 14:44:59 2007 -0800 ocfs2: Add backup superblock info to ocfs2_fs.h This synchronizes us with recent ocfs2-tools changes. Signed-off-by: Mark Fasheh commit 6a1bd4a5788435b6ef1664383604b43607eb825a Author: Mark Fasheh Date: Wed Jan 3 17:06:59 2007 -0800 ocfs2: cleanup ocfs2_iget() errors Get rid of some error prints in the ocfs2_iget() path from ocfs2_get_dentry(). NFSD can easily cause us to read stale inodes. Signed-off-by: Mark Fasheh commit 592282cf2eaa33409c6511ddd3f3ecaa57daeaaa Author: Mark Fasheh Date: Tue Jan 2 17:59:40 2007 -0800 ocfs2: Directory c/mtime update fixes ocfs2 wasn't updating c/mtime on directories during dirent creation/deletion. Fix ocfs2_unlink(), ocfs2_rename() and __ocfs2_add_entry() by adding the proper code to update the struct inode and push the change out to disk. This helps rename/unlink on nfs exported file systems in particular as those clients compare directory time values to avoid a full re-reading a directory which hasn't changed. ocfs2_rename() loses some superfluous error handling as a result of this patch. Signed-off-by: Mark Fasheh commit 72bce5078d124a8b13fb167aea028b6e8d91873e Author: Mark Fasheh Date: Wed Jan 3 17:25:40 2007 -0800 ocfs2: Don't print errors when following symlinks We shouldn't print errors returned from vfs_follow_link(). This was causing spurious errors to show up in the logs. Signed-off-by: Mark Fasheh commit bd2abf177b3384375c43906be551d976e4c18166 Author: Steve French Date: Sun Jan 21 23:19:01 2007 +0000 [CIFS] cifs sprintf fix Cc: Signed-off-by: Andrew Morton Signed-off-by: Steve French commit 76849e3e97a95f1ef4627b10305d38a686fab112 Author: Steve French Date: Sun Jan 21 22:56:22 2007 +0000 [CIFS] Remove 2 unneeded kzalloc casts Signed-off-by: Ahmed Darwish Signed-off-by: Steve French commit d8c8a393166d6283003fb111d0b4a40931c0eda4 Author: Jeremy Roberson Date: Fri Jan 19 15:44:18 2007 -0700 hid-core.c: Adds GTCO CalComp Interwrite IPanel PIDs to blacklist Adds GTCO CalComp Interwrite IPanels to the hid-core.c blacklist. Signed-off-by: Jeremy A. Roberson Signed-off-by: Jiri Kosina commit be8209753b014f2d7a92b2ec3ff82db478fc86d1 Author: Anssi Hannula Date: Fri Jan 19 19:28:17 2007 +0200 HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage The commit 4916b3a57fc94664677d439b911b8aaf86c7ec23 introduced a hid regression between 2.6.19 and 2.6.20-rc1. The device put in input_dev->cdev is now of type usb_device instead of usb_interface. Before: > # readlink -f /sys/class/input/input6/event4/device > /sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1 After: > # readlink -f /sys/class/input/input3/event3/device > /sys/devices/pci0000:00/0000:00:10.0/usb1/1-1 This causes breakage: > # udevinfo -q all -n /dev/input/event3 > P: /class/input/input3/event3 > N: input/event3 > S: input/by-path/pci-1-1--event- > E: ID_SERIAL=noserial > E: ID_PATH=pci-1-1- No ID_MODEL, ID_VENDOR, ID_REVISION, ID_TYPE etc etc. Fix this by assigning the intf->dev into hid->dev, and fixing all the users. Signed-off-by: Anssi Hannula Signed-off-by: Jiri Kosina commit f7ebf99eb489a02dba2e5a071fde9f5354275a50 Author: Simon Budig Date: Mon Jan 15 18:34:32 2007 +0100 HID: add missing RX, RZ and RY enum values to hid-debug output This trivial change adds some missing enum values to the hid-debug output. Signed-off-by: Simon Budig Signed-off-by: Jiri Kosina commit 1f3ab013336e76687441462961000157c8980bb8 Author: Jiri Kosina Date: Tue Jan 16 00:30:42 2007 +0100 HID: hid/hid-input.c doesn't need to include linux/usb/input.h There is no reason for generic hid-input.c to include usb-specific input.h. As a sideeffect, this also fixes warning of redefinition of dbg() macro, when hid-input.c is compiled with DEBUG (as there is a clash between dbg() from hid.h and usb/input.h). Signed-off-by: Jiri Kosina commit e54dea69bac12dae2ff27c1c7a472d4eee70638d Author: Jiri Kosina Date: Mon Jan 15 23:53:05 2007 +0100 HID: compilation fix when DEBUG_DATA is defined hid/hid-core.c references 'len' variable when DEBUG_DATA is defined, but the actual name of the variable is 'size'. Fix it. Signed-off-by: Jiri Kosina commit d4ae650a904612ffb7edd3f28b69b022988d2466 Author: Simon Budig Date: Mon Jan 15 17:28:47 2007 +0100 HID: proper LED-mapping for SpaceNavigator This change introduces a mapping for LED indicators between the HID specification and the Linux input subsystem. The previous code properly mapped the LEDs relevant for Keyboards, but garbeled the remaining ones. With this change all LED enums from the input system get mapped to more or less equivalent LED numbers from the HID specification. This patch also ensures that the unused bits in a HID report to the device are zeroed out. This makes the 3Dconnexion SpaceNavigator fully usable with the linux input system. Signed-off-by: Simon Budig Signed-off-by: Jiri Kosina commit 641266fdaa3c137c632f8ad2e4124248bafe7a98 Author: Jiri Kosina Date: Mon Jan 15 09:56:21 2007 +0100 HID: update MAINTAINERS entry for USB-HID Change USB-HID maintainer from Vojtech Pavlik to Jiri Kosina. Acked-by: Vojtech Pavlik Signed-off-by: Jiri Kosina commit 694400641b0da92d88db60821235aa69eb8fa556 Author: Adrian Friedli Date: Sun Jan 14 22:12:43 2007 +0100 HID: GEYSER4_ISO needs quirk I've got a newer MacBook with core2duo. Two keys on the keyboard are swapped, "unswaping" works with the same trick as GEYSER3_ISO. Signed-off-by: Adrian Friedli Signed-off-by: Jiri Kosina commit e7c4e1a58f320bafb194a411a41de29abc19315f Author: Russell King Date: Fri Jan 12 21:53:51 2007 +0000 HID: fix some ARM builds due to HID brokenness - make USB_HID depend on INPUT We have USB_HID _newly_ selected in configurations which didn't have it before, which overrides CONFIG_HID and builds HID without input support. Nevertheless, here's a patch to solve more of the same that my original patch attempted to solve. The original patch is still required. Seems to solve the final instance of this problem here. Signed-off-by: Russell King Signed-off-by: Jiri Kosina commit e93f09dc2d49d8e98818a93ad17f3ede91533738 Author: Olof Johansson Date: Thu Jan 18 18:39:59 2007 -0600 sata_mv HighPoint 2310 support (88SX7042) With the following patch, my HighPoint 2310 with a Marvell 88SX7042 on it seems to work OK. The controller only has 4 ports, with MV_FLAG_DUAL_HC it seems to init 8 ports and fails miserably at probe time. There are no other devices mapped to that chip, maybe it was just incorrectly specified in the first place? Signed-off-by: Olof Johansson Signed-off-by: Jeff Garzik commit 79a55b72a1996f77e9d23c7a5282e5839d45beb3 Author: Tejun Heo Date: Thu Jan 18 17:22:18 2007 +0900 libata: fix handling of port actions in per-dev action mask libata EH ignores port-wide actions in per-dev action mask. However, device resume requests EH_SOFTRESET using per-dev action mask. Under certain circumstances, this results in not resetting frozen port after resuming which causes failure of all commands. This patch allows port-wide actions to be requested in per-dev action mask. Before EH recovery starts, port-wide actions will be collected. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 501e0c500217e38276d61445ee0839b3f2c66d05 Author: Tejun Heo Date: Wed Jan 17 11:34:02 2007 +0900 libata: initialize qc->dma_dir to DMA_NONE libata didn't used to init qc->dma_dir to any specific value on qc initialization and command translation path didn't set qc->dma_dir if the command doesn't need data transfer. This made non-data commands to have random qc->dma_dir. This usually doesn't cause problem because LLDs usually check qc->protocol first and look at qc->dma_dir iff the command needs data transfer but this doesn't hold for all LLDs. It might be worthwhile to rename qc->dma_dir to qc->data_dir as we use the field to tag data direction for both PIO and DMA protocols. This problem has been spotted by James Bottomley. Signed-off-by: Tejun Heo Cc: James Bottomley Signed-off-by: Jeff Garzik commit 96bc103f4c4e470d82ba5e372191d02ad715da45 Author: Luca Pedrielli Date: Tue Jan 16 12:55:04 2007 +0900 sata_via: add PCI ID 0x5337 Add PCI ID 0x5337 to supported PCI ID. This is VT8237 in IDE mode. Signed-off-by: Luca Pedrielli Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 7db51fbecbd7082ddf9d038c7e748d5a402c9da7 Author: Robert P. J. Day Date: Mon Jan 8 02:22:03 2007 -0500 libata doc: "error : unterminated entity reference exceptions" Fix libata.tmpl to not generate "error : unterminated entity reference exceptions" errors anymore when running "make htmldocs". Signed-off-by: Robert P. J. Day Signed-off-by: Jeff Garzik commit 7939aae0c08412138a827e0af6f16fc19c346353 Author: Francois Romieu Date: Thu Jan 18 23:22:23 2007 +0100 sis190: failure to set the MAC address from EEPROM Fix from http://bugzilla.kernel.org/show_bug.cgi?id=7747 Signed-off-by: Andrew Morton Cc: Signed-off-by: Francois Romieu Signed-off-by: Jeff Garzik commit 2806ccd7ad9073f4f1a065b5672d7592e7838e97 Author: Ralf Baechle Date: Tue Dec 19 02:12:42 2006 +0100 [MIPS] Delete duplicate call to load_irq_save. This call may have resulted to local_tlb_flush_range returning with interrupts disabled resulting in excessive interrupt latency. Signed-off-by: Ralf Baechle commit c80697b3a0d05dd87eeeb55c4dd1c3dae047293e Author: Ralf Baechle Date: Wed Jan 17 18:58:44 2007 +0000 [MIPS] SMTC: Fix cp0 hazard. Signed-off-by: Ralf Baechle commit c70a8c345fd770ecb2ff334bdf88b63edaffb77d Author: Gong Jun Date: Thu Jan 18 22:14:24 2007 +0100 hwmon/w83793: Hide invalid VID readings Ignore the VID readings when the motherboard has not designed the function. Signed-off-by: Gong Jun Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare commit c92943152884e3777439ad40a40126f2e51b8ea8 Author: Rudolf Marek Date: Thu Jan 18 22:14:24 2007 +0100 hwmon/w83793: Fix the fan input detection Catch the cases when alternative pins are used to route the fan9-12 input. Signed-off-by: Rudolf Marek Signed-off-by: Gong Jun Signed-off-by: Jean Delvare commit 46bed4dfe5f95f1fc8f68ead592a7e295bbbe01e Author: Gong Jun Date: Thu Jan 18 22:14:24 2007 +0100 hwmon/w83793: Ignore disabled temperature channels Ignore the temperature readings when its channel is disabled, ignore AMDSI readings. Signed-off-by: Gong Jun Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare commit 9fab2d8b75a4084e91f1dcb4e55368406fe53010 Author: Jean Delvare Date: Thu Jan 18 22:14:23 2007 +0100 hwmon: Fix the VRD 11 decoding I wonder how we came up with such a broken test in the first place. Signed-off-by: Jean Delvare commit ddca933bd554b4f81f27776f3cb9daa67cf241b1 Author: Gong Jun Date: Thu Jan 18 22:14:23 2007 +0100 hwmon/w83793: Remove the description of AMDSI and update the voltage formula Fix the driver to match the information in datasheet 1.0. AMD SI interface is marked as reserved, computing formula for 5VDD and 5VSB is updated. Signed-off-by: Gong Jun Signed-off-by: Rudolf Marek Signed-off-by: Jean Delvare commit 6bf446522b246194551cf167f0168792080d6118 Author: Timur Tabi Date: Thu Jan 18 11:09:35 2007 -0600 Fix phy_read/write redefinition errors in ucc_geth_phy.c The local versions of phy_read() and phy_write() in ucc_geth_phy.c conflict with the prototypes in include/linux/phy.h, so this patch renames them, moves them to the top of the file (while eliminating the redundant prototype), and makes them static. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala Signed-off-by: Jeff Garzik commit df19b6b020791b4c42e7cf2e4f582454cbc49251 Author: Timur Tabi Date: Tue Jan 9 12:31:38 2007 -0600 Update ucc_geth.c for new workqueue structure The workqueue interface changed with David Howell's patch on 11/22/2006 (SHA 65f27f38446e1976cc98fd3004b110fedcddd189). Several drivers were updated with that patch to handle the new interface, but ucc_geth.c was not one of them. This patch updates ucc_geth.c to support the new model. A compiler warning in set_mac_addr() was also fixed. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala Signed-off-by: Jeff Garzik commit b2db8dd4fdce7f31aa72a854e2433108d474ebb2 Author: Brice Goglin Date: Tue Jan 9 21:05:35 2007 +0100 myri10ge: update driver version to 1.2.0 Driver is now at version 1.2.0. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit 21d05db175202adb166b047f35cbb96dbf9b86a5 Author: Brice Goglin Date: Tue Jan 9 21:05:04 2007 +0100 myri10ge: check that we can get an irq Now that IRQ allocation is done in myri10ge_open(), we want to still check when loading the driver that IRQ allocation could succeed later. Additionaly, we fix the initialization and printing of netdev->irq. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit 6ebc087a10c3953d59a61f362bd532f2d9468d1b Author: Brice Goglin Date: Tue Jan 9 21:04:25 2007 +0100 myri10ge: make wc_fifo usage load-time tunable Under some circumstances, using WC without the WC fifo is faster. So we make it possible to tune wc_fifo with a module parameter. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit 553af56775b3f23bf64f87090ab81a62bef2837b Author: Chris Lalancette Date: Tue Jan 16 16:41:44 2007 -0500 8139cp: Don't blindly enable interrupts Similar to this commit: http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=d15e9c4d9a75702b30e00cdf95c71c88e3f3f51e It's not safe in cp_start_xmit to blindly call spin_lock_irq and then spin_unlock_irq, since it may very well be the case that cp_start_xmit was called with interrupts already disabled (I came across this bug in the context of netdump in RedHat kernels, but the same issue holds, for example, in netconsole). Therefore, replace all instances of spin_lock_irq and spin_unlock_irq with spin_lock_irqsave and spin_unlock_irqrestore, respectively, in cp_start_xmit(). I tested this against a fully-virtualized Xen guest using netdump, which happens to use the 8139cp driver to talk to the emulated hardware. I don't have a real piece of 8139cp hardware to test on, so someone else will have to do that. Signed-off-by: Chris Lalancette Signed-off-by: Jeff Garzik commit bd62b23cbcc691cc8faa6f4028783f60957b6508 Author: Anton Altaparmakov Date: Thu Jan 18 10:28:18 2007 +0000 NTFS: Forgot to bump version number in makefile to 2.1.28... Signed-off-by: Anton Altaparmakov commit 8331191e56802f0155772a3d56bc2a750acc38e1 Author: Anton Altaparmakov Date: Thu Jan 18 09:42:48 2007 +0000 NTFS: 2.1.28 - Fix deadlock reported by Sergey Vlasov due to ntfs_put_inode(). - Fix deadlock in fs/ntfs/inode.c::ntfs_put_inode(). Thanks to Sergey Vlasov for the report and detailed analysis of the deadlock. The fix involved getting rid of ntfs_put_inode() altogether and hence NTFS no longer has a ->put_inode super operation. Signed-off-by: Anton Altaparmakov commit 10764889c6355cbb335cf0578ce12427475d1a65 Author: Larry Finger Date: Fri Jan 12 12:08:50 2007 -0600 [PATCH] bcm43xx: Fix failure to deliver PCI-E interrupts The PCI-E modifications to bcm43xx do not set up the interrupt vector correctly. Tested with BCM4311 (PCI-E) on x86_64 and BCM4306 (PCI) on i386. Signed-off-by: Larry Finger Signed-off-by: John W. Linville commit 412297d31d439ba56cd4faeb3a49a6f569f40702 Author: Mauro Carvalho Chehab Date: Sun Jan 7 08:51:05 2007 -0300 V4L/DVB (5023): Fix compilation on ppc32 architecture There's a problem, pointed by Meelis Roos , that, on ppc32 arch, with some gcc versions (noticed with prerelease 4.1.2 20061115), compilation fails, due the lack of __ucmpdi2 to do the required 64-bit comparision. This patch takes some sugestions made by Andrew Morton , Stelian Pop and Segher Boessenkool Signed-off-by: Mauro Carvalho Chehab commit 1323fbda1343f50f198bc8bd6d1d59c8b7fc45bf Author: Michael Krufky Date: Fri Jan 12 17:38:05 2007 -0300 V4L/DVB (5071): Tveeprom: autodetect LG TAPC G701D as tuner type 37 autodetect LG TAPC G701D as tuner type 37. Thanks to Adonis Papas, for pointing out the missing autodetection for this tuner. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 10329b962be782fa4fbebea9358063a4507d0c4d Author: Gerd Hoffmann Date: Fri Jan 12 21:26:32 2007 -0300 V4L/DVB (5069): Fix bttv and friends on 64bit machines with lots of memory We have a DMA32 zone now, lets use it to make sure the card can reach the memory we have allocated for the video frame buffers. Signed-off-by: Gerds Hoffmann Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit e382f62be8a92ebbdf697ebfab260b7d943a359f Author: hermann pitton Date: Sun Jan 7 21:19:48 2007 -0300 V4L/DVB (5033): MSI TV@nywhere Plus fixes - MSI TV@nywhere Plus. Fix radio, S-Video and external analog audio in as far we can know currently. Signed-off-by: Hermann Pitton Signed-off-by: Mauro Carvalho Chehab commit 55d5440d4587454628a850ce26703639885af678 Author: Martin Samuelsson Date: Sun Jan 7 20:50:27 2007 -0300 V4L/DVB (5029): Ks0127 status flags Or status flags together in DECODER_GET_STATUS instead of and-zapping them. Signed-off-by: Martin Samuelsson Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit c6d704c8c4453f05717ba88792f70f8babf95268 Author: Grant Likely Date: Sun Jan 7 10:33:30 2007 -0300 V4L/DVB (5024): Fix quickcam communicator driver for big endian architectures Host endianess does not affect the order that pixel rgb data comes in from the quickcam (the values are bytes, not words or longs). The driver is erroniously swapping the order of rgb values for big endian machines. This patch is needed get the Quickcam communicator working on big endian machines (tested on powerpc) Signed-off-by: Grant Likely Signed-off-by: Mauro Carvalho Chehab commit a96afb3e9428f2e7463344f12dbc85faf08e2e09 Author: Robert Hancock Date: Sun Jan 7 08:12:19 2007 -0300 V4L/DVB (5021): Cx88xx: Fix lockup on suspend Suspending with the cx88xx module loaded causes the system to lock up because the cx88_audio_thread kthread was missing a try_to_freeze() call, which caused it to go into a tight loop and result in softlockup when suspending. Fix that. Signed-off-by: Robert Hancock Signed-off-by: Mauro Carvalho Chehab commit 35d6270b806562b37279d3970fa477aaeb372829 Author: Mauro Carvalho Chehab Date: Sun Jan 14 10:14:17 2007 -0200 V4L/DVB (5020): Fix: disable interrupts while at KM_BOUNCE_READ vivi.c uses the KM_BOUNCE_READ with local interrupts enabled. This means that if a disk interrupt occurs while vivi.c is using this fixmap slot, the vivi.c driver will, upon return from that interrupt, find that the fixmap slot now points at a different physical page. The net result will probably be rare corruption of disk file contents, because viv.c will now be altering the page which the disk code was recently using. Thanks to Andrew Morton for pointing this. Signed-off-by: Mauro Carvalho Chehab commit c430ca1e16b2b4b30f567806c73e270caea8db1d Author: Thierry MERLE Date: Fri Dec 29 20:32:08 2006 -0300 V4L/DVB (5019): Fix the frame->grabstate update in read() entry point. The Coverity checker spotted that in usbvision_v4l2_read(), the variable "frmx" is never assigned any value different from -1, but it's used an an array index in "usbvision->frame[frmx]". Thanks to Adrian Bunk for warning about that. Signed-off-by: Thierry MERLE Signed-off-by: Mauro Carvalho Chehab commit 6f949909e8f9e5d7e5584dc48d9a5e060c52aed1 Author: Philip Langdale Date: Thu Jan 4 07:04:47 2007 -0800 mmc: Correct definition of R6 During development of SDHC support, it was discovered that the definition for R6 was incorrect. This patch fixes that and patches the drivers that do switch on the response type. Signed-off-by: Philip Langdale Cc: Alex Dubov Cc: Pavel Pisa Signed-off-by: Pierre Ossman commit 1b3b2631842ab60c1b7923bef102c610439ba3dd Author: Carlos Eduardo Aguiar Date: Mon Jan 15 06:38:15 2007 +0100 omap: Update MMC response types This patch is a fix in order to update MMC response types. This modification is needed to allow SD card support on OMAP platforms. Signed-off-by: Carlos Eduardo Aguiar Signed-off-by: Yuha Yrjola Signed-off-by: Pierre Ossman commit e499e01d234a31d59679b7b1e1cf628d917ba49a Author: David Woodhouse Date: Sat Jan 13 08:19:03 2007 +0800 [JFFS2] debug.h: include for current->pid Signed-off-by: David Woodhouse commit 0fc2ccea4c8fa779053cb6f8984f6da399a81182 Author: Adrian Hunter Date: Tue Jan 9 17:55:21 2007 +0200 [MTD] OneNAND: Handle DDP chip boundary during read-while-load The read-while-load method of reading from OneNAND needs to allow for the change of bufferRAM address at the boundary between the two chips in a double density (DDP) device. Signed-off-by: Adrian Hunter Signed-off-by: Kyungmin Park commit b3c9f8bfe7ab366a5d2495ebe5d2dc6fd7368122 Author: Kyungmin Park Date: Fri Jan 5 19:16:04 2007 +0900 [MTD] OneNAND: return ecc error code only when 2-bit ecc occurs we don't need to return ecc error when 1-bit ecc. We only return error code when 2-bit ecc error Signed-off-by: Kyungmin Park commit a8de85d557004d6d4e4cf79ecd6b97339b986fe9 Author: Adrian Hunter Date: Thu Jan 4 09:51:26 2007 +0200 [MTD] OneNAND: Implement read-while-load Read-while-load enables higher performance read operations. Signed-off-by: Adrian Hunter Signed-off-by: Kyungmin Park commit 2fd32d4af83f4535d12d3f6dd23189352a9596fa Author: Kyungmin Park Date: Fri Dec 29 11:51:40 2006 +0900 [MTD] OneNAND: fix onenand_wait bug in read ecc error Even though there is ECC error. OneNAND driver updates the buffram as valid Signed-off-by: Kyungmin Park commit 61a7e1983e773b93aac172dadc97f1eb484536b4 Author: Artem Bityutskiy Date: Tue Dec 26 16:41:24 2006 +0900 [MTD] OneNAND: release CPU in cycles This patch teaches OneNAND to release processor in read/write/erase cycles and let other processes proceed. Also, remove buggi touch watchdog call which only hides the problem instead of solving it. Signed-off-by: Artem Bityutskiy Signed-off-by: Kyungmin Park commit 60d84f9739a47d0ed8e19805d9056e39fba31c79 Author: Kyungmin Park Date: Fri Dec 22 16:21:54 2006 +0900 [MTD] OneNAND: add subpage write support OneNAND supports up to 4 writes at one NAND page. Add support of this feature. Signed-off-by: Kyungmin Park commit f62724873652ddb19edf7f92843e9456fe3be3ea Author: Kyungmin Park Date: Fri Dec 22 16:02:50 2006 +0900 [MTD] OneNAND: fix onenand_wait bug Fix onenand_wait error reporting Signed-off-by: Kyungmin Park commit abb536e7ac8719243cfc4b40b39bf3eefd028f82 Author: Kyungmin Park Date: Fri Dec 22 16:39:30 2006 +0900 [JFFS2] use the ref_offset macro Don't use ref->flash_offset directly in debugging code, use the ref_offset macro instead. Signed-off-by: Kyungmin Park Signed-off-by: Artem Bityutskiy commit a2166b933ef9099b4fa6860b165e6dac553a97aa Author: Artem Bityutskiy Date: Thu Dec 28 12:01:41 2006 +0200 [JFFS2] Reschedule in loops Make JFFS2 nicer and teach it to call cond_resched() in loops which may be quite large. Signed-off-by: Artem Bityutskiy commit 3ef49a3b45c33b055002402f01e5da98cb773086 Author: Jes Sorensen Date: Fri Jan 5 12:05:37 2007 -0500 [SCSI] qla1280: set residual correctly Jeremy caught a bug in the qla1280 driver where it didn't set the residual value correctly. Signed-off-by: Jeremy Higdon Signed-off-by: Jes Sorensen Signed-off-by: James Bottomley commit d0a6b08ae08c2ab292f756bdae0e8b1242696d7f Author: Eric Moore Date: Thu Jan 4 20:49:03 2007 -0700 [SCSI] fusion: bump version bump version Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 9f4203b357d46a66c042df3dedf277ccaa5e2b1d Author: Eric Moore Date: Thu Jan 4 20:47:47 2007 -0700 [SCSI] fusion: MODULE_VERSION support * Add modinfo driver version support. * Change copyright year to 2007. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit f99be43b3024f2dd054f2addd54a318eabee2018 Author: Eric Moore Date: Thu Jan 4 20:46:54 2007 -0700 [SCSI] fusion: power pc and miscellaneous bug fixs * Endian fix's for warnings found in ppc environment. * Fix compile time warning when calling scsi_device_reprobe, where in newer kernels this API expects its return value to be examined. * Fix compile errors when debug messages are enabled. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 86dd424266530cda55258b2b33d04c23a88b9a9c Author: Eric Moore Date: Thu Jan 4 20:44:01 2007 -0700 [SCSI] fusion: fibre channel: return DID_ERROR for MPI_IOCSTATUS_SCSI_IOC_TERMINATED A repost of a patch forwarded by Mikael Reed from 2006-12-20. The fibre channel IOC may kill a request for a variety of reasons, some of which may be recovered by a retry, some of which are unlikely to be recovered. Return DID_ERROR instead of DID_RESET to permit retry of the command, just not an infinite number of them. Signed-off-by: Michael Reed Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 3d6d174a0888fe082e87ce1d4a0f1a85044a4515 Author: Sumant Patro Date: Fri Dec 29 08:13:54 2006 -0800 [SCSI] megaraid_sas: Update module author Update domain name change from lsil.com to lsi.com. Change module author to megaraidlinux@lsi.com Signed-off-by: Sumant Patro Signed-off-by: James Bottomley commit 4fe48187da5a0229be3951761b66cd426430a52b Author: adam radford Date: Thu Jan 4 18:16:56 2007 -0800 [SCSI] 3ware 8000 serialize reset code The attached patch updates the 3ware 8000 driver: - Free irq handler in __tw_shutdown(). - Turn on RCD bit for caching mode page. - Serialize reset code. Signed-off-by: Adam Radford Signed-off-by: James Bottomley commit 6397256b0af52082db3b7f804aa3b612a17dcbc9 Author: Tejun Heo Date: Tue Jan 2 17:41:04 2007 +0900 [SCSI] sr: fix error code check in sr_block_ioctl() sr_block_ioctl() should proceed to SCSI ioctls if cdrom_ioctl() returns -ENOSYS. However it tested for ENOSYS instead of -ENOSYS rendering all SCSI ioctls other than GET_IDLUN and GET_BUS_NUMBER inaccessible. Fix it. Signed-off-by: Tejun Heo Signed-off-by: James Bottomley commit a96e0c7798057dd8055d0263c076fed975c10237 Author: Mariusz Kozlowski Date: Tue Jan 2 01:07:32 2007 +0100 [SCSI] scsi: lpfc error path fix Add kmalloc failure check and fix the loop on error path. Without the patch pool element at index [0] will not be freed. Signed-off-by: Mariusz Kozlowski Acked-by: James Smart Signed-off-by: James Bottomley commit 8e9d58e723e29e8b04c09bd9badd81c1d8232f5f Author: Salyzyn, Mark Date: Mon Dec 18 15:01:41 2006 -0500 [SCSI] aacraid: Product List Update Update drivers/scsi/aacraid/linit.c and Documentation/scsi/aacraid.txt file with the current list of adapters supported by the aacraid driver. Deprecated a few adapters that never shipped, corrected a few and added new adapters that matched the family code support. No functional changes to the driver. No side effects. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley commit 9b80cb4be1f4181875e0cf274dc59f42964fdf1b Author: Mike Christie Date: Sun Dec 17 12:10:28 2006 -0600 [SCSI] libiscsi: fix senselen calculation Yanling Qi, noted that when the sense data length of a check-condition is greater than 0x7f (127), senselen = (data[0] << 8) | data[1] will become negative. It causes different kinds of panics from GPF, spin_lock deadlock to spin_lock recursion. We were also swapping this value on big endien machines. This patch fixes both issues by using be16_to_cpu(). Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 94cb3f822bb806a750e1e1c8457bee6e96671569 Author: FUJITA Tomonori Date: Sun Dec 17 12:10:27 2006 -0600 [SCSI] iscsi: simplify IPv6 and IPv4 address printing Signed-off-by: FUJITA Tomonori Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 09492605aa3e17ce19572b9e925ecf66e4da55dd Author: Meelis Roos Date: Sun Dec 17 12:10:26 2006 -0600 [SCSI] iscsi: newline in printk This patch cures two run together printk messages in iSCSI driver. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 59c17ec1690fd76ce6ae586daac29b04601be3e0 Author: Akinobu Mita Date: Sun Dec 17 12:10:25 2006 -0600 [SCSI] iscsi: fix crypto_alloc_hash() error check The return value of crypto_alloc_hash() should be checked by IS_ERR(). Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit c959e1c2a475e0ad0d24eff200de9b6dcb3710c6 Author: Arne Redlich Date: Sun Dec 17 12:10:24 2006 -0600 [SCSI] iscsi: fix 2.6.19 data digest calculation bug The transition from crypto_digest_*() to the crypto_hash_*() family introduced a bug into the data digest calculation: crypto_hash_update() is called with the number of S/G elements instead of the S/G lists data size. Signed-off-by: Arne Redlich Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit ddaf6fc85459d161c39a70a2cf9e04343dafe47f Author: James Bottomley Date: Wed Dec 13 10:10:40 2006 -0600 [SCSI] scsi_scan: fix report lun problems with CDROM or RBC devices Apparently no ATAPI CD/DVD actually supports REPORT LUNS (in spite of claiming scsi-3 compliance, where it's mandatory) and worse, some crash or flake out on being sent the command. This may actually be due to a conflict between SPC and MMC with MMC not listing REPORT LUNS as mandatory. The same standards conflict exists for RBC as well. Fix all of this by reversing the blacklists for CDROM and RBC devices (i.e. now they have to have the BLIST_REPORTLUNS2 flag set even if the inquiry data returns scsi-3 compliance). Signed-off-by: James Bottomley commit 03c1c39680f949e0a944d540949b2d3d6887cdc0 Author: Andrew Vasquez Date: Wed Dec 13 19:20:33 2006 -0800 [SCSI] qla2xxx: Update version number to 8.01.07-k4. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 96ca5cad09edd86da9c8fd613c9406cdf978cd6d Author: Andrew Vasquez Date: Wed Dec 13 19:20:32 2006 -0800 [SCSI] qla2xxx: Use generic isp_ops.fw_dump() function. Rather than a direct call, as was done in the case of a RISC-paused state within the ISP24xx interrupt handler. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 07f31805e1fa98f802f60433cdd1c0461120ef0e Author: Andrew Vasquez Date: Wed Dec 13 19:20:31 2006 -0800 [SCSI] qla2xxx: Perform a fw-dump when an ISP23xx RISC-paused state is detected. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 0c8c39af1699227e5a5d13e54a71f93347fe4f61 Author: Andrew Vasquez Date: Wed Dec 13 19:20:30 2006 -0800 [SCSI] qla2xxx: Correct reset handling logic. - honor ISP24XX NVRAM settings for lip-reset, full-login-lip, and device-reset. - correct LIP_FULL_LOGIN mailbox command issuance. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 8bc69e7dc307d6195d92fa87da1fcbae6e5dda69 Author: Andrew Vasquez Date: Wed Dec 13 19:20:29 2006 -0800 [SCSI] qla2xxx: Correct IOCB queueing mechanism for ISP54XX HBAs. Original code would incorrectly use non-24xx code-paths. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 4346b14942dbb65e5d4fa7ec0e6567c39861ae6c Author: Andrew Vasquez Date: Wed Dec 13 19:20:28 2006 -0800 [SCSI] qla2xxx: Detect GPSC capabilities within a fabric. Disable subsequent GPSC queries if Fabric Management services do not support the operation. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 71ea9949a307e92fd5f8b4107814014464f38f91 Author: Andrew Vasquez Date: Wed Dec 13 19:20:27 2006 -0800 [SCSI] qla2xxx: Use proper prep_ms_iocb() function during GFPN_ID. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit cdfc82ade68ca11aafc900c56ef2be2b4aea8f58 Author: Andrew Vasquez Date: Wed Dec 13 19:20:26 2006 -0800 [SCSI] qla2xxx: Correct endianess issue while interrogating MS status. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 87b2380fcc6ff97c6ff5afd66ff50e94e6188d6b Author: Andrew Vasquez Date: Wed Dec 13 19:20:25 2006 -0800 [SCSI] qla2xxx: Don't log trace-control async-events. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley commit 9ef3c10e2009d8479b27e3ff39a7779fbca5711c Author: James Bottomley Date: Wed Dec 13 09:19:49 2006 -0600 [SCSI] seagate: remove BROKEN tag Apparently the driver compiles and runs, so tidy up some macro warnings and bring it back as unBROKEN. Signed-off-by: James Bottomley commit 4ed381ee559ebfab32d3b21896c204992c36179a Author: James Bottomley Date: Mon Dec 11 09:47:06 2006 -0600 [SCSI] scsi_transport_spi: fix sense buffer size error The code does this: unsigned char sense[SCSI_SENSE_BUFFERSIZE]; ... scsi_normalize_sense(sense, sizeof(*sense), sshdr) however the sizeof will return 1 not 96 which means the sense data will have no valid ASC/ASCQ values. Fix by putting the correct sense size. The only affected case for this would have been the DV buffer sanity check failure, which is fortunately quite rare. Signed-off-by: James Bottomley commit 8bcc24127be12967588db0ad0e614be937ee1d5a Author: Matthew Wilcox Date: Thu Dec 7 19:29:27 2006 -0700 [SCSI] Add missing completion to scsi_complete_async_scans() If either scsi_complete_async_scans() is called a second time before the first call has finished, or a host scan is started while scsi_complete_async_scans() is still sleeping, it would fail to wake up the other task, which would sleep forever. I've changed the kernel-doc to make it clear that scsi_complete_async_scans() only guarantees that scans which started before it was called are guaranteed to have finished when it returns. I considered making it wait until all scans are completed, but it can't guarantee that no more scans will start before it returns anyway, and it runs the risk of confusing other callers of scsi_complete_async_scans() for hosts actually scanning. Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley commit 23be331d9e5077edf07d73813f870d3b895c8593 Author: Adrian Bunk Date: Fri Nov 24 02:46:01 2006 +0100 [SCSI] qla2xxx: make qla2x00_reg_remote_port() static Signed-off-by: Adrian Bunk Acked-by: Andrew Vasquez Signed-off-by: James Bottomley commit d8dafd8ccde06f16095234dc3addf52b511805b3 Author: Randy Dunlap Date: Tue Nov 21 13:50:47 2006 -0800 [SCSI] advansys: wrap PCI table inside ifdef CONFIG_PCI The Advansys ISA/EISA/PCI driver has a compile error when CONFIG_PCI=n, so wrap the pci_device_id table inside ifdef CONFIG_PCI. drivers/scsi/advansys.c: At top level: drivers/scsi/advansys.c:18219: error: array type has incomplete element type drivers/scsi/advansys.c:18221: error: 'PCI_ANY_ID' undeclared here (not in a function) make[2]: *** [drivers/scsi/advansys.o] Error 1 make[1]: *** [drivers/scsi] Error 2 make: *** [drivers] Error 2 Signed-off-by: Randy Dunlap Signed-off-by: James Bottomley commit 85de3d9bc779c198f8667cffc291b0ecad082b5e Author: Amit Choudhary Date: Tue Jan 2 21:16:10 2007 +0000 [JFFS2] Fix error-path leak in summary scan Signed-off-by: Amit Choudhary Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 405c514f95898452db728df6bc79f63e44a3f2d0 Author: Steve French Date: Sat Dec 23 18:44:33 2006 +0000 [CIFS] Update CIFS version number Signed-off-by: Steve French commit aba54da3d05e910199ea8255992c244c9abadd91 Author: Artem Bityutskiy Date: Tue Dec 19 15:45:23 2006 +0200 [JFFS2] add cond_resched() when garbage collecting deletion dirent We observe soft lockups when doing heavy test which creates directory with a lot of direntries and deletes them. This cycle is the reason fo this. Make it nicer and add cond_resched() inside of it. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 0bf3a9d82adc62fb05e3f108ddd46eb088960f26 Author: Ralf Baechle Date: Mon Dec 11 16:25:30 2006 +0000 [MTD] Nuke IVR leftovers Support for the ITE8172 based boards was deleted a while ago so this is dead code. The Kconfig dependency on MIPS was wrong anyway, MIPS is a processor architecture and nothing else; guesses on systems architecture are likely to be wrong ... Signed-off-by: Ralf Baechle Signed-off-by: David Woodhouse commit 66a1e421b98edaa62c7d95cc53cb381efa3fb9bf Author: Kyungmin Park Date: Mon Dec 11 01:34:23 2006 +0000 [MTD] OneNAND: fix oob handling in recent oob patch There are missing place in recent MTD oob patch http://git.infradead.org/?p=mtd-2.6.git;a=commitdiff;h=7014568bad55c20b7ee4f439d78c9e875912d51f Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse commit 76ab40e465e7615e582b9244a1a967bf3f074061 Author: David Woodhouse Date: Mon Dec 11 09:43:38 2006 +0000 [MTD] Fix ssfdc blksize typo I will not commit even trivial and obvious one-line fixes without building. I will not commit even trivial and obvious one-line fixes without building. I will not commit even trivial and obvious one-line fixes without building. I will not commit even trivial and obvious one-line fixes without building. Only clever people can get away with that. Signed-off-by: David Woodhouse commit 3d375d9e0feee79e63a552a3eb3b46f989afce34 Author: Yan Burman Date: Mon Dec 4 15:03:01 2006 -0800 [JFFS2] replace kmalloc+memset with kzalloc Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit db06e2a93ff73270e0053c37c88073094e77913d Author: David Woodhouse Date: Sun Dec 10 11:48:54 2006 +0000 [MTD] Fix SSFDC build for variable blocksize. Signed-off-by: David Woodhouse commit dffbc42b5adfc77a4165de9f170304eb596de3f4 Author: Randy Dunlap Date: Mon Dec 4 15:03:00 2006 -0800 [MTD] ESB2ROM uses PCI ESB2ROM uses PCI interface functions. With CONFIG_PCI=n: drivers/mtd/maps/esb2rom.c: In function 'esb2rom_init_one': drivers/mtd/maps/esb2rom.c:167: warning: implicit declaration of function 'pci_dev_get' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit a2c2fe4b242cb9c62951ae154594cffbb94ab2ad Author: Vitaly Wool Date: Wed Dec 6 13:17:49 2006 +0300 [MTD] of_device-based physmap driver inlined below is the patch that adds physmap driver for of_device. It's an MTD part of the two-part support for flash/ROM devices based on Open Firmware descriptions. The arch part (currently only PowerPC which is no surprise) was introduced to powerpc folks earlier and recently the older version of the powerpc part has been included into the powerpc.git tree (see http://www.kernel.org/git/?p=linux/kernel/git/paulus/powerpc.git;a=commitdiff;h=28f9ec349ae47c91768b7bc5607db4442c818e11). drivers/mtd/maps/Kconfig | 9 + drivers/mtd/maps/Makefile | 1 drivers/mtd/maps/physmap_of.c | 255 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 265 insertions(+) Signed-off-by: Vitaly Wool Signed-off-by: Sergey Shtylyov Signed-off-by: David Woodhouse commit f33665d931f33a0baf44fc5d3594b23f8118eb44 Author: Rod Whitby Date: Wed Dec 6 12:11:15 2006 +1030 [MTD] Support combined RedBoot FIS directory and configuration area RedBoot supports storing the FIS directory and the RedBoot configuration area in the same block of flash memory. This is not the most common RedBoot configuration, but it is used on commercially available boards supported by the kernel. A recent patch to mtd/redboot.c (http://lkml.org/lkml/2006/3/20/410) which corrected the skipping of deleted table entries has exposed the latent problem of the kernel redboot parser running off the end of the FIS directory and interpreting the RedBoot configuration information as table entries. This patch terminates the table parsing when the first truly empty entry is found (table entry deletion only clears the first byte of the name, so two cleared bytes in a row indicates the end of the table), thereby supporting the combined redboot FIS directory and RedBoot configuration information flash layout scenario. Signed-off-by: Rod Whitby Signed-off-by: David Woodhouse commit dd11b8cdf0c455f4cfbc5daa70aabce9dcc6c07b Author: Andrew Victor Date: Fri Dec 8 13:49:42 2006 +0200 [MTD] NAND: Support for 16-bit bus-width on AT91. Add support for 16-bit NAND bus-width for the AT91 NAND driver. The 16-bit NAND is found on the Atmel AT91SAM9260-EK and AT91SAM9261-EK boards. Orignal Patch from Patrice Vilchez Signed-off-by: Andrew Victor Signed-off-by: David Woodhouse commit 4a0c50c07a6100ca58d465bac951533347e18d71 Author: Artem Bityutskiy Date: Wed Dec 6 21:52:32 2006 +0200 [MTD] nandsim: bugfix in page addressing Number of address bytes for 64-128 MiB NANDs is 4, not 5. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 418b2e56b8a61ea85f7a9c5d327e1a2c61d1b2db Author: Timo Lindhorst Date: Tue Dec 5 15:23:33 2006 +0100 [MTD] NAND: use SmartMedia ECC byte order for ndfc Select MTD_NAND_ECC_SMC (ECC byte order according to the Smart Media Specification) if MTD_NAND_NDFC is used. Using the wrong byte order causes fatal, unnoticed data damage. For further information see: http://lists.infradead.org/pipermail/linux-mtd/2006-November/016920.html Signed-off-by: Timo Lindhorst Signed-off-by: David Woodhouse commit 0b47d654089c5ce3f2ea26a4485db9bcead1e515 Author: Yoshinori Sato Date: Fri Dec 1 10:01:50 2006 +0000 [MTD] redboot partition combined fis / config problem Can't analyze FIS directory in CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG really. Signed-off-by: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 7dcb483de3b33e74ddd2040bd7b6ba96d86a91f8 Author: Mariusz Kozlowski Date: Fri Dec 1 09:59:49 2006 +0000 [MTD] [NAND] Compile fix in rfc_from4.c Signed-off-by: Mariusz Kozlowski Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 6c33cafc794d07c9254c160789120a0e98c088c9 Author: Haavard Skinnemoen Date: Wed Nov 29 14:26:07 2006 +0100 [MTD] bugfix: DataFlash is not bit writable This patch fixes the "jffs2_flash_writev(): Non-contiguous write to 00825300 with mtd_dataflash" bug. Signed-off-by: Haavard Skinnemoen Signed-off-by: Artem Bityutskiy commit c9ac5977299dd106ddb759e7e10035770dff185b Author: David Woodhouse Date: Thu Nov 30 08:17:38 2006 +0000 [MTD] Remove trailing whitespace The newly-added cafe_ecc.c had a lot of it because of the way the lookup table was auto-generated; clean up the other files too while we're at it. Signed-off-by: David Woodhouse commit dd36f2673573fc027945d488342f2f70664f0448 Author: David Woodhouse Date: Wed Nov 29 16:33:03 2006 +0000 [MTD] Use EXPORT_SYMBOL_GPL() for exported symbols. While we're fixing up the newly-added symbol, change the neighbouring ones too, for consistency and also to reflect the author's interpretation of the GPL -- which is that _no_ non-GPL modules are permitted. The author always intended his code to be released under the GPL, and believes that any new interpretation of 'EXPORT_SYMBOL' as being any different from 'EXPORT_SYMBOL_GPL' is entirely invalid; the GPL requires that _all_ exports have the semantics of the new 'EXPORT_SYMBOL_GPL', which means the extra four characters are entirely redundant. But since those four extra characters trigger the check for illegal modules in a way that just EXPORT_SYMBOL does not, it's useful to change anyway. This action in no way indicates an admission that there is any legal distinction between the two states, and in particular does not indicate that the author believes that non-GPL modules may use symbols exported with EXPORT_SYMBOL alone. Signed-off-by: David Woodhouse commit 9c74034f8fc5d93fbe5656421cbbdc4c76ddda28 Author: Artem Bityutskiy Date: Wed Oct 11 14:52:47 2006 +0300 [MTD] return error code from get_mtd_device() get_mtd_device() returns NULL in case of any failure. Teach it to return an error code instead. Fix all users as well. Signed-off-by: Artem Bityutskiy commit 9fe912cea32aec18f860c95e8574410b5892481b Author: Artem Bityutskiy Date: Wed Oct 11 14:52:45 2006 +0300 [MTD] add get and put methods This patch adds get_device() and put_device() methods to the MTD description structure (struct mtd_info). These methods are called by MTD whenever the MTD device is get or put. They are needed when the underlying driver is something smarter then just flash chip driver, for example UBI. Signed-off-by: Artem Bityutskiy commit 7799308f34d3c3371a319559687c78c0f2506fcf Author: Artem Bityutskiy Date: Wed Oct 11 14:52:44 2006 +0300 [MTD] add get_mtd_device_nm() function This patch adds one more function to the MTD interface to make it possible to open MTD devices by their names, not only numbers. This is very handy in many situations. Also, MTD device number depend on load order and may vary, while names are fixed. Signed-off-by: Artem Bityutskiy commit 29072b96078ffde36f03d51e6b5d0cff1ba8c7df Author: Thomas Gleixner Date: Thu Sep 28 15:38:36 2006 +0200 [MTD] NAND: add subpage write support Many SLC NANDs support up to 4 writes at one NAND page. Add support of this feature. Signed-off-by: Artem Bityutskiy commit f6a7ecb18dabd88bd9f28e7bece564cabe8ffe82 Author: Josh Boyer Date: Mon Nov 20 20:15:36 2006 -0600 [MTD] add MTD_BLKDEVS Kconfig option Add a MTD_BLKDEVS Kconfig option to cleanup the makefile a bit Signed-off-by: Josh Boyer Signed-off-by: Artem Bityutskiy commit eb6cf7bb71baa109041c04357b930a0c0bfa0db7 Author: Yoichi Yuasa Date: Wed Oct 25 23:29:17 2006 +0900 [MTD] fix map probe name for cstm_mips_ixx This patch has fixed name of map probe for cstm_mips_ixx.c Signed-off-by: Yoichi Yuasa Signed-off-by: Artem Bityutskiy commit c0fe10aef354912c38c43991dd38c16f1828cfe3 Author: Artem Bityutskiy Date: Mon Nov 13 13:47:43 2006 +0200 [MTD] increase MAX_MTD_DEVICES Signed-off-by: Artem Bityutskiy commit ce1060494a205d528aa72fea23bdae607396e621 Author: Andrew Morton Date: Wed Nov 29 00:19:14 2006 +0000 [MTD] Tidy bitrev usage in rtc_from4.c Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit fc029194999a4563d356cdf728e0c44fb7a49105 Author: Timo Lindhorst Date: Mon Nov 27 13:35:49 2006 +0100 [MTD] [NAND] fix ifdef option in nand_ecc.c Fix up the config option in the #ifdef statements in nand_ecc.c Signed-off-by: Timo Lindhorst Signed-off-by: David Woodhouse commit 28bdd4a72d158083b7c7f56ec4ef5dfaf75d9464 Author: David Woodhouse Date: Wed Nov 29 00:04:59 2006 +0000 [MTD] [NAND] Update CAFÉ driver interrupt handler prototype Signed-off-by: David Woodhouse commit 95b93a0cd46682c6d9e8eea803fda510cb6b863a Author: Burman Yan Date: Wed Nov 15 21:10:29 2006 +0200 [MTD] replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman Signed-off-by: David Woodhouse commit 998a43e72d20afa7566dad66fd866fe939a89c09 Author: Randy Dunlap Date: Tue Nov 28 23:40:46 2006 +0000 [MTD] Fix printk format warning in physmap. (resources again) Fix printk format warning: drivers/mtd/maps/physmap.c:93: warning: long long unsigned int format, long unsigned int arg (arg 2) Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 7014568bad55c20b7ee4f439d78c9e875912d51f Author: Vitaly Wool Date: Fri Nov 3 18:20:38 2006 +0300 [MTD] [NAND] remove len/ooblen confusion. As was discussed between Ricard Wanderlöf, David Woodhouse, Artem Bityutskiy and me, the current API for reading/writing OOB is confusing. The thing that introduces confusion is the need to specify ops.len together with ops.ooblen for reads/writes that concern only OOB not data area. So, ops.len is overloaded: when ops.datbuf != NULL it serves to specify the length of the data read, and when ops.datbuf == NULL, it serves to specify the full OOB read length. The patch inlined below is the slightly updated version of the previous patch serving the same purpose, but with the new Artem's comments taken into account. Artem, BTW, thanks a lot for your valuable input! Signed-off-by: Vitaly Wool Signed-off-by: David Woodhouse commit 191876729901d0c8dab8a331f9a1e4b73a56457b Author: Richard Purdie Date: Fri Oct 27 09:09:33 2006 +0100 [MTD] Allow variable block sizes in mtd_blkdevs Currently, mtd_blkdevs enforces a block size of 512, even if the drivers can seemingly request a different size. This patch fixes mtd_blkdevs so block sizes other than 512 work correctly. Signed-off-by: Richard Purdie Signed-off-by: David Woodhouse commit 90afffc8bd79d130b58acd18f972ce4e00b8e20f Author: Dave Olsen Date: Mon Nov 6 16:33:57 2006 -0700 [MTD] [MAPS] Support for BIOS flash chips on the nvidia ck804 southbridge Add support for accessing BIOS flash chips connected to the NVIDIA ck804 southbridge. Signed-off-by: Ryan Jackson Signed-off-by: David Woodhouse commit 4010db56c8fe5bbb8e223bf9c9c36d41e9ad4f79 Author: Stefan Roese Date: Fri Nov 10 12:19:32 2006 +0100 [MTD] [NAND] Fix endianess bug in ndfc.c The writel() call accidentally clears all bits in the NDFC_CCR register (endianess problem). Now __raw_writel() is used instead. Tested on Bamboo with NAND on chip select 0 and chip select 1. Signed-off-by: Stefan Roese Signed-off-by: David Woodhouse commit ddacff1f20fc5c96cc73e2975258e05d298c97cc Author: Adrian Bunk Date: Sat Nov 25 20:15:41 2006 +0100 [MTD] make drivers/mtd/cmdlinepart.c:mtdpart_setup() static This patch makes the needlessly global mtdpart_setup() static. Signed-off-by: Adrian Bunk Signed-off-by: David Woodhouse commit 1605cd3d9c5001790c2e36979cf1eff1f222fbc5 Author: Adrian Bunk Date: Wed Nov 22 05:38:11 2006 +0100 [MTD] [NAND] rtc_from4.c: use lib/bitrev.c This patch converts drivers/mtd/nand/rtc_from4.c to use the new lib/bitrev.c Signed-off-by: Adrian Bunk Signed-off-by: David Woodhouse commit f4f91ac3c833abbd7181ff2122c6b48a653b4e55 Author: Kyungmin Park Date: Thu Nov 16 12:03:56 2006 +0900 [MTD] OneNAND: Single bit error detection Idea from Jarkko Lavinen Signed-off-by: Jarkko Lavinen Signed-off-by: Kyungmin Park commit 08f782b60a633cbd926ef5e49de303a752390719 Author: Kyungmin Park Date: Thu Nov 16 11:29:39 2006 +0900 [MTD] OneNAND: lock support Now you can use mtd lock inferface on OneNAND The idea is from Nemakal, Vijaya, thanks Signed-off-by: Kyungmin Park commit 2c22120fbd017d78ad2b6825ba573db3ef539bca Author: Kyungmin Park Date: Thu Nov 16 11:23:48 2006 +0900 MTD: OneNAND: interrupt based wait support We can use the two methods to wait. 1. polling: read interrupt status register 2. interrupt: use kernel ineterrupt mechanism To use interrupt method, you first connect onenand interrupt pin to your platform and configure interrupt properly Signed-off-by: Kyungmin Park commit cad40654c312fc51bdb520e9be91e29a9742bbcb Author: David Woodhouse Date: Wed Nov 1 08:19:20 2006 +0800 [MTD] NAND: Fix ECC settings in CAFÉ controller driver. We were resetting cafe->ctl2 to zero after an erase (and also during a write, but it was correctly reset after that). This meant that ECC reads after an erase were failing. Doh. Signed-off-by: David Woodhouse commit be8444bdf34f7ba21e2364ca296c68e81033e3b2 Author: David Woodhouse Date: Tue Oct 31 12:36:04 2006 +0800 [MTD] NAND: Add register debugging spew option to CAFÉ driver Signed-off-by: David Woodhouse commit 195a253b6632e2b7e6319f2f67120e708646554e Author: David Woodhouse Date: Tue Oct 31 12:30:11 2006 +0800 [MTD] NAND: Use register #defines throughout CAFÉ driver, not numbers Also use cafe_readl() and cafe_writel() abstraction to make code slightly cleaner -- especially if we want to use it in PIO mode. Signed-off-by: David Woodhouse commit a020727b1628cb4d7b70733222253c7fa3ec6113 Author: David Woodhouse Date: Sat Oct 28 17:08:38 2006 +0300 [MTD] NAND: Fix timing calculation in CAFÉ debugging message Signed-off-by: David Woodhouse commit 63a1423763c6c38eeeaf6dc8cee986514ab67aed Author: David Woodhouse Date: Fri Oct 27 22:12:02 2006 +0300 [MTD] NAND: Remove empty block ECC workaround They fixed the hardware so that ECC doesn't fail on reading an empty block. Signed-off-by: David Woodhouse commit 7608194c4ae454fab23b8d940986eeb9c58c3478 Author: David Woodhouse Date: Fri Oct 27 15:40:51 2006 +0300 [MTD] NAND: Add ECC debugging for CAFÉ Signed-off-by: David Woodhouse commit b478c775a0c306c84215a1138e49fab540b94a5d Author: David Woodhouse Date: Fri Oct 27 14:50:04 2006 +0300 [MTD] CAFÉ NAND: Add 'slowtiming' parameter, default usedma and checkecc on Signed-off-by: David Woodhouse commit dcc41bc81c872862652d68af8993b9fa32ce56a4 Author: David Woodhouse Date: Fri Oct 27 09:55:34 2006 +0300 [MTD] NAND: Reset Café controller before initialising. Fixes http://dev.laptop.org/ticket/237 Signed-off-by: David Woodhouse commit 2c8cfdcbeb1ab0ec7bbd5af1be311b55281154c4 Author: David Woodhouse Date: Fri Oct 27 09:53:08 2006 +0300 [MTD] NAND: Café ECC -- remove spurious BUG_ON() in err_pos() Being a value which isn't in the table is a case we explicitly check for in the caller. Don't BUG_ON() because it does actually happen in practice. Signed-off-by: David Woodhouse commit ff0dab64b4e9ce3a073365342297e76ddaae9697 Author: Ricard Wanderlöf Date: Mon Oct 23 09:33:34 2006 +0200 [MTD] NAND: Fix nand_default_mark_blockbad() when flash-based BBT disabled When a flash-based BBT is not used, nand_default_mark_blockbad() is supposed to mark the block bad in the oob. However, it sets the wrong length variable so that no bad block marker is in fact written. This patch attempts to rectify that. (As note, it seems to be that logically, it shouldn't be necessary to set both length variables, as one appears to be for the main buffer, and one for the oob buffer, but this is how it is done in several places, including the code for the mtd character device MEMWRITEOOB and MEMREADOOB ioctls. I'm not sure if this is a temporary solution during some rework of the mtd infrastructure, or whether there is a deeper thought here.) Signed-off-by: Ricard Wanderlöf Signed-off-by: David Woodhouse commit 470b0a90d6a21cb72b671215f12ec7ec8a0db2c0 Author: David Woodhouse Date: Mon Oct 23 14:29:04 2006 +0100 [MTD] NAND: Disable ECC checking on CAFÉ since it's broken for now Signed-off-by: David Woodhouse commit fbad5696c5c45982d02e05b85922bad6eb6e6349 Author: David Woodhouse Date: Sun Oct 22 15:09:33 2006 +0100 [MTD] NAND: CAFÉ NAND driver cleanup, fix ECC on reading empty flash Signed-off-by: David Woodhouse commit 04459d7c6239193fa8de4a5107ee8fdb0f366e35 Author: David Woodhouse Date: Sun Oct 22 02:18:48 2006 +0100 [MTD] NAND: Add hardware ECC correction support to CAFÉ NAND driver Signed-off-by: David Woodhouse commit 784f4d5e66ac1d962091e08fe5a4b238ed8c793d Author: David Woodhouse Date: Sun Oct 22 01:47:45 2006 +0100 [MTD] NAND: Correct setting of chip->oob_poi OOB buffer Signed-off-by: David Woodhouse commit 7dcdcbef5d2b60d1db68fd2c07351f7afd8ad376 Author: David Woodhouse Date: Sat Oct 21 17:09:53 2006 +0100 [MTD] NAND: Combined oob buffer so it's contiguous with data Ditch the separate oobrbuf and oobwbuf fields from the chip buffers, and use only a single buffer immediately after the data. This accommodates NAND controllers such as the OLPC CAFÉ chip, which can't do scatter/gather DMA so needs the OOB buffer to be contiguous with the data, for both read and write. Signed-off-by: David Woodhouse commit 82810b7b6cc7a74c68881a13b0eb66c7a6370fcc Author: Artem Bityutskiy Date: Fri Oct 20 11:23:56 2006 +0300 [MTD] NAND: nandsim: support subpage write As flash cannot do 0->1 bit transitions when programming, do not do this in the simulator too. This makes nandsim able to accept subpage writes. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit a86aaa6ddf32b0401e64e74174042866e0fb3e20 Author: David Anders Date: Thu Oct 19 19:33:19 2006 +0300 [MTD] NOR: leave Intel chips in read-array mode on suspend During some testing with several samsung s3c24xx based devices it was discovered that often the cfi_cmdset_0001.c would not leave the chip in read-array mode on suspend. this is an issue if the same flash chip is used for the bootloader that needs to be read on resume. Signed-off-by: David Anders Signed-off-by: Nicolas Pitre Signed-off-by: David Woodhouse commit d29ebdbee4c196adddf9f412e6ea1f211656744f Author: Artem Bityutskiy Date: Thu Oct 19 16:04:02 2006 +0300 [MTD] core: trivial comments fix Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit a5602146c5abea7dfb0c9f4fe6f5870ebdafbc9f Author: Vijay Kumar Date: Sat Oct 14 21:33:34 2006 +0530 [MTD] NAND: nandsim coding style fix Removes line break after return type in function definitions, to be consistent with the Linux coding style. Signed-off-by: Vijay Kumar Signed-off-by: David Woodhouse commit d086d43640a40dda7783f3c56724048685586d17 Author: Vijay Kumar Date: Sun Oct 8 22:02:31 2006 +0530 [MTD] NAND: nandsim page-wise allocation (2/2) For page wise allocation, an array of flash page pointers is allocated during initialization. The flash pages are themselves allocated when a write occurs to the page. The flash pages are deallocated when they are erased. Signed-off-by: Vijay Kumar Signed-off-by: David Woodhouse commit 47e37743381823a5c2d51ef88cfc3d6cff1f8580 Author: Vijay Kumar Date: Sun Oct 8 22:00:37 2006 +0530 [MTD] NAND: nandsim page-wise allocation (1/2) This patch removes code that does chip mapping. The chip mapping code is no longer used. Signed-off-by: Vijay Kumar Signed-off-by: David Woodhouse commit 6652018c829c26d6ab0524c5c74f70daa5ed478d Author: Yoichi Yuasa Date: Thu Oct 12 17:38:15 2006 +0900 [MTD] MAPS: Remove ITE 8172G and Globespan IVR MTD support This patch has removed ITE 8172G and Globespan IVR MTD support. These boards support have already been removed. Signed-off-by: Yoichi Yuasa Acked-by: Ralf Bächle Signed-off-by: David Woodhouse commit d25ade71ef80e6312b3e0b53583db518ebb11798 Author: Ricard Wanderlöf Date: Tue Oct 17 17:27:11 2006 +0200 [MTD] mtdchar: Fix MEMGETOOBSEL and ECCGETLAYOUT ioctls 1. The ECCGETLAYOUT ioctl copy_to_user() call has a superfluous '&' causing the resulting information to be garbage rather than the intended mtd->ecclayout. 2. The MEMGETOOBSEL misses copying mtd->ecclayout->eccbytes so the resulting field of the returned structure contains garbage. Signed-off-by: Ricard Wanderlöf Signed-off-by: David Woodhouse commit 42cb1403af8a755b3dfebeb9d2a5f73bc48832a1 Author: Andrew Victor Date: Thu Oct 19 18:24:35 2006 +0200 [MTD] NAND: AT91 NAND driver This version only differs from version posted by Savin Zlobec (20 Jun 2006) in that the AT91RM9200-specific chip-select / bus setup code has been moved from the at91_nand.c driver into the processor-specific file. From: Savin Zlobec Signed-off-by: Andrew Victor Signed-off-by: David Woodhouse commit c7cf0c68ea4e2020db7204eb0ed4412b2cbb167d Author: Qi Yong Date: Mon Oct 16 19:42:23 2006 +0800 [JFFS2] Fix jffs2_follow_link() typo typo fix: noticed this typo while reading the patch "jffs2: fix symlink error handling" Signed-off-by: David Woodhouse commit c7438d02b384e82261e28fc280167f4e7a65e822 Author: Alan Cox Date: Fri Oct 20 14:41:06 2006 -0700 [MTD] MAPS: esb2rom: use hotplug safe interfaces Fairly self explanatory. Keep a reference initially, drop it when we free up the driver resources. Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit f33686b5a79674bec0e1aa553d420485e3a12899 Author: Alexey Dobriyan Date: Fri Oct 20 14:41:05 2006 -0700 [MTD] JEDEC probe: fix comment typo (devic) Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit ea7415cca922389b4f3c0cf75e0af9fbf827880e Author: Akinobu Mita Date: Fri Oct 20 14:41:05 2006 -0700 [JFFS2] Use rb_first() and rb_last() cleanup Use rb_first() and rb_last() to implement frag_first() and frag_last(). Signed-off-by: Akinbou Mita Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 29175778b07aa60e7f8030bd95d69f70070cc1f7 Author: Lew Glendenning Date: Fri Oct 20 14:41:04 2006 -0700 [MTD] MAPS: Support for BIOS flash chips on Intel ESB2 southbridge Add MTD map driver for BIOS flash chips connected to the Intel ESB2 southbridge. [akpm@osdl.org: coding-style fixes, build fix] Signed-off-by: Ryan Jackson Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 89072ef99367cd6fab37b85d6a59a575084c2d2c Author: Ryan Jackson Date: Fri Oct 20 14:41:03 2006 -0700 [MTD] CHIPS: Support for SST 49LF040B flash chip Add chip driver and JEDEC probe support for the SST 49LF040B flash chip. Signed-off-by: Ryan Jackson Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit c9073ce02adfa273a3d6d53eac8c4c035510ad9c Author: Ryan Jackson Date: Fri Oct 20 14:41:01 2006 -0700 [MTD] MAPS: Add parameter to amd76xrom to override rom window size The 2 bits controlling the window size are often set to allow reading the BIOS, but too small to allow writing, since the lock registers are 4MiB lower in the address space than the data. This is intended to prevent flashing the bios, perhaps accidentally. The bits are 6 and 7. If both bits are set, it is a 5MiB window. If only the 7 Bit is set, it is a 4MiB window. Otherwise, it is a 64KiB window. This parameter allows the driver to override the BIOS settings. Signed-off-by: Ryan Jackson Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse commit 8dd851de8184bb39c4ea86de20a0ed2496e6eb0d Author: David Woodhouse Date: Fri Oct 20 02:11:40 2006 +0100 [MTD NAND] OLPC CAFÉ driver update - Fix OOB handling, bad block table marker placement - Some cleanups, enable runtime-optional debugging - Allow BBT stuff to be skipped Signed-off-by: David Woodhouse commit 1ef93a0f668c8736cb6b6c3a43a5b8101efa24af Author: Adrian Bunk Date: Mon Oct 9 01:16:38 2006 +0200 [MTD] SSFDC must depend on BLOCK This patch fixes the following compile error with CONFIG_SSFDC=m, CONFIG_BLOCK=n: <-- snip --> ... CC [M] drivers/mtd/mtd_blkdevs.o /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c:40: warning: ‘struct request’ declared inside parameter list /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c:40: warning: its scope is only this definition or declaration, which is probably not what you want /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c: In function ‘do_blktrans_request’: /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/mtd/mtd_blkdevs.c:45: error: dereferencing pointer to incomplete type ... make[3]: *** [drivers/mtd/mtd_blkdevs.o] Error 1 <-- snip --> Bug report by Jesper Juhl. This patch also removes a pointless "default n" from the SSFDC option. Signed-off-by: Adrian Bunk Signed-off-by: David Woodhouse commit 5467fb025537eb92313fd3a557b2051cb41ba5e8 Author: David Woodhouse Date: Fri Oct 6 15:36:29 2006 +0100 [MTD NAND] Initial import of CAFÉ NAND driver. Signed-off-by: David Woodhouse commit a6b1d82d079a99d09761ee5fbc66c49f33b42324 Author: Jeff Garzik Date: Wed Oct 4 07:57:18 2006 -0400 [JFFS2] kill warning RE debug-only variables gcc emits the following warning on a 'allmodconfig' build: fs/jffs2/xattr.c: In function ‘unrefer_xattr_datum’: fs/jffs2/xattr.c:402: warning: unused variable ‘version’ fs/jffs2/xattr.c:402: warning: unused variable ‘xid’ Given that these variables are only used in the debug printk, and they merely remove a deref, we can easily kill the warning by adding the derefs to the debug printk. Signed-off-by: Jeff Garzik Signed-off-by: David Woodhouse